Lines Matching refs:msgbuf
421 txgbe_vf_reset(struct rte_eth_dev *eth_dev, uint16_t vf, uint32_t *msgbuf) in txgbe_vf_reset() argument
427 uint8_t *new_mac = (uint8_t *)(&msgbuf[1]); in txgbe_vf_reset()
437 msgbuf[0] = TXGBE_VF_RESET | TXGBE_VT_MSGTYPE_ACK; in txgbe_vf_reset()
443 msgbuf[3] = hw->mac.mc_filter_type; in txgbe_vf_reset()
444 txgbe_write_mbx(hw, msgbuf, TXGBE_VF_PERMADDR_MSG_LEN, vf); in txgbe_vf_reset()
451 uint32_t vf, uint32_t *msgbuf) in txgbe_vf_set_mac_addr() argument
456 uint8_t *new_mac = (uint8_t *)(&msgbuf[1]); in txgbe_vf_set_mac_addr()
468 uint32_t vf, uint32_t *msgbuf) in txgbe_vf_set_multicast() argument
472 int nb_entries = (msgbuf[0] & TXGBE_VT_MSGINFO_MASK) >> in txgbe_vf_set_multicast()
474 uint16_t *hash_list = (uint16_t *)&msgbuf[1]; in txgbe_vf_set_multicast()
517 txgbe_vf_set_vlan(struct rte_eth_dev *eth_dev, uint32_t vf, uint32_t *msgbuf) in txgbe_vf_set_vlan() argument
523 add = (msgbuf[0] & TXGBE_VT_MSGINFO_MASK) in txgbe_vf_set_vlan()
525 vid = TXGBE_PSRVLAN_VID(msgbuf[1]); in txgbe_vf_set_vlan()
536 __rte_unused uint32_t vf, uint32_t *msgbuf) in txgbe_set_vf_lpe() argument
539 uint32_t max_frame = msgbuf[1]; in txgbe_set_vf_lpe()
557 uint32_t vf, uint32_t *msgbuf) in txgbe_negotiate_vf_api() argument
559 uint32_t api_version = msgbuf[1]; in txgbe_negotiate_vf_api()
580 txgbe_get_vf_queues(struct rte_eth_dev *eth_dev, uint32_t vf, uint32_t *msgbuf) in txgbe_get_vf_queues() argument
605 msgbuf[TXGBE_VF_RX_QUEUES] = RTE_ETH_DEV_SRIOV(eth_dev).nb_q_per_pool; in txgbe_get_vf_queues()
606 msgbuf[TXGBE_VF_TX_QUEUES] = RTE_ETH_DEV_SRIOV(eth_dev).nb_q_per_pool; in txgbe_get_vf_queues()
609 msgbuf[TXGBE_VF_DEF_QUEUE] = default_q; in txgbe_get_vf_queues()
655 msgbuf[TXGBE_VF_TRANS_VLAN] = num_tcs; in txgbe_get_vf_queues()
662 uint32_t vf, uint32_t *msgbuf) in txgbe_set_vf_mc_promisc() argument
666 int xcast_mode = msgbuf[1]; /* msgbuf contains the flag to enable */ in txgbe_set_vf_mc_promisc()
727 msgbuf[1] = xcast_mode; in txgbe_set_vf_mc_promisc()
733 txgbe_set_vf_macvlan_msg(struct rte_eth_dev *dev, uint32_t vf, uint32_t *msgbuf) in txgbe_set_vf_macvlan_msg() argument
737 uint8_t *new_mac = (uint8_t *)(&msgbuf[1]); in txgbe_set_vf_macvlan_msg()
739 int index = (msgbuf[0] & TXGBE_VT_MSGINFO_MASK) >> in txgbe_set_vf_macvlan_msg()
766 uint32_t msgbuf[TXGBE_P2VMBX_SIZE]; in txgbe_rcv_msg_from_vf() local
772 retval = txgbe_read_mbx(hw, msgbuf, mbx_size, vf); in txgbe_rcv_msg_from_vf()
779 if (msgbuf[0] & (TXGBE_VT_MSGTYPE_ACK | TXGBE_VT_MSGTYPE_NACK)) in txgbe_rcv_msg_from_vf()
791 ret_param.msg_type = msgbuf[0] & 0xFFFF; in txgbe_rcv_msg_from_vf()
792 ret_param.msg = (void *)msgbuf; in txgbe_rcv_msg_from_vf()
795 if (msgbuf[0] == TXGBE_VF_RESET) { in txgbe_rcv_msg_from_vf()
796 int ret = txgbe_vf_reset(eth_dev, vf, msgbuf); in txgbe_rcv_msg_from_vf()
819 switch ((msgbuf[0] & 0xFFFF)) { in txgbe_rcv_msg_from_vf()
822 retval = txgbe_vf_set_mac_addr(eth_dev, vf, msgbuf); in txgbe_rcv_msg_from_vf()
826 retval = txgbe_vf_set_multicast(eth_dev, vf, msgbuf); in txgbe_rcv_msg_from_vf()
830 retval = txgbe_set_vf_lpe(eth_dev, vf, msgbuf); in txgbe_rcv_msg_from_vf()
834 retval = txgbe_vf_set_vlan(eth_dev, vf, msgbuf); in txgbe_rcv_msg_from_vf()
837 retval = txgbe_negotiate_vf_api(eth_dev, vf, msgbuf); in txgbe_rcv_msg_from_vf()
840 retval = txgbe_get_vf_queues(eth_dev, vf, msgbuf); in txgbe_rcv_msg_from_vf()
845 retval = txgbe_set_vf_mc_promisc(eth_dev, vf, msgbuf); in txgbe_rcv_msg_from_vf()
849 retval = txgbe_set_vf_macvlan_msg(eth_dev, vf, msgbuf); in txgbe_rcv_msg_from_vf()
852 PMD_DRV_LOG(DEBUG, "Unhandled Msg %8.8x", (uint32_t)msgbuf[0]); in txgbe_rcv_msg_from_vf()
859 msgbuf[0] |= TXGBE_VT_MSGTYPE_NACK; in txgbe_rcv_msg_from_vf()
861 msgbuf[0] |= TXGBE_VT_MSGTYPE_ACK; in txgbe_rcv_msg_from_vf()
863 msgbuf[0] |= TXGBE_VT_MSGTYPE_CTS; in txgbe_rcv_msg_from_vf()
865 txgbe_write_mbx(hw, msgbuf, msg_size, vf); in txgbe_rcv_msg_from_vf()