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

1234567891011

/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/ide/
H A Dide-atapi.c26 static inline int dev_is_idecd(ide_drive_t *drive) argument
28 return drive->media == ide_cdrom || drive->media == ide_optical;
35 int ide_check_atapi_device(ide_drive_t *drive, const char *s) argument
37 u16 *id = drive->id;
50 if (drive->media == ide_floppy && device_type == 5 &&
58 s, drive->name, protocol);
59 else if ((drive->media == ide_floppy && device_type != 0) ||
60 (drive->media == ide_tape && device_type != 1))
62 s, drive
88 ide_queue_pc_tail(ide_drive_t *drive, struct gendisk *disk, struct ide_atapi_pc *pc, void *buf, unsigned int bufflen) argument
115 ide_do_test_unit_ready(ide_drive_t *drive, struct gendisk *disk) argument
126 ide_do_start_stop(ide_drive_t *drive, struct gendisk *disk, int start) argument
141 ide_set_media_lock(ide_drive_t *drive, struct gendisk *disk, int on) argument
156 ide_create_request_sense_cmd(ide_drive_t *drive, struct ide_atapi_pc *pc) argument
170 ide_prep_sense(ide_drive_t *drive, struct request *rq) argument
222 ide_queue_sense_rq(ide_drive_t *drive, void *special) argument
247 ide_retry_pc(ide_drive_t *drive) argument
276 ide_cd_expiry(ide_drive_t *drive) argument
323 ide_read_bcount_and_ireason(ide_drive_t *drive, u16 *bcount, u8 *ireason) argument
343 ide_check_ireason(ide_drive_t *drive, struct request *rq, int len, int ireason, int rw) argument
389 ide_pc_intr(ide_drive_t *drive) argument
542 ide_read_ireason(ide_drive_t *drive) argument
551 ide_wait_ireason(ide_drive_t *drive, u8 ireason) argument
573 ide_delayed_transfer_pc(ide_drive_t *drive) argument
582 ide_transfer_pc(ide_drive_t *drive) argument
669 ide_issue_pc(ide_drive_t *drive, struct ide_cmd *cmd) argument
[all...]
H A Dide-dma.c28 * for supplying a Promise UDMA board & WD UDMA drive for this work!
84 * @drive: the drive the interrupt is for
90 ide_startstop_t ide_dma_intr(ide_drive_t *drive) argument
92 ide_hwif_t *hwif = drive->hwif;
96 drive->waiting_for_dma = 0;
97 dma_stat = hwif->dma_ops->dma_end(drive);
98 ide_dma_unmap_sg(drive, cmd);
101 if (OK_STAT(stat, DRIVE_READY, drive->bad_wstat | ATA_DRQ)) {
104 ide_finish_cmd(drive, cm
116 ide_dma_good_drive(ide_drive_t *drive) argument
132 ide_dma_map_sg(ide_drive_t *drive, struct ide_cmd *cmd) argument
163 ide_dma_unmap_sg(ide_drive_t *drive, struct ide_cmd *cmd) argument
179 ide_dma_off_quietly(ide_drive_t *drive) argument
196 ide_dma_off(ide_drive_t *drive) argument
210 ide_dma_on(ide_drive_t *drive) argument
218 __ide_dma_bad_drive(ide_drive_t *drive) argument
238 ide_get_mode_mask(ide_drive_t *drive, u8 base, u8 req_mode) argument
312 ide_find_dma_mode(ide_drive_t *drive, u8 req_mode) argument
352 ide_tune_dma(ide_drive_t *drive) argument
379 ide_dma_check(ide_drive_t *drive) argument
395 ide_set_dma(ide_drive_t *drive) argument
416 ide_check_dma_crc(ide_drive_t *drive) argument
436 ide_dma_lost_irq(ide_drive_t *drive) argument
447 ide_dma_timeout_retry(ide_drive_t *drive, int error) argument
537 ide_dma_prepare(ide_drive_t *drive, struct ide_cmd *cmd) argument
[all...]
H A Dide-gd.c40 if (ide_device_get(idkp->drive))
51 ide_drive_t *drive = idkp->drive; local
55 ide_device_put(drive);
59 sector_t ide_gd_capacity(ide_drive_t *drive) argument
61 return drive->capacity64;
66 static void ide_gd_remove(ide_drive_t *drive) argument
68 struct ide_disk_obj *idkp = drive->driver_data;
71 ide_proc_unregister_driver(drive, idkp->driver);
74 drive
84 ide_drive_t *drive = idkp->drive; local
99 ide_gd_resume(ide_drive_t *drive) argument
118 ide_gd_shutdown(ide_drive_t *drive) argument
147 ide_disk_proc_entries(ide_drive_t *drive) argument
152 ide_disk_proc_devsets(ide_drive_t *drive) argument
159 ide_gd_do_request(ide_drive_t *drive, struct request *rq, sector_t sector) argument
187 ide_drive_t *drive; local
256 ide_drive_t *drive = idkp->drive; local
280 ide_drive_t *drive = idkp->drive; local
291 ide_drive_t *drive = idkp->drive; local
309 ide_drive_t *drive = idkp->drive; local
319 ide_drive_t *drive = idkp->drive; local
332 ide_drive_t *drive = idkp->drive; local
348 ide_gd_probe(ide_drive_t *drive) argument
[all...]
H A Dide-eh.c6 static ide_startstop_t ide_ata_error(ide_drive_t *drive, struct request *rq, argument
9 ide_hwif_t *hwif = drive->hwif;
12 ((stat & ATA_DF) && (drive->dev_flags & IDE_DFLAG_NOWERR) == 0)) {
18 if ((drive->dev_flags & IDE_DFLAG_LBA) &&
24 drive->crc_count++;
36 int nsect = drive->mult_count ? drive->mult_count : 1;
38 ide_pad_transfer(drive, READ, nsect * SECTOR_SIZE);
42 ide_kill_rq(drive, rq);
51 return ide_do_reset(drive);
62 ide_atapi_error(ide_drive_t *drive, struct request *rq, u8 stat, u8 err) argument
92 __ide_error(ide_drive_t *drive, struct request *rq, u8 stat, u8 err) argument
113 ide_error(ide_drive_t *drive, const char *msg, u8 stat) argument
145 ide_complete_drive_reset(ide_drive_t *drive, int err) argument
166 atapi_reset_pollfunc(ide_drive_t *drive) argument
222 reset_pollfunc(ide_drive_t *drive) argument
268 ide_disk_pre_reset(ide_drive_t *drive) argument
286 pre_reset(ide_drive_t *drive) argument
333 do_reset1(ide_drive_t *drive, int do_not_try_atapi) argument
437 ide_do_reset(ide_drive_t *drive) argument
[all...]
H A Dide-io.c57 int ide_end_rq(ide_drive_t *drive, struct request *rq, int error, argument
64 if ((drive->dev_flags & IDE_DFLAG_DMA_PIO_RETRY) &&
65 drive->retry_pio <= 3) {
66 drive->dev_flags &= ~IDE_DFLAG_DMA_PIO_RETRY;
67 ide_dma_on(drive);
74 void ide_complete_cmd(ide_drive_t *drive, struct ide_cmd *cmd, u8 stat, u8 err) argument
76 const struct ide_tp_ops *tp_ops = drive->hwif->tp_ops;
87 tp_ops->input_data(drive, cmd, data, 2);
93 ide_tf_readback(drive, cmd);
99 drive
115 ide_complete_rq(ide_drive_t *drive, int error, unsigned int nr_bytes) argument
136 ide_kill_rq(ide_drive_t *drive, struct request *rq) argument
155 ide_tf_set_specify_cmd(ide_drive_t *drive, struct ide_taskfile *tf) argument
165 ide_tf_set_restore_cmd(ide_drive_t *drive, struct ide_taskfile *tf) argument
171 ide_tf_set_setmult_cmd(ide_drive_t *drive, struct ide_taskfile *tf) argument
185 do_special(ide_drive_t *drive) argument
223 ide_map_sg(ide_drive_t *drive, struct ide_cmd *cmd) argument
253 execute_drive_cmd(ide_drive_t *drive, struct request *rq) argument
280 ide_special_rq(ide_drive_t *drive, struct request *rq) argument
298 start_request(ide_drive_t *drive, struct request *rq) argument
378 ide_stall_queue(ide_drive_t *drive, unsigned long timeout) argument
430 ide_drive_t *drive = q->queuedata; local
561 ide_requeue_and_plug(ide_drive_t *drive, struct request *rq) argument
576 drive_is_ready(ide_drive_t *drive) argument
879 ide_pad_transfer(ide_drive_t *drive, int write, int len) argument
[all...]
H A Dide-devsets.c10 static int set_io_32bit(ide_drive_t *drive, int arg) argument
12 if (drive->dev_flags & IDE_DFLAG_NO_IO_32BIT)
18 drive->io_32bit = arg;
25 static int set_ksettings(ide_drive_t *drive, int arg) argument
31 drive->dev_flags |= IDE_DFLAG_KEEP_SETTINGS;
33 drive->dev_flags &= ~IDE_DFLAG_KEEP_SETTINGS;
40 static int set_using_dma(ide_drive_t *drive, int arg) argument
48 if (ata_id_has_dma(drive->id) == 0)
51 if (drive->hwif->dma_ops == NULL)
57 if (ide_set_dma(drive))
96 set_pio_mode(ide_drive_t *drive, int arg) argument
136 set_unmaskirq(ide_drive_t *drive, int arg) argument
158 ide_devset_execute(ide_drive_t *drive, const struct ide_devset *setting, int arg) argument
182 ide_do_devset(ide_drive_t *drive, struct request *rq) argument
[all...]
H A Dide-pm.c7 ide_drive_t *drive = dev_get_drvdata(dev); local
8 ide_drive_t *pair = ide_get_pair_dev(drive);
9 ide_hwif_t *hwif = drive->hwif;
16 if ((drive->dn & 1) == 0 || pair == NULL)
21 rq = blk_get_request(drive->queue, READ, __GFP_WAIT);
29 ret = blk_execute_rq(drive->queue, NULL, rq, 0);
34 if ((drive->dn & 1) || pair == NULL)
43 ide_drive_t *drive = dev_get_drvdata(dev); local
44 ide_drive_t *pair = ide_get_pair_dev(drive);
45 ide_hwif_t *hwif = drive
81 ide_complete_power_step(ide_drive_t *drive, struct request *rq) argument
111 ide_start_power_step(ide_drive_t *drive, struct request *rq) argument
182 ide_complete_pm_rq(ide_drive_t *drive, struct request *rq) argument
209 ide_check_pm_state(ide_drive_t *drive, struct request *rq) argument
[all...]
H A Dide-disk.c55 static void ide_tf_set_cmd(ide_drive_t *drive, struct ide_cmd *cmd, u8 dma) argument
67 if (drive->mult_count) {
81 static ide_startstop_t __ide_do_rw_disk(ide_drive_t *drive, struct request *rq, argument
84 ide_hwif_t *hwif = drive->hwif;
86 u8 lba48 = !!(drive->dev_flags & IDE_DFLAG_LBA48);
87 u8 dma = !!(drive->dev_flags & IDE_DFLAG_USING_DMA);
103 if (drive->dev_flags & IDE_DFLAG_LBA) {
105 pr_debug("%s: LBA=0x%012llx\n", drive->name,
135 track = (int)block / drive->sect;
136 sect = (int)block % drive
181 ide_do_rw_disk(ide_drive_t *drive, struct request *rq, sector_t block) argument
206 idedisk_read_native_max_address(ide_drive_t *drive, int lba48) argument
240 idedisk_set_max_address(ide_drive_t *drive, u64 addr_req, int lba48) argument
298 ide_disk_hpa_get_native_capacity(ide_drive_t *drive, int lba48) argument
313 ide_disk_hpa_set_capacity(ide_drive_t *drive, u64 set_max, int lba48) argument
322 idedisk_check_hpa(ide_drive_t *drive) argument
351 ide_disk_get_capacity(ide_drive_t *drive) argument
406 ide_disk_unlock_native_capacity(ide_drive_t *drive) argument
428 ide_drive_t *drive = q->queuedata; local
461 set_multcount(ide_drive_t *drive, int arg) argument
485 set_nowerr(ide_drive_t *drive, int arg) argument
500 ide_do_setfeature(ide_drive_t *drive, u8 feature, u8 nsect) argument
514 update_ordered(ide_drive_t *drive) argument
552 set_wcache(ide_drive_t *drive, int arg) argument
575 do_idedisk_flushcache(ide_drive_t *drive) argument
592 set_acoustic(ide_drive_t *drive, int arg) argument
613 set_addressing(ide_drive_t *drive, int arg) argument
640 ide_disk_check(ide_drive_t *drive, const char *s) argument
645 ide_disk_setup(ide_drive_t *drive) argument
741 ide_disk_flush(ide_drive_t *drive) argument
751 ide_disk_init_media(ide_drive_t *drive, struct gendisk *disk) argument
756 ide_disk_set_doorlock(ide_drive_t *drive, struct gendisk *disk, int on) argument
[all...]
H A Dide-xfer-mode.c49 * ide_get_best_pio_mode - get PIO mode from drive
50 * @drive: drive to consider
54 * This routine returns the recommended PIO settings for a given drive,
55 * based on the drive->id information and the ide_pio_blacklist[].
61 static u8 ide_get_best_pio_mode(ide_drive_t *drive, u8 mode_wanted, u8 max_mode) argument
63 u16 *id = drive->id;
69 if ((drive->hwif->host_flags & IDE_HFLAG_PIO_NO_BLACKLIST) == 0)
73 printk(KERN_INFO "%s: is on PIO blacklist\n", drive->name);
100 drive
109 ide_pio_need_iordy(ide_drive_t *drive, const u8 pio) argument
121 ide_set_pio_mode(ide_drive_t *drive, const u8 mode) argument
155 ide_set_dma_mode(ide_drive_t *drive, const u8 mode) argument
181 ide_set_pio(ide_drive_t *drive, u8 req_pio) argument
221 ide_rate_filter(ide_drive_t *drive, u8 speed) argument
248 ide_set_xfer_rate(ide_drive_t *drive, u8 rate) argument
[all...]
H A Dide-probe.c43 * generic_id - add a generic drive id
44 * @drive: drive to make an ID block for
46 * Add a fake id field to the drive we are passed. This allows
48 * and make drive properties unconditional outside of this file
51 static void generic_id(ide_drive_t *drive) argument
53 u16 *id = drive->id;
55 id[ATA_ID_CUR_CYLS] = id[ATA_ID_CYLS] = drive->cyl;
56 id[ATA_ID_CUR_HEADS] = id[ATA_ID_HEADS] = drive->head;
57 id[ATA_ID_CUR_SECTORS] = id[ATA_ID_SECTORS] = drive
60 ide_disk_init_chs(ide_drive_t *drive) argument
86 ide_disk_init_mult_count(ide_drive_t *drive) argument
104 ide_classify_ata_dev(ide_drive_t *drive) argument
123 ide_classify_atapi_dev(ide_drive_t *drive) argument
191 do_identify(ide_drive_t *drive, u8 cmd, u16 *id) argument
250 ide_dev_read_id(ide_drive_t *drive, u8 cmd, u16 *id, int irq_ctx) argument
330 ide_busy_sleep(ide_drive_t *drive, unsigned long timeout, int altstatus) argument
350 ide_read_device(ide_drive_t *drive) argument
380 do_probe(ide_drive_t *drive, u8 cmd) argument
473 probe_for_drive(ide_drive_t *drive) argument
600 ide_drive_t *drive; local
680 ide_drive_t *drive; local
724 ide_drive_t *drive; local
747 ide_init_queue(ide_drive_t *drive) argument
797 ide_drive_t *drive; local
876 ide_drive_t *drive = hwif->devices[unit]; local
925 ide_init_disk(struct gendisk *disk, ide_drive_t *drive) argument
940 ide_drive_t *drive = container_of(dev, ide_drive_t, gendev); local
991 ide_drive_t *drive; local
1014 ide_drive_t *drive; local
1117 ide_drive_t *drive; local
1229 ide_drive_t *drive; local
1243 ide_drive_t *drive; local
1479 ide_drive_t *drive; local
[all...]
H A Dide-tape.c144 ide_drive_t *drive; member in struct:ide_tape_obj
246 if (ide_device_get(tape->drive))
258 ide_drive_t *drive = tape->drive; local
262 ide_device_put(drive);
270 static void idetape_analyze_error(ide_drive_t *drive) argument
272 idetape_tape_t *tape = drive->driver_data;
273 struct ide_atapi_pc *pc = drive->failed_pc;
274 struct request *rq = drive->hwif->rq;
328 static int ide_tape_callback(ide_drive_t *drive, in argument
380 ide_tape_stall_queue(ide_drive_t *drive) argument
392 ide_tape_handle_dsc(ide_drive_t *drive) argument
441 ide_tape_issue_pc(ide_drive_t *drive, struct ide_cmd *cmd, struct ide_atapi_pc *pc) argument
517 idetape_media_access_finished(ide_drive_t *drive) argument
568 idetape_do_request(ide_drive_t *drive, struct request *rq, sector_t block) argument
674 idetape_create_write_filemark_cmd(ide_drive_t *drive, struct ide_atapi_pc *pc, int write_filemark) argument
683 idetape_wait_ready(ide_drive_t *drive, unsigned long timeout) argument
711 idetape_flush_tape_buffers(ide_drive_t *drive) argument
725 ide_tape_read_position(ide_drive_t *drive) argument
767 idetape_create_locate_cmd(ide_drive_t *drive, struct ide_atapi_pc *pc, unsigned int block, u8 partition, int skip) argument
779 __ide_tape_discard_merge_buffer(ide_drive_t *drive) argument
802 idetape_position_tape(ide_drive_t *drive, unsigned int block, u8 partition, int skip) argument
824 ide_tape_discard_merge_buffer(ide_drive_t *drive, int restore_position) argument
846 idetape_queue_rw_tail(ide_drive_t *drive, int cmd, int size) argument
896 idetape_create_rewind_cmd(ide_drive_t *drive, struct ide_atapi_pc *pc) argument
921 ide_tape_flush_merge_buffer(ide_drive_t *drive) argument
941 idetape_init_rw(ide_drive_t *drive, int dir) argument
991 idetape_pad_zeros(ide_drive_t *drive, int bcount) argument
1009 idetape_rewind_tape(ide_drive_t *drive) argument
1030 idetape_blkdev_ioctl(ide_drive_t *drive, unsigned int cmd, unsigned long arg) argument
1063 idetape_space_over_filemarks(ide_drive_t *drive, short mt_op, int mt_count) argument
1133 ide_drive_t *drive = tape->drive; local
1188 ide_drive_t *drive = tape->drive; local
1227 idetape_write_filemark(ide_drive_t *drive) argument
1254 idetape_mtioctop(ide_drive_t *drive, short mt_op, int mt_count) argument
1374 ide_drive_t *drive = tape->drive; local
1439 ide_tape_get_bsize_from_bdesc(ide_drive_t *drive) argument
1467 ide_drive_t *drive; local
1549 idetape_write_release(ide_drive_t *drive, unsigned int minor) argument
1569 ide_drive_t *drive = tape->drive; local
1603 idetape_get_inquiry_results(ide_drive_t *drive) argument
1632 idetape_get_mode_sense_results(ide_drive_t *drive) argument
1708 mulf_tdsc(ide_drive_t *drive) argument
1709 divf_tdsc(ide_drive_t *drive) argument
1710 divf_buffer(ide_drive_t *drive) argument
1711 divf_buffer_size(ide_drive_t *drive) argument
1745 idetape_setup(ide_drive_t *drive, idetape_tape_t *tape, int minor) argument
1808 ide_tape_remove(ide_drive_t *drive) argument
1824 ide_drive_t *drive = tape->drive; local
1843 ide_drive_t *drive = (ide_drive_t *) m->private; local
1869 ide_tape_proc_entries(ide_drive_t *drive) argument
1874 ide_tape_proc_devsets(ide_drive_t *drive) argument
1937 ide_drive_t *drive = tape->drive; local
1956 ide_tape_probe(ide_drive_t *drive) argument
[all...]
H A Dide.c33 * | IRQ-unmask, drive-id, multiple-mode, support for ">16 heads",
66 * @drive: device to get a reference to
71 int ide_device_get(ide_drive_t *drive) argument
76 if (!get_device(&drive->gendev))
79 host_dev = drive->hwif->host->dev[0];
83 put_device(&drive->gendev);
93 * @drive: device to release a reference on
98 void ide_device_put(ide_drive_t *drive) argument
101 struct device *host_dev = drive->hwif->host->dev[0];
107 put_device(&drive
118 ide_drive_t *drive = to_ide_device(dev); local
128 ide_drive_t *drive = to_ide_device(dev); local
136 ide_drive_t *drive = to_ide_device(dev); local
147 ide_drive_t *drive = to_ide_device(dev); local
281 ide_dev_apply_params(ide_drive_t *drive, u8 unit) argument
357 ide_drive_t *drive; local
[all...]
H A Dide-park.c9 static void issue_park_cmd(ide_drive_t *drive, unsigned long timeout) argument
11 ide_hwif_t *hwif = drive->hwif;
12 struct request_queue *q = drive->queue;
18 if (drive->dev_flags & IDE_DFLAG_PARKED) {
19 int reset_timer = time_before(timeout, drive->sleep);
22 drive->sleep = timeout;
45 * Make sure that *some* command is sent to the drive after the
61 ide_startstop_t ide_do_park_unpark(ide_drive_t *drive, struct request *rq) argument
68 drive->sleep = *(unsigned long *)rq->special;
69 drive
91 ide_drive_t *drive = to_ide_device(dev); local
115 ide_drive_t *drive = to_ide_device(dev); local
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/ide/
H A Dide-atapi.c26 static inline int dev_is_idecd(ide_drive_t *drive) argument
28 return drive->media == ide_cdrom || drive->media == ide_optical;
35 int ide_check_atapi_device(ide_drive_t *drive, const char *s) argument
37 u16 *id = drive->id;
50 if (drive->media == ide_floppy && device_type == 5 &&
58 s, drive->name, protocol);
59 else if ((drive->media == ide_floppy && device_type != 0) ||
60 (drive->media == ide_tape && device_type != 1))
62 s, drive
88 ide_queue_pc_tail(ide_drive_t *drive, struct gendisk *disk, struct ide_atapi_pc *pc, void *buf, unsigned int bufflen) argument
115 ide_do_test_unit_ready(ide_drive_t *drive, struct gendisk *disk) argument
126 ide_do_start_stop(ide_drive_t *drive, struct gendisk *disk, int start) argument
141 ide_set_media_lock(ide_drive_t *drive, struct gendisk *disk, int on) argument
156 ide_create_request_sense_cmd(ide_drive_t *drive, struct ide_atapi_pc *pc) argument
170 ide_prep_sense(ide_drive_t *drive, struct request *rq) argument
222 ide_queue_sense_rq(ide_drive_t *drive, void *special) argument
247 ide_retry_pc(ide_drive_t *drive) argument
276 ide_cd_expiry(ide_drive_t *drive) argument
323 ide_read_bcount_and_ireason(ide_drive_t *drive, u16 *bcount, u8 *ireason) argument
343 ide_check_ireason(ide_drive_t *drive, struct request *rq, int len, int ireason, int rw) argument
389 ide_pc_intr(ide_drive_t *drive) argument
542 ide_read_ireason(ide_drive_t *drive) argument
551 ide_wait_ireason(ide_drive_t *drive, u8 ireason) argument
573 ide_delayed_transfer_pc(ide_drive_t *drive) argument
582 ide_transfer_pc(ide_drive_t *drive) argument
669 ide_issue_pc(ide_drive_t *drive, struct ide_cmd *cmd) argument
[all...]
H A Dide-dma.c28 * for supplying a Promise UDMA board & WD UDMA drive for this work!
84 * @drive: the drive the interrupt is for
90 ide_startstop_t ide_dma_intr(ide_drive_t *drive) argument
92 ide_hwif_t *hwif = drive->hwif;
96 drive->waiting_for_dma = 0;
97 dma_stat = hwif->dma_ops->dma_end(drive);
98 ide_dma_unmap_sg(drive, cmd);
101 if (OK_STAT(stat, DRIVE_READY, drive->bad_wstat | ATA_DRQ)) {
104 ide_finish_cmd(drive, cm
116 ide_dma_good_drive(ide_drive_t *drive) argument
132 ide_dma_map_sg(ide_drive_t *drive, struct ide_cmd *cmd) argument
163 ide_dma_unmap_sg(ide_drive_t *drive, struct ide_cmd *cmd) argument
179 ide_dma_off_quietly(ide_drive_t *drive) argument
196 ide_dma_off(ide_drive_t *drive) argument
210 ide_dma_on(ide_drive_t *drive) argument
218 __ide_dma_bad_drive(ide_drive_t *drive) argument
238 ide_get_mode_mask(ide_drive_t *drive, u8 base, u8 req_mode) argument
312 ide_find_dma_mode(ide_drive_t *drive, u8 req_mode) argument
352 ide_tune_dma(ide_drive_t *drive) argument
379 ide_dma_check(ide_drive_t *drive) argument
395 ide_set_dma(ide_drive_t *drive) argument
416 ide_check_dma_crc(ide_drive_t *drive) argument
436 ide_dma_lost_irq(ide_drive_t *drive) argument
447 ide_dma_timeout_retry(ide_drive_t *drive, int error) argument
537 ide_dma_prepare(ide_drive_t *drive, struct ide_cmd *cmd) argument
[all...]
H A Dide-gd.c40 if (ide_device_get(idkp->drive))
51 ide_drive_t *drive = idkp->drive; local
55 ide_device_put(drive);
59 sector_t ide_gd_capacity(ide_drive_t *drive) argument
61 return drive->capacity64;
66 static void ide_gd_remove(ide_drive_t *drive) argument
68 struct ide_disk_obj *idkp = drive->driver_data;
71 ide_proc_unregister_driver(drive, idkp->driver);
74 drive
84 ide_drive_t *drive = idkp->drive; local
99 ide_gd_resume(ide_drive_t *drive) argument
118 ide_gd_shutdown(ide_drive_t *drive) argument
147 ide_disk_proc_entries(ide_drive_t *drive) argument
152 ide_disk_proc_devsets(ide_drive_t *drive) argument
159 ide_gd_do_request(ide_drive_t *drive, struct request *rq, sector_t sector) argument
187 ide_drive_t *drive; local
256 ide_drive_t *drive = idkp->drive; local
280 ide_drive_t *drive = idkp->drive; local
291 ide_drive_t *drive = idkp->drive; local
309 ide_drive_t *drive = idkp->drive; local
319 ide_drive_t *drive = idkp->drive; local
332 ide_drive_t *drive = idkp->drive; local
348 ide_gd_probe(ide_drive_t *drive) argument
[all...]
H A Dide-eh.c6 static ide_startstop_t ide_ata_error(ide_drive_t *drive, struct request *rq, argument
9 ide_hwif_t *hwif = drive->hwif;
12 ((stat & ATA_DF) && (drive->dev_flags & IDE_DFLAG_NOWERR) == 0)) {
18 if ((drive->dev_flags & IDE_DFLAG_LBA) &&
24 drive->crc_count++;
36 int nsect = drive->mult_count ? drive->mult_count : 1;
38 ide_pad_transfer(drive, READ, nsect * SECTOR_SIZE);
42 ide_kill_rq(drive, rq);
51 return ide_do_reset(drive);
62 ide_atapi_error(ide_drive_t *drive, struct request *rq, u8 stat, u8 err) argument
92 __ide_error(ide_drive_t *drive, struct request *rq, u8 stat, u8 err) argument
113 ide_error(ide_drive_t *drive, const char *msg, u8 stat) argument
145 ide_complete_drive_reset(ide_drive_t *drive, int err) argument
166 atapi_reset_pollfunc(ide_drive_t *drive) argument
222 reset_pollfunc(ide_drive_t *drive) argument
268 ide_disk_pre_reset(ide_drive_t *drive) argument
286 pre_reset(ide_drive_t *drive) argument
333 do_reset1(ide_drive_t *drive, int do_not_try_atapi) argument
437 ide_do_reset(ide_drive_t *drive) argument
[all...]
H A Dide-io.c57 int ide_end_rq(ide_drive_t *drive, struct request *rq, int error, argument
64 if ((drive->dev_flags & IDE_DFLAG_DMA_PIO_RETRY) &&
65 drive->retry_pio <= 3) {
66 drive->dev_flags &= ~IDE_DFLAG_DMA_PIO_RETRY;
67 ide_dma_on(drive);
74 void ide_complete_cmd(ide_drive_t *drive, struct ide_cmd *cmd, u8 stat, u8 err) argument
76 const struct ide_tp_ops *tp_ops = drive->hwif->tp_ops;
87 tp_ops->input_data(drive, cmd, data, 2);
93 ide_tf_readback(drive, cmd);
99 drive
115 ide_complete_rq(ide_drive_t *drive, int error, unsigned int nr_bytes) argument
136 ide_kill_rq(ide_drive_t *drive, struct request *rq) argument
155 ide_tf_set_specify_cmd(ide_drive_t *drive, struct ide_taskfile *tf) argument
165 ide_tf_set_restore_cmd(ide_drive_t *drive, struct ide_taskfile *tf) argument
171 ide_tf_set_setmult_cmd(ide_drive_t *drive, struct ide_taskfile *tf) argument
185 do_special(ide_drive_t *drive) argument
223 ide_map_sg(ide_drive_t *drive, struct ide_cmd *cmd) argument
253 execute_drive_cmd(ide_drive_t *drive, struct request *rq) argument
280 ide_special_rq(ide_drive_t *drive, struct request *rq) argument
298 start_request(ide_drive_t *drive, struct request *rq) argument
378 ide_stall_queue(ide_drive_t *drive, unsigned long timeout) argument
430 ide_drive_t *drive = q->queuedata; local
561 ide_requeue_and_plug(ide_drive_t *drive, struct request *rq) argument
576 drive_is_ready(ide_drive_t *drive) argument
879 ide_pad_transfer(ide_drive_t *drive, int write, int len) argument
[all...]
H A Dide-devsets.c10 static int set_io_32bit(ide_drive_t *drive, int arg) argument
12 if (drive->dev_flags & IDE_DFLAG_NO_IO_32BIT)
18 drive->io_32bit = arg;
25 static int set_ksettings(ide_drive_t *drive, int arg) argument
31 drive->dev_flags |= IDE_DFLAG_KEEP_SETTINGS;
33 drive->dev_flags &= ~IDE_DFLAG_KEEP_SETTINGS;
40 static int set_using_dma(ide_drive_t *drive, int arg) argument
48 if (ata_id_has_dma(drive->id) == 0)
51 if (drive->hwif->dma_ops == NULL)
57 if (ide_set_dma(drive))
96 set_pio_mode(ide_drive_t *drive, int arg) argument
136 set_unmaskirq(ide_drive_t *drive, int arg) argument
158 ide_devset_execute(ide_drive_t *drive, const struct ide_devset *setting, int arg) argument
182 ide_do_devset(ide_drive_t *drive, struct request *rq) argument
[all...]
H A Dide-pm.c7 ide_drive_t *drive = dev_get_drvdata(dev); local
8 ide_drive_t *pair = ide_get_pair_dev(drive);
9 ide_hwif_t *hwif = drive->hwif;
16 if ((drive->dn & 1) == 0 || pair == NULL)
21 rq = blk_get_request(drive->queue, READ, __GFP_WAIT);
29 ret = blk_execute_rq(drive->queue, NULL, rq, 0);
34 if ((drive->dn & 1) || pair == NULL)
43 ide_drive_t *drive = dev_get_drvdata(dev); local
44 ide_drive_t *pair = ide_get_pair_dev(drive);
45 ide_hwif_t *hwif = drive
81 ide_complete_power_step(ide_drive_t *drive, struct request *rq) argument
111 ide_start_power_step(ide_drive_t *drive, struct request *rq) argument
182 ide_complete_pm_rq(ide_drive_t *drive, struct request *rq) argument
209 ide_check_pm_state(ide_drive_t *drive, struct request *rq) argument
[all...]
H A Dide-disk.c55 static void ide_tf_set_cmd(ide_drive_t *drive, struct ide_cmd *cmd, u8 dma) argument
67 if (drive->mult_count) {
81 static ide_startstop_t __ide_do_rw_disk(ide_drive_t *drive, struct request *rq, argument
84 ide_hwif_t *hwif = drive->hwif;
86 u8 lba48 = !!(drive->dev_flags & IDE_DFLAG_LBA48);
87 u8 dma = !!(drive->dev_flags & IDE_DFLAG_USING_DMA);
103 if (drive->dev_flags & IDE_DFLAG_LBA) {
105 pr_debug("%s: LBA=0x%012llx\n", drive->name,
135 track = (int)block / drive->sect;
136 sect = (int)block % drive
181 ide_do_rw_disk(ide_drive_t *drive, struct request *rq, sector_t block) argument
206 idedisk_read_native_max_address(ide_drive_t *drive, int lba48) argument
240 idedisk_set_max_address(ide_drive_t *drive, u64 addr_req, int lba48) argument
298 ide_disk_hpa_get_native_capacity(ide_drive_t *drive, int lba48) argument
313 ide_disk_hpa_set_capacity(ide_drive_t *drive, u64 set_max, int lba48) argument
322 idedisk_check_hpa(ide_drive_t *drive) argument
351 ide_disk_get_capacity(ide_drive_t *drive) argument
406 ide_disk_unlock_native_capacity(ide_drive_t *drive) argument
428 ide_drive_t *drive = q->queuedata; local
461 set_multcount(ide_drive_t *drive, int arg) argument
485 set_nowerr(ide_drive_t *drive, int arg) argument
500 ide_do_setfeature(ide_drive_t *drive, u8 feature, u8 nsect) argument
514 update_ordered(ide_drive_t *drive) argument
552 set_wcache(ide_drive_t *drive, int arg) argument
575 do_idedisk_flushcache(ide_drive_t *drive) argument
592 set_acoustic(ide_drive_t *drive, int arg) argument
613 set_addressing(ide_drive_t *drive, int arg) argument
640 ide_disk_check(ide_drive_t *drive, const char *s) argument
645 ide_disk_setup(ide_drive_t *drive) argument
741 ide_disk_flush(ide_drive_t *drive) argument
751 ide_disk_init_media(ide_drive_t *drive, struct gendisk *disk) argument
756 ide_disk_set_doorlock(ide_drive_t *drive, struct gendisk *disk, int on) argument
[all...]
H A Dide-xfer-mode.c49 * ide_get_best_pio_mode - get PIO mode from drive
50 * @drive: drive to consider
54 * This routine returns the recommended PIO settings for a given drive,
55 * based on the drive->id information and the ide_pio_blacklist[].
61 static u8 ide_get_best_pio_mode(ide_drive_t *drive, u8 mode_wanted, u8 max_mode) argument
63 u16 *id = drive->id;
69 if ((drive->hwif->host_flags & IDE_HFLAG_PIO_NO_BLACKLIST) == 0)
73 printk(KERN_INFO "%s: is on PIO blacklist\n", drive->name);
100 drive
109 ide_pio_need_iordy(ide_drive_t *drive, const u8 pio) argument
121 ide_set_pio_mode(ide_drive_t *drive, const u8 mode) argument
155 ide_set_dma_mode(ide_drive_t *drive, const u8 mode) argument
181 ide_set_pio(ide_drive_t *drive, u8 req_pio) argument
221 ide_rate_filter(ide_drive_t *drive, u8 speed) argument
248 ide_set_xfer_rate(ide_drive_t *drive, u8 rate) argument
[all...]
H A Dide-probe.c43 * generic_id - add a generic drive id
44 * @drive: drive to make an ID block for
46 * Add a fake id field to the drive we are passed. This allows
48 * and make drive properties unconditional outside of this file
51 static void generic_id(ide_drive_t *drive) argument
53 u16 *id = drive->id;
55 id[ATA_ID_CUR_CYLS] = id[ATA_ID_CYLS] = drive->cyl;
56 id[ATA_ID_CUR_HEADS] = id[ATA_ID_HEADS] = drive->head;
57 id[ATA_ID_CUR_SECTORS] = id[ATA_ID_SECTORS] = drive
60 ide_disk_init_chs(ide_drive_t *drive) argument
86 ide_disk_init_mult_count(ide_drive_t *drive) argument
104 ide_classify_ata_dev(ide_drive_t *drive) argument
123 ide_classify_atapi_dev(ide_drive_t *drive) argument
191 do_identify(ide_drive_t *drive, u8 cmd, u16 *id) argument
250 ide_dev_read_id(ide_drive_t *drive, u8 cmd, u16 *id, int irq_ctx) argument
330 ide_busy_sleep(ide_drive_t *drive, unsigned long timeout, int altstatus) argument
350 ide_read_device(ide_drive_t *drive) argument
380 do_probe(ide_drive_t *drive, u8 cmd) argument
473 probe_for_drive(ide_drive_t *drive) argument
600 ide_drive_t *drive; local
680 ide_drive_t *drive; local
724 ide_drive_t *drive; local
747 ide_init_queue(ide_drive_t *drive) argument
797 ide_drive_t *drive; local
876 ide_drive_t *drive = hwif->devices[unit]; local
925 ide_init_disk(struct gendisk *disk, ide_drive_t *drive) argument
940 ide_drive_t *drive = container_of(dev, ide_drive_t, gendev); local
991 ide_drive_t *drive; local
1014 ide_drive_t *drive; local
1117 ide_drive_t *drive; local
1229 ide_drive_t *drive; local
1243 ide_drive_t *drive; local
1479 ide_drive_t *drive; local
[all...]
H A Dide-tape.c144 ide_drive_t *drive; member in struct:ide_tape_obj
246 if (ide_device_get(tape->drive))
258 ide_drive_t *drive = tape->drive; local
262 ide_device_put(drive);
270 static void idetape_analyze_error(ide_drive_t *drive) argument
272 idetape_tape_t *tape = drive->driver_data;
273 struct ide_atapi_pc *pc = drive->failed_pc;
274 struct request *rq = drive->hwif->rq;
328 static int ide_tape_callback(ide_drive_t *drive, in argument
380 ide_tape_stall_queue(ide_drive_t *drive) argument
392 ide_tape_handle_dsc(ide_drive_t *drive) argument
441 ide_tape_issue_pc(ide_drive_t *drive, struct ide_cmd *cmd, struct ide_atapi_pc *pc) argument
517 idetape_media_access_finished(ide_drive_t *drive) argument
568 idetape_do_request(ide_drive_t *drive, struct request *rq, sector_t block) argument
674 idetape_create_write_filemark_cmd(ide_drive_t *drive, struct ide_atapi_pc *pc, int write_filemark) argument
683 idetape_wait_ready(ide_drive_t *drive, unsigned long timeout) argument
711 idetape_flush_tape_buffers(ide_drive_t *drive) argument
725 ide_tape_read_position(ide_drive_t *drive) argument
767 idetape_create_locate_cmd(ide_drive_t *drive, struct ide_atapi_pc *pc, unsigned int block, u8 partition, int skip) argument
779 __ide_tape_discard_merge_buffer(ide_drive_t *drive) argument
802 idetape_position_tape(ide_drive_t *drive, unsigned int block, u8 partition, int skip) argument
824 ide_tape_discard_merge_buffer(ide_drive_t *drive, int restore_position) argument
846 idetape_queue_rw_tail(ide_drive_t *drive, int cmd, int size) argument
896 idetape_create_rewind_cmd(ide_drive_t *drive, struct ide_atapi_pc *pc) argument
921 ide_tape_flush_merge_buffer(ide_drive_t *drive) argument
941 idetape_init_rw(ide_drive_t *drive, int dir) argument
991 idetape_pad_zeros(ide_drive_t *drive, int bcount) argument
1009 idetape_rewind_tape(ide_drive_t *drive) argument
1030 idetape_blkdev_ioctl(ide_drive_t *drive, unsigned int cmd, unsigned long arg) argument
1063 idetape_space_over_filemarks(ide_drive_t *drive, short mt_op, int mt_count) argument
1133 ide_drive_t *drive = tape->drive; local
1188 ide_drive_t *drive = tape->drive; local
1227 idetape_write_filemark(ide_drive_t *drive) argument
1254 idetape_mtioctop(ide_drive_t *drive, short mt_op, int mt_count) argument
1374 ide_drive_t *drive = tape->drive; local
1439 ide_tape_get_bsize_from_bdesc(ide_drive_t *drive) argument
1467 ide_drive_t *drive; local
1549 idetape_write_release(ide_drive_t *drive, unsigned int minor) argument
1569 ide_drive_t *drive = tape->drive; local
1603 idetape_get_inquiry_results(ide_drive_t *drive) argument
1632 idetape_get_mode_sense_results(ide_drive_t *drive) argument
1708 mulf_tdsc(ide_drive_t *drive) argument
1709 divf_tdsc(ide_drive_t *drive) argument
1710 divf_buffer(ide_drive_t *drive) argument
1711 divf_buffer_size(ide_drive_t *drive) argument
1745 idetape_setup(ide_drive_t *drive, idetape_tape_t *tape, int minor) argument
1808 ide_tape_remove(ide_drive_t *drive) argument
1824 ide_drive_t *drive = tape->drive; local
1843 ide_drive_t *drive = (ide_drive_t *) m->private; local
1869 ide_tape_proc_entries(ide_drive_t *drive) argument
1874 ide_tape_proc_devsets(ide_drive_t *drive) argument
1937 ide_drive_t *drive = tape->drive; local
1956 ide_tape_probe(ide_drive_t *drive) argument
[all...]
H A Dide.c33 * | IRQ-unmask, drive-id, multiple-mode, support for ">16 heads",
66 * @drive: device to get a reference to
71 int ide_device_get(ide_drive_t *drive) argument
76 if (!get_device(&drive->gendev))
79 host_dev = drive->hwif->host->dev[0];
83 put_device(&drive->gendev);
93 * @drive: device to release a reference on
98 void ide_device_put(ide_drive_t *drive) argument
101 struct device *host_dev = drive->hwif->host->dev[0];
107 put_device(&drive
118 ide_drive_t *drive = to_ide_device(dev); local
128 ide_drive_t *drive = to_ide_device(dev); local
136 ide_drive_t *drive = to_ide_device(dev); local
147 ide_drive_t *drive = to_ide_device(dev); local
281 ide_dev_apply_params(ide_drive_t *drive, u8 unit) argument
357 ide_drive_t *drive; local
[all...]

Completed in 310 milliseconds

1234567891011