Lines Matching defs:nxp
3416 struct isp_nexus *nxp;
3427 for (nxp = fc->nexus_hash[i]; nxp != NULL; nxp = nxp->next) {
3428 if (tgt_set == 0 || tgt == nxp->tgt)
3429 nxp->crnseed = 0;
3440 struct isp_nexus *nxp;
3448 nxp = fc->nexus_hash[idx];
3450 while (nxp) {
3451 if (nxp->tgt == tgt && nxp->lun == lun)
3453 nxp = nxp->next;
3455 if (nxp == NULL) {
3456 nxp = fc->nexus_free_list;
3457 if (nxp == NULL) {
3458 nxp = malloc(sizeof (struct isp_nexus), M_DEVBUF, M_ZERO|M_NOWAIT);
3459 if (nxp == NULL) {
3463 fc->nexus_free_list = nxp->next;
3465 nxp->tgt = tgt;
3466 nxp->lun = lun;
3467 nxp->next = fc->nexus_hash[idx];
3468 fc->nexus_hash[idx] = nxp;
3470 if (nxp->crnseed == 0)
3471 nxp->crnseed = 1;
3472 *crnp = nxp->crnseed++;