Lines Matching defs:ascb

345 		struct asd_ascb *ascb = seq->escb_arr[i];
346 struct empty_scb *escb = &ascb->scb->escb;
348 ascb->edb_index = z;
722 struct asd_ascb *ascb;
729 ascb = asd_tc_index_find(seq, (int)le16_to_cpu(dl->index));
731 if (unlikely(!ascb)) {
732 ASD_DPRINTK("BUG:sequencer:dl:no ascb?!\n");
734 } else if (ascb->scb->header.opcode == EMPTY_SCB) {
736 } else if (!ascb->uldd_timer && !del_timer(&ascb->timer)) {
740 list_del_init(&ascb->list);
744 ascb->tasklet_complete(ascb, dl);
1035 struct asd_ascb *ascb;
1038 ascb = kmem_cache_zalloc(asd_ascb_cache, gfp_flags);
1040 if (ascb) {
1041 ascb->dma_scb.size = sizeof(struct scb);
1042 ascb->dma_scb.vaddr = dma_pool_zalloc(asd_ha->scb_pool,
1044 &ascb->dma_scb.dma_handle);
1045 if (!ascb->dma_scb.vaddr) {
1046 kmem_cache_free(asd_ascb_cache, ascb);
1049 asd_init_ascb(asd_ha, ascb);
1052 ascb->tc_index = asd_tc_index_get(seq, ascb);
1054 if (ascb->tc_index == -1)
1057 ascb->scb->header.index = cpu_to_le16((u16)ascb->tc_index);
1060 return ascb;
1062 dma_pool_free(asd_ha->scb_pool, ascb->dma_scb.vaddr,
1063 ascb->dma_scb.dma_handle);
1064 kmem_cache_free(asd_ascb_cache, ascb);
1065 ASD_DPRINTK("no index for ascb\n");
1077 * a linked list in two ways: by their list field of the ascb struct
1092 struct asd_ascb *ascb = asd_ascb_alloc(asd_ha, gfp_flags);
1094 if (!ascb)
1097 first = ascb;
1102 list_add_tail(&ascb->list, &first->list);
1104 cpu_to_le64(((u64)ascb->dma_scb.dma_handle));
1114 * @ascb: pointer to the head of an ascb list
1130 struct asd_ascb *ascb)
1133 struct asd_ascb *last = list_entry(ascb->list.prev,
1136 struct asd_dma_tok t = ascb->dma_scb;
1138 memcpy(seq->next_scb.vaddr, ascb->scb, sizeof(*ascb->scb));
1139 ascb->dma_scb = seq->next_scb;
1140 ascb->scb = ascb->dma_scb.vaddr;
1157 struct asd_ascb *ascb;
1158 list_for_each_entry(ascb, list, list) {
1159 if (!ascb->uldd_timer) {
1160 ascb->timer.function = asd_ascb_timedout;
1161 ascb->timer.expires = jiffies + AIC94XX_SCB_TIMEOUT;
1162 add_timer(&ascb->timer);
1170 * @ascb: pointer to the first aSCB in the list
1186 int asd_post_ascb_list(struct asd_ha_struct *asd_ha, struct asd_ascb *ascb,
1206 asd_swap_head_scb(asd_ha, ascb);
1208 __list_add(&list, ascb->list.prev, &ascb->list);
1223 * @ascb: pointer to the first empty SCB in the list
1231 * ascb, this function exists to generalize this. More specifically,
1233 * memcpy() at swap head, as opposed to for each ascb sent (in the
1238 int asd_post_escb_list(struct asd_ha_struct *asd_ha, struct asd_ascb *ascb,
1244 asd_swap_head_scb(asd_ha, ascb);
1339 struct asd_ascb *ascb;
1355 asd_printk("no memory for control phy ascb list\n");
1360 ascb = ascb_list;
1362 asd_build_control_phy(ascb, i, ENABLE_PHY);
1363 ascb = list_entry(ascb->list.next, struct asd_ascb, list);