| /linux/drivers/mtd/ |
| H A D | rfd_ftl.c | 53 #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() 251 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in rfd_ftl_readsect() 253 if (!rc && retlen != SECTOR_SIZE) in rfd_ftl_readsect() 262 memset(buf, 0, SECTOR_SIZE); in rfd_ftl_readsect() 327 sector_data = kmalloc(SECTOR_SIZE, GFP_KERNEL); in move_block_contents() 365 (i + part->header_sectors_per_block) * SECTOR_SIZE; in move_block_contents() 375 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in move_block_contents() [all …]
|
| H A D | ftl.c | 106 #define SECTOR_SIZE 512 macro 395 le32_to_cpu(part->header.BAMOffset), SECTOR_SIZE); in prepare_xfer() 428 u_char buf[SECTOR_SIZE]; in copy_erase_unit() 487 ret = mtd_read(part->mbd.mtd, src, SECTOR_SIZE, &retlen, in copy_erase_unit() 495 ret = mtd_write(part->mbd.mtd, dest, SECTOR_SIZE, &retlen, in copy_erase_unit() 509 src += SECTOR_SIZE; in copy_erase_unit() 510 dest += SECTOR_SIZE; in copy_erase_unit() 762 if (((sector+i) * SECTOR_SIZE) >= le32_to_cpu(part->header.FormattedSize)) { in ftl_read() 768 memset(buffer, 0, SECTOR_SIZE); in ftl_read() 772 ret = mtd_read(part->mbd.mtd, offset, SECTOR_SIZE, &retlen, in ftl_read() [all …]
|
| H A D | ssfdc.c | 34 #define SECTOR_SIZE 512 macro 111 sect_buf = kmalloc(SECTOR_SIZE, GFP_KERNEL); in get_valid_cis_sector() 122 ret = mtd_read(mtd, offset, SECTOR_SIZE, &retlen, in get_valid_cis_sector() 126 if (ret < 0 || retlen != SECTOR_SIZE) { in get_valid_cis_sector() 155 ret = mtd_read(mtd, offset, SECTOR_SIZE, &retlen, sect_buf); in read_physical_sector() 156 if (ret < 0 || retlen != SECTOR_SIZE) in read_physical_sector() 400 memset(buf, 0xff, SECTOR_SIZE); in ssfdcr_readsect() 430 .blksize = SECTOR_SIZE,
|
| /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))
|
| /linux/fs/netfs/ |
| H A D | buffered_write.c | 61 gap = SECTOR_SIZE - (i_size & (SECTOR_SIZE - 1)); in netfs_update_i_size() 63 add = DIV_ROUND_UP(copied - gap, SECTOR_SIZE); in netfs_update_i_size() 66 DIV_ROUND_UP(end, SECTOR_SIZE), in netfs_update_i_size()
|
| /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()
|
| /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))
|
| H A D | iser_verbs.c | 512 sg_tablesize = DIV_ROUND_UP(max_sectors * SECTOR_SIZE, SZ_4K); in iser_calc_scsi_params()
|
| /linux/fs/ntfs/ |
| H A D | bdev-io.c | 39 if (start & (SECTOR_SIZE - 1)) in ntfs_bdev_read()
|
| H A D | iomap.c | 366 if ((offset | length) & (SECTOR_SIZE - 1)) in ntfs_dio_zero_range()
|
| H A D | inode.c | 1753 round_up(rl_byte_len, SECTOR_SIZE)); in load_attribute_list_mount() 1945 ni->attr_list = kvzalloc(round_up(ni->attr_list_size, SECTOR_SIZE), in ntfs_read_inode_mount()
|
| /linux/fs/nfs/blocklayout/ |
| H A D | blocklayout.h | 45 #define SECTOR_SIZE (1 << SECTOR_SHIFT) macro
|
| /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()
|
| /linux/arch/um/drivers/ |
| H A D | ubd_kern.c | 736 ubd_dev->openflags, SECTOR_SIZE, PAGE_SIZE, in ubd_open_dev() 823 #define ROUND_BLOCK(n) ((n + (SECTOR_SIZE - 1)) & (-SECTOR_SIZE)) 1242 io_req->sectorsize = SECTOR_SIZE; in ubd_alloc_req()
|
| /linux/fs/pstore/ |
| H A D | zone.c | 1336 check_size(kmsg_size, SECTOR_SIZE); in register_pstore_zone() 1337 check_size(pmsg_size, SECTOR_SIZE); in register_pstore_zone() 1338 check_size(console_size, SECTOR_SIZE); in register_pstore_zone() 1339 check_size(ftrace_size, SECTOR_SIZE); in register_pstore_zone()
|
| /linux/drivers/block/ |
| H A D | loop.c | 473 return SECTOR_SIZE; in loop_query_min_dio_size() 944 return SECTOR_SIZE; in loop_default_blocksize() 1138 lim.logical_block_size = SECTOR_SIZE; in __loop_clr_fd() 1139 lim.physical_block_size = SECTOR_SIZE; in __loop_clr_fd() 1140 lim.io_min = SECTOR_SIZE; in __loop_clr_fd()
|
| H A D | virtio_blk.c | 1441 .logical_block_size = SECTOR_SIZE, in virtblk_probe()
|
| H A D | zloop.c | 1053 zlo->block_size = SECTOR_SIZE; in zloop_get_block_size()
|
| H A D | rbd.c | 4936 size = (sector_t)rbd_dev->mapping.size / SECTOR_SIZE; in rbd_dev_update_size() 6275 if (result.uint_32 < SECTOR_SIZE) in rbd_parse_param() 6811 set_capacity(rbd_dev->disk, rbd_dev->mapping.size / SECTOR_SIZE); in rbd_dev_device_setup()
|
| /linux/drivers/block/rnbd/ |
| H A D | rnbd-clt.c | 954 size = dev->size * (limit->logical_block_size / SECTOR_SIZE); in rnbd_client_getgeo() 1349 (le16_to_cpu(rsp->logical_block_size) / SECTOR_SIZE)); in rnbd_clt_setup_gen_disk() 1370 .max_hw_sectors = dev->sess->max_io_size / SECTOR_SIZE, in rnbd_client_setup_device() 1625 sess->max_segments, sess->max_io_size / SECTOR_SIZE, in rnbd_clt_map_device()
|
| /linux/drivers/md/ |
| H A D | md-bitmap.c | 353 index * (PAGE_SIZE / SECTOR_SIZE); in read_sb_page() 419 start + opt_size / SECTOR_SIZE <= boundary) in bitmap_io_size() 421 if (start + io_size / SECTOR_SIZE <= boundary) in bitmap_io_size() 437 sector_t ps = pg_index * PAGE_SIZE / SECTOR_SIZE; in __write_sb_page() 460 sboff < (doff + mddev->dev_sectors + PAGE_SIZE / SECTOR_SIZE)) in __write_sb_page()
|
| /linux/fs/iomap/ |
| H A D | ioend.c | 507 return bioset_init(&iomap_ioend_bioset, 4 * (PAGE_SIZE / SECTOR_SIZE), in iomap_ioend_init()
|
| /linux/drivers/block/drbd/ |
| H A D | drbd_bitmap.c | 1011 if (len_sect < PAGE_SIZE/SECTOR_SIZE) in bm_page_io_async() 1012 len = (unsigned int)len_sect*SECTOR_SIZE; in bm_page_io_async()
|
| /linux/drivers/block/null_blk/ |
| H A D | zoned.c | 245 unsigned int nr_sectors = DIV_ROUND_UP(len, SECTOR_SIZE); in null_zone_valid_read_len()
|
| /linux/fs/gfs2/ |
| H A D | ops_fstype.c | 167 if (sb->sb_bsize < SECTOR_SIZE || sb->sb_bsize > PAGE_SIZE || in gfs2_check_sb() 1151 sdp->sd_sb.sb_bsize = sb_min_blocksize(sb, SECTOR_SIZE); in gfs2_fill_super()
|