Lines Matching refs:msgbuf

328 				   u32 *msgbuf, u32 vf)  in ixgbe_set_vf_multicasts()  argument
330 int entries = (msgbuf[0] & IXGBE_VT_MSGINFO_MASK) in ixgbe_set_vf_multicasts()
332 u16 *hash_list = (u16 *)&msgbuf[1]; in ixgbe_set_vf_multicasts()
416 static s32 ixgbe_set_vf_lpe(struct ixgbe_adapter *adapter, u32 *msgbuf, u32 vf) in ixgbe_set_vf_lpe() argument
419 int max_frame = msgbuf[1]; in ixgbe_set_vf_lpe()
663 u32 msgbuf[4] = {0, 0, 0, 0}; in ixgbe_vf_reset_msg() local
664 u8 *addr = (u8 *)(&msgbuf[1]); in ixgbe_vf_reset_msg()
728 msgbuf[0] = IXGBE_VF_RESET; in ixgbe_vf_reset_msg()
730 msgbuf[0] |= IXGBE_VT_MSGTYPE_ACK; in ixgbe_vf_reset_msg()
733 msgbuf[0] |= IXGBE_VT_MSGTYPE_NACK; in ixgbe_vf_reset_msg()
743 msgbuf[3] = hw->mac.mc_filter_type; in ixgbe_vf_reset_msg()
744 ixgbe_write_mbx(hw, msgbuf, IXGBE_VF_PERMADDR_MSG_LEN, vf); in ixgbe_vf_reset_msg()
750 u32 *msgbuf, u32 vf) in ixgbe_set_vf_mac_addr() argument
752 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_mac_addr()
795 u32 *msgbuf, u32 vf) in ixgbe_set_vf_vlan_msg() argument
798 int add = (msgbuf[0] & IXGBE_VT_MSGINFO_MASK) >> IXGBE_VT_MSGINFO_SHIFT; in ixgbe_set_vf_vlan_msg()
799 int vid = (msgbuf[1] & IXGBE_VLVF_VLANID_MASK); in ixgbe_set_vf_vlan_msg()
865 u32 *msgbuf, u32 vf) in ixgbe_set_vf_macvlan_msg() argument
867 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_macvlan_msg()
868 int index = (msgbuf[0] & IXGBE_VT_MSGINFO_MASK) >> in ixgbe_set_vf_macvlan_msg()
904 u32 *msgbuf, u32 vf) in ixgbe_negotiate_vf_api() argument
906 int api = msgbuf[1]; in ixgbe_negotiate_vf_api()
924 u32 *msgbuf, u32 vf) in ixgbe_get_vf_queues() argument
942 msgbuf[IXGBE_VF_TX_QUEUES] = __ALIGN_MASK(1, ~vmdq->mask); in ixgbe_get_vf_queues()
943 msgbuf[IXGBE_VF_RX_QUEUES] = __ALIGN_MASK(1, ~vmdq->mask); in ixgbe_get_vf_queues()
951 msgbuf[IXGBE_VF_TRANS_VLAN] = num_tcs; in ixgbe_get_vf_queues()
953 msgbuf[IXGBE_VF_TRANS_VLAN] = 1; in ixgbe_get_vf_queues()
955 msgbuf[IXGBE_VF_TRANS_VLAN] = 0; in ixgbe_get_vf_queues()
958 msgbuf[IXGBE_VF_DEF_QUEUE] = default_tc; in ixgbe_get_vf_queues()
963 static int ixgbe_get_vf_reta(struct ixgbe_adapter *adapter, u32 *msgbuf, u32 vf) in ixgbe_get_vf_reta() argument
966 u32 *out_buf = &msgbuf[1]; in ixgbe_get_vf_reta()
993 u32 *msgbuf, u32 vf) in ixgbe_get_vf_rss_key() argument
995 u32 *rss_key = &msgbuf[1]; in ixgbe_get_vf_rss_key()
1011 u32 *msgbuf, u32 vf) in ixgbe_update_vf_xcast_mode() argument
1014 int xcast_mode = msgbuf[1]; in ixgbe_update_vf_xcast_mode()
1058 msgbuf[1] = xcast_mode; in ixgbe_update_vf_xcast_mode()
1066 u32 msgbuf[IXGBE_VFMAILBOX_SIZE]; in ixgbe_rcv_msg_from_vf() local
1070 retval = ixgbe_read_mbx(hw, msgbuf, mbx_size, vf); in ixgbe_rcv_msg_from_vf()
1078 if (msgbuf[0] & (IXGBE_VT_MSGTYPE_ACK | IXGBE_VT_MSGTYPE_NACK)) in ixgbe_rcv_msg_from_vf()
1084 if (msgbuf[0] == IXGBE_VF_RESET) in ixgbe_rcv_msg_from_vf()
1092 msgbuf[0] |= IXGBE_VT_MSGTYPE_NACK; in ixgbe_rcv_msg_from_vf()
1093 ixgbe_write_mbx(hw, msgbuf, 1, vf); in ixgbe_rcv_msg_from_vf()
1097 switch ((msgbuf[0] & 0xFFFF)) { in ixgbe_rcv_msg_from_vf()
1099 retval = ixgbe_set_vf_mac_addr(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1102 retval = ixgbe_set_vf_multicasts(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1105 retval = ixgbe_set_vf_vlan_msg(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1108 retval = ixgbe_set_vf_lpe(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1111 retval = ixgbe_set_vf_macvlan_msg(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1114 retval = ixgbe_negotiate_vf_api(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1117 retval = ixgbe_get_vf_queues(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1120 retval = ixgbe_get_vf_reta(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1123 retval = ixgbe_get_vf_rss_key(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1126 retval = ixgbe_update_vf_xcast_mode(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1129 e_err(drv, "Unhandled Msg %8.8x\n", msgbuf[0]); in ixgbe_rcv_msg_from_vf()
1136 msgbuf[0] |= IXGBE_VT_MSGTYPE_NACK; in ixgbe_rcv_msg_from_vf()
1138 msgbuf[0] |= IXGBE_VT_MSGTYPE_ACK; in ixgbe_rcv_msg_from_vf()
1140 msgbuf[0] |= IXGBE_VT_MSGTYPE_CTS; in ixgbe_rcv_msg_from_vf()
1142 ixgbe_write_mbx(hw, msgbuf, mbx_size, vf); in ixgbe_rcv_msg_from_vf()