/linux-6.12.1/fs/xfs/libxfs/ |
D | xfs_attr_remote.c | 51 unsigned int blocksize = mp->m_attr_geo->blksize; in xfs_attr3_rmt_buf_space() 118 if (be32_to_cpu(rmt->rm_bytes) > mp->m_attr_geo->blksize - sizeof(*rmt)) in xfs_attr3_rmt_verify() 139 unsigned int blksize = mp->m_attr_geo->blksize; in __xfs_attr3_rmt_read_verify() local 148 ASSERT(len >= blksize); in __xfs_attr3_rmt_read_verify() 152 !xfs_verify_cksum(ptr, blksize, XFS_ATTR3_RMT_CRC_OFF)) { in __xfs_attr3_rmt_read_verify() 159 len -= blksize; in __xfs_attr3_rmt_read_verify() 160 ptr += blksize; in __xfs_attr3_rmt_read_verify() 161 bno += BTOBB(blksize); in __xfs_attr3_rmt_read_verify() 201 unsigned int blksize = mp->m_attr_geo->blksize; in xfs_attr3_rmt_write_verify() local 213 ASSERT(len >= blksize); in xfs_attr3_rmt_write_verify() [all …]
|
D | xfs_attr_leaf.c | 116 ASSERT(geo->blksize > USHRT_MAX); in xfs_attr3_leaf_firstused_from_disk() 117 to->firstused = geo->blksize; in xfs_attr3_leaf_firstused_from_disk() 140 ASSERT(from->firstused == geo->blksize); in xfs_attr3_leaf_firstused_to_disk() 262 if (nameidx < leafhdr->firstused || nameidx >= mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify_entry() 335 if (ichdr.firstused > mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify() 353 buf_end = (char *)bp->b_addr + mp->m_attr_geo->blksize; in xfs_attr3_leaf_verify() 371 if (ichdr.freemap[i].base > mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify() 375 if (ichdr.freemap[i].size > mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify() 384 if (end > mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify() 1139 tmpbuffer = kvmalloc(args->geo->blksize, GFP_KERNEL | __GFP_NOFAIL); in xfs_attr3_leaf_to_shortform() [all …]
|
D | xfs_dir2.c | 133 dageo->blksize = xfs_dir2_dirblock_bytes(&mp->m_sb); in xfs_da_mount() 148 dageo->leaf_max_ents = (dageo->blksize - dageo->leaf_hdr_size) / in xfs_da_mount() 150 dageo->free_max_bests = (dageo->blksize - dageo->free_hdr_size) / in xfs_da_mount() 164 dageo->node_ents = (dageo->blksize - dageo->node_hdr_size) / in xfs_da_mount() 168 dageo->magicpct = (dageo->blksize * 37) / 100; in xfs_da_mount() 174 dageo->blksize = 1 << dageo->blklog; in xfs_da_mount() 177 dageo->node_ents = (dageo->blksize - dageo->node_hdr_size) / in xfs_da_mount() 185 dageo->magicpct = (dageo->blksize * 37) / 100; in xfs_da_mount() 284 if (eof == XFS_B_TO_FSB(mp, geo->blksize)) { in xfs_dir2_format() 285 if (XFS_IS_CORRUPT(mp, dp->i_disk_size != geo->blksize)) { in xfs_dir2_format()
|
D | xfs_dir2.h | 175 return (xfs_dir2_data_aoff_t)(by & (geo->blksize - 1)); in xfs_dir2_byte_to_off() 250 ((char *)hdr + geo->blksize)) - 1; in xfs_dir2_block_tail_p() 257 ((char *)lp + geo->blksize - in xfs_dir2_leaf_tail_p()
|
/linux-6.12.1/fs/udf/ |
D | directory.c | 70 u32 blksize = 1 << iter->dir->i_blkbits; in udf_copy_fi() local 97 off = iter->pos & (blksize - 1); in udf_copy_fi() 98 len = min_t(u32, sizeof(struct fileIdentDesc), blksize - off); in udf_copy_fi() 110 if (off + udf_dir_entry_len(&iter->fi) <= blksize) { in udf_copy_fi() 112 } else if (nameoff >= blksize) { in udf_copy_fi() 113 iter->name = iter->bh[1]->b_data + (nameoff - blksize); in udf_copy_fi() 116 len = blksize - nameoff; in udf_copy_fi() 196 int blksize = 1 << iter->dir->i_blkbits; in udf_fiiter_load_bhs() local 197 int off = iter->pos & (blksize - 1); in udf_fiiter_load_bhs() 217 if (off + sizeof(struct fileIdentDesc) > blksize) in udf_fiiter_load_bhs() [all …]
|
/linux-6.12.1/drivers/s390/block/ |
D | dasd_fba.c | 77 int blksize, int beg, int nr) in define_extent() argument 90 data->blk_size = blksize; in define_extent() 324 unsigned int blksize = block->bp_block; in dasd_fba_build_cp_discard() local 339 blocks_per_page = BLOCKS_PER_PAGE(blksize); in dasd_fba_build_cp_discard() 354 define_extent(ccw++, cqr->data, WRITE, blksize, first_rec, count); in dasd_fba_build_cp_discard() 369 ccw_write_zero(ccw++, wz_count * blksize); in dasd_fba_build_cp_discard() 407 ccw_write_zero(ccw++, wz_count * blksize); in dasd_fba_build_cp_discard() 440 unsigned int blksize, off; in dasd_fba_build_cp_regular() local 449 blksize = block->bp_block; in dasd_fba_build_cp_regular() 458 if (bv.bv_len & (blksize - 1)) in dasd_fba_build_cp_regular() [all …]
|
D | dasd_eckd.c | 276 int blksize) in define_extent() argument 342 data->blk_size = blksize; in define_extent() 527 unsigned int blksize, unsigned int tlf) in prefix_LRE() argument 572 rc = define_extent(NULL, dedata, trk, totrk, cmd, basedev, blksize); in prefix_LRE() 584 basedev, blksize, tlf); in prefix_LRE() 2685 rpt = recs_per_track(&base_priv->rdc_data, 0, fdata->blksize); in dasd_eckd_build_format() 2787 fdata->blksize); in dasd_eckd_build_format() 2873 ect->dl = fdata->blksize; in dasd_eckd_build_format() 2969 if (dasd_check_blocksize(fdata->blksize) != 0) { in dasd_eckd_format_sanity_checks() 2972 fdata->blksize); in dasd_eckd_format_sanity_checks() [all …]
|
D | dasd_diag.c | 516 unsigned int blksize, off; in dasd_diag_build_cp() local 525 blksize = block->bp_block; in dasd_diag_build_cp() 533 if (bv.bv_len & (blksize - 1)) in dasd_diag_build_cp() 553 for (off = 0; off < bv.bv_len; off += blksize) { in dasd_diag_build_cp() 559 dst += blksize; in dasd_diag_build_cp()
|
/linux-6.12.1/drivers/scsi/ |
D | sr_ioctl.c | 487 static int sr_read_cd(Scsi_CD *cd, unsigned char *dest, int lba, int format, int blksize) in sr_read_cd() argument 493 lba, format, blksize); in sr_read_cd() 504 switch (blksize) { in sr_read_cd() 519 cgc.buflen = blksize; in sr_read_cd() 529 static int sr_read_sector(Scsi_CD *cd, int lba, int blksize, unsigned char *dest) in sr_read_sector() argument 536 rc = sr_read_cd(cd, dest, lba, 0, blksize); in sr_read_sector() 545 if (blksize != cd->device->sector_size) { in sr_read_sector() 546 if (0 != (rc = sr_set_blocklength(cd, blksize))) in sr_read_sector() 551 lba, blksize); in sr_read_sector() 562 cgc.buflen = blksize; in sr_read_sector() [all …]
|
/linux-6.12.1/block/partitions/ |
D | amiga.c | 47 unsigned int blksize = 1; /* Multiplier for disk block size */ in amiga_partition() local 82 blksize = be32_to_cpu( rdb->rdb_BlockBytes ) / 512; in amiga_partition() 88 snprintf(tmp, sizeof(tmp), " RDSK (%d)", blksize * 512); in amiga_partition() 95 if (check_mul_overflow(blk, (sector_t) blksize, &blk)) { in amiga_partition() 142 if (check_mul_overflow(cylblk, blksize, &cylblk)) { in amiga_partition()
|
/linux-6.12.1/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 …]
|
/linux-6.12.1/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 …]
|
/linux-6.12.1/drivers/usb/gadget/function/ |
D | storage_common.c | 189 unsigned int blksize; in fsg_lun_open() local 233 blksize = 2048; in fsg_lun_open() 236 blksize = bdev_logical_block_size(I_BDEV(inode)); in fsg_lun_open() 237 blkbits = blksize_bits(blksize); in fsg_lun_open() 239 blksize = 512; in fsg_lun_open() 263 curlun->blksize = blksize; in fsg_lun_open()
|
/linux-6.12.1/fs/xfs/scrub/ |
D | attr.c | 83 bmp_sz = sizeof(long) * BITS_TO_LONGS(sc->mp->m_attr_geo->blksize); in xchk_setup_xattr_buf() 273 unsigned int mapsize = sc->mp->m_attr_geo->blksize; in xchk_xattr_set_map() 300 unsigned int mapsize = sc->mp->m_attr_geo->blksize; in xchk_xattr_check_freemap() 350 nameidx >= mp->m_attr_geo->blksize) { in xchk_xattr_entry() 405 bitmap_zero(ab->usedmap, mp->m_attr_geo->blksize); in xchk_xattr_block() 434 if (leafhdr.usedbytes > mp->m_attr_geo->blksize) in xchk_xattr_block() 436 if (leafhdr.firstused > mp->m_attr_geo->blksize) in xchk_xattr_block() 452 buf_end = (char *)bp->b_addr + mp->m_attr_geo->blksize; in xchk_xattr_block() 518 if (nameidx < hdrsize || nameidx >= mp->m_attr_geo->blksize) { in xchk_xattr_rec()
|
/linux-6.12.1/drivers/block/drbd/ |
D | drbd_protocol.h | 173 u32 blksize; member 180 u32 blksize; member 384 u32 blksize; member 393 u32 blksize; member
|
/linux-6.12.1/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()
|
/linux-6.12.1/fs/isofs/ |
D | compress.c | 218 unsigned int blksize = 1 << blkbits; in zisofs_fill_pages() local 247 (bh->b_data + (blockptr & (blksize - 1)))); in zisofs_fill_pages() 253 if (!(blockptr & (blksize - 1))) { in zisofs_fill_pages() 261 (bh->b_data + (blockptr & (blksize - 1)))); in zisofs_fill_pages()
|
/linux-6.12.1/drivers/mtd/ |
D | mtd_blkdevs.c | 68 for (; nsect > 0; nsect--, block++, buf += tr->blksize) { in do_blktrans_request() 87 for (; nsect > 0; nsect--, block++, buf += tr->blksize) { in do_blktrans_request() 336 lim.logical_block_size = tr->blksize; in add_mtd_blktrans_dev() 372 set_capacity(gd, ((u64)new->size * tr->blksize) >> 9); in add_mtd_blktrans_dev() 492 tr->blkshift = ffs(tr->blksize) - 1; in register_mtd_blktrans()
|
/linux-6.12.1/security/keys/encrypted-keys/ |
D | encrypted.c | 47 static int blksize; variable 97 blksize = crypto_skcipher_blocksize(tfm); in aes_get_sizes() 464 encrypted_datalen = roundup(epayload->decrypted_datalen, blksize); in derived_key_encrypt() 572 encrypted_datalen = roundup(epayload->decrypted_datalen, blksize); in derived_key_decrypt() 660 encrypted_datalen = roundup(decrypted_datalen, blksize); in encrypted_key_alloc() 694 encrypted_datalen = roundup(epayload->decrypted_datalen, blksize); in encrypted_key_decrypt() 949 + roundup(epayload->decrypted_datalen, blksize) in encrypted_read()
|
/linux-6.12.1/arch/s390/include/uapi/asm/ |
D | dasd.h | 183 unsigned int blksize; /* sectorsize */ member 227 unsigned int blksize; /* Blocksize of first record in error */ member
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec_rxtx.c | 201 unsigned int blksize, clen, alen, plen; in mlx5e_ipsec_set_state() local 209 blksize = ALIGN(crypto_aead_blocksize(aead), 4); in mlx5e_ipsec_set_state() 210 clen = ALIGN(skb->len + 2, blksize); in mlx5e_ipsec_set_state()
|
/linux-6.12.1/drivers/usb/serial/ |
D | cyberjack.c | 370 int length, blksize, result; in cyberjack_write_bulk_callback() local 400 blksize = ((int)priv->wrbuf[2]<<8)+priv->wrbuf[1]+3; in cyberjack_write_bulk_callback() 403 priv->wrsent >= blksize) { in cyberjack_write_bulk_callback()
|
/linux-6.12.1/fs/cramfs/ |
D | README | 42 (where nblocks = (st_size - 1) / blksize + 1) 61 aligned to a 4-byte boundary. The block size is either blksize 74 applied to the i'th blksize-sized chunk of the input data if the 86 blksize except for the last block which is limited by the file length. 126 for blksize, whereas Linux-2.3.39 uses its PAGE_SIZE, which in
|
/linux-6.12.1/drivers/md/ |
D | raid0.c | 71 unsigned blksize = 512; in create_strip_zones() local 87 blksize = max(blksize, queue_logical_block_size( in create_strip_zones() 131 if ((mddev->chunk_sectors << 9) % blksize) { in create_strip_zones() 134 mddev->chunk_sectors << 9, blksize); in create_strip_zones()
|