lstate            139 drivers/cpuidle/governors/ladder.c 	struct ladder_device_state *lstate;
lstate            146 drivers/cpuidle/governors/ladder.c 		lstate = &ldev->states[i];
lstate            148 drivers/cpuidle/governors/ladder.c 		lstate->stats.promotion_count = 0;
lstate            149 drivers/cpuidle/governors/ladder.c 		lstate->stats.demotion_count = 0;
lstate            151 drivers/cpuidle/governors/ladder.c 		lstate->threshold.promotion_count = PROMOTION_COUNT;
lstate            152 drivers/cpuidle/governors/ladder.c 		lstate->threshold.demotion_count = DEMOTION_COUNT;
lstate            155 drivers/cpuidle/governors/ladder.c 			lstate->threshold.promotion_time = state->exit_latency;
lstate            157 drivers/cpuidle/governors/ladder.c 			lstate->threshold.demotion_time = state->exit_latency;
lstate           12767 drivers/infiniband/hw/hfi1/chip.c const char *opa_lstate_name(u32 lstate)
lstate           12777 drivers/infiniband/hw/hfi1/chip.c 	if (lstate < ARRAY_SIZE(port_logical_names))
lstate           12778 drivers/infiniband/hw/hfi1/chip.c 		return port_logical_names[lstate];
lstate            810 drivers/infiniband/hw/hfi1/chip.h const char *opa_lstate_name(u32 lstate);
lstate           1954 drivers/infiniband/hw/hfi1/mad.c 	int lstate;
lstate           1970 drivers/infiniband/hw/hfi1/mad.c 	lstate = driver_lstate(ppd);
lstate           1976 drivers/infiniband/hw/hfi1/mad.c 	    (lstate == IB_PORT_ARMED || lstate == IB_PORT_ACTIVE)) {
lstate           2020 drivers/infiniband/hw/hfi1/mad.c 	int lstate;
lstate           2030 drivers/infiniband/hw/hfi1/mad.c 	lstate = driver_lstate(ppd);
lstate           2031 drivers/infiniband/hw/hfi1/mad.c 	if (lstate == IB_PORT_ARMED || lstate == IB_PORT_ACTIVE) {
lstate           2050 drivers/infiniband/hw/hfi1/mad.c 	u32 lstate;
lstate           2063 drivers/infiniband/hw/hfi1/mad.c 	lstate = driver_lstate(ppd);
lstate           2065 drivers/infiniband/hw/hfi1/mad.c 	if (start_of_sm_config && (lstate == IB_PORT_INIT))
lstate           2075 drivers/infiniband/hw/hfi1/mad.c 		(driver_pstate(ppd) << 4) | (lstate & 0xf);
lstate            831 drivers/infiniband/hw/ocrdma/ocrdma_hw.c 	u8 lstate;
lstate            834 drivers/infiniband/hw/ocrdma/ocrdma_hw.c 	lstate = ocrdma_get_ae_link_state(evt->speed_state_ptn);
lstate            836 drivers/infiniband/hw/ocrdma/ocrdma_hw.c 	if (!(lstate & OCRDMA_AE_LSC_LLINK_MASK))
lstate            840 drivers/infiniband/hw/ocrdma/ocrdma_hw.c 		ocrdma_update_link_state(dev, (lstate & OCRDMA_LINK_ST_MASK));
lstate            157 drivers/infiniband/hw/ocrdma/ocrdma_hw.h void ocrdma_update_link_state(struct ocrdma_dev *dev, u8 lstate);
lstate            308 drivers/infiniband/hw/ocrdma/ocrdma_main.c 	u8 lstate = 0;
lstate            337 drivers/infiniband/hw/ocrdma/ocrdma_main.c 	status = ocrdma_mbx_get_link_speed(dev, NULL, &lstate);
lstate            339 drivers/infiniband/hw/ocrdma/ocrdma_main.c 		ocrdma_update_link_state(dev, lstate);
lstate            429 drivers/infiniband/hw/ocrdma/ocrdma_main.c void ocrdma_update_link_state(struct ocrdma_dev *dev, u8 lstate)
lstate            433 drivers/infiniband/hw/ocrdma/ocrdma_main.c 		if (!lstate)
lstate            437 drivers/infiniband/hw/ocrdma/ocrdma_main.c 	if (!lstate)
lstate            194 drivers/infiniband/hw/qib/qib_driver.c 	u32 lstate;
lstate            248 drivers/infiniband/hw/qib/qib_driver.c 		lstate = QIBL_LINKV;
lstate            262 drivers/infiniband/hw/qib/qib_driver.c 		lstate = QIBL_LINKACTIVE;
lstate            269 drivers/infiniband/hw/qib/qib_driver.c 	ret = qib_wait_linkstate(ppd, lstate, 10);
lstate             87 drivers/infiniband/hw/qib/qib_intr.c 	u32 lstate;
lstate             91 drivers/infiniband/hw/qib/qib_intr.c 	lstate = dd->f_iblink_state(ibcs); /* linkstate */
lstate            103 drivers/infiniband/hw/qib/qib_intr.c 	if (lstate >= IB_PORT_INIT &&
lstate            118 drivers/infiniband/hw/qib/qib_intr.c 	if (lstate != IB_PORT_DOWN) {
lstate            120 drivers/infiniband/hw/qib/qib_intr.c 		if (lstate != IB_PORT_ACTIVE) {
lstate            125 drivers/infiniband/hw/qib/qib_intr.c 			if (lstate == IB_PORT_ARMED) {
lstate            669 drivers/infiniband/hw/qib/qib_mad.c 	u16 lstate;
lstate            819 drivers/infiniband/hw/qib/qib_mad.c 	lstate = (pip->portphysstate_linkdown >> 4) & 0xF;
lstate            820 drivers/infiniband/hw/qib/qib_mad.c 	if (lstate && !(state == IB_PORT_DOWN || state == IB_PORT_NOP))
lstate            829 drivers/infiniband/hw/qib/qib_mad.c 		if (lstate == 0)
lstate            833 drivers/infiniband/hw/qib/qib_mad.c 		if (lstate == 0)
lstate            834 drivers/infiniband/hw/qib/qib_mad.c 			lstate = QIB_IB_LINKDOWN_ONLY;
lstate            835 drivers/infiniband/hw/qib/qib_mad.c 		else if (lstate == 1)
lstate            836 drivers/infiniband/hw/qib/qib_mad.c 			lstate = QIB_IB_LINKDOWN_SLEEP;
lstate            837 drivers/infiniband/hw/qib/qib_mad.c 		else if (lstate == 2)
lstate            838 drivers/infiniband/hw/qib/qib_mad.c 			lstate = QIB_IB_LINKDOWN;
lstate            839 drivers/infiniband/hw/qib/qib_mad.c 		else if (lstate == 3)
lstate            840 drivers/infiniband/hw/qib/qib_mad.c 			lstate = QIB_IB_LINKDOWN_DISABLE;
lstate            848 drivers/infiniband/hw/qib/qib_mad.c 		qib_set_linkstate(ppd, lstate);
lstate            853 drivers/infiniband/hw/qib/qib_mad.c 		if (lstate == QIB_IB_LINKDOWN_DISABLE && smp->hop_cnt) {
lstate            689 drivers/net/ethernet/sun/cassini.c 	int oldstate = cp->lstate;
lstate            712 drivers/net/ethernet/sun/cassini.c 	if (cp->lstate == link_up) {
lstate            719 drivers/net/ethernet/sun/cassini.c 	cp->lstate = link_down;
lstate            750 drivers/net/ethernet/sun/cassini.c 			cp->lstate = link_aneg;
lstate            755 drivers/net/ethernet/sun/cassini.c 			cp->lstate = link_force_ok;
lstate            768 drivers/net/ethernet/sun/cassini.c 			cp->lstate = link_aneg;
lstate            770 drivers/net/ethernet/sun/cassini.c 			cp->lstate = link_force_ok;
lstate           1024 drivers/net/ethernet/sun/cassini.c 		if (cp->lstate != link_up) {
lstate           1026 drivers/net/ethernet/sun/cassini.c 				cp->lstate = link_up;
lstate           1033 drivers/net/ethernet/sun/cassini.c 	} else if (cp->lstate == link_up) {
lstate           1034 drivers/net/ethernet/sun/cassini.c 		cp->lstate = link_down;
lstate           1075 drivers/net/ethernet/sun/cassini.c 	} else if (cp->lstate == link_down) {
lstate           1569 drivers/net/ethernet/sun/cassini.c 	switch (cp->lstate) {
lstate           1574 drivers/net/ethernet/sun/cassini.c 		cp->lstate = link_force_ok;
lstate           1590 drivers/net/ethernet/sun/cassini.c 		cp->lstate = link_force_try;
lstate           1632 drivers/net/ethernet/sun/cassini.c 		if ((cp->lstate == link_force_try) &&
lstate           1634 drivers/net/ethernet/sun/cassini.c 			cp->lstate = link_force_ret;
lstate           1647 drivers/net/ethernet/sun/cassini.c 		} else if (cp->lstate != link_up) {
lstate           1648 drivers/net/ethernet/sun/cassini.c 			cp->lstate = link_up;
lstate           1663 drivers/net/ethernet/sun/cassini.c 	if (cp->lstate == link_up) {
lstate           1664 drivers/net/ethernet/sun/cassini.c 		cp->lstate = link_down;
lstate           3722 drivers/net/ethernet/sun/cassini.c 	} else if (cp->lstate == link_up) {
lstate           4540 drivers/net/ethernet/sun/cassini.c 	linkstate = cp->lstate;
lstate           4677 drivers/net/ethernet/sun/cassini.c 	return cp->lstate == link_up;
lstate           5048 drivers/net/ethernet/sun/cassini.c 	cp->lstate = link_down;
lstate           2820 drivers/net/ethernet/sun/cassini.h 	enum link_state		lstate;
lstate           1332 drivers/net/ethernet/sun/sungem.c 		gp->lstate = link_aneg;
lstate           1336 drivers/net/ethernet/sun/sungem.c 		gp->lstate = link_force_ok;
lstate           1460 drivers/net/ethernet/sun/sungem.c 	switch (gp->lstate) {
lstate           1467 drivers/net/ethernet/sun/sungem.c 		gp->lstate = link_force_ok;
lstate           1481 drivers/net/ethernet/sun/sungem.c 		gp->lstate = link_force_try;
lstate           1520 drivers/net/ethernet/sun/sungem.c 			if (gp->lstate == link_up)
lstate           1523 drivers/net/ethernet/sun/sungem.c 			gp->lstate = link_up;
lstate           1535 drivers/net/ethernet/sun/sungem.c 		if (gp->lstate == link_force_try && gp->want_autoneg) {
lstate           1536 drivers/net/ethernet/sun/sungem.c 			gp->lstate = link_force_ret;
lstate           1543 drivers/net/ethernet/sun/sungem.c 		} else if (gp->lstate != link_up) {
lstate           1544 drivers/net/ethernet/sun/sungem.c 			gp->lstate = link_up;
lstate           1553 drivers/net/ethernet/sun/sungem.c 		if (gp->lstate == link_up) {
lstate           1554 drivers/net/ethernet/sun/sungem.c 			gp->lstate = link_down;
lstate           1739 drivers/net/ethernet/sun/sungem.c 	gp->lstate = link_down;
lstate           2281 drivers/net/ethernet/sun/sungem.c 	if (gp->lstate == link_up)
lstate           2293 drivers/net/ethernet/sun/sungem.c 	if (gp->lstate != link_up)
lstate           2511 drivers/net/ethernet/sun/sungem.c 	if (gp->lstate == link_up)
lstate           2577 drivers/net/ethernet/sun/sungem.c 			if (gp->lstate == link_up)
lstate           2920 drivers/net/ethernet/sun/sungem.c 	gp->lstate = link_down;
lstate           1002 drivers/net/ethernet/sun/sungem.h 	enum link_state		lstate;
lstate           1431 drivers/scsi/aic7xxx/aic79xx.h 				    struct ahd_tmode_lstate **lstate,
lstate            222 drivers/scsi/aic7xxx/aic79xx_core.c 					       struct ahd_tmode_lstate *lstate,
lstate           5462 drivers/scsi/aic7xxx/aic79xx_core.c 			struct ahd_tmode_lstate* lstate;
lstate           5464 drivers/scsi/aic7xxx/aic79xx_core.c 			lstate = tstate->enabled_luns[devinfo->lun];
lstate           5465 drivers/scsi/aic7xxx/aic79xx_core.c 			if (lstate != NULL) {
lstate           5466 drivers/scsi/aic7xxx/aic79xx_core.c 				ahd_queue_lstate_event(ahd, lstate,
lstate           5470 drivers/scsi/aic7xxx/aic79xx_core.c 				ahd_send_lstate_events(ahd, lstate);
lstate           5948 drivers/scsi/aic7xxx/aic79xx_core.c 			struct ahd_tmode_lstate* lstate;
lstate           5950 drivers/scsi/aic7xxx/aic79xx_core.c 			lstate = tstate->enabled_luns[cur_lun];
lstate           5951 drivers/scsi/aic7xxx/aic79xx_core.c 			if (lstate == NULL)
lstate           5954 drivers/scsi/aic7xxx/aic79xx_core.c 			ahd_queue_lstate_event(ahd, lstate, devinfo->our_scsiid,
lstate           5956 drivers/scsi/aic7xxx/aic79xx_core.c 			ahd_send_lstate_events(ahd, lstate);
lstate           6185 drivers/scsi/aic7xxx/aic79xx_core.c 				struct ahd_tmode_lstate *lstate;
lstate           6187 drivers/scsi/aic7xxx/aic79xx_core.c 				lstate = tstate->enabled_luns[j];
lstate           6188 drivers/scsi/aic7xxx/aic79xx_core.c 				if (lstate != NULL) {
lstate           6189 drivers/scsi/aic7xxx/aic79xx_core.c 					xpt_free_path(lstate->path);
lstate           6190 drivers/scsi/aic7xxx/aic79xx_core.c 					kfree(lstate);
lstate           8786 drivers/scsi/aic7xxx/aic79xx_core.c 			struct ahd_tmode_lstate* lstate;
lstate           8788 drivers/scsi/aic7xxx/aic79xx_core.c 			lstate = tstate->enabled_luns[lun];
lstate           8789 drivers/scsi/aic7xxx/aic79xx_core.c 			if (lstate == NULL)
lstate           8792 drivers/scsi/aic7xxx/aic79xx_core.c 			ahd_queue_lstate_event(ahd, lstate, CAM_TARGET_WILDCARD,
lstate           8794 drivers/scsi/aic7xxx/aic79xx_core.c 			ahd_send_lstate_events(ahd, lstate);
lstate           9191 drivers/scsi/aic7xxx/aic79xx_core.c ahd_queue_lstate_event(struct ahd_softc *ahd, struct ahd_tmode_lstate *lstate,
lstate           9197 drivers/scsi/aic7xxx/aic79xx_core.c 	xpt_freeze_devq(lstate->path, /*count*/1);
lstate           9198 drivers/scsi/aic7xxx/aic79xx_core.c 	if (lstate->event_w_idx >= lstate->event_r_idx)
lstate           9199 drivers/scsi/aic7xxx/aic79xx_core.c 		pending = lstate->event_w_idx - lstate->event_r_idx;
lstate           9202 drivers/scsi/aic7xxx/aic79xx_core.c 			- (lstate->event_r_idx - lstate->event_w_idx);
lstate           9212 drivers/scsi/aic7xxx/aic79xx_core.c 		lstate->event_r_idx = 0;
lstate           9213 drivers/scsi/aic7xxx/aic79xx_core.c 		lstate->event_w_idx = 0;
lstate           9214 drivers/scsi/aic7xxx/aic79xx_core.c 		xpt_release_devq(lstate->path, pending, /*runqueue*/FALSE);
lstate           9218 drivers/scsi/aic7xxx/aic79xx_core.c 		xpt_print_path(lstate->path);
lstate           9220 drivers/scsi/aic7xxx/aic79xx_core.c 		       lstate->event_buffer[lstate->event_r_idx].event_type,
lstate           9221 drivers/scsi/aic7xxx/aic79xx_core.c 		       lstate->event_buffer[lstate->event_r_idx].event_arg);
lstate           9222 drivers/scsi/aic7xxx/aic79xx_core.c 		lstate->event_r_idx++;
lstate           9223 drivers/scsi/aic7xxx/aic79xx_core.c 		if (lstate->event_r_idx == AHD_TMODE_EVENT_BUFFER_SIZE)
lstate           9224 drivers/scsi/aic7xxx/aic79xx_core.c 			lstate->event_r_idx = 0;
lstate           9225 drivers/scsi/aic7xxx/aic79xx_core.c 		xpt_release_devq(lstate->path, /*count*/1, /*runqueue*/FALSE);
lstate           9228 drivers/scsi/aic7xxx/aic79xx_core.c 	event = &lstate->event_buffer[lstate->event_w_idx];
lstate           9232 drivers/scsi/aic7xxx/aic79xx_core.c 	lstate->event_w_idx++;
lstate           9233 drivers/scsi/aic7xxx/aic79xx_core.c 	if (lstate->event_w_idx == AHD_TMODE_EVENT_BUFFER_SIZE)
lstate           9234 drivers/scsi/aic7xxx/aic79xx_core.c 		lstate->event_w_idx = 0;
lstate           9242 drivers/scsi/aic7xxx/aic79xx_core.c ahd_send_lstate_events(struct ahd_softc *ahd, struct ahd_tmode_lstate *lstate)
lstate           9247 drivers/scsi/aic7xxx/aic79xx_core.c 	while (lstate->event_r_idx != lstate->event_w_idx
lstate           9248 drivers/scsi/aic7xxx/aic79xx_core.c 	    && (ccbh = SLIST_FIRST(&lstate->immed_notifies)) != NULL) {
lstate           9251 drivers/scsi/aic7xxx/aic79xx_core.c 		event = &lstate->event_buffer[lstate->event_r_idx];
lstate           9252 drivers/scsi/aic7xxx/aic79xx_core.c 		SLIST_REMOVE_HEAD(&lstate->immed_notifies, sim_links.sle);
lstate           9267 drivers/scsi/aic7xxx/aic79xx_core.c 		lstate->event_r_idx++;
lstate           9268 drivers/scsi/aic7xxx/aic79xx_core.c 		if (lstate->event_r_idx == AHD_TMODE_EVENT_BUFFER_SIZE)
lstate           9269 drivers/scsi/aic7xxx/aic79xx_core.c 			lstate->event_r_idx = 0;
lstate           10228 drivers/scsi/aic7xxx/aic79xx_core.c 		    struct ahd_tmode_lstate **lstate,
lstate           10242 drivers/scsi/aic7xxx/aic79xx_core.c 		*lstate = ahd->black_hole;
lstate           10254 drivers/scsi/aic7xxx/aic79xx_core.c 		*lstate = NULL;
lstate           10256 drivers/scsi/aic7xxx/aic79xx_core.c 			*lstate =
lstate           10260 drivers/scsi/aic7xxx/aic79xx_core.c 	if (notfound_failure != 0 && *lstate == NULL)
lstate           10271 drivers/scsi/aic7xxx/aic79xx_core.c 	struct	   ahd_tmode_lstate *lstate;
lstate           10280 drivers/scsi/aic7xxx/aic79xx_core.c 	status = ahd_find_tmode_devs(ahd, sim, ccb, &tstate, &lstate,
lstate           10357 drivers/scsi/aic7xxx/aic79xx_core.c 		if (lstate != NULL) {
lstate           10388 drivers/scsi/aic7xxx/aic79xx_core.c 		lstate = kzalloc(sizeof(*lstate), GFP_ATOMIC);
lstate           10389 drivers/scsi/aic7xxx/aic79xx_core.c 		if (lstate == NULL) {
lstate           10395 drivers/scsi/aic7xxx/aic79xx_core.c 		status = xpt_create_path(&lstate->path, /*periph*/NULL,
lstate           10400 drivers/scsi/aic7xxx/aic79xx_core.c 			kfree(lstate);
lstate           10406 drivers/scsi/aic7xxx/aic79xx_core.c 		SLIST_INIT(&lstate->accept_tios);
lstate           10407 drivers/scsi/aic7xxx/aic79xx_core.c 		SLIST_INIT(&lstate->immed_notifies);
lstate           10411 drivers/scsi/aic7xxx/aic79xx_core.c 			tstate->enabled_luns[lun] = lstate;
lstate           10456 drivers/scsi/aic7xxx/aic79xx_core.c 			ahd->black_hole = lstate;
lstate           10475 drivers/scsi/aic7xxx/aic79xx_core.c 		if (lstate == NULL) {
lstate           10496 drivers/scsi/aic7xxx/aic79xx_core.c 		if (SLIST_FIRST(&lstate->accept_tios) != NULL) {
lstate           10501 drivers/scsi/aic7xxx/aic79xx_core.c 		if (SLIST_FIRST(&lstate->immed_notifies) != NULL) {
lstate           10513 drivers/scsi/aic7xxx/aic79xx_core.c 		xpt_free_path(lstate->path);
lstate           10514 drivers/scsi/aic7xxx/aic79xx_core.c 		kfree(lstate);
lstate           10661 drivers/scsi/aic7xxx/aic79xx_core.c 	struct	  ahd_tmode_lstate *lstate;
lstate           10674 drivers/scsi/aic7xxx/aic79xx_core.c 	lstate = NULL;
lstate           10676 drivers/scsi/aic7xxx/aic79xx_core.c 		lstate = tstate->enabled_luns[lun];
lstate           10681 drivers/scsi/aic7xxx/aic79xx_core.c 	if (lstate == NULL)
lstate           10682 drivers/scsi/aic7xxx/aic79xx_core.c 		lstate = ahd->black_hole;
lstate           10684 drivers/scsi/aic7xxx/aic79xx_core.c 	atio = (struct ccb_accept_tio*)SLIST_FIRST(&lstate->accept_tios);
lstate           10697 drivers/scsi/aic7xxx/aic79xx_core.c 		       lstate == ahd->black_hole ? "(Black Holed)" : "");
lstate           10699 drivers/scsi/aic7xxx/aic79xx_core.c 	SLIST_REMOVE_HEAD(&lstate->accept_tios, sim_links.sle);
lstate           10701 drivers/scsi/aic7xxx/aic79xx_core.c 	if (lstate == ahd->black_hole) {
lstate           10762 drivers/scsi/aic7xxx/aic79xx_core.c 		ahd->pending_device = lstate;
lstate           1242 drivers/scsi/aic7xxx/aic7xxx.h 				    struct ahc_tmode_lstate **lstate,
lstate            223 drivers/scsi/aic7xxx/aic7xxx_core.c 					       struct ahc_tmode_lstate *lstate,
lstate           3955 drivers/scsi/aic7xxx/aic7xxx_core.c 			struct ahc_tmode_lstate* lstate;
lstate           3957 drivers/scsi/aic7xxx/aic7xxx_core.c 			lstate = tstate->enabled_luns[devinfo->lun];
lstate           3958 drivers/scsi/aic7xxx/aic7xxx_core.c 			if (lstate != NULL) {
lstate           3959 drivers/scsi/aic7xxx/aic7xxx_core.c 				ahc_queue_lstate_event(ahc, lstate,
lstate           3963 drivers/scsi/aic7xxx/aic7xxx_core.c 				ahc_send_lstate_events(ahc, lstate);
lstate           4336 drivers/scsi/aic7xxx/aic7xxx_core.c 			struct ahc_tmode_lstate* lstate;
lstate           4338 drivers/scsi/aic7xxx/aic7xxx_core.c 			lstate = tstate->enabled_luns[lun];
lstate           4339 drivers/scsi/aic7xxx/aic7xxx_core.c 			if (lstate == NULL)
lstate           4342 drivers/scsi/aic7xxx/aic7xxx_core.c 			ahc_queue_lstate_event(ahc, lstate, devinfo->our_scsiid,
lstate           4344 drivers/scsi/aic7xxx/aic7xxx_core.c 			ahc_send_lstate_events(ahc, lstate);
lstate           4521 drivers/scsi/aic7xxx/aic7xxx_core.c 				struct ahc_tmode_lstate *lstate;
lstate           4523 drivers/scsi/aic7xxx/aic7xxx_core.c 				lstate = tstate->enabled_luns[j];
lstate           4524 drivers/scsi/aic7xxx/aic7xxx_core.c 				if (lstate != NULL) {
lstate           4525 drivers/scsi/aic7xxx/aic7xxx_core.c 					xpt_free_path(lstate->path);
lstate           4526 drivers/scsi/aic7xxx/aic7xxx_core.c 					kfree(lstate);
lstate           6570 drivers/scsi/aic7xxx/aic7xxx_core.c 			struct ahc_tmode_lstate* lstate;
lstate           6572 drivers/scsi/aic7xxx/aic7xxx_core.c 			lstate = tstate->enabled_luns[lun];
lstate           6573 drivers/scsi/aic7xxx/aic7xxx_core.c 			if (lstate == NULL)
lstate           6576 drivers/scsi/aic7xxx/aic7xxx_core.c 			ahc_queue_lstate_event(ahc, lstate, CAM_TARGET_WILDCARD,
lstate           6578 drivers/scsi/aic7xxx/aic7xxx_core.c 			ahc_send_lstate_events(ahc, lstate);
lstate           6709 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_queue_lstate_event(struct ahc_softc *ahc, struct ahc_tmode_lstate *lstate,
lstate           6715 drivers/scsi/aic7xxx/aic7xxx_core.c 	xpt_freeze_devq(lstate->path, /*count*/1);
lstate           6716 drivers/scsi/aic7xxx/aic7xxx_core.c 	if (lstate->event_w_idx >= lstate->event_r_idx)
lstate           6717 drivers/scsi/aic7xxx/aic7xxx_core.c 		pending = lstate->event_w_idx - lstate->event_r_idx;
lstate           6720 drivers/scsi/aic7xxx/aic7xxx_core.c 			- (lstate->event_r_idx - lstate->event_w_idx);
lstate           6730 drivers/scsi/aic7xxx/aic7xxx_core.c 		lstate->event_r_idx = 0;
lstate           6731 drivers/scsi/aic7xxx/aic7xxx_core.c 		lstate->event_w_idx = 0;
lstate           6732 drivers/scsi/aic7xxx/aic7xxx_core.c 		xpt_release_devq(lstate->path, pending, /*runqueue*/FALSE);
lstate           6736 drivers/scsi/aic7xxx/aic7xxx_core.c 		xpt_print_path(lstate->path);
lstate           6738 drivers/scsi/aic7xxx/aic7xxx_core.c 		       lstate->event_buffer[lstate->event_r_idx].event_type,
lstate           6739 drivers/scsi/aic7xxx/aic7xxx_core.c 		       lstate->event_buffer[lstate->event_r_idx].event_arg);
lstate           6740 drivers/scsi/aic7xxx/aic7xxx_core.c 		lstate->event_r_idx++;
lstate           6741 drivers/scsi/aic7xxx/aic7xxx_core.c 		if (lstate->event_r_idx == AHC_TMODE_EVENT_BUFFER_SIZE)
lstate           6742 drivers/scsi/aic7xxx/aic7xxx_core.c 			lstate->event_r_idx = 0;
lstate           6743 drivers/scsi/aic7xxx/aic7xxx_core.c 		xpt_release_devq(lstate->path, /*count*/1, /*runqueue*/FALSE);
lstate           6746 drivers/scsi/aic7xxx/aic7xxx_core.c 	event = &lstate->event_buffer[lstate->event_w_idx];
lstate           6750 drivers/scsi/aic7xxx/aic7xxx_core.c 	lstate->event_w_idx++;
lstate           6751 drivers/scsi/aic7xxx/aic7xxx_core.c 	if (lstate->event_w_idx == AHC_TMODE_EVENT_BUFFER_SIZE)
lstate           6752 drivers/scsi/aic7xxx/aic7xxx_core.c 		lstate->event_w_idx = 0;
lstate           6760 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_send_lstate_events(struct ahc_softc *ahc, struct ahc_tmode_lstate *lstate)
lstate           6765 drivers/scsi/aic7xxx/aic7xxx_core.c 	while (lstate->event_r_idx != lstate->event_w_idx
lstate           6766 drivers/scsi/aic7xxx/aic7xxx_core.c 	    && (ccbh = SLIST_FIRST(&lstate->immed_notifies)) != NULL) {
lstate           6769 drivers/scsi/aic7xxx/aic7xxx_core.c 		event = &lstate->event_buffer[lstate->event_r_idx];
lstate           6770 drivers/scsi/aic7xxx/aic7xxx_core.c 		SLIST_REMOVE_HEAD(&lstate->immed_notifies, sim_links.sle);
lstate           6785 drivers/scsi/aic7xxx/aic7xxx_core.c 		lstate->event_r_idx++;
lstate           6786 drivers/scsi/aic7xxx/aic7xxx_core.c 		if (lstate->event_r_idx == AHC_TMODE_EVENT_BUFFER_SIZE)
lstate           6787 drivers/scsi/aic7xxx/aic7xxx_core.c 			lstate->event_r_idx = 0;
lstate           7321 drivers/scsi/aic7xxx/aic7xxx_core.c 		    struct ahc_tmode_lstate **lstate,
lstate           7335 drivers/scsi/aic7xxx/aic7xxx_core.c 		*lstate = ahc->black_hole;
lstate           7347 drivers/scsi/aic7xxx/aic7xxx_core.c 		*lstate = NULL;
lstate           7349 drivers/scsi/aic7xxx/aic7xxx_core.c 			*lstate =
lstate           7353 drivers/scsi/aic7xxx/aic7xxx_core.c 	if (notfound_failure != 0 && *lstate == NULL)
lstate           7363 drivers/scsi/aic7xxx/aic7xxx_core.c 	struct	   ahc_tmode_lstate *lstate;
lstate           7374 drivers/scsi/aic7xxx/aic7xxx_core.c 	status = ahc_find_tmode_devs(ahc, sim, ccb, &tstate, &lstate,
lstate           7495 drivers/scsi/aic7xxx/aic7xxx_core.c 		if (lstate != NULL) {
lstate           7526 drivers/scsi/aic7xxx/aic7xxx_core.c 		lstate = kzalloc(sizeof(*lstate), GFP_ATOMIC);
lstate           7527 drivers/scsi/aic7xxx/aic7xxx_core.c 		if (lstate == NULL) {
lstate           7533 drivers/scsi/aic7xxx/aic7xxx_core.c 		status = xpt_create_path(&lstate->path, /*periph*/NULL,
lstate           7538 drivers/scsi/aic7xxx/aic7xxx_core.c 			kfree(lstate);
lstate           7544 drivers/scsi/aic7xxx/aic7xxx_core.c 		SLIST_INIT(&lstate->accept_tios);
lstate           7545 drivers/scsi/aic7xxx/aic7xxx_core.c 		SLIST_INIT(&lstate->immed_notifies);
lstate           7549 drivers/scsi/aic7xxx/aic7xxx_core.c 			tstate->enabled_luns[lun] = lstate;
lstate           7601 drivers/scsi/aic7xxx/aic7xxx_core.c 			ahc->black_hole = lstate;
lstate           7620 drivers/scsi/aic7xxx/aic7xxx_core.c 		if (lstate == NULL) {
lstate           7641 drivers/scsi/aic7xxx/aic7xxx_core.c 		if (SLIST_FIRST(&lstate->accept_tios) != NULL) {
lstate           7646 drivers/scsi/aic7xxx/aic7xxx_core.c 		if (SLIST_FIRST(&lstate->immed_notifies) != NULL) {
lstate           7658 drivers/scsi/aic7xxx/aic7xxx_core.c 		xpt_free_path(lstate->path);
lstate           7659 drivers/scsi/aic7xxx/aic7xxx_core.c 		kfree(lstate);
lstate           7828 drivers/scsi/aic7xxx/aic7xxx_core.c 	struct	  ahc_tmode_lstate *lstate;
lstate           7841 drivers/scsi/aic7xxx/aic7xxx_core.c 	lstate = NULL;
lstate           7843 drivers/scsi/aic7xxx/aic7xxx_core.c 		lstate = tstate->enabled_luns[lun];
lstate           7848 drivers/scsi/aic7xxx/aic7xxx_core.c 	if (lstate == NULL)
lstate           7849 drivers/scsi/aic7xxx/aic7xxx_core.c 		lstate = ahc->black_hole;
lstate           7851 drivers/scsi/aic7xxx/aic7xxx_core.c 	atio = (struct ccb_accept_tio*)SLIST_FIRST(&lstate->accept_tios);
lstate           7865 drivers/scsi/aic7xxx/aic7xxx_core.c 	       lstate == ahc->black_hole ? "(Black Holed)" : "");
lstate           7867 drivers/scsi/aic7xxx/aic7xxx_core.c 	SLIST_REMOVE_HEAD(&lstate->accept_tios, sim_links.sle);
lstate           7869 drivers/scsi/aic7xxx/aic7xxx_core.c 	if (lstate == ahc->black_hole) {
lstate           7929 drivers/scsi/aic7xxx/aic7xxx_core.c 		ahc->pending_device = lstate;