• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/aic7xxx/

Lines Matching refs:lstate

240 					       struct ahc_tmode_lstate *lstate,
3445 struct ahc_tmode_lstate* lstate;
3447 lstate = tstate->enabled_luns[devinfo->lun];
3448 if (lstate != NULL) {
3449 ahc_queue_lstate_event(ahc, lstate,
3453 ahc_send_lstate_events(ahc, lstate);
3822 struct ahc_tmode_lstate* lstate;
3824 lstate = tstate->enabled_luns[lun];
3825 if (lstate == NULL)
3828 ahc_queue_lstate_event(ahc, lstate, devinfo->our_scsiid,
3830 ahc_send_lstate_events(ahc, lstate);
4073 struct ahc_tmode_lstate *lstate;
4075 lstate = tstate->enabled_luns[j];
4076 if (lstate != NULL) {
4077 xpt_free_path(lstate->path);
4078 free(lstate, M_DEVBUF);
6146 struct ahc_tmode_lstate* lstate;
6148 lstate = tstate->enabled_luns[lun];
6149 if (lstate == NULL)
6152 ahc_queue_lstate_event(ahc, lstate, CAM_TARGET_WILDCARD,
6154 ahc_send_lstate_events(ahc, lstate);
6285 ahc_queue_lstate_event(struct ahc_softc *ahc, struct ahc_tmode_lstate *lstate,
6291 xpt_freeze_devq(lstate->path, /*count*/1);
6292 if (lstate->event_w_idx >= lstate->event_r_idx)
6293 pending = lstate->event_w_idx - lstate->event_r_idx;
6296 - (lstate->event_r_idx - lstate->event_w_idx);
6306 lstate->event_r_idx = 0;
6307 lstate->event_w_idx = 0;
6308 xpt_release_devq(lstate->path, pending, /*runqueue*/FALSE);
6312 xpt_print_path(lstate->path);
6314 lstate->event_buffer[lstate->event_r_idx].event_type,
6315 lstate->event_buffer[lstate->event_r_idx].event_arg);
6316 lstate->event_r_idx++;
6317 if (lstate->event_r_idx == AHC_TMODE_EVENT_BUFFER_SIZE)
6318 lstate->event_r_idx = 0;
6319 xpt_release_devq(lstate->path, /*count*/1, /*runqueue*/FALSE);
6322 event = &lstate->event_buffer[lstate->event_w_idx];
6326 lstate->event_w_idx++;
6327 if (lstate->event_w_idx == AHC_TMODE_EVENT_BUFFER_SIZE)
6328 lstate->event_w_idx = 0;
6336 ahc_send_lstate_events(struct ahc_softc *ahc, struct ahc_tmode_lstate *lstate)
6341 while (lstate->event_r_idx != lstate->event_w_idx
6342 && (ccbh = SLIST_FIRST(&lstate->immed_notifies)) != NULL) {
6345 event = &lstate->event_buffer[lstate->event_r_idx];
6346 SLIST_REMOVE_HEAD(&lstate->immed_notifies, sim_links.sle);
6360 lstate->event_r_idx++;
6361 if (lstate->event_r_idx == AHC_TMODE_EVENT_BUFFER_SIZE)
6362 lstate->event_r_idx = 0;
7253 struct ahc_tmode_lstate **lstate,
7267 *lstate = ahc->black_hole;
7279 *lstate = NULL;
7281 *lstate =
7285 if (notfound_failure != 0 && *lstate == NULL)
7295 struct ahc_tmode_lstate *lstate;
7305 status = ahc_find_tmode_devs(ahc, sim, ccb, &tstate, &lstate,
7420 if (lstate != NULL) {
7451 lstate = malloc(sizeof(*lstate), M_DEVBUF, M_NOWAIT);
7452 if (lstate == NULL) {
7454 printf("Couldn't allocate lstate\n");
7458 memset(lstate, 0, sizeof(*lstate));
7459 status = xpt_create_path(&lstate->path, /*periph*/NULL,
7464 free(lstate, M_DEVBUF);
7470 SLIST_INIT(&lstate->accept_tios);
7471 SLIST_INIT(&lstate->immed_notifies);
7474 tstate->enabled_luns[lun] = lstate;
7526 ahc->black_hole = lstate;
7544 if (lstate == NULL) {
7562 if (SLIST_FIRST(&lstate->accept_tios) != NULL) {
7567 if (SLIST_FIRST(&lstate->immed_notifies) != NULL) {
7578 xpt_free_path(lstate->path);
7579 free(lstate, M_DEVBUF);
7745 struct ahc_tmode_lstate *lstate;
7758 lstate = NULL;
7760 lstate = tstate->enabled_luns[lun];
7765 if (lstate == NULL)
7766 lstate = ahc->black_hole;
7768 atio = (struct ccb_accept_tio*)SLIST_FIRST(&lstate->accept_tios);
7783 lstate == ahc->black_hole ? "(Black Holed)" : "");
7786 SLIST_REMOVE_HEAD(&lstate->accept_tios, sim_links.sle);
7788 if (lstate == ahc->black_hole) {
7850 ahc->pending_device = lstate;