Lines Matching refs:pUM
363 void * pUM; /* backpointer to um_device_t */ member
400 void * pUM; /* backpointer to um_device_t for free routine */ member
412 void * pUM; /* backpointer to um_device_t */ member
439 void * pUM; /* backpointer to um_device_t */ member
448 void * pUM; /* reference back to um_device_t */ member
515 void * pUM; member
542 #define CLIENT_DEVI(pUM, client) \ argument
543 ((pUM)->clientState[(client)] & CLIENT_FLG_DEVI)
545 #define CLIENT_HW(pUM, client) \ argument
546 ((pUM)->clientState[(client)] & CLIENT_FLG_HW)
548 #define CLIENT_BOUND(pUM, client) \ argument
550 ((pUM)->clientState[(client)] & CLIENT_FLG_HW) : \
551 ((pUM)->clientState[(client)] & CLIENT_FLG_BIND))
553 #define CLIENT_DEVI_SET(pUM, client) \ argument
554 ((pUM)->clientState[(client)] |= CLIENT_FLG_DEVI)
556 #define CLIENT_DEVI_RESET(pUM, client) \ argument
557 ((pUM)->clientState[(client)] &= ~CLIENT_FLG_DEVI)
559 #define CLIENT_BIND_SET(pUM, client) \ argument
560 ((pUM)->clientState[(client)] |= CLIENT_FLG_BIND)
562 #define CLIENT_BIND_RESET(pUM, client) \ argument
563 ((pUM)->clientState[(client)] &= ~CLIENT_FLG_BIND)
565 #define CLIENT_HW_SET(pUM, client) \ argument
566 ((pUM)->clientState[(client)] |= CLIENT_FLG_HW)
568 #define CLIENT_HW_RESET(pUM, client) \ argument
569 ((pUM)->clientState[(client)] &= ~CLIENT_FLG_HW)
734 void BnxeCfgInit(um_device_t * pUM);
735 void BnxeCfgReset(um_device_t * pUM);
738 void BnxeInitBdCnts(um_device_t * pUM,
742 boolean_t BnxeGldInit(um_device_t * pUM);
743 boolean_t BnxeGldFini(um_device_t * pUM);
744 void BnxeGldLink(um_device_t * pUM,
748 boolean_t BnxeEstablishHwConn(um_device_t * pUM,
750 int BnxeHwStartFCOE(um_device_t * pUM);
751 int BnxeHwStartL2(um_device_t * pUM);
752 int BnxeHwStartCore(um_device_t * pUM);
753 void BnxeHwStopFCOE(um_device_t * pUM);
754 void BnxeHwStopL2(um_device_t * pUM);
755 void BnxeHwStopCore(um_device_t * pUM);
756 void BnxeUpdatePhy(um_device_t * pUM);
757 int BnxeMacAddress(um_device_t * pUM,
761 int BnxeMulticast(um_device_t * pUM,
766 int BnxeRxMask(um_device_t * pUM,
769 int BnxeHwResume(um_device_t * pUM);
770 int BnxeHwSuspend(um_device_t * pUM);
772 int BnxeHwQuiesce(um_device_t * pUM);
776 void BnxeIntrIguSbEnable(um_device_t * pUM,
779 void BnxeIntrIguSbDisable(um_device_t * pUM,
782 void BnxePollRxRing(um_device_t * pUM,
786 void BnxePollRxRingFCOE(um_device_t * pUM);
787 int BnxeIntrEnable(um_device_t * pUM);
788 void BnxeIntrDisable(um_device_t * pUM);
789 boolean_t BnxeIntrInit(um_device_t * pUM);
790 void BnxeIntrFini(um_device_t * pUM);
793 boolean_t BnxeKstatInit(um_device_t * pUM);
794 void BnxeKstatFini(um_device_t * pUM);
797 int BnxeRouteTxRing(um_device_t * pUM,
801 boolean_t BnxeWaitForPacketsFromClient(um_device_t * pUM,
803 mblk_t * BnxeRxRingProcess(um_device_t * pUM,
807 void BnxeRxPktsAbort(um_device_t * pUM,
809 int BnxeRxPktsInitPostBuffers(um_device_t * pUM,
811 int BnxeRxPktsInit(um_device_t * pUM,
813 void BnxeRxPktsFini(um_device_t * pUM,
817 void BnxeTxPktsReclaim(um_device_t * pUM,
820 void BnxeTxRingProcess(um_device_t * pUM,
822 int BnxeTxSendMblk(um_device_t * pUM,
827 void BnxeTxPktsAbort(um_device_t * pUM,
829 int BnxeTxPktsInit(um_device_t * pUM,
831 void BnxeTxPktsFini(um_device_t * pUM,
835 void BnxeTimerStart(um_device_t * pUM);
836 void BnxeTimerStop(um_device_t * pUM);
839 boolean_t BnxeWorkQueueInit(um_device_t * pUM);
840 void BnxeWorkQueueWaitAndDestroy(um_device_t * pUM);
841 void BnxeWorkQueueStartPending(um_device_t * pUM);
842 boolean_t BnxeWorkQueueAdd(um_device_t * pUM,
846 boolean_t BnxeWorkQueueAddNoCopy(um_device_t * pUM,
849 boolean_t BnxeWorkQueueAddGeneric(um_device_t * pUM,
851 boolean_t BnxeWorkQueueAddDelay(um_device_t * pUM,
856 boolean_t BnxeWorkQueueAddDelayNoCopy(um_device_t * pUM,
860 boolean_t BnxeWorkQueueAddDelayGeneric(um_device_t * pUM,
865 boolean_t BnxeFcoeInitCqe(um_device_t * pUM,
867 boolean_t BnxeFcoeOffloadConnCqe(um_device_t * pUM,
870 boolean_t BnxeFcoeEnableConnCqe(um_device_t * pUM,
873 boolean_t BnxeFcoeDisableConnCqe(um_device_t * pUM,
876 boolean_t BnxeFcoeDestroyConnCqe(um_device_t * pUM,
879 boolean_t BnxeFcoeDestroyCqe(um_device_t * pUM,
881 boolean_t BnxeFcoeStatCqe(um_device_t * pUM,
883 boolean_t BnxeFcoeCompRequestCqe(um_device_t * pUM,
906 int BnxeFcoeInit(um_device_t * pUM);
907 int BnxeFcoeFini(um_device_t * pUM);
908 void BnxeFcoeStartStop(um_device_t * pUM);
913 boolean_t BnxeProtoSupport(um_device_t * pUM, int proto);
914 boolean_t BnxeProtoFcoeAfex(um_device_t * pUM);
917 void BnxeFmErrorReport(um_device_t * pUM, char * detail);
929 #define BNXE_LOCK_ENTER_INTR(pUM, idx) mutex_enter(&(pUM)->intrMutex[(idx)]) argument
930 #define BNXE_LOCK_EXIT_INTR(pUM, idx) mutex_exit(&(pUM)->intrMutex[(idx)]) argument
931 #define BNXE_LOCK_ENTER_INTR_FLIP(pUM, idx) mutex_enter(&(pUM)->intrFlipMutex[(idx)]) argument
932 #define BNXE_LOCK_EXIT_INTR_FLIP(pUM, idx) mutex_exit(&(pUM)->intrFlipMutex[(idx)]) argument
933 #define BNXE_LOCK_ENTER_TX(pUM, idx) mutex_enter(&(pUM)->txq[(idx)].txMutex) argument
934 #define BNXE_LOCK_EXIT_TX(pUM, idx) mutex_exit(&(pUM)->txq[(idx)].txMutex) argument
935 #define BNXE_LOCK_ENTER_FREETX(pUM, idx) mutex_enter(&(pUM)->txq[(idx)].freeTxDescMutex) argument
936 #define BNXE_LOCK_EXIT_FREETX(pUM, idx) mutex_exit(&(pUM)->txq[(idx)].freeTxDescMutex) argument
937 #define BNXE_LOCK_ENTER_RX(pUM, idx) mutex_enter(&(pUM)->rxq[(idx)].rxMutex) argument
938 #define BNXE_LOCK_EXIT_RX(pUM, idx) mutex_exit(&(pUM)->rxq[(idx)].rxMutex) argument
939 #define BNXE_LOCK_ENTER_DONERX(pUM, idx) mutex_enter(&(pUM)->rxq[(idx)].doneRxMutex) argument
940 #define BNXE_LOCK_EXIT_DONERX(pUM, idx) mutex_exit(&(pUM)->rxq[(idx)].doneRxMutex) argument
941 #define BNXE_LOCK_ENTER_SB(pUM, idx) mutex_enter(&(pUM)->sbMutex[(idx)]) argument
942 #define BNXE_LOCK_EXIT_SB(pUM, idx) mutex_exit(&(pUM)->sbMutex[(idx)]) argument
943 #define BNXE_LOCK_ENTER_ETH_CON(pUM) mutex_enter(&(pUM)->ethConMutex) argument
944 #define BNXE_LOCK_EXIT_ETH_CON(pUM) mutex_exit(&(pUM)->ethConMutex) argument
945 #define BNXE_LOCK_ENTER_MCP(pUM) mutex_enter(&(pUM)->mcpMutex) argument
946 #define BNXE_LOCK_EXIT_MCP(pUM) mutex_exit(&(pUM)->mcpMutex) argument
947 #define BNXE_LOCK_ENTER_PHY(pUM) mutex_enter(&(pUM)->phyMutex) argument
948 #define BNXE_LOCK_EXIT_PHY(pUM) mutex_exit(&(pUM)->phyMutex) argument
949 #define BNXE_LOCK_ENTER_IND(pUM) mutex_enter(&(pUM)->indMutex) argument
950 #define BNXE_LOCK_EXIT_IND(pUM) mutex_exit(&(pUM)->indMutex) argument
951 #define BNXE_LOCK_ENTER_CID(pUM) mutex_enter(&(pUM)->cidMutex) argument
952 #define BNXE_LOCK_EXIT_CID(pUM) mutex_exit(&(pUM)->cidMutex) argument
953 #define BNXE_LOCK_ENTER_SPQ(pUM) mutex_enter(&(pUM)->spqMutex) argument
954 #define BNXE_LOCK_EXIT_SPQ(pUM) mutex_exit(&(pUM)->spqMutex) argument
955 #define BNXE_LOCK_ENTER_SPREQ(pUM) mutex_enter(&(pUM)->spReqMutex) argument
956 #define BNXE_LOCK_EXIT_SPREQ(pUM) mutex_exit(&(pUM)->spReqMutex) argument
957 #define BNXE_LOCK_ENTER_RRREQ(pUM) mutex_enter(&(pUM)->rrReqMutex) argument
958 #define BNXE_LOCK_EXIT_RRREQ(pUM) mutex_exit(&(pUM)->rrReqMutex) argument
959 #define BNXE_LOCK_ENTER_ISLES_CONTROL(pUM) mutex_enter(&(pUM)->islesCtrlMutex) argument
960 #define BNXE_LOCK_EXIT_ISLES_CONTROL(pUM) mutex_exit(&(pUM)->islesCtrlMutex) argument
961 #define BNXE_LOCK_ENTER_TOE(pUM) mutex_enter(&(pUM)->toeMutex) argument
962 #define BNXE_LOCK_EXIT_TOE(pUM) mutex_exit(&(pUM)->toeMutex) argument
963 #define BNXE_LOCK_ENTER_MEM(pUM) mutex_enter(&(pUM)->memMutex) argument
964 #define BNXE_LOCK_EXIT_MEM(pUM) mutex_exit(&(pUM)->memMutex) argument
965 #define BNXE_LOCK_ENTER_OFFLOAD(pUM) mutex_enter(&(pUM)->offloadMutex) argument
966 #define BNXE_LOCK_EXIT_OFFLOAD(pUM) mutex_exit(&(pUM)->offloadMutex) argument
967 #define BNXE_LOCK_ENTER_HWINIT(pUM) mutex_enter(&(pUM)->hwInitMutex) argument
968 #define BNXE_LOCK_EXIT_HWINIT(pUM) mutex_exit(&(pUM)->hwInitMutex) argument
969 #define BNXE_LOCK_ENTER_GLD(pUM) mutex_enter(&(pUM)->gldMutex) argument
970 #define BNXE_LOCK_EXIT_GLD(pUM) mutex_exit(&(pUM)->gldMutex) argument
971 #define BNXE_LOCK_ENTER_GLDTX(pUM, rw) rw_enter(&(pUM)->gldTxMutex, (rw)) argument
972 #define BNXE_LOCK_EXIT_GLDTX(pUM) rw_exit(&(pUM)->gldTxMutex) argument
973 #define BNXE_LOCK_ENTER_TIMER(pUM) mutex_enter(&(pUM)->timerMutex) argument
974 #define BNXE_LOCK_EXIT_TIMER(pUM) mutex_exit(&(pUM)->timerMutex) argument
975 #define BNXE_LOCK_ENTER_STATS(pUM) mutex_enter(&(pUM)->kstatMutex) argument
976 #define BNXE_LOCK_EXIT_STATS(pUM) mutex_exit(&(pUM)->kstatMutex) argument
980 void BNXE_LOCK_ENTER_INTR(um_device_t * pUM, int idx);
981 void BNXE_LOCK_EXIT_INTR(um_device_t * pUM, int idx);
982 void BNXE_LOCK_ENTER_INTR_FLIP(um_device_t * pUM, int idx);
983 void BNXE_LOCK_EXIT_INTR_FLIP(um_device_t * pUM, int idx);
984 void BNXE_LOCK_ENTER_TX(um_device_t * pUM, int idx);
985 void BNXE_LOCK_EXIT_TX(um_device_t * pUM, int idx);
986 void BNXE_LOCK_ENTER_FREETX(um_device_t * pUM, int idx);
987 void BNXE_LOCK_EXIT_FREETX(um_device_t * pUM, int idx);
988 void BNXE_LOCK_ENTER_RX(um_device_t * pUM, int idx);
989 void BNXE_LOCK_EXIT_RX(um_device_t * pUM, int idx);
990 void BNXE_LOCK_ENTER_DONERX(um_device_t * pUM, int idx);
991 void BNXE_LOCK_EXIT_DONERX(um_device_t * pUM, int idx);
992 void BNXE_LOCK_ENTER_SB(um_device_t * pUM, int idx);
993 void BNXE_LOCK_EXIT_SB(um_device_t * pUM, int idx);
994 void BNXE_LOCK_ENTER_ETH_CON(um_device_t * pUM);
995 void BNXE_LOCK_EXIT_ETH_CON(um_device_t * pUM);
996 void BNXE_LOCK_ENTER_MCP(um_device_t * pUM);
997 void BNXE_LOCK_EXIT_MCP(um_device_t * pUM);
998 void BNXE_LOCK_ENTER_PHY(um_device_t * pUM);
999 void BNXE_LOCK_EXIT_PHY(um_device_t * pUM);
1000 void BNXE_LOCK_ENTER_IND(um_device_t * pUM);
1001 void BNXE_LOCK_EXIT_IND(um_device_t * pUM);
1002 void BNXE_LOCK_ENTER_CID(um_device_t * pUM);
1003 void BNXE_LOCK_EXIT_CID(um_device_t * pUM);
1004 void BNXE_LOCK_ENTER_SPQ(um_device_t * pUM);
1005 void BNXE_LOCK_EXIT_SPQ(um_device_t * pUM);
1006 void BNXE_LOCK_ENTER_SPREQ(um_device_t * pUM);
1007 void BNXE_LOCK_EXIT_SPREQ(um_device_t * pUM);
1008 void BNXE_LOCK_ENTER_RRREQ(um_device_t * pUM);
1009 void BNXE_LOCK_EXIT_RRREQ(um_device_t * pUM);
1010 void BNXE_LOCK_ENTER_ISLES_CONTROL(um_device_t * pUM);
1011 void BNXE_LOCK_EXIT_ISLES_CONTROL(um_device_t * pUM);
1012 void BNXE_LOCK_ENTER_MEM(um_device_t * pUM);
1013 void BNXE_LOCK_EXIT_MEM(um_device_t * pUM);
1014 void BNXE_LOCK_ENTER_GLD(um_device_t * pUM);
1015 void BNXE_LOCK_EXIT_GLD(um_device_t * pUM);
1016 void BNXE_LOCK_ENTER_GLDTX(um_device_t * pUM, krw_t rw);
1017 void BNXE_LOCK_EXIT_GLDTX(um_device_t * pUM);
1018 void BNXE_LOCK_ENTER_TIMER(um_device_t * pUM);
1019 void BNXE_LOCK_EXIT_TIMER(um_device_t * pUM);
1020 void BNXE_LOCK_ENTER_STATS(um_device_t * pUM);
1021 void BNXE_LOCK_EXIT_STATS(um_device_t * pUM);
1030 void BnxeDumpMem(um_device_t * pUM,
1034 void BnxeDumpPkt(um_device_t * pUM,
1041 inline boolean_t BnxeIsClientBound(um_device_t * pUM) in BnxeIsClientBound() argument
1043 return (CLIENT_HW(pUM, LM_CLI_IDX_NDIS) || in BnxeIsClientBound()
1044 CLIENT_BOUND(pUM, LM_CLI_IDX_FCOE)); in BnxeIsClientBound()
1047 inline char * BnxeClientsHw(um_device_t * pUM) in BnxeClientsHw() argument
1049 if (CLIENT_HW(pUM, LM_CLI_IDX_NDIS) && in BnxeClientsHw()
1050 CLIENT_HW(pUM, LM_CLI_IDX_FCOE)) { return "L2,FCoE"; } in BnxeClientsHw()
1051 else if (CLIENT_HW(pUM, LM_CLI_IDX_NDIS)) { return "L2"; } in BnxeClientsHw()
1052 else if (CLIENT_HW(pUM, LM_CLI_IDX_FCOE)) { return "FCoE"; } in BnxeClientsHw()
1056 inline char * BnxeClientsDevi(um_device_t * pUM) in BnxeClientsDevi() argument
1058 if (CLIENT_DEVI(pUM, LM_CLI_IDX_FCOE)) { return "FCoE"; } in BnxeClientsDevi()
1062 inline char * BnxeClientsBound(um_device_t * pUM) in BnxeClientsBound() argument
1064 if (CLIENT_HW(pUM, LM_CLI_IDX_NDIS) && in BnxeClientsBound()
1065 CLIENT_BOUND(pUM, LM_CLI_IDX_FCOE)) { return "L2,FCoE"; } in BnxeClientsBound()
1066 else if (CLIENT_HW(pUM, LM_CLI_IDX_NDIS)) { return "L2"; } in BnxeClientsBound()
1067 else if (CLIENT_BOUND(pUM, LM_CLI_IDX_FCOE)) { return "FCoE"; } in BnxeClientsBound()