lstate            263 dev/ic/aic79xx.c 					       struct ahd_tmode_lstate *lstate,
lstate           4653 dev/ic/aic79xx.c 			struct ahd_tmode_lstate* lstate;
lstate           4655 dev/ic/aic79xx.c 			lstate = tstate->enabled_luns[devinfo->lun];
lstate           4656 dev/ic/aic79xx.c 			if (lstate != NULL) {
lstate           4657 dev/ic/aic79xx.c 				ahd_queue_lstate_event(ahd, lstate,
lstate           4661 dev/ic/aic79xx.c 				ahd_send_lstate_events(ahd, lstate);
lstate           5139 dev/ic/aic79xx.c 			struct ahd_tmode_lstate* lstate;
lstate           5141 dev/ic/aic79xx.c 			lstate = tstate->enabled_luns[cur_lun];
lstate           5142 dev/ic/aic79xx.c 			if (lstate == NULL)
lstate           5145 dev/ic/aic79xx.c 			ahd_queue_lstate_event(ahd, lstate, devinfo->our_scsiid,
lstate           5147 dev/ic/aic79xx.c 			ahd_send_lstate_events(ahd, lstate);
lstate           5423 dev/ic/aic79xx.c 				struct ahd_tmode_lstate *lstate;
lstate           5425 dev/ic/aic79xx.c 				lstate = tstate->enabled_luns[j];
lstate           5426 dev/ic/aic79xx.c 				if (lstate != NULL) {
lstate           5427 dev/ic/aic79xx.c 					xpt_free_path(lstate->path);
lstate           5428 dev/ic/aic79xx.c 					free(lstate, M_DEVBUF);
lstate           7900 dev/ic/aic79xx.c 			struct ahd_tmode_lstate* lstate;
lstate           7902 dev/ic/aic79xx.c 			lstate = tstate->enabled_luns[lun];
lstate           7903 dev/ic/aic79xx.c 			if (lstate == NULL)
lstate           7906 dev/ic/aic79xx.c 			ahd_queue_lstate_event(ahd, lstate, CAM_TARGET_WILDCARD,
lstate           7908 dev/ic/aic79xx.c 			ahd_send_lstate_events(ahd, lstate);
lstate           8354 dev/ic/aic79xx.c ahd_queue_lstate_event(struct ahd_softc *ahd, struct ahd_tmode_lstate *lstate,
lstate           8360 dev/ic/aic79xx.c 	xpt_freeze_devq(lstate->path, /*count*/1);
lstate           8361 dev/ic/aic79xx.c 	if (lstate->event_w_idx >= lstate->event_r_idx)
lstate           8362 dev/ic/aic79xx.c 		pending = lstate->event_w_idx - lstate->event_r_idx;
lstate           8365 dev/ic/aic79xx.c 			- (lstate->event_r_idx - lstate->event_w_idx);
lstate           8375 dev/ic/aic79xx.c 		lstate->event_r_idx = 0;
lstate           8376 dev/ic/aic79xx.c 		lstate->event_w_idx = 0;
lstate           8377 dev/ic/aic79xx.c 		xpt_release_devq(lstate->path, pending, /*runqueue*/FALSE);
lstate           8381 dev/ic/aic79xx.c 		xpt_print_path(lstate->path);
lstate           8383 dev/ic/aic79xx.c 		       lstate->event_buffer[lstate->event_r_idx].event_type,
lstate           8384 dev/ic/aic79xx.c 		       lstate->event_buffer[lstate->event_r_idx].event_arg);
lstate           8385 dev/ic/aic79xx.c 		lstate->event_r_idx++;
lstate           8386 dev/ic/aic79xx.c 		if (lstate->event_r_idx == AHD_TMODE_EVENT_BUFFER_SIZE)
lstate           8387 dev/ic/aic79xx.c 			lstate->event_r_idx = 0;
lstate           8388 dev/ic/aic79xx.c 		xpt_release_devq(lstate->path, /*count*/1, /*runqueue*/FALSE);
lstate           8391 dev/ic/aic79xx.c 	event = &lstate->event_buffer[lstate->event_w_idx];
lstate           8395 dev/ic/aic79xx.c 	lstate->event_w_idx++;
lstate           8396 dev/ic/aic79xx.c 	if (lstate->event_w_idx == AHD_TMODE_EVENT_BUFFER_SIZE)
lstate           8397 dev/ic/aic79xx.c 		lstate->event_w_idx = 0;
lstate           8405 dev/ic/aic79xx.c ahd_send_lstate_events(struct ahd_softc *ahd, struct ahd_tmode_lstate *lstate)
lstate           8410 dev/ic/aic79xx.c 	while (lstate->event_r_idx != lstate->event_w_idx
lstate           8411 dev/ic/aic79xx.c 	    && (ccbh = SLIST_FIRST(&lstate->immed_notifies)) != NULL) {
lstate           8414 dev/ic/aic79xx.c 		event = &lstate->event_buffer[lstate->event_r_idx];
lstate           8415 dev/ic/aic79xx.c 		SLIST_REMOVE_HEAD(&lstate->immed_notifies, sim_links.sle);
lstate           8430 dev/ic/aic79xx.c 		lstate->event_r_idx++;
lstate           8431 dev/ic/aic79xx.c 		if (lstate->event_r_idx == AHD_TMODE_EVENT_BUFFER_SIZE)
lstate           8432 dev/ic/aic79xx.c 			lstate->event_r_idx = 0;
lstate           9451 dev/ic/aic79xx.c 		    struct ahd_tmode_lstate **lstate,
lstate           9465 dev/ic/aic79xx.c 		*lstate = ahd->black_hole;
lstate           9477 dev/ic/aic79xx.c 		*lstate = NULL;
lstate           9479 dev/ic/aic79xx.c 			*lstate =
lstate           9483 dev/ic/aic79xx.c 	if (notfound_failure != 0 && *lstate == NULL)
lstate           9494 dev/ic/aic79xx.c 	struct	   ahd_tmode_lstate *lstate;
lstate           9503 dev/ic/aic79xx.c 	status = ahd_find_tmode_devs(ahd, sim, ccb, &tstate, &lstate,
lstate           9580 dev/ic/aic79xx.c 		if (lstate != NULL) {
lstate           9611 dev/ic/aic79xx.c 		lstate = malloc(sizeof(*lstate), M_DEVBUF, M_NOWAIT);
lstate           9612 dev/ic/aic79xx.c 		if (lstate == NULL) {
lstate           9618 dev/ic/aic79xx.c 		memset(lstate, 0, sizeof(*lstate));
lstate           9619 dev/ic/aic79xx.c 		status = xpt_create_path(&lstate->path, /*periph*/NULL,
lstate           9624 dev/ic/aic79xx.c 			free(lstate, M_DEVBUF);
lstate           9630 dev/ic/aic79xx.c 		SLIST_INIT(&lstate->accept_tios);
lstate           9631 dev/ic/aic79xx.c 		SLIST_INIT(&lstate->immed_notifies);
lstate           9635 dev/ic/aic79xx.c 			tstate->enabled_luns[lun] = lstate;
lstate           9680 dev/ic/aic79xx.c 			ahd->black_hole = lstate;
lstate           9699 dev/ic/aic79xx.c 		if (lstate == NULL) {
lstate           9720 dev/ic/aic79xx.c 		if (SLIST_FIRST(&lstate->accept_tios) != NULL) {
lstate           9725 dev/ic/aic79xx.c 		if (SLIST_FIRST(&lstate->immed_notifies) != NULL) {
lstate           9737 dev/ic/aic79xx.c 		xpt_free_path(lstate->path);
lstate           9738 dev/ic/aic79xx.c 		free(lstate, M_DEVBUF);
lstate           9885 dev/ic/aic79xx.c 	struct	  ahd_tmode_lstate *lstate;
lstate           9898 dev/ic/aic79xx.c 	lstate = NULL;
lstate           9900 dev/ic/aic79xx.c 		lstate = tstate->enabled_luns[lun];
lstate           9905 dev/ic/aic79xx.c 	if (lstate == NULL)
lstate           9906 dev/ic/aic79xx.c 		lstate = ahd->black_hole;
lstate           9908 dev/ic/aic79xx.c 	atio = (struct ccb_accept_tio*)SLIST_FIRST(&lstate->accept_tios);
lstate           9921 dev/ic/aic79xx.c 		       lstate == ahd->black_hole ? "(Black Holed)" : "");
lstate           9923 dev/ic/aic79xx.c 	SLIST_REMOVE_HEAD(&lstate->accept_tios, sim_links.sle);
lstate           9925 dev/ic/aic79xx.c 	if (lstate == ahd->black_hole) {
lstate           9986 dev/ic/aic79xx.c 		ahd->pending_device = lstate;
lstate           1546 dev/ic/aic79xx.h 				    struct ahd_tmode_lstate **lstate,
lstate            238 dev/ic/aic7xxx.c 					       struct ahc_tmode_lstate *lstate,
lstate           3443 dev/ic/aic7xxx.c 			struct ahc_tmode_lstate* lstate;
lstate           3445 dev/ic/aic7xxx.c 			lstate = tstate->enabled_luns[devinfo->lun];
lstate           3446 dev/ic/aic7xxx.c 			if (lstate != NULL) {
lstate           3447 dev/ic/aic7xxx.c 				ahc_queue_lstate_event(ahc, lstate,
lstate           3451 dev/ic/aic7xxx.c 				ahc_send_lstate_events(ahc, lstate);
lstate           3824 dev/ic/aic7xxx.c 			struct ahc_tmode_lstate* lstate;
lstate           3826 dev/ic/aic7xxx.c 			lstate = tstate->enabled_luns[lun];
lstate           3827 dev/ic/aic7xxx.c 			if (lstate == NULL)
lstate           3830 dev/ic/aic7xxx.c 			ahc_queue_lstate_event(ahc, lstate, devinfo->our_scsiid,
lstate           3832 dev/ic/aic7xxx.c 			ahc_send_lstate_events(ahc, lstate);
lstate           4003 dev/ic/aic7xxx.c 				struct ahc_tmode_lstate *lstate;
lstate           4005 dev/ic/aic7xxx.c 				lstate = tstate->enabled_luns[j];
lstate           4006 dev/ic/aic7xxx.c 				if (lstate != NULL) {
lstate           4008 dev/ic/aic7xxx.c 					free(lstate, M_DEVBUF);
lstate           5921 dev/ic/aic7xxx.c 			struct ahc_tmode_lstate* lstate;
lstate           5923 dev/ic/aic7xxx.c 			lstate = tstate->enabled_luns[lun];
lstate           5924 dev/ic/aic7xxx.c 			if (lstate == NULL)
lstate           5927 dev/ic/aic7xxx.c 			ahc_queue_lstate_event(ahc, lstate, CAM_TARGET_WILDCARD,
lstate           5929 dev/ic/aic7xxx.c 			ahc_send_lstate_events(ahc, lstate);
lstate           6060 dev/ic/aic7xxx.c ahc_queue_lstate_event(struct ahc_softc *ahc, struct ahc_tmode_lstate *lstate,
lstate           6066 dev/ic/aic7xxx.c 	xpt_freeze_devq(lstate->path, /*count*/1);
lstate           6067 dev/ic/aic7xxx.c 	if (lstate->event_w_idx >= lstate->event_r_idx)
lstate           6068 dev/ic/aic7xxx.c 		pending = lstate->event_w_idx - lstate->event_r_idx;
lstate           6071 dev/ic/aic7xxx.c 			- (lstate->event_r_idx - lstate->event_w_idx);
lstate           6081 dev/ic/aic7xxx.c 		lstate->event_r_idx = 0;
lstate           6082 dev/ic/aic7xxx.c 		lstate->event_w_idx = 0;
lstate           6083 dev/ic/aic7xxx.c 		xpt_release_devq(lstate->path, pending, /*runqueue*/FALSE);
lstate           6087 dev/ic/aic7xxx.c 		xpt_print_path(lstate->path);
lstate           6089 dev/ic/aic7xxx.c 		       lstate->event_buffer[lstate->event_r_idx].event_type,
lstate           6090 dev/ic/aic7xxx.c 		       lstate->event_buffer[lstate->event_r_idx].event_arg);
lstate           6091 dev/ic/aic7xxx.c 		lstate->event_r_idx++;
lstate           6092 dev/ic/aic7xxx.c 		if (lstate->event_r_idx == AHC_TMODE_EVENT_BUFFER_SIZE)
lstate           6093 dev/ic/aic7xxx.c 			lstate->event_r_idx = 0;
lstate           6094 dev/ic/aic7xxx.c 		xpt_release_devq(lstate->path, /*count*/1, /*runqueue*/FALSE);
lstate           6097 dev/ic/aic7xxx.c 	event = &lstate->event_buffer[lstate->event_w_idx];
lstate           6101 dev/ic/aic7xxx.c 	lstate->event_w_idx++;
lstate           6102 dev/ic/aic7xxx.c 	if (lstate->event_w_idx == AHC_TMODE_EVENT_BUFFER_SIZE)
lstate           6103 dev/ic/aic7xxx.c 		lstate->event_w_idx = 0;
lstate           6111 dev/ic/aic7xxx.c ahc_send_lstate_events(struct ahc_softc *ahc, struct ahc_tmode_lstate *lstate)
lstate           6116 dev/ic/aic7xxx.c 	while (lstate->event_r_idx != lstate->event_w_idx
lstate           6117 dev/ic/aic7xxx.c 	    && (ccbh = SLIST_FIRST(&lstate->immed_notifies)) != NULL) {
lstate           6120 dev/ic/aic7xxx.c 		event = &lstate->event_buffer[lstate->event_r_idx];
lstate           6121 dev/ic/aic7xxx.c 		SLIST_REMOVE_HEAD(&lstate->immed_notifies, sim_links.sle);
lstate           6136 dev/ic/aic7xxx.c 		lstate->event_r_idx++;
lstate           6137 dev/ic/aic7xxx.c 		if (lstate->event_r_idx == AHC_TMODE_EVENT_BUFFER_SIZE)
lstate           6138 dev/ic/aic7xxx.c 			lstate->event_r_idx = 0;
lstate           6675 dev/ic/aic7xxx.c 		    struct ahc_tmode_lstate **lstate,
lstate           6689 dev/ic/aic7xxx.c 		*lstate = ahc->black_hole;
lstate           6701 dev/ic/aic7xxx.c 		*lstate = NULL;
lstate           6703 dev/ic/aic7xxx.c 			*lstate =
lstate           6707 dev/ic/aic7xxx.c 	if (notfound_failure != 0 && *lstate == NULL)
lstate           6717 dev/ic/aic7xxx.c 	struct	   ahc_tmode_lstate *lstate;
lstate           6728 dev/ic/aic7xxx.c 	status = ahc_find_tmode_devs(ahc, sim, ccb, &tstate, &lstate,
lstate           6849 dev/ic/aic7xxx.c 		if (lstate != NULL) {
lstate           6880 dev/ic/aic7xxx.c 		lstate = malloc(sizeof(*lstate), M_DEVBUF, M_NOWAIT);
lstate           6881 dev/ic/aic7xxx.c 		if (lstate == NULL) {
lstate           6887 dev/ic/aic7xxx.c 		memset(lstate, 0, sizeof(*lstate));
lstate           6888 dev/ic/aic7xxx.c 		status = xpt_create_path(&lstate->path, /*periph*/NULL,
lstate           6893 dev/ic/aic7xxx.c 			free(lstate, M_DEVBUF);
lstate           6899 dev/ic/aic7xxx.c 		SLIST_INIT(&lstate->accept_tios);
lstate           6900 dev/ic/aic7xxx.c 		SLIST_INIT(&lstate->immed_notifies);
lstate           6904 dev/ic/aic7xxx.c 			tstate->enabled_luns[lun] = lstate;
lstate           6956 dev/ic/aic7xxx.c 			ahc->black_hole = lstate;
lstate           6975 dev/ic/aic7xxx.c 		if (lstate == NULL) {
lstate           6996 dev/ic/aic7xxx.c 		if (SLIST_FIRST(&lstate->accept_tios) != NULL) {
lstate           7001 dev/ic/aic7xxx.c 		if (SLIST_FIRST(&lstate->immed_notifies) != NULL) {
lstate           7013 dev/ic/aic7xxx.c 		xpt_free_path(lstate->path);
lstate           7014 dev/ic/aic7xxx.c 		free(lstate, M_DEVBUF);
lstate           7189 dev/ic/aic7xxx.c 	struct	  ahc_tmode_lstate *lstate;
lstate           7202 dev/ic/aic7xxx.c 	lstate = NULL;
lstate           7204 dev/ic/aic7xxx.c 		lstate = tstate->enabled_luns[lun];
lstate           7209 dev/ic/aic7xxx.c 	if (lstate == NULL)
lstate           7210 dev/ic/aic7xxx.c 		lstate = ahc->black_hole;
lstate           7212 dev/ic/aic7xxx.c 	atio = (struct ccb_accept_tio*)SLIST_FIRST(&lstate->accept_tios);
lstate           7226 dev/ic/aic7xxx.c 	       lstate == ahc->black_hole ? "(Black Holed)" : "");
lstate           7228 dev/ic/aic7xxx.c 	SLIST_REMOVE_HEAD(&lstate->accept_tios, sim_links.sle);
lstate           7230 dev/ic/aic7xxx.c 	if (lstate == ahc->black_hole) {
lstate           7290 dev/ic/aic7xxx.c 		ahc->pending_device = lstate;
lstate           4420 net/if_spppsubr.c 	int lstate, s;
lstate           4428 net/if_spppsubr.c 		lstate = LINK_STATE_UP;
lstate           4430 net/if_spppsubr.c 		lstate = LINK_STATE_DOWN;
lstate           4432 net/if_spppsubr.c 	if (ifp->if_link_state != lstate) {
lstate           4433 net/if_spppsubr.c 		ifp->if_link_state = lstate;