/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,
|
H A D | ftl.c | 106 #define SECTOR_SIZE 512 macro 398 le32_to_cpu(part->header.BAMOffset), SECTOR_SIZE); 431 u_char buf[SECTOR_SIZE]; 490 ret = mtd_read(part->mbd.mtd, src, SECTOR_SIZE, &retlen, 498 ret = mtd_write(part->mbd.mtd, dest, SECTOR_SIZE, &retlen, 512 src += SECTOR_SIZE; 513 dest += SECTOR_SIZE; 765 if (((sector+i) * SECTOR_SIZE) >= le32_to_cpu(part->header.FormattedSize)) { 771 memset(buffer, 0, SECTOR_SIZE); 775 ret = mtd_read(part->mbd.mtd, offset, SECTOR_SIZE, [all...] |
H A D | rfd_ftl.c | 53 #define SECTOR_SIZE 512 macro 140 (i + part->header_sectors_per_block) * SECTOR_SIZE; 158 sectors_per_block = part->block_size / SECTOR_SIZE; 167 sizeof(u16) + SECTOR_SIZE - 1) / SECTOR_SIZE; 252 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, 254 if (!rc && retlen != SECTOR_SIZE) 263 memset(buf, 0, SECTOR_SIZE); 328 sector_data = kmalloc(SECTOR_SIZE, GFP_KERNEL); 366 (i + part->header_sectors_per_block) * SECTOR_SIZE; [all...] |
/linux-master/include/uapi/linux/ |
H A D | msdos_fs.h | 13 #ifndef SECTOR_SIZE 14 #define SECTOR_SIZE 512 /* sector size (bytes) */ macro 16 #define SECTOR_BITS 9 /* log2(SECTOR_SIZE) */ 19 #define MSDOS_DPS (SECTOR_SIZE / sizeof(struct msdos_dir_entry))
|
/linux-master/include/linux/ |
H A D | blk_types.h | 33 #ifndef SECTOR_SIZE 34 #define SECTOR_SIZE (1 << SECTOR_SHIFT) macro
|
/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) 210 lim->dma_alignment = SECTOR_SIZE - 1;
|
/linux-master/fs/nfs/blocklayout/ |
H A D | blocklayout.h | 45 #define SECTOR_SIZE (1 << SECTOR_SHIFT) macro
|
H A D | blocklayout.c | 836 if (!is_aligned_req(pgio, req, SECTOR_SIZE, false)) { 859 if (!is_aligned_req(pgio, req, SECTOR_SIZE, false))
|
/linux-master/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))
|
/linux-master/drivers/scsi/ |
H A D | sd_zbc.c | 211 * to SECTOR_SIZE for ATA devices. 218 bufsize = roundup((nr_zones + 1) * 64, SECTOR_SIZE); 223 while (bufsize >= SECTOR_SIZE) { 230 bufsize = rounddown(bufsize >> 1, SECTOR_SIZE);
|
H A D | aha1542.c | 1019 SECTOR_SIZE * AHA1542_MAX_SECTORS, 1030 dma_free_coherent(shost->dma_dev, SECTOR_SIZE * AHA1542_MAX_SECTORS,
|
/linux-master/fs/ntfs3/ |
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...] |
H A D | fslog.c | 435 if (sys_page < SECTOR_SIZE || page_size < SECTOR_SIZE || 473 SECTOR_SIZE - sizeof(short)) 484 if (!IS_ALIGNED(off, 8) || ro + off > SECTOR_SIZE - sizeof(short)) 540 if (usa_error && ra_len + ro > SECTOR_SIZE - sizeof(short)) 2628 fo = (SECTOR_SIZE - ((bytes >> SECTOR_SHIFT) + 1) * sizeof(short)); 2633 if ((le16_to_cpu(r->fix_num) - 1) * SECTOR_SIZE != bytes) 2775 fo > (SECTOR_SIZE - ((rs >> SECTOR_SHIFT) + 1) * sizeof(short)) || 2776 (fn - 1) * SECTOR_SIZE != rs || ao < MFTRECORD_FIXUP_OFFSET_1 ||
|
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)) {
|
/linux-master/drivers/vdpa/vdpa_sim/ |
H A D | vdpa_sim_blk.c | 378 blk_config->blk_size = cpu_to_vdpasim32(vdpasim, SECTOR_SIZE); 381 cpu_to_vdpasim32(vdpasim, SECTOR_SIZE);
|
/linux-master/drivers/block/ |
H A D | brd.c | 255 WARN_ON_ONCE((bvec.bv_offset & (SECTOR_SIZE - 1)) || 256 (len & (SECTOR_SIZE - 1)));
|
/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/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/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/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;
|
/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/drivers/mmc/core/ |
H A D | queue.c | 194 lim->discard_granularity = 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/block/partitions/ |
H A D | core.c | 720 return folio_address(folio) + offset_in_folio(folio, n * 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)
|