Home
last modified time | relevance | path

Searched refs:dev (Results 7476 – 7500 of 26760) sorted by relevance

1...<<291292293294295296297298299300>>...1071

/openbmc/qemu/hw/usb/
H A Dhcd-xhci-sysbus.c28 void xhci_sysbus_reset(DeviceState *dev) in xhci_sysbus_reset() argument
30 XHCISysbusState *s = XHCI_SYSBUS(dev); in xhci_sysbus_reset()
35 static void xhci_sysbus_realize(DeviceState *dev, Error **errp) in xhci_sysbus_realize() argument
37 XHCISysbusState *s = XHCI_SYSBUS(dev); in xhci_sysbus_realize()
44 qdev_init_gpio_out_named(dev, s->irq, SYSBUS_DEVICE_GPIO_IRQ, in xhci_sysbus_realize()
53 sysbus_init_mmio(SYS_BUS_DEVICE(dev), &s->xhci.mem); in xhci_sysbus_realize()
73 Aml *dev = aml_device("XHCI"); in xhci_sysbus_build_aml() local
80 aml_append(dev, aml_name_decl("_HID", aml_eisaid("PNP0D10"))); in xhci_sysbus_build_aml()
81 aml_append(dev, aml_name_decl("_CRS", crs)); in xhci_sysbus_build_aml()
82 aml_append(scope, dev); in xhci_sysbus_build_aml()
/openbmc/linux/arch/arm/include/asm/hardware/
H A Dlocomo.h172 struct device dev; member
182 #define LOCOMO_DEV(_d) container_of((_d), struct locomo_dev, dev)
184 #define locomo_get_drvdata(d) dev_get_drvdata(&(d)->dev)
185 #define locomo_set_drvdata(d,p) dev_set_drvdata(&(d)->dev, p)
196 #define LOCOMO_DRIVER_NAME(_ldev) ((_ldev)->dev.driver->name)
204 void locomo_gpio_set_dir(struct device *dev, unsigned int bits, unsigned int dir);
205 int locomo_gpio_read_level(struct device *dev, unsigned int bits);
206 int locomo_gpio_read_output(struct device *dev, unsigned int bits);
207 void locomo_gpio_write(struct device *dev, unsigned int bits, unsigned int set);
213 void locomo_frontlight_set(struct locomo_dev *dev, int duty, int vr, int bpwf);
/openbmc/linux/drivers/soc/loongson/
H A Dloongson2_guts.c95 struct device_node *root, *np = pdev->dev.of_node; in loongson2_guts_probe()
96 struct device *dev = &pdev->dev; in loongson2_guts_probe() local
102 guts = devm_kzalloc(dev, sizeof(*guts), GFP_KERNEL); in loongson2_guts_probe()
118 soc_dev_attr.machine = devm_kstrdup(dev, machine, GFP_KERNEL); in loongson2_guts_probe()
123 soc_dev_attr.family = devm_kasprintf(dev, GFP_KERNEL, in loongson2_guts_probe()
126 soc_dev_attr.family = devm_kasprintf(dev, GFP_KERNEL, "Loongson"); in loongson2_guts_probe()
130 soc_dev_attr.soc_id = devm_kasprintf(dev, GFP_KERNEL, in loongson2_guts_probe()
134 soc_dev_attr.revision = devm_kasprintf(dev, GFP_KERNEL, "%d.%d", in loongson2_guts_probe()
151 static int loongson2_guts_remove(struct platform_device *dev) in loongson2_guts_remove() argument
/openbmc/linux/drivers/net/ethernet/intel/igc/
H A Digc_xdp.c13 struct net_device *dev = adapter->netdev; in igc_xdp_set_prog() local
14 bool if_running = netif_running(dev); in igc_xdp_set_prog()
17 if (dev->mtu > ETH_DATA_LEN) { in igc_xdp_set_prog()
26 igc_close(dev); in igc_xdp_set_prog()
33 xdp_features_set_redirect_target(dev, true); in igc_xdp_set_prog()
35 xdp_features_clear_redirect_target(dev); in igc_xdp_set_prog()
38 igc_open(dev); in igc_xdp_set_prog()
47 struct device *dev = &adapter->pdev->dev; in igc_xdp_enable_pool() local
68 err = xsk_pool_dma_map(pool, dev, IGC_RX_DMA_ATTR); in igc_xdp_enable_pool()
/openbmc/linux/net/ethtool/
H A Dpse-pd.c34 static int pse_get_pse_attributes(struct net_device *dev, in pse_get_pse_attributes() argument
38 struct phy_device *phydev = dev->phydev; in pse_get_pse_attributes()
60 struct net_device *dev = reply_base->dev; in pse_prepare_data() local
63 ret = ethnl_ops_begin(dev); in pse_prepare_data()
67 ret = pse_get_pse_attributes(dev, info->extack, data); in pse_prepare_data()
69 ethnl_ops_complete(dev); in pse_prepare_data()
127 struct net_device *dev = req_info->dev; in ethnl_set_pse() local
135 phydev = dev->phydev; in ethnl_set_pse()
H A Dfec.c99 struct net_device *dev = reply_base->dev; in fec_prepare_data() local
103 if (!dev->ethtool_ops->get_fecparam) in fec_prepare_data()
105 ret = ethnl_ops_begin(dev); in fec_prepare_data()
108 ret = dev->ethtool_ops->get_fecparam(dev, &fec); in fec_prepare_data()
112 dev->ethtool_ops->get_fec_stats) { in fec_prepare_data()
116 dev->ethtool_ops->get_fec_stats(dev, &stats); in fec_prepare_data()
138 ethnl_ops_complete(dev); in fec_prepare_data()
231 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_fec_validate()
240 struct net_device *dev = req_info->dev; in ethnl_set_fec() local
247 ret = dev->ethtool_ops->get_fecparam(dev, &fec); in ethnl_set_fec()
[all …]
/openbmc/linux/drivers/nvmem/
H A Dsnvs_lpgpr.c33 struct device_d *dev; member
91 struct device *dev = &pdev->dev; in snvs_lpgpr_probe() local
92 struct device_node *node = dev->of_node; in snvs_lpgpr_probe()
102 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); in snvs_lpgpr_probe()
106 dcfg = of_device_get_match_data(dev); in snvs_lpgpr_probe()
123 cfg->name = dev_name(dev); in snvs_lpgpr_probe()
124 cfg->dev = dev; in snvs_lpgpr_probe()
132 nvmem = devm_nvmem_register(dev, cfg); in snvs_lpgpr_probe()
/openbmc/linux/drivers/input/touchscreen/
H A Dipaq-micro-ts.c81 struct ipaq_micro *micro = dev_get_drvdata(pdev->dev.parent); in micro_ts_probe()
85 ts = devm_kzalloc(&pdev->dev, sizeof(*ts), GFP_KERNEL); in micro_ts_probe()
91 ts->input = devm_input_allocate_device(&pdev->dev); in micro_ts_probe()
93 dev_err(&pdev->dev, "failed to allocate input device\n"); in micro_ts_probe()
111 dev_err(&pdev->dev, "error registering touch input\n"); in micro_ts_probe()
117 dev_info(&pdev->dev, "iPAQ micro touchscreen\n"); in micro_ts_probe()
122 static int micro_ts_suspend(struct device *dev) in micro_ts_suspend() argument
124 struct touchscreen_data *ts = dev_get_drvdata(dev); in micro_ts_suspend()
131 static int micro_ts_resume(struct device *dev) in micro_ts_resume() argument
133 struct touchscreen_data *ts = dev_get_drvdata(dev); in micro_ts_resume()
/openbmc/linux/drivers/acpi/
H A Dacpi_platform.c38 struct device *dev; in acpi_platform_device_find_by_companion() local
40 dev = bus_find_device_by_acpi_dev(&platform_bus_type, adev); in acpi_platform_device_find_by_companion()
41 return dev ? to_platform_device(dev) : NULL; in acpi_platform_device_find_by_companion()
63 put_device(&pdev->dev); in acpi_platform_device_remove_notify()
165 pdevinfo.name = dev_name(&adev->dev); in acpi_create_platform_device()
179 dev_err(&adev->dev, "platform device creation failed: %ld\n", in acpi_create_platform_device()
182 set_dev_node(&pdev->dev, acpi_get_node(adev->handle)); in acpi_create_platform_device()
183 dev_dbg(&adev->dev, "created platform device %s\n", in acpi_create_platform_device()
184 dev_name(&pdev->dev)); in acpi_create_platform_device()
/openbmc/linux/drivers/ata/
H A Dpata_triflex.c51 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in triflex_prereset()
75 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in triflex_load_timing()
144 triflex_load_timing(qc->ap, qc->dev, qc->dev->dma_mode); in triflex_bmdma_start()
160 triflex_load_timing(qc->ap, qc->dev, qc->dev->pio_mode); in triflex_bmdma_stop()
176 static int triflex_init_one(struct pci_dev *dev, const struct pci_device_id *id) in triflex_init_one() argument
186 ata_print_version_once(&dev->dev, DRV_VERSION); in triflex_init_one()
188 return ata_pci_bmdma_init_one(dev, ppi, &triflex_sht, NULL, 0); in triflex_init_one()
/openbmc/linux/drivers/opp/
H A Dcpu.c43 int dev_pm_opp_init_cpufreq_table(struct device *dev, in dev_pm_opp_init_cpufreq_table() argument
51 max_opps = dev_pm_opp_get_opp_count(dev); in dev_pm_opp_init_cpufreq_table()
61 opp = dev_pm_opp_find_freq_ceil(dev, &rate); in dev_pm_opp_init_cpufreq_table()
96 void dev_pm_opp_free_cpufreq_table(struct device *dev, in dev_pm_opp_free_cpufreq_table() argument
160 struct device *dev; in dev_pm_opp_set_sharing_cpus() local
171 dev = get_cpu_device(cpu); in dev_pm_opp_set_sharing_cpus()
172 if (!dev) { in dev_pm_opp_set_sharing_cpus()
178 opp_dev = _add_opp_dev(dev, opp_table); in dev_pm_opp_set_sharing_cpus()
180 dev_err(dev, "%s: failed to add opp-dev for cpu%d device\n", in dev_pm_opp_set_sharing_cpus()
225 cpumask_set_cpu(opp_dev->dev->id, cpumask); in dev_pm_opp_get_sharing_cpus()
/openbmc/linux/arch/mips/ralink/
H A Dtimer.c30 struct device *dev; member
61 dev_name(rt->dev), rt); in rt_timer_request()
63 dev_err(rt->dev, "failed to request irq\n"); in rt_timer_request()
101 rt = devm_kzalloc(&pdev->dev, sizeof(*rt), GFP_KERNEL); in rt_timer_probe()
103 dev_err(&pdev->dev, "failed to allocate memory\n"); in rt_timer_probe()
115 clk = devm_clk_get(&pdev->dev, NULL); in rt_timer_probe()
117 dev_err(&pdev->dev, "failed get clock rate\n"); in rt_timer_probe()
125 rt->dev = &pdev->dev; in rt_timer_probe()
132 dev_info(&pdev->dev, "maximum frequency is %luHz\n", rt->timer_freq); in rt_timer_probe()
/openbmc/linux/drivers/misc/pvpanic/
H A Dpvpanic.c92 static ssize_t capability_show(struct device *dev, struct device_attribute *attr, char *buf) in capability_show() argument
94 struct pvpanic_instance *pi = dev_get_drvdata(dev); in capability_show()
100 static ssize_t events_show(struct device *dev, struct device_attribute *attr, char *buf) in events_show() argument
102 struct pvpanic_instance *pi = dev_get_drvdata(dev); in events_show()
107 static ssize_t events_store(struct device *dev, struct device_attribute *attr, in events_store() argument
110 struct pvpanic_instance *pi = dev_get_drvdata(dev); in events_store()
143 int devm_pvpanic_probe(struct device *dev, void __iomem *base) in devm_pvpanic_probe() argument
150 pi = devm_kmalloc(dev, sizeof(*pi), GFP_KERNEL); in devm_pvpanic_probe()
165 dev_set_drvdata(dev, pi); in devm_pvpanic_probe()
167 return devm_add_action_or_reset(dev, pvpanic_remove, pi); in devm_pvpanic_probe()
/openbmc/linux/drivers/scsi/
H A Dmegaraid.c251 dma_free_coherent(&adapter->dev->dev, in mega_query_adapter()
273 dev_warn(&adapter->dev->dev, in mega_query_adapter()
680 dev_notice(&adapter->dev->dev, in mega_build_cmd()
985 dev_notice(&adapter->dev->dev, in mega_prepare_passthru()
1048 dev_notice(&adapter->dev->dev, in mega_prepare_extpassthru()
1470 dev_warn(&adapter->dev->dev, in mega_cmd_done()
1489 dev_warn(&adapter->dev->dev, in mega_cmd_done()
1952 dev_warn(&adapter->dev->dev, in megaraid_abort_and_reset()
1965 dev_warn(&adapter->dev->dev, in megaraid_abort_and_reset()
2824 dev_info(&adapter->dev->dev, in megaraid_biosparam()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_chardev.c328 dev = pdd->dev; in kfd_ioctl_create_queue()
383 dev->id); in kfd_ioctl_create_queue()
912 dev = pdd->dev; in kfd_ioctl_set_scratch_backing_va()
1109 dev = pdd->dev; in kfd_ioctl_alloc_memory_of_gpu()
1285 dev = pdd->dev; in kfd_ioctl_map_memory_to_gpu()
1321 dev_err(dev->adev->dev, in kfd_ioctl_map_memory_to_gpu()
1525 if (dev && !kfd_devcgroup_check_permission(dev)) in kfd_ioctl_get_dmabuf_info()
1527 if (!dev) in kfd_ioctl_get_dmabuf_info()
1632 if (!dev) in kfd_ioctl_export_dmabuf()
3401 if (!dev) in kfd_mmap()
[all …]
/openbmc/u-boot/drivers/phy/
H A Dphy-stm32-usbphyc.c146 struct stm32_usbphyc *usbphyc = dev_get_priv(phy->dev); in stm32_usbphyc_phy_init()
185 struct stm32_usbphyc *usbphyc = dev_get_priv(phy->dev); in stm32_usbphyc_phy_exit()
211 struct stm32_usbphyc *usbphyc = dev_get_priv(phy->dev); in stm32_usbphyc_phy_power_on()
240 struct stm32_usbphyc *usbphyc = dev_get_priv(phy->dev); in stm32_usbphyc_phy_power_off()
326 static int stm32_usbphyc_probe(struct udevice *dev) in stm32_usbphyc_probe() argument
328 struct stm32_usbphyc *usbphyc = dev_get_priv(dev); in stm32_usbphyc_probe()
333 usbphyc->base = dev_read_addr(dev); in stm32_usbphyc_probe()
338 ret = clk_get_by_index(dev, 0, &usbphyc->clk); in stm32_usbphyc_probe()
347 ret = reset_get_by_index(dev, 0, &reset); in stm32_usbphyc_probe()
358 node = dev_read_first_subnode(dev); in stm32_usbphyc_probe()
[all …]
/openbmc/linux/drivers/leds/
H A Dleds-mc13783.c117 struct device *dev = &pdev->dev; in mc13xxx_led_probe_dt() local
120 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); in mc13xxx_led_probe_dt()
178 struct device *dev = &pdev->dev; in mc13xxx_led_probe() local
180 struct mc13xxx *mcdev = dev_get_drvdata(dev->parent); in mc13xxx_led_probe()
187 leds = devm_kzalloc(dev, sizeof(*leds), GFP_KERNEL); in mc13xxx_led_probe()
195 if (dev_of_node(dev->parent)) { in mc13xxx_led_probe()
206 dev_err(dev, "Invalid LED count %d\n", leds->num_leds); in mc13xxx_led_probe()
232 dev_err(dev, "Invalid ID %i\n", id); in mc13xxx_led_probe()
237 dev_warn(dev, "LED %i already initialized\n", id); in mc13xxx_led_probe()
250 ret = led_classdev_register(dev->parent, &leds->led[i].cdev); in mc13xxx_led_probe()
[all …]
/openbmc/qemu/include/hw/
H A Dqdev-properties.h182 bool qdev_prop_set_drive_err(DeviceState *dev, const char *name,
189 void qdev_prop_set_bit(DeviceState *dev, const char *name, bool value);
190 void qdev_prop_set_uint8(DeviceState *dev, const char *name, uint8_t value);
193 void qdev_prop_set_int32(DeviceState *dev, const char *name, int32_t value);
196 void qdev_prop_set_chr(DeviceState *dev, const char *name, Chardev *value);
198 void qdev_prop_set_drive(DeviceState *dev, const char *name,
200 void qdev_prop_set_macaddr(DeviceState *dev, const char *name,
202 void qdev_prop_set_enum(DeviceState *dev, const char *name, int value);
213 void qdev_prop_set_globals(DeviceState *dev);
226 void qdev_property_add_static(DeviceState *dev, Property *prop);
[all …]
/openbmc/qemu/hw/virtio/
H A Dvhost-user-device.c148 virtio_notify_config(dev->vdev); in vub_config_notifier()
176 static int vub_connect(DeviceState *dev) in vub_connect() argument
178 VirtIODevice *vdev = VIRTIO_DEVICE(dev); in vub_connect()
203 static void vub_disconnect(DeviceState *dev) in vub_disconnect() argument
205 VirtIODevice *vdev = VIRTIO_DEVICE(dev); in vub_disconnect()
220 DeviceState *dev = opaque; in vub_event() local
221 VirtIODevice *vdev = VIRTIO_DEVICE(dev); in vub_event()
226 if (vub_connect(dev) < 0) { in vub_event()
232 vub_disconnect(dev); in vub_event()
244 VirtIODevice *vdev = VIRTIO_DEVICE(dev); in vub_device_realize()
[all …]
/openbmc/linux/drivers/hwmon/
H A Dadm1029.c114 static struct adm1029_data *adm1029_update_device(struct device *dev) in adm1029_update_device() argument
116 struct adm1029_data *data = dev_get_drvdata(dev); in adm1029_update_device()
127 dev_dbg(&client->dev, "Updating adm1029 data\n"); in adm1029_update_device()
162 struct adm1029_data *data = adm1029_update_device(dev); in temp_show()
171 struct adm1029_data *data = adm1029_update_device(dev); in fan_show()
189 struct adm1029_data *data = adm1029_update_device(dev); in fan_div_show()
196 static ssize_t fan_div_store(struct device *dev, in fan_div_store() argument
200 struct adm1029_data *data = dev_get_drvdata(dev); in fan_div_store()
228 dev_err(&client->dev, in fan_div_store()
349 dev_err(&client->dev, "Initialization failed!\n"); in adm1029_init_client()
[all …]
/openbmc/linux/drivers/gpio/
H A Dgpio-hisi.c37 struct device *dev; member
235 static void hisi_gpio_get_pdata(struct device *dev, in hisi_gpio_get_pdata() argument
238 struct platform_device *pdev = to_platform_device(dev); in hisi_gpio_get_pdata()
242 device_for_each_child_node(dev, fwnode) { in hisi_gpio_get_pdata()
246 dev_err(dev, in hisi_gpio_get_pdata()
257 dev_info(dev, in hisi_gpio_get_pdata()
267 struct device *dev = &pdev->dev; in hisi_gpio_probe() local
276 port_num = device_get_child_node_count(dev); in hisi_gpio_probe()
288 hisi_gpio_get_pdata(dev, hisi_gpio); in hisi_gpio_probe()
290 hisi_gpio->dev = dev; in hisi_gpio_probe()
[all …]
/openbmc/linux/drivers/gpu/drm/sti/
H A Dsti_crtc.c52 struct device *dev = mixer->dev; in sti_crtc_mode_set() local
53 struct sti_compositor *compo = dev_get_drvdata(dev); in sti_crtc_mode_set()
106 struct device *dev = mixer->dev; in sti_crtc_disable() local
107 struct sti_compositor *compo = dev_get_drvdata(dev); in sti_crtc_disable()
137 struct drm_device *drm_dev = crtc->dev; in sti_crtc_atomic_flush()
212 spin_lock_irqsave(&crtc->dev->event_lock, flags); in sti_crtc_atomic_flush()
217 spin_unlock_irqrestore(&crtc->dev->event_lock, flags); in sti_crtc_atomic_flush()
283 struct drm_device *dev = crtc->dev; in sti_crtc_enable_vblank() local
285 struct sti_private *dev_priv = dev->dev_private; in sti_crtc_enable_vblank()
302 struct drm_device *drm_dev = crtc->dev; in sti_crtc_disable_vblank()
[all …]
/openbmc/linux/drivers/gpu/drm/msm/
H A Dmsm_gpu_devfreq.c22 struct msm_gpu *gpu = dev_to_gpu(dev); in msm_devfreq_target()
30 opp = devfreq_recommended_opp(dev, freq, flags); in msm_devfreq_target()
51 dev_pm_opp_set_rate(dev, *freq); in msm_devfreq_target()
77 static int msm_devfreq_get_dev_status(struct device *dev, in msm_devfreq_get_dev_status() argument
80 struct msm_gpu *gpu = dev_to_gpu(dev); in msm_devfreq_get_dev_status()
117 *freq = get_freq(dev_to_gpu(dev)); in msm_devfreq_get_cur_freq()
142 struct msm_drm_private *priv = gpu->dev->dev_private; in msm_devfreq_init()
173 df->devfreq = devm_devfreq_add_device(&gpu->pdev->dev, in msm_devfreq_init()
188 DRM_DEV_ERROR(&gpu->pdev->dev, in msm_devfreq_init()
320 msm_devfreq_target(&gpu->pdev->dev, &target_freq, 0); in msm_devfreq_active()
[all …]
/openbmc/linux/drivers/media/test-drivers/vicodec/
H A Dvicodec-core.c257 struct vicodec_dev *dev = ctx->dev; in device_process() local
403 struct vicodec_dev *dev = ctx->dev; in device_run() local
1842 ctx->dev = dev; in vicodec_open()
2079 kfree(dev); in vicodec_v4l2_dev_release()
2087 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in vicodec_probe()
2088 if (!dev) in vicodec_probe()
2091 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev); in vicodec_probe()
2098 dev->mdev.dev = &pdev->dev; in vicodec_probe()
2099 strscpy(dev->mdev.model, "vicodec", sizeof(dev->mdev.model)); in vicodec_probe()
2104 dev->v4l2_dev.mdev = &dev->mdev; in vicodec_probe()
[all …]
/openbmc/openbmc/meta-facebook/meta-greatlakes/recipes-phosphor/ipmi/
H A Dphosphor-ipmi-ipmb_%.bbappend2 /dev/ipmb-0 \
3 /dev/ipmb-1 \
4 /dev/ipmb-2 \
5 /dev/ipmb-3 \
6 /dev/ipmb-9 \

1...<<291292293294295296297298299300>>...1071