/openbmc/linux/drivers/net/ethernet/qlogic/ |
H A D | qla3xxx.c | 644 netif_warn(qdev, link, qdev->ndev, TIMED_OUT_MSG); in ql_mii_write_reg_ex() 655 netif_warn(qdev, link, qdev->ndev, TIMED_OUT_MSG); in ql_mii_write_reg_ex() 676 netif_warn(qdev, link, qdev->ndev, TIMED_OUT_MSG); in ql_mii_read_reg_ex() 1018 qdev->phyType = getPhyType(qdev, reg1, reg2); in PHY_Setup() 1314 netif_printk(qdev, link, KERN_DEBUG, qdev->ndev, in ql_this_adapter_controls_port() 1492 netif_info(qdev, link, qdev->ndev, in ql_finish_auto_neg() 1529 netif_info(qdev, link, qdev->ndev, in ql_link_state_machine_work() 2165 qdev->rsp_current = qdev->rsp_q_virt_addr; in ql_tx_rx_clean() 2905 qdev->rsp_current = qdev->rsp_q_virt_addr; in ql_alloc_mem_resources() 3046 qdev->rsp_current = qdev->rsp_q_virt_addr; in ql_adapter_initialize() [all …]
|
/openbmc/linux/drivers/gpu/drm/qxl/ |
H A D | qxl_kms.c | 62 qxl_io_memslot_add(qdev, qdev->rom->slots_start + slot->index); in setup_hw_slot() 96 setup_hw_slot(qdev, &qdev->main_slot); in qxl_reinit_memslots() 97 setup_hw_slot(qdev, &qdev->surfaces_slot); in qxl_reinit_memslots() 118 qxl_gem_init(qdev); in qxl_device_init() 166 qdev->rom = ioremap_wc(qdev->rom_base, qdev->rom_size); in qxl_device_init() 167 if (!qdev->rom) { in qxl_device_init() 184 qdev->ram_header = ioremap_wc(qdev->vram_base + in qxl_device_init() 253 setup_slot(qdev, &qdev->main_slot, 0, "main", in qxl_device_init() 256 setup_slot(qdev, &qdev->surfaces_slot, 1, "surfaces", in qxl_device_init() 273 qxl_bo_fini(qdev); in qxl_device_init() [all …]
|
H A D | qxl_cmd.c | 204 schedule_work(&qdev->gc_work); in qxl_queue_garbage_collect() 206 flush_work(&qdev->gc_work); in qxl_queue_garbage_collect() 244 qxl_release_free(qdev, release); in qxl_garbage_collect() 249 wake_up_all(&qdev->release_event); in qxl_garbage_collect() 283 long addr = qdev->io_base + port; in wait_for_io_cmd_user() 374 qdev->primary_bo = NULL; in qxl_io_destroy_primary() 381 if (WARN_ON(qdev->primary_bo)) in qxl_io_create_primary() 384 DRM_DEBUG_DRIVER("qdev %p, ram_header %p\n", qdev, qdev->ram_header); in qxl_io_create_primary() 398 qdev->primary_bo = bo; in qxl_io_create_primary() 440 qxl_reap_surface_id(qdev, 2); in qxl_surface_id_alloc() [all …]
|
H A D | qxl_display.c | 213 if (size > qdev->vram_size) in qxl_check_mode() 259 if (!qdev->monitors_config) in qxl_add_monitors_config_modes() 327 if (!qdev->primary_bo) { in qxl_crtc_update_monitors_config() 348 if (qdev->primary_bo == qdev->dumb_shadow_bo) in qxl_crtc_update_monitors_config() 660 if (qdev->primary_bo) in qxl_primary_atomic_update() 1214 qdev->monitors_config = qdev->monitors_config_bo->kptr; in qxl_create_monitors_object() 1216 qxl_bo_physical_address(qdev, qdev->monitors_config_bo, 0); in qxl_create_monitors_object() 1219 qdev->dumb_heads = kcalloc(qxl_num_crtc, sizeof(qdev->dumb_heads[0]), in qxl_create_monitors_object() 1221 if (!qdev->dumb_heads) { in qxl_create_monitors_object() 1235 kfree(qdev->dumb_heads); in qxl_destroy_monitors_object() [all …]
|
H A D | qxl_irq.c | 35 struct qxl_device *qdev = to_qxl(dev); in qxl_irq_handler() local 43 atomic_inc(&qdev->irq_received); in qxl_irq_handler() 47 wake_up_all(&qdev->display_event); in qxl_irq_handler() 48 qxl_queue_garbage_collect(qdev, false); in qxl_irq_handler() 51 atomic_inc(&qdev->irq_received_cursor); in qxl_irq_handler() 52 wake_up_all(&qdev->cursor_event); in qxl_irq_handler() 56 wake_up_all(&qdev->io_cmd_event); in qxl_irq_handler() 63 qdev->irq_received_error++; in qxl_irq_handler() 84 struct drm_device *ddev = &qdev->ddev; in qxl_irq_init() 94 atomic_set(&qdev->irq_received, 0); in qxl_irq_init() [all …]
|
H A D | qxl_drv.h | 267 int qxl_bo_init(struct qxl_device *qdev); 268 void qxl_bo_fini(struct qxl_device *qdev); 271 int qxl_surf_evict(struct qxl_device *qdev); 288 ? &qdev->main_slot : &qdev->surfaces_slot; in qxl_bo_physical_address() 301 void qxl_gem_init(struct qxl_device *qdev); 302 void qxl_gem_fini(struct qxl_device *qdev); 327 int qxl_ttm_init(struct qxl_device *qdev); 328 void qxl_ttm_fini(struct qxl_device *qdev); 334 int qxl_image_init(struct qxl_device *qdev, 360 void qxl_io_reset(struct qxl_device *qdev); [all …]
|
H A D | qxl_release.c | 60 struct qxl_device *qdev; in qxl_fence_wait() local 67 (qxl_io_notify_oom(qdev), 0)), in qxl_fence_wait() 103 spin_lock(&qdev->release_idr_lock); in qxl_release_alloc() 145 spin_lock(&qdev->release_idr_lock); in qxl_release_free() 159 atomic_dec(&qdev->release_count); in qxl_release_free() 314 atomic_inc(&qdev->release_count); in qxl_alloc_release_reserved() 316 mutex_lock(&qdev->release_mutex); in qxl_alloc_release_reserved() 323 ret = qxl_release_bo_alloc(qdev, &qdev->current_release_bo[cur_idx], priority); in qxl_alloc_release_reserved() 330 qxl_release_free(qdev, *release); in qxl_alloc_release_reserved() 353 qxl_release_free(qdev, *release); in qxl_alloc_release_reserved() [all …]
|
H A D | qxl_ttm.c | 43 struct qxl_device *qdev; in qxl_get_qdev() local 47 return qdev; in qxl_get_qdev() 90 qdev->surfaceram_base; in qxl_ttm_io_mem_reserve() 127 struct qxl_device *qdev; in qxl_bo_move_notify() local 132 qdev = to_qxl(qbo->tbo.base.dev); in qxl_bo_move_notify() 192 int qxl_ttm_init(struct qxl_device *qdev) in qxl_ttm_init() argument 199 qdev->ddev.anon_inode->i_mapping, in qxl_ttm_init() 200 qdev->ddev.vma_offset_manager, in qxl_ttm_init() 214 qdev->surfaceram_size / PAGE_SIZE); in qxl_ttm_init() 228 void qxl_ttm_fini(struct qxl_device *qdev) in qxl_ttm_fini() argument [all …]
|
H A D | qxl_debugfs.c | 42 struct qxl_device *qdev = to_qxl(node->minor->dev); in qxl_debugfs_irq_received() local 48 seq_printf(m, "%d\n", qdev->irq_received_error); in qxl_debugfs_irq_received() 56 struct qxl_device *qdev = to_qxl(node->minor->dev); in qxl_debugfs_buffers_info() local 105 for (i = 0; i < qdev->debugfs_count; i++) { in qxl_debugfs_add_files() 106 if (qdev->debugfs[i].files == files) { in qxl_debugfs_add_files() 112 i = qdev->debugfs_count + 1; in qxl_debugfs_add_files() 118 qdev->debugfs[qdev->debugfs_count].files = files; in qxl_debugfs_add_files() 119 qdev->debugfs[qdev->debugfs_count].num_files = nfiles; in qxl_debugfs_add_files() 120 qdev->debugfs_count = i; in qxl_debugfs_add_files() 123 qdev->ddev.primary->debugfs_root, in qxl_debugfs_add_files() [all …]
|
H A D | qxl_drv.c | 79 struct qxl_device *qdev; in qxl_pci_probe() local 90 if (IS_ERR(qdev)) { in qxl_pci_probe() 130 qxl_modeset_fini(qdev); in qxl_pci_probe() 132 qxl_device_fini(qdev); in qxl_pci_probe() 151 qxl_modeset_fini(qdev); in qxl_drm_release() 152 qxl_device_fini(qdev); in qxl_drm_release() 179 qxl_surf_evict(qdev); in qxl_drm_freeze() 180 qxl_vram_evict(qdev); in qxl_drm_freeze() 197 qxl_reinit_memslots(qdev); in qxl_drm_resume() 231 qxl_io_reset(qdev); in qxl_pm_resume() [all …]
|
H A D | qxl_gem.c | 34 struct qxl_device *qdev; in qxl_gem_object_free() local 37 qdev = to_qxl(gobj->dev); in qxl_gem_object_free() 39 qxl_surface_evict(qdev, qobj, false); in qxl_gem_object_free() 68 mutex_lock(&qdev->gem.mutex); in qxl_gem_object_create() 69 list_add_tail(&qbo->list, &qdev->gem.objects); in qxl_gem_object_create() 70 mutex_unlock(&qdev->gem.mutex); in qxl_gem_object_create() 94 r = qxl_gem_object_create(qdev, size, 0, in qxl_gem_object_create_with_handle() 123 void qxl_gem_init(struct qxl_device *qdev) in qxl_gem_init() argument 125 INIT_LIST_HEAD(&qdev->gem.objects); in qxl_gem_init() 128 void qxl_gem_fini(struct qxl_device *qdev) in qxl_gem_fini() argument [all …]
|
H A D | qxl_draw.c | 31 static int alloc_clips(struct qxl_device *qdev, in alloc_clips() argument 38 return qxl_alloc_bo_reserved(qdev, release, size, clips_bo); in alloc_clips() 74 qxl_release_free(qdev, release); in free_drawable() 114 drawable->mm_time = qdev->rom->mm_clock; in make_drawable() 126 void qxl_draw_dirty_fb(struct qxl_device *qdev, in qxl_draw_dirty_fb() argument 157 ret = alloc_drawable(qdev, &release); in qxl_draw_dirty_fb() 181 ret = alloc_clips(qdev, release, num_clips, &clips_bo); in qxl_draw_dirty_fb() 185 ret = qxl_image_alloc_objects(qdev, release, in qxl_draw_dirty_fb() 226 drawable->clip.data = qxl_bo_physical_address(qdev, in qxl_draw_dirty_fb() 260 qxl_image_free_objects(qdev, dimage); in qxl_draw_dirty_fb() [all …]
|
H A D | qxl_object.c | 38 struct qxl_device *qdev; in qxl_ttm_bo_destroy() local 41 qdev = to_qxl(bo->tbo.base.dev); in qxl_ttm_bo_destroy() 43 qxl_surface_evict(qdev, bo, false); in qxl_ttm_bo_destroy() 45 mutex_lock(&qdev->gem.mutex); in qxl_ttm_bo_destroy() 47 mutex_unlock(&qdev->gem.mutex); in qxl_ttm_bo_destroy() 149 dev_err(qdev->ddev.dev, in qxl_bo_create() 217 map = qdev->vram_mapping; in qxl_bo_kmap_atomic_page() 219 map = qdev->surface_mapping; in qxl_bo_kmap_atomic_page() 366 mutex_lock(&qdev->gem.mutex); in qxl_bo_force_delete() 376 return qxl_ttm_init(qdev); in qxl_bo_init() [all …]
|
H A D | qxl_ioctl.c | 38 struct qxl_device *qdev = to_qxl(dev); in qxl_alloc_ioctl() local 64 struct qxl_device *qdev = to_qxl(dev); in qxl_map_ioctl() local 174 ret = qxl_alloc_release_reserved(qdev, in qxl_process_single_command() 192 draw->mm_time = qdev->rom->mm_clock; in qxl_process_single_command() 255 apply_reloc(qdev, &reloc_info[i]); in qxl_process_single_command() 266 qxl_release_free(qdev, release); in qxl_process_single_command() 274 struct qxl_device *qdev = to_qxl(dev); in qxl_execbuffer_ioctl() local 298 struct qxl_device *qdev = to_qxl(dev); in qxl_update_area_ioctl() local 330 ret = qxl_bo_check_id(qdev, qobj); in qxl_update_area_ioctl() 347 struct qxl_device *qdev = to_qxl(dev); in qxl_getparam_ioctl() local [all …]
|
H A D | qxl_image.c | 33 qxl_allocate_chunk(struct qxl_device *qdev, in qxl_allocate_chunk() argument 56 qxl_image_alloc_objects(struct qxl_device *qdev, in qxl_image_alloc_objects() argument 100 qxl_image_init_helper(struct qxl_device *qdev, in qxl_image_init_helper() argument 127 ptr = qxl_bo_kmap_atomic_page(qdev, chunk_bo, 0); in qxl_image_init_helper() 132 qxl_bo_kunmap_atomic_page(qdev, chunk_bo, ptr); in qxl_image_init_helper() 160 qxl_bo_kunmap_atomic_page(qdev, chunk_bo, ptr); in qxl_image_init_helper() 181 qxl_bo_kunmap_atomic_page(qdev, chunk_bo, ptr); in qxl_image_init_helper() 192 ptr = qxl_bo_kmap_atomic_page(qdev, image_bo, 0); in qxl_image_init_helper() 215 qxl_bo_kunmap_atomic_page(qdev, image_bo, ptr); in qxl_image_init_helper() 225 qxl_bo_kunmap_atomic_page(qdev, image_bo, ptr); in qxl_image_init_helper() [all …]
|
/openbmc/linux/drivers/staging/qlge/ |
H A D | qlge_mpi.c | 107 if (qdev->func < qdev->alt_func) in qlge_own_firmware() 214 netif_err(qdev, drv, qdev->ndev, in qlge_idc_req_aen() 239 netif_err(qdev, drv, qdev->ndev, in qlge_idc_cmplt_aen() 259 netif_err(qdev, drv, qdev->ndev, in qlge_link_up() 273 netif_err(qdev, ifup, qdev->ndev, in qlge_link_up() 399 netif_err(qdev, drv, qdev->ndev, in qlge_mpi_handler() 488 netif_err(qdev, drv, qdev->ndev, in qlge_mpi_handler() 508 netif_err(qdev, drv, qdev->ndev, in qlge_mpi_handler() 583 netif_err(qdev, drv, qdev->ndev, in qlge_mailbox_command() 630 netif_err(qdev, drv, qdev->ndev, in qlge_mb_about_fw() [all …]
|
H A D | qlge_main.c | 182 netif_alert(qdev, probe, qdev->ndev, in qlge_wait_reg_rdy() 235 netif_err(qdev, ifup, qdev->ndev, in qlge_write_cfg() 314 netif_crit(qdev, ifup, qdev->ndev, in qlge_get_mac_addr_reg() 449 netif_err(qdev, ifup, qdev->ndev, in qlge_set_mac_addr() 574 netif_err(qdev, ifup, qdev->ndev, in qlge_set_routing_reg() 3262 intr_context->qdev = qdev; in qlge_resolve_queues_to_irqs() 3307 intr_context->qdev = qdev; in qlge_resolve_queues_to_irqs() 3937 tx_ring->qdev = qdev; in qlge_configure_rings() 3953 rx_ring->qdev = qdev; in qlge_configure_rings() 4323 qdev->port = (qdev->func < qdev->alt_func) ? 0 : 1; in qlge_get_board_info() [all …]
|
H A D | qlge_ethtool.c | 211 netif_err(qdev, ifup, qdev->ndev, in qlge_update_ring_coalescing() 232 netif_err(qdev, ifup, qdev->ndev, in qlge_update_ring_coalescing() 250 netif_err(qdev, drv, qdev->ndev, in qlge_update_stats() 259 netif_err(qdev, drv, qdev->ndev, in qlge_update_stats() 274 netif_err(qdev, drv, qdev->ndev, in qlge_update_stats() 292 netif_err(qdev, drv, qdev->ndev, in qlge_update_stats() 307 netif_err(qdev, drv, qdev->ndev, in qlge_update_stats() 321 netif_err(qdev, drv, qdev->ndev, in qlge_update_stats() 451 netif_info(qdev, drv, qdev->ndev, in qlge_set_wol() 459 netif_info(qdev, drv, qdev->ndev, "Set wol option 0x%x\n", qdev->wol); in qlge_set_wol() [all …]
|
H A D | qlge_dbg.c | 423 netif_err(qdev, drv, qdev->ndev, in qlge_get_cam_entries() 435 netif_err(qdev, drv, qdev->ndev, in qlge_get_cam_entries() 459 netif_err(qdev, drv, qdev->ndev, in qlge_get_routing_entries() 727 netif_err(qdev, drv, qdev->ndev, in qlge_core_dump() 889 netif_err(qdev, drv, qdev->ndev, in qlge_core_dump() 1155 netif_err(qdev, drv, qdev->ndev, in qlge_core_dump() 1163 netif_err(qdev, drv, qdev->ndev, in qlge_core_dump() 1176 netif_err(qdev, drv, qdev->ndev, in qlge_core_dump() 1191 netif_err(qdev, drv, qdev->ndev, in qlge_core_dump() 1209 netif_err(qdev, ifup, qdev->ndev, in qlge_get_core_dump() [all …]
|
/openbmc/linux/drivers/accel/qaic/ |
H A D | qaic_drv.c | 59 struct qaic_device *qdev = qddev->qdev; in qaic_open() local 120 qdev = qddev->qdev; in qaic_postclose() 197 qddev->qdev = qdev; in qaic_create_drm_device() 352 qdev = devm_kzalloc(&pdev->dev, sizeof(*qdev), GFP_KERNEL); in create_qdev() 353 if (!qdev) in create_qdev() 358 qdev->dbc = devm_kcalloc(&pdev->dev, qdev->num_dbc, sizeof(*qdev->dbc), GFP_KERNEL); in create_qdev() 376 qdev->dbc[i].qdev = qdev; in create_qdev() 384 return qdev; in create_qdev() 483 if (!qdev) in qaic_pci_probe() 491 qdev->dbc[i].dbc_base = qdev->bar_2 + QAIC_DBC_OFF(i); in qaic_pci_probe() [all …]
|
H A D | qaic_control.c | 236 struct qaic_device *qdev; member 623 cleanup_xfer(qdev, xfer); in encode_dma() 1025 if (qdev->in_reset) { in msg_xfer() 1222 *rsp = msg_xfer(qdev, wrappers, qdev->next_seq_num - 1, false); in qaic_manage_msg_xfer() 1306 qdev = usr->qddev->qdev; in qaic_manage_ioctl() 1309 if (qdev->in_reset) { in qaic_manage_ioctl() 1399 struct qaic_device *qdev = resp->qdev; in resp_worker() local 1463 resp->qdev = qdev; in qaic_mhi_dl_xfer_cb() 1470 if (!qdev->cntl_ch) in qaic_control_open() 1486 qdev->gen_crc = gen_crc; in qaic_control_open() [all …]
|
H A D | qaic_data.c | 677 qdev = usr->qddev->qdev; in qaic_create_bo_ioctl() 679 if (qdev->in_reset) { in qaic_create_bo_ioctl() 738 qdev = usr->qddev->qdev; in qaic_mmap_bo_ioctl() 740 if (qdev->in_reset) { in qaic_mmap_bo_ioctl() 958 qdev = usr->qddev->qdev; in qaic_attach_slice_bo_ioctl() 960 if (qdev->in_reset) { in qaic_attach_slice_bo_ioctl() 1336 qdev = usr->qddev->qdev; in __qaic_execute_bo_ioctl() 1338 if (qdev->in_reset) { in __qaic_execute_bo_ioctl() 1543 qdev = dbc->qdev; in dbc_irq_threaded_fn() 1671 qdev = usr->qddev->qdev; in qaic_wait_bo_ioctl() [all …]
|
/openbmc/linux/net/qrtr/ |
H A D | smd.c | 26 if (!qdev) in qcom_smd_qrtr_callback() 29 rc = qrtr_endpoint_post(&qdev->ep, data, len); in qcom_smd_qrtr_callback() 31 dev_err(qdev->dev, "invalid ipcrouter packet\n"); in qcom_smd_qrtr_callback() 61 struct qrtr_smd_dev *qdev; in qcom_smd_qrtr_probe() local 64 qdev = devm_kzalloc(&rpdev->dev, sizeof(*qdev), GFP_KERNEL); in qcom_smd_qrtr_probe() 65 if (!qdev) in qcom_smd_qrtr_probe() 68 qdev->channel = rpdev->ept; in qcom_smd_qrtr_probe() 69 qdev->dev = &rpdev->dev; in qcom_smd_qrtr_probe() 70 qdev->ep.xmit = qcom_smd_qrtr_send; in qcom_smd_qrtr_probe() 76 dev_set_drvdata(&rpdev->dev, qdev); in qcom_smd_qrtr_probe() [all …]
|
H A D | mhi.c | 27 if (!qdev || mhi_res->transaction_status) in qcom_mhi_qrtr_dl_callback() 33 dev_err(qdev->dev, "invalid ipcrouter packet\n"); in qcom_mhi_qrtr_dl_callback() 78 struct qrtr_mhi_dev *qdev; in qcom_mhi_qrtr_probe() local 81 qdev = devm_kzalloc(&mhi_dev->dev, sizeof(*qdev), GFP_KERNEL); in qcom_mhi_qrtr_probe() 82 if (!qdev) in qcom_mhi_qrtr_probe() 85 qdev->mhi_dev = mhi_dev; in qcom_mhi_qrtr_probe() 86 qdev->dev = &mhi_dev->dev; in qcom_mhi_qrtr_probe() 87 qdev->ep.xmit = qcom_mhi_qrtr_send; in qcom_mhi_qrtr_probe() 89 dev_set_drvdata(&mhi_dev->dev, qdev); in qcom_mhi_qrtr_probe() 97 qrtr_endpoint_unregister(&qdev->ep); in qcom_mhi_qrtr_probe() [all …]
|
/openbmc/qemu/hw/scsi/ |
H A D | scsi-disk.c | 99 SCSIDevice qdev; member 736 if (s->qdev.wwn) { in scsi_disk_emulate_vpd_page() 777 s->qdev.conf.discard_granularity / s->qdev.blocksize; in scsi_disk_emulate_vpd_page() 779 s->qdev.conf.min_io_size / s->qdev.blocksize; in scsi_disk_emulate_vpd_page() 781 s->qdev.conf.opt_io_size / s->qdev.blocksize; in scsi_disk_emulate_vpd_page() 2399 SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev.qdev, dev); in scsi_disk_reset() 2415 s->qdev.scsi_version = s->qdev.default_scsi_version; in scsi_disk_reset() 2618 if (s->qdev.conf.blk) { in scsi_hd_realize() 2623 s->qdev.blocksize = s->qdev.conf.logical_block_size; in scsi_hd_realize() 2771 s->qdev.type = buf[0]; in get_device_type() [all …]
|