/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 | 52 ide_drive_t *drive = idkp->drive; in ide_disk_put() local 60 sector_t ide_gd_capacity(ide_drive_t *drive) in ide_gd_capacity() 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() local 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, 188 ide_drive_t *drive; local [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-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 93 ide_drive_t *drive = cdi->handle; in ide_cdrom_check_events_real() local 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() local 198 ide_drive_t *drive = cdi->handle; in ide_cdrom_lock_door() local 209 ide_drive_t *drive = cdi->handle; in ide_cdrom_select_speed() local 247 ide_drive_t *drive = cdi->handle; in ide_cdrom_get_last_session() local 267 ide_drive_t *drive = cdi->handle; in ide_cdrom_get_mcn() local [all …]
|
D | ide-tape.c | 142 ide_drive_t *drive; member 257 ide_drive_t *drive = tape->drive; in ide_tape_put() local 269 static void idetape_analyze_error(ide_drive_t *drive) in idetape_analyze_error() 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() 675 static void idetape_create_write_filemark_cmd(ide_drive_t *drive, in idetape_create_write_filemark_cmd() [all …]
|
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-cd.c | 79 ide_drive_t *drive = cd->drive; in ide_cd_put() local 92 static void cdrom_saw_media_change(ide_drive_t *drive) in cdrom_saw_media_change() 98 static int cdrom_log_sense(ide_drive_t *drive, struct request *rq) in cdrom_log_sense() 145 static void cdrom_analyze_sense_data(ide_drive_t *drive, in cdrom_analyze_sense_data() 212 static void ide_cd_complete_failed_rq(ide_drive_t *drive, struct request *rq) in ide_cd_complete_failed_rq() 246 static int ide_cd_breathe(ide_drive_t *drive, struct request *rq) in ide_cd_breathe() 268 static void ide_cd_free_sense(ide_drive_t *drive) in ide_cd_free_sense() 284 static int cdrom_decode_status(ide_drive_t *drive, u8 stat) in cdrom_decode_status() 417 static void ide_cd_request_sense_fixup(ide_drive_t *drive, struct ide_cmd *cmd) in ide_cd_request_sense_fixup() 432 int ide_cd_queue_pc(ide_drive_t *drive, const unsigned char *cmd, in ide_cd_queue_pc() [all …]
|
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() 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() 335 static ide_startstop_t do_reset1(ide_drive_t *drive, int do_not_try_atapi) in do_reset1() [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 …]
|
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() 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() 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-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-proc.c | 81 ide_drive_t *drive = (ide_drive_t *)m->private; in ide_identify_proc_show() local 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() local 285 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-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 | 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-ioctls.c | 29 int ide_setting_ioctl(ide_drive_t *drive, struct block_device *bdev, in ide_setting_ioctl() 67 static int ide_get_identity_ioctl(ide_drive_t *drive, unsigned int cmd, in ide_get_identity_ioctl() 97 static int ide_get_nice_ioctl(ide_drive_t *drive, unsigned long arg) in ide_get_nice_ioctl() 105 static int ide_set_nice_ioctl(ide_drive_t *drive, unsigned long arg) in ide_set_nice_ioctl() 127 static int ide_cmd_ioctl(ide_drive_t *drive, void __user *argp) in ide_cmd_ioctl() 203 static int ide_task_ioctl(ide_drive_t *drive, void __user *p) in ide_task_ioctl() 229 static int generic_drive_reset(ide_drive_t *drive) in generic_drive_reset() 244 int generic_ide_ioctl(ide_drive_t *drive, struct block_device *bdev, in generic_ide_ioctl()
|
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 | 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 | 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-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 | ide-floppy.c | 64 static int ide_floppy_callback(ide_drive_t *drive, int dsc) in ide_floppy_callback() 124 static ide_startstop_t ide_floppy_issue_pc(ide_drive_t *drive, in ide_floppy_issue_pc() 192 static void idefloppy_create_rw_cmd(ide_drive_t *drive, in idefloppy_create_rw_cmd() 230 static ide_startstop_t ide_floppy_do_request(ide_drive_t *drive, in ide_floppy_do_request() 316 static int ide_floppy_get_flexible_disk_page(ide_drive_t *drive, in ide_floppy_get_flexible_disk_page() 379 static int ide_floppy_get_capacity(ide_drive_t *drive) in ide_floppy_get_capacity() 482 static void ide_floppy_setup(ide_drive_t *drive) in ide_floppy_setup() 521 static void ide_floppy_flush(ide_drive_t *drive) in ide_floppy_flush() 525 static int ide_floppy_init_media(ide_drive_t *drive, struct gendisk *disk) in ide_floppy_init_media()
|
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-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-pm.c | 8 ide_drive_t *drive = to_ide_device(dev); in generic_ide_suspend() local 60 ide_drive_t *drive = to_ide_device(dev); in generic_ide_resume() local 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()
|
/drivers/block/ |
D | amiflop.c | 244 #define SELMASK(drive) (1 << (3 + (drive & 3))) argument 358 static inline int try_fdc(int drive) in try_fdc() 364 static void get_fdc(int drive) in get_fdc() 393 static void fd_select (int drive) in fd_select() 417 static void fd_deselect (int drive) in fd_deselect() 489 unsigned long drive = ((unsigned long)timer - in fd_motor_off() local 508 int drive; in floppy_off() local 514 static int fd_calibrate(int drive) in fd_calibrate() 566 static int fd_seek(int drive, int track) in fd_seek() 623 static unsigned long fd_get_drive_id(int drive) in fd_get_drive_id() [all …]
|