Home
last modified time | relevance | path

Searched refs:SECTOR_SIZE (Results 1 – 25 of 53) sorted by relevance

123

/openbmc/linux/drivers/mtd/
H A Drfd_ftl.c53 #define SECTOR_SIZE 512 macro
140 (i + part->header_sectors_per_block) * SECTOR_SIZE; in build_block_map()
158 sectors_per_block = part->block_size / SECTOR_SIZE; in scan_header()
167 sizeof(u16) + SECTOR_SIZE - 1) / SECTOR_SIZE; in scan_header()
252 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in rfd_ftl_readsect()
254 if (!rc && retlen != SECTOR_SIZE) in rfd_ftl_readsect()
263 memset(buf, 0, SECTOR_SIZE); in rfd_ftl_readsect()
328 sector_data = kmalloc(SECTOR_SIZE, GFP_KERNEL); in move_block_contents()
366 (i + part->header_sectors_per_block) * SECTOR_SIZE; in move_block_contents()
376 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in move_block_contents()
[all …]
H A Dftl.c106 #define SECTOR_SIZE 512 macro
398 le32_to_cpu(part->header.BAMOffset), SECTOR_SIZE); in prepare_xfer()
431 u_char buf[SECTOR_SIZE]; in copy_erase_unit()
490 ret = mtd_read(part->mbd.mtd, src, SECTOR_SIZE, &retlen, in copy_erase_unit()
498 ret = mtd_write(part->mbd.mtd, dest, SECTOR_SIZE, &retlen, in copy_erase_unit()
512 src += SECTOR_SIZE; in copy_erase_unit()
513 dest += SECTOR_SIZE; in copy_erase_unit()
765 if (((sector+i) * SECTOR_SIZE) >= le32_to_cpu(part->header.FormattedSize)) { in ftl_read()
771 memset(buffer, 0, SECTOR_SIZE); in ftl_read()
775 ret = mtd_read(part->mbd.mtd, offset, SECTOR_SIZE, &retlen, in ftl_read()
[all …]
H A Dssfdc.c35 #define SECTOR_SIZE 512 macro
112 sect_buf = kmalloc(SECTOR_SIZE, GFP_KERNEL); in get_valid_cis_sector()
123 ret = mtd_read(mtd, offset, SECTOR_SIZE, &retlen, in get_valid_cis_sector()
127 if (ret < 0 || retlen != SECTOR_SIZE) { in get_valid_cis_sector()
156 ret = mtd_read(mtd, offset, SECTOR_SIZE, &retlen, sect_buf); in read_physical_sector()
157 if (ret < 0 || retlen != SECTOR_SIZE) in read_physical_sector()
400 memset(buf, 0xff, SECTOR_SIZE); in ssfdcr_readsect()
430 .blksize = SECTOR_SIZE,
/openbmc/qemu/block/
H A Dvdi.c90 #define SECTOR_SIZE 512ULL macro
413 if (header.disk_size % SECTOR_SIZE != 0) { in vdi_open()
418 header.disk_size = ROUND_UP(header.disk_size, SECTOR_SIZE); in vdi_open()
431 } else if (header.offset_bmap % SECTOR_SIZE != 0) { in vdi_open()
437 } else if (header.offset_data % SECTOR_SIZE != 0) { in vdi_open()
443 } else if (header.sector_size != SECTOR_SIZE) { in vdi_open()
445 " is not %llu)", header.sector_size, SECTOR_SIZE); in vdi_open()
478 bs->total_sectors = header.disk_size / SECTOR_SIZE; in vdi_open()
481 s->bmap_sector = header.offset_bmap / SECTOR_SIZE; in vdi_open()
485 bmap_size = DIV_ROUND_UP(bmap_size, SECTOR_SIZE); in vdi_open()
[all …]
H A Dvmdk.c263 #define SECTOR_SIZE 512 macro
264 #define DESC_SIZE (20 * SECTOR_SIZE) /* 20 sectors of 512 bytes each */
833 assert(sizeof(const_header) == SECTOR_SIZE); in vmdk_open_se_sparse()
850 assert(sizeof(volatile_header) == SECTOR_SIZE); in vmdk_open_se_sparse()
852 ret = bdrv_pread(file, const_header.volatile_header_offset * SECTOR_SIZE, in vmdk_open_se_sparse()
870 const_header.grain_dir_offset * SECTOR_SIZE, in vmdk_open_se_sparse()
873 SECTOR_SIZE / sizeof(uint64_t), in vmdk_open_se_sparse()
875 SECTOR_SIZE / sizeof(uint64_t), in vmdk_open_se_sparse()
1605 offset -= (extent->end_sector - extent->sectors) * SECTOR_SIZE; in get_cluster_offset()
1630 l2_offset_u64 * l2_size_bytes / SECTOR_SIZE; in get_cluster_offset()
[all …]
/openbmc/linux/include/uapi/linux/
H A Dmsdos_fs.h13 #ifndef SECTOR_SIZE
14 #define SECTOR_SIZE 512 /* sector size (bytes) */ macro
19 #define MSDOS_DPS (SECTOR_SIZE / sizeof(struct msdos_dir_entry))
/openbmc/qemu/tests/qemu-iotests/
H A Dfat16.py21 SECTOR_SIZE = 512 variable
252 current_sector = start_sector + (i // SECTOR_SIZE)
253 current_offset = i % SECTOR_SIZE
296 self.fats_dirty_sectors.add(fat_offset // SECTOR_SIZE)
303 data = self.fats[sector * SECTOR_SIZE : (sector + 1) * SECTOR_SIZE]
446 + (offset // SECTOR_SIZE))
447 new_entry.offset = offset % SECTOR_SIZE
/openbmc/qemu/hw/arm/
H A Domap_sx1.c92 #define SECTOR_SIZE (128 * KiB) macro
159 SECTOR_SIZE, 4, 0, 0, 0, 0, 0); in sx1_init()
178 SECTOR_SIZE, 4, 0, 0, 0, 0, 0); in sx1_init()
/openbmc/qemu/tests/qemu-iotests/tests/
H A Dvvfat34 SECTOR_SIZE = 512 variable
120 rows = num * SECTOR_SIZE // 16
128 self.assertEqual(len(bytes_content), num * SECTOR_SIZE)
139 self.assertEqual(len(data) % SECTOR_SIZE, 0)
/openbmc/openbmc/poky/meta/recipes-devtools/syslinux/syslinux/
H A D0001-linux-syslinux-support-ext2-3-4-device.patch48 static unsigned char sectbuf[SECTOR_SIZE];
71 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset);
/openbmc/u-boot/include/
H A Dusb_mass_storage.h10 #define SECTOR_SIZE 0x200 macro
H A Dreiserfs.h18 #define SECTOR_SIZE 0x200 macro
H A Dzfs_common.h25 #define SECTOR_SIZE 0x200 macro
/openbmc/linux/drivers/mtd/nand/raw/
H A Ddiskonchip.c116 #define SECTOR_SIZE 512 macro
118 #define NB_DATA (((SECTOR_SIZE + 1) * 8 + 6) / 10)
195 if ((index >= 0 && index < SECTOR_SIZE) || index == (SECTOR_SIZE + 1)) { in doc_ecc_decode()
198 if (index < SECTOR_SIZE) in doc_ecc_decode()
205 if ((index >= 0 && index < SECTOR_SIZE) || index == (SECTOR_SIZE + 1)) { in doc_ecc_decode()
208 if (index < SECTOR_SIZE) in doc_ecc_decode()
/openbmc/linux/drivers/infiniband/ulp/iser/
H A Discsi_iser.h101 ((ISER_DEF_MAX_SECTORS * SECTOR_SIZE) >> ilog2(SZ_4K))
103 #define ISCSI_ISER_MAX_SG_TABLESIZE ((32768 * SECTOR_SIZE) >> ilog2(SZ_4K))
/openbmc/linux/fs/ntfs3/
H A Dfsntfs.c138 if ((fo & 1) || fo + fn * sizeof(short) > SECTOR_SIZE || !fn-- || in ntfs_fix_pre_write()
139 fn * SECTOR_SIZE > bytes) { in ntfs_fix_pre_write()
153 ptr = Add2Ptr(rhdr, SECTOR_SIZE - sizeof(short)); in ntfs_fix_pre_write()
158 ptr += SECTOR_SIZE / sizeof(short); in ntfs_fix_pre_write()
180 if ((fo & 1) || fo + fn * sizeof(short) > SECTOR_SIZE || !fn-- || in ntfs_fix_post_read()
181 fn * SECTOR_SIZE > bytes) { in ntfs_fix_post_read()
188 ptr = Add2Ptr(rhdr, SECTOR_SIZE - sizeof(short)); in ntfs_fix_post_read()
200 ptr += SECTOR_SIZE / sizeof(short); in ntfs_fix_post_read()
1429 if ((fo & 1) || fo + fn * sizeof(short) > SECTOR_SIZE || !fn-- || in ntfs_write_bh()
1430 fn * SECTOR_SIZE > bytes) { in ntfs_write_bh()
[all …]
/openbmc/linux/include/linux/
H A Dblk_types.h32 #ifndef SECTOR_SIZE
33 #define SECTOR_SIZE (1 << SECTOR_SHIFT) macro
/openbmc/u-boot/drivers/usb/gadget/
H A Df_mass_storage.c758 file_offset / SECTOR_SIZE, in do_read()
759 amount / SECTOR_SIZE, in do_read()
764 nread = rc * SECTOR_SIZE; in do_read()
932 file_offset / SECTOR_SIZE, in do_write()
933 amount / SECTOR_SIZE, in do_write()
937 nwritten = rc * SECTOR_SIZE; in do_write()
1048 file_offset / SECTOR_SIZE, in do_verify()
1049 amount / SECTOR_SIZE, in do_verify()
1053 nread = rc * SECTOR_SIZE; in do_verify()
/openbmc/linux/drivers/block/
H A Dbrd.c255 WARN_ON_ONCE((bvec.bv_offset & (SECTOR_SIZE - 1)) || in brd_submit_bio()
256 (len & (SECTOR_SIZE - 1))); in brd_submit_bio()
/openbmc/linux/fs/nfs/blocklayout/
H A Dblocklayout.h45 #define SECTOR_SIZE (1 << SECTOR_SHIFT) macro
/openbmc/linux/arch/um/drivers/
H A Dubd_kern.c747 ubd_dev->openflags, SECTOR_SIZE, PAGE_SIZE, in ubd_open_dev()
789 ubd_dev->queue->limits.discard_granularity = SECTOR_SIZE; in ubd_open_dev()
864 #define ROUND_BLOCK(n) ((n + (SECTOR_SIZE - 1)) & (-SECTOR_SIZE))
1289 io_req->sectorsize = SECTOR_SIZE; in ubd_alloc_req()
/openbmc/linux/drivers/scsi/
H A Dsd_zbc.c218 bufsize = roundup((nr_zones + 1) * 64, SECTOR_SIZE); in sd_zbc_alloc_report_buffer()
223 while (bufsize >= SECTOR_SIZE) { in sd_zbc_alloc_report_buffer()
229 bufsize = rounddown(bufsize >> 1, SECTOR_SIZE); in sd_zbc_alloc_report_buffer()
/openbmc/linux/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim_blk.c378 blk_config->blk_size = cpu_to_vdpasim32(vdpasim, SECTOR_SIZE); in vdpasim_blk_get_config()
381 cpu_to_vdpasim32(vdpasim, SECTOR_SIZE); in vdpasim_blk_get_config()
/openbmc/openbmc/poky/scripts/lib/wic/plugins/imager/
H A Ddirect.py296 SECTOR_SIZE = 512 variable
329 self.sector_size = SECTOR_SIZE
331 self.sector_size = SECTOR_SIZE
/openbmc/linux/drivers/dax/
H A Dsuper.c91 *start_off = get_start_sect(bdev) * SECTOR_SIZE; in fs_dax_get_by_bdev()
92 part_size = bdev_nr_sectors(bdev) * SECTOR_SIZE; in fs_dax_get_by_bdev()

123