Home
last modified time | relevance | path

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

/Linux-v5.10/kernel/printk/
Dprintk_ringbuffer.h232 #define _DEFINE_PRINTKRB(name, descbits, avgtextbits, text_buf) \ argument
233 static struct prb_desc _##name##_descs[_DESCS_COUNT(descbits)] = { \
235 [_DESCS_COUNT(descbits) - 1] = { \
237 .state_var = ATOMIC_INIT(DESC0_SV(descbits)), \
242 static struct printk_info _##name##_infos[_DESCS_COUNT(descbits)] = { \
246 .seq = -(u64)_DESCS_COUNT(descbits), \
249 [_DESCS_COUNT(descbits) - 1] = { \
256 .count_bits = descbits, \
259 .head_id = ATOMIC_INIT(DESC0_ID(descbits)), \
260 .tail_id = ATOMIC_INIT(DESC0_ID(descbits)), \
[all …]
Dprintk_ringbuffer.c2038 struct prb_desc *descs, unsigned int descbits, in prb_init() argument
2041 memset(descs, 0, _DESCS_COUNT(descbits) * sizeof(descs[0])); in prb_init()
2042 memset(infos, 0, _DESCS_COUNT(descbits) * sizeof(infos[0])); in prb_init()
2044 rb->desc_ring.count_bits = descbits; in prb_init()
2047 atomic_long_set(&rb->desc_ring.head_id, DESC0_ID(descbits)); in prb_init()
2048 atomic_long_set(&rb->desc_ring.tail_id, DESC0_ID(descbits)); in prb_init()
2057 atomic_long_set(&(descs[_DESCS_COUNT(descbits) - 1].state_var), DESC0_SV(descbits)); in prb_init()
2058 descs[_DESCS_COUNT(descbits) - 1].text_blk_lpos.begin = FAILED_LPOS; in prb_init()
2059 descs[_DESCS_COUNT(descbits) - 1].text_blk_lpos.next = FAILED_LPOS; in prb_init()
2061 infos[0].seq = -(u64)_DESCS_COUNT(descbits); in prb_init()
[all …]