Home
last modified time | relevance | path

Searched refs:drive (Results 1 - 25 of 219) sorted by relevance

123456789

/kernel/linux/linux-5.10/drivers/ide/
H A Dide-disk.c56 static void ide_tf_set_cmd(ide_drive_t *drive, struct ide_cmd *cmd, u8 dma) in ide_tf_set_cmd() argument
68 if (drive->mult_count) { in ide_tf_set_cmd()
82 static ide_startstop_t __ide_do_rw_disk(ide_drive_t *drive, struct request *rq, in __ide_do_rw_disk() argument
85 ide_hwif_t *hwif = drive->hwif; in __ide_do_rw_disk()
87 u8 lba48 = !!(drive->dev_flags & IDE_DFLAG_LBA48); in __ide_do_rw_disk()
88 u8 dma = !!(drive->dev_flags & IDE_DFLAG_USING_DMA); in __ide_do_rw_disk()
104 if (drive->dev_flags & IDE_DFLAG_LBA) { in __ide_do_rw_disk()
106 pr_debug("%s: LBA=0x%012llx\n", drive->name, in __ide_do_rw_disk()
136 track = (int)block / drive->sect; in __ide_do_rw_disk()
137 sect = (int)block % drive in __ide_do_rw_disk()
182 ide_do_rw_disk(ide_drive_t *drive, struct request *rq, sector_t block) ide_do_rw_disk() argument
206 idedisk_read_native_max_address(ide_drive_t *drive, int lba48) idedisk_read_native_max_address() argument
240 idedisk_set_max_address(ide_drive_t *drive, u64 addr_req, int lba48) idedisk_set_max_address() argument
298 ide_disk_hpa_get_native_capacity(ide_drive_t *drive, int lba48) ide_disk_hpa_get_native_capacity() argument
317 ide_disk_hpa_set_capacity(ide_drive_t *drive, u64 set_max, int lba48) ide_disk_hpa_set_capacity() argument
326 idedisk_check_hpa(ide_drive_t *drive) idedisk_check_hpa() argument
355 ide_disk_get_capacity(ide_drive_t *drive) ide_disk_get_capacity() argument
410 ide_disk_unlock_native_capacity(ide_drive_t *drive) ide_disk_unlock_native_capacity() argument
430 idedisk_prep_rq(ide_drive_t *drive, struct request *rq) idedisk_prep_rq() argument
470 set_multcount(ide_drive_t *drive, int arg) set_multcount() argument
493 set_nowerr(ide_drive_t *drive, int arg) set_nowerr() argument
508 ide_do_setfeature(ide_drive_t *drive, u8 feature, u8 nsect) ide_do_setfeature() argument
522 update_flush(ide_drive_t *drive) update_flush() argument
559 set_wcache(ide_drive_t *drive, int arg) set_wcache() argument
582 do_idedisk_flushcache(ide_drive_t *drive) do_idedisk_flushcache() argument
599 set_acoustic(ide_drive_t *drive, int arg) set_acoustic() argument
620 set_addressing(ide_drive_t *drive, int arg) set_addressing() argument
647 ide_disk_check(ide_drive_t *drive, const char *s) ide_disk_check() argument
652 ide_disk_setup(ide_drive_t *drive) ide_disk_setup() argument
747 ide_disk_flush(ide_drive_t *drive) ide_disk_flush() argument
757 ide_disk_init_media(ide_drive_t *drive, struct gendisk *disk) ide_disk_init_media() argument
762 ide_disk_set_doorlock(ide_drive_t *drive, struct gendisk *disk, int on) ide_disk_set_doorlock() argument
[all...]
H A Dide-atapi.c28 static inline int dev_is_idecd(ide_drive_t *drive) in dev_is_idecd() argument
30 return drive->media == ide_cdrom || drive->media == ide_optical; in dev_is_idecd()
37 int ide_check_atapi_device(ide_drive_t *drive, const char *s) in ide_check_atapi_device() argument
39 u16 *id = drive->id; in ide_check_atapi_device()
52 if (drive->media == ide_floppy && device_type == 5 && in ide_check_atapi_device()
60 s, drive->name, protocol); in ide_check_atapi_device()
61 else if ((drive->media == ide_floppy && device_type != 0) || in ide_check_atapi_device()
62 (drive->media == ide_tape && device_type != 1)) in ide_check_atapi_device()
64 s, drive in ide_check_atapi_device()
90 ide_queue_pc_tail(ide_drive_t *drive, struct gendisk *disk, struct ide_atapi_pc *pc, void *buf, unsigned int bufflen) ide_queue_pc_tail() argument
118 ide_do_test_unit_ready(ide_drive_t *drive, struct gendisk *disk) ide_do_test_unit_ready() argument
129 ide_do_start_stop(ide_drive_t *drive, struct gendisk *disk, int start) ide_do_start_stop() argument
144 ide_set_media_lock(ide_drive_t *drive, struct gendisk *disk, int on) ide_set_media_lock() argument
159 ide_create_request_sense_cmd(ide_drive_t *drive, struct ide_atapi_pc *pc) ide_create_request_sense_cmd() argument
173 ide_prep_sense(ide_drive_t *drive, struct request *rq) ide_prep_sense() argument
236 ide_queue_sense_rq(ide_drive_t *drive, void *special) ide_queue_sense_rq() argument
269 ide_retry_pc(ide_drive_t *drive) ide_retry_pc() argument
296 ide_cd_expiry(ide_drive_t *drive) ide_cd_expiry() argument
349 ide_read_bcount_and_ireason(ide_drive_t *drive, u16 *bcount, u8 *ireason) ide_read_bcount_and_ireason() argument
369 ide_check_ireason(ide_drive_t *drive, struct request *rq, int len, int ireason, int rw) ide_check_ireason() argument
415 ide_pc_intr(ide_drive_t *drive) ide_pc_intr() argument
569 ide_read_ireason(ide_drive_t *drive) ide_read_ireason() argument
578 ide_wait_ireason(ide_drive_t *drive, u8 ireason) ide_wait_ireason() argument
600 ide_delayed_transfer_pc(ide_drive_t *drive) ide_delayed_transfer_pc() argument
609 ide_transfer_pc(ide_drive_t *drive) ide_transfer_pc() argument
696 ide_issue_pc(ide_drive_t *drive, struct ide_cmd *cmd) ide_issue_pc() argument
[all...]
H A Dide-io.c57 int ide_end_rq(ide_drive_t *drive, struct request *rq, blk_status_t error, in ide_end_rq() argument
64 if ((drive->dev_flags & IDE_DFLAG_DMA_PIO_RETRY) && in ide_end_rq()
65 drive->retry_pio <= 3) { in ide_end_rq()
66 drive->dev_flags &= ~IDE_DFLAG_DMA_PIO_RETRY; in ide_end_rq()
67 ide_dma_on(drive); in ide_end_rq()
71 if (rq == drive->sense_rq) { in ide_end_rq()
72 drive->sense_rq = NULL; in ide_end_rq()
73 drive->sense_rq_active = false; in ide_end_rq()
84 void ide_complete_cmd(ide_drive_t *drive, struct ide_cmd *cmd, u8 stat, u8 err) in ide_complete_cmd() argument
86 const struct ide_tp_ops *tp_ops = drive in ide_complete_cmd()
125 ide_complete_rq(ide_drive_t *drive, blk_status_t error, unsigned int nr_bytes) ide_complete_rq() argument
146 ide_kill_rq(ide_drive_t *drive, struct request *rq) ide_kill_rq() argument
165 ide_tf_set_specify_cmd(ide_drive_t *drive, struct ide_taskfile *tf) ide_tf_set_specify_cmd() argument
175 ide_tf_set_restore_cmd(ide_drive_t *drive, struct ide_taskfile *tf) ide_tf_set_restore_cmd() argument
181 ide_tf_set_setmult_cmd(ide_drive_t *drive, struct ide_taskfile *tf) ide_tf_set_setmult_cmd() argument
195 do_special(ide_drive_t *drive) do_special() argument
233 ide_map_sg(ide_drive_t *drive, struct ide_cmd *cmd) ide_map_sg() argument
266 execute_drive_cmd(ide_drive_t *drive, struct request *rq) execute_drive_cmd() argument
293 ide_special_rq(ide_drive_t *drive, struct request *rq) ide_special_rq() argument
319 start_request(ide_drive_t *drive, struct request *rq) start_request() argument
400 ide_stall_queue(ide_drive_t *drive, unsigned long timeout) ide_stall_queue() argument
447 ide_requeue_and_plug(ide_drive_t *drive, struct request *rq) ide_requeue_and_plug() argument
459 ide_issue_rq(ide_drive_t *drive, struct request *rq, bool local_requeue) ide_issue_rq() argument
566 ide_drive_t *drive = hctx->queue->queuedata; ide_queue_rq() local
580 drive_is_ready(ide_drive_t *drive) drive_is_ready() argument
620 ide_drive_t *drive; ide_timer_expiry() local
778 ide_drive_t *drive; ide_intr() local
883 ide_pad_transfer(ide_drive_t *drive, int write, int len) ide_pad_transfer() argument
898 ide_insert_request_head(ide_drive_t *drive, struct request *rq) ide_insert_request_head() argument
[all...]
H A Dide-probe.c44 * generic_id - add a generic drive id
45 * @drive: drive to make an ID block for
47 * Add a fake id field to the drive we are passed. This allows
49 * and make drive properties unconditional outside of this file
52 static void generic_id(ide_drive_t *drive) in generic_id() argument
54 u16 *id = drive->id; in generic_id()
56 id[ATA_ID_CUR_CYLS] = id[ATA_ID_CYLS] = drive->cyl; in generic_id()
57 id[ATA_ID_CUR_HEADS] = id[ATA_ID_HEADS] = drive->head; in generic_id()
58 id[ATA_ID_CUR_SECTORS] = id[ATA_ID_SECTORS] = drive in generic_id()
61 ide_disk_init_chs(ide_drive_t *drive) ide_disk_init_chs() argument
87 ide_disk_init_mult_count(ide_drive_t *drive) ide_disk_init_mult_count() argument
105 ide_classify_ata_dev(ide_drive_t *drive) ide_classify_ata_dev() argument
124 ide_classify_atapi_dev(ide_drive_t *drive) ide_classify_atapi_dev() argument
193 do_identify(ide_drive_t *drive, u8 cmd, u16 *id) do_identify() argument
252 ide_dev_read_id(ide_drive_t *drive, u8 cmd, u16 *id, int irq_ctx) ide_dev_read_id() argument
332 ide_busy_sleep(ide_drive_t *drive, unsigned long timeout, int altstatus) ide_busy_sleep() argument
352 ide_read_device(ide_drive_t *drive) ide_read_device() argument
382 do_probe(ide_drive_t *drive, u8 cmd) do_probe() argument
475 probe_for_drive(ide_drive_t *drive) probe_for_drive() argument
602 ide_drive_t *drive; ide_port_wait_ready() local
682 ide_drive_t *drive; ide_probe_port() local
726 ide_drive_t *drive; ide_port_tune_devices() local
763 ide_init_queue(ide_drive_t *drive) ide_init_queue() argument
834 ide_drive_t *drive; ide_port_setup_devices() local
915 ide_drive_t *drive = hwif->devices[unit]; ata_probe() local
964 ide_init_disk(struct gendisk *disk, ide_drive_t *drive) ide_init_disk() argument
979 ide_drive_t *drive = container_of(dev, ide_drive_t, gendev); drive_release_dev() local
1035 ide_drive_t *drive; hwif_register_devices() local
1058 ide_drive_t *drive; ide_port_init_devices() local
1160 ide_drive_t *drive = container_of(work, ide_drive_t, rq_work); drive_rq_insert_work() local
1192 ide_drive_t *drive; ide_port_init_devices_data() local
1305 ide_drive_t *drive; ide_port_free_devices() local
1316 ide_drive_t *drive; ide_port_alloc_devices() local
1560 ide_drive_t *drive; __ide_port_unregister_devices() local
[all...]
H A Dide-dma.c28 * for supplying a Promise UDMA board & WD UDMA drive for this work!
85 * @drive: the drive the interrupt is for
91 ide_startstop_t ide_dma_intr(ide_drive_t *drive) in ide_dma_intr() argument
93 ide_hwif_t *hwif = drive->hwif; in ide_dma_intr()
97 drive->waiting_for_dma = 0; in ide_dma_intr()
98 dma_stat = hwif->dma_ops->dma_end(drive); in ide_dma_intr()
99 ide_dma_unmap_sg(drive, cmd); in ide_dma_intr()
102 if (OK_STAT(stat, DRIVE_READY, drive->bad_wstat | ATA_DRQ)) { in ide_dma_intr()
105 ide_finish_cmd(drive, cm in ide_dma_intr()
117 ide_dma_good_drive(ide_drive_t *drive) ide_dma_good_drive() argument
133 ide_dma_map_sg(ide_drive_t *drive, struct ide_cmd *cmd) ide_dma_map_sg() argument
164 ide_dma_unmap_sg(ide_drive_t *drive, struct ide_cmd *cmd) ide_dma_unmap_sg() argument
180 ide_dma_off_quietly(ide_drive_t *drive) ide_dma_off_quietly() argument
196 ide_dma_off(ide_drive_t *drive) ide_dma_off() argument
210 ide_dma_on(ide_drive_t *drive) ide_dma_on() argument
217 __ide_dma_bad_drive(ide_drive_t *drive) __ide_dma_bad_drive() argument
237 ide_get_mode_mask(ide_drive_t *drive, u8 base, u8 req_mode) ide_get_mode_mask() argument
311 ide_find_dma_mode(ide_drive_t *drive, u8 req_mode) ide_find_dma_mode() argument
351 ide_tune_dma(ide_drive_t *drive) ide_tune_dma() argument
378 ide_dma_check(ide_drive_t *drive) ide_dma_check() argument
394 ide_set_dma(ide_drive_t *drive) ide_set_dma() argument
415 ide_check_dma_crc(ide_drive_t *drive) ide_check_dma_crc() argument
435 ide_dma_lost_irq(ide_drive_t *drive) ide_dma_lost_irq() argument
446 ide_dma_timeout_retry(ide_drive_t *drive, int error) ide_dma_timeout_retry() argument
531 ide_dma_prepare(ide_drive_t *drive, struct ide_cmd *cmd) ide_dma_prepare() argument
[all...]
H A Dide-gd.c41 if (ide_device_get(idkp->drive)) in ide_disk_get()
52 ide_drive_t *drive = idkp->drive; in ide_disk_put() local
56 ide_device_put(drive); in ide_disk_put()
60 sector_t ide_gd_capacity(ide_drive_t *drive) in ide_gd_capacity() argument
62 return drive->capacity64; in ide_gd_capacity()
67 static void ide_gd_remove(ide_drive_t *drive) in ide_gd_remove() argument
69 struct ide_disk_obj *idkp = drive->driver_data; in ide_gd_remove()
72 ide_proc_unregister_driver(drive, idkp->driver); in ide_gd_remove()
75 drive in ide_gd_remove()
85 ide_drive_t *drive = idkp->drive; ide_disk_release() local
100 ide_gd_resume(ide_drive_t *drive) ide_gd_resume() argument
119 ide_gd_shutdown(ide_drive_t *drive) global() argument
148 ide_disk_proc_entries(ide_drive_t *drive) global() argument
153 ide_disk_proc_devsets(ide_drive_t *drive) global() argument
160 ide_gd_do_request(ide_drive_t *drive, struct request *rq, sector_t sector) global() argument
188 ide_drive_t *drive; global() local
261 ide_drive_t *drive = idkp->drive; global() local
283 ide_drive_t *drive = idkp->drive; global() local
294 ide_drive_t *drive = idkp->drive; global() local
305 ide_drive_t *drive = idkp->drive; global() local
315 ide_drive_t *drive = idkp->drive; global() local
336 ide_gd_probe(ide_drive_t *drive) global() argument
[all...]
H A Dide-eh.c8 static ide_startstop_t ide_ata_error(ide_drive_t *drive, struct request *rq, in ide_ata_error() argument
11 ide_hwif_t *hwif = drive->hwif; in ide_ata_error()
14 ((stat & ATA_DF) && (drive->dev_flags & IDE_DFLAG_NOWERR) == 0)) { in ide_ata_error()
20 if ((drive->dev_flags & IDE_DFLAG_LBA) && in ide_ata_error()
26 drive->crc_count++; in ide_ata_error()
38 int nsect = drive->mult_count ? drive->mult_count : 1; in ide_ata_error()
40 ide_pad_transfer(drive, READ, nsect * SECTOR_SIZE); in ide_ata_error()
44 ide_kill_rq(drive, rq); in ide_ata_error()
53 return ide_do_reset(drive); in ide_ata_error()
64 ide_atapi_error(ide_drive_t *drive, struct request *rq, u8 stat, u8 err) ide_atapi_error() argument
94 __ide_error(ide_drive_t *drive, struct request *rq, u8 stat, u8 err) __ide_error() argument
115 ide_error(ide_drive_t *drive, const char *msg, u8 stat) ide_error() argument
147 ide_complete_drive_reset(ide_drive_t *drive, blk_status_t err) ide_complete_drive_reset() argument
168 atapi_reset_pollfunc(ide_drive_t *drive) atapi_reset_pollfunc() argument
224 reset_pollfunc(ide_drive_t *drive) reset_pollfunc() argument
270 ide_disk_pre_reset(ide_drive_t *drive) ide_disk_pre_reset() argument
288 pre_reset(ide_drive_t *drive) pre_reset() argument
335 do_reset1(ide_drive_t *drive, int do_not_try_atapi) do_reset1() argument
439 ide_do_reset(ide_drive_t *drive) ide_do_reset() argument
[all...]
H A Dide-floppy.c59 * The following delay solves a problem with ATAPI Zip 100 drive where BSY bit
64 static int ide_floppy_callback(ide_drive_t *drive, int dsc) in ide_floppy_callback() argument
66 struct ide_disk_obj *floppy = drive->driver_data; in ide_floppy_callback()
67 struct ide_atapi_pc *pc = drive->pc; in ide_floppy_callback()
73 if (drive->failed_pc == pc) in ide_floppy_callback()
74 drive->failed_pc = NULL; in ide_floppy_callback()
90 if (drive->failed_pc) in ide_floppy_callback()
92 drive->failed_pc->c[0]); in ide_floppy_callback()
119 floppy->drive->name, pc->c[0], floppy->sense_key, in ide_floppy_report_error()
124 static ide_startstop_t ide_floppy_issue_pc(ide_drive_t *drive, in ide_floppy_issue_pc() argument
192 idefloppy_create_rw_cmd(ide_drive_t *drive, struct ide_atapi_pc *pc, struct request *rq, unsigned long sector) idefloppy_create_rw_cmd() argument
230 ide_floppy_do_request(ide_drive_t *drive, struct request *rq, sector_t block) ide_floppy_do_request() argument
316 ide_floppy_get_flexible_disk_page(ide_drive_t *drive, struct ide_atapi_pc *pc) ide_floppy_get_flexible_disk_page() argument
379 ide_floppy_get_capacity(ide_drive_t *drive) ide_floppy_get_capacity() argument
482 ide_floppy_setup(ide_drive_t *drive) ide_floppy_setup() argument
521 ide_floppy_flush(ide_drive_t *drive) ide_floppy_flush() argument
525 ide_floppy_init_media(ide_drive_t *drive, struct gendisk *disk) ide_floppy_init_media() argument
[all...]
H A Dide-tape.c142 ide_drive_t *drive; member
245 if (ide_device_get(tape->drive)) in ide_tape_get()
257 ide_drive_t *drive = tape->drive; in ide_tape_put() local
261 ide_device_put(drive); in ide_tape_put()
269 static void idetape_analyze_error(ide_drive_t *drive) in idetape_analyze_error() argument
271 idetape_tape_t *tape = drive->driver_data; in idetape_analyze_error()
272 struct ide_atapi_pc *pc = drive->failed_pc; in idetape_analyze_error()
273 struct request *rq = drive->hwif->rq; in idetape_analyze_error()
327 static int ide_tape_callback(ide_drive_t *drive, in argument
379 ide_tape_stall_queue(ide_drive_t *drive) ide_tape_stall_queue() argument
391 ide_tape_handle_dsc(ide_drive_t *drive) ide_tape_handle_dsc() argument
440 ide_tape_issue_pc(ide_drive_t *drive, struct ide_cmd *cmd, struct ide_atapi_pc *pc) ide_tape_issue_pc() argument
516 idetape_media_access_finished(ide_drive_t *drive) idetape_media_access_finished() argument
567 idetape_do_request(ide_drive_t *drive, struct request *rq, sector_t block) idetape_do_request() argument
675 idetape_create_write_filemark_cmd(ide_drive_t *drive, struct ide_atapi_pc *pc, int write_filemark) idetape_create_write_filemark_cmd() argument
684 idetape_wait_ready(ide_drive_t *drive, unsigned long timeout) idetape_wait_ready() argument
712 idetape_flush_tape_buffers(ide_drive_t *drive) idetape_flush_tape_buffers() argument
726 ide_tape_read_position(ide_drive_t *drive) ide_tape_read_position() argument
768 idetape_create_locate_cmd(ide_drive_t *drive, struct ide_atapi_pc *pc, unsigned int block, u8 partition, int skip) idetape_create_locate_cmd() argument
780 __ide_tape_discard_merge_buffer(ide_drive_t *drive) __ide_tape_discard_merge_buffer() argument
803 idetape_position_tape(ide_drive_t *drive, unsigned int block, u8 partition, int skip) idetape_position_tape() argument
825 ide_tape_discard_merge_buffer(ide_drive_t *drive, int restore_position) ide_tape_discard_merge_buffer() argument
847 idetape_queue_rw_tail(ide_drive_t *drive, int cmd, int size) idetape_queue_rw_tail() argument
897 idetape_create_rewind_cmd(ide_drive_t *drive, struct ide_atapi_pc *pc) idetape_create_rewind_cmd() argument
922 ide_tape_flush_merge_buffer(ide_drive_t *drive) ide_tape_flush_merge_buffer() argument
942 idetape_init_rw(ide_drive_t *drive, int dir) idetape_init_rw() argument
992 idetape_pad_zeros(ide_drive_t *drive, int bcount) idetape_pad_zeros() argument
1010 idetape_rewind_tape(ide_drive_t *drive) idetape_rewind_tape() argument
1031 idetape_blkdev_ioctl(ide_drive_t *drive, unsigned int cmd, unsigned long arg) idetape_blkdev_ioctl() argument
1064 idetape_space_over_filemarks(ide_drive_t *drive, short mt_op, int mt_count) idetape_space_over_filemarks() argument
1134 ide_drive_t *drive = tape->drive; idetape_chrdev_read() local
1189 ide_drive_t *drive = tape->drive; idetape_chrdev_write() local
1228 idetape_write_filemark(ide_drive_t *drive) idetape_write_filemark() argument
1255 idetape_mtioctop(ide_drive_t *drive, short mt_op, int mt_count) idetape_mtioctop() argument
1375 ide_drive_t *drive = tape->drive; do_idetape_chrdev_ioctl() local
1452 ide_tape_get_bsize_from_bdesc(ide_drive_t *drive) ide_tape_get_bsize_from_bdesc() argument
1480 ide_drive_t *drive; idetape_chrdev_open() local
1562 idetape_write_release(ide_drive_t *drive, unsigned int minor) idetape_write_release() argument
1582 ide_drive_t *drive = tape->drive; idetape_chrdev_release() local
1616 idetape_get_inquiry_results(ide_drive_t *drive) idetape_get_inquiry_results() argument
1645 idetape_get_mode_sense_results(ide_drive_t *drive) idetape_get_mode_sense_results() argument
1721 mulf_tdsc(ide_drive_t *drive) mulf_tdsc() argument
1722 divf_tdsc(ide_drive_t *drive) divf_tdsc() argument
1723 divf_buffer(ide_drive_t *drive) divf_buffer() argument
1724 divf_buffer_size(ide_drive_t *drive) divf_buffer_size() argument
1758 idetape_setup(ide_drive_t *drive, idetape_tape_t *tape, int minor) idetape_setup() argument
1819 ide_tape_remove(ide_drive_t *drive) ide_tape_remove() argument
1835 ide_drive_t *drive = tape->drive; ide_tape_release() local
1854 ide_drive_t *drive = (ide_drive_t *) m->private; idetape_name_proc_show() local
1867 ide_tape_proc_entries(ide_drive_t *drive) ide_tape_proc_entries() argument
1872 ide_tape_proc_devsets(ide_drive_t *drive) ide_tape_proc_devsets() argument
1936 ide_drive_t *drive = tape->drive; idetape_ioctl() local
1966 ide_tape_probe(ide_drive_t *drive) ide_tape_probe() argument
[all...]
H A Dide-pm.c8 ide_drive_t *drive = to_ide_device(dev); in generic_ide_suspend() local
9 ide_drive_t *pair = ide_get_pair_dev(drive); in generic_ide_suspend()
10 ide_hwif_t *hwif = drive->hwif; in generic_ide_suspend()
17 if ((drive->dn & 1) == 0 || pair == NULL) in generic_ide_suspend()
22 rq = blk_get_request(drive->queue, REQ_OP_DRV_IN, 0); in generic_ide_suspend()
30 blk_execute_rq(drive->queue, NULL, rq, 0); in generic_ide_suspend()
36 if ((drive->dn & 1) || pair == NULL) in generic_ide_suspend()
60 ide_drive_t *drive = to_ide_device(dev); in generic_ide_resume() local
61 ide_drive_t *pair = ide_get_pair_dev(drive); in generic_ide_resume()
62 ide_hwif_t *hwif = drive in generic_ide_resume()
99 ide_complete_power_step(ide_drive_t *drive, struct request *rq) ide_complete_power_step() argument
129 ide_start_power_step(ide_drive_t *drive, struct request *rq) ide_start_power_step() argument
200 ide_complete_pm_rq(ide_drive_t *drive, struct request *rq) ide_complete_pm_rq() argument
223 ide_check_pm_state(ide_drive_t *drive, struct request *rq) ide_check_pm_state() argument
[all...]
H A Dide-taskfile.c29 void ide_tf_readback(ide_drive_t *drive, struct ide_cmd *cmd) in ide_tf_readback() argument
31 ide_hwif_t *hwif = drive->hwif; in ide_tf_readback()
37 tp_ops->tf_read(drive, &cmd->tf, cmd->valid.in.tf); in ide_tf_readback()
42 tp_ops->tf_read(drive, &cmd->hob, cmd->valid.in.hob); in ide_tf_readback()
59 int taskfile_lib_get_identify(ide_drive_t *drive, u8 *buf) in taskfile_lib_get_identify() argument
65 if (drive->media == ide_disk) in taskfile_lib_get_identify()
73 return ide_raw_taskfile(drive, &cmd, buf, 1); in taskfile_lib_get_identify()
80 ide_startstop_t do_rw_taskfile(ide_drive_t *drive, struct ide_cmd *orig_cmd) in do_rw_taskfile() argument
82 ide_hwif_t *hwif = drive->hwif; in do_rw_taskfile()
91 drive in do_rw_taskfile()
151 task_no_data_intr(ide_drive_t *drive) task_no_data_intr() argument
201 wait_drive_not_busy(ide_drive_t *drive) wait_drive_not_busy() argument
226 ide_pio_bytes(ide_drive_t *drive, struct ide_cmd *cmd, unsigned int write, unsigned int len) ide_pio_bytes() argument
274 ide_pio_datablock(ide_drive_t *drive, struct ide_cmd *cmd, unsigned int write) ide_pio_datablock() argument
299 ide_error_cmd(ide_drive_t *drive, struct ide_cmd *cmd) ide_error_cmd() argument
317 ide_finish_cmd(ide_drive_t *drive, struct ide_cmd *cmd, u8 stat) ide_finish_cmd() argument
337 task_pio_intr(ide_drive_t *drive) task_pio_intr() argument
396 pre_task_out_intr(ide_drive_t *drive, struct ide_cmd *cmd) pre_task_out_intr() argument
419 ide_raw_taskfile(ide_drive_t *drive, struct ide_cmd *cmd, u8 *buf, u16 nsect) ide_raw_taskfile() argument
454 ide_no_data_taskfile(ide_drive_t *drive, struct ide_cmd *cmd) ide_no_data_taskfile() argument
463 ide_taskfile_ioctl(ide_drive_t *drive, unsigned long arg) ide_taskfile_ioctl() argument
[all...]
H A Dide-xfer-mode.c51 * ide_get_best_pio_mode - get PIO mode from drive
52 * @drive: drive to consider
56 * This routine returns the recommended PIO settings for a given drive,
57 * based on the drive->id information and the ide_pio_blacklist[].
63 static u8 ide_get_best_pio_mode(ide_drive_t *drive, u8 mode_wanted, u8 max_mode) in ide_get_best_pio_mode() argument
65 u16 *id = drive->id; in ide_get_best_pio_mode()
71 if ((drive->hwif->host_flags & IDE_HFLAG_PIO_NO_BLACKLIST) == 0) in ide_get_best_pio_mode()
75 printk(KERN_INFO "%s: is on PIO blacklist\n", drive->name); in ide_get_best_pio_mode()
102 drive in ide_get_best_pio_mode()
111 ide_pio_need_iordy(ide_drive_t *drive, const u8 pio) ide_pio_need_iordy() argument
123 ide_set_pio_mode(ide_drive_t *drive, const u8 mode) ide_set_pio_mode() argument
157 ide_set_dma_mode(ide_drive_t *drive, const u8 mode) ide_set_dma_mode() argument
183 ide_set_pio(ide_drive_t *drive, u8 req_pio) ide_set_pio() argument
223 ide_rate_filter(ide_drive_t *drive, u8 speed) ide_rate_filter() argument
250 ide_set_xfer_rate(ide_drive_t *drive, u8 rate) ide_set_xfer_rate() argument
[all...]
H A Dide.c34 * | IRQ-unmask, drive-id, multiple-mode, support for ">16 heads",
67 * @drive: device to get a reference to
72 int ide_device_get(ide_drive_t *drive) in ide_device_get() argument
77 if (!get_device(&drive->gendev)) in ide_device_get()
80 host_dev = drive->hwif->host->dev[0]; in ide_device_get()
84 put_device(&drive->gendev); in ide_device_get()
94 * @drive: device to release a reference on
99 void ide_device_put(ide_drive_t *drive) in ide_device_put() argument
102 struct device *host_dev = drive->hwif->host->dev[0]; in ide_device_put()
107 put_device(&drive in ide_device_put()
118 ide_drive_t *drive = to_ide_device(dev); ide_uevent() local
128 ide_drive_t *drive = to_ide_device(dev); generic_ide_probe() local
136 ide_drive_t *drive = to_ide_device(dev); generic_ide_remove() local
147 ide_drive_t *drive = to_ide_device(dev); generic_ide_shutdown() local
281 ide_dev_apply_params(ide_drive_t *drive, u8 unit) ide_dev_apply_params() argument
357 ide_drive_t *drive; ide_port_apply_params() local
[all...]
H A Dide-devsets.c11 static int set_io_32bit(ide_drive_t *drive, int arg) in set_io_32bit() argument
13 if (drive->dev_flags & IDE_DFLAG_NO_IO_32BIT) in set_io_32bit()
19 drive->io_32bit = arg; in set_io_32bit()
26 static int set_ksettings(ide_drive_t *drive, int arg) in set_ksettings() argument
32 drive->dev_flags |= IDE_DFLAG_KEEP_SETTINGS; in set_ksettings()
34 drive->dev_flags &= ~IDE_DFLAG_KEEP_SETTINGS; in set_ksettings()
41 static int set_using_dma(ide_drive_t *drive, int arg) in set_using_dma() argument
49 if (ata_id_has_dma(drive->id) == 0) in set_using_dma()
52 if (drive->hwif->dma_ops == NULL) in set_using_dma()
58 if (ide_set_dma(drive)) in set_using_dma()
97 set_pio_mode(ide_drive_t *drive, int arg) set_pio_mode() argument
137 set_unmaskirq(ide_drive_t *drive, int arg) set_unmaskirq() argument
159 ide_devset_execute(ide_drive_t *drive, const struct ide_devset *setting, int arg) ide_devset_execute() argument
183 ide_do_devset(ide_drive_t *drive, struct request *rq) ide_do_devset() argument
[all...]
H A Dide-proc.c12 * Drive/Driver settings can be retrieved by reading the drive's
81 ide_drive_t *drive = (ide_drive_t *)m->private; in ide_identify_proc_show() local
84 if (!drive) { in ide_identify_proc_show()
92 if (taskfile_lib_get_identify(drive, buf) == 0) { in ide_identify_proc_show()
130 * @drive: drive to read from
131 * @setting: drive setting
133 * Read a drive setting and return the value. The caller
141 static int ide_read_setting(ide_drive_t *drive, in ide_read_setting() argument
148 val = ds->get(drive); in ide_read_setting()
171 ide_write_setting(ide_drive_t *drive, const struct ide_proc_devset *setting, int val) ide_write_setting() argument
188 set_xfer_rate(ide_drive_t *drive, int arg) set_xfer_rate() argument
234 ide_drive_t *drive = (ide_drive_t *) m->private; ide_settings_proc_show() local
285 ide_drive_t *drive = PDE_DATA(file_inode(file)); ide_settings_proc_write() local
401 ide_drive_t *drive = (ide_drive_t *) m->private; ide_geometry_proc_show() local
413 ide_drive_t *drive = (ide_drive_t *) seq->private; ide_dmodel_proc_show() local
422 ide_drive_t *drive = (ide_drive_t *)m->private; ide_driver_proc_show() local
437 ide_drive_t *drive = (ide_drive_t *) m->private; ide_media_proc_show() local
496 ide_proc_register_driver(ide_drive_t *drive, struct ide_driver *driver) ide_proc_register_driver() argument
518 ide_proc_unregister_driver(ide_drive_t *drive, struct ide_driver *driver) ide_proc_unregister_driver() argument
536 ide_drive_t *drive; ide_proc_port_register_devices() local
557 ide_proc_unregister_device(ide_drive_t *drive) ide_proc_unregister_device() argument
[all...]
H A Dide-iops.c31 void SELECT_MASK(ide_drive_t *drive, int mask) in SELECT_MASK() argument
33 const struct ide_port_ops *port_ops = drive->hwif->port_ops; in SELECT_MASK()
36 port_ops->maskproc(drive, mask); in SELECT_MASK()
39 u8 ide_read_error(ide_drive_t *drive) in ide_read_error() argument
43 drive->hwif->tp_ops->tf_read(drive, &tf, IDE_VALID_ERROR); in ide_read_error()
96 * This routine busy-waits for the drive status to be not "busy".
106 int __ide_wait_stat(ide_drive_t *drive, u8 good, u8 bad, in __ide_wait_stat() argument
109 ide_hwif_t *hwif = drive->hwif; in __ide_wait_stat()
116 udelay(1); /* spec allows drive 40 in __ide_wait_stat()
170 ide_wait_stat(ide_startstop_t *startstop, ide_drive_t *drive, u8 good, u8 bad, unsigned long timeout) ide_wait_stat() argument
234 eighty_ninty_three(ide_drive_t *drive) eighty_ninty_three() argument
305 ide_check_nien_quirk_list(ide_drive_t *drive) ide_check_nien_quirk_list() argument
316 ide_driveid_update(ide_drive_t *drive) ide_driveid_update() argument
348 ide_config_drive_speed(ide_drive_t *drive, u8 speed) ide_config_drive_speed() argument
450 __ide_set_handler(ide_drive_t *drive, ide_handler_t *handler, unsigned int timeout) __ide_set_handler() argument
462 ide_set_handler(ide_drive_t *drive, ide_handler_t *handler, unsigned int timeout) ide_set_handler() argument
487 ide_execute_command(ide_drive_t *drive, struct ide_cmd *cmd, ide_handler_t *handler, unsigned timeout) ide_execute_command() argument
[all...]
H A Dide-cd.c67 if (ide_device_get(cd->drive)) in ide_cd_get()
79 ide_drive_t *drive = cd->drive; in ide_cd_put() local
83 ide_device_put(drive); in ide_cd_put()
92 static void cdrom_saw_media_change(ide_drive_t *drive) in cdrom_saw_media_change() argument
94 drive->dev_flags |= IDE_DFLAG_MEDIA_CHANGED; in cdrom_saw_media_change()
95 drive->atapi_flags &= ~IDE_AFLAG_TOC_VALID; in cdrom_saw_media_change()
98 static int cdrom_log_sense(ide_drive_t *drive, struct request *rq) in cdrom_log_sense() argument
100 struct request_sense *sense = &drive->sense_data; in cdrom_log_sense()
124 * reliably check if drive ca in cdrom_log_sense()
145 cdrom_analyze_sense_data(ide_drive_t *drive, struct request *failed_command) cdrom_analyze_sense_data() argument
212 ide_cd_complete_failed_rq(ide_drive_t *drive, struct request *rq) ide_cd_complete_failed_rq() argument
246 ide_cd_breathe(ide_drive_t *drive, struct request *rq) ide_cd_breathe() argument
268 ide_cd_free_sense(ide_drive_t *drive) ide_cd_free_sense() argument
284 cdrom_decode_status(ide_drive_t *drive, u8 stat) cdrom_decode_status() argument
417 ide_cd_request_sense_fixup(ide_drive_t *drive, struct ide_cmd *cmd) ide_cd_request_sense_fixup() argument
432 ide_cd_queue_pc(ide_drive_t *drive, const unsigned char *cmd, int write, void *buffer, unsigned *bufflen, struct scsi_sense_hdr *sshdr, int timeout, req_flags_t rq_flags) ide_cd_queue_pc() argument
516 ide_cd_error_cmd(ide_drive_t *drive, struct ide_cmd *cmd) ide_cd_error_cmd() argument
595 ide_cdrom_prep_rq(ide_drive_t *drive, struct request *rq) ide_cdrom_prep_rq() argument
607 cdrom_newpc_intr(ide_drive_t *drive) cdrom_newpc_intr() argument
801 cdrom_start_rw(ide_drive_t *drive, struct request *rq) cdrom_start_rw() argument
841 cdrom_do_block_pc(ide_drive_t *drive, struct request *rq) cdrom_do_block_pc() argument
876 ide_cd_do_request(ide_drive_t *drive, struct request *rq, sector_t block) ide_cd_do_request() argument
959 cdrom_check_status(ide_drive_t *drive, struct scsi_sense_hdr *sshdr) cdrom_check_status() argument
984 cdrom_read_capacity(ide_drive_t *drive, unsigned long *capacity, unsigned long *sectors_per_frame) cdrom_read_capacity() argument
1037 ide_cdrom_read_tocentry(ide_drive_t *drive, int trackno, int msf_flag, int format, char *buf, int buflen) ide_cdrom_read_tocentry() argument
1059 ide_cd_read_toc(ide_drive_t *drive) ide_cd_read_toc() argument
1225 ide_cdrom_get_capabilities(ide_drive_t *drive, u8 *buf) ide_cdrom_get_capabilities() argument
1247 ide_cdrom_update_speed(ide_drive_t *drive, u8 *buf) ide_cdrom_update_speed() argument
1292 ide_cdrom_register(ide_drive_t *drive, int nslots) ide_cdrom_register() argument
1311 ide_cdrom_probe_capabilities(ide_drive_t *drive) ide_cdrom_probe_capabilities() argument
1422 ide_cdrom_capacity(ide_drive_t *drive) ide_cdrom_capacity() argument
1434 ide_drive_t *drive = m->private; idecd_capacity_proc_show() local
1445 ide_cd_proc_entries(ide_drive_t *drive) ide_cd_proc_entries() argument
1450 ide_cd_proc_devsets(ide_drive_t *drive) ide_cd_proc_devsets() argument
1513 ide_cdrom_setup(ide_drive_t *drive) ide_cdrom_setup() argument
1557 ide_cd_remove(ide_drive_t *drive) ide_cd_remove() argument
1576 ide_drive_t *drive = info->drive; ide_cd_release() local
1776 ide_cd_probe(ide_drive_t *drive) ide_cd_probe() argument
[all...]
H A Dide-cd_ioctl.c31 ide_drive_t *drive = cdi->handle; in ide_cdrom_release_real() local
34 drive->atapi_flags &= ~IDE_AFLAG_TOC_VALID; in ide_cdrom_release_real()
44 ide_drive_t *drive = cdi->handle; in ide_cdrom_drive_status() local
52 stat = cdrom_check_status(drive, &sshdr); in ide_cdrom_drive_status()
93 ide_drive_t *drive = cdi->handle; in ide_cdrom_check_events_real() local
97 (void) cdrom_check_status(drive, NULL); in ide_cdrom_check_events_real()
98 retval = (drive->dev_flags & IDE_DFLAG_MEDIA_CHANGED) ? 1 : 0; in ide_cdrom_check_events_real()
99 drive->dev_flags &= ~IDE_DFLAG_MEDIA_CHANGED; in ide_cdrom_check_events_real()
109 int cdrom_eject(ide_drive_t *drive, int ejectflag) in cdrom_eject() argument
111 struct cdrom_info *cd = drive in cdrom_eject()
137 ide_cd_lockdoor(ide_drive_t *drive, int lockflag) ide_cd_lockdoor() argument
184 ide_drive_t *drive = cdi->handle; ide_cdrom_tray_move() local
198 ide_drive_t *drive = cdi->handle; ide_cdrom_lock_door() local
209 ide_drive_t *drive = cdi->handle; ide_cdrom_select_speed() local
247 ide_drive_t *drive = cdi->handle; ide_cdrom_get_last_session() local
267 ide_drive_t *drive = cdi->handle; ide_cdrom_get_mcn() local
294 ide_drive_t *drive = cdi->handle; ide_cdrom_reset() local
315 ide_cd_get_toc_entry(ide_drive_t *drive, int track, struct atapi_toc_entry **ent) ide_cd_get_toc_entry() argument
344 ide_cd_fake_play_trkind(ide_drive_t *drive, void *arg) ide_cd_fake_play_trkind() argument
377 ide_cd_read_tochdr(ide_drive_t *drive, void *arg) ide_cd_read_tochdr() argument
396 ide_cd_read_tocentry(ide_drive_t *drive, void *arg) ide_cd_read_tocentry() argument
422 ide_drive_t *drive = cdi->handle; ide_cdrom_audio_ioctl() local
444 ide_drive_t *drive = cdi->handle; ide_cdrom_packet() local
[all...]
H A Dht6560b.c48 static inline u8 HT_CONFIG(ide_drive_t *drive) in HT_CONFIG() argument
50 return ((unsigned long)ide_get_drivedata(drive) & 0xff00) >> 8; in HT_CONFIG()
95 * Active Time for each drive. Smaller value gives higher speed.
98 static inline u8 HT_TIMING(ide_drive_t *drive) in HT_TIMING() argument
100 return (unsigned long)ide_get_drivedata(drive) & 0x00ff; in HT_TIMING()
113 * This routine is invoked from ide.c to prepare for access to a given drive.
115 static void ht6560b_dev_select(ide_drive_t *drive) in ht6560b_dev_select() argument
117 ide_hwif_t *hwif = drive->hwif; in ht6560b_dev_select()
125 select = HT_CONFIG(drive); in ht6560b_dev_select()
126 timing = HT_TIMING(drive); in ht6560b_dev_select()
200 ht_pio2timings(ide_drive_t *drive, const u8 pio) ht_pio2timings() argument
252 ht_set_prefetch(ide_drive_t *drive, u8 state) ht_set_prefetch() argument
282 ht6560b_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) ht6560b_set_pio_mode() argument
309 ht6560b_init_dev(ide_drive_t *drive) ht6560b_init_dev() argument
[all...]
H A Dqd65xx.c90 * This routine is invoked to prepare for access to a given drive.
93 static void qd65xx_dev_select(ide_drive_t *drive) in qd65xx_dev_select() argument
95 u8 index = (( (QD_TIMREG(drive)) & 0x80 ) >> 7) | in qd65xx_dev_select()
96 (QD_TIMREG(drive) & 0x02); in qd65xx_dev_select()
98 if (timings[index] != QD_TIMING(drive)) in qd65xx_dev_select()
99 outb(timings[index] = QD_TIMING(drive), QD_TIMREG(drive)); in qd65xx_dev_select()
101 outb(drive->select | ATA_DEVICE_OBS, drive->hwif->io_ports.device_addr); in qd65xx_dev_select()
151 static int qd_find_disk_type (ide_drive_t *drive, in qd_find_disk_type() argument
181 qd_set_timing(ide_drive_t *drive, u8 timing) qd_set_timing() argument
192 qd6500_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) qd6500_set_pio_mode() argument
212 qd6580_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) qd6580_set_pio_mode() argument
290 qd6500_init_dev(ide_drive_t *drive) qd6500_init_dev() argument
299 qd6580_init_dev(ide_drive_t *drive) qd6580_init_dev() argument
[all...]
H A Dide-floppy_ioctl.c38 static int ide_floppy_get_format_capacities(ide_drive_t *drive, in ide_floppy_get_format_capacities() argument
42 struct ide_disk_obj *floppy = drive->driver_data; in ide_floppy_get_format_capacities()
55 if (ide_queue_pc_tail(drive, floppy->disk, pc, pc_buf, pc->req_xfer)) { in ide_floppy_get_format_capacities()
121 static int ide_floppy_get_sfrp_bit(ide_drive_t *drive, struct ide_atapi_pc *pc) in ide_floppy_get_sfrp_bit() argument
123 struct ide_disk_obj *floppy = drive->driver_data; in ide_floppy_get_sfrp_bit()
126 drive->atapi_flags &= ~IDE_AFLAG_SRFP; in ide_floppy_get_sfrp_bit()
131 if (ide_queue_pc_tail(drive, floppy->disk, pc, buf, pc->req_xfer)) in ide_floppy_get_sfrp_bit()
135 drive->atapi_flags |= IDE_AFLAG_SRFP; in ide_floppy_get_sfrp_bit()
140 static int ide_floppy_format_unit(ide_drive_t *drive, struct ide_atapi_pc *pc, in ide_floppy_format_unit() argument
143 struct ide_disk_obj *floppy = drive in ide_floppy_format_unit()
199 ide_floppy_get_format_progress(ide_drive_t *drive, struct ide_atapi_pc *pc, int __user *arg) ide_floppy_get_format_progress() argument
237 ide_floppy_lockdoor(ide_drive_t *drive, struct ide_atapi_pc *pc, unsigned long arg, unsigned int cmd) ide_floppy_lockdoor() argument
255 ide_floppy_format_ioctl(ide_drive_t *drive, struct ide_atapi_pc *pc, fmode_t mode, unsigned int cmd, void __user *argp) ide_floppy_format_ioctl() argument
275 ide_floppy_ioctl(ide_drive_t *drive, struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg) ide_floppy_ioctl() argument
308 ide_floppy_compat_ioctl(ide_drive_t *drive, struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg) ide_floppy_compat_ioctl() argument
[all...]
/kernel/linux/linux-6.6/drivers/block/
H A Damiflop.c53 * - added trackbuffer for each drive to speed things up
102 #define DSKSEL3 (0x1<<6) /* select drive 3 when low */
103 #define DSKSEL2 (0x1<<5) /* select drive 2 when low */
104 #define DSKSEL1 (0x1<<4) /* select drive 1 when low */
105 #define DSKSEL0 (0x1<<3) /* select drive 0 when low */
176 unsigned long code; /* code returned from drive */
177 char *name; /* description of drive */
199 int disk; /* disk in drive (-1 == unknown) */
201 int busy; /* true when drive is active */
227 #define FD_DD_3 0xffffffff /* double-density 3.5" (880K) drive */
358 try_fdc(int drive) try_fdc() argument
364 get_fdc(int drive) get_fdc() argument
393 fd_select(int drive) fd_select() argument
417 fd_deselect(int drive) fd_deselect() argument
489 unsigned long drive = ((unsigned long)timer - fd_motor_off() local
508 int drive; floppy_off() local
514 fd_calibrate(int drive) fd_calibrate() argument
566 fd_seek(int drive, int track) fd_seek() argument
623 fd_get_drive_id(int drive) fd_get_drive_id() argument
691 raw_read(int drive) raw_read() argument
717 raw_write(int drive) raw_write() argument
752 post_write(unsigned long drive) post_write() argument
835 amiga_read(int drive) amiga_read() argument
1150 dos_read(int drive) dos_read() argument
1271 ms_putsec(int drive, unsigned long *raw, int cnt) ms_putsec() argument
1423 get_track(int drive, int track) get_track() argument
1461 int drive = floppy - unit; amiflop_rw_cur_segment() local
1527 int drive = MINOR(bdev->bd_dev) & 3; fd_getgeo() local
1539 int drive = p - unit; fd_locked_ioctl() local
1625 int drive; fd_probe() local
1658 int drive = disk->first_minor & 3; floppy_open() local
1712 int drive = p - unit; floppy_release() local
1739 int drive = p - unit; amiga_check_events() local
1777 fd_alloc_disk(int drive, int system) fd_alloc_disk() argument
1806 fd_alloc_drive(int drive) fd_alloc_drive() argument
1839 int drive,drives,nomem; fd_probe_drives() local
[all...]
H A Dfloppy.c240 * motor of these drives causes system hangs on some PCI computers. drive
241 * 0 is the low bit (0x1), and drive 7 is the high bit (0x80). Bits are on if
242 * a drive is allowed.
302 #define UNIT(x) ((x) & 0x03) /* drive on fdc */
303 #define FDC(x) (((x) & 0x04) >> 2) /* fdc of drive */
304 /* reverse mapping from unit and fdc to drive */
353 * this struct defines the different floppy drive types.
360 CMOS drive type
361 | Maximum data rate supported by drive type
413 * types (e.g. 360kB diskette in 1.2MB drive, et
605 drive_no_geom(int drive) drive_no_geom() argument
611 fd_eject(int drive) fd_eject() argument
672 __reschedule_timeout(int drive, const char *message) __reschedule_timeout() argument
688 reschedule_timeout(int drive, const char *message) reschedule_timeout() argument
733 disk_change(int drive) disk_change() argument
796 unsigned char drive; set_dor() local
825 twaddle(int fdc, int drive) twaddle() argument
841 int drive; reset_fdc_info() local
857 set_fdc(int drive) set_fdc() argument
889 lock_fdc(int drive) lock_fdc() argument
933 floppy_off(unsigned int drive) floppy_off() argument
963 int drive; scandrives() local
1279 fdc_specify(int fdc, int drive) fdc_specify() argument
1567 check_wp(int fdc, int drive) check_wp() argument
2069 next_valid_format(int drive) next_valid_format() argument
2107 set_floppy(int drive) set_floppy() argument
2225 do_format(int drive, struct format_descr *tmp_format_req) do_format() argument
2260 unsigned int drive = (unsigned long)req->q->disk->private_data; floppy_end_request() local
2772 int drive; redo_fd_request() local
2927 user_reset_fdc(int drive, int arg, bool interruptible) user_reset_fdc() argument
2965 drive_name(int type, int drive) drive_name() argument
3137 int drive; raw_cmd_ioctl() local
3184 floppy_raw_cmd_ioctl(int type, int drive, int cmd, void __user *param) floppy_raw_cmd_ioctl() argument
3205 floppy_raw_cmd_ioctl(int type, int drive, int cmd, void __user *param) floppy_raw_cmd_ioctl() argument
3223 set_geometry(unsigned int cmd, struct floppy_struct *g, int drive, int type, struct block_device *bdev) set_geometry() argument
3345 get_floppy_geometry(int drive, int type, struct floppy_struct **g) get_floppy_geometry() argument
3364 int drive = (long)bdev->bd_disk->private_data; fd_getgeo() local
3400 int drive = (long)bdev->bd_disk->private_data; fd_locked_ioctl() local
3662 int drive, type; compat_set_geometry() local
3684 compat_get_prm(int drive, struct compat_floppy_struct __user *arg) compat_get_prm() argument
3706 compat_setdrvprm(int drive, struct compat_floppy_drive_params __user *arg) compat_setdrvprm() argument
3742 compat_getdrvprm(int drive, struct compat_floppy_drive_params __user *arg) compat_getdrvprm() argument
3776 compat_getdrvstat(int drive, bool poll, struct compat_floppy_drive_struct __user *arg) compat_getdrvstat() argument
3815 compat_getfdcstat(int drive, struct compat_floppy_fdc_state __user *arg) compat_getfdcstat() argument
3844 compat_werrorget(int drive, struct compat_floppy_write_errors __user *arg) compat_werrorget() argument
3868 int drive = (long)bdev->bd_disk->private_data; fd_compat_ioctl() local
3917 int drive; config_types() local
3969 int drive = (long)disk->private_data; floppy_release() local
3990 int drive = (long)disk->private_data; floppy_open() local
4090 int drive = (long)disk->private_data; floppy_check_events() local
4118 int drive; global() member
4125 int drive = cbdata->drive; floppy_rb0_cb() local
4135 __floppy_read_block_0(struct block_device *bdev, int drive) __floppy_read_block_0() argument
4176 int drive = (long)disk->private_data; floppy_revalidate() local
4452 int drive; floppy_cmos_show() local
4503 floppy_available(int drive) floppy_available() argument
4512 floppy_alloc_disk(unsigned int drive, unsigned int type) floppy_alloc_disk() argument
4543 unsigned int drive = (MINOR(dev) & 3) | ((MINOR(dev) & 0x80) >> 5); floppy_probe() local
4569 int i, unit, drive, err; do_floppy_init() local
4897 int drive; floppy_release_irq_and_dma() local
4972 int drive, i; floppy_module_exit() local
[all...]
/kernel/linux/linux-5.10/drivers/block/
H A Damiflop.c53 * - added trackbuffer for each drive to speed things up
102 #define DSKSEL3 (0x1<<6) /* select drive 3 when low */
103 #define DSKSEL2 (0x1<<5) /* select drive 2 when low */
104 #define DSKSEL1 (0x1<<4) /* select drive 1 when low */
105 #define DSKSEL0 (0x1<<3) /* select drive 0 when low */
176 unsigned long code; /* code returned from drive */
177 char *name; /* description of drive */
199 int disk; /* disk in drive (-1 == unknown) */
201 int busy; /* true when drive is active */
227 #define FD_DD_3 0xffffffff /* double-density 3.5" (880K) drive */
358 try_fdc(int drive) try_fdc() argument
364 get_fdc(int drive) get_fdc() argument
393 fd_select(int drive) fd_select() argument
417 fd_deselect(int drive) fd_deselect() argument
489 unsigned long drive = ((unsigned long)timer - fd_motor_off() local
508 int drive; floppy_off() local
514 fd_calibrate(int drive) fd_calibrate() argument
566 fd_seek(int drive, int track) fd_seek() argument
623 fd_get_drive_id(int drive) fd_get_drive_id() argument
691 raw_read(int drive) raw_read() argument
717 raw_write(int drive) raw_write() argument
752 post_write(unsigned long drive) post_write() argument
835 amiga_read(int drive) amiga_read() argument
1150 dos_read(int drive) dos_read() argument
1271 ms_putsec(int drive, unsigned long *raw, int cnt) ms_putsec() argument
1423 get_track(int drive, int track) get_track() argument
1461 int drive = floppy - unit; amiflop_rw_cur_segment() local
1527 int drive = MINOR(bdev->bd_dev) & 3; fd_getgeo() local
1539 int drive = p - unit; fd_locked_ioctl() local
1626 int drive; fd_probe() local
1659 int drive = MINOR(bdev->bd_dev) & 3; floppy_open() local
1710 int drive = p - unit; floppy_release() local
1737 int drive = p - unit; amiga_check_events() local
1775 fd_alloc_disk(int drive) fd_alloc_disk() argument
1809 int drive,drives,nomem; fd_probe_drives() local
1851 int drive = *part & 3; floppy_find() local
[all...]
H A Dfloppy.c241 * motor of these drives causes system hangs on some PCI computers. drive
242 * 0 is the low bit (0x1), and drive 7 is the high bit (0x80). Bits are on if
243 * a drive is allowed.
303 #define UNIT(x) ((x) & 0x03) /* drive on fdc */
304 #define FDC(x) (((x) & 0x04) >> 2) /* fdc of drive */
305 /* reverse mapping from unit and fdc to drive */
354 * this struct defines the different floppy drive types.
361 CMOS drive type
362 | Maximum data rate supported by drive type
415 * types (e.g. 360kB diskette in 1.2MB drive, et
605 drive_no_geom(int drive) drive_no_geom() argument
611 fd_eject(int drive) fd_eject() argument
672 __reschedule_timeout(int drive, const char *message) __reschedule_timeout() argument
688 reschedule_timeout(int drive, const char *message) reschedule_timeout() argument
733 disk_change(int drive) disk_change() argument
796 unsigned char drive; set_dor() local
825 twaddle(int fdc, int drive) twaddle() argument
841 int drive; reset_fdc_info() local
857 set_fdc(int drive) set_fdc() argument
889 lock_fdc(int drive) lock_fdc() argument
933 floppy_off(unsigned int drive) floppy_off() argument
963 int drive; scandrives() local
1279 fdc_specify(int fdc, int drive) fdc_specify() argument
1567 check_wp(int fdc, int drive) check_wp() argument
2069 next_valid_format(int drive) next_valid_format() argument
2107 set_floppy(int drive) set_floppy() argument
2224 do_format(int drive, struct format_descr *tmp_format_req) do_format() argument
2259 unsigned int drive = (unsigned long)req->rq_disk->private_data; floppy_end_request() local
2859 int drive; redo_fd_request() local
3014 user_reset_fdc(int drive, int arg, bool interruptible) user_reset_fdc() argument
3052 drive_name(int type, int drive) drive_name() argument
3229 int drive; raw_cmd_ioctl() local
3276 floppy_raw_cmd_ioctl(int type, int drive, int cmd, void __user *param) floppy_raw_cmd_ioctl() argument
3297 floppy_raw_cmd_ioctl(int type, int drive, int cmd, void __user *param) floppy_raw_cmd_ioctl() argument
3315 set_geometry(unsigned int cmd, struct floppy_struct *g, int drive, int type, struct block_device *bdev) set_geometry() argument
3436 get_floppy_geometry(int drive, int type, struct floppy_struct **g) get_floppy_geometry() argument
3455 int drive = (long)bdev->bd_disk->private_data; fd_getgeo() local
3491 int drive = (long)bdev->bd_disk->private_data; fd_locked_ioctl() local
3752 int drive, type; compat_set_geometry() local
3774 compat_get_prm(int drive, struct compat_floppy_struct __user *arg) compat_get_prm() argument
3796 compat_setdrvprm(int drive, struct compat_floppy_drive_params __user *arg) compat_setdrvprm() argument
3832 compat_getdrvprm(int drive, struct compat_floppy_drive_params __user *arg) compat_getdrvprm() argument
3866 compat_getdrvstat(int drive, bool poll, struct compat_floppy_drive_struct __user *arg) compat_getdrvstat() argument
3905 compat_getfdcstat(int drive, struct compat_floppy_fdc_state __user *arg) compat_getfdcstat() argument
3934 compat_werrorget(int drive, struct compat_floppy_write_errors __user *arg) compat_werrorget() argument
3958 int drive = (long)bdev->bd_disk->private_data; fd_compat_ioctl() local
4007 int drive; config_types() local
4059 int drive = (long)disk->private_data; floppy_release() local
4080 int drive = (long)bdev->bd_disk->private_data; floppy_open() local
4181 int drive = (long)disk->private_data; floppy_check_events() local
4209 int drive; global() member
4216 int drive = cbdata->drive; floppy_rb0_cb() local
4226 __floppy_read_block_0(struct block_device *bdev, int drive) __floppy_read_block_0() argument
4269 int drive = (long)disk->private_data; floppy_revalidate() local
4544 int drive; floppy_cmos_show() local
4594 floppy_available(int drive) floppy_available() argument
4605 int drive = (*part & 3) | ((*part & 0x80) >> 5); floppy_find() local
4616 int i, unit, drive, err; do_floppy_init() local
4955 int drive; floppy_release_irq_and_dma() local
5030 int drive; floppy_module_exit() local
[all...]

Completed in 28 milliseconds

123456789