Home
last modified time | relevance | path

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

/drivers/md/
Ddm-writecache.c74 __le64 n_blocks; member
153 size_t n_blocks; member
962 wc->entries = vmalloc(array_size(sizeof(struct wc_entry), wc->n_blocks)); in writecache_alloc_entries()
965 for (b = 0; b < wc->n_blocks; b++) { in writecache_alloc_entries()
1037 for (b = 0; b < wc->n_blocks; b++) { in writecache_resume()
1059 for (b = 0; b < wc->n_blocks; b++) { in writecache_resume()
1155 wc->freelist_high_watermark = wc->n_blocks; in activate_cleaner()
1156 wc->freelist_low_watermark = wc->n_blocks; in activate_cleaner()
2099 uint64_t n_blocks, offset; in calculate_memory_size() local
2102 n_blocks = device_size; in calculate_memory_size()
[all …]
Ddm-verity-target.c49 unsigned n_blocks; member
483 for (b = 0; b < io->n_blocks; b++) { in verity_verify_io()
616 verity_hash_at_level(v, pw->block + pw->n_blocks - 1, i, &hash_block_end, NULL); in verity_prefetch_io()
645 unsigned int n_blocks = io->n_blocks; in verity_submit_prefetch() local
649 while (n_blocks && test_bit(block, v->validated_blocks)) { in verity_submit_prefetch()
651 n_blocks--; in verity_submit_prefetch()
653 while (n_blocks && test_bit(block + n_blocks - 1, in verity_submit_prefetch()
655 n_blocks--; in verity_submit_prefetch()
656 if (!n_blocks) in verity_submit_prefetch()
669 pw->n_blocks = n_blocks; in verity_submit_prefetch()
[all …]
Ddm-bufio.c1159 sector_t block, unsigned int n_blocks, in __dm_bufio_prefetch() argument
1171 for (; n_blocks--; block++) { in __dm_bufio_prefetch()
1192 if (!n_blocks) in __dm_bufio_prefetch()
1204 void dm_bufio_prefetch(struct dm_bufio_client *c, sector_t block, unsigned int n_blocks) in dm_bufio_prefetch() argument
1206 return __dm_bufio_prefetch(c, block, n_blocks, IOPRIO_DEFAULT); in dm_bufio_prefetch()
1211 unsigned int n_blocks, unsigned short ioprio) in dm_bufio_prefetch_with_ioprio() argument
1213 return __dm_bufio_prefetch(c, block, n_blocks, ioprio); in dm_bufio_prefetch_with_ioprio()
1524 void dm_bufio_forget_buffers(struct dm_bufio_client *c, sector_t block, sector_t n_blocks) in dm_bufio_forget_buffers() argument
1527 sector_t end_block = block + n_blocks; in dm_bufio_forget_buffers()
Ddm-verity.h78 unsigned n_blocks; member
/drivers/gpu/drm/arm/display/komeda/
Dkomeda_framebuffer.c46 u32 alignment_w = 0, alignment_h = 0, alignment_header, n_blocks, bpp; in komeda_fb_afbc_size_check() local
87 n_blocks = (kfb->aligned_w * kfb->aligned_h) / AFBC_SUPERBLK_PIXELS; in komeda_fb_afbc_size_check()
88 kfb->offset_payload = ALIGN(n_blocks * AFBC_HEADER_SIZE, in komeda_fb_afbc_size_check()
92 kfb->afbc_size = kfb->offset_payload + n_blocks * in komeda_fb_afbc_size_check()
/drivers/gpu/drm/
Ddrm_gem_framebuffer_helper.c523 __u32 n_blocks, w_alignment, h_alignment, hdr_alignment; in drm_gem_afbc_min_size() local
566 n_blocks = (afbc_fb->aligned_width * afbc_fb->aligned_height) in drm_gem_afbc_min_size()
568 afbc_fb->afbc_size = ALIGN(n_blocks * AFBC_HEADER_SIZE, hdr_alignment); in drm_gem_afbc_min_size()
569 afbc_fb->afbc_size += n_blocks * ALIGN(bpp * AFBC_SUPERBLOCK_PIXELS / 8, in drm_gem_afbc_min_size()
/drivers/infiniband/hw/hfi1/
Dmad.c1885 u32 n_blocks = OPA_AM_NBLK(am); in __subn_get_opa_sc_to_vlt() local
1890 if (n_blocks != 1 || smp_length_check(size, max_len)) { in __subn_get_opa_sc_to_vlt()
1907 u32 n_blocks = OPA_AM_NBLK(am); in __subn_set_opa_sc_to_vlt() local
1921 if (n_blocks != 1 || async_update || smp_length_check(size, max_len)) { in __subn_set_opa_sc_to_vlt()
1949 u32 n_blocks = OPA_AM_NPORT(am); in __subn_get_opa_sc_to_vlnt() local
1955 if (n_blocks != 1 || smp_length_check(size, max_len)) { in __subn_get_opa_sc_to_vlnt()
1974 u32 n_blocks = OPA_AM_NPORT(am); in __subn_set_opa_sc_to_vlnt() local
1981 if (n_blocks != 1 || smp_length_check(size, max_len)) { in __subn_set_opa_sc_to_vlnt()
3894 u32 n_blocks = OPA_AM_NBLK(am); in __subn_get_opa_cc_table() local
3899 u32 size = sizeof(u16) * (IB_CCT_ENTRIES * n_blocks + 1); in __subn_get_opa_cc_table()
[all …]
/drivers/net/ethernet/dec/tulip/
Dde2104x.c265 u8 n_blocks; member
1836 if (il->n_blocks == 0) in de21041_get_srom_info()
1839 (sizeof(struct de_srom_info_leaf) + (sizeof(struct de_srom_media_block) * il->n_blocks))) in de21041_get_srom_info()
1866 for (i = 0; i < il->n_blocks; i++) { in de21041_get_srom_info()
/drivers/usb/host/
Doxu210hp-hcd.c909 int n_blocks; /* minium blocks needed to hold len */ in oxu_buf_alloc() local
922 n_blocks = (len + BUFFER_SIZE - 1) / BUFFER_SIZE; in oxu_buf_alloc()
925 for (a_blocks = 1; a_blocks < n_blocks; a_blocks <<= 1) in oxu_buf_alloc()
/drivers/ata/
Dlibata-scsi.c1497 static bool ata_check_nblocks(struct scsi_cmnd *scmd, u32 n_blocks) in ata_check_nblocks() argument
1506 if (n_blocks > req_blocks) in ata_check_nblocks()
/drivers/media/dvb-frontends/
Ddrxk_hard.c1298 u16 n_blocks; in download_microcode() local
1313 n_blocks = (p_src[0] << 8) | p_src[1]; in download_microcode()
1317 for (i = 0; i < n_blocks; i += 1) { in download_microcode()