Searched refs:p_chain (Results 1 – 4 of 4) sorted by relevance
198 static OSAL_INLINE u16 ecore_chain_get_prod_idx(struct ecore_chain *p_chain) in ecore_chain_get_prod_idx() argument200 OSAL_ASSERT(is_chain_u16(p_chain)); in ecore_chain_get_prod_idx()201 return p_chain->u.chain16.prod_idx; in ecore_chain_get_prod_idx()205 static OSAL_INLINE u32 ecore_chain_get_prod_idx_u32(struct ecore_chain *p_chain) in ecore_chain_get_prod_idx_u32() argument207 OSAL_ASSERT(is_chain_u32(p_chain)); in ecore_chain_get_prod_idx_u32()208 return p_chain->u.chain32.prod_idx; in ecore_chain_get_prod_idx_u32()212 static OSAL_INLINE u16 ecore_chain_get_cons_idx(struct ecore_chain *p_chain) in ecore_chain_get_cons_idx() argument214 OSAL_ASSERT(is_chain_u16(p_chain)); in ecore_chain_get_cons_idx()215 return p_chain->u.chain16.cons_idx; in ecore_chain_get_cons_idx()218 static OSAL_INLINE u32 ecore_chain_get_cons_idx_u32(struct ecore_chain *p_chain) in ecore_chain_get_cons_idx_u32() argument[all …]
309 struct ecore_chain *p_chain = &p_hwfn->p_spq->chain; in ecore_spq_hw_post() local310 u16 echo = ecore_chain_get_prod_idx(p_chain); in ecore_spq_hw_post()315 elem = ecore_chain_produce(p_chain); in ecore_spq_hw_post()329 db.spq_prod = OSAL_CPU_TO_LE16(ecore_chain_get_prod_idx(p_chain)); in ecore_spq_hw_post()342 db.agg_flags, ecore_chain_get_prod_idx(p_chain)); in ecore_spq_hw_post()421 struct ecore_chain *p_chain = &p_eq->chain; in ecore_eq_completion() local432 if ((fw_cons_idx & ecore_chain_get_usable_per_page(p_chain)) == in ecore_eq_completion()433 ecore_chain_get_usable_per_page(p_chain)) { in ecore_eq_completion()434 fw_cons_idx += ecore_chain_get_unusable_per_page(p_chain); in ecore_eq_completion()438 while (fw_cons_idx != ecore_chain_get_cons_idx(p_chain)) { in ecore_eq_completion()[all …]
4174 struct ecore_chain *p_chain) in ecore_chain_free_next_ptr() argument4176 void *p_virt = p_chain->p_virt_addr, *p_virt_next = OSAL_NULL; in ecore_chain_free_next_ptr()4177 dma_addr_t p_phys = p_chain->p_phys_addr, p_phys_next = 0; in ecore_chain_free_next_ptr()4184 size = p_chain->elem_size * p_chain->usable_per_page; in ecore_chain_free_next_ptr()4186 for (i = 0; i < p_chain->page_cnt; i++) { in ecore_chain_free_next_ptr()4203 struct ecore_chain *p_chain) in ecore_chain_free_single() argument4205 if (!p_chain->p_virt_addr) in ecore_chain_free_single()4208 OSAL_DMA_FREE_COHERENT(p_dev, p_chain->p_virt_addr, in ecore_chain_free_single()4209 p_chain->p_phys_addr, ECORE_CHAIN_PAGE_SIZE); in ecore_chain_free_single()4213 struct ecore_chain *p_chain) in ecore_chain_free_pbl() argument[all …]
529 struct ecore_chain *p_chain,539 struct ecore_chain *p_chain);