/linux-6.1.9/drivers/scsi/elx/libefc/ |
D | efc_nport.c | 34 struct efc_nport *nport = data; in efc_nport_cb() local 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 50 list_for_each_entry(nport, &domain->nport_list, list_entry) { in efc_nport_find_wwn() 51 if (nport->wwnn == wwnn && nport->wwpn == wwpn) in efc_nport_find_wwn() 52 return nport; in efc_nport_find_wwn() 60 struct efc_nport *nport = container_of(arg, struct efc_nport, ref); in _efc_nport_free() local 62 kfree(nport); in _efc_nport_free() 69 struct efc_nport *nport; in efc_nport_alloc() local 76 nport = efc_nport_find_wwn(domain, wwnn, wwpn); in efc_nport_alloc() [all …]
|
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() 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->indicator); in efc_nport_free_resources() 30 efc_nport_cb(efc, evt, nport); in efc_nport_free_resources() 34 efc_nport_get_mbox_status(struct efc_nport *nport, u8 *mqe, int status) in efc_nport_get_mbox_status() argument [all …]
|
D | efc_fabric.c | 103 node->nport->topology = topology; in efc_fabric_set_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() 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() 171 if (efc_p2p_setup(node->nport)) { in __efc_fabric_flogi_wait_rsp() 179 if (node->nport->p2p_winner) { in __efc_fabric_flogi_wait_rsp() 183 if (node->nport->domain->attached && in __efc_fabric_flogi_wait_rsp() 184 !node->nport->domain->domain_notify_pend) { in __efc_fabric_flogi_wait_rsp() [all …]
|
D | efc_domain.c | 245 struct efc_nport *nport; in __efc_domain_init() local 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->fc_id = drec->fc_id; in __efc_domain_init() 311 nport->topology = EFC_NPORT_TOPO_FC_AL; in __efc_domain_init() 312 snprintf(nport->display_name, sizeof(nport->display_name), in __efc_domain_init() [all …]
|
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->ref); in efc_node_alloc() 122 struct efc_nport *nport; in efc_node_free() local [all …]
|
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);
|
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->enable_tgt ? in efc_send_prli() [all …]
|
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() 470 efc_domain_attach(node->nport->domain, d_id); in efc_d_check_plogi_topology() 499 node->nport->topology); in efc_d_check_plogi_topology() 525 if (node->nport->enable_ini && in __efc_d_init() 526 node->nport->domain->attached) { in __efc_d_init() [all …]
|
D | efc.h | 48 #define nport_sm_trace(nport) \ argument 49 efc_log_debug(nport->efc, \ 50 "[%s] %-20s %-20s\n", nport->display_name, __func__, efc_sm_event_name(evt)) \
|
D | efc_node.h | 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);
|
D | efc_nport.h | 21 efc_nport_free(struct efc_nport *nport); 23 efc_nport_attach(struct efc_nport *nport, u32 fc_id);
|
D | efclib.h | 244 struct efc_nport *nport; member 266 struct efc_nport *nport; member 323 struct efc_nport *nport; member 401 struct efc_nport *nport; member
|
D | efc_fabric.h | 110 efc_p2p_setup(struct efc_nport *nport);
|
/linux-6.1.9/drivers/nvme/target/ |
D | fcloop.c | 220 struct fcloop_nport *nport; member 230 struct fcloop_nport *nport; member 992 struct fcloop_nport *nport = in fcloop_nport_free() local 997 list_del(&nport->nport_list); in fcloop_nport_free() 1000 kfree(nport); in fcloop_nport_free() 1004 fcloop_nport_put(struct fcloop_nport *nport) in fcloop_nport_put() argument 1006 kref_put(&nport->ref, fcloop_nport_free); in fcloop_nport_put() 1010 fcloop_nport_get(struct fcloop_nport *nport) in fcloop_nport_get() argument 1012 return kref_get_unless_zero(&nport->ref); in fcloop_nport_get() 1031 fcloop_nport_put(rport->nport); in fcloop_remoteport_delete() [all …]
|
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; in nvmet_rdma_destroy_port_queues() local [all …]
|
D | tcp.c | 155 struct nvmet_port *nport; member 1313 c->req.port = queue->port->nport; in nvmet_tcp_alloc_cmd() 1681 static int nvmet_tcp_add_port(struct nvmet_port *nport) in nvmet_tcp_add_port() argument 1691 switch (nport->disc_addr.adrfam) { in nvmet_tcp_add_port() 1700 nport->disc_addr.adrfam); in nvmet_tcp_add_port() 1705 ret = inet_pton_with_scope(&init_net, af, nport->disc_addr.traddr, in nvmet_tcp_add_port() 1706 nport->disc_addr.trsvcid, &port->addr); in nvmet_tcp_add_port() 1709 nport->disc_addr.traddr, nport->disc_addr.trsvcid); in nvmet_tcp_add_port() 1713 port->nport = nport; in nvmet_tcp_add_port() 1715 if (port->nport->inline_data_size < 0) in nvmet_tcp_add_port() [all …]
|
/linux-6.1.9/drivers/scsi/elx/efct/ |
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->topology == EFC_NPORT_TOPO_P2P) in efct_get_host_port_type() 709 else if (nport->topology == EFC_NPORT_TOPO_UNKNOWN) in efct_get_host_port_type() 749 if (!efc->domain || !efc->domain->nport) { in efct_get_host_speed()
|
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() 217 return tpg->nport->wwpn_str; in efct_lio_get_fabric_wwn() 916 tpg->nport = lio_nport; in efct_lio_make_tpg() 945 struct efct *efct = tpg->nport->efct; in efct_lio_drop_tpg() 948 tpg->nport->efct->tgt_efct.tpg = NULL; in efct_lio_drop_tpg() 1048 u64 wwpn = node->nport->wwpn; in efct_get_vport_tpg() 1100 tgt_node->port_fc_id = node->nport->fc_id; in efct_session_cb() [all …]
|
D | efct_scsi.h | 149 efct_scsi_tgt_new_nport(struct efc *efc, struct efc_nport *nport); 151 efct_scsi_tgt_del_nport(struct efc *efc, struct efc_nport *nport);
|
D | efct_lio.h | 167 struct efct_lio_nport *nport; member
|
/linux-6.1.9/drivers/usb/serial/ |
D | usb-serial-simple.c | 20 #define DEVICE_N(vendor, IDS, nport) \ argument 31 .num_ports = nport, \
|
/linux-6.1.9/drivers/tty/ |
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()
|
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb/ |
D | espi.c | 339 u8 i, nport = (u8)adapter->params.nports; in t1_espi_get_mon_t204() local 352 for (i = 0 ; i < nport; i++, valp++) { in t1_espi_get_mon_t204()
|
/linux-6.1.9/drivers/pnp/ |
D | manager.c | 259 int nport = 0, nmem = 0, nirq = 0; in pnp_assign_resources() local 274 ret = pnp_assign_port(dev, &option->u.port, nport++); in pnp_assign_resources()
|
/linux-6.1.9/drivers/pinctrl/ |
D | pinctrl-cy8c95x0.c | 156 int nport; member 424 for (i = 0; i < chip->nport; i++) { in cy8c95x0_write_regs_mask() 495 for (i = 0; i < chip->nport; i++) { in cy8c95x0_read_regs_mask() 1321 chip->nport = DIV_ROUND_UP(CY8C95X0_PIN_TO_OFFSET(chip->tpin), BANK_SZ); in cy8c95x0_probe()
|