Searched refs:p_chain (Results 1 – 4 of 4) sorted by relevance
191 static OSAL_INLINE u16 ecore_chain_get_prod_idx(struct ecore_chain *p_chain) in ecore_chain_get_prod_idx() argument193 OSAL_ASSERT(is_chain_u16(p_chain)); in ecore_chain_get_prod_idx()194 return p_chain->u.chain16.prod_idx; in ecore_chain_get_prod_idx()198 static OSAL_INLINE u32 ecore_chain_get_prod_idx_u32(struct ecore_chain *p_chain) in ecore_chain_get_prod_idx_u32() argument200 OSAL_ASSERT(is_chain_u32(p_chain)); in ecore_chain_get_prod_idx_u32()201 return p_chain->u.chain32.prod_idx; in ecore_chain_get_prod_idx_u32()205 static OSAL_INLINE u16 ecore_chain_get_cons_idx(struct ecore_chain *p_chain) in ecore_chain_get_cons_idx() argument207 OSAL_ASSERT(is_chain_u16(p_chain)); in ecore_chain_get_cons_idx()208 return p_chain->u.chain16.cons_idx; in ecore_chain_get_cons_idx()211 static OSAL_INLINE u32 ecore_chain_get_cons_idx_u32(struct ecore_chain *p_chain) in ecore_chain_get_cons_idx_u32() argument[all …]
320 struct ecore_chain *p_chain = &p_hwfn->p_spq->chain; in ecore_spq_hw_post() local322 u16 echo = ecore_chain_get_prod_idx(p_chain); in ecore_spq_hw_post()326 elem = ecore_chain_produce(p_chain); in ecore_spq_hw_post()335 OSAL_CPU_TO_LE16(ecore_chain_get_prod_idx(p_chain)); in ecore_spq_hw_post()348 p_db_data->agg_flags, ecore_chain_get_prod_idx(p_chain)); in ecore_spq_hw_post()423 struct ecore_chain *p_chain = &p_eq->chain; in ecore_eq_completion() local434 if ((fw_cons_idx & ecore_chain_get_usable_per_page(p_chain)) == in ecore_eq_completion()435 ecore_chain_get_usable_per_page(p_chain)) { in ecore_eq_completion()436 fw_cons_idx += ecore_chain_get_unusable_per_page(p_chain); in ecore_eq_completion()440 while (fw_cons_idx != ecore_chain_get_cons_idx(p_chain)) { in ecore_eq_completion()[all …]
6084 struct ecore_chain *p_chain) in ecore_chain_free_next_ptr() argument6086 void *p_virt = p_chain->p_virt_addr, *p_virt_next = OSAL_NULL; in ecore_chain_free_next_ptr()6087 dma_addr_t p_phys = p_chain->p_phys_addr, p_phys_next = 0; in ecore_chain_free_next_ptr()6094 size = p_chain->elem_size * p_chain->usable_per_page; in ecore_chain_free_next_ptr()6096 for (i = 0; i < p_chain->page_cnt; i++) { in ecore_chain_free_next_ptr()6113 struct ecore_chain *p_chain) in ecore_chain_free_single() argument6115 if (!p_chain->p_virt_addr) in ecore_chain_free_single()6118 OSAL_DMA_FREE_COHERENT(p_dev, p_chain->p_virt_addr, in ecore_chain_free_single()6119 p_chain->p_phys_addr, ECORE_CHAIN_PAGE_SIZE); in ecore_chain_free_single()6123 struct ecore_chain *p_chain) in ecore_chain_free_pbl() argument[all …]
567 struct ecore_chain *p_chain,577 struct ecore_chain *p_chain);