Home
last modified time | relevance | path

Searched refs:n_blocks (Results 1 – 10 of 10) sorted by relevance

/Linux-v4.19/drivers/md/
Ddm-writecache.c69 __le64 n_blocks; member
143 size_t n_blocks; member
867 wc->entries = vmalloc(array_size(sizeof(struct wc_entry), wc->n_blocks)); in writecache_alloc_entries()
870 for (b = 0; b < wc->n_blocks; b++) { in writecache_alloc_entries()
910 for (b = 0; b < wc->n_blocks; b++) { in writecache_resume()
930 for (b = 0; b < wc->n_blocks; b++) { in writecache_resume()
1705 uint64_t n_blocks, offset; in calculate_memory_size() local
1708 n_blocks = device_size; in calculate_memory_size()
1709 do_div(n_blocks, block_size + sizeof(struct wc_memory_entry)); in calculate_memory_size()
1712 if (!n_blocks) in calculate_memory_size()
[all …]
Ddm-verity.h76 unsigned n_blocks; member
Ddm-verity-target.c47 unsigned n_blocks; member
475 for (b = 0; b < io->n_blocks; b++) { in verity_verify_io()
588 verity_hash_at_level(v, pw->block + pw->n_blocks - 1, i, &hash_block_end, NULL); in verity_prefetch_io()
625 pw->n_blocks = io->n_blocks; in verity_submit_prefetch()
660 io->n_blocks = bio->bi_iter.bi_size >> v->data_dev_block_bits; in verity_map()
Ddm-bufio.c1129 sector_t block, unsigned n_blocks) in dm_bufio_prefetch() argument
1140 for (; n_blocks--; block++) { in dm_bufio_prefetch()
1161 if (!n_blocks) in dm_bufio_prefetch()
/Linux-v4.19/include/linux/
Ddm-bufio.h78 sector_t block, unsigned n_blocks);
/Linux-v4.19/drivers/infiniband/hw/hfi1/
Dmad.c1927 u32 n_blocks = OPA_AM_NBLK(am); in __subn_get_opa_sc_to_vlt() local
1932 if (n_blocks != 1 || smp_length_check(size, max_len)) { in __subn_get_opa_sc_to_vlt()
1949 u32 n_blocks = OPA_AM_NBLK(am); in __subn_set_opa_sc_to_vlt() local
1963 if (n_blocks != 1 || async_update || smp_length_check(size, max_len)) { in __subn_set_opa_sc_to_vlt()
1991 u32 n_blocks = OPA_AM_NPORT(am); in __subn_get_opa_sc_to_vlnt() local
1997 if (n_blocks != 1 || smp_length_check(size, max_len)) { in __subn_get_opa_sc_to_vlnt()
2016 u32 n_blocks = OPA_AM_NPORT(am); in __subn_set_opa_sc_to_vlnt() local
2023 if (n_blocks != 1 || smp_length_check(size, max_len)) { in __subn_set_opa_sc_to_vlnt()
3947 u32 n_blocks = OPA_AM_NBLK(am); in __subn_get_opa_cc_table() local
3952 u32 size = sizeof(u16) * (IB_CCT_ENTRIES * n_blocks + 1); in __subn_get_opa_cc_table()
[all …]
/Linux-v4.19/drivers/tty/
Dcyclades.c113 u32 n_blocks; member
122 u32 n_blocks; member
3421 (void *)(bs + h->n_blocks) > ptr + len) { in __cyz_load_fw()
3439 for (a = 0; a < c->n_blocks; a++) in __cyz_load_fw()
3440 if (c->block_list[a] > h->n_blocks) { in __cyz_load_fw()
3452 for (b = bs; b < bs + h->n_blocks; b++) in __cyz_load_fw()
3463 for (a = 0; a < c->n_blocks; a++) { in __cyz_load_fw()
/Linux-v4.19/drivers/net/ethernet/dec/tulip/
Dde2104x.c271 u8 n_blocks; member
1830 if (il->n_blocks == 0) in de21041_get_srom_info()
1833 (sizeof(struct de_srom_info_leaf) + (sizeof(struct de_srom_media_block) * il->n_blocks))) in de21041_get_srom_info()
1860 for (i = 0; i < il->n_blocks; i++) { in de21041_get_srom_info()
/Linux-v4.19/drivers/usb/host/
Doxu210hp-hcd.c471 int n_blocks; /* minium blocks needed to hold len */ in oxu_buf_alloc() local
484 n_blocks = (len + BUFFER_SIZE - 1) / BUFFER_SIZE; in oxu_buf_alloc()
487 for (a_blocks = 1; a_blocks < n_blocks; a_blocks <<= 1) in oxu_buf_alloc()
/Linux-v4.19/drivers/media/dvb-frontends/
Ddrxk_hard.c1322 u16 n_blocks; in download_microcode() local
1337 n_blocks = (p_src[0] << 8) | p_src[1]; in download_microcode()
1341 for (i = 0; i < n_blocks; i += 1) { in download_microcode()