Lines Matching refs:lun_map
876 if (port->lun_map) in ctl_isc_announce_port()
896 if (port->lun_map) { in ctl_isc_announce_port()
898 memcpy(&msg->port.data[i], port->lun_map, in ctl_isc_announce_port()
1245 if (port->lun_map == NULL || in ctl_isc_port_sync()
1249 free(port->lun_map, M_CTL); in ctl_isc_port_sync()
1250 port->lun_map = malloc(msg->port.lun_map_len, in ctl_isc_port_sync()
1253 memcpy(port->lun_map, &msg->port.data[i], msg->port.lun_map_len); in ctl_isc_port_sync()
1258 free(port->lun_map, M_CTL); in ctl_isc_port_sync()
1259 port->lun_map = NULL; in ctl_isc_port_sync()
3421 if (port->lun_map != NULL) { in ctl_ioctl()
3638 if (port->lun_map == NULL || port->lun_map_size < size) { in ctl_lun_map_init()
3640 free(port->lun_map, M_CTL); in ctl_lun_map_init()
3641 port->lun_map = malloc(size * sizeof(uint32_t), in ctl_lun_map_init()
3644 if (port->lun_map == NULL) in ctl_lun_map_init()
3647 port->lun_map[i] = UINT32_MAX; in ctl_lun_map_init()
3665 if (port->lun_map == NULL) in ctl_lun_map_deinit()
3668 free(port->lun_map, M_CTL); in ctl_lun_map_deinit()
3669 port->lun_map = NULL; in ctl_lun_map_deinit()
3686 if (port->lun_map == NULL) { in ctl_lun_map_set()
3693 old = port->lun_map[plun]; in ctl_lun_map_set()
3694 port->lun_map[plun] = glun; in ctl_lun_map_set()
3708 if (port->lun_map == NULL || plun >= port->lun_map_size) in ctl_lun_map_unset()
3710 old = port->lun_map[plun]; in ctl_lun_map_unset()
3711 port->lun_map[plun] = UINT32_MAX; in ctl_lun_map_unset()
3726 if (port->lun_map == NULL) in ctl_lun_map_from_port()
3730 return (port->lun_map[lun_id]); in ctl_lun_map_from_port()
3740 if (port->lun_map == NULL) in ctl_lun_map_to_port()
3743 if (port->lun_map[i] == lun_id) in ctl_lun_map_to_port()
4745 port->lun_map != NULL || port->lun_enable == NULL) in ctl_enable_lun()
4788 port->lun_map != NULL || port->lun_disable == NULL) in ctl_disable_lun()
9156 num_port_luns = port->lun_map ? port->lun_map_size : ctl_max_luns; in ctl_report_luns()