Home
last modified time | relevance | path

Searched refs:ldvp (Results 1 – 22 of 22) sorted by relevance

/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhxge_virtual.c38 static void hxge_ldgv_setup(p_hxge_ldg_t *ldgp, p_hxge_ldv_t *ldvp, uint8_t ldv,
471 p_hxge_ldv_t ldvp; in hxge_ldgv_init() local
514 ldvp = ldgvp->ldvp = in hxge_ldgv_init()
559 ldgp->ldvp = NULL; in hxge_ldgv_init()
567 ldvp->is_rxdma = B_TRUE; in hxge_ldgv_init()
568 ldvp->ldv = ldv; in hxge_ldgv_init()
573 ldvp->channel = channel++; in hxge_ldgv_init()
574 ldvp->vdma_index = i; in hxge_ldgv_init()
575 ldvp->ldv_intr_handler = hxge_rx_intr; in hxge_ldgv_init()
576 ldvp->ldv_ldf_masks = 0; in hxge_ldgv_init()
[all …]
H A Dhxge_fzc.c67 p_hxge_ldv_t ldvp; in hxge_fzc_intr_ldg_num_set() local
79 ldvp = hxgep->ldgvp->ldvp; in hxge_fzc_intr_ldg_num_set()
80 if (ldgp == NULL || ldvp == NULL) { in hxge_fzc_intr_ldg_num_set()
91 for (j = 0; j < ldgp->nldvs; j++, ldvp++) { in hxge_fzc_intr_ldg_num_set()
92 rs = hpi_fzc_ldg_num_set(handle, ldvp->ldv, in hxge_fzc_intr_ldg_num_set()
93 ldvp->ldg_assigned); in hxge_fzc_intr_ldg_num_set()
98 rs, ldvp->ldv, ldvp->ldg_assigned)); in hxge_fzc_intr_ldg_num_set()
103 ldvp->ldv, ldvp->ldg_assigned)); in hxge_fzc_intr_ldg_num_set()
H A Dhxge_hw.c112 p_hxge_ldv_t ldvp = (p_hxge_ldv_t)arg1; in hxge_intr() local
126 if ((arg2 == NULL) || ((void *) ldvp->hxgep != arg2)) { in hxge_intr()
127 hxgep = ldvp->hxgep; in hxge_intr()
142 if (ldvp == NULL && ldgvp) in hxge_intr()
143 t_ldvp = ldvp = ldgvp->ldvp; in hxge_intr()
144 if (ldvp) in hxge_intr()
145 ldgp = t_ldgp = ldvp->ldgp; in hxge_intr()
148 "ldgvp $%p ldvp $%p ldgp $%p", ldgvp, ldvp, ldgp)); in hxge_intr()
150 if (ldgvp == NULL || ldvp == NULL || ldgp == NULL) { in hxge_intr()
152 "ldgvp $%p ldvp $%p ldgp $%p", ldgvp, ldvp, ldgp)); in hxge_intr()
[all …]
H A Dhxge_rxdma.c87 static mblk_t *hxge_rx_pkts(p_hxge_t hxgep, uint_t vindex, p_hxge_ldv_t ldvp,
99 p_hxge_ldv_t ldvp, rdc_stat_t cs);
1081 p_hxge_ldv_t ldvp = (p_hxge_ldv_t)arg1; in hxge_rx_intr() local
1091 if (ldvp == NULL) { in hxge_rx_intr()
1093 "<== hxge_rx_intr: arg2 $%p arg1 $%p", hxgep, ldvp)); in hxge_rx_intr()
1097 if (arg2 == NULL || (void *) ldvp->hxgep != arg2) { in hxge_rx_intr()
1098 hxgep = ldvp->hxgep; in hxge_rx_intr()
1102 "==> hxge_rx_intr: arg2 $%p arg1 $%p", hxgep, ldvp)); in hxge_rx_intr()
1112 channel = ldvp->vdma_index; in hxge_rx_intr()
1115 ldgp = ldvp->ldgp; in hxge_rx_intr()
[all …]
H A Dhxge_txdma.c79 p_hxge_ldv_t ldvp, tdc_stat_t cs);
806 p_hxge_ldv_t ldvp = (p_hxge_ldv_t)arg1; in hxge_tx_intr() local
819 if (ldvp == NULL) { in hxge_tx_intr()
821 "<== hxge_tx_intr: hxgep $%p ldvp $%p", hxgep, ldvp)); in hxge_tx_intr()
825 if (arg2 == NULL || (void *) ldvp->hxgep != arg2) { in hxge_tx_intr()
826 hxgep = ldvp->hxgep; in hxge_tx_intr()
837 "==> hxge_tx_intr: hxgep(arg2) $%p ldvp(arg1) $%p", hxgep, ldvp)); in hxge_tx_intr()
845 channel = ldvp->channel; in hxge_tx_intr()
846 ldgp = ldvp->ldgp; in hxge_tx_intr()
849 hxgep, ldvp, channel)); in hxge_tx_intr()
[all …]
H A Dhxge_main.c2699 if ((hxgep->ldgvp->ldvp[i].is_rxdma == 1) && in hxge_rx_ring_start()
2700 (hxgep->ldgvp->ldvp[i].channel == rhp->index)) { in hxge_rx_ring_start()
2701 ring->ldvp = &hxgep->ldgvp->ldvp[i]; in hxge_rx_ring_start()
2702 ring->ldgp = hxgep->ldgvp->ldvp[i].ldgp; in hxge_rx_ring_start()
2731 ring->ldvp = NULL; in hxge_rx_ring_stop()
2948 if ((hxgep->ldgvp->ldvp[i].is_rxdma) && in hxge_ring_get_htable_idx()
2949 (hxgep->ldgvp->ldvp[i].channel == channel)) { in hxge_ring_get_htable_idx()
2951 hxgep->ldgvp->ldvp[i].ldgp->htable_idx); in hxge_ring_get_htable_idx()
2958 if ((hxgep->ldgvp->ldvp[i].is_txdma) && in hxge_ring_get_htable_idx()
2959 (hxgep->ldgvp->ldvp[i].channel == channel)) { in hxge_ring_get_htable_idx()
[all …]
H A Dhxge_pfc.c1064 p_hxge_ldv_t ldvp = (p_hxge_ldv_t)arg1; in hxge_pfc_intr() local
1075 if (ldvp == NULL) { in hxge_pfc_intr()
1077 "<== hxge_pfc_intr: hxgep $%p ldvp $%p", hxgep, ldvp)); in hxge_pfc_intr()
1081 if (arg2 == NULL || (void *) ldvp->hxgep != arg2) { in hxge_pfc_intr()
1082 hxgep = ldvp->hxgep; in hxge_pfc_intr()
H A Dhxge_rxdma.h319 p_hxge_ldv_t ldvp; member
H A Dhxge.h233 p_hxge_ldv_t ldvp; member
H A Dhxge_impl.h259 p_hxge_ldv_t ldvp; member
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_virtual.c3008 p_nxge_ldv_t ldvp, sysldvp; in nxge_ldgv_init_n2() local
3067 ldvp = ldgvp->ldvp = KMEM_ZALLOC( in nxge_ldgv_init_n2()
3071 ldvp = ldgvp->ldvp; in nxge_ldgv_init_n2()
3091 ptr->ldvp = NULL; in nxge_ldgv_init_n2()
3103 ldgp->ldvp = NULL; in nxge_ldgv_init_n2()
3115 ldvp->ldv = (uint8_t)ldv; in nxge_ldgv_init_n2()
3116 ldvp->is_mac = B_TRUE; in nxge_ldgv_init_n2()
3117 ldvp->ldv_intr_handler = nxge_mac_intr; in nxge_ldgv_init_n2()
3118 ldvp->ldv_ldf_masks = 0; in nxge_ldgv_init_n2()
3119 ldvp->nxgep = nxgep; in nxge_ldgv_init_n2()
[all …]
H A Dnxge_intr.c77 nxge_ldv_t *ldvp; in nxge_intr_add() local
92 ldvp = &nxge->ldgvp->ldvp[vector]; in nxge_intr_add()
93 group = ldvp->ldgp; in nxge_intr_add()
96 inthandler = group->ldvp->ldv_intr_handler; in nxge_intr_add()
108 inthandler, group->ldvp, nxge)) in nxge_intr_add()
168 nxge_ldv_t *ldvp; in nxge_intr_remove() local
183 ldvp = &nxge->ldgvp->ldvp[vector]; in nxge_intr_remove()
184 group = ldvp->ldgp; in nxge_intr_remove()
253 nxge_ldv_t *ldvp; in nxge_intr_vec_find() local
280 ldvp = &ldgvp->ldvp[vector]; in nxge_intr_vec_find()
[all …]
H A Dnxge_hw.c193 p_nxge_ldv_t ldvp = (p_nxge_ldv_t)arg1; in nxge_intr() local
205 VERIFY(ldvp != NULL); in nxge_intr()
208 if (arg2 == NULL || (void *) ldvp->nxgep != arg2) { in nxge_intr()
209 nxgep = ldvp->nxgep; in nxge_intr()
221 if (ldvp == NULL && ldgvp) { in nxge_intr()
222 t_ldvp = ldvp = ldgvp->ldvp; in nxge_intr()
224 if (ldvp) { in nxge_intr()
225 ldgp = t_ldgp = ldvp->ldgp; in nxge_intr()
228 "ldgvp $%p ldvp $%p ldgp $%p", ldgvp, ldvp, ldgp)); in nxge_intr()
229 if (ldgvp == NULL || ldvp == NULL || ldgp == NULL) { in nxge_intr()
[all …]
H A Dnxge_fzc.c154 p_nxge_ldv_t ldvp; in nxge_fzc_intr_ldg_num_set() local
166 ldvp = nxgep->ldgvp->ldvp; in nxge_fzc_intr_ldg_num_set()
167 if (ldgp == NULL || ldvp == NULL) { in nxge_fzc_intr_ldg_num_set()
179 for (j = 0; j < ldgp->nldvs; j++, ldvp++) { in nxge_fzc_intr_ldg_num_set()
180 rs = npi_fzc_ldg_num_set(handle, ldvp->ldv, in nxge_fzc_intr_ldg_num_set()
181 ldvp->ldg_assigned); in nxge_fzc_intr_ldg_num_set()
186 rs, ldvp->ldv, ldvp->ldg_assigned)); in nxge_fzc_intr_ldg_num_set()
192 ldvp->ldv, ldvp->ldg_assigned)); in nxge_fzc_intr_ldg_num_set()
H A Dnxge_txdma.c1128 p_nxge_ldv_t ldvp = (p_nxge_ldv_t)arg1; in nxge_tx_intr() local
1141 if (ldvp == NULL) { in nxge_tx_intr()
1144 nxgep, ldvp)); in nxge_tx_intr()
1148 if (arg2 == NULL || (void *)ldvp->nxgep != arg2) { in nxge_tx_intr()
1149 nxgep = ldvp->nxgep; in nxge_tx_intr()
1153 nxgep, ldvp)); in nxge_tx_intr()
1168 channel = ldvp->channel; in nxge_tx_intr()
1169 ldgp = ldvp->ldgp; in nxge_tx_intr()
1173 nxgep, ldvp, channel)); in nxge_tx_intr()
1176 vindex = ldvp->vdma_index; in nxge_tx_intr()
[all …]
H A Dnxge_rxdma.c1742 p_nxge_ldv_t ldvp = (p_nxge_ldv_t)arg1; in nxge_rx_intr() local
1751 if (ldvp == NULL) { in nxge_rx_intr()
1754 nxgep, ldvp)); in nxge_rx_intr()
1758 if (arg2 == NULL || (void *)ldvp->nxgep != arg2) { in nxge_rx_intr()
1759 nxgep = ldvp->nxgep; in nxge_rx_intr()
1771 nxgep, ldvp)); in nxge_rx_intr()
1781 rcrp = nxgep->rx_rcr_rings->rcr_rings[ldvp->vdma_index]; in nxge_rx_intr()
1796 channel = ldvp->channel; in nxge_rx_intr()
1797 ldgp = ldvp->ldgp; in nxge_rx_intr()
1837 ASSERT(rcrp->ldvp == ldvp); in nxge_rx_intr()
[all …]
H A Dnxge_main.c5574 if ((nxgep->ldgvp->ldvp[i].is_rxdma) && in nxge_rx_ring_start()
5575 (nxgep->ldgvp->ldvp[i].channel == channel)) { in nxge_rx_ring_start()
5576 ring->ldvp = &nxgep->ldgvp->ldvp[i]; in nxge_rx_ring_start()
5577 ring->ldgp = nxgep->ldgvp->ldvp[i].ldgp; in nxge_rx_ring_start()
5604 ring->ldvp = NULL; in nxge_rx_ring_stop()
5628 if ((nxgep->ldgvp->ldvp[i].is_txdma) && in nxge_ring_get_htable_idx()
5629 (nxgep->ldgvp->ldvp[i].channel == channel)) { in nxge_ring_get_htable_idx()
5631 nxgep->ldgvp->ldvp[i].ldgp->htable_idx); in nxge_ring_get_htable_idx()
5638 if ((nxgep->ldgvp->ldvp[i].is_rxdma) && in nxge_ring_get_htable_idx()
5639 (nxgep->ldgvp->ldvp[i].channel == channel)) { in nxge_ring_get_htable_idx()
[all …]
H A Dnxge_mac.c6748 p_nxge_ldv_t ldvp = (p_nxge_ldv_t)arg1; in nxge_mif_intr() local
6756 if (arg2 == NULL || (void *)ldvp->nxgep != arg2) { in nxge_mif_intr()
6757 nxgep = ldvp->nxgep; in nxge_mif_intr()
6759 nxgep = ldvp->nxgep; in nxge_mif_intr()
6776 p_nxge_ldv_t ldvp = (p_nxge_ldv_t)arg1; in nxge_mac_intr() local
6784 if (arg2 == NULL || (void *)ldvp->nxgep != arg2) { in nxge_mac_intr()
6785 nxgep = ldvp->nxgep; in nxge_mac_intr()
6788 ldgp = ldvp->ldgp; in nxge_mac_intr()
H A Dnxge_hio.c2591 device = &control->ldvp[dc->ldg.ldsv]; in nxge_hio_rxdma_bind_intr()
2595 ring->ldvp = device; in nxge_hio_rxdma_bind_intr()
/illumos-gate/usr/src/uts/common/sys/nxge/
H A Dnxge_rxdma.h245 p_nxge_ldv_t ldvp; member
H A Dnxge.h505 p_nxge_ldv_t ldvp; member
H A Dnxge_impl.h641 p_nxge_ldv_t ldvp; member