Lines Matching defs:unit
344 * unit number is conveniently used to number the node. CTL_CREATE
624 tap_clone_create(struct if_clone *ifc, int unit)
626 if (tap_clone_creator(unit) == NULL) {
628 tap_cd.cd_name, unit);
643 tap_clone_creator(int unit)
650 if (unit == -1) {
655 cf->cf_unit = unit;
739 * passed, the unit of the tap device which will allows us identifying the
804 int unit = (intptr_t)fp->f_data;
808 sc = device_lookup_private(&tap_cd, unit);
883 tap_dev_read(int unit, struct uio *uio, int flags)
886 device_lookup_private(&tap_cd, unit);
972 int unit = (uintptr_t)fp->f_data;
977 sc = device_lookup_private(&tap_cd, unit);
983 st->st_dev = makedev(cdevsw_lookup_major(&tap_cdevsw), unit);
1013 tap_dev_write(int unit, struct uio *uio, int flags)
1016 device_lookup_private(&tap_cd, unit);
1080 tap_dev_ioctl(int unit, u_long cmd, void *data, struct lwp *l)
1082 struct tap_softc *sc = device_lookup_private(&tap_cd, unit);
1151 tap_dev_poll(int unit, int events, struct lwp *l)
1154 device_lookup_private(&tap_cd, unit);
1200 tap_dev_kqfilter(int unit, struct knote *kn)
1203 device_lookup_private(&tap_cd, unit);