/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 144 if (wwpn != 0) { in ocs_sport_alloc() 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() 174 sport->wwpn = wwpn; 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() 616 uint64_t be_wwpn = ocs_htobe64(sport->wwpn); in __ocs_sport_vport_init() 618 if (sport->wwpn == 0) { in __ocs_sport_vport_init() 629 (sport->wwpn == 0) ? NULL : (uint8_t *)&be_wwpn)) { in __ocs_sport_vport_init() [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 | 879 uint64_t *wwpn; in get_wwpn() local 881 wwpn = ocs_hw_get_ptr(&ocs->hw, OCS_HW_WWN_PORT); in get_wwpn() 883 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "wwpn", "0x%llx", (unsigned long long)ocs_htobe64(*wwpn)); in get_wwpn() 1545 uint64_t wwpn; in set_req_wwpn() local 1548 wwpn = 0; in set_req_wwpn() 1550 else if (parse_wwn(value, &wwpn) != 0) { in set_req_wwpn() 1555 rc = ocs_xport_control(ocs->xport, OCS_XPORT_WWPN_SET, wwpn); in set_req_wwpn() 2180 uint8_t wwpn[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 2193 ocs_memcpy(result->wwpn, wwpn, sizeof(result->wwpn)); in ocs_mgmt_get_nvparms_cb() [all …]
|
H A D | ocs_common.h | 161 uint64_t wwpn; /**< WWPN from HW (host endian) */ member 385 char wwpn[OCS_WWN_LENGTH]; /**< remote port WWN (uses iSCSI naming) */ member 406 uint64_t wwpn; /*>> port name */ member
|
H A D | ocs_ddump.c | 204 sli4->config.wwpn[0], in ocs_ddump_sli() 205 sli4->config.wwpn[1], in ocs_ddump_sli() 206 sli4->config.wwpn[2], in ocs_ddump_sli() 207 sli4->config.wwpn[3], in ocs_ddump_sli() 208 sli4->config.wwpn[4], in ocs_ddump_sli() 209 sli4->config.wwpn[5], in ocs_ddump_sli() 210 sli4->config.wwpn[6], in ocs_ddump_sli() 211 sli4->config.wwpn[7]); in ocs_ddump_sli() 730 ocs_ddump_value(textbuf, "wwpn", "%llx", (unsigned long long)vport->wwpn); 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() 514 *((uint64_t*)req->hw_addr.fc.wwpn) = ocs_htobe64(ocs->domain->sport->wwpn); in ocs_ioctl() 859 uint64_t *wwpn = NULL; in ocs_sysctl_wwpn() local 863 wwpn = &xport->req_wwpn; in ocs_sysctl_wwpn() 865 snprintf(old, sizeof(old), "0x%llx",(unsigned long long) *wwpn); in ocs_sysctl_wwpn() 867 wwpn = ocs_hw_get_ptr(&ocs->hw, OCS_HW_WWN_PORT); in ocs_sysctl_wwpn() 869 snprintf(old, sizeof(old), "0x%llx",(unsigned long long) ocs_htobe64(*wwpn)); in ocs_sysctl_wwpn() 1044 snprintf(str_wwpn, sizeof(str_wwpn), "0x%llx", (unsigned long long)fcp->vport->wwpn); in ocs_sysctl_vport_wwpn()
|
H A D | ocs_ioctl.h | 66 uint8_t wwpn[8]; /**< WWPN (binary) */ member 232 uint64_t wwpn; /*<< wwpn to create or delete */ member
|
H A D | ocs_cam.c | 443 adc->wwpn = ocs_node_get_wwpn(node); in ocs_scsi_new_initiator() 509 adc->wwpn = ocs_node_get_wwpn(node); in ocs_scsi_del_initiator() 988 if (ocs_node_get_wwpn(node) == tgt->wwpn) { in ocs_tgt_find() 1025 tgt->wwpn = ocs_node_get_wwpn(node); in ocs_update_tgt() 2022 return ocs_sport_vport_del(ocs, ocs->domain, vport->wwpn, vport->wwnn); in ocs_fcp_change_role() 2119 fc->wwpn = be64toh(wwn); in ocs_action() 2204 fc->wwpn = tgt->wwpn; in ocs_action() 2248 knob->xport_specific.fc.wwpn = be64toh(wwn); in ocs_action() 2251 knob->xport_specific.fc.wwpn = fcp->vport->wwpn; in ocs_action() 2279 (unsigned long long)knob->xport_specific.fc.wwpn); in ocs_action()
|
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 | 900 uint64_t wwpn; in ocs_xport_control() local 904 wwpn = va_arg(argp, uint64_t); in ocs_xport_control() 907 ocs_log_debug(ocs, " WWPN %016" PRIx64 "\n", wwpn); in ocs_xport_control() 908 xport->req_wwpn = wwpn; in ocs_xport_control()
|
H A D | ocs_node.c | 203 ocs_node_find_wwpn(ocs_sport_t *sport, uint64_t wwpn) in ocs_node_find_wwpn() argument 211 if (ocs_node_get_wwpn(node) == wwpn) { in ocs_node_find_wwpn() 635 ocs_node_build_eui_name(node->wwpn, sizeof(node->wwpn), ocs_node_get_wwpn(node)); in ocs_node_attach() 1538 ocs_ddump_value(textbuf, "wwpn", "%s", node->wwpn); in ocs_ddump_node() 1785 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "wwpn", "%s", node->wwpn); in ocs_mgmt_node_get() 1856 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "wwpn", "%s", node->wwpn); in ocs_mgmt_node_get_all()
|
H A D | ocs.h | 67 uint64_t wwpn; member
|
H A D | ocs_node.h | 197 extern ocs_node_t *ocs_node_find_wwpn(ocs_sport_t *sport, uint64_t wwpn);
|
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 1066 ocs_memcpy(write_nvparms->wwpn, wwpn, 8); in sli_cmd_write_nvparms() 1370 ocs_memcpy(reg_vfi->wwpn, &domain->sport->sli_wwpn, sizeof(reg_vfi->wwpn)); in sli_cmd_reg_vfi() 1404 ocs_memcpy(reg_vpi->wwpn, &sport->sli_wwpn, sizeof(reg_vpi->wwpn)); in sli_cmd_reg_vpi() 4032 ocs_memcpy(sli4->config.wwpn, read_nvparms->wwpn, sizeof(sli4->config.wwpn)); in sli_get_config() 4036 sli4->config.wwpn[0], in sli_get_config() 4037 sli4->config.wwpn[1], in sli_get_config() 4038 sli4->config.wwpn[2], in sli_get_config() 4039 sli4->config.wwpn[3], in sli_get_config() 4040 sli4->config.wwpn[4], in sli_get_config() [all …]
|
H A D | ocs_domain.c | 555 be_wwpn = ocs_htobe64(sport->wwpn); in __ocs_domain_init() 672 sp->port_name_hi = ocs_htobe32((uint32_t) (sport->wwpn >> 32ll)); in __ocs_domain_wait_alloc() 673 sp->port_name_lo = ocs_htobe32((uint32_t) sport->wwpn); in __ocs_domain_wait_alloc()
|
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… 1357 extern ocs_hw_rtn_e ocs_hw_set_nvparms(ocs_hw_t *hw, ocs_set_nvparms_cb_t mgmt_cb, uint8_t *wwpn, 1456 extern uint32_t ocs_hw_get_def_wwn(ocs_t *ocs, uint32_t chan, uint64_t *wwpn, uint64_t *wwnn);
|
/freebsd/sys/cam/ctl/ |
H A D | ctl_frontend.h | 90 uint64_t wwpn; member 238 uint64_t wwpn; /* set by CTL before online */ member 293 uint64_t wwnn, int wwpn_valid, uint64_t wwpn); 336 int ctl_add_initiator(struct ctl_port *port, int iid, uint64_t wwpn, char *name);
|
H A D | ctl_frontend_cam_sim.c | 78 uint64_t wwpn; member 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() 167 softc->wwpn = port->wwpn; in cfcs_init() 682 fc->wwpn = softc->wwpn; in cfcs_action() 775 cpi->xport_specific.fc.wwpn = softc->wwpn; in cfcs_action()
|
H A D | ctl_frontend.c | 259 int wwpn_valid, uint64_t wwpn) in ctl_port_set_wwns() argument 291 port->wwpn = wwpn; in ctl_port_set_wwns() 304 scsi_u64to8b(port->wwpn, desc->identifier); in ctl_port_set_wwns()
|
H A D | scsi_ctl.c | 411 __func__, dev_chg->wwpn, dev_chg->port, in ctlfeasync() 423 dev_chg->target, dev_chg->wwpn, NULL); in ctlfeasync() 435 (uintmax_t)dev_chg->wwpn); in ctlfeasync() 1550 ccb->knob.xport_specific.fc.wwpn); in ctlfe_onoffline() 1567 if (bus_softc->port.wwpn != 0 && bus_softc->port.wwpn in ctlfe_onoffline() 1568 != ccb->knob.xport_specific.fc.wwpn) { in ctlfe_onoffline() 1569 ccb->knob.xport_specific.fc.wwpn = in ctlfe_onoffline() 1570 bus_softc->port.wwpn; in ctlfe_onoffline() 1575 true, ccb->knob.xport_specific.fc.wwpn); in ctlfe_onoffline() [all...] |
H A D | ctl.h | 73 uint64_t wwpn; 72 uint64_t wwpn; 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 758 wwpn = be64dec(&ptr[IN24XX_PLOGI_WWPN_OFF]); in isp_handle_notify_24xx() 759 isp_del_wwn_entry(isp, chan, wwpn, nphdl, portid); in isp_handle_notify_24xx() 767 wwpn = be64dec(&ptr[IN24XX_PLOGI_WWPN_OFF]); in isp_handle_notify_24xx() 768 isp_add_wwn_entry(isp, chan, wwpn, wwnn, in isp_handle_notify_24xx() 776 wwpn = be64dec(&ptr[IN24XX_PRLI_WWPN_OFF]); in isp_handle_notify_24xx() 777 isp_add_wwn_entry(isp, chan, wwpn, wwnn, in isp_handle_notify_24xx()
|
H A D | isp_library.c | 886 for (j = 0; j < nitems(src->vp_mod_ports[i].wwpn); j++) { in isp_put_vp_modify() 887 ISP_IOXPUT_8(isp, src->vp_mod_ports[i].wwpn[j], &dst->vp_mod_ports[i].wwpn[j]); in isp_put_vp_modify() 914 for (j = 0; j < nitems(src->vp_mod_ports[i].wwpn); j++) { in isp_get_vp_modify() 915 ISP_IOXGET_8(isp, &src->vp_mod_ports[i].wwpn[j], dst->vp_mod_ports[i].wwpn[j]); in isp_get_vp_modify() 1394 isp_find_pdb_by_wwpn(ispsoftc_t *isp, int chan, uint64_t wwpn, fcportdb_t **lptr) in isp_find_pdb_by_wwpn() argument 1404 if (lp->port_wwn == wwpn) { in isp_find_pdb_by_wwpn() 1476 isp_add_wwn_entry(ispsoftc_t *isp, int chan, uint64_t wwpn, uint64_t wwnn, in isp_add_wwn_entry() argument 1488 chan, (unsigned long long) wwpn, s_id, nphdl); in isp_add_wwn_entry() 1497 if ((VALID_INI(wwpn) && isp_find_pdb_by_wwpn(isp, chan, wwpn, &lp)) || in isp_add_wwn_entry() 1521 if (VALID_INI(wwpn) && lp->port_wwn != wwpn) { in isp_add_wwn_entry() [all …]
|
H A D | isp_ioctl.h | 188 uint64_t wwpn; member
|
/freebsd/sys/cam/ |
H A D | cam_ccb.h | 635 uint64_t wwpn; /* world wide port name */ 906 uint64_t wwpn; 994 uint64_t wwpn; /* world wide port name */ 1178 uint64_t wwpn; /* world wide port name */ 634 uint64_t wwpn; /* world wide port name */ global() member 898 uint64_t wwpn; global() member 986 uint64_t wwpn; /* world wide port name */ global() member 1162 uint64_t wwpn; /* world wide port name */ global() member
|