Lines Matching defs:tstate

496 			struct ahc_tmode_tstate *tstate;
513 &tstate);
565 tstate, targ_info,
568 if (tstate->auto_negotiate & devinfo.target_mask) {
1312 struct ahc_tmode_tstate *tstate;
1322 &tstate);
1414 struct ahc_tmode_tstate *tstate;
1420 &tstate);
1421 ahc_update_neg_request(ahc, devinfo, tstate,
1578 struct ahc_tmode_tstate *tstate;
1590 tstate = (struct ahc_tmode_tstate*)malloc(sizeof(*tstate),
1592 if (tstate == NULL)
1596 * If we have allocated a master tstate, copy user settings from
1597 * the master tstate (taken from SRAM or the EEPROM) for this
1602 memcpy(tstate, master_tstate, sizeof(*tstate));
1603 memset(tstate->enabled_luns, 0, sizeof(tstate->enabled_luns));
1604 tstate->ultraenb = 0;
1606 memset(&tstate->transinfo[i].curr, 0,
1607 sizeof(tstate->transinfo[i].curr));
1608 memset(&tstate->transinfo[i].goal, 0,
1609 sizeof(tstate->transinfo[i].goal));
1612 memset(tstate, 0, sizeof(*tstate));
1613 ahc->enabled_targets[scsi_id] = tstate;
1614 return (tstate);
1625 struct ahc_tmode_tstate *tstate;
1628 * Don't clean up our "master" tstate.
1638 tstate = ahc->enabled_targets[scsi_id];
1639 if (tstate != NULL)
1640 free(tstate, M_DEVBUF);
1867 struct ahc_tmode_tstate *tstate,
1872 auto_negotiate_orig = tstate->auto_negotiate;
1893 tstate->auto_negotiate |= devinfo->target_mask;
1895 tstate->auto_negotiate &= ~devinfo->target_mask;
1897 return (auto_negotiate_orig != tstate->auto_negotiate);
1914 struct ahc_tmode_tstate *tstate;
1930 devinfo->target, &tstate);
1973 tstate->ultraenb &= ~devinfo->target_mask;
1976 tstate->ultraenb |=
1987 if (tstate->ultraenb & devinfo->target_mask)
2020 update_needed += ahc_update_neg_request(ahc, devinfo, tstate,
2040 struct ahc_tmode_tstate *tstate;
2048 devinfo->target, &tstate);
2082 update_needed += ahc_update_neg_request(ahc, devinfo, tstate,
2123 struct ahc_tmode_tstate *tstate;
2128 devinfo.target, &tstate);
2131 if ((tstate->ultraenb & devinfo.target_mask) != 0)
2135 if ((tstate->auto_negotiate & devinfo.target_mask) == 0
2384 struct ahc_tmode_tstate *tstate;
2394 devinfo->target, &tstate);
3084 struct ahc_tmode_tstate *tstate;
3094 devinfo->target, &tstate);
3288 ahc_update_neg_request(ahc, devinfo, tstate,
3457 tstate = ahc->enabled_targets[devinfo->our_scsiid];
3458 if (tstate != NULL) {
3461 lstate = tstate->enabled_luns[devinfo->lun];
3513 struct ahc_tmode_tstate *tstate;
3522 devinfo->target, &tstate);
3823 struct ahc_tmode_tstate* tstate;
3837 tstate = ahc->enabled_targets[devinfo->our_scsiid];
3838 if (tstate != NULL) {
3842 lstate = tstate->enabled_luns[lun];
4085 struct ahc_tmode_tstate *tstate;
4087 tstate = ahc->enabled_targets[i];
4088 if (tstate != NULL) {
4095 lstate = tstate->enabled_luns[j];
4102 free(tstate, M_DEVBUF);
4979 * Allocate a tstate to house information for our
5062 struct ahc_tmode_tstate *tstate;
5076 target_id, &tstate);
5158 tstate->ultraenb = 0;
6169 struct ahc_tmode_tstate* tstate;
6172 tstate = ahc->enabled_targets[target];
6173 if (tstate == NULL)
6178 lstate = tstate->enabled_luns[lun];
7291 struct ahc_tmode_tstate **tstate,
7305 *tstate = NULL;
7317 *tstate = ahc->enabled_targets[ccb->ccb_h.target_id];
7319 if (*tstate != NULL)
7321 (*tstate)->enabled_luns[ccb->ccb_h.target_lun];
7333 struct ahc_tmode_tstate *tstate;
7344 status = ahc_find_tmode_devs(ahc, sim, ccb, &tstate, &lstate,
7482 if (target != CAM_TARGET_WILDCARD && tstate == NULL) {
7483 tstate = ahc_alloc_tstate(ahc, target, channel);
7484 if (tstate == NULL) {
7486 printf("Couldn't allocate tstate\n");
7514 tstate->enabled_luns[lun] = lstate;
7624 tstate->enabled_luns[lun] = NULL;
7627 if (tstate->enabled_luns[i] != NULL) {
7786 struct ahc_tmode_tstate *tstate;
7799 tstate = ahc->enabled_targets[target];
7801 if (tstate != NULL)
7802 lstate = tstate->enabled_luns[lun];