Lines Matching refs:msgbuf

359 				   u32 *msgbuf, u32 vf)  in ixgbe_set_vf_multicasts()  argument
361 int entries = (msgbuf[0] & IXGBE_VT_MSGINFO_MASK) in ixgbe_set_vf_multicasts()
363 u16 *hash_list = (u16 *)&msgbuf[1]; in ixgbe_set_vf_multicasts()
829 u32 msgbuf[4] = {0, 0, 0, 0}; in ixgbe_vf_reset_msg() local
830 u8 *addr = (u8 *)(&msgbuf[1]); in ixgbe_vf_reset_msg()
900 msgbuf[0] = IXGBE_VF_RESET; in ixgbe_vf_reset_msg()
902 msgbuf[0] |= IXGBE_VT_MSGTYPE_ACK; in ixgbe_vf_reset_msg()
905 msgbuf[0] |= IXGBE_VT_MSGTYPE_NACK; in ixgbe_vf_reset_msg()
912 msgbuf[3] = hw->mac.mc_filter_type; in ixgbe_vf_reset_msg()
913 ixgbe_write_mbx(hw, msgbuf, IXGBE_VF_PERMADDR_MSG_LEN, vf); in ixgbe_vf_reset_msg()
919 u32 *msgbuf, u32 vf) in ixgbe_set_vf_mac_addr() argument
921 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_mac_addr()
941 u32 *msgbuf, u32 vf) in ixgbe_set_vf_vlan_msg() argument
943 u32 add = (msgbuf[0] & IXGBE_VT_MSGINFO_MASK) >> IXGBE_VT_MSGINFO_SHIFT; in ixgbe_set_vf_vlan_msg()
944 u32 vid = (msgbuf[1] & IXGBE_VLVF_VLANID_MASK); in ixgbe_set_vf_vlan_msg()
963 u32 *msgbuf, u32 vf) in ixgbe_set_vf_macvlan_msg() argument
965 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_macvlan_msg()
966 int index = (msgbuf[0] & IXGBE_VT_MSGINFO_MASK) >> in ixgbe_set_vf_macvlan_msg()
1007 u32 *msgbuf, u32 vf) in ixgbe_negotiate_vf_api() argument
1009 int api = msgbuf[1]; in ixgbe_negotiate_vf_api()
1029 u32 *msgbuf, u32 vf) in ixgbe_get_vf_queues() argument
1049 msgbuf[IXGBE_VF_TX_QUEUES] = __ALIGN_MASK(1, ~vmdq->mask); in ixgbe_get_vf_queues()
1050 msgbuf[IXGBE_VF_RX_QUEUES] = __ALIGN_MASK(1, ~vmdq->mask); in ixgbe_get_vf_queues()
1058 msgbuf[IXGBE_VF_TRANS_VLAN] = num_tcs; in ixgbe_get_vf_queues()
1060 msgbuf[IXGBE_VF_TRANS_VLAN] = 1; in ixgbe_get_vf_queues()
1062 msgbuf[IXGBE_VF_TRANS_VLAN] = 0; in ixgbe_get_vf_queues()
1065 msgbuf[IXGBE_VF_DEF_QUEUE] = default_tc; in ixgbe_get_vf_queues()
1070 static int ixgbe_get_vf_reta(struct ixgbe_adapter *adapter, u32 *msgbuf, u32 vf) in ixgbe_get_vf_reta() argument
1073 u32 *out_buf = &msgbuf[1]; in ixgbe_get_vf_reta()
1106 u32 *msgbuf, u32 vf) in ixgbe_get_vf_rss_key() argument
1108 u32 *rss_key = &msgbuf[1]; in ixgbe_get_vf_rss_key()
1130 u32 *msgbuf, u32 vf) in ixgbe_update_vf_xcast_mode() argument
1133 int xcast_mode = msgbuf[1]; in ixgbe_update_vf_xcast_mode()
1200 msgbuf[1] = xcast_mode; in ixgbe_update_vf_xcast_mode()
1208 u32 msgbuf[IXGBE_VFMAILBOX_SIZE]; in ixgbe_rcv_msg_from_vf() local
1212 retval = ixgbe_read_mbx(hw, msgbuf, mbx_size, vf); in ixgbe_rcv_msg_from_vf()
1220 if (msgbuf[0] & (IXGBE_VT_MSGTYPE_ACK | IXGBE_VT_MSGTYPE_NACK)) in ixgbe_rcv_msg_from_vf()
1226 if (msgbuf[0] == IXGBE_VF_RESET) in ixgbe_rcv_msg_from_vf()
1234 msgbuf[0] |= IXGBE_VT_MSGTYPE_NACK; in ixgbe_rcv_msg_from_vf()
1235 ixgbe_write_mbx(hw, msgbuf, 1, vf); in ixgbe_rcv_msg_from_vf()
1239 switch ((msgbuf[0] & 0xFFFF)) { in ixgbe_rcv_msg_from_vf()
1241 retval = ixgbe_set_vf_mac_addr(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1244 retval = ixgbe_set_vf_multicasts(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1247 retval = ixgbe_set_vf_vlan_msg(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1250 retval = ixgbe_set_vf_lpe(adapter, msgbuf[1], vf); in ixgbe_rcv_msg_from_vf()
1253 retval = ixgbe_set_vf_macvlan_msg(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1256 retval = ixgbe_negotiate_vf_api(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1259 retval = ixgbe_get_vf_queues(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1262 retval = ixgbe_get_vf_reta(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1265 retval = ixgbe_get_vf_rss_key(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1268 retval = ixgbe_update_vf_xcast_mode(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1271 retval = ixgbe_ipsec_vf_add_sa(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1274 retval = ixgbe_ipsec_vf_del_sa(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1277 e_err(drv, "Unhandled Msg %8.8x\n", msgbuf[0]); in ixgbe_rcv_msg_from_vf()
1284 msgbuf[0] |= IXGBE_VT_MSGTYPE_NACK; in ixgbe_rcv_msg_from_vf()
1286 msgbuf[0] |= IXGBE_VT_MSGTYPE_ACK; in ixgbe_rcv_msg_from_vf()
1288 msgbuf[0] |= IXGBE_VT_MSGTYPE_CTS; in ixgbe_rcv_msg_from_vf()
1290 ixgbe_write_mbx(hw, msgbuf, mbx_size, vf); in ixgbe_rcv_msg_from_vf()