Lines Matching refs:pUM
364 void * pUM; /* backpointer to um_device_t */ member
401 void * pUM; /* backpointer to um_device_t for free routine */ member
413 void * pUM; /* backpointer to um_device_t */ member
440 void * pUM; /* backpointer to um_device_t */ member
449 void * pUM; /* reference back to um_device_t */ member
516 void * pUM; member
543 #define CLIENT_DEVI(pUM, client) \ argument
544 ((pUM)->clientState[(client)] & CLIENT_FLG_DEVI)
546 #define CLIENT_HW(pUM, client) \ argument
547 ((pUM)->clientState[(client)] & CLIENT_FLG_HW)
549 #define CLIENT_BOUND(pUM, client) \ argument
551 ((pUM)->clientState[(client)] & CLIENT_FLG_HW) : \
552 ((pUM)->clientState[(client)] & CLIENT_FLG_BIND))
554 #define CLIENT_DEVI_SET(pUM, client) \ argument
555 ((pUM)->clientState[(client)] |= CLIENT_FLG_DEVI)
557 #define CLIENT_DEVI_RESET(pUM, client) \ argument
558 ((pUM)->clientState[(client)] &= ~CLIENT_FLG_DEVI)
560 #define CLIENT_BIND_SET(pUM, client) \ argument
561 ((pUM)->clientState[(client)] |= CLIENT_FLG_BIND)
563 #define CLIENT_BIND_RESET(pUM, client) \ argument
564 ((pUM)->clientState[(client)] &= ~CLIENT_FLG_BIND)
566 #define CLIENT_HW_SET(pUM, client) \ argument
567 ((pUM)->clientState[(client)] |= CLIENT_FLG_HW)
569 #define CLIENT_HW_RESET(pUM, client) \ argument
570 ((pUM)->clientState[(client)] &= ~CLIENT_FLG_HW)
735 void BnxeCfgInit(um_device_t * pUM);
736 void BnxeCfgReset(um_device_t * pUM);
739 void BnxeInitBdCnts(um_device_t * pUM,
743 boolean_t BnxeGldInit(um_device_t * pUM);
744 boolean_t BnxeGldFini(um_device_t * pUM);
745 void BnxeGldLink(um_device_t * pUM,
749 boolean_t BnxeEstablishHwConn(um_device_t * pUM,
751 int BnxeHwStartFCOE(um_device_t * pUM);
752 int BnxeHwStartL2(um_device_t * pUM);
753 int BnxeHwStartCore(um_device_t * pUM);
754 void BnxeHwStopFCOE(um_device_t * pUM);
755 void BnxeHwStopL2(um_device_t * pUM);
756 void BnxeHwStopCore(um_device_t * pUM);
757 void BnxeUpdatePhy(um_device_t * pUM);
758 int BnxeMacAddress(um_device_t * pUM,
762 int BnxeMulticast(um_device_t * pUM,
767 int BnxeRxMask(um_device_t * pUM,
770 int BnxeHwResume(um_device_t * pUM);
771 int BnxeHwSuspend(um_device_t * pUM);
773 int BnxeHwQuiesce(um_device_t * pUM);
777 void BnxeIntrIguSbEnable(um_device_t * pUM,
780 void BnxeIntrIguSbDisable(um_device_t * pUM,
783 void BnxePollRxRing(um_device_t * pUM,
787 void BnxePollRxRingFCOE(um_device_t * pUM);
788 int BnxeIntrEnable(um_device_t * pUM);
789 void BnxeIntrDisable(um_device_t * pUM);
790 boolean_t BnxeIntrInit(um_device_t * pUM);
791 void BnxeIntrFini(um_device_t * pUM);
794 boolean_t BnxeKstatInit(um_device_t * pUM);
795 void BnxeKstatFini(um_device_t * pUM);
798 int BnxeRouteTxRing(um_device_t * pUM,
802 boolean_t BnxeWaitForPacketsFromClient(um_device_t * pUM,
804 mblk_t * BnxeRxRingProcess(um_device_t * pUM,
808 void BnxeRxPktsAbort(um_device_t * pUM,
810 int BnxeRxPktsInitPostBuffers(um_device_t * pUM,
812 int BnxeRxPktsInit(um_device_t * pUM,
814 void BnxeRxPktsFini(um_device_t * pUM,
818 void BnxeTxPktsReclaim(um_device_t * pUM,
821 void BnxeTxRingProcess(um_device_t * pUM,
823 int BnxeTxSendMblk(um_device_t * pUM,
828 void BnxeTxPktsAbort(um_device_t * pUM,
830 int BnxeTxPktsInit(um_device_t * pUM,
832 void BnxeTxPktsFini(um_device_t * pUM,
836 void BnxeTimerStart(um_device_t * pUM);
837 void BnxeTimerStop(um_device_t * pUM);
840 boolean_t BnxeWorkQueueInit(um_device_t * pUM);
841 void BnxeWorkQueueWaitAndDestroy(um_device_t * pUM);
842 void BnxeWorkQueueStartPending(um_device_t * pUM);
843 boolean_t BnxeWorkQueueAdd(um_device_t * pUM,
847 boolean_t BnxeWorkQueueAddNoCopy(um_device_t * pUM,
850 boolean_t BnxeWorkQueueAddGeneric(um_device_t * pUM,
852 boolean_t BnxeWorkQueueAddDelay(um_device_t * pUM,
857 boolean_t BnxeWorkQueueAddDelayNoCopy(um_device_t * pUM,
861 boolean_t BnxeWorkQueueAddDelayGeneric(um_device_t * pUM,
866 boolean_t BnxeFcoeInitCqe(um_device_t * pUM,
868 boolean_t BnxeFcoeOffloadConnCqe(um_device_t * pUM,
871 boolean_t BnxeFcoeEnableConnCqe(um_device_t * pUM,
874 boolean_t BnxeFcoeDisableConnCqe(um_device_t * pUM,
877 boolean_t BnxeFcoeDestroyConnCqe(um_device_t * pUM,
880 boolean_t BnxeFcoeDestroyCqe(um_device_t * pUM,
882 boolean_t BnxeFcoeStatCqe(um_device_t * pUM,
884 boolean_t BnxeFcoeCompRequestCqe(um_device_t * pUM,
907 int BnxeFcoeInit(um_device_t * pUM);
908 int BnxeFcoeFini(um_device_t * pUM);
909 void BnxeFcoeStartStop(um_device_t * pUM);
914 boolean_t BnxeProtoSupport(um_device_t * pUM, int proto);
915 boolean_t BnxeProtoFcoeAfex(um_device_t * pUM);
918 void BnxeFmErrorReport(um_device_t * pUM, char * detail);
934 #define BNXE_LOCK_ENTER_INTR(pUM, idx) mutex_enter(&(pUM)->intrMutex[(idx)]) argument
935 #define BNXE_LOCK_EXIT_INTR(pUM, idx) mutex_exit(&(pUM)->intrMutex[(idx)]) argument
936 #define BNXE_LOCK_ENTER_INTR_FLIP(pUM, idx) mutex_enter(&(pUM)->intrFlipMutex[(idx)]) argument
937 #define BNXE_LOCK_EXIT_INTR_FLIP(pUM, idx) mutex_exit(&(pUM)->intrFlipMutex[(idx)]) argument
938 #define BNXE_LOCK_ENTER_TX(pUM, idx) mutex_enter(&(pUM)->txq[(idx)].txMutex) argument
939 #define BNXE_LOCK_EXIT_TX(pUM, idx) mutex_exit(&(pUM)->txq[(idx)].txMutex) argument
940 #define BNXE_LOCK_ENTER_FREETX(pUM, idx) mutex_enter(&(pUM)->txq[(idx)].freeTxDescMutex) argument
941 #define BNXE_LOCK_EXIT_FREETX(pUM, idx) mutex_exit(&(pUM)->txq[(idx)].freeTxDescMutex) argument
942 #define BNXE_LOCK_ENTER_RX(pUM, idx) mutex_enter(&(pUM)->rxq[(idx)].rxMutex) argument
943 #define BNXE_LOCK_EXIT_RX(pUM, idx) mutex_exit(&(pUM)->rxq[(idx)].rxMutex) argument
944 #define BNXE_LOCK_ENTER_DONERX(pUM, idx) mutex_enter(&(pUM)->rxq[(idx)].doneRxMutex) argument
945 #define BNXE_LOCK_EXIT_DONERX(pUM, idx) mutex_exit(&(pUM)->rxq[(idx)].doneRxMutex) argument
946 #define BNXE_LOCK_ENTER_SB(pUM, idx) mutex_enter(&(pUM)->sbMutex[(idx)]) argument
947 #define BNXE_LOCK_EXIT_SB(pUM, idx) mutex_exit(&(pUM)->sbMutex[(idx)]) argument
948 #define BNXE_LOCK_ENTER_ETH_CON(pUM) mutex_enter(&(pUM)->ethConMutex) argument
949 #define BNXE_LOCK_EXIT_ETH_CON(pUM) mutex_exit(&(pUM)->ethConMutex) argument
950 #define BNXE_LOCK_ENTER_MCP(pUM) mutex_enter(&(pUM)->mcpMutex) argument
951 #define BNXE_LOCK_EXIT_MCP(pUM) mutex_exit(&(pUM)->mcpMutex) argument
952 #define BNXE_LOCK_ENTER_PHY(pUM) mutex_enter(&(pUM)->phyMutex) argument
953 #define BNXE_LOCK_EXIT_PHY(pUM) mutex_exit(&(pUM)->phyMutex) argument
954 #define BNXE_LOCK_ENTER_IND(pUM) mutex_enter(&(pUM)->indMutex) argument
955 #define BNXE_LOCK_EXIT_IND(pUM) mutex_exit(&(pUM)->indMutex) argument
956 #define BNXE_LOCK_ENTER_CID(pUM) mutex_enter(&(pUM)->cidMutex) argument
957 #define BNXE_LOCK_EXIT_CID(pUM) mutex_exit(&(pUM)->cidMutex) argument
958 #define BNXE_LOCK_ENTER_SPQ(pUM) mutex_enter(&(pUM)->spqMutex) argument
959 #define BNXE_LOCK_EXIT_SPQ(pUM) mutex_exit(&(pUM)->spqMutex) argument
960 #define BNXE_LOCK_ENTER_SPREQ(pUM) mutex_enter(&(pUM)->spReqMutex) argument
961 #define BNXE_LOCK_EXIT_SPREQ(pUM) mutex_exit(&(pUM)->spReqMutex) argument
962 #define BNXE_LOCK_ENTER_RRREQ(pUM) mutex_enter(&(pUM)->rrReqMutex) argument
963 #define BNXE_LOCK_EXIT_RRREQ(pUM) mutex_exit(&(pUM)->rrReqMutex) argument
964 #define BNXE_LOCK_ENTER_ISLES_CONTROL(pUM) mutex_enter(&(pUM)->islesCtrlMutex) argument
965 #define BNXE_LOCK_EXIT_ISLES_CONTROL(pUM) mutex_exit(&(pUM)->islesCtrlMutex) argument
966 #define BNXE_LOCK_ENTER_TOE(pUM) mutex_enter(&(pUM)->toeMutex) argument
967 #define BNXE_LOCK_EXIT_TOE(pUM) mutex_exit(&(pUM)->toeMutex) argument
968 #define BNXE_LOCK_ENTER_MEM(pUM) mutex_enter(&(pUM)->memMutex) argument
969 #define BNXE_LOCK_EXIT_MEM(pUM) mutex_exit(&(pUM)->memMutex) argument
970 #define BNXE_LOCK_ENTER_OFFLOAD(pUM) mutex_enter(&(pUM)->offloadMutex) argument
971 #define BNXE_LOCK_EXIT_OFFLOAD(pUM) mutex_exit(&(pUM)->offloadMutex) argument
972 #define BNXE_LOCK_ENTER_HWINIT(pUM) mutex_enter(&(pUM)->hwInitMutex) argument
973 #define BNXE_LOCK_EXIT_HWINIT(pUM) mutex_exit(&(pUM)->hwInitMutex) argument
974 #define BNXE_LOCK_ENTER_GLD(pUM) mutex_enter(&(pUM)->gldMutex) argument
975 #define BNXE_LOCK_EXIT_GLD(pUM) mutex_exit(&(pUM)->gldMutex) argument
976 #define BNXE_LOCK_ENTER_GLDTX(pUM, rw) rw_enter(&(pUM)->gldTxMutex, (rw)) argument
977 #define BNXE_LOCK_EXIT_GLDTX(pUM) rw_exit(&(pUM)->gldTxMutex) argument
978 #define BNXE_LOCK_ENTER_TIMER(pUM) mutex_enter(&(pUM)->timerMutex) argument
979 #define BNXE_LOCK_EXIT_TIMER(pUM) mutex_exit(&(pUM)->timerMutex) argument
980 #define BNXE_LOCK_ENTER_STATS(pUM) mutex_enter(&(pUM)->kstatMutex) argument
981 #define BNXE_LOCK_EXIT_STATS(pUM) mutex_exit(&(pUM)->kstatMutex) argument
985 void BNXE_LOCK_ENTER_INTR(um_device_t * pUM, int idx);
986 void BNXE_LOCK_EXIT_INTR(um_device_t * pUM, int idx);
987 void BNXE_LOCK_ENTER_INTR_FLIP(um_device_t * pUM, int idx);
988 void BNXE_LOCK_EXIT_INTR_FLIP(um_device_t * pUM, int idx);
989 void BNXE_LOCK_ENTER_TX(um_device_t * pUM, int idx);
990 void BNXE_LOCK_EXIT_TX(um_device_t * pUM, int idx);
991 void BNXE_LOCK_ENTER_FREETX(um_device_t * pUM, int idx);
992 void BNXE_LOCK_EXIT_FREETX(um_device_t * pUM, int idx);
993 void BNXE_LOCK_ENTER_RX(um_device_t * pUM, int idx);
994 void BNXE_LOCK_EXIT_RX(um_device_t * pUM, int idx);
995 void BNXE_LOCK_ENTER_DONERX(um_device_t * pUM, int idx);
996 void BNXE_LOCK_EXIT_DONERX(um_device_t * pUM, int idx);
997 void BNXE_LOCK_ENTER_SB(um_device_t * pUM, int idx);
998 void BNXE_LOCK_EXIT_SB(um_device_t * pUM, int idx);
999 void BNXE_LOCK_ENTER_ETH_CON(um_device_t * pUM);
1000 void BNXE_LOCK_EXIT_ETH_CON(um_device_t * pUM);
1001 void BNXE_LOCK_ENTER_MCP(um_device_t * pUM);
1002 void BNXE_LOCK_EXIT_MCP(um_device_t * pUM);
1003 void BNXE_LOCK_ENTER_PHY(um_device_t * pUM);
1004 void BNXE_LOCK_EXIT_PHY(um_device_t * pUM);
1005 void BNXE_LOCK_ENTER_IND(um_device_t * pUM);
1006 void BNXE_LOCK_EXIT_IND(um_device_t * pUM);
1007 void BNXE_LOCK_ENTER_CID(um_device_t * pUM);
1008 void BNXE_LOCK_EXIT_CID(um_device_t * pUM);
1009 void BNXE_LOCK_ENTER_SPQ(um_device_t * pUM);
1010 void BNXE_LOCK_EXIT_SPQ(um_device_t * pUM);
1011 void BNXE_LOCK_ENTER_SPREQ(um_device_t * pUM);
1012 void BNXE_LOCK_EXIT_SPREQ(um_device_t * pUM);
1013 void BNXE_LOCK_ENTER_RRREQ(um_device_t * pUM);
1014 void BNXE_LOCK_EXIT_RRREQ(um_device_t * pUM);
1015 void BNXE_LOCK_ENTER_ISLES_CONTROL(um_device_t * pUM);
1016 void BNXE_LOCK_EXIT_ISLES_CONTROL(um_device_t * pUM);
1017 void BNXE_LOCK_ENTER_MEM(um_device_t * pUM);
1018 void BNXE_LOCK_EXIT_MEM(um_device_t * pUM);
1019 void BNXE_LOCK_ENTER_GLD(um_device_t * pUM);
1020 void BNXE_LOCK_EXIT_GLD(um_device_t * pUM);
1021 void BNXE_LOCK_ENTER_GLDTX(um_device_t * pUM, krw_t rw);
1022 void BNXE_LOCK_EXIT_GLDTX(um_device_t * pUM);
1023 void BNXE_LOCK_ENTER_TIMER(um_device_t * pUM);
1024 void BNXE_LOCK_EXIT_TIMER(um_device_t * pUM);
1025 void BNXE_LOCK_ENTER_STATS(um_device_t * pUM);
1026 void BNXE_LOCK_EXIT_STATS(um_device_t * pUM);
1035 void BnxeDumpMem(um_device_t * pUM,
1039 void BnxeDumpPkt(um_device_t * pUM,
1046 inline boolean_t BnxeIsClientBound(um_device_t * pUM) in BnxeIsClientBound() argument
1048 return (CLIENT_HW(pUM, LM_CLI_IDX_NDIS) || in BnxeIsClientBound()
1049 CLIENT_BOUND(pUM, LM_CLI_IDX_FCOE)); in BnxeIsClientBound()
1052 inline char * BnxeClientsHw(um_device_t * pUM) in BnxeClientsHw() argument
1054 if (CLIENT_HW(pUM, LM_CLI_IDX_NDIS) && in BnxeClientsHw()
1055 CLIENT_HW(pUM, LM_CLI_IDX_FCOE)) { return "L2,FCoE"; } in BnxeClientsHw()
1056 else if (CLIENT_HW(pUM, LM_CLI_IDX_NDIS)) { return "L2"; } in BnxeClientsHw()
1057 else if (CLIENT_HW(pUM, LM_CLI_IDX_FCOE)) { return "FCoE"; } in BnxeClientsHw()
1061 inline char * BnxeClientsDevi(um_device_t * pUM) in BnxeClientsDevi() argument
1063 if (CLIENT_DEVI(pUM, LM_CLI_IDX_FCOE)) { return "FCoE"; } in BnxeClientsDevi()
1067 inline char * BnxeClientsBound(um_device_t * pUM) in BnxeClientsBound() argument
1069 if (CLIENT_HW(pUM, LM_CLI_IDX_NDIS) && in BnxeClientsBound()
1070 CLIENT_BOUND(pUM, LM_CLI_IDX_FCOE)) { return "L2,FCoE"; } in BnxeClientsBound()
1071 else if (CLIENT_HW(pUM, LM_CLI_IDX_NDIS)) { return "L2"; } in BnxeClientsBound()
1072 else if (CLIENT_BOUND(pUM, LM_CLI_IDX_FCOE)) { return "FCoE"; } in BnxeClientsBound()