Home
last modified time | relevance | path

Searched refs:dev (Results 1 – 25 of 2307) sorted by relevance

12345678910>>...93

/external/wpa_supplicant_8/src/wps/
Dwps_dev_attr.c16 int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_manufacturer() argument
21 len = dev->manufacturer ? os_strlen(dev->manufacturer) : 0; in wps_build_manufacturer()
35 wpabuf_put_data(msg, dev->manufacturer, len); in wps_build_manufacturer()
40 int wps_build_model_name(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_name() argument
45 len = dev->model_name ? os_strlen(dev->model_name) : 0; in wps_build_model_name()
59 wpabuf_put_data(msg, dev->model_name, len); in wps_build_model_name()
64 int wps_build_model_number(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_number() argument
69 len = dev->model_number ? os_strlen(dev->model_number) : 0; in wps_build_model_number()
83 wpabuf_put_data(msg, dev->model_number, len); in wps_build_model_number()
88 int wps_build_serial_number(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_serial_number() argument
[all …]
Dwps_dev_attr.h14 int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg);
15 int wps_build_model_name(struct wps_device_data *dev, struct wpabuf *msg);
16 int wps_build_model_number(struct wps_device_data *dev, struct wpabuf *msg);
17 int wps_build_serial_number(struct wps_device_data *dev, struct wpabuf *msg);
18 int wps_build_dev_name(struct wps_device_data *dev, struct wpabuf *msg);
19 int wps_build_device_attrs(struct wps_device_data *dev, struct wpabuf *msg);
20 int wps_build_os_version(struct wps_device_data *dev, struct wpabuf *msg);
21 int wps_build_vendor_ext_m1(struct wps_device_data *dev, struct wpabuf *msg);
22 int wps_build_rf_bands(struct wps_device_data *dev, struct wpabuf *msg,
24 int wps_build_primary_dev_type(struct wps_device_data *dev,
[all …]
/external/libdrm/freedreno/
Dfreedreno_device.c46 add_bucket(struct fd_device *dev, int size) in add_bucket() argument
48 unsigned int i = dev->num_buckets; in add_bucket()
50 assert(i < ARRAY_SIZE(dev->cache_bucket)); in add_bucket()
52 list_inithead(&dev->cache_bucket[i].list); in add_bucket()
53 dev->cache_bucket[i].size = size; in add_bucket()
54 dev->num_buckets++; in add_bucket()
58 init_cache_buckets(struct fd_device *dev) in init_cache_buckets() argument
70 add_bucket(dev, 4096); in init_cache_buckets()
71 add_bucket(dev, 4096 * 2); in init_cache_buckets()
72 add_bucket(dev, 4096 * 3); in init_cache_buckets()
[all …]
Dfreedreno_bo.c45 drmHashInsert(bo->dev->name_table, name, bo); in set_name()
60 static struct fd_bo * bo_from_handle(struct fd_device *dev, in bo_from_handle() argument
65 bo = dev->funcs->bo_from_handle(dev, size, handle); in bo_from_handle()
70 drmIoctl(dev->fd, DRM_IOCTL_GEM_CLOSE, &req); in bo_from_handle()
73 bo->dev = fd_device_ref(dev); in bo_from_handle()
79 drmHashInsert(dev->handle_table, handle, bo); in bo_from_handle()
84 void fd_cleanup_bo_cache(struct fd_device *dev, time_t time) in fd_cleanup_bo_cache() argument
88 if (dev->time == time) in fd_cleanup_bo_cache()
91 for (i = 0; i < dev->num_buckets; i++) { in fd_cleanup_bo_cache()
92 struct fd_bo_bucket *bucket = &dev->cache_bucket[i]; in fd_cleanup_bo_cache()
[all …]
/external/libdrm/tests/planetest/
Ddev.c72 static uint32_t get_prop_id(struct sp_dev *dev, in get_prop_id() argument
79 p = drmModeGetProperty(dev->fd, props->props[i]); in get_prop_id()
107 struct sp_dev *dev; in create_sp_dev() local
121 dev = calloc(1, sizeof(*dev)); in create_sp_dev()
122 if (!dev) { in create_sp_dev()
127 dev->fd = fd; in create_sp_dev()
129 ret = drmSetClientCap(dev->fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1); in create_sp_dev()
135 ret = drmSetClientCap(dev->fd, DRM_CLIENT_CAP_ATOMIC, 1); in create_sp_dev()
141 r = drmModeGetResources(dev->fd); in create_sp_dev()
147 dev->num_connectors = r->count_connectors; in create_sp_dev()
[all …]
/external/e2fsprogs/misc/
Dbase_device.tst1 /dev/hda7 /dev/hda
2 /dev/sda1 /dev/sda
3 /dev/hda /dev/hda
4 /dev/sda /dev/sda
5 /dev/dsk/hda6 /dev/dsk/hda
6 /dev/dsk/sda5 /dev/dsk/sda
7 /dev/md4 /dev/md
8 /dev/md/4 /dev/md
9 /dev/ide/host0/bus1/target2/lun3 /dev/ide/host0/bus1/target2/lun3
10 /dev/ide/host0/bus1/target2/lun3/part10 /dev/ide/host0/bus1/target2/lun3
[all …]
/external/libusb/libusb/
Dcore.c461 struct discovered_devs *discdevs, struct libusb_device *dev) in discovered_devs_append() argument
468 discdevs->devices[len] = libusb_ref_device(dev); in discovered_devs_append()
480 discdevs->devices[len] = libusb_ref_device(dev); in discovered_devs_append()
503 struct libusb_device *dev = malloc(sizeof(*dev) + priv_size); in usbi_alloc_device() local
506 if (!dev) in usbi_alloc_device()
509 r = pthread_mutex_init(&dev->lock, NULL); in usbi_alloc_device()
513 dev->ctx = ctx; in usbi_alloc_device()
514 dev->refcnt = 1; in usbi_alloc_device()
515 dev->session_data = session_id; in usbi_alloc_device()
516 memset(&dev->os_priv, 0, priv_size); in usbi_alloc_device()
[all …]
/external/toybox/tests/
Dpgrep.test7 killall yes >/dev/null 2>&1
14 yes >/dev/null &
33 killall yes >/dev/null 2>&1
37 yes >/dev/null &
41 killall yes >/dev/null 2>&1
43 yes >/dev/null &
44 yes print1 >/dev/null &
45 yes print2 >/dev/null &
49 killall yes >/dev/null 2>&1
51 yes >/dev/null &
[all …]
/external/libusb-compat/libusb/
Dcore.c198 libusb_device *dev = dev_list[i]; in find_busses() local
199 uint8_t bus_num = libusb_get_bus_number(dev); in find_busses()
312 struct usb_device *dev; in find_devices() local
322 dev = malloc(sizeof(*dev)); in find_devices()
323 if (!dev) in find_devices()
328 dev->dev = newlib_dev; in find_devices()
330 dev->bus = bus; in find_devices()
331 dev->devnum = libusb_get_device_address(newlib_dev); in find_devices()
332 sprintf(dev->filename, "%03d", dev->devnum); in find_devices()
333 LIST_ADD(devices, dev); in find_devices()
[all …]
/external/iproute2/ip/
Difcfg34 dev=${1%:*}
35 if [ "$dev" = "" -o "$1" = "help" ]; then
55 if [ "$ldev" != "$dev" ]; then
59 ip -4 addr flush dev $dev $label || exit 1
100 if [ "$ldev" = "$dev" -a "$ipaddr" != "" ]; then
105 ip addr del $pfx dev $dev $label || exit 1
111 if ! ip link set up dev $dev ; then
112 echo "Error: cannot enable interface $dev." 1>&2
117 if ! arping -q -c 2 -w 3 -D -I $dev $ipaddr ; then
118 echo "Error: some host already uses address $ipaddr on $dev." 1>&2
[all …]
/external/libpcap/
Dpcap-dos.c108 static int ndis_probe (struct device *dev);
109 static int pkt_probe (struct device *dev);
243 volatile struct device *dev; /* might be reset by sig_handler */ in pcap_read_one() local
245 dev = get_device (p->fd); in pcap_read_one()
246 if (!dev) in pcap_read_one()
249 PCAP_ASSERT (dev->copy_rx_buf || dev->peek_rx_buf); in pcap_read_one()
255 if (dev->peek_rx_buf) in pcap_read_one()
257 PCAP_ASSERT (dev->release_rx_buf); in pcap_read_one()
258 rx_len = (*dev->peek_rx_buf) (&rx_buf); in pcap_read_one()
263 rx_len = (*dev->copy_rx_buf) (buf, p->snapshot); in pcap_read_one()
[all …]
/external/libnfc-nci/halimpl/bcm2079x/
Dnfc_nci.c38 bcm2079x_dev_t *dev = (bcm2079x_dev_t*) p_dev; in hal_open() local
40 retval = HaiOpen (dev, p_hal_cback, p_hal_data_callback); in hal_open()
49 bcm2079x_dev_t* dev = (bcm2079x_dev_t*) p_dev; in hal_write() local
51 retval = HaiWrite (dev, data_len, p_data); in hal_write()
60 bcm2079x_dev_t* dev = (bcm2079x_dev_t*) p_dev; in hal_core_initialized() local
62 retval = HaiCoreInitialized (dev, p_core_init_rsp_params); in hal_core_initialized()
70 bcm2079x_dev_t* dev = (bcm2079x_dev_t*) p_dev; in hal_pre_discover() local
72 retval = HaiPreDiscover (dev); in hal_pre_discover()
80 bcm2079x_dev_t* dev = (bcm2079x_dev_t*) p_dev; in hal_close() local
82 retval = HaiClose (dev); in hal_close()
[all …]
/external/libdrm/omap/
Domap_drm.c74 struct omap_device *dev; member
86 struct omap_device *dev = calloc(sizeof(*dev), 1); in omap_device_new_impl() local
87 if (!dev) in omap_device_new_impl()
89 dev->fd = fd; in omap_device_new_impl()
90 atomic_set(&dev->refcnt, 1); in omap_device_new_impl()
91 dev->handle_table = drmHashCreate(); in omap_device_new_impl()
92 return dev; in omap_device_new_impl()
97 struct omap_device *dev = NULL; in omap_device_new() local
104 if (drmHashLookup(dev_table, fd, (void **)&dev)) { in omap_device_new()
106 dev = omap_device_new_impl(fd); in omap_device_new()
[all …]
/external/mesa3d/src/gallium/state_trackers/vdpau/
Ddevice.c44 vlVdpDevice *dev = NULL; in vdp_imp_device_create_x11() local
55 dev = CALLOC(1, sizeof(vlVdpDevice)); in vdp_imp_device_create_x11()
56 if (!dev) { in vdp_imp_device_create_x11()
61 dev->vscreen = vl_screen_create(display, screen); in vdp_imp_device_create_x11()
62 if (!dev->vscreen) { in vdp_imp_device_create_x11()
67 pscreen = dev->vscreen->pscreen; in vdp_imp_device_create_x11()
68 dev->context = pscreen->context_create(pscreen, dev->vscreen); in vdp_imp_device_create_x11()
69 if (!dev->context) { in vdp_imp_device_create_x11()
74 *device = vlAddDataHTAB(dev); in vdp_imp_device_create_x11()
80 vl_compositor_init(&dev->compositor, dev->context); in vdp_imp_device_create_x11()
[all …]
Dquery.c70 vlVdpDevice *dev; in vlVdpVideoSurfaceQueryCapabilities() local
77 dev = vlGetDataHTAB(device); in vlVdpVideoSurfaceQueryCapabilities()
78 if (!dev) in vlVdpVideoSurfaceQueryCapabilities()
81 pscreen = dev->vscreen->pscreen; in vlVdpVideoSurfaceQueryCapabilities()
85 pipe_mutex_lock(dev->mutex); in vlVdpVideoSurfaceQueryCapabilities()
90 pipe_mutex_unlock(dev->mutex); in vlVdpVideoSurfaceQueryCapabilities()
108 vlVdpDevice *dev; in vlVdpVideoSurfaceQueryGetPutBitsYCbCrCapabilities() local
114 dev = vlGetDataHTAB(device); in vlVdpVideoSurfaceQueryGetPutBitsYCbCrCapabilities()
115 if (!dev) in vlVdpVideoSurfaceQueryGetPutBitsYCbCrCapabilities()
118 pscreen = dev->vscreen->pscreen; in vlVdpVideoSurfaceQueryGetPutBitsYCbCrCapabilities()
[all …]
/external/wpa_supplicant_8/src/p2p/
Dp2p_go_neg.c36 struct p2p_device *dev, in p2p_peer_channels_check() argument
44 ch = &dev->channels; in p2p_peer_channels_check()
51 os_memcpy(dev->country, pos, 3); in p2p_peer_channels_check()
78 p2p_channels_intersect(own, &dev->channels, &intersection); in p2p_peer_channels_check()
81 (int) dev->channels.reg_classes, in p2p_peer_channels_check()
91 static int p2p_peer_channels(struct p2p_data *p2p, struct p2p_device *dev, in p2p_peer_channels() argument
94 return p2p_peer_channels_check(p2p, &p2p->channels, dev, in p2p_peer_channels()
210 int p2p_connect_send(struct p2p_data *p2p, struct p2p_device *dev) in p2p_connect_send() argument
215 if (dev->flags & P2P_DEV_PD_BEFORE_GO_NEG) { in p2p_connect_send()
218 MAC2STR(dev->info.p2p_device_addr)); in p2p_connect_send()
[all …]
Dp2p.c24 static void p2p_device_free(struct p2p_data *p2p, struct p2p_device *dev);
55 struct p2p_device *dev, *n; in p2p_expire_peers() local
60 dl_list_for_each_safe(dev, n, &p2p->devices, struct p2p_device, list) { in p2p_expire_peers()
61 if (dev->last_seen.sec + P2P_PEER_EXPIRATION_AGE >= now.sec) in p2p_expire_peers()
64 if (dev == p2p->go_neg_peer) { in p2p_expire_peers()
75 dev->info.p2p_device_addr)) { in p2p_expire_peers()
80 os_get_reltime(&dev->last_seen); in p2p_expire_peers()
86 p2p->groups[i], dev->info.p2p_device_addr)) in p2p_expire_peers()
94 os_get_reltime(&dev->last_seen); in p2p_expire_peers()
99 MAC2STR(dev->info.p2p_device_addr)); in p2p_expire_peers()
[all …]
/external/e2fsprogs/lib/blkid/
Ddev.c20 blkid_dev dev; in blkid_new_dev() local
22 if (!(dev = (blkid_dev) calloc(1, sizeof(struct blkid_struct_dev)))) in blkid_new_dev()
25 INIT_LIST_HEAD(&dev->bid_devs); in blkid_new_dev()
26 INIT_LIST_HEAD(&dev->bid_tags); in blkid_new_dev()
28 return dev; in blkid_new_dev()
31 void blkid_free_dev(blkid_dev dev) in blkid_free_dev() argument
33 if (!dev) in blkid_free_dev()
37 printf(" freeing dev %s (%s)\n", dev->bid_name, dev->bid_type ? in blkid_free_dev()
38 dev->bid_type : "(null)")); in blkid_free_dev()
39 DBG(DEBUG_DEV, blkid_debug_dump_dev(dev)); in blkid_free_dev()
[all …]
Dtag.c67 blkid_tag blkid_find_tag_dev(blkid_dev dev, const char *type) in blkid_find_tag_dev() argument
71 if (!dev || !type) in blkid_find_tag_dev()
74 list_for_each(p, &dev->bid_tags) { in blkid_find_tag_dev()
84 extern int blkid_dev_has_tag(blkid_dev dev, const char *type, in blkid_dev_has_tag() argument
89 if (!dev || !type) in blkid_dev_has_tag()
92 tag = blkid_find_tag_dev(dev, type); in blkid_dev_has_tag()
129 int blkid_set_tag(blkid_dev dev, const char *name, in blkid_set_tag() argument
136 if (!dev || !name) in blkid_set_tag()
148 dev_var = &dev->bid_type; in blkid_set_tag()
150 dev_var = &dev->bid_label; in blkid_set_tag()
[all …]
/external/zlib/src/contrib/puff/
DMakefile18 @puft -w zeros.raw 2>&1 | cat > /dev/null
19 @echo '04' | xxd -r -p | puft 2> /dev/null || test $$? -eq 2
20 @echo '00' | xxd -r -p | puft 2> /dev/null || test $$? -eq 2
21 @echo '00 00 00 00 00' | xxd -r -p | puft 2> /dev/null || test $$? -eq 254
22 @echo '00 01 00 fe ff' | xxd -r -p | puft 2> /dev/null || test $$? -eq 2
23 @echo '01 01 00 fe ff 0a' | xxd -r -p | puft -f 2>&1 | cat > /dev/null
24 @echo '02 7e ff ff' | xxd -r -p | puft 2> /dev/null || test $$? -eq 246
25 @echo '02' | xxd -r -p | puft 2> /dev/null || test $$? -eq 2
26 @echo '04 80 49 92 24 49 92 24 0f b4 ff ff c3 04' | xxd -r -p | puft 2> /dev/null || test $$? -eq 2
27 …@echo '04 80 49 92 24 49 92 24 71 ff ff 93 11 00' | xxd -r -p | puft 2> /dev/null || test $$? -eq …
[all …]
/external/ppp/pppd/plugins/radius/etc/
Dport-id-map8 /dev/tty1 1
9 /dev/tty2 2
10 /dev/tty3 3
11 /dev/tty4 4
12 /dev/tty5 5
13 /dev/tty6 6
14 /dev/tty7 7
15 /dev/tty8 8
16 /dev/ttyS0 9
17 /dev/ttyS1 10
[all …]
/external/libvncserver/webclients/java-applet/ssl/
Dss_vncviewer136 if echo "$VNCVIEWERCMD" | grep '\.turbovnc' > /dev/null; then
139 if type "$VNCVIEWERCMD.turbovnc" > /dev/null 2>/dev/null; then
156 if uname | grep Darwin >/dev/null; then
166 type stunnel > /dev/null 2>&1
175 type stunnel4 > /dev/null 2>&1
197 if echo "$*" | grep '.*-listen' > /dev/null; then
223 if echo "$VNCVIEWERCMD" | egrep -i '^(xmessage|sleep )' > /dev/null; then
227 if echo "$VNCVIEWERCMD" | grep -i chicken.of > /dev/null; then
231 if echo "$VNCVIEWERCMD" | grep -i ultra > /dev/null; then
237 if echo "$str" | grep -i 'TightVNC.viewer' > /dev/null; then
[all …]
/external/libvncserver/x11vnc/misc/enhanced_tightvnc_viewer/bin/util/
Dss_vncviewer136 if echo "$VNCVIEWERCMD" | grep '\.turbovnc' > /dev/null; then
139 if type "$VNCVIEWERCMD.turbovnc" > /dev/null 2>/dev/null; then
156 if uname | grep Darwin >/dev/null; then
166 type stunnel > /dev/null 2>&1
175 type stunnel4 > /dev/null 2>&1
197 if echo "$*" | grep '.*-listen' > /dev/null; then
223 if echo "$VNCVIEWERCMD" | egrep -i '^(xmessage|sleep )' > /dev/null; then
227 if echo "$VNCVIEWERCMD" | grep -i chicken.of > /dev/null; then
231 if echo "$VNCVIEWERCMD" | grep -i ultra > /dev/null; then
237 if echo "$str" | grep -i 'TightVNC.viewer' > /dev/null; then
[all …]
/external/libdrm/exynos/
Dexynos_drm.c54 struct exynos_device *dev; in exynos_device_create() local
56 dev = calloc(sizeof(*dev), 1); in exynos_device_create()
57 if (!dev) { in exynos_device_create()
63 dev->fd = fd; in exynos_device_create()
65 return dev; in exynos_device_create()
73 drm_public void exynos_device_destroy(struct exynos_device *dev) in exynos_device_destroy() argument
75 free(dev); in exynos_device_destroy()
91 drm_public struct exynos_bo * exynos_bo_create(struct exynos_device *dev, in exynos_bo_create() argument
112 bo->dev = dev; in exynos_bo_create()
114 if (drmIoctl(dev->fd, DRM_IOCTL_EXYNOS_GEM_CREATE, &req)){ in exynos_bo_create()
[all …]
/external/libnfc-nci/halimpl/pn54x/
Dnfc_nci.c46 pn547_dev_t *dev = (pn547_dev_t*) p_dev; in hal_open() local
65 pn547_dev_t* dev = (pn547_dev_t*) p_dev; in hal_write() local
85 pn547_dev_t* dev = (pn547_dev_t*) p_dev; in hal_core_initialized() local
103 pn547_dev_t* dev = (pn547_dev_t*) p_dev; in hal_pre_discover() local
121 pn547_dev_t* dev = (pn547_dev_t*) p_dev; in hal_close() local
139 pn547_dev_t* dev = (pn547_dev_t*) p_dev; in hal_control_granted() local
157 pn547_dev_t* dev = (pn547_dev_t*) p_dev; in hal_power_cycle() local
176 static int nfc_close(hw_device_t *dev) in nfc_close() argument
179 free(dev); in nfc_close()
200 pn547_dev_t *dev = calloc(1, sizeof(pn547_dev_t)); in nfc_open() local
[all …]

12345678910>>...93