Lines Matching refs:msgbuf

69 	u32 msgbuf[IXGBE_VF_PERMADDR_MSG_LEN];  in ixgbevf_reset_hw_vf()  local
70 u8 *addr = (u8 *)(&msgbuf[1]); in ixgbevf_reset_hw_vf()
94 msgbuf[0] = IXGBE_VF_RESET; in ixgbevf_reset_hw_vf()
95 mbx->ops.write_posted(hw, msgbuf, 1); in ixgbevf_reset_hw_vf()
103 ret_val = mbx->ops.read_posted(hw, msgbuf, IXGBE_VF_PERMADDR_MSG_LEN); in ixgbevf_reset_hw_vf()
111 if (msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_ACK) && in ixgbevf_reset_hw_vf()
112 msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_NACK)) in ixgbevf_reset_hw_vf()
115 if (msgbuf[0] == (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_ACK)) in ixgbevf_reset_hw_vf()
118 hw->mac.mc_filter_type = msgbuf[IXGBE_VF_MC_TYPE_WORD]; in ixgbevf_reset_hw_vf()
250 u32 msgbuf[3], msgbuf_chk; in ixgbevf_set_uc_addr_vf() local
251 u8 *msg_addr = (u8 *)(&msgbuf[1]); in ixgbevf_set_uc_addr_vf()
254 memset(msgbuf, 0, sizeof(msgbuf)); in ixgbevf_set_uc_addr_vf()
260 msgbuf[0] |= index << IXGBE_VT_MSGINFO_SHIFT; in ixgbevf_set_uc_addr_vf()
261 msgbuf[0] |= IXGBE_VF_SET_MACVLAN; in ixgbevf_set_uc_addr_vf()
262 msgbuf_chk = msgbuf[0]; in ixgbevf_set_uc_addr_vf()
267 ret_val = ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf, in ixgbevf_set_uc_addr_vf()
268 ARRAY_SIZE(msgbuf)); in ixgbevf_set_uc_addr_vf()
270 msgbuf[0] &= ~IXGBE_VT_MSGTYPE_CTS; in ixgbevf_set_uc_addr_vf()
272 if (msgbuf[0] == (msgbuf_chk | IXGBE_VT_MSGTYPE_NACK)) in ixgbevf_set_uc_addr_vf()
298 u32 msgbuf[IXGBE_VFMAILBOX_SIZE]; in ixgbevf_get_reta_locked() local
299 u32 *hw_reta = &msgbuf[1]; in ixgbevf_get_reta_locked()
324 msgbuf[0] = IXGBE_VF_GET_RETA; in ixgbevf_get_reta_locked()
326 err = hw->mbx.ops.write_posted(hw, msgbuf, 1); in ixgbevf_get_reta_locked()
331 err = hw->mbx.ops.read_posted(hw, msgbuf, dwords + 1); in ixgbevf_get_reta_locked()
336 msgbuf[0] &= ~IXGBE_VT_MSGTYPE_CTS; in ixgbevf_get_reta_locked()
339 if (msgbuf[0] == (IXGBE_VF_GET_RETA | IXGBE_VT_MSGTYPE_NACK)) in ixgbevf_get_reta_locked()
346 if (msgbuf[0] != (IXGBE_VF_GET_RETA | IXGBE_VT_MSGTYPE_ACK)) in ixgbevf_get_reta_locked()
373 u32 msgbuf[IXGBE_VFMAILBOX_SIZE]; in ixgbevf_get_rss_key_locked() local
392 msgbuf[0] = IXGBE_VF_GET_RSS_KEY; in ixgbevf_get_rss_key_locked()
393 err = hw->mbx.ops.write_posted(hw, msgbuf, 1); in ixgbevf_get_rss_key_locked()
398 err = hw->mbx.ops.read_posted(hw, msgbuf, 11); in ixgbevf_get_rss_key_locked()
403 msgbuf[0] &= ~IXGBE_VT_MSGTYPE_CTS; in ixgbevf_get_rss_key_locked()
406 if (msgbuf[0] == (IXGBE_VF_GET_RSS_KEY | IXGBE_VT_MSGTYPE_NACK)) in ixgbevf_get_rss_key_locked()
413 if (msgbuf[0] != (IXGBE_VF_GET_RSS_KEY | IXGBE_VT_MSGTYPE_ACK)) in ixgbevf_get_rss_key_locked()
416 memcpy(rss_key, msgbuf + 1, IXGBEVF_RSS_HASH_KEY_SIZE); in ixgbevf_get_rss_key_locked()
431 u32 msgbuf[3]; in ixgbevf_set_rar_vf() local
432 u8 *msg_addr = (u8 *)(&msgbuf[1]); in ixgbevf_set_rar_vf()
435 memset(msgbuf, 0, sizeof(msgbuf)); in ixgbevf_set_rar_vf()
436 msgbuf[0] = IXGBE_VF_SET_MAC_ADDR; in ixgbevf_set_rar_vf()
439 ret_val = ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf, in ixgbevf_set_rar_vf()
440 ARRAY_SIZE(msgbuf)); in ixgbevf_set_rar_vf()
441 msgbuf[0] &= ~IXGBE_VT_MSGTYPE_CTS; in ixgbevf_set_rar_vf()
445 (msgbuf[0] == (IXGBE_VF_SET_MAC_ADDR | IXGBE_VT_MSGTYPE_NACK))) { in ixgbevf_set_rar_vf()
484 u32 msgbuf[IXGBE_VFMAILBOX_SIZE]; in ixgbevf_update_mc_addr_list_vf() local
485 u16 *vector_list = (u16 *)&msgbuf[1]; in ixgbevf_update_mc_addr_list_vf()
500 msgbuf[0] = IXGBE_VF_SET_MULTICAST; in ixgbevf_update_mc_addr_list_vf()
501 msgbuf[0] |= cnt << IXGBE_VT_MSGINFO_SHIFT; in ixgbevf_update_mc_addr_list_vf()
513 return ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf, in ixgbevf_update_mc_addr_list_vf()
539 u32 msgbuf[2]; in ixgbevf_update_xcast_mode() local
555 msgbuf[0] = IXGBE_VF_UPDATE_XCAST_MODE; in ixgbevf_update_xcast_mode()
556 msgbuf[1] = xcast_mode; in ixgbevf_update_xcast_mode()
558 err = ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf, in ixgbevf_update_xcast_mode()
559 ARRAY_SIZE(msgbuf)); in ixgbevf_update_xcast_mode()
563 msgbuf[0] &= ~IXGBE_VT_MSGTYPE_CTS; in ixgbevf_update_xcast_mode()
564 if (msgbuf[0] == (IXGBE_VF_UPDATE_XCAST_MODE | IXGBE_VT_MSGTYPE_NACK)) in ixgbevf_update_xcast_mode()
592 u32 msgbuf[2]; in ixgbevf_set_vfta_vf() local
595 msgbuf[0] = IXGBE_VF_SET_VLAN; in ixgbevf_set_vfta_vf()
596 msgbuf[1] = vlan; in ixgbevf_set_vfta_vf()
598 msgbuf[0] |= vlan_on << IXGBE_VT_MSGINFO_SHIFT; in ixgbevf_set_vfta_vf()
600 err = ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf, in ixgbevf_set_vfta_vf()
601 ARRAY_SIZE(msgbuf)); in ixgbevf_set_vfta_vf()
606 msgbuf[0] &= ~IXGBE_VT_MSGTYPE_CTS; in ixgbevf_set_vfta_vf()
607 msgbuf[0] &= ~(0xFF << IXGBE_VT_MSGINFO_SHIFT); in ixgbevf_set_vfta_vf()
609 if (msgbuf[0] != (IXGBE_VF_SET_VLAN | IXGBE_VT_MSGTYPE_ACK)) in ixgbevf_set_vfta_vf()
808 u32 msgbuf[2]; in ixgbevf_set_rlpml_vf() local
811 msgbuf[0] = IXGBE_VF_SET_LPE; in ixgbevf_set_rlpml_vf()
812 msgbuf[1] = max_size; in ixgbevf_set_rlpml_vf()
814 ret_val = ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf, in ixgbevf_set_rlpml_vf()
815 ARRAY_SIZE(msgbuf)); in ixgbevf_set_rlpml_vf()
818 if ((msgbuf[0] & IXGBE_VF_SET_LPE) && in ixgbevf_set_rlpml_vf()
819 (msgbuf[0] & IXGBE_VT_MSGTYPE_NACK)) in ixgbevf_set_rlpml_vf()