Home
last modified time | relevance | path

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

12345678910>>...285

/external/rootdev/
Drootdev_test.sh83 out=$("${ROOTDEV}" --block $WORKDIR 2>/dev/null)
91 local dev=$2
93 mkdir -p $dev
96 echo "10:0" > $block/sda/dev
97 echo "10:1" > $block/sda/sda1/dev
98 echo "10:2" > $block/sda/sda2/dev
99 mknod $dev/sda1 b 10 1
100 mknod $dev/sda2 b 10 2
101 mknod $dev/sda b 10 0
106 local dev=$WORKDIR/dev
[all …]
/external/libiio/src/
Ddevice.c66 char * iio_device_get_xml(const struct iio_device *dev, size_t *length) in iio_device_get_xml() argument
69 + strlen(dev->id) + (dev->name ? strlen(dev->name) : 0); in iio_device_get_xml()
74 attrs_len = malloc(dev->nb_attrs * sizeof(*attrs_len)); in iio_device_get_xml()
78 attrs = malloc(dev->nb_attrs * sizeof(*attrs)); in iio_device_get_xml()
82 for (i = 0; i < dev->nb_attrs; i++) { in iio_device_get_xml()
83 char *xml = get_attr_xml(dev->attrs[i], &attrs_len[i], IIO_ATTR_TYPE_DEVICE); in iio_device_get_xml()
90 channels_len = malloc(dev->nb_channels * sizeof(*channels_len)); in iio_device_get_xml()
94 channels = malloc(dev->nb_channels * sizeof(*channels)); in iio_device_get_xml()
98 for (j = 0; j < dev->nb_channels; j++) { in iio_device_get_xml()
99 char *xml = iio_channel_get_xml(dev->channels[j], in iio_device_get_xml()
[all …]
/external/adhd/scripts/audio_thread_log_viewer/
Dlog.test3 Output dev: bdw-rt5677: :1,0
8 496098.524565708 DEV_SLEEP_TIME dev:8 wake:000496098.545892346
11 496098.545994178 ODEV_NO_STREAMS dev:8 hw_level:992 write:1056
12 496098.546000808 SET_DEV_WAKE dev:8 hw_level:2048 sleep:1024
13 496098.546001355 DEV_SLEEP_TIME dev:8 wake:000496098.567328258
16 496098.567615773 ODEV_NO_STREAMS dev:8 hw_level:1040 write:1008
17 496098.567622518 SET_DEV_WAKE dev:8 hw_level:2048 sleep:1024
18 496098.567623059 DEV_SLEEP_TIME dev:8 wake:000496098.588949912
21 496098.589240896 ODEV_NO_STREAMS dev:8 hw_level:992 write:1056
22 496098.589247582 SET_DEV_WAKE dev:8 hw_level:2048 sleep:1024
[all …]
/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 …]
/external/libdrm/amdgpu/
Damdgpu_device.c96 static void amdgpu_device_free_internal(amdgpu_device_handle dev) in amdgpu_device_free_internal() argument
101 while (*node != dev && (*node)->next) in amdgpu_device_free_internal()
106 close(dev->fd); in amdgpu_device_free_internal()
107 if ((dev->flink_fd >= 0) && (dev->fd != dev->flink_fd)) in amdgpu_device_free_internal()
108 close(dev->flink_fd); in amdgpu_device_free_internal()
110 amdgpu_vamgr_deinit(&dev->vamgr_32); in amdgpu_device_free_internal()
111 amdgpu_vamgr_deinit(&dev->vamgr); in amdgpu_device_free_internal()
112 amdgpu_vamgr_deinit(&dev->vamgr_high_32); in amdgpu_device_free_internal()
113 amdgpu_vamgr_deinit(&dev->vamgr_high); in amdgpu_device_free_internal()
114 handle_table_fini(&dev->bo_handles); in amdgpu_device_free_internal()
[all …]
Damdgpu_gpu_info.c33 drm_public int amdgpu_query_info(amdgpu_device_handle dev, unsigned info_id, in amdgpu_query_info() argument
43 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_info()
47 drm_public int amdgpu_query_crtc_from_id(amdgpu_device_handle dev, unsigned id, in amdgpu_query_crtc_from_id() argument
58 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_crtc_from_id()
62 drm_public int amdgpu_read_mm_registers(amdgpu_device_handle dev, in amdgpu_read_mm_registers() argument
77 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_read_mm_registers()
81 drm_public int amdgpu_query_hw_ip_count(amdgpu_device_handle dev, in amdgpu_query_hw_ip_count() argument
93 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_hw_ip_count()
97 drm_public int amdgpu_query_hw_ip_info(amdgpu_device_handle dev, unsigned type, in amdgpu_query_hw_ip_info() argument
110 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_hw_ip_info()
[all …]
/external/adhd/cras/src/server/
Dcras_iodev_list.c40 struct cras_iodev *dev; member
102 struct cras_iodev *dev; in find_dev() local
104 DL_FOREACH (devs[CRAS_STREAM_OUTPUT].iodevs, dev) in find_dev()
105 if (dev->info.idx == dev_index) in find_dev()
106 return dev; in find_dev()
108 DL_FOREACH (devs[CRAS_STREAM_INPUT].iodevs, dev) in find_dev()
109 if (dev->info.idx == dev_index) in find_dev()
110 return dev; in find_dev()
124 static int add_dev_to_list(struct cras_iodev *dev) in add_dev_to_list() argument
128 struct iodev_list *list = &devs[dev->direction]; in add_dev_to_list()
[all …]
Dcras_bt_io.c58 struct cras_iodev *dev, in add_profile_dev() argument
68 n->base.dev = bt_iodev; in add_profile_dev()
72 n->base.stable_id = dev->info.stable_id; in add_profile_dev()
76 strcpy(n->base.name, dev->info.name); in add_profile_dev()
77 n->profile_dev = dev; in add_profile_dev()
138 struct cras_iodev *dev = active_profile_dev(iodev); in open_dev() local
151 if (dev && dev->open_dev) { in open_dev()
152 rc = dev->open_dev(dev); in open_dev()
167 struct cras_iodev *dev = active_profile_dev(iodev); in update_supported_formats() local
170 if (!dev) in update_supported_formats()
[all …]
/external/mesa3d/src/freedreno/drm/
Dfreedreno_device.c43 struct fd_device *dev; in fd_device_new() local
58 dev = NULL; in fd_device_new()
62 dev = msm_device_new(fd); in fd_device_new()
63 dev->version = version->version_minor; in fd_device_new()
67 dev = kgsl_device_new(fd); in fd_device_new()
71 dev = NULL; in fd_device_new()
77 if (!dev) in fd_device_new()
80 p_atomic_set(&dev->refcnt, 1); in fd_device_new()
81 dev->fd = fd; in fd_device_new()
82 dev->handle_table = _mesa_hash_table_create(NULL, _mesa_hash_u32, _mesa_key_u32_equal); in fd_device_new()
[all …]
/external/mesa3d/src/etnaviv/drm/
Detnaviv_device.c35 struct etna_device *dev = calloc(sizeof(*dev), 1); in etna_device_new() local
41 if (!dev) in etna_device_new()
44 p_atomic_set(&dev->refcnt, 1); in etna_device_new()
45 dev->fd = fd; in etna_device_new()
46 dev->handle_table = _mesa_hash_table_create(NULL, _mesa_hash_u32, _mesa_key_u32_equal); in etna_device_new()
47 dev->name_table = _mesa_hash_table_create(NULL, _mesa_hash_u32, _mesa_key_u32_equal); in etna_device_new()
48 etna_bo_cache_init(&dev->bo_cache); in etna_device_new()
50 ret = drmCommandWriteRead(dev->fd, DRM_ETNAVIV_GET_PARAM, &req, sizeof(req)); in etna_device_new()
54 util_vma_heap_init(&dev->address_space, req.value, _4GB - req.value); in etna_device_new()
55 dev->use_softpin = 1; in etna_device_new()
[all …]
/external/linux-kselftest/tools/testing/selftests/drivers/net/mlxsw/
Drtnetlink.sh43 ip link set dev $swp1 up
44 ip link set dev $swp2 up
51 ip link set dev $swp2 down
52 ip link set dev $swp1 down
64 ip addr flush dev $swp1
65 ip addr flush dev $swp2
68 ip addr add dev $swp1 192.0.2.1/28
71 ip link set dev $swp1 addr 00:11:22:33:44:55
76 ip addr add dev $swp2 192.0.2.2/28 &>/dev/null
78 ip addr add dev $swp2 192.0.2.2/28 2>&1 >/dev/null \
[all …]
Dvxlan.sh19 ip link set dev $swp1 up
20 ip link set dev $swp2 up
27 ip link set dev $swp2 down
28 ip link set dev $swp1 down
33 ip link set dev $swp1 master br0
35 ip link set dev vxlan0 master br0
38 ip link set dev $swp1 nomaster
40 ip link set dev $swp1 master br0
46 ip link set dev $swp1 master br0
48 ip link set dev vxlan0 master br0 &> /dev/null
[all …]
/external/libdrm/freedreno/
Dfreedreno_device.c43 struct fd_device *dev; in fd_device_new() local
58 dev = NULL; in fd_device_new()
62 dev = msm_device_new(fd); in fd_device_new()
63 dev->version = version->version_minor; in fd_device_new()
67 dev = kgsl_device_new(fd); in fd_device_new()
71 dev = NULL; in fd_device_new()
77 if (!dev) in fd_device_new()
80 atomic_set(&dev->refcnt, 1); in fd_device_new()
81 dev->fd = fd; in fd_device_new()
82 dev->handle_table = drmHashCreate(); in fd_device_new()
[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/libdrm/etnaviv/
Detnaviv_device.c46 struct etna_device *dev = calloc(sizeof(*dev), 1); in etna_device_new() local
48 if (!dev) in etna_device_new()
51 atomic_set(&dev->refcnt, 1); in etna_device_new()
52 dev->fd = fd; in etna_device_new()
53 dev->handle_table = drmHashCreate(); in etna_device_new()
54 dev->name_table = drmHashCreate(); in etna_device_new()
55 etna_bo_cache_init(&dev->bo_cache); in etna_device_new()
57 return dev; in etna_device_new()
65 struct etna_device *dev = etna_device_new(dup_fd); in etna_device_new_dup() local
67 if (dev) in etna_device_new_dup()
[all …]
/external/mesa3d/src/egl/main/
Degldevice.c56 _EGLDevice *dev_list, *dev; in _eglFiniDevice() local
69 dev = dev_list; in _eglFiniDevice()
73 assert(_eglDeviceSupports(dev, _EGL_DEVICE_DRM)); in _eglFiniDevice()
74 drmFreeDevice(&dev->device); in _eglFiniDevice()
76 free(dev); in _eglFiniDevice()
110 _EGLDevice *dev; in _eglAddDRMDevice() local
116 dev = _eglGlobal.DeviceList; in _eglAddDRMDevice()
119 assert(dev); in _eglAddDRMDevice()
120 assert(_eglDeviceSupports(dev, _EGL_DEVICE_SOFTWARE)); in _eglAddDRMDevice()
122 while (dev->Next) { in _eglAddDRMDevice()
[all …]
/external/linux-kselftest/tools/testing/selftests/net/
Drtnetlink.sh39 ip link del dev "$devdummy"
45 dev="$1"
48 ip netconf show dev "$dev" > /dev/null
52 ip -$f netconf show dev "$dev" > /dev/null
57 echo "FAIL: ip netconf show $dev"
73 ip link set dev "$devdummy" master "$devbr"
81 ip addr add dev "$vlandev" 10.200.7.23/30
83 ip -6 addr add dev "$vlandev" dead:42::1234/64
85 ip -d link > /dev/null
87 ip r s t all > /dev/null
[all …]
/external/linux-kselftest/tools/testing/selftests/net/forwarding/
Dvxlan_symmetric.sh122 ip link set dev $if_name master $vrf_name
123 ip link set dev $vrf_name up
124 ip link set dev $if_name up
126 ip address add $ip_addr/24 dev $if_name
128 dev $if_name
141 ip neigh del $gw_ip dev $if_name
142 ip address del $ip_addr/24 dev $if_name
144 ip link set dev $if_name down
174 ip link set dev br1 address $(mac_get $swp1)
175 ip link set dev br1 up
[all …]
Dvxlan_asymmetric.sh112 ip link set dev $if_name master $vrf_name
113 ip link set dev $vrf_name up
114 ip link set dev $if_name up
116 ip address add $ip_addr/24 dev $if_name
118 dev $if_name
131 ip neigh del $gw_ip dev $if_name
132 ip address del $ip_addr/24 dev $if_name
134 ip link set dev $if_name down
164 ip link set dev br1 address $(mac_get $swp1)
165 ip link set dev br1 up
[all …]
Drouter_multipath.sh11 ip link set dev $h1 master vrf-h1
13 ip link set dev vrf-h1 up
14 ip link set dev $h1 up
16 ip address add 192.0.2.2/24 dev $h1
17 ip address add 2001:db8:1::2/64 dev $h1
28 ip address del 2001:db8:1::2/64 dev $h1
29 ip address del 192.0.2.2/24 dev $h1
31 ip link set dev $h1 down
38 ip link set dev $h2 master vrf-h2
40 ip link set dev vrf-h2 up
[all …]
Dvxlan_bridge_1q.sh107 tc qdisc add dev $h1 clsact
116 tc qdisc del dev $h1 clsact
123 tc qdisc add dev $h2 clsact
132 tc qdisc del dev $h2 clsact
138 ip address add dev $rp1 192.0.2.17/28
149 ip address del dev $rp1 192.0.2.17/28
158 ip link set dev br1 address $(mac_get $swp1)
159 ip link set dev br1 up
161 ip link set dev $rp1 up
167 ip link set dev vx10 up
[all …]
/external/toybox/tests/
Dpkill.test7 killall yes >/dev/null 2>&1
15 yes >/dev/null &
19 killall yes >/dev/null 2>&1
21 yes >/dev/null &
22 yes print1 >/dev/null &
23 yes print2 >/dev/null &
27 killall yes >/dev/null 2>&1
29 yes >/dev/null &
33 killall yes >/dev/null 2>&1
35 yes print1 >/dev/null &
[all …]
/external/ltp/testcases/kernel/controllers/cpuctl/
Dparameters.sh46 [ -d /dev/cpuctl/group_def ] || mkdir /dev/cpuctl/group_def;
56 echo 10000 > /dev/cpuctl/group_def/cpu.rt_runtime_us;
57 for task in `cat /dev/cpuctl/tasks`; do
58 echo $task > /dev/cpuctl/group_def/tasks 2>/dev/null 1>&2;
71 killall cpuctl_def_task01 1>/dev/null 2>&1;
72 killall cpuctl_def_task02 1>/dev/null 2>&1;
73 killall cpuctl_task_* 1>/dev/null 2>&1;
75 rm -f cpuctl_task_* 2>/dev/null
76 for task in `cat /dev/cpuctl/group_def/tasks`; do
77 echo $task > /dev/cpuctl/tasks 2>/dev/null 1>&2;
[all …]
/external/libiio/src/bindings/csharp/
DDevice.cs34 private IntPtr dev; field in iio.Device.DeviceAttr
37 …private static extern int iio_device_attr_read(IntPtr dev, [In()] string name, [Out()] StringBuild… in iio_device_attr_read() argument
40 …private static extern int iio_device_attr_write(IntPtr dev, [In()] string name, [In()] string val); in iio_device_attr_write() argument
42 public DeviceAttr(IntPtr dev, string name) : base(name) in DeviceAttr() argument
44 this.dev = dev; in DeviceAttr()
50 int err = iio_device_attr_read(dev, name, builder, 1024); in read()
58 int err = iio_device_attr_write(dev, name, str); in write()
66 private IntPtr dev; field in iio.Device.DeviceDebugAttr
69 …private static extern int iio_device_debug_attr_read(IntPtr dev, [In()] string name, [Out()] Strin… in iio_device_debug_attr_read() argument
72 …private static extern int iio_device_debug_attr_write(IntPtr dev, [In()] string name, [In()] strin… in iio_device_debug_attr_write() argument
[all …]
/external/ltp/testcases/kernel/device-drivers/pci/tpci_kernel/
Dltp_tpci.c86 struct pci_dev *dev; member
100 struct pci_dev *dev; in probe_pci_dev() local
102 if (ltp_pci.dev) { in probe_pci_dev()
103 pci_dev_put(ltp_pci.dev); in probe_pci_dev()
104 ltp_pci.dev = NULL; in probe_pci_dev()
107 dev = pci_get_bus_and_slot(bus, slot); in probe_pci_dev()
108 if (!dev || !dev->driver) in probe_pci_dev()
112 pci_name(dev), bus, slot); in probe_pci_dev()
114 ltp_pci.dev = dev; in probe_pci_dev()
115 ltp_pci.bus = dev->bus; in probe_pci_dev()
[all …]

12345678910>>...285