Home
last modified time | relevance | path

Searched refs:devlist (Results 1 – 15 of 15) sorted by relevance

/external/u-boot/test/dm/
Dtest-fdt.c356 struct udevice *devlist[], int mask) in check_devices() argument
367 ut_asserteq_ptr(devlist[i], dev); in check_devices()
381 struct udevice *dev, *parent = NULL, *devlist[4]; in dm_test_first_next_ok_device() local
391 devlist[count++] = dev; in dm_test_first_next_ok_device()
396 ut_assertok(check_devices(uts, devlist, 0)); in dm_test_first_next_ok_device()
399 pdata = dev_get_platdata(devlist[1]); in dm_test_first_next_ok_device()
402 ut_assertok(check_devices(uts, devlist, 1 << 1)); in dm_test_first_next_ok_device()
405 pdata = dev_get_platdata(devlist[0]); in dm_test_first_next_ok_device()
408 ut_assertok(check_devices(uts, devlist, 3 << 0)); in dm_test_first_next_ok_device()
411 pdata = dev_get_platdata(devlist[2]); in dm_test_first_next_ok_device()
[all …]
/external/libpcap/testprogs/
Dopentest.c64 pcap_if_t *devlist; in main() local
126 if (pcap_findalldevs(&devlist, ebuf) == -1) in main()
128 if (devlist == NULL) in main()
130 device = strdup(devlist->name); in main()
131 pcap_freealldevs(devlist); in main()
Dcapturetest.c72 pcap_if_t *devlist; in main() local
127 if (pcap_findalldevs(&devlist, ebuf) == -1) in main()
129 if (devlist == NULL) in main()
131 device = strdup(devlist->name); in main()
132 pcap_freealldevs(devlist); in main()
Dthreadsignaltest.c186 pcap_if_t *devlist; in main() local
217 if (pcap_findalldevs(&devlist, ebuf) == -1) in main()
219 if (devlist == NULL) in main()
221 device = strdup(devlist->name); in main()
222 pcap_freealldevs(devlist); in main()
Dvalgrindtest.c237 pcap_if_t *devlist; in main() local
292 if (pcap_findalldevs(&devlist, ebuf) == -1) in main()
294 if (devlist == NULL) in main()
296 device = strdup(devlist->name); in main()
297 pcap_freealldevs(devlist); in main()
Dselpolltest.c76 pcap_if_t *devlist; in main() local
134 if (pcap_findalldevs(&devlist, ebuf) == -1) in main()
136 if (devlist == NULL) in main()
138 device = strdup(devlist->name); in main()
139 pcap_freealldevs(devlist); in main()
/external/tcpdump/
Dtcpdump.c422 pcap_if_t *dev, *devlist; in show_devices_and_exit() local
426 if (pcap_findalldevs(&devlist, ebuf) < 0) in show_devices_and_exit()
428 for (i = 0, dev = devlist; dev != NULL; i++, dev = dev->next) { in show_devices_and_exit()
436 pcap_freealldevs(devlist); in show_devices_and_exit()
924 pcap_if_t *dev, *devlist; in find_interface_by_number() local
929 if (pcap_findalldevs(&devlist, ebuf) < 0) in find_interface_by_number()
934 for (i = 0, dev = devlist; i < devnum-1 && dev != NULL; in find_interface_by_number()
940 pcap_freealldevs(devlist); in find_interface_by_number()
1118 pcap_if_t *devlist; in main() local
1651 if (pcap_findalldevs(&devlist, ebuf) >= 0 && in main()
[all …]
/external/libmtp/src/
Dlibusb-glue.c177 static mtpdevice_list_t *append_to_mtpdevice_list(mtpdevice_list_t *devlist, in append_to_mtpdevice_list() argument
192 if (devlist == NULL) { in append_to_mtpdevice_list()
195 mtpdevice_list_t *tmp = devlist; in append_to_mtpdevice_list()
201 return devlist; in append_to_mtpdevice_list()
211 static void free_mtpdevice_list(mtpdevice_list_t *devlist) in free_mtpdevice_list() argument
213 mtpdevice_list_t *tmplist = devlist; in free_mtpdevice_list()
215 if (devlist == NULL) in free_mtpdevice_list()
611 mtpdevice_list_t *devlist = NULL; in LIBMTP_Detect_Raw_Devices() local
618 ret = get_mtp_usb_device_list(&devlist); in LIBMTP_Detect_Raw_Devices()
630 dev = devlist; in LIBMTP_Detect_Raw_Devices()
[all …]
Dlibusb1-glue.c174 static mtpdevice_list_t *append_to_mtpdevice_list(mtpdevice_list_t *devlist, in append_to_mtpdevice_list() argument
189 if (devlist == NULL) { in append_to_mtpdevice_list()
192 mtpdevice_list_t *tmp = devlist; in append_to_mtpdevice_list()
198 return devlist; in append_to_mtpdevice_list()
208 static void free_mtpdevice_list(mtpdevice_list_t *devlist) in free_mtpdevice_list() argument
210 mtpdevice_list_t *tmplist = devlist; in free_mtpdevice_list()
212 if (devlist == NULL) in free_mtpdevice_list()
630 mtpdevice_list_t *devlist = NULL; in LIBMTP_Detect_Raw_Devices() local
637 ret = get_mtp_usb_device_list(&devlist); in LIBMTP_Detect_Raw_Devices()
649 dev = devlist; in LIBMTP_Detect_Raw_Devices()
[all …]
Dlibopenusb1-glue.c150 static mtpdevice_list_t *append_to_mtpdevice_list(mtpdevice_list_t *devlist, in append_to_mtpdevice_list() argument
165 if (devlist == NULL) { in append_to_mtpdevice_list()
168 mtpdevice_list_t *tmp = devlist; in append_to_mtpdevice_list()
174 return devlist; in append_to_mtpdevice_list()
184 static void free_mtpdevice_list(mtpdevice_list_t *devlist) { in free_mtpdevice_list() argument
185 mtpdevice_list_t *tmplist = devlist; in free_mtpdevice_list()
187 if (devlist == NULL) in free_mtpdevice_list()
594 mtpdevice_list_t *devlist = NULL; in LIBMTP_Detect_Raw_Devices() local
601 ret = get_mtp_usb_device_list(&devlist); in LIBMTP_Detect_Raw_Devices()
613 dev = devlist; in LIBMTP_Detect_Raw_Devices()
[all …]
/external/u-boot/drivers/qe/
Duec.c55 static struct eth_device *devlist[MAXCONTROLLERS]; variable
605 if (strncmp(devname, devlist[i]->name, strlen(devname)) == 0) { in uec_miiphy_find_dev_by_name()
635 value = uec_read_phy_reg(devlist[devindex], addr, reg); in uec_miiphy_read()
657 uec_write_phy_reg(devlist[devindex], addr, reg, value); in uec_miiphy_write()
1375 devlist[uec_info->uf_info.ucc_num] = dev; in uec_initialize()
/external/libpcap/
Dpcap.c467 pcap_if_list_t devlist; in pcap_findalldevs() local
473 devlist.beginning = NULL; in pcap_findalldevs()
474 if (pcap_platform_finddevs(&devlist, errbuf) == -1) { in pcap_findalldevs()
479 if (devlist.beginning != NULL) in pcap_findalldevs()
480 pcap_freealldevs(devlist.beginning); in pcap_findalldevs()
490 if (capture_source_types[i].findalldevs_op(&devlist, errbuf) == -1) { in pcap_findalldevs()
495 if (devlist.beginning != NULL) in pcap_findalldevs()
496 pcap_freealldevs(devlist.beginning); in pcap_findalldevs()
505 *alldevsp = devlist.beginning; in pcap_findalldevs()
Dpcap-sita.c841 pcap_if_list_t devlist; in acn_open_live() local
843 pcap_platform_finddevs(&devlist, errbuf); in acn_open_live()
Dpcap-tc.c436 TcFindAllDevs(pcap_if_list_t *devlist, char *errbuf) in TcFindAllDevs() argument
/external/u-boot/drivers/net/fm/
Deth.c21 static struct eth_device *devlist[NUM_FM_PORTS]; variable
770 devlist[num_controllers++] = dev; in fm_eth_initialize()