Home
last modified time | relevance | path

Searched refs:SECTOR_SIZE (Results 1 – 25 of 25) sorted by relevance

/linux/drivers/mtd/
A Drfd_ftl.c53 #define SECTOR_SIZE 512 macro
158 sectors_per_block = part->block_size / SECTOR_SIZE; in scan_header()
167 sizeof(u16) + SECTOR_SIZE - 1) / SECTOR_SIZE; in scan_header()
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()
379 if (!rc && retlen != SECTOR_SIZE) in move_block_contents()
633 if (!rc && retlen != SECTOR_SIZE) in do_writesect()
688 for (i=0; i<SECTOR_SIZE; i++) { in rfd_ftl_writesect()
698 if (i == SECTOR_SIZE) in rfd_ftl_writesect()
[all …]
A Dftl.c106 #define SECTOR_SIZE 512 macro
431 u_char buf[SECTOR_SIZE]; in copy_erase_unit()
512 src += SECTOR_SIZE; in copy_erase_unit()
513 dest += SECTOR_SIZE; in copy_erase_unit()
771 memset(buffer, 0, SECTOR_SIZE); in ftl_read()
783 buffer += SECTOR_SIZE; in ftl_read()
809 blk = (log_addr % bsize) / SECTOR_SIZE; in set_bam_entry()
910 blk * SECTOR_SIZE); in ftl_write()
936 buffer += SECTOR_SIZE; in ftl_write()
937 virt_addr += SECTOR_SIZE; in ftl_write()
[all …]
A Dssfdc.c35 #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/include/uapi/linux/
A Dmsdos_fs.h13 #ifndef SECTOR_SIZE
14 #define SECTOR_SIZE 512 /* sector size (bytes) */ macro
19 #define MSDOS_DPS (SECTOR_SIZE / sizeof(struct msdos_dir_entry))
/linux/include/linux/
A Dblk_types.h32 #ifndef SECTOR_SIZE
33 #define SECTOR_SIZE (1 << SECTOR_SHIFT) macro
/linux/drivers/mtd/nand/raw/
A Ddiskonchip.c116 #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/fs/ntfs3/
A Dfsntfs.c113 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()
1382 fn * SECTOR_SIZE > bytes) { in ntfs_write_bh()
1420 ptr = Add2Ptr(bh_data, SECTOR_SIZE - sizeof(short)); in ntfs_write_bh()
[all …]
A Dsuper.c709 if (boot->bytes_per_sector[0] || boot_sector_size < SECTOR_SIZE || in ntfs_init_from_boot()
731 SECTOR_SIZE > (2U << (-boot->record_size))) || in ntfs_init_from_boot()
738 SECTOR_SIZE > (2U << (-boot->index_size))) || in ntfs_init_from_boot()
A Dfslog.c435 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()
2652 fo = (SECTOR_SIZE - ((bytes >> SECTOR_SHIFT) + 1) * sizeof(short)); in check_index_buffer()
2657 if ((le16_to_cpu(r->fix_num) - 1) * SECTOR_SIZE != bytes) in check_index_buffer()
2795 fo > (SECTOR_SIZE - ((rs >> SECTOR_SHIFT) + 1) * sizeof(short)) || in check_file_record()
2796 (fn - 1) * SECTOR_SIZE != rs || ao < MFTRECORD_FIXUP_OFFSET_1 || in check_file_record()
A Dindex.c836 if (t32 != root->index_block_clst * SECTOR_SIZE) in indx_init()
/linux/arch/um/drivers/
A Dubd_kern.c760 ubd_dev->openflags, SECTOR_SIZE, PAGE_SIZE, in ubd_open_dev()
802 ubd_dev->queue->limits.discard_granularity = SECTOR_SIZE; in ubd_open_dev()
803 ubd_dev->queue->limits.discard_alignment = SECTOR_SIZE; in ubd_open_dev()
879 #define ROUND_BLOCK(n) ((n + (SECTOR_SIZE - 1)) & (-SECTOR_SIZE))
1312 io_req->sectorsize = SECTOR_SIZE; in ubd_alloc_req()
/linux/drivers/infiniband/ulp/iser/
A Discsi_iser.h101 ((ISER_DEF_MAX_SECTORS * SECTOR_SIZE) >> ilog2(SZ_4K))
103 #define ISCSI_ISER_MAX_SG_TABLESIZE ((32768 * SECTOR_SIZE) >> ilog2(SZ_4K))
A Diser_verbs.c534 sg_tablesize = DIV_ROUND_UP(max_sectors * SECTOR_SIZE, SZ_4K); in iser_calc_scsi_params()
/linux/drivers/scsi/
A Dsd_zbc.c165 bufsize = roundup((nr_zones + 1) * 64, SECTOR_SIZE); in sd_zbc_alloc_report_buffer()
170 while (bufsize >= SECTOR_SIZE) { in sd_zbc_alloc_report_buffer()
177 bufsize = rounddown(bufsize >> 1, SECTOR_SIZE); in sd_zbc_alloc_report_buffer()
A Daha1542.c1019 SECTOR_SIZE * AHA1542_MAX_SECTORS, in aha1542_init_cmd_priv()
1030 dma_free_coherent(shost->dma_dev, SECTOR_SIZE * AHA1542_MAX_SECTORS, in aha1542_exit_cmd_priv()
/linux/drivers/block/
A Dbrd.c297 WARN_ON_ONCE((bvec.bv_offset & (SECTOR_SIZE - 1)) || in brd_submit_bio()
298 (len & (SECTOR_SIZE - 1))); in brd_submit_bio()
A Drbd.c4853 size = (sector_t)rbd_dev->mapping.size / SECTOR_SIZE; in rbd_dev_update_size()
6263 if (result.uint_32 < SECTOR_SIZE) in rbd_parse_param()
6807 set_capacity(rbd_dev->disk, rbd_dev->mapping.size / SECTOR_SIZE); in rbd_dev_device_setup()
/linux/fs/nfs/blocklayout/
A Dblocklayout.h45 #define SECTOR_SIZE (1 << SECTOR_SHIFT) macro
A Dblocklayout.c853 if (!is_aligned_req(pgio, req, SECTOR_SIZE, false)) { in bl_pg_init_read()
876 if (!is_aligned_req(pgio, req, SECTOR_SIZE, false)) in bl_pg_test_read()
/linux/fs/pstore/
A Dzone.c1329 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/drivers/vdpa/vdpa_sim/
A Dvdpa_sim_blk.c239 blk_config->blk_size = cpu_to_vdpasim32(vdpasim, SECTOR_SIZE); in vdpasim_blk_get_config()
/linux/drivers/block/rnbd/
A Drnbd-clt.c94 dev->max_hw_sectors = sess->max_io_size / SECTOR_SIZE; in rnbd_clt_set_dev_attr()
973 size = dev->size * (dev->logical_block_size / SECTOR_SIZE); in rnbd_client_getgeo()
1401 dev->nsectors * (dev->logical_block_size / SECTOR_SIZE) in rnbd_clt_setup_gen_disk()
/linux/drivers/mmc/core/
A Dqueue.c191 q->limits.discard_granularity = SECTOR_SIZE; in mmc_queue_setup_discard()
/linux/fs/iomap/
A Dbuffered-io.c1523 return bioset_init(&iomap_ioend_bioset, 4 * (PAGE_SIZE / SECTOR_SIZE), in iomap_init()
/linux/fs/fat/
A Dinode.c1583 bpb->fat_sector_size = SECTOR_SIZE; in fat_read_static_bpb()

Completed in 120 milliseconds