Lines Matching refs:port
61 struct ctl_port port;
85 struct ctl_port *port;
91 port = &tsoftc->port;
92 port->frontend = &tpcl_frontend;
93 port->port_type = CTL_PORT_INTERNAL;
94 port->num_requested_ctl_io = 100;
95 port->port_name = "tpc";
96 port->fe_datamove = tpcl_datamove;
97 port->fe_done = tpcl_done;
98 port->max_targets = 1;
99 port->max_target_id = 0;
100 port->targ_port = -1;
101 port->max_initiators = 1;
103 if (ctl_port_register(port) != 0) {
109 port->init_devid = malloc(sizeof(struct ctl_devid) + len,
111 port->init_devid->len = len;
112 tid = (struct scsi_transportid_spi *)port->init_devid->data;
115 scsi_ulto2b(port->targ_port, tid->rel_trgt_port_id);
117 ctl_port_online(port);
125 struct ctl_port *port;
127 port = &tsoftc->port;
128 ctl_port_offline(port);
129 if (ctl_port_deregister(&tsoftc->port) != 0)
276 struct ctl_port *port;
288 port = softc->ctl_ports[init_port];
290 port = NULL;
292 if (port != NULL &&
293 ctl_lun_map_to_port(port, lun->lun) >= CTL_MAX_LUNS)
321 return (ctl_alloc_io(tsoftc->port.ctl_pool_ref));
330 io->io_hdr.nexus.targ_port = tsoftc->port.targ_port;