Home | History | Annotate | Download | only in ic

Lines Matching defs:tstate

502 			struct ahc_tmode_tstate *tstate;
520 &tstate);
566 tstate, targ_info,
569 if (tstate->auto_negotiate & devinfo.target_mask) {
1302 struct ahc_tmode_tstate *tstate;
1312 &tstate);
1397 struct ahc_tmode_tstate *tstate;
1404 &tstate);
1405 ahc_update_neg_request(ahc, &devinfo, tstate,
1564 struct ahc_tmode_tstate *tstate;
1576 tstate = malloc(sizeof(*tstate), M_DEVBUF, M_WAITOK);
1579 * If we have allocated a master tstate, copy user settings from
1580 * the master tstate (taken from SRAM or the EEPROM) for this
1585 memcpy(tstate, master_tstate, sizeof(*tstate));
1586 memset(tstate->enabled_luns, 0, sizeof(tstate->enabled_luns));
1587 tstate->ultraenb = 0;
1589 memset(&tstate->transinfo[i].curr, 0,
1590 sizeof(tstate->transinfo[i].curr));
1591 memset(&tstate->transinfo[i].goal, 0,
1592 sizeof(tstate->transinfo[i].goal));
1595 memset(tstate, 0, sizeof(*tstate));
1596 ahc->enabled_targets[scsi_id] = tstate;
1597 return (tstate);
1608 struct ahc_tmode_tstate *tstate;
1611 * Don't clean up our "master" tstate.
1621 tstate = ahc->enabled_targets[scsi_id];
1622 if (tstate != NULL)
1623 free(tstate, M_DEVBUF);
1850 struct ahc_tmode_tstate *tstate,
1855 auto_negotiate_orig = tstate->auto_negotiate;
1876 tstate->auto_negotiate |= devinfo->target_mask;
1878 tstate->auto_negotiate &= ~devinfo->target_mask;
1880 return (auto_negotiate_orig != tstate->auto_negotiate);
1897 struct ahc_tmode_tstate *tstate;
1913 devinfo->target, &tstate);
1956 tstate->ultraenb &= ~devinfo->target_mask;
1959 tstate->ultraenb |=
1970 if (tstate->ultraenb & devinfo->target_mask)
2003 update_needed += ahc_update_neg_request(ahc, devinfo, tstate,
2023 struct ahc_tmode_tstate *tstate;
2031 devinfo->target, &tstate);
2065 update_needed += ahc_update_neg_request(ahc, devinfo, tstate,
2104 struct ahc_tmode_tstate *tstate;
2109 devinfo.target, &tstate);
2112 if ((tstate->ultraenb & devinfo.target_mask) != 0)
2116 if ((tstate->auto_negotiate & devinfo.target_mask) == 0
2365 struct ahc_tmode_tstate *tstate;
2375 devinfo->target, &tstate);
2991 struct ahc_tmode_tstate *tstate;
3001 devinfo->target, &tstate);
3357 tstate = ahc->enabled_targets[devinfo->our_scsiid];
3358 if (tstate != NULL) {
3361 lstate = tstate->enabled_luns[devinfo->lun];
3413 struct ahc_tmode_tstate *tstate;
3422 devinfo->target, &tstate);
3732 struct ahc_tmode_tstate* tstate;
3746 tstate = ahc->enabled_targets[devinfo->our_scsiid];
3747 if (tstate != NULL) {
3751 lstate = tstate->enabled_luns[lun];
3930 struct ahc_tmode_tstate *tstate;
3932 tstate = ahc->enabled_targets[i];
3933 if (tstate != NULL) {
3940 lstate = tstate->enabled_luns[j];
3947 free(tstate, M_DEVBUF);
4543 * Allocate a tstate to house information for our
4663 struct ahc_tmode_tstate *tstate;
4677 target_id, &tstate);
4759 tstate->ultraenb = 0;
4760 tstate->discenable = discenable;
6022 struct ahc_tmode_tstate* tstate;
6025 tstate = ahc->enabled_targets[target];
6026 if (tstate == NULL)
6031 lstate = tstate->enabled_luns[lun];
6785 struct ahc_tmode_tstate **tstate,
6799 *tstate = NULL;
6811 *tstate = ahc->enabled_targets[ccb->ccb_h.target_id];
6813 if (*tstate != NULL)
6815 (*tstate)->enabled_luns[ccb->ccb_h.target_lun];
6827 struct ahc_tmode_tstate *tstate;
6838 status = ahc_find_tmode_devs(ahc, sim, ccb, &tstate, &lstate,
6962 if (target != CAM_TARGET_WILDCARD && tstate == NULL) {
6963 tstate = ahc_alloc_tstate(ahc, target, channel);
6964 if (tstate == NULL) {
6966 printf("Couldn't allocate tstate\n");
6995 tstate->enabled_luns[lun] = lstate;
7110 tstate->enabled_luns[lun] = NULL;
7113 if (tstate->enabled_luns[i] != NULL) {
7265 struct ahc_tmode_tstate *tstate;
7278 tstate = ahc->enabled_targets[target];
7280 if (tstate != NULL)
7281 lstate = tstate->enabled_luns[lun];