Searched refs:adev (Results 1 - 25 of 117) sorted by relevance

12345

/drivers/acpi/
H A Ddevice_pm.c133 static int acpi_dev_pm_explicit_set(struct acpi_device *adev, int state) argument
135 if (adev->power.states[state].flags.explicit_set) {
139 status = acpi_evaluate_object(adev->handle, method, NULL, NULL);
373 struct acpi_device *adev; local
378 adev = acpi_bus_get_acpi_device(handle);
379 if (!adev)
384 if (adev->wakeup.flags.notifier_present) {
385 __pm_wakeup_event(adev->wakeup.ws, 0);
386 if (adev->wakeup.context.work.func)
387 queue_pm_work(&adev
406 acpi_add_pm_notifier(struct acpi_device *adev, struct device *dev, void (*work_func)(struct work_struct *work)) argument
440 acpi_remove_pm_notifier(struct acpi_device *adev) argument
500 acpi_dev_pm_get_state(struct device *dev, struct acpi_device *adev, u32 target_state, int *d_min_p, int *d_max_p) argument
600 struct acpi_device *adev; local
670 acpi_device_wakeup(struct acpi_device *adev, u32 target_state, bool enable) argument
703 struct acpi_device *adev; local
727 struct acpi_device *adev; local
754 acpi_dev_pm_low_power(struct device *dev, struct acpi_device *adev, u32 system_state) argument
770 acpi_dev_pm_full_power(struct acpi_device *adev) argument
788 struct acpi_device *adev = ACPI_COMPANION(dev); local
819 struct acpi_device *adev = ACPI_COMPANION(dev); local
872 struct acpi_device *adev = ACPI_COMPANION(dev); local
904 struct acpi_device *adev = ACPI_COMPANION(dev); local
922 struct acpi_device *adev = ACPI_COMPANION(dev); local
1058 struct acpi_device *adev = ACPI_COMPANION(dev); local
1096 struct acpi_device *adev = ACPI_COMPANION(dev); local
[all...]
H A Dcontainer.c48 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 Dacpi_platform.c35 * @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 Dinternal.h39 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...]
H A Dint340x_thermal.c33 static int int340x_thermal_handler_attach(struct acpi_device *adev, argument
38 acpi_create_platform_device(adev);
H A Dacpi_pnp.c350 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 Ddock.c68 struct acpi_device *adev; member in struct:dock_dependent_device
91 * @adev: Dependent ACPI device object.
96 struct acpi_device *adev)
104 dd->adev = adev;
114 struct acpi_device *adev = dd->adev; local
118 if (!adev->hp)
124 fixup = adev->hp->fixup;
127 fixup(adev);
95 add_dock_dependent_device(struct dock_station *ds, struct acpi_device *adev) argument
174 find_dock_dependent_device(struct dock_station *ds, struct acpi_device *adev) argument
185 register_dock_dependent_device(struct acpi_device *adev, acpi_handle dshandle) argument
206 is_dock_device(struct acpi_device *adev) argument
293 struct acpi_device *adev = dd->adev; local
444 dock_notify(struct acpi_device *adev, u32 event) argument
513 struct acpi_device *adev = NULL; local
607 acpi_dock_add(struct acpi_device *adev) argument
[all...]
H A Dglue.c85 static int find_child_checks(struct acpi_device *adev, bool check_children) argument
91 status = acpi_evaluate_integer(adev->handle, "_STA", NULL, &sta);
97 if (check_children && list_empty(&adev->children))
106 struct acpi_device *adev, *ret = NULL; local
112 list_for_each_entry(adev, &parent->children, node) {
117 status = acpi_evaluate_integer(adev->handle, METHOD_NAME__ADR,
124 ret = adev;
142 score = find_child_checks(adev, check_children);
144 return adev;
146 ret = adev;
290 struct acpi_device *adev; local
295 struct acpi_device *adev; local
333 struct acpi_device *adev = ACPI_COMPANION(dev); local
[all...]
H A Dacpi_cmos_rtc.c57 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,
/drivers/ata/
H A Dpata_radisys.c31 * @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 Dpata_oldpiix.c55 * @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 Dpata_ns87410.c57 * @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 Dpata_optidma.c104 * @adev: ATA device
115 static void optidma_mode_setup(struct ata_port *ap, struct ata_device *adev, u8 mode) argument
117 struct ata_device *pair = ata_dev_pair(adev);
118 int pio = adev->pio_mode - XFER_PIO_0;
119 int dma = adev->dma_mode - XFER_MW_DMA_0;
165 iowrite8(adev->devno, regio + MISC_REG);
175 iowrite8(addr | adev->devno, regio + MISC_REG);
191 * @adev: device
200 static void optiplus_mode_setup(struct ata_port *ap, struct ata_device *adev, u8 mode) argument
205 int dev2 = 2 * adev
238 optidma_set_pio_mode(struct ata_port *ap, struct ata_device *adev) argument
253 optidma_set_dma_mode(struct ata_port *ap, struct ata_device *adev) argument
268 optiplus_set_pio_mode(struct ata_port *ap, struct ata_device *adev) argument
283 optiplus_set_dma_mode(struct ata_port *ap, struct ata_device *adev) argument
296 optidma_make_bits43(struct ata_device *adev) argument
[all...]
H A Dpata_ali.c112 * @adev: attached device
118 static unsigned long ali_20_filter(struct ata_device *adev, unsigned long mask) argument
122 if (adev->class != ATA_DEV_ATA)
124 ata_id_c_string(adev->id, model_num, ATA_ID_PROD, sizeof(model_num));
133 * @adev: device for FIFO control
141 static void ali_fifo_control(struct ata_port *ap, struct ata_device *adev, int on) argument
146 int shift = 4 * adev->devno;
161 * @adev: Device the timing is for
170 static void ali_program_modes(struct ata_port *ap, struct ata_device *adev, struct ata_timing *t, u8 ultra) argument
175 int drwt = 0x5A + 4 * ap->port_no + adev
207 ali_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
241 ali_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
284 ali_warn_atapi_dma(struct ata_device *adev) argument
308 ali_lock_sectors(struct ata_device *adev) argument
[all...]
H A Dpata_sch.c53 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 Dpata_artop.c87 * @adev: Device
98 static void artop6210_load_piomode(struct ata_port *ap, struct ata_device *adev, unsigned int pio) argument
101 int dn = adev->devno + 2 * ap->port_no;
114 * @adev: Device we are configuring
125 static void artop6210_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
128 int dn = adev->devno + 2 * ap->port_no;
131 artop6210_load_piomode(ap, adev, adev->pio_mode - XFER_PIO_0);
142 * @adev: Device we are configuring
152 static void artop6260_load_piomode (struct ata_port *ap, struct ata_device *adev, unsigne argument
179 artop6260_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
203 artop6210_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
243 artop6260_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
[all...]
H A Dpata_sis.c79 * @adev: device
85 static int sis_old_port_base(struct ata_device *adev) argument
87 return 0x40 + (4 * adev->link->ap->port_no) + (2 * adev->devno);
92 * @adev: device
98 static int sis_port_base(struct ata_device *adev) argument
100 struct ata_port *ap = adev->link->ap;
110 return port + (8 * ap->port_no) + (4 * adev->devno);
187 * @adev: Device
194 static void sis_set_fifo(struct ata_port *ap, struct ata_device *adev) argument
226 sis_old_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
263 sis_100_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
288 sis_133_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
336 sis_old_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
375 sis_66_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
414 sis_100_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
448 sis_133_early_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
481 sis_133_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
527 sis_133_mode_filter(struct ata_device *adev, unsigned long mask) argument
[all...]
H A Dpata_atiixp.c94 * @adev: ATA device
101 static void atiixp_set_pio_timing(struct ata_port *ap, struct ata_device *adev, int pio) argument
106 int dn = 2 * ap->port_no + adev->devno;
107 int timing_shift = (16 * ap->port_no) + 8 * (adev->devno ^ 1);
125 * @adev: ATA device
131 static void atiixp_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
135 atiixp_set_pio_timing(ap, adev, adev->pio_mode - XFER_PIO_0);
142 * @adev: ATA device
148 static void atiixp_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
213 struct ata_device *adev = qc->dev; local
[all...]
H A Dpata_acpi.c65 * @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 Dpata_it821x.c118 * @adev: Device to program
126 static void it821x_program(struct ata_port *ap, struct ata_device *adev, u16 timing) argument
145 * @adev: ATA device to update
154 static void it821x_program_udma(struct ata_port *ap, struct ata_device *adev, u16 timing) argument
159 int unit = adev->devno;
179 * @adev: ATA device being updated
185 static void it821x_clock_strategy(struct ata_port *ap, struct ata_device *adev) argument
189 u8 unit = adev->devno;
190 struct ata_device *pair = ata_dev_pair(adev);
241 it821x_program_udma(ap, adev, itde
255 it821x_passthru_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
285 it821x_passthru_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
348 struct ata_device *adev = qc->dev; local
371 struct ata_device *adev = qc->dev; local
394 struct ata_device *adev = &ap->link.device[device]; local
499 it821x_dev_config(struct ata_device *adev) argument
536 it821x_read_id(struct ata_device *adev, struct ata_taskfile *tf, u16 *id) argument
[all...]
H A Dpata_mpiix.c63 * @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 Dpata_amd.c31 * @adev: drive being configured
42 static void timing_setup(struct ata_port *ap, struct ata_device *adev, int offset, int speed, int clock) argument
49 struct ata_device *peer = ata_dev_pair(adev);
50 int dn = ap->port_no * 2 + adev->devno;
61 if (ata_timing_compute(adev, speed, &at, T, UT) < 0) {
169 * @adev: ATA device
179 struct ata_device *adev; local
186 ata_for_each_dev(adev, &ap->link, ENABLED) {
187 if (adev->class == ATA_DEV_ATAPI)
203 * @adev
208 amd33_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
214 amd66_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
220 amd100_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
226 amd133_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
241 amd33_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
246 amd66_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
251 amd100_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
256 amd133_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
353 nv100_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
358 nv133_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
372 nv100_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
377 nv133_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
[all...]
/drivers/media/usb/cx231xx/
H A Dcx231xx-audio.c61 if (dev->adev.urb[i]) {
63 usb_kill_urb(dev->adev.urb[i]);
65 usb_unlink_urb(dev->adev.urb[i]);
67 usb_free_urb(dev->adev.urb[i]);
68 dev->adev.urb[i] = NULL;
70 kfree(dev->adev.transfer_buffer[i]);
71 dev->adev.transfer_buffer[i] = NULL;
85 if (dev->adev.urb[i]) {
87 usb_kill_urb(dev->adev.urb[i]);
89 usb_unlink_urb(dev->adev
650 struct cx231xx_audio *adev = &dev->adev; local
[all...]
/drivers/media/usb/em28xx/
H A Dem28xx-audio.c69 for (i = 0; i < dev->adev.num_urb; i++) {
70 struct urb *urb = dev->adev.urb[i];
95 atomic_set(&dev->adev.stream_started, 0);
112 if (atomic_read(&dev->adev.stream_started) == 0)
115 if (dev->adev.capture_pcm_substream) {
116 substream = dev->adev.capture_pcm_substream;
129 oldptr = dev->adev.hwptr_done_capture;
144 dev->adev.hwptr_done_capture += length;
145 if (dev->adev.hwptr_done_capture >=
147 dev->adev
384 struct em28xx_audio *adev = &dev->adev; local
411 struct em28xx_audio *adev = local
890 struct em28xx_audio *adev = &dev->adev; local
[all...]
/drivers/usb/core/
H A Dusb-acpi.c133 struct acpi_device *adev; local
155 adev = ACPI_COMPANION(dev->parent);
156 return acpi_find_child_device(adev, 0, false);
177 adev = acpi_find_child_device(ACPI_COMPANION(&udev->dev),
179 if (!adev)
188 acpi_bus_get_device(parent_handle, &adev);
189 adev = acpi_find_child_device(adev, port1, false);
190 if (!adev)
193 handle = adev
[all...]

Completed in 481 milliseconds

12345