Lines Matching refs:plun
3331 uint32_t plun; in ctl_ioctl() local
3424 plun = ctl_lun_map_from_port(port, j); in ctl_ioctl()
3425 if (plun == UINT32_MAX) in ctl_ioctl()
3429 j, plun); in ctl_ioctl()
3503 if (lm->plun != UINT32_MAX) { in ctl_ioctl()
3505 retval = ctl_lun_map_unset(port, lm->plun); in ctl_ioctl()
3508 retval = ctl_lun_map_set(port, lm->plun, lm->lun); in ctl_ioctl()
3681 ctl_lun_map_set(struct ctl_port *port, uint32_t plun, uint32_t glun) in ctl_lun_map_set() argument
3691 if (plun >= port->lun_map_size) 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()
3697 port->lun_enable(port->targ_lun_arg, plun); in ctl_lun_map_set()
3704 ctl_lun_map_unset(struct ctl_port *port, uint32_t plun) in ctl_lun_map_unset() argument
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()
3714 port->lun_disable(port->targ_lun_arg, plun); in ctl_lun_map_unset()