/freebsd/sys/dev/usb/net/ |
H A D | usb_ethernet.c | 59 static SYSCTL_NODE(_net, OID_AUTO, ue, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, 90 uether_pause(struct usb_ether *ue, unsigned _ticks) in uether_pause() argument 92 if (usb_proc_is_gone(&ue->ue_tq)) { in uether_pause() 96 usb_pause_mtx(ue->ue_mtx, _ticks); in uether_pause() 101 ue_queue_command(struct usb_ether *ue, in ue_queue_command() argument 107 UE_LOCK_ASSERT(ue, MA_OWNED); in ue_queue_command() 109 if (usb_proc_is_gone(&ue->ue_tq)) { in ue_queue_command() 118 usb_proc_msignal(&ue->ue_tq, t0, t1); in ue_queue_command() 122 task->ue = ue; in ue_queue_command() 128 usb_proc_mwait(&ue->ue_tq, t0, t1); in ue_queue_command() [all …]
|
H A D | if_cue.c | 289 cue_setpromisc(struct usb_ether *ue) in cue_setpromisc() argument 291 struct cue_softc *sc = uether_getsc(ue); in cue_setpromisc() 292 if_t ifp = uether_getifp(ue); in cue_setpromisc() 303 cue_setmulti(ue); in cue_setpromisc() 319 cue_setmulti(struct usb_ether *ue) in cue_setmulti() argument 321 struct cue_softc *sc = uether_getsc(ue); in cue_setmulti() 322 if_t ifp = uether_getifp(ue); in cue_setmulti() 373 cue_attach_post(struct usb_ether *ue) in cue_attach_post() argument 375 struct cue_softc *sc = uether_getsc(ue); in cue_attach_post() 377 cue_getmac(sc, ue->ue_eaddr); in cue_attach_post() [all …]
|
H A D | if_axe.c | 493 axe_setmulti(struct usb_ether *ue) in axe_setmulti() argument 495 struct axe_softc *sc = uether_getsc(ue); in axe_setmulti() 496 if_t ifp = uether_getifp(ue); in axe_setmulti() 544 uether_pause(ue, (y)); \ 550 struct usb_ether *ue; in axe_ax88178_init() local 554 ue = &sc->sc_ue; in axe_ax88178_init() 633 axe_miibus_writereg(ue->ue_dev, sc->sc_phyno, in axe_ax88178_init() 635 axe_miibus_writereg(ue->ue_dev, sc->sc_phyno, in axe_ax88178_init() 637 val = axe_miibus_readreg(ue->ue_dev, sc->sc_phyno, in axe_ax88178_init() 639 axe_miibus_writereg(ue->ue_dev, sc->sc_phyno, in axe_ax88178_init() [all …]
|
H A D | if_kue.c | 340 kue_setpromisc(struct usb_ether *ue) in kue_setpromisc() argument 342 struct kue_softc *sc = uether_getsc(ue); in kue_setpromisc() 343 if_t ifp = uether_getifp(ue); in kue_setpromisc() 369 kue_setmulti(struct usb_ether *ue) in kue_setmulti() argument 371 struct kue_softc *sc = uether_getsc(ue); in kue_setmulti() 372 if_t ifp = uether_getifp(ue); in kue_setmulti() 422 kue_attach_post(struct usb_ether *ue) in kue_attach_post() argument 424 struct kue_softc *sc = uether_getsc(ue); in kue_attach_post() 442 memcpy(ue->ue_eaddr, sc->sc_desc.kue_macaddr, sizeof(ue->ue_eaddr)); in kue_attach_post() 472 struct usb_ether *ue = &sc->sc_ue; in kue_attach() local [all …]
|
H A D | if_axge.c | 457 axge_attach_post(struct usb_ether *ue) in axge_attach_post() argument 461 sc = uether_getsc(ue); in axge_attach_post() 466 ue->ue_eaddr, ETHER_ADDR_LEN); in axge_attach_post() 470 axge_attach_post_sub(struct usb_ether *ue) in axge_attach_post_sub() argument 475 ifp = ue->ue_ifp; in axge_attach_post_sub() 488 error = mii_attach(ue->ue_dev, &ue->ue_miibus, ifp, in axge_attach_post_sub() 489 uether_ifmedia_upd, ue->ue_methods->ue_mii_sts, in axge_attach_post_sub() 564 struct usb_ether *ue; in axge_attach() local 570 ue = &sc->sc_ue; in axge_attach() 586 ue->ue_sc = sc; in axge_attach() [all …]
|
H A D | if_muge.c | 207 static int muge_attach_post_sub(struct usb_ether *ue); 1162 struct usb_ether *ue = &sc->sc_ue; in muge_bulk_read_callback() local 1163 if_t ifp = uether_getifp(ue); in muge_bulk_read_callback() 1316 uether_rxmbuf(ue, m, pktlen - 4); in muge_bulk_read_callback() 1330 uether_rxflush(ue); in muge_bulk_read_callback() 1457 * @ue: the USB ethernet device 1463 muge_set_mac_addr(struct usb_ether *ue) in muge_set_mac_addr() argument 1465 struct muge_softc *sc = uether_getsc(ue); in muge_set_mac_addr() 1468 memset(ue->ue_eaddr, 0xff, ETHER_ADDR_LEN); in muge_set_mac_addr() 1476 ue in muge_set_mac_addr() 1524 muge_set_leds(struct usb_ether * ue) muge_set_leds() argument 1560 muge_attach_post(struct usb_ether * ue) muge_attach_post() argument 1588 muge_attach_post_sub(struct usb_ether * ue) muge_attach_post_sub() argument 1646 muge_start(struct usb_ether * ue) muge_start() argument 1673 struct usb_ether *ue = if_getsoftc(ifp); muge_ioctl() local 1881 muge_setmulti(struct usb_ether * ue) muge_setmulti() argument 1924 muge_setpromisc(struct usb_ether * ue) muge_setpromisc() argument 2027 muge_init(struct usb_ether * ue) muge_init() argument 2067 muge_stop(struct usb_ether * ue) muge_stop() argument 2094 muge_tick(struct usb_ether * ue) muge_tick() argument 2170 struct usb_ether *ue = &sc->sc_ue; muge_attach() local 2229 struct usb_ether *ue = &sc->sc_ue; muge_detach() local [all...] |
H A D | if_rue.c | 457 rue_setpromisc(struct usb_ether *ue) in rue_setpromisc() argument 459 struct rue_softc *sc = uether_getsc(ue); in rue_setpromisc() 460 if_t ifp = uether_getifp(ue); in rue_setpromisc() 490 rue_setmulti(struct usb_ether *ue) in rue_setmulti() argument 492 struct rue_softc *sc = uether_getsc(ue); in rue_setmulti() 493 if_t ifp = uether_getifp(ue); in rue_setmulti() 550 rue_attach_post(struct usb_ether *ue) in rue_attach_post() argument 552 struct rue_softc *sc = uether_getsc(ue); in rue_attach_post() 558 rue_read_mem(sc, RUE_EEPROM_IDR0, ue->ue_eaddr, ETHER_ADDR_LEN); in rue_attach_post() 588 struct usb_ether *ue = &sc->sc_ue; in rue_attach() local [all …]
|
H A D | if_smsc.c | 195 static int smsc_attach_post_sub(struct usb_ether *ue); 712 smsc_setmulti(struct usb_ether *ue) in smsc_setmulti() argument 714 struct smsc_softc *sc = uether_getsc(ue); in smsc_setmulti() 715 if_t ifp = uether_getifp(ue); in smsc_setmulti() 761 smsc_setpromisc(struct usb_ether *ue) in smsc_setpromisc() argument 763 struct smsc_softc *sc = uether_getsc(ue); in smsc_setpromisc() 764 if_t ifp = uether_getifp(ue); in smsc_setpromisc() 901 smsc_init(struct usb_ether *ue) in smsc_init() argument 903 struct smsc_softc *sc = uether_getsc(ue); in smsc_init() 904 if_t ifp = uether_getifp(ue); in smsc_init() [all …]
|
H A D | if_mos.c | 167 static void mos_attach_post(struct usb_ether *ue); 561 mos_setpromisc(struct usb_ether *ue) in mos_setpromisc() argument 563 struct mos_softc *sc = uether_getsc(ue); in mos_setpromisc() 564 if_t ifp = uether_getifp(ue); in mos_setpromisc() 595 mos_setmulti(struct usb_ether *ue) in mos_setmulti() argument 597 struct mos_softc *sc = uether_getsc(ue); in mos_setmulti() 598 if_t ifp = uether_getifp(ue); in mos_setmulti() 689 struct usb_ether *ue = &sc->sc_ue; in mos_attach() local 707 ue->ue_sc = sc; in mos_attach() 708 ue->ue_dev = dev; in mos_attach() [all …]
|
H A D | if_ipheth.c | 223 struct usb_ether *ue = &sc->sc_ue; in ipheth_attach() local 245 ue->ue_sc = sc; in ipheth_attach() 246 ue->ue_dev = dev; in ipheth_attach() 247 ue->ue_udev = uaa->device; in ipheth_attach() 248 ue->ue_mtx = &sc->sc_mtx; in ipheth_attach() 249 ue->ue_methods = &ipheth_ue_methods; in ipheth_attach() 257 error = uether_ifattach(ue); in ipheth_attach() 273 struct usb_ether *ue = &sc->sc_ue; in ipheth_detach() local 278 uether_ifdetach(ue); in ipheth_detach() 286 ipheth_start(struct usb_ether *ue) in ipheth_start() argument [all …]
|
H A D | if_udav.c | 231 udav_attach_post(struct usb_ether *ue) in udav_attach_post() argument 233 struct udav_softc *sc = uether_getsc(ue); in udav_attach_post() 239 udav_csr_read(sc, UDAV_PAR, ue->ue_eaddr, ETHER_ADDR_LEN); in udav_attach_post() 262 struct usb_ether *ue = &sc->sc_ue; in udav_attach() local 284 ue->ue_methods = &udav_ue_methods_nophy; in udav_attach() 287 ue->ue_methods = &udav_ue_methods; in udav_attach() 290 ue->ue_sc = sc; in udav_attach() 291 ue->ue_dev = dev; in udav_attach() 292 ue->ue_udev = uaa->device; in udav_attach() 293 ue->ue_mtx = &sc->sc_mtx; in udav_attach() [all …]
|
H A D | if_cdceem.c | 247 cdceem_attach_post(struct usb_ether *ue) in cdceem_attach_post() argument 257 struct usb_ether *ue; in cdceem_attach() local 263 ue = &sc->sc_ue; in cdceem_attach() 282 arc4rand(ue->ue_eaddr, ETHER_ADDR_LEN, 0); in cdceem_attach() 283 ue->ue_eaddr[0] &= ~0x01; /* unicast */ in cdceem_attach() 284 ue->ue_eaddr[0] |= 0x02; /* locally administered */ in cdceem_attach() 286 ue->ue_sc = sc; in cdceem_attach() 287 ue->ue_dev = dev; in cdceem_attach() 288 ue->ue_udev = uaa->device; in cdceem_attach() 289 ue->ue_mtx = &sc->sc_mtx; in cdceem_attach() [all …]
|
H A D | if_aue.c | 552 aue_setmulti(struct usb_ether *ue) in aue_setmulti() argument 554 struct aue_softc *sc = uether_getsc(ue); in aue_setmulti() 555 if_t ifp = uether_getifp(ue); in aue_setmulti() 636 aue_attach_post(struct usb_ether *ue) in aue_attach_post() argument 638 struct aue_softc *sc = uether_getsc(ue); in aue_attach_post() 644 aue_read_mac(sc, ue->ue_eaddr); in aue_attach_post() 683 struct usb_ether *ue = &sc->sc_ue; in aue_attach() local 706 ue->ue_sc = sc; in aue_attach() 707 ue->ue_dev = dev; in aue_attach() 708 ue->ue_udev = uaa->device; in aue_attach() [all …]
|
H A D | if_cdce.c | 564 cdce_attach_post(struct usb_ether *ue) in cdce_attach_post() argument 571 cdce_attach_post_sub(struct usb_ether *ue) in cdce_attach_post_sub() argument 573 struct cdce_softc *sc = uether_getsc(ue); in cdce_attach_post_sub() 574 if_t ifp = uether_getifp(ue); in cdce_attach_post_sub() 596 cdce_set_filter(ue); in cdce_attach_post_sub() 606 struct usb_ether *ue = &sc->sc_ue; in cdce_attach() local 763 ue->ue_sc = sc; in cdce_attach() 764 ue->ue_dev = dev; in cdce_attach() 765 ue->ue_udev = uaa->device; in cdce_attach() 766 ue->ue_mtx = &sc->sc_mtx; in cdce_attach() [all …]
|
H A D | if_urndis.c | 208 urndis_attach_post(struct usb_ether *ue) in urndis_attach_post() argument 228 struct usb_ether *ue = &sc->sc_ue; in urndis_attach() local 310 ue->ue_sc = sc; in urndis_attach() 311 ue->ue_dev = dev; in urndis_attach() 312 ue->ue_udev = uaa->device; in urndis_attach() 313 ue->ue_mtx = &sc->sc_mtx; in urndis_attach() 314 ue->ue_methods = &urndis_ue_methods; in urndis_attach() 316 error = uether_ifattach(ue); in urndis_attach() 338 struct usb_ether *ue = &sc->sc_ue; in urndis_detach() local 343 uether_ifdetach(ue); in urndis_detach() 355 urndis_start(struct usb_ether * ue) urndis_start() argument 367 urndis_init(struct usb_ether * ue) urndis_init() argument 384 urndis_stop(struct usb_ether * ue) urndis_stop() argument 401 urndis_setmulti(struct usb_ether * ue) urndis_setmulti() argument 408 urndis_setpromisc(struct usb_ether * ue) urndis_setpromisc() argument [all...] |
H A D | if_ure.c | 508 struct usb_ether *ue = &sc->sc_ue; in ure_attach() local 565 ue->ue_sc = sc; in ure_attach() 566 ue->ue_dev = dev; in ure_attach() 567 ue->ue_udev = uaa->device; in ure_attach() 568 ue->ue_mtx = &sc->sc_mtx; in ure_attach() 569 ue->ue_methods = &ure_ue_methods; in ure_attach() 571 error = uether_ifattach(ue); in ure_attach() 587 struct usb_ether *ue = &sc->sc_ue; in ure_detach() local 591 uether_ifdetach(ue); in ure_detach() 637 struct usb_ether *ue = &sc->sc_ue; in ure_bulk_read_callback() local [all …]
|
H A D | usb_ethernet.h | 71 struct usb_ether *ue; member 101 #define uether_do_request(ue,req,data,timo) \ argument 102 usbd_do_request_proc((ue)->ue_udev,&(ue)->ue_tq,req,data,0,NULL,timo)
|
/freebsd/contrib/file/src/ |
H A D | is_json.c | 118 json_skip_space(const unsigned char *uc, const unsigned char *ue) in json_skip_space() argument 120 while (uc < ue && json_isspace(*uc)) in json_skip_space() 127 json_parse_string(const unsigned char **ucp, const unsigned char *ue, in json_parse_string() argument 134 while (uc < ue) { in json_parse_string() 139 if (uc == ue) in json_parse_string() 154 if (ue - uc < 4) { in json_parse_string() 155 uc = ue; in json_parse_string() 180 json_parse_array(const unsigned char **ucp, const unsigned char *ue, in json_parse_array() argument 186 while (uc < ue) { in json_parse_array() 187 uc = json_skip_space(uc, ue); in json_parse_array() [all …]
|
H A D | is_csv.c | 68 eatquote(const unsigned char *uc, const unsigned char *ue) in eatquote() argument 72 while (uc < ue) { in eatquote() 89 return ue; in eatquote() 93 csv_parse(const unsigned char *uc, const unsigned char *ue) in csv_parse() argument 97 while (uc < ue) { in csv_parse() 101 uc = eatquote(uc, ue); in csv_parse() 138 const unsigned char *ue = uc + b->flen; in file_is_csv() local 147 if (!csv_parse(uc, ue)) in file_is_csv()
|
H A D | is_simh.c | 110 simh_parse(const unsigned char *uc, const unsigned char *ue) in simh_parse() argument 118 while (ue - uc >= CAST(ptrdiff_t, sizeof(nbytes))) { in simh_parse() 133 if (ue - uc < CAST(ptrdiff_t, sizeof(nbytes))) in simh_parse() 152 const unsigned char *ue = uc + b->flen; in file_is_simh() local 158 if (!simh_parse(uc, ue)) in file_is_simh()
|
/freebsd/contrib/flex/src/ |
H A D | scanopt.c | 236 usg_elem *ue; in scanopt_usage() local 268 ue = store + store_idx++; in scanopt_usage() 269 ue->idx = i; in scanopt_usage() 270 ue->next = ue->alias = NULL; in scanopt_usage() 274 byr_val = ue; in scanopt_usage() 282 RVAL (s, ue->idx)) { in scanopt_usage() 291 NAME (s, ue->idx)) > 0) { in scanopt_usage() 298 ue->next = *ue_curr; in scanopt_usage() 299 *ue_curr = ue; in scanopt_usage() 309 ue = byr_val; in scanopt_usage() [all …]
|
/freebsd/usr.sbin/ypldap/ |
H A D | ypldap.c | 151 struct userent *ue; in main_trash_update() local 156 while ((ue = RB_ROOT(env->sc_user_names_t)) != NULL) { in main_trash_update() 158 env->sc_user_names_t, ue); in main_trash_update() 159 free(ue->ue_line); in main_trash_update() 160 free(ue->ue_netid_line); in main_trash_update() 161 free(ue); in main_trash_update() 179 struct userent *ue; in main_create_user_groups() local 188 RB_FOREACH(ue, user_name_tree, env->sc_user_names_t) { in main_create_user_groups() 189 bp = cp = ue->ue_line; in main_create_user_groups() 205 log_warnx("main: failed to parse gid for uid: %d\n", ue->ue_uid); in main_create_user_groups() [all …]
|
H A D | entries.c | 46 struct userent *ue; in flatten_entries() local 65 RB_FOREACH(ue, user_name_tree, env->sc_user_names) { in flatten_entries() 70 ue->ue_line[strlen(ue->ue_line)] = ':'; in flatten_entries() 71 log_debug("pushing line: %s", ue->ue_line); in flatten_entries() 72 len = strlen(ue->ue_line) + 1; in flatten_entries() 73 memcpy(endp, ue->ue_line, len); in flatten_entries() 75 free(ue->ue_line); in flatten_entries() 76 ue->ue_line = endp; in flatten_entries() 83 tmp = ue->ue_netid_line; in flatten_entries() 84 ue->ue_netid_line = strdup(tmp); in flatten_entries() [all …]
|
/freebsd/contrib/libarchive/cpio/ |
H A D | cmdline.c | 296 const char *u, *ue, *g; in owner_parse() local 317 ue = u = NULL; in owner_parse() 321 ue = u = spec; in owner_parse() 322 while (*ue != ':' && *ue != '.' && *ue != '\0') in owner_parse() 323 ++ue; in owner_parse() 324 g = ue; in owner_parse() 334 user = malloc(ue - u + 1); in owner_parse() 337 memcpy(user, u, ue - u); in owner_parse() 338 user[ue - u] = '\0'; in owner_parse() 346 if (*ue != '\0') in owner_parse()
|
/freebsd/sys/dev/usb/ |
H A D | usb_fdt_support.c | 98 usb_fdt_get_mac_addr(device_t dev, struct usb_ether* ue) in usb_fdt_get_mac_addr() argument 102 uint8_t mac[sizeof(ue->ue_eaddr)]; in usb_fdt_get_mac_addr() 108 if ((node = usb_fdt_get_node(ue->ue_dev, ue->ue_udev)) == -1) in usb_fdt_get_mac_addr() 113 memcpy(ue->ue_eaddr, mac, sizeof(ue->ue_eaddr)); in usb_fdt_get_mac_addr()
|