Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/mtd/
Drfd_ftl.c53 #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()
255 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in rfd_ftl_readsect()
257 if (!rc && retlen != SECTOR_SIZE) in rfd_ftl_readsect()
266 memset(buf, 0, SECTOR_SIZE); in rfd_ftl_readsect()
331 sector_data = kmalloc(SECTOR_SIZE, GFP_KERNEL); in move_block_contents()
369 (i + part->header_sectors_per_block) * SECTOR_SIZE; in move_block_contents()
379 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in move_block_contents()
[all …]
Dftl.c106 #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 …]
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,
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dmsdos_fs.h24 #ifndef SECTOR_SIZE
25 #define SECTOR_SIZE 512 macro
30 #define MSDOS_DPS (SECTOR_SIZE / sizeof(struct msdos_dir_entry))
/kernel/linux/linux-5.10/include/uapi/linux/
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))
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dmsdos_fs.h11 #ifndef SECTOR_SIZE
12 #define SECTOR_SIZE 512 macro
17 #define MSDOS_DPS (SECTOR_SIZE / sizeof(struct msdos_dir_entry))
/kernel/linux/linux-5.10/drivers/ide/
Dide-disk_proc.c67 buf = kmalloc(SECTOR_SIZE, GFP_KERNEL); in __idedisk_proc_show()
77 for (i = 0; i < SECTOR_SIZE / 2; i++) { in __idedisk_proc_show()
Dide-taskfile.c292 nr_bytes = SECTOR_SIZE; in ide_pio_datablock()
309 nr_bytes -= SECTOR_SIZE; in ide_error_cmd()
438 nsect * SECTOR_SIZE, GFP_NOIO); in ide_raw_taskfile()
589 nsect = taskout / SECTOR_SIZE; in ide_taskfile_ioctl()
607 nsect = taskin / SECTOR_SIZE; in ide_taskfile_ioctl()
Dtc86c001.c125 outw(SECTOR_SIZE / 2, twcr_port); /* Transfer Word Count 1/2 */ in tc86c001_dma_start()
Dide-proc.c89 buf = kmalloc(SECTOR_SIZE, GFP_KERNEL); in ide_identify_proc_show()
96 for (i = 0; i < SECTOR_SIZE / 2; i++) { in ide_identify_proc_show()
Dide-ioctls.c169 bufsize = SECTOR_SIZE * args[3]; in ide_cmd_ioctl()
Dide-iops.c321 id = kmalloc(SECTOR_SIZE, GFP_ATOMIC); in ide_driveid_update()
Dide-probe.c203 hwif->tp_ops->input_data(drive, NULL, id, SECTOR_SIZE); in do_identify()
1200 memset(saved_id, 0, SECTOR_SIZE); in ide_port_init_devices_data()
1332 drive->id = kzalloc_node(SECTOR_SIZE, GFP_KERNEL, node); in ide_port_alloc_devices()
Dide-eh.c40 ide_pad_transfer(drive, READ, nsect * SECTOR_SIZE); in ide_ata_error()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
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()
/kernel/linux/linux-5.10/drivers/infiniband/ulp/iser/
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))
/kernel/linux/linux-5.10/fs/nfs/blocklayout/
Dblocklayout.h45 #define SECTOR_SIZE (1 << SECTOR_SHIFT) macro
Dblocklayout.c858 if (!is_aligned_req(pgio, req, SECTOR_SIZE, false)) { in bl_pg_init_read()
881 if (!is_aligned_req(pgio, req, SECTOR_SIZE, false)) in bl_pg_test_read()
/kernel/linux/linux-5.10/drivers/scsi/
Dsd_zbc.c166 bufsize = roundup((nr_zones + 1) * 64, SECTOR_SIZE); in sd_zbc_alloc_report_buffer()
171 while (bufsize >= SECTOR_SIZE) { in sd_zbc_alloc_report_buffer()
178 bufsize = rounddown(bufsize >> 1, SECTOR_SIZE); in sd_zbc_alloc_report_buffer()
/kernel/linux/linux-5.10/arch/um/drivers/
Dubd_kern.c807 ubd_dev->openflags, SECTOR_SIZE, PAGE_SIZE, in ubd_open_dev()
849 ubd_dev->queue->limits.discard_granularity = SECTOR_SIZE; in ubd_open_dev()
850 ubd_dev->queue->limits.discard_alignment = SECTOR_SIZE; in ubd_open_dev()
908 #define ROUND_BLOCK(n) ((n + (SECTOR_SIZE - 1)) & (-SECTOR_SIZE))
1370 io_req->sectorsize = SECTOR_SIZE; in ubd_alloc_req()
/kernel/linux/linux-5.10/drivers/block/
Dbrd.c301 WARN_ON_ONCE((bvec.bv_offset & (SECTOR_SIZE - 1)) || in brd_submit_bio()
302 (len & (SECTOR_SIZE - 1))); in brd_submit_bio()
/kernel/linux/linux-5.10/fs/pstore/
Dzone.c1359 check_size(kmsg_size, SECTOR_SIZE); in register_pstore_zone()
1360 check_size(pmsg_size, SECTOR_SIZE); in register_pstore_zone()
1361 check_size(console_size, SECTOR_SIZE); in register_pstore_zone()
1362 check_size(ftrace_size, SECTOR_SIZE); in register_pstore_zone()
1363 check_size(blackbox_size, SECTOR_SIZE); in register_pstore_zone()
/kernel/linux/linux-5.10/drivers/hyperhold/
Dhp_device.c79 dev->sec_size = SECTOR_SIZE; in bind_bdev()
/kernel/linux/linux-5.10/drivers/block/rnbd/
Drnbd-clt.c92 dev->max_hw_sectors = sess->max_io_size / SECTOR_SIZE; in rnbd_clt_set_dev_attr()
961 size = dev->size * (dev->logical_block_size / SECTOR_SIZE); in rnbd_client_getgeo()
1326 dev->nsectors * (dev->logical_block_size / SECTOR_SIZE) in rnbd_clt_setup_gen_disk()
/kernel/linux/linux-5.10/drivers/mmc/core/
Dqueue.c193 q->limits.discard_granularity = SECTOR_SIZE; in mmc_queue_setup_discard()

12