Searched refs:vid (Results 1 - 25 of 102) sorted by relevance

12345

/freebsd-11.0-release/contrib/wpa/src/ap/
H A Dvlan_util.h12 int vlan_add(const char *if_name, int vid, const char *vlan_if_name);
H A Dvlan_util.c25 * Add a vlan interface with name 'vlan_if_name', VLAN ID 'vid' and
32 int vlan_add(const char *if_name, int vid, const char *vlan_if_name) argument
40 wpa_printf(MSG_DEBUG, "VLAN: vlan_add(if_name=%s, vid=%d, "
41 "vlan_if_name=%s)", if_name, vid, vlan_if_name);
109 err = rtnl_link_vlan_set_id(rlink, vid);
120 vlan_if_name, vid, if_name, if_idx,
/freebsd-11.0-release/sys/dev/etherswitch/arswitch/
H A Darswitch_vlans.h39 int ar8xxx_purge_dot1q_vlan(struct arswitch_softc *sc, int vid);
41 uint32_t *untagged_ports, int vid);
43 uint32_t untagged_ports, int vid);
44 int ar8xxx_get_port_vlan(struct arswitch_softc *sc, uint32_t *ports, int vid);
45 int ar8xxx_set_port_vlan(struct arswitch_softc *sc, uint32_t ports, int vid);
H A Darswitch_vlans.c58 ar8xxx_vlan_op(struct arswitch_softc *sc, uint32_t op, uint32_t vid, argument
75 if (vid != 0)
76 op |= ((vid & ETHERSWITCH_VID_MASK) << AR8X16_VLAN_VID_SHIFT);
97 ar8xxx_purge_dot1q_vlan(struct arswitch_softc *sc, int vid) argument
101 return (ar8xxx_vlan_op(sc, AR8X16_VLAN_OP_PURGE, vid, 0));
106 uint32_t *untagged_ports, int vid)
112 err = ar8xxx_vlan_op(sc, AR8X16_VLAN_OP_GET, vid, 0);
129 uint32_t untagged_ports, int vid)
134 err = ar8xxx_vlan_op(sc, AR8X16_VLAN_OP_LOAD, vid, ports);
141 ar8xxx_get_port_vlan(struct arswitch_softc *sc, uint32_t *ports, int vid) argument
105 ar8xxx_get_dot1q_vlan(struct arswitch_softc *sc, uint32_t *ports, uint32_t *untagged_ports, int vid) argument
128 ar8xxx_set_dot1q_vlan(struct arswitch_softc *sc, uint32_t ports, uint32_t untagged_ports, int vid) argument
156 ar8xxx_set_port_vlan(struct arswitch_softc *sc, uint32_t ports, int vid) argument
313 int err, vid; local
[all...]
H A Darswitchvar.h73 int vid[AR8X16_MAX_VLANS]; member in struct:arswitch_softc
104 int vid);
106 uint32_t *ports, uint32_t *untagged_ports, int vid);
108 uint32_t ports, uint32_t untagged_ports, int vid);
110 uint32_t *ports, int vid);
112 uint32_t ports, int vid);
H A Darswitch_8327.c79 ar8327_vlan_op(struct arswitch_softc *sc, uint32_t op, uint32_t vid, argument
104 op |= ((vid & 0xfff) << AR8327_VTU_FUNC1_VID_S);
834 memset(sc->vid, 0, sizeof(sc->vid));
864 sc->vid[i] = i | ETHERSWITCH_VID_VALID;
909 sc->vid[0] = 1;
912 sc->hal.arswitch_vlan_set_pvid(sc, i, sc->vid[0]);
915 sc->hal.arswitch_set_dot1q_vlan(sc, ports, ports, sc->vid[0]);
916 sc->vid[0] |= ETHERSWITCH_VID_VALID;
923 ar8327_vlan_get_port(struct arswitch_softc *sc, uint32_t *ports, int vid) argument
938 ar8327_vlan_set_port(struct arswitch_softc *sc, uint32_t ports, int vid) argument
1034 ar8327_purge_dot1q_vlan(struct arswitch_softc *sc, int vid) argument
1041 ar8327_get_dot1q_vlan(struct arswitch_softc *sc, uint32_t *ports, uint32_t *untagged_ports, int vid) argument
1082 ar8327_set_dot1q_vlan(struct arswitch_softc *sc, uint32_t ports, uint32_t untagged_ports, int vid) argument
[all...]
/freebsd-11.0-release/sys/dev/syscons/rain/
H A Drain_saver.c60 static u_char *vid; variable
92 vid = (u_char *)adp->va_window;
99 bzero(vid, bpsl * scrh - i);
101 bzero(vid, banksize);
110 vid[p] = 1 + (random() % MAX);
120 temp = (vid[p] < MAX) ? 1 + vid[p] : 1;
122 vid[p + bpsl] = temp;
125 vid[p + bpsl - banksize] = temp;
/freebsd-11.0-release/tools/tools/usbtest/
H A Dusb_control_ep_test.c78 usb_control_ep_error_test(uint16_t vid, uint16_t pid) argument
89 pdev = find_usb_device(vid, pid);
164 usb_get_string_desc_test(uint16_t vid, uint16_t pid) argument
173 pdev = find_usb_device(vid, pid);
193 "VID=0x%04x PID=0x%04x\n", vid, pid);
239 usb_port_reset_test(uint16_t vid, uint16_t pid, uint32_t duration) argument
255 pdev = find_usb_device(vid, pid);
309 usb_set_config_test(uint16_t vid, uint16_t pid, uint32_t duration) argument
318 pdev = find_usb_device(vid, pid);
332 "VID=0x%04x PID=0x%04x\n", vid, pi
368 usb_get_descriptor_test(uint16_t vid, uint16_t pid, uint32_t duration) argument
381 usb_suspend_resume_test(uint16_t vid, uint16_t pid, uint32_t duration) argument
471 usb_set_and_clear_stall_test(uint16_t vid, uint16_t pid) argument
607 usb_set_alt_interface_test(uint16_t vid, uint16_t pid) argument
[all...]
/freebsd-11.0-release/sys/dev/syscons/logo/
H A Dlogo_saver.c57 static u_char *vid; variable
73 bcopy(logo_img + d, vid + p, logo_w);
77 bcopy(logo_img + d, vid + p, l);
79 bcopy(logo_img + d + l, vid, logo_w - l);
84 bcopy(logo_img + d, vid + p, logo_w);
121 vid = (u_char *)adp->va_window;
/freebsd-11.0-release/sys/netgraph/
H A Dng_vlan.h67 uint16_t vlan; /* VLAN - same as vid, oldname, deprecated. */
69 uint16_t vid; /* VID - VLAN Identifier. */ member in struct:ng_vlan_filter
79 { "vid", &ng_parse_uint16_type }, \
87 { "vid", &ng_parse_uint16_type }, \
H A Dng_vlan.c262 uint16_t vid; local
279 if (vf->vid == 0 && vf->vid != vf->vlan) {
280 vf->vid = vf->vlan;
281 } else if (vf->vid != 0 && vf->vlan != 0 &&
282 vf->vid != vf->vlan) {
287 if (vf->vid & ~EVL_VLID_MASK ||
311 if (priv->vlan_hook[vf->vid] != NULL) {
318 EVL_MAKETAG(vf->vid, vf->pcp, vf->cfi)));
319 priv->vlan_hook[vf->vid]
375 vid)); local
521 uint16_t vid, eth_vtag; local
[all...]
/freebsd-11.0-release/contrib/binutils/binutils/
H A Dwindmc.h56 rc_uint_type vid; member in struct:mc_node_lang
69 rc_uint_type vid; member in struct:mc_node
H A Dwindmc.c328 mc_add_node_lang (mc_node *root, const mc_keyword *lang, rc_uint_type vid) argument
337 ret->vid = vid;
349 if (h->vid > vid)
351 if (h->vid == vid)
352 fatal ("double defined message id %ld.\n", (long) vid);
396 write_header_define (FILE *fp, const unichar *sym_name, rc_uint_type vid, const unichar *typecast, mc_node_lang *nl) argument
406 fprintf (fp, "//\n// MessageId: 0x%lu\n//\n", (unsigned long) vid);
[all...]
H A Dmcparse.y62 %type<ival> id vid sefasy_def
184 cur_node->vid = ($1 & 0xffffUL) | mc_sefa_val;
190 id: MCMESSAGEID '=' vid { $$ = $3; }
195 vid: /* empty */ label
270 h = mc_add_node_lang (cur_node, $1, cur_node->vid);
/freebsd-11.0-release/sys/dev/syscons/fire/
H A Dfire_saver.c62 static u_char *vid; variable
99 bcopy(buf + y * scrw, vid + p, scrw);
101 bcopy(buf + y * scrw, vid + p, banksize - p);
103 bcopy(buf + y * scrw + (banksize - p), vid,
124 vid = (u_char *)adp->va_window;
/freebsd-11.0-release/sys/x86/cpufreq/
H A Dpowernow.c148 #define WRITE_FIDVID(fid, vid, ctrl) \
150 (((ctrl) << 32) | (1ULL << 16) | ((vid) << 8) | (fid)))
213 int vid; member in struct:powernow_state
277 pn7_setfidvid(struct pn_softc *sc, int fid, int vid) argument
287 if (fid == cfid && vid == cvid)
293 ctl |= PN7_CTR_VID(vid);
301 if (vid != cvid)
328 pn8_write_fidvid(u_int fid, u_int vid, uint64_t ctrl, uint64_t *status) argument
333 WRITE_FIDVID(fid, vid, ctrl);
340 pn8_setfidvid(struct pn_softc *sc, int fid, int vid) argument
445 int fid, vid; local
607 int vid = sc->powernow_states[i].vid; local
[all...]
/freebsd-11.0-release/sys/dev/syscons/dragon/
H A Ddragon_saver.c47 static u_char *vid; variable
76 vid[(x + y * SCRW) >> 3] = (0x80 >> (x & 7)); /* write new dot */
78 vid[x + y * SCRW] = val;
211 vid = (u_char *)adp->va_window;
/freebsd-11.0-release/sys/dev/syscons/warp/
H A Dwarp_saver.c53 static u_char *vid; variable
81 vid[p] = 0;
92 vid[p] = i;
110 vid = (u_char *)adp->va_window;
/freebsd-11.0-release/share/examples/libusb20/
H A Dbulk.c158 unsigned int vid = UINT_MAX, pid = UINT_MAX; /* impossible VID:PID */ local
177 vid = strtol(optarg, NULL, 0);
187 if (vid != UINT_MAX || pid != UINT_MAX)
237 if (ddp->idVendor == vid && ddp->idProduct == pid)
/freebsd-11.0-release/sys/dev/if_ndis/
H A Dif_ndis_pci.c116 uint16_t vid, did; local
122 vid = pci_get_vendor(dev);
128 if ((t->ndis_vid == vid) && (t->ndis_did == did) &&
181 uint16_t vid, did; local
314 vid = pci_get_vendor(dev);
322 if (t->ndis_vid == vid && t->ndis_did == did) {
/freebsd-11.0-release/sys/dev/bwi/
H A Dif_bwi_pci.c84 uint16_t vid; member in struct:bwi_dev
107 uint16_t did, vid; local
110 vid = pci_get_vendor(dev);
113 if (b->did == did && b->vid == vid) {
/freebsd-11.0-release/sys/net/
H A Dif_vlan.c208 uint16_t vid);
390 vlan_gethash(struct ifvlantrunk *trunk, uint16_t vid) argument
396 LIST_FOREACH(ifv, &trunk->hash[HASH(vid, trunk->hmask)], ifv_list)
397 if (ifv->ifv_vid == vid)
421 vlan_gethash(struct ifvlantrunk *trunk, uint16_t vid) argument
424 return trunk->vlans[vid];
698 vlan_devat(struct ifnet *ifp, uint16_t vid) argument
709 ifv = vlan_gethash(trunk, vid);
839 int vid; local
850 vid
886 int vid; local
1141 uint16_t vid, tag; local
1232 vlan_config(struct ifvlan *ifv, struct ifnet *p, uint16_t vid) argument
[all...]
/freebsd-11.0-release/sys/dev/etherswitch/mtkswitch/
H A Dmtkswitch_rt3050.c294 uint32_t val, vid; local
316 vid = 0;
317 val = MTKSWITCH_READ(sc, MTKSWITCH_VMSC(vid));
318 val &= ~(VMSC_MASK << VMSC_OFF(vid));
319 val |= (((1<<sc->numports)-1) << VMSC_OFF(vid));
320 MTKSWITCH_WRITE(sc, MTKSWITCH_VMSC(vid), val);
322 val = MTKSWITCH_READ(sc, MTKSWITCH_VUB(vid));
323 val &= ~(VUB_MASK << VUB_OFF(vid));
324 val |= (((1<<sc->numports)-1) << VUB_OFF(vid));
325 MTKSWITCH_WRITE(sc, MTKSWITCH_VUB(vid), va
[all...]
/freebsd-11.0-release/usr.sbin/usbconfig/
H A Dusbconfig.c55 uint16_t vid; member in struct:options
163 uint16_t vid, uint16_t pid, uint16_t lorev, uint16_t hirev,
171 q.vid = vid;
186 uint16_t vid, uint16_t pid, uint16_t lorev, uint16_t hirev,
194 q.vid = vid;
278 " add_dev_quirk_vplh <vid> <pid> <lo_rev> <hi_rev> <quirk>" "\n"
279 " remove_dev_quirk_vplh <vid> <pid> <lo_rev> <hi_rev> <quirk>" "\n"
343 opt->vid, op
162 be_dev_remove_quirk(struct libusb20_backend *pbe, uint16_t vid, uint16_t pid, uint16_t lorev, uint16_t hirev, const char *str) argument
185 be_dev_add_quirk(struct libusb20_backend *pbe, uint16_t vid, uint16_t pid, uint16_t lorev, uint16_t hirev, const char *str) argument
[all...]
/freebsd-11.0-release/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_flow_table.c444 enum mlx5e_vlan_rule_type rule_type, u16 vid)
487 ft_ix = &priv->vlan.active_vlans_ft_ix[vid];
493 vid);
511 enum mlx5e_vlan_rule_type rule_type, u16 vid)
524 priv->vlan.active_vlans_ft_ix[vid]);
553 mlx5e_vlan_rx_add_vid(void *arg, struct ifnet *ifp, u16 vid) argument
561 set_bit(vid, priv->vlan.active_vlans);
563 mlx5e_add_vlan_rule(priv, MLX5E_VLAN_RULE_TYPE_MATCH_VID, vid);
568 mlx5e_vlan_rx_kill_vid(void *arg, struct ifnet *ifp, u16 vid) argument
576 clear_bit(vid, pri
443 mlx5e_add_vlan_rule(struct mlx5e_priv *priv, enum mlx5e_vlan_rule_type rule_type, u16 vid) argument
510 mlx5e_del_vlan_rule(struct mlx5e_priv *priv, enum mlx5e_vlan_rule_type rule_type, u16 vid) argument
585 u16 vid; local
611 u16 vid; local
[all...]

Completed in 136 milliseconds

12345