Lines Matching refs:cur_port
3484 struct cctl_port *cur_port;
3495 struct cctl_port *cur_port;
3498 cur_port = portlist->cur_port;
3518 if (cur_port != NULL)
3521 cur_port = calloc(1, sizeof(*cur_port));
3522 if (cur_port == NULL)
3524 sizeof(*cur_port));
3527 portlist->cur_port = cur_port;
3529 STAILQ_INIT(&cur_port->init_list);
3530 STAILQ_INIT(&cur_port->lun_list);
3531 STAILQ_INIT(&cur_port->attr_list);
3532 cur_port->port_id = portlist->cur_id;
3533 STAILQ_INSERT_TAIL(&portlist->port_list, cur_port, links);
3541 struct cctl_port *cur_port;
3545 cur_port = portlist->cur_port;
3547 if ((cur_port == NULL)
3549 errx(1, "%s: cur_port == NULL! (name = %s)", __func__, name);
3572 cur_port->frontend_type = str;
3575 cur_port->name = str;
3578 cur_port->online = str;
3581 cur_port->pp = strtoull(str, NULL, 0);
3583 cur_port->vp = strtoull(str, NULL, 0);
3585 cur_port->target = str;
3588 cur_port->port = str;
3591 cur_port->lun_map = str;
3594 portlist->cur_port = NULL;
3617 STAILQ_INSERT_TAIL(&cur_port->init_list, nv, links);
3619 STAILQ_INSERT_TAIL(&cur_port->lun_list, nv, links);
3621 STAILQ_INSERT_TAIL(&cur_port->attr_list, nv, links);