/openbmc/linux/drivers/misc/mei/ |
H A D | pci-txe.c | 121 err = mei_register(dev, &pdev->dev); in mei_txe_probe() 172 if (!dev) in mei_txe_shutdown() 221 if (!dev) in mei_txe_pci_suspend() 243 if (!dev) in mei_txe_pci_resume() 281 if (!dev) in mei_txe_pm_runtime_idle() 296 if (!dev) in mei_txe_pm_runtime_suspend() 352 struct pci_dev *pdev = to_pci_dev(dev->dev); in mei_txe_set_pm_domain() 354 if (pdev->dev.bus && pdev->dev.bus->pm) { in mei_txe_set_pm_domain() 355 dev->pg_domain.ops = *pdev->dev.bus->pm; in mei_txe_set_pm_domain() 361 dev_pm_domain_set(&pdev->dev, &dev->pg_domain); in mei_txe_set_pm_domain() [all …]
|
H A D | hw-txe.c | 238 dev_err(dev->dev, "aliveness timed out\n"); in mei_txe_aliveness_poll() 441 struct pci_dev *pdev = to_pci_dev(dev->dev); in mei_txe_synchronize_irq() 467 dev_dbg(dev->dev, in mei_txe_pending_interrupts() 641 struct pci_dev *pdev = to_pci_dev(dev->dev); in mei_txe_fw_status() 944 pm_runtime_set_active(dev->dev); in mei_txe_hw_start() 1062 if (pci_dev_msi_enabled(to_pci_dev(dev->dev))) in mei_txe_irq_thread_handler() 1103 dev_dbg(dev->dev, in mei_txe_irq_thread_handler() 1121 dev_err(dev->dev, in mei_txe_irq_thread_handler() 1136 dev->hbuf_is_ready = mei_hbuf_is_ready(dev); in mei_txe_irq_thread_handler() 1141 dev->hbuf_is_ready = mei_hbuf_is_ready(dev); in mei_txe_irq_thread_handler() [all …]
|
/openbmc/linux/drivers/gpu/drm/mediatek/ |
H A D | mtk_disp_drv.h | 15 int mtk_aal_clk_enable(struct device *dev); 16 void mtk_aal_clk_disable(struct device *dev); 21 void mtk_aal_start(struct device *dev); 22 void mtk_aal_stop(struct device *dev); 30 void mtk_ccorr_start(struct device *dev); 31 void mtk_ccorr_stop(struct device *dev); 39 void mtk_color_start(struct device *dev); 45 void mtk_dpi_start(struct device *dev); 46 void mtk_dpi_stop(struct device *dev); 59 void mtk_gamma_stop(struct device *dev); [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-designware-slave.c | 28 regmap_write(dev->map, DW_IC_CON, dev->slave_cfg); in i2c_dw_configure_fifo_slave() 53 regmap_write(dev->map, DW_IC_SDA_HOLD, dev->sda_hold_time); in i2c_dw_init_slave() 69 pm_runtime_get_sync(dev->dev); in i2c_dw_reg_slave() 91 dev->disable(dev); in i2c_dw_unreg_slave() 94 pm_runtime_put(dev->dev); in i2c_dw_unreg_slave() 165 dev_dbg(dev->dev, in i2c_dw_isr_slave() 252 ret = dev->init(dev); in i2c_dw_probe_slave() 260 adap->dev.parent = dev->dev; in i2c_dw_probe_slave() 263 ret = devm_request_irq(dev->dev, dev->irq, i2c_dw_isr_slave, in i2c_dw_probe_slave() 264 IRQF_SHARED, dev_name(dev->dev), dev); in i2c_dw_probe_slave() [all …]
|
H A D | i2c-highlander.c | 153 dev_warn(dev->dev, "ack abnormality\n"); in highlander_i2c_wait_for_ack() 194 dev_err(dev->dev, "polling timed out\n"); in highlander_i2c_poll() 220 dev_err(dev->dev, "Arbitration loss\n"); in highlander_i2c_read() 247 smbus_read_data(data, dev->buf, dev->buf_len); in highlander_i2c_read() 259 smbus_write_data(dev->buf, data, dev->buf_len); in highlander_i2c_write() 325 dev_err(dev->dev, "unsupported xfer size %zu\n", dev->buf_len); in highlander_i2c_smbus_xfer() 337 highlander_i2c_command(dev, command, dev->buf_len); in highlander_i2c_smbus_xfer() 378 dev->dev = &pdev->dev; in highlander_i2c_probe() 407 adap->dev.parent = &pdev->dev; in highlander_i2c_probe() 429 free_irq(dev->irq, dev); in highlander_i2c_probe() [all …]
|
H A D | i2c-bcm-kona.c | 620 if (dev->hs_cfg) { in bcm_kona_i2c_xfer() 674 if (dev->hs_cfg) { in bcm_kona_i2c_xfer() 745 dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL); in bcm_kona_i2c_probe() 746 if (!dev) in bcm_kona_i2c_probe() 750 dev->device = &pdev->dev; in bcm_kona_i2c_probe() 759 dev->external_clk = devm_clk_get(dev->device, NULL); in bcm_kona_i2c_probe() 814 rc = dev->irq; in bcm_kona_i2c_probe() 819 rc = devm_request_irq(&pdev->dev, dev->irq, bcm_kona_i2c_isr, in bcm_kona_i2c_probe() 822 dev_err(dev->device, "failed to request irq %i\n", dev->irq); in bcm_kona_i2c_probe() 844 adap->dev.parent = &pdev->dev; in bcm_kona_i2c_probe() [all …]
|
H A D | i2c-nomadik.c | 239 dev_err(&dev->adev->dev, in flush_i2c_fifo() 421 dev_err(&dev->adev->dev, in setup_i2c_controller() 466 if (dev->stop || !dev->vendor->has_mtdws) in read_i2c() 477 &dev->xfer_complete, dev->adap.timeout); in read_i2c() 546 if (dev->stop || !dev->vendor->has_mtdws) in write_i2c() 600 dev_err(&dev->adev->dev, "%s\n", in nmk_i2c_xfer_one() 669 pm_runtime_get_sync(&dev->adev->dev); in nmk_i2c_xfer() 691 pm_runtime_put_sync(&dev->adev->dev); in nmk_i2c_xfer() 809 dev_err(&dev->adev->dev, in i2c_irq_handler() 967 dev = devm_kzalloc(&adev->dev, sizeof(*dev), GFP_KERNEL); in nmk_i2c_probe() [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/b43/ |
H A D | phy_lp.c | 76 struct ssb_sprom *sprom = dev->dev->bus_sprom; in lpphy_read_band_sprom() 199 struct ssb_bus *bus = dev->dev->sdev->bus; in lpphy_baseband_rev0_1_init() 309 (dev->dev->chip_id == 0x5354) && in lpphy_baseband_rev0_1_init() 417 if (dev->dev->board_rev >= 0x18) { in lpphy_baseband_rev2plus_init() 434 if ((dev->dev->chip_id == 0x4325) && (dev->dev->chip_rev == 0)) { in lpphy_baseband_rev2plus_init() 452 if ((dev->dev->chip_id == 0x4325) && (dev->dev->chip_rev == 0)) { in lpphy_baseband_rev2plus_init() 477 if ((dev->dev->chip_id == 0x4325) && (dev->dev->chip_rev == 0)) { in lpphy_baseband_rev2plus_init() 504 struct ssb_bus *bus = dev->dev->sdev->bus; in lpphy_2062_init() 682 if (dev->dev->chip_id == 0x4325) { in lpphy_radio_init() 1851 if (dev->dev->chip_id == 0x5354) { in lpphy_rx_iq_cal() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtl818x/rtl8180/ |
H A D | grf5101.c | 87 write_grf5101(dev, 0x15, 0x0); in grf5101_rf_set_channel() 88 write_grf5101(dev, 0x06, txpw); in grf5101_rf_set_channel() 90 write_grf5101(dev, 0x15, 0x0); in grf5101_rf_set_channel() 93 write_grf5101(dev, 0x07, 0x0); in grf5101_rf_set_channel() 110 write_grf5101(dev, 0x07, 0x0); in grf5101_rf_stop() 112 write_grf5101(dev, 0x1f, 0x5); in grf5101_rf_stop() 122 write_grf5101(dev, 0x1f, 0x0); in grf5101_rf_init() 123 write_grf5101(dev, 0x1f, 0x0); in grf5101_rf_init() 129 write_grf5101(dev, 0x1f, 0x1); in grf5101_rf_init() 138 write_grf5101(dev, 0x06, 0x0); in grf5101_rf_init() [all …]
|
/openbmc/linux/drivers/scsi/aacraid/ |
H A D | rx.c | 119 rx_writeb(dev, MUnit.OIMR, dev->OIMR = 0xff); in aac_rx_disable_interrupt() 129 rx_writeb(dev, MUnit.OIMR, dev->OIMR = 0xfb); in aac_rx_enable_interrupt_producer() 139 rx_writeb(dev, MUnit.OIMR, dev->OIMR = 0xf7); in aac_rx_enable_interrupt_message() 399 struct aac_dev *dev = fib->dev; in aac_rx_deliver_producer() local 422 struct aac_dev *dev = fib->dev; in aac_rx_deliver_message() local 465 dev->base = dev->regs.rx = ioremap(dev->base_start, size); in aac_rx_ioremap() 468 dev->IndexRegs = &dev->regs.rx->IndexRegs; in aac_rx_ioremap() 480 dev->name, dev->id, bled); in aac_rx_restart_adapter() 656 dev->dbg_base = dev->base_start; in _aac_rx_init() 657 dev->dbg_base_mapped = dev->base; in _aac_rx_init() [all …]
|
/openbmc/linux/drivers/hid/intel-ish-hid/ipc/ |
H A D | ipc.c | 346 ++dev->ipc_tx_cnt; in write_ipc_from_queue() 507 list_splice_init(&dev->wr_processing_list, &dev->wr_free_list); in ish_fw_reset_handler() 624 ishtp_dev = dev; in recv_ipc() 678 ishtp_recv(dev); in ish_irq_handler() 684 ++dev->ipc_rx_cnt; in ish_irq_handler() 792 ish_wakeup(dev); in _ish_hw_reset() 855 ish_wakeup(dev); in ish_hw_start() 945 dev = devm_kzalloc(&pdev->dev, in ish_dev_init() 948 if (!dev) in ish_dev_init() 951 dev->devc = &pdev->dev; in ish_dev_init() [all …]
|
/openbmc/linux/drivers/amba/ |
H A D | bus.c | 569 ret = device_add(&dev->dev); in amba_device_add() 579 device_initialize(&dev->dev); in amba_device_initialize() 583 dev->dev.bus = &amba_bustype; in amba_device_initialize() 584 dev->dev.dma_mask = &dev->dev.coherent_dma_mask; in amba_device_initialize() 585 dev->dev.dma_parms = &dev->dma_parms; in amba_device_initialize() 586 dev->res.name = dev_name(&dev->dev); in amba_device_initialize() 627 amba_device_initialize(dev, dev->dev.init_name); in amba_device_register() 628 dev->dev.init_name = NULL; in amba_device_register() 640 put_device(&dev->dev); in amba_device_put() 657 device_unregister(&dev->dev); in amba_device_unregister() [all …]
|
/openbmc/qemu/tests/qtest/libqos/ |
H A D | virtio-pci-modern.c | 19 return qpci_io_readb(dev->pdev, dev->bar, dev->device_cfg_offset + addr); in config_readb() 45 qpci_io_writel(dev->pdev, dev->bar, dev->common_cfg_offset + in get_features() 49 lo = qpci_io_readl(dev->pdev, dev->bar, dev->common_cfg_offset + in get_features() 52 qpci_io_writel(dev->pdev, dev->bar, dev->common_cfg_offset + in get_features() 56 hi = qpci_io_readl(dev->pdev, dev->bar, dev->common_cfg_offset + in get_features() 69 qpci_io_writel(dev->pdev, dev->bar, dev->common_cfg_offset + in set_features() 73 qpci_io_writel(dev->pdev, dev->bar, dev->common_cfg_offset + in set_features() 77 qpci_io_writel(dev->pdev, dev->bar, dev->common_cfg_offset + in set_features() 81 qpci_io_writel(dev->pdev, dev->bar, dev->common_cfg_offset + in set_features() 92 qpci_io_writel(dev->pdev, dev->bar, dev->common_cfg_offset + in get_guest_features() [all …]
|
/openbmc/linux/drivers/usb/misc/ |
H A D | chaoskey.c | 96 if (dev) { in chaoskey_free() 167 dev); in chaoskey_probe() 201 dev->hwrng.name = dev->name ? dev->name : chaoskey_driver.name; in chaoskey_probe() 347 if (dev->valid != dev->used) { in _chaoskey_fill() 349 dev->valid, dev->used); in _chaoskey_fill() 419 if (dev == NULL || !dev->present) in chaoskey_read() 437 if (dev->valid == dev->used) { in chaoskey_read() 445 this_time = dev->valid - dev->used; in chaoskey_read() 505 if (dev->valid == dev->used) in chaoskey_rng_read() 508 this_time = dev->valid - dev->used; in chaoskey_rng_read() [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/b43legacy/ |
H A D | main.c | 396 if (dev->dev->id.revision >= 3) { in b43legacy_tsf_read() 470 if (dev->dev->id.revision >= 3) { in b43legacy_tsf_write_locked() 589 synchronize_irq(dev->dev->irq); in b43legacy_synchronize_irq() 737 if (dev->dev->id.revision < 5) in drain_txstatus_queue() 1513 dev->dev->dev, GFP_KERNEL, in do_request_fw() 1525 err = request_firmware(fw, path, dev->dev->dev); in do_request_fw() 1766 dev->fw.rev, dev->fw.patch); in b43legacy_upload_microcode() 2384 dev->max_nr_keys = (dev->dev->id.revision >= 5) ? 58 : 20; in b43legacy_security_init() 2948 free_irq(dev->dev->irq, dev); in b43legacy_wireless_core_stop() 2964 dev->dev->irq); in b43legacy_wireless_core_start() [all …]
|
/openbmc/linux/drivers/media/usb/cx231xx/ |
H A D | cx231xx-audio.c | 164 dev_err(dev->dev, in cx231xx_audio_isocirq() 251 dev_err(dev->dev, in cx231xx_audio_bulkirq() 263 dev_dbg(dev->dev, in cx231xx_init_audio_isoc() 324 dev_dbg(dev->dev, in cx231xx_init_audio_bulk() 401 dev_dbg(dev->dev, in snd_cx231xx_capture_open() 405 dev_err(dev->dev, in snd_cx231xx_capture_open() 419 dev_err(dev->dev, in snd_cx231xx_capture_open() 456 dev_err(dev->dev, in snd_cx231xx_pcm_close() 576 dev_dbg(dev->dev, in cx231xx_audio_init() 624 dev_info(dev->dev, in cx231xx_audio_init() [all …]
|
/openbmc/linux/drivers/media/usb/au0828/ |
H A D | au0828-core.c | 160 kfree(dev); in au0828_usb_release() 260 dev_err(&dev->usbdev->dev, in au0828_media_graph_notify() 347 find_source = &dev->input_ent[dev->input_type]; in au0828_enable_source() 433 dev->active_source->name, dev->active_sink->name, in au0828_enable_source() 519 dev->active_link_owner = dev->active_link_user; in au0828_disable_source() 628 dev->entity_notify.notify_data = (void *) dev; in au0828_media_device_register() 635 dev->media_dev->source_priv = (void *) dev; in au0828_media_device_register() 673 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in au0828_usb_probe() 685 dev->board = au0828_boards[dev->boardnr]; in au0828_usb_probe() 760 if (!dev) in au0828_suspend() [all …]
|
/openbmc/linux/drivers/net/usb/ |
H A D | smsc75xx.c | 529 struct usbnet *dev = pdata->dev; in smsc75xx_deferred_multicast_write() local 765 if (!platform_get_ethdev_address(&dev->udev->dev, dev->net)) { in smsc75xx_init_mac_address() 778 netif_dbg(dev, ifup, dev->net, in smsc75xx_init_mac_address() 826 dev->mii.dev = dev->net; in smsc75xx_phy_initialize() 1185 netif_dbg(dev, ifup, dev->net, in smsc75xx_reset() 1200 netif_dbg(dev, ifup, dev->net, in smsc75xx_reset() 1470 pdata->dev = dev; in smsc75xx_bind() 1505 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in smsc75xx_bind() 2206 netif_dbg(dev, rx_err, dev->net, in smsc75xx_rx_fixup() 2213 netif_dbg(dev, rx_err, dev->net, in smsc75xx_rx_fixup() [all …]
|
H A D | rtl8150.c | 381 if (!dev) in read_bulk_callback() 427 usb_fill_bulk_urb(dev->rx_urb, dev->udev, usb_rcvbulkpipe(dev->udev, 1), in read_bulk_callback() 456 dev_info(&urb->dev->dev, "%s: Tx status %d\n", in write_bulk_callback() 514 dev_err(&dev->udev->dev, in intr_callback() 582 struct rtl8150 *dev = from_tasklet(dev, t, tl); in rx_fixup() local 598 usb_fill_bulk_urb(dev->rx_urb, dev->udev, usb_rcvbulkpipe(dev->udev, 1), in rx_fixup() 686 usb_fill_bulk_urb(dev->tx_urb, dev->udev, usb_sndbulkpipe(dev->udev, 2), in rtl8150_start_xmit() 725 dev->rx_skb = pull_skb(dev); in rtl8150_open() 731 usb_fill_bulk_urb(dev->rx_urb, dev->udev, usb_rcvbulkpipe(dev->udev, 1), in rtl8150_open() 739 usb_fill_int_urb(dev->intr_urb, dev->udev, usb_rcvintpipe(dev->udev, 3), in rtl8150_open() [all …]
|
/openbmc/linux/drivers/staging/rts5208/ |
H A D | rtsx.c | 242 dev_err(&dev->pci->dev, in rtsx_acquire_irq() 248 dev->irq = dev->pci->irq; in rtsx_acquire_irq() 274 free_irq(dev->irq, (void *)dev); in rtsx_suspend() 338 free_irq(dev->irq, (void *)dev); in rtsx_shutdown() 394 dev_err(&dev->pci->dev, "Bad LUN (%d:%d)\n", in rtsx_control_thread() 505 if (dev) in rtsx_interrupt() 561 dev_info(&dev->pci->dev, "-- %s\n", __func__); in rtsx_release_resources() 582 free_irq(dev->irq, (void *)dev); in rtsx_release_resources() 655 dev_info(&dev->pci->dev, in rtsx_scan_thread() 864 dev->chip->rtsx = dev; in rtsx_probe() [all …]
|
/openbmc/linux/drivers/w1/ |
H A D | w1_io.c | 79 dev->bus_master->write_bit(dev->bus_master->data, 0); in w1_write_bit() 81 dev->bus_master->write_bit(dev->bus_master->data, 1); in w1_write_bit() 84 dev->bus_master->write_bit(dev->bus_master->data, 0); in w1_write_bit() 86 dev->bus_master->write_bit(dev->bus_master->data, 1); in w1_write_bit() 104 dev->enable_pullup && dev->bus_master->set_pullup) { in w1_pre_write() 105 dev->bus_master->set_pullup(dev->bus_master->data, in w1_pre_write() 121 if (dev->enable_pullup && dev->bus_master->set_pullup) in w1_post_write() 122 dev->bus_master->set_pullup(dev->bus_master->data, 0); in w1_post_write() 166 dev->bus_master->write_bit(dev->bus_master->data, 0); in w1_read_bit() 168 dev->bus_master->write_bit(dev->bus_master->data, 1); in w1_read_bit() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7921/ |
H A D | init.c | 71 memcpy(dev->mt76.alpha2, request->alpha2, sizeof(dev->mt76.alpha2)); in mt7921_regd_notifier() 140 dev_err(dev->mt76.dev, "hardware init failed\n"); in mt7921_init_hardware() 163 dev_err(dev->mt76.dev, "register device failed\n"); in mt7921_init_work() 169 dev_err(dev->mt76.dev, "register debugfs failed\n"); in mt7921_init_work() 175 dev_err(dev->mt76.dev, "thermal init failed\n"); in mt7921_init_work() 182 mt76_connac_mcu_set_deep_sleep(&dev->mt76, dev->pm.ds_enable); in mt7921_init_work() 190 dev->phy.dev = dev; in mt7921_register_device() 191 dev->phy.mt76 = &dev->mt76.phy; in mt7921_register_device() 192 dev->mt76.phy.priv = &dev->phy; in mt7921_register_device() 261 dev->mphy.hw->wiphy->available_antennas_rx = dev->mphy.chainmask; in mt7921_register_device() [all …]
|
/openbmc/linux/drivers/usb/ |
H A D | usb-skeleton.c | 80 kfree(dev); in skel_delete() 101 if (!dev) { in skel_open() 173 dev_err(&dev->interface->dev, in skel_read_bulk_callback() 199 dev); in skel_do_read_io() 212 dev_err(&dev->interface->dev, in skel_do_read_io() 305 dev->bulk_in_buffer + dev->bulk_in_copied, in skel_read() 344 dev_err(&dev->interface->dev, in skel_write_bulk_callback() 440 dev_err(&dev->interface->dev, in skel_write() 496 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in skel_probe() 497 if (!dev) in skel_probe() [all …]
|
/openbmc/linux/drivers/infiniband/hw/erdma/ |
H A D | erdma_main.c | 25 if (dev->netdev == NULL || dev->netdev != netdev) in erdma_netdev_event() 103 dev->mtu = dev->netdev->mtu; in erdma_device_register() 108 dev_err(&dev->pdev->dev, in erdma_device_register() 162 dev->comm_irq.name, dev); in erdma_comm_irq_init() 168 free_irq(dev->comm_irq.msix_vector, dev); in erdma_comm_irq_uninit() 243 dev->attrs.numa_node = dev_to_node(&pdev->dev); in erdma_probe_dev() 256 devm_ioremap(&pdev->dev, dev->func_bar_addr, dev->func_bar_len); in erdma_probe_dev() 318 devm_iounmap(&pdev->dev, dev->func_bar); in erdma_probe_dev() 343 devm_iounmap(&pdev->dev, dev->func_bar); in erdma_remove_dev() 373 dev->attrs.max_mr = dev->attrs.max_qp << 1; in erdma_dev_attrs_init() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt76x2/ |
H A D | usb_init.c | 110 dev->mt76.eeprom.data = devm_kzalloc(dev->mt76.dev, in mt76x2u_init_eeprom() 131 mt76x2u_power_on(dev); in mt76x2u_init_hardware() 149 mt76x2u_init_dma(dev); in mt76x2u_init_hardware() 159 mt76x02_mac_setaddr(dev, dev->mt76.eeprom.data + MT_EE_MAC_ADDR); in mt76x2u_init_hardware() 160 dev->mt76.rxfilter = mt76_rr(dev, MT_RX_FILTR_CFG); in mt76x2u_init_hardware() 205 usb->mcu.data = devm_kmalloc(dev->mt76.dev, MCU_RESP_URB_SIZE, in mt76x2u_register_device() 228 mt76x2_init_txpower(dev, &dev->mphy.sband_2g.sband); in mt76x2u_register_device() 229 mt76x2_init_txpower(dev, &dev->mphy.sband_5g.sband); in mt76x2u_register_device() 234 mt76x2u_cleanup(dev); in mt76x2u_register_device() 242 mt76x2u_mac_stop(dev); in mt76x2u_stop_hw() [all …]
|