Home
last modified time | relevance | path

Searched refs:hal (Results 1 – 25 of 114) sorted by relevance

12345

/freebsd-14.2/sys/dev/wtap/wtap_hal/
H A Dhal.c51 hal->plugin->work(hal->plugin, p); in hal_tx_proc()
73 TASK_INIT(&hal->hal_md->tx_handler->proc, 0, hal_tx_proc, hal); in init_hal()
75 callout_init_mtx(&hal->hw.timer_intr, &hal->hal_mtx, 0); in init_hal()
84 hal->plugin = plugin; in register_plugin()
91 hal->plugin->deinit(hal->plugin); in deregister_plugin()
184 hal->hal_devs[id]->sc_md = hal->hal_md; in new_wtap()
186 hal->hal_devs[id]->hal = hal; in new_wtap()
187 snprintf(hal->hal_devs[id]->name, sizeof(hal->hal_devs[id]->name), in new_wtap()
235 hal->hw.tsf = 0; in wtap_hal_reset_tsf()
236 callout_reset(&hal->hw.timer_intr, hal->hw.timer_intr_intval, in wtap_hal_reset_tsf()
[all …]
/freebsd-14.2/sys/dev/etherswitch/mtkswitch/
H A Dmtkswitch_mt7620.c379 sc->hal.mtkswitch_write(sc, MTKSWITCH_VAWD2, 0); in mtkswitch_vlan_init_hw()
381 sc->hal.mtkswitch_write(sc, MTKSWITCH_VTCR, val); in mtkswitch_vlan_init_hw()
385 sc->hal.mtkswitch_vlan_set_pvid(sc, i, 1); in mtkswitch_vlan_init_hw()
411 v->es_vid = (sc->hal.mtkswitch_read(sc, in mtkswitch_vlan_getvgroup()
464 val = sc->hal.mtkswitch_read(sc, in mtkswitch_vlan_setvgroup()
541 sc->hal.mtkswitch_read = mtkswitch_reg_read32; in mtk_attach_switch_mt7620()
542 sc->hal.mtkswitch_write = mtkswitch_reg_write32; in mtk_attach_switch_mt7620()
545 sc->hal.mtkswitch_reset = mtkswitch_reset; in mtk_attach_switch_mt7620()
546 sc->hal.mtkswitch_hw_setup = mtkswitch_hw_setup; in mtk_attach_switch_mt7620()
558 sc->hal.mtkswitch_phy_read = mtkswitch_phy_read; in mtk_attach_switch_mt7620()
[all …]
H A Dmtkswitch_rt3050.c224 err = sc->hal.mtkswitch_vlan_set_pvid(sc, p->es_port, in mtkswitch_port_vlan_setup()
506 sc->hal.mtkswitch_reset = mtkswitch_reset; in mtk_attach_switch_rt3050()
507 sc->hal.mtkswitch_hw_setup = mtkswitch_hw_setup; in mtk_attach_switch_rt3050()
509 sc->hal.mtkswitch_port_init = mtkswitch_port_init; in mtk_attach_switch_rt3050()
511 sc->hal.mtkswitch_atu_flush = mtkswitch_atu_flush; in mtk_attach_switch_rt3050()
513 sc->hal.mtkswitch_port_vlan_get = mtkswitch_port_vlan_get; in mtk_attach_switch_rt3050()
514 sc->hal.mtkswitch_vlan_init_hw = mtkswitch_vlan_init_hw; in mtk_attach_switch_rt3050()
519 sc->hal.mtkswitch_phy_read = mtkswitch_phy_read; in mtk_attach_switch_rt3050()
520 sc->hal.mtkswitch_phy_write = mtkswitch_phy_write; in mtk_attach_switch_rt3050()
521 sc->hal.mtkswitch_reg_read = mtkswitch_reg_read; in mtk_attach_switch_rt3050()
[all …]
H A Dmtkswitch.c158 sc->hal.mtkswitch_vlan_init_hw(sc); in mtkswitch_set_vlan_mode()
202 if (sc->hal.mtkswitch_reset(sc)) { in mtkswitch_attach()
207 err = sc->hal.mtkswitch_hw_setup(sc); in mtkswitch_attach()
212 err = sc->hal.mtkswitch_hw_global_setup(sc); in mtkswitch_attach()
219 sc->hal.mtkswitch_port_init(sc, port); in mtkswitch_attach()
363 portstatus = sc->hal.mtkswitch_get_port_status(sc, in mtkswitch_miipollstat()
385 sc->hal.mtkswitch_atu_flush(sc); in mtkswitch_miipollstat()
442 err = sc->hal.mtkswitch_port_vlan_get(sc, p); in mtkswitch_getport()
487 err = sc->hal.mtkswitch_port_vlan_setup(sc, p); in mtkswitch_setport()
585 return (sc->hal.mtkswitch_vlan_setvgroup(sc, e)); in mtkswitch_setvgroup()
[all …]
/freebsd-14.2/sys/contrib/dev/rtw89/
H A Dchan.c111 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_assign_entity_chan() local
129 struct rtw89_hal *hal = &rtwdev->hal; in __rtw89_config_entity_chandef() local
134 set_bit(idx, hal->entity_map); in __rtw89_config_entity_chandef()
148 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_config_roc_chandef() local
160 hal->roc_chandef = *chandef; in rtw89_config_roc_chandef()
186 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_entity_init() local
195 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_entity_recalc() local
220 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_chanctx_ops_add() local
232 hal->sub[idx].cfg = cfg; in rtw89_chanctx_ops_add()
239 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_chanctx_ops_remove() local
[all …]
H A Dchan.h12 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_get_entity_state() local
14 return READ_ONCE(hal->entity_active); in rtw89_get_entity_state()
19 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_set_entity_state() local
21 WRITE_ONCE(hal->entity_active, active); in rtw89_set_entity_state()
27 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_get_entity_mode() local
29 return READ_ONCE(hal->entity_mode); in rtw89_get_entity_mode()
35 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_set_entity_mode() local
37 WRITE_ONCE(hal->entity_mode, mode); in rtw89_set_entity_mode()
H A Dmac80211.c276 rtwdev->hal.rx_fltr); in rtw89_ops_configure_filter()
282 rtwdev->hal.rx_fltr); in rtw89_ops_configure_filter()
769 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_ops_set_antenna() local
771 if (hal->ant_diversity) { in rtw89_ops_set_antenna()
779 hal->antenna_tx = tx_ant; in rtw89_ops_set_antenna()
780 hal->antenna_rx = rx_ant; in rtw89_ops_set_antenna()
781 hal->tx_path_diversity = false; in rtw89_ops_set_antenna()
782 hal->ant_diversity_fixed = true; in rtw89_ops_set_antenna()
792 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_ops_get_antenna() local
794 *tx_ant = hal->antenna_tx; in rtw89_ops_get_antenna()
[all …]
H A Defuse.c54 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_enable_efuse_pwr_cut_ddv() local
66 if (chip_id == RTL8852B && hal->cv == CHIP_CAV) in rtw89_enable_efuse_pwr_cut_ddv()
73 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_disable_efuse_pwr_cut_ddv() local
78 if (chip_id == RTL8852B && hal->cv == CHIP_CAV) in rtw89_disable_efuse_pwr_cut_ddv()
/freebsd-14.2/sys/contrib/dev/athk/ath11k/
H A Dhal.c198 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_alloc_cont_rdp() local
212 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_free_cont_rdp() local
220 hal->rdp.vaddr, hal->rdp.paddr); in ath11k_hal_free_cont_rdp()
226 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_alloc_cont_wrp() local
240 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_free_cont_wrp() local
248 hal->wrp.vaddr, hal->wrp.paddr); in ath11k_hal_free_cont_wrp()
273 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_srng_dst_hw_init() local
352 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_srng_src_hw_init() local
961 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_srng_setup() local
1087 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_srng_update_hp_tp_addr() local
[all …]
/freebsd-14.2/sys/contrib/dev/athk/ath12k/
H A Dhal.c521 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_srng_create_config_qcn9274() local
961 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_srng_create_config_wcn7850() local
1181 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_alloc_cont_rdp() local
1195 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_free_cont_rdp() local
1209 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_alloc_cont_wrp() local
1223 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_free_cont_wrp() local
1256 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_srng_dst_hw_init() local
1332 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_srng_src_hw_init() local
1899 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_srng_setup() local
2021 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_srng_update_hp_tp_addr() local
[all …]
/freebsd-14.2/sys/dev/wtap/
H A Dif_wtap_module.c92 static struct wtap_hal *hal; variable
115 if(new_wtap(hal, *(int *)data)) in wtap_ioctl()
119 if(free_wtap(hal, *(int *)data)) in wtap_ioctl()
142 hal = (struct wtap_hal *)malloc(sizeof(struct wtap_hal), in event_handler()
145 init_hal(hal); in event_handler()
151 plugin->base.wp_hal = hal; in event_handler()
155 register_plugin(hal, (struct wtap_plugin *)plugin); in event_handler()
161 deregister_plugin(hal); in event_handler()
162 deinit_hal(hal); in event_handler()
163 free(hal, M_WTAP); in event_handler()
/freebsd-14.2/sys/contrib/dev/rtw88/
H A Dphy.c230 struct rtw_hal *hal = &rtwdev->hal; in rtw_phy_dig_write() local
897 struct rtw_hal *hal = &rtwdev->hal; in rtw_phy_read_rf() local
920 struct rtw_hal *hal = &rtwdev->hal; in rtw_phy_read_rf_sipi() local
969 struct rtw_hal *hal = &rtwdev->hal; in rtw_phy_write_rf_reg_sipi() local
1009 struct rtw_hal *hal = &rtwdev->hal; in rtw_phy_write_rf_reg() local
1042 struct rtw_hal *hal = &rtwdev->hal; in rtw_phy_setup_phy_cond() local
1071 struct rtw_hal *hal = &rtwdev->hal; in check_positive() local
1452 struct rtw_hal *hal = &rtwdev->hal; in rtw_phy_store_tx_power_by_rate() local
1532 struct rtw_hal *hal = &rtwdev->hal; in rtw_phy_set_tx_power_limit() local
1567 struct rtw_hal *hal = &rtwdev->hal; in rtw_xref_5g_txpwr_lmt() local
[all …]
H A Dsar.c11 const struct rtw_hal *hal = &rtwdev->hal; in rtw_query_sar() local
12 const struct rtw_sar *sar = &hal->sar; in rtw_query_sar()
27 struct rtw_hal *hal = &rtwdev->hal; in rtw_apply_sar() local
28 struct rtw_sar *sar = &hal->sar; in rtw_apply_sar()
36 rtw_phy_set_tx_power_level(rtwdev, hal->current_channel); in rtw_apply_sar()
44 struct rtw_hal *hal = &rtwdev->hal; in rtw_sar_to_phy() local
52 hal->tx_pwr_by_rate_base_2g[arg->path][arg->rs] : in rtw_sar_to_phy()
53 hal->tx_pwr_by_rate_base_5g[arg->path][arg->rs]; in rtw_sar_to_phy()
H A Dmain.c738 struct rtw_hal *hal = &rtwdev->hal; in rtw_update_channel() local
869 struct rtw_hal *hal = &rtwdev->hal; in rtw_set_channel() local
981 struct rtw_hal *hal = &rtwdev->hal; in rtw_hw_config_rf_ant_num() local
992 hal->rf_phy_num = hal->rf_path_num; in rtw_hw_config_rf_ant_num()
1167 struct rtw_hal *hal = &rtwdev->hal; in rtw_rate_mask_cfg() local
1212 struct rtw_hal *hal = &rtwdev->hal; in rtw_update_sta_info() local
1716 struct rtw_hal *hal = &rtwdev->hal; in rtw_set_txrx_1ss() local
1843 struct rtw_hal *hal = &rtwdev->hal; in rtw_chip_parameter_setup() local
1865 hal->cut_version = BIT_GET_CHIP_VER(hal->chip_version); in rtw_chip_parameter_setup()
2043 struct rtw_hal *hal = &rtwdev->hal; in rtw_chip_board_info_setup() local
[all …]
H A Drtw8822b.c153 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_phy_set_param() local
291 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_set_channel_rfe_efem() local
309 } else if (hal->antenna_rx == hal->antenna_tx) { in rtw8822b_set_channel_rfe_efem()
320 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_set_channel_rfe_ifem() local
423 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_set_channel_cca() local
512 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_set_channel_rf() local
576 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_toggle_igi() local
587 hal->antenna_rx | (hal->antenna_rx << 4)); in rtw8822b_toggle_igi()
980 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_set_tx_power_index_by_rate() local
1002 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_set_tx_power_index() local
[all …]
H A Dmac80211.c296 rtwdev->hal.rcr |= BIT_AM | BIT_AB; in rtw_ops_configure_filter()
298 rtwdev->hal.rcr &= ~(BIT_AM | BIT_AB); in rtw_ops_configure_filter()
302 rtwdev->hal.rcr |= BIT_ACRC32; in rtw_ops_configure_filter()
304 rtwdev->hal.rcr &= ~(BIT_ACRC32); in rtw_ops_configure_filter()
308 rtwdev->hal.rcr |= BIT_AAP; in rtw_ops_configure_filter()
310 rtwdev->hal.rcr &= ~(BIT_AAP); in rtw_ops_configure_filter()
316 rtwdev->hal.rcr |= BIT_CBSSID_BCN; in rtw_ops_configure_filter()
667 struct rtw_hal *hal = &rtwdev->hal; in rtw_ops_can_aggregate_in_amsdu() local
822 struct rtw_hal *hal = &rtwdev->hal; in rtw_ops_get_antenna() local
824 *tx_antenna = hal->antenna_tx; in rtw_ops_get_antenna()
[all …]
H A Drtw8821c.c50 struct rtw_hal *hal = &rtwdev->hal; in rtw8821c_read_efuse() local
83 hal->rfe_btg = true; in rtw8821c_read_efuse()
160 struct rtw_hal *hal = &rtwdev->hal; in rtw8821c_phy_set_param() local
312 struct rtw_hal *hal = &rtwdev->hal; in rtw8821c_set_channel_rf() local
344 if (hal->rfe_btg) in rtw8821c_set_channel_rf()
387 struct rtw_hal *hal = &rtwdev->hal; in rtw8821c_set_channel_bb() local
404 hal->ch_param[0]); in rtw8821c_set_channel_bb()
406 hal->ch_param[1] & MASKLWORD); in rtw8821c_set_channel_bb()
408 hal->ch_param[2]); in rtw8821c_set_channel_bb()
659 struct rtw_hal *hal = &rtwdev->hal; in rtw8821c_set_tx_power_index_by_rate() local
[all …]
/freebsd-14.2/sys/dev/etherswitch/arswitch/
H A Darswitch.c226 sc->hal.arswitch_vlan_init_hw(sc); in arswitch_set_vlan_mode()
528 sc->hal.arswitch_port_init = ar8xxx_port_init; in arswitch_attach()
548 sc->hal.arswitch_atu_flush = ar8xxx_atu_flush; in arswitch_attach()
604 err = sc->hal.arswitch_hw_setup(sc); in arswitch_attach()
611 err = sc->hal.arswitch_hw_global_setup(sc); in arswitch_attach()
622 err = sc->hal.arswitch_atu_learn_default(sc); in arswitch_attach()
631 sc->hal.arswitch_port_init(sc, port); in arswitch_attach()
831 sc->hal.arswitch_atu_flush(sc); in arswitch_miipollstat()
915 err = sc->hal.arswitch_port_vlan_get(sc, p); in arswitch_getport()
1164 err = sc->hal.arswitch_atu_flush(sc); in arswitch_atu_flush_all()
[all …]
H A Darswitch_8327.c953 sc->hal.arswitch_vlan_set_pvid(sc, i, sc->vid[0]); in ar8327_reset_vlans()
1269 sc->hal.arswitch_hw_setup = ar8327_hw_setup; in ar8327_attach()
1272 sc->hal.arswitch_port_init = ar8327_port_init; in ar8327_attach()
1277 sc->hal.arswitch_port_vlan_get = ar8327_port_vlan_get; in ar8327_attach()
1283 sc->hal.arswitch_vlan_init_hw = ar8327_reset_vlans; in ar8327_attach()
1284 sc->hal.arswitch_vlan_get_pvid = ar8327_get_pvid; in ar8327_attach()
1285 sc->hal.arswitch_vlan_set_pvid = ar8327_set_pvid; in ar8327_attach()
1287 sc->hal.arswitch_get_port_vlan = ar8327_vlan_get_port; in ar8327_attach()
1288 sc->hal.arswitch_set_port_vlan = ar8327_vlan_set_port; in ar8327_attach()
1291 sc->hal.arswitch_atu_flush = ar8327_atu_flush; in ar8327_attach()
[all …]
H A Darswitch_vlans.c197 if (sc->hal.arswitch_flush_dot1q_vlan(sc)) { in ar8xxx_reset_vlans()
224 sc->hal.arswitch_vlan_set_pvid(sc, i, sc->vid[0]); in ar8xxx_reset_vlans()
228 sc->hal.arswitch_set_dot1q_vlan(sc, ports, sc->vid[0], sc->vid[0]); in ar8xxx_reset_vlans()
291 err = sc->hal.arswitch_get_dot1q_vlan(sc, &vg->es_member_ports, in ar8xxx_getvgroup()
296 err = sc->hal.arswitch_get_port_vlan(sc, &vg->es_member_ports, in ar8xxx_getvgroup()
331 err = sc->hal.arswitch_purge_dot1q_vlan(sc, vid); in ar8xxx_setvgroup()
353 err = sc->hal.arswitch_set_dot1q_vlan(sc, vg->es_member_ports, in ar8xxx_setvgroup()
357 err = sc->hal.arswitch_set_port_vlan(sc, vg->es_member_ports, vid); in ar8xxx_setvgroup()
H A Darswitch_8226.c90 sc->hal.arswitch_hw_setup = ar8226_hw_setup; in ar8226_attach()
91 sc->hal.arswitch_hw_global_setup = ar8226_hw_global_setup; in ar8226_attach()
H A Darswitch_8216.c90 sc->hal.arswitch_hw_setup = ar8216_hw_setup; in ar8216_attach()
91 sc->hal.arswitch_hw_global_setup = ar8216_hw_global_setup; in ar8216_attach()
/freebsd-14.2/sys/dev/wtap/plugins/
H A Dvisibility.c124 struct wtap_hal *hal = (struct wtap_hal *)vis_plugin->base.wp_hal; in visibility_work() local
147 if(hal->hal_devs[k] != NULL in visibility_work()
148 && hal->hal_devs[k]->up == 1){ in visibility_work()
150 hal->hal_devs[k]; in visibility_work()
206 struct wtap_hal *hal = vis_plugin->base.wp_hal; in vis_ioctl() local
216 medium_close(hal->hal_md); in vis_ioctl()
218 medium_open(hal->hal_md); in vis_ioctl()
/freebsd-14.2/sys/dev/etherswitch/ip17x/
H A Dip175d.c210 sc->hal.ip17x_reset = ip175d_reset; in ip175d_attach()
211 sc->hal.ip17x_hw_setup = ip175d_hw_setup; in ip175d_attach()
212 sc->hal.ip17x_get_vlan_mode = ip175d_get_vlan_mode; in ip175d_attach()
213 sc->hal.ip17x_set_vlan_mode = ip175d_set_vlan_mode; in ip175d_attach()
H A Dip175c.c245 sc->hal.ip17x_reset = ip175c_reset; in ip175c_attach()
246 sc->hal.ip17x_hw_setup = ip175c_hw_setup; in ip175c_attach()
247 sc->hal.ip17x_get_vlan_mode = ip175c_get_vlan_mode; in ip175c_attach()
248 sc->hal.ip17x_set_vlan_mode = ip175c_set_vlan_mode; in ip175c_attach()

12345