Lines Matching defs:ascb
343 struct asd_ascb *ascb = seq->escb_arr[i];
344 struct empty_scb *escb = &ascb->scb->escb;
346 ascb->edb_index = z;
720 struct asd_ascb *ascb;
727 ascb = asd_tc_index_find(seq, (int)le16_to_cpu(dl->index));
729 if (unlikely(!ascb)) {
730 ASD_DPRINTK("BUG:sequencer:dl:no ascb?!\n");
732 } else if (ascb->scb->header.opcode == EMPTY_SCB) {
734 } else if (!ascb->uldd_timer && !del_timer(&ascb->timer)) {
738 list_del_init(&ascb->list);
742 ascb->tasklet_complete(ascb, dl);
1033 struct asd_ascb *ascb;
1036 ascb = kmem_cache_zalloc(asd_ascb_cache, gfp_flags);
1038 if (ascb) {
1039 ascb->dma_scb.size = sizeof(struct scb);
1040 ascb->dma_scb.vaddr = dma_pool_zalloc(asd_ha->scb_pool,
1042 &ascb->dma_scb.dma_handle);
1043 if (!ascb->dma_scb.vaddr) {
1044 kmem_cache_free(asd_ascb_cache, ascb);
1047 asd_init_ascb(asd_ha, ascb);
1050 ascb->tc_index = asd_tc_index_get(seq, ascb);
1052 if (ascb->tc_index == -1)
1055 ascb->scb->header.index = cpu_to_le16((u16)ascb->tc_index);
1058 return ascb;
1060 dma_pool_free(asd_ha->scb_pool, ascb->dma_scb.vaddr,
1061 ascb->dma_scb.dma_handle);
1062 kmem_cache_free(asd_ascb_cache, ascb);
1063 ASD_DPRINTK("no index for ascb\n");
1075 * a linked list in two ways: by their list field of the ascb struct
1090 struct asd_ascb *ascb = asd_ascb_alloc(asd_ha, gfp_flags);
1092 if (!ascb)
1095 first = ascb;
1100 list_add_tail(&ascb->list, &first->list);
1102 cpu_to_le64(((u64)ascb->dma_scb.dma_handle));
1112 * @ascb: pointer to the head of an ascb list
1128 struct asd_ascb *ascb)
1131 struct asd_ascb *last = list_entry(ascb->list.prev,
1134 struct asd_dma_tok t = ascb->dma_scb;
1136 memcpy(seq->next_scb.vaddr, ascb->scb, sizeof(*ascb->scb));
1137 ascb->dma_scb = seq->next_scb;
1138 ascb->scb = ascb->dma_scb.vaddr;
1155 struct asd_ascb *ascb;
1156 list_for_each_entry(ascb, list, list) {
1157 if (!ascb->uldd_timer) {
1158 ascb->timer.function = asd_ascb_timedout;
1159 ascb->timer.expires = jiffies + AIC94XX_SCB_TIMEOUT;
1160 add_timer(&ascb->timer);
1168 * @ascb: pointer to the first aSCB in the list
1184 int asd_post_ascb_list(struct asd_ha_struct *asd_ha, struct asd_ascb *ascb,
1204 asd_swap_head_scb(asd_ha, ascb);
1206 __list_add(&list, ascb->list.prev, &ascb->list);
1221 * @ascb: pointer to the first empty SCB in the list
1229 * ascb, this function exists to generalize this. More specifically,
1231 * memcpy() at swap head, as opposed to for each ascb sent (in the
1236 int asd_post_escb_list(struct asd_ha_struct *asd_ha, struct asd_ascb *ascb,
1242 asd_swap_head_scb(asd_ha, ascb);
1337 struct asd_ascb *ascb;
1353 asd_printk("no memory for control phy ascb list\n");
1358 ascb = ascb_list;
1360 asd_build_control_phy(ascb, i, ENABLE_PHY);
1361 ascb = list_entry(ascb->list.next, struct asd_ascb, list);