Home
last modified time | relevance | path

Searched refs:dev (Results 6726 – 6750 of 26672) sorted by relevance

1...<<261262263264265266267268269270>>...1067

/openbmc/linux/drivers/net/ethernet/sunplus/
H A Dspl2sw_driver.c92 mapping = dma_map_single(&comm->pdev->dev, skb->data, in spl2sw_ethernet_start_xmit()
94 if (dma_mapping_error(&comm->pdev->dev, mapping)) { in spl2sw_ethernet_start_xmit()
272 ndev = devm_alloc_etherdev(&pdev->dev, sizeof(*mac)); in spl2sw_init_netdev()
277 SET_NETDEV_DEV(ndev, &pdev->dev); in spl2sw_init_netdev()
359 comm->clk = devm_clk_get(&pdev->dev, NULL); in spl2sw_probe()
361 dev_err_probe(&pdev->dev, PTR_ERR(comm->clk), in spl2sw_probe()
369 dev_err_probe(&pdev->dev, PTR_ERR(comm->rstc), in spl2sw_probe()
388 dev_name(&pdev->dev), comm); in spl2sw_probe()
390 dev_err(&pdev->dev, "Failed to request irq #%d!\n", irq); in spl2sw_probe()
408 dev_err(&pdev->dev, "Failed to initialize mdio bus!\n"); in spl2sw_probe()
[all …]
/openbmc/linux/drivers/leds/
H A Dleds-lp50xx.c290 struct device *dev; member
323 dev_err(led->priv->dev, in lp50xx_brightness_set()
339 dev_err(led->priv->dev, in lp50xx_brightness_set()
403 dev_err(priv->dev, "reg property is invalid\n"); in lp50xx_probe_leds()
411 dev_err(priv->dev, "reg property is missing\n"); in lp50xx_probe_leds()
462 device_for_each_child_node(priv->dev, child) { in lp50xx_probe_dt()
466 dev_err(priv->dev, "reg property is invalid\n"); in lp50xx_probe_dt()
493 dev_err(priv->dev, "Cannot read color\n"); in lp50xx_probe_dt()
530 count = device_get_child_node_count(&client->dev); in lp50xx_probe()
543 led->dev = &client->dev; in lp50xx_probe()
[all …]
/openbmc/linux/drivers/reset/
H A Dreset-npcm.c96 struct device *dev; member
181 dev_err(rcdev->dev, "Error reset number (%d)\n", bit); in npcm_reset_xlate()
346 struct device *dev = &pdev->dev; in npcm_usb_reset() local
360 of_match_device(dev->driver->of_match_table, dev)->data; in npcm_usb_reset()
389 static void npcm_clock_adev_release(struct device *dev) in npcm_clock_adev_release() argument
391 struct auxiliary_device *adev = to_auxiliary_dev(dev); in npcm_clock_adev_release()
411 adev->dev.parent = rst_data->dev; in npcm_clock_adev_alloc()
412 adev->dev.release = npcm_clock_adev_release; in npcm_clock_adev_alloc()
459 rc->rcdev.of_node = pdev->dev.of_node; in npcm_rc_probe()
462 rc->dev = &pdev->dev; in npcm_rc_probe()
[all …]
/openbmc/linux/drivers/usb/dwc2/
H A Dgadget.c376 dev_err(hsotg->dev, in dwc2_hsotg_init_fifo()
571 dev_dbg(hsotg->dev, in dwc2_hsotg_write_fifo()
1240 dev_dbg(hsotg->dev, in dwc2_hsotg_start_req()
1301 dev_err(hsotg->dev, in dwc2_hsotg_handle_unaligned_buf_start()
1912 dev_dbg(hsotg->dev, in dwc2_hsotg_stall_ep0()
1939 dev_dbg(hsotg->dev, in dwc2_hsotg_process_control()
4558 hsotg->gadget.dev.of_node = hsotg->dev->of_node; in dwc2_hsotg_udc_start()
4927 struct device *dev = hsotg->dev; in dwc2_hsotg_dump() local
4951 dev_info(dev, in dwc2_hsotg_dump()
4958 dev_info(dev, in dwc2_hsotg_dump()
[all …]
/openbmc/linux/drivers/usb/serial/
H A Dkeyspan.c871 dev_dbg(&urb->dev->dev, "%s - nonzero status: %d\n", in usa26_instat_callback()
990 dev_dbg(&urb->dev->dev, "%s - nonzero status: %d\n", in usa28_instat_callback()
1073 dev_dbg(&urb->dev->dev, "%s - nonzero status: %d\n", in usa49_instat_callback()
1088 dev_dbg(&urb->dev->dev, "%s - Unexpected port number %d\n", in usa49_instat_callback()
1181 dev_dbg(&urb->dev->dev, "%s - nonzero status: %d\n", in usa49wg_indat_callback()
1194 dev_dbg(&urb->dev->dev, "%s - Unexpected port number %d\n", in usa49wg_indat_callback()
1331 dev_dbg(&urb->dev->dev, "%s - nonzero status: %d\n", in usa90_instat_callback()
1376 dev_dbg(&urb->dev->dev, "%s - sending setup\n", __func__); in usa90_outcont_callback()
1397 dev_dbg(&urb->dev->dev, "%s - nonzero status: %d\n", in usa67_instat_callback()
1669 dev_err(&serial->dev->dev, "Unknown product ID (%04x)\n", in keyspan_fake_startup()
[all …]
/openbmc/u-boot/drivers/usb/eth/
H A Dmcs7830.c588 struct ueth_data *dev = eth->priv; in mcs7830_init() local
590 return mcs7830_init_common(dev->pusb_dev); in mcs7830_init()
604 struct ueth_data *dev = eth->priv; in mcs7830_send() local
606 return mcs7830_send_common(dev, packet, length); in mcs7830_send()
730 iface = &dev->config.if_desc[ifnum]; in mcs7830_eth_probe()
740 dev->descriptor.idVendor, dev->descriptor.idProduct); in mcs7830_eth_probe()
750 ss->pusb_dev = dev; in mcs7830_eth_probe()
800 dev->privptr = ss; in mcs7830_eth_probe()
848 static int mcs7830_eth_start(struct udevice *dev) in mcs7830_eth_start() argument
855 void mcs7830_eth_stop(struct udevice *dev) in mcs7830_eth_stop() argument
[all …]
/openbmc/linux/drivers/hwmon/
H A Di5k_amb.c140 static ssize_t store_amb_min(struct device *dev, in store_amb_min() argument
200 static ssize_t show_amb_min(struct device *dev, in show_amb_min() argument
210 static ssize_t show_amb_mid(struct device *dev, in show_amb_mid() argument
220 static ssize_t show_amb_max(struct device *dev, in show_amb_max() argument
240 static ssize_t show_label(struct device *dev, in show_label() argument
290 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init()
305 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init()
321 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init()
337 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init()
353 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init()
[all …]
H A Dlm73.c66 struct lm73_data *data = dev_get_drvdata(dev); in temp_store()
81 static ssize_t temp_show(struct device *dev, struct device_attribute *da, in temp_show() argument
85 struct lm73_data *data = dev_get_drvdata(dev); in temp_show()
101 struct lm73_data *data = dev_get_drvdata(dev); in convrate_store()
136 struct lm73_data *data = dev_get_drvdata(dev); in convrate_show()
143 static ssize_t maxmin_alarm_show(struct device *dev, in maxmin_alarm_show() argument
147 struct lm73_data *data = dev_get_drvdata(dev); in maxmin_alarm_show()
195 struct device *dev = &client->dev; in lm73_probe() local
200 data = devm_kzalloc(dev, sizeof(struct lm73_data), GFP_KERNEL); in lm73_probe()
212 hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, in lm73_probe()
[all …]
/openbmc/linux/drivers/rtc/
H A Drtc-ac100.c92 struct device *dev; member
308 struct device_node *np = chip->dev->of_node; in ac100_rtc_register_clks()
312 chip->clk_data = devm_kzalloc(chip->dev, in ac100_rtc_register_clks()
352 ret = devm_clk_hw_register(chip->dev, &clk->hw); in ac100_rtc_register_clks()
377 of_clk_del_provider(chip->dev->of_node); in ac100_rtc_unregister_clks()
386 struct ac100_rtc_dev *chip = dev_get_drvdata(dev); in ac100_rtc_get_time()
548 ret = ac100_rtc_alarm_irq_enable(chip->dev, 0); in ac100_rtc_irq()
577 chip->dev = &pdev->dev; in ac100_rtc_probe()
584 chip->rtc = devm_rtc_allocate_device(&pdev->dev); in ac100_rtc_probe()
593 dev_name(&pdev->dev), chip); in ac100_rtc_probe()
[all …]
/openbmc/linux/drivers/mmc/host/
H A Dlitex_mmc.c126 struct device *dev = mmc_dev(host->mmc); in litex_mmc_send_cmd() local
185 dev_err(dev, "DMA timeout (cmd %d)\n", cmd); in litex_mmc_send_cmd()
294 struct device *dev = mmc_dev(host->mmc); in litex_mmc_do_dma() local
341 struct device *dev = mmc_dev(mmc); in litex_mmc_request() local
380 dev_err(dev, "Can't set bus width!\n"); in litex_mmc_request()
419 dma_unmap_sg(dev, data->sg, data->sg_len, in litex_mmc_request()
436 struct device *dev = mmc_dev(host->mmc); in litex_mmc_setclk() local
473 struct device *dev = mmc_dev(host->mmc); in litex_mmc_irq_init() local
516 struct device *dev = &pdev->dev; in litex_mmc_probe() local
534 return dev_err_probe(dev, ret, in litex_mmc_probe()
[all …]
/openbmc/qemu/hw/acpi/
H A Dich9.c449 if (object_dynamic_cast(OBJECT(dev), TYPE_PCI_DEVICE)) { in ich9_pm_device_pre_plug_cb()
454 if (object_dynamic_cast(OBJECT(dev), TYPE_CPU)) { in ich9_pm_device_pre_plug_cb()
471 if (object_dynamic_cast(OBJECT(dev), TYPE_PC_DIMM)) { in ich9_pm_device_plug_cb()
473 nvdimm_acpi_plug_cb(hotplug_dev, dev); in ich9_pm_device_plug_cb()
476 dev, errp); in ich9_pm_device_plug_cb()
486 dev, errp); in ich9_pm_device_plug_cb()
498 if (object_dynamic_cast(OBJECT(dev), TYPE_PC_DIMM)) { in ich9_pm_device_unplug_request_cb()
517 dev, errp); in ich9_pm_device_unplug_request_cb()
521 dev, errp); in ich9_pm_device_unplug_request_cb()
533 if (object_dynamic_cast(OBJECT(dev), TYPE_PC_DIMM)) { in ich9_pm_device_unplug_cb()
[all …]
/openbmc/linux/drivers/iio/adc/
H A Dad7606.c93 return st->bops->read_block(st->dev, num, data); in ad7606_read_samples()
196 struct iio_dev *indio_dev = dev_to_iio_dev(dev); in in_voltage_scale_available_show()
278 struct iio_dev *indio_dev = dev_to_iio_dev(dev); in ad7606_oversampling_ratio_avail()
408 struct device *dev = st->dev; in ad7606_request_gpios() local
549 dev_set_drvdata(dev, indio_dev); in ad7606_probe()
551 st->dev = dev; in ad7606_probe()
561 ret = devm_regulator_get_enable(dev, "avcc"); in ad7606_probe()
563 return dev_err_probe(dev, ret, in ad7606_probe()
640 ret = devm_request_threaded_irq(dev, irq, in ad7606_probe()
661 static int ad7606_suspend(struct device *dev) in ad7606_suspend() argument
[all …]
/openbmc/u-boot/drivers/usb/gadget/udc/
H A Dudc-core.c39 struct device dev; member
159 static void usb_udc_release(struct device *dev) in usb_udc_release() argument
163 udc = container_of(dev, struct usb_udc, dev); in usb_udc_release()
177 void (*release)(struct device *dev)) in usb_add_gadget_udc_release() argument
186 dev_set_name(&gadget->dev, "gadget"); in usb_add_gadget_udc_release()
187 gadget->dev.parent = parent; in usb_add_gadget_udc_release()
189 udc->dev.release = usb_udc_release; in usb_add_gadget_udc_release()
190 udc->dev.class = udc_class; in usb_add_gadget_udc_release()
191 udc->dev.parent = parent; in usb_add_gadget_udc_release()
274 dev_dbg(&udc->dev, "registering UDC driver [%s]\n", in udc_bind_to_driver()
[all …]
/openbmc/u-boot/drivers/serial/
H A Dserial_mtk.c129 struct mtk_serial_priv *priv = dev_get_priv(dev); in mtk_serial_setbrg()
138 struct mtk_serial_priv *priv = dev_get_priv(dev); in mtk_serial_putc()
151 static int mtk_serial_getc(struct udevice *dev) in mtk_serial_getc() argument
153 struct mtk_serial_priv *priv = dev_get_priv(dev); in mtk_serial_getc()
163 struct mtk_serial_priv *priv = dev_get_priv(dev); in mtk_serial_pending()
171 static int mtk_serial_probe(struct udevice *dev) in mtk_serial_probe() argument
173 struct mtk_serial_priv *priv = dev_get_priv(dev); in mtk_serial_probe()
181 static int mtk_serial_ofdata_to_platdata(struct udevice *dev) in mtk_serial_ofdata_to_platdata() argument
183 struct mtk_serial_priv *priv = dev_get_priv(dev); in mtk_serial_ofdata_to_platdata()
188 addr = dev_read_addr(dev); in mtk_serial_ofdata_to_platdata()
[all …]
/openbmc/linux/drivers/hwtracing/intel_th/
H A Dsth.c25 struct device *dev; member
188 struct device *dev = &thdev->dev; in intel_th_sth_probe() local
198 base = devm_ioremap(dev, res->start, resource_size(res)); in intel_th_sth_probe()
206 channels = devm_ioremap(dev, res->start, resource_size(res)); in intel_th_sth_probe()
210 sth = devm_kzalloc(dev, sizeof(*sth), GFP_KERNEL); in intel_th_sth_probe()
214 sth->dev = dev; in intel_th_sth_probe()
218 sth->stm.name = dev_name(dev); in intel_th_sth_probe()
228 err = stm_register_device(dev, &sth->stm, THIS_MODULE); in intel_th_sth_probe()
230 dev_err(dev, "stm_register_device failed\n"); in intel_th_sth_probe()
234 dev_set_drvdata(dev, sth); in intel_th_sth_probe()
[all …]
/openbmc/linux/drivers/mfd/
H A Dtps65218.c87 dev_err(tps->dev, "Read from reg 0x%x failed\n", reg); in tps65218_update_bits()
97 dev_err(tps->dev, "Write for reg 0x%x failed\n", reg); in tps65218_update_bits()
209 if (of_property_read_u32(tps->dev->of_node, in tps65218_voltage_set_strict()
215 dev_err(tps->dev, in tps65218_voltage_set_strict()
231 if (of_property_read_u32(tps->dev->of_node, in tps65218_voltage_set_uv_hyst()
236 dev_err(tps->dev, in tps65218_voltage_set_uv_hyst()
253 if (of_property_read_u32(tps->dev->of_node, in tps65218_voltage_set_uvlo()
271 dev_err(tps->dev, in tps65218_voltage_set_uvlo()
288 tps = devm_kzalloc(&client->dev, sizeof(*tps), GFP_KERNEL); in tps65218_probe()
293 tps->dev = &client->dev; in tps65218_probe()
[all …]
/openbmc/linux/drivers/char/hw_random/
H A Doptee-rng.c62 struct device *dev; member
105 dev_err(pvt_data->dev, "tee_shm_get_va failed\n"); in get_optee_rng_data()
176 static int get_optee_rng_info(struct device *dev) in get_optee_rng_info() argument
195 dev_err(dev, "TA_CMD_GET_RNG_INFO invoke err: %x\n", in get_optee_rng_info()
214 static int optee_rng_probe(struct device *dev) in optee_rng_probe() argument
235 dev_err(dev, "tee_client_open_session failed, err: %x\n", in optee_rng_probe()
242 err = get_optee_rng_info(dev); in optee_rng_probe()
246 err = devm_hwrng_register(dev, &pvt_data.optee_rng); in optee_rng_probe()
248 dev_err(dev, "hwrng registration failed (%d)\n", err); in optee_rng_probe()
252 pvt_data.dev = dev; in optee_rng_probe()
[all …]
/openbmc/linux/drivers/nfc/st-nci/
H A Di2c.c125 nfc_err(&client->dev, "invalid frame len\n"); in st_nci_i2c_read()
200 struct device *dev = &client->dev; in st_nci_i2c_probe() local
205 nfc_err(&client->dev, "Need I2C_FUNC_I2C\n"); in st_nci_i2c_probe()
217 r = devm_acpi_dev_add_driver_gpios(dev, acpi_st_nci_gpios); in st_nci_i2c_probe()
219 dev_dbg(dev, "Unable to add GPIO mapping table\n"); in st_nci_i2c_probe()
224 nfc_err(dev, "Unable to get RESET GPIO\n"); in st_nci_i2c_probe()
229 device_property_read_bool(dev, "ese-present"); in st_nci_i2c_probe()
231 device_property_read_bool(dev, "uicc-present"); in st_nci_i2c_probe()
233 r = ndlc_probe(phy, &i2c_phy_ops, &client->dev, in st_nci_i2c_probe()
237 nfc_err(&client->dev, "Unable to register ndlc layer\n"); in st_nci_i2c_probe()
[all …]
/openbmc/linux/include/linux/surface_aggregator/
H A Ddevice.h170 struct device dev; member
253 const void *ssam_device_get_match_data(const struct ssam_device *dev);
271 dev_dbg(&sdev->dev, "marking device as hot-removed\n"); in ssam_device_mark_hot_removed()
304 return sdev ? to_ssam_device(get_device(&sdev->dev)) : NULL; in ssam_device_get()
320 put_device(&sdev->dev); in ssam_device_put()
332 return dev_get_drvdata(&sdev->dev); in ssam_device_get_drvdata()
342 dev_set_drvdata(&sdev->dev, data); in ssam_device_set_drvdata()
375 void ssam_remove_clients(struct device *dev);
385 static inline void ssam_remove_clients(struct device *dev) {} in ssam_remove_clients() argument
406 return __ssam_register_clients(dev, ctrl, dev_fwnode(dev)); in ssam_register_clients()
[all …]
/openbmc/linux/drivers/net/ethernet/amd/pds_core/
H A Dauxbus.c37 dev_err(pf->dev, "%s: device returned null client_id\n", in pds_client_register()
42 dev_dbg(pf->dev, "%s: device returned client_id %d for %s\n", in pds_client_register()
107 dev_dbg(pf->dev, "%s: %s opcode %d\n", in pds_client_adminq_cmd()
108 __func__, dev_name(&padev->aux_dev.dev), req->opcode); in pds_client_adminq_cmd()
122 dev_info(pf->dev, "client admin cmd failed: %pe\n", in pds_client_adminq_cmd()
129 static void pdsc_auxbus_dev_release(struct device *dev) in pdsc_auxbus_dev_release() argument
132 container_of(dev, struct pds_auxiliary_dev, aux_dev.dev); in pdsc_auxbus_dev_release()
156 aux_dev->dev.parent = cf->dev; in pdsc_auxbus_dev_register()
157 aux_dev->dev.release = pdsc_auxbus_dev_release; in pdsc_auxbus_dev_register()
161 dev_warn(cf->dev, "auxiliary_device_init of %s failed: %pe\n", in pdsc_auxbus_dev_register()
[all …]
/openbmc/linux/drivers/video/fbdev/omap2/omapfb/displays/
H A Dconnector-analog-tv.c20 struct device *dev; member
50 dev_dbg(ddata->dev, "connect\n"); in tvc_connect()
63 dev_dbg(ddata->dev, "disconnect\n"); in tvc_disconnect()
77 dev_dbg(ddata->dev, "enable\n"); in tvc_enable()
87 if (!ddata->dev->of_node) { in tvc_enable()
108 dev_dbg(ddata->dev, "disable\n"); in tvc_disable()
186 if (!pdev->dev.of_node) in tvc_probe()
194 ddata->dev = &pdev->dev; in tvc_probe()
199 dev_err(&pdev->dev, "failed to find video source\n"); in tvc_probe()
207 dssdev->dev = &pdev->dev; in tvc_probe()
[all …]
/openbmc/linux/drivers/regulator/
H A Drt4801-regulator.c31 struct device *dev; member
45 dev_warn(priv->dev, "duplicated enable-gpios property\n"); in rt4801_of_parse_cb()
48 priv->enable_gpios[id] = devm_fwnode_gpiod_get_index(priv->dev, in rt4801_of_parse_cb()
91 dev_warn(&rdev->dev, "no dedicated gpio can control\n"); in rt4801_enable()
112 dev_warn(&rdev->dev, "no dedicated gpio can control\n"); in rt4801_disable()
183 priv = devm_kzalloc(&i2c->dev, sizeof(*priv), GFP_KERNEL); in rt4801_probe()
187 priv->dev = &i2c->dev; in rt4801_probe()
193 dev_err(&i2c->dev, "Failed to init regmap\n"); in rt4801_probe()
203 dev_err(&i2c->dev, "Failed to get gpios\n"); in rt4801_probe()
210 struct regulator_config config = { .dev = &i2c->dev, .driver_data = priv, in rt4801_probe()
[all …]
/openbmc/linux/tools/testing/selftests/firmware/
H A Dfw_filesystem.sh29 if printf '\000' >"$DIR"/trigger_request 2> /dev/null; then
38 if printf '\000' >"$DIR"/trigger_async_request 2> /dev/null; then
45 if echo -n "nope-$NAME" >"$DIR"/trigger_request 2> /dev/null; then
49 if diff -q "$FW" /dev/test_firmware >/dev/null ; then
66 if ! diff -q "$FW" /dev/test_firmware >/dev/null ; then
84 if ! diff -q "$FW" /dev/test_firmware >/dev/null ; then
197 echo -n 1 > $DIR/trigger_batched_requests 2>/dev/null
202 echo -n 1 > $DIR/trigger_batched_requests_async 2> /dev/null
207 echo -n $1 > $DIR/config_read_fw_idx 2> /dev/null
226 if ! diff -q -Z "$fwfile" $DIR/read_firmware 2>/dev/null ; then
[all …]
/openbmc/linux/drivers/media/rc/
H A Dmeson-ir.c89 struct device *dev = &pdev->dev; in meson_ir_probe() local
90 struct device_node *node = dev->of_node; in meson_ir_probe()
104 ir->reg = devm_regmap_init_mmio(&pdev->dev, res_start, in meson_ir_probe()
113 ir->rc = devm_rc_allocate_device(dev, RC_DRIVER_IR_RAW); in meson_ir_probe()
115 dev_err(dev, "failed to allocate rc device\n"); in meson_ir_probe()
135 ret = devm_rc_register_device(dev, ir->rc); in meson_ir_probe()
137 dev_err(dev, "failed to register rc device\n"); in meson_ir_probe()
143 dev_err(dev, "failed to request irq\n"); in meson_ir_probe()
171 dev_info(dev, "receiver initialized\n"); in meson_ir_probe()
189 struct device *dev = &pdev->dev; in meson_ir_shutdown() local
[all …]
/openbmc/linux/drivers/watchdog/
H A Dshwdt.c74 struct device *dev; member
87 pm_runtime_get_sync(wdt->dev); in sh_wdt_start()
141 pm_runtime_put_sync(wdt->dev); in sh_wdt_stop()
191 dev_warn(wdt->dev, "Heartbeat lost! Will not ping " in sh_wdt_ping()
232 wdt->dev = &pdev->dev; in sh_wdt_probe()
234 wdt->clk = devm_clk_get(&pdev->dev, NULL); in sh_wdt_probe()
249 sh_wdt_dev.parent = &pdev->dev; in sh_wdt_probe()
258 dev_warn(&pdev->dev, in sh_wdt_probe()
275 dev_info(&pdev->dev, "initialized.\n"); in sh_wdt_probe()
277 pm_runtime_enable(&pdev->dev); in sh_wdt_probe()
[all …]

1...<<261262263264265266267268269270>>...1067