/Linux-v5.4/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() 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 …]
|
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-v5.4/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-v5.4/drivers/ide/ |
D | ide-disk_proc.c | 67 buf = kmalloc(SECTOR_SIZE, GFP_KERNEL); in __idedisk_proc_show() 77 for (i = 0; i < SECTOR_SIZE / 2; i++) { in __idedisk_proc_show()
|
D | ide-taskfile.c | 293 nr_bytes = SECTOR_SIZE; in ide_pio_datablock() 310 nr_bytes -= SECTOR_SIZE; in ide_error_cmd() 439 nsect * SECTOR_SIZE, GFP_NOIO); in ide_raw_taskfile() 590 nsect = taskout / SECTOR_SIZE; in ide_taskfile_ioctl() 608 nsect = taskin / SECTOR_SIZE; in ide_taskfile_ioctl()
|
D | tc86c001.c | 125 outw(SECTOR_SIZE / 2, twcr_port); /* Transfer Word Count 1/2 */ in tc86c001_dma_start()
|
D | ide-proc.c | 89 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()
|
D | ide-ioctls.c | 160 bufsize = SECTOR_SIZE * args[3]; in ide_cmd_ioctl()
|
D | ide-iops.c | 321 id = kmalloc(SECTOR_SIZE, GFP_ATOMIC); in ide_driveid_update()
|
D | ide-probe.c | 203 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()
|
D | ide-eh.c | 40 ide_pad_transfer(drive, READ, nsect * SECTOR_SIZE); in ide_ata_error()
|
D | tx4939ide.c | 306 tx4939ide_writew(SECTOR_SIZE / 2, base, drive->dn ? in tx4939ide_dma_setup()
|
/Linux-v5.4/drivers/mtd/nand/raw/ |
D | diskonchip.c | 118 #define SECTOR_SIZE 512 macro 120 #define NB_DATA (((SECTOR_SIZE + 1) * 8 + 6) / 10) 197 if ((index >= 0 && index < SECTOR_SIZE) || index == (SECTOR_SIZE + 1)) { in doc_ecc_decode() 200 if (index < SECTOR_SIZE) in doc_ecc_decode() 207 if ((index >= 0 && index < SECTOR_SIZE) || index == (SECTOR_SIZE + 1)) { in doc_ecc_decode() 210 if (index < SECTOR_SIZE) in doc_ecc_decode()
|
/Linux-v5.4/arch/um/drivers/ |
D | ubd_kern.c | 804 ubd_dev->openflags, SECTOR_SIZE, PAGE_SIZE, in ubd_open_dev() 846 ubd_dev->queue->limits.discard_granularity = SECTOR_SIZE; in ubd_open_dev() 847 ubd_dev->queue->limits.discard_alignment = SECTOR_SIZE; in ubd_open_dev() 905 #define ROUND_BLOCK(n) ((n + (SECTOR_SIZE - 1)) & (-SECTOR_SIZE)) 1338 io_req->sectorsize = SECTOR_SIZE; in ubd_queue_one_vec()
|
/Linux-v5.4/drivers/infiniband/ulp/iser/ |
D | iscsi_iser.h | 106 ((ISER_DEF_MAX_SECTORS * SECTOR_SIZE) >> SHIFT_4K) 108 #define ISCSI_ISER_MAX_SG_TABLESIZE ((32768 * SECTOR_SIZE) >> SHIFT_4K)
|
/Linux-v5.4/fs/nfs/blocklayout/ |
D | blocklayout.h | 45 #define SECTOR_SIZE (1 << SECTOR_SHIFT) macro
|
D | blocklayout.c | 858 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()
|
/Linux-v5.4/samples/mic/mpssd/ |
D | mpssd.c | 982 #define SECTOR_SIZE 512 macro 994 mic->mic_virtblk.backend_size / SECTOR_SIZE; in set_backend_size() 995 if ((mic->mic_virtblk.backend_size % SECTOR_SIZE) != 0) in set_backend_size() 1246 (hdr.sector * SECTOR_SIZE); in virtio_block()
|
/Linux-v5.4/include/linux/ |
D | blkdev.h | 912 #ifndef SECTOR_SIZE 913 #define SECTOR_SIZE (1 << SECTOR_SHIFT) macro
|
/Linux-v5.4/fs/fat/ |
D | inode.c | 1542 bd_sects = i_size_read(sb->s_bdev->bd_inode) / SECTOR_SIZE; in fat_read_static_bpb() 1583 bpb->fat_sector_size = SECTOR_SIZE; in fat_read_static_bpb()
|
/Linux-v5.4/drivers/scsi/ |
D | gdth.c | 1929 mpd.bd.block_length[0] = (SECTOR_SIZE & 0x00ff0000) >> 16; in gdth_internal_cache_cmd() 1930 mpd.bd.block_length[1] = (SECTOR_SIZE & 0x0000ff00) >> 8; in gdth_internal_cache_cmd() 1931 mpd.bd.block_length[2] = (SECTOR_SIZE & 0x000000ff); in gdth_internal_cache_cmd() 1941 rdc.block_length = cpu_to_be32(SECTOR_SIZE); in gdth_internal_cache_cmd() 1952 rdc16.block_length = cpu_to_be32(SECTOR_SIZE); in gdth_internal_cache_cmd()
|
/Linux-v5.4/fs/iomap/ |
D | buffered-io.c | 33 bitmap_zero(iop->uptodate, PAGE_SIZE / SECTOR_SIZE); in iomap_page_create()
|
/Linux-v5.4/fs/xfs/ |
D | xfs_super.c | 1856 if (bioset_init(&xfs_ioend_bioset, 4 * (PAGE_SIZE / SECTOR_SIZE), in xfs_init_zones()
|
/Linux-v5.4/drivers/block/ |
D | rbd.c | 908 if (intval < SECTOR_SIZE) { in parse_rbd_opts_token() 5058 size = (sector_t)rbd_dev->mapping.size / SECTOR_SIZE; in rbd_dev_update_size() 6891 set_capacity(rbd_dev->disk, rbd_dev->mapping.size / SECTOR_SIZE); in rbd_dev_device_setup()
|