/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_attr_remote.c | 126 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 …]
|
H A D | xfs_attr_leaf.c | 115 ASSERT(geo->blksize > USHRT_MAX); in xfs_attr3_leaf_firstused_from_disk() 116 to->firstused = geo->blksize; in xfs_attr3_leaf_firstused_from_disk() 139 ASSERT(from->firstused == geo->blksize); in xfs_attr3_leaf_firstused_to_disk() 383 if (end > mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify() 1315 memset(leaf, 0, args->geo->blksize); in xfs_attr3_leaf_create() 1318 ichdr.firstused = args->geo->blksize; in xfs_attr3_leaf_create() 2088 bytes = state->args->geo->blksize - in xfs_attr3_leaf_toosmall() 2089 (state->args->geo->blksize >> 2) - in xfs_attr3_leaf_toosmall() 2254 tmp = args->geo->blksize; in xfs_attr3_leaf_remove() 2646 <= args->geo->blksize); in xfs_attr3_leaf_moveents() [all …]
|
H A D | xfs_dir2.c | 121 dageo->blksize = xfs_dir2_dirblock_bytes(&mp->m_sb); in xfs_da_mount() 136 dageo->leaf_max_ents = (dageo->blksize - dageo->leaf_hdr_size) / in xfs_da_mount() 138 dageo->free_max_bests = (dageo->blksize - dageo->free_hdr_size) / in xfs_da_mount() 152 dageo->node_ents = (dageo->blksize - dageo->node_hdr_size) / in xfs_da_mount() 156 dageo->magicpct = (dageo->blksize * 37) / 100; in xfs_da_mount() 162 dageo->blksize = 1 << dageo->blklog; in xfs_da_mount() 165 dageo->node_ents = (dageo->blksize - dageo->node_hdr_size) / in xfs_da_mount() 173 dageo->magicpct = (dageo->blksize * 37) / 100; in xfs_da_mount() 625 if (XFS_FSB_TO_B(mp, eof) != args->geo->blksize) in xfs_dir2_isblock() 629 if (XFS_IS_CORRUPT(mp, args->dp->i_disk_size != args->geo->blksize)) in xfs_dir2_isblock()
|
H A D | xfs_dir2.h | 145 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()
|
/openbmc/linux/fs/udf/ |
H A 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() 112 } else if (nameoff >= blksize) { in udf_copy_fi() 116 len = blksize - nameoff; in udf_copy_fi() 197 int off = iter->pos & (blksize - 1); in udf_fiiter_load_bhs() 296 oldoff = iter->pos & (blksize - 1); in udf_fiiter_advance() 300 if (oldoff + len >= blksize) { in udf_fiiter_advance() 414 off = iter->pos & (blksize - 1); in udf_fiiter_write_fi() 420 len1 = blksize; in udf_fiiter_write_fi() 423 len2 = blksize; in udf_fiiter_write_fi() [all …]
|
/openbmc/qemu/tests/qtest/libqos/ |
H A D | sdhci-cmd.c | 74 void sdhci_cmd_regs(QTestState *qts, uint64_t base_addr, uint16_t blksize, in sdhci_cmd_regs() argument 78 qtest_writew(qts, base_addr + SDHC_BLKSIZE, blksize); in sdhci_cmd_regs() 103 size_t count, size_t blksize) in sdhci_write_cmd() argument 105 sdhci_cmd_regs(qts, base_addr, blksize, 1, 0, in sdhci_write_cmd() 111 fill_block(qts, base_addr + SDHC_BDATA, (blksize - count) / 4); in sdhci_write_cmd()
|
H A D | sdhci-cmd.h | 62 void sdhci_cmd_regs(QTestState *qts, uint64_t base_addr, uint16_t blksize, 72 size_t count, size_t blksize);
|
/openbmc/openbmc/poky/meta/recipes-devtools/syslinux/syslinux/ |
H A D | 0007-linux-syslinux-implement-ext_construct_sectmap_fs.patch | 42 + blk64_t pblk, blksize, blk = 0; 47 + blksize = fs->blocksize; 48 + blksize >>= SECTOR_SHIFT; 70 + sec = (sector_t)pblk * blksize; 71 + for (i = 0; i < blksize; i++) {
|
/openbmc/linux/drivers/s390/block/ |
H A D | dasd_fba.c | 81 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 …]
|
H A D | dasd_eckd.c | 282 int blksize) in define_extent() argument 2986 fdata->blksize); in dasd_eckd_format_sanity_checks() 3194 unsigned int blksize; in dasd_eckd_ese_format() local 3234 fdata.blksize = blksize; in dasd_eckd_ese_format() 3333 dst += blksize; in dasd_eckd_ese_read() 3389 int blksize; in dasd_eckd_format_evaluate_tracks() local 3426 blksize = cdata->expect.blksize; in dasd_eckd_format_evaluate_tracks() 4094 count = blksize; in dasd_eckd_build_cp_cmd_single() 4131 dst += blksize; in dasd_eckd_build_cp_cmd_single() 4217 tlf *= blksize; in dasd_eckd_build_cp_cmd_track() [all …]
|
/openbmc/linux/block/partitions/ |
H A 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()
|
/openbmc/linux/drivers/scsi/ |
H A 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 …]
|
/openbmc/linux/drivers/net/wireless/quantenna/qtnfmac/pcie/ |
H A D | topaz_pcie_ipc.h | 91 #define NBLOCKS(size, blksize) \ argument 92 ((size) / (blksize) + (((size) % (blksize) > 0) ? 1 : 0))
|
/openbmc/qemu/contrib/plugins/ |
H A D | cache.c | 235 if (cachesize % blksize != 0) { in cache_config_error() 237 } else if (cachesize % (blksize * assoc) != 0) { in cache_config_error() 246 return (cachesize % blksize) != 0 || (cachesize % (blksize * assoc) != 0); in bad_cache_params() 249 static Cache *cache_init(int blksize, int assoc, int cachesize) in cache_init() argument 259 g_assert(!bad_cache_params(blksize, assoc, cachesize)); in cache_init() 264 cache->num_sets = cachesize / (blksize * assoc); in cache_init() 266 cache->blksize_shift = pow_of_two(blksize); in cache_init() 274 blk_mask = blksize - 1; in cache_init() 285 static Cache **caches_init(int blksize, int assoc, int cachesize) in caches_init() argument 290 if (bad_cache_params(blksize, assoc, cachesize)) { in caches_init() [all …]
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A 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()
|
/openbmc/linux/drivers/media/pci/saa7134/ |
H A D | saa7134-alsa.c | 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() 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 …]
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/tftp-hpa/files/ |
H A D | tftp-0.42-tftpboot.patch | 40 -/usr/sbin/in.tftpd -s /tftpboot -r blksize 41 +/usr/sbin/in.tftpd -s /var/lib/tftpboot -r blksize 46 -in.tftpd -s /tftpboot -r blksize 47 +in.tftpd -s /var/lib/tftpboot -r blksize
|
/openbmc/linux/drivers/block/drbd/ |
H A D | drbd_protocol.h | 173 u32 blksize; member 180 u32 blksize; member 384 u32 blksize; member 393 u32 blksize; member
|
/openbmc/linux/fs/xfs/scrub/ |
H A D | attr.c | 77 bmp_sz = sizeof(long) * BITS_TO_LONGS(sc->mp->m_attr_geo->blksize); in xchk_setup_xattr_buf() 252 unsigned int mapsize = sc->mp->m_attr_geo->blksize; in xchk_xattr_set_map() 279 unsigned int mapsize = sc->mp->m_attr_geo->blksize; in xchk_xattr_check_freemap() 329 nameidx >= mp->m_attr_geo->blksize) { in xchk_xattr_entry() 384 bitmap_zero(ab->usedmap, mp->m_attr_geo->blksize); in xchk_xattr_block() 402 if (leafhdr.usedbytes > mp->m_attr_geo->blksize) in xchk_xattr_block() 404 if (leafhdr.firstused > mp->m_attr_geo->blksize) in xchk_xattr_block() 418 buf_end = (char *)bp->b_addr + mp->m_attr_geo->blksize; in xchk_xattr_block() 484 if (nameidx < hdrsize || nameidx >= mp->m_attr_geo->blksize) { in xchk_xattr_rec()
|
/openbmc/qemu/hw/sd/ |
H A D | sdhci.c | 376 if (!timeout && (s->blksize & BLOCK_SIZE_MASK) && in sdhci_send_command() 416 const uint16_t blk_size = s->blksize & BLOCK_SIZE_MASK; in sdhci_read_block_from_card() 589 const uint16_t block_size = s->blksize & BLOCK_SIZE_MASK; in sdhci_sdma_transfer_multi_blocks() 673 uint32_t datacnt = s->blksize & BLOCK_SIZE_MASK; in sdhci_sdma_transfer_single_block() 747 const uint16_t block_size = s->blksize & BLOCK_SIZE_MASK; in sdhci_do_adma() 1015 ret = s->blksize | (s->blkcnt << 16); in sdhci_read() 1164 (s->blksize & BLOCK_SIZE_MASK) && in sdhci_write() 1176 uint16_t blksize = s->blksize; in sdhci_write() local 1191 s->blksize = deposit32(s->blksize, 0, 12, s->buf_maxsz); in sdhci_write() 1200 if (blksize != s->blksize) { in sdhci_write() [all …]
|
/openbmc/qemu/pc-bios/s390-ccw/ |
H A D | virtio-blkdev.c | 157 int blksize = virtio_get_block_size(); in virtio_ipl_disk_is_valid() local 167 blksize >= 512 && blksize <= 4096; in virtio_ipl_disk_is_valid()
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A 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()
|
/openbmc/linux/fs/isofs/ |
H A 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()
|
/openbmc/u-boot/drivers/mmc/ |
H A D | arm_pl180_mmci.c | 108 static int read_bytes(struct mmc *dev, u32 *dest, u32 blkcount, u32 blksize) in read_bytes() argument 111 u64 xfercount = blkcount * blksize; in read_bytes() 115 debug("read_bytes: blkcount=%u blksize=%u\n", blkcount, blksize); in read_bytes() 163 static int write_bytes(struct mmc *dev, u32 *src, u32 blkcount, u32 blksize) in write_bytes() argument 167 u64 xfercount = blkcount * blksize; in write_bytes() 171 debug("write_bytes: blkcount=%u blksize=%u\n", blkcount, blksize); in write_bytes()
|
/openbmc/linux/drivers/mtd/ |
H A 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() 365 set_capacity(gd, ((u64)new->size * tr->blksize) >> 9); in add_mtd_blktrans_dev() 374 blk_queue_logical_block_size(new->rq, tr->blksize); in add_mtd_blktrans_dev() 381 new->rq->limits.discard_granularity = tr->blksize; in add_mtd_blktrans_dev() 499 tr->blkshift = ffs(tr->blksize) - 1; in register_mtd_blktrans()
|