Lines Matching refs:msgbuf

7044 static int igb_set_vf_promisc(struct igb_adapter *adapter, u32 *msgbuf, u32 vf)  in igb_set_vf_promisc()  argument
7054 if (*msgbuf & E1000_VF_SET_PROMISC_MULTICAST) { in igb_set_vf_promisc()
7057 *msgbuf &= ~E1000_VF_SET_PROMISC_MULTICAST; in igb_set_vf_promisc()
7077 if (*msgbuf & E1000_VT_MSGINFO_MASK) in igb_set_vf_promisc()
7084 u32 *msgbuf, u32 vf) in igb_set_vf_multicasts() argument
7086 int n = (msgbuf[0] & E1000_VT_MSGINFO_MASK) >> E1000_VT_MSGINFO_SHIFT; in igb_set_vf_multicasts()
7087 u16 *hash_list = (u16 *)&msgbuf[1]; in igb_set_vf_multicasts()
7344 static int igb_set_vf_vlan_msg(struct igb_adapter *adapter, u32 *msgbuf, u32 vf) in igb_set_vf_vlan_msg() argument
7346 int add = (msgbuf[0] & E1000_VT_MSGINFO_MASK) >> E1000_VT_MSGINFO_SHIFT; in igb_set_vf_vlan_msg()
7347 int vid = (msgbuf[1] & E1000_VLVF_VLANID_MASK); in igb_set_vf_vlan_msg()
7402 u32 reg, msgbuf[3]; in igb_vf_reset_msg() local
7403 u8 *addr = (u8 *)(&msgbuf[1]); in igb_vf_reset_msg()
7421 msgbuf[0] = E1000_VF_RESET | E1000_VT_MSGTYPE_ACK; in igb_vf_reset_msg()
7424 msgbuf[0] = E1000_VF_RESET | E1000_VT_MSGTYPE_NACK; in igb_vf_reset_msg()
7426 igb_write_mbx(hw, msgbuf, 3, vf); in igb_vf_reset_msg()
7762 u32 msgbuf[E1000_VFMAILBOX_SIZE]; in igb_rcv_msg_from_vf() local
7767 retval = igb_read_mbx(hw, msgbuf, E1000_VFMAILBOX_SIZE, vf, false); in igb_rcv_msg_from_vf()
7779 if (msgbuf[0] & (E1000_VT_MSGTYPE_ACK | E1000_VT_MSGTYPE_NACK)) in igb_rcv_msg_from_vf()
7785 if (msgbuf[0] == E1000_VF_RESET) { in igb_rcv_msg_from_vf()
7798 switch ((msgbuf[0] & 0xFFFF)) { in igb_rcv_msg_from_vf()
7800 retval = igb_set_vf_mac_addr(adapter, msgbuf, vf); in igb_rcv_msg_from_vf()
7803 retval = igb_set_vf_promisc(adapter, msgbuf, vf); in igb_rcv_msg_from_vf()
7806 retval = igb_set_vf_multicasts(adapter, msgbuf, vf); in igb_rcv_msg_from_vf()
7809 retval = igb_set_vf_rlpml(adapter, msgbuf[1], vf); in igb_rcv_msg_from_vf()
7818 retval = igb_set_vf_vlan_msg(adapter, msgbuf, vf); in igb_rcv_msg_from_vf()
7821 dev_err(&pdev->dev, "Unhandled Msg %08x\n", msgbuf[0]); in igb_rcv_msg_from_vf()
7826 msgbuf[0] |= E1000_VT_MSGTYPE_CTS; in igb_rcv_msg_from_vf()
7830 msgbuf[0] |= E1000_VT_MSGTYPE_NACK; in igb_rcv_msg_from_vf()
7832 msgbuf[0] |= E1000_VT_MSGTYPE_ACK; in igb_rcv_msg_from_vf()
7835 igb_write_mbx(hw, msgbuf, 1, vf); in igb_rcv_msg_from_vf()