Home
last modified time | relevance | path

Searched refs:blksize (Results 1 – 25 of 119) sorted by relevance

12345

/Linux-v5.4/fs/xfs/libxfs/
Dxfs_attr_remote.c110 int blksize = mp->m_attr_geo->blksize; in __xfs_attr3_rmt_read_verify() local
119 ASSERT(len >= blksize); in __xfs_attr3_rmt_read_verify()
123 !xfs_verify_cksum(ptr, blksize, XFS_ATTR3_RMT_CRC_OFF)) { in __xfs_attr3_rmt_read_verify()
127 *failaddr = xfs_attr3_rmt_verify(mp, bp, ptr, blksize, bno); in __xfs_attr3_rmt_read_verify()
130 len -= blksize; in __xfs_attr3_rmt_read_verify()
131 ptr += blksize; in __xfs_attr3_rmt_read_verify()
132 bno += BTOBB(blksize); in __xfs_attr3_rmt_read_verify()
172 int blksize = mp->m_attr_geo->blksize; in xfs_attr3_rmt_write_verify() local
184 ASSERT(len >= blksize); in xfs_attr3_rmt_write_verify()
189 fa = xfs_attr3_rmt_verify(mp, bp, ptr, blksize, bno); in xfs_attr3_rmt_write_verify()
[all …]
Dxfs_attr_leaf.c113 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()
265 if (ichdr.firstused > mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify()
289 if (ichdr.freemap[i].base > mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify()
293 if (ichdr.freemap[i].size > mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify()
302 if (end > mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify()
1011 tmpbuffer = kmem_alloc(args->geo->blksize, 0); in xfs_attr3_leaf_to_shortform()
1015 memcpy(tmpbuffer, bp->b_addr, args->geo->blksize); in xfs_attr3_leaf_to_shortform()
1022 memset(bp->b_addr, 0, args->geo->blksize); in xfs_attr3_leaf_to_shortform()
[all …]
Dxfs_dir2.c126 dageo->blksize = xfs_dir2_dirblock_bytes(&mp->m_sb); in xfs_da_mount()
136 dageo->node_ents = (dageo->blksize - nodehdr_size) / in xfs_da_mount()
138 dageo->magicpct = (dageo->blksize * 37) / 100; in xfs_da_mount()
144 dageo->blksize = 1 << dageo->blklog; in xfs_da_mount()
146 dageo->node_ents = (dageo->blksize - nodehdr_size) / in xfs_da_mount()
148 dageo->magicpct = (dageo->blksize * 37) / 100; in xfs_da_mount()
602 rval = XFS_FSB_TO_B(args->dp->i_mount, last) == args->geo->blksize; in xfs_dir2_isblock()
603 if (rval != 0 && args->dp->i_d.di_size != args->geo->blksize) in xfs_dir2_isblock()
Dxfs_dir2.h225 return (xfs_dir2_data_aoff_t)(by & (geo->blksize - 1)); in xfs_dir2_byte_to_off()
300 ((char *)hdr + geo->blksize)) - 1; in xfs_dir2_block_tail_p()
307 ((char *)lp + geo->blksize - in xfs_dir2_leaf_tail_p()
/Linux-v5.4/block/partitions/
Damiga.c36 int blksize = 1; /* Multiplier for disk block size */ in amiga_partition() local
73 blksize = be32_to_cpu( rdb->rdb_BlockBytes ) / 512; in amiga_partition()
79 snprintf(tmp, sizeof(tmp), " RDSK (%d)", blksize * 512); in amiga_partition()
85 blk *= blksize; /* Read in terms partition table understands */ in amiga_partition()
107 blksize; in amiga_partition()
113 blksize; in amiga_partition()
/Linux-v5.4/drivers/s390/block/
Ddasd_fba.c89 int blksize, int beg, int nr) in define_extent() argument
102 data->blk_size = blksize; in define_extent()
336 unsigned int blksize = block->bp_block; in dasd_fba_build_cp_discard() local
351 blocks_per_page = BLOCKS_PER_PAGE(blksize); in dasd_fba_build_cp_discard()
366 define_extent(ccw++, cqr->data, WRITE, blksize, first_rec, count); in dasd_fba_build_cp_discard()
381 ccw_write_zero(ccw++, wz_count * blksize); in dasd_fba_build_cp_discard()
419 ccw_write_zero(ccw++, wz_count * blksize); in dasd_fba_build_cp_discard()
452 unsigned int blksize, off; in dasd_fba_build_cp_regular() local
461 blksize = block->bp_block; in dasd_fba_build_cp_regular()
470 if (bv.bv_len & (blksize - 1)) in dasd_fba_build_cp_regular()
[all …]
Ddasd_eckd.c240 int blksize) in define_extent() argument
306 data->blk_size = blksize; in define_extent()
491 unsigned int blksize, unsigned int tlf) in prefix_LRE() argument
536 rc = define_extent(NULL, dedata, trk, totrk, cmd, basedev, blksize); in prefix_LRE()
548 basedev, blksize, tlf); in prefix_LRE()
2576 rpt = recs_per_track(&base_priv->rdc_data, 0, fdata->blksize); in dasd_eckd_build_format()
2678 fdata->blksize); in dasd_eckd_build_format()
2764 ect->dl = fdata->blksize; in dasd_eckd_build_format()
2860 if (dasd_check_blocksize(fdata->blksize) != 0) { in dasd_eckd_format_sanity_checks()
2863 fdata->blksize); in dasd_eckd_format_sanity_checks()
[all …]
/Linux-v5.4/drivers/scsi/
Dsr_ioctl.c472 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()
/Linux-v5.4/drivers/net/wireless/quantenna/qtnfmac/pcie/
Dtopaz_pcie_ipc.h91 #define NBLOCKS(size, blksize) \ argument
92 ((size) / (blksize) + (((size) % (blksize) > 0) ? 1 : 0))
Dtopaz_pcie.c904 u32 blksize; in qtnf_ep_fw_load() local
915 blksize = ts->base.fw_blksize; in qtnf_ep_fw_load()
917 if (blksize < PAGE_SIZE) in qtnf_ep_fw_load()
918 blksize = PAGE_SIZE; in qtnf_ep_fw_load()
920 while (blksize >= PAGE_SIZE) { in qtnf_ep_fw_load()
921 pr_debug("allocating %u bytes to upload FW\n", blksize); in qtnf_ep_fw_load()
922 data = dma_alloc_coherent(&pdev->dev, blksize, in qtnf_ep_fw_load()
926 blksize /= 2; in qtnf_ep_fw_load()
935 nblocks = NBLOCKS(fw_size, blksize); in qtnf_ep_fw_load()
947 size = (remaining > blksize) ? blksize : remaining; in qtnf_ep_fw_load()
[all …]
/Linux-v5.4/fs/xfs/scrub/
Dattr.c42 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()
435 if (nameidx < hdrsize || nameidx >= mp->m_attr_geo->blksize) { in xchk_xattr_rec()
Dattr.h56 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()
/Linux-v5.4/drivers/usb/gadget/function/
Dstorage_common.c188 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()
/Linux-v5.4/drivers/media/pci/saa7134/
Dsaa7134-alsa.c150 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()
363 BUG_ON(!dev->dmasound.blksize); in dsp_buffer_free()
368 dev->dmasound.blksize = 0; in dsp_buffer_free()
534 saa_writeb(SAA7134_NUM_SAMPLES0, ((dev->dmasound.blksize - 1) & 0x0000ff)); in snd_card_saa7134_capture_prepare()
535 saa_writeb(SAA7134_NUM_SAMPLES1, ((dev->dmasound.blksize - 1) & 0x00ff00) >> 8); in snd_card_saa7134_capture_prepare()
536 saa_writeb(SAA7134_NUM_SAMPLES2, ((dev->dmasound.blksize - 1) & 0xff0000) >> 16); in snd_card_saa7134_capture_prepare()
[all …]
/Linux-v5.4/drivers/block/drbd/
Ddrbd_protocol.h173 u32 blksize; member
180 u32 blksize; member
382 u32 blksize; member
391 u32 blksize; member
/Linux-v5.4/drivers/base/regmap/
Dregcache-lzo.c131 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()
/Linux-v5.4/drivers/mtd/nand/raw/
Dmpc5121_nfc.c398 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-v5.4/fs/isofs/
Dcompress.c213 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()
/Linux-v5.4/net/decnet/
Ddn_neigh.c162 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()
/Linux-v5.4/include/net/
Ddn_dev.h129 __le16 blksize; member
144 __le16 blksize; member
/Linux-v5.4/drivers/block/
Dnbd.c99 loff_t blksize; member
305 nbd->disk->queue->limits.discard_granularity = config->blksize; in nbd_size_update()
306 nbd->disk->queue->limits.discard_alignment = config->blksize; in nbd_size_update()
309 blk_queue_logical_block_size(nbd->disk->queue, config->blksize); in nbd_size_update()
310 blk_queue_physical_block_size(nbd->disk->queue, config->blksize); in nbd_size_update()
315 set_blocksize(bdev, config->blksize); in nbd_size_update()
327 config->blksize = blocksize; in nbd_size_set()
1323 static bool nbd_is_valid_blksize(unsigned long blksize) in nbd_is_valid_blksize() argument
1325 if (!blksize || !is_power_of_2(blksize) || blksize < 512 || in nbd_is_valid_blksize()
1326 blksize > PAGE_SIZE) in nbd_is_valid_blksize()
[all …]
/Linux-v5.4/security/keys/encrypted-keys/
Dencrypted.c47 static int blksize; variable
92 blksize = crypto_skcipher_blocksize(tfm); in aes_get_sizes()
470 encrypted_datalen = roundup(epayload->decrypted_datalen, blksize); in derived_key_encrypt()
578 encrypted_datalen = roundup(epayload->decrypted_datalen, blksize); in derived_key_decrypt()
646 encrypted_datalen = roundup(decrypted_datalen, blksize); in encrypted_key_alloc()
680 encrypted_datalen = roundup(epayload->decrypted_datalen, blksize); in encrypted_key_decrypt()
928 + roundup(epayload->decrypted_datalen, blksize) in encrypted_read()
/Linux-v5.4/arch/s390/include/uapi/asm/
Ddasd.h181 unsigned int blksize; /* sectorsize */ member
213 unsigned int blksize; /* Blocksize of first record in error */ member
/Linux-v5.4/drivers/mtd/
Dmtd_blkdevs.c92 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()
423 set_capacity(gd, ((u64)new->size * tr->blksize) >> 9); in add_mtd_blktrans_dev()
445 blk_queue_logical_block_size(new->rq, tr->blksize); in add_mtd_blktrans_dev()
573 tr->blkshift = ffs(tr->blksize) - 1; in register_mtd_blktrans()
/Linux-v5.4/net/ipv4/
Desp4_offload.c208 int blksize; in esp_xmit() local
240 blksize = ALIGN(crypto_aead_blocksize(aead), 4); in esp_xmit()
241 esp.clen = ALIGN(skb->len + 2 + esp.tfclen, blksize); in esp_xmit()

12345