/kernel/linux/linux-6.6/drivers/scsi/elx/libefc/ |
H A D | efc_nport.c | 16 * A nport reference should be taken when: 17 * - an nport is allocated 18 * - a vport populates associated nport 25 * - the nport is removed 34 struct efc_nport *nport = data; in efc_nport_cb() local 37 efc_log_debug(efc, "nport event: %s\n", efc_sm_event_name(event)); in efc_nport_cb() 40 efc_sm_post_event(&nport->sm, event, NULL); in efc_nport_cb() 47 struct efc_nport *nport = NULL; in efc_nport_find_wwn() local 49 /* Find a nport, given the WWNN and WWPN */ in efc_nport_find_wwn() 50 list_for_each_entry(nport, in efc_nport_find_wwn() 60 struct efc_nport *nport = container_of(arg, struct efc_nport, ref); _efc_nport_free() local 69 struct efc_nport *nport; efc_nport_alloc() local 135 efc_nport_free(struct efc_nport *nport) efc_nport_free() argument 166 struct efc_nport *nport; efc_nport_find() local 177 efc_nport_attach(struct efc_nport *nport, u32 fc_id) efc_nport_attach() argument 213 efc_nport_shutdown(struct efc_nport *nport) efc_nport_shutdown() argument 255 efc_vport_link_down(struct efc_nport *nport) efc_vport_link_down() argument 274 struct efc_nport *nport = ctx->app; __efc_nport_common() local 323 struct efc_nport *nport = ctx->app; __efc_nport_allocated() local 347 struct efc_nport *nport = ctx->app; __efc_nport_vport_init() local 384 struct efc_nport *nport = ctx->app; __efc_nport_vport_wait_alloc() local 441 struct efc_nport *nport = ctx->app; __efc_nport_vport_allocated() local 473 efc_vport_update_spec(struct efc_nport *nport) efc_vport_update_spec() argument 496 struct efc_nport *nport = ctx->app; __efc_nport_attached() local 542 struct efc_nport *nport = ctx->app; __efc_nport_wait_shutdown() local 579 struct efc_nport *nport = ctx->app; __efc_nport_wait_port_free() local 600 struct efc_nport *nport; efc_vport_nport_alloc() local 684 struct efc_nport *nport; efc_nport_vport_del() local [all...] |
H A D | efc_cmds.c | 13 efc_nport_free_resources(struct efc_nport *nport, int evt, void *data) in efc_nport_free_resources() argument 15 struct efc *efc = nport->efc; in efc_nport_free_resources() 17 /* Clear the nport attached flag */ in efc_nport_free_resources() 18 nport->attached = false; in efc_nport_free_resources() 21 if (nport->dma.virt) { in efc_nport_free_resources() 22 dma_free_coherent(&efc->pci->dev, nport->dma.size, in efc_nport_free_resources() 23 nport->dma.virt, nport->dma.phys); in efc_nport_free_resources() 24 memset(&nport->dma, 0, sizeof(struct efc_dma)); in efc_nport_free_resources() 28 sli_resource_free(efc->sli, SLI4_RSRC_VPI, nport in efc_nport_free_resources() 34 efc_nport_get_mbox_status(struct efc_nport *nport, u8 *mqe, int status) efc_nport_get_mbox_status() argument 52 struct efc_nport *nport = arg; efc_nport_free_unreg_vpi_cb() local 65 efc_nport_free_unreg_vpi(struct efc_nport *nport) efc_nport_free_unreg_vpi() argument 88 efc_nport_send_evt(struct efc_nport *nport, int evt, void *data) efc_nport_send_evt() argument 107 struct efc_nport *nport = arg; efc_nport_alloc_init_vpi_cb() local 119 efc_nport_alloc_init_vpi(struct efc_nport *nport) efc_nport_alloc_init_vpi() argument 150 struct efc_nport *nport = arg; efc_nport_alloc_read_sparm64_cb() local 173 efc_nport_alloc_read_sparm64(struct efc *efc, struct efc_nport *nport) efc_nport_alloc_read_sparm64() argument 206 efc_cmd_nport_alloc(struct efc *efc, struct efc_nport *nport, struct efc_domain *domain, u8 *wwpn) efc_cmd_nport_alloc() argument 250 struct efc_nport *nport = arg; efc_nport_attach_reg_vpi_cb() local 263 efc_cmd_nport_attach(struct efc *efc, struct efc_nport *nport, u32 fc_id) efc_cmd_nport_attach() argument 298 efc_cmd_nport_free(struct efc *efc, struct efc_nport *nport) efc_cmd_nport_free() argument 426 struct efc_nport *nport = domain->nport; efc_domain_alloc_init_vfi() local 606 efc_cmd_node_alloc(struct efc *efc, struct efc_remote_node *rnode, u32 fc_addr, struct efc_nport *nport) efc_cmd_node_alloc() argument [all...] |
H A D | efc_fabric.c | 103 node->nport->topology = topology; in efc_fabric_set_topology() 113 * now loop through the nodes in the nport in efc_fabric_notify_topology() 116 xa_for_each(&node->nport->lookup, index, tmp_node) { in efc_fabric_notify_topology() 120 &node->nport->topology); in efc_fabric_notify_topology() 150 memcpy(node->nport->domain->flogi_service_params, in __efc_fabric_flogi_wait_rsp() 156 /* sm: if not nport / efc_domain_attach */ in __efc_fabric_flogi_wait_rsp() 160 WARN_ON(node->nport->domain->attached); in __efc_fabric_flogi_wait_rsp() 161 efc_domain_attach(node->nport->domain, in __efc_fabric_flogi_wait_rsp() 169 /* sm: if nport and p2p_winner / efc_domain_attach */ in __efc_fabric_flogi_wait_rsp() 171 if (efc_p2p_setup(node->nport)) { in __efc_fabric_flogi_wait_rsp() 212 struct efc_nport *nport = node->nport; __efc_fabric_flogi_wait_rsp() local 306 efc_start_ns_node(struct efc_nport *nport) efc_start_ns_node() argument 331 efc_start_fabctl_node(struct efc_nport *nport) efc_start_fabctl_node() argument 652 struct efc_nport *nport = node->nport; efc_process_gidpt_payload() local 1005 struct efc_nport *nport = node->nport; efc_process_rscn() local 1090 efc_rnode_is_winner(struct efc_nport *nport) efc_rnode_is_winner() argument 1138 struct efc_nport *nport = node->nport; __efc_p2p_wait_domain_attach() local 1527 efc_p2p_setup(struct efc_nport *nport) efc_p2p_setup() argument [all...] |
H A D | efc_domain.c | 245 struct efc_nport *nport; in __efc_domain_init() local 257 efc_log_debug(efc, "Create nport WWPN %016llX WWNN %016llX\n", in __efc_domain_init() 260 /* Allocate a nport and transition to __efc_nport_allocated */ in __efc_domain_init() 261 nport = efc_nport_alloc(domain, my_wwpn, my_wwnn, U32_MAX, in __efc_domain_init() 264 if (!nport) { in __efc_domain_init() 268 efc_sm_transition(&nport->sm, __efc_nport_allocated, NULL); in __efc_domain_init() 270 bewwpn = cpu_to_be64(nport->wwpn); in __efc_domain_init() 275 if (efc_cmd_nport_alloc(efc, nport, NULL, (uint8_t *)&bewwpn)) { in __efc_domain_init() 277 efc_nport_free(nport); in __efc_domain_init() 310 nport in __efc_domain_init() 367 struct efc_nport *nport; __efc_domain_wait_alloc() local 517 struct efc_nport *nport = NULL, *nport_next = NULL; __efc_domain_allocated() local 554 struct efc_nport *nport, *next_nport; __efc_domain_wait_attach() local 646 struct efc_nport *nport = NULL, *nport_next = NULL; __efc_domain_ready() local 793 struct efc_nport *nport = NULL, *nport_next = NULL; __efc_domain_wait_domain_lost() local 944 struct efc_nport *nport = NULL; efc_domain_dispatch_frame() local [all...] |
H A D | efc_node.c | 25 efc_node_find(struct efc_nport *nport, u32 port_id) in efc_node_find() argument 28 return xa_load(&nport->lookup, port_id); in efc_node_find() 44 struct efc_node *efc_node_alloc(struct efc_nport *nport, in efc_node_alloc() argument 49 struct efc *efc = nport->efc; in efc_node_alloc() 52 if (nport->shutting_down) { in efc_node_alloc() 73 node->nport = nport; in efc_node_alloc() 85 rc = efc_cmd_node_alloc(efc, &node->rnode, port_id, nport); in efc_node_alloc() 97 rc = xa_err(xa_store(&nport->lookup, port_id, node, GFP_ATOMIC)); in efc_node_alloc() 106 kref_get(&nport in efc_node_alloc() 122 struct efc_nport *nport; efc_node_free() local 195 struct efc_nport *nport = node->nport; efc_node_attach() local 249 struct efc_nport *nport = node->nport; efc_node_update_display_name() local [all...] |
H A D | efc_cmds.h | 12 efc_cmd_nport_alloc(struct efc *efc, struct efc_nport *nport, 15 efc_cmd_nport_attach(struct efc *efc, struct efc_nport *nport, u32 fc_id); 17 efc_cmd_nport_free(struct efc *efc, struct efc_nport *nport); 33 struct efc_nport *nport);
|
H A D | efc_els.c | 271 els->io.vpi = node->nport->indicator; in efc_els_send_req() 272 els->io.s_id = node->nport->fc_id; in efc_els_send_req() 370 els->io.vpi = node->nport->indicator; in efc_els_send_rsp() 371 if (node->nport->fc_id != U32_MAX) in efc_els_send_rsp() 372 els->io.s_id = node->nport->fc_id; in efc_els_send_rsp() 411 memcpy(plogi, node->nport->service_params, sizeof(*plogi)); in efc_send_plogi() 441 memcpy(flogi, node->nport->service_params, sizeof(*flogi)); in efc_send_flogi() 470 memcpy(fdisc, node->nport->service_params, sizeof(*fdisc)); in efc_send_fdisc() 509 (node->nport->enable_ini ? in efc_send_prli() 511 (node->nport in efc_send_prli() 556 struct efc_nport *nport = node->nport; efc_send_adisc() local [all...] |
H A D | efc.h | 48 #define nport_sm_trace(nport) \ 49 efc_log_debug(nport->efc, \ 50 "[%s] %-20s %-20s\n", nport->display_name, __func__, efc_sm_event_name(evt)) \
|
H A D | efc_device.c | 32 if (node->nport->enable_tgt) in efc_d_send_prli_rsp() 224 if (node->nport->enable_tgt) in __efc_d_initiate_shutdown() 240 if (node->nport->enable_ini) in __efc_d_initiate_shutdown() 254 if (node->nport->enable_tgt) in __efc_d_initiate_shutdown() 263 if (node->nport->enable_ini) in __efc_d_initiate_shutdown() 465 switch (node->nport->topology) { in efc_d_check_plogi_topology() 467 /* we're not attached and nport is p2p, in efc_d_check_plogi_topology() 470 efc_domain_attach(node->nport->domain, d_id); in efc_d_check_plogi_topology() 474 /* we're not attached and nport is fabric, domain in efc_d_check_plogi_topology() 499 node->nport in efc_d_check_plogi_topology() [all...] |
H A D | efc_node.h | 69 * All combinations of the SLI port (nport) initiator/target enable, 98 if (node->nport->enable_ini) in efc_node_get_enable() 100 if (node->nport->enable_tgt) in efc_node_get_enable() 124 efc_node_alloc(struct efc_nport *nport, u32 port_id, 181 efc_node_find(struct efc_nport *nport, u32 id);
|
H A D | efc_nport.h | 21 efc_nport_free(struct efc_nport *nport); 23 efc_nport_attach(struct efc_nport *nport, u32 fc_id);
|
H A D | efclib.h | 104 * @list_entry: nport list entry 106 * @release: function to free nport object 125 * @sm: nport state machine context 130 * @shutting_down: nport in process of shutting down 184 * @ref: Reference count, each nport takes a reference 208 * @nport: Pointer to first (physical) SLI port 244 struct efc_nport *nport; member 256 * @nport: associated SLI port 266 struct efc_nport *nport; member 274 * @nort: Assosiated nport pointe 323 struct efc_nport *nport; global() member 401 struct efc_nport *nport; global() member [all...] |
/kernel/linux/linux-6.6/drivers/media/i2c/ |
H A D | ds90ub960.c | 430 u8 nport; /* RX port number, and index in priv->rxport[] */ member 486 u8 nport; /* TX port number, and index in priv->txport[] */ member 679 static int ub960_rxport_select(struct ub960_data *priv, u8 nport) in ub960_rxport_select() argument 686 if (priv->reg_current.rxport == nport) in ub960_rxport_select() 690 (nport << 4) | BIT(nport)); in ub960_rxport_select() 693 nport, ret); in ub960_rxport_select() 697 priv->reg_current.rxport = nport; in ub960_rxport_select() 702 static int ub960_rxport_read(struct ub960_data *priv, u8 nport, u8 reg, u8 *val) in ub960_rxport_read() argument 710 ret = ub960_rxport_select(priv, nport); in ub960_rxport_read() 729 ub960_rxport_write(struct ub960_data *priv, u8 nport, u8 reg, u8 val) ub960_rxport_write() argument 751 ub960_rxport_update_bits(struct ub960_data *priv, u8 nport, u8 reg, u8 mask, u8 val) ub960_rxport_update_bits() argument 774 ub960_rxport_read16(struct ub960_data *priv, u8 nport, u8 reg, u16 *val) ub960_rxport_read16() argument 802 ub960_txport_select(struct ub960_data *priv, u8 nport) ub960_txport_select() argument 825 ub960_txport_read(struct ub960_data *priv, u8 nport, u8 reg, u8 *val) ub960_txport_read() argument 852 ub960_txport_write(struct ub960_data *priv, u8 nport, u8 reg, u8 val) ub960_txport_write() argument 874 ub960_txport_update_bits(struct ub960_data *priv, u8 nport, u8 reg, u8 mask, u8 val) ub960_txport_update_bits() argument 1115 ub960_parse_dt_txport(struct ub960_data *priv, struct fwnode_handle *ep_fwnode, u8 nport) ub960_parse_dt_txport() argument 1174 ub960_csi_handle_events(struct ub960_data *priv, u8 nport) ub960_csi_handle_events() argument 1197 unsigned int nport; ub960_rxport_enable_vpocs() local 1228 unsigned int nport; ub960_rxport_disable_vpocs() local 1240 ub960_rxport_clear_errors(struct ub960_data *priv, unsigned int nport) ub960_rxport_clear_errors() argument 1258 unsigned int nport; ub960_clear_rx_errors() local 1264 ub960_rxport_get_strobe_pos(struct ub960_data *priv, unsigned int nport, s8 *strobe_pos) ub960_rxport_get_strobe_pos() argument 1300 ub960_rxport_set_strobe_pos(struct ub960_data *priv, unsigned int nport, s8 strobe_pos) ub960_rxport_set_strobe_pos() argument 1336 ub960_rxport_get_eq_level(struct ub960_data *priv, unsigned int nport, u8 *eq_level) ub960_rxport_get_eq_level() argument 1352 ub960_rxport_set_eq_level(struct ub960_data *priv, unsigned int nport, u8 eq_level) ub960_rxport_set_eq_level() argument 1378 ub960_rxport_set_eq_range(struct ub960_data *priv, unsigned int nport, u8 eq_min, u8 eq_max) ub960_rxport_set_eq_range() argument 1391 ub960_rxport_config_eq(struct ub960_data *priv, unsigned int nport) ub960_rxport_config_eq() argument 1438 ub960_rxport_link_ok(struct ub960_data *priv, unsigned int nport, bool *ok) ub960_rxport_link_ok() argument 1506 u8 nport; ub960_rxport_wait_locks() local 1644 ub960_rxport_add_serializer(struct ub960_data *priv, u8 nport) ub960_rxport_add_serializer() argument 1683 ub960_rxport_remove_serializer(struct ub960_data *priv, u8 nport) ub960_rxport_remove_serializer() argument 1694 unsigned int nport; ub960_rxport_add_serializers() local 1725 unsigned int nport; ub960_rxport_remove_serializers() local 1740 unsigned int nport = txport->nport; ub960_init_tx_port() local 1760 unsigned int nport; ub960_init_tx_ports() local 1823 unsigned int nport = rxport->nport; ub960_init_rx_port_ub960() local 1917 unsigned int nport = rxport->nport; ub960_init_rx_port_ub9702_fpd3() local 1982 unsigned int nport = rxport->nport; ub960_init_rx_port_ub9702_fpd4_aeq() local 2016 unsigned int nport = rxport->nport; ub960_init_rx_port_ub9702_fpd4() local 2078 unsigned int nport = rxport->nport; ub960_init_rx_port_ub9702() local 2135 unsigned int nport; ub960_init_rx_ports() local 2152 ub960_rxport_handle_events(struct ub960_data *priv, u8 nport) ub960_rxport_handle_events() argument 2314 ub960_enable_tx_port(struct ub960_data *priv, unsigned int nport) ub960_enable_tx_port() argument 2325 ub960_disable_tx_port(struct ub960_data *priv, unsigned int nport) ub960_disable_tx_port() argument 2335 ub960_enable_rx_port(struct ub960_data *priv, unsigned int nport) ub960_enable_rx_port() argument 2346 ub960_disable_rx_port(struct ub960_data *priv, unsigned int nport) ub960_disable_rx_port() argument 2364 unsigned int nport; ub960_validate_stream_vcs() local 2416 unsigned int nport; ub960_configure_ports_for_streaming() local 2430 unsigned int nport; ub960_configure_ports_for_streaming() local 2565 unsigned int nport; ub960_enable_streams() local 2676 unsigned int nport; ub960_disable_streams() local 2800 unsigned int nport; ub960_get_frame_desc() local 2954 unsigned int nport; ub960_log_status() local 3163 unsigned int nport; ub960_txport_free_ports() local 3178 unsigned int nport; ub960_rxport_free_ports() local 3200 unsigned int nport = rxport->nport; ub960_parse_dt_rxport_link_properties() local 3326 unsigned int nport = rxport->nport; ub960_parse_dt_rxport_ep_properties() local 3369 ub960_parse_dt_rxport(struct ub960_data *priv, unsigned int nport, struct fwnode_handle *link_fwnode, struct fwnode_handle *ep_fwnode) ub960_parse_dt_rxport() argument 3420 ub960_fwnode_get_link_by_regs(struct fwnode_handle *links_fwnode, unsigned int nport) ub960_fwnode_get_link_by_regs() argument 3449 unsigned int nport; ub960_parse_dt_rxports() local 3504 u32 nport; ub960_parse_dt_txports() local 3554 u8 nport = rxport->nport; ub960_notify_bound() local 3887 unsigned int nport; ub960_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/nvme/target/ |
H A D | fcloop.c | 220 struct fcloop_nport *nport; member 230 struct fcloop_nport *nport; member 950 struct fcloop_nport *nport = in fcloop_nport_free() local 955 list_del(&nport->nport_list); in fcloop_nport_free() 958 kfree(nport); in fcloop_nport_free() 962 fcloop_nport_put(struct fcloop_nport *nport) in fcloop_nport_put() argument 964 kref_put(&nport->ref, fcloop_nport_free); in fcloop_nport_put() 968 fcloop_nport_get(struct fcloop_nport *nport) in fcloop_nport_get() argument 970 return kref_get_unless_zero(&nport->ref); in fcloop_nport_get() 989 fcloop_nport_put(rport->nport); in fcloop_remoteport_delete() 1167 struct fcloop_nport *newnport, *nport = NULL; fcloop_alloc_nport() local 1263 struct fcloop_nport *nport; fcloop_create_remote_port() local 1305 __unlink_remote_port(struct fcloop_nport *nport) __unlink_remote_port() argument 1317 __remoteport_unreg(struct fcloop_nport *nport, struct fcloop_rport *rport) __remoteport_unreg() argument 1329 struct fcloop_nport *nport = NULL, *tmpport; fcloop_delete_remote_port() local 1365 struct fcloop_nport *nport; fcloop_create_target_port() local 1403 __unlink_target_port(struct fcloop_nport *nport) __unlink_target_port() argument 1415 __targetport_unreg(struct fcloop_nport *nport, struct fcloop_tport *tport) __targetport_unreg() argument 1427 struct fcloop_nport *nport = NULL, *tmpport; fcloop_delete_target_port() local 1521 struct fcloop_nport *nport; fcloop_exit() local [all...] |
H A D | rdma.c | 118 struct nvmet_port *nport; member 1193 struct nvmet_port *nport = port->nport; in nvmet_rdma_find_get_device() local 1210 inline_page_count = num_pages(nport->inline_data_size); in nvmet_rdma_find_get_device() 1215 nport->inline_data_size, cm_id->device->name, in nvmet_rdma_find_get_device() 1217 nport->inline_data_size = inline_sge_count * PAGE_SIZE; in nvmet_rdma_find_get_device() 1220 ndev->inline_data_size = nport->inline_data_size; in nvmet_rdma_find_get_device() 1223 if (nport->pi_enable && !(cm_id->device->attrs.device_cap_flags & in nvmet_rdma_find_get_device() 1227 nport->pi_enable = false; in nvmet_rdma_find_get_device() 1451 queue->port = port->nport; in nvmet_rdma_alloc_queue() 1825 struct nvmet_port *nport = port->nport; nvmet_rdma_destroy_port_queues() local 1909 nvmet_rdma_add_port(struct nvmet_port *nport) nvmet_rdma_add_port() argument 1969 nvmet_rdma_remove_port(struct nvmet_port *nport) nvmet_rdma_remove_port() argument 1978 nvmet_rdma_disc_port_addr(struct nvmet_req *req, struct nvmet_port *nport, char *traddr) nvmet_rdma_disc_port_addr() argument [all...] |
H A D | tcp.c | 145 struct nvmet_port *nport; member 1302 c->req.port = queue->port->nport; in nvmet_tcp_alloc_cmd() 1659 static int nvmet_tcp_add_port(struct nvmet_port *nport) in nvmet_tcp_add_port() argument 1669 switch (nport->disc_addr.adrfam) { in nvmet_tcp_add_port() 1678 nport->disc_addr.adrfam); in nvmet_tcp_add_port() 1683 ret = inet_pton_with_scope(&init_net, af, nport->disc_addr.traddr, in nvmet_tcp_add_port() 1684 nport->disc_addr.trsvcid, &port->addr); in nvmet_tcp_add_port() 1687 nport->disc_addr.traddr, nport->disc_addr.trsvcid); in nvmet_tcp_add_port() 1691 port->nport in nvmet_tcp_add_port() 1748 nvmet_tcp_remove_port(struct nvmet_port *nport) nvmet_tcp_remove_port() argument 1796 nvmet_tcp_disc_port_addr(struct nvmet_req *req, struct nvmet_port *nport, char *traddr) nvmet_tcp_disc_port_addr() argument [all...] |
/kernel/linux/linux-6.6/drivers/nvme/target/ |
H A D | fcloop.c | 220 struct fcloop_nport *nport; member 230 struct fcloop_nport *nport; member 996 struct fcloop_nport *nport = in fcloop_nport_free() local 1001 list_del(&nport->nport_list); in fcloop_nport_free() 1004 kfree(nport); in fcloop_nport_free() 1008 fcloop_nport_put(struct fcloop_nport *nport) in fcloop_nport_put() argument 1010 kref_put(&nport->ref, fcloop_nport_free); in fcloop_nport_put() 1014 fcloop_nport_get(struct fcloop_nport *nport) in fcloop_nport_get() argument 1016 return kref_get_unless_zero(&nport->ref); in fcloop_nport_get() 1035 fcloop_nport_put(rport->nport); in fcloop_remoteport_delete() 1214 struct fcloop_nport *newnport, *nport = NULL; fcloop_alloc_nport() local 1310 struct fcloop_nport *nport; fcloop_create_remote_port() local 1352 __unlink_remote_port(struct fcloop_nport *nport) __unlink_remote_port() argument 1364 __remoteport_unreg(struct fcloop_nport *nport, struct fcloop_rport *rport) __remoteport_unreg() argument 1376 struct fcloop_nport *nport = NULL, *tmpport; fcloop_delete_remote_port() local 1412 struct fcloop_nport *nport; fcloop_create_target_port() local 1450 __unlink_target_port(struct fcloop_nport *nport) __unlink_target_port() argument 1462 __targetport_unreg(struct fcloop_nport *nport, struct fcloop_tport *tport) __targetport_unreg() argument 1474 struct fcloop_nport *nport = NULL, *tmpport; fcloop_delete_target_port() local 1598 struct fcloop_nport *nport = NULL; fcloop_exit() local [all...] |
H A D | rdma.c | 119 struct nvmet_port *nport; member 1194 struct nvmet_port *nport = port->nport; in nvmet_rdma_find_get_device() local 1211 inline_page_count = num_pages(nport->inline_data_size); in nvmet_rdma_find_get_device() 1216 nport->inline_data_size, cm_id->device->name, in nvmet_rdma_find_get_device() 1218 nport->inline_data_size = inline_sge_count * PAGE_SIZE; in nvmet_rdma_find_get_device() 1221 ndev->inline_data_size = nport->inline_data_size; in nvmet_rdma_find_get_device() 1224 if (nport->pi_enable && !(cm_id->device->attrs.kernel_cap_flags & in nvmet_rdma_find_get_device() 1228 nport->pi_enable = false; in nvmet_rdma_find_get_device() 1451 queue->port = port->nport; in nvmet_rdma_alloc_queue() 1825 struct nvmet_port *nport = port->nport; nvmet_rdma_destroy_port_queues() local 1909 nvmet_rdma_add_port(struct nvmet_port *nport) nvmet_rdma_add_port() argument 1969 nvmet_rdma_remove_port(struct nvmet_port *nport) nvmet_rdma_remove_port() argument 1978 nvmet_rdma_disc_port_addr(struct nvmet_req *req, struct nvmet_port *nport, char *traddr) nvmet_rdma_disc_port_addr() argument [all...] |
H A D | tcp.c | 183 struct nvmet_port *nport; member 1362 c->req.port = queue->port->nport; in nvmet_tcp_alloc_cmd() 1734 static int nvmet_tcp_add_port(struct nvmet_port *nport) in nvmet_tcp_add_port() argument 1744 switch (nport->disc_addr.adrfam) { in nvmet_tcp_add_port() 1753 nport->disc_addr.adrfam); in nvmet_tcp_add_port() 1758 ret = inet_pton_with_scope(&init_net, af, nport->disc_addr.traddr, in nvmet_tcp_add_port() 1759 nport->disc_addr.trsvcid, &port->addr); in nvmet_tcp_add_port() 1762 nport->disc_addr.traddr, nport->disc_addr.trsvcid); in nvmet_tcp_add_port() 1766 port->nport in nvmet_tcp_add_port() 1823 nvmet_tcp_remove_port(struct nvmet_port *nport) nvmet_tcp_remove_port() argument 1869 nvmet_tcp_disc_port_addr(struct nvmet_req *req, struct nvmet_port *nport, char *traddr) nvmet_tcp_disc_port_addr() argument [all...] |
/kernel/linux/linux-6.6/drivers/scsi/elx/efct/ |
H A D | efct_xport.c | 683 struct efc_nport *nport; in efct_get_host_port_id() local 685 if (efc->domain && efc->domain->nport) { in efct_get_host_port_id() 686 nport = efc->domain->nport; in efct_get_host_port_id() 687 fc_host_port_id(shost) = nport->fc_id; in efct_get_host_port_id() 699 if (efc->domain && efc->domain->nport) { in efct_get_host_port_type() 703 struct efc_nport *nport = efc->domain->nport; in efct_get_host_port_type() local 705 if (nport->is_vport) in efct_get_host_port_type() 707 else if (nport in efct_get_host_port_type() [all...] |
H A D | efct_lio.c | 99 if (!tpg->nport || !tpg->nport->efct) { in efct_lio_tpg_enable_store() 104 efct = tpg->nport->efct; in efct_lio_tpg_enable_store() 125 if (efc->domain && efc->domain->nport) in efct_lio_tpg_enable_store() 126 efct_scsi_tgt_del_nport(efc, efc->domain->nport); in efct_lio_tpg_enable_store() 197 /* only physical nport should exist, free lio_nport in efct_lio_npiv_tpg_enable_store() 217 return tpg->nport->wwpn_str; in efct_lio_get_fabric_wwn() 850 /* only physical nport should exist, free lio_nport allocated in efct_lio_drop_nport() 902 tpg->nport = lio_nport; in efct_lio_make_tpg() 931 struct efct *efct = tpg->nport in efct_lio_drop_tpg() 1137 efct_scsi_tgt_new_nport(struct efc *efc, struct efc_nport *nport) efct_scsi_tgt_new_nport() argument 1148 efct_scsi_tgt_del_nport(struct efc *efc, struct efc_nport *nport) efct_scsi_tgt_del_nport() argument [all...] |
/kernel/linux/linux-5.10/drivers/tty/ |
H A D | mips_ejtag_fdc.c | 887 int ret, nport; in mips_ejtag_fdc_tty_probe() local 940 for (nport = 0; nport < NUM_TTY_CHANNELS; nport++) { in mips_ejtag_fdc_tty_probe() 941 dport = &priv->ports[nport]; in mips_ejtag_fdc_tty_probe() 1041 for (nport = 0; nport < NUM_TTY_CHANNELS; nport++) { in mips_ejtag_fdc_tty_probe() 1042 dport = &priv->ports[nport]; in mips_ejtag_fdc_tty_probe()
|
/kernel/linux/linux-6.6/drivers/tty/ |
H A D | mips_ejtag_fdc.c | 887 int ret, nport; in mips_ejtag_fdc_tty_probe() local 940 for (nport = 0; nport < NUM_TTY_CHANNELS; nport++) { in mips_ejtag_fdc_tty_probe() 941 dport = &priv->ports[nport]; in mips_ejtag_fdc_tty_probe() 1040 for (nport = 0; nport < NUM_TTY_CHANNELS; nport++) { in mips_ejtag_fdc_tty_probe() 1041 dport = &priv->ports[nport]; in mips_ejtag_fdc_tty_probe()
|
/kernel/linux/linux-5.10/drivers/usb/serial/ |
H A D | usb-serial-simple.c | 20 #define DEVICE_N(vendor, IDS, nport) \ 31 .num_ports = nport, \
|
/kernel/linux/linux-6.6/drivers/usb/serial/ |
H A D | usb-serial-simple.c | 20 #define DEVICE_N(vendor, IDS, nport) \ 31 .num_ports = nport, \
|