Lines Matching defs:descbits
2316 * @descbits: The count of @descs items as a power-of-2 value.
2328 struct prb_desc *descs, unsigned int descbits,
2331 memset(descs, 0, _DESCS_COUNT(descbits) * sizeof(descs[0]));
2332 memset(infos, 0, _DESCS_COUNT(descbits) * sizeof(infos[0]));
2334 rb->desc_ring.count_bits = descbits;
2337 atomic_long_set(&rb->desc_ring.head_id, DESC0_ID(descbits));
2338 atomic_long_set(&rb->desc_ring.tail_id, DESC0_ID(descbits));
2348 atomic_long_set(&(descs[_DESCS_COUNT(descbits) - 1].state_var), DESC0_SV(descbits));
2349 descs[_DESCS_COUNT(descbits) - 1].text_blk_lpos.begin = FAILED_LPOS;
2350 descs[_DESCS_COUNT(descbits) - 1].text_blk_lpos.next = FAILED_LPOS;
2352 infos[0].seq = -(u64)_DESCS_COUNT(descbits);
2353 infos[_DESCS_COUNT(descbits) - 1].seq = 0;