Home
last modified time | relevance | path

Searched refs:devname (Results 1 – 25 of 124) sorted by relevance

12345

/freebsd/lib/libdevdctl/tests/
H A Dlibdevdctl_unittest.cc53 const char* devname; member
81 std::string devname; in TEST_P() local
86 m_ev->DevName(devname); in TEST_P()
87 EXPECT_STREQ(param.devname, devname.c_str()); in TEST_P()
102 .is_disk = true, .devname = "da6"},
103 (DevNameTestParams){.is_disk = false, .devname = "cuau0",
105 (DevNameTestParams){.is_disk = true, .devname = "ada6",
107 (DevNameTestParams){.is_disk = true, .devname = "da6p1",
109 (DevNameTestParams){.is_disk = true, .devname = "ada6p1",
111 (DevNameTestParams){.is_disk = true, .devname = "da6s0p1",
[all …]
/freebsd/lib/libbluetooth/
H A Ddev.c40 char devname[HCI_DEVNAME_SIZE]; member
47 bt_devaddr(char const *devname, bdaddr_t *addr) in bt_devaddr() argument
51 strlcpy(di.devname, devname, sizeof(di.devname)); in bt_devaddr()
63 bt_devname(char *devname, bdaddr_t const *addr) in bt_devname() argument
73 if (arg.devname[0] == '\0') { in bt_devname()
78 if (devname != NULL) in bt_devname()
79 strlcpy(devname, arg.devname, HCI_DEVNAME_SIZE); in bt_devname()
92 strlcpy(m->devname, di->devname, sizeof(m->devname)); in bt_devaddr_match()
H A Dhci.c50 static char * bt_dev2node (char const *devname, char *nodename, int nnlen);
54 bt_devopen(char const *devname) in bt_devopen() argument
60 if (devname == NULL) { in bt_devopen()
69 if (bt_aton(devname, &ba)) { in bt_devopen()
72 } else if (bt_dev2node(devname, ha.hci_node, in bt_devopen()
407 bt_devinquiry(char const *devname, time_t length, int num_rsp, in bt_devinquiry() argument
425 if (devname == NULL) { in bt_devinquiry()
427 devname = _devname; in bt_devinquiry()
438 s = bt_devopen(devname); in bt_devinquiry()
541 bt_devremote_name(char const *devname, const bdaddr_t *remote, time_t to, in bt_devremote_name() argument
[all …]
H A Dbluetooth.h91 int bt_devaddr (char const *devname, bdaddr_t *addr);
92 int bt_devname (char *devname, bdaddr_t const *addr);
104 char devname[HCI_DEVNAME_SIZE]; member
169 int bt_devopen (char const *devname);
182 int bt_devinquiry(char const *devname, time_t length, int num_rsp,
184 char * bt_devremote_name(char const *devname, const bdaddr_t *remote,
/freebsd/stand/common/
H A Dinstall.c194 char *devname; in install() local
207 devname = NULL; in install()
213 devname = "net0"; in install()
221 if (devname == NULL) in install()
222 devname = currdev; in install()
223 if (devname == NULL) in install()
224 devname = "disk1"; in install()
226 devname = s; in install()
227 e = strchr(devname, '/'); in install()
230 devnamelen = e - devname; in install()
[all …]
/freebsd/sbin/ipf/ipsend/
H A Dsdlpi.c53 char devname[16], *s, buf[256]; in initdevice() local
56 (void) strcpy(devname, "/dev/"); in initdevice()
57 (void) strncat(devname, device, sizeof(devname) - strlen(devname)); in initdevice()
59 s = devname + 5; in initdevice()
64 fprintf(stderr, "bad device name %s\n", devname); in initdevice()
72 if ((fd = open(devname, O_RDWR)) < 0) in initdevice()
75 perror(devname); in initdevice()
/freebsd/lib/libprocstat/
H A Dlibprocstat_compat.c38 char devname[SPECNAMELEN_COMPAT12 + 1]; member
87 char devname[SPECNAMELEN_COMPAT12 + 1]; member
118 if (strlen(pts.devname) >= sizeof(pts_compat->devname)) in freebsd11_procstat_get_pts_info()
119 strcpy(pts_compat->devname, trunc_name); in freebsd11_procstat_get_pts_info()
121 memcpy(pts_compat->devname, pts.devname, in freebsd11_procstat_get_pts_info()
122 sizeof(pts_compat->devname)); in freebsd11_procstat_get_pts_info()
137 if (strlen(pts.devname) >= sizeof(pts_compat->devname)) in freebsd12_procstat_get_pts_info()
138 strcpy(pts_compat->devname, trunc_name); in freebsd12_procstat_get_pts_info()
140 memcpy(pts_compat->devname, pts.devname, in freebsd12_procstat_get_pts_info()
141 sizeof(pts_compat->devname)); in freebsd12_procstat_get_pts_info()
/freebsd/tools/regression/zfs/
H A Dmisc.sh163 devname="${2}"
166 if [ -n "${devname}" ]; then
167 devparam="-u ${devname}"
171 if [ -n "${devname}" ]; then
172 DISKNAME="${devname}"
181 if [ -n "${devname}" ]; then
182 cmd="lofiadm -a ${fname} ${devname}"
184 DISKNAME="${devname}"
201 if [ -n "${devname}" ]; then
202 devname=`echo ${devname} | cut -c 9-`
[all …]
/freebsd/usr.sbin/bsdconfig/share/media/
H A Dcdrom.subr92 local dev="$1" devname err
94 f_struct "$dev" get devname devname || return $FAILURE
95 f_dprintf "Init routine called for CDROM device. devname=[%s]" \
96 "$devname"
109 'mount_cd9660 "%s" "%s"' "$devname" "$MOUNTPOINT"
111 err="${err#mount_cd9660: }"; err="${err#$devname: }"
127 "$devname" "$MOUNTPOINT" "$err"
193 local dev="$1" name devname err
197 $dev get devname devname || return $SUCCESS
202 f_dprintf "Ejecting CDROM/DVD at %s" "$devname"
[all …]
H A Dufs.subr83 device_ufs set devname "$ufs"
118 local dev="$1" devname err
120 $dev get devname devname || return $FAILURE
121 f_dprintf "Init routine called for UFS device. devname=[%s]" \
122 "$devname"
129 if [ ! -e "$devname" ]; then
131 "f_media_init_ufs" "$devname"
141 'mount "%s" "%s"' "$devname" "$MOUNTPOINT"
143 err="${err#mount: }"; err="${err#$devname : }"
145 "$devname" "$MOUNTPOINT" "$err"
H A Ddos.subr90 local dev="$1" devname err
92 $dev get devname devname || return $FAILURE
93 f_dprintf "Init routine called for DOS device. devname=[%s]" \
94 "$devname"
107 'mount_msdosfs "%s" "%s"' "$devname" "$MOUNTPOINT"
109 err="${err#mount_msdosfs: }"; err="${err#$devname: }"
111 "$devname" "$MOUNTPOINT" "$err"
H A Dusb.subr100 local dev="$1" devname err
102 $dev get devname devname || return $FAILURE
103 f_dprintf "Init routine called for USB device. devname=[%s]" \
104 "$devname"
117 'mount "%s" "%s"' "$devname" "$MOUNTPOINT"
123 err="${err#mount: }"; err="${err#$devname: }"
125 "$devname" "$MOUNTPOINT" "$err"
/freebsd/tests/sys/ses/
H A Dnondestructive.c44 do_getelmdesc(const char *devname, int fd) in do_getelmdesc() argument
63 snprintf(cmd, sizeof(cmd), "sg_ses -p7 %s", devname); in do_getelmdesc()
129 do_getelmdevnames(const char *devname __unused, int fd) in do_getelmdevnames()
247 do_getelmmap(const char *devname, int fd) in do_getelmmap() argument
265 snprintf(cmd, sizeof(cmd), "sg_ses -p1 %s", devname); in do_getelmmap()
328 do_getelmstat(const char *devname, int fd) in do_getelmstat() argument
356 map[elm_idx].elm_type, elm_subidx, devname); in do_getelmstat()
401 do_getencid(const char *devname, int fd) in do_getencid() argument
411 snprintf(cmd, sizeof(cmd), "sg_ses -p1 %s", devname); in do_getencid()
453 do_getencname(const char *devname, int fd) in do_getencname() argument
[all …]
/freebsd/usr.sbin/fstyp/
H A Dhammer2.c212 char *devname; in read_label() local
244 devname = extract_device_name(NULL); in read_label()
245 assert(!devname); /* Currently always NULL in FreeBSD. */ in read_label()
249 if (devname) in read_label()
250 snprintf(label, size, "%s_%s", pfs, devname); in read_label()
257 if (devname) { in read_label()
259 strlcat(label, devname, size); in read_label()
262 if (devname) in read_label()
263 free(devname); in read_label()
/freebsd/usr.sbin/bsdconfig/share/
H A Ddevice.subr54 devname \
119 # f_device_register $var_to_set $name $desc $devname $type $enabled
154 $__device set devname "$__devname"
234 local devname type desc capacity
260 local devname desc device flags
261 for devname in $( ifconfig -l ); do
263 case "$devname" in
268 f_device_desc "$devname" $DEVICE_TYPE_NETWORK desc
270 f_dprintf "Found network device named %s" "$devname"
271 debug= f_device_register device $devname "$desc" \
[all …]
/freebsd/tests/sys/opencrypto/
H A Dblake2_test.c76 lookup_crid(int fd, const char *devname) in lookup_crid() argument
81 strlcpy(find.name, devname, sizeof(find.name)); in lookup_crid()
129 test_blake2b_vectors(const char *devname, const char *modname) in test_blake2b_vectors() argument
140 crid = lookup_crid(fd, devname); in test_blake2b_vectors()
153 test_blake2s_vectors(const char *devname, const char *modname) in test_blake2s_vectors() argument
164 crid = lookup_crid(fd, devname); in test_blake2s_vectors()
/freebsd/usr.sbin/bhyve/
H A Dnet_backends.c88 tap_init(struct net_backend *be, const char *devname, in tap_init() argument
105 strlcat(tbuf, devname, sizeof(tbuf)); in tap_init()
316 char *devname; in netbe_init() local
323 devname = strdup(value); in netbe_init()
331 type = devname; in netbe_init()
353 free(devname); in netbe_init()
365 err = nbe->init(nbe, devname, nvl, cb, param); in netbe_init()
367 free(devname); in netbe_init()
373 free(devname); in netbe_init()
/freebsd/stand/efi/libefi/
H A Defizfs.c98 char devname[SPECNAMELEN + 1]; in efi_zfs_probe() local
112 snprintf(devname, sizeof(devname), "%s%dp%d:", in efi_zfs_probe()
115 if (zfs_probe_dev(devname, &guid, false) == 0) { in efi_zfs_probe()
/freebsd/libexec/bootpd/
H A Dgetether.c189 char devname[32]; local
197 snprintf(devname, sizeof(devname), "%s%s", _PATH_DEV, ifname);
198 fd = open(devname, 2);
201 char *p = devname + 5;
208 fd = open(devname, 2);
211 devname, get_errmsg());
/freebsd/usr.bin/login/
H A Dlogin_fbtab.c84 char *devname; in login_fbtab() local
96 if ((cp = devname = strtok(buf, WSPACE)) == NULL) in login_fbtab()
98 if (strncmp(devname, _PATH_DEV, sizeof _PATH_DEV - 1) != 0 in login_fbtab()
108 if (strcmp(devname + 5, tty) == 0) { in login_fbtab()
/freebsd/share/examples/ppi/
H A Dppilcd.c26 static void hd44780_prepare(char *devname, char *options);
96 char *devname = DEFAULT_DEVICE; in main() local
117 devname = optarg; in main()
147 driver->l_prepare(devname, drvopts); in main()
318 hd44780_prepare(char *devname, char *options) in hd44780_prepare() argument
322 if ((hd_fd = open(devname, O_RDWR, 0)) == -1) in hd44780_prepare()
323 err(EX_OSFILE, "can't open '%s'", devname); in hd44780_prepare()
/freebsd/sys/contrib/openzfs/cmd/zed/agents/
H A Dzfs_retire.c152 char *devname; in remove_spares() local
174 devname = zpool_vdev_name(NULL, zhp, spares[i], in remove_spares()
179 zpool_vdev_remove_wanted(zhp, devname) == 0) in remove_spares()
405 char *devname; in zfs_retire_recv() local
438 devname = zpool_vdev_name(NULL, zhp, vdev, B_FALSE); in zfs_retire_recv()
455 remove_status = zpool_vdev_remove_wanted(zhp, devname); in zfs_retire_recv()
457 ", err:%d", devname, libzfs_errno(zhdl)); in zfs_retire_recv()
465 fmd_hdl_debug(hdl, "no spare for '%s'", devname); in zfs_retire_recv()
468 free(devname); in zfs_retire_recv()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zvol/zvol_misc/
H A Dzvol_misc_common.kshlib135 devname="$(readlink -f "$device")"
137 is_disk_device "${devname}p1"
139 is_disk_device "${devname}s0"
/freebsd/sys/dev/gpio/
H A Dgpioiic.c121 const char *busname, *devname; in gpioiic_setup_hinted_pins() local
124 devname = device_get_name(sc->dev); in gpioiic_setup_hinted_pins()
133 if (resource_string_value(devname, unit, "at", &busname) != 0 || in gpioiic_setup_hinted_pins()
164 if ((err = resource_int_value(devname, unit, "scl", &sclnum)) != 0) in gpioiic_setup_hinted_pins()
170 if ((err = resource_int_value(devname, unit, "sda", &sdanum)) != 0) in gpioiic_setup_hinted_pins()
/freebsd/lib/libc/gen/
H A Ddevname-compat11.c36 return (devname(dev, type)); in freebsd11_devname()
46 __sym_compat(devname, freebsd11_devname, FBSD_1.0);

12345