• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/scsi/aic7xxx/

Lines Matching refs:lstate

230 					       struct ahc_tmode_lstate *lstate,
3916 struct ahc_tmode_lstate* lstate;
3918 lstate = tstate->enabled_luns[devinfo->lun];
3919 if (lstate != NULL) {
3920 ahc_queue_lstate_event(ahc, lstate,
3924 ahc_send_lstate_events(ahc, lstate);
4293 struct ahc_tmode_lstate* lstate;
4295 lstate = tstate->enabled_luns[lun];
4296 if (lstate == NULL)
4299 ahc_queue_lstate_event(ahc, lstate, devinfo->our_scsiid,
4301 ahc_send_lstate_events(ahc, lstate);
4484 struct ahc_tmode_lstate *lstate;
4486 lstate = tstate->enabled_luns[j];
4487 if (lstate != NULL) {
4488 xpt_free_path(lstate->path);
4489 kfree(lstate);
6538 struct ahc_tmode_lstate* lstate;
6540 lstate = tstate->enabled_luns[lun];
6541 if (lstate == NULL)
6544 ahc_queue_lstate_event(ahc, lstate, CAM_TARGET_WILDCARD,
6546 ahc_send_lstate_events(ahc, lstate);
6677 ahc_queue_lstate_event(struct ahc_softc *ahc, struct ahc_tmode_lstate *lstate,
6683 xpt_freeze_devq(lstate->path, /*count*/1);
6684 if (lstate->event_w_idx >= lstate->event_r_idx)
6685 pending = lstate->event_w_idx - lstate->event_r_idx;
6688 - (lstate->event_r_idx - lstate->event_w_idx);
6698 lstate->event_r_idx = 0;
6699 lstate->event_w_idx = 0;
6700 xpt_release_devq(lstate->path, pending, /*runqueue*/FALSE);
6704 xpt_print_path(lstate->path);
6706 lstate->event_buffer[lstate->event_r_idx].event_type,
6707 lstate->event_buffer[lstate->event_r_idx].event_arg);
6708 lstate->event_r_idx++;
6709 if (lstate->event_r_idx == AHC_TMODE_EVENT_BUFFER_SIZE)
6710 lstate->event_r_idx = 0;
6711 xpt_release_devq(lstate->path, /*count*/1, /*runqueue*/FALSE);
6714 event = &lstate->event_buffer[lstate->event_w_idx];
6718 lstate->event_w_idx++;
6719 if (lstate->event_w_idx == AHC_TMODE_EVENT_BUFFER_SIZE)
6720 lstate->event_w_idx = 0;
6728 ahc_send_lstate_events(struct ahc_softc *ahc, struct ahc_tmode_lstate *lstate)
6733 while (lstate->event_r_idx != lstate->event_w_idx
6734 && (ccbh = SLIST_FIRST(&lstate->immed_notifies)) != NULL) {
6737 event = &lstate->event_buffer[lstate->event_r_idx];
6738 SLIST_REMOVE_HEAD(&lstate->immed_notifies, sim_links.sle);
6753 lstate->event_r_idx++;
6754 if (lstate->event_r_idx == AHC_TMODE_EVENT_BUFFER_SIZE)
6755 lstate->event_r_idx = 0;
7290 struct ahc_tmode_lstate **lstate,
7304 *lstate = ahc->black_hole;
7316 *lstate = NULL;
7318 *lstate =
7322 if (notfound_failure != 0 && *lstate == NULL)
7332 struct ahc_tmode_lstate *lstate;
7343 status = ahc_find_tmode_devs(ahc, sim, ccb, &tstate, &lstate,
7464 if (lstate != NULL) {
7495 lstate = kmalloc(sizeof(*lstate), GFP_ATOMIC);
7496 if (lstate == NULL) {
7498 printk("Couldn't allocate lstate\n");
7502 memset(lstate, 0, sizeof(*lstate));
7503 status = xpt_create_path(&lstate->path, /*periph*/NULL,
7508 kfree(lstate);
7514 SLIST_INIT(&lstate->accept_tios);
7515 SLIST_INIT(&lstate->immed_notifies);
7519 tstate->enabled_luns[lun] = lstate;
7571 ahc->black_hole = lstate;
7590 if (lstate == NULL) {
7611 if (SLIST_FIRST(&lstate->accept_tios) != NULL) {
7616 if (SLIST_FIRST(&lstate->immed_notifies) != NULL) {
7628 xpt_free_path(lstate->path);
7629 kfree(lstate);
7798 struct ahc_tmode_lstate *lstate;
7811 lstate = NULL;
7813 lstate = tstate->enabled_luns[lun];
7818 if (lstate == NULL)
7819 lstate = ahc->black_hole;
7821 atio = (struct ccb_accept_tio*)SLIST_FIRST(&lstate->accept_tios);
7832 SLIST_REMOVE_HEAD(&lstate->accept_tios, sim_links.sle);
7834 if (lstate == ahc->black_hole) {
7890 ahc->pending_device = lstate;