Searched refs:devlist (Results 1 - 25 of 38) sorted by relevance

12

/freebsd-11-stable/usr.sbin/ctld/
H A Dkernel.c160 struct cctl_devlist_data *devlist; local
163 devlist = (struct cctl_devlist_data *)user_data;
164 cur_lun = devlist->cur_lun;
165 devlist->level++;
166 if ((u_int)devlist->level >= (sizeof(devlist->cur_sb) /
167 sizeof(devlist->cur_sb[0])))
169 sizeof(devlist->cur_sb) / sizeof(devlist->cur_sb[0]));
171 devlist
205 struct cctl_devlist_data *devlist; local
276 struct cctl_devlist_data *devlist; local
321 struct cctl_devlist_data *devlist; local
393 struct cctl_devlist_data *devlist; local
411 struct cctl_devlist_data devlist; local
[all...]
/freebsd-11-stable/sbin/nvmecontrol/
H A DMakefile5 SRCS= nvmecontrol.c devlist.c firmware.c identify.c logpage.c \
H A Dnvmecontrol.h48 " nvmecontrol devlist\n"
74 void devlist(int argc, char *argv[]);
H A Ddevlist.c30 __FBSDID("$FreeBSD: stable/11/sbin/nvmecontrol/devlist.c 350960 2019-08-12 20:34:56Z mav $");
64 devlist(int argc, char *argv[]) function
H A Dnvmecontrol.c52 {"devlist", devlist, DEVLIST_USAGE},
/freebsd-11-stable/contrib/libpcap/testprogs/
H A Dopentest.c64 pcap_if_t *devlist; local
126 if (pcap_findalldevs(&devlist, ebuf) == -1)
128 if (devlist == NULL)
130 device = strdup(devlist->name);
131 pcap_freealldevs(devlist);
H A Dcapturetest.c72 pcap_if_t *devlist; local
127 if (pcap_findalldevs(&devlist, ebuf) == -1)
129 if (devlist == NULL)
131 device = strdup(devlist->name);
132 pcap_freealldevs(devlist);
H A Dselpolltest.c76 pcap_if_t *devlist; local
134 if (pcap_findalldevs(&devlist, ebuf) == -1)
136 if (devlist == NULL)
138 device = strdup(devlist->name);
139 pcap_freealldevs(devlist);
H A Dthreadsignaltest.c186 pcap_if_t *devlist; local
217 if (pcap_findalldevs(&devlist, ebuf) == -1)
219 if (devlist == NULL)
221 device = strdup(devlist->name);
222 pcap_freealldevs(devlist);
H A Dvalgrindtest.c237 pcap_if_t *devlist; local
292 if (pcap_findalldevs(&devlist, ebuf) == -1)
294 if (devlist == NULL)
296 device = strdup(devlist->name);
297 pcap_freealldevs(devlist);
/freebsd-11-stable/sys/dev/mii/
H A Dmlphy.c167 device_t *devlist; local
172 if (device_get_children(msc->ml_mii.mii_dev, &devlist, &devs) != 0)
175 if (devlist[i] != msc->ml_dev) {
176 retval = device_get_softc(devlist[i]);
180 free(devlist, M_TEMP);
H A Dtlphy.c141 device_t *devlist; local
158 device_get_children(sc_mii->mii_dev, &devlist, &devs) == 0) {
160 if (devlist[i] != dev) {
161 other = device_get_softc(devlist[i]);
166 free(devlist, M_TEMP);
/freebsd-11-stable/sys/dev/cardbus/
H A Dcardbus.c268 device_t *devlist; local
274 if (device_get_children(cbdev, &devlist, &numdevs) != 0)
282 dev = devlist[i];
289 dev = devlist[i];
302 free(devlist, M_TEMP);
/freebsd-11-stable/sys/dev/sound/pci/
H A Dhdspe.c92 device_t *devlist; local
100 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0)
104 scp = device_get_ivars(devlist[i]);
110 free(devlist, M_TEMP);
H A Dhdspe-pcm.c196 device_t *devlist; local
198 if ((err = device_get_children(sc->dev, &devlist, &devcount)) != 0)
202 scp = device_get_ivars(devlist[i]);
210 free(devlist, M_TEMP);
218 free(devlist, M_TEMP);
/freebsd-11-stable/sys/dev/mfi/
H A Dmfi_pci.c278 device_t *devlist; local
292 if ((error = device_get_children(sc->mfi_dev, &devlist, &devcount)) != 0) {
297 device_delete_child(sc->mfi_dev, devlist[i]);
298 free(devlist, M_TEMP);
/freebsd-11-stable/sys/dev/nvme/
H A Dnvme.c367 device_t *devlist; local
371 if (devclass_get_devices(nvme_devclass, &devlist, &devcount))
375 ctrlr = DEVICE2SOFTC(devlist[dev_idx]);
379 free(devlist, M_TEMP);
/freebsd-11-stable/sys/dev/pci/
H A Dpci_iov.c435 device_t *devlist; local
443 error = device_get_children(bus, &devlist, &devcount);
450 if (pci_find_extcap(devlist[i], PCIZ_SRIOV, &iov_pos) == 0) {
451 dev_func = pci_get_function(devlist[i]);
453 lowest = devlist[i];
459 free(devlist, M_TEMP);
827 device_t bus, dev, vf, *devlist; local
838 devlist = NULL;
852 error = device_get_children(bus, &devlist, &devcount);
858 vf = devlist[
[all...]
/freebsd-11-stable/usr.sbin/ctladm/
H A Dctladm.c168 {"devlist", CTLADM_CMD_DEVLIST, CTLADM_ARG_NONE, "b:vx"},
3245 struct cctl_devlist_data *devlist; local
3248 devlist = (struct cctl_devlist_data *)user_data;
3249 cur_lun = devlist->cur_lun;
3250 devlist->level++;
3251 if ((u_int)devlist->level >= (sizeof(devlist->cur_sb) /
3252 sizeof(devlist->cur_sb[0])))
3254 sizeof(devlist->cur_sb) / sizeof(devlist
3289 struct cctl_devlist_data *devlist; local
3361 struct cctl_devlist_data *devlist; local
3372 struct cctl_devlist_data devlist; local
[all...]
/freebsd-11-stable/sys/dev/bhnd/bhndb/
H A Dbhndb.c74 static bool bhndb_hw_matches(device_t *devlist,
186 * Return true if @p devlist matches the @p hw specification.
188 * @param devlist A device table to match against.
189 * @param num_devs The number of devices in @p devlist.
193 bhndb_hw_matches(device_t *devlist, int num_devs, const struct bhndb_hw *hw) argument
204 ci = bhnd_get_core_info(devlist[d]);
995 device_t hostb_dev, *devlist; local
1007 if ((error = device_get_children(child, &devlist, &devcnt)))
1011 qsort(devlist, devcnt, sizeof(*devlist), compare_core_inde
[all...]
/freebsd-11-stable/usr.sbin/ppp/
H A Dphysical.c209 memcpy(p->cfg.devlist, MODEM_LIST, sizeof MODEM_LIST);
479 dev = p->cfg.devlist;
790 p->cfg.devlist[sizeof p->cfg.devlist - 1] = '\0';
791 for (f = 0, pos = 0; f < argc && pos < sizeof p->cfg.devlist - 1; f++) {
793 p->cfg.devlist[pos++] = '\0';
794 strncpy(p->cfg.devlist + pos, argv[f], sizeof p->cfg.devlist - pos - 1);
795 pos += strlen(p->cfg.devlist + pos);
1028 dev = p->cfg.devlist;
[all...]
H A Dphysical.h112 char devlist[LINE_LEN]; /* NUL separated list of devices */ member in struct:physical::__anon14111
/freebsd-11-stable/contrib/tcpdump/
H A Dtcpdump.c431 pcap_if_t *dev, *devlist; local
435 if (pcap_findalldevs(&devlist, ebuf) < 0)
437 for (i = 0, dev = devlist; dev != NULL; i++, dev = dev->next) {
445 pcap_freealldevs(devlist);
963 pcap_if_t *dev, *devlist; local
968 if (pcap_findalldevs(&devlist, ebuf) < 0)
973 for (i = 0, dev = devlist; i < devnum-1 && dev != NULL;
979 pcap_freealldevs(devlist);
1161 pcap_if_t *devlist; local
1694 if (pcap_findalldevs(&devlist, ebu
[all...]
/freebsd-11-stable/sys/dev/sound/pci/hda/
H A Dhdacc.c727 device_t *devlist; local
730 if (device_get_children(dev, &devlist, &devcount) != 0)
733 HDAC_PINDUMP(devlist[i]);
734 free(devlist, M_TEMP);
/freebsd-11-stable/sys/dev/pccbb/
H A Dpccbb.c282 device_t *devlist; local
303 error = device_get_children(brdev, &devlist, &numdevs);
315 device_delete_child(brdev, devlist[tmp]);
316 free(devlist, M_TEMP);
412 device_t *devlist; local
419 tmp = device_get_children(brdev, &devlist, &numdevs);
425 dev = devlist[tmp];
430 free(devlist, M_TEMP);

Completed in 153 milliseconds

12