src/dpdk/drivers/net/ice/base/ice_common.c
enum ice_status
ice_sched_query_elem(struct ice_hw *hw, u32 node_teid,
		     struct ice_aqc_txsched_elem_data *buf)
{
	u16 buf_size, num_elem_ret = 0;
	enum ice_status status;

	buf_size = sizeof(*buf);
	ice_memset(buf, 0, buf_size, ICE_NONDMA_MEM);
	buf->node_teid = CPU_TO_LE32(node_teid);
	status = ice_aq_query_sched_elems(hw, 1, buf, buf_size, &num_elem_ret,
					  NULL);
	if (status != ICE_SUCCESS || num_elem_ret != 1)
		ice_debug(hw, ICE_DBG_SCHED, "query element failed\n");
	return status;
}
/**
 * ice_sched_query_elem - query element information from HW
 * @hw: pointer to the HW struct
 * @node_teid: node TEID to be queried
 * @buf: buffer to element information
 *
 * This function queries HW element information
 */
query element information from HW
@hw: pointer to the HW struct
@node_teid: node TEID to be queried
@buf: buffer to element information

This function queries HW element information
query element information from HW @hw : pointer to the HW struct @node_teid : node TEID to be queried @buf : buffer to element information This function queries HW element information
enum ice_status
ice_sched_query_elem(struct ice_hw *hw, u32 node_teid,
		     struct ice_aqc_txsched_elem_data *buf)
{
	u16 buf_size, num_elem_ret = 0;
	enum ice_status status;
	buf_size = sizeof(*buf);
	ice_memset(buf, 0, buf_size, ICE_NONDMA_MEM);
	buf->node_teid = CPU_TO_LE32(node_teid);
	status = ice_aq_query_sched_elems(hw, 1, buf, buf_size, &num_elem_ret,
					  NULL);
	if (status != ICE_SUCCESS || num_elem_ret != 1)
		ice_debug(hw, ICE_DBG_SCHED, "query element failed\n");
	return status;
}
enum ice_status ice_sched_query_elem ( struct ice_hw * hw , u32 node_teid , struct ice_aqc_txsched_elem_data * buf ) { u16 buf_size , num_elem_ret = 0 ; enum ice_status status ; buf_size = sizeof ( * buf ) ; ice_memset ( buf , 0 , buf_size , ICE_NONDMA_MEM ) ; buf -> node_teid = CPU_TO_LE32 ( node_teid ) ; status = ice_aq_query_sched_elems ( hw , 1 , buf , buf_size , & num_elem_ret , NULL ) ; if ( status != ICE_SUCCESS || num_elem_ret != 1 ) ice_debug ( hw , ICE_DBG_SCHED , " \n " ) ; return status ; }
ice_sched_query_elem - query element information from HW
 @hw: pointer to the HW struct
 @node_teid: node TEID to be queried
 @buf: buffer to element information
ice_sched_query_elem - query element information from HW @hw : pointer to the HW struct @node_teid : node TEID to be queried @buf : buffer to element information