/Linux-v5.10/drivers/net/ethernet/qlogic/ |
D | qla3xxx.c | 103 static int ql_sem_spinlock(struct ql3_adapter *qdev, in ql_sem_spinlock() argument 107 qdev->mem_map_registers; in ql_sem_spinlock() 122 static void ql_sem_unlock(struct ql3_adapter *qdev, u32 sem_mask) in ql_sem_unlock() argument 125 qdev->mem_map_registers; in ql_sem_unlock() 130 static int ql_sem_lock(struct ql3_adapter *qdev, u32 sem_mask, u32 sem_bits) in ql_sem_lock() argument 133 qdev->mem_map_registers; in ql_sem_lock() 144 static int ql_wait_for_drvr_lock(struct ql3_adapter *qdev) in ql_wait_for_drvr_lock() argument 149 if (ql_sem_lock(qdev, in ql_wait_for_drvr_lock() 151 (QL_RESOURCE_BITS_BASE_CODE | (qdev->mac_index) in ql_wait_for_drvr_lock() 153 netdev_printk(KERN_DEBUG, qdev->ndev, in ql_wait_for_drvr_lock() [all …]
|
/Linux-v5.10/drivers/gpu/drm/qxl/ |
D | qxl_kms.c | 38 static bool qxl_check_device(struct qxl_device *qdev) in qxl_check_device() argument 40 struct qxl_rom *rom = qdev->rom; in qxl_check_device() 55 qdev->vram_size = rom->surface0_area_size; in qxl_check_device() 60 static void setup_hw_slot(struct qxl_device *qdev, struct qxl_memslot *slot) in setup_hw_slot() argument 62 qdev->ram_header->mem_slot.mem_start = slot->start_phys_addr; in setup_hw_slot() 63 qdev->ram_header->mem_slot.mem_end = slot->start_phys_addr + slot->size; in setup_hw_slot() 64 qxl_io_memslot_add(qdev, qdev->rom->slots_start + slot->index); in setup_hw_slot() 67 static void setup_slot(struct qxl_device *qdev, in setup_slot() argument 81 setup_hw_slot(qdev, slot); in setup_slot() 83 slot->generation = qdev->rom->slot_generation; in setup_slot() [all …]
|
D | qxl_cmd.c | 35 static int qxl_reap_surface_id(struct qxl_device *qdev, int max_to_reap); 186 qxl_push_command_ring_release(struct qxl_device *qdev, struct qxl_release *release, in qxl_push_command_ring_release() argument 192 cmd.data = qxl_bo_physical_address(qdev, release->release_bo, release->release_offset); in qxl_push_command_ring_release() 194 return qxl_ring_push(qdev->command_ring, &cmd, interruptible); in qxl_push_command_ring_release() 198 qxl_push_cursor_ring_release(struct qxl_device *qdev, struct qxl_release *release, in qxl_push_cursor_ring_release() argument 204 cmd.data = qxl_bo_physical_address(qdev, release->release_bo, release->release_offset); in qxl_push_cursor_ring_release() 206 return qxl_ring_push(qdev->cursor_ring, &cmd, interruptible); in qxl_push_cursor_ring_release() 209 bool qxl_queue_garbage_collect(struct qxl_device *qdev, bool flush) in qxl_queue_garbage_collect() argument 211 if (!qxl_check_idle(qdev->release_ring)) { in qxl_queue_garbage_collect() 212 schedule_work(&qdev->gc_work); in qxl_queue_garbage_collect() [all …]
|
D | qxl_irq.c | 35 struct qxl_device *qdev = to_qxl(dev); in qxl_irq_handler() local 38 pending = xchg(&qdev->ram_header->int_pending, 0); in qxl_irq_handler() 43 atomic_inc(&qdev->irq_received); in qxl_irq_handler() 46 atomic_inc(&qdev->irq_received_display); 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() 55 atomic_inc(&qdev->irq_received_io_cmd); in qxl_irq_handler() 56 wake_up_all(&qdev->io_cmd_event); in qxl_irq_handler() [all …]
|
D | qxl_display.c | 45 static int qxl_alloc_client_monitors_config(struct qxl_device *qdev, in qxl_alloc_client_monitors_config() argument 48 if (qdev->client_monitors_config && in qxl_alloc_client_monitors_config() 49 count > qdev->client_monitors_config->count) { in qxl_alloc_client_monitors_config() 50 kfree(qdev->client_monitors_config); in qxl_alloc_client_monitors_config() 51 qdev->client_monitors_config = NULL; in qxl_alloc_client_monitors_config() 53 if (!qdev->client_monitors_config) { in qxl_alloc_client_monitors_config() 54 qdev->client_monitors_config = kzalloc( in qxl_alloc_client_monitors_config() 55 struct_size(qdev->client_monitors_config, in qxl_alloc_client_monitors_config() 57 if (!qdev->client_monitors_config) in qxl_alloc_client_monitors_config() 60 qdev->client_monitors_config->count = count; in qxl_alloc_client_monitors_config() [all …]
|
D | qxl_drv.h | 171 struct qxl_device *qdev; member 178 struct qxl_device *qdev; member 278 int qxl_device_init(struct qxl_device *qdev, struct pci_dev *pdev); 279 void qxl_device_fini(struct qxl_device *qdev); 281 int qxl_modeset_init(struct qxl_device *qdev); 282 void qxl_modeset_fini(struct qxl_device *qdev); 284 int qxl_bo_init(struct qxl_device *qdev); 285 void qxl_bo_fini(struct qxl_device *qdev); 287 void qxl_reinit_memslots(struct qxl_device *qdev); 288 int qxl_surf_evict(struct qxl_device *qdev); [all …]
|
D | qxl_release.c | 60 struct qxl_device *qdev; in qxl_fence_wait() local 66 qdev = container_of(fence->lock, struct qxl_device, release_lock); in qxl_fence_wait() 76 qxl_io_notify_oom(qdev); in qxl_fence_wait() 79 if (!qxl_queue_garbage_collect(qdev, true)) in qxl_fence_wait() 124 qxl_release_alloc(struct qxl_device *qdev, int type, in qxl_release_alloc() argument 143 spin_lock(&qdev->release_idr_lock); in qxl_release_alloc() 144 handle = idr_alloc(&qdev->release_idr, release, 1, 0, GFP_NOWAIT); in qxl_release_alloc() 145 release->base.seqno = ++qdev->release_seqno; in qxl_release_alloc() 146 spin_unlock(&qdev->release_idr_lock); in qxl_release_alloc() 177 qxl_release_free(struct qxl_device *qdev, in qxl_release_free() argument [all …]
|
D | qxl_ttm.c | 44 struct qxl_device *qdev; in qxl_get_qdev() local 47 qdev = container_of(mman, struct qxl_device, mman); in qxl_get_qdev() 48 return qdev; in qxl_get_qdev() 77 struct qxl_device *qdev = qxl_get_qdev(bdev); in qxl_ttm_io_mem_reserve() local 85 mem->bus.offset = (mem->start << PAGE_SHIFT) + qdev->vram_base; in qxl_ttm_io_mem_reserve() 90 qdev->surfaceram_base; in qxl_ttm_io_mem_reserve() 103 struct qxl_device *qdev; member 141 struct qxl_device *qdev; in qxl_ttm_tt_create() local 144 qdev = qxl_get_qdev(bo->bdev); in qxl_ttm_tt_create() 148 gtt->qdev = qdev; in qxl_ttm_tt_create() [all …]
|
D | qxl_debugfs.c | 42 struct qxl_device *qdev = to_qxl(node->minor->dev); in qxl_debugfs_irq_received() local 44 seq_printf(m, "%d\n", atomic_read(&qdev->irq_received)); in qxl_debugfs_irq_received() 45 seq_printf(m, "%d\n", atomic_read(&qdev->irq_received_display)); in qxl_debugfs_irq_received() 46 seq_printf(m, "%d\n", atomic_read(&qdev->irq_received_cursor)); in qxl_debugfs_irq_received() 47 seq_printf(m, "%d\n", atomic_read(&qdev->irq_received_io_cmd)); in qxl_debugfs_irq_received() 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 59 list_for_each_entry(bo, &qdev->gem.objects, list) { in qxl_debugfs_buffers_info() 95 void qxl_debugfs_add_files(struct qxl_device *qdev, in qxl_debugfs_add_files() argument 101 for (i = 0; i < qdev->debugfs_count; i++) { in qxl_debugfs_add_files() [all …]
|
D | qxl_drv.c | 75 struct qxl_device *qdev; in qxl_pci_probe() local 84 qdev = devm_drm_dev_alloc(&pdev->dev, &qxl_driver, in qxl_pci_probe() 86 if (IS_ERR(qdev)) { in qxl_pci_probe() 107 ret = qxl_device_init(qdev, pdev); in qxl_pci_probe() 111 ret = qxl_modeset_init(qdev); in qxl_pci_probe() 115 drm_kms_helper_poll_init(&qdev->ddev); in qxl_pci_probe() 118 ret = drm_dev_register(&qdev->ddev, ent->driver_data); in qxl_pci_probe() 122 drm_fbdev_generic_setup(&qdev->ddev, 32); in qxl_pci_probe() 126 qxl_modeset_fini(qdev); in qxl_pci_probe() 128 qxl_device_fini(qdev); in qxl_pci_probe() [all …]
|
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() 45 int qxl_gem_object_create(struct qxl_device *qdev, int size, in qxl_gem_object_create() argument 58 r = qxl_bo_create(qdev, size, kernel, false, initial_domain, surf, &qbo); in qxl_gem_object_create() 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() 75 int qxl_gem_object_create_with_handle(struct qxl_device *qdev, in qxl_gem_object_create_with_handle() argument 89 r = qxl_gem_object_create(qdev, size, 0, in qxl_gem_object_create_with_handle() [all …]
|
D | qxl_draw.c | 28 static int alloc_clips(struct qxl_device *qdev, in alloc_clips() argument 35 return qxl_alloc_bo_reserved(qdev, release, size, clips_bo); in alloc_clips() 41 static struct qxl_rect *drawable_set_clipping(struct qxl_device *qdev, in drawable_set_clipping() argument 60 alloc_drawable(struct qxl_device *qdev, struct qxl_release **release) in alloc_drawable() argument 62 return qxl_alloc_release_reserved(qdev, sizeof(struct qxl_drawable), in alloc_drawable() 67 free_drawable(struct qxl_device *qdev, struct qxl_release *release) in free_drawable() argument 69 qxl_release_free(qdev, release); in free_drawable() 74 make_drawable(struct qxl_device *qdev, int surface, uint8_t type, in make_drawable() argument 81 drawable = (struct qxl_drawable *)qxl_release_map(qdev, release); in make_drawable() 109 drawable->mm_time = qdev->rom->mm_clock; in make_drawable() [all …]
|
D | qxl_object.c | 33 struct qxl_device *qdev; in qxl_ttm_bo_destroy() local 36 qdev = to_qxl(bo->tbo.base.dev); in qxl_ttm_bo_destroy() 38 qxl_surface_evict(qdev, bo, false); in qxl_ttm_bo_destroy() 40 mutex_lock(&qdev->gem.mutex); in qxl_ttm_bo_destroy() 42 mutex_unlock(&qdev->gem.mutex); in qxl_ttm_bo_destroy() 106 int qxl_bo_create(struct qxl_device *qdev, in qxl_bo_create() argument 124 r = drm_gem_object_init(&qdev->ddev, &bo->tbo.base, size); in qxl_bo_create() 140 r = ttm_bo_init(&qdev->mman.bdev, &bo->tbo, size, type, in qxl_bo_create() 145 dev_err(qdev->ddev.dev, in qxl_bo_create() 175 void *qxl_bo_kmap_atomic_page(struct qxl_device *qdev, in qxl_bo_kmap_atomic_page() argument [all …]
|
D | qxl_ioctl.c | 39 struct qxl_device *qdev = to_qxl(dev); in qxl_alloc_ioctl() local 50 ret = qxl_gem_object_create_with_handle(qdev, file_priv, in qxl_alloc_ioctl() 67 struct qxl_device *qdev = to_qxl(dev); in qxl_map_ioctl() local 70 return qxl_mode_dumb_mmap(file_priv, &qdev->ddev, qxl_map->handle, in qxl_map_ioctl() 88 apply_reloc(struct qxl_device *qdev, struct qxl_reloc_info *info) in apply_reloc() argument 92 reloc_page = qxl_bo_kmap_atomic_page(qdev, info->dst_bo, info->dst_offset & PAGE_MASK); in apply_reloc() 93 *(uint64_t *)(reloc_page + (info->dst_offset & ~PAGE_MASK)) = qxl_bo_physical_address(qdev, in apply_reloc() 96 qxl_bo_kunmap_atomic_page(qdev, info->dst_bo, reloc_page); in apply_reloc() 100 apply_surf_reloc(struct qxl_device *qdev, struct qxl_reloc_info *info) in apply_surf_reloc() argument 108 reloc_page = qxl_bo_kmap_atomic_page(qdev, info->dst_bo, info->dst_offset & PAGE_MASK); in apply_surf_reloc() [all …]
|
D | qxl_image.c | 33 qxl_allocate_chunk(struct qxl_device *qdev, in qxl_allocate_chunk() argument 45 ret = qxl_alloc_bo_reserved(qdev, release, chunk_size, &chunk->bo); in qxl_allocate_chunk() 56 qxl_image_alloc_objects(struct qxl_device *qdev, in qxl_image_alloc_objects() argument 70 ret = qxl_alloc_bo_reserved(qdev, release, sizeof(struct qxl_image), &image->bo); in qxl_image_alloc_objects() 76 ret = qxl_allocate_chunk(qdev, release, image, sizeof(struct qxl_data_chunk) + stride * height); in qxl_image_alloc_objects() 86 void qxl_image_free_objects(struct qxl_device *qdev, struct qxl_drm_image *dimage) in qxl_image_free_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() 146 ptr = qxl_bo_kmap_atomic_page(qdev, chunk_bo, page << PAGE_SHIFT); in qxl_image_init_helper() [all …]
|
D | qxl_object.h | 84 extern int qxl_bo_create(struct qxl_device *qdev, 91 void *qxl_bo_kmap_atomic_page(struct qxl_device *qdev, struct qxl_bo *bo, int page_offset); 92 void qxl_bo_kunmap_atomic_page(struct qxl_device *qdev, struct qxl_bo *bo, void *map);
|
D | qxl_dumb.c | 35 struct qxl_device *qdev = to_qxl(dev); in qxl_mode_dumb_create() local 61 r = qxl_gem_object_create_with_handle(qdev, file_priv, in qxl_mode_dumb_create()
|
/Linux-v5.10/drivers/staging/qlge/ |
D | qlge_mpi.c | 4 int ql_unpause_mpi_risc(struct ql_adapter *qdev) in ql_unpause_mpi_risc() argument 9 tmp = ql_read32(qdev, CSR); in ql_unpause_mpi_risc() 13 ql_write32(qdev, CSR, CSR_CMD_CLR_PAUSE); in ql_unpause_mpi_risc() 17 int ql_pause_mpi_risc(struct ql_adapter *qdev) in ql_pause_mpi_risc() argument 23 ql_write32(qdev, CSR, CSR_CMD_SET_PAUSE); in ql_pause_mpi_risc() 25 tmp = ql_read32(qdev, CSR); in ql_pause_mpi_risc() 33 int ql_hard_reset_mpi_risc(struct ql_adapter *qdev) in ql_hard_reset_mpi_risc() argument 39 ql_write32(qdev, CSR, CSR_CMD_SET_RST); in ql_hard_reset_mpi_risc() 41 tmp = ql_read32(qdev, CSR); in ql_hard_reset_mpi_risc() 43 ql_write32(qdev, CSR, CSR_CMD_CLR_RST); in ql_hard_reset_mpi_risc() [all …]
|
D | qlge_main.c | 101 static int ql_sem_trylock(struct ql_adapter *qdev, u32 sem_mask) in ql_sem_trylock() argument 131 netif_alert(qdev, probe, qdev->ndev, "bad Semaphore mask!.\n"); in ql_sem_trylock() 135 ql_write32(qdev, SEM, sem_bits | sem_mask); in ql_sem_trylock() 136 return !(ql_read32(qdev, SEM) & sem_bits); in ql_sem_trylock() 139 int ql_sem_spinlock(struct ql_adapter *qdev, u32 sem_mask) in ql_sem_spinlock() argument 144 if (!ql_sem_trylock(qdev, sem_mask)) in ql_sem_spinlock() 151 void ql_sem_unlock(struct ql_adapter *qdev, u32 sem_mask) in ql_sem_unlock() argument 153 ql_write32(qdev, SEM, sem_mask); in ql_sem_unlock() 154 ql_read32(qdev, SEM); /* flush */ in ql_sem_unlock() 162 int ql_wait_reg_rdy(struct ql_adapter *qdev, u32 reg, u32 bit, u32 err_bit) in ql_wait_reg_rdy() argument [all …]
|
D | qlge_dbg.c | 9 static u32 ql_read_other_func_reg(struct ql_adapter *qdev, in ql_read_other_func_reg() argument 18 | (qdev->alt_func << MPI_NIC_FUNCTION_SHIFT) in ql_read_other_func_reg() 20 status = ql_read_mpi_reg(qdev, register_to_read, ®_val); in ql_read_other_func_reg() 28 static int ql_write_other_func_reg(struct ql_adapter *qdev, in ql_write_other_func_reg() argument 35 | (qdev->alt_func << MPI_NIC_FUNCTION_SHIFT) in ql_write_other_func_reg() 38 return ql_write_mpi_reg(qdev, register_to_read, reg_val); in ql_write_other_func_reg() 41 static int ql_wait_other_func_reg_rdy(struct ql_adapter *qdev, u32 reg, in ql_wait_other_func_reg_rdy() argument 48 temp = ql_read_other_func_reg(qdev, reg); in ql_wait_other_func_reg_rdy() 60 static int ql_read_other_func_serdes_reg(struct ql_adapter *qdev, u32 reg, in ql_read_other_func_serdes_reg() argument 66 status = ql_wait_other_func_reg_rdy(qdev, XG_SERDES_ADDR / 4, in ql_read_other_func_serdes_reg() [all …]
|
D | qlge_ethtool.c | 185 static int ql_update_ring_coalescing(struct ql_adapter *qdev) in ql_update_ring_coalescing() argument 191 if (!netif_running(qdev->ndev)) in ql_update_ring_coalescing() 197 cqicb = (struct cqicb *)&qdev->rx_ring[qdev->rss_ring_count]; in ql_update_ring_coalescing() 198 if (le16_to_cpu(cqicb->irq_delay) != qdev->tx_coalesce_usecs || in ql_update_ring_coalescing() 199 le16_to_cpu(cqicb->pkt_delay) != qdev->tx_max_coalesced_frames) { in ql_update_ring_coalescing() 200 for (i = qdev->rss_ring_count; i < qdev->rx_ring_count; i++) { in ql_update_ring_coalescing() 201 rx_ring = &qdev->rx_ring[i]; in ql_update_ring_coalescing() 203 cqicb->irq_delay = cpu_to_le16(qdev->tx_coalesce_usecs); in ql_update_ring_coalescing() 205 cpu_to_le16(qdev->tx_max_coalesced_frames); in ql_update_ring_coalescing() 207 status = ql_write_cfg(qdev, cqicb, sizeof(*cqicb), in ql_update_ring_coalescing() [all …]
|
D | qlge.h | 1368 #define QL_TXQ_IDX(qdev, skb) (smp_processor_id() % (qdev->tx_ring_count)) argument 1391 struct ql_adapter *qdev; member 1490 struct ql_adapter *qdev; member 1994 struct ql_adapter *qdev; member 2059 int (*get_flash)(struct ql_adapter *qdev); 2060 int (*port_initialize)(struct ql_adapter *qdev); 2169 static inline u32 ql_read32(const struct ql_adapter *qdev, int reg) in ql_read32() argument 2171 return readl(qdev->reg_base + reg); in ql_read32() 2177 static inline void ql_write32(const struct ql_adapter *qdev, int reg, u32 val) in ql_write32() argument 2179 writel(val, qdev->reg_base + reg); in ql_write32() [all …]
|
/Linux-v5.10/net/qrtr/ |
D | smd.c | 23 struct qrtr_smd_dev *qdev = dev_get_drvdata(&rpdev->dev); in qcom_smd_qrtr_callback() local 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() 42 struct qrtr_smd_dev *qdev = container_of(ep, struct qrtr_smd_dev, ep); in qcom_smd_qrtr_send() local 49 rc = rpmsg_send(qdev->channel, skb->data, skb->len); in qcom_smd_qrtr_send() 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() [all …]
|
D | mhi.c | 24 struct qrtr_mhi_dev *qdev = dev_get_drvdata(&mhi_dev->dev); in qcom_mhi_qrtr_dl_callback() local 27 if (!qdev || mhi_res->transaction_status) in qcom_mhi_qrtr_dl_callback() 30 rc = qrtr_endpoint_post(&qdev->ep, mhi_res->buf_addr, in qcom_mhi_qrtr_dl_callback() 33 dev_err(qdev->dev, "invalid ipcrouter packet\n"); in qcom_mhi_qrtr_dl_callback() 50 struct qrtr_mhi_dev *qdev = container_of(ep, struct qrtr_mhi_dev, ep); in qcom_mhi_qrtr_send() local 57 rc = mhi_queue_skb(qdev->mhi_dev, DMA_TO_DEVICE, skb, skb->len, in qcom_mhi_qrtr_send() 76 struct qrtr_mhi_dev *qdev; in qcom_mhi_qrtr_probe() local 79 qdev = devm_kzalloc(&mhi_dev->dev, sizeof(*qdev), GFP_KERNEL); in qcom_mhi_qrtr_probe() 80 if (!qdev) in qcom_mhi_qrtr_probe() 83 qdev->mhi_dev = mhi_dev; in qcom_mhi_qrtr_probe() [all …]
|
/Linux-v5.10/drivers/s390/cio/ |
D | qdio.h | 307 struct qdio_irq *qdev = __irq; \ 308 if (qdev->perf_stat_enabled) \ 309 (qdev->perf_stat.__attr)++; \
|