Home
last modified time | relevance | path

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

123456789

/device/google/contexthub/firmware/os/core/
Dspi.c35 struct SpiDevice dev; member
64 struct SpiDevice *dev = &state->dev; in spiMasterStart() local
66 if (dev->ops->masterStartAsync) in spiMasterStart()
67 return dev->ops->masterStartAsync(dev, cs, mode); in spiMasterStart()
69 if (dev->ops->masterStartSync) { in spiMasterStart()
70 int err = dev->ops->masterStartSync(dev, cs, mode); in spiMasterStart()
75 return dev->ops->masterRxTx(dev, state->packets[0].rxBuf, in spiMasterStart()
79 void spi_masterStartAsync_done(struct SpiDevice *dev, int err) in spi_masterStartAsync_done() argument
81 struct SpiDeviceState *state = SPI_DEVICE_TO_STATE(dev); in spi_masterStartAsync_done()
95 struct SpiDevice *dev = &state->dev; in spiMasterNext() local
[all …]
/device/google/cuttlefish/shared/config/
Dueventd.rc2 /dev/dri/card0 0660 system graphics
3 /dev/dri/controlD64 0660 system graphics
4 /dev/dri/renderD128 0666 system graphics
7 /dev/ion 0664 system system
10 /dev/block/pmem0 0770 system system
13 /dev/block/pmem1 0770 system system
16 /dev/hvc2 0660 system logd
19 /dev/hvc3 0666 system system
22 /dev/hvc4 0660 system system
25 /dev/hvc5 0660 bluetooth bluetooth
[all …]
Dinit.vendor.rc13 wait /dev/dri/card0
28 mkdir /dev/cpuctl/foreground
29 mkdir /dev/cpuctl/background
30 mkdir /dev/cpuctl/top-app
31 mkdir /dev/cpuctl/rt
32 chown system system /dev/cpuctl
33 chown system system /dev/cpuctl/foreground
34 chown system system /dev/cpuctl/background
35 chown system system /dev/cpuctl/top-app
36 chown system system /dev/cpuctl/rt
[all …]
/device/google/contexthub/firmware/os/inc/
Dspi_priv.h29 int (*masterStartSync)(struct SpiDevice *dev, spi_cs_t cs,
31 int (*masterStartAsync)(struct SpiDevice *dev, spi_cs_t cs,
34 int (*masterRxTx)(struct SpiDevice *dev, void *rxBuf, const void *txBuf,
37 int (*masterStopSync)(struct SpiDevice *dev);
38 int (*masterStopAsync)(struct SpiDevice *dev);
40 int (*slaveStartSync)(struct SpiDevice *dev, const struct SpiMode *mode);
41 int (*slaveStartAsync)(struct SpiDevice *dev, const struct SpiMode *mode);
43 int (*slaveIdle)(struct SpiDevice *dev, const struct SpiMode *mode);
44 int (*slaveRxTx)(struct SpiDevice *dev, void *rxBuf, const void *txBuf,
47 void (*slaveSetCsInterrupt)(struct SpiDevice *dev, bool enabled);
[all …]
/device/google/cuttlefish/tools/
Dflash-blk-dev.sh52 echo "${init_devs}" | grep "${blk_dev}" >/dev/null
82 sudo chmod 666 /dev/${blk_dev}
83 type pv > /dev/null 2>&1
85 pv ${image} > /dev/${blk_dev}
87 dd if=${image} of=/dev/${blk_dev} bs=1M conv=sync,noerror status=progress
96 …part_type=`sudo gdisk -l /dev/${blk_dev} 2>/dev/null | grep ": present" | sed 's/ *\([^:]*\):.*/\…
98 sudo parted -s /dev/${blk_dev} resizepart 1 100%
99 sudo e2fsck -y -f /dev/${blk_dev}1 >/dev/null 2>&1
100 sudo resize2fs /dev/${blk_dev}1 >/dev/null 2>&1
102 parts=`sudo gdisk -l /dev/${blk_dev} | grep "^Number" -A999 | tail -n +2 | wc -l`
[all …]
/device/amlogic/yukawa/
Dueventd.rc6 /dev/mali0 0666 system graphics
7 /dev/dma_heap/system 0666 system graphics
8 /dev/dma_heap/linux,cma 0666 system graphics
9 /dev/dma_heap/reserved 0666 system graphics
10 /dev/dri/card0 0660 system graphics
11 /dev/dri/card1 0660 system graphics
12 /dev/dri/card2 0660 system graphics
13 /dev/dri/renderD128 0666 system graphics
14 /dev/cec0 0666 system graphics
15 /dev/i2c-0 0666 system system
[all …]
/device/generic/goldfish/
Dueventd.ranchu.rc2 /dev/ion 0664 system system
3 /dev/goldfish_pipe 0666 system system
4 /dev/goldfish_pipe_dprctd 0666 system system
5 /dev/ttyS* 0666 system system
6 /dev/goldfish_sync 0666 system system
7 /dev/vport* 0666 system system
8 /dev/goldfish_address_space 0666 system system
9 /dev/dri/card0 0660 system graphics
10 /dev/dri/controlD64 0660 system graphics
11 /dev/dri/renderD128 0666 system graphics
[all …]
Dinit.ranchu.rc35 setprop vendor.qemu.dev.bootcomplete 0
47 mkdir /dev/cpuctl/foreground
48 mkdir /dev/cpuctl/background
49 mkdir /dev/cpuctl/top-app
50 mkdir /dev/cpuctl/rt
51 chown system system /dev/cpuctl
52 chown system system /dev/cpuctl/foreground
53 chown system system /dev/cpuctl/background
54 chown system system /dev/cpuctl/top-app
55 chown system system /dev/cpuctl/rt
[all …]
/device/linaro/hikey/
Dueventd.common.rc6 /dev/hci_tty 0666 root root
7 /dev/ttyAMA1 0660 bluetooth bluetooth
8 /dev/ttyAMA4 0660 bluetooth bluetooth
9 /dev/mali 0666 system graphics
10 /dev/mali0 0666 system graphics
11 /dev/nanohub 0660 system system
12 /dev/nanohub_comms 0660 system system
13 /dev/hifi_misc 0666 system audio
14 /dev/hi_vdec 0660 system camera
15 /dev/hi_venc 0660 system camera
[all …]
Dinit.hikey.power.rc14 chown system system /dev/stune/top-app/schedtune.boost
15 chown system system /dev/stune/top-app/schedtune.prefer_idle
16 chown system system /dev/stune/foreground/schedtune.boost
17 chown system system /dev/stune/foreground/schedtune.prefer_idle
18 chown system system /dev/stune/schedtune.boost
20 write /dev/stune/top-app/schedtune.boost 10
21 write /dev/stune/top-app/schedtune.prefer_idle 1
22 write /dev/stune/foreground/schedtune.boost 0
23 write /dev/stune/foreground/schedtune.prefer_idle 1
24 write /dev/stune/schedtune.boost 0
/device/linaro/hikey/gralloc960/legacy/
Dalloc_device.cpp43 static int alloc_device_alloc(alloc_device_t *dev, int w, int h, int format, int usage, buffer_hand… in alloc_device_alloc() argument
49 if (!dev || !pHandle || !pStride) in alloc_device_alloc()
54 m = reinterpret_cast<private_module_t *>(dev->common.module); in alloc_device_alloc()
132 static int alloc_device_free(alloc_device_t *dev, buffer_handle_t handle) in alloc_device_free() argument
140 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in alloc_device_free()
159 alloc_device_t *dev; in alloc_device_open() local
163 dev = new alloc_device_t; in alloc_device_open()
165 if (NULL == dev) in alloc_device_open()
171 memset(dev, 0, sizeof(*dev)); in alloc_device_open()
174 dev->common.tag = HARDWARE_DEVICE_TAG; in alloc_device_open()
[all …]
/device/amlogic/yukawa/hal/gralloc/legacy/
Dalloc_device.cpp43 static int alloc_device_alloc(alloc_device_t *dev, int w, int h, int format, int usage, buffer_hand… in alloc_device_alloc() argument
49 if (!dev || !pHandle || !pStride) in alloc_device_alloc()
54 m = reinterpret_cast<private_module_t *>(dev->common.module); in alloc_device_alloc()
133 static int alloc_device_free(alloc_device_t *dev, buffer_handle_t handle) in alloc_device_free() argument
141 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in alloc_device_free()
160 alloc_device_t *dev; in alloc_device_open() local
164 dev = new alloc_device_t; in alloc_device_open()
166 if (NULL == dev) in alloc_device_open()
172 memset(dev, 0, sizeof(*dev)); in alloc_device_open()
175 dev->common.tag = HARDWARE_DEVICE_TAG; in alloc_device_open()
[all …]
/device/google/trout/hal/sensors/2.1/tests/
DIioUtilsTest.cpp33 static bool sensorFilter(iio_device_data* dev) { in sensorFilter() argument
38 if (!dev) return false; in sensorFilter()
40 const auto iter = KNOWN_SENSORS.find(dev->name); in sensorFilter()
43 dev->type = iter->second; in sensorFilter()
88 static bool writeAccelDevice(const std::string& td_path, const iio_device_data& dev) { in writeAccelDevice() argument
90 ss << concatPaths(td_path, "iio:device") << std::to_string(dev.iio_dev_num); in writeAccelDevice()
96 if (!writeFile(concatPaths(dev_path, "name"), dev.name)) return false; in writeAccelDevice()
97 if (!writeFile(concatPaths(dev_path, "in_accel_x_scale"), dev.scale)) return false; in writeAccelDevice()
98 if (!writeFile(concatPaths(dev_path, "in_accel_y_scale"), dev.scale)) return false; in writeAccelDevice()
99 if (!writeFile(concatPaths(dev_path, "in_accel_z_scale"), dev.scale)) return false; in writeAccelDevice()
[all …]
/device/linaro/hikey/gralloc960/
Dframebuffer_device.cpp57 static int fb_set_swap_interval(struct framebuffer_device_t *dev, int interval) in fb_set_swap_interval() argument
59 if (interval < dev->minSwapInterval) in fb_set_swap_interval()
61 interval = dev->minSwapInterval; in fb_set_swap_interval()
63 else if (interval > dev->maxSwapInterval) in fb_set_swap_interval()
65 interval = dev->maxSwapInterval; in fb_set_swap_interval()
68 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in fb_set_swap_interval()
73 gralloc_vsync_disable(dev); in fb_set_swap_interval()
77 gralloc_vsync_enable(dev); in fb_set_swap_interval()
83 static int fb_post(struct framebuffer_device_t *dev, buffer_handle_t buffer) in fb_post() argument
91 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in fb_post()
[all …]
/device/amlogic/yukawa/hal/gralloc/
Dframebuffer_device.cpp57 static int fb_set_swap_interval(struct framebuffer_device_t *dev, int interval) in fb_set_swap_interval() argument
59 if (interval < dev->minSwapInterval) in fb_set_swap_interval()
61 interval = dev->minSwapInterval; in fb_set_swap_interval()
63 else if (interval > dev->maxSwapInterval) in fb_set_swap_interval()
65 interval = dev->maxSwapInterval; in fb_set_swap_interval()
68 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in fb_set_swap_interval()
73 gralloc_vsync_disable(dev); in fb_set_swap_interval()
77 gralloc_vsync_enable(dev); in fb_set_swap_interval()
83 static int fb_post(struct framebuffer_device_t *dev, buffer_handle_t buffer) in fb_post() argument
91 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in fb_post()
[all …]
/device/linaro/hikey/gralloc/
Dframebuffer_device.cpp52 static int fb_set_swap_interval(struct framebuffer_device_t *dev, int interval) in fb_set_swap_interval() argument
54 if (interval < dev->minSwapInterval) in fb_set_swap_interval()
56 interval = dev->minSwapInterval; in fb_set_swap_interval()
58 else if (interval > dev->maxSwapInterval) in fb_set_swap_interval()
60 interval = dev->maxSwapInterval; in fb_set_swap_interval()
68 static int fb_post(struct framebuffer_device_t *dev, buffer_handle_t buffer) in fb_post() argument
76 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in fb_post()
420 framebuffer_device_t *dev = reinterpret_cast<framebuffer_device_t *>(device); in fb_close() local
422 if (dev) in fb_close()
427 free(dev); in fb_close()
[all …]
Dalloc_device.cpp199 static int gralloc_alloc_buffer(alloc_device_t *dev, size_t size, int usage, buffer_handle_t *pHand… in gralloc_alloc_buffer() argument
203 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in gralloc_alloc_buffer()
280 MALI_IGNORE(dev); in gralloc_alloc_buffer()
367 static int gralloc_alloc_framebuffer_locked(alloc_device_t *dev, size_t size, int usage, buffer_han… in gralloc_alloc_framebuffer_locked() argument
369 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in gralloc_alloc_framebuffer_locked()
394 return gralloc_alloc_buffer(dev, bufferSize, newUsage, pHandle); in gralloc_alloc_framebuffer_locked()
450 return gralloc_alloc_buffer(dev, bufferSize, newUsage, pHandle); in gralloc_alloc_framebuffer_locked()
468 static int gralloc_alloc_framebuffer(alloc_device_t *dev, size_t size, int usage, buffer_handle_t *… in gralloc_alloc_framebuffer() argument
470 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in gralloc_alloc_framebuffer()
472 int err = gralloc_alloc_framebuffer_locked(dev, size, usage, pHandle); in gralloc_alloc_framebuffer()
[all …]
/device/linaro/dragonboard/shared/utils/sdcard-boot/sepolicy/
Dfile_contexts1 /dev/block/platform/soc@0/8804000\.mmc/by-name/fsc u:object_r:modem_block_device:s0
2 /dev/block/platform/soc@0/8804000\.mmc/by-name/fsg u:object_r:modem_block_device:s0
3 /dev/block/platform/soc@0/8804000\.mmc/by-name/modemst[12] u:object_r:modem_block_device:s0
4 /dev/block/platform/soc@0/8804000\.mmc/by-name/metadata u:object_r:metadata_block_device:s0
5 /dev/block/platform/soc@0/8804000\.mmc/by-name/super u:object_r:super_block_device:s0
6 /dev/block/platform/soc@0/8804000\.mmc/by-name/userdata u:object_r:userdata_block_device:s0
7 /dev/block/platform/soc@0/8804000\.mmc/by-name/misc u:object_r:misc_block_device:s0
9 /dev/block/platform/soc@0/8804000\.sdhci/by-name/fsc u:object_r:modem_block_device:s0
10 /dev/block/platform/soc@0/8804000\.sdhci/by-name/fsg u:object_r:modem_block_device:s0
11 /dev/block/platform/soc@0/8804000\.sdhci/by-name/modemst[12] u:object_r:modem_block_device:s0
[all …]
/device/linaro/hikey/sepolicy/
Dfile_contexts1 /dev/ttyAMA0 u:object_r:console_device:s0
2 /dev/ttyAMA3 u:object_r:console_device:s0
3 /dev/ttyAMA5 u:object_r:console_device:s0
4 /dev/ttyFIQ0 u:object_r:console_device:s0
5 /dev/mali u:object_r:gpu_device:s0
6 /dev/mali0 u:object_r:gpu_device:s0
7 /dev/nanohub u:object_r:sensors_device:s0
8 /dev/nanohub_comms u:object_r:sensors_device:s0
9 /dev/dri/card0 u:object_r:gpu_device:s0
10 /dev/hci_tty u:object_r:hci_attach_dev:s0
[all …]
/device/google/cuttlefish_vmm/aarch64-linux-gnu/
Dbuilder-packages.txt5 autotools-dev 20180224.1
38 dpkg-dev 1.19.8
111 libc-dev-bin 2.28-10+deb10u4
113 libc6-dev:arm64 2.28-10+deb10u4
115 libcap-dev:arm64 1:2.25-2
121 libclang-common-7-dev 1:7.0.1-8+deb10u2
150 libdrm-dev:arm64 2.4.97-1
161 libegl1-mesa-dev:arm64 18.3.6-2+deb10u1
169 libexpat1-dev:arm64 2.2.6-2+deb10u7
173 libfdt-dev 1.4.7-4
[all …]
/device/google/cuttlefish_vmm/x86_64-linux-gnu/
Dbuilder-packages.txt5 autotools-dev 20180224.1
44 dpkg-dev 1.19.8
127 libc-dev-bin 2.28-10+deb10u4
130 libc6-dev:amd64 2.28-10+deb10u4
131 libc6-dev-arm64-cross 2.28-7cross1
134 libcap-dev:amd64 1:2.25-2
140 libclang-common-7-dev 1:7.0.1-8+deb10u2
172 libdrm-dev:amd64 2.4.97-1
181 libegl1-mesa-dev:amd64 18.3.6-2+deb10u1
189 libexpat1-dev:amd64 2.2.6-2+deb10u7
[all …]
/device/amlogic/yukawa/sepolicy/
Dfile_contexts2 /dev/ttyAML0 u:object_r:console_device:s0
3 /dev/mali0 u:object_r:gpu_device:s0
4 /dev/dri/card0 u:object_r:gpu_device:s0
5 /dev/dri/card1 u:object_r:gpu_device:s0
6 /dev/dri/renderD128 u:object_r:gpu_device:s0
7 /dev/dri u:object_r:gpu_device:s0
8 /dev/block/zram0 u:object_r:swap_block_device:s0
9 /dev/cec0 u:object_r:cec_device:s0
10 /dev/i2c-0 u:object_r:led_device:s0
11 /dev/nanohub u:object_r:sensors_device:s0
[all …]
/device/generic/goldfish/sepolicy/vendor/
Dfile_contexts2 /dev/block/mtdblock0 u:object_r:system_block_device:s0
3 /dev/block/mtdblock1 u:object_r:userdata_block_device:s0
4 /dev/block/mtdblock2 u:object_r:cache_block_device:s0
7 /dev/block/vda u:object_r:system_block_device:s0
8 /dev/block/vdb u:object_r:cache_block_device:s0
9 /dev/block/vdc u:object_r:userdata_block_device:s0
10 /dev/block/vdd u:object_r:metadata_block_device:s0
11 /dev/block/vde u:object_r:system_block_device:s0
12 /dev/block/zram0 u:object_r:swap_block_device:s0
14 /dev/goldfish_pipe_dprctd u:object_r:qemu_device:s0
[all …]
/device/google/cuttlefish/shared/sepolicy/vendor/
Dfile_contexts5 /dev/block/by-name/misc u:object_r:misc_block_device:s0
6 /dev/block/by-name/boot_[ab] u:object_r:boot_block_device:s0
7 /dev/block/by-name/init_boot_[ab] u:object_r:boot_block_device:s0
8 /dev/block/by-name/vendor_boot_[ab] u:object_r:boot_block_device:s0
9 /dev/block/by-name/vbmeta_[ab] u:object_r:ab_block_device:s0
10 /dev/block/by-name/vbmeta_system_[ab] u:object_r:ab_block_device:s0
11 /dev/block/by-name/vbmeta_vendor_dlkm_[ab] u:object_r:ab_block_device:s0
12 /dev/block/by-name/vbmeta_system_dlkm_[ab] u:object_r:ab_block_device:s0
13 /dev/block/by-name/super u:object_r:super_block_device:s0
14 /dev/block/by-name/userdata u:object_r:userdata_block_device:s0
[all …]
/device/generic/goldfish/tools/
Dmk_qemu_image.sh28 ${SIMG2IMG:-simg2img} $srcimg $tmpfile > /dev/null 2>&1
32 dd if=/dev/zero of=$target ibs=1024k count=1 > /dev/null 2>&1
33 dd if=$srcimg of=$target conv=notrunc,sync ibs=1024k obs=1024k seek=1 > /dev/null 2>&1
37 dd if=/dev/zero of=$target conv=notrunc bs=1 count=1024k seek=$curdisksize > /dev/null 2>&1
42 ${SGDISK:-sgdisk} --clear $target > /dev/null 2>&1
43 ${SGDISK:-sgdisk} --new=1:2048:$end --type=1:8300 --change-name=1:$label $target > /dev/null 2>&1

123456789