/openbmc/linux/drivers/base/ |
H A D | platform.c | 176 if (!dev || num >= dev->archdata.num_irqs) in platform_get_irq_optional() 183 if (IS_ENABLED(CONFIG_OF_IRQ) && dev->dev.of_node) { in platform_get_irq_optional() 184 ret = of_irq_get(dev->dev.of_node, num); in platform_get_irq_optional() 190 if (has_acpi_companion(&dev->dev)) { in platform_get_irq_optional() 192 ret = acpi_irq_get(ACPI_HANDLE(&dev->dev), num, r); in platform_get_irq_optional() 225 if (num == 0 && has_acpi_companion(&dev->dev)) { in platform_get_irq_optional() 265 return dev_err_probe(&dev->dev, ret, in platform_get_irq() 397 devres_add(&dev->dev, ptr); in devm_platform_get_irqs_affinity() 444 ret = fwnode_irq_get_byname(dev_fwnode(&dev->dev), name); in __platform_get_irq_byname() 715 dev_name(&pdev->dev), dev_name(pdev->dev.parent)); in platform_device_add() [all …]
|
/openbmc/linux/kernel/dma/ |
H A D | direct.h | 16 bool dma_direct_can_mmap(struct device *dev); 58 phys_addr_t paddr = dma_to_phys(dev, addr); in dma_direct_sync_single_for_device() 60 if (unlikely(is_swiotlb_buffer(dev, paddr))) in dma_direct_sync_single_for_device() 63 if (!dev_is_dma_coherent(dev)) in dma_direct_sync_single_for_device() 70 phys_addr_t paddr = dma_to_phys(dev, addr); in dma_direct_sync_single_for_cpu() 72 if (!dev_is_dma_coherent(dev)) { in dma_direct_sync_single_for_cpu() 91 if (is_swiotlb_force_bounce(dev)) { in dma_direct_map_page() 101 if (is_swiotlb_active(dev)) in dma_direct_map_page() 104 dev_WARN_ONCE(dev, 1, in dma_direct_map_page() 106 &dma_addr, size, *dev->dma_mask, dev->bus_dma_limit); in dma_direct_map_page() [all …]
|
/openbmc/linux/drivers/scsi/aic94xx/ |
H A D | aic94xx_dev.c | 72 else if (dev->tproto) in asd_set_ddb_type() 102 if (dev->dev_type == SAS_SATA_DEV || dev->dev_type == SAS_SATA_PM_PORT) { in asd_set_dmamode() 126 if (dev->dev_type == SAS_SATA_DEV || dev->dev_type == SAS_SATA_PM || in asd_init_sata() 129 dev->frame_rcvd; in asd_init_sata() 156 asd_set_ddb_type(dev); in asd_init_target_ddb() 173 if (!dev->parent && dev_is_expander(dev->dev_type)) in asd_init_target_ddb() 195 if (dev->dev_type == SAS_SATA_DEV || (dev->tproto & SAS_PROTOCOL_STP)) { in asd_init_target_ddb() 255 asd_set_ddb_type(dev); in asd_init_sata_pm_port_ddb() 260 asd_init_sata(dev); in asd_init_sata_pm_port_ddb() 319 if (dev->tproto) in asd_dev_found() [all …]
|
/openbmc/linux/drivers/nfc/ |
H A D | nfcsim.c | 188 dev->rf_tech, dev->mode); in nfcsim_recv_wq() 198 dev->cb(dev->nfc_digital_dev, dev->arg, skb); in nfcsim_recv_wq() 213 dev->cb = cb; in nfcsim_send() 227 nfcsim_link_set_skb(dev->link_out, skb, dev->rf_tech, in nfcsim_send() 251 dev->up = on; in nfcsim_switch_rf() 377 if (!dev) in nfcsim_device_new() 389 kfree(dev); in nfcsim_device_new() 393 nfc_digital_set_drvdata(dev->nfc_digital_dev, dev); in nfcsim_device_new() 402 kfree(dev); in nfcsim_device_new() 409 return dev; in nfcsim_device_new() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | mr.c | 180 if (mlx4_is_mfunc(dev)) { in mlx4_alloc_mtt_range() 236 if (mlx4_is_mfunc(dev)) { in mlx4_free_mtt_range() 381 if (mlx4_is_mfunc(dev)) { in mlx4_mr_hw_put_mpt() 395 if (mlx4_is_mfunc(dev)) in mlx4_mr_hw_change_pd() 450 if (mlx4_is_mfunc(dev)) { in mlx4_mpt_reserve() 471 if (mlx4_is_mfunc(dev)) { in mlx4_mpt_release() 494 if (mlx4_is_mfunc(dev)) { in mlx4_mpt_alloc_icm() 706 dma_sync_single_for_cpu(&dev->persist->pdev->dev, dma_handle, in mlx4_write_mtt_chunk() 712 dma_sync_single_for_device(&dev->persist->pdev->dev, dma_handle, in mlx4_write_mtt_chunk() 915 if (mlx4_is_slave(dev)) in mlx4_init_mr_table() [all …]
|
/openbmc/linux/drivers/net/ethernet/amd/ |
H A D | nmclan_cs.c | 440 if (!dev) in nmclan_probe() 444 link->priv = dev; in nmclan_probe() 472 free_netdev(dev); in nmclan_detach() 667 SET_NETDEV_DEV(dev, &link->dev); in nmclan_config() 676 dev->base_addr, dev->irq, if_names[dev->if_port], dev->dev_addr); in nmclan_config() 705 nmclan_reset(dev); in nmclan_resume() 746 mace_init(lp, dev->base_addr, dev->dev_addr); in nmclan_reset() 789 nmclan_reset(dev); in mace_open() 804 dev_dbg(&link->dev, "%s: shutting down ethercard.\n", dev->name); in mace_close() 921 if (!dev) { in mace_interrupt() [all …]
|
/openbmc/linux/drivers/misc/mei/ |
H A D | dma-ring.c | 33 dscr->vaddr = dmam_alloc_coherent(dev->dev, dscr->size, &dscr->daddr, in mei_dmam_dscr_alloc() 53 dmam_free_coherent(dev->dev, dscr->size, dscr->vaddr, dscr->daddr); in mei_dmam_dscr_free() 66 mei_dmam_dscr_free(dev, &dev->dr_dscr[i]); in mei_dmam_ring_free() 80 if (mei_dmam_dscr_alloc(dev, &dev->dr_dscr[i])) in mei_dmam_ring_alloc() 86 mei_dmam_ring_free(dev); in mei_dmam_ring_alloc() 98 return !!dev->dr_dscr[DMA_DSCR_HOST].vaddr; in mei_dma_ring_is_allocated() 176 dev_dbg(dev->dev, "reading from dma %u bytes\n", len); in mei_dma_ring_read() 197 mei_dma_copy_from(dev, buf, rd_idx, rem); in mei_dma_ring_read() 218 if (!mei_dma_ring_is_allocated(dev)) in mei_dma_ring_empty_slots() 253 dev_dbg(dev->dev, "writing to dma %u bytes\n", len); in mei_dma_ring_write() [all …]
|
/openbmc/u-boot/test/dm/ |
H A D | video.c | 30 struct udevice *dev; in dm_test_video_base() local 90 struct udevice *dev; in select_vidconsole() local 111 struct udevice *dev, *con; in dm_test_video_text() local 146 struct udevice *dev, *con; in dm_test_video_chars() local 164 struct udevice *dev, *con; in dm_test_video_ansi() local 205 struct udevice *dev, *con; in check_vidconsole_output() local 300 struct udevice *dev; in dm_test_video_bmp() local 316 struct udevice *dev; in dm_test_video_bmp_comp() local 332 struct udevice *dev, *con; in dm_test_video_truetype() local 348 struct udevice *dev, *con; in dm_test_video_truetype_scroll() local [all …]
|
/openbmc/linux/drivers/ssb/ |
H A D | driver_mipscore.c | 37 .dev = { 91 return dev; in find_device() 129 struct ssb_device *dev = bus->mipscore.dev; in clear_irq() local 173 dev_dbg(dev->dev, "set_irq: core 0x%04x, irq %d => %d\n", in set_irq() 180 dev_dbg(dev->dev, in print_irq() 182 dev->id.coreid, in print_irq() 198 print_irq(dev, ssb_mips_irq(dev)); in dump_irq() 233 dev_dbg(mcore->dev->dev, "Found serial flash\n"); in ssb_mips_flash_detect() 237 dev_dbg(mcore->dev->dev, "Found parallel flash\n"); in ssb_mips_flash_detect() 303 dev_dbg(mcore->dev->dev, "Initializing MIPS core...\n"); in ssb_mipscore_init() [all …]
|
/openbmc/linux/drivers/misc/ |
H A D | tifm_core.c | 43 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_bus_match() 70 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_device_probe() 75 get_device(dev); in tifm_device_probe() 81 put_device(dev); in tifm_device_probe() 92 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_device_remove() 103 put_device(dev); in tifm_device_remove() 110 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_device_suspend() 121 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_device_resume() 182 fm->dev.parent = dev; in tifm_alloc_adapter() 263 sock->dev.parent = fm->dev.parent; in tifm_alloc_device() [all …]
|
/openbmc/qemu/hw/usb/ |
H A D | core.c | 53 USBDevice *dev = port->dev; in usb_attach() local 66 USBDevice *dev = port->dev; in usb_detach() local 76 USBDevice *dev = port->dev; in usb_port_reset() local 97 USBDevice *dev = ep->dev; in usb_wakeup() local 108 if (dev->remote_wakeup && dev->port && dev->port->ops->wakeup) { in usb_wakeup() 358 USBDevice *dev = port->dev; in usb_find_device() local 426 assert(dev == p->ep->dev); in usb_handle_packet() 558 dev = p->ep->dev; in usb_packet_check_state() 660 dev->ep_ctl.dev = dev; in usb_ep_reset() 675 dev->ep_in[ep].dev = dev; in usb_ep_reset() [all …]
|
/openbmc/linux/drivers/net/can/usb/ |
H A D | gs_usb.c | 295 struct gs_can *dev; member 748 struct gs_can *dev = txc->dev; in gs_usb_xmit_callback() local 924 dev->udev, in gs_can_open() 1073 gs_cmd_reset(dev); in gs_can_close() 1077 dev->tx_context[rc].dev = dev; in gs_can_close() 1267 dev->tx_context[rc].dev = dev; in gs_make_candev() 1274 dev->can.bittiming_const = &dev->bt_const; in gs_make_candev() 1298 dev->can.data_bittiming_const = &dev->bt_const; in gs_make_candev() 1339 dev->udev->manufacturer && dev->udev->product && in gs_make_candev() 1379 dev->can.data_bittiming_const = &dev->data_bt_const; in gs_make_candev() [all …]
|
/openbmc/linux/include/linux/ |
H A D | pci.h | 538 dev = dev->physfn; in pci_physfn() 540 return dev; in pci_physfn() 564 struct device dev; member 687 return PCI_DEVID(dev->bus->number, dev->devfn); in pci_dev_id() 722 dev = pci_physfn(dev); in pci_upstream_bridge() 1721 return dev->irq; in pci_irq_vector() 2082 #define pci_resource_n(dev, bar) (&(dev)->resource[(bar)]) argument 2084 #define pci_resource_end(dev, bar) (pci_resource_n(dev, bar)->end) argument 2456 while (dev) { in pcie_find_root_port() 2459 return dev; in pcie_find_root_port() [all …]
|
/openbmc/linux/drivers/net/ethernet/smsc/ |
H A D | smc91x.c | 541 struct net_device *dev = lp->dev; in smc_hardware_send_pkt() local 1035 struct net_device *dev = lp->dev; in smc_phy_configure() local 1241 smc_tx(dev); in smc_interrupt() 1247 smc_rcv(dev); in smc_interrupt() 1318 smc_interrupt(dev->irq, dev); in smc_poll_controller() 1344 smc_reset(dev); in smc_timeout() 1593 strscpy(info->bus_info, dev_name(dev->dev.parent), in smc_ethtool_getdrvinfo() 1964 dev->irq = irq_canonicalize(dev->irq); in smc_probe() 1972 lp->dev = dev; in smc_probe() 1977 lp->mii.dev = dev; in smc_probe() [all …]
|
/openbmc/linux/drivers/net/ethernet/silan/ |
H A D | sc92031.c | 533 dev->name, in _sc92031_check_media() 752 dev->name); in _sc92031_rx_tasklet() 929 return &dev->stats; in sc92031_get_stats() 1013 IRQF_SHARED, dev->name, dev); in sc92031_open() 1022 _sc92031_reset(dev); in sc92031_open() 1093 _sc92031_reset(dev); in sc92031_tx_timeout() 1437 SET_NETDEV_DEV(dev, &pdev->dev); in sc92031_probe() 1448 priv->ndev = dev; in sc92031_probe() 1481 free_netdev(dev); in sc92031_probe() 1500 free_netdev(dev); in sc92031_remove() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | ecpf.c | 17 return mlx5_core_is_ecpf_esw_manager(dev); in mlx5_ecpf_esw_admins_host_pf() 46 if (mlx5_ecpf_esw_admins_host_pf(dev)) in mlx5_host_pf_init() 52 err = mlx5_cmd_host_pf_enable_hca(dev); in mlx5_host_pf_init() 63 if (mlx5_ecpf_esw_admins_host_pf(dev)) in mlx5_host_pf_cleanup() 66 err = mlx5_cmd_host_pf_disable_hca(dev); in mlx5_host_pf_cleanup() 75 if (!mlx5_core_is_ecpf(dev)) in mlx5_ec_init() 78 return mlx5_host_pf_init(dev); in mlx5_ec_init() 85 if (!mlx5_core_is_ecpf(dev)) in mlx5_ec_cleanup() 88 mlx5_host_pf_cleanup(dev); in mlx5_ec_cleanup() 90 err = mlx5_wait_for_pages(dev, &dev->priv.page_counters[MLX5_HOST_PF]); in mlx5_ec_cleanup() [all …]
|
/openbmc/linux/drivers/staging/rtl8192e/rtl8192e/ |
H A D | rtl_pm.c | 23 if (!netif_running(dev)) { in rtl92e_suspend() 24 netdev_info(dev, in rtl92e_suspend() 29 if (dev->netdev_ops->ndo_stop) in rtl92e_suspend() 30 dev->netdev_ops->ndo_stop(dev); in rtl92e_suspend() 31 netif_device_detach(dev); in rtl92e_suspend() 42 rtl92e_writeb(dev, PMR, 0x5); in rtl92e_suspend() 73 if (!netif_running(dev)) { in rtl92e_resume() 74 netdev_info(dev, in rtl92e_resume() 79 netif_device_attach(dev); in rtl92e_resume() 80 if (dev->netdev_ops->ndo_open) in rtl92e_resume() [all …]
|
/openbmc/u-boot/drivers/remoteproc/ |
H A D | rproc-uclass.c | 36 struct udevice *dev; in for_each_remoteproc_device() local 40 for (ret = uclass_find_first_device(UCLASS_REMOTEPROC, &dev); dev; in for_each_remoteproc_device() 42 if (ret || dev == skip_dev) in for_each_remoteproc_device() 117 if (!dev->platdata) { in rproc_pre_probe() 164 ops = rproc_get_ops(dev); in rproc_pre_probe() 201 return ops->init(dev); in rproc_post_probe() 231 ret = device_probe(dev); in _rproc_probe_dev() 287 ret = device_probe(dev); in rproc_dev_init() 322 dev->name); in rproc_load() 404 return fn(dev); in _rproc_ops_wrapper() [all …]
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | vxlan_asymmetric.sh | 118 dev $if_name 254 ip link del dev vx20 260 ip link del dev vx10 267 ip link del dev br1 277 ip link set dev v1 up 317 ip link set dev v2 up 338 ip link set dev w1 up 342 ip link set dev w3 up 380 ip link set dev lo up 463 ip link del dev v1 [all …]
|
/openbmc/linux/drivers/platform/goldfish/ |
H A D | goldfish_pipe.c | 667 memcpy(pipes, dev->pipes, sizeof(*pipes) * dev->pipes_capacity); in get_free_pipe_id_locked() 708 pipe->dev = dev; in goldfish_pipe_open() 764 struct goldfish_pipe_dev *dev = pipe->dev; in goldfish_pipe_release() local 811 err = devm_request_threaded_irq(&pdev->dev, dev->irq, in goldfish_pipe_device_init() 827 dev->pdev_dev = &pdev->dev; in goldfish_pipe_device_init() 830 dev->pipes = kcalloc(dev->pipes_capacity, sizeof(*dev->pipes), in goldfish_pipe_device_init() 881 dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL); in goldfish_pipe_probe() 882 if (!dev) in goldfish_pipe_probe() 893 dev->base = devm_ioremap(&pdev->dev, r->start, PAGE_SIZE); in goldfish_pipe_probe() 894 if (!dev->base) { in goldfish_pipe_probe() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A D | main.c | 22 phy = mt7615_ext_phy(dev); in mt7615_dev_running() 54 if (phy != &dev->phy) { in mt7615_start() 115 if (phy != &dev->phy) { in mt7615_stop() 287 struct mt7615_dev *dev = phy->dev; in mt7615_set_channel() local 299 if (is_mt7615(&dev->mt76) && dev->flash_eeprom) { in mt7615_set_channel() 666 phy = mvif->mt76.band_idx ? mt7615_ext_phy(dev) : &dev->phy; in mt7615_mac_sta_add() 699 phy = mvif->mt76.band_idx ? mt7615_ext_phy(dev) : &dev->phy; in mt7615_mac_sta_remove() 752 if (!mt76_connac_pm_ref(&dev->mphy, &dev->pm)) { in mt7615_tx_worker() 753 queue_work(dev->mt76.wq, &dev->pm.wake_work); in mt7615_tx_worker() 758 mt76_connac_pm_unref(&dev->mphy, &dev->pm); in mt7615_tx_worker() [all …]
|
/openbmc/linux/drivers/char/ |
H A D | ps3flash.c | 37 u64 res = ps3stor_read_write_sectors(dev, dev->bounce_lpar, in ps3flash_read_write_sectors() 90 dev->regions[dev->region_idx].size*dev->blk_size); in ps3flash_llseek() 103 dev_dbg(&dev->sbd.core, in ps3flash_read() 107 size = dev->regions[dev->region_idx].size*dev->blk_size; in ps3flash_read() 172 dev_dbg(&dev->sbd.core, in ps3flash_write() 176 size = dev->regions[dev->region_idx].size*dev->blk_size; in ps3flash_write() 295 if (tag != dev->tag) in ps3flash_interrupt() 337 tmp = dev->regions[dev->region_idx].start*dev->blk_size; in ps3flash_probe() 344 tmp = dev->regions[dev->region_idx].size*dev->blk_size; in ps3flash_probe() 362 ps3flash_dev = dev; in ps3flash_probe() [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | wakeup.c | 40 struct acpi_device *dev, *tmp; in acpi_enable_wakeup_devices() local 44 if (!dev->wakeup.flags.valid in acpi_enable_wakeup_devices() 46 || !(device_may_wakeup(&dev->dev) in acpi_enable_wakeup_devices() 50 if (device_may_wakeup(&dev->dev)) in acpi_enable_wakeup_devices() 54 acpi_set_gpe_wake_mask(dev->wakeup.gpe_device, dev->wakeup.gpe_number, in acpi_enable_wakeup_devices() 71 || !(device_may_wakeup(&dev->dev) in acpi_disable_wakeup_devices() 75 acpi_set_gpe_wake_mask(dev->wakeup.gpe_device, dev->wakeup.gpe_number, in acpi_disable_wakeup_devices() 78 if (device_may_wakeup(&dev->dev)) in acpi_disable_wakeup_devices() 90 if (device_can_wakeup(&dev->dev)) { in acpi_wakeup_device_init() 93 dev->wakeup.gpe_number); in acpi_wakeup_device_init() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7603/ |
H A D | debugfs.c | 25 dev->reset_cause[i]); in mt7603_reset_read() 38 dev->false_cca_ofdm, dev->false_cca_cck); in mt7603_radio_read() 46 struct mt7603_dev *dev = data; in mt7603_edcca_set() local 48 mutex_lock(&dev->mt76.mutex); in mt7603_edcca_set() 51 dev->ed_monitor = dev->ed_monitor_enabled && in mt7603_edcca_set() 53 mt7603_init_edcca(dev); in mt7603_edcca_set() 55 mutex_unlock(&dev->mt76.mutex); in mt7603_edcca_set() 63 struct mt7603_dev *dev = data; in mt7603_edcca_get() local 106 debugfs_create_devm_seqfile(dev->mt76.dev, "xmit-queues", dir, in mt7603_init_debugfs() 110 debugfs_create_devm_seqfile(dev->mt76.dev, "reset", dir, in mt7603_init_debugfs() [all …]
|
/openbmc/u-boot/common/ |
H A D | usb_hub.c | 81 return usb_control_msg(dev, usb_sndctrlpipe(dev, 0), in usb_set_hub_depth() 94 return usb_control_msg(dev, usb_rcvctrlpipe(dev, 0), in usb_get_hub_descriptor() 101 return usb_control_msg(dev, usb_sndctrlpipe(dev, 0), in usb_clear_port_feature() 108 return usb_control_msg(dev, usb_sndctrlpipe(dev, 0), in usb_set_port_feature() 124 ret = usb_control_msg(dev, usb_rcvctrlpipe(dev, 0), in usb_get_port_status() 141 if (!usb_hub_is_root_hub(dev->dev) && usb_hub_is_superspeed(dev)) { in usb_get_port_status() 440 dev = usb_scan->dev; in usb_scan_port() 611 hub = dev_get_uclass_priv(dev->dev); in usb_get_hub_device() 812 if (usb_hub_is_root_hub(dev->dev)) { in usb_hub_configure() 818 hdev = dev->dev->parent; in usb_hub_configure() [all …]
|