• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/scsi/aic7xxx/

Lines Matching defs:lstate

231 					       struct ahc_tmode_lstate *lstate,
3359 struct ahc_tmode_lstate* lstate;
3361 lstate = tstate->enabled_luns[devinfo->lun];
3362 if (lstate != NULL) {
3363 ahc_queue_lstate_event(ahc, lstate,
3367 ahc_send_lstate_events(ahc, lstate);
3736 struct ahc_tmode_lstate* lstate;
3738 lstate = tstate->enabled_luns[lun];
3739 if (lstate == NULL)
3742 ahc_queue_lstate_event(ahc, lstate, devinfo->our_scsiid,
3744 ahc_send_lstate_events(ahc, lstate);
3929 struct ahc_tmode_lstate *lstate;
3931 lstate = tstate->enabled_luns[j];
3932 if (lstate != NULL) {
3933 xpt_free_path(lstate->path);
3934 free(lstate, M_DEVBUF);
5985 struct ahc_tmode_lstate* lstate;
5987 lstate = tstate->enabled_luns[lun];
5988 if (lstate == NULL)
5991 ahc_queue_lstate_event(ahc, lstate, CAM_TARGET_WILDCARD,
5993 ahc_send_lstate_events(ahc, lstate);
6124 ahc_queue_lstate_event(struct ahc_softc *ahc, struct ahc_tmode_lstate *lstate,
6130 xpt_freeze_devq(lstate->path, /*count*/1);
6131 if (lstate->event_w_idx >= lstate->event_r_idx)
6132 pending = lstate->event_w_idx - lstate->event_r_idx;
6135 - (lstate->event_r_idx - lstate->event_w_idx);
6145 lstate->event_r_idx = 0;
6146 lstate->event_w_idx = 0;
6147 xpt_release_devq(lstate->path, pending, /*runqueue*/FALSE);
6151 xpt_print_path(lstate->path);
6153 lstate->event_buffer[lstate->event_r_idx].event_type,
6154 lstate->event_buffer[lstate->event_r_idx].event_arg);
6155 lstate->event_r_idx++;
6156 if (lstate->event_r_idx == AHC_TMODE_EVENT_BUFFER_SIZE)
6157 lstate->event_r_idx = 0;
6158 xpt_release_devq(lstate->path, /*count*/1, /*runqueue*/FALSE);
6161 event = &lstate->event_buffer[lstate->event_w_idx];
6165 lstate->event_w_idx++;
6166 if (lstate->event_w_idx == AHC_TMODE_EVENT_BUFFER_SIZE)
6167 lstate->event_w_idx = 0;
6175 ahc_send_lstate_events(struct ahc_softc *ahc, struct ahc_tmode_lstate *lstate)
6180 while (lstate->event_r_idx != lstate->event_w_idx
6181 && (ccbh = SLIST_FIRST(&lstate->immed_notifies)) != NULL) {
6184 event = &lstate->event_buffer[lstate->event_r_idx];
6185 SLIST_REMOVE_HEAD(&lstate->immed_notifies, sim_links.sle);
6200 lstate->event_r_idx++;
6201 if (lstate->event_r_idx == AHC_TMODE_EVENT_BUFFER_SIZE)
6202 lstate->event_r_idx = 0;
6737 struct ahc_tmode_lstate **lstate,
6751 *lstate = ahc->black_hole;
6763 *lstate = NULL;
6765 *lstate =
6769 if (notfound_failure != 0 && *lstate == NULL)
6779 struct ahc_tmode_lstate *lstate;
6790 status = ahc_find_tmode_devs(ahc, sim, ccb, &tstate, &lstate,
6911 if (lstate != NULL) {
6942 lstate = malloc(sizeof(*lstate), M_DEVBUF, M_NOWAIT);
6943 if (lstate == NULL) {
6945 printf("Couldn't allocate lstate\n");
6949 memset(lstate, 0, sizeof(*lstate));
6950 status = xpt_create_path(&lstate->path, /*periph*/NULL,
6955 free(lstate, M_DEVBUF);
6961 SLIST_INIT(&lstate->accept_tios);
6962 SLIST_INIT(&lstate->immed_notifies);
6966 tstate->enabled_luns[lun] = lstate;
7018 ahc->black_hole = lstate;
7037 if (lstate == NULL) {
7058 if (SLIST_FIRST(&lstate->accept_tios) != NULL) {
7063 if (SLIST_FIRST(&lstate->immed_notifies) != NULL) {
7075 xpt_free_path(lstate->path);
7076 free(lstate, M_DEVBUF);
7245 struct ahc_tmode_lstate *lstate;
7258 lstate = NULL;
7260 lstate = tstate->enabled_luns[lun];
7265 if (lstate == NULL)
7266 lstate = ahc->black_hole;
7268 atio = (struct ccb_accept_tio*)SLIST_FIRST(&lstate->accept_tios);
7279 SLIST_REMOVE_HEAD(&lstate->accept_tios, sim_links.sle);
7281 if (lstate == ahc->black_hole) {
7337 ahc->pending_device = lstate;