Home
last modified time | relevance | path

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

123

/freebsd-13.1/sys/dev/wtap/wtap_hal/
H A Dhal.c53 hal->plugin->work(hal->plugin, p); in hal_tx_proc()
74 init_medium(hal->hal_md); in init_hal()
76 TASK_INIT(&hal->hal_md->tx_handler->proc, 0, hal_tx_proc, hal); in init_hal()
84 hal->plugin = plugin; in register_plugin()
91 hal->plugin->deinit(hal->plugin); in deregister_plugin()
100 deinit_medium(hal->hal_md); in deinit_hal()
101 free(hal->hal_md, M_WTAP); in deinit_hal()
102 mtx_destroy(&hal->hal_mtx); in deinit_hal()
185 hal->hal_devs[id]->sc_md = hal->hal_md; in new_wtap()
187 snprintf(hal->hal_devs[id]->name, sizeof(hal->hal_devs[id]->name), in new_wtap()
[all …]
/freebsd-13.1/sys/dev/etherswitch/mtkswitch/
H A Dmtkswitch_mt7620.c381 sc->hal.mtkswitch_write(sc, MTKSWITCH_VAWD2, 0); in mtkswitch_vlan_init_hw()
383 sc->hal.mtkswitch_write(sc, MTKSWITCH_VTCR, val); in mtkswitch_vlan_init_hw()
387 sc->hal.mtkswitch_vlan_set_pvid(sc, i, 1); in mtkswitch_vlan_init_hw()
413 v->es_vid = (sc->hal.mtkswitch_read(sc, in mtkswitch_vlan_getvgroup()
466 val = sc->hal.mtkswitch_read(sc, in mtkswitch_vlan_setvgroup()
543 sc->hal.mtkswitch_read = mtkswitch_reg_read32; in mtk_attach_switch_mt7620()
544 sc->hal.mtkswitch_write = mtkswitch_reg_write32; in mtk_attach_switch_mt7620()
547 sc->hal.mtkswitch_reset = mtkswitch_reset; in mtk_attach_switch_mt7620()
548 sc->hal.mtkswitch_hw_setup = mtkswitch_hw_setup; in mtk_attach_switch_mt7620()
560 sc->hal.mtkswitch_phy_read = mtkswitch_phy_read; in mtk_attach_switch_mt7620()
[all …]
H A Dmtkswitch_rt3050.c226 err = sc->hal.mtkswitch_vlan_set_pvid(sc, p->es_port, in mtkswitch_port_vlan_setup()
508 sc->hal.mtkswitch_reset = mtkswitch_reset; in mtk_attach_switch_rt3050()
509 sc->hal.mtkswitch_hw_setup = mtkswitch_hw_setup; in mtk_attach_switch_rt3050()
511 sc->hal.mtkswitch_port_init = mtkswitch_port_init; in mtk_attach_switch_rt3050()
513 sc->hal.mtkswitch_atu_flush = mtkswitch_atu_flush; in mtk_attach_switch_rt3050()
515 sc->hal.mtkswitch_port_vlan_get = mtkswitch_port_vlan_get; in mtk_attach_switch_rt3050()
516 sc->hal.mtkswitch_vlan_init_hw = mtkswitch_vlan_init_hw; in mtk_attach_switch_rt3050()
521 sc->hal.mtkswitch_phy_read = mtkswitch_phy_read; in mtk_attach_switch_rt3050()
522 sc->hal.mtkswitch_phy_write = mtkswitch_phy_write; in mtk_attach_switch_rt3050()
523 sc->hal.mtkswitch_reg_read = mtkswitch_reg_read; in mtk_attach_switch_rt3050()
[all …]
H A Dmtkswitch.c166 sc->hal.mtkswitch_vlan_init_hw(sc); in mtkswitch_set_vlan_mode()
210 if (sc->hal.mtkswitch_reset(sc)) { in mtkswitch_attach()
215 err = sc->hal.mtkswitch_hw_setup(sc); in mtkswitch_attach()
220 err = sc->hal.mtkswitch_hw_global_setup(sc); in mtkswitch_attach()
227 sc->hal.mtkswitch_port_init(sc, port); in mtkswitch_attach()
371 portstatus = sc->hal.mtkswitch_get_port_status(sc, in mtkswitch_miipollstat()
393 sc->hal.mtkswitch_atu_flush(sc); in mtkswitch_miipollstat()
450 err = sc->hal.mtkswitch_port_vlan_get(sc, p); in mtkswitch_getport()
495 err = sc->hal.mtkswitch_port_vlan_setup(sc, p); in mtkswitch_setport()
593 return (sc->hal.mtkswitch_vlan_setvgroup(sc, e)); in mtkswitch_setvgroup()
[all …]
H A Dmtkswitchvar.h118 } hal; member
/freebsd-13.1/sys/dev/wtap/
H A Dif_wtap_module.c94 static struct wtap_hal *hal; variable
117 if(new_wtap(hal, *(int *)data)) in wtap_ioctl()
121 if(free_wtap(hal, *(int *)data)) in wtap_ioctl()
144 hal = (struct wtap_hal *)malloc(sizeof(struct wtap_hal), in event_handler()
146 bzero(hal, sizeof(struct wtap_hal)); in event_handler()
148 init_hal(hal); in event_handler()
154 plugin->base.wp_hal = hal; in event_handler()
158 register_plugin(hal, (struct wtap_plugin *)plugin); in event_handler()
164 deregister_plugin(hal); in event_handler()
165 deinit_hal(hal); in event_handler()
[all …]
/freebsd-13.1/sys/dev/etherswitch/arswitch/
H A Darswitch.c259 sc->hal.arswitch_vlan_init_hw(sc); in arswitch_set_vlan_mode()
561 sc->hal.arswitch_port_init = ar8xxx_port_init; in arswitch_attach()
581 sc->hal.arswitch_atu_flush = ar8xxx_atu_flush; in arswitch_attach()
641 err = sc->hal.arswitch_hw_setup(sc); in arswitch_attach()
648 err = sc->hal.arswitch_hw_global_setup(sc); in arswitch_attach()
659 err = sc->hal.arswitch_atu_learn_default(sc); in arswitch_attach()
668 sc->hal.arswitch_port_init(sc, port); in arswitch_attach()
868 sc->hal.arswitch_atu_flush(sc); in arswitch_miipollstat()
952 err = sc->hal.arswitch_port_vlan_get(sc, p); in arswitch_getport()
1201 err = sc->hal.arswitch_atu_flush(sc); in arswitch_atu_flush_all()
[all …]
H A Darswitch_8327.c955 sc->hal.arswitch_vlan_set_pvid(sc, i, sc->vid[0]); in ar8327_reset_vlans()
1271 sc->hal.arswitch_hw_setup = ar8327_hw_setup; in ar8327_attach()
1274 sc->hal.arswitch_port_init = ar8327_port_init; in ar8327_attach()
1279 sc->hal.arswitch_port_vlan_get = ar8327_port_vlan_get; in ar8327_attach()
1285 sc->hal.arswitch_vlan_init_hw = ar8327_reset_vlans; in ar8327_attach()
1286 sc->hal.arswitch_vlan_get_pvid = ar8327_get_pvid; in ar8327_attach()
1287 sc->hal.arswitch_vlan_set_pvid = ar8327_set_pvid; in ar8327_attach()
1289 sc->hal.arswitch_get_port_vlan = ar8327_vlan_get_port; in ar8327_attach()
1290 sc->hal.arswitch_set_port_vlan = ar8327_vlan_set_port; in ar8327_attach()
1293 sc->hal.arswitch_atu_flush = ar8327_atu_flush; in ar8327_attach()
[all …]
H A Darswitch_vlans.c199 if (sc->hal.arswitch_flush_dot1q_vlan(sc)) { in ar8xxx_reset_vlans()
226 sc->hal.arswitch_vlan_set_pvid(sc, i, sc->vid[0]); in ar8xxx_reset_vlans()
230 sc->hal.arswitch_set_dot1q_vlan(sc, ports, sc->vid[0], sc->vid[0]); in ar8xxx_reset_vlans()
293 err = sc->hal.arswitch_get_dot1q_vlan(sc, &vg->es_member_ports, in ar8xxx_getvgroup()
298 err = sc->hal.arswitch_get_port_vlan(sc, &vg->es_member_ports, in ar8xxx_getvgroup()
333 err = sc->hal.arswitch_purge_dot1q_vlan(sc, vid); in ar8xxx_setvgroup()
355 err = sc->hal.arswitch_set_dot1q_vlan(sc, vg->es_member_ports, in ar8xxx_setvgroup()
359 err = sc->hal.arswitch_set_port_vlan(sc, vg->es_member_ports, vid); in ar8xxx_setvgroup()
H A Darswitch_8226.c92 sc->hal.arswitch_hw_setup = ar8226_hw_setup; in ar8226_attach()
93 sc->hal.arswitch_hw_global_setup = ar8226_hw_global_setup; in ar8226_attach()
H A Darswitch_8216.c92 sc->hal.arswitch_hw_setup = ar8216_hw_setup; in ar8216_attach()
93 sc->hal.arswitch_hw_global_setup = ar8216_hw_global_setup; in ar8216_attach()
H A Darswitch_9340.c220 sc->hal.arswitch_hw_setup = ar9340_hw_setup; in ar9340_attach()
221 sc->hal.arswitch_hw_global_setup = ar9340_hw_global_setup; in ar9340_attach()
222 sc->hal.arswitch_atu_learn_default = ar9340_atu_learn_default; in ar9340_attach()
H A Darswitch_7240.c140 sc->hal.arswitch_hw_setup = ar7240_hw_setup; in ar7240_attach()
141 sc->hal.arswitch_hw_global_setup = ar7240_hw_global_setup; in ar7240_attach()
H A Darswitch_8316.c166 sc->hal.arswitch_hw_setup = ar8316_hw_setup; in ar8316_attach()
167 sc->hal.arswitch_hw_global_setup = ar8316_hw_global_setup; in ar8316_attach()
H A Darswitchvar.h147 } hal; member
/freebsd-13.1/sys/dev/wtap/plugins/
H A Dvisibility.c126 struct wtap_hal *hal = (struct wtap_hal *)vis_plugin->base.wp_hal; in visibility_work() local
149 if(hal->hal_devs[k] != NULL in visibility_work()
150 && hal->hal_devs[k]->up == 1){ in visibility_work()
152 hal->hal_devs[k]; in visibility_work()
208 struct wtap_hal *hal = vis_plugin->base.wp_hal; in vis_ioctl() local
218 medium_close(hal->hal_md); in vis_ioctl()
220 medium_open(hal->hal_md); in vis_ioctl()
/freebsd-13.1/sys/dev/etherswitch/ip17x/
H A Dip175d.c212 sc->hal.ip17x_reset = ip175d_reset; in ip175d_attach()
213 sc->hal.ip17x_hw_setup = ip175d_hw_setup; in ip175d_attach()
214 sc->hal.ip17x_get_vlan_mode = ip175d_get_vlan_mode; in ip175d_attach()
215 sc->hal.ip17x_set_vlan_mode = ip175d_set_vlan_mode; in ip175d_attach()
H A Dip175c.c247 sc->hal.ip17x_reset = ip175c_reset; in ip175c_attach()
248 sc->hal.ip17x_hw_setup = ip175c_hw_setup; in ip175c_attach()
249 sc->hal.ip17x_get_vlan_mode = ip175c_get_vlan_mode; in ip175c_attach()
250 sc->hal.ip17x_set_vlan_mode = ip175c_set_vlan_mode; in ip175c_attach()
H A Dip17x.c253 sc->hal.ip17x_reset(sc); in ip17x_attach()
266 sc->hal.ip17x_set_vlan_mode(sc, ETHERSWITCH_VLAN_PORT); in ip17x_attach()
310 sc->hal.ip17x_reset(sc); in ip17x_detach()
504 if (sc->hal.ip17x_hw_setup(sc)) in ip17x_setport()
591 conf->vlan_mode = sc->hal.ip17x_get_vlan_mode(sc); in ip17x_getconf()
605 sc->hal.ip17x_set_vlan_mode(sc, conf->vlan_mode); in ip17x_setconf()
H A Dip17x_vlans.c174 return (sc->hal.ip17x_hw_setup(sc)); in ip17x_setvgroup()
188 return (sc->hal.ip17x_hw_setup(sc)); in ip17x_setvgroup()
H A Dip17x_var.h76 } hal; member
/freebsd-13.1/sys/mips/nlm/
H A Dfiles.xlp2 mips/nlm/hal/nlm_hal.c standard
3 mips/nlm/hal/fmn.c standard
/freebsd-13.1/sys/modules/wtap/
H A DMakefile12 SRCS += hal.c
/freebsd-13.1/sys/contrib/dev/ath/ath_hal/ar9300/
H A Deeprom.diff16 diff --git a/hal/ar9300/ar9300_eeprom.c b/hal/ar9300/ar9300_eeprom.c
18 --- a/hal/ar9300/ar9300_eeprom.c
19 +++ b/hal/ar9300/ar9300_eeprom.c
/freebsd-13.1/sys/conf/
H A Dfiles.arm155 …compile-with "${CC} -c -o ${.TARGET} ${CFLAGS} -I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth…

123