Home
last modified time | relevance | path

Searched refs:vector (Results 1 – 25 of 229) sorted by relevance

12345678910

/drivers/gpu/drm/amd/display/dc/basics/
Dvector.c30 struct vector *vector, in dal_vector_construct() argument
35 vector->container = NULL; in dal_vector_construct()
43 vector->container = kcalloc(capacity, struct_size, GFP_KERNEL); in dal_vector_construct()
44 if (vector->container == NULL) in dal_vector_construct()
46 vector->capacity = capacity; in dal_vector_construct()
47 vector->struct_size = struct_size; in dal_vector_construct()
48 vector->count = 0; in dal_vector_construct()
49 vector->ctx = ctx; in dal_vector_construct()
53 static bool dal_vector_presized_costruct(struct vector *vector, in dal_vector_presized_costruct() argument
61 vector->container = NULL; in dal_vector_presized_costruct()
[all …]
/drivers/gpu/drm/amd/display/include/
Dvector.h29 struct vector { struct
38 struct vector *vector, argument
43 struct vector *dal_vector_create(
50 struct vector *dal_vector_presized_create(
57 struct vector *vector);
60 struct vector **vector);
63 const struct vector *vector);
73 struct vector *vector,
78 struct vector *vector,
83 const struct vector *vector,
[all …]
/drivers/net/wireless/ti/wl12xx/
Devent.c37 u32 vector; in wl12xx_process_mailbox_events() local
40 vector = le32_to_cpu(mbox->events_vector); in wl12xx_process_mailbox_events()
41 vector &= ~(le32_to_cpu(mbox->events_mask)); in wl12xx_process_mailbox_events()
43 wl1271_debug(DEBUG_EVENT, "MBOX vector: 0x%x", vector); in wl12xx_process_mailbox_events()
45 if (vector & SCAN_COMPLETE_EVENT_ID) { in wl12xx_process_mailbox_events()
53 if (vector & PERIODIC_SCAN_REPORT_EVENT_ID) { in wl12xx_process_mailbox_events()
61 if (vector & PERIODIC_SCAN_COMPLETE_EVENT_ID) in wl12xx_process_mailbox_events()
64 if (vector & SOFT_GEMINI_SENSE_EVENT_ID) in wl12xx_process_mailbox_events()
68 if (vector & BSS_LOSE_EVENT_ID) in wl12xx_process_mailbox_events()
71 if (vector & RSSI_SNR_TRIGGER_0_EVENT_ID) in wl12xx_process_mailbox_events()
[all …]
/drivers/net/wireless/ti/wl18xx/
Devent.c119 u32 vector; in wl18xx_process_mailbox_events() local
121 vector = le32_to_cpu(mbox->events_vector); in wl18xx_process_mailbox_events()
122 wl1271_debug(DEBUG_EVENT, "MBOX vector: 0x%x", vector); in wl18xx_process_mailbox_events()
124 if (vector & SCAN_COMPLETE_EVENT_ID) { in wl18xx_process_mailbox_events()
132 if (vector & TIME_SYNC_EVENT_ID) in wl18xx_process_mailbox_events()
139 if (vector & RADAR_DETECTED_EVENT_ID) { in wl18xx_process_mailbox_events()
148 if (vector & PERIODIC_SCAN_REPORT_EVENT_ID) { in wl18xx_process_mailbox_events()
156 if (vector & PERIODIC_SCAN_COMPLETE_EVENT_ID) in wl18xx_process_mailbox_events()
159 if (vector & RSSI_SNR_TRIGGER_0_EVENT_ID) in wl18xx_process_mailbox_events()
162 if (vector & BA_SESSION_RX_CONSTRAINT_EVENT_ID) in wl18xx_process_mailbox_events()
[all …]
/drivers/crypto/marvell/octeontx2/
Dotx2_cptpf_main.c47 int vector; in cptpf_disable_vfpf_mbox_intr() local
58 vector = pci_irq_vector(cptpf->pdev, RVU_PF_INT_VEC_VFPF_MBOX0); in cptpf_disable_vfpf_mbox_intr()
59 free_irq(vector, cptpf); in cptpf_disable_vfpf_mbox_intr()
64 vector = pci_irq_vector(cptpf->pdev, RVU_PF_INT_VEC_VFPF_MBOX1); in cptpf_disable_vfpf_mbox_intr()
65 free_irq(vector, cptpf); in cptpf_disable_vfpf_mbox_intr()
103 int vector; in cptpf_disable_vf_flr_me_intrs() local
108 vector = pci_irq_vector(cptpf->pdev, RVU_PF_INT_VEC_VFFLR0); in cptpf_disable_vf_flr_me_intrs()
109 free_irq(vector, cptpf); in cptpf_disable_vf_flr_me_intrs()
114 vector = pci_irq_vector(cptpf->pdev, RVU_PF_INT_VEC_VFME0); in cptpf_disable_vf_flr_me_intrs()
115 free_irq(vector, cptpf); in cptpf_disable_vf_flr_me_intrs()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Den_cq.c66 cq->vector = mdev->dev->caps.num_comp_vectors; in mlx4_en_create_cq()
106 cq->vector)) { in mlx4_en_activate_cq()
107 cq->vector = cpumask_first(priv->rx_ring[cq->ring]->affinity_mask); in mlx4_en_activate_cq()
110 &cq->vector); in mlx4_en_activate_cq()
113 cq->vector); in mlx4_en_activate_cq()
119 irq = mlx4_eq_get_irq(mdev->dev, cq->vector); in mlx4_en_activate_cq()
128 cq->vector = rx_cq->vector; in mlx4_en_activate_cq()
141 cq->vector, 0, timestamp_en, &cq->wqres.buf, false); in mlx4_en_activate_cq()
168 mlx4_release_eq(mdev->dev, cq->vector); in mlx4_en_activate_cq()
169 cq->vector = mdev->dev->caps.num_comp_vectors; in mlx4_en_activate_cq()
[all …]
Dcq.c344 struct mlx4_cq *cq, unsigned vector, int collapsed, in mlx4_cq_alloc() argument
355 if (vector >= dev->caps.num_comp_vectors) in mlx4_cq_alloc()
358 cq->vector = vector; in mlx4_cq_alloc()
384 cq_context->comp_eqn = priv->eq_table.eq[MLX4_CQ_TO_EQ_VECTOR(vector)].eqn; in mlx4_cq_alloc()
417 &priv->eq_table.eq[MLX4_CQ_TO_EQ_VECTOR(vector)].tasklet_ctx; in mlx4_cq_alloc()
421 cq->irq = priv->eq_table.eq[MLX4_CQ_TO_EQ_VECTOR(vector)].irq; in mlx4_cq_alloc()
450 synchronize_irq(priv->eq_table.eq[MLX4_CQ_TO_EQ_VECTOR(cq->vector)].irq); in mlx4_cq_free()
451 if (priv->eq_table.eq[MLX4_CQ_TO_EQ_VECTOR(cq->vector)].irq != in mlx4_cq_free()
/drivers/s390/cio/
Dairq.c145 iv->vector = dma_pool_zalloc(airq_iv_cache, GFP_KERNEL, in airq_iv_create()
147 if (!iv->vector) in airq_iv_create()
150 iv->vector = vec; in airq_iv_create()
152 iv->vector = cio_dma_zalloc(size); in airq_iv_create()
153 if (!iv->vector) in airq_iv_create()
188 if (iv->flags & AIRQ_IV_CACHELINE && iv->vector) in airq_iv_create()
189 dma_pool_free(airq_iv_cache, iv->vector, iv->vector_dma); in airq_iv_create()
191 cio_dma_free(iv->vector, size); in airq_iv_create()
208 dma_pool_free(airq_iv_cache, iv->vector, iv->vector_dma); in airq_iv_release()
210 cio_dma_free(iv->vector, iv_size(iv->bits)); in airq_iv_release()
[all …]
/drivers/net/wireless/ti/wl1251/
Devent.c86 u32 vector; in wl1251_event_process() local
90 vector = mbox->events_vector & ~(mbox->events_mask); in wl1251_event_process()
91 wl1251_debug(DEBUG_EVENT, "vector: 0x%x", vector); in wl1251_event_process()
93 if (vector & SCAN_COMPLETE_EVENT_ID) { in wl1251_event_process()
99 if (vector & BSS_LOSE_EVENT_ID) { in wl1251_event_process()
110 if (vector & PS_REPORT_EVENT_ID) { in wl1251_event_process()
117 if (vector & SYNCHRONIZATION_TIMEOUT_EVENT_ID) { in wl1251_event_process()
125 if (vector & REGAINED_BSS_EVENT_ID) { in wl1251_event_process()
134 if (vector & ROAMING_TRIGGER_LOW_RSSI_EVENT_ID) { in wl1251_event_process()
142 if (vector & ROAMING_TRIGGER_REGAINED_RSSI_EVENT_ID) { in wl1251_event_process()
/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
Dvmem.c81 hive_wide vector, in hive_sim_wide_unpack() argument
94 elem[0] = vector[index]; in hive_sim_wide_unpack()
97 move_subword(elem, 0, vector[start_elem], start_bit, end_bit); in hive_sim_wide_unpack()
103 move_upper_bits(elem, bits_written, vector[start_elem], start_bit); in hive_sim_wide_unpack()
106 move_word(elem, bits_written, vector[i]); in hive_sim_wide_unpack()
109 move_lower_bits(elem, bits_written, vector[end_elem], end_bit); in hive_sim_wide_unpack()
115 hive_wide vector, in hive_sim_wide_pack() argument
125 vector[start_elem] = elem[0]; in hive_sim_wide_pack()
133 move_word(vector, start_bit, elem[i]); in hive_sim_wide_pack()
135 move_lower_bits(vector, start_bit, elem[i], bits_to_write); in hive_sim_wide_pack()
[all …]
/drivers/net/ethernet/wangxun/ngbe/
Dngbe_main.c240 int vector, err; in ngbe_request_msix_irqs() local
242 for (vector = 0; vector < wx->num_q_vectors; vector++) { in ngbe_request_msix_irqs()
243 struct wx_q_vector *q_vector = wx->q_vector[vector]; in ngbe_request_msix_irqs()
244 struct msix_entry *entry = &wx->msix_entries[vector]; in ngbe_request_msix_irqs()
253 err = request_irq(entry->vector, wx_msix_clean_rings, 0, in ngbe_request_msix_irqs()
262 err = request_irq(wx->msix_entries[vector].vector, in ngbe_request_msix_irqs()
273 while (vector) { in ngbe_request_msix_irqs()
274 vector--; in ngbe_request_msix_irqs()
275 free_irq(wx->msix_entries[vector].vector, in ngbe_request_msix_irqs()
276 wx->q_vector[vector]); in ngbe_request_msix_irqs()
/drivers/net/ethernet/wangxun/txgbe/
Dtxgbe_main.c144 int vector, err; in txgbe_request_msix_irqs() local
146 for (vector = 0; vector < wx->num_q_vectors; vector++) { in txgbe_request_msix_irqs()
147 struct wx_q_vector *q_vector = wx->q_vector[vector]; in txgbe_request_msix_irqs()
148 struct msix_entry *entry = &wx->msix_entries[vector]; in txgbe_request_msix_irqs()
157 err = request_irq(entry->vector, wx_msix_clean_rings, 0, in txgbe_request_msix_irqs()
169 while (vector) { in txgbe_request_msix_irqs()
170 vector--; in txgbe_request_msix_irqs()
171 free_irq(wx->msix_entries[vector].vector, in txgbe_request_msix_irqs()
172 wx->q_vector[vector]); in txgbe_request_msix_irqs()
/drivers/xen/xen-pciback/
Dpciback_ops.c228 entries[i].vector = op->msix_entries[i].vector; in xen_pcibk_enable_msix()
235 if (entries[i].vector) { in xen_pcibk_enable_msix()
236 op->msix_entries[i].vector = in xen_pcibk_enable_msix()
237 xen_pirq_from_irq(entries[i].vector); in xen_pcibk_enable_msix()
239 op->msix_entries[i].vector); in xen_pcibk_enable_msix()
382 pdev->sh_info->op.msix_entries[i].vector = in xen_pcibk_do_one_op()
383 op->msix_entries[i].vector; in xen_pcibk_do_one_op()
/drivers/vdpa/ifcvf/
Difcvf_main.c161 int i, vector, ret, irq; in ifcvf_request_per_vq_irq() local
166 vector = i; in ifcvf_request_per_vq_irq()
167 irq = pci_irq_vector(pdev, vector); in ifcvf_request_per_vq_irq()
178 ret = ifcvf_set_vq_vector(vf, i, vector); in ifcvf_request_per_vq_irq()
195 int i, vector, ret, irq; in ifcvf_request_vqs_reused_irq() local
197 vector = 0; in ifcvf_request_vqs_reused_irq()
199 irq = pci_irq_vector(pdev, vector); in ifcvf_request_vqs_reused_irq()
211 ret = ifcvf_set_vq_vector(vf, i, vector); in ifcvf_request_vqs_reused_irq()
228 int i, vector, ret, irq; in ifcvf_request_dev_irq() local
230 vector = 0; in ifcvf_request_dev_irq()
[all …]
/drivers/iommu/
Dhyperv-iommu.c197 u32 vector; in hyperv_root_ir_compose_msi_msg() local
210 vector = cfg->vector; in hyperv_root_ir_compose_msi_msg()
228 vector, &entry); in hyperv_root_ir_compose_msi_msg()
242 msg->arch_data.vector = e.vector; in hyperv_root_ir_compose_msi_msg()
/drivers/net/ethernet/microchip/
Dlan743x_main.c345 struct lan743x_vector *vector = ptr; in lan743x_intr_entry_isr() local
346 struct lan743x_adapter *adapter = vector->adapter; in lan743x_intr_entry_isr()
351 if (vector->flags & LAN743X_VECTOR_FLAG_SOURCE_STATUS_READ) { in lan743x_intr_entry_isr()
353 } else if (vector->flags & in lan743x_intr_entry_isr()
359 int_sts = vector->int_mask | INT_BIT_MAS_; in lan743x_intr_entry_isr()
365 if (vector->flags & LAN743X_VECTOR_FLAG_VECTOR_ENABLE_ISR_CLEAR) in lan743x_intr_entry_isr()
369 INT_VEC_EN_(vector->vector_index)); in lan743x_intr_entry_isr()
371 if (vector->flags & LAN743X_VECTOR_FLAG_MASTER_ENABLE_CLEAR) in lan743x_intr_entry_isr()
375 if (vector->flags & LAN743X_VECTOR_FLAG_SOURCE_ENABLE_CHECK) { in lan743x_intr_entry_isr()
379 int_enables = vector->int_mask; in lan743x_intr_entry_isr()
[all …]
/drivers/gpu/drm/nouveau/nvkm/engine/ce/
Dga100.c66 u32 vector; in ga100_ce_oneinit() local
68 vector = nvkm_rd32(device, 0x10442c + (subdev->inst * 0x80)) & 0x00000fff; in ga100_ce_oneinit()
70 return nvkm_inth_add(&device->vfn->intr, vector, NVKM_INTR_PRIO_NORMAL, in ga100_ce_oneinit()
/drivers/virtio/
Dvirtio_pci_legacy_dev.c148 u16 index, u16 vector) in vp_legacy_queue_vector() argument
151 iowrite16(vector, ldev->ioaddr + VIRTIO_MSI_QUEUE_VECTOR); in vp_legacy_queue_vector()
165 u16 vector) in vp_legacy_config_vector() argument
168 iowrite16(vector, ldev->ioaddr + VIRTIO_MSI_CONFIG_VECTOR); in vp_legacy_config_vector()
/drivers/vfio/pci/
Dvfio_pci_intrs.c429 unsigned int vector, bool msix) in vfio_msi_alloc_irq() argument
436 irq = pci_irq_vector(pdev, vector); in vfio_msi_alloc_irq()
443 map = pci_msix_alloc_irq_at(pdev, vector, NULL); in vfio_msi_alloc_irq()
450 unsigned int vector, int fd, bool msix) in vfio_msi_set_vector_signal() argument
458 ctx = vfio_irq_ctx_get(vdev, vector); in vfio_msi_set_vector_signal()
462 irq = pci_irq_vector(pdev, vector); in vfio_msi_set_vector_signal()
469 vfio_irq_ctx_free(vdev, ctx, vector); in vfio_msi_set_vector_signal()
477 irq = vfio_msi_alloc_irq(vdev, vector, msix); in vfio_msi_set_vector_signal()
482 ctx = vfio_irq_ctx_alloc(vdev, vector); in vfio_msi_set_vector_signal()
487 msix ? "x" : "", vector, pci_name(pdev)); in vfio_msi_set_vector_signal()
[all …]
/drivers/net/ethernet/wangxun/libwx/
Dwx_hw.c57 int vector; in wx_irq_disable() local
59 for (vector = 0; vector < wx->num_q_vectors; vector++) in wx_irq_disable()
60 synchronize_irq(wx->msix_entries[vector].vector); in wx_irq_disable()
62 synchronize_irq(wx->msix_entries[vector].vector); in wx_irq_disable()
856 u32 vector = 0; in wx_mta_vector() local
860 vector = ((mc_addr[4] >> 4) | (((u16)mc_addr[5]) << 4)); in wx_mta_vector()
863 vector = ((mc_addr[4] >> 3) | (((u16)mc_addr[5]) << 5)); in wx_mta_vector()
866 vector = ((mc_addr[4] >> 2) | (((u16)mc_addr[5]) << 6)); in wx_mta_vector()
869 vector = ((mc_addr[4]) | (((u16)mc_addr[5]) << 8)); in wx_mta_vector()
877 vector &= 0xFFF; in wx_mta_vector()
[all …]
/drivers/net/ethernet/freescale/enetc/
Denetc_msg.c110 int vector, i, err; in enetc_msg_psi_init() local
115 vector = pci_irq_vector(si->pdev, ENETC_SI_INT_IDX); in enetc_msg_psi_init()
116 err = request_irq(vector, enetc_msg_psi_msix, 0, pf->msg_int_name, si); in enetc_msg_psi_init()
144 free_irq(vector, si); in enetc_msg_psi_init()
/drivers/rapidio/devices/
Dtsi721.c616 mbox = (irq - priv->msix[TSI721_VECT_OMB0_DONE].vector) % RIO_MAX_MBOX; in tsi721_omsg_msix()
633 mbox = (irq - priv->msix[TSI721_VECT_IMB0_RCV].vector) % RIO_MAX_MBOX; in tsi721_imsg_msix()
697 err = request_irq(priv->msix[TSI721_VECT_IDB].vector, in tsi721_request_msix()
703 err = request_irq(priv->msix[TSI721_VECT_PWRX].vector, in tsi721_request_msix()
707 free_irq(priv->msix[TSI721_VECT_IDB].vector, (void *)priv); in tsi721_request_msix()
771 priv->msix[TSI721_VECT_IDB].vector = entries[TSI721_VECT_IDB].vector; in tsi721_enable_msix()
774 priv->msix[TSI721_VECT_PWRX].vector = entries[TSI721_VECT_PWRX].vector; in tsi721_enable_msix()
779 priv->msix[TSI721_VECT_IMB0_RCV + i].vector = in tsi721_enable_msix()
780 entries[TSI721_VECT_IMB0_RCV + i].vector; in tsi721_enable_msix()
785 priv->msix[TSI721_VECT_IMB0_INT + i].vector = in tsi721_enable_msix()
[all …]
/drivers/irqchip/
Dirq-mxs.c49 void __iomem *vector; member
138 __raw_writel(irqnr, icoll_priv.vector); in icoll_handle_irq()
190 icoll_priv.vector = icoll_base + HW_ICOLL_VECTOR; in icoll_of_init()
219 icoll_priv.vector = icoll_base + ASM9260_HW_ICOLL_VECTOR; in asm9260_of_init()
/drivers/net/ethernet/brocade/bna/
Dbnad.c58 ((_bnad)->msix_table[BNAD_MAILBOX_MSIX_INDEX].vector) : \
95 int vector, nvecs; in bnad_tx_buff_unmap() local
109 vector = 0; in bnad_tx_buff_unmap()
111 vector++; in bnad_tx_buff_unmap()
112 if (vector == BFI_TX_MAX_VECTORS_PER_WI) { in bnad_tx_buff_unmap()
113 vector = 0; in bnad_tx_buff_unmap()
119 dma_unmap_addr(&unmap->vectors[vector], dma_addr), in bnad_tx_buff_unmap()
120 dma_unmap_len(&unmap->vectors[vector], dma_len), in bnad_tx_buff_unmap()
122 dma_unmap_addr_set(&unmap->vectors[vector], dma_addr, 0); in bnad_tx_buff_unmap()
298 dma_unmap_addr(&unmap->vector, dma_addr), in bnad_rxq_cleanup_page()
[all …]
/drivers/net/ethernet/intel/igbvf/
Dnetdev.c980 int vector = 0; in igbvf_configure_msix() local
984 igbvf_assign_vector(adapter, IGBVF_NO_QUEUE, 0, vector++); in igbvf_configure_msix()
987 igbvf_assign_vector(adapter, 0, IGBVF_NO_QUEUE, vector++); in igbvf_configure_msix()
993 tmp = (vector++ | E1000_IVAR_VALID); in igbvf_configure_msix()
997 adapter->eims_enable_mask = GENMASK(vector - 1, 0); in igbvf_configure_msix()
998 adapter->eims_other = BIT(vector - 1); in igbvf_configure_msix()
1052 int err = 0, vector = 0; in igbvf_request_msix() local
1062 err = request_irq(adapter->msix_entries[vector].vector, in igbvf_request_msix()
1068 adapter->tx_ring->itr_register = E1000_EITR(vector); in igbvf_request_msix()
1070 vector++; in igbvf_request_msix()
[all …]

12345678910