Lines Matching refs:db
381 struct prb_data_block *db = NULL; in to_blk_size() local
383 size += sizeof(*db); in to_blk_size()
384 size = ALIGN(size, sizeof(db->id)); in to_blk_size()
396 struct prb_data_block *db = NULL; in data_check_size() local
407 if (size > DATA_SIZE(data_ring) - sizeof(db->id)) in data_check_size()
1209 struct prb_data_block *db; in get_data() local
1223 db = to_block(data_ring, blk_lpos->begin); in get_data()
1229 db = to_block(data_ring, 0); in get_data()
1239 if (WARN_ON_ONCE(blk_lpos->begin != ALIGN(blk_lpos->begin, sizeof(db->id))) || in get_data()
1240 WARN_ON_ONCE(blk_lpos->next != ALIGN(blk_lpos->next, sizeof(db->id)))) { in get_data()
1245 if (WARN_ON_ONCE(*data_size < sizeof(db->id))) in get_data()
1249 *data_size -= sizeof(db->id); in get_data()
1251 return &db->data[0]; in get_data()