Home
last modified time | relevance | path

Searched refs:targ_port (Results 1 – 15 of 15) sorted by relevance

/freebsd-13-stable/sys/cam/ctl/
HDctl_frontend.c158 if (port->targ_port >= 0) in ctl_port_register()
159 port_num = port->targ_port; in ctl_port_register()
195 port->targ_port = -1; in ctl_port_register()
201 port->targ_port = port_num; in ctl_port_register()
211 nport != NULL && nport->targ_port < port_num; in ctl_port_register()
218 softc->ctl_ports[port->targ_port] = port; in ctl_port_register()
231 if (port->targ_port == -1) in ctl_port_deregister()
238 ctl_clear_mask(softc->ctl_port_mask, port->targ_port); in ctl_port_deregister()
239 softc->ctl_ports[port->targ_port] = NULL; in ctl_port_deregister()
HDctl_frontend_cam_sim.c144 port->targ_port = -1; in cfcs_init()
164 softc->wwpn = softc->wwnn + port->targ_port + 1; in cfcs_init()
537 io->io_hdr.nexus.targ_port = softc->port.targ_port; in cfcs_action()
627 io->io_hdr.nexus.targ_port = softc->port.targ_port; in cfcs_action()
684 fc->port = softc->port.targ_port; in cfcs_action()
723 io->io_hdr.nexus.targ_port = softc->port.targ_port; in cfcs_action()
777 cpi->xport_specific.fc.port = softc->port.targ_port; in cfcs_action()
HDctl_tpc_local.c97 port->targ_port = -1; in tpcl_init()
112 scsi_ulto2b(port->targ_port, tid->rel_trgt_port_id); in tpcl_init()
324 io->io_hdr.nexus.targ_port = tsoftc->port.targ_port; in tpcl_queue()
HDctl_frontend_ioctl.c131 port->targ_port = -1; in cfi_init()
218 port->targ_port = -1; in cfi_ioctl_port_create()
230 nvlist_add_number(req->result_nvl, "port_id", port->targ_port); in cfi_ioctl_port_create()
276 if (cfi->port.targ_port == port_id) in cfi_ioctl_port_remove()
631 io->io_hdr.nexus.targ_port = cfi->port.targ_port; in ctl_ioctl_io()
HDctl.c901 if (port->targ_port < softc->port_min || in ctl_isc_announce_port()
902 port->targ_port >= softc->port_max || in ctl_isc_announce_port()
917 msg->hdr.nexus.targ_port = port->targ_port; in ctl_isc_announce_port()
962 if (port->targ_port < softc->port_min || in ctl_isc_announce_iid()
963 port->targ_port >= softc->port_max || in ctl_isc_announce_iid()
979 msg->hdr.nexus.targ_port = port->targ_port; in ctl_isc_announce_iid()
1016 msg->hdr.nexus.targ_port = initidx / CTL_MAX_INIT_PER_PORT; in ctl_isc_announce_mode()
1086 if (port->targ_port >= softc->port_min && in ctl_isc_ha_link_down()
1087 port->targ_port < softc->port_max) in ctl_isc_ha_link_down()
1246 port = softc->ctl_ports[msg->hdr.nexus.targ_port]; in ctl_isc_port_sync()
[all …]
HDctl_io.h169 ctl_ports[(io)->io_hdr.nexus.targ_port])
196 uint32_t targ_port; /* Target port, filled in by PORT */ member
HDctl_scsi_all.c116 io->io_hdr.nexus.initid, io->io_hdr.nexus.targ_port, in ctl_scsi_path_string()
HDctl_frontend.h233 int32_t targ_port; /* passed back to FETD */ member
HDscsi_ctl.c366 port->targ_port = -1; in ctlfeasync()
434 "remove", softc->port.targ_port, in ctlfeasync()
1147 io->io_hdr.nexus.targ_port = bus_softc->port.targ_port; in ctlfedone()
1188 io->io_hdr.nexus.targ_port, in ctlfedone()
1419 io->io_hdr.nexus.targ_port = bus_softc->port.targ_port; in ctlfedone()
HDctl.h65 int32_t targ_port; member
HDctl_frontend_iscsi.c529 io->io_hdr.nexus.targ_port = cs->cs_target->ct_port.targ_port; in cfiscsi_pdu_handle_scsi_command()
587 io->io_hdr.nexus.targ_port = cs->cs_target->ct_port.targ_port; in cfiscsi_pdu_handle_task_request()
1146 io->io_hdr.nexus.targ_port = cs->cs_target->ct_port.targ_port; in cfiscsi_session_terminate_tasks()
2205 port->targ_port = -1; in cfiscsi_ioctl_port_create()
2250 nvlist_add_number(req->result_nvl, "port_id", port->targ_port); in cfiscsi_ioctl_port_create()
HDctl_tpc.c1739 list->init_port = ctsio->io_hdr.nexus.targ_port; in ctl_extended_copy_lid1()
1893 list->init_port = ctsio->io_hdr.nexus.targ_port; in ctl_extended_copy_lid4()
2119 list->init_port = ctsio->io_hdr.nexus.targ_port; in ctl_populate_token()
2265 list->init_port = ctsio->io_hdr.nexus.targ_port; in ctl_write_using_token()
/freebsd-13-stable/sys/dev/usb/storage/
HDcfumass.c669 io->io_hdr.nexus.targ_port = cfumass_port.targ_port; in cfumass_t_command_callback()
961 cfumass_port.targ_port = -1; in cfumass_init()
/freebsd-13-stable/usr.sbin/ctladm/
HDctladm.c398 int32_t targ_port = -1; in cctl_port() local
479 targ_port = strtol(optarg, NULL, 0); in cctl_port()
545 if ((port_type != CTL_PORT_NONE) && (targ_port != -1)) { in cctl_port()
549 } else if ((targ_port == -1) && (port_type == CTL_PORT_NONE)) in cctl_port()
558 entry.targ_port = targ_port; in cctl_port()
586 if (targ_port != -1) in cctl_port()
588 targ_port); in cctl_port()
640 if (targ_port == -1) { in cctl_port()
/freebsd-13-stable/usr.sbin/ctld/
HDkernel.c1129 entry.targ_port = port->p_ctl_port; in kernel_port_add()
1159 entry.targ_port = port->p_ctl_port; in kernel_port_add()
1211 entry.targ_port = port->p_ctl_port; in kernel_port_remove()