Lines Matching refs:lun_map
828 if (port->lun_map) in ctl_isc_announce_port()
848 if (port->lun_map) { in ctl_isc_announce_port()
850 memcpy(&msg->port.data[i], port->lun_map, in ctl_isc_announce_port()
1158 if (port->lun_map == NULL) in ctl_isc_port_sync()
1159 port->lun_map = malloc(sizeof(uint32_t) * CTL_MAX_LUNS, in ctl_isc_port_sync()
1161 memcpy(port->lun_map, &msg->port.data[i], in ctl_isc_port_sync()
1165 free(port->lun_map, M_CTL); in ctl_isc_port_sync()
1166 port->lun_map = NULL; in ctl_isc_port_sync()
3297 if (port->lun_map != NULL) { in ctl_ioctl()
3448 if (port->lun_map == NULL) in ctl_lun_map_init()
3449 port->lun_map = malloc(sizeof(uint32_t) * CTL_MAX_LUNS, in ctl_lun_map_init()
3451 if (port->lun_map == NULL) in ctl_lun_map_init()
3454 port->lun_map[i] = UINT32_MAX; in ctl_lun_map_init()
3471 if (port->lun_map == NULL) in ctl_lun_map_deinit()
3473 free(port->lun_map, M_CTL); in ctl_lun_map_deinit()
3474 port->lun_map = NULL; in ctl_lun_map_deinit()
3491 if (port->lun_map == NULL) { in ctl_lun_map_set()
3496 old = port->lun_map[plun]; in ctl_lun_map_set()
3497 port->lun_map[plun] = glun; in ctl_lun_map_set()
3511 if (port->lun_map == NULL) in ctl_lun_map_unset()
3513 old = port->lun_map[plun]; in ctl_lun_map_unset()
3514 port->lun_map[plun] = UINT32_MAX; in ctl_lun_map_unset()
3529 if (port->lun_map == NULL || lun_id >= CTL_MAX_LUNS) in ctl_lun_map_from_port()
3531 return (port->lun_map[lun_id]); in ctl_lun_map_from_port()
3541 if (port->lun_map == NULL) in ctl_lun_map_to_port()
3544 if (port->lun_map[i] == lun_id) in ctl_lun_map_to_port()
4723 port->lun_map != NULL || port->lun_enable == NULL) in ctl_enable_lun()
4771 port->lun_map != NULL || port->lun_disable == NULL) in ctl_disable_lun()