Searched refs:drive (Results 1 - 25 of 118) sorted by relevance

12345

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/
H A Dide-io.c57 static int __ide_end_request(ide_drive_t *drive, struct request *rq, argument
76 if (drive->state == DMA_PIO_RETRY && drive->retry_pio <= 3) {
77 drive->state = 0;
78 HWGROUP(drive)->hwif->ide_dma_on(drive);
85 HWGROUP(drive)->rq = NULL;
95 * @drive: IDE device for the I/O
104 int ide_end_request (ide_drive_t *drive, int uptodate, int nr_sectors) argument
115 rq = HWGROUP(drive)
142 ide_complete_power_step(ide_drive_t *drive, struct request *rq, u8 stat, u8 error) argument
168 ide_start_power_step(ide_drive_t *drive, struct request *rq) argument
249 ide_end_dequeued_request(ide_drive_t *drive, struct request *rq, int uptodate, int nr_sectors) argument
299 ide_complete_pm_request(ide_drive_t *drive, struct request *rq) argument
320 ide_get_error_location(ide_drive_t *drive, char *args) argument
366 ide_end_drive_cmd(ide_drive_t *drive, u8 stat, u8 err) argument
462 try_to_flush_leftover_data(ide_drive_t *drive) argument
477 ide_kill_rq(ide_drive_t *drive, struct request *rq) argument
488 ide_ata_error(ide_drive_t *drive, struct request *rq, u8 stat, u8 err) argument
538 ide_atapi_error(ide_drive_t *drive, struct request *rq, u8 stat, u8 err) argument
567 __ide_error(ide_drive_t *drive, struct request *rq, u8 stat, u8 err) argument
589 ide_error(ide_drive_t *drive, const char *msg, u8 stat) argument
617 __ide_abort(ide_drive_t *drive, struct request *rq) argument
643 ide_abort(ide_drive_t *drive, const char *msg) argument
677 ide_cmd(ide_drive_t *drive, u8 cmd, u8 nsect, ide_handler_t *handler) argument
698 drive_cmd_intr(ide_drive_t *drive) argument
723 ide_init_specify_cmd(ide_drive_t *drive, ide_task_t *task) argument
735 ide_init_restore_cmd(ide_drive_t *drive, ide_task_t *task) argument
743 ide_init_setmult_cmd(ide_drive_t *drive, ide_task_t *task) argument
751 ide_disk_special(ide_drive_t *drive) argument
791 do_special(ide_drive_t *drive) argument
813 ide_map_sg(ide_drive_t *drive, struct request *rq) argument
831 ide_init_sg_cmd(ide_drive_t *drive, struct request *rq) argument
853 execute_drive_cmd(ide_drive_t *drive, struct request *rq) argument
944 ide_check_pm_state(ide_drive_t *drive, struct request *rq) argument
978 start_request(ide_drive_t *drive, struct request *rq) argument
1058 ide_stall_queue(ide_drive_t *drive, unsigned long timeout) argument
1081 ide_drive_t *drive, *best; local
1173 ide_drive_t *drive; local
1311 ide_drive_t *drive = q->queuedata; local
1321 ide_dma_timeout_retry(ide_drive_t *drive, int error) argument
1411 ide_drive_t *drive = hwgroup->drive; local
1566 ide_drive_t *drive; local
1713 ide_do_drive_cmd(ide_drive_t *drive, struct request *rq, ide_action_t action) argument
[all...]
H A Dide-probe.c16 * Version 1.00 move drive probing code from ide.c to ide-probe.c
26 * with new flag : drive->ata_flash : 1;
30 * Version 1.10 Update set for new IDE. drive->id is now always
57 * generic_id - add a generic drive id
58 * @drive: drive to make an ID block for
60 * Add a fake id field to the drive we are passed. This allows
62 * and make drive properties unconditional outside of this file
65 static void generic_id(ide_drive_t *drive) argument
67 drive
75 ide_disk_init_chs(ide_drive_t *drive) argument
102 ide_disk_init_mult_count(ide_drive_t *drive) argument
133 do_identify(ide_drive_t *drive, u8 cmd) argument
274 actual_try_to_identify(ide_drive_t *drive, u8 cmd) argument
352 try_to_identify(ide_drive_t *drive, u8 cmd) argument
423 do_probe(ide_drive_t *drive, u8 cmd) argument
505 enable_nest(ide_drive_t *drive) argument
550 probe_for_drive(ide_drive_t *drive) argument
734 ide_drive_t *drive = &hwif->drives[unit]; local
785 ide_drive_t *drive = &hwif->drives[unit]; local
828 ide_drive_t *drive = &hwif->drives[unit]; local
863 ide_drive_t *drive = &hwif->drives[unit]; local
889 ide_drive_t *drive = &hwif->drives[unit]; local
942 ide_init_queue(ide_drive_t *drive) argument
1111 ide_drive_t *drive = &hwif->drives[index]; local
1180 ide_drive_t *drive = &hwif->drives[unit]; local
1230 ide_init_disk(struct gendisk *disk, ide_drive_t *drive) argument
1243 ide_remove_drive_from_hwgroup(ide_drive_t *drive) argument
1268 ide_drive_t *drive = container_of(dev, ide_drive_t, gendev); local
1296 ide_drive_t * drive = &hwif->drives[unit]; local
[all...]
H A Dide-cd.c62 static void cdrom_saw_media_change (ide_drive_t *drive) argument
64 struct cdrom_info *info = drive->driver_data;
66 CDROM_STATE_FLAGS (drive)->media_changed = 1;
67 CDROM_STATE_FLAGS (drive)->toc_valid = 0;
71 static int cdrom_log_sense(ide_drive_t *drive, struct request *rq, argument
95 * we cannot reliably check if drive can auto-close
107 cdrom_saw_media_change(drive);
117 void cdrom_analyze_sense_data(ide_drive_t *drive, argument
124 struct cdrom_info *info = drive->driver_data;
126 if (!cdrom_log_sense(drive, failed_comman
296 cdrom_prepare_request(ide_drive_t *drive, struct request *rq) argument
305 cdrom_queue_request_sense(ide_drive_t *drive, void *sense, struct request *failed_command) argument
329 cdrom_end_request(ide_drive_t *drive, int uptodate) argument
379 ide_dump_status_no_sense(ide_drive_t *drive, const char *msg, u8 stat) argument
388 cdrom_decode_status(ide_drive_t *drive, int good_stat, int *stat_ret) argument
574 cdrom_timer_expiry(ide_drive_t *drive) argument
609 cdrom_start_packet_command(ide_drive_t *drive, int xferlen, ide_handler_t *handler) argument
665 cdrom_transfer_packet_command(ide_drive_t *drive, struct request *rq, ide_handler_t *handler) argument
721 cdrom_buffer_sectors(ide_drive_t *drive, unsigned long sector, int sectors_to_transfer) argument
765 cdrom_read_check_ireason(ide_drive_t *drive, int len, int ireason) argument
800 cdrom_read_intr(ide_drive_t *drive) argument
932 cdrom_read_from_buffer(ide_drive_t *drive) argument
993 cdrom_start_read_continuation(ide_drive_t *drive) argument
1033 cdrom_seek_intr(ide_drive_t *drive) argument
1056 cdrom_start_seek_continuation(ide_drive_t *drive) argument
1071 cdrom_start_seek(ide_drive_t *drive, unsigned int block) argument
1100 cdrom_start_read(ide_drive_t *drive, unsigned int block) argument
1134 cdrom_pc_intr(ide_drive_t *drive) argument
1247 cdrom_do_pc_continuation(ide_drive_t *drive) argument
1259 cdrom_do_packet_command(ide_drive_t *drive) argument
1274 cdrom_queue_packet_command(ide_drive_t *drive, struct request *rq) argument
1323 cdrom_write_check_ireason(ide_drive_t *drive, int len, int ireason) argument
1384 cdrom_newpc_intr(ide_drive_t *drive) argument
1522 cdrom_write_intr(ide_drive_t *drive) argument
1620 cdrom_start_write_cont(ide_drive_t *drive) argument
1629 cdrom_start_write(ide_drive_t *drive, struct request *rq) argument
1664 cdrom_do_newpc_cont(ide_drive_t *drive) argument
1674 cdrom_do_block_pc(ide_drive_t *drive, struct request *rq) argument
1709 ide_do_rw_cdrom(ide_drive_t *drive, struct request *rq, sector_t block) argument
1811 cdrom_check_status(ide_drive_t *drive, struct request_sense *sense) argument
1836 cdrom_lockdoor(ide_drive_t *drive, int lockflag, struct request_sense *sense) argument
1880 cdrom_eject(ide_drive_t *drive, int ejectflag, struct request_sense *sense) argument
1905 cdrom_read_capacity(ide_drive_t *drive, unsigned long *capacity, unsigned long *sectors_per_frame, struct request_sense *sense) argument
1935 cdrom_read_tocentry(ide_drive_t *drive, int trackno, int msf_flag, int format, char *buf, int buflen, struct request_sense *sense) argument
1961 cdrom_read_toc(ide_drive_t *drive, struct request_sense *sense) argument
2133 cdrom_read_subchannel(ide_drive_t *drive, int format, char *buf, int buflen, struct request_sense *sense) argument
2154 cdrom_select_speed(ide_drive_t *drive, int speed, struct request_sense *sense) argument
2183 cdrom_play_audio(ide_drive_t *drive, int lba_start, int lba_end) argument
2198 cdrom_get_toc_entry(ide_drive_t *drive, int track, struct atapi_toc_entry **ent) argument
2230 ide_drive_t *drive = cdi->handle; local
2261 ide_drive_t *drive = cdi->handle; local
2339 ide_drive_t *drive = cdi->handle; local
2363 ide_drive_t *drive = cdi->handle; local
2378 ide_drive_t *drive = cdi->handle; local
2383 ide_cdrom_get_capabilities(ide_drive_t *drive, struct atapi_capabilities_page *cap) argument
2408 ide_cdrom_update_speed(ide_drive_t *drive, struct atapi_capabilities_page *cap) argument
2428 ide_drive_t *drive = cdi->handle; local
2451 ide_drive_t *drive = cdi->handle; local
2494 ide_drive_t *drive = cdi->handle; local
2516 ide_drive_t *drive = cdi->handle; local
2540 ide_drive_t *drive = cdi->handle; local
2567 ide_drive_t *drive = cdi->handle; local
2601 ide_cdrom_register(ide_drive_t *drive, int nslots) argument
2640 ide_cdrom_probe_capabilities(ide_drive_t *drive) argument
2758 ide_cdrom_add_settings(ide_drive_t *drive) argument
2763 ide_cdrom_add_settings(ide_drive_t *drive) argument
2846 ide_cdrom_setup(ide_drive_t *drive) argument
2978 ide_cdrom_capacity(ide_drive_t *drive) argument
2989 ide_cd_remove(ide_drive_t *drive) argument
3004 ide_drive_t *drive = info->drive; local
3027 ide_drive_t *drive = data; local
3184 ide_cd_probe(ide_drive_t *drive) argument
[all...]
H A Dide-disk.c20 * Version 1.02 remove ", LBA" from drive identification msgs
74 ide_drive_t *drive; member in struct:ide_disk_obj
111 * value for this drive (from its reported identification information).
116 * It is called only once for each drive.
162 static ide_startstop_t __ide_do_rw_disk(ide_drive_t *drive, struct request *rq, sector_t block) argument
164 ide_hwif_t *hwif = HWIF(drive);
165 unsigned int dma = drive->using_dma;
166 u8 lba48 = (drive->addressing == 1) ? 1 : 0;
180 ide_init_sg_cmd(drive, rq);
181 ide_map_sg(drive, r
305 ide_do_rw_disk(ide_drive_t *drive, struct request *rq, sector_t block) argument
334 idedisk_read_native_max_address(ide_drive_t *drive) argument
359 idedisk_read_native_max_address_ext(ide_drive_t *drive) argument
392 idedisk_set_max_address(ide_drive_t *drive, unsigned long addr_req) argument
420 idedisk_set_max_address_ext(ide_drive_t *drive, unsigned long long addr_req) argument
482 idedisk_check_hpa(ide_drive_t *drive) argument
528 init_idedisk_capacity(ide_drive_t *drive) argument
555 idedisk_capacity(ide_drive_t *drive) argument
561 smart_enable(ide_drive_t *drive) argument
575 get_smart_values(ide_drive_t *drive, u8 *buf) argument
592 get_smart_thresholds(ide_drive_t *drive, u8 *buf) argument
611 ide_drive_t *drive = (ide_drive_t *) data; local
625 ide_drive_t*drive = (ide_drive_t *)data; local
635 ide_drive_t *drive = (ide_drive_t *)data; local
654 ide_drive_t *drive = (ide_drive_t *)data; local
682 ide_drive_t *drive = q->queuedata; local
701 ide_drive_t *drive = q->queuedata; local
728 set_multcount(ide_drive_t *drive, int arg) argument
745 set_nowerr(ide_drive_t *drive, int arg) argument
758 update_ordered(ide_drive_t *drive) argument
796 write_cache(ide_drive_t *drive, int arg) argument
821 do_idedisk_flushcache(ide_drive_t *drive) argument
835 set_acoustic(ide_drive_t *drive, int arg) argument
860 set_lba_addressing(ide_drive_t *drive, int arg) argument
877 idedisk_add_settings(ide_drive_t *drive) argument
895 idedisk_add_settings(ide_drive_t *drive) argument
898 idedisk_setup(ide_drive_t *drive) argument
1001 ide_cacheflush_p(ide_drive_t *drive) argument
1010 ide_disk_remove(ide_drive_t *drive) argument
1027 ide_drive_t *drive = idkp->drive; local
1043 ide_disk_resume(ide_drive_t *drive) argument
1049 ide_device_shutdown(ide_drive_t *drive) argument
1101 ide_drive_t *drive; local
1132 ide_drive_t *drive = idkp->drive; local
1157 ide_drive_t *drive = idkp->drive; local
1171 ide_drive_t *drive = idkp->drive; local
1216 ide_drive_t *drive = idkp->drive; local
1246 ide_disk_probe(ide_drive_t *drive) argument
[all...]
H A Dide-dma.c32 * Use "hdparm -i" to view modes supported by a given drive.
37 * To enable DMA, use "hdparm -d1 /dev/hd?" on a per-drive basis after booting.
69 * for supplying a Promise UDMA board & WD UDMA drive for this work!
138 * ide_in_drive_list - look for drive in black/white list
139 * @id: drive identifier
142 * Look for a drive in the blacklist and the whitelist tables
143 * Returns 1 if the drive is found in the table.
158 * @drive: the drive the interrupt is for
164 ide_startstop_t ide_dma_intr (ide_drive_t *drive) argument
203 ide_build_sglist(ide_drive_t *drive, struct request *rq) argument
236 ide_build_dmatable(ide_drive_t *drive, struct request *rq) argument
328 ide_destroy_dmatable(ide_drive_t *drive) argument
350 config_drive_for_dma(ide_drive_t *drive) argument
392 dma_timer_expiry(ide_drive_t *drive) argument
426 ide_dma_host_off(ide_drive_t *drive) argument
444 ide_dma_off_quietly(ide_drive_t *drive) argument
463 ide_dma_off(ide_drive_t *drive) argument
480 ide_dma_host_on(ide_drive_t *drive) argument
500 __ide_dma_on(ide_drive_t *drive) argument
523 __ide_dma_check(ide_drive_t *drive) argument
543 ide_dma_setup(ide_drive_t *drive) argument
581 ide_dma_exec_cmd(ide_drive_t *drive, u8 command) argument
587 ide_dma_start(ide_drive_t *drive) argument
606 __ide_dma_end(ide_drive_t *drive) argument
631 __ide_dma_test_irq(ide_drive_t *drive) argument
646 __ide_dma_bad_drive(ide_drive_t *drive) argument
661 __ide_dma_good_drive(ide_drive_t *drive) argument
675 ide_get_mode_mask(ide_drive_t *drive, u8 base) argument
719 ide_max_dma_mode(ide_drive_t *drive) argument
745 ide_tune_dma(ide_drive_t *drive) argument
769 ide_dma_verbose(ide_drive_t *drive) argument
821 ide_set_dma(ide_drive_t *drive) argument
847 __ide_dma_lostirq(ide_drive_t *drive) argument
855 __ide_dma_timeout(ide_drive_t *drive) argument
[all...]
H A Dide-iops.c62 static void ide_outbsync (ide_drive_t *drive, u8 addr, unsigned long port) argument
124 static void ide_mm_outbsync (ide_drive_t *drive, u8 value, unsigned long port) argument
161 u32 ide_read_24 (ide_drive_t *drive) argument
163 u8 hcyl = HWIF(drive)->INB(IDE_HCYL_REG);
164 u8 lcyl = HWIF(drive)->INB(IDE_LCYL_REG);
165 u8 sect = HWIF(drive)->INB(IDE_SECTOR_REG);
169 void SELECT_DRIVE (ide_drive_t *drive) argument
171 if (HWIF(drive)->selectproc)
172 HWIF(drive)->selectproc(drive);
178 SELECT_INTERRUPT(ide_drive_t *drive) argument
186 SELECT_MASK(ide_drive_t *drive, int mask) argument
192 QUIRK_LIST(ide_drive_t *drive) argument
205 ata_vlb_sync(ide_drive_t *drive, unsigned long port) argument
215 ata_input_data(ide_drive_t *drive, void *buffer, u32 wcount) argument
237 ata_output_data(ide_drive_t *drive, void *buffer, u32 wcount) argument
264 atapi_input_bytes(ide_drive_t *drive, void *buffer, u32 bytecount) argument
281 atapi_output_bytes(ide_drive_t *drive, void *buffer, u32 bytecount) argument
437 drive_is_ready(ide_drive_t *drive) argument
474 wait_for_ready(ide_drive_t *drive, int timeout) argument
510 ide_wait_stat(ide_startstop_t *startstop, ide_drive_t *drive, u8 good, u8 bad, unsigned long timeout) argument
567 eighty_ninty_three(ide_drive_t *drive) argument
599 ide_ata66_check(ide_drive_t *drive, ide_task_t *args) argument
619 set_transfer(ide_drive_t *drive, ide_task_t *args) argument
633 ide_auto_reduce_xfer(ide_drive_t *drive) argument
662 ide_driveid_update(ide_drive_t *drive) argument
725 ide_config_drive_speed(ide_drive_t *drive, u8 speed) argument
847 __ide_set_handler(ide_drive_t *drive, ide_handler_t *handler, unsigned int timeout, ide_expiry_t *expiry) argument
864 ide_set_handler(ide_drive_t *drive, ide_handler_t *handler, unsigned int timeout, ide_expiry_t *expiry) argument
889 ide_execute_command(ide_drive_t *drive, task_ioreg_t cmd, ide_handler_t *handler, unsigned timeout, ide_expiry_t *expiry) argument
920 atapi_reset_pollfunc(ide_drive_t *drive) argument
957 reset_pollfunc(ide_drive_t *drive) argument
1011 check_dma_crc(ide_drive_t *drive) argument
1024 ide_disk_pre_reset(ide_drive_t *drive) argument
1039 pre_reset(ide_drive_t *drive) argument
1081 do_reset1(ide_drive_t *drive, int do_not_try_atapi) argument
1168 ide_do_reset(ide_drive_t *drive) argument
[all...]
H A Dide-taskfile.c64 static void taskfile_input_data(ide_drive_t *drive, void *buffer, u32 wcount) argument
66 HWIF(drive)->ata_input_data(drive, buffer, wcount);
67 if (drive->bswap)
71 static void taskfile_output_data(ide_drive_t *drive, void *buffer, u32 wcount) argument
73 if (drive->bswap) {
75 HWIF(drive)->ata_output_data(drive, buffer, wcount);
78 HWIF(drive)->ata_output_data(drive, buffe
82 taskfile_lib_get_identify(ide_drive_t *drive, u8 *buf) argument
97 do_rw_taskfile(ide_drive_t *drive, ide_task_t *task) argument
165 set_multmode_intr(ide_drive_t *drive) argument
183 set_geometry_intr(ide_drive_t *drive) argument
206 recal_intr(ide_drive_t *drive) argument
219 task_no_data_intr(ide_drive_t *drive) argument
238 wait_drive_not_busy(ide_drive_t *drive) argument
262 ide_pio_sector(ide_drive_t *drive, unsigned int write) argument
305 ide_pio_multi(ide_drive_t *drive, unsigned int write) argument
314 ide_pio_datablock(ide_drive_t *drive, struct request *rq, unsigned int write) argument
333 task_error(ide_drive_t *drive, struct request *rq, const char *s, u8 stat) argument
368 task_end_request(ide_drive_t *drive, struct request *rq, u8 stat) argument
392 task_in_intr(ide_drive_t *drive) argument
428 task_out_intr(ide_drive_t *drive) argument
453 pre_task_out_intr(ide_drive_t *drive, struct request *rq) argument
476 ide_diag_taskfile(ide_drive_t *drive, ide_task_t *args, unsigned long data_size, u8 *buf) argument
514 ide_raw_taskfile(ide_drive_t *drive, ide_task_t *args, u8 *buf) argument
521 ide_taskfile_ioctl(ide_drive_t *drive, unsigned int cmd, unsigned long arg) argument
671 ide_wait_cmd(ide_drive_t *drive, u8 cmd, u8 nsect, u8 feature, u8 sectors, u8 *buf) argument
688 ide_cmd_ioctl(ide_drive_t *drive, unsigned int cmd, unsigned long arg) argument
741 ide_wait_cmd_task(ide_drive_t *drive, u8 *buf) argument
751 ide_task_ioctl(ide_drive_t *drive, unsigned int cmd, unsigned long arg) argument
771 flagged_taskfile(ide_drive_t *drive, ide_task_t *task) argument
[all...]
H A Dide-lib.c72 u8 ide_rate_filter(ide_drive_t *drive, u8 speed) argument
75 ide_hwif_t *hwif = drive->hwif;
79 mask = hwif->udma_filter(drive);
87 if ((mask & 0x78) && (eighty_ninty_three(drive) == 0))
104 int ide_use_fast_pio(ide_drive_t *drive) argument
106 struct hd_driveid *id = drive->id;
108 if ((id->capability & 1) && drive->autodma)
123 * value for cycle_time (from drive identification data).
137 * Shared data/functions for determining best PIO mode for an IDE drive.
201 /* drive) accordin
256 ide_get_best_pio_mode(ide_drive_t *drive, u8 mode_wanted, u8 max_mode, ide_pio_data_t *d) argument
330 ide_toggle_bounce(ide_drive_t *drive, int on) argument
356 ide_set_xfer_rate(ide_drive_t *drive, u8 rate) argument
367 ide_dump_opcode(ide_drive_t *drive) argument
403 ide_dump_ata_status(ide_drive_t *drive, const char *msg, u8 stat) argument
482 ide_dump_atapi_status(ide_drive_t *drive, const char *msg, u8 stat) argument
532 ide_dump_status(ide_drive_t *drive, const char *msg, u8 stat) argument
[all...]
H A Dide-floppy.c204 ide_drive_t *drive; member in struct:ide_floppy_obj
256 #define IDEFLOPPY_CLIK_DRIVE 4 /* Avoid commands not supported in Clik drive */
260 * ATAPI floppy drive packet commands
456 * Too bad. The drive wants to send us data which we are not ready to accept.
459 static void idefloppy_discard_data (ide_drive_t *drive, unsigned int bcount) argument
462 (void) HWIF(drive)->INB(IDE_DATA_REG);
466 static void idefloppy_write_zeros (ide_drive_t *drive, unsigned int bcount) argument
469 HWIF(drive)->OUTB(0, IDE_DATA_REG);
480 static int idefloppy_do_end_request(ide_drive_t *drive, int uptodate, int nsecs) argument
482 idefloppy_floppy_t *floppy = drive
508 idefloppy_input_buffers(ide_drive_t *drive, idefloppy_pc_t *pc, unsigned int bcount) argument
542 idefloppy_output_buffers(ide_drive_t *drive, idefloppy_pc_t *pc, unsigned int bcount) argument
578 idefloppy_update_buffers(ide_drive_t *drive, idefloppy_pc_t *pc) argument
592 idefloppy_queue_pc_head(ide_drive_t *drive,idefloppy_pc_t *pc,struct request *rq) argument
603 idefloppy_next_pc_storage(ide_drive_t *drive) argument
612 idefloppy_next_rq_storage(ide_drive_t *drive) argument
625 idefloppy_analyze_error(ide_drive_t *drive,idefloppy_request_sense_result_t *result) argument
644 idefloppy_request_sense_callback(ide_drive_t *drive) argument
662 idefloppy_pc_callback(ide_drive_t *drive) argument
699 idefloppy_retry_pc(ide_drive_t *drive) argument
716 idefloppy_pc_intr(ide_drive_t *drive) argument
849 idefloppy_transfer_pc(ide_drive_t *drive) argument
887 idefloppy_transfer_pc2(ide_drive_t *drive) argument
897 idefloppy_transfer_pc1(ide_drive_t *drive) argument
947 idefloppy_issue_pc(ide_drive_t *drive, idefloppy_pc_t *pc) argument
1049 idefloppy_rw_callback(ide_drive_t *drive) argument
1184 idefloppy_do_request(ide_drive_t *drive, struct request *rq, sector_t block_s) argument
1244 idefloppy_queue_pc_tail(ide_drive_t *drive,idefloppy_pc_t *pc) argument
1261 idefloppy_get_flexible_disk_page(ide_drive_t *drive) argument
1306 idefloppy_get_capability_page(ide_drive_t *drive) argument
1332 idefloppy_get_capacity(ide_drive_t *drive) argument
1443 idefloppy_get_format_capacities(ide_drive_t *drive, int __user *arg) argument
1519 idefloppy_begin_format(ide_drive_t *drive, int __user *arg) argument
1552 idefloppy_get_format_progress(ide_drive_t *drive, int __user *arg) argument
1590 idefloppy_capacity(ide_drive_t *drive) argument
1602 idefloppy_identify_device(ide_drive_t *drive,struct hd_driveid *id) argument
1720 idefloppy_add_settings(ide_drive_t *drive) argument
1733 idefloppy_add_settings(ide_drive_t *drive) argument
1739 idefloppy_setup(ide_drive_t *drive, idefloppy_floppy_t *floppy) argument
1770 ide_floppy_remove(ide_drive_t *drive) argument
1785 ide_drive_t *drive = floppy->drive; local
1798 ide_drive_t*drive = (ide_drive_t *)data; local
1838 ide_drive_t *drive; local
1900 ide_drive_t *drive = floppy->drive; local
1925 ide_drive_t *drive = floppy->drive; local
1938 ide_drive_t *drive = floppy->drive; local
2000 ide_drive_t *drive = floppy->drive; local
2027 ide_floppy_probe(ide_drive_t *drive) argument
[all...]
H A Dide.c38 * | IRQ-unmask, drive-id, multiple-mode, support for ">16 heads",
203 /* bulk initialize hwif & drive info with zeros */
224 ide_drive_t *drive = &hwif->drives[unit]; local
226 drive->media = ide_disk;
227 drive->select.all = (unit<<4)|0xa0;
228 drive->hwif = hwif;
229 drive->ctl = 0x08;
230 drive->ready_stat = READY_STAT;
231 drive->bad_wstat = BAD_W_STAT;
232 drive
548 ide_drive_t *drive; local
816 ide_spin_wait_hwgroup(ide_drive_t *drive) argument
840 set_io_32bit(ide_drive_t *drive, int arg) argument
856 set_ksettings(ide_drive_t *drive, int arg) argument
869 set_using_dma(ide_drive_t *drive, int arg) argument
918 set_pio_mode(ide_drive_t *drive, int arg) argument
936 set_unmaskirq(ide_drive_t *drive, int arg) argument
968 ide_drive_t *drive = dev->driver_data; local
994 ide_drive_t *drive = dev->driver_data; local
1028 generic_ide_ioctl(ide_drive_t *drive, struct file *file, struct block_device *bdev, unsigned int cmd, unsigned long arg) argument
1299 ide_drive_t *drive; local
1667 media_string(ide_drive_t *drive) argument
1687 ide_drive_t *drive = to_ide_device(dev); local
1693 ide_drive_t *drive = to_ide_device(dev); local
1699 ide_drive_t *drive = to_ide_device(dev); local
1713 ide_drive_t *drive = to_ide_device(dev); local
1729 ide_drive_t *drive = to_ide_device(dev); local
1737 ide_drive_t *drive = to_ide_device(dev); local
1748 ide_drive_t *drive = to_ide_device(dev); local
[all...]
H A Dide-tape.c478 ide_drive_t *drive; member in struct:ide_tape_obj
984 static void idetape_write_release (ide_drive_t *drive, unsigned int minor);
987 * Too bad. The drive wants to send us data which we are not ready to accept.
990 static void idetape_discard_data (ide_drive_t *drive, unsigned int bcount) argument
993 (void) HWIF(drive)->INB(IDE_DATA_REG);
996 static void idetape_input_buffers (ide_drive_t *drive, idetape_pc_t *pc, unsigned int bcount) argument
1006 idetape_discard_data(drive, bcount);
1011 HWIF(drive)->atapi_input_bytes(drive, bh->b_data + atomic_read(&bh->b_count), count);
1023 static void idetape_output_buffers (ide_drive_t *drive, idetape_pc_ argument
1082 idetape_next_pc_storage(ide_drive_t *drive) argument
1109 idetape_next_rq_storage(ide_drive_t *drive) argument
1143 idetape_analyze_error(ide_drive_t *drive, idetape_request_sense_result_t *result) argument
1212 idetape_active_next_stage(ide_drive_t *drive) argument
1244 idetape_increase_max_pipeline_stages(ide_drive_t *drive) argument
1293 idetape_remove_stage_head(ide_drive_t *drive) argument
1331 idetape_abort_pipeline(ide_drive_t *drive, idetape_stage_t *new_last_stage) argument
1359 idetape_end_request(ide_drive_t *drive, int uptodate, int nr_sects) argument
1427 idetape_request_sense_callback(ide_drive_t *drive) argument
1480 idetape_queue_pc_head(ide_drive_t *drive, idetape_pc_t *pc,struct request *rq) argument
1495 idetape_retry_pc(ide_drive_t *drive) argument
1516 idetape_postpone_request(ide_drive_t *drive) argument
1536 idetape_pc_intr(ide_drive_t *drive) argument
1755 idetape_transfer_pc(ide_drive_t *drive) argument
1798 idetape_issue_packet_command(ide_drive_t *drive, idetape_pc_t *pc) argument
1883 idetape_pc_callback(ide_drive_t *drive) argument
1924 calculate_speeds(ide_drive_t *drive) argument
1973 idetape_media_access_finished(ide_drive_t *drive) argument
1999 idetape_rw_callback(ide_drive_t *drive) argument
2093 idetape_do_request(ide_drive_t *drive, struct request *rq, sector_t block) argument
2407 idetape_add_stage_tail(ide_drive_t *drive,idetape_stage_t *stage) argument
2437 idetape_wait_for_request(ide_drive_t *drive, struct request *rq) argument
2456 idetape_read_position_callback(ide_drive_t *drive) argument
2504 idetape_create_write_filemark_cmd(ide_drive_t *drive, idetape_pc_t *pc,int write_filemark) argument
2540 __idetape_queue_pc_tail(ide_drive_t *drive, idetape_pc_t *pc) argument
2551 idetape_create_load_unload_cmd(ide_drive_t *drive, idetape_pc_t *pc,int cmd) argument
2560 idetape_wait_ready(ide_drive_t *drive, unsigned long timeout) argument
2591 idetape_queue_pc_tail(ide_drive_t *drive,idetape_pc_t *pc) argument
2596 idetape_flush_tape_buffers(ide_drive_t *drive) argument
2616 idetape_read_position(ide_drive_t *drive) argument
2634 idetape_create_locate_cmd(ide_drive_t *drive, idetape_pc_t *pc, unsigned int block, u8 partition, int skip) argument
2645 idetape_create_prevent_cmd(ide_drive_t *drive, idetape_pc_t *pc, int prevent) argument
2659 __idetape_discard_read_pipeline(ide_drive_t *drive) argument
2714 idetape_position_tape(ide_drive_t *drive, unsigned int block, u8 partition, int skip) argument
2732 idetape_discard_read_pipeline(ide_drive_t *drive, int restore_position) argument
2753 idetape_queue_rw_tail(ide_drive_t *drive, int cmd, int blocks, struct idetape_bh *bh) argument
2790 idetape_insert_pipeline_into_queue(ide_drive_t *drive) argument
2811 idetape_create_rewind_cmd(ide_drive_t *drive, idetape_pc_t *pc) argument
2839 idetape_wait_first_stage(ide_drive_t *drive) argument
2863 idetape_add_chrdev_write_request(ide_drive_t *drive, int blocks) argument
2937 idetape_wait_for_pipeline(ide_drive_t *drive) argument
2951 idetape_empty_write_pipeline(ide_drive_t *drive) argument
3025 idetape_restart_speed_control(ide_drive_t *drive) argument
3039 idetape_initiate_read(ide_drive_t *drive, int max_stages) argument
3113 idetape_add_chrdev_read_request(ide_drive_t *drive,int blocks) argument
3171 idetape_pad_zeros(ide_drive_t *drive, int bcount) argument
3194 idetape_pipeline_size(ide_drive_t *drive) argument
3219 idetape_rewind_tape(ide_drive_t *drive) argument
3248 idetape_blkdev_ioctl(ide_drive_t *drive, unsigned int cmd, unsigned long arg) argument
3286 idetape_space_over_filemarks(ide_drive_t *drive,short mt_op,int mt_count) argument
3384 ide_drive_t *drive = tape->drive; local
3448 ide_drive_t *drive = tape->drive; local
3541 idetape_write_filemark(ide_drive_t *drive) argument
3617 idetape_mtioctop(ide_drive_t *drive,short mt_op,int mt_count) argument
3757 ide_drive_t *drive = tape->drive; local
3816 ide_drive_t *drive; local
3900 idetape_write_release(ide_drive_t *drive, unsigned int minor) argument
3922 ide_drive_t *drive = tape->drive; local
3970 idetape_identify_device(ide_drive_t *drive) argument
4094 idetape_get_inquiry_results(ide_drive_t *drive) argument
4124 idetape_get_mode_sense_results(ide_drive_t *drive) argument
4198 idetape_get_blocksize_from_block_descriptor(ide_drive_t *drive) argument
4226 idetape_add_settings(ide_drive_t *drive) argument
4249 idetape_add_settings(ide_drive_t *drive) argument
4264 idetape_setup(ide_drive_t *drive, idetape_tape_t *tape, int minor) argument
4367 ide_tape_remove(ide_drive_t *drive) argument
4381 ide_drive_t *drive = tape->drive; local
4402 ide_drive_t *drive = (ide_drive_t *) data; local
4478 ide_drive_t *drive = tape->drive; local
4492 ide_tape_probe(ide_drive_t *drive) argument
[all...]
H A Dide-proc.c13 * Drive/Driver settings can be retrieved by reading the drive's
106 ide_drive_t *drive = (ide_drive_t *)data; local
112 if (drive) {
115 err = taskfile_lib_get_identify(drive, page);
132 * @drive: drive to use
155 static int __ide_add_setting(ide_drive_t *drive, const char *name, int rw, int data_type, int min, int max, int mul_factor, int div_factor, void *data, ide_procset_t *set, int auto_remove) argument
157 ide_settings_t **p = (ide_settings_t **) &drive->settings, *setting = NULL;
188 int ide_add_setting(ide_drive_t *drive, const char *name, int rw, int data_type, int min, int max, int mul_factor, int div_factor, void *data, ide_procset_t *set) argument
190 return __ide_add_setting(drive, nam
204 __ide_remove_setting(ide_drive_t *drive, char *name) argument
230 auto_remove_settings(ide_drive_t *drive) argument
254 ide_find_setting_by_name(ide_drive_t *drive, char *name) argument
279 ide_read_setting(ide_drive_t *drive, ide_settings_t *setting) argument
303 ide_write_setting(ide_drive_t *drive, ide_settings_t *setting, int val) argument
330 set_xfer_rate(ide_drive_t *drive, int arg) argument
356 ide_add_generic_settings(ide_drive_t *drive) argument
387 ide_drive_t *drive = (ide_drive_t *) data; local
423 ide_drive_t *drive = (ide_drive_t *) data; local
526 ide_drive_t *drive = (ide_drive_t *) data; local
544 ide_drive_t *drive = (ide_drive_t *) data; local
556 ide_drive_t *drive = (ide_drive_t *) data; local
570 ide_replace_subdriver(ide_drive_t *drive, const char *driver) argument
599 ide_drive_t *drive = (ide_drive_t *) data; local
617 ide_drive_t *drive = (ide_drive_t *) data; local
675 ide_proc_register_driver(ide_drive_t *drive, ide_driver_t *driver) argument
694 ide_proc_unregister_driver(ide_drive_t *drive, ide_driver_t *driver) argument
728 ide_drive_t *drive = &hwif->drives[d]; local
744 destroy_proc_ide_device(ide_hwif_t *hwif, ide_drive_t *drive) argument
759 ide_drive_t *drive = &hwif->drives[d]; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/mtools-4.0.10/
H A Dstreamcache.c57 Stream_t *open_root_dir(unsigned char drive, int flags, int *isRop) argument
63 drive = toupper(drive);
65 /* open the drive */
66 if(fss[drive])
67 Fs = fss[drive];
69 Fs = fs_init(drive, flags, isRop);
71 fprintf(stderr, "Cannot initialize '%c:'\n", drive);
75 fss[drive] = Fs;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/mtools-4.0.10/scripts/
H A DamuFormat.sh38 echo "Usage: amuFormat.sh <Card Type> <drive>" >&2
40 echo "<drive> has to be defined in mtools.conf" >&2
46 drive="$2"
50 ## using the f: or g: drive for fat12 formatting...
53 [bB]:) drive="f:" ;;
54 [cC]:) drive="g:" ;;
92 mpartition -I "$drive"
95 mpartition -c -t$cylinders -h$heads -s32 -b32 "$drive"
98 mformat -c$cluster_size -v "$1" "$drive"
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/pci/
H A Dsl82c105.c74 static u8 sl82c105_tune_pio(ide_drive_t *drive, u8 pio) argument
76 struct pci_dev *dev = HWIF(drive)->pci_dev;
77 int reg = 0x44 + drive->dn * 4;
81 DBG(("sl82c105_tune_pio(drive:%s, pio:%u)\n", drive->name, pio));
83 pio = ide_get_best_pio_mode(drive, pio, 5, &p);
91 drive->drive_data &= 0xffff0000;
92 drive->drive_data |= drv_ctrl;
94 if (!drive->using_dma) {
97 * reprogram the interface drive contro
112 sl82c105_tune_chipset(ide_drive_t *drive, u8 speed) argument
164 sl82c105_ide_dma_check(ide_drive_t *drive) argument
190 sl82c105_ide_dma_lostirq(ide_drive_t *drive) argument
230 sl82c105_dma_start(ide_drive_t *drive) argument
239 sl82c105_ide_dma_timeout(ide_drive_t *drive) argument
250 sl82c105_ide_dma_on(ide_drive_t *drive) argument
266 sl82c105_dma_off_quietly(ide_drive_t *drive) argument
285 sl82c105_selectproc(ide_drive_t *drive) argument
309 sl82c105_resetproc(ide_drive_t *drive) argument
324 sl82c105_tune_drive(ide_drive_t *drive, u8 pio) argument
[all...]
H A Datiixp.c88 static void atiixp_dma_host_on(ide_drive_t *drive) argument
90 struct pci_dev *dev = drive->hwif->pci_dev;
97 if (save_mdma_mode[drive->dn])
98 tmp16 &= ~(1 << drive->dn);
100 tmp16 |= (1 << drive->dn);
105 ide_dma_host_on(drive);
108 static void atiixp_dma_host_off(ide_drive_t *drive) argument
110 struct pci_dev *dev = drive->hwif->pci_dev;
117 tmp16 &= ~(1 << drive->dn);
122 ide_dma_host_off(drive);
133 atiixp_tuneproc(ide_drive_t *drive, u8 pio) argument
167 atiixp_speedproc(ide_drive_t *drive, u8 xferspeed) argument
217 atiixp_dma_check(ide_drive_t *drive) argument
[all...]
H A Dslc90e66.c51 static void slc90e66_tune_pio (ide_drive_t *drive, u8 pio) argument
53 ide_hwif_t *hwif = HWIF(drive);
55 int is_slave = drive->dn & 1;
75 if (drive->media == ide_disk)
104 static void slc90e66_tune_drive (ide_drive_t *drive, u8 pio) argument
106 pio = ide_get_best_pio_mode(drive, pio, 4, NULL);
107 slc90e66_tune_pio(drive, pio);
108 (void) ide_config_drive_speed(drive, XFER_PIO_0 + pio);
111 static int slc90e66_tune_chipset (ide_drive_t *drive, u8 xferspeed) argument
113 ide_hwif_t *hwif = HWIF(drive);
162 slc90e66_config_drive_xfer_rate(ide_drive_t *drive) argument
[all...]
H A Dtc86c001.c16 static int tc86c001_tune_chipset(ide_drive_t *drive, u8 speed) argument
18 ide_hwif_t *hwif = HWIF(drive);
19 unsigned long scr_port = hwif->config_data + (drive->dn ? 0x02 : 0x00);
22 speed = ide_rate_filter(drive, speed);
45 return ide_config_drive_speed(drive, speed);
48 static void tc86c001_tune_drive(ide_drive_t *drive, u8 pio) argument
50 pio = ide_get_best_pio_mode(drive, pio, 4, NULL);
51 (void) tc86c001_tune_chipset(drive, XFER_PIO_0 + pio);
54 static int tc86c001_timer_expiry(ide_drive_t *drive) argument
56 ide_hwif_t *hwif = HWIF(drive);
99 tc86c001_dma_start(ide_drive_t *drive) argument
122 tc86c001_busproc(ide_drive_t *drive, int state) argument
156 tc86c001_config_drive_xfer_rate(ide_drive_t *drive) argument
[all...]
H A Dtriflex.c43 static int triflex_tune_chipset(ide_drive_t *drive, u8 xferspeed) argument
45 ide_hwif_t *hwif = HWIF(drive);
50 u8 unit = (drive->select.b.unit & 0x01);
51 u8 speed = ide_rate_filter(drive, xferspeed);
94 return (ide_config_drive_speed(drive, speed));
97 static void triflex_tune_drive(ide_drive_t *drive, u8 pio) argument
99 int use_pio = ide_get_best_pio_mode(drive, pio, 4, NULL);
100 (void) triflex_tune_chipset(drive, (XFER_PIO_0 + use_pio));
103 static int triflex_config_drive_xfer_rate(ide_drive_t *drive) argument
105 if (ide_tune_dma(drive))
[all...]
H A Dsc1200.c74 * Set a new transfer mode at the drive
76 static int sc1200_set_xfer_mode (ide_drive_t *drive, byte mode) argument
78 printk("%s: sc1200_set_xfer_mode(%s)\n", drive->name, ide_xfer_verbose(mode));
79 return ide_config_drive_speed(drive, mode);
98 static void sc1200_tunepio(ide_drive_t *drive, u8 pio) argument
100 ide_hwif_t *hwif = drive->hwif;
108 pci_write_config_dword(pdev, basereg + ((drive->dn & 1) << 3),
115 * different timings can still be chosen for each drive. We could
118 * by looking at our mate drive to see what it is capable of, before
119 * choosing a mode for our own drive
121 sc1200_udma_filter(ide_drive_t *drive) argument
141 sc1200_tune_chipset(ide_drive_t *drive, u8 mode) argument
241 sc1200_config_dma(ide_drive_t *drive) argument
255 sc1200_ide_dma_end(ide_drive_t *drive) argument
283 sc1200_tuneproc(ide_drive_t *drive, byte pio) argument
413 ide_drive_t *drive = &(hwif->drives[d]); local
430 ide_drive_t *drive = &(hwif->drives[d]); local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/block/
H A Damiflop.c52 * - added trackbuffer for each drive to speed things up
105 #define FD_DD_3 0xffffffff /* double-density 3.5" (880K) drive */
106 #define FD_HD_3 0x55555555 /* high-density 3.5" (1760K) drive */
107 #define FD_DD_5 0xaaaaaaaa /* double-density 5.25" (440K) drive */
125 #define SELMASK(drive) (1 << (3 + (drive & 3)))
161 static volatile int selected = -1; /* currently selected drive */
242 static inline int try_fdc(int drive) argument
244 drive &= 3;
245 return ((fdc_busy < 0) || (fdc_busy == drive));
248 get_fdc(int drive) argument
278 fd_select(int drive) argument
302 fd_deselect(int drive) argument
366 fd_motor_off(unsigned long drive) argument
390 int drive; local
398 fd_calibrate(int drive) argument
450 fd_seek(int drive, int track) argument
507 fd_get_drive_id(int drive) argument
575 raw_read(int drive) argument
603 raw_write(int drive) argument
639 post_write(unsigned long drive) argument
718 amiga_read(int drive) argument
1033 dos_read(int drive) argument
1154 ms_putsec(int drive, unsigned long *raw, int cnt) argument
1300 get_track(int drive, int track) argument
1338 int drive; local
1423 int drive = MINOR(bdev->bd_dev) & 3; local
1434 int drive = iminor(inode) & 3; local
1511 int drive; local
1544 int drive = iminor(inode) & 3; local
1588 int drive = iminor(inode) & 3; local
1615 int drive = p - unit; local
1651 int drive,drives,nomem; local
1696 int drive = *part & 3; local
[all...]
H A Dxd.c68 /* Above may need to be increased if a problem with the 2nd drive detection
178 printk("Detected %d hard drive%s (using IRQ%d & DMA%d)\n",
354 int drive = p->unit; local
362 printk("xd_readwrite: operation = %s, drive = %d, buffer = 0x%X, block = %d, count = %d\n",operation == READ ? "read" : "write",drive,buffer,block,count);
379 printk("xd_readwrite: drive = %d, head = %d, cylinder = %d, sector = %d, count = %d\n",drive,head,cylinder,sector,temp);
391 xd_build(cmdblk,operation == READ ? CMD_READ : CMD_WRITE,drive,head,cylinder,sector,temp & 0xFF,control);
395 printk("xd%c: %s timeout, recalibrating drive\n",'a'+drive,(operatio
432 xd_recalibrate(u_char drive) argument
484 xd_build(u_char *cmdblk,u_char command,u_char drive,u_char head,u_short cylinder,u_char sector,u_char count,u_char control) argument
604 xd_initdrives(void (*init_drive)(u_char drive)) argument
622 xd_manual_geo_set(u_char drive) argument
646 xd_dtc5150cx_init_drive(u_char drive) argument
688 xd_dtc_init_drive(u_char drive) argument
730 xd_wd_init_drive(u_char drive) argument
814 xd_seagate_init_drive(u_char drive) argument
847 xd_omti_init_drive(u_char drive) argument
888 xd_xebec_init_drive(u_char drive) argument
926 xd_override_init_drive(u_char drive) argument
974 xd_setparam(u_char command,u_char drive,u_char heads,u_short cylinders,u_short rwrite,u_short wprecomp,u_char ecc) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/
H A Dide-scsi.c101 ide_drive_t *drive; member in struct:ide_scsi_obj
157 static void idescsi_discard_data (ide_drive_t *drive, unsigned int bcount) argument
160 (void) HWIF(drive)->INB(IDE_DATA_REG);
163 static void idescsi_output_zeros (ide_drive_t *drive, unsigned int bcount) argument
166 HWIF(drive)->OUTB(0, IDE_DATA_REG);
172 static void idescsi_input_buffers (ide_drive_t *drive, idescsi_pc_t *pc, unsigned int bcount) argument
180 idescsi_discard_data (drive, bcount);
190 drive->hwif->atapi_input_bytes(drive,
196 drive
207 idescsi_output_buffers(ide_drive_t *drive, idescsi_pc_t *pc, unsigned int bcount) argument
246 idescsi_transform_pc1(ide_drive_t *drive, idescsi_pc_t *pc) argument
288 idescsi_transform_pc2(ide_drive_t *drive, idescsi_pc_t *pc) argument
323 idescsi_check_condition(ide_drive_t *drive, struct request *failed_command) argument
364 idescsi_atapi_error(ide_drive_t *drive, struct request *rq, u8 stat, u8 err) argument
378 idescsi_atapi_abort(ide_drive_t *drive, struct request *rq) argument
391 idescsi_end_request(ide_drive_t *drive, int uptodate, int nrsecs) argument
464 idescsi_expiry(ide_drive_t *drive) argument
480 idescsi_pc_intr(ide_drive_t *drive) argument
584 idescsi_transfer_pc(ide_drive_t *drive) argument
629 idescsi_map_sg(ide_drive_t *drive, idescsi_pc_t *pc) argument
662 idescsi_issue_pc(ide_drive_t *drive, idescsi_pc_t *pc) argument
709 idescsi_do_request(ide_drive_t *drive, struct request *rq, sector_t block) argument
725 idescsi_add_settings(ide_drive_t *drive) argument
739 idescsi_add_settings(ide_drive_t *drive) argument
745 idescsi_setup(ide_drive_t *drive, idescsi_scsi_t *scsi) argument
757 ide_scsi_remove(ide_drive_t *drive) argument
867 should_transform(ide_drive_t *drive, struct scsi_cmnd *cmd) argument
881 ide_drive_t *drive = scsi->drive; local
946 ide_drive_t *drive = scsi->drive; local
1002 ide_drive_t *drive = scsi->drive; local
1072 ide_drive_t *drive = idescsi->drive; local
1102 ide_scsi_probe(ide_drive_t *drive) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/legacy/
H A Dqd65xx.c115 * This routine is invoked from ide.c to prepare for access to a given drive.
118 static void qd_select (ide_drive_t *drive) argument
120 u8 index = (( (QD_TIMREG(drive)) & 0x80 ) >> 7) |
121 (QD_TIMREG(drive) & 0x02);
123 if (timings[index] != QD_TIMING(drive))
124 qd_write_reg(timings[index] = QD_TIMING(drive), QD_TIMREG(drive));
170 static int qd_find_disk_type (ide_drive_t *drive, argument
176 if (!*drive->id->model) return 0;
178 strncpy(model,drive
212 qd_set_timing(ide_drive_t *drive, u8 timing) argument
231 qd6500_tune_drive(ide_drive_t *drive, u8 pio) argument
253 qd6580_tune_drive(ide_drive_t *drive, u8 pio) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/mips/
H A Dau1xxx-ide.c102 static void auide_tune_drive(ide_drive_t *drive, byte pio) argument
108 /* get the best pio mode for the drive */
109 pio = ide_get_best_pio_mode(drive, pio, 4, NULL);
112 drive->name, pio);
175 ide_config_drive_speed(drive, speed);
178 static int auide_tune_chipset (ide_drive_t *drive, u8 speed) argument
187 auide_tune_drive(drive, speed - XFER_PIO_0);
228 if (ide_config_drive_speed(drive, speed))
243 static int auide_build_sglist(ide_drive_t *drive, struct request *rq) argument
245 ide_hwif_t *hwif = drive
260 auide_build_dmatable(ide_drive_t *drive) argument
343 auide_dma_end(ide_drive_t *drive) argument
362 auide_dma_exec_cmd(ide_drive_t *drive, u8 command) argument
369 auide_dma_setup(ide_drive_t *drive) argument
382 auide_dma_check(ide_drive_t *drive) argument
420 auide_dma_test_irq(ide_drive_t *drive) argument
439 auide_dma_host_on(ide_drive_t *drive) argument
443 auide_dma_on(ide_drive_t *drive) argument
450 auide_dma_host_off(ide_drive_t *drive) argument
454 auide_dma_off_quietly(ide_drive_t *drive) argument
459 auide_dma_lostirq(ide_drive_t *drive) argument
492 auide_dma_timeout(ide_drive_t *drive) argument
[all...]

Completed in 220 milliseconds

12345