Home
last modified time | relevance | path

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

123

/freebsd-12-stable/sys/dev/wtap/wtap_hal/
Dhal.c40 struct wtap_hal *hal = (struct wtap_hal *)arg; in hal_tx_proc() local
47 hal = (struct wtap_hal *)arg; in hal_tx_proc()
49 p = medium_get_next_packet(hal->hal_md); in hal_tx_proc()
53 hal->plugin->work(hal->plugin, p); in hal_tx_proc()
64 init_hal(struct wtap_hal *hal) in init_hal() argument
68 mtx_init(&hal->hal_mtx, "wtap_hal mtx", NULL, MTX_DEF | MTX_RECURSE); in init_hal()
70 hal->hal_md = (struct wtap_medium *)malloc(sizeof(struct wtap_medium), in init_hal()
72 bzero(hal->hal_md, sizeof(struct wtap_medium)); in init_hal()
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()
[all …]
/freebsd-12-stable/sys/dev/etherswitch/mtkswitch/
Dmtkswitch_mt7620.c166 val = sc->hal.mtkswitch_read(sc, MTKSWITCH_REG32(reg)); in mtkswitch_reg_read()
178 tmp = sc->hal.mtkswitch_read(sc, MTKSWITCH_REG32(reg)); in mtkswitch_reg_write()
186 sc->hal.mtkswitch_write(sc, MTKSWITCH_REG32(reg), tmp); in mtkswitch_reg_write()
229 val = sc->hal.mtkswitch_read(sc, MTKSWITCH_PCR(port)); in mtkswitch_port_init()
231 sc->hal.mtkswitch_write(sc, MTKSWITCH_PCR(port), val); in mtkswitch_port_init()
234 val = sc->hal.mtkswitch_read(sc, MTKSWITCH_PVC(port)); in mtkswitch_port_init()
236 sc->hal.mtkswitch_write(sc, MTKSWITCH_PVC(port), val); in mtkswitch_port_init()
243 sc->hal.mtkswitch_write(sc, MTKSWITCH_PMCR(port), val); in mtkswitch_port_init()
253 val = sc->hal.mtkswitch_read(sc, MTKSWITCH_PMSR(port)); in mtkswitch_get_port_status()
281 while (sc->hal.mtkswitch_read(sc, MTKSWITCH_ATC) & ATC_BUSY); in mtkswitch_atu_flush()
[all …]
Dmtkswitch_rt3050.c226 err = sc->hal.mtkswitch_vlan_set_pvid(sc, p->es_port, in mtkswitch_port_vlan_setup()
272 sc->hal.mtkswitch_vlan_get_pvid(sc, p->es_port, &p->es_pvid); in mtkswitch_port_vlan_get()
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()
510 sc->hal.mtkswitch_hw_global_setup = mtkswitch_hw_global_setup; in mtk_attach_switch_rt3050()
511 sc->hal.mtkswitch_port_init = mtkswitch_port_init; in mtk_attach_switch_rt3050()
512 sc->hal.mtkswitch_get_port_status = mtkswitch_get_port_status; in mtk_attach_switch_rt3050()
513 sc->hal.mtkswitch_atu_flush = mtkswitch_atu_flush; in mtk_attach_switch_rt3050()
514 sc->hal.mtkswitch_port_vlan_setup = mtkswitch_port_vlan_setup; in mtk_attach_switch_rt3050()
515 sc->hal.mtkswitch_port_vlan_get = mtkswitch_port_vlan_get; in mtk_attach_switch_rt3050()
[all …]
Dmtkswitch.c165 sc->hal.mtkswitch_vlan_init_hw(sc); in mtkswitch_set_vlan_mode()
209 if (sc->hal.mtkswitch_reset(sc)) { in mtkswitch_attach()
214 err = sc->hal.mtkswitch_hw_setup(sc); in mtkswitch_attach()
219 err = sc->hal.mtkswitch_hw_global_setup(sc); in mtkswitch_attach()
226 sc->hal.mtkswitch_port_init(sc, port); in mtkswitch_attach()
370 portstatus = sc->hal.mtkswitch_get_port_status(sc, in mtkswitch_miipollstat()
392 sc->hal.mtkswitch_atu_flush(sc); in mtkswitch_miipollstat()
449 err = sc->hal.mtkswitch_port_vlan_get(sc, p); in mtkswitch_getport()
494 err = sc->hal.mtkswitch_port_vlan_setup(sc, p); in mtkswitch_setport()
584 return (sc->hal.mtkswitch_vlan_getvgroup(sc, e)); in mtkswitch_getvgroup()
[all …]
Dmtkswitchvar.h118 } hal; member
/freebsd-12-stable/sys/dev/wtap/
Dif_wtap_module.c96 static struct wtap_hal *hal; variable
119 if(new_wtap(hal, *(int *)data)) in wtap_ioctl()
123 if(free_wtap(hal, *(int *)data)) in wtap_ioctl()
147 hal = (struct wtap_hal *)malloc(sizeof(struct wtap_hal), in event_handler()
149 bzero(hal, sizeof(struct wtap_hal)); in event_handler()
151 init_hal(hal); in event_handler()
157 plugin->base.wp_hal = hal; in event_handler()
161 register_plugin(hal, (struct wtap_plugin *)plugin); in event_handler()
167 deregister_plugin(hal); in event_handler()
168 deinit_hal(hal); in event_handler()
[all …]
/freebsd-12-stable/sys/dev/etherswitch/arswitch/
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()
562 sc->hal.arswitch_port_vlan_setup = ar8xxx_port_vlan_setup; in arswitch_attach()
563 sc->hal.arswitch_port_vlan_get = ar8xxx_port_vlan_get; in arswitch_attach()
564 sc->hal.arswitch_vlan_init_hw = ar8xxx_reset_vlans; in arswitch_attach()
565 sc->hal.arswitch_hw_get_switch_macaddr = ar8xxx_hw_get_switch_macaddr; in arswitch_attach()
566 sc->hal.arswitch_hw_set_switch_macaddr = ar8xxx_hw_set_switch_macaddr; in arswitch_attach()
568 sc->hal.arswitch_vlan_getvgroup = ar8xxx_getvgroup; in arswitch_attach()
569 sc->hal.arswitch_vlan_setvgroup = ar8xxx_setvgroup; in arswitch_attach()
571 sc->hal.arswitch_vlan_get_pvid = ar8xxx_get_pvid; in arswitch_attach()
[all …]
Darswitch_8327.c818 sc->hal.arswitch_vlan_set_pvid(sc, p->es_port, p->es_pvid); in ar8327_port_vlan_setup()
839 sc->hal.arswitch_vlan_get_pvid(sc, p->es_port, &p->es_pvid); in ar8327_port_vlan_get()
955 sc->hal.arswitch_vlan_set_pvid(sc, i, sc->vid[0]); in ar8327_reset_vlans()
958 sc->hal.arswitch_set_dot1q_vlan(sc, ports, ports, sc->vid[0]); in ar8327_reset_vlans()
1271 sc->hal.arswitch_hw_setup = ar8327_hw_setup; in ar8327_attach()
1272 sc->hal.arswitch_hw_global_setup = ar8327_hw_global_setup; in ar8327_attach()
1274 sc->hal.arswitch_port_init = ar8327_port_init; in ar8327_attach()
1276 sc->hal.arswitch_vlan_getvgroup = ar8327_vlan_getvgroup; in ar8327_attach()
1277 sc->hal.arswitch_vlan_setvgroup = ar8327_vlan_setvgroup; in ar8327_attach()
1278 sc->hal.arswitch_port_vlan_setup = ar8327_port_vlan_setup; in ar8327_attach()
[all …]
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()
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()
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()
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()
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()
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()
Darswitchvar.h147 } hal; member
/freebsd-12-stable/sys/dev/wtap/plugins/
Dvisibility.c127 struct wtap_hal *hal = (struct wtap_hal *)vis_plugin->base.wp_hal; in visibility_work() local
150 if(hal->hal_devs[k] != NULL in visibility_work()
151 && hal->hal_devs[k]->up == 1){ in visibility_work()
153 hal->hal_devs[k]; in visibility_work()
210 struct wtap_hal *hal = vis_plugin->base.wp_hal; in vis_ioctl() local
220 medium_close(hal->hal_md); in vis_ioctl()
222 medium_open(hal->hal_md); in vis_ioctl()
/freebsd-12-stable/sys/dev/etherswitch/ip17x/
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()
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()
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()
Dip17x_vlans.c174 return (sc->hal.ip17x_hw_setup(sc)); in ip17x_setvgroup()
188 return (sc->hal.ip17x_hw_setup(sc)); in ip17x_setvgroup()
Dip17x_var.h76 } hal; member
/freebsd-12-stable/sys/mips/nlm/
Dfiles.xlp2 mips/nlm/hal/nlm_hal.c standard
3 mips/nlm/hal/fmn.c standard
/freebsd-12-stable/sys/contrib/dev/ath/ath_hal/ar9300/
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-12-stable/sys/modules/wtap/
DMakefile12 SRCS += hal.c
/freebsd-12-stable/libexec/bootpd/
Dreadfile.c1766 unsigned hal; local
1769 hal = haddrlength(htype); /* Get length of this address type */
1770 if (hal <= 0) {
1788 while (hap < haddr + hal) {

123