Home
last modified time | relevance | path

Searched defs:drive (Results 1 – 25 of 94) sorted by relevance

1234

/drivers/ide/
Dide-dma.c89 ide_startstop_t ide_dma_intr(ide_drive_t *drive) in ide_dma_intr()
111 int ide_dma_good_drive(ide_drive_t *drive) in ide_dma_good_drive()
127 int ide_build_sglist(ide_drive_t *drive, struct request *rq) in ide_build_sglist()
161 void ide_destroy_dmatable(ide_drive_t *drive) in ide_destroy_dmatable()
177 void ide_dma_off_quietly(ide_drive_t *drive) in ide_dma_off_quietly()
194 void ide_dma_off(ide_drive_t *drive) in ide_dma_off()
208 void ide_dma_on(ide_drive_t *drive) in ide_dma_on()
216 int __ide_dma_bad_drive(ide_drive_t *drive) in __ide_dma_bad_drive()
236 static unsigned int ide_get_mode_mask(ide_drive_t *drive, u8 base, u8 req_mode) in ide_get_mode_mask()
305 u8 ide_find_dma_mode(ide_drive_t *drive, u8 req_mode) in ide_find_dma_mode()
[all …]
Dide-gd.c48 ide_drive_t *drive = idkp->drive; in ide_disk_put() local
56 sector_t ide_gd_capacity(ide_drive_t *drive) in ide_gd_capacity()
63 static void ide_gd_remove(ide_drive_t *drive) in ide_gd_remove()
81 ide_drive_t *drive = idkp->drive; in ide_disk_release() local
96 static void ide_gd_resume(ide_drive_t *drive) in ide_gd_resume()
102 static void ide_gd_shutdown(ide_drive_t *drive)
130 static ide_proc_entry_t *ide_disk_proc_entries(ide_drive_t *drive)
135 static const struct ide_proc_devset *ide_disk_proc_devsets(ide_drive_t *drive)
142 static ide_startstop_t ide_gd_do_request(ide_drive_t *drive,
148 static int ide_gd_end_request(ide_drive_t *drive, int uptodate, int nrsecs)
[all …]
Dide-disk.c65 static void ide_tf_set_cmd(ide_drive_t *drive, ide_task_t *task, u8 dma) in ide_tf_set_cmd()
89 static ide_startstop_t __ide_do_rw_disk(ide_drive_t *drive, struct request *rq, in __ide_do_rw_disk()
187 static ide_startstop_t ide_do_rw_disk(ide_drive_t *drive, struct request *rq, in ide_do_rw_disk()
217 static u64 idedisk_read_native_max_address(ide_drive_t *drive, int lba48) in idedisk_read_native_max_address()
247 static u64 idedisk_set_max_address(ide_drive_t *drive, u64 addr_req, int lba48) in idedisk_set_max_address()
299 static void idedisk_check_hpa(ide_drive_t *drive) in idedisk_check_hpa()
336 static int ide_disk_get_capacity(ide_drive_t *drive) in ide_disk_get_capacity()
391 ide_drive_t *drive = q->queuedata; in idedisk_prepare_flush() local
418 static int set_multcount(ide_drive_t *drive, int arg) in set_multcount()
442 static int set_nowerr(ide_drive_t *drive, int arg) in set_nowerr()
[all …]
Dide-io.c58 static int __ide_end_request(ide_drive_t *drive, struct request *rq, in __ide_end_request()
107 int ide_end_request (ide_drive_t *drive, int uptodate, int nr_sectors) in ide_end_request()
138 int ide_end_dequeued_request(ide_drive_t *drive, struct request *rq, in ide_end_dequeued_request()
161 void ide_end_drive_cmd (ide_drive_t *drive, u8 stat, u8 err) in ide_end_drive_cmd()
199 static void ide_kill_rq(ide_drive_t *drive, struct request *rq) in ide_kill_rq()
210 static ide_startstop_t ide_ata_error(ide_drive_t *drive, struct request *rq, u8 stat, u8 err) in ide_ata_error()
265 static ide_startstop_t ide_atapi_error(ide_drive_t *drive, struct request *rq, u8 stat, u8 err) in ide_atapi_error()
295 __ide_error(ide_drive_t *drive, struct request *rq, u8 stat, u8 err) in __ide_error()
315 ide_startstop_t ide_error (ide_drive_t *drive, const char *msg, u8 stat) in ide_error()
337 static void ide_tf_set_specify_cmd(ide_drive_t *drive, struct ide_taskfile *tf) in ide_tf_set_specify_cmd()
[all …]
Dide-cd_ioctl.c29 ide_drive_t *drive = cdi->handle; in ide_cdrom_release_real() local
42 ide_drive_t *drive = cdi->handle; in ide_cdrom_drive_status() local
84 ide_drive_t *drive = cdi->handle; in ide_cdrom_check_media_change_real() local
100 int cdrom_eject(ide_drive_t *drive, int ejectflag, in cdrom_eject()
129 int ide_cd_lockdoor(ide_drive_t *drive, int lockflag, in ide_cd_lockdoor()
180 ide_drive_t *drive = cdi->handle; in ide_cdrom_tray_move() local
195 ide_drive_t *drive = cdi->handle; in ide_cdrom_lock_door() local
206 ide_drive_t *drive = cdi->handle; in ide_cdrom_select_speed() local
245 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 …]
Dide-atapi.c20 static inline int dev_is_idecd(ide_drive_t *drive) in dev_is_idecd()
29 int ide_check_atapi_device(ide_drive_t *drive, const char *s) in ide_check_atapi_device()
73 int ide_io_buffers(ide_drive_t *drive, struct ide_atapi_pc *pc, in ide_io_buffers()
135 static void ide_queue_pc_head(ide_drive_t *drive, struct gendisk *disk, in ide_queue_pc_head()
159 int ide_queue_pc_tail(ide_drive_t *drive, struct gendisk *disk, in ide_queue_pc_tail()
184 int ide_do_test_unit_ready(ide_drive_t *drive, struct gendisk *disk) in ide_do_test_unit_ready()
195 int ide_do_start_stop(ide_drive_t *drive, struct gendisk *disk, int start) in ide_do_start_stop()
210 int ide_set_media_lock(ide_drive_t *drive, struct gendisk *disk, int on) in ide_set_media_lock()
225 void ide_create_request_sense_cmd(ide_drive_t *drive, struct ide_atapi_pc *pc) in ide_create_request_sense_cmd()
243 void ide_retry_pc(ide_drive_t *drive, struct gendisk *disk) in ide_retry_pc()
[all …]
Dide-taskfile.c40 int taskfile_lib_get_identify (ide_drive_t *drive, u8 *buf) in taskfile_lib_get_identify()
59 ide_startstop_t do_rw_taskfile (ide_drive_t *drive, ide_task_t *task) in do_rw_taskfile()
118 static ide_startstop_t task_no_data_intr(ide_drive_t *drive) in task_no_data_intr()
170 static u8 wait_drive_not_busy(ide_drive_t *drive) in wait_drive_not_busy()
195 static void ide_pio_sector(ide_drive_t *drive, struct request *rq, in ide_pio_sector()
246 static void ide_pio_multi(ide_drive_t *drive, struct request *rq, in ide_pio_multi()
256 static void ide_pio_datablock(ide_drive_t *drive, struct request *rq, in ide_pio_datablock()
286 static ide_startstop_t task_error(ide_drive_t *drive, struct request *rq, in task_error()
321 void task_end_request(ide_drive_t *drive, struct request *rq, u8 stat) in task_end_request()
345 static ide_startstop_t task_in_unexpected(ide_drive_t *drive, struct request *rq, u8 stat) in task_in_unexpected()
[all …]
Dide-iops.c58 void SELECT_DRIVE (ide_drive_t *drive) in SELECT_DRIVE()
73 void SELECT_MASK(ide_drive_t *drive, int mask) in SELECT_MASK()
126 void ide_tf_load(ide_drive_t *drive, ide_task_t *task) in ide_tf_load()
180 void ide_tf_read(ide_drive_t *drive, ide_task_t *task) in ide_tf_read()
263 void ide_input_data(ide_drive_t *drive, struct request *rq, void *buf, in ide_input_data()
309 void ide_output_data(ide_drive_t *drive, struct request *rq, void *buf, in ide_output_data()
352 u8 ide_read_error(ide_drive_t *drive) in ide_read_error()
365 void ide_read_bcount_and_ireason(ide_drive_t *drive, u16 *bcount, u8 *ireason) in ide_read_bcount_and_ireason()
444 int drive_is_ready (ide_drive_t *drive) in drive_is_ready()
486 static int __ide_wait_stat(ide_drive_t *drive, u8 good, u8 bad, unsigned long timeout, u8 *rstat) in __ide_wait_stat()
[all …]
Dide-lib.c59 static u8 ide_rate_filter(ide_drive_t *drive, u8 speed) in ide_rate_filter()
89 u8 ide_get_best_pio_mode(ide_drive_t *drive, u8 mode_wanted, u8 max_mode) in ide_get_best_pio_mode()
136 void ide_set_pio(ide_drive_t *drive, u8 req_pio) in ide_set_pio()
174 void ide_toggle_bounce(ide_drive_t *drive, int on) in ide_toggle_bounce()
191 int ide_set_pio_mode(ide_drive_t *drive, const u8 mode) in ide_set_pio_mode()
222 int ide_set_dma_mode(ide_drive_t *drive, const u8 mode) in ide_set_dma_mode()
255 int ide_set_xfer_rate(ide_drive_t *drive, u8 rate) in ide_set_xfer_rate()
274 static void ide_dump_opcode(ide_drive_t *drive) in ide_dump_opcode()
307 static void ide_dump_sector(ide_drive_t *drive) in ide_dump_sector()
330 static void ide_dump_ata_error(ide_drive_t *drive, u8 err) in ide_dump_ata_error()
[all …]
Dide-tape.c169 ide_drive_t *drive; member
290 ide_drive_t *drive = tape->drive; in ide_tape_put() local
316 static void idetape_input_buffers(ide_drive_t *drive, struct ide_atapi_pc *pc, in idetape_input_buffers()
345 static void idetape_output_buffers(ide_drive_t *drive, struct ide_atapi_pc *pc, in idetape_output_buffers()
373 static void idetape_update_buffers(ide_drive_t *drive, struct ide_atapi_pc *pc) in idetape_update_buffers()
400 static void idetape_analyze_error(ide_drive_t *drive, u8 *sense) in idetape_analyze_error()
480 static int idetape_end_request(ide_drive_t *drive, int uptodate, int nr_sects) in idetape_end_request()
513 static void ide_tape_callback(ide_drive_t *drive, int dsc) in ide_tape_callback()
581 static void idetape_postpone_request(ide_drive_t *drive) in idetape_postpone_request()
592 static void ide_tape_handle_dsc(ide_drive_t *drive) in ide_tape_handle_dsc()
[all …]
Dide-cd.c79 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()
146 static void cdrom_analyze_sense_data(ide_drive_t *drive, in cdrom_analyze_sense_data()
214 static void cdrom_queue_request_sense(ide_drive_t *drive, void *sense, in cdrom_queue_request_sense()
248 static void cdrom_end_request(ide_drive_t *drive, int uptodate) in cdrom_end_request()
302 static void ide_dump_status_no_sense(ide_drive_t *drive, const char *msg, u8 st) in ide_dump_status_no_sense()
314 static int cdrom_decode_status(ide_drive_t *drive, int good_stat, int *stat_ret) in cdrom_decode_status()
526 static int ide_cd_check_ireason(ide_drive_t *drive, struct request *rq, in ide_cd_check_ireason()
571 static int ide_cd_check_transfer_size(ide_drive_t *drive, int len) in ide_cd_check_transfer_size()
[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()
190 static void do_identify(ide_drive_t *drive, u8 cmd) in do_identify()
267 static int actual_try_to_identify (ide_drive_t *drive, u8 cmd) in actual_try_to_identify()
342 static int try_to_identify (ide_drive_t *drive, u8 cmd) in try_to_identify()
406 static u8 ide_read_device(ide_drive_t *drive) in ide_read_device()
439 static int do_probe (ide_drive_t *drive, u8 cmd) in do_probe()
[all …]
Dide-dma-sff.c19 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 request *rq) in ide_build_dmatable()
192 int ide_dma_setup(ide_drive_t *drive) in ide_dma_setup()
244 static int dma_timer_expiry(ide_drive_t *drive) in dma_timer_expiry()
269 void ide_dma_exec_cmd(ide_drive_t *drive, u8 command) in ide_dma_exec_cmd()
277 void ide_dma_start(ide_drive_t *drive) in ide_dma_start()
301 int ide_dma_end(ide_drive_t *drive) in ide_dma_end()
337 int ide_dma_test_irq(ide_drive_t *drive) in ide_dma_test_irq()
Dide.c73 static int set_io_32bit(ide_drive_t *drive, int arg) in set_io_32bit()
88 static int set_ksettings(ide_drive_t *drive, int arg) in set_ksettings()
103 static int set_using_dma(ide_drive_t *drive, int arg) in set_using_dma()
159 static int set_pio_mode(ide_drive_t *drive, int arg) in set_pio_mode()
197 static int set_unmaskirq(ide_drive_t *drive, int arg) in set_unmaskirq()
226 int ide_device_get(ide_drive_t *drive) in ide_device_get()
253 void ide_device_put(ide_drive_t *drive) in ide_device_put()
273 ide_drive_t *drive = to_ide_device(dev); in ide_uevent() local
283 ide_drive_t *drive = to_ide_device(dev); in generic_ide_probe() local
291 ide_drive_t *drive = to_ide_device(dev); in generic_ide_remove() local
[all …]
Dide-ioctls.c17 int ide_setting_ioctl(ide_drive_t *drive, struct block_device *bdev, in ide_setting_ioctl()
55 static int ide_get_identity_ioctl(ide_drive_t *drive, unsigned int cmd, in ide_get_identity_ioctl()
84 static int ide_get_nice_ioctl(ide_drive_t *drive, unsigned long arg) in ide_get_nice_ioctl()
92 static int ide_set_nice_ioctl(ide_drive_t *drive, unsigned long arg) in ide_set_nice_ioctl()
114 static int ide_cmd_ioctl(ide_drive_t *drive, unsigned cmd, unsigned long arg) in ide_cmd_ioctl()
197 static int ide_task_ioctl(ide_drive_t *drive, unsigned cmd, unsigned long arg) in ide_task_ioctl()
223 static int generic_drive_reset(ide_drive_t *drive) in generic_drive_reset()
239 int generic_ide_ioctl(ide_drive_t *drive, struct block_device *bdev, in generic_ide_ioctl()
Dtrm290.c145 static void trm290_prepare_drive (ide_drive_t *drive, unsigned int use_dma) in trm290_prepare_drive()
174 static void trm290_selectproc (ide_drive_t *drive) in trm290_selectproc()
179 static void trm290_dma_exec_cmd(ide_drive_t *drive, u8 command) in trm290_dma_exec_cmd()
184 static int trm290_dma_setup(ide_drive_t *drive) in trm290_dma_setup()
214 static void trm290_dma_start(ide_drive_t *drive) in trm290_dma_start()
218 static int trm290_dma_end(ide_drive_t *drive) in trm290_dma_end()
230 static int trm290_dma_test_irq(ide_drive_t *drive) in trm290_dma_test_irq()
237 static void trm290_dma_host_set(ide_drive_t *drive, int on) in trm290_dma_host_set()
Dide-floppy.c71 static int ide_floppy_end_request(ide_drive_t *drive, int uptodate, int nsecs) in ide_floppy_end_request()
108 static void idefloppy_update_buffers(ide_drive_t *drive, in idefloppy_update_buffers()
118 static void ide_floppy_callback(ide_drive_t *drive, int dsc) in ide_floppy_callback()
173 static ide_startstop_t idefloppy_issue_pc(ide_drive_t *drive, in idefloppy_issue_pc()
236 static void idefloppy_create_rw_cmd(ide_drive_t *drive, in idefloppy_create_rw_cmd()
283 static ide_startstop_t ide_floppy_do_request(ide_drive_t *drive, in ide_floppy_do_request()
347 static int ide_floppy_get_flexible_disk_page(ide_drive_t *drive, in ide_floppy_get_flexible_disk_page()
410 static int ide_floppy_get_capacity(ide_drive_t *drive) in ide_floppy_get_capacity()
509 static void ide_floppy_setup(ide_drive_t *drive) in ide_floppy_setup()
552 static void ide_floppy_flush(ide_drive_t *drive) in ide_floppy_flush()
[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() local
32 ide_drive_t *drive = to_ide_device(dev); in drivename_show() local
39 ide_drive_t *drive = to_ide_device(dev); in modalias_show() local
46 ide_drive_t *drive = to_ide_device(dev); in model_show() local
53 ide_drive_t *drive = to_ide_device(dev); in firmware_show() local
60 ide_drive_t *drive = to_ide_device(dev); in serial_show() local
Dide-pm.c7 ide_drive_t *drive = dev->driver_data, *pair = ide_get_pair_dev(drive); in generic_ide_suspend() local
41 ide_drive_t *drive = dev->driver_data, *pair = ide_get_pair_dev(drive); in generic_ide_resume() local
79 void ide_complete_power_step(ide_drive_t *drive, struct request *rq) in ide_complete_power_step()
109 ide_startstop_t ide_start_power_step(ide_drive_t *drive, struct request *rq) in ide_start_power_step()
179 void ide_complete_pm_request(ide_drive_t *drive, struct request *rq) in ide_complete_pm_request()
201 void ide_check_pm_state(ide_drive_t *drive, struct request *rq) in ide_check_pm_state()
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()
291 static void sis_set_pio_mode(ide_drive_t *drive, const u8 pio) in sis_set_pio_mode()
297 static void sis_ata133_program_udma_timings(ide_drive_t *drive, const u8 mode) in sis_ata133_program_udma_timings()
316 static void sis_ata33_program_udma_timings(ide_drive_t *drive, const u8 mode) in sis_ata33_program_udma_timings()
333 static void sis_program_udma_timings(ide_drive_t *drive, const u8 mode) in sis_program_udma_timings()
[all …]
Dide-proc.c88 ide_drive_t *drive = (ide_drive_t *)data; in proc_ide_read_identify() local
148 static int ide_read_setting(ide_drive_t *drive, in ide_read_setting()
178 static int ide_write_setting(ide_drive_t *drive, in ide_write_setting()
195 static int set_xfer_rate (ide_drive_t *drive, int arg) in set_xfer_rate()
254 ide_drive_t *drive = (ide_drive_t *) data; in proc_ide_read_settings() local
302 ide_drive_t *drive = (ide_drive_t *) data; in proc_ide_write_settings() local
413 ide_drive_t *drive = (ide_drive_t *) data; in proc_ide_read_geometry() local
431 ide_drive_t *drive = (ide_drive_t *) data; in proc_ide_read_dmodel() local
442 ide_drive_t *drive = (ide_drive_t *)data; in proc_ide_read_driver() local
456 static int ide_replace_subdriver(ide_drive_t *drive, const char *driver) in ide_replace_subdriver()
[all …]
Dsl82c105.c49 static unsigned int get_pio_timings(ide_drive_t *drive, u8 pio) in get_pio_timings()
73 static void sl82c105_set_pio_mode(ide_drive_t *drive, const u8 pio) in sl82c105_set_pio_mode()
99 static void sl82c105_set_dma_mode(ide_drive_t *drive, const u8 speed) in sl82c105_set_dma_mode()
141 static void sl82c105_dma_lost_irq(ide_drive_t *drive) in sl82c105_dma_lost_irq()
178 static void sl82c105_dma_start(ide_drive_t *drive) in sl82c105_dma_start()
192 static void sl82c105_dma_timeout(ide_drive_t *drive) in sl82c105_dma_timeout()
202 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()
Dau1xxx-ide.c89 static void au1xxx_input_data(ide_drive_t *drive, struct request *rq, in au1xxx_input_data()
95 static void au1xxx_output_data(ide_drive_t *drive, struct request *rq, in au1xxx_output_data()
102 static void au1xxx_set_pio_mode(ide_drive_t *drive, const u8 pio) in au1xxx_set_pio_mode()
164 static void auide_set_dma_mode(ide_drive_t *drive, const u8 speed) in auide_set_dma_mode()
212 static int auide_build_dmatable(ide_drive_t *drive) in auide_build_dmatable()
287 static int auide_dma_end(ide_drive_t *drive) in auide_dma_end()
299 static void auide_dma_start(ide_drive_t *drive ) in auide_dma_start()
304 static void auide_dma_exec_cmd(ide_drive_t *drive, u8 command) in auide_dma_exec_cmd()
311 static int auide_dma_setup(ide_drive_t *drive) in auide_dma_setup()
324 static int auide_dma_test_irq(ide_drive_t *drive) in auide_dma_test_irq()
[all …]
Dpdc202xx_old.c40 static void pdc202xx_set_mode(ide_drive_t *drive, const u8 speed) in pdc202xx_set_mode()
114 static void pdc202xx_set_pio_mode(ide_drive_t *drive, const u8 pio) in pdc202xx_set_pio_mode()
154 static void pdc202xx_quirkproc(ide_drive_t *drive) in pdc202xx_quirkproc()
167 static void pdc202xx_dma_start(ide_drive_t *drive) in pdc202xx_dma_start()
189 static int pdc202xx_dma_end(ide_drive_t *drive) in pdc202xx_dma_end()
206 static int pdc202xx_dma_test_irq(ide_drive_t *drive) in pdc202xx_dma_test_irq()
244 static void pdc202xx_reset (ide_drive_t *drive) in pdc202xx_reset()
255 static void pdc202xx_dma_lost_irq(ide_drive_t *drive) in pdc202xx_dma_lost_irq()
261 static void pdc202xx_dma_timeout(ide_drive_t *drive) in pdc202xx_dma_timeout()
/drivers/block/
Damiflop.c125 #define SELMASK(drive) (1 << (3 + (drive & 3))) argument
238 static inline int try_fdc(int drive) in try_fdc()
244 static void get_fdc(int drive) in get_fdc()
273 static void fd_select (int drive) in fd_select()
297 static void fd_deselect (int drive) in fd_deselect()
368 static void fd_motor_off(unsigned long drive) in fd_motor_off()
392 int drive; in floppy_off() local
400 static int fd_calibrate(int drive) in fd_calibrate()
452 static int fd_seek(int drive, int track) in fd_seek()
509 static unsigned long fd_get_drive_id(int drive) in fd_get_drive_id()
[all …]

1234