/openbmc/linux/drivers/scsi/elx/libefc/ |
H A 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 …]
|
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() 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 …]
|
H A 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 …]
|
H A 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 …]
|
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->ref); in efc_node_alloc() 122 struct efc_nport *nport; in efc_node_free() 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->enable_tgt ? in efc_send_prli() [all …]
|
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() 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 …]
|
H A 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)) \
|
H A 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);
|
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 | 244 struct efc_nport *nport; member 266 struct efc_nport *nport; member 323 struct efc_nport *nport; member 401 struct efc_nport *nport; member
|
/openbmc/linux/drivers/media/i2c/ |
H A D | ds90ub960.c | 432 u8 nport; /* RX port number, and index in priv->rxport[] */ member 488 u8 nport; /* TX port number, and index in priv->txport[] */ member 681 static int ub960_rxport_select(struct ub960_data *priv, u8 nport) in ub960_rxport_select() argument 688 if (priv->reg_current.rxport == nport) in ub960_rxport_select() 692 (nport << 4) | BIT(nport)); in ub960_rxport_select() 695 nport, ret); in ub960_rxport_select() 699 priv->reg_current.rxport = nport; in ub960_rxport_select() 704 static int ub960_rxport_read(struct ub960_data *priv, u8 nport, u8 reg, u8 *val) in ub960_rxport_read() argument 712 ret = ub960_rxport_select(priv, nport); in ub960_rxport_read() 731 static int ub960_rxport_write(struct ub960_data *priv, u8 nport, u8 reg, u8 val) in ub960_rxport_write() argument [all …]
|
/openbmc/qemu/hw/dma/ |
H A D | i82374.c | 67 static uint32_t i82374_read_isr(void *opaque, uint32_t nport) in i82374_read_isr() argument 71 BADF("%s: %08x\n", __func__, nport); in i82374_read_isr() 73 DPRINTF("%s: %08x=%08x\n", __func__, nport, val); in i82374_read_isr() 77 static void i82374_write_command(void *opaque, uint32_t nport, uint32_t data) in i82374_write_command() argument 79 DPRINTF("%s: %08x=%08x\n", __func__, nport, data); in i82374_write_command() 83 BADF("%s: %08x=%08x\n", __func__, nport, data); in i82374_write_command() 87 static uint32_t i82374_read_status(void *opaque, uint32_t nport) in i82374_read_status() argument 91 BADF("%s: %08x\n", __func__, nport); in i82374_read_status() 93 DPRINTF("%s: %08x=%08x\n", __func__, nport, val); in i82374_read_status() 97 static void i82374_write_descriptor(void *opaque, uint32_t nport, uint32_t data) in i82374_write_descriptor() argument [all …]
|
H A D | i8257.c | 70 static void i8257_write_page(void *opaque, uint32_t nport, uint32_t data) in i8257_write_page() argument 75 ichan = channels[nport & 7]; in i8257_write_page() 77 dolog ("invalid channel %#x %#x\n", nport, data); in i8257_write_page() 83 static void i8257_write_pageh(void *opaque, uint32_t nport, uint32_t data) in i8257_write_pageh() argument 88 ichan = channels[nport & 7]; in i8257_write_pageh() 90 dolog ("invalid channel %#x %#x\n", nport, data); in i8257_write_pageh() 96 static uint32_t i8257_read_page(void *opaque, uint32_t nport) in i8257_read_page() argument 101 ichan = channels[nport & 7]; in i8257_read_page() 103 dolog ("invalid channel read %#x\n", nport); in i8257_read_page() 109 static uint32_t i8257_read_pageh(void *opaque, uint32_t nport) in i8257_read_pageh() argument [all …]
|
/openbmc/linux/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() [all …]
|
H A D | rdma.c | 119 struct nvmet_port *nport; member 1199 struct nvmet_port *nport = port->nport; in nvmet_rdma_find_get_device() 1216 inline_page_count = num_pages(nport->inline_data_size); in nvmet_rdma_find_get_device() 1221 nport->inline_data_size, cm_id->device->name, in nvmet_rdma_find_get_device() 1223 nport->inline_data_size = inline_sge_count * PAGE_SIZE; in nvmet_rdma_find_get_device() 1226 ndev->inline_data_size = nport->inline_data_size; in nvmet_rdma_find_get_device() 1229 if (nport->pi_enable && !(cm_id->device->attrs.kernel_cap_flags & in nvmet_rdma_find_get_device() 1233 nport->pi_enable = false; in nvmet_rdma_find_get_device() 1456 queue->port = port->nport; in nvmet_rdma_alloc_queue() 1186 struct nvmet_port *nport = port->nport; nvmet_rdma_find_get_device() local 1817 struct nvmet_port *nport = port->nport; nvmet_rdma_destroy_port_queues() local 1901 nvmet_rdma_add_port(struct nvmet_port * nport) nvmet_rdma_add_port() argument 1961 nvmet_rdma_remove_port(struct nvmet_port * nport) nvmet_rdma_remove_port() argument 1971 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 1371 c->req.port = queue->port->nport; in nvmet_tcp_alloc_cmd() 1739 static int nvmet_tcp_add_port(struct nvmet_port *nport) in nvmet_tcp_add_port() argument 1749 switch (nport->disc_addr.adrfam) { in nvmet_tcp_add_port() 1758 nport->disc_addr.adrfam); in nvmet_tcp_add_port() 1763 ret = inet_pton_with_scope(&init_net, af, nport->disc_addr.traddr, in nvmet_tcp_add_port() 1764 nport->disc_addr.trsvcid, &port->addr); in nvmet_tcp_add_port() 1767 nport->disc_addr.traddr, nport->disc_addr.trsvcid); in nvmet_tcp_add_port() 1771 port->nport = nport; in nvmet_tcp_add_port() 1773 if (port->nport->inline_data_size < 0) in nvmet_tcp_add_port() [all …]
|
/openbmc/qemu/hw/audio/ |
H A D | sb16.c | 922 static void dsp_write(void *opaque, uint32_t nport, uint32_t val) in dsp_write() argument 927 iport = nport - s->port; in dsp_write() 929 ldebug ("write %#x <- %#x\n", nport, val); in dsp_write() 995 ldebug ("(nport=%#x, val=%#x)\n", nport, val); in dsp_write() 1000 static uint32_t dsp_read(void *opaque, uint32_t nport) in dsp_read() argument 1005 iport = nport - s->port; in dsp_read() 1059 ldebug ("read %#x -> %#x\n", nport, retval); in dsp_read() 1065 dolog ("warning: dsp_read %#x error\n", nport); in dsp_read() 1099 static void mixer_write_indexb(void *opaque, uint32_t nport, uint32_t val) in mixer_write_indexb() argument 1102 (void) nport; in mixer_write_indexb() [all …]
|
H A D | adlib.c | 108 static void adlib_write(void *opaque, uint32_t nport, uint32_t val) in adlib_write() argument 111 int a = nport & 3; in adlib_write() 121 static uint32_t adlib_read(void *opaque, uint32_t nport) in adlib_read() argument 124 int a = nport & 3; in adlib_read()
|
H A D | gus.c | 66 static uint32_t gus_readb(void *opaque, uint32_t nport) in gus_readb() argument 70 return gus_read (&s->emu, nport, 1); in gus_readb() 73 static void gus_writeb(void *opaque, uint32_t nport, uint32_t val) in gus_writeb() argument 77 gus_write (&s->emu, nport, 1, val); in gus_writeb()
|
/openbmc/linux/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->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()
|
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() 217 return tpg->nport->wwpn_str; in efct_lio_get_fabric_wwn() 902 tpg->nport = lio_nport; in efct_lio_make_tpg() 931 struct efct *efct = tpg->nport->efct; in efct_lio_drop_tpg() 934 tpg->nport->efct->tgt_efct.tpg = NULL; in efct_lio_drop_tpg() 1034 u64 wwpn = node->nport->wwpn; in efct_get_vport_tpg() 1086 tgt_node->port_fc_id = node->nport->fc_id; in efct_session_cb() [all …]
|
/openbmc/linux/drivers/usb/serial/ |
H A D | usb-serial-simple.c | 20 #define DEVICE_N(vendor, IDS, nport) \ argument 31 .num_ports = nport, \
|
/openbmc/linux/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()
|