/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
D | xfs_attr_remote.c | 126 int blksize = mp->m_attr_geo->blksize; in __xfs_attr3_rmt_read_verify() local 135 ASSERT(len >= blksize); in __xfs_attr3_rmt_read_verify() 139 !xfs_verify_cksum(ptr, blksize, XFS_ATTR3_RMT_CRC_OFF)) { in __xfs_attr3_rmt_read_verify() 143 *failaddr = xfs_attr3_rmt_verify(mp, bp, ptr, blksize, bno); in __xfs_attr3_rmt_read_verify() 146 len -= blksize; in __xfs_attr3_rmt_read_verify() 147 ptr += blksize; in __xfs_attr3_rmt_read_verify() 148 bno += BTOBB(blksize); in __xfs_attr3_rmt_read_verify() 188 int blksize = mp->m_attr_geo->blksize; in xfs_attr3_rmt_write_verify() local 200 ASSERT(len >= blksize); in xfs_attr3_rmt_write_verify() 205 fa = xfs_attr3_rmt_verify(mp, bp, ptr, blksize, bno); in xfs_attr3_rmt_write_verify() [all …]
|
D | xfs_attr_leaf.c | 113 ASSERT(geo->blksize > USHRT_MAX); in xfs_attr3_leaf_firstused_from_disk() 114 to->firstused = geo->blksize; in xfs_attr3_leaf_firstused_from_disk() 137 ASSERT(from->firstused == geo->blksize); in xfs_attr3_leaf_firstused_to_disk() 259 if (nameidx < leafhdr->firstused || nameidx >= mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify_entry() 315 if (ichdr.firstused > mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify() 333 buf_end = (char *)bp->b_addr + mp->m_attr_geo->blksize; in xfs_attr3_leaf_verify() 351 if (ichdr.freemap[i].base > mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify() 355 if (ichdr.freemap[i].size > mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify() 364 if (end > mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify() 1108 tmpbuffer = kmem_alloc(args->geo->blksize, 0); in xfs_attr3_leaf_to_shortform() [all …]
|
D | xfs_dir2.c | 116 dageo->blksize = xfs_dir2_dirblock_bytes(&mp->m_sb); in xfs_da_mount() 131 dageo->leaf_max_ents = (dageo->blksize - dageo->leaf_hdr_size) / in xfs_da_mount() 133 dageo->free_max_bests = (dageo->blksize - dageo->free_hdr_size) / in xfs_da_mount() 147 dageo->node_ents = (dageo->blksize - dageo->node_hdr_size) / in xfs_da_mount() 149 dageo->magicpct = (dageo->blksize * 37) / 100; in xfs_da_mount() 155 dageo->blksize = 1 << dageo->blklog; in xfs_da_mount() 158 dageo->node_ents = (dageo->blksize - dageo->node_hdr_size) / in xfs_da_mount() 160 dageo->magicpct = (dageo->blksize * 37) / 100; in xfs_da_mount() 608 rval = XFS_FSB_TO_B(args->dp->i_mount, last) == args->geo->blksize; in xfs_dir2_isblock() 611 args->dp->i_d.di_size != args->geo->blksize)) in xfs_dir2_isblock()
|
D | xfs_dir2.h | 147 return (xfs_dir2_data_aoff_t)(by & (geo->blksize - 1)); in xfs_dir2_byte_to_off() 222 ((char *)hdr + geo->blksize)) - 1; in xfs_dir2_block_tail_p() 229 ((char *)lp + geo->blksize - in xfs_dir2_leaf_tail_p()
|
/kernel/linux/linux-5.10/block/partitions/ |
D | amiga.c | 35 int blksize = 1; /* Multiplier for disk block size */ in amiga_partition() local 71 blksize = be32_to_cpu( rdb->rdb_BlockBytes ) / 512; in amiga_partition() 77 snprintf(tmp, sizeof(tmp), " RDSK (%d)", blksize * 512); in amiga_partition() 83 blk *= blksize; /* Read in terms partition table understands */ in amiga_partition() 104 blksize; in amiga_partition() 110 blksize; in amiga_partition()
|
/kernel/linux/linux-5.10/drivers/s390/block/ |
D | dasd_fba.c | 90 int blksize, int beg, int nr) in define_extent() argument 103 data->blk_size = blksize; in define_extent() 337 unsigned int blksize = block->bp_block; in dasd_fba_build_cp_discard() local 352 blocks_per_page = BLOCKS_PER_PAGE(blksize); in dasd_fba_build_cp_discard() 367 define_extent(ccw++, cqr->data, WRITE, blksize, first_rec, count); in dasd_fba_build_cp_discard() 382 ccw_write_zero(ccw++, wz_count * blksize); in dasd_fba_build_cp_discard() 420 ccw_write_zero(ccw++, wz_count * blksize); in dasd_fba_build_cp_discard() 453 unsigned int blksize, off; in dasd_fba_build_cp_regular() local 462 blksize = block->bp_block; in dasd_fba_build_cp_regular() 471 if (bv.bv_len & (blksize - 1)) in dasd_fba_build_cp_regular() [all …]
|
D | dasd_eckd.c | 279 int blksize) in define_extent() argument 345 data->blk_size = blksize; in define_extent() 530 unsigned int blksize, unsigned int tlf) in prefix_LRE() argument 575 rc = define_extent(NULL, dedata, trk, totrk, cmd, basedev, blksize); in prefix_LRE() 587 basedev, blksize, tlf); in prefix_LRE() 2601 rpt = recs_per_track(&base_priv->rdc_data, 0, fdata->blksize); in dasd_eckd_build_format() 2703 fdata->blksize); in dasd_eckd_build_format() 2789 ect->dl = fdata->blksize; in dasd_eckd_build_format() 2885 if (dasd_check_blocksize(fdata->blksize) != 0) { in dasd_eckd_format_sanity_checks() 2888 fdata->blksize); in dasd_eckd_format_sanity_checks() [all …]
|
D | dasd_diag.c | 520 unsigned int blksize, off; in dasd_diag_build_cp() local 529 blksize = block->bp_block; in dasd_diag_build_cp() 537 if (bv.bv_len & (blksize - 1)) in dasd_diag_build_cp() 557 for (off = 0; off < bv.bv_len; off += blksize) { in dasd_diag_build_cp() 563 dst += blksize; in dasd_diag_build_cp()
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | sr_ioctl.c | 472 static int sr_read_cd(Scsi_CD *cd, unsigned char *dest, int lba, int format, int blksize) in sr_read_cd() argument 478 lba, format, blksize); in sr_read_cd() 489 switch (blksize) { in sr_read_cd() 504 cgc.buflen = blksize; in sr_read_cd() 514 static int sr_read_sector(Scsi_CD *cd, int lba, int blksize, unsigned char *dest) in sr_read_sector() argument 521 rc = sr_read_cd(cd, dest, lba, 0, blksize); in sr_read_sector() 530 if (blksize != cd->device->sector_size) { in sr_read_sector() 531 if (0 != (rc = sr_set_blocklength(cd, blksize))) in sr_read_sector() 536 lba, blksize); in sr_read_sector() 547 cgc.buflen = blksize; in sr_read_sector()
|
/kernel/linux/linux-5.10/drivers/net/wireless/quantenna/qtnfmac/pcie/ |
D | topaz_pcie_ipc.h | 91 #define NBLOCKS(size, blksize) \ argument 92 ((size) / (blksize) + (((size) % (blksize) > 0) ? 1 : 0))
|
D | topaz_pcie.c | 908 u32 blksize; in qtnf_ep_fw_load() local 919 blksize = ts->base.fw_blksize; in qtnf_ep_fw_load() 921 if (blksize < PAGE_SIZE) in qtnf_ep_fw_load() 922 blksize = PAGE_SIZE; in qtnf_ep_fw_load() 924 while (blksize >= PAGE_SIZE) { in qtnf_ep_fw_load() 925 pr_debug("allocating %u bytes to upload FW\n", blksize); in qtnf_ep_fw_load() 926 data = dma_alloc_coherent(&pdev->dev, blksize, in qtnf_ep_fw_load() 930 blksize /= 2; in qtnf_ep_fw_load() 939 nblocks = NBLOCKS(fw_size, blksize); in qtnf_ep_fw_load() 951 size = (remaining > blksize) ? blksize : remaining; in qtnf_ep_fw_load() [all …]
|
/kernel/linux/linux-5.10/fs/xfs/scrub/ |
D | attr.c | 42 sz = 3 * sizeof(long) * BITS_TO_LONGS(sc->mp->m_attr_geo->blksize); in xchk_setup_xattr_buf() 192 unsigned int mapsize = sc->mp->m_attr_geo->blksize; in xchk_xattr_set_map() 221 unsigned int mapsize = sc->mp->m_attr_geo->blksize; in xchk_xattr_check_freemap() 271 nameidx >= mp->m_attr_geo->blksize) { in xchk_xattr_entry() 335 bitmap_zero(usedmap, mp->m_attr_geo->blksize); in xchk_xattr_block() 353 if (leafhdr.usedbytes > mp->m_attr_geo->blksize) in xchk_xattr_block() 355 if (leafhdr.firstused > mp->m_attr_geo->blksize) in xchk_xattr_block() 369 buf_end = (char *)bp->b_addr + mp->m_attr_geo->blksize; in xchk_xattr_block() 436 if (nameidx < hdrsize || nameidx >= mp->m_attr_geo->blksize) { in xchk_xattr_rec()
|
D | attr.h | 56 BITS_TO_LONGS(sc->mp->m_attr_geo->blksize); in xchk_xattr_freemap() 65 BITS_TO_LONGS(sc->mp->m_attr_geo->blksize); in xchk_xattr_dstmap()
|
/kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
D | storage_common.c | 188 unsigned int blksize; in fsg_lun_open() local 232 blksize = 2048; in fsg_lun_open() 235 blksize = bdev_logical_block_size(inode->i_bdev); in fsg_lun_open() 236 blkbits = blksize_bits(blksize); in fsg_lun_open() 238 blksize = 512; in fsg_lun_open() 262 curlun->blksize = blksize; in fsg_lun_open()
|
/kernel/linux/linux-5.10/drivers/media/pci/saa7134/ |
D | saa7134-alsa.c | 150 if (dev->dmasound.read_count >= dev->dmasound.blksize * (dev->dmasound.blocks-2)) { in saa7134_irq_alsa_done() 161 saa_writel(reg,next_blk * dev->dmasound.blksize); in saa7134_irq_alsa_done() 164 next_blk * dev->dmasound.blksize, dev->dmasound.blocks, in saa7134_irq_alsa_done() 165 dev->dmasound.blksize, dev->dmasound.read_count); in saa7134_irq_alsa_done() 169 dev->dmasound.read_count += dev->dmasound.blksize; in saa7134_irq_alsa_done() 364 BUG_ON(!dev->dmasound.blksize); in dsp_buffer_free() 369 dev->dmasound.blksize = 0; in dsp_buffer_free() 535 saa_writeb(SAA7134_NUM_SAMPLES0, ((dev->dmasound.blksize - 1) & 0x0000ff)); in snd_card_saa7134_capture_prepare() 536 saa_writeb(SAA7134_NUM_SAMPLES1, ((dev->dmasound.blksize - 1) & 0x00ff00) >> 8); in snd_card_saa7134_capture_prepare() 537 saa_writeb(SAA7134_NUM_SAMPLES2, ((dev->dmasound.blksize - 1) & 0xff0000) >> 16); in snd_card_saa7134_capture_prepare() [all …]
|
/kernel/linux/linux-5.10/drivers/block/drbd/ |
D | drbd_protocol.h | 173 u32 blksize; member 180 u32 blksize; member 382 u32 blksize; member 391 u32 blksize; member
|
/kernel/linux/linux-5.10/drivers/base/regmap/ |
D | regcache-lzo.c | 131 int ret, i, blksize, blkcount; in regcache_lzo_init() local 174 blksize = regcache_lzo_get_blksize(map); in regcache_lzo_init() 178 for (i = 0; i < blkcount; i++, p += blksize) { in regcache_lzo_init() 180 if (p + blksize > end) in regcache_lzo_init() 183 lzo_blocks[i]->src_len = blksize; in regcache_lzo_init()
|
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
D | mpc5121_nfc.c | 398 uint o, s, sbsize, blksize; in mpc5121_nfc_copy_spare() local 429 blksize = min(sbsize - o, size); in mpc5121_nfc_copy_spare() 433 buffer, blksize); in mpc5121_nfc_copy_spare() 436 prv->regs + NFC_SPARE_AREA(s) + o, blksize); in mpc5121_nfc_copy_spare() 438 buffer += blksize; in mpc5121_nfc_copy_spare() 439 offset += blksize; in mpc5121_nfc_copy_spare() 440 size -= blksize; in mpc5121_nfc_copy_spare()
|
/kernel/linux/linux-5.10/fs/isofs/ |
D | compress.c | 213 unsigned int blksize = 1 << blkbits; in zisofs_fill_pages() local 242 (bh->b_data + (blockptr & (blksize - 1)))); in zisofs_fill_pages() 248 if (!(blockptr & (blksize - 1))) { in zisofs_fill_pages() 256 (bh->b_data + (blockptr & (blksize - 1)))); in zisofs_fill_pages()
|
/kernel/linux/linux-5.10/drivers/mtd/ |
D | mtd_blkdevs.c | 92 for (; nsect > 0; nsect--, block++, buf += tr->blksize) { in do_blktrans_request() 107 for (; nsect > 0; nsect--, block++, buf += tr->blksize) { in do_blktrans_request() 420 set_capacity(gd, ((u64)new->size * tr->blksize) >> 9); in add_mtd_blktrans_dev() 442 blk_queue_logical_block_size(new->rq, tr->blksize); in add_mtd_blktrans_dev() 450 new->rq->limits.discard_granularity = tr->blksize; in add_mtd_blktrans_dev() 567 tr->blkshift = ffs(tr->blksize) - 1; in register_mtd_blktrans()
|
/kernel/linux/linux-5.10/net/decnet/ |
D | dn_neigh.c | 162 dn->blksize = dev->mtu - 2; in dn_neigh_construct() 409 dn->blksize = le16_to_cpu(msg->blksize); in dn_neigh_router_hello() 468 dn->blksize = le16_to_cpu(msg->blksize); in dn_neigh_endnode_hello() 564 dn->blksize, in dn_neigh_format_entry()
|
/kernel/linux/linux-5.10/include/net/ |
D | dn_dev.h | 129 __le16 blksize; member 144 __le16 blksize; member
|
/kernel/linux/linux-5.10/drivers/block/ |
D | nbd.c | 98 loff_t blksize; member 311 nbd->disk->queue->limits.discard_granularity = config->blksize; in nbd_size_update() 312 nbd->disk->queue->limits.discard_alignment = config->blksize; in nbd_size_update() 315 blk_queue_logical_block_size(nbd->disk->queue, config->blksize); in nbd_size_update() 316 blk_queue_physical_block_size(nbd->disk->queue, config->blksize); in nbd_size_update() 322 set_blocksize(bdev, config->blksize); in nbd_size_update() 334 config->blksize = blocksize; in nbd_size_set() 1425 static bool nbd_is_valid_blksize(unsigned long blksize) in nbd_is_valid_blksize() argument 1427 if (!blksize || !is_power_of_2(blksize) || blksize < 512 || in nbd_is_valid_blksize() 1428 blksize > PAGE_SIZE) in nbd_is_valid_blksize() [all …]
|
/kernel/linux/linux-5.10/security/keys/encrypted-keys/ |
D | encrypted.c | 47 static int blksize; variable 92 blksize = crypto_skcipher_blocksize(tfm); in aes_get_sizes() 458 encrypted_datalen = roundup(epayload->decrypted_datalen, blksize); in derived_key_encrypt() 566 encrypted_datalen = roundup(epayload->decrypted_datalen, blksize); in derived_key_decrypt() 634 encrypted_datalen = roundup(decrypted_datalen, blksize); in encrypted_key_alloc() 668 encrypted_datalen = roundup(epayload->decrypted_datalen, blksize); in encrypted_key_decrypt() 916 + roundup(epayload->decrypted_datalen, blksize) in encrypted_read()
|
/kernel/linux/linux-5.10/arch/s390/include/uapi/asm/ |
D | dasd.h | 181 unsigned int blksize; /* sectorsize */ member 213 unsigned int blksize; /* Blocksize of first record in error */ member
|