Searched refs:block_bytes (Results 1 – 12 of 12) sorted by relevance
/drivers/md/bcache/ |
D | bset.h | 254 #define __set_blocks(i, k, block_bytes) \ argument 255 DIV_ROUND_UP(__set_bytes(i, k), block_bytes) 256 #define set_blocks(i, block_bytes) \ argument 257 __set_blocks(i, (i)->keys, block_bytes) 275 unsigned block_bytes) in bset_next_set() argument 279 return ((void *) i) + roundup(set_bytes(i), block_bytes); in bset_next_set()
|
D | debug.c | 27 i = (void *) i + set_blocks(i, block_bytes(b->c)) * \ 28 block_bytes(b->c)) 83 block_bytes(b->c); in bch_btree_verify() 90 ((void *) i - (void *) ondisk) / block_bytes(b->c)); in bch_btree_verify()
|
D | btree.c | 158 return ((void *) btree_bset_first(b)) + b->written * block_bytes(b->c); in write_block() 222 if (b->written + set_blocks(i, block_bytes(b->c)) > in bch_btree_node_read_done() 248 b->written += set_blocks(i, block_bytes(b->c)); in bch_btree_node_read_done() 254 i = ((void *) i) + block_bytes(b->c)) in bch_btree_node_read_done() 395 b->bio->bi_iter.bi_size = roundup(set_bytes(i), block_bytes(b->c)); in do_btree_node_write() 466 atomic_long_add(set_blocks(i, block_bytes(b->c)) * b->c->sb.block_size, in __bch_btree_node_write() 469 b->written += set_blocks(i, block_bytes(b->c)); in __bch_btree_node_write() 1319 block_bytes(b->c)) > blocks * (nodes - 1)) in btree_gc_coalesce() 1353 block_bytes(b->c)) > blocks) in btree_gc_coalesce() 1369 block_bytes(b->c)) > in btree_gc_coalesce() [all …]
|
D | journal.c | 99 blocks = set_blocks(j, block_bytes(ca->set)); in journal_read_bucket() 137 j = ((void *) j) + blocks * block_bytes(ca); in journal_read_bucket() 586 unsigned i, sectors = set_blocks(w->data, block_bytes(c)) * in journal_write_unlocked() 605 c->journal.blocks_free -= set_blocks(w->data, block_bytes(c)); in journal_write_unlocked() 696 block_bytes(c)) * c->sb.block_size; in journal_wait_for_write()
|
D | sysfs.c | 524 sysfs_hprint(block_size, block_bytes(c)); in SHOW() 739 sysfs_hprint(block_size, block_bytes(ca)); in SHOW()
|
D | bcache.h | 693 #define block_bytes(c) ((c)->sb.block_size << 9) macro
|
D | request.c | 112 if (newsize * sizeof(uint64_t) > block_bytes(c) - sizeof(struct jset)) in bch_keylist_realloc()
|
D | super.c | 1247 if (bcache_device_init(d, block_bytes(c), u->sectors)) in flash_dev_run()
|
/drivers/media/pci/bt8xx/ |
D | bt878.c | 142 bt->block_bytes = bt->buf_size >> 4; in bt878_make_risc() 144 bt->line_bytes = bt->block_bytes; in bt878_make_risc() 173 if (!(buf_pos % bt->block_bytes)) in bt878_risc_program() 177 bt->block_bytes) + in bt878_risc_program()
|
D | bt878.h | 122 u32 block_bytes; member
|
D | dvb-bt8xx.c | 64 card->bt->block_bytes], in dvb_bt8xx_task() 65 card->bt->block_bytes); in dvb_bt8xx_task()
|
/drivers/gpu/drm/radeon/ |
D | r100.c | 2095 int block_width, block_height, block_bytes; in r100_track_compress_size() local 2105 block_bytes = 8; in r100_track_compress_size() 2110 block_bytes = 16; in r100_track_compress_size() 2119 sz = wblocks * hblocks * block_bytes; in r100_track_compress_size()
|