Lines Matching refs:ops
36 if (!soc || !soc->ops) { in cdp_is_target_ar900b()
42 if (!soc->ops->ctrl_ops || in cdp_is_target_ar900b()
43 !soc->ops->ctrl_ops->txrx_is_target_ar900b) in cdp_is_target_ar900b()
46 return soc->ops->ctrl_ops->txrx_is_target_ar900b(soc); in cdp_is_target_ar900b()
54 if (!soc || !soc->ops) { in cdp_mempools_attach()
60 if (!soc->ops->ctrl_ops || in cdp_mempools_attach()
61 !soc->ops->ctrl_ops->txrx_mempools_attach) in cdp_mempools_attach()
64 return soc->ops->ctrl_ops->txrx_mempools_attach(soc); in cdp_mempools_attach()
85 if (!soc || !soc->ops) { in cdp_update_filter_neighbour_peers()
91 if (!soc->ops->mon_ops || in cdp_update_filter_neighbour_peers()
92 !soc->ops->mon_ops->txrx_update_filter_neighbour_peers) in cdp_update_filter_neighbour_peers()
95 return soc->ops->mon_ops->txrx_update_filter_neighbour_peers in cdp_update_filter_neighbour_peers()
115 if (!soc || !soc->ops) { in cdp_update_mon_mac_filter()
121 if (!soc->ops->mon_ops || in cdp_update_mon_mac_filter()
122 !soc->ops->mon_ops->txrx_update_mon_mac_filter) in cdp_update_mon_mac_filter()
125 return soc->ops->mon_ops->txrx_update_mon_mac_filter in cdp_update_mon_mac_filter()
149 if (!soc || !soc->ops) { in cdp_record_vdev_mscs_params()
155 if (!soc->ops->ctrl_ops || in cdp_record_vdev_mscs_params()
156 !soc->ops->ctrl_ops->txrx_record_mscs_params) in cdp_record_vdev_mscs_params()
158 return soc->ops->ctrl_ops->txrx_record_mscs_params in cdp_record_vdev_mscs_params()
177 if (!soc || !soc->ops) { in cdp_set_pdev_reo_dest()
183 if (!soc->ops->ctrl_ops || in cdp_set_pdev_reo_dest()
184 !soc->ops->ctrl_ops->txrx_set_pdev_reo_dest) in cdp_set_pdev_reo_dest()
187 return soc->ops->ctrl_ops->txrx_set_pdev_reo_dest in cdp_set_pdev_reo_dest()
201 if (!soc || !soc->ops) { in cdp_get_pdev_reo_dest()
207 if (!soc->ops->ctrl_ops || in cdp_get_pdev_reo_dest()
208 !soc->ops->ctrl_ops->txrx_get_pdev_reo_dest) in cdp_get_pdev_reo_dest()
211 return soc->ops->ctrl_ops->txrx_get_pdev_reo_dest(soc, pdev_id); in cdp_get_pdev_reo_dest()
233 if (!soc || !soc->ops) { in cdp_peer_authorize()
239 if (!soc->ops->ctrl_ops || in cdp_peer_authorize()
240 !soc->ops->ctrl_ops->txrx_peer_authorize) in cdp_peer_authorize()
243 return soc->ops->ctrl_ops->txrx_peer_authorize in cdp_peer_authorize()
259 if (!soc || !soc->ops) { in cdp_peer_get_authorize()
265 if (!soc->ops->ctrl_ops || in cdp_peer_get_authorize()
266 !soc->ops->ctrl_ops->txrx_peer_get_authorize) in cdp_peer_get_authorize()
269 return soc->ops->ctrl_ops->txrx_peer_get_authorize in cdp_peer_get_authorize()
276 if (!soc || !soc->ops) { in cdp_tx_flush_buffers()
282 if (!soc->ops->ctrl_ops || in cdp_tx_flush_buffers()
283 !soc->ops->ctrl_ops->tx_flush_buffers) in cdp_tx_flush_buffers()
286 soc->ops->ctrl_ops->tx_flush_buffers(soc, vdev_id); in cdp_tx_flush_buffers()
294 if (!soc || !soc->ops) { in cdp_txrx_get_vdev_param()
300 if (!soc->ops->ctrl_ops || in cdp_txrx_get_vdev_param()
301 !soc->ops->ctrl_ops->txrx_get_vdev_param) { in cdp_txrx_get_vdev_param()
306 return soc->ops->ctrl_ops->txrx_get_vdev_param(soc, vdev_id, in cdp_txrx_get_vdev_param()
315 if (!soc || !soc->ops) { in cdp_txrx_set_vdev_param()
321 if (!soc->ops->ctrl_ops || in cdp_txrx_set_vdev_param()
322 !soc->ops->ctrl_ops->txrx_set_vdev_param) { in cdp_txrx_set_vdev_param()
327 return soc->ops->ctrl_ops->txrx_set_vdev_param(soc, vdev_id, in cdp_txrx_set_vdev_param()
336 if (!soc || !soc->ops) { in cdp_txrx_set_psoc_param()
342 if (!soc->ops->ctrl_ops || in cdp_txrx_set_psoc_param()
343 !soc->ops->ctrl_ops->txrx_set_psoc_param) in cdp_txrx_set_psoc_param()
346 return soc->ops->ctrl_ops->txrx_set_psoc_param(soc, type, val); in cdp_txrx_set_psoc_param()
354 if (!soc || !soc->ops) { in cdp_txrx_get_psoc_param()
360 if (!soc->ops->ctrl_ops || in cdp_txrx_get_psoc_param()
361 !soc->ops->ctrl_ops->txrx_get_psoc_param) in cdp_txrx_get_psoc_param()
364 return soc->ops->ctrl_ops->txrx_get_psoc_param(soc, type, val); in cdp_txrx_get_psoc_param()
371 if (!soc || !soc->ops) { in cdp_vdev_alloc_vdev_stats_id()
377 if (!soc->ops->host_stats_ops || in cdp_vdev_alloc_vdev_stats_id()
378 !soc->ops->host_stats_ops->txrx_alloc_vdev_stats_id) in cdp_vdev_alloc_vdev_stats_id()
381 return soc->ops->host_stats_ops->txrx_alloc_vdev_stats_id in cdp_vdev_alloc_vdev_stats_id()
389 if (!soc || !soc->ops) { in cdp_vdev_reset_vdev_stats_id()
395 if (!soc->ops->host_stats_ops || in cdp_vdev_reset_vdev_stats_id()
396 !soc->ops->host_stats_ops->txrx_reset_vdev_stats_id) in cdp_vdev_reset_vdev_stats_id()
399 soc->ops->host_stats_ops->txrx_reset_vdev_stats_id(soc, vdev_stats_id); in cdp_vdev_reset_vdev_stats_id()
417 if (!soc || !soc->ops) { in cdp_set_vdev_peer_protocol_count()
423 if (!soc->ops->ctrl_ops || in cdp_set_vdev_peer_protocol_count()
424 !soc->ops->ctrl_ops->txrx_enable_peer_protocol_count) in cdp_set_vdev_peer_protocol_count()
427 soc->ops->ctrl_ops->txrx_enable_peer_protocol_count(soc, vdev_id, in cdp_set_vdev_peer_protocol_count()
445 if (!soc || !soc->ops) { in cdp_set_vdev_peer_protocol_drop_mask()
451 if (!soc->ops->ctrl_ops || in cdp_set_vdev_peer_protocol_drop_mask()
452 !soc->ops->ctrl_ops->txrx_set_peer_protocol_drop_mask) in cdp_set_vdev_peer_protocol_drop_mask()
455 soc->ops->ctrl_ops->txrx_set_peer_protocol_drop_mask(soc, vdev_id, in cdp_set_vdev_peer_protocol_drop_mask()
473 if (!soc || !soc->ops) { in cdp_is_vdev_peer_protocol_count_enabled()
479 if (!soc->ops->ctrl_ops || in cdp_is_vdev_peer_protocol_count_enabled()
480 !soc->ops->ctrl_ops->txrx_is_peer_protocol_count_enabled) in cdp_is_vdev_peer_protocol_count_enabled()
483 return soc->ops->ctrl_ops->txrx_is_peer_protocol_count_enabled(soc, in cdp_is_vdev_peer_protocol_count_enabled()
499 if (!soc || !soc->ops) { in cdp_get_peer_protocol_drop_mask()
505 if (!soc->ops->ctrl_ops || in cdp_get_peer_protocol_drop_mask()
506 !soc->ops->ctrl_ops->txrx_get_peer_protocol_drop_mask) in cdp_get_peer_protocol_drop_mask()
509 return soc->ops->ctrl_ops->txrx_get_peer_protocol_drop_mask(soc, in cdp_get_peer_protocol_drop_mask()
546 if (!soc || !soc->ops) { in cdp_txrx_set_pdev_param()
552 if (!soc->ops->ctrl_ops || in cdp_txrx_set_pdev_param()
553 !soc->ops->ctrl_ops->txrx_set_pdev_param) in cdp_txrx_set_pdev_param()
556 return soc->ops->ctrl_ops->txrx_set_pdev_param in cdp_txrx_set_pdev_param()
576 if (!soc || !soc->ops) { in cdp_txrx_set_peer_param()
582 if (!soc->ops->ctrl_ops || in cdp_txrx_set_peer_param()
583 !soc->ops->ctrl_ops->txrx_set_peer_param) in cdp_txrx_set_peer_param()
586 return soc->ops->ctrl_ops->txrx_set_peer_param in cdp_txrx_set_peer_param()
606 if (!soc || !soc->ops) { in cdp_txrx_get_peer_param()
612 if (!soc->ops->ctrl_ops || in cdp_txrx_get_peer_param()
613 !soc->ops->ctrl_ops->txrx_get_peer_param) in cdp_txrx_get_peer_param()
616 return soc->ops->ctrl_ops->txrx_get_peer_param in cdp_txrx_get_peer_param()
625 if (!soc || !soc->ops) { in cdp_peer_set_vlan_id()
631 if (!soc->ops->ctrl_ops || in cdp_peer_set_vlan_id()
632 !soc->ops->ctrl_ops->txrx_peer_set_vlan_id) in cdp_peer_set_vlan_id()
635 soc->ops->ctrl_ops->txrx_peer_set_vlan_id(soc, vdev_id, peer_mac, in cdp_peer_set_vlan_id()
654 if (!soc || !soc->ops) { in cdp_txrx_get_pdev_param()
660 if (!soc->ops->ctrl_ops || in cdp_txrx_get_pdev_param()
661 !soc->ops->ctrl_ops->txrx_get_pdev_param) in cdp_txrx_get_pdev_param()
664 return soc->ops->ctrl_ops->txrx_get_pdev_param in cdp_txrx_get_pdev_param()
686 if (!soc || !soc->ops) { in cdp_txrx_peer_protocol_cnt()
692 if (!soc->ops->ctrl_ops || in cdp_txrx_peer_protocol_cnt()
693 !soc->ops->ctrl_ops->txrx_peer_protocol_cnt) in cdp_txrx_peer_protocol_cnt()
696 soc->ops->ctrl_ops->txrx_peer_protocol_cnt(soc, vdev_id, nbuf, in cdp_txrx_peer_protocol_cnt()
721 if (!soc || !soc->ops) { in cdp_enable_peer_based_pktlog()
728 if (!soc->ops->ctrl_ops || in cdp_enable_peer_based_pktlog()
729 !soc->ops->ctrl_ops->enable_peer_based_pktlog) in cdp_enable_peer_based_pktlog()
732 return soc->ops->ctrl_ops->enable_peer_based_pktlog in cdp_enable_peer_based_pktlog()
748 if (!soc || !soc->ops) { in cdp_calculate_delay_stats()
754 if (!soc->ops->ctrl_ops || in cdp_calculate_delay_stats()
755 !soc->ops->ctrl_ops->calculate_delay_stats) { in cdp_calculate_delay_stats()
760 return soc->ops->ctrl_ops->calculate_delay_stats(soc, vdev_id, nbuf); in cdp_calculate_delay_stats()
784 if (!soc || !soc->ops) { in cdp_wdi_event_sub()
790 if (!soc->ops->ctrl_ops || in cdp_wdi_event_sub()
791 !soc->ops->ctrl_ops->txrx_wdi_event_sub) in cdp_wdi_event_sub()
794 return soc->ops->ctrl_ops->txrx_wdi_event_sub in cdp_wdi_event_sub()
818 if (!soc || !soc->ops) { in cdp_wdi_event_unsub()
824 if (!soc->ops->ctrl_ops || in cdp_wdi_event_unsub()
825 !soc->ops->ctrl_ops->txrx_wdi_event_unsub) in cdp_wdi_event_unsub()
828 return soc->ops->ctrl_ops->txrx_wdi_event_unsub in cdp_wdi_event_unsub()
849 if (!soc || !soc->ops) { in cdp_get_sec_type()
855 if (!soc->ops->ctrl_ops || in cdp_get_sec_type()
856 !soc->ops->ctrl_ops->txrx_get_sec_type) in cdp_get_sec_type()
859 return soc->ops->ctrl_ops->txrx_get_sec_type in cdp_get_sec_type()
876 if (!soc || !soc->ops) { in cdp_set_mgmt_tx_power()
882 if (!soc->ops->ctrl_ops || in cdp_set_mgmt_tx_power()
883 !soc->ops->ctrl_ops->txrx_update_mgmt_txpow_vdev) in cdp_set_mgmt_tx_power()
886 return soc->ops->ctrl_ops->txrx_update_mgmt_txpow_vdev(soc, vdev_id, in cdp_set_mgmt_tx_power()
900 if (!soc || !soc->ops) { in cdp_get_pldev()
907 if (!soc->ops->ctrl_ops || !soc->ops->ctrl_ops->txrx_get_pldev) in cdp_get_pldev()
910 return soc->ops->ctrl_ops->txrx_get_pldev(soc, pdev_id); in cdp_get_pldev()
929 if (!soc || !soc->ops) { in cdp_cfr_filter()
936 if (!soc->ops->mon_ops || !soc->ops->mon_ops->txrx_cfr_filter) in cdp_cfr_filter()
939 soc->ops->mon_ops->txrx_cfr_filter(soc, pdev_id, enable, filter_val, in cdp_cfr_filter()
953 if (!soc || !soc->ops) { in cdp_get_cfr_rcc()
960 if (!soc->ops->cfr_ops || !soc->ops->cfr_ops->txrx_get_cfr_rcc) in cdp_get_cfr_rcc()
963 return soc->ops->cfr_ops->txrx_get_cfr_rcc(soc, pdev_id); in cdp_get_cfr_rcc()
977 if (!soc || !soc->ops) { in cdp_set_cfr_rcc()
984 if (!soc->ops->cfr_ops || !soc->ops->cfr_ops->txrx_set_cfr_rcc) in cdp_set_cfr_rcc()
987 return soc->ops->cfr_ops->txrx_set_cfr_rcc(soc, pdev_id, enable); in cdp_set_cfr_rcc()
1002 if (!soc || !soc->ops) { in cdp_get_cfr_dbg_stats()
1009 if (!soc->ops->cfr_ops || !soc->ops->cfr_ops->txrx_get_cfr_dbg_stats) in cdp_get_cfr_dbg_stats()
1012 soc->ops->cfr_ops->txrx_get_cfr_dbg_stats(soc, pdev_id, buf); in cdp_get_cfr_dbg_stats()
1023 if (!soc || !soc->ops) { in cdp_cfr_clr_dbg_stats()
1030 if (!soc->ops->cfr_ops || !soc->ops->cfr_ops->txrx_clear_cfr_dbg_stats) in cdp_cfr_clr_dbg_stats()
1033 soc->ops->cfr_ops->txrx_clear_cfr_dbg_stats(soc, pdev_id); in cdp_cfr_clr_dbg_stats()
1055 if (!soc || !soc->ops) { in cdp_update_peer_pkt_capture_params()
1061 if (!soc->ops->ctrl_ops || in cdp_update_peer_pkt_capture_params()
1062 !soc->ops->ctrl_ops->txrx_update_peer_pkt_capture_params) in cdp_update_peer_pkt_capture_params()
1065 return soc->ops->ctrl_ops->txrx_update_peer_pkt_capture_params in cdp_update_peer_pkt_capture_params()
1087 if (!soc || !soc->ops) { in cdp_update_pdev_rx_protocol_tag()
1093 if (!soc->ops->ctrl_ops || in cdp_update_pdev_rx_protocol_tag()
1094 !soc->ops->ctrl_ops->txrx_update_pdev_rx_protocol_tag) in cdp_update_pdev_rx_protocol_tag()
1097 return soc->ops->ctrl_ops->txrx_update_pdev_rx_protocol_tag in cdp_update_pdev_rx_protocol_tag()
1116 if (!soc || !soc->ops) { in cdp_dump_pdev_rx_protocol_tag_stats()
1122 if (!soc->ops->ctrl_ops || in cdp_dump_pdev_rx_protocol_tag_stats()
1123 !soc->ops->ctrl_ops->txrx_dump_pdev_rx_protocol_tag_stats) in cdp_dump_pdev_rx_protocol_tag_stats()
1126 soc->ops->ctrl_ops->txrx_dump_pdev_rx_protocol_tag_stats(soc, pdev_id, in cdp_dump_pdev_rx_protocol_tag_stats()
1149 if (!soc || !soc->ops) { in cdp_vdev_config_for_nac_rssi()
1156 if (!soc->ops->mon_ops || in cdp_vdev_config_for_nac_rssi()
1157 !soc->ops->mon_ops->txrx_vdev_config_for_nac_rssi) in cdp_vdev_config_for_nac_rssi()
1160 return soc->ops->mon_ops->txrx_vdev_config_for_nac_rssi(soc, vdev_id, in cdp_vdev_config_for_nac_rssi()
1178 if (!soc || !soc->ops) { in cdp_vdev_get_neighbour_rssi()
1185 if (!soc->ops->mon_ops || in cdp_vdev_get_neighbour_rssi()
1186 !soc->ops->mon_ops->txrx_vdev_get_neighbour_rssi) in cdp_vdev_get_neighbour_rssi()
1189 return soc->ops->mon_ops->txrx_vdev_get_neighbour_rssi(soc, vdev_id, in cdp_vdev_get_neighbour_rssi()
1209 if (!soc || !soc->ops) { in cdp_set_rx_flow_tag()
1215 if (!soc->ops->ctrl_ops || in cdp_set_rx_flow_tag()
1216 !soc->ops->ctrl_ops->txrx_set_rx_flow_tag) in cdp_set_rx_flow_tag()
1219 return soc->ops->ctrl_ops->txrx_set_rx_flow_tag(soc, pdev_id, in cdp_set_rx_flow_tag()
1236 if (!soc || !soc->ops) { in cdp_dump_rx_flow_tag_stats()
1242 if (!soc->ops->ctrl_ops || in cdp_dump_rx_flow_tag_stats()
1243 !soc->ops->ctrl_ops->txrx_dump_rx_flow_tag_stats) in cdp_dump_rx_flow_tag_stats()
1246 return soc->ops->ctrl_ops->txrx_dump_rx_flow_tag_stats(soc, in cdp_dump_rx_flow_tag_stats()
1266 if (!soc || !soc->ops) { in cdp_txrx_peer_flush_frags()
1272 if (!soc->ops->ctrl_ops || in cdp_txrx_peer_flush_frags()
1273 !soc->ops->ctrl_ops->txrx_peer_flush_frags) in cdp_txrx_peer_flush_frags()
1276 return soc->ops->ctrl_ops->txrx_peer_flush_frags(soc, vdev_id, in cdp_txrx_peer_flush_frags()
1292 if (!soc || !soc->ops) { in cdp_set_delta_tsf()
1298 if (!soc->ops->ctrl_ops || in cdp_set_delta_tsf()
1299 !soc->ops->ctrl_ops->txrx_set_delta_tsf) in cdp_set_delta_tsf()
1302 soc->ops->ctrl_ops->txrx_set_delta_tsf(soc, vdev_id, delta_tsf); in cdp_set_delta_tsf()
1318 if (!soc || !soc->ops) { in cdp_set_tsf_ul_delay_report()
1324 if (!soc->ops->ctrl_ops || in cdp_set_tsf_ul_delay_report()
1325 !soc->ops->ctrl_ops->txrx_set_tsf_ul_delay_report) in cdp_set_tsf_ul_delay_report()
1328 return soc->ops->ctrl_ops->txrx_set_tsf_ul_delay_report(soc, vdev_id, in cdp_set_tsf_ul_delay_report()
1343 if (!soc || !soc->ops) { in cdp_get_uplink_delay()
1354 if (!soc->ops->ctrl_ops || in cdp_get_uplink_delay()
1355 !soc->ops->ctrl_ops->txrx_get_uplink_delay) in cdp_get_uplink_delay()
1358 return soc->ops->ctrl_ops->txrx_get_uplink_delay(soc, vdev_id, val); in cdp_get_uplink_delay()
1377 if (!soc || !soc->ops) { in cdp_txrx_set_pdev_phyrx_error_mask()
1383 if (!soc->ops->ctrl_ops || in cdp_txrx_set_pdev_phyrx_error_mask()
1384 !soc->ops->ctrl_ops->txrx_set_pdev_phyrx_error_mask) in cdp_txrx_set_pdev_phyrx_error_mask()
1387 return soc->ops->ctrl_ops->txrx_set_pdev_phyrx_error_mask in cdp_txrx_set_pdev_phyrx_error_mask()
1396 if (!soc || !soc->ops) { in cdp_txrx_get_pdev_phyrx_error_mask()
1402 if (!soc->ops->ctrl_ops || in cdp_txrx_get_pdev_phyrx_error_mask()
1403 !soc->ops->ctrl_ops->txrx_get_pdev_phyrx_error_mask) in cdp_txrx_get_pdev_phyrx_error_mask()
1406 return soc->ops->ctrl_ops->txrx_get_pdev_phyrx_error_mask in cdp_txrx_get_pdev_phyrx_error_mask()
1422 if (!soc || !soc->ops) { in cdp_get_umac_reset_in_progress_state()
1427 if (!soc->ops->ctrl_ops || in cdp_get_umac_reset_in_progress_state()
1428 !soc->ops->ctrl_ops->get_umac_reset_in_progress_state) in cdp_get_umac_reset_in_progress_state()
1431 return soc->ops->ctrl_ops->get_umac_reset_in_progress_state(soc); in cdp_get_umac_reset_in_progress_state()
1467 if (!soc || !soc->ops) { in cdp_txrx_fisa_config()
1473 if (!soc->ops->ctrl_ops || !soc->ops->ctrl_ops->txrx_fisa_config) in cdp_txrx_fisa_config()
1476 return soc->ops->ctrl_ops->txrx_fisa_config(soc, pdev_id, config_id, in cdp_txrx_fisa_config()