• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/aic94xx/

Lines Matching defs:ascb

35 static int asd_enqueue_internal(struct asd_ascb *ascb,
42 ascb->tasklet_complete = tasklet_complete;
43 ascb->uldd_timer = 1;
45 ascb->timer.data = (unsigned long) ascb;
46 ascb->timer.function = timed_out;
47 ascb->timer.expires = jiffies + AIC94XX_SCB_TIMEOUT;
49 add_timer(&ascb->timer);
51 res = asd_post_ascb_list(ascb->ha, ascb, 1);
53 del_timer(&ascb->timer);
75 static void asd_clear_nexus_tasklet_complete(struct asd_ascb *ascb,
78 struct tasklet_completion_status *tcs = ascb->uldd_task;
80 if (!del_timer(&ascb->timer)) {
86 complete(ascb->completion);
87 asd_ascb_free(ascb);
92 struct asd_ascb *ascb = (void *)data;
93 struct tasklet_completion_status *tcs = ascb->uldd_task;
97 complete(ascb->completion);
101 struct asd_ascb *ascb; \
109 ascb = asd_ascb_alloc_list(asd_ha, &res, GFP_KERNEL); \
110 if (!ascb) \
113 ascb->completion = &completion; \
114 ascb->uldd_task = &tcs; \
115 scb = ascb->scb; \
120 res = asd_enqueue_internal(ascb, asd_clear_nexus_tasklet_complete, \
131 asd_ascb_free(ascb); \
263 struct asd_ascb *ascb = (void *) data;
264 struct tasklet_completion_status *tcs = ascb->uldd_task;
268 complete(ascb->completion);
271 static int asd_get_tmf_resp_tasklet(struct asd_ascb *ascb,
274 struct asd_ha_struct *asd_ha = ascb->ha;
302 ascb->tag = *(__be16 *)(edb->vaddr+4);
308 ascb->tag_valid = 1;
314 static void asd_tmf_tasklet_complete(struct asd_ascb *ascb,
319 if (!del_timer(&ascb->timer))
322 tcs = ascb->uldd_task;
328 tcs->tmf_state = asd_get_tmf_resp_tasklet(ascb, dl);
329 tcs->tag_valid = ascb->tag_valid;
330 tcs->tag = ascb->tag;
333 complete(ascb->completion);
334 asd_ascb_free(ascb);
405 struct asd_ascb *ascb = NULL;
423 ascb = asd_ascb_alloc_list(asd_ha, &res, GFP_KERNEL);
424 if (!ascb)
427 ascb->uldd_task = &tcs;
428 ascb->completion = &completion;
429 scb = ascb->scb;
468 res = asd_enqueue_internal(ascb, asd_tmf_tasklet_complete,
549 asd_ascb_free(ascb);
573 struct asd_ascb *ascb;
582 ascb = asd_ascb_alloc_list(asd_ha, &res, GFP_KERNEL);
583 if (!ascb)
586 ascb->completion = &completion;
587 ascb->uldd_task = &tcs;
588 scb = ascb->scb;
616 res = asd_enqueue_internal(ascb, asd_tmf_tasklet_complete,
647 asd_ascb_free(ascb);
699 struct asd_ascb *ascb = task->lldd_task;
702 if (ascb) {
703 index = ascb->tc_index;