Lines Matching refs:msgbuf

107 	u32 msgbuf[3];  in e1000_reset_hw_vf()  local
108 u8 *addr = (u8 *)(&msgbuf[1]); in e1000_reset_hw_vf()
126 msgbuf[0] = E1000_VF_RESET; in e1000_reset_hw_vf()
127 mbx->ops.write_posted(hw, msgbuf, 1); in e1000_reset_hw_vf()
132 ret_val = mbx->ops.read_posted(hw, msgbuf, 3); in e1000_reset_hw_vf()
134 if (msgbuf[0] == (E1000_VF_RESET | in e1000_reset_hw_vf()
206 u32 msgbuf[E1000_VFMAILBOX_SIZE]; in e1000_update_mc_addr_list_vf() local
207 u16 *hash_list = (u16 *)&msgbuf[1]; in e1000_update_mc_addr_list_vf()
222 msgbuf[0] = E1000_VF_SET_MULTICAST; in e1000_update_mc_addr_list_vf()
223 msgbuf[0] |= cnt << E1000_VT_MSGINFO_SHIFT; in e1000_update_mc_addr_list_vf()
231 ret_val = mbx->ops.write_posted(hw, msgbuf, E1000_VFMAILBOX_SIZE); in e1000_update_mc_addr_list_vf()
233 mbx->ops.read_posted(hw, msgbuf, 1); in e1000_update_mc_addr_list_vf()
245 u32 msgbuf[2]; in e1000_set_vfta_vf() local
248 msgbuf[0] = E1000_VF_SET_VLAN; in e1000_set_vfta_vf()
249 msgbuf[1] = vid; in e1000_set_vfta_vf()
252 msgbuf[0] |= BIT(E1000_VT_MSGINFO_SHIFT); in e1000_set_vfta_vf()
254 mbx->ops.write_posted(hw, msgbuf, 2); in e1000_set_vfta_vf()
256 err = mbx->ops.read_posted(hw, msgbuf, 2); in e1000_set_vfta_vf()
258 msgbuf[0] &= ~E1000_VT_MSGTYPE_CTS; in e1000_set_vfta_vf()
261 if (!err && (msgbuf[0] == (E1000_VF_SET_VLAN | E1000_VT_MSGTYPE_NACK))) in e1000_set_vfta_vf()
275 u32 msgbuf[2]; in e1000_rlpml_set_vf() local
278 msgbuf[0] = E1000_VF_SET_LPE; in e1000_rlpml_set_vf()
279 msgbuf[1] = max_size; in e1000_rlpml_set_vf()
281 ret_val = mbx->ops.write_posted(hw, msgbuf, 2); in e1000_rlpml_set_vf()
283 mbx->ops.read_posted(hw, msgbuf, 1); in e1000_rlpml_set_vf()
295 u32 msgbuf[3]; in e1000_rar_set_vf() local
296 u8 *msg_addr = (u8 *)(&msgbuf[1]); in e1000_rar_set_vf()
299 memset(msgbuf, 0, 12); in e1000_rar_set_vf()
300 msgbuf[0] = E1000_VF_SET_MAC_ADDR; in e1000_rar_set_vf()
302 ret_val = mbx->ops.write_posted(hw, msgbuf, 3); in e1000_rar_set_vf()
305 ret_val = mbx->ops.read_posted(hw, msgbuf, 3); in e1000_rar_set_vf()
307 msgbuf[0] &= ~E1000_VT_MSGTYPE_CTS; in e1000_rar_set_vf()
311 (msgbuf[0] == (E1000_VF_SET_MAC_ADDR | E1000_VT_MSGTYPE_NACK))) in e1000_rar_set_vf()
335 u32 msgbuf[3], msgbuf_chk; in e1000_set_uc_addr_vf() local
336 u8 *msg_addr = (u8 *)(&msgbuf[1]); in e1000_set_uc_addr_vf()
339 memset(msgbuf, 0, sizeof(msgbuf)); in e1000_set_uc_addr_vf()
340 msgbuf[0] |= sub_cmd; in e1000_set_uc_addr_vf()
341 msgbuf[0] |= E1000_VF_SET_MAC_ADDR; in e1000_set_uc_addr_vf()
342 msgbuf_chk = msgbuf[0]; in e1000_set_uc_addr_vf()
347 ret_val = mbx->ops.write_posted(hw, msgbuf, 3); in e1000_set_uc_addr_vf()
350 ret_val = mbx->ops.read_posted(hw, msgbuf, 3); in e1000_set_uc_addr_vf()
352 msgbuf[0] &= ~E1000_VT_MSGTYPE_CTS; in e1000_set_uc_addr_vf()
355 msgbuf[0] &= ~E1000_VT_MSGTYPE_CTS; in e1000_set_uc_addr_vf()
357 if (msgbuf[0] == (msgbuf_chk | E1000_VT_MSGTYPE_NACK)) in e1000_set_uc_addr_vf()