Home
last modified time | relevance | path

Searched refs:block_offset (Results 1 – 25 of 39) sorted by relevance

12

/openbmc/linux/drivers/gpu/drm/radeon/
H A Ddce6_afmt.c34 u32 block_offset, u32 reg) in dce6_endpoint_rreg() argument
40 WREG32(AZ_F0_CODEC_ENDPOINT_INDEX + block_offset, reg); in dce6_endpoint_rreg()
41 r = RREG32(AZ_F0_CODEC_ENDPOINT_DATA + block_offset); in dce6_endpoint_rreg()
48 u32 block_offset, u32 reg, u32 v) in dce6_endpoint_wreg() argument
54 WREG32(AZ_F0_CODEC_ENDPOINT_INDEX + block_offset, reg); in dce6_endpoint_wreg()
56 WREG32(AZ_F0_CODEC_ENDPOINT_INDEX + block_offset, in dce6_endpoint_wreg()
58 WREG32(AZ_F0_CODEC_ENDPOINT_DATA + block_offset, v); in dce6_endpoint_wreg()
/openbmc/u-boot/fs/yaffs2/
H A Dyaffs_nand.c85 block_no -= dev->block_offset; in yaffs_mark_bad()
97 block_no -= dev->block_offset; in yaffs_query_init_block_state()
109 flash_block -= dev->block_offset; in yaffs_erase_block()
H A Dyaffs_tagscompat.c267 yaffs_get_block_info(dev, flash_block + dev->block_offset)-> in yaffs_handle_rd_data_error()
/openbmc/qemu/block/
H A Dbochs.c265 int64_t block_offset = seek_to_sector(bs, sector_num); in bochs_co_preadv() local
266 if (block_offset < 0) { in bochs_co_preadv()
267 ret = block_offset; in bochs_co_preadv()
274 if (block_offset > 0) { in bochs_co_preadv()
275 ret = bdrv_co_preadv(bs->file, block_offset, 512, in bochs_co_preadv()
H A Dvhdx.c139 uint64_t block_offset; /* block offset, in bytes */ member
1130 uint32_t block_offset; in vhdx_block_translate() local
1135 block_offset = sector_num - (sinfo->bat_idx << s->sectors_per_block_bits); in vhdx_block_translate()
1142 sinfo->sectors_avail = s->sectors_per_block - block_offset; in vhdx_block_translate()
1154 sinfo->block_offset = block_offset << s->logical_sector_size_bits; in vhdx_block_translate()
1166 sinfo->file_offset += sinfo->block_offset; in vhdx_block_translate()
1411 sinfo.file_offset += sinfo.block_offset; in vhdx_co_writev()
1414 if (sinfo.block_offset) { in vhdx_co_writev()
1415 iov1.iov_len = sinfo.block_offset; in vhdx_co_writev()
1428 if ((sinfo.bytes_avail - sinfo.block_offset) < in vhdx_co_writev()
[all …]
H A Dvpc.c495 uint64_t bitmap_offset, block_offset; in get_image_offset() local
507 block_offset = bitmap_offset + s->bitmap_size + offset_in_block; in get_image_offset()
527 return block_offset; in get_image_offset()
/openbmc/qemu/migration/
H A Drdma.h51 int rdma_control_save_page(QEMUFile *f, ram_addr_t block_offset,
63 int rdma_control_save_page(QEMUFile *f, ram_addr_t block_offset, in rdma_control_save_page() argument
H A Drdma.c556 ram_addr_t block_offset, uint64_t length) in rdma_add_block() argument
582 block->offset = block_offset; in rdma_add_block()
619 ram_addr_t block_offset = qemu_ram_get_offset(rb); in qemu_rdma_init_one_block() local
1236 uintptr_t block_offset, in qemu_rdma_search_ram_block() argument
1242 uint64_t current_addr = block_offset + offset; in qemu_rdma_search_ram_block()
2313 uint64_t block_offset, uint64_t offset, in qemu_rdma_write() argument
2316 uint64_t current_addr = block_offset + offset; in qemu_rdma_write()
2328 qemu_rdma_search_ram_block(rdma, block_offset, in qemu_rdma_write()
3232 ret = qemu_rdma_write(rdma, block_offset, offset, size, &err); in qemu_rdma_save_page()
3284 int rdma_control_save_page(QEMUFile *f, ram_addr_t block_offset, in rdma_control_save_page() argument
[all …]
/openbmc/linux/fs/jfs/
H A Djfs_metapage.c339 int block_offset; /* block offset of mp within page */ in metapage_writepage() local
381 block_offset = offset >> inode->i_blkbits; in metapage_writepage()
382 lblock = page_start + block_offset; in metapage_writepage()
475 int block_offset; in metapage_read_folio() local
487 block_offset = 0; in metapage_read_folio()
488 while (block_offset < blocks_per_page) { in metapage_read_folio()
489 xlen = blocks_per_page - block_offset; in metapage_read_folio()
490 pblock = metapage_get_blocks(inode, page_start + block_offset, in metapage_read_folio()
506 offset = block_offset << inode->i_blkbits; in metapage_read_folio()
509 block_offset += xlen; in metapage_read_folio()
[all …]
H A Djfs_imap.c300 int block_offset; in diRead() local
351 if ((block_offset = ((u32) blkno & (sbi->nbperpage - 1)))) { in diRead()
356 (sbi->nbperpage - block_offset) << sbi->l2niperblk; in diRead()
359 rel_inode += block_offset << sbi->l2niperblk; in diRead()
589 int block_offset; in diWrite() local
623 if ((block_offset = ((u32) blkno & (sbi->nbperpage - 1)))) { in diWrite()
628 (sbi->nbperpage - block_offset) << sbi->l2niperblk; in diWrite()
631 rel_inode += block_offset << sbi->l2niperblk; in diWrite()
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dnand_util.c635 size_t block_offset = offset & (mtd->erasesize - 1); in nand_write_skip_bad() local
643 offset += mtd->erasesize - block_offset; in nand_write_skip_bad()
647 if (left_to_write < (blocksize - block_offset)) in nand_write_skip_bad()
650 write_size = blocksize - block_offset; in nand_write_skip_bad()
751 size_t block_offset = offset & (mtd->erasesize - 1); in nand_read_skip_bad() local
759 offset += mtd->erasesize - block_offset; in nand_read_skip_bad()
763 if (left_to_read < (mtd->erasesize - block_offset)) in nand_read_skip_bad()
766 read_length = mtd->erasesize - block_offset; in nand_read_skip_bad()
/openbmc/linux/drivers/phy/cadence/
H A Dphy-cadence-sierra.c67 ((0x4000 << (block_offset)) + \
204 #define SIERRA_PHY_PCS_COMMON_OFFSET(block_offset) \ argument
205 (0xc000 << (block_offset))
211 ((0xD000 << (block_offset)) + \
217 #define SIERRA_PHY_PMA_COMMON_OFFSET(block_offset) \ argument
218 (0xE000 << (block_offset))
223 ((0xF000 << (block_offset)) + \
975 u32 block_offset, u8 reg_offset_shift, in cdns_regmap_init() argument
985 ctx->base = base + block_offset; in cdns_regmap_init()
1078 u32 block_offset; in cdns_regmap_init_blocks() local
[all …]
H A Dphy-cadence-torrent.c42 ((0x4000 << (block_offset)) + \
46 ((0x8000 << (block_offset)) + \
50 (0xC000 << (block_offset))
53 ((0xD000 << (block_offset)) + \
57 (0xE000 << (block_offset))
2089 u32 block_offset, in cdns_regmap_init() argument
2100 ctx->base = base + block_offset; in cdns_regmap_init()
2197 u32 block_offset; in cdns_torrent_dp_regmap_init() local
2201 block_offset = TORRENT_DPTX_PHY_OFFSET; in cdns_torrent_dp_regmap_init()
2220 u32 block_offset; in cdns_torrent_regmap_init() local
[all …]
/openbmc/qemu/scripts/simplebench/
H A Dbench_write_req.py52 def bench_write_req(qemu_img, image_name, block_size, block_offset, argument
90 str(count), '-s', f'{block_size}', '-o', str(block_offset),
/openbmc/linux/drivers/md/
H A Ddm-verity-fec.c125 u64 rsb, int byte_index, unsigned int block_offset, in fec_decode_bufs() argument
133 par = fec_read_parity(v, rsb, block_offset, &offset, &buf); in fec_decode_bufs()
150 fio->output[block_offset] = block[byte_index]; in fec_decode_bufs()
152 block_offset++; in fec_decode_bufs()
153 if (block_offset >= 1 << v->data_dev_block_bits) in fec_decode_bufs()
161 par = fec_read_parity(v, rsb, block_offset, &offset, &buf); in fec_decode_bufs()
201 u64 rsb, u64 target, unsigned int block_offset, in fec_read_bufs() argument
287 k = fec_buffer_rs_index(n, j) + block_offset; in fec_read_bufs()
/openbmc/qemu/pc-bios/s390-ccw/
H A Dbootmap.h390 static inline void read_iso_sector(uint32_t block_offset, void *buf, in read_iso_sector() argument
393 IPL_assert(virtio_read_many(block_offset, buf, 1) == 0, errmsg); in read_iso_sector()
396 static inline void read_iso_boot_image(uint32_t block_offset, void *load_addr, in read_iso_boot_image() argument
399 IPL_assert(virtio_read_many(block_offset, load_addr, blks_to_load) == 0, in read_iso_boot_image()
/openbmc/linux/drivers/net/wireless/intersil/orinoco/
H A Dfw.c48 __le32 block_offset; /* Offset of block data from eof header */ member
69 if ((hdrsize + le32_to_cpu(hdr->block_offset)) > len) in validate_fw()
161 le32_to_cpu(hdr->block_offset)); in orinoco_dl_firmware()
/openbmc/linux/fs/ceph/
H A Dioctl.h62 __u64 block_offset; /* out: offset in block */ member
/openbmc/linux/drivers/soundwire/
H A Dgeneric_bandwidth_allocation.c42 port_bo = t_data->block_offset; in sdw_compute_slave_ports()
78 port_bo = t_data->block_offset; in sdw_compute_slave_ports()
129 t_data.block_offset = port_bo; in sdw_compute_master_ports()
H A Dbus.h150 int block_offset; member
/openbmc/linux/drivers/accel/habanalabs/common/
H A Dsecurity.c210 const u32 pb_blocks[], u32 block_offset, int array_size) in hl_ack_pb_security_violations() argument
216 block_base = pb_blocks[i] + block_offset; in hl_ack_pb_security_violations()
238 struct hl_block_glbl_sec sgs_array[], u32 block_offset, in hl_config_glbl_sec() argument
248 sgs_base = block_offset + pb_blocks[i] + in hl_config_glbl_sec()
/openbmc/linux/fs/squashfs/
H A Dblock.c190 struct bio **biop, int *block_offset) in squashfs_bio_read() argument
244 *block_offset = index & ((1 << msblk->devblksize_log2) - 1); in squashfs_bio_read()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dhv_vhca.c340 int block_offset = 0; in mlx5_hv_vhca_agent_write() local
350 len, &block_offset); in mlx5_hv_vhca_agent_write()
/openbmc/linux/drivers/input/rmi4/
H A Drmi_f34.h134 __le16 block_offset; member
/openbmc/linux/drivers/dma/
H A Dfsl-qdma.c137 (((fsl_qdma_engine)->block_offset) * (x))
224 int block_offset; member
1178 fsl_qdma->block_offset = blk_off; in fsl_qdma_probe()

12