Lines Matching refs:ctl_max_luns
429 static int ctl_max_luns = CTL_DEFAULT_MAX_LUNS; variable
430 TUNABLE_INT("kern.cam.ctl.max_luns", &ctl_max_luns);
432 &ctl_max_luns, CTL_DEFAULT_MAX_LUNS, "Maximum number of LUNs");
1044 msg.login.max_luns = ctl_max_luns; in ctl_isc_ha_link_up()
1108 if (msg->hdr.nexus.targ_mapped_lun >= ctl_max_luns || in ctl_isc_ua()
1142 if (targ_lun >= ctl_max_luns || in ctl_isc_lun_sync()
1364 if (msg->login.max_luns != ctl_max_luns || in ctl_isc_login()
1382 if (targ_lun >= ctl_max_luns || in ctl_isc_mode_sync()
1901 if (ctl_max_luns <= 0 || powerof2(ctl_max_luns) == 0) { in ctl_init()
1903 ctl_max_luns, CTL_DEFAULT_MAX_LUNS); in ctl_init()
1904 ctl_max_luns = CTL_DEFAULT_MAX_LUNS; in ctl_init()
1906 softc->ctl_luns = malloc(sizeof(struct ctl_lun *) * ctl_max_luns, in ctl_init()
1909 ((ctl_max_luns + 31) / 32), M_DEVBUF, M_WAITOK | M_ZERO); in ctl_init()
2303 if (targ_lun >= ctl_max_luns || in ctl_serialize_other_sc_cmd()
2652 (ooa_hdr->lun_num >= ctl_max_luns || in ctl_ioctl()
2705 if (delay_info->lun_id >= ctl_max_luns || in ctl_ioctl()
2751 if (err_desc->lun_id >= ctl_max_luns || in ctl_ioctl()
2795 if (delete_desc->lun_id >= ctl_max_luns || in ctl_ioctl()
3434 else if (lm->lun < ctl_max_luns && in ctl_ioctl()
4642 if ((be_lun->req_lun_id > (ctl_max_luns - 1)) in ctl_alloc_lun()
4645 if (be_lun->req_lun_id > (ctl_max_luns - 1)) { in ctl_alloc_lun()
4648 be_lun->req_lun_id, ctl_max_luns - 1); in ctl_alloc_lun()
4667 lun_number = ctl_ffz(ctl_softc->ctl_lun_mask, 0, ctl_max_luns); in ctl_alloc_lun()
8568 if (targ_lun >= ctl_max_luns || in ctl_hndl_per_res_out_on_other_sc()
9096 num_port_luns = port->lun_map ? port->lun_map_size : ctl_max_luns; in ctl_report_luns()
11363 if (targ_lun > ctl_max_luns || in ctl_failover_lun()
11443 if (targ_lun < ctl_max_luns) in ctl_scsiio_precheck()
11866 if (targ_lun >= ctl_max_luns || in ctl_lun_reset()
11946 if (targ_lun >= ctl_max_luns || in ctl_abort_task_set()
12041 if (targ_lun >= ctl_max_luns ||
12121 if (targ_lun >= ctl_max_luns ||
12160 if (targ_lun >= ctl_max_luns ||
12252 if (targ_lun >= ctl_max_luns ||
12272 if (targ_lun >= ctl_max_luns ||
13191 if (targ_lun >= ctl_max_luns ||