Lines Matching refs:blk
325 #define BLK_DATALESS(blk) (LPOS_DATALESS((blk)->begin) && \ argument
326 LPOS_DATALESS((blk)->next))
572 struct prb_data_block *blk; in data_make_reusable() local
580 blk = to_block(data_ring, lpos_begin); in data_make_reusable()
590 id = blk->id; /* LMM(data_make_reusable:A) */ in data_make_reusable()
1028 struct prb_data_block *blk; in data_alloc() local
1073 blk = to_block(data_ring, begin_lpos); in data_alloc()
1074 blk->id = id; /* LMM(data_alloc:B) */ in data_alloc()
1078 blk = to_block(data_ring, 0); in data_alloc()
1084 blk->id = id; in data_alloc()
1090 return &blk->data[0]; in data_alloc()
1109 struct prb_data_block *blk; in data_realloc() local
1129 blk = to_block(data_ring, 0); in data_realloc()
1131 blk = to_block(data_ring, blk_lpos->begin); in data_realloc()
1132 return &blk->data[0]; in data_realloc()
1144 blk = to_block(data_ring, blk_lpos->begin); in data_realloc()
1147 struct prb_data_block *old_blk = blk; in data_realloc()
1150 blk = to_block(data_ring, 0); in data_realloc()
1156 blk->id = id; in data_realloc()
1164 memcpy(&blk->data[0], &old_blk->data[0], in data_realloc()
1165 (blk_lpos->next - blk_lpos->begin) - sizeof(blk->id)); in data_realloc()
1171 return &blk->data[0]; in data_realloc()