/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 171 sport->fc_id = fc_id; in ocs_sport_alloc() 229 spv_set(domain->lookup, sport->fc_id, NULL); in ocs_sport_free() 403 ocs_sport_attach(ocs_sport_t *sport, uint32_t fc_id) in ocs_sport_attach() argument 410 spv_set(sport->domain->lookup, fc_id, sport); in ocs_sport_attach() 414 ocs_node_fcid_display(fc_id, sport->display_name, sizeof(sport->display_name)); in ocs_sport_attach() 420 ocs_log_debug(sport->ocs, "[%s] attach sport: fc_id x%06x\n", sport->display_name, fc_id); in ocs_sport_attach() 422 rc = ocs_hw_port_attach(&sport->ocs->hw, sport, fc_id); in ocs_sport_attach() 504 spv_set(domain->lookup, sport->fc_id, NULL); in __ocs_sport_common() 521 if((node->rnode.fc_id == FC_ADDR_FABRIC) && (sport->is_vport)) { in __ocs_sport_common() [all …]
|
H A D | ocs_sport.h | 42 …rn ocs_sport_t *ocs_sport_alloc(ocs_domain_t *domain, uint64_t wwpn, uint64_t wwnn, uint32_t fc_id, 80 extern int32_t ocs_sport_attach(ocs_sport_t *sport, uint32_t fc_id); 91 …rt_vport_new(ocs_domain_t *domain, uint64_t wwpn, uint64_t wwnn, uint32_t fc_id, uint8_t ini, uint… 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_domain.c | 580 drec->fc_id, drec->speed); in __ocs_domain_init() 582 sport->fc_id = drec->fc_id; in __ocs_domain_init() 584 ocs_snprintf(sport->display_name, sizeof(sport->display_name), "s%06x", drec->fc_id); in __ocs_domain_init() 590 if (drec->map.loop[i] != drec->fc_id) { in __ocs_domain_init() 594 drec->fc_id, drec->map.loop[i]); in __ocs_domain_init() 695 __ocs_domain_attach_internal(domain, sport->fc_id); in __ocs_domain_wait_alloc() 775 uint32_t fc_id; in __ocs_domain_allocated() local 779 fc_id = *((uint32_t*)arg); in __ocs_domain_allocated() 780 ocs_log_debug(ocs, "Requesting hw domain attach fc_id x%x\n", fc_id); in __ocs_domain_allocated() 783 spv_set(domain->lookup, fc_id, domain->sport); in __ocs_domain_allocated() [all …]
|
H A D | ocs_common.h | 117 uint32_t fc_id; /**< our ports fc_id */ member 176 uint32_t fc_id; /**< FC address */ member 275 uint32_t fc_id; /**< FC address */ member 407 uint32_t fc_id; /*>> port id */ member
|
H A D | ocs_node.c | 517 spv_set(sport->lookup, node->rnode.fc_id, NULL); in ocs_node_free() 670 ocs_node_fcid_display(uint32_t fc_id, char *buffer, uint32_t buffer_length) in ocs_node_fcid_display() argument 672 switch (fc_id) { in ocs_node_fcid_display() 683 if (FC_ADDR_IS_DOMAIN_CTRL(fc_id)) { in ocs_node_fcid_display() 685 FC_ADDR_GET_DOMAIN_CTRL(fc_id)); in ocs_node_fcid_display() 687 ocs_snprintf(buffer, buffer_length, "%06x", fc_id); in ocs_node_fcid_display() 708 uint32_t port_id = node->rnode.fc_id; in ocs_node_update_display_name() 1522 ocs_ddump_value(textbuf, "fc_id", "%#06x", node->rnode.fc_id); in ocs_ddump_node() 1755 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "fc_id", "0x%06x", node->rnode.fc_id); in ocs_mgmt_node_get() 1846 ocs_mgmt_emit_int(textbuf, MGMT_MODE_RD, "fc_id", "0x%06x", node->rnode.fc_id); in ocs_mgmt_node_get_all()
|
H A D | ocs_fabric.c | 1362 node_printf(node, "Node with fc_id x%x already exists\n", rnode->rnode.fc_id); in __ocs_p2p_wait_domain_attach() 1378 if (node->rnode.fc_id == 0) { in __ocs_p2p_wait_domain_attach() 1893 port_id = n->rnode.fc_id; in ocs_process_gidpt_payload() 1912 if ((active_nodes[j] != NULL) && (port_id == active_nodes[j]->rnode.fc_id)) { in ocs_process_gidpt_payload() 1933 active_nodes[i]->rnode.fc_id); in ocs_process_gidpt_payload() 1945 if (port_id != node->rnode.sport->fc_id && !ocs_sport_find(sport->domain, port_id)) { in ocs_process_gidpt_payload()
|
H A D | sli4.c | 1371 reg_vfi->local_n_port_id = domain->sport->fc_id; in sli_cmd_reg_vfi() 1402 reg_vpi->local_n_port_id = sport->fc_id; in sli_cmd_reg_vpi() 1567 uint32_t fc_id) in sli_cmd_unreg_rpi() argument 1583 if (fc_id != UINT32_MAX) { in sli_cmd_unreg_rpi() 1585 unreg_rpi->destination_n_port_id = fc_id & 0x00ffffff; in sli_cmd_unreg_rpi() 6642 els->remote_id = rnode->fc_id & 0x00ffffff; in sli_els_request64_wqe() 6661 if (FC_ADDR_FABRIC == rnode->fc_id) { in sli_els_request64_wqe() 6666 if (FC_ADDR_FABRIC == rnode->fc_id) { in sli_els_request64_wqe() 6669 if (0 == rnode->sport->fc_id) { in sli_els_request64_wqe() 6707 if (rnode->sport->fc_id != UINT32_MAX) { in sli_els_request64_wqe() [all …]
|
H A D | ocs_els.c | 929 logo->port_id = fc_htobe24(node->rnode.sport->fc_id); in ocs_send_logo() 989 adisc->hard_address = fc_htobe24(sport->fc_id); in ocs_send_adisc() 994 adisc->port_id = fc_htobe24(node->rnode.sport->fc_id); in ocs_send_adisc() 1394 io->iparam.els_sid.s_id = io->node->sport->fc_id; in ocs_send_flogi_acc() 1680 adisc->port_id = fc_htobe24(node->rnode.sport->fc_id); in ocs_send_adisc_acc() 1733 rftid->port_id = ocs_htobe32(node->rnode.sport->fc_id); in ocs_ns_send_rftid() 1786 rffid->port_id = ocs_htobe32(node->rnode.sport->fc_id); in ocs_ns_send_rffid() 1907 if (node->rnode.sport->fc_id == s_id) { in ocs_bls_send_acc()
|
H A D | ocs.h | 80 uint32_t fc_id; member
|
H A D | ocs_cam.c | 444 adc->port = node->rnode.fc_id; in ocs_scsi_new_initiator() 510 adc->port = node->rnode.fc_id; in ocs_scsi_del_initiator() 912 fcp->fc_id = sport->fc_id; in ocs_scsi_ini_new_sport() 939 fcp->fc_id = 0; in ocs_scsi_ini_del_sport() 1024 tgt->port_id = node->rnode.fc_id; in ocs_update_tgt() 2124 fc->port = fcp->fc_id; in ocs_action()
|
H A D | ocs_node.h | 202 extern void ocs_node_fcid_display(uint32_t fc_id, char *buffer, uint32_t buffer_length);
|
H A D | ocs_hw.c | 261 hw->link.fc_id = UINT32_MAX; in ocs_hw_link_event_init() 2529 ocs_hw_port_attach(ocs_hw_t *hw, ocs_sli_port_t *sport, uint32_t fc_id) in ocs_hw_port_attach() argument 2555 sport->fc_id = fc_id; in ocs_hw_port_attach() 2840 ocs_hw_domain_attach(ocs_hw_t *hw, ocs_domain_t *domain, uint32_t fc_id) in ocs_hw_domain_attach() argument 2866 domain->sport->fc_id = fc_id; in ocs_hw_domain_attach() 2973 rnode->fc_id = fc_addr; in ocs_hw_node_alloc() 3044 if (sli_cmd_reg_rpi(&hw->sli, buf, SLI4_BMBX_SIZE, rnode->fc_id, in ocs_hw_node_attach() 3088 rnode->indicator, rnode->fc_id); in ocs_hw_node_free_resources() 3140 uint32_t fc_id; in ocs_hw_node_detach() local 3157 fc_id = UINT32_MAX; in ocs_hw_node_detach() [all …]
|
H A D | ocs_unsol.c | 598 if (sport->fc_id != d_id) { in ocs_domain_dispatch_frame() 676 ocs_assert(port_id == node->rnode.fc_id, -1); in ocs_node_dispatch_frame()
|
H A D | ocs_device.c | 732 …de->ocs->nodedb_mask & OCS_NODEDB_PAUSE_NEW_NODES) && !FC_ADDR_IS_DOMAIN_CTRL(node->rnode.fc_id)) { in ocs_node_init_device() 1443 if (node->sport->enable_ini && !FC_ADDR_IS_DOMAIN_CTRL(node->rnode.fc_id) in __ocs_d_port_logged_in()
|
H A D | ocs_ddump.c | 731 ocs_ddump_value(textbuf, "fc_id", "0x%x", vport->fc_id); in ocs_ddump()
|
H A D | ocs_ioctl.c | 980 ocs->domain->sport->fc_id); in ocs_sysctl_fcid()
|
H A D | ocs_mgmt.c | 892 ocs->domain->sport->fc_id); in get_fcid()
|
H A D | sli4.h | 3161 uint32_t fc_id; member
|