/openbmc/u-boot/common/ |
H A D | usb.c | 644 ret = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), in usb_set_interface() 824 dev->devnum, dev->string_langid); in usb_string() 1132 memset(dev->mf, 0, sizeof(dev->mf)); in usb_select_config() 1133 memset(dev->prod, 0, sizeof(dev->prod)); in usb_select_config() 1134 memset(dev->serial, 0, sizeof(dev->serial)); in usb_select_config() 1136 usb_string(dev, dev->descriptor.iManufacturer, in usb_select_config() 1137 dev->mf, sizeof(dev->mf)); in usb_select_config() 1139 usb_string(dev, dev->descriptor.iProduct, in usb_select_config() 1140 dev->prod, sizeof(dev->prod)); in usb_select_config() 1142 usb_string(dev, dev->descriptor.iSerialNumber, in usb_select_config() [all …]
|
/openbmc/linux/drivers/usb/gadget/legacy/ |
H A D | inode.c | 170 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in dev_new() 1113 event = &dev->event [dev->ev_next++]; in next_event() 1147 dev->gadget->ep0, dev->req, in ep0_write() 1288 desc = dev->dev; in make_qualifier() 1318 dev->req->buf = dev->hs_config; in config_buf() 1321 dev->req->buf = dev->config; in config_buf() 1387 dev->dev->bMaxPacketSize0 = dev->gadget->ep0->maxpacket; in gadgetfs_setup() 1388 req->buf = dev->dev; in gadgetfs_setup() 1605 data->dev = dev; in activate_ep_files() 1864 dev->dev = (void *)kbuf; in dev_config() [all …]
|
/openbmc/linux/include/linux/ |
H A D | device.h | 861 if (dev->init_name) in dev_name() 876 return dev->bus ? dev->bus->name : (dev->class ? dev->class->name : ""); in dev_bus_name() 912 dev->msi.domain = d; in dev_set_msi_domain() 928 return dev ? dev->power.subsys_data : NULL; in dev_to_psd() 1021 return dev->of_node; in dev_of_node() 1026 if (!dev) in dev_has_sync_state() 1028 if (dev->driver && dev->driver->sync_state) in dev_has_sync_state() 1030 if (dev->bus && dev->bus->sync_state) in dev_has_sync_state() 1080 return dev->bus && dev->bus->offline && dev->bus->online; in device_supports_offline() 1138 if (dev->bus && dev->bus->num_vf) in dev_num_vf() [all …]
|
/openbmc/linux/drivers/misc/mei/ |
H A D | interrupt.c | 38 dev_dbg(dev->dev, "completing call back.\n"); in mei_irq_compl_handler() 98 struct mei_device *dev = cl->dev; in mei_cl_irq_read_msg() local 232 pm_runtime_mark_last_busy(dev->dev); in mei_cl_irq_read_msg() 233 pm_request_autosuspend(dev->dev); in mei_cl_irq_read_msg() 257 struct mei_device *dev = cl->dev; in mei_cl_irq_disconnect_rsp() local 289 struct mei_device *dev = cl->dev; in mei_cl_irq_read() local 313 pm_runtime_mark_last_busy(dev->dev); in mei_cl_irq_read() 314 pm_request_autosuspend(dev->dev); in mei_cl_irq_read() 373 dev->rd_msg_hdr[0] = mei_read_hdr(dev); in mei_irq_read_handler() 405 dev_dbg(dev->dev, "extended header is %08x\n", dev->rd_msg_hdr[1]); in mei_irq_read_handler() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | mlx5_core.h | 102 struct device *device = dev->device; in mlx5_printk() 126 return &dev->pdev->dev; in mlx5_core_dma_dev() 183 int mlx5_cmd_init(struct mlx5_core_dev *dev); 185 int mlx5_cmd_enable(struct mlx5_core_dev *dev); 243 int mlx5_adev_init(struct mlx5_core_dev *dev); 285 return pci_num_vf(dev->pdev) ? true : false; in mlx5_sriov_is_enabled() 294 ret = mlx5_rescan_drivers_locked(dev); in mlx5_rescan_drivers() 313 return dev->coredev_type == MLX5_COREDEV_SF; in mlx5_core_is_sf() 318 int mlx5_init_one(struct mlx5_core_dev *dev); 354 return mlx5_core_is_ecpf(dev) && mlx5_core_ec_vf_vport_base(dev); in mlx5_core_ec_sriov_enabled() [all …]
|
/openbmc/linux/drivers/media/i2c/ |
H A D | rdacm20.c | 388 dev_err(dev->dev, in ov10635_set_regs() 500 dev->serializer.client->addr = dev->addrs[0]; in rdacm20_initialize() 518 dev_err(dev->dev, "OV10635 ID read failed (%d)\n", in rdacm20_initialize() 527 dev_err(dev->dev, "OV10635 ID mismatch (0x%04x)\n", in rdacm20_initialize() 537 dev_err(dev->dev, in rdacm20_initialize() 541 dev->sensor->addr = dev->addrs[1]; in rdacm20_initialize() 550 dev_info(dev->dev, "Identified RDACM20 camera module\n"); in rdacm20_initialize() 572 dev = devm_kzalloc(&client->dev, sizeof(*dev), GFP_KERNEL); in rdacm20_probe() 573 if (!dev) in rdacm20_probe() 575 dev->dev = &client->dev; in rdacm20_probe() [all …]
|
H A D | max9271.c | 29 dev_dbg(&dev->client->dev, "%s(0x%02x)\n", __func__, reg); in max9271_read() 33 dev_dbg(&dev->client->dev, in max9271_read() 48 dev_err(&dev->client->dev, in max9271_write() 78 dev_err(&dev->client->dev, "Unable to detect valid pixel clock\n"); in max9271_pclk_detect() 220 dev_err(&dev->client->dev, "Failed to set gpio (%d)\n", ret); in max9271_set_gpios() 301 dev_err(&dev->client->dev, "MAX9271 ID read failed (%d)\n", in max9271_verify_id() 307 dev_err(&dev->client->dev, "MAX9271 ID mismatch (0x%02x)\n", in max9271_verify_id() 322 dev_err(&dev->client->dev, in max9271_set_address() 338 dev_err(&dev->client->dev, in max9271_set_deserializer_address() 354 dev_err(&dev->client->dev, in max9271_set_translation() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt76x2/ |
H A D | usb_mcu.c | 67 dev_err(dev->mt76.dev, in mt76x2u_mcu_load_rom_patch() 81 dev_info(dev->mt76.dev, "ROM patch already applied\n"); in mt76x2u_mcu_load_rom_patch() 85 err = request_firmware(&fw, MT7662_ROM_PATCH, dev->mt76.dev); in mt76x2u_mcu_load_rom_patch() 90 dev_err(dev->mt76.dev, "failed to load firmware\n"); in mt76x2u_mcu_load_rom_patch() 133 dev_err(dev->mt76.dev, "failed to load ROM patch\n"); in mt76x2u_mcu_load_rom_patch() 151 err = request_firmware(&fw, MT7662_FIRMWARE, dev->mt76.dev); in mt76x2u_mcu_load_firmware() 170 dev_info(dev->mt76.dev, "Firmware Version: %d.%d.%02d\n", in mt76x2u_mcu_load_firmware() 174 dev_info(dev->mt76.dev, "Build: %x\n", val); in mt76x2u_mcu_load_firmware() 175 dev_info(dev->mt76.dev, "Build Time: %.16s\n", hdr->build_time); in mt76x2u_mcu_load_firmware() 219 dev_err(dev->mt76.dev, "firmware failed to start\n"); in mt76x2u_mcu_load_firmware() [all …]
|
/openbmc/linux/drivers/bluetooth/ |
H A D | hci_bcm.c | 477 if (hu->tty->dev->parent == dev->dev->parent) { in bcm_open() 478 bcm->dev = dev; in bcm_open() 1090 dev->name = dev_name(dev->dev); in bcm_get_resources() 1095 dev->txco_clk = bcm_get_txco(dev->dev); in bcm_get_resources() 1105 dev->lpo_clk = devm_clk_get(dev->dev, "lpo"); in bcm_get_resources() 1114 devm_clk_put(dev->dev, dev->txco_clk); in bcm_get_resources() 1128 dev->reset = devm_gpiod_get_optional(dev->dev, "reset", in bcm_get_resources() 1172 dev_dbg(dev->dev, "BCM irq: %d\n", dev->irq); in bcm_get_resources() 1255 dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL); in bcm_probe() 1259 dev->dev = &pdev->dev; in bcm_probe() [all …]
|
/openbmc/linux/drivers/nfc/pn533/ |
H A D | pn533.c | 921 nfc_err(dev->dev, in pn533_target_found() 930 dev_dbg(dev->dev, in pn533_target_found() 935 dev_dbg(dev->dev, in pn533_target_found() 1167 dev_err(dev->dev, in pn533_wq_tm_mi_send() 1223 nfc_err(dev->dev, in pn533_init_target_complete() 1611 dev_dbg(dev->dev, in pn533_wq_poll() 1637 dev_dbg(dev->dev, in pn533_start_poll() 1642 nfc_err(dev->dev, in pn533_start_poll() 2424 nfc_err(dev->dev, in pn533_wq_mi_recv() 2478 nfc_err(dev->dev, in pn533_wq_mi_send() [all …]
|
/openbmc/linux/drivers/net/usb/ |
H A D | ipheth.c | 182 skb->dev = dev->net; in ipheth_consume_skb() 284 dev_err(&dev->intf->dev, "%s: urb status: %d\n", in ipheth_rcvbulk_callback() 307 dev_err(&dev->intf->dev, "%s: callback retval: %d\n", in ipheth_rcvbulk_callback() 330 dev_err(&dev->intf->dev, "%s: urb status: %d\n", in ipheth_sndbulk_callback() 402 dev_err(&dev->intf->dev, in ipheth_get_macaddr() 442 dev->rx_buf, dev->rx_buf_len, in ipheth_rx_submit() 444 dev); in ipheth_rx_submit() 449 dev_err(&dev->intf->dev, "%s: usb_submit_urb: %d\n", in ipheth_rx_submit() 503 dev); in ipheth_tx() 509 dev_err(&dev->intf->dev, "%s: usb_submit_urb: %d\n", in ipheth_tx() [all …]
|
/openbmc/linux/drivers/scsi/libsas/ |
H A D | sas_discover.c | 57 if (!dev) in sas_get_port_device() 102 dev->port = port; in sas_get_port_device() 136 sas_hash_addr(dev->hashed_sas_addr, dev->sas_addr); in sas_get_port_device() 148 dev->rphy = rphy; in sas_get_port_device() 149 get_device(&dev->rphy->dev); in sas_get_port_device() 151 if (dev_is_sata(dev) || dev->dev_type == SAS_END_DEVICE) in sas_get_port_device() 289 put_device(&dev->rphy->dev); in sas_free_device() 302 if (dev_is_sata(dev) && dev->sata_dev.ap) { in sas_free_device() 310 kfree(dev); in sas_free_device() 347 sas_remove_children(&dev->rphy->dev); in sas_destruct_devices() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7603/ |
H A D | init.c | 88 if (is_mt7603(dev)) in mt7603_dma_sched_init() 93 if (is_mt7603(dev) && mt76xx_rev(dev) >= MT7603_REV_E2) { in mt7603_dma_sched_init() 128 dev->agc0 = mt76_rr(dev, MT_AGC(0)); in mt7603_phy_init() 129 dev->agc3 = mt76_rr(dev, MT_AGC(3)); in mt7603_phy_init() 286 dev->rxfilter = mt76_rr(dev, MT_WF_RFCR); in mt7603_init_hardware() 336 struct mt7603_dev *dev = container_of(mphy->dev, struct mt7603_dev, in mt7603_led_set_config() local 424 dev->ed_monitor = dev->ed_monitor_enabled && in mt7603_regd_notifier() 492 dev->bus_ops = dev->mt76.bus; in mt7603_register_device() 493 bus_ops = devm_kmemdup(dev->mt76.dev, dev->bus_ops, sizeof(*bus_ops), in mt7603_register_device() 508 dev->slottime = 9; in mt7603_register_device() [all …]
|
/openbmc/linux/drivers/pnp/pnpacpi/ |
H A D | core.c | 45 pnp_dbg(&dev->dev, "get resources\n"); in pnpacpi_get_resources() 55 pnp_dbg(&dev->dev, "set resources\n"); in pnpacpi_set_resources() 57 acpi_dev = ACPI_COMPANION(&dev->dev); in pnpacpi_set_resources() 95 dev_dbg(&dev->dev, "disable resources\n"); in pnpacpi_disable_resources() 97 acpi_dev = ACPI_COMPANION(&dev->dev); in pnpacpi_disable_resources() 138 if (device_can_wakeup(&dev->dev)) { in pnpacpi_suspend() 140 device_may_wakeup(&dev->dev)); in pnpacpi_suspend() 174 if (device_may_wakeup(&dev->dev)) in pnpacpi_resume() 238 ACPI_COMPANION_SET(&dev->dev, device); in pnpacpi_add_device() 258 dev->name[sizeof(dev->name) - 1] = '\0'; in pnpacpi_add_device() [all …]
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | zd1301_demod.c | 261 ret = zd1301_demod_wreg(dev, 0x6a43, dev->gain); in zd1301_demod_read_status() 449 return &dev->adapter; in zd1301_demod_get_i2c_adapter() 473 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in zd1301_demod_probe() 474 if (!dev) { in zd1301_demod_probe() 480 dev->pdev = pdev; in zd1301_demod_probe() 496 dev->adapter.dev.parent = pdev->dev.parent; in zd1301_demod_probe() 497 i2c_set_adapdata(&dev->adapter, dev); in zd1301_demod_probe() 505 memcpy(&dev->frontend.ops, &zd1301_demod_ops, sizeof(dev->frontend.ops)); in zd1301_demod_probe() 506 dev->frontend.demodulator_priv = dev; in zd1301_demod_probe() 512 kfree(dev); in zd1301_demod_probe() [all …]
|
/openbmc/linux/drivers/net/ethernet/i825xx/ |
H A D | ether1.c | 467 dev->name); in ether1_init_for_open() 639 if (request_irq(dev->irq, ether1_interrupt, 0, "ether1", dev)) in ether1_open() 643 free_irq (dev->irq, dev); in ether1_open() 656 dev->name); in ether1_timeout() 883 dev->name, nexttail, priv(dev)->rx_head); in ether1_recv_done() 890 priv(dev)->rx_head = ether1_readw(dev, priv(dev)->rx_head, rfd_t, rfd_link, NORMALIRQS); in ether1_recv_done() 948 free_irq(dev->irq, dev); in ether1_close() 999 if (!dev) { in ether1_probe() 1004 SET_NETDEV_DEV(dev, &ec->dev); in ether1_probe() 1013 if ((priv(dev)->bus_type = ether1_reset(dev)) == 0) { in ether1_probe() [all …]
|
/openbmc/qemu/hw/core/ |
H A D | qdev.c | 132 bus_remove_child(dev->parent_bus, dev); in qdev_set_parent_bus() 282 assert(!dev->realized && !dev->parent_bus); in qdev_realize() 314 if (dev) { in qdev_assert_realized_properly_cb() 399 if (dev->id && strcmp(dev->id, id) == 0) { in qdev_find_recursive() 418 if (!dev || !dev->parent_bus) { in qdev_get_dev_path() 523 dev->canonical_path = object_get_canonical_path(OBJECT(dev)); in device_set_realized() 596 vmstate_unregister(VMSTATE_IF(dev), qdev_get_vmsd(dev), dev); in device_set_realized() 614 vmstate_unregister(VMSTATE_IF(dev), qdev_get_vmsd(dev), dev); in device_set_realized() 704 qapi_event_send_device_deleted(dev->id, dev->canonical_path); in device_finalize() 736 bus_remove_child(dev->parent_bus, dev); in device_unparent() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
H A D | mmio.c | 85 dev->bus_ops->rmw(&dev->mt76, MT_HIF_REMAP_L1, in mt7996_reg_map_l1() 89 dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L1); in mt7996_reg_map_l1() 99 dev->bus_ops->rmw(&dev->mt76, MT_HIF_REMAP_L2, in mt7996_reg_map_l2() 103 dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L2); in mt7996_reg_map_l2() 138 if (dev_is_pci(dev->mt76.dev) && in __mt7996_reg_remap_addr() 234 dev->bus_ops = dev->mt76.bus; in mt7996_mmio_init() 235 bus_ops = devm_kmemdup(dev->mt76.dev, dev->bus_ops, sizeof(*bus_ops), in mt7996_mmio_init() 286 if (dev->hif2) in mt7996_irq_tasklet() 301 trace_dev_irq(&dev->mt76, intr, dev->mt76.mmio.irqmask); in mt7996_irq_tasklet() 332 if (dev->hif2) in mt7996_irq_handler() [all …]
|
/openbmc/linux/net/core/ |
H A D | link_watch.c | 38 if (netif_testing(dev)) in default_operstate() 99 if (!netif_carrier_ok(dev) || netif_dormant(dev) || in linkwatch_init_dev() 101 rfc2863_policy(dev); in linkwatch_init_dev() 110 if (dev->ifindex != dev_get_iflink(dev)) in linkwatch_urgent_event() 113 if (netif_is_lag_port(dev) || netif_is_lag_master(dev)) in linkwatch_urgent_event() 116 return netif_carrier_ok(dev) && qdisc_tx_changing(dev); in linkwatch_urgent_event() 127 netdev_hold(dev, &dev->linkwatch_dev_tracker, GFP_ATOMIC); in linkwatch_add_event() 175 rfc2863_policy(dev); in linkwatch_do_dev() 187 __dev_put(dev); in linkwatch_do_dev() 233 netdev_tracker_free(dev, &dev->linkwatch_dev_tracker); in __linkwatch_run_queue() [all …]
|
/openbmc/linux/drivers/watchdog/ |
H A D | armada_37xx_wdt.c | 178 dev->timeout = (u64)dev->clk_rate * timeout; in armada_37xx_wdt_set_timeout() 181 set_counter_value(dev, CNTR_ID_WDOG, dev->timeout); in armada_37xx_wdt_set_timeout() 212 set_counter_value(dev, CNTR_ID_WDOG, dev->timeout); in armada_37xx_wdt_start() 257 if (!dev) in armada_37xx_wdt_probe() 273 if (!dev->reg) in armada_37xx_wdt_probe() 277 dev->clk = devm_clk_get_enabled(&pdev->dev, NULL); in armada_37xx_wdt_probe() 281 dev->clk_rate = clk_get_rate(dev->clk); in armada_37xx_wdt_probe() 292 dev->wdt.parent = &pdev->dev; in armada_37xx_wdt_probe() 296 watchdog_init_timeout(&dev->wdt, timeout, &pdev->dev); in armada_37xx_wdt_probe() 299 watchdog_set_drvdata(&dev->wdt, dev); in armada_37xx_wdt_probe() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A D | pci_init.c | 21 ret = mt7615_mcu_init(dev); in mt7615_pci_init_work() 24 ret = mt7615_mcu_init(dev); in mt7615_pci_init_work() 30 mt7615_init_work(dev); in mt7615_pci_init_work() 64 rcu_assign_pointer(dev->mt76.wcid[idx], &dev->mt76.global_wcid); in mt7615_init_hardware() 73 mt7615_init_device(dev); in mt7615_register_device() 99 ieee80211_queue_work(mt76_hw(dev), &dev->mcu_work); in mt7615_register_device() 100 mt7615_init_txpower(dev, &dev->mphy.sband_2g.sband); in mt7615_register_device() 101 mt7615_init_txpower(dev, &dev->mphy.sband_5g.sband); in mt7615_register_device() 103 if (dev->dbdc_support) { in mt7615_register_device() 121 mt7615_mcu_exit(dev); in mt7615_unregister_device() [all …]
|
/openbmc/linux/sound/soc/atmel/ |
H A D | mchp-spdifrx.c | 482 dev_err(dev->dev, in mchp_spdifrx_hw_params() 580 pm_runtime_mark_last_busy(dev->dev); in mchp_spdifrx_cs_get() 663 pm_runtime_mark_last_busy(dev->dev); in mchp_spdifrx_subcode_ch_get() 729 pm_runtime_mark_last_busy(dev->dev); in mchp_spdifrx_ulock_get() 765 pm_runtime_mark_last_busy(dev->dev); in mchp_spdifrx_badf_get() 814 pm_runtime_mark_last_busy(dev->dev); in mchp_spdifrx_signal_get() 1092 dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL); in mchp_spdifrx_probe() 1145 dev->dev = &pdev->dev; in mchp_spdifrx_probe() 1149 pm_runtime_enable(dev->dev); in mchp_spdifrx_probe() 1182 pm_runtime_disable(dev->dev); in mchp_spdifrx_probe() [all …]
|
/openbmc/linux/drivers/net/dsa/b53/ |
H A D | b53_common.c | 387 if (is5325(dev) || is5365(dev)) in b53_enable_vlan() 396 if (is5325(dev) || is5365(dev)) in b53_enable_vlan() 444 if (is5325(dev) || is5365(dev)) in b53_set_jumbo() 840 dev_err(dev->dev, in b53_switch_reset() 2112 if (is5325(dev) || is5365(dev) || is63xx(dev)) { in b53_get_tag_protocol() 2693 dev->ports = devm_kcalloc(dev->dev, in b53_switch_init() 2699 dev->vlans = devm_kcalloc(dev->dev, in b53_switch_init() 2707 ret = devm_gpio_request_one(dev->dev, dev->reset_gpio, in b53_switch_init() 2734 dev->dev = base; in b53_switch_alloc() 2808 dev_err(dev->dev, in b53_switch_detect() [all …]
|
/openbmc/linux/drivers/usb/gadget/udc/ |
H A D | net2272.c | 187 dev = ep->dev; in net2272_enable() 366 dev = ep->dev; in net2272_done() 824 dev = ep->dev; in net2272_queue() 1376 ep->dev = dev; in net2272_usb_reinit() 2130 dev_dbg(dev->dev, in net2272_present() 2146 dev_dbg(dev->dev, in net2272_present() 2167 dev_dbg(dev->dev, in net2272_present() 2186 dev_dbg(dev->dev, in net2272_present() 2194 dev_dbg(dev->dev, in net2272_present() 2247 ret->dev = dev; in net2272_probe_init() [all …]
|
/openbmc/linux/drivers/pci/ |
H A D | probe.c | 633 bridge->dev.parent = dev; in devm_pci_alloc_host_bridge() 1271 pm_runtime_get_sync(&dev->dev); in pci_scan_bridge_extend() 1475 pm_runtime_put(&dev->dev); in pci_scan_bridge_extend() 1842 dev->dev.parent = dev->bus->bridge; in pci_setup_device() 1843 dev->dev.bus = &pci_bus_type; in pci_setup_device() 1891 dev->vendor, dev->device, dev->hdr_type, dev->class); in pci_setup_device() 1996 dev->class, dev->hdr_type); in pci_setup_device() 2545 device_initialize(&dev->dev); in pci_device_add() 2549 dev->dev.dma_mask = &dev->dma_mask; in pci_device_add() 2550 dev->dev.dma_parms = &dev->dma_parms; in pci_device_add() [all …]
|