| /Linux-v6.1/drivers/mtd/ |
| 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() 252 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in rfd_ftl_readsect() 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() 366 (i + part->header_sectors_per_block) * SECTOR_SIZE; in move_block_contents() 376 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in move_block_contents() [all …]
|
| D | ftl.c | 106 #define SECTOR_SIZE 512 macro 398 le32_to_cpu(part->header.BAMOffset), SECTOR_SIZE); in prepare_xfer() 431 u_char buf[SECTOR_SIZE]; in copy_erase_unit() 490 ret = mtd_read(part->mbd.mtd, src, SECTOR_SIZE, &retlen, in copy_erase_unit() 498 ret = mtd_write(part->mbd.mtd, dest, SECTOR_SIZE, &retlen, in copy_erase_unit() 512 src += SECTOR_SIZE; in copy_erase_unit() 513 dest += SECTOR_SIZE; in copy_erase_unit() 765 if (((sector+i) * SECTOR_SIZE) >= le32_to_cpu(part->header.FormattedSize)) { in ftl_read() 771 memset(buffer, 0, SECTOR_SIZE); in ftl_read() 775 ret = mtd_read(part->mbd.mtd, offset, SECTOR_SIZE, &retlen, in ftl_read() [all …]
|
| 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,
|
| /Linux-v6.1/include/uapi/linux/ |
| 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-v6.1/drivers/infiniband/ulp/iser/ |
| 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))
|
| D | iser_verbs.c | 532 sg_tablesize = DIV_ROUND_UP(max_sectors * SECTOR_SIZE, SZ_4K); in iser_calc_scsi_params()
|
| /Linux-v6.1/drivers/mtd/nand/raw/ |
| 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-v6.1/fs/ntfs3/ |
| D | fsntfs.c | 113 if ((fo & 1) || fo + fn * sizeof(short) > SECTOR_SIZE || !fn-- || in ntfs_fix_pre_write() 114 fn * SECTOR_SIZE > bytes) { in ntfs_fix_pre_write() 128 ptr = Add2Ptr(rhdr, SECTOR_SIZE - sizeof(short)); in ntfs_fix_pre_write() 133 ptr += SECTOR_SIZE / sizeof(short); in ntfs_fix_pre_write() 155 if ((fo & 1) || fo + fn * sizeof(short) > SECTOR_SIZE || !fn-- || in ntfs_fix_post_read() 156 fn * SECTOR_SIZE > bytes) { in ntfs_fix_post_read() 163 ptr = Add2Ptr(rhdr, SECTOR_SIZE - sizeof(short)); in ntfs_fix_post_read() 175 ptr += SECTOR_SIZE / sizeof(short); in ntfs_fix_post_read() 1381 if ((fo & 1) || fo + fn * sizeof(short) > SECTOR_SIZE || !fn-- || in ntfs_write_bh() 1382 fn * SECTOR_SIZE > bytes) { in ntfs_write_bh() [all …]
|
| D | super.c | 712 if (boot->bytes_per_sector[0] || boot_sector_size < SECTOR_SIZE || in ntfs_init_from_boot() 736 SECTOR_SIZE > (2U << (-boot->record_size))) || in ntfs_init_from_boot() 743 SECTOR_SIZE > (2U << (-boot->index_size))) || in ntfs_init_from_boot()
|
| D | fslog.c | 435 if (sys_page < SECTOR_SIZE || page_size < SECTOR_SIZE || in is_rst_page_hdr_valid() 473 SECTOR_SIZE - sizeof(short)) in is_rst_area_valid() 484 if (!IS_ALIGNED(off, 8) || ro + off > SECTOR_SIZE - sizeof(short)) in is_rst_area_valid() 538 if (usa_error && ra_len + ro > SECTOR_SIZE - sizeof(short)) in is_client_area_valid() 2650 fo = (SECTOR_SIZE - ((bytes >> SECTOR_SHIFT) + 1) * sizeof(short)); in check_index_buffer() 2655 if ((le16_to_cpu(r->fix_num) - 1) * SECTOR_SIZE != bytes) in check_index_buffer() 2793 fo > (SECTOR_SIZE - ((rs >> SECTOR_SHIFT) + 1) * sizeof(short)) || in check_file_record() 2794 (fn - 1) * SECTOR_SIZE != rs || ao < MFTRECORD_FIXUP_OFFSET_1 || in check_file_record()
|
| /Linux-v6.1/include/linux/ |
| D | blk_types.h | 32 #ifndef SECTOR_SIZE 33 #define SECTOR_SIZE (1 << SECTOR_SHIFT) macro
|
| /Linux-v6.1/drivers/vdpa/vdpa_sim/ |
| D | vdpa_sim_blk.c | 344 blk_config->blk_size = cpu_to_vdpasim32(vdpasim, SECTOR_SIZE); in vdpasim_blk_get_config() 347 cpu_to_vdpasim32(vdpasim, SECTOR_SIZE); in vdpasim_blk_get_config()
|
| /Linux-v6.1/fs/nfs/blocklayout/ |
| D | blocklayout.h | 45 #define SECTOR_SIZE (1 << SECTOR_SHIFT) macro
|
| D | blocklayout.c | 834 if (!is_aligned_req(pgio, req, SECTOR_SIZE, false)) { in bl_pg_init_read() 857 if (!is_aligned_req(pgio, req, SECTOR_SIZE, false)) in bl_pg_test_read()
|
| /Linux-v6.1/drivers/block/ |
| D | brd.c | 297 WARN_ON_ONCE((bvec.bv_offset & (SECTOR_SIZE - 1)) || in brd_submit_bio() 298 (len & (SECTOR_SIZE - 1))); in brd_submit_bio()
|
| /Linux-v6.1/arch/um/drivers/ |
| 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)) 1309 io_req->sectorsize = SECTOR_SIZE; in ubd_alloc_req()
|
| /Linux-v6.1/drivers/scsi/ |
| D | sd_zbc.c | 213 bufsize = roundup((nr_zones + 1) * 64, SECTOR_SIZE); in sd_zbc_alloc_report_buffer() 218 while (bufsize >= SECTOR_SIZE) { in sd_zbc_alloc_report_buffer() 225 bufsize = rounddown(bufsize >> 1, SECTOR_SIZE); in sd_zbc_alloc_report_buffer()
|
| D | aha1542.c | 1018 SECTOR_SIZE * AHA1542_MAX_SECTORS, in aha1542_init_cmd_priv() 1029 dma_free_coherent(shost->dma_dev, SECTOR_SIZE * AHA1542_MAX_SECTORS, in aha1542_exit_cmd_priv()
|
| /Linux-v6.1/drivers/dax/ |
| 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-v6.1/fs/pstore/ |
| D | zone.c | 1329 check_size(kmsg_size, SECTOR_SIZE); in register_pstore_zone() 1330 check_size(pmsg_size, SECTOR_SIZE); in register_pstore_zone() 1331 check_size(console_size, SECTOR_SIZE); in register_pstore_zone() 1332 check_size(ftrace_size, SECTOR_SIZE); in register_pstore_zone()
|
| /Linux-v6.1/drivers/block/rnbd/ |
| D | rnbd-clt.c | 952 size = dev->size * (limit->logical_block_size / SECTOR_SIZE); in rnbd_client_getgeo() 1340 dev->sess->max_io_size / SECTOR_SIZE); in setup_request_queue() 1383 (le16_to_cpu(rsp->logical_block_size) / SECTOR_SIZE)); in rnbd_clt_setup_gen_disk() 1637 sess->max_segments, sess->max_io_size / SECTOR_SIZE, in rnbd_clt_map_device()
|
| /Linux-v6.1/drivers/mmc/core/ |
| D | queue.c | 190 q->limits.discard_granularity = SECTOR_SIZE; in mmc_queue_setup_discard()
|
| /Linux-v6.1/block/partitions/ |
| D | core.c | 722 return folio_address(folio) + offset_in_folio(folio, n * SECTOR_SIZE); in read_part_sector()
|
| /Linux-v6.1/drivers/block/drbd/ |
| 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-v6.1/fs/iomap/ |
| D | buffered-io.c | 1549 return bioset_init(&iomap_ioend_bioset, 4 * (PAGE_SIZE / SECTOR_SIZE), in iomap_init()
|