Lines Matching refs:msgbuf

322 				   u32 *msgbuf, u32 vf)  in ixgbe_set_vf_multicasts()  argument
324 int entries = (msgbuf[0] & IXGBE_VT_MSGINFO_MASK) in ixgbe_set_vf_multicasts()
326 u16 *hash_list = (u16 *)&msgbuf[1]; in ixgbe_set_vf_multicasts()
410 static s32 ixgbe_set_vf_lpe(struct ixgbe_adapter *adapter, u32 *msgbuf, u32 vf) in ixgbe_set_vf_lpe() argument
413 int max_frame = msgbuf[1]; in ixgbe_set_vf_lpe()
657 u32 msgbuf[4] = {0, 0, 0, 0}; in ixgbe_vf_reset_msg() local
658 u8 *addr = (u8 *)(&msgbuf[1]); in ixgbe_vf_reset_msg()
722 msgbuf[0] = IXGBE_VF_RESET; in ixgbe_vf_reset_msg()
724 msgbuf[0] |= IXGBE_VT_MSGTYPE_ACK; in ixgbe_vf_reset_msg()
727 msgbuf[0] |= IXGBE_VT_MSGTYPE_NACK; in ixgbe_vf_reset_msg()
737 msgbuf[3] = hw->mac.mc_filter_type; in ixgbe_vf_reset_msg()
738 ixgbe_write_mbx(hw, msgbuf, IXGBE_VF_PERMADDR_MSG_LEN, vf); in ixgbe_vf_reset_msg()
744 u32 *msgbuf, u32 vf) in ixgbe_set_vf_mac_addr() argument
746 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_mac_addr()
789 u32 *msgbuf, u32 vf) in ixgbe_set_vf_vlan_msg() argument
792 int add = (msgbuf[0] & IXGBE_VT_MSGINFO_MASK) >> IXGBE_VT_MSGINFO_SHIFT; in ixgbe_set_vf_vlan_msg()
793 int vid = (msgbuf[1] & IXGBE_VLVF_VLANID_MASK); in ixgbe_set_vf_vlan_msg()
859 u32 *msgbuf, u32 vf) in ixgbe_set_vf_macvlan_msg() argument
861 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_macvlan_msg()
862 int index = (msgbuf[0] & IXGBE_VT_MSGINFO_MASK) >> in ixgbe_set_vf_macvlan_msg()
898 u32 *msgbuf, u32 vf) in ixgbe_negotiate_vf_api() argument
900 int api = msgbuf[1]; in ixgbe_negotiate_vf_api()
918 u32 *msgbuf, u32 vf) in ixgbe_get_vf_queues() argument
936 msgbuf[IXGBE_VF_TX_QUEUES] = __ALIGN_MASK(1, ~vmdq->mask); in ixgbe_get_vf_queues()
937 msgbuf[IXGBE_VF_RX_QUEUES] = __ALIGN_MASK(1, ~vmdq->mask); in ixgbe_get_vf_queues()
945 msgbuf[IXGBE_VF_TRANS_VLAN] = num_tcs; in ixgbe_get_vf_queues()
947 msgbuf[IXGBE_VF_TRANS_VLAN] = 1; in ixgbe_get_vf_queues()
949 msgbuf[IXGBE_VF_TRANS_VLAN] = 0; in ixgbe_get_vf_queues()
952 msgbuf[IXGBE_VF_DEF_QUEUE] = default_tc; in ixgbe_get_vf_queues()
957 static int ixgbe_get_vf_reta(struct ixgbe_adapter *adapter, u32 *msgbuf, u32 vf) in ixgbe_get_vf_reta() argument
960 u32 *out_buf = &msgbuf[1]; in ixgbe_get_vf_reta()
987 u32 *msgbuf, u32 vf) in ixgbe_get_vf_rss_key() argument
989 u32 *rss_key = &msgbuf[1]; in ixgbe_get_vf_rss_key()
1007 u32 msgbuf[IXGBE_VFMAILBOX_SIZE]; in ixgbe_rcv_msg_from_vf() local
1011 retval = ixgbe_read_mbx(hw, msgbuf, mbx_size, vf); in ixgbe_rcv_msg_from_vf()
1019 if (msgbuf[0] & (IXGBE_VT_MSGTYPE_ACK | IXGBE_VT_MSGTYPE_NACK)) in ixgbe_rcv_msg_from_vf()
1025 if (msgbuf[0] == IXGBE_VF_RESET) in ixgbe_rcv_msg_from_vf()
1033 msgbuf[0] |= IXGBE_VT_MSGTYPE_NACK; in ixgbe_rcv_msg_from_vf()
1034 ixgbe_write_mbx(hw, msgbuf, 1, vf); in ixgbe_rcv_msg_from_vf()
1038 switch ((msgbuf[0] & 0xFFFF)) { in ixgbe_rcv_msg_from_vf()
1040 retval = ixgbe_set_vf_mac_addr(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1043 retval = ixgbe_set_vf_multicasts(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1046 retval = ixgbe_set_vf_vlan_msg(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1049 retval = ixgbe_set_vf_lpe(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1052 retval = ixgbe_set_vf_macvlan_msg(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1055 retval = ixgbe_negotiate_vf_api(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1058 retval = ixgbe_get_vf_queues(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1061 retval = ixgbe_get_vf_reta(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1064 retval = ixgbe_get_vf_rss_key(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1067 e_err(drv, "Unhandled Msg %8.8x\n", msgbuf[0]); in ixgbe_rcv_msg_from_vf()
1074 msgbuf[0] |= IXGBE_VT_MSGTYPE_NACK; in ixgbe_rcv_msg_from_vf()
1076 msgbuf[0] |= IXGBE_VT_MSGTYPE_ACK; in ixgbe_rcv_msg_from_vf()
1078 msgbuf[0] |= IXGBE_VT_MSGTYPE_CTS; in ixgbe_rcv_msg_from_vf()
1080 ixgbe_write_mbx(hw, msgbuf, mbx_size, vf); in ixgbe_rcv_msg_from_vf()