src/dpdk/drivers/net/hinic/base/hinic_pmd_eqs.c
static void aeq_elements_init(struct hinic_eq *eq, u32 init_val)
{
	struct hinic_aeq_elem *aeqe;
	u16 i;

	for (i = 0; i < eq->eq_len; i++) {
		aeqe = GET_AEQ_ELEM(eq, i);
		aeqe->desc = cpu_to_be32(init_val);
	}

	rte_wmb();	/* Write the init values */
}
/**
 * aeq_elements_init - initialize all the elements in the aeq
 * @eq: the event queue
 * @init_val: value to init with it the elements
 */
initialize all the elements in the aeq
@eq: the event queue
@init_val: value to init with it the elements
initialize all the elements in the aeq @eq : the event queue @init_val : value to init with it the elements
static void aeq_elements_init(struct hinic_eq *eq, u32 init_val)
{
	struct hinic_aeq_elem *aeqe;
	u16 i;
	for (i = 0; i < eq->eq_len; i++) {
		aeqe = GET_AEQ_ELEM(eq, i);
		aeqe->desc = cpu_to_be32(init_val);
	}
	rte_wmb();	
}
static void aeq_elements_init ( struct hinic_eq * eq , u32 init_val ) { struct hinic_aeq_elem * aeqe ; u16 i ; for ( i = 0 ; i < eq -> eq_len ; i ++ ) { aeqe = GET_AEQ_ELEM ( eq , i ) ; aeqe -> desc = cpu_to_be32 ( init_val ) ; } rte_wmb ( ) ; }
aeq_elements_init - initialize all the elements in the aeq
 @eq: the event queue
 @init_val: value to init with it the elements
aeq_elements_init - initialize all the elements in the aeq @eq : the event queue @init_val : value to init with it the elements
/* Write the init values */