Lines Matching defs:ldvp

38 static void hxge_ldgv_setup(p_hxge_ldg_t *ldgp, p_hxge_ldv_t *ldvp, uint8_t ldv,
471 p_hxge_ldv_t ldvp;
514 ldvp = ldgvp->ldvp =
559 ldgp->ldvp = NULL;
567 ldvp->is_rxdma = B_TRUE;
568 ldvp->ldv = ldv;
573 ldvp->channel = channel++;
574 ldvp->vdma_index = i;
575 ldvp->ldv_intr_handler = hxge_rx_intr;
576 ldvp->ldv_ldf_masks = 0;
577 ldvp->use_timer = B_FALSE;
578 ldvp->hxgep = hxgep;
579 hxge_ldgv_setup(&ptr, &ldvp, ldv, endldg, nrequired_p);
590 ldvp->is_txdma = B_TRUE;
591 ldvp->ldv = ldv;
592 ldvp->channel = channel++;
593 ldvp->vdma_index = i;
594 ldvp->ldv_intr_handler = hxge_tx_intr;
595 ldvp->ldv_ldf_masks = 0;
596 ldvp->use_timer = B_FALSE;
597 ldvp->hxgep = hxgep;
598 hxge_ldgv_setup(&ptr, &ldvp, ldv, endldg, nrequired_p);
605 ldvp->is_vmac = B_TRUE;
606 ldvp->ldv_intr_handler = hxge_vmac_intr;
607 ldvp->ldv_ldf_masks = 0;
609 ldvp->ldv = ldv;
610 ldvp->use_timer = B_FALSE;
611 ldvp->hxgep = hxgep;
612 hxge_ldgv_setup(&ptr, &ldvp, ldv, endldg, nrequired_p);
622 ldvp->is_pfc = B_TRUE;
623 ldvp->ldv_intr_handler = hxge_pfc_intr;
624 ldvp->ldv_ldf_masks = 0;
626 ldvp->ldv = ldv;
627 ldvp->use_timer = B_FALSE;
628 ldvp->hxgep = hxgep;
629 hxge_ldgv_setup(&ptr, &ldvp, ldv, endldg, nrequired_p);
640 ldvp->ldv = ldv;
641 ldvp->is_syserr = B_TRUE;
642 ldvp->ldv_intr_handler = hxge_syserr_intr;
643 ldvp->ldv_ldf_masks = 0;
644 ldvp->hxgep = hxgep;
645 ldvp->use_timer = B_FALSE;
646 ldgvp->ldvp_syserr = ldvp;
661 (void) hxge_ldgv_setup(&ptr, &ldvp, ldv, endldg, nrequired_p);
689 if (ldgvp->ldvp) {
690 KMEM_FREE(ldgvp->ldvp, sizeof (hxge_ldv_t) * ldgvp->maxldvs);
726 p_hxge_ldv_t ldvp;
740 ldvp = ldgvp->ldvp;
741 if (ldgp == NULL || ldvp == NULL) {
743 "<== hxge_intr_mask_mgmt: Null ldgp or ldvp"));
756 for (j = 0; j < ldgp->nldvs; j++, ldvp++) {
759 "for ldg %d", ldvp->ldv, ldgp->ldg));
760 rs = hpi_intr_mask_set(handle, ldvp->ldv,
761 ldvp->ldv_ldf_masks);
766 rs, ldvp->ldv, ldvp->ldv_ldf_masks));
772 rs, ldvp->ldv, ldvp->ldv_ldf_masks));
803 p_hxge_ldv_t ldvp;
818 ldvp = ldgvp->ldvp;
819 if (ldgp == NULL || ldvp == NULL) {
821 "<== hxge_intr_mask_mgmt_set: Null ldgp or ldvp"));
830 for (j = 0; j < ldgp->nldvs; j++, ldvp++) {
835 ldvp->ldv_ldf_masks = 0;
840 ldvp->ldv_ldf_masks = (uint8_t)LD_IM_MASK;
845 rs = hpi_intr_mask_set(handle, ldvp->ldv,
846 ldvp->ldv_ldf_masks);
851 rs, ldvp->ldv, ldvp->ldv_ldf_masks));
857 on, ldvp->ldv, ldvp->ldv_ldf_masks));
907 hxge_ldgv_setup(p_hxge_ldg_t *ldgp, p_hxge_ldv_t *ldvp, uint8_t ldv,
912 (*ldvp)->ldg_assigned = (*ldgp)->ldg;
913 (*ldvp)->ldgp = *ldgp;
914 (*ldvp)->ldv = ldv;
917 "==> hxge_ldgv_setup: ldv %d endldg %d ldg %d, ldvp $%p",
918 ldv, endldg, (*ldgp)->ldg, (*ldgp)->ldvp));
922 if ((*ldgp)->ldvp == NULL) {
923 (*ldgp)->ldvp = *ldvp;
929 "==> hxge_ldgv_setup: ldvp $%p ngrps %d",
930 *ldvp, *ngrps));
931 ++*ldvp;
933 (*ldgp)->ldvp = *ldvp;
936 "ldv %d endldg %d ldg %d, ldvp $%p",
937 ldv, endldg, (*ldgp)->ldg, (*ldgp)->ldvp));
938 ++*ldvp;
945 "ldg %d nldvs %d ldv %d ldvp $%p endldg %d ngrps %d",
946 (*ldgp)->ldg, (*ldgp)->nldvs, ldv, ldvp, endldg, *ngrps));