Home
last modified time | relevance | path

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

/linux-6.6.21/kernel/printk/
Dprintk_ringbuffer.h233 #define _DEFINE_PRINTKRB(name, descbits, avgtextbits, text_buf) \ argument
234 static struct prb_desc _##name##_descs[_DESCS_COUNT(descbits)] = { \
236 [_DESCS_COUNT(descbits) - 1] = { \
238 .state_var = ATOMIC_INIT(DESC0_SV(descbits)), \
243 static struct printk_info _##name##_infos[_DESCS_COUNT(descbits)] = { \
247 .seq = -(u64)_DESCS_COUNT(descbits), \
250 [_DESCS_COUNT(descbits) - 1] = { \
257 .count_bits = descbits, \
260 .head_id = ATOMIC_INIT(DESC0_ID(descbits)), \
261 .tail_id = ATOMIC_INIT(DESC0_ID(descbits)), \
[all …]
Dprintk_ringbuffer.c2077 struct prb_desc *descs, unsigned int descbits, in prb_init() argument
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()
2083 rb->desc_ring.count_bits = descbits; in prb_init()
2086 atomic_long_set(&rb->desc_ring.head_id, DESC0_ID(descbits)); in prb_init()
2087 atomic_long_set(&rb->desc_ring.tail_id, DESC0_ID(descbits)); in prb_init()
2088 atomic_long_set(&rb->desc_ring.last_finalized_id, DESC0_ID(descbits)); 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()
[all …]