| /linux/include/linux/ |
| H A D | dm-bufio.h | 90 sector_t block, unsigned int n_blocks); 93 sector_t block, unsigned int n_blocks, 154 void dm_bufio_forget_buffers(struct dm_bufio_client *c, sector_t block, sector_t n_blocks);
|
| /linux/drivers/md/ |
| H A D | dm-writecache.c | 73 __le64 n_blocks; member 149 size_t n_blocks; member 964 wc->entries = vmalloc_array(wc->n_blocks, sizeof(struct wc_entry)); in writecache_alloc_entries() 967 for (b = 0; b < wc->n_blocks; b++) { in writecache_alloc_entries() 1040 for (b = 0; b < wc->n_blocks; b++) { in writecache_resume() 1063 for (b = 0; b < wc->n_blocks; b++) { in writecache_resume() 1160 wc->freelist_high_watermark = wc->n_blocks; in activate_cleaner() 1161 wc->freelist_low_watermark = wc->n_blocks; in activate_cleaner() 2115 uint64_t n_blocks, offset; in calculate_memory_size() local 2118 n_blocks = device_size; in calculate_memory_size() [all …]
|
| H A D | dm-verity-target.c | 69 unsigned int n_blocks; member 531 for (b = 0; b < io->n_blocks; in verity_verify_io() 681 unsigned int bytes = io->n_blocks << io->v->data_dev_block_bits; in verity_end_io() 722 verity_hash_at_level(v, pw->block + pw->n_blocks - 1, i, &hash_block_end, NULL); in verity_prefetch_io() 752 unsigned int n_blocks = io->n_blocks; in verity_submit_prefetch() local 756 while (n_blocks && test_bit(block, v->validated_blocks)) { in verity_submit_prefetch() 758 n_blocks--; in verity_submit_prefetch() 760 while (n_blocks && test_bit(block + n_blocks - 1, in verity_submit_prefetch() 762 n_blocks--; in verity_submit_prefetch() 763 if (!n_blocks) in verity_submit_prefetch() [all …]
|
| /linux/drivers/gpu/drm/arm/display/komeda/ |
| H A D | komeda_framebuffer.c | 47 u32 alignment_w = 0, alignment_h = 0, alignment_header, n_blocks, bpp; in komeda_fb_afbc_size_check() local 88 n_blocks = (kfb->aligned_w * kfb->aligned_h) / AFBC_SUPERBLK_PIXELS; in komeda_fb_afbc_size_check() 89 kfb->offset_payload = ALIGN(n_blocks * AFBC_HEADER_SIZE, in komeda_fb_afbc_size_check() 93 kfb->afbc_size = kfb->offset_payload + n_blocks * in komeda_fb_afbc_size_check()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_gem_framebuffer_helper.c | 528 __u32 n_blocks, w_alignment, h_alignment, hdr_alignment; in drm_gem_afbc_min_size() local 571 n_blocks = (afbc_fb->aligned_width * afbc_fb->aligned_height) in drm_gem_afbc_min_size() 573 afbc_fb->afbc_size = ALIGN(n_blocks * AFBC_HEADER_SIZE, hdr_alignment); in drm_gem_afbc_min_size() 574 afbc_fb->afbc_size += n_blocks * ALIGN(bpp * AFBC_SUPERBLOCK_PIXELS / 8, in drm_gem_afbc_min_size()
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | mad.c | 1885 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 …]
|
| /linux/drivers/net/ethernet/dec/tulip/ |
| H A D | de2104x.c | 265 u8 n_blocks; member 1837 if (il->n_blocks == 0) in de21041_get_srom_info() 1840 (sizeof(struct de_srom_info_leaf) + (sizeof(struct de_srom_media_block) * il->n_blocks))) in de21041_get_srom_info() 1867 for (i = 0; i < il->n_blocks; i++) { in de21041_get_srom_info()
|
| /linux/drivers/usb/host/ |
| H A D | oxu210hp-hcd.c | 885 int n_blocks; /* minium blocks needed to hold len */ in oxu_buf_alloc() local 898 n_blocks = (len + BUFFER_SIZE - 1) / BUFFER_SIZE; in oxu_buf_alloc() 901 for (a_blocks = 1; a_blocks < n_blocks; a_blocks <<= 1) in oxu_buf_alloc()
|
| /linux/drivers/ata/ |
| H A D | libata-scsi.c | 1515 static bool ata_check_nblocks(struct scsi_cmnd *scmd, u32 n_blocks) in ata_check_nblocks() argument 1524 if (n_blocks > req_blocks) in ata_check_nblocks()
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | drxk_hard.c | 1279 u16 n_blocks; in download_microcode() local 1294 n_blocks = (p_src[0] << 8) | p_src[1]; in download_microcode() 1298 for (i = 0; i < n_blocks; i += 1) { in download_microcode()
|