Home
last modified time | relevance | path

Searched refs:device (Results 76 – 100 of 14029) sorted by relevance

12345678910>>...562

/openbmc/linux/include/linux/
H A Diommu.h37 struct device;
377 struct device *dev;
440 struct device *hwdev);
443 struct device *parent,
473 struct device *dev);
514 struct device *dev);
669 struct device *dev;
885 struct device *dev) in iommu_group_add_device()
948 struct device *hwdev) in iommu_device_register()
989 static inline int iommu_device_link(struct device *dev, struct device *link) in iommu_device_link()
[all …]
H A Dpm_wakeup.h61 struct device *dev;
77 static inline bool device_can_wakeup(struct device *dev) in device_can_wakeup()
82 static inline bool device_may_wakeup(struct device *dev) in device_may_wakeup()
87 static inline bool device_wakeup_path(struct device *dev) in device_wakeup_path()
109 extern int device_wakeup_enable(struct device *dev);
110 extern int device_wakeup_disable(struct device *dev);
114 extern void pm_stay_awake(struct device *dev);
116 extern void pm_relax(struct device *dev);
127 static inline bool device_can_wakeup(struct device *dev) in device_can_wakeup()
183 static inline void pm_stay_awake(struct device *dev) {} in pm_stay_awake()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dnv04.c32 struct nvkm_device *device = head->disp->engine.subdev.device; in nv04_head_vblank_put() local
39 struct nvkm_device *device = head->disp->engine.subdev.device; in nv04_head_vblank_get() local
46 struct nvkm_device *device = head->disp->engine.subdev.device; in nv04_head_rgpos() local
55 struct nvkm_device *device = head->disp->engine.subdev.device; in nv04_head_state() local
83 struct nvkm_device *device = subdev->device; in nv04_disp_intr() local
84 u32 crtc0 = nvkm_rd32(device, 0x600100); in nv04_disp_intr()
85 u32 crtc1 = nvkm_rd32(device, 0x602100); in nv04_disp_intr()
90 nvkm_wr32(device, 0x600100, 0x00000001); in nv04_disp_intr()
98 if (device->chipset >= 0x10 && device->chipset <= 0x40) { in nv04_disp_intr()
99 pvideo = nvkm_rd32(device, 0x8100); in nv04_disp_intr()
[all …]
H A Dnv50.c153 struct nvkm_device *device = disp->engine.subdev.device; in nv50_pior_cnt() local
421 struct nvkm_device *device = subdev->device; in nv50_disp_mthd_list() local
536 struct nvkm_device *device = subdev->device; in nv50_disp_pioc_fini() local
555 struct nvkm_device *device = subdev->device; in nv50_disp_pioc_init() local
602 struct nvkm_device *device = subdev->device; in nv50_disp_dmac_fini() local
624 struct nvkm_device *device = subdev->device; in nv50_disp_dmac_init() local
912 struct nvkm_device *device = subdev->device; in nv50_disp_core_fini() local
932 struct nvkm_device *device = subdev->device; in nv50_disp_core_init() local
1348 struct nvkm_device *device = subdev->device; in nv50_disp_super() local
1420 struct nvkm_device *device = subdev->device; in nv50_disp_intr_error() local
[all …]
H A Dgp102.c37 struct nvkm_device *device = subdev->device; in gp102_disp_dmac_init() local
50 if (nvkm_msec(device, 2000, in gp102_disp_dmac_init()
106 struct nvkm_device *device = subdev->device; in gp102_disp_core_init() local
109 nvkm_wr32(device, 0x611494, chan->push); in gp102_disp_core_init()
110 nvkm_wr32(device, 0x611498, 0x00010000); in gp102_disp_core_init()
111 nvkm_wr32(device, 0x61149c, 0x00000001); in gp102_disp_core_init()
114 nvkm_wr32(device, 0x610490, 0x01000013); in gp102_disp_core_init()
117 if (nvkm_msec(device, 2000, in gp102_disp_core_init()
122 nvkm_rd32(device, 0x610490)); in gp102_disp_core_init()
151 struct nvkm_device *device = subdev->device; in gp102_disp_intr_error() local
[all …]
H A Dg84.c35 struct nvkm_device *device = ior->disp->engine.subdev.device; in g84_sor_hdmi_infoframe_vsi() local
45 nvkm_wr32(device, 0x616544 + hoff, vsi.header); in g84_sor_hdmi_infoframe_vsi()
46 nvkm_wr32(device, 0x616548 + hoff, vsi.subpack0_low); in g84_sor_hdmi_infoframe_vsi()
47 nvkm_wr32(device, 0x61654c + hoff, vsi.subpack0_high); in g84_sor_hdmi_infoframe_vsi()
58 struct nvkm_device *device = ior->disp->engine.subdev.device; in g84_sor_hdmi_infoframe_avi() local
68 nvkm_wr32(device, 0x616528 + hoff, avi.header); in g84_sor_hdmi_infoframe_avi()
69 nvkm_wr32(device, 0x61652c + hoff, avi.subpack0_low); in g84_sor_hdmi_infoframe_avi()
81 struct nvkm_device *device = ior->disp->engine.subdev.device; in g84_sor_hdmi_ctrl() local
96 nvkm_wr32(device, 0x616508 + hoff, 0x000a0184); in g84_sor_hdmi_ctrl()
97 nvkm_wr32(device, 0x61650c + hoff, 0x00000071); in g84_sor_hdmi_ctrl()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/privring/
H A Dgk20a.c28 struct nvkm_device *device = privring->device; in gk20a_privring_init_privring_ring() local
29 nvkm_mask(device, 0x137250, 0x3f, 0); in gk20a_privring_init_privring_ring()
31 nvkm_mask(device, 0x000200, 0x20, 0); in gk20a_privring_init_privring_ring()
35 nvkm_wr32(device, 0x12004c, 0x4); in gk20a_privring_init_privring_ring()
36 nvkm_wr32(device, 0x122204, 0x2); in gk20a_privring_init_privring_ring()
37 nvkm_rd32(device, 0x122204); in gk20a_privring_init_privring_ring()
43 nvkm_wr32(device, 0x122354, 0x800); in gk20a_privring_init_privring_ring()
44 nvkm_wr32(device, 0x128328, 0x800); in gk20a_privring_init_privring_ring()
45 nvkm_wr32(device, 0x124320, 0x800); in gk20a_privring_init_privring_ring()
51 struct nvkm_device *device = privring->device; in gk20a_privring_intr() local
[all …]
/openbmc/u-boot/drivers/usb/gadget/
H A Dcore.c198 return (device->device_descriptor); in usbd_device_device_descriptor()
548 urb->device = device; in usbd_alloc_urb()
583 if (!device || !device->bus) { in usbd_device_event_irq()
588 state = device->device_state; in usbd_device_event_irq()
609 device->address = 0; in usbd_device_event_irq()
626 device->status = USBD_SUSPENDED; in usbd_device_event_irq()
631 device->status = USBD_OK; in usbd_device_event_irq()
660 device->name, event, state, in usbd_device_event_irq()
661 device->device_state, device->status, device->address); in usbd_device_event_irq()
664 if( device->event ) { in usbd_device_event_irq()
[all …]
/openbmc/linux/drivers/peci/
H A Ddevice.c111 device->info.socket_id = device->addr - PECI_BASE_ADDR; in peci_device_info_init()
143 if (device->addr == *addr) in peci_dev_exists()
151 struct peci_device *device; in peci_device_create() local
174 device = kzalloc(sizeof(*device), GFP_KERNEL); in peci_device_create()
175 if (!device) in peci_device_create()
180 device->addr = addr; in peci_device_create()
189 ret = dev_set_name(&device->dev, "%d-%02x", controller->id, device->addr); in peci_device_create()
200 put_device(&device->dev); in peci_device_create()
208 if (!device->deleted) { in peci_device_destroy()
210 device->deleted = true; in peci_device_destroy()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
H A Dnv04.c31 struct nvkm_device *device = subdev->device; in nv04_timer_time() local
38 nvkm_wr32(device, NV04_PTIMER_TIME_1, hi); in nv04_timer_time()
39 nvkm_wr32(device, NV04_PTIMER_TIME_0, lo); in nv04_timer_time()
45 struct nvkm_device *device = tmr->subdev.device; in nv04_timer_read() local
49 hi = nvkm_rd32(device, NV04_PTIMER_TIME_1); in nv04_timer_read()
50 lo = nvkm_rd32(device, NV04_PTIMER_TIME_0); in nv04_timer_read()
59 struct nvkm_device *device = tmr->subdev.device; in nv04_timer_alarm_fini() local
66 struct nvkm_device *device = tmr->subdev.device; in nv04_timer_alarm_init() local
67 nvkm_wr32(device, NV04_PTIMER_ALARM_0, time); in nv04_timer_alarm_init()
75 struct nvkm_device *device = subdev->device; in nv04_timer_intr() local
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/
H A Dfalcon.c63 struct nvkm_device *device = subdev->device; in nvkm_falcon_intr() local
99 struct nvkm_device *device = falcon->engine.subdev.device; in nvkm_falcon_fini() local
133 struct nvkm_device *device = subdev->device; in nvkm_falcon_oneinit() local
138 if (device->chipset < 0xa3 || in nvkm_falcon_oneinit()
139 device->chipset == 0xaa || device->chipset == 0xac) { in nvkm_falcon_oneinit()
164 struct nvkm_device *device = subdev->device; in nvkm_falcon_init() local
173 nvkm_msec(device, 2000, in nvkm_falcon_init()
178 nvkm_msec(device, 2000, in nvkm_falcon_init()
265 if (device->card_type < NV_C0) in nvkm_falcon_init()
269 nvkm_wr32(device, base + 0x11c, 0); in nvkm_falcon_init()
[all …]
/openbmc/linux/drivers/block/drbd/
H A Ddrbd_state.c126 device_state_change->device = device; in remember_old_state()
302 struct drbd_device *device = peer_device->device; in conn_all_vols_unconf() local
343 struct drbd_device *device = peer_device->device; in conn_highest_role() local
359 struct drbd_device *device = peer_device->device; in conn_highest_peer() local
375 struct drbd_device *device = peer_device->device; in conn_highest_disk() local
1231 device->rs_total = drbd_bm_bits(device); in set_ov_position()
1248 device->ov_position = device->ov_start_sector; in set_ov_position()
1250 device->ov_left = device->rs_total; in set_ov_position()
1399 device->rs_mark_left[i] = device->ov_left; in _drbd_set_state()
1477 ascw->device = device; in _drbd_set_state()
[all …]
/openbmc/linux/drivers/platform/x86/intel/
H A Dhid.c326 static int intel_hid_set_enable(struct device *device, bool enable) in intel_hid_set_enable() argument
341 static void intel_button_array_enable(struct device *device, bool enable) in intel_button_array_enable() argument
364 static int intel_hid_pm_prepare(struct device *device) in intel_hid_pm_prepare() argument
366 if (device_may_wakeup(device)) { in intel_hid_pm_prepare()
374 static void intel_hid_pm_complete(struct device *device) in intel_hid_pm_complete() argument
381 static int intel_hid_pl_suspend_handler(struct device *device) in intel_hid_pl_suspend_handler() argument
391 static int intel_hid_pl_resume_handler(struct device *device) in intel_hid_pl_resume_handler() argument
393 intel_hid_pm_complete(device); in intel_hid_pl_resume_handler()
673 if (button_array_present(device)) { in intel_hid_probe()
687 report_tablet_mode_state(device); in intel_hid_probe()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/
H A Dga102.c27 struct nvkm_device *device = gpio->subdev.device; in ga102_gpio_reset() local
28 struct nvkm_bios *bios = device->bios; in ga102_gpio_reset()
56 struct nvkm_device *device = gpio->subdev.device; in ga102_gpio_drive() local
66 struct nvkm_device *device = gpio->subdev.device; in ga102_gpio_sense() local
73 struct nvkm_device *device = gpio->subdev.device; in ga102_gpio_intr_stat() local
74 u32 intr0 = nvkm_rd32(device, 0x021640); in ga102_gpio_intr_stat()
80 nvkm_wr32(device, 0x021640, intr0); in ga102_gpio_intr_stat()
81 nvkm_wr32(device, 0x02164c, intr1); in ga102_gpio_intr_stat()
87 struct nvkm_device *device = gpio->subdev.device; in ga102_gpio_intr_mask() local
100 nvkm_wr32(device, 0x021648, inte0); in ga102_gpio_intr_mask()
[all …]
/openbmc/linux/drivers/acpi/
H A Dscan.c142 if (!device) in acpi_bus_offline()
145 if (device->handler && !device->handler->hotplug.enabled) { in acpi_bus_offline()
185 if (!device) in acpi_bus_online()
483 device->remove(device); in acpi_device_del()
1827 if (!device) in acpi_add_single_object()
1871 dev_name(&device->dev), device->dev.parent ? in acpi_add_single_object()
2047 if (device) in acpi_bus_check_add()
2087 if (!device) in acpi_bus_check_add()
2235 device->handler->hotplug.notify_online(device); in acpi_bus_attach()
2386 if (device->flags.honor_deps && device->dep_unmet) in acpi_dev_ready_for_enumeration()
[all …]
H A Dacpi_video.c564 if (device->cap._BQC || device->cap._BCQ) { in acpi_video_device_lcd_get_level_current()
593 device->cap._BQC = device->cap._BCQ = 0; in acpi_video_device_lcd_get_level_current()
605 device->cap._BQC = device->cap._BCQ = 0; in acpi_video_device_lcd_get_level_current()
626 if (!device) in acpi_video_device_EDID()
779 device->cap._BQC = device->cap._BCQ = 0; in acpi_video_bqc_quirk()
1443 if (!device || !acpi_driver_data(device)) in acpi_video_get_edid()
1771 &device->cooling_dev->device.kobj, in acpi_video_dev_register_backlight()
1776 result = sysfs_create_link(&device->cooling_dev->device.kobj, in acpi_video_dev_register_backlight()
1848 sysfs_remove_link(&device->cooling_dev->device.kobj, "device"); in acpi_video_dev_unregister_backlight()
2018 video->device = device; in acpi_video_bus_add()
[all …]
/openbmc/linux/sound/hda/
H A Dintel-dsp-config.c32 u16 device; member
53 .device = PCI_DEVICE_ID_INTEL_SST_TNG,
64 .device = PCI_DEVICE_ID_INTEL_HDA_APL,
78 .device = PCI_DEVICE_ID_INTEL_HDA_APL,
85 .device = PCI_DEVICE_ID_INTEL_HDA_APL,
151 .device = PCI_DEVICE_ID_INTEL_HDA_GML,
164 .device = PCI_DEVICE_ID_INTEL_HDA_GML,
549 u16 device; in snd_intel_dsp_find_config() local
551 device = pci->device; in snd_intel_dsp_find_config()
553 if (table->device != device) in snd_intel_dsp_find_config()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
H A Dg84.c32 struct nvkm_device *device = therm->subdev.device; in g84_temp_get() local
35 return nvkm_rd32(device, 0x20400); in g84_temp_get()
43 struct nvkm_device *device = therm->subdev.device; in g84_sensor_setup() local
58 struct nvkm_device *device = subdev->device; in g84_therm_program_alarms() local
64 nvkm_wr32(device, 0x20000, 0x000003ff); in g84_therm_program_alarms()
100 struct nvkm_device *device = therm->subdev.device; in g84_therm_threshold_hyst_emulation() local
106 temp = nvkm_rd32(device, thrs_reg); in g84_therm_threshold_hyst_emulation()
142 struct nvkm_device *device = subdev->device; in g84_therm_intr() local
187 nvkm_wr32(device, 0x20100, 0xffffffff); in g84_therm_intr()
196 struct nvkm_device *device = therm->subdev.device; in g84_therm_fini() local
[all …]
H A Dnv50.c57 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_ctrl() local
68 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_get() local
73 if (nvkm_rd32(device, ctrl) & (1 << line)) { in nv50_fan_pwm_get()
85 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_set() local
98 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_clock() local
102 if (device->chipset > 0x50 && device->chipset < 0x94) { in nv50_fan_pwm_clock()
103 u8 pwm_div = nvkm_rd32(device, 0x410c); in nv50_fan_pwm_clock()
104 if (nvkm_rd32(device, 0xc040) & 0x800000) { in nv50_fan_pwm_clock()
114 pwm_clock = (device->crystal * 1000) / 20; in nv50_fan_pwm_clock()
123 struct nvkm_device *device = therm->subdev.device; in nv50_sensor_setup() local
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/
H A Dgm200.c35 struct nvkm_device *device = init->base.subdev.device; in pmu_code() local
36 struct nvkm_bios *bios = device->bios; in pmu_code()
55 struct nvkm_device *device = init->base.subdev.device; in pmu_data() local
67 struct nvkm_device *device = init->base.subdev.device; in pmu_args() local
68 nvkm_wr32(device, 0x10a1c0, argp); in pmu_args()
69 nvkm_wr32(device, 0x10a1c0, nvkm_rd32(device, 0x10a1c4) + argi); in pmu_args()
70 return nvkm_rd32(device, 0x10a1c4); in pmu_args()
76 struct nvkm_device *device = init->base.subdev.device; in pmu_exec() local
94 if (!post || !subdev->device->pmu) in pmu_load()
128 struct nvkm_device *device = subdev->device; in gm200_devinit_post() local
[all …]
/openbmc/linux/drivers/base/
H A Dbase.h54 struct device *dev_root;
117 struct device *device; member
150 int bus_add_device(struct device *dev);
151 void bus_probe_device(struct device *dev);
152 void bus_remove_device(struct device *dev);
159 struct device *parent);
165 struct device *dev) in driver_match_device()
182 int devres_release_all(struct device *dev);
231 bool device_links_busy(struct device *dev);
240 int devtmpfs_create_node(struct device *dev);
[all …]
/openbmc/linux/drivers/pcmcia/
H A Dsa1100_generic.h8 extern int pcmcia_adsbitsy_init(struct device *);
9 extern int pcmcia_badge4_init(struct device *);
10 extern int pcmcia_flexanet_init(struct device *);
11 extern int pcmcia_freebird_init(struct device *);
12 extern int pcmcia_gcplus_init(struct device *);
14 extern int pcmcia_h3600_init(struct device *);
16 extern int pcmcia_pfs168_init(struct device *);
17 extern int pcmcia_simpad_init(struct device *);
18 extern int pcmcia_stork_init(struct device *);
21 extern int pcmcia_xp860_init(struct device *);
[all …]
/openbmc/u-boot/drivers/block/
H A Dide.c217 ide_outb(device, ATA_DEV_HD, ATA_LBA | ATA_DEVICE(device)); in atapi_issue()
232 ide_outb(device, ATA_DEV_HD, ATA_LBA | ATA_DEVICE(device)); in atapi_issue()
243 device, c); in atapi_issue()
458 int device; in atapi_inquiry() local
460 device = dev_desc->devnum; in atapi_inquiry()
548 int device; in ide_ident() local
555 ide_outb(device, ATA_DEV_HD, ATA_LBA | ATA_DEVICE(device)); in ide_ident()
694 ide_outb(device, ATA_DEV_HD, ATA_LBA | ATA_DEVICE(device)); in ide_ident()
700 ide_outb(device, ATA_DEV_HD, ATA_LBA | ATA_DEVICE(device)); in ide_ident()
959 ide_outb(device, ATA_DEV_HD, ATA_LBA | ATA_DEVICE(device)); in ide_read()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A Dgf100.c68 struct nvkm_device *device = fifo->engine.subdev.device; in gf100_chan_unbind() local
206 struct nvkm_device *device = fifo->engine.subdev.device; in gf100_engn_mmu_fault_triggered() local
226 struct nvkm_device *device = fifo->engine.subdev.device; in gf100_engn_mmu_fault_trigger() local
313 struct nvkm_device *device = subdev->device; in gf100_runq_intr() local
537 struct nvkm_device *device = subdev->device; in gf100_fifo_mmu_fault_recover() local
677 struct nvkm_device *device = subdev->device; in gf100_fifo_intr_sched() local
698 struct nvkm_device *device = fifo->engine.subdev.device; in gf100_fifo_intr_mmu_fault_unit() local
722 struct nvkm_device *device = fifo->engine.subdev.device; in gf100_fifo_intr_mmu_fault() local
754 struct nvkm_device *device = subdev->device; in gf100_fifo_intr_runlist() local
772 struct nvkm_device *device = subdev->device; in gf100_fifo_intr_engine_unit() local
[all …]
/openbmc/linux/drivers/hid/intel-ish-hid/ishtp/
H A Dbus.c218 if (!device) in ishtp_cl_device_probe()
286 if (!device) in ishtp_cl_device_suspend()
312 if (!device) in ishtp_cl_device_resume()
425 return device; in ishtp_bus_add_device()
431 if (!device) in ishtp_bus_add_device()
439 device->fw_client = in ishtp_bus_add_device()
460 return device; in ishtp_bus_add_device()
528 device->event_cb(device); in ishtp_bus_event_work()
540 if (!device || !device->event_cb) in ishtp_cl_bus_rx_event()
837 struct device *ishtp_device(struct ishtp_cl_device *device) in ishtp_device() argument
[all …]

12345678910>>...562