/linux-master/fs/bcachefs/ |
H A D | fs-io-direct.c | 81 if ((offset|iter->count) & (SECTOR_SIZE - 1))
|
/linux-master/include/linux/ |
H A D | blk_types.h | 33 #ifndef SECTOR_SIZE 34 #define SECTOR_SIZE (1 << SECTOR_SHIFT) macro
|
/linux-master/fs/ntfs3/ |
H A D | super.c | 919 if (boot_sector_size < SECTOR_SIZE || 966 if (record_size < SECTOR_SIZE || !is_power_of_2(record_size)) { 989 if (sbi->index_size < SECTOR_SIZE || !is_power_of_2(sbi->index_size)) {
|
H A D | index.c | 900 if (t32 != root->index_block_clst * SECTOR_SIZE)
|
H A D | fsntfs.c | 138 if ((fo & 1) || fo + fn * sizeof(short) > SECTOR_SIZE || !fn-- || 139 fn * SECTOR_SIZE > bytes) { 153 ptr = Add2Ptr(rhdr, SECTOR_SIZE - sizeof(short)); 158 ptr += SECTOR_SIZE / sizeof(short); 180 if ((fo & 1) || fo + fn * sizeof(short) > SECTOR_SIZE || !fn-- || 181 fn * SECTOR_SIZE > bytes) { 188 ptr = Add2Ptr(rhdr, SECTOR_SIZE - sizeof(short)); 200 ptr += SECTOR_SIZE / sizeof(short); 1429 if ((fo & 1) || fo + fn * sizeof(short) > SECTOR_SIZE || !fn-- || 1430 fn * SECTOR_SIZE > byte [all...] |
/linux-master/fs/netfs/ |
H A D | buffered_write.c | 141 gap = SECTOR_SIZE - (i_size & (SECTOR_SIZE - 1)); 143 add = DIV_ROUND_UP(copied - gap, SECTOR_SIZE); 146 DIV_ROUND_UP(pos, SECTOR_SIZE),
|
/linux-master/fs/iomap/ |
H A D | buffered-io.c | 2001 return bioset_init(&iomap_ioend_bioset, 4 * (PAGE_SIZE / SECTOR_SIZE),
|
/linux-master/drivers/ufs/core/ |
H A D | ufshcd.c | 8922 .max_sectors = SZ_1M / SECTOR_SIZE,
|
/linux-master/drivers/scsi/ |
H A D | sd_zbc.c | 178 * to SECTOR_SIZE for ATA devices. 185 bufsize = roundup((nr_zones + 1) * 64, SECTOR_SIZE); 190 while (bufsize >= SECTOR_SIZE) { 197 bufsize = rounddown(bufsize >> 1, SECTOR_SIZE);
|
/linux-master/drivers/md/ |
H A D | md-bitmap.c | 149 index * (PAGE_SIZE / SECTOR_SIZE); 215 start + opt_size / SECTOR_SIZE <= boundary) 217 if (start + io_size / SECTOR_SIZE <= boundary) 231 sector_t ps = pg_index * PAGE_SIZE / SECTOR_SIZE; 254 sboff < (doff + mddev->dev_sectors + PAGE_SIZE / SECTOR_SIZE))
|
/linux-master/drivers/block/ |
H A D | brd.c | 237 WARN_ON_ONCE((bvec.bv_offset & (SECTOR_SIZE - 1)) || 238 (len & (SECTOR_SIZE - 1)));
|
H A D | rbd.c | 4939 size = (sector_t)rbd_dev->mapping.size / SECTOR_SIZE; 6286 if (result.uint_32 < SECTOR_SIZE) 6819 set_capacity(rbd_dev->disk, rbd_dev->mapping.size / SECTOR_SIZE);
|
/linux-master/block/partitions/ |
H A D | core.c | 717 return folio_address(folio) + offset_in_folio(folio, n * SECTOR_SIZE);
|
/linux-master/block/ |
H A D | blk-settings.c | 38 lim->logical_block_size = SECTOR_SIZE; 39 lim->physical_block_size = SECTOR_SIZE; 40 lim->io_min = SECTOR_SIZE; 41 lim->discard_granularity = SECTOR_SIZE; 42 lim->dma_alignment = SECTOR_SIZE - 1; 113 lim->logical_block_size = SECTOR_SIZE; 149 if (lim->max_user_sectors < PAGE_SIZE / SECTOR_SIZE) 213 lim->dma_alignment = SECTOR_SIZE - 1;
|
/linux-master/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)) { 198 if (index < SECTOR_SIZE) 205 if ((index >= 0 && index < SECTOR_SIZE) || index == (SECTOR_SIZE + 1)) { 208 if (index < SECTOR_SIZE)
|
/linux-master/fs/exfat/ |
H A D | exfat_fs.h | 149 (DIV_ROUND_UP(EXFAT_DEN_TO_B(ES_MAX_ENTRY_NUM), SECTOR_SIZE) + 1)
|
/linux-master/drivers/mtd/ |
H A D | ssfdc.c | 34 #define SECTOR_SIZE 512 macro 111 sect_buf = kmalloc(SECTOR_SIZE, GFP_KERNEL); 122 ret = mtd_read(mtd, offset, SECTOR_SIZE, &retlen, 126 if (ret < 0 || retlen != SECTOR_SIZE) { 155 ret = mtd_read(mtd, offset, SECTOR_SIZE, &retlen, sect_buf); 156 if (ret < 0 || retlen != SECTOR_SIZE) 400 memset(buf, 0xff, SECTOR_SIZE); 430 .blksize = SECTOR_SIZE,
|
/linux-master/drivers/mmc/core/ |
H A D | queue.c | 194 lim->discard_granularity = SECTOR_SIZE;
|
/linux-master/drivers/dax/ |
H A D | super.c | 92 *start_off = get_start_sect(bdev) * SECTOR_SIZE; 93 part_size = bdev_nr_sectors(bdev) * SECTOR_SIZE;
|
/linux-master/fs/pstore/ |
H A D | zone.c | 1330 check_size(kmsg_size, SECTOR_SIZE); 1331 check_size(pmsg_size, SECTOR_SIZE); 1332 check_size(console_size, SECTOR_SIZE); 1333 check_size(ftrace_size, SECTOR_SIZE);
|
/linux-master/fs/nfs/blocklayout/ |
H A D | blocklayout.h | 45 #define SECTOR_SIZE (1 << SECTOR_SHIFT) macro
|
/linux-master/fs/fat/ |
H A D | inode.c | 1590 bpb->fat_sector_size = SECTOR_SIZE;
|
/linux-master/drivers/target/ |
H A D | target_core_iblock.c | 133 SECTOR_SIZE,
|
/linux-master/drivers/block/rnbd/ |
H A D | rnbd-clt.c | 952 size = dev->size * (limit->logical_block_size / SECTOR_SIZE); 1348 (le16_to_cpu(rsp->logical_block_size) / SECTOR_SIZE)); 1373 .max_hw_sectors = dev->sess->max_io_size / SECTOR_SIZE, 1626 sess->max_segments, sess->max_io_size / SECTOR_SIZE,
|
/linux-master/arch/um/drivers/ |
H A D | ubd_kern.c | 750 ubd_dev->openflags, SECTOR_SIZE, PAGE_SIZE, 838 #define ROUND_BLOCK(n) ((n + (SECTOR_SIZE - 1)) & (-SECTOR_SIZE)) 1263 io_req->sectorsize = SECTOR_SIZE;
|