Lines Matching refs:ascb
67 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()
286 if (asd_post_ascb_list(ascb->ha, cp, 1) != 0) in asd_link_reset_err_tasklet()
293 static void asd_primitive_rcvd_tasklet(struct asd_ascb *ascb, in asd_primitive_rcvd_tasklet() argument
298 struct sas_ha_struct *sas_ha = &ascb->ha->sas_ha; in asd_primitive_rcvd_tasklet()
300 struct asd_ha_struct *asd_ha = ascb->ha; in asd_primitive_rcvd_tasklet()
366 void asd_invalidate_edb(struct asd_ascb *ascb, int edb_id) in asd_invalidate_edb() argument
368 struct asd_seq_data *seq = &ascb->ha->seq; in asd_invalidate_edb()
369 struct empty_scb *escb = &ascb->scb->escb; in asd_invalidate_edb()
371 struct asd_dma_tok *edb = seq->edb_arr[ascb->edb_index + edb_id]; in asd_invalidate_edb()
391 if (!list_empty(&ascb->list)) in asd_invalidate_edb()
392 list_del_init(&ascb->list); in asd_invalidate_edb()
393 i = asd_post_escb_list(ascb->ha, ascb, 1); in asd_invalidate_edb()
399 static void escb_tasklet_complete(struct asd_ascb *ascb, in escb_tasklet_complete() argument
402 struct asd_ha_struct *asd_ha = ascb->ha; in escb_tasklet_complete()
418 ascb->dma_scb.vaddr, in escb_tasklet_complete()
419 (unsigned long long)ascb->dma_scb.dma_handle, in escb_tasklet_complete()
421 le64_to_cpu(ascb->scb->header.next_scb), in escb_tasklet_complete()
422 le16_to_cpu(ascb->scb->header.index), in escb_tasklet_complete()
423 ascb->scb->header.opcode); in escb_tasklet_complete()
549 asd_bytes_dmaed_tasklet(ascb, dl, edb, phy_id); in escb_tasklet_complete()
554 asd_primitive_rcvd_tasklet(ascb, dl, phy_id); in escb_tasklet_complete()
558 asd_phy_event_tasklet(ascb, dl); in escb_tasklet_complete()
563 asd_link_reset_err_tasklet(ascb, dl, phy_id); in escb_tasklet_complete()
584 ascb->dma_scb.vaddr, in escb_tasklet_complete()
585 (unsigned long long)ascb->dma_scb.dma_handle, in escb_tasklet_complete()
587 le64_to_cpu(ascb->scb->header.next_scb), in escb_tasklet_complete()
588 le16_to_cpu(ascb->scb->header.index), in escb_tasklet_complete()
589 ascb->scb->header.opcode); in escb_tasklet_complete()
594 asd_invalidate_edb(ascb, edb); in escb_tasklet_complete()
626 static void control_phy_tasklet_complete(struct asd_ascb *ascb, in control_phy_tasklet_complete() argument
629 struct asd_ha_struct *asd_ha = ascb->ha; in control_phy_tasklet_complete()
630 struct scb *scb = ascb->scb; in control_phy_tasklet_complete()
633 struct asd_phy *phy = &ascb->ha->phys[phy_id]; in control_phy_tasklet_complete()
699 asd_ascb_free(ascb); in control_phy_tasklet_complete()
766 void asd_build_control_phy(struct asd_ascb *ascb, int phy_id, u8 subfunc) in asd_build_control_phy() argument
768 struct asd_phy *phy = &ascb->ha->phys[phy_id]; in asd_build_control_phy()
769 struct scb *scb = ascb->scb; in asd_build_control_phy()
809 ascb->tasklet_complete = control_phy_tasklet_complete; in asd_build_control_phy()
816 static void link_adm_tasklet_complete(struct asd_ascb *ascb,
820 struct initiate_link_adm *link_adm = &ascb->scb->link_adm;
830 asd_ascb_free(ascb);
833 void asd_build_initiate_link_adm_task(struct asd_ascb *ascb, int phy_id,
836 struct scb *scb = ascb->scb;
845 ascb->tasklet_complete = link_adm_tasklet_complete;
865 struct asd_ascb *ascb = from_timer(ascb, t, timer); in asd_ascb_timedout() local
866 struct asd_seq_data *seq = &ascb->ha->seq; in asd_ascb_timedout()
869 ASD_DPRINTK("scb:0x%x timed out\n", ascb->scb->header.opcode); in asd_ascb_timedout()
873 list_del_init(&ascb->list); in asd_ascb_timedout()
876 asd_ascb_free(ascb); in asd_ascb_timedout()
894 struct asd_ascb *ascb; in asd_control_phy() local
918 ascb = asd_ascb_alloc_list(asd_ha, &res, GFP_KERNEL); in asd_control_phy()
919 if (!ascb) in asd_control_phy()
922 asd_build_control_phy(ascb, phy->id, phy_func_table[func]); in asd_control_phy()
923 res = asd_post_ascb_list(asd_ha, ascb , 1); in asd_control_phy()
925 asd_ascb_free(ascb); in asd_control_phy()