Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/mtd/
Drfd_ftl.c52 #define SECTOR_SIZE 512 macro
139 (i + part->header_sectors_per_block) * SECTOR_SIZE; in build_block_map()
157 sectors_per_block = part->block_size / SECTOR_SIZE; in scan_header()
166 sizeof(u16) + SECTOR_SIZE - 1) / SECTOR_SIZE; in scan_header()
253 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in rfd_ftl_readsect()
255 if (!rc && retlen != SECTOR_SIZE) in rfd_ftl_readsect()
264 memset(buf, 0, SECTOR_SIZE); in rfd_ftl_readsect()
366 sector_data = kmalloc(SECTOR_SIZE, GFP_KERNEL); in move_block_contents()
404 (i + part->header_sectors_per_block) * SECTOR_SIZE; in move_block_contents()
414 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in move_block_contents()
[all …]
Dftl.c106 #define SECTOR_SIZE 512 macro
433 le32_to_cpu(part->header.BAMOffset) + SECTOR_SIZE - 1) / SECTOR_SIZE; in prepare_xfer()
466 u_char buf[SECTOR_SIZE]; in copy_erase_unit()
525 ret = mtd_read(part->mbd.mtd, src, SECTOR_SIZE, &retlen, in copy_erase_unit()
533 ret = mtd_write(part->mbd.mtd, dest, SECTOR_SIZE, &retlen, in copy_erase_unit()
547 src += SECTOR_SIZE; in copy_erase_unit()
548 dest += SECTOR_SIZE; in copy_erase_unit()
804 if (((sector+i) * SECTOR_SIZE) >= le32_to_cpu(part->header.FormattedSize)) { in ftl_read()
810 memset(buffer, 0, SECTOR_SIZE); in ftl_read()
814 ret = mtd_read(part->mbd.mtd, offset, SECTOR_SIZE, &retlen, in ftl_read()
[all …]
Dssfdc.c38 #define SECTOR_SIZE 512 macro
115 sect_buf = kmalloc(SECTOR_SIZE, GFP_KERNEL); in get_valid_cis_sector()
126 ret = mtd_read(mtd, offset, SECTOR_SIZE, &retlen, in get_valid_cis_sector()
130 if (ret < 0 || retlen != SECTOR_SIZE) { in get_valid_cis_sector()
159 ret = mtd_read(mtd, offset, SECTOR_SIZE, &retlen, sect_buf); in read_physical_sector()
160 if (ret < 0 || retlen != SECTOR_SIZE) in read_physical_sector()
403 memset(buf, 0xff, SECTOR_SIZE); in ssfdcr_readsect()
433 .blksize = SECTOR_SIZE,
/linux-4.1.27/drivers/ide/
Dide-cd.h24 #ifndef SECTOR_SIZE
25 #define SECTOR_SIZE (1 << SECTOR_BITS) macro
Dide-disk_proc.c92 buf = kmalloc(SECTOR_SIZE, GFP_KERNEL); in __idedisk_proc_show()
102 for (i = 0; i < SECTOR_SIZE / 2; i++) { in __idedisk_proc_show()
Dide-taskfile.c299 nr_bytes = SECTOR_SIZE; in ide_pio_datablock()
316 nr_bytes -= SECTOR_SIZE; in ide_error_cmd()
444 nsect * SECTOR_SIZE, __GFP_WAIT); in ide_raw_taskfile()
595 nsect = taskout / SECTOR_SIZE; in ide_taskfile_ioctl()
613 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.c127 buf = kmalloc(SECTOR_SIZE, GFP_KERNEL); in ide_identify_proc_show()
134 for (i = 0; i < SECTOR_SIZE / 2; i++) { in ide_identify_proc_show()
Dide-ioctls.c158 bufsize = SECTOR_SIZE * args[3]; in ide_cmd_ioctl()
Dide-probe.c201 hwif->tp_ops->input_data(drive, NULL, id, SECTOR_SIZE); in do_identify()
1136 memset(saved_id, 0, SECTOR_SIZE); in ide_port_init_devices_data()
1268 drive->id = kzalloc_node(SECTOR_SIZE, GFP_KERNEL, node); in ide_port_alloc_devices()
Dide-iops.c315 id = kmalloc(SECTOR_SIZE, GFP_ATOMIC); in ide_driveid_update()
Dide-eh.c39 ide_pad_transfer(drive, READ, nsect * SECTOR_SIZE); in ide_ata_error()
Dtx4939ide.c307 tx4939ide_writew(SECTOR_SIZE / 2, base, drive->dn ? in tx4939ide_dma_setup()
/linux-4.1.27/include/uapi/linux/
Dmsdos_fs.h12 #define SECTOR_SIZE 512 /* sector size (bytes) */ macro
16 #define MSDOS_DPS (SECTOR_SIZE / sizeof(struct msdos_dir_entry))
/linux-4.1.27/drivers/mtd/nand/
Ddiskonchip.c119 #define SECTOR_SIZE 512 macro
121 #define NB_DATA (((SECTOR_SIZE + 1) * 8 + 6) / 10)
200 if ((index >= 0 && index < SECTOR_SIZE) || index == (SECTOR_SIZE + 1)) { in doc_ecc_decode()
203 if (index < SECTOR_SIZE) in doc_ecc_decode()
210 if ((index >= 0 && index < SECTOR_SIZE) || index == (SECTOR_SIZE + 1)) { in doc_ecc_decode()
213 if (index < SECTOR_SIZE) in doc_ecc_decode()
/linux-4.1.27/fs/nfs/blocklayout/
Dblocklayout.h45 #define SECTOR_SIZE (1 << SECTOR_SHIFT) macro
Dblocklayout.c783 if (!is_aligned_req(pgio, req, SECTOR_SIZE)) { in bl_pg_init_read()
799 if (!is_aligned_req(pgio, req, SECTOR_SIZE)) in bl_pg_test_read()
/linux-4.1.27/Documentation/mic/mpssd/
Dmpssd.c964 #define SECTOR_SIZE 512 macro
976 mic->mic_virtblk.backend_size / SECTOR_SIZE; in set_backend_size()
977 if ((mic->mic_virtblk.backend_size % SECTOR_SIZE) != 0) in set_backend_size()
1223 (hdr.sector * SECTOR_SIZE); in virtio_block()
/linux-4.1.27/drivers/scsi/
Dgdth.h181 #define SECTOR_SIZE 0x200 /* always 512 bytes per sec. */ macro
Dgdth.c2378 mpd.bd.block_length[0] = (SECTOR_SIZE & 0x00ff0000) >> 16; in gdth_internal_cache_cmd()
2379 mpd.bd.block_length[1] = (SECTOR_SIZE & 0x0000ff00) >> 8; in gdth_internal_cache_cmd()
2380 mpd.bd.block_length[2] = (SECTOR_SIZE & 0x000000ff); in gdth_internal_cache_cmd()
2390 rdc.block_length = cpu_to_be32(SECTOR_SIZE); in gdth_internal_cache_cmd()
2401 rdc16.block_length = cpu_to_be32(SECTOR_SIZE); in gdth_internal_cache_cmd()
/linux-4.1.27/drivers/block/
Drbd.c59 #define SECTOR_SIZE (1ULL << SECTOR_SHIFT) macro
3683 size = (sector_t)rbd_dev->mapping.size / SECTOR_SIZE; in rbd_dev_update_size()
3790 blk_queue_max_hw_sectors(q, segment_size / SECTOR_SIZE); in rbd_init_disk()
3799 q->limits.max_discard_sectors = segment_size / SECTOR_SIZE; in rbd_init_disk()
5236 set_capacity(rbd_dev->disk, rbd_dev->mapping.size / SECTOR_SIZE); in rbd_dev_device_setup()
/linux-4.1.27/fs/fat/
Dinode.c1427 bd_sects = i_size_read(sb->s_bdev->bd_inode) / SECTOR_SIZE; in fat_read_static_bpb()
1468 bpb->fat_sector_size = SECTOR_SIZE; in fat_read_static_bpb()
/linux-4.1.27/include/linux/
Dide.h118 #define SECTOR_SIZE 512 macro