/drivers/ide/ |
H A D | ide-disk_ioctl.c | 18 int ide_disk_ioctl(ide_drive_t *drive, struct block_device *bdev, fmode_t mode, argument 24 err = ide_setting_ioctl(drive, bdev, cmd, arg, ide_disk_ioctl_settings); 28 err = generic_ide_ioctl(drive, bdev, cmd, arg);
|
H A D | ide-floppy_proc.c | 10 ide_drive_t*drive = (ide_drive_t *)m->private; local 12 seq_printf(m, "%llu\n", (long long)ide_gd_capacity(drive));
|
H A D | dtc2278.c | 71 static void dtc2278_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 75 if (drive->pio_mode >= XFER_PIO_3) {
|
H A D | ide-4drives.c | 14 static void ide_4drives_init_dev(ide_drive_t *drive) argument 16 if (drive->hwif->channel) 17 drive->select ^= 0x20;
|
H A D | ide-lib.c | 11 * @drive: drive to update 18 void ide_toggle_bounce(ide_drive_t *drive, int on) argument 24 } else if (on && drive->media == ide_disk) { 25 struct device *dev = drive->hwif->dev; 31 if (drive->queue) 32 blk_queue_bounce_limit(drive->queue, addr); 51 static void ide_dump_sector(ide_drive_t *drive) argument 55 u8 lba48 = !!(drive->dev_flags & IDE_DFLAG_LBA48); 65 ide_tf_readback(drive, 75 ide_dump_ata_error(ide_drive_t *drive, u8 err) argument 105 ide_dump_atapi_error(ide_drive_t *drive, u8 err) argument 133 ide_dump_status(ide_drive_t *drive, const char *msg, u8 stat) argument [all...] |
H A D | ide-pci-generic.c | 36 static void netcell_quirkproc(ide_drive_t *drive) argument 39 drive->id[ATA_ID_CSF_DEFAULT] |= 0x4000;
|
H A D | macide.c | 64 static void macide_clear_irq(ide_drive_t *drive) argument
|
H A D | triflex.c | 37 static void triflex_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 42 u8 channel_offset = hwif->channel ? 0x74 : 0x70, unit = drive->dn & 1; 46 switch (drive->dma_mode) { 84 static void triflex_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 86 drive->dma_mode = drive->pio_mode; 87 triflex_set_mode(hwif, drive);
|
H A D | cs5520.c | 6 * typical IDE controllers they do bus mastering with the drive in 10 * drive for the right PIO mode. We must also ignore all the blacklists 11 * and the drive bus mastering DMA information. 60 static void cs5520_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 63 int controller = drive->dn > 1 ? 1 : 0; 64 const u8 pio = drive->pio_mode - XFER_PIO_0; 75 pci_write_config_byte(pdev, 0x64 + 4*controller + (drive->dn&1), 79 pci_write_config_byte(pdev, 0x66 + 4*controller + (drive->dn&1), 84 static void cs5520_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 88 drive [all...] |
H A D | falconide.c | 66 static void falconide_input_data(ide_drive_t *drive, struct ide_cmd *cmd, argument 69 unsigned long data_addr = drive->hwif->io_ports.data_addr; 71 if (drive->media == ide_disk && cmd && (cmd->tf_flags & IDE_TFLAG_FS)) { 79 static void falconide_output_data(ide_drive_t *drive, struct ide_cmd *cmd, argument 82 unsigned long data_addr = drive->hwif->io_ports.data_addr; 84 if (drive->media == ide_disk && cmd && (cmd->tf_flags & IDE_TFLAG_FS)) {
|
H A D | ide-devsets.c | 10 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 D | ide-disk_proc.c | 9 static int smart_enable(ide_drive_t *drive) argument 22 return ide_no_data_taskfile(drive, &cmd); 25 static int get_smart_data(ide_drive_t *drive, u8 *buf, u8 sub_cmd) argument 40 return ide_raw_taskfile(drive, &cmd, buf, 1); 45 ide_drive_t *drive = (ide_drive_t *) m->private; local 47 if (drive->dev_flags & IDE_DFLAG_ID_READ) 48 seq_printf(m, "%i\n", drive->id[ATA_ID_BUF_SIZE] / 2); 69 ide_drive_t*drive = (ide_drive_t *)m->private; local 71 seq_printf(m, "%llu\n", (long long)ide_gd_capacity(drive)); 88 static int __idedisk_proc_show(struct seq_file *m, ide_drive_t *drive, u argument [all...] |
H A D | ide-gd.h | 17 ide_drive_t *drive; member in struct:ide_disk_obj
|
H A D | ide-ioctls.c | 19 int ide_setting_ioctl(ide_drive_t *drive, struct block_device *bdev, argument 37 err = ds->get(drive); 49 err = ide_devset_execute(drive, ds, arg); 57 static int ide_get_identity_ioctl(ide_drive_t *drive, unsigned int cmd, argument 64 if ((drive->dev_flags & IDE_DFLAG_ID_READ) == 0) { 76 memcpy(id, drive->id, size); 87 static int ide_get_nice_ioctl(ide_drive_t *drive, unsigned long arg) argument 89 return put_user((!!(drive->dev_flags & IDE_DFLAG_DSC_OVERLAP) 91 (!!(drive->dev_flags & IDE_DFLAG_NICE1) 95 static int ide_set_nice_ioctl(ide_drive_t *drive, unsigne argument 117 ide_cmd_ioctl(ide_drive_t *drive, unsigned long arg) argument 192 ide_task_ioctl(ide_drive_t *drive, unsigned long arg) argument 219 generic_drive_reset(ide_drive_t *drive) argument 234 generic_ide_ioctl(ide_drive_t *drive, struct block_device *bdev, unsigned int cmd, unsigned long arg) argument [all...] |
H A D | ide-park.c | 9 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...] |
H A D | ide-pm.c | 7 ide_drive_t *drive = to_ide_device(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 = to_ide_device(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 D | ide-sysfs.c | 4 char *ide_media_string(ide_drive_t *drive) argument 6 switch (drive->media) { 25 ide_drive_t *drive = to_ide_device(dev); local 26 return sprintf(buf, "%s\n", ide_media_string(drive)); 33 ide_drive_t *drive = to_ide_device(dev); local 34 return sprintf(buf, "%s\n", drive->name); 41 ide_drive_t *drive = to_ide_device(dev); local 42 return sprintf(buf, "ide:m-%s\n", ide_media_string(drive)); 49 ide_drive_t *drive = to_ide_device(dev); local 50 return sprintf(buf, "%s\n", (char *)&drive 57 ide_drive_t *drive = to_ide_device(dev); local 65 ide_drive_t *drive = to_ide_device(dev); local [all...] |
H A D | ide-timings.c | 81 u16 ide_pio_cycle_time(ide_drive_t *drive, u8 pio) argument 83 u16 *id = drive->id; 88 if (ata_id_has_iordy(drive->id)) 144 int ide_timing_compute(ide_drive_t *drive, u8 speed, argument 147 u16 *id = drive->id; 163 * If the drive is an EIDE drive, it can tell us it needs extended 166 if (id[ATA_ID_FIELD_VALID] & 2) { /* EIDE drive */ 192 ide_timing_compute(drive, drive [all...] |
H A D | ide-xfer-mode.c | 50 * ide_get_best_pio_mode - get PIO mode from drive 51 * @drive: drive to consider 55 * This routine returns the recommended PIO settings for a given drive, 56 * based on the drive->id information and the ide_pio_blacklist[]. 62 static u8 ide_get_best_pio_mode(ide_drive_t *drive, u8 mode_wanted, u8 max_mode) argument 64 u16 *id = drive->id; 70 if ((drive->hwif->host_flags & IDE_HFLAG_PIO_NO_BLACKLIST) == 0) 74 printk(KERN_INFO "%s: is on PIO blacklist\n", drive->name); 101 drive 110 ide_pio_need_iordy(ide_drive_t *drive, const u8 pio) argument 122 ide_set_pio_mode(ide_drive_t *drive, const u8 mode) argument 156 ide_set_dma_mode(ide_drive_t *drive, const u8 mode) argument 182 ide_set_pio(ide_drive_t *drive, u8 req_pio) argument 222 ide_rate_filter(ide_drive_t *drive, u8 speed) argument 249 ide_set_xfer_rate(ide_drive_t *drive, u8 rate) argument [all...] |
H A D | it8172.c | 40 static void it8172_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 45 const u8 pio = drive->pio_mode - XFER_PIO_0; 65 drive_enables &= drive->dn ? 0xc006 : 0xc060; 66 if (drive->media == ide_disk) 68 drive_enables |= 0x0004 << (drive->dn * 4); 69 if (ide_pio_need_iordy(drive, pio)) 71 drive_enables |= 0x0002 << (drive->dn * 4); 73 drive_timing &= drive->dn ? 0x00003f00 : 0x000fc000; 74 drive_timing |= timings[pio] << (drive->dn * 6 + 8); 80 static void it8172_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument [all...] |
H A D | jmicron.c | 83 static void jmicron_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 90 * @drive: drive 95 static void jmicron_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument
|
H A D | q40ide.c | 73 static void q40ide_input_data(ide_drive_t *drive, struct ide_cmd *cmd, argument 76 unsigned long data_addr = drive->hwif->io_ports.data_addr; 78 if (drive->media == ide_disk && cmd && (cmd->tf_flags & IDE_TFLAG_FS)) { 86 static void q40ide_output_data(ide_drive_t *drive, struct ide_cmd *cmd, argument 89 unsigned long data_addr = drive->hwif->io_ports.data_addr; 91 if (drive->media == ide_disk && cmd && (cmd->tf_flags & IDE_TFLAG_FS)) {
|
/drivers/gpu/drm/nouveau/core/include/subdev/bios/ |
H A D | i2c.h | 16 u8 drive; member in struct:dcb_i2c_entry
|
/drivers/gpu/drm/nouveau/core/subdev/gpio/ |
H A D | priv.h | 46 int (*drive)(struct nouveau_gpio *, int line, int dir, int out); member in struct:nouveau_gpio_impl
|
/drivers/gpu/drm/nouveau/core/subdev/i2c/ |
H A D | nv04.c | 35 u8 drive; member in struct:nv04_i2c_port 44 u8 val = nv_rdvgac(priv, 0, port->drive); 47 nv_wrvgac(priv, 0, port->drive, val | 0x01); 55 u8 val = nv_rdvgac(priv, 0, port->drive); 58 nv_wrvgac(priv, 0, port->drive, val | 0x01); 101 port->drive = info->drive;
|