Lines Matching refs:ascb
289 struct asd_ascb *ascb) in asd_init_ascb() argument
291 INIT_LIST_HEAD(&ascb->list); in asd_init_ascb()
292 ascb->scb = ascb->dma_scb.vaddr; in asd_init_ascb()
293 ascb->ha = asd_ha; in asd_init_ascb()
294 ascb->timer.function = NULL; in asd_init_ascb()
295 init_timer(&ascb->timer); in asd_init_ascb()
296 ascb->tc_index = -1; in asd_init_ascb()
338 static inline void asd_ascb_free(struct asd_ascb *ascb) in asd_ascb_free() argument
340 if (ascb) { in asd_ascb_free()
341 struct asd_ha_struct *asd_ha = ascb->ha; in asd_ascb_free()
344 BUG_ON(!list_empty(&ascb->list)); in asd_ascb_free()
345 spin_lock_irqsave(&ascb->ha->seq.tc_index_lock, flags); in asd_ascb_free()
346 asd_tc_index_release(&ascb->ha->seq, ascb->tc_index); in asd_ascb_free()
347 spin_unlock_irqrestore(&ascb->ha->seq.tc_index_lock, flags); in asd_ascb_free()
348 dma_pool_free(asd_ha->scb_pool, ascb->dma_scb.vaddr, in asd_ascb_free()
349 ascb->dma_scb.dma_handle); in asd_ascb_free()
350 kmem_cache_free(asd_ascb_cache, ascb); in asd_ascb_free()
384 int asd_post_ascb_list(struct asd_ha_struct *asd_ha, struct asd_ascb *ascb,
386 int asd_post_escb_list(struct asd_ha_struct *asd_ha, struct asd_ascb *ascb,
390 void asd_build_control_phy(struct asd_ascb *ascb, int phy_id, u8 subfunc);