/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_sport.c | 135 ocs_sport_alloc(ocs_domain_t *domain, uint64_t wwpn, uint64_t wwnn, uint32_t fc_id, uint8_t enable_… in ocs_sport_alloc() argument 145 sport = ocs_sport_find_wwn(domain, wwnn, wwpn); in ocs_sport_alloc() 148 (unsigned long long)wwnn, (unsigned long long)wwpn); in ocs_sport_alloc() 175 sport->wwnn = wwnn; in ocs_sport_alloc() 176 ocs_snprintf(sport->wwnn_str, sizeof(sport->wwnn_str), "%016llx" , (unsigned long long)wwnn); in ocs_sport_alloc() 374 ocs_sport_find_wwn(ocs_domain_t *domain, uint64_t wwnn, uint64_t wwpn) in ocs_sport_find_wwn() argument 380 if ((sport->wwnn == wwnn) && (sport->wwpn == wwpn)) { in ocs_sport_find_wwn() 670 if (sport->wwnn == 0) { in __ocs_sport_vport_wait_alloc() 671 sport->wwnn = ocs_be64toh(sport->sli_wwnn); in __ocs_sport_vport_wait_alloc() 679 sp->node_name_hi = ocs_htobe32((uint32_t) (sport->wwnn >> 32ll)); in __ocs_sport_vport_wait_alloc() [all …]
|
H A D | ocs_sport.h | 42 extern ocs_sport_t *ocs_sport_alloc(ocs_domain_t *domain, uint64_t wwpn, uint64_t wwnn, uint32_t fc… 79 extern ocs_sport_t *ocs_sport_find_wwn(ocs_domain_t *domain, uint64_t wwnn, uint64_t wwpn); 91 extern int32_t ocs_sport_vport_new(ocs_domain_t *domain, uint64_t wwpn, uint64_t wwnn, uint32_t fc_… 93 extern int32_t ocs_sport_vport_del(ocs_t *ocs, ocs_domain_t *domain, uint64_t wwpn, uint64_t wwnn); 95 extern int8_t ocs_vport_create_spec(ocs_t *ocs, uint64_t wwnn, uint64_t wwpn, uint32_t fc_id, uint3…
|
H A D | ocs_mgmt.c | 869 uint64_t *wwnn; in get_wwnn() local 871 wwnn = ocs_hw_get_ptr(&ocs->hw, OCS_HW_WWN_NODE); in get_wwnn() 873 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "wwnn", "0x%llx", (unsigned long long)ocs_htobe64(*wwnn)); in get_wwnn() 1501 uint64_t wwnn; in set_req_wwnn() local 1504 wwnn = 0; in set_req_wwnn() 1506 else if (parse_wwn(value, &wwnn) != 0) { in set_req_wwnn() 1511 rc = ocs_xport_control(ocs->xport, OCS_XPORT_WWNN_SET, wwnn); in set_req_wwnn() 2181 uint8_t wwnn[8]; member 2187 ocs_mgmt_get_nvparms_cb(int32_t status, uint8_t *wwpn, uint8_t *wwnn, uint8_t hard_alpa, in ocs_mgmt_get_nvparms_cb() argument 2194 ocs_memcpy(result->wwnn, wwnn, sizeof(result->wwnn)); in ocs_mgmt_get_nvparms_cb() [all …]
|
H A D | ocs_common.h | 162 uint64_t wwnn; /**< WWNN from HW (host endian) */ member 384 char wwnn[OCS_WWN_LENGTH]; /**< remote port WWN (uses iSCSI naming) */ member 405 uint64_t wwnn; /*>> node name */ member
|
H A D | ocs_ddump.c | 213 sli4->config.wwnn[0], in ocs_ddump_sli() 214 sli4->config.wwnn[1], in ocs_ddump_sli() 215 sli4->config.wwnn[2], in ocs_ddump_sli() 216 sli4->config.wwnn[3], in ocs_ddump_sli() 217 sli4->config.wwnn[4], in ocs_ddump_sli() 218 sli4->config.wwnn[5], in ocs_ddump_sli() 219 sli4->config.wwnn[6], in ocs_ddump_sli() 220 sli4->config.wwnn[7]); in ocs_ddump_sli() 729 ocs_ddump_value(textbuf, "wwnn", "%llx", (unsigned long long)vport->wwnn); in ocs_ddump()
|
H A D | ocs_ioctl.c | 389 rc = ocs_sport_vport_new(domain, req->wwpn, req->wwnn, in ocs_ioctl() 393 rc = ocs_sport_vport_del(ocs, domain, req->wwpn, req->wwnn); in ocs_ioctl() 513 *((uint64_t*)req->hw_addr.fc.wwnn) = ocs_htobe64(ocs->domain->sport->wwnn); in ocs_ioctl() 820 uint64_t *wwnn = NULL; in ocs_sysctl_wwnn() local 824 wwnn = &xport->req_wwnn; in ocs_sysctl_wwnn() 826 snprintf(old, sizeof(old), "0x%llx" , (unsigned long long) *wwnn); in ocs_sysctl_wwnn() 829 wwnn = ocs_hw_get_ptr(&ocs->hw, OCS_HW_WWN_NODE); in ocs_sysctl_wwnn() 832 snprintf(old, sizeof(old), "0x%llx" , (unsigned long long) ocs_htobe64(*wwnn)); in ocs_sysctl_wwnn() 1056 snprintf(str_wwnn, sizeof(str_wwnn), "0x%llx", (unsigned long long)fcp->vport->wwnn); in ocs_sysctl_vport_wwnn()
|
H A D | ocs_ioctl.h | 65 uint8_t wwnn[8]; /**< WWNN (binary) */ member 233 uint64_t wwnn; /*<< wwnn to create or delete */ member
|
H A D | ocs_device.c | 125 node->display_name, node->wwpn, node->wwnn); in __ocs_d_initiate_shutdown() 138 node->display_name, node->wwpn, node->wwnn); in __ocs_d_initiate_shutdown() 151 node->display_name, node->wwpn, node->wwnn); in __ocs_d_initiate_shutdown() 1618 node->wwpn, node->wwnn); in __ocs_d_device_ready() 1624 node->wwpn, node->wwnn); in __ocs_d_device_ready() 1767 labels[(node->targ << 1) | (node->init)], node->wwpn, node->wwnn); in __ocs_d_device_gone()
|
H A D | ocs_xport.c | 884 uint64_t wwnn; in ocs_xport_control() local 888 wwnn = va_arg(argp, uint64_t); in ocs_xport_control() 891 ocs_log_debug(ocs, " WWNN %016" PRIx64 "\n", wwnn); in ocs_xport_control() 892 xport->req_wwnn = wwnn; in ocs_xport_control()
|
H A D | ocs_cam.c | 1026 tgt->wwnn = ocs_node_get_wwnn(node); in ocs_update_tgt() 2022 return ocs_sport_vport_del(ocs, ocs->domain, vport->wwpn, vport->wwnn); in ocs_fcp_change_role() 2122 fc->wwnn = be64toh(wwn); in ocs_action() 2206 fc->wwnn = tgt->wwnn; in ocs_action() 2244 knob->xport_specific.fc.wwnn = be64toh(wwn); in ocs_action() 2250 knob->xport_specific.fc.wwnn = fcp->vport->wwnn; in ocs_action() 2278 (unsigned long long)knob->xport_specific.fc.wwnn, in ocs_action()
|
H A D | ocs.h | 66 uint64_t wwnn; member
|
H A D | ocs_node.c | 636 ocs_node_build_eui_name(node->wwnn, sizeof(node->wwnn), ocs_node_get_wwnn(node)); in ocs_node_attach() 1537 ocs_ddump_value(textbuf, "wwnn", "%s", node->wwnn); in ocs_ddump_node() 1788 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "wwnn", "%s", node->wwnn); in ocs_mgmt_node_get() 1857 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "wwnn", "%s", node->wwnn); in ocs_mgmt_node_get_all()
|
H A D | ocs_hw.h | 1353 typedef void (*ocs_get_nvparms_cb_t)(int32_t status, uint8_t *wwpn, uint8_t *wwnn, uint8_t hard_alp… 1358 uint8_t *wwnn, uint8_t hard_alpa, uint32_t preferred_d_id, void *arg); 1456 extern uint32_t ocs_hw_get_def_wwn(ocs_t *ocs, uint32_t chan, uint64_t *wwpn, uint64_t *wwnn);
|
H A D | ocs_pci.c | 397 vport->wwnn = ocs_be64toh(sli_wwnn); in ocs_setup_fcports() 399 ocs_log_debug(ocs, "VPort wwpn: %lx wwnn: %lx \n", vport->wwpn, vport->wwnn); in ocs_setup_fcports()
|
H A D | sli4.c | 1058 sli_cmd_write_nvparms(sli4_t *sli4, void *buf, size_t size, uint8_t *wwpn, uint8_t *wwnn, uint8_t h… in sli_cmd_write_nvparms() argument 1067 ocs_memcpy(write_nvparms->wwnn, wwnn, 8); in sli_cmd_write_nvparms() 4033 ocs_memcpy(sli4->config.wwnn, read_nvparms->wwnn, sizeof(sli4->config.wwnn)); in sli_get_config() 4045 sli4->config.wwnn[0], in sli_get_config() 4046 sli4->config.wwnn[1], in sli_get_config() 4047 sli4->config.wwnn[2], in sli_get_config() 4048 sli4->config.wwnn[3], in sli_get_config() 4049 sli4->config.wwnn[4], in sli_get_config() 4050 sli4->config.wwnn[5], in sli_get_config() 4051 sli4->config.wwnn[6], in sli_get_config() [all …]
|
/freebsd/sys/cam/ctl/ |
H A D | ctl_frontend_cam_sim.c | 77 uint64_t wwnn; member 156 if (port->wwnn == 0) { in cfcs_init() 160 softc->wwnn = (random_bits & 0x0000000fffffff00ULL) | in cfcs_init() 163 softc->wwpn = softc->wwnn + port->targ_port + 1; in cfcs_init() 164 ctl_port_set_wwns(port, true, softc->wwnn, true, softc->wwpn); in cfcs_init() 166 softc->wwnn = port->wwnn; in cfcs_init() 681 fc->wwnn = softc->wwnn; in cfcs_action() 774 cpi->xport_specific.fc.wwnn = softc->wwnn; in cfcs_action()
|
H A D | ctl_frontend.h | 237 uint64_t wwnn; /* set by CTL before online */ member 293 uint64_t wwnn, int wwpn_valid, uint64_t wwpn);
|
H A D | ctl_frontend.c | 258 ctl_port_set_wwns(struct ctl_port *port, int wwnn_valid, uint64_t wwnn, in ctl_port_set_wwns() argument 274 port->wwnn = wwnn; in ctl_port_set_wwns() 287 scsi_u64to8b(port->wwnn, desc->identifier); in ctl_port_set_wwns()
|
H A D | scsi_ctl.c | 1547 ccb->knob.xport_specific.fc.wwnn); in ctlfe_onoffline() 1557 if (bus_softc->port.wwnn != 0 && bus_softc->port.wwnn in ctlfe_onoffline() 1558 != ccb->knob.xport_specific.fc.wwnn) { in ctlfe_onoffline() 1559 ccb->knob.xport_specific.fc.wwnn = in ctlfe_onoffline() 1560 bus_softc->port.wwnn; in ctlfe_onoffline() 1564 true, ccb->knob.xport_specific.fc.wwnn, in ctlfe_onoffline() 1580 if (bus_softc->port.wwnn != 0) { in ctlfe_onoffline() 1581 ccb->knob.xport_specific.fc.wwnn = in ctlfe_onoffline() 1582 bus_softc->port.wwnn; in ctlfe_onoffline() [all...] |
H A D | ctl.h | 72 uint64_t wwnn; 71 uint64_t wwnn; global() member
|
/freebsd/sys/dev/isp/ |
H A D | isp_target.c | 724 uint64_t wwpn = INI_NONE, wwnn = INI_NONE; in isp_handle_notify_24xx() local 766 wwnn = be64dec(&ptr[IN24XX_PLOGI_WWNN_OFF]); in isp_handle_notify_24xx() 768 isp_add_wwn_entry(isp, chan, wwpn, wwnn, in isp_handle_notify_24xx() 775 wwnn = be64dec(&ptr[IN24XX_PRLI_WWNN_OFF]); in isp_handle_notify_24xx() 777 isp_add_wwn_entry(isp, chan, wwpn, wwnn, in isp_handle_notify_24xx()
|
H A D | isp_ioctl.h | 187 uint64_t wwnn; member
|
H A D | isp_library.c | 889 for (j = 0; j < nitems(src->vp_mod_ports[i].wwnn); j++) { in isp_put_vp_modify() 890 ISP_IOXPUT_8(isp, src->vp_mod_ports[i].wwnn[j], &dst->vp_mod_ports[i].wwnn[j]); in isp_put_vp_modify() 917 for (j = 0; j < nitems(src->vp_mod_ports[i].wwnn); j++) { in isp_get_vp_modify() 918 ISP_IOXGET_8(isp, &src->vp_mod_ports[i].wwnn[j], dst->vp_mod_ports[i].wwnn[j]); in isp_get_vp_modify() 1476 isp_add_wwn_entry(ispsoftc_t *isp, int chan, uint64_t wwpn, uint64_t wwnn, in isp_add_wwn_entry() argument 1541 if (VALID_INI(wwnn) && lp->node_wwn != wwnn) { in isp_add_wwn_entry() 1547 (unsigned long long) wwnn); in isp_add_wwn_entry() 1548 } else if (lp->port_wwn != wwnn) { in isp_add_wwn_entry() 1554 (unsigned long long) wwnn); in isp_add_wwn_entry() 1556 lp->node_wwn = wwnn; in isp_add_wwn_entry() [all …]
|
H A D | isp.c | 1263 MAKE_NODE_NAME_FROM_WWN(vp.vp_mod_ports[0].wwnn, fcp->isp_wwnn); in isp_fc_enable_vp() 1889 uint64_t wwnn, wwpn; in isp_pdb_add_update() local 1891 MAKE_WWN_FROM_NODE_NAME(wwnn, pdb->nodename); in isp_pdb_add_update() 1905 lp->node_wwn = wwnn; in isp_pdb_add_update() 1947 lp->node_wwn = wwnn; in isp_pdb_add_update() 3152 uint64_t *wwnn, *wwnp; in isp_control() 3156 wwnn = va_arg(ap, uint64_t *); in isp_control() 3159 if (wwnn == NULL && wwnp == NULL) { in isp_control() 3162 if (wwnn) { in isp_control() 3163 *wwnn in isp_control() 3151 uint64_t *wwnn, *wwnp; isp_control() local [all...] |
/freebsd/sys/cam/ |
H A D | cam_ccb.h | 634 uint64_t wwnn; /* world wide node name */ 993 uint64_t wwnn; /* world wide node name */ 1177 uint64_t wwnn; /* world wide node name */ 1184 uint64_t wwnn; /* world wide node name */ 633 uint64_t wwnn; /* world wide node name */ global() member 985 uint64_t wwnn; /* world wide node name */ global() member 1161 uint64_t wwnn; /* world wide node name */ global() member 1168 uint64_t wwnn; /* world wide node name */ global() member
|