Lines Matching defs:port_id
648 nvmft_port_find_by_id(int port_id)
654 if (np->port.targ_port == port_id)
854 nvlist_add_number(req->result_nvl, "port_id", port->targ_port);
862 u_long port_id;
865 * ctladm port -r just provides the port_id, so permit looking
866 * up a port either by "subnqn" or "port_id".
868 port_id = ULONG_MAX;
871 if (!nvlist_exists_string(req->args_nvl, "port_id")) {
877 if (!dnvlist_get_strnum(req->args_nvl, "port_id", ULONG_MAX,
878 &port_id)) {
885 if (nvlist_exists_string(req->args_nvl, "port_id")) {
905 np = nvmft_port_find_by_id(port_id);
909 "CTL port %lu is not a NVMF port", port_id);