| /linux/drivers/mtd/ |
| 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 | 80 gap = SECTOR_SIZE - (i_size & (SECTOR_SIZE - 1)); in netfs_update_i_size() 82 add = DIV_ROUND_UP(copied - gap, SECTOR_SIZE); in netfs_update_i_size() 85 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/include/linux/ |
| H A D | blk_types.h | 33 #ifndef SECTOR_SIZE 34 #define SECTOR_SIZE (1 << SECTOR_SHIFT) macro
|
| /linux/fs/nfs/blocklayout/ |
| H A D | blocklayout.h | 45 #define SECTOR_SIZE (1 << SECTOR_SHIFT) macro
|
| H A D | blocklayout.c | 856 if (!is_aligned_req(pgio, req, SECTOR_SIZE, false)) { in bl_pg_init_read() 879 if (!is_aligned_req(pgio, req, SECTOR_SIZE, false)) in bl_pg_test_read()
|
| /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/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()
|
| /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)) 1246 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/fs/iomap/ |
| H A D | ioend.c | 428 return bioset_init(&iomap_ioend_bioset, 4 * (PAGE_SIZE / SECTOR_SIZE), in iomap_ioend_init()
|
| /linux/drivers/mmc/core/ |
| H A D | queue.c | 194 lim->discard_granularity = SECTOR_SIZE; in mmc_queue_setup_discard()
|
| /linux/fs/exfat/ |
| H A D | exfat_fs.h | 147 (DIV_ROUND_UP(EXFAT_DEN_TO_B(ES_MAX_ENTRY_NUM), SECTOR_SIZE) + 1)
|
| /linux/block/partitions/ |
| H A D | core.c | 727 return folio_address(folio) + offset_in_folio(folio, n * SECTOR_SIZE); in read_part_sector()
|
| /linux/drivers/target/ |
| H A D | target_core_iblock.c | 138 SECTOR_SIZE, in iblock_configure_device()
|
| /linux/drivers/vhost/ |
| H A D | scsi.c | 838 (offset & (SECTOR_SIZE - 1) || n & (SECTOR_SIZE - 1)) && in vhost_scsi_map_to_sgl()
|
| /linux/fs/fat/ |
| H A D | inode.c | 1518 bpb->fat_sector_size = SECTOR_SIZE; in fat_read_static_bpb()
|
| /linux/drivers/block/null_blk/ |
| H A D | main.c | 1247 valid_len -= pos & (SECTOR_SIZE - 1); in null_transfer()
|
| /linux/drivers/ufs/core/ |
| H A D | ufshcd.c | 9319 .max_sectors = SZ_1M / SECTOR_SIZE,
|