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

1234

/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/ide/
H A Dide-geometry.c17 * drives in the system -- the ones reflected as drive 1 or 2. The first
18 * drive is stored in the high nibble of CMOS byte 0x12, the second in the low
19 * nibble. This will be either a 4 bit drive type or 0xf indicating use byte
20 * 0x19 for an 8 bit type, drive 1, 0x1a for drive 2 in CMOS. A non-zero value
21 * means we have an AT controller hard disk for that drive.
23 * Of course, there is no guarantee that either drive is actually on the
25 * If a drive is not actually on the primary interface, then these parameters
27 * drive geometry as a boot parameter for each drive no
67 ide_drive_t *drive = &hwif->drives[unit]; local
102 ontrack(ide_drive_t *drive, int heads, unsigned int *c, int *h, int *s) argument
158 ide_drive_t *drive; local
[all...]
H A Dide-disk.c17 * Version 1.02 remove ", LBA" from drive identification msgs
60 #define IS_PDC4030_DRIVE (HWIF(drive)->chipset == ide_pdc4030)
83 static inline void idedisk_input_data (ide_drive_t *drive, void *buffer, unsigned int wcount) argument
85 ide_input_data(drive, buffer, wcount);
86 if (drive->bswap)
90 static inline void idedisk_output_data (ide_drive_t *drive, void *buffer, unsigned int wcount) argument
92 if (drive->bswap) {
94 ide_output_data(drive, buffer, wcount);
97 ide_output_data(drive, buffer, wcount);
104 * value for this drive (fro
157 read_intr(ide_drive_t *drive) argument
210 write_intr(ide_drive_t *drive) argument
258 ide_multwrite(ide_drive_t *drive, unsigned int mcount) argument
305 multwrite_intr(ide_drive_t *drive) argument
355 do_rw_disk(ide_drive_t *drive, struct request *rq, unsigned long block) argument
384 get_command(ide_drive_t *drive, int cmd) argument
406 chs_rw_disk(ide_drive_t *drive, struct request *rq, unsigned long block) argument
451 lba_28_rw_disk(ide_drive_t *drive, struct request *rq, unsigned long block) argument
499 lba_48_rw_disk(ide_drive_t *drive, struct request *rq, unsigned long long block) argument
557 do_rw_disk(ide_drive_t *drive, struct request *rq, unsigned long block) argument
718 idedisk_open(struct inode *inode, struct file *filp, ide_drive_t *drive) argument
741 idedisk_release(struct inode *inode, struct file *filp, ide_drive_t *drive) argument
760 idedisk_media_change(ide_drive_t *drive) argument
765 idedisk_revalidate(ide_drive_t *drive) argument
776 idedisk_read_native_max_address(ide_drive_t *drive) argument
805 idedisk_read_native_max_address_ext(ide_drive_t *drive) argument
839 idedisk_set_max_address(ide_drive_t *drive, unsigned long addr_req) argument
866 idedisk_set_max_address_ext(ide_drive_t *drive, unsigned long long addr_req) argument
904 idedisk_supports_host_protected_area(ide_drive_t *drive) argument
927 init_idedisk_capacity(ide_drive_t *drive) argument
997 idedisk_capacity(ide_drive_t *drive) argument
1004 idedisk_special(ide_drive_t *drive) argument
1060 idedisk_pre_reset(ide_drive_t *drive) argument
1077 smart_enable(ide_drive_t *drive) argument
1090 get_smart_values(ide_drive_t *drive, byte *buf) argument
1105 get_smart_thresholds(ide_drive_t *drive, byte *buf) argument
1123 ide_drive_t *drive = (ide_drive_t *) data; local
1137 ide_drive_t *drive = (ide_drive_t *)data; local
1156 ide_drive_t *drive = (ide_drive_t *)data; local
1186 set_multcount(ide_drive_t *drive, int arg) argument
1216 set_nowerr(ide_drive_t *drive, int arg) argument
1226 write_cache(ide_drive_t *drive, int arg) argument
1243 do_idedisk_standby(ide_drive_t *drive) argument
1253 do_idedisk_flushcache(ide_drive_t *drive) argument
1267 set_acoustic(ide_drive_t *drive, int arg) argument
1283 probe_lba_addressing(ide_drive_t *drive, int arg) argument
1294 set_lba_addressing(ide_drive_t *drive, int arg) argument
1299 idedisk_add_settings(ide_drive_t *drive) argument
1322 idedisk_setup(ide_drive_t *drive) argument
1428 idedisk_cleanup(ide_drive_t *drive) argument
1478 idedisk_reinit(ide_drive_t *drive) argument
1506 ide_drive_t *drive; local
1526 ide_drive_t *drive; local
[all...]
H A Dide-features.c75 char *ide_media_verbose (ide_drive_t *drive) argument
77 switch (drive->media) {
116 byte ide_auto_reduce_xfer (ide_drive_t *drive) argument
118 if (!drive->crc_count)
119 return drive->current_speed;
120 drive->crc_count = 0;
122 switch(drive->current_speed) {
144 int ide_driveid_update (ide_drive_t *drive) argument
147 * Re-read drive->id for possible DMA mode
153 SELECT_MASK(HWIF(drive), driv local
161 SELECT_MASK(HWIF(drive), drive, 0); local
168 SELECT_MASK(HWIF(drive), drive, 0); local
174 SELECT_MASK(HWIF(drive), drive, 0); local
203 ide_ata66_check(ide_drive_t *drive, ide_task_t *args) argument
230 set_transfer(ide_drive_t *drive, ide_task_t *args) argument
247 eighty_ninty_three(ide_drive_t *drive) argument
273 ide_config_drive_speed(ide_drive_t *drive, byte speed) argument
295 SELECT_DRIVE(HWIF(drive), drive); local
296 SELECT_MASK(HWIF(drive), drive, 0); local
336 SELECT_MASK(HWIF(drive), drive, 0); local
[all...]
H A Dide-cd.c64 * showed up if the drive returned data in 512 byte
86 * some drive not ready errors.
115 * 3.07a Feb 11, 1996 -- check drive->id for NULL before dereferencing, to fix
116 * problem with "hde=cdrom" with no drive present. -ml
153 * -- Add some probes of drive capability during setup.
163 * to fix the drive door locking problems.
169 * 4.05 Nov 20, 1997 -- Modified to print more drive info on init
227 * drive in transfer size limit.
272 * - Fixed a problem with WPI CDS-32X drive - it
326 static void cdrom_saw_media_change (ide_drive_t *drive) argument
335 cdrom_log_sense(ide_drive_t *drive, struct packet_command *pc, struct request_sense *sense) argument
372 cdrom_analyze_sense_data(ide_drive_t *drive, struct packet_command *failed_command, struct request_sense *sense) argument
515 cdrom_queue_request_sense(ide_drive_t *drive, struct completion *wait, struct request_sense *sense, struct packet_command *failed_command) argument
543 cdrom_end_request(int uptodate, ide_drive_t *drive) argument
563 cdrom_decode_status(ide_startstop_t *startstop, ide_drive_t *drive, int good_stat, int *stat_ret) argument
681 cdrom_timer_expiry(ide_drive_t *drive) argument
713 cdrom_start_packet_command(ide_drive_t *drive, int xferlen, ide_handler_t *handler) argument
766 cdrom_transfer_packet_command(ide_drive_t *drive, struct packet_command *pc, ide_handler_t *handler) argument
808 cdrom_buffer_sectors(ide_drive_t *drive, unsigned long sector, int sectors_to_transfer) argument
852 cdrom_read_check_ireason(ide_drive_t *drive, int len, int ireason) argument
889 cdrom_read_intr(ide_drive_t *drive) argument
1020 cdrom_read_from_buffer(ide_drive_t *drive) argument
1078 cdrom_start_read_continuation(ide_drive_t *drive) argument
1139 cdrom_seek_intr(ide_drive_t *drive) argument
1162 cdrom_start_seek_continuation(ide_drive_t *drive) argument
1182 cdrom_start_seek(ide_drive_t *drive, unsigned int block) argument
1215 cdrom_attempt_remerge(ide_drive_t *drive, struct request *rq) argument
1259 cdrom_start_read(ide_drive_t *drive, unsigned int block) argument
1307 cdrom_pc_intr(ide_drive_t *drive) argument
1404 cdrom_do_pc_continuation(ide_drive_t *drive) argument
1417 cdrom_do_packet_command(ide_drive_t *drive) argument
1448 cdrom_queue_packet_command(ide_drive_t *drive, struct packet_command *pc) argument
1494 cdrom_write_check_ireason(ide_drive_t *drive, int len, int ireason) argument
1524 cdrom_write_intr(ide_drive_t *drive) argument
1626 cdrom_start_write_cont(ide_drive_t *drive) argument
1649 cdrom_start_write(ide_drive_t *drive, struct request *rq) argument
1684 ide_do_rw_cdrom(ide_drive_t *drive, struct request *rq, unsigned long block) argument
1790 cdrom_check_status(ide_drive_t *drive, struct request_sense *sense) argument
1814 cdrom_lockdoor(ide_drive_t *drive, int lockflag, struct request_sense *sense) argument
1858 cdrom_eject(ide_drive_t *drive, int ejectflag, struct request_sense *sense) argument
1878 cdrom_read_capacity(ide_drive_t *drive, unsigned long *capacity, struct request_sense *sense) argument
1903 cdrom_read_tocentry(ide_drive_t *drive, int trackno, int msf_flag, int format, char *buf, int buflen, struct request_sense *sense) argument
1929 cdrom_read_toc(ide_drive_t *drive, struct request_sense *sense) argument
2083 cdrom_read_subchannel(ide_drive_t *drive, int format, char *buf, int buflen, struct request_sense *sense) argument
2104 cdrom_select_speed(ide_drive_t *drive, int speed, struct request_sense *sense) argument
2133 cdrom_play_audio(ide_drive_t *drive, int lba_start, int lba_end) argument
2148 cdrom_get_toc_entry(ide_drive_t *drive, int track, struct atapi_toc_entry **ent) argument
2180 ide_drive_t *drive = (ide_drive_t*) cdi->handle; local
2251 ide_drive_t *drive = (ide_drive_t*) cdi->handle; local
2327 ide_drive_t *drive = (ide_drive_t*) cdi->handle; local
2350 ide_drive_t *drive = (ide_drive_t*) cdi->handle; local
2364 ide_drive_t *drive = (ide_drive_t*) cdi->handle; local
2371 ide_drive_t *drive = (ide_drive_t*) cdi->handle; local
2385 ide_drive_t *drive = (ide_drive_t*) cdi->handle; local
2420 ide_drive_t *drive = (ide_drive_t*) cdi->handle; local
2442 ide_drive_t *drive = (ide_drive_t*) cdi->handle; local
2466 ide_drive_t *drive = (ide_drive_t*) cdi->handle; local
2524 ide_cdrom_register(ide_drive_t *drive, int nslots) argument
2565 ide_cdrom_get_capabilities(ide_drive_t *drive, struct atapi_capabilities_page *cap) argument
2600 ide_cdrom_probe_capabilities(ide_drive_t *drive) argument
2708 ide_cdrom_add_settings(ide_drive_t *drive) argument
2720 ide_cdrom_setup(ide_drive_t *drive) argument
2863 ide_cdrom_ioctl(ide_drive_t *drive, struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) argument
2871 ide_cdrom_open(struct inode *ip, struct file *fp, ide_drive_t *drive) argument
2887 ide_cdrom_release(struct inode *inode, struct file *file, ide_drive_t *drive) argument
2895 ide_cdrom_check_media_change(ide_drive_t *drive) argument
2902 ide_cdrom_revalidate(ide_drive_t *drive) argument
2929 ide_cdrom_capacity(ide_drive_t *drive) argument
2940 ide_cdrom_cleanup(ide_drive_t *drive) argument
3002 ide_cdrom_reinit(ide_drive_t *drive) argument
3037 ide_drive_t *drive; local
3050 ide_drive_t *drive; local
[all...]
H A Dide.c37 * | IRQ-unmask, drive-id, multiple-mode, support for ">16 heads",
247 /* bulk initialize hwif & drive info with zeros */
268 ide_drive_t *drive = &hwif->drives[unit]; local
270 drive->media = ide_disk;
271 drive->select.all = (unit<<4)|0xa0;
272 drive->hwif = hwif;
273 drive->ctl = 0x08;
274 drive->ready_stat = READY_STAT;
275 drive->bad_wstat = BAD_W_STAT;
276 drive
321 drive_is_flashcard(ide_drive_t *drive) argument
382 ide_input_data(ide_drive_t *drive, void *buffer, unsigned int wcount) argument
427 ide_output_data(ide_drive_t *drive, void *buffer, unsigned int wcount) argument
472 atapi_input_bytes(ide_drive_t *drive, void *buffer, unsigned int bytecount) argument
493 atapi_output_bytes(ide_drive_t *drive, void *buffer, unsigned int bytecount) argument
518 drive_is_ready(ide_drive_t *drive) argument
549 ide_drive_t *drive = hwgroup->drive; local
579 ide_set_handler(ide_drive_t *drive, ide_handler_t *handler, unsigned int timeout, ide_expiry_t *expiry) argument
601 current_capacity(ide_drive_t *drive) argument
620 ide_drive_t *drive = &hwif->drives[unit]; local
643 atapi_reset_pollfunc(ide_drive_t *drive) argument
648 SELECT_DRIVE(HWIF(drive),drive); local
672 reset_pollfunc(ide_drive_t *drive) argument
719 check_dma_crc(ide_drive_t *drive) argument
732 pre_reset(ide_drive_t *drive) argument
765 do_reset1(ide_drive_t *drive, int do_not_try_atapi) argument
835 ide_do_reset(ide_drive_t *drive) argument
840 read_24(ide_drive_t *drive) argument
850 ide_end_drive_cmd(ide_drive_t *drive, byte stat, byte err) argument
930 ide_dump_status(ide_drive_t *drive, const char *msg, byte stat) argument
1015 try_to_flush_leftover_data(ide_drive_t *drive) argument
1032 ide_error(ide_drive_t *drive, const char *msg, byte stat) argument
1095 ide_cmd(ide_drive_t *drive, byte cmd, byte nsect, ide_handler_t *handler) argument
1100 SELECT_MASK(HWIF(drive),drive,0); local
1108 drive_cmd_intr(ide_drive_t *drive) argument
1135 do_special(ide_drive_t *drive) argument
1167 ide_wait_stat(ide_startstop_t *startstop, ide_drive_t *drive, byte good, byte bad, unsigned long timeout) argument
1212 execute_drive_cmd(ide_drive_t *drive, struct request *rq) argument
1329 start_request(ide_drive_t *drive, struct request *rq) argument
1404 restart_request(ide_drive_t *drive) argument
1423 ide_stall_queue(ide_drive_t *drive, unsigned long timeout) argument
1437 ide_drive_t *drive, *best; local
1515 ide_drive_t *drive; local
1614 ide_dma_timeout_retry(ide_drive_t *drive) argument
1680 ide_drive_t *drive = hwgroup->drive; local
1798 ide_drive_t *drive; local
1908 ide_drive_t *drive = &hwif->drives[unit]; local
1952 ide_do_drive_cmd(ide_drive_t *drive, struct request *rq, ide_action_t action) argument
2000 ide_drive_t *drive; local
2040 ide_drive_t *drive; local
2087 ide_drive_t *drive; local
2125 ide_drive_t *drive; local
2135 ide_replace_subdriver(ide_drive_t *drive, const char *driver) argument
2197 ide_drive_t *drive, *d; local
2463 ide_add_setting(ide_drive_t *drive, const char *name, int rw, int read_ioctl, int write_ioctl, int data_type, int min, int max, int mul_factor, int div_factor, void *data, ide_procset_t *set) argument
2489 ide_remove_setting(ide_drive_t *drive, char *name) argument
2502 ide_find_setting_by_ioctl(ide_drive_t *drive, int cmd) argument
2514 ide_find_setting_by_name(ide_drive_t *drive, char *name) argument
2526 auto_remove_settings(ide_drive_t *drive) argument
2540 ide_read_setting(ide_drive_t *drive, ide_settings_t *setting) argument
2564 ide_spin_wait_hwgroup(ide_drive_t *drive) argument
2587 ide_write_setting(ide_drive_t *drive, ide_settings_t *setting, int val) argument
2622 set_io_32bit(ide_drive_t *drive, int arg) argument
2632 set_using_dma(ide_drive_t *drive, int arg) argument
2643 set_pio_mode(ide_drive_t *drive, int arg) argument
2658 ide_add_generic_settings(ide_drive_t *drive) argument
2676 ide_wait_cmd(ide_drive_t *drive, int cmd, int nsect, int feature, int sectors, byte *buf) argument
2693 ide_wait_cmd_task(ide_drive_t *drive, byte *buf) argument
2726 ide_reinit_drive(ide_drive_t *drive) argument
2785 ide_drive_t *drive; local
3048 ide_drive_t *drive; local
3232 ide_drive_t *drive; local
3702 default_cleanup(ide_drive_t *drive) argument
3707 default_standby(ide_drive_t *drive) argument
3712 default_flushcache(ide_drive_t *drive) argument
3717 default_do_request(ide_drive_t *drive, struct request *rq, unsigned long block) argument
3728 default_ioctl(ide_drive_t *drive, struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) argument
3734 default_open(struct inode *inode, struct file *filp, ide_drive_t *drive) argument
3740 default_release(struct inode *inode, struct file *filp, ide_drive_t *drive) argument
3744 default_check_media_change(ide_drive_t *drive) argument
3749 default_pre_reset(ide_drive_t *drive) argument
3753 default_capacity(ide_drive_t *drive) argument
3758 default_special(ide_drive_t *drive) argument
3767 default_reinit(ide_drive_t *drive) argument
3774 setup_driver_defaults(ide_drive_t *drive) argument
3802 ide_drive_t *drive = &hwif->drives[unit]; local
3813 ide_register_subdriver(ide_drive_t *drive, ide_driver_t *driver, int version) argument
3849 ide_unregister_subdriver(ide_drive_t *drive) argument
3979 ide_drive_t *drive; local
[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!
73 * check_drive_lists(ide_drive_t *drive, int good_bad)
76 * SELECT_READ_WRITE(hwif,drive,func) for active tuning based on IO direction.
192 * the drive or the controller, or cabling, or software, or some combination
194 * opinion of your drive - use hdparm to turn DMA on.
228 ide_startstop_t ide_dma_intr (ide_drive_t *drive) argument
233 dma_stat = HWIF(drive)->dmaproc(ide_dma_end, drive);
342 ide_build_dmatable(ide_drive_t *drive, ide_dma_action_t func) argument
428 ide_destroy_dmatable(ide_drive_t *drive) argument
443 check_drive_lists(ide_drive_t *drive, int good_bad) argument
481 report_drive_dmaing(ide_drive_t *drive) argument
518 config_drive_for_dma(ide_drive_t *drive) argument
561 dma_timer_expiry(ide_drive_t *drive) argument
579 ide_dma_timeout_revovery(ide_drive_t *drive) argument
603 ide_toggle_bounce(ide_drive_t *drive, int on) argument
636 ide_dmaproc(ide_dma_action_t func, ide_drive_t *drive) argument
[all...]
H A Dide-taskfile.c51 inline u32 task_read_24 (ide_drive_t *drive) argument
86 void ata_input_data (ide_drive_t *drive, void *buffer, unsigned int wcount) argument
88 byte io_32bit = drive->io_32bit;
104 if (drive->slow) {
119 void ata_output_data (ide_drive_t *drive, void *buffer, unsigned int wcount) argument
121 byte io_32bit = drive->io_32bit;
137 if (drive->slow) {
150 static inline void taskfile_input_data (ide_drive_t *drive, void *buffer, unsigned int wcount) argument
152 ata_input_data(drive, buffer, wcount);
153 if (drive
157 taskfile_output_data(ide_drive_t *drive, void *buffer, unsigned int wcount) argument
168 do_rw_taskfile(ide_drive_t *drive, ide_task_t *task) argument
179 SELECT_MASK(HWIF(drive), drive, 0); local
239 do_taskfile(ide_drive_t *drive, struct hd_drive_task_hdr *taskfile, struct hd_drive_hob_hdr *hobfile, ide_handler_t *handler) argument
248 SELECT_MASK(HWIF(drive), drive, 0); local
288 set_multmode_intr(ide_drive_t *drive) argument
305 set_geometry_intr(ide_drive_t *drive) argument
322 recal_intr(ide_drive_t *drive) argument
334 task_no_data_intr(ide_drive_t *drive) argument
353 task_in_intr(ide_drive_t *drive) argument
396 altstat_multi_busy(ide_drive_t *drive, byte stat, const char *msg) argument
418 altstat_multi_poll(ide_drive_t *drive, byte stat, const char *msg) argument
430 task_mulin_intr(ide_drive_t *drive) argument
500 pre_task_out_intr(ide_drive_t *drive, struct request *rq) argument
537 task_out_intr(ide_drive_t *drive) argument
577 task_mulout_intr(ide_drive_t *drive) argument
919 ide_wait_taskfile(ide_drive_t *drive, struct hd_drive_task_hdr *taskfile, struct hd_drive_hob_hdr *hobfile, byte *buf) argument
956 ide_raw_taskfile(ide_drive_t *drive, ide_task_t *args, byte *buf) argument
1020 ide_taskfile_ioctl(ide_drive_t *drive, struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) argument
1225 pkt_taskfile_ioctl(ide_drive_t *drive, struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) argument
[all...]
H A Dpdc4030.c100 * in preparation for access to the specified drive.
102 static void promise_selectproc (ide_drive_t *drive) argument
106 number = (HWIF(drive)->channel << 1) + drive->select.b.unit;
115 int pdc4030_cmd(ide_drive_t *drive, byte cmd) argument
120 promise_selectproc(drive); /* redundant? */
144 * pdc4030_identify sends a vendor-specific IDENTIFY command to the drive
146 int pdc4030_identify(ide_drive_t *drive) argument
148 return pdc4030_cmd(drive, PROMISE_IDENTIFY);
164 ide_drive_t *drive; local
272 ide_drive_t *drive = &hwif->drives[0]; local
310 promise_read_intr(ide_drive_t *drive) argument
392 promise_complete_pollfunc(ide_drive_t *drive) argument
423 promise_write_pollfunc(ide_drive_t *drive) argument
457 promise_write(ide_drive_t *drive) argument
500 do_pdc4030_io(ide_drive_t *drive, struct request *rq) argument
561 promise_rw_disk(ide_drive_t *drive, struct request *rq, unsigned long block) argument
[all...]
H A Dhpt34x.c97 static void hpt34x_clear_chipset (ide_drive_t *drive) argument
102 pci_read_config_dword(HWIF(drive)->pci_dev, 0x44, &reg1);
103 pci_read_config_dword(HWIF(drive)->pci_dev, 0x48, &reg2);
104 tmp1 = ((0x00 << (3*drive->dn)) | (reg1 & ~(7 << (3*drive->dn))));
105 tmp2 = (reg2 & ~(0x11 << drive->dn));
106 pci_write_config_dword(HWIF(drive)->pci_dev, 0x44, tmp1);
107 pci_write_config_dword(HWIF(drive)->pci_dev, 0x48, tmp2);
110 static int hpt34x_tune_chipset (ide_drive_t *drive, byte speed) argument
126 pci_read_config_dword(HWIF(drive)
149 config_chipset_for_pio(ide_drive_t *drive) argument
186 hpt34x_tune_drive(ide_drive_t *drive, byte pio) argument
208 config_chipset_for_dma(ide_drive_t *drive, byte ultra) argument
253 config_drive_xfer_rate(ide_drive_t *drive) argument
316 hpt34x_dmaproc(ide_dma_action_t func, ide_drive_t *drive) argument
[all...]
H A Dide-floppy.c21 * ALPHA patches to this driver on an EASYSTOR LS-120 ATAPI floppy drive.
42 * bit. My LS-120 drive barfs on
57 * If drive does not support format progress indication
62 * Ver 0.91 Dec 11 99 Added IOMEGA Clik! drive support by
66 * Ver 0.93 Oct 24 00 Fixed bugs for Clik! drive
77 * drive before the drive was actually ready.
273 ide_drive_t *drive; member in struct:__anon1368
309 #define IDEFLOPPY_CLIK_DRIVE 4 /* Avoid commands not supported in Clik drive */
313 * ATAPI floppy drive packe
668 idefloppy_discard_data(ide_drive_t *drive, unsigned int bcount) argument
675 idefloppy_write_zeros(ide_drive_t *drive, unsigned int bcount) argument
690 ide_drive_t *drive = hwgroup->drive; local
717 idefloppy_input_buffers(ide_drive_t *drive, idefloppy_pc_t *pc, unsigned int bcount) argument
742 idefloppy_output_buffers(ide_drive_t *drive, idefloppy_pc_t *pc, unsigned int bcount) argument
770 idefloppy_update_buffers(ide_drive_t *drive, idefloppy_pc_t *pc) argument
785 idefloppy_queue_pc_head(ide_drive_t *drive,idefloppy_pc_t *pc,struct request *rq) argument
793 idefloppy_next_pc_storage(ide_drive_t *drive) argument
802 idefloppy_next_rq_storage(ide_drive_t *drive) argument
815 idefloppy_analyze_error(ide_drive_t *drive,idefloppy_request_sense_result_t *result) argument
830 idefloppy_request_sense_callback(ide_drive_t *drive) argument
849 idefloppy_pc_callback(ide_drive_t *drive) argument
889 idefloppy_retry_pc(ide_drive_t *drive) argument
906 idefloppy_pc_intr(ide_drive_t *drive) argument
1019 idefloppy_transfer_pc(ide_drive_t *drive) argument
1052 idefloppy_transfer_pc2(ide_drive_t *drive) argument
1060 idefloppy_transfer_pc1(ide_drive_t *drive) argument
1092 idefloppy_issue_pc(ide_drive_t *drive, idefloppy_pc_t *pc) argument
1174 idefloppy_rw_callback(ide_drive_t *drive) argument
1297 idefloppy_do_request(ide_drive_t *drive, struct request *rq, unsigned long block) argument
1343 idefloppy_queue_pc_tail(ide_drive_t *drive,idefloppy_pc_t *pc) argument
1357 idefloppy_get_flexible_disk_page(ide_drive_t *drive) argument
1398 idefloppy_get_capability_page(ide_drive_t *drive) argument
1424 idefloppy_get_capacity(ide_drive_t *drive) argument
1516 idefloppy_get_format_capacities(ide_drive_t *drive, struct inode *inode, struct file *file, int *arg) argument
1596 idefloppy_begin_format(ide_drive_t *drive, struct inode *inode, struct file *file, int *arg) argument
1632 idefloppy_get_format_progress(ide_drive_t *drive, struct inode *inode, struct file *file, int *arg) argument
1680 idefloppy_ioctl(ide_drive_t *drive, struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) argument
1760 idefloppy_open(struct inode *inode, struct file *filp, ide_drive_t *drive) argument
1815 idefloppy_release(struct inode *inode, struct file *filp, ide_drive_t *drive) argument
1842 idefloppy_media_change(ide_drive_t *drive) argument
1852 idefloppy_revalidate(ide_drive_t *drive) argument
1862 idefloppy_capacity(ide_drive_t *drive) argument
1874 idefloppy_identify_device(ide_drive_t *drive,struct hd_driveid *id) argument
1986 idefloppy_add_settings(ide_drive_t *drive) argument
2008 idefloppy_setup(ide_drive_t *drive, idefloppy_floppy_t *floppy) argument
2058 idefloppy_cleanup(ide_drive_t *drive) argument
2121 idefloppy_reinit(ide_drive_t *drive) argument
2159 ide_drive_t *drive; local
2182 ide_drive_t *drive; local
[all...]
H A Damd74xx.c87 static int amd74xx_swdma_error(ide_drive_t *drive) argument
89 printk("%s: single-word DMA not support (revision < C4)\n", drive->name);
97 static int amd74xx_tune_chipset (ide_drive_t *drive, byte speed) argument
99 ide_hwif_t *hwif = HWIF(drive);
102 byte unit = (drive->select.b.unit & 0x01);
112 switch (drive->dn) {
127 drive->name, drive->dn, speed, ultra_timing, dma_pio_timing, pio_timing);
132 pio_timing &= ~(0x03 << drive->dn);
136 drive
240 config_chipset_for_pio(ide_drive_t *drive) argument
279 amd74xx_tune_drive(ide_drive_t *drive, byte pio) argument
298 config_chipset_for_dma(ide_drive_t *drive) argument
344 config_drive_xfer_rate(ide_drive_t *drive) argument
400 amd74xx_dmaproc(ide_dma_action_t func, ide_drive_t *drive) argument
[all...]
H A Dqd65xx.c118 * This routine is invoked from ide.c to prepare for access to a given drive.
121 static void qd_select (ide_drive_t *drive) argument
123 byte index = (( (QD_TIMREG(drive)) & 0x80 ) >> 7) |
124 (QD_TIMREG(drive) & 0x02);
126 if (timings[index] != QD_TIMING(drive))
127 qd_write_reg(timings[index] = QD_TIMING(drive), QD_TIMREG(drive));
173 static int qd_find_disk_type (ide_drive_t *drive, argument
179 if (!*drive->id->model) return 0;
181 strncpy(model,drive
215 qd_set_timing(ide_drive_t *drive, byte timing) argument
234 qd6500_tune_drive(ide_drive_t *drive, byte pio) argument
256 qd6580_tune_drive(ide_drive_t *drive, byte pio) 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;
55 static inline void do_identify (ide_drive_t *drive, byte cmd) argument
60 id = drive->id = kmalloc (SECTOR_WORDS*4, GFP_ATOMIC); /* called with interrupts disabled! */
66 ide_input_data(drive, id, SECTOR_WORDS); /* read 512 bytes of id info */
71 printk("%s: drive->id->word156 == 0x%04x \n", drive->name, drive->id->word156);
74 if (!drive->forced_lun)
75 drive
178 QUIRK_LIST(HWIF(drive),drive); local
198 actual_try_to_identify(ide_drive_t *drive, byte cmd) argument
258 try_to_identify(ide_drive_t *drive, byte cmd) argument
314 do_probe(ide_drive_t *drive, byte cmd) argument
372 enable_nest(ide_drive_t *drive) argument
377 SELECT_DRIVE(HWIF(drive), drive); local
404 probe_for_drive(ide_drive_t *drive) argument
521 ide_drive_t *drive = &hwif->drives[unit]; local
540 ide_drive_t *drive = &hwif->drives[unit]; local
565 ide_drive_t *drive = &hwif->drives[unit]; local
603 ide_init_queue(ide_drive_t *drive) argument
723 ide_drive_t *drive = &hwif->drives[index]; local
923 export_ide_init_queue(ide_drive_t *drive) argument
928 export_probe_for_drive(ide_drive_t *drive) argument
[all...]
H A Dit8172.c49 static void it8172_tune_drive (ide_drive_t *drive, byte pio);
52 static int it8172_tune_chipset (ide_drive_t *drive, byte speed);
53 static int it8172_config_chipset_for_dma (ide_drive_t *drive);
54 static int it8172_dmaproc(ide_dma_action_t func, ide_drive_t *drive);
60 static void it8172_tune_drive (ide_drive_t *drive, byte pio) argument
65 int is_slave = (&HWIF(drive)->drives[1] == drive);
67 pio = ide_get_best_pio_mode(drive, pio, 4, NULL);
68 pci_read_config_word(HWIF(drive)->pci_dev, 0x40, &drive_enables);
69 pci_read_config_dword(HWIF(drive)
137 it8172_tune_chipset(ide_drive_t *drive, byte speed) argument
192 it8172_config_chipset_for_dma(ide_drive_t *drive) argument
228 it8172_dmaproc(ide_dma_action_t func, ide_drive_t *drive) argument
[all...]
H A Dide-tape.c560 ide_drive_t *drive; member in struct:__anon1394
955 unsigned drv :1; /* The responding drive will be drive 0 (0) or drive 1 (1) */
982 ide_drive_t *drive; member in struct:__anon1409
1180 static void idetape_onstream_mode_sense_tape_parameter_page(ide_drive_t *drive, int debug);
1185 * Too bad. The drive wants to send us data which we are not ready to accept.
1188 static void idetape_discard_data (ide_drive_t *drive, unsigned int bcount) argument
1194 static void idetape_input_buffers (ide_drive_t *drive, idetape_pc_t *pc, unsigned int bcount) argument
1203 idetape_discard_data (drive, bcoun
1220 idetape_output_buffers(ide_drive_t *drive, idetape_pc_t *pc, unsigned int bcount) argument
1278 idetape_next_pc_storage(ide_drive_t *drive) argument
1304 idetape_next_rq_storage(ide_drive_t *drive) argument
1337 idetape_analyze_error(ide_drive_t *drive, idetape_request_sense_result_t *result) argument
1399 idetape_abort_pipeline(ide_drive_t *drive) argument
1420 idetape_active_next_stage(ide_drive_t *drive) argument
1451 idetape_increase_max_pipeline_stages(ide_drive_t *drive) argument
1500 idetape_remove_stage_head(ide_drive_t *drive) argument
1540 ide_drive_t *drive = hwgroup->drive; local
1637 idetape_request_sense_callback(ide_drive_t *drive) argument
1683 idetape_queue_pc_head(ide_drive_t *drive,idetape_pc_t *pc,struct request *rq) argument
1696 idetape_retry_pc(ide_drive_t *drive) argument
1717 idetape_postpone_request(ide_drive_t *drive) argument
1737 idetape_pc_intr(ide_drive_t *drive) argument
1929 idetape_transfer_pc(ide_drive_t *drive) argument
1962 idetape_issue_packet_command(ide_drive_t *drive, idetape_pc_t *pc) argument
2042 idetape_pc_callback(ide_drive_t *drive) argument
2076 idetape_onstream_buffer_fill_callback(ide_drive_t *drive) argument
2104 idetape_queue_onstream_buffer_fill(ide_drive_t *drive) argument
2116 calculate_speeds(ide_drive_t *drive) argument
2164 idetape_media_access_finished(ide_drive_t *drive) argument
2188 idetape_rw_callback(ide_drive_t *drive) argument
2312 idetape_do_request(ide_drive_t *drive, struct request *rq, unsigned long block) argument
2685 idetape_add_stage_tail(ide_drive_t *drive,idetape_stage_t *stage) argument
2711 idetape_init_stage(ide_drive_t *drive, idetape_stage_t *stage, int frame_type, int logical_blk_num) argument
2774 idetape_wait_for_request(ide_drive_t *drive, struct request *rq) argument
2794 idetape_read_position_callback(ide_drive_t *drive) argument
2842 idetape_create_write_filemark_cmd(ide_drive_t *drive, idetape_pc_t *pc,int write_filemark) argument
2882 __idetape_queue_pc_tail(ide_drive_t *drive, idetape_pc_t *pc) argument
2892 idetape_create_load_unload_cmd(ide_drive_t *drive, idetape_pc_t *pc,int cmd) argument
2908 idetape_wait_ready(ide_drive_t *drive, unsigned long long timeout) argument
2936 idetape_queue_pc_tail(ide_drive_t *drive,idetape_pc_t *pc) argument
2950 idetape_flush_tape_buffers(ide_drive_t *drive) argument
2970 idetape_read_position(ide_drive_t *drive) argument
3003 idetape_create_locate_cmd(ide_drive_t *drive, idetape_pc_t *pc, unsigned int block, byte partition, int skip) argument
3026 idetape_create_prevent_cmd(ide_drive_t *drive, idetape_pc_t *pc, int prevent) argument
3040 __idetape_discard_read_pipeline(ide_drive_t *drive) argument
3081 idetape_position_tape(ide_drive_t *drive, unsigned int block, byte partition, int skip) argument
3099 idetape_discard_read_pipeline(ide_drive_t *drive, int restore_position) argument
3120 idetape_update_stats(ide_drive_t *drive) argument
3133 idetape_queue_rw_tail(ide_drive_t *drive, int cmd, int blocks, struct buffer_head *bh) argument
3173 idetape_onstream_read_back_buffer(ide_drive_t *drive) argument
3227 idetape_onstream_write_error_recovery(ide_drive_t *drive) argument
3269 idetape_insert_pipeline_into_queue(ide_drive_t *drive) argument
3292 idetape_create_rewind_cmd(ide_drive_t *drive, idetape_pc_t *pc) argument
3337 idetape_verify_stage(ide_drive_t *drive, idetape_stage_t *stage, int logical_blk_num, int quiet) argument
3410 idetape_wait_first_stage(ide_drive_t *drive) argument
3434 idetape_add_chrdev_write_request(ide_drive_t *drive, int blocks) argument
3522 idetape_wait_for_pipeline(ide_drive_t *drive) argument
3536 idetape_empty_write_pipeline(ide_drive_t *drive) argument
3602 idetape_restart_speed_control(ide_drive_t *drive) argument
3617 idetape_initiate_read(ide_drive_t *drive, int max_stages) argument
3686 idetape_get_logical_blk(ide_drive_t *drive, int logical_blk_num, int max_stages, int quiet) argument
3757 idetape_add_chrdev_read_request(ide_drive_t *drive,int blocks) argument
3831 idetape_pad_zeros(ide_drive_t *drive, int bcount) argument
3852 idetape_pipeline_size(ide_drive_t *drive) argument
3877 idetape_rewind_tape(ide_drive_t *drive) argument
3907 idetape_blkdev_ioctl(ide_drive_t *drive, struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) argument
3941 idetape_blkdev_open(struct inode *inode, struct file *filp, ide_drive_t *drive) argument
3950 idetape_blkdev_release(struct inode *inode, struct file *filp, ide_drive_t *drive) argument
3961 idetape_pre_reset(ide_drive_t *drive) argument
3980 idetape_onstream_space_over_filemarks_backward(ide_drive_t *drive,short mt_op,int mt_count) argument
4024 idetape_onstream_space_over_filemarks_forward_slow(ide_drive_t *drive,short mt_op,int mt_count) argument
4067 idetape_onstream_space_over_filemarks_forward_fast(ide_drive_t *drive,short mt_op,int mt_count) argument
4151 idetape_space_over_filemarks(ide_drive_t *drive,short mt_op,int mt_count) argument
4259 ide_drive_t *drive = get_drive_ptr (inode->i_rdev); local
4328 idetape_update_last_marker(ide_drive_t *drive, int last_mark_addr, int next_mark_addr) argument
4382 idetape_write_filler(ide_drive_t *drive, int block, int cnt) argument
4413 __idetape_write_header(ide_drive_t *drive, int block, int cnt) argument
4448 idetape_write_header(ide_drive_t *drive, int locate_eod) argument
4474 ide_drive_t *drive = get_drive_ptr (inode->i_rdev); local
4610 idetape_write_filemark(ide_drive_t *drive) argument
4641 idetape_write_eod(ide_drive_t *drive) argument
4658 idetape_seek_logical_blk(ide_drive_t *drive, int logical_blk_num) argument
4757 idetape_mtioctop(ide_drive_t *drive,short mt_op,int mt_count) argument
4933 ide_drive_t *drive = get_drive_ptr (inode->i_rdev); local
4999 __idetape_analyze_headers(ide_drive_t *drive, int block) argument
5065 idetape_analyze_headers(ide_drive_t *drive) argument
5097 ide_drive_t *drive; local
5155 ide_drive_t *drive = get_drive_ptr (inode->i_rdev); local
5180 ide_drive_t *drive = get_drive_ptr (inode->i_rdev); local
5229 idetape_identify_device(ide_drive_t *drive,struct hd_driveid *id) argument
5351 idetape_onstream_set_vendor(ide_drive_t *drive, char *vendor) argument
5378 idetape_onstream_set_retries(ide_drive_t *drive, int retries) argument
5399 idetape_onstream_configure_block_size(ide_drive_t *drive) argument
5445 idetape_get_inquiry_results(ide_drive_t *drive) argument
5475 idetape_configure_onstream(ide_drive_t *drive) argument
5499 idetape_onstream_mode_sense_tape_parameter_page(ide_drive_t *drive, int debug) argument
5528 idetape_get_mode_sense_results(ide_drive_t *drive) argument
5602 idetape_get_blocksize_from_block_descriptor(ide_drive_t *drive) argument
5626 idetape_add_settings(ide_drive_t *drive) argument
5673 idetape_setup(ide_drive_t *drive, idetape_tape_t *tape, int minor) argument
5776 idetape_cleanup(ide_drive_t *drive) argument
5809 ide_drive_t *drive = (ide_drive_t *) data; local
5879 idetape_reinit(ide_drive_t *drive) argument
5889 ide_drive_t *drive; local
5905 ide_drive_t *drive; local
[all...]
H A Dns87415.c30 * This routine either enables/disables (according to drive->present)
31 * the IRQ associated with the port (HWIF(drive)),
34 static void ns87415_prepare_drive (ide_drive_t *drive, unsigned int use_dma) argument
36 ide_hwif_t *hwif = HWIF(drive);
47 new = drive->present ? (new & ~bit) : (new | bit);
49 /* Select PIO or DMA, DMA may only be selected for one drive/channel. */
50 bit = 1 << (20 + drive->select.b.unit + (hwif->channel << 1));
51 other = 1 << (20 + (1 - drive->select.b.unit) + (hwif->channel << 1));
79 static void ns87415_selectproc (ide_drive_t *drive) argument
81 ns87415_prepare_drive (drive, driv
85 ns87415_dmaproc(ide_dma_action_t func, ide_drive_t *drive) argument
[all...]
H A Dsl82c105.c58 * Configure the drive and chipset for PIO
60 static void config_for_pio(ide_drive_t *drive, int pio, int report) argument
62 ide_hwif_t *hwif = HWIF(drive);
68 reg = (hwif->channel ? 0x4c : 0x44) + (drive->select.b.unit ? 4 : 0);
70 pio = ide_get_best_pio_mode(drive, pio, 5, &p);
81 if (ide_config_drive_speed(drive, xfer_mode) == 0)
84 if (drive->using_dma == 0) {
87 * reprogram the interface drive control register.
93 printk("%s: selected %s (%dns) (%04X)\n", drive->name,
100 * Configure the drive an
102 config_for_dma(ide_drive_t *drive) argument
123 sl82c105_check_drive(ide_drive_t *drive) argument
161 sl82c105_dmaproc(ide_dma_action_t func, ide_drive_t *drive) argument
184 tune_sl82c105(ide_drive_t *drive, byte pio) argument
[all...]
H A Dtrm290.c142 static void trm290_prepare_drive (ide_drive_t *drive, unsigned int use_dma) argument
144 ide_hwif_t *hwif = HWIF(drive);
161 if (drive->present) {
170 static void trm290_selectproc (ide_drive_t *drive) argument
172 trm290_prepare_drive(drive, drive->using_dma);
176 static int trm290_dmaproc (ide_dma_action_t func, ide_drive_t *drive) argument
178 ide_hwif_t *hwif = HWIF(drive);
189 if (!(count = ide_build_dmatable(drive, func)))
191 trm290_prepare_drive(drive,
[all...]
H A Dhpt366.c371 static int check_in_drive_lists (ide_drive_t *drive, const char **list) argument
373 struct hd_driveid *id = drive->id;
400 static void hpt366_tune_chipset (ide_drive_t *drive, byte speed) argument
402 byte regtime = (drive->select.b.unit & 0x01) ? 0x44 : 0x40;
403 byte regfast = (HWIF(drive)->channel) ? 0x55 : 0x51;
415 pci_read_config_byte(HWIF(drive)->pci_dev, regfast, &drive_fast);
417 pci_write_config_byte(HWIF(drive)->pci_dev, regfast, drive_fast & ~0x20);
419 pci_read_config_dword(HWIF(drive)->pci_dev, regtime, &reg1);
443 pci_write_config_dword(HWIF(drive)->pci_dev, regtime, reg2);
446 static void hpt370_tune_chipset (ide_drive_t *drive, byt argument
489 hpt3xx_tune_chipset(ide_drive_t *drive, byte speed) argument
506 config_chipset_for_pio(ide_drive_t *drive) argument
544 hpt3xx_tune_drive(ide_drive_t *drive, byte pio) argument
569 config_chipset_for_dma(ide_drive_t *drive) argument
622 hpt3xx_quirkproc(ide_drive_t *drive) argument
627 hpt3xx_intrproc(ide_drive_t *drive) argument
636 hpt3xx_maskproc(ide_drive_t *drive, int mask) argument
657 config_drive_xfer_rate(ide_drive_t *drive) argument
712 hpt366_dmaproc(ide_dma_action_t func, ide_drive_t *drive) argument
742 hpt370_dmaproc(ide_dma_action_t func, ide_drive_t *drive) argument
802 hpt3xx_reset(ide_drive_t *drive) argument
806 hpt3xx_tristate(ide_drive_t * drive, int state) argument
844 hpt370_busproc(ide_drive_t * drive, int state) argument
[all...]
H A Dide-pmac.c247 static int pmac_ide_dmaproc(ide_dma_action_t func, ide_drive_t *drive);
248 static int pmac_ide_build_dmatable(ide_drive_t *drive, int ix, int wr);
249 static int pmac_ide_tune_chipset(ide_drive_t *drive, byte speed);
250 static void pmac_ide_tuneproc(ide_drive_t *drive, byte pio);
251 static void pmac_ide_selectproc(ide_drive_t *drive);
270 pmac_ide_find(ide_drive_t *drive) argument
272 ide_hwif_t *hwif = HWIF(drive);
330 /* Setup timings for the selected drive (master/slave). I still need to verify if this
334 pmac_ide_selectproc(ide_drive_t *drive) argument
336 int i = pmac_ide_find(drive);
360 wait_for_ready(ide_drive_t *drive) argument
386 pmac_ide_do_setfeature(ide_drive_t *drive, byte command) argument
393 SELECT_DRIVE(HWIF(drive), drive); local
394 SELECT_MASK(HWIF(drive), drive, 0); local
412 SELECT_MASK(HWIF(drive), drive, 0); local
441 pmac_ide_tuneproc(ide_drive_t *drive, byte pio) argument
641 pmac_ide_tune_chipset(ide_drive_t *drive, byte speed) argument
1098 pmac_ide_build_dmatable(ide_drive_t *drive, int ix, int wr) argument
1169 pmac_ide_destroy_dmatable(ide_drive_t *drive, int ix) argument
1213 pmac_ide_mdma_enable(ide_drive_t *drive, int idx) argument
1254 pmac_ide_udma_enable(ide_drive_t *drive, int idx, int high_speed) argument
1285 pmac_ide_check_dma(ide_drive_t *drive) argument
1326 pmac_ide_toggle_bounce(ide_drive_t *drive, int on) argument
1344 pmac_ide_dmaproc(ide_dma_action_t func, ide_drive_t *drive) argument
1378 SELECT_READ_WRITE(HWIF(drive),drive,func); local
1475 idepmac_sleep_device(ide_drive_t *drive, int i, unsigned base) argument
1510 idepmac_wake_device(ide_drive_t *drive, int used_dma) argument
1574 idepmac_sleep_drive(ide_drive_t *drive, int idx, unsigned long base) argument
1594 idepmac_wake_drive(ide_drive_t *drive, unsigned long base) argument
1705 ide_drive_t *drive = &hwif->drives[dn]; local
1739 ide_drive_t *drive; local
[all...]
H A Daec62xx.c226 static int aec6210_tune_chipset (ide_drive_t *drive, byte speed) argument
228 ide_hwif_t *hwif = HWIF(drive);
242 pci_read_config_word(dev, 0x40|(2*drive->dn), &d_conf);
246 pci_write_config_word(dev, 0x40|(2*drive->dn), d_conf);
251 tmp1 = ((0x00 << (2*drive->dn)) | (ultra & ~(3 << (2*drive->dn))));
253 tmp2 = ((ultra_conf << (2*drive->dn)) | (tmp1 & ~(3 << (2*drive->dn))));
258 err = ide_config_drive_speed(drive, speed);
262 static int aec6260_tune_chipset (ide_drive_t *drive, byt argument
299 aec62xx_tune_chipset(ide_drive_t *drive, byte speed) argument
309 config_aec6210_chipset_for_dma(ide_drive_t *drive, byte ultra) argument
354 config_aec6260_chipset_for_dma(ide_drive_t *drive, byte ultra) argument
402 config_chipset_for_dma(ide_drive_t *drive, byte ultra) argument
417 aec62xx_tune_drive(ide_drive_t *drive, byte pio) argument
443 config_drive_xfer_rate(ide_drive_t *drive) argument
495 aec62xx_dmaproc(ide_dma_action_t func, ide_drive_t *drive) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/block/
H A Damiflop.c52 * - added trackbuffer for each drive to speed things up
114 #define FD_DD_3 0xffffffff /* double-density 3.5" (880K) drive */
115 #define FD_HD_3 0x55555555 /* high-density 3.5" (1760K) drive */
116 #define FD_DD_5 0xaaaaaaaa /* double-density 5.25" (440K) drive */
130 #define SELMASK(drive) (1 << (3 + (drive & 3)))
171 static volatile int selected = -1; /* currently selected drive */
259 static inline int try_fdc(int drive) argument
261 drive &= 3;
262 return ((fdc_busy < 0) || (fdc_busy == drive));
265 get_fdc(int drive) argument
296 fd_select(int drive) argument
320 fd_deselect(int drive) argument
387 fd_motor_off(unsigned long drive) argument
421 int drive; local
431 fd_calibrate(int drive) argument
483 fd_seek(int drive, int track) argument
540 fd_get_drive_id(int drive) argument
607 raw_read(int drive) argument
635 raw_write(int drive) argument
671 post_write(unsigned long drive) argument
750 amiga_read(int drive) argument
1065 dos_read(int drive) argument
1186 ms_putsec(int drive, unsigned long *raw, int cnt) argument
1333 get_track(int drive, int track) argument
1371 int device, drive; local
1483 int drive = inode->i_rdev & 3; local
1580 int drive; local
1613 int drive; local
1671 int drive = MINOR(inode->i_rdev) & 3; local
1697 int drive = MINOR(dev) & 3; local
1743 int drive,drives,nomem; local
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/scsi/
H A Dide-scsi.c93 ide_drive_t *drive; member in struct:__anon2453
116 static void idescsi_discard_data (ide_drive_t *drive, unsigned int bcount) argument
122 static void idescsi_output_zeros (ide_drive_t *drive, unsigned int bcount) argument
131 static void idescsi_input_buffers (ide_drive_t *drive, idescsi_pc_t *pc, unsigned int bcount) argument
138 idescsi_discard_data (drive, bcount);
142 atapi_input_bytes (drive, pc->sg->address + pc->b_count, count);
151 static void idescsi_output_buffers (ide_drive_t *drive, idescsi_pc_t *pc, unsigned int bcount) argument
158 idescsi_output_zeros (drive, bcount);
162 atapi_output_bytes (drive, pc->sg->address + pc->b_count, count);
175 static inline void idescsi_transform_pc1 (ide_drive_t *drive, idescsi_pc_ argument
213 idescsi_transform_pc2(ide_drive_t *drive, idescsi_pc_t *pc) argument
261 ide_drive_t *drive = hwgroup->drive; local
310 idescsi_pc_intr(ide_drive_t *drive) argument
394 idescsi_transfer_pc(ide_drive_t *drive) argument
418 idescsi_issue_pc(ide_drive_t *drive, idescsi_pc_t *pc) argument
433 SELECT_DRIVE(HWIF(drive), drive); local
457 idescsi_do_request(ide_drive_t *drive, struct request *rq, unsigned long block) argument
472 idescsi_open(struct inode *inode, struct file *filp, ide_drive_t *drive) argument
478 idescsi_ide_release(struct inode *inode, struct file *filp, ide_drive_t *drive) argument
486 idescsi_add_settings(ide_drive_t *drive) argument
503 idescsi_setup(ide_drive_t *drive, idescsi_scsi_t *scsi, int id) argument
521 idescsi_cleanup(ide_drive_t *drive) argument
571 idescsi_reinit(ide_drive_t *drive) argument
581 ide_drive_t *drive; local
636 ide_drive_t *drive; local
654 ide_drive_t *drive = idescsi_drives[dev->id]; local
704 idescsi_dma_bh(ide_drive_t *drive, idescsi_pc_t *pc) argument
748 should_transform(ide_drive_t *drive, Scsi_Cmnd *cmd) argument
759 ide_drive_t *drive = idescsi_drives[cmd->target]; local
834 ide_drive_t *drive = idescsi_drives[disk->device->id]; local
856 ide_drive_t *drive; local
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/
H A Dide.h50 #ifndef FANCY_STATUS_DUMPS /* 1 for human-readable drive errors */
98 #define HWIF(drive) ((ide_hwif_t *)((drive)->hwif))
99 #define HWGROUP(drive) ((ide_hwgroup_t *)(HWIF(drive)->hwgroup))
131 #define IDE_DATA_REG (HWIF(drive)->io_ports[IDE_DATA_OFFSET])
132 #define IDE_ERROR_REG (HWIF(drive)->io_ports[IDE_ERROR_OFFSET])
133 #define IDE_NSECTOR_REG (HWIF(drive)->io_ports[IDE_NSECTOR_OFFSET])
134 #define IDE_SECTOR_REG (HWIF(drive)->io_ports[IDE_SECTOR_OFFSET])
135 #define IDE_LCYL_REG (HWIF(drive)
591 ide_drive_t *drive; /* current drive */ member in struct:hwgroup_s
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/
H A Dide.h50 #ifndef FANCY_STATUS_DUMPS /* 1 for human-readable drive errors */
98 #define HWIF(drive) ((ide_hwif_t *)((drive)->hwif))
99 #define HWGROUP(drive) ((ide_hwgroup_t *)(HWIF(drive)->hwgroup))
131 #define IDE_DATA_REG (HWIF(drive)->io_ports[IDE_DATA_OFFSET])
132 #define IDE_ERROR_REG (HWIF(drive)->io_ports[IDE_ERROR_OFFSET])
133 #define IDE_NSECTOR_REG (HWIF(drive)->io_ports[IDE_NSECTOR_OFFSET])
134 #define IDE_SECTOR_REG (HWIF(drive)->io_ports[IDE_SECTOR_OFFSET])
135 #define IDE_LCYL_REG (HWIF(drive)
591 ide_drive_t *drive; /* current drive */ member in struct:hwgroup_s
[all...]

Completed in 304 milliseconds

1234