Home
last modified time | relevance | path

Searched refs:ascb (Results 1 – 7 of 7) sorted by relevance

/drivers/scsi/aic94xx/
Daic94xx_tmf.c17 static int asd_enqueue_internal(struct asd_ascb *ascb, in asd_enqueue_internal() argument
24 ascb->tasklet_complete = tasklet_complete; in asd_enqueue_internal()
25 ascb->uldd_timer = 1; in asd_enqueue_internal()
27 ascb->timer.function = timed_out; in asd_enqueue_internal()
28 ascb->timer.expires = jiffies + AIC94XX_SCB_TIMEOUT; in asd_enqueue_internal()
30 add_timer(&ascb->timer); in asd_enqueue_internal()
32 res = asd_post_ascb_list(ascb->ha, ascb, 1); in asd_enqueue_internal()
34 del_timer(&ascb->timer); in asd_enqueue_internal()
56 static void asd_clear_nexus_tasklet_complete(struct asd_ascb *ascb, in asd_clear_nexus_tasklet_complete() argument
59 struct tasklet_completion_status *tcs = ascb->uldd_task; in asd_clear_nexus_tasklet_complete()
[all …]
Daic94xx_scb.c67 static void asd_phy_event_tasklet(struct asd_ascb *ascb, in asd_phy_event_tasklet() argument
70 struct asd_ha_struct *asd_ha = ascb->ha; in asd_phy_event_tasklet()
218 static void asd_bytes_dmaed_tasklet(struct asd_ascb *ascb, in asd_bytes_dmaed_tasklet() argument
223 int edb_el = edb_id + ascb->edb_index; in asd_bytes_dmaed_tasklet()
224 struct asd_dma_tok *edb = ascb->ha->seq.edb_arr[edb_el]; in asd_bytes_dmaed_tasklet()
225 struct asd_phy *phy = &ascb->ha->phys[phy_id]; in asd_bytes_dmaed_tasklet()
236 asd_form_port(ascb->ha, phy); in asd_bytes_dmaed_tasklet()
240 static void asd_link_reset_err_tasklet(struct asd_ascb *ascb, in asd_link_reset_err_tasklet() argument
244 struct asd_ha_struct *asd_ha = ascb->ha; in asd_link_reset_err_tasklet()
277 struct asd_ascb *cp = asd_ascb_alloc_list(ascb->ha, &num, in asd_link_reset_err_tasklet()
[all …]
Daic94xx_task.c40 struct asd_ascb *ascb = task->lldd_task; in asd_map_scatterlist() local
41 struct asd_ha_struct *asd_ha = ascb->ha; in asd_map_scatterlist()
75 ascb->sg_arr = asd_alloc_coherent(asd_ha, in asd_map_scatterlist()
78 if (!ascb->sg_arr) { in asd_map_scatterlist()
84 &((struct sg_el *)ascb->sg_arr->vaddr)[i]; in asd_map_scatterlist()
100 sg_arr[2].bus_addr=cpu_to_le64((u64)ascb->sg_arr->dma_handle); in asd_map_scatterlist()
119 static void asd_unmap_scatterlist(struct asd_ascb *ascb) in asd_unmap_scatterlist() argument
121 struct asd_ha_struct *asd_ha = ascb->ha; in asd_unmap_scatterlist()
122 struct sas_task *task = ascb->uldd_task; in asd_unmap_scatterlist()
129 le64_to_cpu(ascb->scb->ssp_task.sg_element[0].bus_addr); in asd_unmap_scatterlist()
[all …]
Daic94xx_hwi.h271 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()
[all …]
Daic94xx_hwi.c345 struct asd_ascb *ascb = seq->escb_arr[i]; in asd_assign_edbs2escbs() local
346 struct empty_scb *escb = &ascb->scb->escb; in asd_assign_edbs2escbs()
348 ascb->edb_index = z; in asd_assign_edbs2escbs()
722 struct asd_ascb *ascb; in asd_dl_tasklet_handler() local
729 ascb = asd_tc_index_find(seq, (int)le16_to_cpu(dl->index)); in asd_dl_tasklet_handler()
731 if (unlikely(!ascb)) { in asd_dl_tasklet_handler()
734 } else if (ascb->scb->header.opcode == EMPTY_SCB) { in asd_dl_tasklet_handler()
736 } else if (!ascb->uldd_timer && !del_timer(&ascb->timer)) { in asd_dl_tasklet_handler()
740 list_del_init(&ascb->list); in asd_dl_tasklet_handler()
744 ascb->tasklet_complete(ascb, dl); in asd_dl_tasklet_handler()
[all …]
Daic94xx.h54 void asd_invalidate_edb(struct asd_ascb *ascb, int edb_id);
Daic94xx_init.c862 struct asd_ascb *ascb = list_entry(pos, struct asd_ascb, list); in asd_free_queues() local
869 del_timer_sync(&ascb->timer); in asd_free_queues()
870 WARN_ON(ascb->scb->header.opcode != CONTROL_PHY); in asd_free_queues()
874 asd_ascb_free(ascb); in asd_free_queues()