Lines Matching refs:msgbuf

422 txgbe_vf_reset(struct rte_eth_dev *eth_dev, uint16_t vf, uint32_t *msgbuf)  in txgbe_vf_reset()  argument
428 uint8_t *new_mac = (uint8_t *)(&msgbuf[1]); in txgbe_vf_reset()
438 msgbuf[0] = TXGBE_VF_RESET | TXGBE_VT_MSGTYPE_ACK; in txgbe_vf_reset()
444 msgbuf[3] = hw->mac.mc_filter_type; in txgbe_vf_reset()
445 txgbe_write_mbx(hw, msgbuf, TXGBE_VF_PERMADDR_MSG_LEN, vf); in txgbe_vf_reset()
452 uint32_t vf, uint32_t *msgbuf) in txgbe_vf_set_mac_addr() argument
457 uint8_t *new_mac = (uint8_t *)(&msgbuf[1]); in txgbe_vf_set_mac_addr()
469 uint32_t vf, uint32_t *msgbuf) in txgbe_vf_set_multicast() argument
473 int nb_entries = (msgbuf[0] & TXGBE_VT_MSGINFO_MASK) >> in txgbe_vf_set_multicast()
475 uint16_t *hash_list = (uint16_t *)&msgbuf[1]; in txgbe_vf_set_multicast()
518 txgbe_vf_set_vlan(struct rte_eth_dev *eth_dev, uint32_t vf, uint32_t *msgbuf) in txgbe_vf_set_vlan() argument
524 add = (msgbuf[0] & TXGBE_VT_MSGINFO_MASK) in txgbe_vf_set_vlan()
526 vid = TXGBE_PSRVLAN_VID(msgbuf[1]); in txgbe_vf_set_vlan()
537 __rte_unused uint32_t vf, uint32_t *msgbuf) in txgbe_set_vf_lpe() argument
540 uint32_t max_frame = msgbuf[1]; in txgbe_set_vf_lpe()
558 uint32_t vf, uint32_t *msgbuf) in txgbe_negotiate_vf_api() argument
560 uint32_t api_version = msgbuf[1]; in txgbe_negotiate_vf_api()
581 txgbe_get_vf_queues(struct rte_eth_dev *eth_dev, uint32_t vf, uint32_t *msgbuf) in txgbe_get_vf_queues() argument
606 msgbuf[TXGBE_VF_RX_QUEUES] = RTE_ETH_DEV_SRIOV(eth_dev).nb_q_per_pool; in txgbe_get_vf_queues()
607 msgbuf[TXGBE_VF_TX_QUEUES] = RTE_ETH_DEV_SRIOV(eth_dev).nb_q_per_pool; in txgbe_get_vf_queues()
610 msgbuf[TXGBE_VF_DEF_QUEUE] = default_q; in txgbe_get_vf_queues()
656 msgbuf[TXGBE_VF_TRANS_VLAN] = num_tcs; in txgbe_get_vf_queues()
663 uint32_t vf, uint32_t *msgbuf) in txgbe_set_vf_mc_promisc() argument
667 int xcast_mode = msgbuf[1]; /* msgbuf contains the flag to enable */ in txgbe_set_vf_mc_promisc()
728 msgbuf[1] = xcast_mode; in txgbe_set_vf_mc_promisc()
734 txgbe_set_vf_macvlan_msg(struct rte_eth_dev *dev, uint32_t vf, uint32_t *msgbuf) in txgbe_set_vf_macvlan_msg() argument
738 uint8_t *new_mac = (uint8_t *)(&msgbuf[1]); in txgbe_set_vf_macvlan_msg()
740 int index = (msgbuf[0] & TXGBE_VT_MSGINFO_MASK) >> in txgbe_set_vf_macvlan_msg()
767 uint32_t msgbuf[TXGBE_P2VMBX_SIZE]; in txgbe_rcv_msg_from_vf() local
773 retval = txgbe_read_mbx(hw, msgbuf, mbx_size, vf); in txgbe_rcv_msg_from_vf()
780 if (msgbuf[0] & (TXGBE_VT_MSGTYPE_ACK | TXGBE_VT_MSGTYPE_NACK)) in txgbe_rcv_msg_from_vf()
792 ret_param.msg_type = msgbuf[0] & 0xFFFF; in txgbe_rcv_msg_from_vf()
793 ret_param.msg = (void *)msgbuf; in txgbe_rcv_msg_from_vf()
796 if (msgbuf[0] == TXGBE_VF_RESET) { in txgbe_rcv_msg_from_vf()
797 int ret = txgbe_vf_reset(eth_dev, vf, msgbuf); in txgbe_rcv_msg_from_vf()
820 switch ((msgbuf[0] & 0xFFFF)) { in txgbe_rcv_msg_from_vf()
823 retval = txgbe_vf_set_mac_addr(eth_dev, vf, msgbuf); in txgbe_rcv_msg_from_vf()
827 retval = txgbe_vf_set_multicast(eth_dev, vf, msgbuf); in txgbe_rcv_msg_from_vf()
831 retval = txgbe_set_vf_lpe(eth_dev, vf, msgbuf); in txgbe_rcv_msg_from_vf()
835 retval = txgbe_vf_set_vlan(eth_dev, vf, msgbuf); in txgbe_rcv_msg_from_vf()
838 retval = txgbe_negotiate_vf_api(eth_dev, vf, msgbuf); in txgbe_rcv_msg_from_vf()
841 retval = txgbe_get_vf_queues(eth_dev, vf, msgbuf); in txgbe_rcv_msg_from_vf()
846 retval = txgbe_set_vf_mc_promisc(eth_dev, vf, msgbuf); in txgbe_rcv_msg_from_vf()
850 retval = txgbe_set_vf_macvlan_msg(eth_dev, vf, msgbuf); in txgbe_rcv_msg_from_vf()
853 PMD_DRV_LOG(DEBUG, "Unhandled Msg %8.8x", (uint32_t)msgbuf[0]); in txgbe_rcv_msg_from_vf()
860 msgbuf[0] |= TXGBE_VT_MSGTYPE_NACK; in txgbe_rcv_msg_from_vf()
862 msgbuf[0] |= TXGBE_VT_MSGTYPE_ACK; in txgbe_rcv_msg_from_vf()
864 msgbuf[0] |= TXGBE_VT_MSGTYPE_CTS; in txgbe_rcv_msg_from_vf()
866 txgbe_write_mbx(hw, msgbuf, msg_size, vf); in txgbe_rcv_msg_from_vf()