Home
last modified time | relevance | path

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

/linux-6.15/include/linux/
H A Ddm-bufio.h90 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-6.15/drivers/md/
H A Ddm-writecache.c74 __le64 n_blocks; member
150 size_t n_blocks; member
2117 uint64_t n_blocks, offset; in calculate_memory_size() local
2120 n_blocks = device_size; in calculate_memory_size()
2124 if (!n_blocks) in calculate_memory_size()
2134 n_blocks--; in calculate_memory_size()
2138 e.index = n_blocks; in calculate_memory_size()
2139 if (e.index != n_blocks) in calculate_memory_size()
2143 *n_blocks_p = n_blocks; in calculate_memory_size()
2166 pmem_assign(sb(wc)->n_blocks, cpu_to_le64(wc->n_blocks)); in init_memory()
[all …]
H A Ddm-verity-target.c72 unsigned int n_blocks; member
541 for (b = 0; b < io->n_blocks; in verity_verify_io()
692 unsigned int bytes = io->n_blocks << io->v->data_dev_block_bits; in verity_end_io()
763 unsigned int n_blocks = io->n_blocks; in verity_submit_prefetch() local
767 while (n_blocks && test_bit(block, v->validated_blocks)) { in verity_submit_prefetch()
769 n_blocks--; in verity_submit_prefetch()
771 while (n_blocks && test_bit(block + n_blocks - 1, in verity_submit_prefetch()
773 n_blocks--; in verity_submit_prefetch()
774 if (!n_blocks) in verity_submit_prefetch()
787 pw->n_blocks = n_blocks; in verity_submit_prefetch()
[all …]
H A Ddm-verity.h92 unsigned int n_blocks; member
H A Ddm-bufio.c1982 sector_t block, unsigned int n_blocks, in __dm_bufio_prefetch() argument
1994 for (; n_blocks--; block++) { in __dm_bufio_prefetch()
2024 if (!n_blocks) in __dm_bufio_prefetch()
2035 void dm_bufio_prefetch(struct dm_bufio_client *c, sector_t block, unsigned int n_blocks) in dm_bufio_prefetch() argument
2037 return __dm_bufio_prefetch(c, block, n_blocks, IOPRIO_DEFAULT); in dm_bufio_prefetch()
2042 unsigned int n_blocks, unsigned short ioprio) in dm_bufio_prefetch_with_ioprio() argument
2044 return __dm_bufio_prefetch(c, block, n_blocks, ioprio); in dm_bufio_prefetch_with_ioprio()
2275 void dm_bufio_forget_buffers(struct dm_bufio_client *c, sector_t block, sector_t n_blocks) in dm_bufio_forget_buffers() argument
2278 cache_remove_range(&c->cache, block, block + n_blocks, idle, __free_buffer_wake); in dm_bufio_forget_buffers()
/linux-6.15/drivers/gpu/drm/arm/display/komeda/
H A 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()
/linux-6.15/drivers/gpu/drm/
H A Ddrm_gem_framebuffer_helper.c522 __u32 n_blocks, w_alignment, h_alignment, hdr_alignment; in drm_gem_afbc_min_size() local
565 n_blocks = (afbc_fb->aligned_width * afbc_fb->aligned_height) in drm_gem_afbc_min_size()
567 afbc_fb->afbc_size = ALIGN(n_blocks * AFBC_HEADER_SIZE, hdr_alignment); in drm_gem_afbc_min_size()
568 afbc_fb->afbc_size += n_blocks * ALIGN(bpp * AFBC_SUPERBLOCK_PIXELS / 8, in drm_gem_afbc_min_size()
/linux-6.15/drivers/infiniband/hw/hfi1/
H A 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
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
3918 eentry = sentry + (IB_CCT_ENTRIES * n_blocks); in __subn_get_opa_cc_table()
3945 u32 n_blocks = OPA_AM_NBLK(am); in __subn_set_opa_cc_table() local
[all …]
/linux-6.15/drivers/net/ethernet/dec/tulip/
H A Dde2104x.c265 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-6.15/drivers/usb/host/
H A Doxu210hp-hcd.c885 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-6.15/drivers/ata/
H A Dlibata-scsi.c1512 static bool ata_check_nblocks(struct scsi_cmnd *scmd, u32 n_blocks) in ata_check_nblocks() argument
1521 if (n_blocks > req_blocks) in ata_check_nblocks()
/linux-6.15/drivers/media/dvb-frontends/
H A Ddrxk_hard.c1279 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()
/linux-6.15/Documentation/filesystems/xfs/
H A Dxfs-online-fsck-design.rst2406 n_blocks = (n == 0 ? leaf_blocks : node_blocks[n])
2407 node_blocks[n + 1] = ceil(n_blocks / node_load_factor)