CTL_MAX_INIT_PER_PORT
msg.login.max_init_per_port = CTL_MAX_INIT_PER_PORT;
for (i = 0; i < CTL_MAX_INIT_PER_PORT; i++) {
for (i = 0; i < CTL_MAX_INIT_PER_PORT; i++) {
ps = lun->pending_sense[initidx / CTL_MAX_INIT_PER_PORT];
ps[initidx % CTL_MAX_INIT_PER_PORT].error_code = 0;
p = initidx / CTL_MAX_INIT_PER_PORT;
i = initidx % CTL_MAX_INIT_PER_PORT;
msg->login.max_init_per_port != CTL_MAX_INIT_PER_PORT) {
p = initidx / CTL_MAX_INIT_PER_PORT;
lun->pending_sense[p] = malloc(sizeof(*ps) * CTL_MAX_INIT_PER_PORT,
ps += initidx % CTL_MAX_INIT_PER_PORT;
pu = lun->pending_ua[initidx / CTL_MAX_INIT_PER_PORT];
pu[initidx % CTL_MAX_INIT_PER_PORT] |= ua;
for (i = 0; i < CTL_MAX_INIT_PER_PORT; i++) {
if (port * CTL_MAX_INIT_PER_PORT + i == except)
pu = lun->pending_ua[initidx / CTL_MAX_INIT_PER_PORT];
pu[initidx % CTL_MAX_INIT_PER_PORT] &= ~ua;
for (j = 0; j < CTL_MAX_INIT_PER_PORT; j++) {
if (i * CTL_MAX_INIT_PER_PORT + j == except)
softc->init_min = softc->port_min * CTL_MAX_INIT_PER_PORT;
softc->init_max = softc->port_max * CTL_MAX_INIT_PER_PORT;
if (iid > CTL_MAX_INIT_PER_PORT) {
__func__, iid, CTL_MAX_INIT_PER_PORT);
if (iid >= CTL_MAX_INIT_PER_PORT) {
__func__, wwpn, iid, CTL_MAX_INIT_PER_PORT);
for (i = 0; i < CTL_MAX_INIT_PER_PORT; i++) {
for (i = 0; i < CTL_MAX_INIT_PER_PORT; i++) {
for (i = 0; i < CTL_MAX_INIT_PER_PORT; i++) {
for (k = 0; k < CTL_MAX_INIT_PER_PORT; k++){
for (j = 0; j < CTL_MAX_INIT_PER_PORT; j++) {
for (j = 0; j < CTL_MAX_INIT_PER_PORT; j++) {
return (nexus->initid + (nexus->targ_port * CTL_MAX_INIT_PER_PORT));
#define CTL_MAX_INITIATORS (CTL_MAX_INIT_PER_PORT * ctl_max_ports)
t = lun->pr_keys[residx/CTL_MAX_INIT_PER_PORT];
return (t[residx % CTL_MAX_INIT_PER_PORT]);
t = lun->pr_keys[residx/CTL_MAX_INIT_PER_PORT];
t[residx % CTL_MAX_INIT_PER_PORT] = 0;
i = residx/CTL_MAX_INIT_PER_PORT;
p = malloc(sizeof(uint64_t) * CTL_MAX_INIT_PER_PORT, M_CTL,
t = lun->pr_keys[residx/CTL_MAX_INIT_PER_PORT];
t[residx % CTL_MAX_INIT_PER_PORT] = key;
scsi_ulto2b(i / CTL_MAX_INIT_PER_PORT,
port = softc->ctl_ports[i / CTL_MAX_INIT_PER_PORT];
i % CTL_MAX_INIT_PER_PORT,
ps = lun->pending_sense[initidx / CTL_MAX_INIT_PER_PORT];
ps += initidx % CTL_MAX_INIT_PER_PORT;
msg->hdr.nexus.targ_port = initidx / CTL_MAX_INIT_PER_PORT;
msg->hdr.nexus.initid = initidx % CTL_MAX_INIT_PER_PORT;
p = initidx / CTL_MAX_INIT_PER_PORT;
i = initidx % CTL_MAX_INIT_PER_PORT;
p = initidx / CTL_MAX_INIT_PER_PORT;
ua = malloc(sizeof(ctl_ua_type) * CTL_MAX_INIT_PER_PORT,
for (i = 0; i < CTL_MAX_INIT_PER_PORT; i++)
i = initidx % CTL_MAX_INIT_PER_PORT;
port->max_initiators = CTL_MAX_INIT_PER_PORT;
np->ids = new_unrhdr(0, MIN(CTL_MAX_INIT_PER_PORT - 1,