Home
last modified time | relevance | path

Searched full:vid (Results 1 – 25 of 259) sorted by relevance

1234567891011

/freebsd/sys/dev/etherswitch/arswitch/
H A Darswitch_vlans.c58 ar8xxx_vlan_op(struct arswitch_softc *sc, uint32_t op, uint32_t vid, in ar8xxx_vlan_op() argument
75 if (vid != 0) in ar8xxx_vlan_op()
76 op |= ((vid & ETHERSWITCH_VID_MASK) << AR8X16_VLAN_VID_SHIFT); in ar8xxx_vlan_op()
97 ar8xxx_purge_dot1q_vlan(struct arswitch_softc *sc, int vid) in ar8xxx_purge_dot1q_vlan() argument
101 return (ar8xxx_vlan_op(sc, AR8X16_VLAN_OP_PURGE, vid, 0)); in ar8xxx_purge_dot1q_vlan()
106 uint32_t *untagged_ports, int vid) in ar8xxx_get_dot1q_vlan() argument
112 err = ar8xxx_vlan_op(sc, AR8X16_VLAN_OP_GET, vid, 0); in ar8xxx_get_dot1q_vlan()
129 uint32_t untagged_ports, int vid) in ar8xxx_set_dot1q_vlan() argument
134 err = ar8xxx_vlan_op(sc, AR8X16_VLAN_OP_LOAD, vid, ports); in ar8xxx_set_dot1q_vlan()
141 ar8xxx_get_port_vlan(struct arswitch_softc *sc, uint32_t *ports, int vid) in ar8xxx_get_port_vlan() argument
[all …]
H A Darswitch_8327.c109 ar8327_vlan_op(struct arswitch_softc *sc, uint32_t op, uint32_t vid, in ar8327_vlan_op() argument
132 * Set the VID. in ar8327_vlan_op()
134 op |= ((vid & 0xfff) << AR8327_VTU_FUNC1_VID_S); in ar8327_vlan_op()
875 memset(sc->vid, 0, sizeof(sc->vid)); in ar8327_reset_vlans()
905 sc->vid[i] = i | ETHERSWITCH_VID_VALID; in ar8327_reset_vlans()
950 sc->vid[0] = 1; in ar8327_reset_vlans()
953 sc->hal.arswitch_vlan_set_pvid(sc, i, sc->vid[0]); in ar8327_reset_vlans()
956 sc->hal.arswitch_set_dot1q_vlan(sc, ports, ports, sc->vid[0]); in ar8327_reset_vlans()
957 sc->vid[0] |= ETHERSWITCH_VID_VALID; in ar8327_reset_vlans()
964 ar8327_vlan_get_port(struct arswitch_softc *sc, uint32_t *ports, int vid) in ar8327_vlan_get_port() argument
[all …]
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 Darswitchvar.h82 int vid[AR8X16_MAX_VLANS]; member
129 int vid);
131 uint32_t *ports, uint32_t *untagged_ports, int vid);
133 uint32_t ports, uint32_t untagged_ports, int vid);
135 uint32_t *ports, int vid);
137 uint32_t ports, int vid);
/freebsd/sys/netgraph/
H A Dng_vlan.c260 uint16_t vid; in ng_vlan_rcvmsg() local
277 if (vf->vid == 0 && vf->vid != vf->vlan) { in ng_vlan_rcvmsg()
278 vf->vid = vf->vlan; in ng_vlan_rcvmsg()
279 } else if (vf->vid != 0 && vf->vlan != 0 && in ng_vlan_rcvmsg()
280 vf->vid != vf->vlan) { in ng_vlan_rcvmsg()
285 if (vf->vid & ~EVL_VLID_MASK || in ng_vlan_rcvmsg()
309 if (priv->vlan_hook[vf->vid] != NULL) { in ng_vlan_rcvmsg()
316 EVL_MAKETAG(vf->vid, vf->pcp, vf->cfi))); in ng_vlan_rcvmsg()
317 priv->vlan_hook[vf->vid] = hook; in ng_vlan_rcvmsg()
338 ("%s: NGM_VLAN_DEL_FILTER: Invalid VID for Hook = %s\n", in ng_vlan_rcvmsg()
[all …]
H A Dng_vlan.h67 uint16_t vlan; /* VLAN - same as vid, oldname, deprecated. */
69 uint16_t vid; /* VID - VLAN Identifier. */ member
79 { "vid", &ng_parse_uint16_type }, \
87 { "vid", &ng_parse_uint16_type }, \
/freebsd/contrib/wpa/src/ap/
H A Dvlan_ioctl.c55 Add a vlan interface with VLAN ID 'vid' and tagged interface
62 int vlan_add(const char *if_name, int vid, const char *vlan_if_name) in vlan_add() argument
67 wpa_printf(MSG_DEBUG, "VLAN: vlan_add(if_name=%s, vid=%d)", in vlan_add()
68 if_name, vid); in vlan_add()
88 vid); in vlan_add()
93 if_request.u.VID == vid) { in vlan_add()
111 if_request.u.VID = vid; in vlan_add()
H A Dvlan_util.c17 * Add a vlan interface with name 'vlan_if_name', VLAN ID 'vid' and
24 int vlan_add(const char *if_name, int vid, const char *vlan_if_name) in vlan_add() argument
31 wpa_printf(MSG_DEBUG, "VLAN: vlan_add(if_name=%s, vid=%d, " in vlan_add()
32 "vlan_if_name=%s)", if_name, vid, vlan_if_name); in vlan_add()
97 err = rtnl_link_vlan_set_id(rlink, vid); in vlan_add()
108 vlan_if_name, vid, if_name, if_idx, in vlan_add()
H A Dvlan_full.c388 const char *br_name, int vid, in vlan_newlink_tagged() argument
397 tagged_interface, vid); in vlan_newlink_tagged()
400 vid); in vlan_newlink_tagged()
408 if (!vlan_add(tagged_interface, vid, vlan_ifname)) in vlan_newlink_tagged()
421 struct hostapd_vlan *vlan, int vid) in vlan_bridge_name() argument
431 hapd->conf->vlan_bridge, vid); in vlan_bridge_name()
434 tagged_interface, vid); in vlan_bridge_name()
436 ret = os_snprintf(br_name, IFNAMSIZ, "brvlan%d", vid); in vlan_bridge_name()
446 int vid) in vlan_get_bridge() argument
457 vid, hapd); in vlan_get_bridge()
[all …]
/freebsd/sys/x86/cpufreq/
H A Dpowernow.c146 #define WRITE_FIDVID(fid, vid, ctrl) \ argument
148 (((ctrl) << 32) | (1ULL << 16) | ((vid) << 8) | (fid)))
210 int vid; member
272 pn7_setfidvid(struct pn_softc *sc, int fid, int vid) in pn7_setfidvid() argument
282 if (fid == cfid && vid == cvid) in pn7_setfidvid()
288 ctl |= PN7_CTR_VID(vid); in pn7_setfidvid()
296 if (vid != cvid) in pn7_setfidvid()
323 pn8_write_fidvid(u_int fid, u_int vid, uint64_t ctrl, uint64_t *status) in pn8_write_fidvid() argument
328 WRITE_FIDVID(fid, vid, ctrl); in pn8_write_fidvid()
335 pn8_setfidvid(struct pn_softc *sc, int fid, int vid) in pn8_setfidvid() argument
[all …]
H A Dest.c118 * Dothan processors have multiple VID#s with different settings for
119 * each VID#. Since we can't uniquely identify this info
218 /* 90 nm 2.10GHz Pentium M, VID #A */
229 /* 90 nm 2.10GHz Pentium M, VID #B */
240 /* 90 nm 2.10GHz Pentium M, VID #C */
251 /* 90 nm 2.10GHz Pentium M, VID #E */
262 /* 90 nm 2.00GHz Pentium M, VID #A */
273 /* 90 nm 2.00GHz Pentium M, VID #B */
284 /* 90 nm 2.00GHz Pentium M, VID #C */
295 /* 90 nm 2.00GHz Pentium M, VID #D */
[all …]
/freebsd/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_data_sprom_subr.c56 size_t vid);
164 state->vid = 0; in bhnd_sprom_opcode_reset()
195 if (l->vid < r->vid) in bhnd_sprom_opcode_sort_idx()
197 if (l->vid > r->vid) in bhnd_sprom_opcode_sort_idx()
210 size_t vid; in bhnd_nvram_opcode_idx_vid_compare() local
212 vid = *(const size_t *)key; in bhnd_nvram_opcode_idx_vid_compare()
215 if (vid < entry->vid) in bhnd_nvram_opcode_idx_vid_compare()
217 if (vid > entry->vid) in bhnd_nvram_opcode_idx_vid_compare()
237 size_t vid; in bhnd_sprom_opcode_index_find() local
243 vid = bhnd_nvram_get_vardefn_id(var); in bhnd_sprom_opcode_index_find()
[all …]
/freebsd/sys/dev/syscons/rain/
H A Drain_saver.c60 static u_char *vid; variable
92 vid = (u_char *)adp->va_window; in rain_saver()
99 bzero(vid, bpsl * scrh - i); in rain_saver()
101 bzero(vid, banksize); in rain_saver()
110 vid[p] = 1 + (random() % MAX); in rain_saver()
120 temp = (vid[p] < MAX) ? 1 + vid[p] : 1; in rain_saver()
122 vid[p + bpsl] = temp; in rain_saver()
125 vid[p + bpsl - banksize] = temp; in rain_saver()
/freebsd/sys/dev/etherswitch/ar40xx/
H A Dar40xx_hw_vtu.c108 ar40xx_hw_vtu_load_vlan(struct ar40xx_softc *sc, uint32_t vid, in ar40xx_hw_vtu_load_vlan() argument
116 "%s: called; vid=%d port_mask=0x%08x, untagged_mask=0x%08x\n", in ar40xx_hw_vtu_load_vlan()
117 __func__, vid, port_mask, untagged_mask); in ar40xx_hw_vtu_load_vlan()
119 op = AR40XX_VTU_FUNC1_OP_LOAD | (vid << AR40XX_VTU_FUNC1_VID_S); in ar40xx_hw_vtu_load_vlan()
159 ar40xx_hw_vtu_get_vlan(struct ar40xx_softc *sc, int vid, uint32_t *ports, in ar40xx_hw_vtu_get_vlan() argument
167 /* Filter out any etherswitch VID flags; only grab the VLAN ID */ in ar40xx_hw_vtu_get_vlan()
168 vid &= ETHERSWITCH_VID_MASK; in ar40xx_hw_vtu_get_vlan()
171 op |= (vid << AR40XX_VTU_FUNC1_VID_S); in ar40xx_hw_vtu_get_vlan()
174 device_printf(sc->sc_dev, "%s: %d: op failed\n", __func__, vid); in ar40xx_hw_vtu_get_vlan()
H A Dar40xx_main.c672 int vid, ret; in ar40xx_getvgroup() local
692 vid = sc->sc_vlan.vlan_id[vg->es_vlangroup]; in ar40xx_getvgroup()
693 if ((vid & ETHERSWITCH_VID_VALID) == 0) { in ar40xx_getvgroup()
698 vg->es_vid = vid; in ar40xx_getvgroup()
700 ret = ar40xx_hw_vtu_get_vlan(sc, vid, &vg->es_member_ports, in ar40xx_getvgroup()
721 int err, vid; in ar40xx_setvgroup() local
728 vid = sc->sc_vlan.vlan_id[vg->es_vlangroup]; in ar40xx_setvgroup()
730 * If we have an 802.1q VID and it's different to the current one, in ar40xx_setvgroup()
733 if ((vid != 0) && in ar40xx_setvgroup()
734 ((vid & ETHERSWITCH_VID_VALID) != 0) && in ar40xx_setvgroup()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/usb/
H A Dusb-device.txt21 - compatible: "usbVID,PID", where VID is the vendor id and PID the product id.
22 The textual representation of VID and PID shall be in lower case hexadecimal
36 - compatible: "usbifVID,PID.configCN.IN", where VID is the vendor id, PID is
38 number. The textual representation of VID, PID, CN and IN shall be in lower
50 - compatible: "usbVID,PID", where VID is the vendor id and PID the product id.
51 The textual representation of VID and PID shall be in lower case hexadecimal
/freebsd/sys/contrib/device-tree/Bindings/extcon/
H A Dextcon-palmas.txt6 * "ti,palmas-usb-vid".
7 * "ti,twl6035-usb-vid".
8 * "ti,palmas-usb" (DEPRECATED - use "ti,palmas-usb-vid").
9 * "ti,twl6035-usb" (DEPRECATED - use "ti,twl6035-usb-vid").
/freebsd/share/examples/libusb20/
H A Dbulk.c21 * Just list all VID:PID pairs
152 "Usage ./usb -i <IN_EP> -o <OUT_EP> -v <VID> -p <PID> [<outdata> ...\n]"); in usage()
159 unsigned int vid = UINT_MAX, pid = UINT_MAX; /* impossible VID:PID */ in main() local
178 vid = strtol(optarg, NULL, 0); in main()
188 if (vid != UINT_MAX || pid != UINT_MAX) in main()
234 printf("Found device %s (VID:PID = 0x%04x:0x%04x)\n", in main()
238 if (ddp->idVendor == vid && ddp->idProduct == pid) in main()
H A Dcontrol.c19 * Just list all VID:PID pairs
186 …"Usage ./usb [-i <INTR_EP>] -v <VID> -p <PID> [dir type rcpt req wValue wIndex wLength [<outdata> … in usage()
307 unsigned int vid = UINT_MAX, pid = UINT_MAX; /* impossible VID:PID */ in main() local
344 vid = strtol(optarg, NULL, 0); in main()
354 if (vid != UINT_MAX || pid != UINT_MAX) in main()
406 printf("Found device %s (VID:PID = 0x%04x:0x%04x)\n", in main()
410 if (ddp->idVendor == vid && ddp->idProduct == pid) in main()
/freebsd/sys/dev/etherswitch/felix/
H A Dfelix.c567 * Read VID from incoming frames and use it for port grouping in felix_init_vlan()
724 * If port VID is set use it for VLAN classification, in felix_set_port_cfg()
725 * instead of frame VID. in felix_set_port_cfg()
812 int i, vid; in felix_set_dot1q_vlan() local
814 vid = vg->es_vid & ETHERSWITCH_VID_MASK; in felix_set_dot1q_vlan()
821 * Hardware support 4096 groups, but we can't do group_id == vid. in felix_set_dot1q_vlan()
822 * Note that hw_group_id == vid. in felix_set_dot1q_vlan()
824 if (vid == 0) { in felix_set_dot1q_vlan()
825 /* Clear VLAN table entry using old VID. */ in felix_set_dot1q_vlan()
832 /* The VID is already used in a different group. */ in felix_set_dot1q_vlan()
[all …]
/freebsd/sys/dev/etherswitch/mtkswitch/
H A Dmtkswitch_mt7620.c340 mtkswitch_invalidate_vlan(struct mtkswitch_softc *sc, uint32_t vid) in mtkswitch_invalidate_vlan() argument
345 VTCR_FUNC_VID_INVALID | (vid & VTCR_VID_MASK)); in mtkswitch_invalidate_vlan()
352 uint32_t val, vid, i; in mtkswitch_vlan_init_hw() local
369 /* MT7620 uses vid index instead of actual vid */ in mtkswitch_vlan_init_hw()
370 vid = 0; in mtkswitch_vlan_init_hw()
372 /* MT7621 uses the vid itself */ in mtkswitch_vlan_init_hw()
373 vid = 1; in mtkswitch_vlan_init_hw()
380 val = VTCR_BUSY | VTCR_FUNC_VID_WRITE | vid; in mtkswitch_vlan_init_hw()
449 uint32_t val, i, vid; in mtkswitch_vlan_setvgroup() local
470 vid = v->es_vlangroup; in mtkswitch_vlan_setvgroup()
[all …]
H A Dmtkswitch_rt3050.c292 uint32_t val, vid; in mtkswitch_vlan_init_hw() local
314 vid = 0; in mtkswitch_vlan_init_hw()
315 val = MTKSWITCH_READ(sc, MTKSWITCH_VMSC(vid)); in mtkswitch_vlan_init_hw()
316 val &= ~(VMSC_MASK << VMSC_OFF(vid)); in mtkswitch_vlan_init_hw()
317 val |= (((1<<sc->numports)-1) << VMSC_OFF(vid)); in mtkswitch_vlan_init_hw()
318 MTKSWITCH_WRITE(sc, MTKSWITCH_VMSC(vid), val); in mtkswitch_vlan_init_hw()
320 val = MTKSWITCH_READ(sc, MTKSWITCH_VUB(vid)); in mtkswitch_vlan_init_hw()
321 val &= ~(VUB_MASK << VUB_OFF(vid)); in mtkswitch_vlan_init_hw()
322 val |= (((1<<sc->numports)-1) << VUB_OFF(vid)); in mtkswitch_vlan_init_hw()
323 MTKSWITCH_WRITE(sc, MTKSWITCH_VUB(vid), val); in mtkswitch_vlan_init_hw()
[all …]
/freebsd/sys/dev/syscons/logo/
H A Dlogo_saver.c57 static u_char *vid; variable
73 bcopy(logo_img + d, vid + p, logo_w); in logo_blit()
77 bcopy(logo_img + d, vid + p, l); in logo_blit()
79 bcopy(logo_img + d + l, vid, logo_w - l); in logo_blit()
84 bcopy(logo_img + d, vid + p, logo_w); in logo_blit()
121 vid = (u_char *)adp->va_window; in logo_saver()
/freebsd/sbin/ifconfig/
H A Difvlan.c112 unsigned int vid; in vlan_parse_ethervid() local
118 * Derive params from interface name: "parent.vid". in vlan_parse_ethervid()
124 vid = *cp++ - '0'; in vlan_parse_ethervid()
126 vid = (vid * 10) + (*cp++ - '0'); in vlan_parse_ethervid()
127 if (vid >= 0xFFF) in vlan_parse_ethervid()
136 if (params.vlr_tag == NOTAG || params.vlr_tag == vid) in vlan_parse_ethervid()
137 params.vlr_tag = vid; in vlan_parse_ethervid()
/freebsd/sbin/etherswitchcfg/
H A Detherswitchcfg.8105 Sets the default port VID that is used to process incoming frames that are not tagged.
176 .It Cm vlan Ar VID
177 Sets the VLAN ID (802.1q VID) for this VLAN group.
179 with this VID.
195 Configure VLAN group 1 with a VID of 2 and make ports 0 and 5 its members

1234567891011