Lines Matching refs:ctl_max_ports
371 static int ctl_max_ports = CTL_DEFAULT_MAX_PORTS; variable
372 TUNABLE_INT("kern.cam.ctl.max_ports", &ctl_max_ports);
374 &ctl_max_ports, CTL_DEFAULT_MAX_LUNS, "Maximum number of ports");
379 #define CTL_MAX_INITIATORS (CTL_MAX_INIT_PER_PORT * ctl_max_ports)
1013 msg.login.max_ports = ctl_max_ports; in ctl_isc_ha_link_up()
1392 msg->login.max_ports != ctl_max_ports || in ctl_isc_login()
1957 if (ctl_max_ports <= 0 || powerof2(ctl_max_ports) == 0) { in ctl_init()
1959 ctl_max_ports, CTL_DEFAULT_MAX_PORTS); in ctl_init()
1960 ctl_max_ports = CTL_DEFAULT_MAX_PORTS; in ctl_init()
1963 ((ctl_max_ports + 31) / 32), M_DEVBUF, M_WAITOK | M_ZERO); in ctl_init()
1964 softc->ctl_ports = malloc(sizeof(struct ctl_port *) * ctl_max_ports, in ctl_init()
1978 softc->port_cnt = ctl_max_ports; in ctl_init()
1981 softc->port_cnt = ctl_max_ports / NUM_HA_SHELVES; in ctl_init()
2879 for (j = 0; j < ctl_max_ports; j++) { in ctl_ioctl()
4470 ctl_max_ports, M_DEVBUF, M_WAITOK | M_ZERO); in ctl_add_lun()
4471 lun->pending_ua = malloc(sizeof(ctl_ua_type *) * ctl_max_ports, in ctl_add_lun()
4473 lun->pr_keys = malloc(sizeof(uint64_t *) * ctl_max_ports, in ctl_add_lun()
4714 for (i = 0; i < ctl_max_ports; i++) in ctl_free_lun()
4717 for (i = 0; i < ctl_max_ports; i++) in ctl_free_lun()
12651 for (i = 0; i < ctl_max_ports; i++) { in ctl_do_lun_reset()