/drivers/acpi/ |
H A D | int340x_thermal.c | 33 static int int340x_thermal_handler_attach(struct acpi_device *adev, argument 38 acpi_create_platform_device(adev);
|
H A D | acpi_platform.c | 35 * @adev: ACPI device node to create a platform device for. 37 * Check if the given @adev can be represented as a platform device and, if 41 * Name of the platform device will be the same as @adev's. 43 struct platform_device *acpi_create_platform_device(struct acpi_device *adev) argument 54 if (adev->physical_node_count) 57 if (!acpi_match_device_ids(adev, forbidden_id_list)) 61 count = acpi_dev_get_resources(adev, &resource_list, NULL, NULL); 68 dev_err(&adev->dev, "No memory for resources\n"); 86 acpi_parent = adev->parent; 101 pdevinfo.name = dev_name(&adev [all...] |
H A D | container.c | 48 struct acpi_device *adev = ACPI_COMPANION(&cdev->dev); local 52 list_for_each_entry(child, &adev->children, node) 64 static int container_device_attach(struct acpi_device *adev, argument 71 if (adev->flags.is_dock_station) 81 dev_set_name(dev, "%s", dev_name(&adev->dev)); 82 ACPI_COMPANION_SET(dev, adev); 89 adev->driver_data = dev; 93 static void container_device_detach(struct acpi_device *adev) argument 95 struct device *dev = acpi_driver_data(adev); 97 adev 102 container_device_online(struct acpi_device *adev) argument [all...] |
H A D | acpi_cmos_rtc.c | 57 static int acpi_install_cmos_rtc_space_handler(struct acpi_device *adev, argument 62 status = acpi_install_address_space_handler(adev->handle, 74 static void acpi_remove_cmos_rtc_space_handler(struct acpi_device *adev) argument 76 if (ACPI_FAILURE(acpi_remove_address_space_handler(adev->handle,
|
H A D | acpi_pnp.c | 350 static int acpi_pnp_attach(struct acpi_device *adev, argument 367 static int is_cmos_rtc_device(struct acpi_device *adev) argument 375 return !acpi_match_device_ids(adev, ids); 378 bool acpi_is_pnp_device(struct acpi_device *adev) argument 380 return adev->handler == &acpi_pnp_handler || is_cmos_rtc_device(adev);
|
H A D | proc.c | 77 static void physical_device_enable_wakeup(struct acpi_device *adev) argument 81 mutex_lock(&adev->physical_node_lock); 84 &adev->physical_node_list, node) 90 mutex_unlock(&adev->physical_node_lock);
|
H A D | internal.h | 39 void register_dock_dependent_device(struct acpi_device *adev, 41 int dock_notify(struct acpi_device *adev, u32 event); 42 void acpi_dock_add(struct acpi_device *adev); 44 static inline void register_dock_dependent_device(struct acpi_device *adev, argument 46 static inline int dock_notify(struct acpi_device *adev, u32 event) { return -ENODEV; } argument 47 static inline void acpi_dock_add(struct acpi_device *adev) {} argument 71 acpi_status acpi_hotplug_schedule(struct acpi_device *adev, u32 src); 73 void acpi_device_hotplug(struct acpi_device *adev, u32 src); 74 bool acpi_scan_is_offline(struct acpi_device *adev, bool uevent); 88 bool acpi_device_is_present(struct acpi_device *adev); [all...] |
/drivers/ata/ |
H A D | pata_netcell.c | 22 static unsigned int netcell_read_id(struct ata_device *adev, argument 25 unsigned int err_mask = ata_do_dev_read_id(adev, tf, id);
|
H A D | pata_piccolo.c | 31 static void tosh_set_piomode(struct ata_port *ap, struct ata_device *adev) argument 40 conf |= pio[adev->pio_mode - XFER_PIO_0]; 44 static void tosh_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument 50 if (adev->dma_mode >= XFER_UDMA_0) { 51 int udma = adev->dma_mode - XFER_UDMA_0; 59 conf |= mwdma[adev->dma_mode - XFER_MW_DMA_0];
|
H A D | pata_ninja32.c | 52 * @adev: ATA device 58 static void ninja32_set_piomode(struct ata_port *ap, struct ata_device *adev) argument 63 iowrite8(pio_timing[adev->pio_mode - XFER_PIO_0], 65 ap->private_data = adev; 71 struct ata_device *adev = &ap->link.device[device]; local 72 if (ap->private_data != adev) { 75 ninja32_set_piomode(ap, adev);
|
H A D | pata_ns87410.c | 57 * @adev: ATA device 63 static void ns87410_set_piomode(struct ata_port *ap, struct ata_device *adev) argument 82 if (ata_pio_need_iordy(adev)) 87 if (ata_timing_compute(adev, adev->pio_mode, &at, 30303, 1) < 0) { 88 dev_err(&pdev->dev, "unknown mode %d\n", adev->pio_mode); 102 ap->private_data = adev; 117 struct ata_device *adev = qc->dev; local 121 does not set adev->pio_mode to XFER_PIO_0 while probing as would be 124 if (adev [all...] |
H A D | pata_radisys.c | 31 * @adev: Device whose timings we are configuring 39 static void radisys_set_piomode (struct ata_port *ap, struct ata_device *adev) argument 41 unsigned int pio = adev->pio_mode - XFER_PIO_0; 62 if (ata_pio_need_iordy(adev)) 70 idetm_data |= (control << (4 * adev->devno)); 76 ap->private_data = adev; 82 * @adev: Device to program 90 static void radisys_set_dmamode (struct ata_port *ap, struct ata_device *adev) argument 111 if (adev->dma_mode < XFER_UDMA_0) { 112 unsigned int mwdma = adev 170 struct ata_device *adev = qc->dev; local [all...] |
H A D | pata_sch.c | 53 static void sch_set_piomode(struct ata_port *ap, struct ata_device *adev); 54 static void sch_set_dmamode(struct ata_port *ap, struct ata_device *adev); 101 * @adev: ATA device 109 static void sch_set_piomode(struct ata_port *ap, struct ata_device *adev) argument 111 unsigned int pio = adev->pio_mode - XFER_PIO_0; 113 unsigned int port = adev->devno ? D1TIM : D0TIM; 122 if (adev->class == ATA_DEV_ATA) 130 * @adev: ATA device 138 static void sch_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument 140 unsigned int dma_mode = adev [all...] |
H A D | pata_acpi.c | 65 * @adev: ATA device 72 static unsigned long pacpi_discover_modes(struct ata_port *ap, struct ata_device *adev) argument 82 xfer_mask = ata_acpi_gtm_xfermask(adev, &probe); 92 * @adev: device 99 static unsigned long pacpi_mode_filter(struct ata_device *adev, unsigned long mask) argument 101 struct pata_acpi *acpi = adev->link->ap->private_data; 102 return mask & acpi->mask[adev->devno]; 108 * @adev: ATA device 111 static void pacpi_set_piomode(struct ata_port *ap, struct ata_device *adev) argument 113 int unit = adev 134 pacpi_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument 169 struct ata_device *adev = qc->dev; local [all...] |
H A D | pata_cs5520.c | 63 * @adev: ATA device 69 static void cs5520_set_timings(struct ata_port *ap, struct ata_device *adev, int pio) argument 72 int slave = adev->devno; 94 * @adev: ATA device 100 static void cs5520_set_piomode(struct ata_port *ap, struct ata_device *adev) argument 102 cs5520_set_timings(ap, adev, adev->pio_mode);
|
H A D | pata_cs5530.c | 48 * @adev: device on the interface 54 static void cs5530_set_piomode(struct ata_port *ap, struct ata_device *adev) argument 69 if (adev->devno) 72 iowrite32(cs5530_pio_timings[format][adev->pio_mode - XFER_PIO_0], base); 78 * @adev: Device being configured 85 static void cs5530_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument 94 switch(adev->dma_mode) { 112 if (adev->devno == 0) /* Master */ 125 reg |= (1 << (5 + adev->devno)); 130 ap->private_data = adev; 146 struct ata_device *adev = qc->dev; local [all...] |
H A D | pata_cypress.c | 46 * @adev: ATA device 51 static void cy82c693_set_piomode(struct ata_port *ap, struct ata_device *adev) argument 59 if (ata_timing_compute(adev, adev->pio_mode, &t, T, 1) < 0) { 69 if (adev->devno == 0) { 95 * @adev: ATA device 100 static void cy82c693_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument 106 outb(adev->dma_mode - XFER_MW_DMA_0, 0x23);
|
H A D | pata_efar.c | 75 * @adev: Device to program 83 static void efar_set_piomode (struct ata_port *ap, struct ata_device *adev) argument 85 unsigned int pio = adev->pio_mode - XFER_PIO_0; 107 if (ata_pio_need_iordy(adev)) /* PIO 3/4 require IORDY */ 110 if (adev->class == ATA_DEV_ATA) 118 if (adev->devno == 0) { 141 udma_enable &= ~(1 << (2 * ap->port_no + adev->devno)); 149 * @adev: Device to program 157 static void efar_set_dmamode (struct ata_port *ap, struct ata_device *adev) argument 162 u8 speed = adev [all...] |
H A D | pata_hpt3x3.c | 30 * @adev: device on the interface 37 static void hpt3x3_set_piomode(struct ata_port *ap, struct ata_device *adev) argument 41 int dn = 2 * ap->port_no + adev->devno; 47 r1 |= (adev->pio_mode - XFER_PIO_0) << (3 * dn); 58 * @adev: Device being configured 67 static void hpt3x3_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument 71 int dn = 2 * ap->port_no + adev->devno; 72 int mode_num = adev->dma_mode & 0x0F; 81 if (adev->dma_mode >= XFER_UDMA_0)
|
H A D | pata_it8213.c | 66 * @adev: Device whose timings we are configuring 74 static void it8213_set_piomode (struct ata_port *ap, struct ata_device *adev) argument 76 unsigned int pio = adev->pio_mode - XFER_PIO_0; 96 if (ata_pio_need_iordy(adev)) /* PIO 3/4 require IORDY */ 99 if (adev->class != ATA_DEV_ATA) 105 if (adev->devno == 0) { 130 * @adev: Device to program 139 static void it8213_set_dmamode (struct ata_port *ap, struct ata_device *adev) argument 143 u8 speed = adev->dma_mode; 144 int devid = adev [all...] |
H A D | pata_mpiix.c | 63 * @adev: ATA device 75 static void mpiix_set_piomode(struct ata_port *ap, struct ata_device *adev) argument 78 int pio = adev->pio_mode - XFER_PIO_0; 91 if (adev->class == ATA_DEV_ATA) 93 if (ata_pio_need_iordy(adev)) 100 idetim &= ~(0x07 << (4 * adev->devno)); 101 idetim |= control << (4 * adev->devno); 108 ap->private_data = adev; 125 struct ata_device *adev = qc->dev; local 129 does not set adev [all...] |
H A D | pata_oldpiix.c | 55 * @adev: Device whose timings we are configuring 63 static void oldpiix_set_piomode (struct ata_port *ap, struct ata_device *adev) argument 65 unsigned int pio = adev->pio_mode - XFER_PIO_0; 86 if (ata_pio_need_iordy(adev)) 90 if (adev->class == ATA_DEV_ATA) 99 if (adev->devno == 0) { 111 ap->private_data = adev; 117 * @adev: Device to program 125 static void oldpiix_set_dmamode (struct ata_port *ap, struct ata_device *adev) argument 144 unsigned int mwdma = adev 195 struct ata_device *adev = qc->dev; local [all...] |
H A D | pata_opti.c | 99 * @adev: ATA device 106 static void opti_set_piomode(struct ata_port *ap, struct ata_device *adev) argument 108 struct ata_device *pair = ata_dev_pair(adev); 110 int pio = adev->pio_mode - XFER_PIO_0; 141 opti_write_reg(ap, adev->devno, MISC_REG);
|
H A D | pata_sc1200.c | 80 * @adev: device on the interface 85 static void sc1200_set_piomode(struct ata_port *ap, struct ata_device *adev) argument 101 int mode = adev->pio_mode - XFER_PIO_0; 106 pci_write_config_dword(pdev, reg + 8 * adev->devno, 113 * @adev: Device being configured 119 static void sc1200_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument 136 int mode = adev->dma_mode; 144 if (adev->devno == 0) { 168 struct ata_device *adev = qc->dev; local 172 if (ata_dma_enabled(adev) [all...] |
H A D | pata_triflex.c | 76 * @adev: Device on the bus 85 static void triflex_load_timing(struct ata_port *ap, struct ata_device *adev, int speed) argument 91 unsigned int is_slave = (adev->devno != 0); 132 * @adev: ATA device 138 static void triflex_set_piomode(struct ata_port *ap, struct ata_device *adev) argument 140 triflex_load_timing(ap, adev, adev->pio_mode); 163 * @adev: ATA device
|