Lines Matching refs:ascb
343 struct asd_ascb *ascb = seq->escb_arr[i]; in asd_assign_edbs2escbs() local
344 struct empty_scb *escb = &ascb->scb->escb; in asd_assign_edbs2escbs()
346 ascb->edb_index = z; in asd_assign_edbs2escbs()
720 struct asd_ascb *ascb; in asd_dl_tasklet_handler() local
727 ascb = asd_tc_index_find(seq, (int)le16_to_cpu(dl->index)); in asd_dl_tasklet_handler()
729 if (unlikely(!ascb)) { in asd_dl_tasklet_handler()
732 } else if (ascb->scb->header.opcode == EMPTY_SCB) { in asd_dl_tasklet_handler()
734 } else if (!ascb->uldd_timer && !del_timer(&ascb->timer)) { in asd_dl_tasklet_handler()
738 list_del_init(&ascb->list); in asd_dl_tasklet_handler()
742 ascb->tasklet_complete(ascb, dl); in asd_dl_tasklet_handler()
1033 struct asd_ascb *ascb; in asd_ascb_alloc() local
1036 ascb = kmem_cache_zalloc(asd_ascb_cache, gfp_flags); in asd_ascb_alloc()
1038 if (ascb) { in asd_ascb_alloc()
1039 ascb->dma_scb.size = sizeof(struct scb); in asd_ascb_alloc()
1040 ascb->dma_scb.vaddr = dma_pool_zalloc(asd_ha->scb_pool, in asd_ascb_alloc()
1042 &ascb->dma_scb.dma_handle); in asd_ascb_alloc()
1043 if (!ascb->dma_scb.vaddr) { in asd_ascb_alloc()
1044 kmem_cache_free(asd_ascb_cache, ascb); in asd_ascb_alloc()
1047 asd_init_ascb(asd_ha, ascb); in asd_ascb_alloc()
1050 ascb->tc_index = asd_tc_index_get(seq, ascb); in asd_ascb_alloc()
1052 if (ascb->tc_index == -1) in asd_ascb_alloc()
1055 ascb->scb->header.index = cpu_to_le16((u16)ascb->tc_index); in asd_ascb_alloc()
1058 return ascb; in asd_ascb_alloc()
1060 dma_pool_free(asd_ha->scb_pool, ascb->dma_scb.vaddr, in asd_ascb_alloc()
1061 ascb->dma_scb.dma_handle); in asd_ascb_alloc()
1062 kmem_cache_free(asd_ascb_cache, ascb); in asd_ascb_alloc()
1090 struct asd_ascb *ascb = asd_ascb_alloc(asd_ha, gfp_flags); in asd_ascb_alloc_list() local
1092 if (!ascb) in asd_ascb_alloc_list()
1095 first = ascb; in asd_ascb_alloc_list()
1100 list_add_tail(&ascb->list, &first->list); in asd_ascb_alloc_list()
1102 cpu_to_le64(((u64)ascb->dma_scb.dma_handle)); in asd_ascb_alloc_list()
1128 struct asd_ascb *ascb) in asd_swap_head_scb() argument
1131 struct asd_ascb *last = list_entry(ascb->list.prev, in asd_swap_head_scb()
1134 struct asd_dma_tok t = ascb->dma_scb; in asd_swap_head_scb()
1136 memcpy(seq->next_scb.vaddr, ascb->scb, sizeof(*ascb->scb)); in asd_swap_head_scb()
1137 ascb->dma_scb = seq->next_scb; in asd_swap_head_scb()
1138 ascb->scb = ascb->dma_scb.vaddr; in asd_swap_head_scb()
1155 struct asd_ascb *ascb; in asd_start_scb_timers() local
1156 list_for_each_entry(ascb, list, list) { in asd_start_scb_timers()
1157 if (!ascb->uldd_timer) { in asd_start_scb_timers()
1158 ascb->timer.function = asd_ascb_timedout; in asd_start_scb_timers()
1159 ascb->timer.expires = jiffies + AIC94XX_SCB_TIMEOUT; in asd_start_scb_timers()
1160 add_timer(&ascb->timer); in asd_start_scb_timers()
1184 int asd_post_ascb_list(struct asd_ha_struct *asd_ha, struct asd_ascb *ascb, in asd_post_ascb_list() argument
1204 asd_swap_head_scb(asd_ha, ascb); in asd_post_ascb_list()
1206 __list_add(&list, ascb->list.prev, &ascb->list); in asd_post_ascb_list()
1236 int asd_post_escb_list(struct asd_ha_struct *asd_ha, struct asd_ascb *ascb, in asd_post_escb_list() argument
1242 asd_swap_head_scb(asd_ha, ascb); in asd_post_escb_list()
1337 struct asd_ascb *ascb; in asd_enable_phys() local
1358 ascb = ascb_list; in asd_enable_phys()
1360 asd_build_control_phy(ascb, i, ENABLE_PHY); in asd_enable_phys()
1361 ascb = list_entry(ascb->list.next, struct asd_ascb, list); in asd_enable_phys()