Lines Matching refs:topo_node_exp
3237 struct leapraid_topo_node *topo_node_exp) in leapraid_imm_blkio_set_end_dev_blk_hdls() argument
3242 &topo_node_exp->sas_port_list, port_list) { in leapraid_imm_blkio_set_end_dev_blk_hdls()
3250 struct leapraid_topo_node *topo_node_exp);
3254 struct leapraid_topo_node *topo_node_exp) in leapraid_imm_blkio_to_sib_exp() argument
3260 &topo_node_exp->sas_port_list, port_list) { in leapraid_imm_blkio_to_sib_exp()
3279 struct leapraid_topo_node *topo_node_exp) in leapraid_imm_blkio_to_kids_attchd_to_ex() argument
3281 if (!topo_node_exp) in leapraid_imm_blkio_to_kids_attchd_to_ex()
3284 leapraid_imm_blkio_set_end_dev_blk_hdls(adapter, topo_node_exp); in leapraid_imm_blkio_to_kids_attchd_to_ex()
3286 leapraid_imm_blkio_to_sib_exp(adapter, topo_node_exp); in leapraid_imm_blkio_to_kids_attchd_to_ex()
3719 struct leapraid_topo_node *topo_node_exp; in leapraid_internal_exp_add() local
3738 topo_node_exp = kzalloc_obj(*topo_node_exp); in leapraid_internal_exp_add()
3739 if (!topo_node_exp) in leapraid_internal_exp_add()
3742 topo_node_exp->hdl = hdl; in leapraid_internal_exp_add()
3743 topo_node_exp->phys_num = exp_pg0->phy_num; in leapraid_internal_exp_add()
3744 topo_node_exp->sas_address_parent = sas_addr_parent; in leapraid_internal_exp_add()
3745 topo_node_exp->sas_address = le64_to_cpu(exp_pg0->sas_address); in leapraid_internal_exp_add()
3746 topo_node_exp->card_port = in leapraid_internal_exp_add()
3748 if (!topo_node_exp->card_port) { in leapraid_internal_exp_add()
3755 (unsigned long long)topo_node_exp->sas_address, in leapraid_internal_exp_add()
3757 topo_node_exp->phys_num); in leapraid_internal_exp_add()
3758 if (!topo_node_exp->phys_num) { in leapraid_internal_exp_add()
3765 topo_node_exp->card_phy = in leapraid_internal_exp_add()
3766 kcalloc(topo_node_exp->phys_num, in leapraid_internal_exp_add()
3768 if (!topo_node_exp->card_phy) { in leapraid_internal_exp_add()
3771 __func__, topo_node_exp->phys_num); in leapraid_internal_exp_add()
3776 INIT_LIST_HEAD(&topo_node_exp->sas_port_list); in leapraid_internal_exp_add()
3778 topo_node_exp->card_port); in leapraid_internal_exp_add()
3784 topo_node_exp->parent_dev = &sas_port->rphy->dev; in leapraid_internal_exp_add()
3785 topo_node_exp->rphy = sas_port->rphy; in leapraid_internal_exp_add()
3786 for (i = 0; i < topo_node_exp->phys_num; i++) { in leapraid_internal_exp_add()
3798 topo_node_exp->card_phy[i].hdl = hdl; in leapraid_internal_exp_add()
3799 topo_node_exp->card_phy[i].phy_id = i; in leapraid_internal_exp_add()
3800 topo_node_exp->card_phy[i].card_port = in leapraid_internal_exp_add()
3804 &topo_node_exp->card_phy[i], in leapraid_internal_exp_add()
3806 topo_node_exp->parent_dev); in leapraid_internal_exp_add()
3813 if (topo_node_exp->enc_hdl) { in leapraid_internal_exp_add()
3816 topo_node_exp->enc_hdl); in leapraid_internal_exp_add()
3818 topo_node_exp->enc_lid = in leapraid_internal_exp_add()
3824 list_add_tail(&topo_node_exp->list, &adapter->dev_topo.exp_list); in leapraid_internal_exp_add()
3831 topo_node_exp->sas_address, in leapraid_internal_exp_add()
3833 topo_node_exp->card_port); in leapraid_internal_exp_add()
3834 kfree(topo_node_exp->card_phy); in leapraid_internal_exp_add()
3835 kfree(topo_node_exp); in leapraid_internal_exp_add()
3843 struct leapraid_topo_node *topo_node_exp; in leapraid_exp_add() local
3878 topo_node_exp = in leapraid_exp_add()
3887 if (!topo_node_exp) { in leapraid_exp_add()
3896 topo_node_exp = in leapraid_exp_add()
3903 if (topo_node_exp) in leapraid_exp_add()
3911 struct leapraid_topo_node *topo_node_exp) in leapraid_exp_node_rm() argument
3918 &topo_node_exp->sas_port_list, in leapraid_exp_node_rm()
3942 port_id = topo_node_exp->card_port->port_id; in leapraid_exp_node_rm()
3943 leapraid_transport_port_remove(adapter, topo_node_exp->sas_address, in leapraid_exp_node_rm()
3944 topo_node_exp->sas_address_parent, in leapraid_exp_node_rm()
3945 topo_node_exp->card_port); in leapraid_exp_node_rm()
3948 port_id, (unsigned long long)topo_node_exp->sas_address, in leapraid_exp_node_rm()
3949 topo_node_exp->hdl); in leapraid_exp_node_rm()
3951 list_del(&topo_node_exp->list); in leapraid_exp_node_rm()
3953 kfree(topo_node_exp->card_phy); in leapraid_exp_node_rm()
3954 kfree(topo_node_exp); in leapraid_exp_node_rm()
3960 struct leapraid_topo_node *topo_node_exp; in leapraid_exp_rm() local
3970 topo_node_exp = leapraid_exp_find_by_sas_address(adapter, in leapraid_exp_rm()
3975 if (topo_node_exp) in leapraid_exp_rm()
3976 leapraid_exp_node_rm(adapter, topo_node_exp); in leapraid_exp_rm()
3982 struct leapraid_topo_node *topo_node_exp, in leapraid_internal_sas_topo_chg_evt() argument
4036 topo_node_exp) in leapraid_internal_sas_topo_chg_evt()
4043 struct leapraid_topo_node *topo_node_exp; in leapraid_sas_topo_chg_evt() local
4071 topo_node_exp = leapraid_exp_find_by_hdl(adapter, phdl); in leapraid_sas_topo_chg_evt()
4072 if (topo_node_exp) { in leapraid_sas_topo_chg_evt()
4073 sas_addr = topo_node_exp->sas_address; in leapraid_sas_topo_chg_evt()
4074 max_phys = topo_node_exp->phys_num; in leapraid_sas_topo_chg_evt()
4075 card_port = topo_node_exp->card_port; in leapraid_sas_topo_chg_evt()
4087 topo_node_exp, fw_evt, in leapraid_sas_topo_chg_evt()
4608 struct leapraid_topo_node *topo_node_exp, *topo_node_exp_next; in leapraid_remove_unresp_sas_exp() local
4613 list_for_each_entry_safe(topo_node_exp, topo_node_exp_next, in leapraid_remove_unresp_sas_exp()
4615 if (!topo_node_exp->resp) in leapraid_remove_unresp_sas_exp()
4616 list_move_tail(&topo_node_exp->list, &head); in leapraid_remove_unresp_sas_exp()
4618 topo_node_exp->resp = 0; in leapraid_remove_unresp_sas_exp()
4622 list_for_each_entry_safe(topo_node_exp, topo_node_exp_next, in leapraid_remove_unresp_sas_exp()
4624 leapraid_exp_node_rm(adapter, topo_node_exp); in leapraid_remove_unresp_sas_exp()
4708 struct leapraid_topo_node *topo_node_exp, in leapraid_update_exp_links() argument
4717 for (i = 0; i < topo_node_exp->phys_num; i++) { in leapraid_update_exp_links()
4725 topo_node_exp->sas_address, in leapraid_update_exp_links()
4730 topo_node_exp->card_port); in leapraid_update_exp_links()
4738 struct leapraid_topo_node *topo_node_exp; in leapraid_scan_exp_after_reset() local
4752 topo_node_exp = in leapraid_scan_exp_after_reset()
4762 if (topo_node_exp) { in leapraid_scan_exp_after_reset()
4763 leapraid_update_exp_links(adapter, topo_node_exp, hdl); in leapraid_scan_exp_after_reset()
6584 struct leapraid_topo_node *topo_node_exp; in leapraid_mark_resp_exp() local
6606 list_for_each_entry(topo_node_exp, &adapter->dev_topo.exp_list, list) { in leapraid_mark_resp_exp()
6607 if (topo_node_exp->sas_address != sas_address || in leapraid_mark_resp_exp()
6608 topo_node_exp->card_port != card_port) in leapraid_mark_resp_exp()
6611 topo_node_exp->resp = 1; in leapraid_mark_resp_exp()
6612 topo_node_exp->enc_hdl = enc_hdl; in leapraid_mark_resp_exp()
6613 topo_node_exp->enc_lid = enc_lid; in leapraid_mark_resp_exp()
6614 if (topo_node_exp->hdl == hdl) in leapraid_mark_resp_exp()
6619 topo_node_exp->hdl, hdl); in leapraid_mark_resp_exp()
6620 topo_node_exp->hdl = hdl; in leapraid_mark_resp_exp()
6621 for (i = 0; i < topo_node_exp->phys_num; i++) in leapraid_mark_resp_exp()
6622 topo_node_exp->card_phy[i].hdl = hdl; in leapraid_mark_resp_exp()