/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_irq.c | 85 dev->driver->irq_preinstall(dev); in drm_legacy_irq_install() 88 if (dev_is_pci(dev->dev)) in drm_legacy_irq_install() 92 sh_flags, dev->driver->name, dev); in drm_legacy_irq_install() 101 ret = dev->driver->irq_postinstall(dev); in drm_legacy_irq_install() 106 vga_client_unregister(to_pci_dev(dev->dev)); in drm_legacy_irq_install() 109 dev->irq = irq; in drm_legacy_irq_install() 152 vga_client_unregister(to_pci_dev(dev->dev)); in drm_legacy_irq_uninstall() 155 dev->driver->irq_uninstall(dev); in drm_legacy_irq_uninstall() 157 free_irq(dev->irq, dev); in drm_legacy_irq_uninstall() 179 if (WARN_ON(!dev_is_pci(dev->dev))) in drm_legacy_irq_control() [all …]
|
/openbmc/linux/drivers/ps3/ |
H A D | ps3stor_lib.c | 119 dev->region_idx = __ffs(dev->accessible_regions); in ps3stor_probe_access() 122 dev->region_idx, dev->regions[dev->region_idx].start, in ps3stor_probe_access() 123 dev->regions[dev->region_idx].size); in ps3stor_probe_access() 159 dev->sbd.core.driver->name, dev); in ps3stor_setup() 178 dev->sbd.d_region = &dev->dma_region; in ps3stor_setup() 190 dev->bounce_dma = dma_map_single(&dev->sbd.core, dev->bounce_buf, in ps3stor_setup() 208 dma_unmap_single(&dev->sbd.core, dev->bounce_dma, dev->bounce_size, in ps3stor_setup() 213 free_irq(dev->irq, dev); in ps3stor_setup() 215 ps3_sb_event_receive_port_destroy(&dev->sbd, dev->irq); in ps3stor_setup() 232 dma_unmap_single(&dev->sbd.core, dev->bounce_dma, dev->bounce_size, in ps3stor_teardown() [all …]
|
/openbmc/linux/drivers/media/pci/tw686x/ |
H A D | tw686x-core.c | 133 reg_write(dev, DMA_CHANNEL_ENABLE, dev->pending_dma_en); in tw686x_dma_delay() 134 reg_write(dev, DMA_CMD, dev->pending_dma_cmd); in tw686x_dma_delay() 159 dev_dbg(&dev->pci_dev->dev, "reset: stopping DMA\n"); in tw686x_reset_channels() 181 dev_dbg(&dev->pci_dev->dev, in tw686x_irq() 237 kfree(dev); in tw686x_dev_release() 246 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in tw686x_probe() 247 if (!dev) in tw686x_probe() 253 dev->video_channels = kcalloc(max_channels(dev), in tw686x_probe() 260 dev->audio_channels = kcalloc(max_channels(dev), in tw686x_probe() 337 dev->name, dev); in tw686x_probe() [all …]
|
/openbmc/linux/drivers/media/usb/em28xx/ |
H A D | em28xx-i2c.c | 95 dev_warn(&dev->intf->dev, in em2800_i2c_send_bytes() 110 dev_warn(&dev->intf->dev, in em2800_i2c_send_bytes() 140 dev_warn(&dev->intf->dev, in em2800_i2c_recv_bytes() 157 dev_warn(&dev->intf->dev, in em2800_i2c_recv_bytes() 170 dev_warn(&dev->intf->dev, in em2800_i2c_recv_bytes() 221 dev_warn(&dev->intf->dev, in em28xx_i2c_send_bytes() 259 dev_warn(&dev->intf->dev, in em28xx_i2c_send_bytes() 288 dev_dbg(&dev->intf->dev, in em28xx_i2c_recv_bytes() 325 dev_warn(&dev->intf->dev, in em28xx_i2c_recv_bytes() 981 dev->i2c_adap[bus].dev.parent = &dev->intf->dev; in em28xx_i2c_register() [all …]
|
/openbmc/linux/drivers/net/ethernet/seeq/ |
H A D | ether3.c | 174 struct net_device *dev = private->dev; in ether3_ledoff() local 400 if (request_irq(dev->irq, ether3_interrupt, 0, "ether3", dev)) in ether3_open() 427 free_irq(dev->irq, dev); in ether3_close() 466 priv(dev)->tx_head, priv(dev)->tx_tail); in ether3_timeout() 467 ether3_setbuffer(dev, buffer_read, priv(dev)->tx_tail); in ether3_timeout() 474 priv(dev)->tx_head = priv(dev)->tx_tail = 0; in ether3_timeout() 761 if (!dev) { in ether3_probe() 766 SET_NETDEV_DEV(dev, &ec->dev); in ether3_probe() 777 priv(dev)->seeq = priv(dev)->base + data->base_offset; in ether3_probe() 783 priv(dev)->dev = dev; in ether3_probe() [all …]
|
/openbmc/linux/drivers/hid/intel-ish-hid/ishtp/ |
H A D | dma-if.c | 28 if (dev->ishtp_host_dma_tx_buf) in ishtp_cl_alloc_dma_buf() 35 dev->ishtp_host_dma_tx_buf = dma_alloc_coherent(dev->devc, in ishtp_cl_alloc_dma_buf() 38 if (dev->ishtp_host_dma_tx_buf) in ishtp_cl_alloc_dma_buf() 41 dev->ishtp_dma_num_slots = dev->ishtp_host_dma_tx_buf_size / in ishtp_cl_alloc_dma_buf() 44 dev->ishtp_dma_tx_map = kcalloc(dev->ishtp_dma_num_slots, in ishtp_cl_alloc_dma_buf() 50 dev->ishtp_host_dma_rx_buf = dma_alloc_coherent(dev->devc, in ishtp_cl_alloc_dma_buf() 72 dma_free_coherent(dev->devc, dev->ishtp_host_dma_tx_buf_size, in ishtp_cl_free_dma_buf() 78 dma_free_coherent(dev->devc, dev->ishtp_host_dma_rx_buf_size, in ishtp_cl_free_dma_buf() 82 kfree(dev->ishtp_dma_tx_map); in ishtp_cl_free_dma_buf() 85 dev->ishtp_dma_tx_map = NULL; in ishtp_cl_free_dma_buf() [all …]
|
/openbmc/linux/drivers/media/usb/hdpvr/ |
H A D | hdpvr-core.c | 66 usb_put_dev(dev->udev); in hdpvr_delete() 138 dev->fw_ver = dev->usbc_buf[1]; in device_authorization() 142 dev->fw_ver, &dev->usbc_buf[2]); in device_authorization() 152 switch (dev->fw_ver) { in device_authorization() 210 buf = dev->usbc_buf; in hdpvr_device_init() 279 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in hdpvr_probe() 280 if (!dev) { in hdpvr_probe() 291 if (v4l2_device_register(&interface->dev, &dev->v4l2_dev)) { in hdpvr_probe() 300 if (!dev->usbc_buf) { in hdpvr_probe() 382 retval = hdpvr_register_videodev(dev, &interface->dev, in hdpvr_probe() [all …]
|
/openbmc/linux/drivers/media/i2c/ |
H A D | rdacm21.c | 382 dev_dbg(dev->dev, "OV10640 ID = 0x%2x\n", val); in ov10640_check_id() 406 dev_err(dev->dev, "OV490 PID read failed (%d)\n", ret); in ov490_initialize() 415 dev_err(dev->dev, "OV490 ID mismatch (0x%04x)\n", in ov490_initialize() 441 dev_err(dev->dev, in ov490_initialize() 468 dev_info(dev->dev, "Identified RDACM21 camera module\n"); in ov490_initialize() 516 dev->serializer.client->addr = dev->addrs[0]; in rdacm21_initialize() 522 dev->isp->addr = dev->addrs[1]; in rdacm21_initialize() 548 dev = devm_kzalloc(&client->dev, sizeof(*dev), GFP_KERNEL); in rdacm21_probe() 549 if (!dev) in rdacm21_probe() 551 dev->dev = &client->dev; in rdacm21_probe() [all …]
|
/openbmc/linux/drivers/infiniband/hw/efa/ |
H A D | efa_main.c | 167 dev->admin_irq.data = dev; in efa_setup_mgmnt_irq() 183 return efa_request_irq(dev, &dev->admin_irq); in efa_set_mgmnt_irq() 198 dev_err(&dev->pdev->dev, in efa_request_doorbell_bar() 329 err = efa_create_eq(dev, &dev->eqs[i], in efa_create_eqs() 339 efa_destroy_eq(dev, &dev->eqs[i]); in efa_create_eqs() 350 efa_destroy_eq(dev, &dev->eqs[i]); in efa_destroy_eqs() 406 dev_dbg(&dev->pdev->dev, "Doorbells bar (%d)\n", dev->dev_attr.db_bar); in efa_ib_device_add() 431 dev->ibdev.dev.parent = &pdev->dev; in efa_ib_device_add() 489 dev_err(&dev->pdev->dev, in efa_enable_msix() 610 efa_free_irq(dev, &dev->admin_irq); in efa_probe_device() [all …]
|
/openbmc/linux/drivers/media/usb/cx231xx/ |
H A D | cx231xx-core.c | 505 dev_err(dev->dev, in cx231xx_set_video_alternate() 581 dev_err(dev->dev, in cx231xx_set_alt_setting() 597 dev_err(dev->dev, in cx231xx_set_alt_setting() 763 dev_err(dev->dev, in cx231xx_ep5_bulkout() 1025 dev_err(dev->dev, in cx231xx_init_isoc() 1034 dev_err(dev->dev, in cx231xx_init_isoc() 1161 dev_err(dev->dev, in cx231xx_init_bulk() 1169 dev_err(dev->dev, in cx231xx_init_bulk() 1296 dev->i2c_bus[0].dev = dev; in cx231xx_dev_init() 1304 dev->i2c_bus[1].dev = dev; in cx231xx_dev_init() [all …]
|
/openbmc/linux/drivers/usb/gadget/udc/ |
H A D | gr_udc.c | 296 dev = ep->dev; in gr_finish_request() 334 dev_err(dev->dev, in gr_finish_request() 587 dev_err(dev->dev, in gr_queue() 798 dev = ep->dev; in gr_ep0_testmode_complete() 1480 dev = ep->dev; in gr_ep_enable() 1609 dev = ep->dev; in gr_ep_disable() 1664 dev = ep->dev; in gr_queue_ext() 1701 dev = ep->dev; in gr_dequeue() 1978 ep->dev = dev; in gr_ep_init() 2132 dev->dev = &pdev->dev; in gr_probe() [all …]
|
/openbmc/linux/include/linux/ |
H A D | dev_printk.h | 147 #define dev_emerg(dev, fmt, ...) \ argument 149 #define dev_crit(dev, fmt, ...) \ argument 151 #define dev_alert(dev, fmt, ...) \ argument 153 #define dev_err(dev, fmt, ...) \ argument 155 #define dev_warn(dev, fmt, ...) \ argument 157 #define dev_notice(dev, fmt, ...) \ argument 159 #define dev_info(dev, fmt, ...) \ argument 164 #define dev_dbg(dev, fmt, ...) \ argument 167 #define dev_dbg(dev, fmt, ...) \ argument 272 WARN(1, "%s %s: " format, dev_driver_string(dev), dev_name(dev), ## arg) [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/b43/ |
H A D | main.c | 765 if (dev->dev->core_rev < 11) in b43_dummy_transmission() 1365 if (dev->dev->core_rev < 5) in drain_txstatus_queue() 2233 ctx->dev->dev->dev, GFP_KERNEL, in b43_do_request_fw() 2247 ctx->dev->dev->dev); in b43_do_request_fw() 2561 ctx->dev = dev; in b43_request_firmware() 3290 if (dev->dev->core_rev < 5) in b43_chip_init() 3498 if ((dev->dev->core_rev >= 3) && (dev->dev->core_rev <= 10)) { in b43_validate_chipaccess() 4368 free_irq(dev->dev->irq, dev); in b43_wireless_core_stop() 4418 dev->dev->irq); in b43_wireless_core_start() 4730 bus = dev->dev->sdev->bus; in b43_imcfglo_timeouts_workaround() [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-diolan-u2c.c | 102 if (!dev->olen || !dev->ocount) in diolan_usb_transfer() 166 dev->obuffer[dev->olen++] = command; in diolan_usb_cmd() 175 dev->obuffer[dev->olen++] = command; in diolan_usb_cmd_data() 176 dev->obuffer[dev->olen++] = data; in diolan_usb_cmd_data() 185 dev->obuffer[dev->olen++] = command; in diolan_usb_cmd_data2() 186 dev->obuffer[dev->olen++] = d1; in diolan_usb_cmd_data2() 187 dev->obuffer[dev->olen++] = d2; in diolan_usb_cmd_data2() 277 dev_info(&dev->interface->dev, in diolan_fw_version() 291 dev_info(&dev->interface->dev, in diolan_get_serial() 313 dev_info(&dev->interface->dev, in diolan_init() [all …]
|
/openbmc/linux/drivers/infiniband/hw/qedr/ |
H A D | main.c | 258 dev->ibdev.dev.parent = &dev->pdev->dev; in qedr_register_device() 315 qedr_free_mem_sb(dev, &dev->sb_array[i], dev->sb_start + i); in qedr_free_resources() 316 dev->ops->common->chain_free(dev->cdev, &dev->cnq_array[i].pbl); in qedr_free_resources() 354 dev->sb_array = kcalloc(dev->num_cnq, sizeof(*dev->sb_array), in qedr_alloc_resources() 368 dev->sb_start = dev->ops->rdma_get_start_sb(dev->cdev); in qedr_alloc_resources() 387 cnq->dev = dev; in qedr_alloc_resources() 400 qedr_free_mem_sb(dev, &dev->sb_array[i], dev->sb_start + i); in qedr_alloc_resources() 404 qedr_free_mem_sb(dev, &dev->sb_array[i], dev->sb_start + i); in qedr_alloc_resources() 556 rc = dev->ops->rdma_set_rdma_int(dev->cdev, dev->num_cnq); in qedr_setup_irqs() 560 rc = dev->ops->rdma_get_rdma_int(dev->cdev, &dev->int_info); in qedr_setup_irqs() [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | ks8851_mll.c | 288 ks_rdreg8(dev, 0); in ks_read_qmu() 472 ks_setup(dev); in ks8851_mll_phy_configure() 473 ks_setup_int(dev); in ks8851_mll_phy_configure() 590 addrh = (dev->enetaddr[0] << 8) | dev->enetaddr[1]; in ks8851_mll_write_hwaddr() 591 addrm = (dev->enetaddr[2] << 8) | dev->enetaddr[3]; in ks8851_mll_write_hwaddr() 592 addrl = (dev->enetaddr[4] << 8) | dev->enetaddr[5]; in ks8851_mll_write_hwaddr() 605 dev = malloc(sizeof(*dev)); in ks8851_mll_initialize() 606 if (!dev) { in ks8851_mll_initialize() 610 memset(dev, 0, sizeof(*dev)); in ks8851_mll_initialize() 618 free(dev); in ks8851_mll_initialize() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt76x2/ |
H A D | pci_phy.c | 18 if (!mt76x2_tssi_enabled(dev)) in mt76x2_phy_tssi_init_cal() 21 if (mt76x2_channel_silent(dev)) in mt76x2_phy_tssi_init_cal() 47 if (!dev->cal.tssi_cal_done) in mt76x2_phy_channel_calibrate() 63 mt76x2_mac_resume(dev); in mt76x2_phy_channel_calibrate() 65 mt76x2_apply_gain_adj(dev); in mt76x2_phy_channel_calibrate() 66 mt76x02_edcca_init(dev); in mt76x2_phy_channel_calibrate() 204 mt76x2_mcu_init_gain(dev, channel, dev->cal.rx.mcu_gain, true); in mt76x2_phy_set_channel() 247 ieee80211_queue_delayed_work(mt76_hw(dev), &dev->cal_work, in mt76x2_phy_set_channel() 265 dev->cal.temp = temp; in mt76x2_phy_temp_compensate() 283 struct mt76x02_dev *dev; in mt76x2_phy_calibrate() local [all …]
|
/openbmc/linux/drivers/crypto/ |
H A D | sahara.c | 466 dev->nb_in_sg = sg_nents_for_len(dev->in_sg, dev->total); in sahara_hw_descriptor_create() 471 dev->nb_out_sg = sg_nents_for_len(dev->out_sg, dev->total); in sahara_hw_descriptor_create() 478 dev->nb_in_sg + dev->nb_out_sg); in sahara_hw_descriptor_create() 482 ret = dma_map_sg(dev->device, dev->in_sg, dev->nb_in_sg, in sahara_hw_descriptor_create() 489 ret = dma_map_sg(dev->device, dev->out_sg, dev->nb_out_sg, in sahara_hw_descriptor_create() 542 dma_unmap_sg(dev->device, dev->in_sg, dev->nb_in_sg, in sahara_hw_descriptor_create() 611 dma_unmap_sg(dev->device, dev->out_sg, dev->nb_out_sg, in sahara_aes_process() 613 dma_unmap_sg(dev->device, dev->in_sg, dev->nb_in_sg, in sahara_aes_process() 988 dma_unmap_sg(dev->device, dev->in_sg, dev->nb_in_sg, in sahara_sha_process() 1335 dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL); in sahara_probe() [all …]
|
/openbmc/linux/drivers/pnp/ |
H A D | core.c | 145 dev->dev.parent = &dev->protocol->dev; in pnp_alloc_dev() 146 dev->dev.bus = &pnp_bus_type; in pnp_alloc_dev() 147 dev->dev.dma_mask = &dev->dma_mask; in pnp_alloc_dev() 148 dev->dev.coherent_dma_mask = dev->dma_mask; in pnp_alloc_dev() 149 dev->dev.release = &pnp_release_device; in pnp_alloc_dev() 157 dev_set_name(&dev->dev, "%02x:%02x", dev->protocol->number, dev->number); in pnp_alloc_dev() 184 ret = device_register(&dev->dev); in __pnp_add_device() 188 device_set_wakeup_capable(&dev->dev, in __pnp_add_device() 189 dev->protocol->can_wakeup(dev)); in __pnp_add_device() 218 dev_dbg(&dev->dev, "%s device, IDs%s (%s)\n", dev->protocol->name, buf, in pnp_add_device() [all …]
|
/openbmc/linux/drivers/pci/ |
H A D | iov.c | 23 return dev->bus->number + ((dev->devfn + dev->sriov->offset + in pci_iov_virtfn_bus() 31 return (dev->devfn + dev->sriov->offset + in pci_iov_virtfn_devfn() 186 rc = sysfs_create_link(&dev->dev.kobj, &virtfn->dev.kobj, buf); in pci_iov_sysfs_link() 189 rc = sysfs_create_link(&virtfn->dev.kobj, &dev->dev.kobj, "physfn"); in pci_iov_sysfs_link() 198 sysfs_remove_link(&dev->dev.kobj, buf); in pci_iov_sysfs_link() 320 virtfn->dev.parent = dev->dev.parent; in pci_iov_add_virtfn() 367 sysfs_remove_link(&dev->dev.kobj, buf); in pci_iov_remove_virtfn() 658 rc = sysfs_create_link(&dev->dev.kobj, in sriov_enable() 828 iov->dev = dev; in sriov_init() 855 if (dev != dev->sriov->dev) in sriov_release() [all …]
|
/openbmc/linux/drivers/input/ |
H A D | input.c | 378 input_pass_values(dev, dev->vals, dev->num_vals); in input_event_dispose() 389 input_pass_values(dev, dev->vals, dev->num_vals); in input_event_dispose() 487 dev_err(dev->dev.parent ?: &dev->dev, in input_alloc_absinfo() 654 retval = dev->open(dev); in input_open_device() 712 dev->close(dev); in input_close_device() 979 dev_warn(dev->dev.parent ?: &dev->dev, in input_set_keycode() 1203 dev->id.bustype, dev->id.vendor, dev->id.product, dev->id.version); in input_devices_seq_show() 1860 dev->close(dev); in input_inhibit_device() 2306 device_del(&dev->dev); in __input_unregister_device() 2403 dev_err(&dev->dev, in input_register_device() [all …]
|
/openbmc/linux/drivers/net/usb/ |
H A D | asix_devices.c | 260 dev->mii.dev = dev->net; in ax88172_bind() 266 dev->mii.phy_id = asix_read_phy_addr(dev, true); in ax88172_bind() 538 asix_mdio_write_nopm(dev->net, dev->mii.phy_id, in ax88772a_hw_reset() 542 asix_mdio_write_nopm(dev->net, dev->mii.phy_id, in ax88772a_hw_reset() 546 asix_mdio_write_nopm(dev->net, dev->mii.phy_id, in ax88772a_hw_reset() 681 dev->udev->bus->busnum, dev->udev->devnum); in ax88772_init_mdio() 801 priv->phylink_config.dev = &dev->net->dev; in ax88772_phylink_setup() 841 netif_dbg(dev, ifup, dev->net, in ax88772_bind() 989 reg = asix_mdio_read(dev->net, dev->mii.phy_id, in marvell_phy_init() 995 asix_mdio_write(dev->net, dev->mii.phy_id, in marvell_phy_init() [all …]
|
/openbmc/linux/drivers/media/pci/dm1105/ |
H A D | dm1105.c | 607 dev->ts_buf = dma_alloc_coherent(&dev->pdev->dev, in dm1105_dma_map() 692 memcpy(dev->ts_buf + dev->buffer_size, dev->ts_buf, nextwrp); in dm1105_dmx_buffer() 713 queue_work(dev->wq, &dev->work); in dm1105_irq() 749 dev->dev.parent = &dm1105->pdev->dev; in dm1105_ir_init() 759 dm1105->ir.dev = dev; in dm1105_ir_init() 936 dev->fe->ops.release(dev->fe); in frontend_init() 987 dev->boardnr = card[dev->nr]; in dm1105_probe() 1038 dev->i2c_adap.dev.parent = &pdev->dev; in dm1105_probe() 1040 dev->i2c_adap.algo_data = dev; in dm1105_probe() 1050 dev->i2c_bb_adap.dev.parent = &pdev->dev; in dm1105_probe() [all …]
|
/openbmc/linux/drivers/media/rc/ |
H A D | rc-main.c | 1729 dev->dev.class = &rc_class; in rc_allocate_device() 1746 put_device(&dev->dev); in rc_free_device() 1775 rc->dev.parent = dev; in devm_rc_allocate_device() 1835 dev->input_dev->dev.parent = &dev->dev; in rc_prepare_rx_device() 1906 dev_set_name(&dev->dev, "rc%u", dev->minor); in rc_register_device() 1907 dev_set_drvdata(&dev->dev, dev); in rc_register_device() 1909 dev->dev.groups = dev->sysfs_groups; in rc_register_device() 1934 rc = device_add(&dev->dev); in rc_register_device() 1978 device_del(&dev->dev); in rc_register_device() 2029 dev->close(dev); in rc_unregister_device() [all …]
|
/openbmc/linux/drivers/pci/msi/ |
H A D | msi.c | 36 if (!dev || dev->no_msi) in pci_msi_supported() 84 if (!pci_is_managed(dev) || dev->is_msi_managed) in pcim_setup_msi_release() 87 ret = devm_add_action(&dev->dev, pcim_msi_release, dev); in pcim_setup_msi_release() 99 int ret = msi_setup_device_data(&dev->dev); in pci_setup_msi_context() 315 return msi_insert_msi_desc(&dev->dev, &desc); in msi_setup_msi_desc() 368 msi_lock_descs(&dev->dev); in msi_capability_init() 406 msi_unlock_descs(&dev->dev); in msi_capability_init() 669 msi_lock_descs(&dev->dev); in msix_setup_interrupts() 689 msi_unlock_descs(&dev->dev); in msix_setup_interrupts() 865 msi_lock_descs(&dev->dev); in __pci_restore_msix_state() [all …]
|