Lines Matching refs:cur_port
3490 struct cctl_port *cur_port;
3501 struct cctl_port *cur_port;
3504 cur_port = portlist->cur_port;
3524 if (cur_port != NULL)
3527 cur_port = calloc(1, sizeof(*cur_port));
3528 if (cur_port == NULL)
3530 sizeof(*cur_port));
3533 portlist->cur_port = cur_port;
3535 STAILQ_INIT(&cur_port->init_list);
3536 STAILQ_INIT(&cur_port->lun_list);
3537 STAILQ_INIT(&cur_port->attr_list);
3538 cur_port->port_id = portlist->cur_id;
3539 STAILQ_INSERT_TAIL(&portlist->port_list, cur_port, links);
3547 struct cctl_port *cur_port;
3551 cur_port = portlist->cur_port;
3553 if ((cur_port == NULL)
3555 errx(1, "%s: cur_port == NULL! (name = %s)", __func__, name);
3578 cur_port->frontend_type = str;
3581 cur_port->name = str;
3584 cur_port->online = str;
3587 cur_port->pp = strtoull(str, NULL, 0);
3589 cur_port->vp = strtoull(str, NULL, 0);
3591 cur_port->target = str;
3594 cur_port->port = str;
3597 cur_port->lun_map = str;
3600 portlist->cur_port = NULL;
3623 STAILQ_INSERT_TAIL(&cur_port->init_list, nv, links);
3625 STAILQ_INSERT_TAIL(&cur_port->lun_list, nv, links);
3627 STAILQ_INSERT_TAIL(&cur_port->attr_list, nv, links);