Lines Matching defs:port
63 struct ctl_port port;
86 struct ctl_port *port;
92 port = &tsoftc->port;
93 port->frontend = &tpcl_frontend;
94 port->port_type = CTL_PORT_INTERNAL;
95 port->num_requested_ctl_io = 100;
96 port->port_name = "tpc";
97 port->fe_datamove = tpcl_datamove;
98 port->fe_done = tpcl_done;
99 port->targ_port = -1;
100 port->max_initiators = 1;
102 if ((error = ctl_port_register(port)) != 0) {
103 printf("%s: tpc port registration failed\n", __func__);
108 port->init_devid = malloc(sizeof(struct ctl_devid) + len,
110 port->init_devid->len = len;
111 tid = (struct scsi_transportid_spi *)port->init_devid->data;
114 scsi_ulto2b(port->targ_port, tid->rel_trgt_port_id);
116 ctl_port_online(port);
124 struct ctl_port *port = &tsoftc->port;
127 ctl_port_offline(port);
128 if ((error = ctl_port_deregister(port)) != 0)
129 printf("%s: tpc port deregistration failed\n", __func__);
272 struct ctl_port *port;
284 port = softc->ctl_ports[init_port];
286 port = NULL;
288 if (port != NULL &&
289 ctl_lun_map_to_port(port, lun->lun) == UINT32_MAX)
317 return (ctl_alloc_io(tsoftc->port.ctl_pool_ref));
326 io->io_hdr.nexus.targ_port = tsoftc->port.targ_port;