Lines Matching refs:ascb
271 struct asd_ascb *ascb) in asd_init_ascb() argument
273 INIT_LIST_HEAD(&ascb->list); in asd_init_ascb()
274 ascb->scb = ascb->dma_scb.vaddr; in asd_init_ascb()
275 ascb->ha = asd_ha; in asd_init_ascb()
276 timer_setup(&ascb->timer, NULL, 0); in asd_init_ascb()
277 ascb->tc_index = -1; in asd_init_ascb()
319 static inline void asd_ascb_free(struct asd_ascb *ascb) in asd_ascb_free() argument
321 if (ascb) { in asd_ascb_free()
322 struct asd_ha_struct *asd_ha = ascb->ha; in asd_ascb_free()
325 BUG_ON(!list_empty(&ascb->list)); in asd_ascb_free()
326 spin_lock_irqsave(&ascb->ha->seq.tc_index_lock, flags); in asd_ascb_free()
327 asd_tc_index_release(&ascb->ha->seq, ascb->tc_index); in asd_ascb_free()
328 spin_unlock_irqrestore(&ascb->ha->seq.tc_index_lock, flags); in asd_ascb_free()
329 dma_pool_free(asd_ha->scb_pool, ascb->dma_scb.vaddr, in asd_ascb_free()
330 ascb->dma_scb.dma_handle); in asd_ascb_free()
331 kmem_cache_free(asd_ascb_cache, ascb); in asd_ascb_free()
365 int asd_post_ascb_list(struct asd_ha_struct *asd_ha, struct asd_ascb *ascb,
367 int asd_post_escb_list(struct asd_ha_struct *asd_ha, struct asd_ascb *ascb,
371 void asd_build_control_phy(struct asd_ascb *ascb, int phy_id, u8 subfunc);