Home
last modified time | relevance | path

Searched refs:_DESCS_COUNT (Results 1 – 2 of 2) sorted by relevance

/linux-6.6.21/kernel/printk/
Dprintk_ringbuffer.h122 #define _DESCS_COUNT(ct_bits) (1U << (ct_bits)) macro
222 #define DESC0_ID(ct_bits) DESC_ID(-(_DESCS_COUNT(ct_bits) + 1))
234 static struct prb_desc _##name##_descs[_DESCS_COUNT(descbits)] = { \
236 [_DESCS_COUNT(descbits) - 1] = { \
243 static struct printk_info _##name##_infos[_DESCS_COUNT(descbits)] = { \
247 .seq = -(u64)_DESCS_COUNT(descbits), \
250 [_DESCS_COUNT(descbits) - 1] = { \
Dprintk_ringbuffer.c311 #define DESCS_COUNT(desc_ring) _DESCS_COUNT((desc_ring)->count_bits)
2080 memset(descs, 0, _DESCS_COUNT(descbits) * sizeof(descs[0])); in prb_init()
2081 memset(infos, 0, _DESCS_COUNT(descbits) * sizeof(infos[0])); in prb_init()
2097 atomic_long_set(&(descs[_DESCS_COUNT(descbits) - 1].state_var), DESC0_SV(descbits)); in prb_init()
2098 descs[_DESCS_COUNT(descbits) - 1].text_blk_lpos.begin = FAILED_LPOS; in prb_init()
2099 descs[_DESCS_COUNT(descbits) - 1].text_blk_lpos.next = FAILED_LPOS; in prb_init()
2101 infos[0].seq = -(u64)_DESCS_COUNT(descbits); in prb_init()
2102 infos[_DESCS_COUNT(descbits) - 1].seq = 0; in prb_init()