Home
last modified time | relevance | path

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

12345

/linux/fs/xfs/libxfs/
A Dxfs_attr_remote.c126 int blksize = mp->m_attr_geo->blksize; in __xfs_attr3_rmt_read_verify() local
146 len -= blksize; in __xfs_attr3_rmt_read_verify()
147 ptr += blksize; in __xfs_attr3_rmt_read_verify()
188 int blksize = mp->m_attr_geo->blksize; in xfs_attr3_rmt_write_verify() local
221 len -= blksize; in xfs_attr3_rmt_write_verify()
222 ptr += blksize; in xfs_attr3_rmt_write_verify()
289 int blksize = mp->m_attr_geo->blksize; in xfs_attr_rmtval_copyout() local
313 len -= blksize; in xfs_attr_rmtval_copyout()
314 src += blksize; in xfs_attr_rmtval_copyout()
337 int blksize = mp->m_attr_geo->blksize; in xfs_attr_rmtval_copyin() local
[all …]
A Dxfs_attr_leaf.c114 ASSERT(geo->blksize > USHRT_MAX); in xfs_attr3_leaf_firstused_from_disk()
115 to->firstused = geo->blksize; in xfs_attr3_leaf_firstused_from_disk()
138 ASSERT(from->firstused == geo->blksize); in xfs_attr3_leaf_firstused_to_disk()
365 if (end > mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify()
1267 memset(leaf, 0, args->geo->blksize); in xfs_attr3_leaf_create()
1270 ichdr.firstused = args->geo->blksize; in xfs_attr3_leaf_create()
2039 bytes = state->args->geo->blksize - in xfs_attr3_leaf_toosmall()
2040 (state->args->geo->blksize >> 2) - in xfs_attr3_leaf_toosmall()
2205 tmp = args->geo->blksize; in xfs_attr3_leaf_remove()
2599 <= args->geo->blksize); in xfs_attr3_leaf_moveents()
[all …]
A Dxfs_dir2.c116 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_disk_size != args->geo->blksize)) in xfs_dir2_isblock()
A Dxfs_dir2.h145 return (xfs_dir2_data_aoff_t)(by & (geo->blksize - 1)); in xfs_dir2_byte_to_off()
220 ((char *)hdr + geo->blksize)) - 1; in xfs_dir2_block_tail_p()
227 ((char *)lp + geo->blksize - in xfs_dir2_leaf_tail_p()
/linux/block/partitions/
A Damiga.c35 int blksize = 1; /* Multiplier for disk block size */ in amiga_partition() local
70 blksize = be32_to_cpu( rdb->rdb_BlockBytes ) / 512; in amiga_partition()
76 snprintf(tmp, sizeof(tmp), " RDSK (%d)", blksize * 512); in amiga_partition()
82 blk *= blksize; /* Read in terms partition table understands */ in amiga_partition()
103 blksize; in amiga_partition()
109 blksize; in amiga_partition()
/linux/drivers/s390/block/
A Ddasd_fba.c81 int blksize, int beg, int nr) in define_extent() argument
94 data->blk_size = blksize; in define_extent()
328 unsigned int blksize = block->bp_block; in dasd_fba_build_cp_discard() local
444 unsigned int blksize, off; in dasd_fba_build_cp_regular() local
453 blksize = block->bp_block; in dasd_fba_build_cp_regular()
462 if (bv.bv_len & (blksize - 1)) in dasd_fba_build_cp_regular()
467 cidaw += bv.bv_len / blksize; in dasd_fba_build_cp_regular()
530 if (idal_is_needed(dst, blksize)) { in dasd_fba_build_cp_regular()
539 dst += blksize; in dasd_fba_build_cp_regular()
574 unsigned int blksize, off; in dasd_fba_free_cp() local
[all …]
A Ddasd_eckd.c280 int blksize) in define_extent() argument
2945 fdata->blksize); in dasd_eckd_format_sanity_checks()
3141 unsigned int blksize; in dasd_eckd_ese_format() local
3178 fdata.blksize = blksize; in dasd_eckd_ese_format()
3334 int blksize; in dasd_eckd_format_evaluate_tracks() local
3371 blksize = cdata->expect.blksize; in dasd_eckd_format_evaluate_tracks()
4012 count = blksize; in dasd_eckd_build_cp_cmd_single()
4049 dst += blksize; in dasd_eckd_build_cp_cmd_single()
4137 tlf *= blksize; in dasd_eckd_build_cp_cmd_track()
4476 tlf *= blksize; in dasd_eckd_build_cp_tpm_track()
[all …]
A Ddasd_diag.c519 unsigned int blksize, off; in dasd_diag_build_cp() local
528 blksize = block->bp_block; in dasd_diag_build_cp()
536 if (bv.bv_len & (blksize - 1)) in dasd_diag_build_cp()
556 for (off = 0; off < bv.bv_len; off += blksize) { in dasd_diag_build_cp()
562 dst += blksize; in dasd_diag_build_cp()
/linux/drivers/scsi/
A 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()
[all …]
/linux/fs/xfs/scrub/
A 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()
336 bitmap_zero(usedmap, mp->m_attr_geo->blksize); in xchk_xattr_block()
354 if (leafhdr.usedbytes > mp->m_attr_geo->blksize) in xchk_xattr_block()
356 if (leafhdr.firstused > mp->m_attr_geo->blksize) in xchk_xattr_block()
370 buf_end = (char *)bp->b_addr + mp->m_attr_geo->blksize; in xchk_xattr_block()
437 if (nameidx < hdrsize || nameidx >= mp->m_attr_geo->blksize) { in xchk_xattr_rec()
A 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/drivers/media/pci/saa7134/
A Dsaa7134-alsa.c161 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()
549 saa_writel(SAA7133_NUM_SAMPLES, dev->dmasound.blksize -1); in snd_card_saa7134_capture_prepare()
565 saa_writel(SAA7134_RS_BA2(6),dev->dmasound.blksize); in snd_card_saa7134_capture_prepare()
682 dev->dmasound.blksize == period_size) in snd_card_saa7134_hw_params()
693 dev->dmasound.blksize = period_size; in snd_card_saa7134_hw_params()
[all …]
/linux/drivers/usb/gadget/function/
A Dstorage_common.c188 unsigned int blksize; in fsg_lun_open() local
232 blksize = 2048; in fsg_lun_open()
235 blksize = bdev_logical_block_size(I_BDEV(inode)); 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/drivers/net/wireless/quantenna/qtnfmac/pcie/
A Dtopaz_pcie_ipc.h91 #define NBLOCKS(size, blksize) \ argument
92 ((size) / (blksize) + (((size) % (blksize) > 0) ? 1 : 0))
A Dtopaz_pcie.c908 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/drivers/block/drbd/
A Ddrbd_protocol.h173 u32 blksize; member
180 u32 blksize; member
382 u32 blksize; member
391 u32 blksize; member
/linux/drivers/base/regmap/
A 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/drivers/mtd/nand/raw/
A Dmpc5121_nfc.c399 uint o, s, sbsize, blksize; in mpc5121_nfc_copy_spare() local
430 blksize = min(sbsize - o, size); in mpc5121_nfc_copy_spare()
434 buffer, blksize); in mpc5121_nfc_copy_spare()
437 prv->regs + NFC_SPARE_AREA(s) + o, blksize); in mpc5121_nfc_copy_spare()
439 buffer += blksize; in mpc5121_nfc_copy_spare()
440 offset += blksize; in mpc5121_nfc_copy_spare()
441 size -= blksize; in mpc5121_nfc_copy_spare()
/linux/drivers/mtd/
A Dmtd_blkdevs.c72 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()
362 set_capacity(gd, ((u64)new->size * tr->blksize) >> 9); in add_mtd_blktrans_dev()
371 blk_queue_logical_block_size(new->rq, tr->blksize); in add_mtd_blktrans_dev()
379 new->rq->limits.discard_granularity = tr->blksize; in add_mtd_blktrans_dev()
497 tr->blkshift = ffs(tr->blksize) - 1; in register_mtd_blktrans()
/linux/fs/isofs/
A 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/net/decnet/
A 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/security/keys/encrypted-keys/
A Dencrypted.c47 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()
/linux/include/net/
A Ddn_dev.h129 __le16 blksize; member
144 __le16 blksize; member
/linux/arch/s390/include/uapi/asm/
A Ddasd.h181 unsigned int blksize; /* sectorsize */ member
213 unsigned int blksize; /* Blocksize of first record in error */ member
/linux/fs/cramfs/
A DREADME42 (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

Completed in 98 milliseconds

12345