Lines Matching refs:mlo_ctxt

53 	struct dp_mlo_ctxt *mlo_ctxt =  in dp_mlo_ctxt_attach_wifi3()  local
56 if (!mlo_ctxt) { in dp_mlo_ctxt_attach_wifi3()
61 mlo_ctxt->ctrl_ctxt = ctrl_ctxt; in dp_mlo_ctxt_attach_wifi3()
64 (mlo_ctxt, DP_MAX_MLO_PEER) != QDF_STATUS_SUCCESS) { in dp_mlo_ctxt_attach_wifi3()
66 qdf_mem_free(mlo_ctxt); in dp_mlo_ctxt_attach_wifi3()
70 qdf_get_random_bytes(mlo_ctxt->toeplitz_hash_ipv4, in dp_mlo_ctxt_attach_wifi3()
71 (sizeof(mlo_ctxt->toeplitz_hash_ipv4[0]) * in dp_mlo_ctxt_attach_wifi3()
73 qdf_get_random_bytes(mlo_ctxt->toeplitz_hash_ipv6, in dp_mlo_ctxt_attach_wifi3()
74 (sizeof(mlo_ctxt->toeplitz_hash_ipv6[0]) * in dp_mlo_ctxt_attach_wifi3()
77 qdf_spinlock_create(&mlo_ctxt->ml_soc_list_lock); in dp_mlo_ctxt_attach_wifi3()
78 qdf_spinlock_create(&mlo_ctxt->grp_umac_reset_ctx.grp_ctx_lock); in dp_mlo_ctxt_attach_wifi3()
79 dp_mlo_dev_ctxt_list_attach(mlo_ctxt); in dp_mlo_ctxt_attach_wifi3()
80 return dp_mlo_ctx_to_cdp(mlo_ctxt); in dp_mlo_ctxt_attach_wifi3()
91 struct dp_mlo_ctxt *mlo_ctxt = cdp_mlo_ctx_to_dp(cdp_ml_ctxt); in dp_mlo_ctxt_detach_wifi3() local
96 qdf_spinlock_destroy(&mlo_ctxt->grp_umac_reset_ctx.grp_ctx_lock); in dp_mlo_ctxt_detach_wifi3()
97 qdf_spinlock_destroy(&mlo_ctxt->ml_soc_list_lock); in dp_mlo_ctxt_detach_wifi3()
98 dp_mlo_dev_ctxt_list_detach(mlo_ctxt); in dp_mlo_ctxt_detach_wifi3()
99 dp_mlo_peer_find_hash_detach_be(mlo_ctxt); in dp_mlo_ctxt_detach_wifi3()
100 qdf_mem_free(mlo_ctxt); in dp_mlo_ctxt_detach_wifi3()
156 static QDF_STATUS dp_partner_soc_rx_hw_cc_init(struct dp_mlo_ctxt *mlo_ctxt, in dp_partner_soc_rx_hw_cc_init() argument
166 partner_soc = dp_mlo_get_soc_ref_by_chip_id(mlo_ctxt, i); in dp_partner_soc_rx_hw_cc_init()
283 struct dp_mlo_ctxt *mlo_ctxt = cdp_mlo_ctx_to_dp(cdp_ml_ctxt); in dp_mlo_soc_setup() local
290 be_soc->ml_ctxt = mlo_ctxt; in dp_mlo_soc_setup()
298 dp_mlo_set_soc_by_chip_id(mlo_ctxt, soc, be_soc->mlo_chip_id); in dp_mlo_soc_setup()
306 struct dp_mlo_ctxt *mlo_ctxt = cdp_mlo_ctx_to_dp(cdp_ml_ctxt); in dp_mlo_soc_teardown() local
317 dp_mlo_set_soc_by_chip_id(mlo_ctxt, NULL, be_soc->mlo_chip_id); in dp_mlo_soc_teardown()
323 struct dp_mlo_ctxt *mlo_ctxt = cdp_mlo_ctx_to_dp(cdp_ml_ctxt); in dp_mlo_setup_complete() local
333 soc = dp_mlo_get_soc_ref_by_chip_id(mlo_ctxt, i); in dp_mlo_setup_complete()
339 qdf_status = dp_partner_soc_rx_hw_cc_init(mlo_ctxt, be_soc); in dp_mlo_setup_complete()
890 struct dp_mlo_ctxt *mlo_ctxt = NULL; in dp_mlo_partner_chips_map() local
900 mlo_ctxt = be_soc->ml_ctxt; in dp_mlo_partner_chips_map()
901 if (!mlo_ctxt) in dp_mlo_partner_chips_map()
904 qdf_spin_lock_bh(&mlo_ctxt->ml_soc_list_lock); in dp_mlo_partner_chips_map()
906 temp_soc = mlo_ctxt->ml_soc_list[chip_id]; in dp_mlo_partner_chips_map()
917 qdf_spin_unlock_bh(&mlo_ctxt->ml_soc_list_lock); in dp_mlo_partner_chips_map()
926 struct dp_mlo_ctxt *mlo_ctxt = be_soc->ml_ctxt; in dp_mlo_partner_chips_unmap() local
935 if (!mlo_ctxt) in dp_mlo_partner_chips_unmap()
938 qdf_spin_lock_bh(&mlo_ctxt->ml_soc_list_lock); in dp_mlo_partner_chips_unmap()
940 temp_soc = mlo_ctxt->ml_soc_list[chip_id]; in dp_mlo_partner_chips_unmap()
951 qdf_spin_unlock_bh(&mlo_ctxt->ml_soc_list_lock); in dp_mlo_partner_chips_unmap()
974 struct dp_mlo_ctxt *mlo_ctxt = be_soc->ml_ctxt; in dp_mlo_link_peer_hash_find_by_chip_id() local
978 if (!mlo_ctxt) in dp_mlo_link_peer_hash_find_by_chip_id()
981 link_peer_soc = dp_mlo_get_soc_ref_by_chip_id(mlo_ctxt, chip_id); in dp_mlo_link_peer_hash_find_by_chip_id()
1016 struct dp_mlo_ctxt *mlo_ctxt = be_soc->ml_ctxt; in dp_rx_replenish_soc_get() local
1019 if (!be_soc->mlo_enabled || !mlo_ctxt) in dp_rx_replenish_soc_get()
1025 replenish_soc = dp_mlo_get_soc_ref_by_chip_id(mlo_ctxt, chip_id); in dp_rx_replenish_soc_get()
1037 struct dp_mlo_ctxt *mlo_ctxt = be_soc->ml_ctxt; in dp_soc_get_num_soc_be() local
1039 if (!be_soc->mlo_enabled || !mlo_ctxt) in dp_soc_get_num_soc_be()
1042 return mlo_ctxt->ml_soc_cnt; in dp_soc_get_num_soc_be()
1049 struct dp_mlo_ctxt *mlo_ctxt = be_soc->ml_ctxt; in dp_soc_get_by_idle_bm_id() local
1053 if (!be_soc->mlo_enabled || !mlo_ctxt) in dp_soc_get_by_idle_bm_id()
1057 partner_soc = dp_mlo_get_soc_ref_by_chip_id(mlo_ctxt, chip_id); in dp_soc_get_by_idle_bm_id()
1792 struct dp_mlo_ctxt *mlo_ctxt = be_soc->ml_ctxt; in dp_get_soc_by_chip_id_be() local
1795 if (!be_soc->mlo_enabled || !mlo_ctxt) in dp_get_soc_by_chip_id_be()
1801 partner_soc = dp_mlo_get_soc_ref_by_chip_id(mlo_ctxt, chip_id); in dp_get_soc_by_chip_id_be()