Lines Matching refs:lun_map
906 if (port->lun_map) in ctl_isc_announce_port()
926 if (port->lun_map) { in ctl_isc_announce_port()
928 memcpy(&msg->port.data[i], port->lun_map, in ctl_isc_announce_port()
1275 if (port->lun_map == NULL || in ctl_isc_port_sync()
1279 free(port->lun_map, M_CTL); in ctl_isc_port_sync()
1280 port->lun_map = malloc(msg->port.lun_map_len, in ctl_isc_port_sync()
1283 memcpy(port->lun_map, &msg->port.data[i], msg->port.lun_map_len); in ctl_isc_port_sync()
1288 free(port->lun_map, M_CTL); in ctl_isc_port_sync()
1289 port->lun_map = NULL; in ctl_isc_port_sync()
3428 if (port->lun_map != NULL) { in ctl_ioctl()
3645 if (port->lun_map == NULL || port->lun_map_size < size) { in ctl_lun_map_init()
3647 free(port->lun_map, M_CTL); in ctl_lun_map_init()
3648 port->lun_map = malloc(size * sizeof(uint32_t), in ctl_lun_map_init()
3651 if (port->lun_map == NULL) in ctl_lun_map_init()
3654 port->lun_map[i] = UINT32_MAX; in ctl_lun_map_init()
3672 if (port->lun_map == NULL) in ctl_lun_map_deinit()
3675 free(port->lun_map, M_CTL); in ctl_lun_map_deinit()
3676 port->lun_map = NULL; in ctl_lun_map_deinit()
3693 if (port->lun_map == NULL) { in ctl_lun_map_set()
3700 old = port->lun_map[plun]; in ctl_lun_map_set()
3701 port->lun_map[plun] = glun; in ctl_lun_map_set()
3715 if (port->lun_map == NULL || plun >= port->lun_map_size) in ctl_lun_map_unset()
3717 old = port->lun_map[plun]; in ctl_lun_map_unset()
3718 port->lun_map[plun] = UINT32_MAX; in ctl_lun_map_unset()
3733 if (port->lun_map == NULL) in ctl_lun_map_from_port()
3737 return (port->lun_map[lun_id]); in ctl_lun_map_from_port()
3747 if (port->lun_map == NULL) in ctl_lun_map_to_port()
3750 if (port->lun_map[i] == lun_id) in ctl_lun_map_to_port()
4880 port->lun_map != NULL || port->lun_enable == NULL) in ctl_enable_lun()
4923 port->lun_map != NULL || port->lun_disable == NULL) in ctl_disable_lun()
9195 num_port_luns = port->lun_map ? port->lun_map_size : ctl_max_luns; in ctl_report_luns()