Home
last modified time | relevance | path

Searched refs:ide_drive_t (Results 1 – 25 of 91) sorted by relevance

1234

/linux-3.4.99/include/linux/
Dide.h577 typedef struct ide_drive_s ide_drive_t; typedef
579 #define to_ide_device(dev) container_of(dev, ide_drive_t, gendev)
595 void (*dev_select)(ide_drive_t *);
596 void (*tf_load)(ide_drive_t *, struct ide_taskfile *, u8);
597 void (*tf_read)(ide_drive_t *, struct ide_taskfile *, u8);
599 void (*input_data)(ide_drive_t *, struct ide_cmd *,
601 void (*output_data)(ide_drive_t *, struct ide_cmd *,
626 void (*init_dev)(ide_drive_t *);
627 void (*set_pio_mode)(struct hwif_s *, ide_drive_t *);
628 void (*set_dma_mode)(struct hwif_s *, ide_drive_t *);
[all …]
/linux-3.4.99/drivers/ide/
Dide-dma.c91 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()
197 void ide_dma_off(ide_drive_t *drive) in ide_dma_off()
211 void ide_dma_on(ide_drive_t *drive) in ide_dma_on()
219 int __ide_dma_bad_drive(ide_drive_t *drive) in __ide_dma_bad_drive()
239 static unsigned int ide_get_mode_mask(ide_drive_t *drive, u8 base, u8 req_mode) in ide_get_mode_mask()
313 u8 ide_find_dma_mode(ide_drive_t *drive, u8 req_mode) in ide_find_dma_mode()
[all …]
Dide-gd.c51 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 …]
Dide-cd_ioctl.c30 ide_drive_t *drive = cdi->handle; in ide_cdrom_release_real()
43 ide_drive_t *drive = cdi->handle; in ide_cdrom_drive_status()
91 ide_drive_t *drive = cdi->handle; in ide_cdrom_check_events_real()
107 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()
187 ide_drive_t *drive = cdi->handle; in ide_cdrom_tray_move()
202 ide_drive_t *drive = cdi->handle; in ide_cdrom_lock_door()
213 ide_drive_t *drive = cdi->handle; in ide_cdrom_select_speed()
252 ide_drive_t *drive = cdi->handle; in ide_cdrom_get_last_session()
273 ide_drive_t *drive = cdi->handle; in ide_cdrom_get_mcn()
[all …]
Dide-sysfs.c4 char *ide_media_string(ide_drive_t *drive) in ide_media_string()
25 ide_drive_t *drive = to_ide_device(dev); in media_show()
32 ide_drive_t *drive = to_ide_device(dev); in drivename_show()
39 ide_drive_t *drive = to_ide_device(dev); in modalias_show()
46 ide_drive_t *drive = to_ide_device(dev); in model_show()
53 ide_drive_t *drive = to_ide_device(dev); in firmware_show()
60 ide_drive_t *drive = to_ide_device(dev); in serial_show()
Dide-cd.h80 ide_drive_t *drive;
103 int ide_cd_queue_pc(ide_drive_t *, const unsigned char *, int, void *,
105 int ide_cd_read_toc(ide_drive_t *, struct request_sense *);
106 int ide_cdrom_get_capabilities(ide_drive_t *, u8 *);
107 void ide_cdrom_update_speed(ide_drive_t *, u8 *);
108 int cdrom_check_status(ide_drive_t *, struct request_sense *);
Dide-disk.c55 static void ide_tf_set_cmd(ide_drive_t *drive, struct ide_cmd *cmd, u8 dma) in ide_tf_set_cmd()
81 static ide_startstop_t __ide_do_rw_disk(ide_drive_t *drive, struct request *rq, in __ide_do_rw_disk()
181 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 …]
Dide-proc.c119 ide_drive_t *drive = (ide_drive_t *)m->private; in ide_identify_proc_show()
192 static int ide_read_setting(ide_drive_t *drive, in ide_read_setting()
222 static int ide_write_setting(ide_drive_t *drive, in ide_write_setting()
239 static int set_xfer_rate (ide_drive_t *drive, int arg) in set_xfer_rate()
285 ide_drive_t *drive = (ide_drive_t *) m->private; in ide_settings_proc_show()
336 ide_drive_t *drive = (ide_drive_t *) PDE(file->f_path.dentry->d_inode)->data; in ide_settings_proc_write()
466 ide_drive_t *drive = (ide_drive_t *) m->private; in ide_geometry_proc_show()
491 ide_drive_t *drive = (ide_drive_t *) seq->private; in ide_dmodel_proc_show()
513 ide_drive_t *drive = (ide_drive_t *)m->private; in ide_driver_proc_show()
531 static int ide_replace_subdriver(ide_drive_t *drive, const char *driver) in ide_replace_subdriver()
[all …]
Dide-devsets.c10 static int set_io_32bit(ide_drive_t *drive, int arg) in set_io_32bit()
25 static int set_ksettings(ide_drive_t *drive, int arg) in set_ksettings()
40 static int set_using_dma(ide_drive_t *drive, int arg) in set_using_dma()
96 static int set_pio_mode(ide_drive_t *drive, int arg) in set_pio_mode()
136 static int set_unmaskirq(ide_drive_t *drive, int arg) in set_unmaskirq()
158 int ide_devset_execute(ide_drive_t *drive, const struct ide_devset *setting, in ide_devset_execute()
182 ide_startstop_t ide_do_devset(ide_drive_t *drive, struct request *rq) in ide_do_devset()
184 int err, (*setfunc)(ide_drive_t *, int) = rq->special; in ide_do_devset()
Dide-tape.c141 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 …]
Dide-eh.c7 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, int 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 …]
Dtrm290.c145 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()
Dide-io.c57 int ide_end_rq(ide_drive_t *drive, struct request *rq, int 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, int 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 …]
Dide-atapi.c27 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()
116 int ide_do_test_unit_ready(ide_drive_t *drive, struct gendisk *disk) in ide_do_test_unit_ready()
127 int ide_do_start_stop(ide_drive_t *drive, struct gendisk *disk, int start) in ide_do_start_stop()
142 int ide_set_media_lock(ide_drive_t *drive, struct gendisk *disk, int on) in ide_set_media_lock()
157 void ide_create_request_sense_cmd(ide_drive_t *drive, struct ide_atapi_pc *pc) in ide_create_request_sense_cmd()
171 void ide_prep_sense(ide_drive_t *drive, struct request *rq) in ide_prep_sense()
223 int ide_queue_sense_rq(ide_drive_t *drive, void *special) in ide_queue_sense_rq()
247 void ide_retry_pc(ide_drive_t *drive) in ide_retry_pc()
[all …]
Dide-iops.c30 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()
164 int ide_wait_stat(ide_startstop_t *startstop, ide_drive_t *drive, u8 good, in ide_wait_stat()
228 u8 eighty_ninty_three(ide_drive_t *drive) in eighty_ninty_three()
299 void ide_check_nien_quirk_list(ide_drive_t *drive) in ide_check_nien_quirk_list()
310 int ide_driveid_update(ide_drive_t *drive) in ide_driveid_update()
342 int ide_config_drive_speed(ide_drive_t *drive, u8 speed) in ide_config_drive_speed()
444 void __ide_set_handler(ide_drive_t *drive, ide_handler_t *handler, in __ide_set_handler()
456 void ide_set_handler(ide_drive_t *drive, ide_handler_t *handler, in ide_set_handler()
[all …]
Dide-disk_proc.c9 static int smart_enable(ide_drive_t *drive) in smart_enable()
25 static int get_smart_data(ide_drive_t *drive, u8 *buf, u8 sub_cmd) in get_smart_data()
45 ide_drive_t *drive = (ide_drive_t *) m->private; in idedisk_cache_proc_show()
69 ide_drive_t*drive = (ide_drive_t *)m->private; in idedisk_capacity_proc_show()
88 static int __idedisk_proc_show(struct seq_file *m, ide_drive_t *drive, u8 sub_cmd) in __idedisk_proc_show()
Dide-dma-sff.c20 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()
Dide-pm.c7 ide_drive_t *drive = dev_get_drvdata(dev); in generic_ide_suspend()
8 ide_drive_t *pair = ide_get_pair_dev(drive); in generic_ide_suspend()
43 ide_drive_t *drive = dev_get_drvdata(dev); in generic_ide_resume()
44 ide_drive_t *pair = ide_get_pair_dev(drive); in generic_ide_resume()
81 void ide_complete_power_step(ide_drive_t *drive, struct request *rq) in ide_complete_power_step()
111 ide_startstop_t ide_start_power_step(ide_drive_t *drive, struct request *rq) in ide_start_power_step()
182 void ide_complete_pm_rq(ide_drive_t *drive, struct request *rq) in ide_complete_pm_rq()
209 void ide_check_pm_state(ide_drive_t *drive, struct request *rq) in ide_check_pm_state()
Dsl82c105.c42 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()
Dht6560b.c47 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()
Dide-xfer-mode.c62 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()
Dide-taskfile.c27 void ide_tf_readback(ide_drive_t *drive, struct ide_cmd *cmd) in ide_tf_readback()
57 int taskfile_lib_get_identify(ide_drive_t *drive, u8 *buf) in taskfile_lib_get_identify()
74 static ide_startstop_t task_no_data_intr(ide_drive_t *);
75 static ide_startstop_t pre_task_out_intr(ide_drive_t *, struct ide_cmd *);
76 static ide_startstop_t task_pio_intr(ide_drive_t *);
78 ide_startstop_t do_rw_taskfile(ide_drive_t *drive, struct ide_cmd *orig_cmd) in do_rw_taskfile()
148 static ide_startstop_t task_no_data_intr(ide_drive_t *drive) in task_no_data_intr()
198 static u8 wait_drive_not_busy(ide_drive_t *drive) in wait_drive_not_busy()
223 void ide_pio_bytes(ide_drive_t *drive, struct ide_cmd *cmd, in ide_pio_bytes()
282 static void ide_pio_datablock(ide_drive_t *drive, struct ide_cmd *cmd, in ide_pio_datablock()
[all …]
Dide-probe.c51 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()
191 static void do_identify(ide_drive_t *drive, u8 cmd, u16 *id) in do_identify()
250 int ide_dev_read_id(ide_drive_t *drive, u8 cmd, u16 *id, int irq_ctx) in ide_dev_read_id()
330 int ide_busy_sleep(ide_drive_t *drive, unsigned long timeout, int altstatus) in ide_busy_sleep()
350 static u8 ide_read_device(ide_drive_t *drive) in ide_read_device()
380 static int do_probe (ide_drive_t *drive, u8 cmd) in do_probe()
[all …]
Dide-floppy_ioctl.c36 static int ide_floppy_get_format_capacities(ide_drive_t *drive, in ide_floppy_get_format_capacities()
119 static int ide_floppy_get_sfrp_bit(ide_drive_t *drive, struct ide_atapi_pc *pc) in ide_floppy_get_sfrp_bit()
138 static int ide_floppy_format_unit(ide_drive_t *drive, struct ide_atapi_pc *pc, in ide_floppy_format_unit()
197 static int ide_floppy_get_format_progress(ide_drive_t *drive, in ide_floppy_get_format_progress()
235 static int ide_floppy_lockdoor(ide_drive_t *drive, struct ide_atapi_pc *pc, in ide_floppy_lockdoor()
253 static int ide_floppy_format_ioctl(ide_drive_t *drive, struct ide_atapi_pc *pc, in ide_floppy_format_ioctl()
273 int ide_floppy_ioctl(ide_drive_t *drive, struct block_device *bdev, in ide_floppy_ioctl()
Dsis5513.c187 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 …]

1234