Searched refs:hal (Results 1 - 25 of 64) sorted by relevance

123

/freebsd-13-stable/sys/dev/wtap/wtap_hal/
H A Dhal.c33 #include "hal.h"
40 struct wtap_hal *hal = (struct wtap_hal *)arg; local
47 hal = (struct wtap_hal *)arg;
49 p = medium_get_next_packet(hal->hal_md);
53 hal->plugin->work(hal->plugin, p);
64 init_hal(struct wtap_hal *hal) argument
68 mtx_init(&hal->hal_mtx, "wtap_hal mtx", NULL, MTX_DEF | MTX_RECURSE);
70 hal->hal_md = (struct wtap_medium *)malloc(sizeof(struct wtap_medium),
72 bzero(hal
80 register_plugin(struct wtap_hal *hal, struct wtap_plugin *plugin) argument
88 deregister_plugin(struct wtap_hal *hal) argument
96 deinit_hal(struct wtap_hal *hal) argument
106 new_wtap(struct wtap_hal *hal, int32_t id) argument
201 free_wtap(struct wtap_hal *hal, int32_t id) argument
[all...]
/freebsd-13-stable/sys/dev/etherswitch/mtkswitch/
H A Dmtkswitch_mt7620.c166 val = sc->hal.mtkswitch_read(sc, MTKSWITCH_REG32(reg));
178 tmp = sc->hal.mtkswitch_read(sc, MTKSWITCH_REG32(reg));
186 sc->hal.mtkswitch_write(sc, MTKSWITCH_REG32(reg), tmp);
229 val = sc->hal.mtkswitch_read(sc, MTKSWITCH_PCR(port));
231 sc->hal.mtkswitch_write(sc, MTKSWITCH_PCR(port), val);
234 val = sc->hal.mtkswitch_read(sc, MTKSWITCH_PVC(port));
236 sc->hal.mtkswitch_write(sc, MTKSWITCH_PVC(port), val);
243 sc->hal.mtkswitch_write(sc, MTKSWITCH_PMCR(port), val);
253 val = sc->hal.mtkswitch_read(sc, MTKSWITCH_PMSR(port));
281 while (sc->hal
[all...]
H A Dmtkswitch_rt3050.c226 err = sc->hal.mtkswitch_vlan_set_pvid(sc, p->es_port,
272 sc->hal.mtkswitch_vlan_get_pvid(sc, p->es_port, &p->es_pvid);
508 sc->hal.mtkswitch_reset = mtkswitch_reset;
509 sc->hal.mtkswitch_hw_setup = mtkswitch_hw_setup;
510 sc->hal.mtkswitch_hw_global_setup = mtkswitch_hw_global_setup;
511 sc->hal.mtkswitch_port_init = mtkswitch_port_init;
512 sc->hal.mtkswitch_get_port_status = mtkswitch_get_port_status;
513 sc->hal.mtkswitch_atu_flush = mtkswitch_atu_flush;
514 sc->hal.mtkswitch_port_vlan_setup = mtkswitch_port_vlan_setup;
515 sc->hal
[all...]
H A Dmtkswitch.c166 sc->hal.mtkswitch_vlan_init_hw(sc);
210 if (sc->hal.mtkswitch_reset(sc)) {
215 err = sc->hal.mtkswitch_hw_setup(sc);
220 err = sc->hal.mtkswitch_hw_global_setup(sc);
227 sc->hal.mtkswitch_port_init(sc, port);
371 portstatus = sc->hal.mtkswitch_get_port_status(sc,
393 sc->hal.mtkswitch_atu_flush(sc);
450 err = sc->hal.mtkswitch_port_vlan_get(sc, p);
495 err = sc->hal.mtkswitch_port_vlan_setup(sc, p);
585 return (sc->hal
[all...]
/freebsd-13-stable/sys/dev/wtap/
H A Dif_wtap_module.c83 #include "wtap_hal/hal.h"
94 static struct wtap_hal *hal; variable in typeref:struct:wtap_hal
117 if(new_wtap(hal, *(int *)data))
121 if(free_wtap(hal, *(int *)data))
144 hal = (struct wtap_hal *)malloc(sizeof(struct wtap_hal),
146 bzero(hal, sizeof(struct wtap_hal));
148 init_hal(hal);
154 plugin->base.wp_hal = hal;
158 register_plugin(hal, (struct wtap_plugin *)plugin);
164 deregister_plugin(hal);
[all...]
/freebsd-13-stable/sys/mips/nlm/
H A Duart_cpu_xlp.c61 #include <mips/nlm/hal/haldefs.h>
62 #include <mips/nlm/hal/iomap.h>
63 #include <mips/nlm/hal/mips-extns.h>
64 #include <mips/nlm/hal/uart.h>
H A Dboard_cpld.c37 #include <mips/nlm/hal/mips-extns.h>
38 #include <mips/nlm/hal/haldefs.h>
39 #include <mips/nlm/hal/iomap.h>
40 #include <mips/nlm/hal/gbu.h>
H A Dusb_init.c39 #include <mips/nlm/hal/haldefs.h>
40 #include <mips/nlm/hal/iomap.h>
41 #include <mips/nlm/hal/usb.h>
H A Dboard_eeprom.c42 #include <mips/nlm/hal/haldefs.h>
43 #include <mips/nlm/hal/iomap.h>
44 #include <mips/nlm/hal/mips-extns.h> /* needed by board.h */
H A Dxlp.h36 #include <mips/nlm/hal/mips-extns.h>
37 #include <mips/nlm/hal/iomap.h>
H A Dxlp_machdep.c80 #include <mips/nlm/hal/mips-extns.h>
81 #include <mips/nlm/hal/haldefs.h>
82 #include <mips/nlm/hal/iomap.h>
83 #include <mips/nlm/hal/sys.h>
84 #include <mips/nlm/hal/pic.h>
85 #include <mips/nlm/hal/uart.h>
86 #include <mips/nlm/hal/mmu.h>
87 #include <mips/nlm/hal/bridge.h>
88 #include <mips/nlm/hal/cpucontrol.h>
89 #include <mips/nlm/hal/cop
[all...]
H A Dboard.c43 #include <mips/nlm/hal/mips-extns.h>
44 #include <mips/nlm/hal/haldefs.h>
45 #include <mips/nlm/hal/iomap.h>
46 #include <mips/nlm/hal/fmn.h>
47 #include <mips/nlm/hal/pic.h>
48 #include <mips/nlm/hal/sys.h>
49 #include <mips/nlm/hal/nae.h>
50 #include <mips/nlm/hal/uart.h>
51 #include <mips/nlm/hal/poe.h>
/freebsd-13-stable/sys/mips/nlm/hal/
H A Dnlm_hal.c38 #include <mips/nlm/hal/mips-extns.h>
39 #include <mips/nlm/hal/haldefs.h>
40 #include <mips/nlm/hal/iomap.h>
41 #include <mips/nlm/hal/sys.h>
/freebsd-13-stable/sys/mips/nlm/dev/net/
H A Dsgmii.c36 #include <mips/nlm/hal/mips-extns.h>
37 #include <mips/nlm/hal/haldefs.h>
38 #include <mips/nlm/hal/iomap.h>
39 #include <mips/nlm/hal/sys.h>
40 #include <mips/nlm/hal/nae.h>
41 #include <mips/nlm/hal/mdio.h>
42 #include <mips/nlm/hal/sgmii.h>
H A Dxaui.c36 #include <mips/nlm/hal/mips-extns.h>
37 #include <mips/nlm/hal/haldefs.h>
38 #include <mips/nlm/hal/iomap.h>
39 #include <mips/nlm/hal/sys.h>
40 #include <mips/nlm/hal/nae.h>
41 #include <mips/nlm/hal/mdio.h>
42 #include <mips/nlm/hal/sgmii.h>
43 #include <mips/nlm/hal/xaui.h>
H A Dmdio.c36 #include <mips/nlm/hal/mips-extns.h>
37 #include <mips/nlm/hal/haldefs.h>
38 #include <mips/nlm/hal/iomap.h>
39 #include <mips/nlm/hal/sys.h>
40 #include <mips/nlm/hal/nae.h>
41 #include <mips/nlm/hal/mdio.h>
/freebsd-13-stable/sys/modules/wtap/
H A DMakefile12 SRCS += hal.c
/freebsd-13-stable/sys/dev/etherswitch/arswitch/
H A Darswitch_8216.c92 sc->hal.arswitch_hw_setup = ar8216_hw_setup;
93 sc->hal.arswitch_hw_global_setup = ar8216_hw_global_setup;
H A Darswitch_8226.c92 sc->hal.arswitch_hw_setup = ar8226_hw_setup;
93 sc->hal.arswitch_hw_global_setup = ar8226_hw_global_setup;
H A Darswitch.c259 sc->hal.arswitch_vlan_init_hw(sc);
561 sc->hal.arswitch_port_init = ar8xxx_port_init;
562 sc->hal.arswitch_port_vlan_setup = ar8xxx_port_vlan_setup;
563 sc->hal.arswitch_port_vlan_get = ar8xxx_port_vlan_get;
564 sc->hal.arswitch_vlan_init_hw = ar8xxx_reset_vlans;
565 sc->hal.arswitch_hw_get_switch_macaddr = ar8xxx_hw_get_switch_macaddr;
566 sc->hal.arswitch_hw_set_switch_macaddr = ar8xxx_hw_set_switch_macaddr;
568 sc->hal.arswitch_vlan_getvgroup = ar8xxx_getvgroup;
569 sc->hal.arswitch_vlan_setvgroup = ar8xxx_setvgroup;
571 sc->hal
[all...]
H A Darswitch_8327.c818 sc->hal.arswitch_vlan_set_pvid(sc, p->es_port, p->es_pvid);
839 sc->hal.arswitch_vlan_get_pvid(sc, p->es_port, &p->es_pvid);
955 sc->hal.arswitch_vlan_set_pvid(sc, i, sc->vid[0]);
958 sc->hal.arswitch_set_dot1q_vlan(sc, ports, ports, sc->vid[0]);
1271 sc->hal.arswitch_hw_setup = ar8327_hw_setup;
1272 sc->hal.arswitch_hw_global_setup = ar8327_hw_global_setup;
1274 sc->hal.arswitch_port_init = ar8327_port_init;
1276 sc->hal.arswitch_vlan_getvgroup = ar8327_vlan_getvgroup;
1277 sc->hal.arswitch_vlan_setvgroup = ar8327_vlan_setvgroup;
1278 sc->hal
[all...]
H A Darswitch_vlans.c199 if (sc->hal.arswitch_flush_dot1q_vlan(sc)) {
226 sc->hal.arswitch_vlan_set_pvid(sc, i, sc->vid[0]);
230 sc->hal.arswitch_set_dot1q_vlan(sc, ports, sc->vid[0], sc->vid[0]);
293 err = sc->hal.arswitch_get_dot1q_vlan(sc, &vg->es_member_ports,
298 err = sc->hal.arswitch_get_port_vlan(sc, &vg->es_member_ports,
333 err = sc->hal.arswitch_purge_dot1q_vlan(sc, vid);
355 err = sc->hal.arswitch_set_dot1q_vlan(sc, vg->es_member_ports,
359 err = sc->hal.arswitch_set_port_vlan(sc, vg->es_member_ports, vid);
H A Darswitch_9340.c220 sc->hal.arswitch_hw_setup = ar9340_hw_setup;
221 sc->hal.arswitch_hw_global_setup = ar9340_hw_global_setup;
222 sc->hal.arswitch_atu_learn_default = ar9340_atu_learn_default;
/freebsd-13-stable/sys/dev/wtap/plugins/
H A Dvisibility.c126 struct wtap_hal *hal = (struct wtap_hal *)vis_plugin->base.wp_hal; local
149 if(hal->hal_devs[k] != NULL
150 && hal->hal_devs[k]->up == 1){
152 hal->hal_devs[k];
208 struct wtap_hal *hal = vis_plugin->base.wp_hal; local
218 medium_close(hal->hal_md);
220 medium_open(hal->hal_md);
/freebsd-13-stable/sys/dev/etherswitch/ip17x/
H A Dip175d.c212 sc->hal.ip17x_reset = ip175d_reset;
213 sc->hal.ip17x_hw_setup = ip175d_hw_setup;
214 sc->hal.ip17x_get_vlan_mode = ip175d_get_vlan_mode;
215 sc->hal.ip17x_set_vlan_mode = ip175d_set_vlan_mode;

Completed in 136 milliseconds

123