/Linux-v4.19/include/linux/ |
D | ide.h | 617 typedef struct ide_drive_s ide_drive_t; typedef 619 #define to_ide_device(dev) container_of(dev, ide_drive_t, gendev) 635 void (*dev_select)(ide_drive_t *); 636 void (*tf_load)(ide_drive_t *, struct ide_taskfile *, u8); 637 void (*tf_read)(ide_drive_t *, struct ide_taskfile *, u8); 639 void (*input_data)(ide_drive_t *, struct ide_cmd *, 641 void (*output_data)(ide_drive_t *, struct ide_cmd *, 666 void (*init_dev)(ide_drive_t *); 667 void (*set_pio_mode)(struct hwif_s *, ide_drive_t *); 668 void (*set_dma_mode)(struct hwif_s *, ide_drive_t *); [all …]
|
/Linux-v4.19/drivers/ide/ |
D | ide-gd.c | 51 ide_drive_t *drive = idkp->drive; in ide_disk_put() 59 sector_t ide_gd_capacity(ide_drive_t *drive) in ide_gd_capacity() 64 static int ide_gd_probe(ide_drive_t *); 66 static void ide_gd_remove(ide_drive_t *drive) in ide_gd_remove() 84 ide_drive_t *drive = idkp->drive; in ide_disk_release() 99 static void ide_gd_resume(ide_drive_t *drive) in ide_gd_resume() 118 static void ide_gd_shutdown(ide_drive_t *drive) 147 static ide_proc_entry_t *ide_disk_proc_entries(ide_drive_t *drive) 152 static const struct ide_proc_devset *ide_disk_proc_devsets(ide_drive_t *drive) 159 static ide_startstop_t ide_gd_do_request(ide_drive_t *drive, [all …]
|
D | ide-dma.c | 91 ide_startstop_t ide_dma_intr(ide_drive_t *drive) in ide_dma_intr() 117 int ide_dma_good_drive(ide_drive_t *drive) in ide_dma_good_drive() 133 static int ide_dma_map_sg(ide_drive_t *drive, struct ide_cmd *cmd) in ide_dma_map_sg() 164 void ide_dma_unmap_sg(ide_drive_t *drive, struct ide_cmd *cmd) in ide_dma_unmap_sg() 180 void ide_dma_off_quietly(ide_drive_t *drive) in ide_dma_off_quietly() 196 void ide_dma_off(ide_drive_t *drive) in ide_dma_off() 210 void ide_dma_on(ide_drive_t *drive) in ide_dma_on() 217 int __ide_dma_bad_drive(ide_drive_t *drive) in __ide_dma_bad_drive() 237 static unsigned int ide_get_mode_mask(ide_drive_t *drive, u8 base, u8 req_mode) in ide_get_mode_mask() 311 u8 ide_find_dma_mode(ide_drive_t *drive, u8 req_mode) in ide_find_dma_mode() [all …]
|
D | ide-cd_ioctl.c | 31 ide_drive_t *drive = cdi->handle; in ide_cdrom_release_real() 44 ide_drive_t *drive = cdi->handle; in ide_cdrom_drive_status() 92 ide_drive_t *drive = cdi->handle; in ide_cdrom_check_events_real() 108 int cdrom_eject(ide_drive_t *drive, int ejectflag) in cdrom_eject() 136 int ide_cd_lockdoor(ide_drive_t *drive, int lockflag) in ide_cd_lockdoor() 183 ide_drive_t *drive = cdi->handle; in ide_cdrom_tray_move() 197 ide_drive_t *drive = cdi->handle; in ide_cdrom_lock_door() 208 ide_drive_t *drive = cdi->handle; in ide_cdrom_select_speed() 246 ide_drive_t *drive = cdi->handle; in ide_cdrom_get_last_session() 266 ide_drive_t *drive = cdi->handle; in ide_cdrom_get_mcn() [all …]
|
D | ide-proc.c | 80 ide_drive_t *drive = (ide_drive_t *)m->private; in ide_identify_proc_show() 140 static int ide_read_setting(ide_drive_t *drive, in ide_read_setting() 170 static int ide_write_setting(ide_drive_t *drive, in ide_write_setting() 187 static int set_xfer_rate (ide_drive_t *drive, int arg) in set_xfer_rate() 233 ide_drive_t *drive = (ide_drive_t *) m->private; in ide_settings_proc_show() 284 ide_drive_t *drive = PDE_DATA(file_inode(file)); in ide_settings_proc_write() 401 ide_drive_t *drive = (ide_drive_t *) m->private; in ide_geometry_proc_show() 413 ide_drive_t *drive = (ide_drive_t *) seq->private; in ide_dmodel_proc_show() 422 ide_drive_t *drive = (ide_drive_t *)m->private; in ide_driver_proc_show() 437 ide_drive_t *drive = (ide_drive_t *) m->private; in ide_media_proc_show() [all …]
|
D | ide-cd.h | 77 ide_drive_t *drive; 100 int ide_cd_queue_pc(ide_drive_t *, const unsigned char *, int, void *, 102 int ide_cd_read_toc(ide_drive_t *); 103 int ide_cdrom_get_capabilities(ide_drive_t *, u8 *); 104 void ide_cdrom_update_speed(ide_drive_t *, u8 *); 105 int cdrom_check_status(ide_drive_t *, struct scsi_sense_hdr *);
|
D | ide-disk.c | 56 static void ide_tf_set_cmd(ide_drive_t *drive, struct ide_cmd *cmd, u8 dma) 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() 182 static ide_startstop_t ide_do_rw_disk(ide_drive_t *drive, struct request *rq, in ide_do_rw_disk() 206 static u64 idedisk_read_native_max_address(ide_drive_t *drive, int lba48) in idedisk_read_native_max_address() 240 static u64 idedisk_set_max_address(ide_drive_t *drive, u64 addr_req, int lba48) in idedisk_set_max_address() 298 static u64 ide_disk_hpa_get_native_capacity(ide_drive_t *drive, int lba48) in ide_disk_hpa_get_native_capacity() 317 static u64 ide_disk_hpa_set_capacity(ide_drive_t *drive, u64 set_max, int lba48) in ide_disk_hpa_set_capacity() 326 static void idedisk_check_hpa(ide_drive_t *drive) in idedisk_check_hpa() 355 static int ide_disk_get_capacity(ide_drive_t *drive) in ide_disk_get_capacity() 410 static void ide_disk_unlock_native_capacity(ide_drive_t *drive) in ide_disk_unlock_native_capacity() [all …]
|
D | ide-devsets.c | 11 static int set_io_32bit(ide_drive_t *drive, int arg) in set_io_32bit() 26 static int set_ksettings(ide_drive_t *drive, int arg) in set_ksettings() 41 static int set_using_dma(ide_drive_t *drive, int arg) in set_using_dma() 97 static int set_pio_mode(ide_drive_t *drive, int arg) in set_pio_mode() 137 static int set_unmaskirq(ide_drive_t *drive, int arg) in set_unmaskirq() 159 int ide_devset_execute(ide_drive_t *drive, const struct ide_devset *setting, in ide_devset_execute() 183 ide_startstop_t ide_do_devset(ide_drive_t *drive, struct request *rq) in ide_do_devset() 185 int err, (*setfunc)(ide_drive_t *, int) = rq->special; in ide_do_devset()
|
D | ide-sysfs.c | 5 char *ide_media_string(ide_drive_t *drive) in ide_media_string() 26 ide_drive_t *drive = to_ide_device(dev); in media_show() 34 ide_drive_t *drive = to_ide_device(dev); in drivename_show() 42 ide_drive_t *drive = to_ide_device(dev); in modalias_show() 50 ide_drive_t *drive = to_ide_device(dev); in model_show() 58 ide_drive_t *drive = to_ide_device(dev); in firmware_show() 66 ide_drive_t *drive = to_ide_device(dev); in serial_show()
|
D | ide-tape.c | 141 ide_drive_t *drive; 256 ide_drive_t *drive = tape->drive; in ide_tape_put() 268 static void idetape_analyze_error(ide_drive_t *drive) in idetape_analyze_error() 324 static void ide_tape_handle_dsc(ide_drive_t *); 326 static int ide_tape_callback(ide_drive_t *drive, int dsc) in ide_tape_callback() 378 static void ide_tape_stall_queue(ide_drive_t *drive) in ide_tape_stall_queue() 390 static void ide_tape_handle_dsc(ide_drive_t *drive) in ide_tape_handle_dsc() 439 static ide_startstop_t ide_tape_issue_pc(ide_drive_t *drive, in ide_tape_issue_pc() 515 static ide_startstop_t idetape_media_access_finished(ide_drive_t *drive) in idetape_media_access_finished() 566 static ide_startstop_t idetape_do_request(ide_drive_t *drive, in idetape_do_request() [all …]
|
D | ide-disk_proc.c | 10 static int smart_enable(ide_drive_t *drive) in smart_enable() 26 static int get_smart_data(ide_drive_t *drive, u8 *buf, u8 sub_cmd) in get_smart_data() 46 ide_drive_t *drive = (ide_drive_t *) m->private; in idedisk_cache_proc_show() 57 ide_drive_t*drive = (ide_drive_t *)m->private; in idedisk_capacity_proc_show() 63 static int __idedisk_proc_show(struct seq_file *m, ide_drive_t *drive, u8 sub_cmd) in __idedisk_proc_show()
|
D | ide-eh.c | 7 static ide_startstop_t ide_ata_error(ide_drive_t *drive, struct request *rq, in ide_ata_error() 63 static ide_startstop_t ide_atapi_error(ide_drive_t *drive, struct request *rq, in ide_atapi_error() 93 static ide_startstop_t __ide_error(ide_drive_t *drive, struct request *rq, in __ide_error() 114 ide_startstop_t ide_error(ide_drive_t *drive, const char *msg, u8 stat) in ide_error() 146 static inline void ide_complete_drive_reset(ide_drive_t *drive, blk_status_t err) in ide_complete_drive_reset() 159 static ide_startstop_t do_reset1(ide_drive_t *, int); 167 static ide_startstop_t atapi_reset_pollfunc(ide_drive_t *drive) in atapi_reset_pollfunc() 223 static ide_startstop_t reset_pollfunc(ide_drive_t *drive) in reset_pollfunc() 269 static void ide_disk_pre_reset(ide_drive_t *drive) in ide_disk_pre_reset() 287 static void pre_reset(ide_drive_t *drive) in pre_reset() [all …]
|
D | trm290.c | 145 static void trm290_prepare_drive (ide_drive_t *drive, unsigned int use_dma) in trm290_prepare_drive() 174 static void trm290_dev_select(ide_drive_t *drive) in trm290_dev_select() 181 static int trm290_dma_check(ide_drive_t *drive, struct ide_cmd *cmd) in trm290_dma_check() 192 static int trm290_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd) in trm290_dma_setup() 209 static void trm290_dma_start(ide_drive_t *drive) in trm290_dma_start() 214 static int trm290_dma_end(ide_drive_t *drive) in trm290_dma_end() 223 static int trm290_dma_test_irq(ide_drive_t *drive) in trm290_dma_test_irq() 230 static void trm290_dma_host_set(ide_drive_t *drive, int on) in trm290_dma_host_set()
|
D | ide-io.c | 57 int ide_end_rq(ide_drive_t *drive, struct request *rq, blk_status_t error, in ide_end_rq() 74 void ide_complete_cmd(ide_drive_t *drive, struct ide_cmd *cmd, u8 stat, u8 err) in ide_complete_cmd() 115 int ide_complete_rq(ide_drive_t *drive, blk_status_t error, unsigned int nr_bytes) in ide_complete_rq() 136 void ide_kill_rq(ide_drive_t *drive, struct request *rq) in ide_kill_rq() 155 static void ide_tf_set_specify_cmd(ide_drive_t *drive, struct ide_taskfile *tf) in ide_tf_set_specify_cmd() 165 static void ide_tf_set_restore_cmd(ide_drive_t *drive, struct ide_taskfile *tf) in ide_tf_set_restore_cmd() 171 static void ide_tf_set_setmult_cmd(ide_drive_t *drive, struct ide_taskfile *tf) in ide_tf_set_setmult_cmd() 185 static ide_startstop_t do_special(ide_drive_t *drive) in do_special() 223 void ide_map_sg(ide_drive_t *drive, struct ide_cmd *cmd) in ide_map_sg() 253 static ide_startstop_t execute_drive_cmd (ide_drive_t *drive, in execute_drive_cmd() [all …]
|
D | ide-atapi.c | 27 static inline int dev_is_idecd(ide_drive_t *drive) in dev_is_idecd() 36 int ide_check_atapi_device(ide_drive_t *drive, const char *s) in ide_check_atapi_device() 89 int ide_queue_pc_tail(ide_drive_t *drive, struct gendisk *disk, in ide_queue_pc_tail() 117 int ide_do_test_unit_ready(ide_drive_t *drive, struct gendisk *disk) in ide_do_test_unit_ready() 128 int ide_do_start_stop(ide_drive_t *drive, struct gendisk *disk, int start) in ide_do_start_stop() 143 int ide_set_media_lock(ide_drive_t *drive, struct gendisk *disk, int on) in ide_set_media_lock() 158 void ide_create_request_sense_cmd(ide_drive_t *drive, struct ide_atapi_pc *pc) in ide_create_request_sense_cmd() 172 void ide_prep_sense(ide_drive_t *drive, struct request *rq) in ide_prep_sense() 227 int ide_queue_sense_rq(ide_drive_t *drive, void *special) in ide_queue_sense_rq() 251 void ide_retry_pc(ide_drive_t *drive) in ide_retry_pc() [all …]
|
D | ide-iops.c | 30 void SELECT_MASK(ide_drive_t *drive, int mask) in SELECT_MASK() 38 u8 ide_read_error(ide_drive_t *drive) in ide_read_error() 105 int __ide_wait_stat(ide_drive_t *drive, u8 good, u8 bad, in __ide_wait_stat() 169 int ide_wait_stat(ide_startstop_t *startstop, ide_drive_t *drive, u8 good, in ide_wait_stat() 233 u8 eighty_ninty_three(ide_drive_t *drive) in eighty_ninty_three() 304 void ide_check_nien_quirk_list(ide_drive_t *drive) in ide_check_nien_quirk_list() 315 int ide_driveid_update(ide_drive_t *drive) in ide_driveid_update() 347 int ide_config_drive_speed(ide_drive_t *drive, u8 speed) in ide_config_drive_speed() 449 void __ide_set_handler(ide_drive_t *drive, ide_handler_t *handler, in __ide_set_handler() 461 void ide_set_handler(ide_drive_t *drive, ide_handler_t *handler, in ide_set_handler() [all …]
|
D | sl82c105.c | 42 static unsigned int get_pio_timings(ide_drive_t *drive, u8 pio) in get_pio_timings() 66 static void sl82c105_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in sl82c105_set_pio_mode() 95 static void sl82c105_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in sl82c105_set_dma_mode() 147 static void sl82c105_dma_lost_irq(ide_drive_t *drive) in sl82c105_dma_lost_irq() 185 static void sl82c105_dma_start(ide_drive_t *drive) in sl82c105_dma_start() 198 static void sl82c105_dma_clear(ide_drive_t *drive) in sl82c105_dma_clear() 205 static int sl82c105_dma_end(ide_drive_t *drive) in sl82c105_dma_end() 221 static void sl82c105_resetproc(ide_drive_t *drive) in sl82c105_resetproc()
|
D | ide-dma-sff.c | 20 int config_drive_for_dma(ide_drive_t *drive) in config_drive_for_dma() 82 void ide_dma_host_set(ide_drive_t *drive, int on) in ide_dma_host_set() 114 int ide_build_dmatable(ide_drive_t *drive, struct ide_cmd *cmd) in ide_build_dmatable() 187 int ide_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd) in ide_dma_setup() 237 int ide_dma_sff_timer_expiry(ide_drive_t *drive) in ide_dma_sff_timer_expiry() 263 void ide_dma_start(ide_drive_t *drive) in ide_dma_start() 285 int ide_dma_end(ide_drive_t *drive) in ide_dma_end() 316 int ide_dma_test_irq(ide_drive_t *drive) in ide_dma_test_irq()
|
D | ht6560b.c | 47 static inline u8 HT_CONFIG(ide_drive_t *drive) in HT_CONFIG() 97 static inline u8 HT_TIMING(ide_drive_t *drive) in HT_TIMING() 114 static void ht6560b_dev_select(ide_drive_t *drive) in ht6560b_dev_select() 199 static u8 ht_pio2timings(ide_drive_t *drive, const u8 pio) in ht_pio2timings() 251 static void ht_set_prefetch(ide_drive_t *drive, u8 state) in ht_set_prefetch() 281 static void ht6560b_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in ht6560b_set_pio_mode() 308 static void __init ht6560b_init_dev(ide_drive_t *drive) in ht6560b_init_dev()
|
D | ide-xfer-mode.c | 62 static u8 ide_get_best_pio_mode(ide_drive_t *drive, u8 mode_wanted, u8 max_mode) in ide_get_best_pio_mode() 110 int ide_pio_need_iordy(ide_drive_t *drive, const u8 pio) in ide_pio_need_iordy() 122 int ide_set_pio_mode(ide_drive_t *drive, const u8 mode) in ide_set_pio_mode() 156 int ide_set_dma_mode(ide_drive_t *drive, const u8 mode) in ide_set_dma_mode() 182 void ide_set_pio(ide_drive_t *drive, u8 req_pio) in ide_set_pio() 222 static u8 ide_rate_filter(ide_drive_t *drive, u8 speed) in ide_rate_filter() 249 int ide_set_xfer_rate(ide_drive_t *drive, u8 rate) in ide_set_xfer_rate()
|
D | ide-probe.c | 51 static void generic_id(ide_drive_t *drive) in generic_id() 60 static void ide_disk_init_chs(ide_drive_t *drive) in ide_disk_init_chs() 86 static void ide_disk_init_mult_count(ide_drive_t *drive) in ide_disk_init_mult_count() 104 static void ide_classify_ata_dev(ide_drive_t *drive) in ide_classify_ata_dev() 123 static void ide_classify_atapi_dev(ide_drive_t *drive) in ide_classify_atapi_dev() 192 static void do_identify(ide_drive_t *drive, u8 cmd, u16 *id) in do_identify() 251 int ide_dev_read_id(ide_drive_t *drive, u8 cmd, u16 *id, int irq_ctx) in ide_dev_read_id() 331 int ide_busy_sleep(ide_drive_t *drive, unsigned long timeout, int altstatus) in ide_busy_sleep() 351 static u8 ide_read_device(ide_drive_t *drive) in ide_read_device() 381 static int do_probe (ide_drive_t *drive, u8 cmd) in do_probe() [all …]
|
D | ide-taskfile.c | 28 void ide_tf_readback(ide_drive_t *drive, struct ide_cmd *cmd) in ide_tf_readback() 58 int taskfile_lib_get_identify(ide_drive_t *drive, u8 *buf) in taskfile_lib_get_identify() 75 static ide_startstop_t task_no_data_intr(ide_drive_t *); 76 static ide_startstop_t pre_task_out_intr(ide_drive_t *, struct ide_cmd *); 77 static ide_startstop_t task_pio_intr(ide_drive_t *); 79 ide_startstop_t do_rw_taskfile(ide_drive_t *drive, struct ide_cmd *orig_cmd) in do_rw_taskfile() 150 static ide_startstop_t task_no_data_intr(ide_drive_t *drive) in task_no_data_intr() 200 static u8 wait_drive_not_busy(ide_drive_t *drive) in wait_drive_not_busy() 225 void ide_pio_bytes(ide_drive_t *drive, struct ide_cmd *cmd, in ide_pio_bytes() 274 static void ide_pio_datablock(ide_drive_t *drive, struct ide_cmd *cmd, in ide_pio_datablock() [all …]
|
D | sis5513.c | 187 static u8 sis_ata133_get_base(ide_drive_t *drive) in sis_ata133_get_base() 197 static void sis_ata16_program_timings(ide_drive_t *drive, const u8 mode) in sis_ata16_program_timings() 220 static void sis_ata100_program_timings(ide_drive_t *drive, const u8 mode) in sis_ata100_program_timings() 243 static void sis_ata133_program_timings(ide_drive_t *drive, const u8 mode) in sis_ata133_program_timings() 265 static void sis_program_timings(ide_drive_t *drive, const u8 mode) in sis_program_timings() 275 static void config_drive_art_rwp(ide_drive_t *drive) in config_drive_art_rwp() 293 static void sis_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in sis_set_pio_mode() 299 static void sis_ata133_program_udma_timings(ide_drive_t *drive, const u8 mode) in sis_ata133_program_udma_timings() 318 static void sis_ata33_program_udma_timings(ide_drive_t *drive, const u8 mode) in sis_ata33_program_udma_timings() 335 static void sis_program_udma_timings(ide_drive_t *drive, const u8 mode) in sis_program_udma_timings() [all …]
|
D | ide-floppy_ioctl.c | 37 static int ide_floppy_get_format_capacities(ide_drive_t *drive, in ide_floppy_get_format_capacities() 120 static int ide_floppy_get_sfrp_bit(ide_drive_t *drive, struct ide_atapi_pc *pc) in ide_floppy_get_sfrp_bit() 139 static int ide_floppy_format_unit(ide_drive_t *drive, struct ide_atapi_pc *pc, in ide_floppy_format_unit() 198 static int ide_floppy_get_format_progress(ide_drive_t *drive, in ide_floppy_get_format_progress() 236 static int ide_floppy_lockdoor(ide_drive_t *drive, struct ide_atapi_pc *pc, in ide_floppy_lockdoor() 254 static int ide_floppy_format_ioctl(ide_drive_t *drive, struct ide_atapi_pc *pc, in ide_floppy_format_ioctl() 274 int ide_floppy_ioctl(ide_drive_t *drive, struct block_device *bdev, in ide_floppy_ioctl()
|
D | ide-pm.c | 8 ide_drive_t *drive = to_ide_device(dev); in generic_ide_suspend() 9 ide_drive_t *pair = ide_get_pair_dev(drive); in generic_ide_suspend() 75 ide_drive_t *drive = to_ide_device(dev); in generic_ide_resume() 76 ide_drive_t *pair = ide_get_pair_dev(drive); in generic_ide_resume() 112 void ide_complete_power_step(ide_drive_t *drive, struct request *rq) in ide_complete_power_step() 142 ide_startstop_t ide_start_power_step(ide_drive_t *drive, struct request *rq) in ide_start_power_step() 213 void ide_complete_pm_rq(ide_drive_t *drive, struct request *rq) in ide_complete_pm_rq() 240 void ide_check_pm_state(ide_drive_t *drive, struct request *rq) in ide_check_pm_state()
|