/Linux-v4.19/drivers/ide/ |
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-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 | 51 ide_drive_t *drive = idkp->drive; in ide_disk_put() local 59 sector_t ide_gd_capacity(ide_drive_t *drive) in ide_gd_capacity() 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() local 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, 187 ide_drive_t *drive; local [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-cd_ioctl.c | 31 ide_drive_t *drive = cdi->handle; in ide_cdrom_release_real() local 44 ide_drive_t *drive = cdi->handle; in ide_cdrom_drive_status() local 92 ide_drive_t *drive = cdi->handle; in ide_cdrom_check_events_real() local 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() local 197 ide_drive_t *drive = cdi->handle; in ide_cdrom_lock_door() local 208 ide_drive_t *drive = cdi->handle; in ide_cdrom_select_speed() local 246 ide_drive_t *drive = cdi->handle; in ide_cdrom_get_last_session() local 266 ide_drive_t *drive = cdi->handle; in ide_cdrom_get_mcn() local [all …]
|
D | ide-tape.c | 141 ide_drive_t *drive; member 256 ide_drive_t *drive = tape->drive; in ide_tape_put() local 268 static void idetape_analyze_error(ide_drive_t *drive) in idetape_analyze_error() 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() 674 static void idetape_create_write_filemark_cmd(ide_drive_t *drive, in idetape_create_write_filemark_cmd() [all …]
|
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() 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() 334 static ide_startstop_t do_reset1(ide_drive_t *drive, int do_not_try_atapi) in do_reset1() [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() 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-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() 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() 299 static void ide_error_cmd(ide_drive_t *drive, struct ide_cmd *cmd) in ide_error_cmd() 317 void ide_finish_cmd(ide_drive_t *drive, struct ide_cmd *cmd, u8 stat) in ide_finish_cmd() 337 static ide_startstop_t task_pio_intr(ide_drive_t *drive) in task_pio_intr() [all …]
|
D | ide-cd.c | 78 ide_drive_t *drive = cd->drive; in ide_cd_put() local 91 static void cdrom_saw_media_change(ide_drive_t *drive) in cdrom_saw_media_change() 97 static int cdrom_log_sense(ide_drive_t *drive, struct request *rq) in cdrom_log_sense() 144 static void cdrom_analyze_sense_data(ide_drive_t *drive, in cdrom_analyze_sense_data() 211 static void ide_cd_complete_failed_rq(ide_drive_t *drive, struct request *rq) in ide_cd_complete_failed_rq() 245 static int ide_cd_breathe(ide_drive_t *drive, struct request *rq) in ide_cd_breathe() 272 static int cdrom_decode_status(ide_drive_t *drive, u8 stat) in cdrom_decode_status() 405 static void ide_cd_request_sense_fixup(ide_drive_t *drive, struct ide_cmd *cmd) in ide_cd_request_sense_fixup() 420 int ide_cd_queue_pc(ide_drive_t *drive, const unsigned char *cmd, in ide_cd_queue_pc() 504 static bool ide_cd_error_cmd(ide_drive_t *drive, struct ide_cmd *cmd) in ide_cd_error_cmd() [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()
|
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-ioctls.c | 19 int ide_setting_ioctl(ide_drive_t *drive, struct block_device *bdev, in ide_setting_ioctl() 57 static int ide_get_identity_ioctl(ide_drive_t *drive, unsigned int cmd, in ide_get_identity_ioctl() 87 static int ide_get_nice_ioctl(ide_drive_t *drive, unsigned long arg) in ide_get_nice_ioctl() 95 static int ide_set_nice_ioctl(ide_drive_t *drive, unsigned long arg) in ide_set_nice_ioctl() 117 static int ide_cmd_ioctl(ide_drive_t *drive, unsigned long arg) in ide_cmd_ioctl() 193 static int ide_task_ioctl(ide_drive_t *drive, unsigned long arg) in ide_task_ioctl() 220 static int generic_drive_reset(ide_drive_t *drive) in generic_drive_reset() 235 int generic_ide_ioctl(ide_drive_t *drive, struct block_device *bdev, in generic_ide_ioctl()
|
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 | 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-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 | 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-proc.c | 80 ide_drive_t *drive = (ide_drive_t *)m->private; in ide_identify_proc_show() local 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() local 284 ide_drive_t *drive = PDE_DATA(file_inode(file)); in ide_settings_proc_write() local 401 ide_drive_t *drive = (ide_drive_t *) m->private; in ide_geometry_proc_show() local 413 ide_drive_t *drive = (ide_drive_t *) seq->private; in ide_dmodel_proc_show() local 422 ide_drive_t *drive = (ide_drive_t *)m->private; in ide_driver_proc_show() local 437 ide_drive_t *drive = (ide_drive_t *) m->private; in ide_media_proc_show() local [all …]
|
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() local 34 ide_drive_t *drive = to_ide_device(dev); in drivename_show() local 42 ide_drive_t *drive = to_ide_device(dev); in modalias_show() local 50 ide_drive_t *drive = to_ide_device(dev); in model_show() local 58 ide_drive_t *drive = to_ide_device(dev); in firmware_show() local 66 ide_drive_t *drive = to_ide_device(dev); in serial_show() local
|
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-floppy.c | 63 static int ide_floppy_callback(ide_drive_t *drive, int dsc) in ide_floppy_callback() 123 static ide_startstop_t ide_floppy_issue_pc(ide_drive_t *drive, in ide_floppy_issue_pc() 191 static void idefloppy_create_rw_cmd(ide_drive_t *drive, in idefloppy_create_rw_cmd() 229 static ide_startstop_t ide_floppy_do_request(ide_drive_t *drive, in ide_floppy_do_request() 315 static int ide_floppy_get_flexible_disk_page(ide_drive_t *drive, in ide_floppy_get_flexible_disk_page() 378 static int ide_floppy_get_capacity(ide_drive_t *drive) in ide_floppy_get_capacity() 481 static void ide_floppy_setup(ide_drive_t *drive) in ide_floppy_setup() 522 static void ide_floppy_flush(ide_drive_t *drive) in ide_floppy_flush() 526 static int ide_floppy_init_media(ide_drive_t *drive, struct gendisk *disk) in ide_floppy_init_media()
|
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-pm.c | 8 ide_drive_t *drive = to_ide_device(dev); in generic_ide_suspend() local 75 ide_drive_t *drive = to_ide_device(dev); in generic_ide_resume() local 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()
|
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() local 57 ide_drive_t*drive = (ide_drive_t *)m->private; in idedisk_capacity_proc_show() local 63 static int __idedisk_proc_show(struct seq_file *m, ide_drive_t *drive, u8 sub_cmd) in __idedisk_proc_show()
|
/Linux-v4.19/drivers/block/ |
D | amiflop.c | 125 #define SELMASK(drive) (1 << (3 + (drive & 3))) argument 240 static inline int try_fdc(int drive) in try_fdc() 246 static void get_fdc(int drive) in get_fdc() 275 static void fd_select (int drive) in fd_select() 299 static void fd_deselect (int drive) in fd_deselect() 371 unsigned long drive = ((unsigned long)timer - in fd_motor_off() local 390 int drive; in floppy_off() local 396 static int fd_calibrate(int drive) in fd_calibrate() 448 static int fd_seek(int drive, int track) in fd_seek() 505 static unsigned long fd_get_drive_id(int drive) in fd_get_drive_id() [all …]
|