/openbmc/linux/drivers/mtd/ |
H A D | rfd_ftl.c | 53 #define SECTOR_SIZE 512 macro 158 sectors_per_block = part->block_size / SECTOR_SIZE; in scan_header() 167 sizeof(u16) + SECTOR_SIZE - 1) / SECTOR_SIZE; in scan_header() 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() 379 if (!rc && retlen != SECTOR_SIZE) in move_block_contents() 633 if (!rc && retlen != SECTOR_SIZE) in do_writesect() 688 for (i=0; i<SECTOR_SIZE; i++) { in rfd_ftl_writesect() 698 if (i == SECTOR_SIZE) in rfd_ftl_writesect() [all …]
|
H A D | ftl.c | 106 #define SECTOR_SIZE 512 macro 431 u_char buf[SECTOR_SIZE]; in copy_erase_unit() 512 src += SECTOR_SIZE; in copy_erase_unit() 513 dest += SECTOR_SIZE; in copy_erase_unit() 771 memset(buffer, 0, SECTOR_SIZE); in ftl_read() 783 buffer += SECTOR_SIZE; in ftl_read() 809 blk = (log_addr % bsize) / SECTOR_SIZE; in set_bam_entry() 910 blk * SECTOR_SIZE); in ftl_write() 936 buffer += SECTOR_SIZE; in ftl_write() 937 virt_addr += SECTOR_SIZE; in ftl_write() [all …]
|
H A D | ssfdc.c | 35 #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 D | vdi.c | 88 #define SECTOR_SIZE 512 macro 411 if (header.disk_size % SECTOR_SIZE != 0) { in vdi_open() 429 } else if (header.offset_bmap % SECTOR_SIZE != 0) { in vdi_open() 435 } else if (header.offset_data % SECTOR_SIZE != 0) { in vdi_open() 441 } else if (header.sector_size != SECTOR_SIZE) { in vdi_open() 476 bs->total_sectors = header.disk_size / SECTOR_SIZE; in vdi_open() 479 s->bmap_sector = header.offset_bmap / SECTOR_SIZE; in vdi_open() 483 bmap_size = DIV_ROUND_UP(bmap_size, SECTOR_SIZE); in vdi_open() 724 bmap_last /= (SECTOR_SIZE / sizeof(uint32_t)); in vdi_co_pwritev() 824 bmap_size = ROUND_UP(bmap_size, SECTOR_SIZE); in vdi_co_do_create() [all …]
|
H A D | vmdk.c | 264 #define SECTOR_SIZE 512 macro 834 assert(sizeof(const_header) == SECTOR_SIZE); in vmdk_open_se_sparse() 851 assert(sizeof(volatile_header) == SECTOR_SIZE); in vmdk_open_se_sparse() 871 const_header.grain_dir_offset * SECTOR_SIZE, in vmdk_open_se_sparse() 874 SECTOR_SIZE / sizeof(uint64_t), in vmdk_open_se_sparse() 876 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() 1847 n_bytes > (extent->cluster_sectors * SECTOR_SIZE) || in vmdk_write_extent() 1848 (n_bytes < (extent->cluster_sectors * SECTOR_SIZE) && in vmdk_write_extent() [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | msdos_fs.h | 13 #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/hw/arm/ |
H A D | omap_sx1.c | 93 #define SECTOR_SIZE (128 * KiB) macro 160 SECTOR_SIZE, 4, 0, 0, 0, 0, 0); in sx1_init() 179 SECTOR_SIZE, 4, 0, 0, 0, 0, 0); in sx1_init()
|
/openbmc/u-boot/include/ |
H A D | usb_mass_storage.h | 10 #define SECTOR_SIZE 0x200 macro
|
H A D | reiserfs.h | 18 #define SECTOR_SIZE 0x200 macro
|
H A D | zfs_common.h | 25 #define SECTOR_SIZE 0x200 macro
|
H A D | ext_common.h | 23 #define SECTOR_SIZE 0x200 macro
|
/openbmc/openbmc/poky/meta/recipes-devtools/syslinux/syslinux/ |
H A D | 0001-linux-syslinux-support-ext2-3-4-device.patch | 48 static unsigned char sectbuf[SECTOR_SIZE]; 71 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset);
|
H A D | 0012-libinstaller-Fix-build-with-glibc-2.36.patch | 55 #undef SECTOR_SIZE /* Defined in msdos_fs.h for no good reason */
|
/openbmc/linux/drivers/infiniband/ulp/iser/ |
H A D | iscsi_iser.h | 101 ((ISER_DEF_MAX_SECTORS * SECTOR_SIZE) >> ilog2(SZ_4K)) 103 #define ISCSI_ISER_MAX_SG_TABLESIZE ((32768 * SECTOR_SIZE) >> ilog2(SZ_4K))
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | diskonchip.c | 116 #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/include/linux/ |
H A D | blk_types.h | 32 #ifndef SECTOR_SIZE 33 #define SECTOR_SIZE (1 << SECTOR_SHIFT) macro
|
/openbmc/linux/fs/ntfs3/ |
H A D | fsntfs.c | 138 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() 1430 fn * SECTOR_SIZE > bytes) { in ntfs_write_bh() 1468 ptr = Add2Ptr(bh_data, SECTOR_SIZE - sizeof(short)); in ntfs_write_bh() [all …]
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | f_mass_storage.c | 758 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/fs/nfs/blocklayout/ |
H A D | blocklayout.h | 45 #define SECTOR_SIZE (1 << SECTOR_SHIFT) macro
|
/openbmc/linux/drivers/block/ |
H A D | brd.c | 255 WARN_ON_ONCE((bvec.bv_offset & (SECTOR_SIZE - 1)) || in brd_submit_bio() 256 (len & (SECTOR_SIZE - 1))); in brd_submit_bio()
|
/openbmc/linux/arch/um/drivers/ |
H A D | ubd_kern.c | 759 ubd_dev->openflags, SECTOR_SIZE, PAGE_SIZE, in ubd_open_dev() 801 ubd_dev->queue->limits.discard_granularity = SECTOR_SIZE; in ubd_open_dev() 876 #define ROUND_BLOCK(n) ((n + (SECTOR_SIZE - 1)) & (-SECTOR_SIZE)) 1301 io_req->sectorsize = SECTOR_SIZE; in ubd_alloc_req()
|
/openbmc/linux/drivers/scsi/ |
H A D | sd_zbc.c | 218 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() 230 bufsize = rounddown(bufsize >> 1, SECTOR_SIZE); in sd_zbc_alloc_report_buffer()
|
/openbmc/linux/drivers/vdpa/vdpa_sim/ |
H A D | vdpa_sim_blk.c | 378 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/u-boot/cmd/ |
H A D | usb_mass_storage.c | 87 if (block_dev->blksz != SECTOR_SIZE) in ums_init()
|
/openbmc/linux/drivers/dax/ |
H A D | super.c | 91 *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()
|