Lines Matching refs:msgbuf

363 				   u32 *msgbuf, u32 vf)  in ixgbe_set_vf_multicasts()  argument
365 int entries = (msgbuf[0] & IXGBE_VT_MSGINFO_MASK) in ixgbe_set_vf_multicasts()
367 u16 *hash_list = (u16 *)&msgbuf[1]; in ixgbe_set_vf_multicasts()
884 u32 msgbuf[4] = {0, 0, 0, 0}; in ixgbe_vf_reset_msg() local
885 u8 *addr = (u8 *)(&msgbuf[1]); in ixgbe_vf_reset_msg()
930 msgbuf[0] = IXGBE_VF_RESET; in ixgbe_vf_reset_msg()
932 msgbuf[0] |= IXGBE_VT_MSGTYPE_ACK; in ixgbe_vf_reset_msg()
935 msgbuf[0] |= IXGBE_VT_MSGTYPE_NACK; in ixgbe_vf_reset_msg()
942 msgbuf[3] = hw->mac.mc_filter_type; in ixgbe_vf_reset_msg()
943 ixgbe_write_mbx(hw, msgbuf, IXGBE_VF_PERMADDR_MSG_LEN, vf); in ixgbe_vf_reset_msg()
949 u32 *msgbuf, u32 vf) in ixgbe_set_vf_mac_addr() argument
951 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_mac_addr()
971 u32 *msgbuf, u32 vf) in ixgbe_set_vf_vlan_msg() argument
973 u32 add = (msgbuf[0] & IXGBE_VT_MSGINFO_MASK) >> IXGBE_VT_MSGINFO_SHIFT; in ixgbe_set_vf_vlan_msg()
974 u32 vid = (msgbuf[1] & IXGBE_VLVF_VLANID_MASK); in ixgbe_set_vf_vlan_msg()
993 u32 *msgbuf, u32 vf) in ixgbe_set_vf_macvlan_msg() argument
995 u8 *new_mac = ((u8 *)(&msgbuf[1])); in ixgbe_set_vf_macvlan_msg()
996 int index = (msgbuf[0] & IXGBE_VT_MSGINFO_MASK) >> in ixgbe_set_vf_macvlan_msg()
1037 u32 *msgbuf, u32 vf) in ixgbe_negotiate_vf_api() argument
1039 int api = msgbuf[1]; in ixgbe_negotiate_vf_api()
1059 u32 *msgbuf, u32 vf) in ixgbe_get_vf_queues() argument
1079 msgbuf[IXGBE_VF_TX_QUEUES] = __ALIGN_MASK(1, ~vmdq->mask); in ixgbe_get_vf_queues()
1080 msgbuf[IXGBE_VF_RX_QUEUES] = __ALIGN_MASK(1, ~vmdq->mask); in ixgbe_get_vf_queues()
1088 msgbuf[IXGBE_VF_TRANS_VLAN] = num_tcs; in ixgbe_get_vf_queues()
1090 msgbuf[IXGBE_VF_TRANS_VLAN] = 1; in ixgbe_get_vf_queues()
1092 msgbuf[IXGBE_VF_TRANS_VLAN] = 0; in ixgbe_get_vf_queues()
1095 msgbuf[IXGBE_VF_DEF_QUEUE] = default_tc; in ixgbe_get_vf_queues()
1100 static int ixgbe_get_vf_reta(struct ixgbe_adapter *adapter, u32 *msgbuf, u32 vf) in ixgbe_get_vf_reta() argument
1103 u32 *out_buf = &msgbuf[1]; in ixgbe_get_vf_reta()
1136 u32 *msgbuf, u32 vf) in ixgbe_get_vf_rss_key() argument
1138 u32 *rss_key = &msgbuf[1]; in ixgbe_get_vf_rss_key()
1160 u32 *msgbuf, u32 vf) in ixgbe_update_vf_xcast_mode() argument
1163 int xcast_mode = msgbuf[1]; in ixgbe_update_vf_xcast_mode()
1230 msgbuf[1] = xcast_mode; in ixgbe_update_vf_xcast_mode()
1236 u32 *msgbuf, u32 vf) in ixgbe_get_vf_link_state() argument
1238 u32 *link_state = &msgbuf[1]; in ixgbe_get_vf_link_state()
1258 u32 msgbuf[IXGBE_VFMAILBOX_SIZE]; in ixgbe_rcv_msg_from_vf() local
1262 retval = ixgbe_read_mbx(hw, msgbuf, mbx_size, vf); in ixgbe_rcv_msg_from_vf()
1270 if (msgbuf[0] & (IXGBE_VT_MSGTYPE_ACK | IXGBE_VT_MSGTYPE_NACK)) in ixgbe_rcv_msg_from_vf()
1276 if (msgbuf[0] == IXGBE_VF_RESET) in ixgbe_rcv_msg_from_vf()
1284 msgbuf[0] |= IXGBE_VT_MSGTYPE_NACK; in ixgbe_rcv_msg_from_vf()
1285 ixgbe_write_mbx(hw, msgbuf, 1, vf); in ixgbe_rcv_msg_from_vf()
1289 switch ((msgbuf[0] & 0xFFFF)) { in ixgbe_rcv_msg_from_vf()
1291 retval = ixgbe_set_vf_mac_addr(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1294 retval = ixgbe_set_vf_multicasts(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1297 retval = ixgbe_set_vf_vlan_msg(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1300 retval = ixgbe_set_vf_lpe(adapter, msgbuf[1], vf); in ixgbe_rcv_msg_from_vf()
1303 retval = ixgbe_set_vf_macvlan_msg(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1306 retval = ixgbe_negotiate_vf_api(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1309 retval = ixgbe_get_vf_queues(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1312 retval = ixgbe_get_vf_reta(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1315 retval = ixgbe_get_vf_rss_key(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1318 retval = ixgbe_update_vf_xcast_mode(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1321 retval = ixgbe_get_vf_link_state(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1324 retval = ixgbe_ipsec_vf_add_sa(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1327 retval = ixgbe_ipsec_vf_del_sa(adapter, msgbuf, vf); in ixgbe_rcv_msg_from_vf()
1330 e_err(drv, "Unhandled Msg %8.8x\n", msgbuf[0]); in ixgbe_rcv_msg_from_vf()
1337 msgbuf[0] |= IXGBE_VT_MSGTYPE_NACK; in ixgbe_rcv_msg_from_vf()
1339 msgbuf[0] |= IXGBE_VT_MSGTYPE_ACK; in ixgbe_rcv_msg_from_vf()
1341 msgbuf[0] |= IXGBE_VT_MSGTYPE_CTS; in ixgbe_rcv_msg_from_vf()
1343 ixgbe_write_mbx(hw, msgbuf, mbx_size, vf); in ixgbe_rcv_msg_from_vf()