Searched refs:blksize (Results 1 - 25 of 117) sorted by relevance

12345

/linux-master/fs/xfs/libxfs/
H A Dxfs_attr_remote.c127 int blksize = mp->m_attr_geo->blksize; local
136 ASSERT(len >= blksize);
140 !xfs_verify_cksum(ptr, blksize, XFS_ATTR3_RMT_CRC_OFF)) {
144 *failaddr = xfs_attr3_rmt_verify(mp, bp, ptr, blksize, bno);
147 len -= blksize;
148 ptr += blksize;
149 bno += BTOBB(blksize);
189 int blksize = mp->m_attr_geo->blksize; local
291 int blksize = mp->m_attr_geo->blksize; local
340 int blksize = mp->m_attr_geo->blksize; local
[all...]
H A Dxfs_attr_leaf.c116 ASSERT(geo->blksize > USHRT_MAX);
117 to->firstused = geo->blksize;
140 ASSERT(from->firstused == geo->blksize);
262 if (nameidx < leafhdr->firstused || nameidx >= mp->m_attr_geo->blksize)
335 if (ichdr.firstused > mp->m_attr_geo->blksize)
353 buf_end = (char *)bp->b_addr + mp->m_attr_geo->blksize;
371 if (ichdr.freemap[i].base > mp->m_attr_geo->blksize)
375 if (ichdr.freemap[i].size > mp->m_attr_geo->blksize)
384 if (end > mp->m_attr_geo->blksize)
1062 tmpbuffer = kmalloc(args->geo->blksize, GFP_KERNE
[all...]
H A Dxfs_dir2.c128 dageo->blksize = xfs_dir2_dirblock_bytes(&mp->m_sb);
143 dageo->leaf_max_ents = (dageo->blksize - dageo->leaf_hdr_size) /
145 dageo->free_max_bests = (dageo->blksize - dageo->free_hdr_size) /
159 dageo->node_ents = (dageo->blksize - dageo->node_hdr_size) /
163 dageo->magicpct = (dageo->blksize * 37) / 100;
169 dageo->blksize = 1 << dageo->blklog;
172 dageo->node_ents = (dageo->blksize - dageo->node_hdr_size) /
180 dageo->magicpct = (dageo->blksize * 37) / 100;
626 if (XFS_FSB_TO_B(mp, eof) != args->geo->blksize)
630 if (XFS_IS_CORRUPT(mp, args->dp->i_disk_size != args->geo->blksize)) {
[all...]
H A Dxfs_dir2.h158 return (xfs_dir2_data_aoff_t)(by & (geo->blksize - 1));
233 ((char *)hdr + geo->blksize)) - 1;
240 ((char *)lp + geo->blksize -
H A Dxfs_log_rlimit.c30 size = xfs_attr_leaf_entsize_local_max(mp->m_attr_geo->blksize) -
/linux-master/fs/udf/
H A Ddirectory.c70 u32 blksize = 1 << iter->dir->i_blkbits; local
97 off = iter->pos & (blksize - 1);
98 len = min_t(u32, sizeof(struct fileIdentDesc), blksize - off);
110 if (off + udf_dir_entry_len(&iter->fi) <= blksize) {
112 } else if (nameoff >= blksize) {
113 iter->name = iter->bh[1]->b_data + (nameoff - blksize);
116 len = blksize - nameoff;
190 int blksize = 1 << iter->dir->i_blkbits; local
191 int off = iter->pos & (blksize - 1);
211 if (off + sizeof(struct fileIdentDesc) > blksize)
286 int blksize = 1 << iter->dir->i_blkbits; local
405 int blksize = 1 << iter->dir->i_blkbits; local
455 int blksize = 1 << iter->dir->i_blkbits; local
[all...]
/linux-master/block/partitions/
H A Damiga.c47 unsigned int blksize = 1; /* Multiplier for disk block size */ local
81 /* blksize is blocks per 512 byte standard block */
82 blksize = be32_to_cpu( rdb->rdb_BlockBytes ) / 512;
88 snprintf(tmp, sizeof(tmp), " RDSK (%d)", blksize * 512);
95 if (check_mul_overflow(blk, (sector_t) blksize, &blk)) {
142 if (check_mul_overflow(cylblk, blksize, &cylblk)) {
/linux-master/drivers/net/wireless/quantenna/qtnfmac/pcie/
H A Dtopaz_pcie_ipc.h91 #define NBLOCKS(size, blksize) \
92 ((size) / (blksize) + (((size) % (blksize) > 0) ? 1 : 0))
H A Dtopaz_pcie.c908 u32 blksize; local
919 blksize = ts->base.fw_blksize;
921 if (blksize < PAGE_SIZE)
922 blksize = PAGE_SIZE;
924 while (blksize >= PAGE_SIZE) {
925 pr_debug("allocating %u bytes to upload FW\n", blksize);
926 data = dma_alloc_coherent(&pdev->dev, blksize,
930 blksize /= 2;
939 nblocks = NBLOCKS(fw_size, blksize);
951 size = (remaining > blksize)
[all...]
/linux-master/drivers/s390/block/
H A Ddasd_fba.c76 int blksize, int beg, int nr)
89 data->blk_size = blksize;
323 unsigned int blksize = block->bp_block; local
338 blocks_per_page = BLOCKS_PER_PAGE(blksize);
353 define_extent(ccw++, cqr->data, WRITE, blksize, first_rec, count);
368 ccw_write_zero(ccw++, wz_count * blksize);
406 ccw_write_zero(ccw++, wz_count * blksize);
439 unsigned int blksize, off; local
448 blksize = block->bp_block;
457 if (bv.bv_len & (blksize
75 define_extent(struct ccw1 * ccw, struct DE_fba_data *data, int rw, int blksize, int beg, int nr) argument
569 unsigned int blksize, off; local
[all...]
H A Ddasd_eckd.c275 int blksize)
341 data->blk_size = blksize;
526 unsigned int blksize, unsigned int tlf)
571 rc = define_extent(NULL, dedata, trk, totrk, cmd, basedev, blksize);
583 basedev, blksize, tlf);
2684 rpt = recs_per_track(&base_priv->rdc_data, 0, fdata->blksize);
2786 fdata->blksize);
2872 ect->dl = fdata->blksize;
2968 if (dasd_check_blocksize(fdata->blksize) != 0) {
2971 fdata->blksize);
273 define_extent(struct ccw1 *ccw, struct DE_eckd_data *data, unsigned int trk, unsigned int totrk, int cmd, struct dasd_device *device, int blksize) argument
522 prefix_LRE(struct ccw1 *ccw, struct PFX_eckd_data *pfxdata, unsigned int trk, unsigned int totrk, int cmd, struct dasd_device *basedev, struct dasd_device *startdev, unsigned int format, unsigned int rec_on_trk, int count, unsigned int blksize, unsigned int tlf) argument
3179 unsigned int blksize; local
3257 unsigned int blksize, off; local
3374 int blksize; local
3950 dasd_eckd_build_cp_cmd_single( struct dasd_device *startdev, struct dasd_block *block, struct request *req, sector_t first_rec, sector_t last_rec, sector_t first_trk, sector_t last_trk, unsigned int first_offs, unsigned int last_offs, unsigned int blk_per_trk, unsigned int blksize) argument
4140 dasd_eckd_build_cp_cmd_track( struct dasd_device *startdev, struct dasd_block *block, struct request *req, sector_t first_rec, sector_t last_rec, sector_t first_trk, sector_t last_trk, unsigned int first_offs, unsigned int last_offs, unsigned int blk_per_trk, unsigned int blksize) argument
4316 prepare_itcw(struct itcw *itcw, unsigned int trk, unsigned int totrk, int cmd, struct dasd_device *basedev, struct dasd_device *startdev, unsigned int rec_on_trk, int count, unsigned int blksize, unsigned int total_data_size, unsigned int tlf, unsigned int blk_per_trk) argument
4472 dasd_eckd_build_cp_tpm_track( struct dasd_device *startdev, struct dasd_block *block, struct request *req, sector_t first_rec, sector_t last_rec, sector_t first_trk, sector_t last_trk, unsigned int first_offs, unsigned int last_offs, unsigned int blk_per_trk, unsigned int blksize) argument
4658 unsigned int blk_per_trk, blksize; local
4886 unsigned int blksize, blk_per_trk, off; local
[all...]
/linux-master/drivers/scsi/
H A Dsr_ioctl.c481 * blksize: 2048 | 2336 | 2340 | 2352
484 static int sr_read_cd(Scsi_CD *cd, unsigned char *dest, int lba, int format, int blksize) argument
489 sr_printk(KERN_INFO, cd, "sr_read_cd lba=%d format=%d blksize=%d\n",
490 lba, format, blksize);
501 switch (blksize) {
516 cgc.buflen = blksize;
526 static int sr_read_sector(Scsi_CD *cd, int lba, int blksize, unsigned char *dest) argument
533 rc = sr_read_cd(cd, dest, lba, 0, blksize);
542 if (blksize != cd->device->sector_size) {
543 if (0 != (rc = sr_set_blocklength(cd, blksize)))
[all...]
/linux-master/drivers/block/drbd/
H A Ddrbd_protocol.h173 u32 blksize; member in struct:p_block_ack
180 u32 blksize; member in struct:p_block_req
384 u32 blksize; member in struct:p_drbd06_param
393 u32 blksize; member in struct:p_block_desc
/linux-master/include/linux/
H A Dstat.h26 uint32_t blksize; /* Preferred I/O size */ member in struct:kstat
/linux-master/include/linux/mtd/
H A Dblktrans.h44 int blksize; member in struct:mtd_blktrans_ops
/linux-master/drivers/mtd/
H A Dmtdblock_ro.c68 .blksize = 512,
H A Dmtd_blkdevs.c68 for (; nsect > 0; nsect--, block++, buf += tr->blksize) {
87 for (; nsect > 0; nsect--, block++, buf += tr->blksize) {
336 lim.logical_block_size = tr->blksize;
370 set_capacity(gd, ((u64)new->size * tr->blksize) >> 9);
497 tr->blkshift = ffs(tr->blksize) - 1;
/linux-master/drivers/usb/gadget/function/
H A Dstorage_common.c189 unsigned int blksize; local
233 blksize = 2048;
236 blksize = bdev_logical_block_size(I_BDEV(inode));
237 blkbits = blksize_bits(blksize);
239 blksize = 512;
263 curlun->blksize = blksize;
/linux-master/drivers/media/pci/saa7134/
H A Dsaa7134-alsa.c150 if (dev->dmasound.read_count >= dev->dmasound.blksize * (dev->dmasound.blocks-2)) {
161 saa_writel(reg,next_blk * dev->dmasound.blksize);
164 next_blk * dev->dmasound.blksize, dev->dmasound.blocks,
165 dev->dmasound.blksize, dev->dmasound.read_count);
169 dev->dmasound.read_count += dev->dmasound.blksize;
364 BUG_ON(!dev->dmasound.blksize);
369 dev->dmasound.blksize = 0;
535 saa_writeb(SAA7134_NUM_SAMPLES0, ((dev->dmasound.blksize - 1) & 0x0000ff));
536 saa_writeb(SAA7134_NUM_SAMPLES1, ((dev->dmasound.blksize - 1) & 0x00ff00) >> 8);
537 saa_writeb(SAA7134_NUM_SAMPLES2, ((dev->dmasound.blksize
[all...]
/linux-master/fs/xfs/scrub/
H A Dattr.c77 bmp_sz = sizeof(long) * BITS_TO_LONGS(sc->mp->m_attr_geo->blksize);
256 unsigned int mapsize = sc->mp->m_attr_geo->blksize;
283 unsigned int mapsize = sc->mp->m_attr_geo->blksize;
333 nameidx >= mp->m_attr_geo->blksize) {
388 bitmap_zero(ab->usedmap, mp->m_attr_geo->blksize);
406 if (leafhdr.usedbytes > mp->m_attr_geo->blksize)
408 if (leafhdr.firstused > mp->m_attr_geo->blksize)
422 buf_end = (char *)bp->b_addr + mp->m_attr_geo->blksize;
489 if (nameidx < hdrsize || nameidx >= mp->m_attr_geo->blksize) {
/linux-master/arch/s390/include/uapi/asm/
H A Ddasd.h183 unsigned int blksize; /* sectorsize */ member in struct:format_data_t
227 unsigned int blksize; /* Blocksize of first record in error */ member in struct:format_check_t
/linux-master/fs/isofs/
H A Dcompress.c218 unsigned int blksize = 1 << blkbits; local
247 (bh->b_data + (blockptr & (blksize - 1))));
253 if (!(blockptr & (blksize - 1))) {
261 (bh->b_data + (blockptr & (blksize - 1))));
/linux-master/fs/hostfs/
H A Dhostfs.h64 unsigned int blksize; member in struct:hostfs_stat
/linux-master/drivers/mtd/nand/raw/
H A Dmpc5121_nfc.c398 uint o, s, sbsize, blksize; local
429 blksize = min(sbsize - o, size);
433 buffer, blksize);
436 prv->regs + NFC_SPARE_AREA(s) + o, blksize);
438 buffer += blksize;
439 offset += blksize;
440 size -= blksize;
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_rxtx.c201 unsigned int blksize, clen, alen, plen; local
209 blksize = ALIGN(crypto_aead_blocksize(aead), 4);
210 clen = ALIGN(skb->len + 2, blksize);

Completed in 284 milliseconds

12345