/openbmc/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | mt792x_usb.c | 18 mutex_lock(&dev->usb.usb_ctrl_mtx); in mt792xu_rr() 86 dev_err(dev->mt76.dev, "Timeout for power on\n"); in mt792xu_mcu_power_on() 97 mt792xu_wfsys_reset(dev); in mt792xu_cleanup() 162 mt792xu_dma_prefetch(dev); in mt792xu_wfdma_init() 215 mt792xu_wfdma_init(dev); in mt792xu_dma_init() 276 wake_up(&dev->mt76.mcu.wait); in mt792xu_init_reset() 279 mt76u_stop_rx(&dev->mt76); in mt792xu_init_reset() 280 mt76u_stop_tx(&dev->mt76); in mt792xu_init_reset() 282 mt792xu_wfsys_reset(dev); in mt792xu_init_reset() 299 mt792xu_cleanup(dev); in mt792xu_disconnect() [all …]
|
/openbmc/linux/drivers/scsi/aacraid/ |
H A D | comminit.c | 108 init = dev->init; in aac_alloc_comm() 128 addr = (u64)dev->host_rrq_pa + dev->vector_cap * i * in aac_alloc_comm() 170 dma_get_required_mask(&dev->pdev->dev) >> 12; in aac_alloc_comm() 262 q->dev = dev; in aac_queue_init() 491 dev_err(&dev->pdev->dev, in aac_define_int_mode() 503 dev->vector_cap = dev->scsi_host_ptr->can_queue + in aac_define_int_mode() 506 dev->vector_cap = (dev->scsi_host_ptr->can_queue + in aac_define_int_mode() 524 dev->sg_tablesize = host->sg_tablesize = (dev->max_fib_size in aac_init_adapter() 529 dev->raw_io_interface = dev->raw_io_64 = 0; in aac_init_adapter() 537 dev_info(&dev->pdev->dev, "Changed firmware to INTX mode"); in aac_init_adapter() [all …]
|
/openbmc/linux/drivers/net/ethernet/natsemi/ |
H A D | ns83820.c | 775 writel(dev->IMR_cache, dev->base + IMR); in ns83820_cleanup_rx() 937 writel(dev->IMR_cache, dev->base + IMR); 949 dev, dev->tx_idx, dev->tx_free_idx); 1024 dma_unmap_single(&dev->pci_dev->dev, 1465 if (dev->tx_idx != dev->tx_free_idx) 1511 writel(dev->ihr, dev->base + IHR); 1595 dev->tx_done_idx, dev->tx_free_idx, atomic_read(&dev->nr_tx_skbs) 1603 dev->tx_done_idx, dev->tx_free_idx, 1950 if (!dev->base || !dev->tx_descs || !dev->rx_info.descs) 2191 dev->tx_descs, dev->tx_phy_descs); [all …]
|
/openbmc/qemu/tests/qtest/libqos/ |
H A D | pci.c | 82 dev = g_malloc0(sizeof(*dev)); in qpci_device_find() 314 qpci_iounmap(dev, dev->msix_pba_bar); in qpci_msix_disable() 316 qpci_iounmap(dev, dev->msix_table_bar); in qpci_msix_disable() 330 pba_entry = qpci_io_readl(dev, dev->msix_pba_bar, dev->msix_pba_off + off); in qpci_msix_pending() 331 qpci_io_writel(dev, dev->msix_pba_bar, dev->msix_pba_off + off, in qpci_msix_pending() 370 return dev->bus->config_readb(dev->bus, dev->devfn, offset); in qpci_config_readb() 375 return dev->bus->config_readw(dev->bus, dev->devfn, offset); in qpci_config_readw() 380 return dev->bus->config_readl(dev->bus, dev->devfn, offset); in qpci_config_readl() 386 dev->bus->config_writeb(dev->bus, dev->devfn, offset, value); in qpci_config_writeb() 391 dev->bus->config_writew(dev->bus, dev->devfn, offset, value); in qpci_config_writew() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | soc.c | 205 pinctrl = devm_pinctrl_get(dev->mt76.dev); in mt7986_wmac_gpio_setup() 287 struct device *pdev = dev->mt76.dev; in mt798x_wmac_coninfra_setup() 902 if (is_7975(dev, 0, adie_type) || is_7976(dev, 0, adie_type)) { in mt7986_wmac_clock_enable() 910 if (is_7975(dev, 1, adie_type) || is_7976(dev, 1, adie_type)) { in mt7986_wmac_clock_enable() 1029 if (is_7976(dev, 0, adie_type) && is_7976(dev, 1, adie_type)) in mt7986_wmac_sku_update() 1031 else if (is_7975(dev, 0, adie_type) && is_7975(dev, 1, adie_type)) in mt7986_wmac_sku_update() 1197 struct device *pdev = dev->mt76.dev; in mt798x_wmac_init() 1244 dev = mt7915_mmio_probe(&pdev->dev, mem_base, chip_id); in mt798x_wmac_probe() 1245 if (IS_ERR(dev)) in mt798x_wmac_probe() 1248 mdev = &dev->mt76; in mt798x_wmac_probe() [all …]
|
H A D | dma.c | 11 struct mt7915_dev *dev = phy->dev; in mt7915_init_tx_queues() local 166 if (dev->hif2) in mt7915_dma_prefetch() 304 if (dev->dbdc_support || dev->phy.mt76->band_idx) in mt7915_dma_start() 483 ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MCU], in mt7915_dma_init() 544 if (dev->dbdc_support || dev->phy.mt76->band_idx) { in mt7915_dma_init() 614 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[i], true); in mt7915_dma_reset() 620 mt76_queue_tx_cleanup(dev, dev->mt76.q_mcu[i], true); in mt7915_dma_reset() 623 mt76_queue_rx_cleanup(dev, &dev->mt76.q_rx[i]); in mt7915_dma_reset() 637 mt7915_dma_reset_tx_queue(dev, dev->mphy.q_tx[i]); in mt7915_dma_reset() 643 mt76_queue_reset(dev, dev->mt76.q_mcu[i]); in mt7915_dma_reset() [all …]
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_drv.c | 106 WARN_ON(dev != minor->dev); in drm_minor_alloc_release() 130 minor->dev = dev; in drm_minor_alloc() 593 put_device(dev->dev); in drm_dev_init_release() 596 dev->dev = NULL; in drm_dev_init_release() 621 dev->dev = get_device(parent); in drm_dev_init() 779 drmm_add_final_kfree(dev, dev); in drm_dev_alloc() 790 dev->driver->release(dev); in drm_dev_release() 952 dev->dev ? dev_name(dev->dev) : "virtual device", in drm_dev_register() 953 dev->primary ? dev->primary->index : dev->accel->index); in drm_dev_register() 959 dev->driver->unload(dev); in drm_dev_register() [all …]
|
H A D | drm_vblank.c | 405 struct drm_device *dev = crtc->dev; in drm_crtc_accurate_vblank_count() local 488 struct drm_device *dev = vblank->dev; in vblank_disable_fn() local 540 vblank->dev = dev; in drm_vblank_init() 611 struct drm_device *dev = crtc->dev; in drm_calc_timestamping_constants() local 696 struct drm_device *dev = crtc->dev; in drm_crtc_vblank_helper_get_vblank_timestamp_internal() local 1101 struct drm_device *dev = crtc->dev; in drm_crtc_arm_vblank_event() local 1126 struct drm_device *dev = crtc->dev; in drm_crtc_send_vblank_event() local 1343 struct drm_device *dev = crtc->dev; in drm_crtc_vblank_off() local 1422 struct drm_device *dev = crtc->dev; in drm_crtc_vblank_reset() local 1462 struct drm_device *dev = crtc->dev; in drm_crtc_set_max_vblank_count() local [all …]
|
/openbmc/qemu/hw/usb/ |
H A D | redirect.c | 326 q->dev = dev; in packet_id_queue_init() 400 if (!dev->dev.attached) { in usbredir_is_cancelled() 1247 dev->parser->priv = dev; in usbredir_create_parser() 1415 usb_ep_init(&dev->dev); in usbredir_init_endpoints() 1418 dev->endpoint[i].dev = dev; in usbredir_init_endpoints() 1695 dev->dev.speedmask = (1 << dev->dev.speed) | dev->compatible_speedmask; in usbredir_device_connect() 1729 dev->dev.addr = 0; in usbredir_device_disconnect() 1730 dev->dev.speed = 0; in usbredir_device_disconnect() 1757 dev->dev.speedmask = (1 << dev->dev.speed) | dev->compatible_speedmask; in usbredir_mark_speed_incompatible() 1848 !(dev->dev.port->speedmask & dev->dev.speedmask)) { in usbredir_ep_info() [all …]
|
/openbmc/linux/drivers/pci/ |
H A D | pci.c | 319 dev = pci_upstream_bridge(dev); in pci_dev_str_match_path() 2319 dev_WARN_ONCE(&dev->dev, atomic_read(&dev->enable_cnt) <= 0, in pci_disable_device() 2588 pme_dev->dev = dev; in pci_pme_active() 2599 if (pme_dev->dev == dev) { in pci_pme_active() 3240 pm_runtime_forbid(&dev->dev); in pci_pm_init() 3242 pm_runtime_enable(&dev->dev); in pci_pm_init() 3987 dev = dev->bus->self; in pci_get_interrupt_pin() 4007 dev = dev->bus->self; in pci_common_swizzle() 5317 device_lock(&dev->dev); in pci_dev_lock() 5328 device_unlock(&dev->dev); in pci_dev_trylock() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtl818x/rtl8180/ |
H A D | rtl8225.c | 328 rtl8225_write(dev, 0x0, 0x067); in rtl8225_rf_init() 329 rtl8225_write(dev, 0x1, 0xFE0); in rtl8225_rf_init() 330 rtl8225_write(dev, 0x2, 0x44D); in rtl8225_rf_init() 331 rtl8225_write(dev, 0x3, 0x441); in rtl8225_rf_init() 332 rtl8225_write(dev, 0x4, 0x8BE); in rtl8225_rf_init() 334 rtl8225_write(dev, 0x6, 0xAE6); in rtl8225_rf_init() 336 rtl8225_write(dev, 0x8, 0x01F); in rtl8225_rf_init() 756 rtl8225_write(dev, 0, 0x1B7); in rtl8180_detect_rf() 758 reg8 = rtl8225_read(dev, 8); in rtl8180_detect_rf() 759 reg9 = rtl8225_read(dev, 9); in rtl8180_detect_rf() [all …]
|
/openbmc/linux/drivers/usb/gadget/udc/ |
H A D | pch_udc.c | 1438 dev = ep->dev; in complete_req() 1656 dev = ep->dev; in pch_udc_pcd_ep_enable() 1761 dev = ep->dev; in pch_udc_free_request() 1797 dev = ep->dev; in pch_udc_pcd_queue() 2259 rc = dev->driver->setup(&dev->gadget, &dev->setup_data); in pch_udc_gadget_setup() 2787 ep->dev = dev; in pch_udc_pcd_reinit() 2876 dev_err(&dev->pdev->dev, in init_dma_pools() 2886 dev_err(&dev->pdev->dev, in init_dma_pools() 2903 return dma_mapping_error(&dev->pdev->dev, dev->dma_addr); in init_dma_pools() 3012 dma_unmap_single(&dev->pdev->dev, dev->dma_addr, in pch_udc_remove() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/dispnv04/ |
H A D | hw.c | 114 if (nv_two_heads(dev)) in NVBlankScreen() 115 NVSetOwner(dev, head); in NVBlankScreen() 217 struct pci_dev *pdev = to_pci_dev(dev->dev); in nouveau_hw_get_clock() 313 struct pci_dev *pdev = to_pci_dev(dev->dev); in nouveau_hw_save_vga_fonts() 319 if (nv_two_heads(dev)) in nouveau_hw_save_vga_fonts() 320 NVSetOwner(dev, 0); in nouveau_hw_save_vga_fonts() 339 if (nv_two_heads(dev)) in nouveau_hw_save_vga_fonts() 368 if (nv_two_heads(dev)) in nouveau_hw_save_vga_fonts() 406 if (nv_two_heads(dev)) in nv_save_state_ramdac() 483 if (nv_two_heads(dev)) in nv_load_state_ramdac() [all …]
|
/openbmc/linux/drivers/media/usb/au0828/ |
H A D | au0828-video.c | 133 dev->isoc_ctl.isoc_copy(dev, urb); in au0828_irq_callback() 659 dev->v4l2_dev.mdev = dev->media_dev; in au0828_v4l2_device_register() 1009 dev->streaming_users, dev->users); in au0828_v4l2_open() 1042 dev->streaming_users, dev->users); in au0828_v4l2_close() 1961 dev->field_size = dev->width * dev->height; in au0828_analog_register() 1963 dev->bytesperline = dev->width << 1; in au0828_analog_register() 1978 dev->vdev.lock = &dev->lock; in au0828_analog_register() 1979 dev->vdev.queue = &dev->vb_vidq; in au0828_analog_register() 1989 dev->vbi_dev.lock = &dev->lock; in au0828_analog_register() 1990 dev->vbi_dev.queue = &dev->vb_vbiq; in au0828_analog_register() [all …]
|
/openbmc/linux/drivers/media/test-drivers/vivid/ |
H A D | vivid-vid-out.c | 162 dev->can_loop_video = vivid_vid_can_loop(dev); in vid_out_start_streaming() 223 switch (dev->output_type[dev->output]) { in vivid_update_format_out() 226 dev->field_out = dev->tv_field_out; in vivid_update_format_out() 270 dev->compose_out = dev->sink_rect; in vivid_update_format_out() 271 dev->compose_bounds_out = dev->sink_rect; in vivid_update_format_out() 272 dev->crop_out = dev->compose_out; in vivid_update_format_out() 275 dev->fmt_out_rect = dev->crop_out; in vivid_update_format_out() 380 if (!dev->has_scaler_out && !dev->has_crop_out && !dev->has_compose_out) { in vivid_try_fmt_vid_out() 392 } else if (!dev->has_scaler_out && dev->has_compose_out && !dev->has_crop_out) { in vivid_try_fmt_vid_out() 484 if (dev->has_scaler_out || dev->has_crop_out || dev->has_compose_out) { in vivid_s_fmt_vid_out() [all …]
|
H A D | vivid-osd.c | 270 dev->bytes_per_pixel = dev->bits_per_pixel / 8; in vivid_fb_init_vidmode() 287 dev->fb_defined.xres = dev->display_width; in vivid_fb_init_vidmode() 288 dev->fb_defined.yres = dev->display_height; in vivid_fb_init_vidmode() 289 dev->fb_defined.xres_virtual = dev->display_width; in vivid_fb_init_vidmode() 302 _vivid_fb_check_var(&dev->fb_defined, dev); in vivid_fb_init_vidmode() 306 vivid_fb_get_fix(dev, &dev->fb_fix); in vivid_fb_init_vidmode() 311 dev->fb_info.par = dev; in vivid_fb_init_vidmode() 312 dev->fb_info.var = dev->fb_defined; in vivid_fb_init_vidmode() 313 dev->fb_info.fix = dev->fb_fix; in vivid_fb_init_vidmode() 360 dev->video_pbase = virt_to_phys(dev->video_vbase); in vivid_fb_init() [all …]
|
/openbmc/linux/drivers/gpu/drm/v3d/ |
H A D | v3d_trace.h | 26 __entry->dev = dev->primary->index; 52 __entry->dev = dev->primary->index; 78 __entry->dev = dev->primary->index; 98 __entry->dev = dev->primary->index; 118 __entry->dev = dev->primary->index; 138 __entry->dev = dev->primary->index; 157 __entry->dev = dev->primary->index; 177 __entry->dev = dev->primary->index; 197 __entry->dev = dev->primary->index; 219 __entry->dev = dev->primary->index; [all …]
|
/openbmc/linux/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_main.c | 200 dev->ibdev.num_comp_vectors = dev->eq_cnt; in ocrdma_register_device() 203 dev->ibdev.dev.parent = &dev->nic_info.pdev->dev; in ocrdma_register_device() 210 ret = ib_device_set_netdev(&dev->ibdev, dev->nic_info.netdev, 1); in ocrdma_register_device() 214 dma_set_max_seg_size(&dev->nic_info.pdev->dev, UINT_MAX); in ocrdma_register_device() 216 &dev->nic_info.pdev->dev); in ocrdma_register_device() 269 if (!dev) { in ocrdma_add() 279 dev->id = PCI_FUNC(dev->nic_info.pdev->devfn); in ocrdma_add() 305 dev_name(&dev->nic_info.pdev->dev), hca_name(dev), in ocrdma_add() 306 port_speed_string(dev), dev->model_number, in ocrdma_add() 309 dev_name(&dev->nic_info.pdev->dev), dev->id); in ocrdma_add() [all …]
|
/openbmc/linux/drivers/media/usb/em28xx/ |
H A D | em28xx-audio.c | 43 dev_printk(KERN_DEBUG, &dev->intf->dev, \ 154 dev_err(&dev->intf->dev, in em28xx_audio_isocirq() 172 dev_err(&dev->intf->dev, in em28xx_init_audio_isoc() 243 if (!dev->alt || dev->is_audio_only) { in snd_em28xx_capture_open() 264 dev->ifnum, dev->alt); in snd_em28xx_capture_open() 291 dev_err(&dev->intf->dev, in snd_em28xx_capture_open() 698 dev_info(&dev->intf->dev, in em28xx_audio_urb_init() 738 dev_info(&dev->intf->dev, in em28xx_audio_urb_init() 776 dev_err(&dev->intf->dev, in em28xx_audio_urb_init() 824 dev_info(&dev->intf->dev, in em28xx_audio_init() [all …]
|
/openbmc/linux/drivers/net/dsa/microchip/ |
H A D | lan937x_main.c | 93 dev_err(dev->dev, "Failed to write phy register\n"); in lan937x_internal_phy_write() 123 dev_err(dev->dev, "Failed to read phy register\n"); in lan937x_internal_phy_read() 176 struct dsa_switch *ds = dev->ds; in lan937x_port_setup() 205 dev->dev_ops->cfg_port_member(dev, port, member); in lan937x_port_setup() 215 dev->cpu_port = dp->index; in lan937x_config_cpu_port() 229 struct dsa_switch *ds = dev->ds; in lan937x_change_mtu() 332 dev_info(dev->dev, "Applied rgmii tx delay for the port %d\n", in lan937x_setup_rgmii_delay() 338 dev_info(dev->dev, "Applied rgmii rx delay for the port %d\n", in lan937x_setup_rgmii_delay() 350 dev->port_mask = (1 << dev->info->port_cnt) - 1; in lan937x_switch_init() 363 dev_err(dev->dev, "failed to enable spi indirect access"); in lan937x_setup() [all …]
|
/openbmc/linux/drivers/pci/pcie/ |
H A D | portdrv.c | 520 if (!dev || !dev->driver) in pcie_port_probe_service() 550 if (!dev || !dev->driver) in pcie_port_remove_service() 711 pm_runtime_use_autosuspend(&dev->dev); in pcie_portdrv_probe() 712 pm_runtime_mark_last_busy(&dev->dev); in pcie_portdrv_probe() 713 pm_runtime_put_autosuspend(&dev->dev); in pcie_portdrv_probe() 714 pm_runtime_allow(&dev->dev); in pcie_portdrv_probe() 723 pm_runtime_forbid(&dev->dev); in pcie_portdrv_remove() 724 pm_runtime_get_noresume(&dev->dev); in pcie_portdrv_remove() 725 pm_runtime_dont_use_autosuspend(&dev->dev); in pcie_portdrv_remove() 736 pm_runtime_forbid(&dev->dev); in pcie_portdrv_shutdown() [all …]
|
H A D | ptm.c | 45 if (!pci_is_pcie(dev)) in pci_ptm_init() 52 dev->ptm_cap = ptm; in pci_ptm_init() 71 dev->ptm_root = 1; in pci_ptm_init() 89 u16 ptm = dev->ptm_cap; in pci_save_ptm_state() 106 u16 ptm = dev->ptm_cap; in pci_restore_ptm_state() 139 if (!dev->ptm_root) { in __pci_enable_ptm() 150 if (dev->ptm_root) in __pci_enable_ptm() 177 dev->ptm_enabled = 1; in pci_enable_ptm() 235 if (dev->ptm_enabled) in pci_suspend_ptm() 242 if (dev->ptm_enabled) in pci_resume_ptm() [all …]
|
/openbmc/linux/drivers/macintosh/ |
H A D | macio_asic.c | 55 tmp = get_device(&dev->ofdev.dev); in macio_dev_get() 65 put_device(&dev->ofdev.dev); in macio_dev_put() 243 dev->interrupt[index].name = dev_name(&dev->ofdev.dev); in macio_create_fixup_irq() 377 dev->ofdev.dev.of_node = np; in macio_add_one_device() 379 dev->ofdev.dev.dma_mask = &dev->ofdev.archdata.dma_mask; in macio_add_one_device() 384 dev->ofdev.dev.dma_parms = &dev->dma_parms; in macio_add_one_device() 397 dev->ofdev.dev.archdata = chip->lbus.pdev->dev.archdata; in macio_add_one_device() 398 dev->ofdev.dev.dma_ops = chip->lbus.pdev->dev.dma_ops; in macio_add_one_device() 403 dev, &dev->ofdev, &dev->ofdev.dev, &dev->ofdev.dev.kobj); in macio_add_one_device() 433 put_device(&dev->ofdev.dev); in macio_add_one_device() [all …]
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | m88ds3103.c | 967 ret = regmap_write(dev->regmap, 0x33, dev->cfg->agc); in m88ds3103_set_frontend() 1186 if (!dev->warm || !(dev->fe_status & FE_HAS_LOCK)) { in m88ds3103_get_frontend() 1771 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in m88ds3103_probe() 1772 if (!dev) { in m88ds3103_probe() 1790 dev->cfg = &dev->config; in m88ds3103_probe() 1794 dev->regmap_config.lock_arg = dev; in m88ds3103_probe() 1809 dev_dbg(&client->dev, "chip_id=%02x\n", dev->chip_id); in m88ds3103_probe() 1868 dev->muxc->priv = dev; in m88ds3103_probe() 1883 dev->fe.demodulator_priv = dev; in m88ds3103_probe() 1914 kfree(dev); in m88ds3103_probe() [all …]
|
/openbmc/linux/drivers/pci/msi/ |
H A D | api.c | 53 if (!pci_msi_enabled() || !dev || !dev->msi_enabled) in pci_disable_msi() 56 msi_lock_descs(&dev->dev); in pci_disable_msi() 59 msi_unlock_descs(&dev->dev); in pci_disable_msi() 75 if (!dev->msix_cap) in pci_msix_vec_count() 78 pci_read_config_word(dev, dev->msix_cap + PCI_MSIX_FLAGS, &control); in pci_msix_vec_count() 125 if (!dev->msix_cap) in pci_msix_can_alloc_dyn() 196 if (!pci_msi_enabled() || !dev || !dev->msix_enabled) in pci_disable_msix() 199 msi_lock_descs(&dev->dev); in pci_disable_msix() 202 msi_unlock_descs(&dev->dev); in pci_disable_msix() 317 if (!dev->msi_enabled && !dev->msix_enabled) in pci_irq_vector() [all …]
|