• 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

84 static void asd_phy_event_tasklet(struct asd_ascb *ascb,
87 struct asd_ha_struct *asd_ha = ascb->ha;
234 static void asd_bytes_dmaed_tasklet(struct asd_ascb *ascb,
239 int edb_el = edb_id + ascb->edb_index;
240 struct asd_dma_tok *edb = ascb->ha->seq.edb_arr[edb_el];
241 struct asd_phy *phy = &ascb->ha->phys[phy_id];
253 asd_form_port(ascb->ha, phy);
257 static void asd_link_reset_err_tasklet(struct asd_ascb *ascb,
261 struct asd_ha_struct *asd_ha = ascb->ha;
294 struct asd_ascb *cp = asd_ascb_alloc_list(ascb->ha, &num,
303 if (asd_post_ascb_list(ascb->ha, cp, 1) != 0)
310 static void asd_primitive_rcvd_tasklet(struct asd_ascb *ascb,
315 struct sas_ha_struct *sas_ha = &ascb->ha->sas_ha;
317 struct asd_ha_struct *asd_ha = ascb->ha;
374 * @ascb: pointer to Empty SCB
381 void asd_invalidate_edb(struct asd_ascb *ascb, int edb_id)
383 struct asd_seq_data *seq = &ascb->ha->seq;
384 struct empty_scb *escb = &ascb->scb->escb;
386 struct asd_dma_tok *edb = seq->edb_arr[ascb->edb_index + edb_id];
397 ascb->dma_scb.vaddr,
398 (u64)ascb->dma_scb.dma_handle,
399 le64_to_cpu(ascb->scb->header.next_scb),
400 le16_to_cpu(ascb->scb->header.index),
401 ascb->scb->header.opcode);
406 if (!list_empty(&ascb->list))
407 list_del_init(&ascb->list);
408 i = asd_post_escb_list(ascb->ha, ascb, 1);
414 static void escb_tasklet_complete(struct asd_ascb *ascb,
417 struct asd_ha_struct *asd_ha = ascb->ha;
433 ascb->dma_scb.vaddr,
434 (unsigned long long)ascb->dma_scb.dma_handle,
436 le64_to_cpu(ascb->scb->header.next_scb),
437 le16_to_cpu(ascb->scb->header.index),
438 ascb->scb->header.opcode);
564 asd_bytes_dmaed_tasklet(ascb, dl, edb, phy_id);
569 asd_primitive_rcvd_tasklet(ascb, dl, phy_id);
573 asd_phy_event_tasklet(ascb, dl);
578 asd_link_reset_err_tasklet(ascb, dl, phy_id);
599 ascb->dma_scb.vaddr,
600 (unsigned long long)ascb->dma_scb.dma_handle,
602 le64_to_cpu(ascb->scb->header.next_scb),
603 le16_to_cpu(ascb->scb->header.index),
604 ascb->scb->header.opcode);
609 asd_invalidate_edb(ascb, edb);
631 * control_phy_tasklet_complete -- tasklet complete for CONTROL PHY ascb
632 * @ascb: pointer to an ascb
635 * This function completes a CONTROL PHY scb and frees the ascb.
641 static void control_phy_tasklet_complete(struct asd_ascb *ascb,
644 struct asd_ha_struct *asd_ha = ascb->ha;
645 struct scb *scb = ascb->scb;
648 struct asd_phy *phy = &ascb->ha->phys[phy_id];
713 asd_ascb_free(ascb);
763 * @ascb: pointer to an ascb
768 * is performed. @ascb is allocated with the list function.
769 * The caller can override the ascb->tasklet_complete to point
774 void asd_build_control_phy(struct asd_ascb *ascb, int phy_id, u8 subfunc)
776 struct asd_phy *phy = &ascb->ha->phys[phy_id];
777 struct scb *scb = ascb->scb;
816 ascb->tasklet_complete = control_phy_tasklet_complete;
826 * @data: unsigned long, a pointer to the ascb in question
832 * the ascb->timer.{function, data, expires} prior to calling the post
837 struct asd_ascb *ascb = (void *) data;
838 struct asd_seq_data *seq = &ascb->ha->seq;
841 ASD_DPRINTK("scb:0x%x timed out\n", ascb->scb->header.opcode);
845 list_del_init(&ascb->list);
848 asd_ascb_free(ascb);
866 struct asd_ascb *ascb;
889 ascb = asd_ascb_alloc_list(asd_ha, &res, GFP_KERNEL);
890 if (!ascb)
893 asd_build_control_phy(ascb, phy->id, phy_func_table[func]);
894 res = asd_post_ascb_list(asd_ha, ascb , 1);
896 asd_ascb_free(ascb);