/freebsd/sys/cam/ctl/ |
H A D | ctl_frontend.c | 155 if (port->targ_port >= 0) in ctl_port_register() 156 port_num = port->targ_port; in ctl_port_register() 192 port->targ_port = -1; in ctl_port_register() 198 port->targ_port = port_num; in ctl_port_register() 208 nport != NULL && nport->targ_port < port_num; in ctl_port_register() 215 softc->ctl_ports[port->targ_port] = port; in ctl_port_register() 228 if (port->targ_port == -1) in ctl_port_deregister() 235 ctl_clear_mask(softc->ctl_port_mask, port->targ_port); in ctl_port_deregister() 236 softc->ctl_ports[port->targ_port] = NULL; in ctl_port_deregister()
|
H A D | ctl_frontend_cam_sim.c | 143 port->targ_port = -1; in cfcs_init() 163 softc->wwpn = softc->wwnn + port->targ_port + 1; in cfcs_init() 536 io->io_hdr.nexus.targ_port = softc->port.targ_port; in cfcs_action() 626 io->io_hdr.nexus.targ_port = softc->port.targ_port; in cfcs_action() 683 fc->port = softc->port.targ_port; in cfcs_action() 722 io->io_hdr.nexus.targ_port = softc->port.targ_port; in cfcs_action() 776 cpi->xport_specific.fc.port = softc->port.targ_port; in cfcs_action()
|
H A D | ctl_tpc_local.c | 96 port->targ_port = -1; in tpcl_init() 111 scsi_ulto2b(port->targ_port, tid->rel_trgt_port_id); in tpcl_init() 323 io->io_hdr.nexus.targ_port = tsoftc->port.targ_port; in tpcl_queue()
|
H A D | ctl_frontend_ioctl.c | 130 port->targ_port = -1; in cfi_init() 217 port->targ_port = -1; in cfi_ioctl_port_create() 229 nvlist_add_number(req->result_nvl, "port_id", port->targ_port); in cfi_ioctl_port_create() 275 if (cfi->port.targ_port == port_id) in cfi_ioctl_port_remove() 630 io->io_hdr.nexus.targ_port = cfi->port.targ_port; in ctl_ioctl_io()
|
H A D | ctl.c | 871 if (port->targ_port < softc->port_min || in ctl_isc_announce_port() 872 port->targ_port >= softc->port_max || in ctl_isc_announce_port() 887 msg->hdr.nexus.targ_port = port->targ_port; in ctl_isc_announce_port() 932 if (port->targ_port < softc->port_min || in ctl_isc_announce_iid() 933 port->targ_port >= softc->port_max || in ctl_isc_announce_iid() 949 msg->hdr.nexus.targ_port = port->targ_port; in ctl_isc_announce_iid() 986 msg->hdr.nexus.targ_port = initidx / CTL_MAX_INIT_PER_PORT; in ctl_isc_announce_mode() 1056 if (port->targ_port >= softc->port_min && in ctl_isc_ha_link_down() 1057 port->targ_port < softc->port_max) in ctl_isc_ha_link_down() 1216 port = softc->ctl_ports[msg->hdr.nexus.targ_port]; in ctl_isc_port_sync() [all …]
|
H A D | ctl_io.h | 174 ctl_ports[(io)->io_hdr.nexus.targ_port]) 203 uint32_t targ_port; /* Target port, filled in by PORT */ 199 uint32_t targ_port; /* Target port, filled in by PORT */ global() member
|
H A D | ctl_scsi_all.c | 116 hdr->nexus.initid, hdr->nexus.targ_port, in ctl_scsi_path_string()
|
H A D | ctl_frontend.h | 233 int32_t targ_port; /* passed back to FETD */ member
|
H A D | scsi_ctl.c | 365 port->targ_port = -1; in ctlfeasync() 433 "remove", softc->port.targ_port, in ctlfeasync() 1146 io->io_hdr.nexus.targ_port = bus_softc->port.targ_port; in ctlfedone() 1187 io->io_hdr.nexus.targ_port, in ctlfedone() 1418 io->io_hdr.nexus.targ_port = bus_softc->port.targ_port; in ctlfedone()
|
H A D | ctl.h | 66 int32_t targ_port; 65 int32_t targ_port; global() member
|
H A D | ctl_frontend_iscsi.c | 528 io->io_hdr.nexus.targ_port = cs->cs_target->ct_port.targ_port; in cfiscsi_pdu_handle_scsi_command() 586 io->io_hdr.nexus.targ_port = cs->cs_target->ct_port.targ_port; in cfiscsi_pdu_handle_task_request() 1145 io->io_hdr.nexus.targ_port = cs->cs_target->ct_port.targ_port; in cfiscsi_session_terminate_tasks() 2204 port->targ_port = -1; in cfiscsi_ioctl_port_create() 2249 nvlist_add_number(req->result_nvl, "port_id", port->targ_port); in cfiscsi_ioctl_port_create()
|
H A D | ctl_tpc.c | 1738 list->init_port = ctsio->io_hdr.nexus.targ_port; in ctl_extended_copy_lid1() 1892 list->init_port = ctsio->io_hdr.nexus.targ_port; in ctl_extended_copy_lid4() 2118 list->init_port = ctsio->io_hdr.nexus.targ_port; in ctl_populate_token() 2264 list->init_port = ctsio->io_hdr.nexus.targ_port; in ctl_write_using_token()
|
/freebsd/sys/dev/nvmf/controller/ |
H A D | ctl_frontend_nvmf.c | 240 io->io_hdr.nexus.targ_port = np->port.targ_port; in nvmft_dispatch_command() 272 io->io_hdr.nexus.targ_port = np->port.targ_port; in nvmft_terminate_commands() 620 if (np->port.targ_port != -1) { in nvmft_port_free() 654 if (np->port.targ_port == port_id) in nvmft_port_find_by_id() 835 port->targ_port = -1; in nvmft_port_create() 854 nvlist_add_number(req->result_nvl, "port_id", port->targ_port); in nvmft_port_create()
|
/freebsd/usr.sbin/nvmfd/ |
H A D | ctl.c | 86 entry.targ_port = ctl_port; in init_ctl_port()
|
/freebsd/sys/dev/usb/storage/ |
H A D | cfumass.c | 666 io->io_hdr.nexus.targ_port = cfumass_port.targ_port; in cfumass_t_command_callback() 958 cfumass_port.targ_port = -1; in cfumass_init()
|
/freebsd/usr.sbin/ctladm/ |
H A D | ctladm.c | 407 int32_t targ_port = -1; in cctl_port() local 500 targ_port = strtol(optarg, NULL, 0); in cctl_port() 560 if ((port_type != CTL_PORT_NONE) && (targ_port != -1)) { in cctl_port() 564 } else if ((targ_port == -1) && (port_type == CTL_PORT_NONE)) in cctl_port() 573 entry.targ_port = targ_port; in cctl_port() 603 if (targ_port != -1) in cctl_port() 605 targ_port); in cctl_port() 657 if (targ_port == -1) { in cctl_port()
|
/freebsd/usr.sbin/ctld/ |
H A D | kernel.c | 982 entry.targ_port = port->p_ctl_port; in kernel_port_add() 1012 entry.targ_port = port->p_ctl_port; in kernel_port_add() 1064 entry.targ_port = port->p_ctl_port; in kernel_port_remove()
|