/kernel/linux/linux-5.10/include/linux/ |
D | ide.h | 627 typedef struct ide_drive_s ide_drive_t; typedef 629 #define to_ide_device(dev) container_of(dev, ide_drive_t, gendev) 645 void (*dev_select)(ide_drive_t *); 646 void (*tf_load)(ide_drive_t *, struct ide_taskfile *, u8); 647 void (*tf_read)(ide_drive_t *, struct ide_taskfile *, u8); 649 void (*input_data)(ide_drive_t *, struct ide_cmd *, 651 void (*output_data)(ide_drive_t *, struct ide_cmd *, 676 void (*init_dev)(ide_drive_t *); 677 void (*set_pio_mode)(struct hwif_s *, ide_drive_t *); 678 void (*set_dma_mode)(struct hwif_s *, ide_drive_t *); [all …]
|
/kernel/linux/linux-5.10/drivers/ide/ |
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-gd.c | 52 ide_drive_t *drive = idkp->drive; in ide_disk_put() 60 sector_t ide_gd_capacity(ide_drive_t *drive) in ide_gd_capacity() 65 static int ide_gd_probe(ide_drive_t *); 67 static void ide_gd_remove(ide_drive_t *drive) in ide_gd_remove() 85 ide_drive_t *drive = idkp->drive; in ide_disk_release() 100 static void ide_gd_resume(ide_drive_t *drive) in ide_gd_resume() 119 static void ide_gd_shutdown(ide_drive_t *drive) 148 static ide_proc_entry_t *ide_disk_proc_entries(ide_drive_t *drive) 153 static const struct ide_proc_devset *ide_disk_proc_devsets(ide_drive_t *drive) 160 static ide_startstop_t ide_gd_do_request(ide_drive_t *drive, [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() 93 ide_drive_t *drive = cdi->handle; in ide_cdrom_check_events_real() 109 int cdrom_eject(ide_drive_t *drive, int ejectflag) in cdrom_eject() 137 int ide_cd_lockdoor(ide_drive_t *drive, int lockflag) in ide_cd_lockdoor() 184 ide_drive_t *drive = cdi->handle; in ide_cdrom_tray_move() 198 ide_drive_t *drive = cdi->handle; in ide_cdrom_lock_door() 209 ide_drive_t *drive = cdi->handle; in ide_cdrom_select_speed() 247 ide_drive_t *drive = cdi->handle; in ide_cdrom_get_last_session() 267 ide_drive_t *drive = cdi->handle; in ide_cdrom_get_mcn() [all …]
|
D | ide-proc.c | 81 ide_drive_t *drive = (ide_drive_t *)m->private; in ide_identify_proc_show() 141 static int ide_read_setting(ide_drive_t *drive, in ide_read_setting() 171 static int ide_write_setting(ide_drive_t *drive, in ide_write_setting() 188 static int set_xfer_rate (ide_drive_t *drive, int arg) in set_xfer_rate() 234 ide_drive_t *drive = (ide_drive_t *) m->private; in ide_settings_proc_show() 285 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-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-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-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) = ide_req(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 | 142 ide_drive_t *drive; 257 ide_drive_t *drive = tape->drive; in ide_tape_put() 269 static void idetape_analyze_error(ide_drive_t *drive) in idetape_analyze_error() 325 static void ide_tape_handle_dsc(ide_drive_t *); 327 static int ide_tape_callback(ide_drive_t *drive, int dsc) in ide_tape_callback() 379 static void ide_tape_stall_queue(ide_drive_t *drive) in ide_tape_stall_queue() 391 static void ide_tape_handle_dsc(ide_drive_t *drive) in ide_tape_handle_dsc() 440 static ide_startstop_t ide_tape_issue_pc(ide_drive_t *drive, in ide_tape_issue_pc() 516 static ide_startstop_t idetape_media_access_finished(ide_drive_t *drive) in idetape_media_access_finished() 567 static ide_startstop_t idetape_do_request(ide_drive_t *drive, in idetape_do_request() [all …]
|
D | ide-io.c | 57 int ide_end_rq(ide_drive_t *drive, struct request *rq, blk_status_t error, 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() 125 int ide_complete_rq(ide_drive_t *drive, blk_status_t error, unsigned int nr_bytes) in ide_complete_rq() 146 void ide_kill_rq(ide_drive_t *drive, struct request *rq) in ide_kill_rq() 165 static void ide_tf_set_specify_cmd(ide_drive_t *drive, struct ide_taskfile *tf) in ide_tf_set_specify_cmd() 175 static void ide_tf_set_restore_cmd(ide_drive_t *drive, struct ide_taskfile *tf) in ide_tf_set_restore_cmd() 181 static void ide_tf_set_setmult_cmd(ide_drive_t *drive, struct ide_taskfile *tf) in ide_tf_set_setmult_cmd() 195 static ide_startstop_t do_special(ide_drive_t *drive) in do_special() 233 void ide_map_sg(ide_drive_t *drive, struct ide_cmd *cmd) in ide_map_sg() 266 static ide_startstop_t execute_drive_cmd (ide_drive_t *drive, in execute_drive_cmd() [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 | 8 static ide_startstop_t ide_ata_error(ide_drive_t *drive, struct request *rq, in ide_ata_error() 64 static ide_startstop_t ide_atapi_error(ide_drive_t *drive, struct request *rq, in ide_atapi_error() 94 static ide_startstop_t __ide_error(ide_drive_t *drive, struct request *rq, in __ide_error() 115 ide_startstop_t ide_error(ide_drive_t *drive, const char *msg, u8 stat) in ide_error() 147 static inline void ide_complete_drive_reset(ide_drive_t *drive, blk_status_t err) in ide_complete_drive_reset() 160 static ide_startstop_t do_reset1(ide_drive_t *, int); 168 static ide_startstop_t atapi_reset_pollfunc(ide_drive_t *drive) in atapi_reset_pollfunc() 224 static ide_startstop_t reset_pollfunc(ide_drive_t *drive) in reset_pollfunc() 270 static void ide_disk_pre_reset(ide_drive_t *drive) in ide_disk_pre_reset() 288 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-atapi.c | 28 static inline int dev_is_idecd(ide_drive_t *drive) in dev_is_idecd() 37 int ide_check_atapi_device(ide_drive_t *drive, const char *s) in ide_check_atapi_device() 90 int ide_queue_pc_tail(ide_drive_t *drive, struct gendisk *disk, in ide_queue_pc_tail() 118 int ide_do_test_unit_ready(ide_drive_t *drive, struct gendisk *disk) in ide_do_test_unit_ready() 129 int ide_do_start_stop(ide_drive_t *drive, struct gendisk *disk, int start) in ide_do_start_stop() 144 int ide_set_media_lock(ide_drive_t *drive, struct gendisk *disk, int on) in ide_set_media_lock() 159 void ide_create_request_sense_cmd(ide_drive_t *drive, struct ide_atapi_pc *pc) in ide_create_request_sense_cmd() 173 void ide_prep_sense(ide_drive_t *drive, struct request *rq) in ide_prep_sense() 236 int ide_queue_sense_rq(ide_drive_t *drive, void *special) in ide_queue_sense_rq() 269 void ide_retry_pc(ide_drive_t *drive) in ide_retry_pc() [all …]
|
D | ide-iops.c | 31 void SELECT_MASK(ide_drive_t *drive, int mask) in SELECT_MASK() 39 u8 ide_read_error(ide_drive_t *drive) in ide_read_error() 106 int __ide_wait_stat(ide_drive_t *drive, u8 good, u8 bad, in __ide_wait_stat() 170 int ide_wait_stat(ide_startstop_t *startstop, ide_drive_t *drive, u8 good, in ide_wait_stat() 234 u8 eighty_ninty_three(ide_drive_t *drive) in eighty_ninty_three() 305 void ide_check_nien_quirk_list(ide_drive_t *drive) in ide_check_nien_quirk_list() 316 int ide_driveid_update(ide_drive_t *drive) in ide_driveid_update() 348 int ide_config_drive_speed(ide_drive_t *drive, u8 speed) in ide_config_drive_speed() 450 void __ide_set_handler(ide_drive_t *drive, ide_handler_t *handler, in __ide_set_handler() 462 void ide_set_handler(ide_drive_t *drive, ide_handler_t *handler, in ide_set_handler() [all …]
|
D | ide-dma-sff.c | 21 int config_drive_for_dma(ide_drive_t *drive) in config_drive_for_dma() 83 void ide_dma_host_set(ide_drive_t *drive, int on) in ide_dma_host_set() 115 int ide_build_dmatable(ide_drive_t *drive, struct ide_cmd *cmd) in ide_build_dmatable() 188 int ide_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd) in ide_dma_setup() 238 int ide_dma_sff_timer_expiry(ide_drive_t *drive) in ide_dma_sff_timer_expiry() 264 void ide_dma_start(ide_drive_t *drive) in ide_dma_start() 286 int ide_dma_end(ide_drive_t *drive) in ide_dma_end() 317 int ide_dma_test_irq(ide_drive_t *drive) in ide_dma_test_irq()
|
D | sl82c105.c | 43 static unsigned int get_pio_timings(ide_drive_t *drive, u8 pio) in get_pio_timings() 67 static void sl82c105_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in sl82c105_set_pio_mode() 96 static void sl82c105_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in sl82c105_set_dma_mode() 148 static void sl82c105_dma_lost_irq(ide_drive_t *drive) in sl82c105_dma_lost_irq() 186 static void sl82c105_dma_start(ide_drive_t *drive) in sl82c105_dma_start() 199 static void sl82c105_dma_clear(ide_drive_t *drive) in sl82c105_dma_clear() 206 static int sl82c105_dma_end(ide_drive_t *drive) in sl82c105_dma_end() 222 static void sl82c105_resetproc(ide_drive_t *drive) in sl82c105_resetproc()
|
D | ht6560b.c | 48 static inline u8 HT_CONFIG(ide_drive_t *drive) in HT_CONFIG() 98 static inline u8 HT_TIMING(ide_drive_t *drive) in HT_TIMING() 115 static void ht6560b_dev_select(ide_drive_t *drive) in ht6560b_dev_select() 200 static u8 ht_pio2timings(ide_drive_t *drive, const u8 pio) in ht_pio2timings() 252 static void ht_set_prefetch(ide_drive_t *drive, u8 state) in ht_set_prefetch() 282 static void ht6560b_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in ht6560b_set_pio_mode() 309 static void __init ht6560b_init_dev(ide_drive_t *drive) in ht6560b_init_dev()
|
D | ide-xfer-mode.c | 63 static u8 ide_get_best_pio_mode(ide_drive_t *drive, u8 mode_wanted, u8 max_mode) in ide_get_best_pio_mode() 111 int ide_pio_need_iordy(ide_drive_t *drive, const u8 pio) in ide_pio_need_iordy() 123 int ide_set_pio_mode(ide_drive_t *drive, const u8 mode) in ide_set_pio_mode() 157 int ide_set_dma_mode(ide_drive_t *drive, const u8 mode) in ide_set_dma_mode() 183 void ide_set_pio(ide_drive_t *drive, u8 req_pio) in ide_set_pio() 223 static u8 ide_rate_filter(ide_drive_t *drive, u8 speed) in ide_rate_filter() 250 int ide_set_xfer_rate(ide_drive_t *drive, u8 rate) in ide_set_xfer_rate()
|
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() 60 ide_drive_t *drive = to_ide_device(dev); in generic_ide_resume() 61 ide_drive_t *pair = ide_get_pair_dev(drive); in generic_ide_resume() 99 void ide_complete_power_step(ide_drive_t *drive, struct request *rq) in ide_complete_power_step() 129 ide_startstop_t ide_start_power_step(ide_drive_t *drive, struct request *rq) in ide_start_power_step() 200 void ide_complete_pm_rq(ide_drive_t *drive, struct request *rq) in ide_complete_pm_rq() 223 void ide_check_pm_state(ide_drive_t *drive, struct request *rq) in ide_check_pm_state()
|
D | ide-floppy_ioctl.c | 38 static int ide_floppy_get_format_capacities(ide_drive_t *drive, 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() 140 static int ide_floppy_format_unit(ide_drive_t *drive, struct ide_atapi_pc *pc, in ide_floppy_format_unit() 199 static int ide_floppy_get_format_progress(ide_drive_t *drive, in ide_floppy_get_format_progress() 237 static int ide_floppy_lockdoor(ide_drive_t *drive, struct ide_atapi_pc *pc, in ide_floppy_lockdoor() 255 static int ide_floppy_format_ioctl(ide_drive_t *drive, struct ide_atapi_pc *pc, in ide_floppy_format_ioctl() 275 int ide_floppy_ioctl(ide_drive_t *drive, struct block_device *bdev, in ide_floppy_ioctl() 308 int ide_floppy_compat_ioctl(ide_drive_t *drive, struct block_device *bdev, in ide_floppy_compat_ioctl()
|
D | ide-taskfile.c | 29 void ide_tf_readback(ide_drive_t *drive, struct ide_cmd *cmd) in ide_tf_readback() 59 int taskfile_lib_get_identify(ide_drive_t *drive, u8 *buf) in taskfile_lib_get_identify() 76 static ide_startstop_t task_no_data_intr(ide_drive_t *); 77 static ide_startstop_t pre_task_out_intr(ide_drive_t *, struct ide_cmd *); 78 static ide_startstop_t task_pio_intr(ide_drive_t *); 80 ide_startstop_t do_rw_taskfile(ide_drive_t *drive, struct ide_cmd *orig_cmd) in do_rw_taskfile() 151 static ide_startstop_t task_no_data_intr(ide_drive_t *drive) in task_no_data_intr() 201 static u8 wait_drive_not_busy(ide_drive_t *drive) in wait_drive_not_busy() 226 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-probe.c | 52 static void generic_id(ide_drive_t *drive) in generic_id() 61 static void ide_disk_init_chs(ide_drive_t *drive) in ide_disk_init_chs() 87 static void ide_disk_init_mult_count(ide_drive_t *drive) in ide_disk_init_mult_count() 105 static void ide_classify_ata_dev(ide_drive_t *drive) in ide_classify_ata_dev() 124 static void ide_classify_atapi_dev(ide_drive_t *drive) in ide_classify_atapi_dev() 193 static void do_identify(ide_drive_t *drive, u8 cmd, u16 *id) in do_identify() 252 int ide_dev_read_id(ide_drive_t *drive, u8 cmd, u16 *id, int irq_ctx) in ide_dev_read_id() 332 int ide_busy_sleep(ide_drive_t *drive, unsigned long timeout, int altstatus) in ide_busy_sleep() 352 static u8 ide_read_device(ide_drive_t *drive) in ide_read_device() 382 static int do_probe (ide_drive_t *drive, u8 cmd) in do_probe() [all …]
|