/hardware/google/gchips/include/ |
D | exynos_v4l2.h | 51 int exynos_v4l2_close(int fd); 53 bool exynos_v4l2_enuminput(int fd, int index, char *input_name_buf); 55 int exynos_v4l2_s_input(int fd, int index); 57 bool exynos_v4l2_querycap(int fd, unsigned int need_caps); 59 bool exynos_v4l2_enum_fmt(int fd, enum v4l2_buf_type type, unsigned int fmt); 61 int exynos_v4l2_g_fmt(int fd, struct v4l2_format *fmt); 63 int exynos_v4l2_s_fmt(int fd, struct v4l2_format *fmt); 65 int exynos_v4l2_try_fmt(int fd, struct v4l2_format *fmt); 67 int exynos_v4l2_reqbufs(int fd, struct v4l2_requestbuffers *req); 69 int exynos_v4l2_querybuf(int fd, struct v4l2_buffer *buf); [all …]
|
/hardware/google/graphics/common/libv4l2/ |
D | exynos_v4l2.h | 51 int exynos_v4l2_close(int fd); 53 bool exynos_v4l2_enuminput(int fd, int index, char *input_name_buf); 55 int exynos_v4l2_s_input(int fd, int index); 57 bool exynos_v4l2_querycap(int fd, unsigned int need_caps); 59 bool exynos_v4l2_enum_fmt(int fd, enum v4l2_buf_type type, unsigned int fmt); 61 int exynos_v4l2_g_fmt(int fd, struct v4l2_format *fmt); 63 int exynos_v4l2_s_fmt(int fd, struct v4l2_format *fmt); 65 int exynos_v4l2_try_fmt(int fd, struct v4l2_format *fmt); 67 int exynos_v4l2_reqbufs(int fd, struct v4l2_requestbuffers *req); 69 int exynos_v4l2_querybuf(int fd, struct v4l2_buffer *buf); [all …]
|
D | exynos_v4l2.c | 82 int fd; in __v4l2_open() local 87 fd = open(filename, oflag, mode); in __v4l2_open() 89 return fd; in __v4l2_open() 95 int fd; in exynos_v4l2_open() local 100 fd = __v4l2_open(filename, oflag, ap); in exynos_v4l2_open() 105 return fd; in exynos_v4l2_open() 111 int fd = -1; in exynos_v4l2_open_devname() local 166 fd = __v4l2_open(filename, oflag, ap); in exynos_v4l2_open_devname() 169 if (fd > 0) in exynos_v4l2_open_devname() 179 return fd; in exynos_v4l2_open_devname() [all …]
|
D | exynos_subdev.c | 50 int fd; in __subdev_open() local 55 fd = open(filename, oflag, mode); in __subdev_open() 57 return fd; in __subdev_open() 63 int fd; in exynos_subdev_open() local 66 fd = __subdev_open(filename, oflag, ap); in exynos_subdev_open() 69 return fd; in exynos_subdev_open() 134 int fd = -1; in exynos_subdev_open_devname() local 186 fd = __subdev_open(filename, oflag, ap); in exynos_subdev_open_devname() 189 if (fd > 0) in exynos_subdev_open_devname() 197 return fd; in exynos_subdev_open_devname() [all …]
|
/hardware/interfaces/automotive/audiocontrol/2.0/default/ |
D | AudioControl.cpp | 92 Return<void> AudioControl::debug(const hidl_handle& fd, const hidl_vec<hidl_string>& options) { in debug() argument 93 if (fd.getNativeHandle() == nullptr || fd->numFds == 0) { in debug() 98 cmdDump(fd->data[0], options); in debug() 102 void AudioControl::cmdDump(int fd, const hidl_vec<hidl_string>& options) { in cmdDump() argument 104 dump(fd); in cmdDump() 110 cmdHelp(fd); in cmdDump() 112 cmdRequestFocus(fd, options); in cmdDump() 114 cmdAbandonFocus(fd, options); in cmdDump() 116 dprintf(fd, "Invalid option: %s\n", option.c_str()); in cmdDump() 120 void AudioControl::dump(int fd) { in dump() argument [all …]
|
/hardware/google/graphics/common/libgscaler/ |
D | exynos_subdev.c | 53 int fd; in __subdev_open() local 58 fd = open(filename, oflag, mode); in __subdev_open() 60 return fd; in __subdev_open() 66 int fd; in exynos_subdev_open() local 69 fd = __subdev_open(filename, oflag, ap); in exynos_subdev_open() 72 return fd; in exynos_subdev_open() 137 int fd = -1; in exynos_subdev_open_devname() local 189 fd = __subdev_open(filename, oflag, ap); in exynos_subdev_open_devname() 192 if (fd > 0) in exynos_subdev_open_devname() 200 return fd; in exynos_subdev_open_devname() [all …]
|
/hardware/qcom/bt/msm8909/libbt-vendor/src/ |
D | hci_smd.c | 59 int fd = -1; in bt_hci_init_transport_id() local 67 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 69 while ((-1 == fd) && (retry < 7)) { in bt_hci_init_transport_id() 73 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 77 if (-1 == fd) in bt_hci_init_transport_id() 110 if (tcflush(fd, TCIOFLUSH) < 0) in bt_hci_init_transport_id() 113 close(fd); in bt_hci_init_transport_id() 117 if (tcgetattr(fd, &term) < 0) in bt_hci_init_transport_id() 120 close(fd); in bt_hci_init_transport_id() 131 if (tcsetattr(fd, TCSANOW, &term) < 0) in bt_hci_init_transport_id() [all …]
|
/hardware/qcom/bt/msm8909w_3100/libbt-vendor/src/ |
D | hci_smd.c | 59 int fd = -1; in bt_hci_init_transport_id() local 67 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 69 while ((-1 == fd) && (retry < 7)) { in bt_hci_init_transport_id() 73 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 77 if (-1 == fd) in bt_hci_init_transport_id() 110 if (tcflush(fd, TCIOFLUSH) < 0) in bt_hci_init_transport_id() 113 close(fd); in bt_hci_init_transport_id() 117 if (tcgetattr(fd, &term) < 0) in bt_hci_init_transport_id() 120 close(fd); in bt_hci_init_transport_id() 131 if (tcsetattr(fd, TCSANOW, &term) < 0) in bt_hci_init_transport_id() [all …]
|
/hardware/qcom/bt/msm8996/libbt-vendor/src/ |
D | hci_smd.c | 62 int fd = -1; in bt_hci_init_transport_id() local 70 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 72 while ((-1 == fd) && (retry < 7)) { in bt_hci_init_transport_id() 76 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 80 if (-1 == fd) in bt_hci_init_transport_id() 113 if (tcflush(fd, TCIOFLUSH) < 0) in bt_hci_init_transport_id() 116 close(fd); in bt_hci_init_transport_id() 120 if (tcgetattr(fd, &term) < 0) in bt_hci_init_transport_id() 123 close(fd); in bt_hci_init_transport_id() 134 if (tcsetattr(fd, TCSANOW, &term) < 0) in bt_hci_init_transport_id() [all …]
|
/hardware/qcom/bt/msm8992/libbt-vendor/src/ |
D | hci_smd.c | 58 int fd = -1; in bt_hci_init_transport_id() local 66 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 68 while ((-1 == fd) && (retry < 7)) { in bt_hci_init_transport_id() 72 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 76 if (-1 == fd) in bt_hci_init_transport_id() 109 if (tcflush(fd, TCIOFLUSH) < 0) in bt_hci_init_transport_id() 112 close(fd); in bt_hci_init_transport_id() 116 if (tcgetattr(fd, &term) < 0) in bt_hci_init_transport_id() 119 close(fd); in bt_hci_init_transport_id() 130 if (tcsetattr(fd, TCSANOW, &term) < 0) in bt_hci_init_transport_id() [all …]
|
D | hci_uart.c | 186 void userial_ioctl_init_bt_wake(int fd) in userial_ioctl_init_bt_wake() argument 191 ioctl(fd, USERIAL_IOCTL_BT_WAKE_ASSERT, NULL); in userial_ioctl_init_bt_wake() 192 ioctl(fd, USERIAL_IOCTL_BT_WAKE_GET_ST, &bt_wake_state); in userial_ioctl_init_bt_wake() 214 vnd_userial.fd = -1; in userial_vendor_init() 234 vnd_userial.fd = -1; in userial_vendor_open() 279 if ((vnd_userial.fd = open(vnd_userial.port_name, O_RDWR|O_NOCTTY)) == -1) in userial_vendor_open() 285 tcflush(vnd_userial.fd, TCIOFLUSH); in userial_vendor_open() 287 tcgetattr(vnd_userial.fd, &vnd_userial.termios); in userial_vendor_open() 294 tcsetattr(vnd_userial.fd, TCSANOW, &vnd_userial.termios); in userial_vendor_open() 299 tcsetattr(vnd_userial.fd, TCSANOW, &vnd_userial.termios); in userial_vendor_open() [all …]
|
/hardware/qcom/bt/msm8998/libbt-vendor/src/ |
D | hci_smd.c | 62 int fd = -1; in bt_hci_init_transport_id() local 70 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 72 while ((-1 == fd) && (retry < 7)) { in bt_hci_init_transport_id() 76 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 80 if (-1 == fd) in bt_hci_init_transport_id() 113 if (tcflush(fd, TCIOFLUSH) < 0) in bt_hci_init_transport_id() 116 close(fd); in bt_hci_init_transport_id() 120 if (tcgetattr(fd, &term) < 0) in bt_hci_init_transport_id() 123 close(fd); in bt_hci_init_transport_id() 134 if (tcsetattr(fd, TCSANOW, &term) < 0) in bt_hci_init_transport_id() [all …]
|
/hardware/qcom/gps/msm8994/loc_api/libloc_api_50001/ |
D | loc_eng_dmn_conn_glue_pipe.c | 63 int fd; in loc_eng_dmn_conn_glue_pipeget() local 82 fd = open(pipe_name, mode); in loc_eng_dmn_conn_glue_pipeget() 83 if (fd <= 0) in loc_eng_dmn_conn_glue_pipeget() 87 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_pipeget() 88 return fd; in loc_eng_dmn_conn_glue_pipeget() 110 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd) in loc_eng_dmn_conn_glue_piperemove() argument 112 close(fd); in loc_eng_dmn_conn_glue_piperemove() 114 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_piperemove() 138 int loc_eng_dmn_conn_glue_pipewrite(int fd, const void * buf, size_t sz) in loc_eng_dmn_conn_glue_pipewrite() argument 142 result = write(fd, buf, sz); in loc_eng_dmn_conn_glue_pipewrite() [all …]
|
/hardware/qcom/gps/msm8960/loc_api/libloc_api_50001/ |
D | loc_eng_dmn_conn_glue_pipe.c | 63 int fd; in loc_eng_dmn_conn_glue_pipeget() local 82 fd = open(pipe_name, mode); in loc_eng_dmn_conn_glue_pipeget() 83 if (fd <= 0) in loc_eng_dmn_conn_glue_pipeget() 87 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_pipeget() 88 return fd; in loc_eng_dmn_conn_glue_pipeget() 110 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd) in loc_eng_dmn_conn_glue_piperemove() argument 112 close(fd); in loc_eng_dmn_conn_glue_piperemove() 114 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_piperemove() 138 int loc_eng_dmn_conn_glue_pipewrite(int fd, const void * buf, size_t sz) in loc_eng_dmn_conn_glue_pipewrite() argument 142 result = write(fd, buf, sz); in loc_eng_dmn_conn_glue_pipewrite() [all …]
|
/hardware/qcom/gps/loc_api/libloc_api_50001/ |
D | loc_eng_dmn_conn_glue_pipe.c | 63 int fd; in loc_eng_dmn_conn_glue_pipeget() local 82 fd = open(pipe_name, mode); in loc_eng_dmn_conn_glue_pipeget() 83 if (fd <= 0) in loc_eng_dmn_conn_glue_pipeget() 87 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_pipeget() 88 return fd; in loc_eng_dmn_conn_glue_pipeget() 110 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd) in loc_eng_dmn_conn_glue_piperemove() argument 112 close(fd); in loc_eng_dmn_conn_glue_piperemove() 114 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_piperemove() 138 int loc_eng_dmn_conn_glue_pipewrite(int fd, const void * buf, size_t sz) in loc_eng_dmn_conn_glue_pipewrite() argument 142 result = write(fd, buf, sz); in loc_eng_dmn_conn_glue_pipewrite() [all …]
|
/hardware/qcom/gps/msm8909/loc_api/libloc_api_50001/ |
D | loc_eng_dmn_conn_glue_pipe.c | 63 int fd; in loc_eng_dmn_conn_glue_pipeget() local 82 fd = open(pipe_name, mode); in loc_eng_dmn_conn_glue_pipeget() 83 if (fd <= 0) in loc_eng_dmn_conn_glue_pipeget() 87 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_pipeget() 88 return fd; in loc_eng_dmn_conn_glue_pipeget() 110 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd) in loc_eng_dmn_conn_glue_piperemove() argument 112 close(fd); in loc_eng_dmn_conn_glue_piperemove() 114 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_piperemove() 138 int loc_eng_dmn_conn_glue_pipewrite(int fd, const void * buf, size_t sz) in loc_eng_dmn_conn_glue_pipewrite() argument 142 result = write(fd, buf, sz); in loc_eng_dmn_conn_glue_pipewrite() [all …]
|
/hardware/qcom/gps/msm8084/loc_api/libloc_api_50001/ |
D | loc_eng_dmn_conn_glue_pipe.c | 63 int fd; in loc_eng_dmn_conn_glue_pipeget() local 82 fd = open(pipe_name, mode); in loc_eng_dmn_conn_glue_pipeget() 83 if (fd <= 0) in loc_eng_dmn_conn_glue_pipeget() 87 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_pipeget() 88 return fd; in loc_eng_dmn_conn_glue_pipeget() 110 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd) in loc_eng_dmn_conn_glue_piperemove() argument 112 close(fd); in loc_eng_dmn_conn_glue_piperemove() 114 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_piperemove() 138 int loc_eng_dmn_conn_glue_pipewrite(int fd, const void * buf, size_t sz) in loc_eng_dmn_conn_glue_pipewrite() argument 142 result = write(fd, buf, sz); in loc_eng_dmn_conn_glue_pipewrite() [all …]
|
/hardware/qcom/gps/msm8996/loc_api/libloc_api_50001/ |
D | loc_eng_dmn_conn_glue_pipe.c | 63 int fd; in loc_eng_dmn_conn_glue_pipeget() local 82 fd = open(pipe_name, mode); in loc_eng_dmn_conn_glue_pipeget() 83 if (fd <= 0) in loc_eng_dmn_conn_glue_pipeget() 87 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_pipeget() 88 return fd; in loc_eng_dmn_conn_glue_pipeget() 110 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd) in loc_eng_dmn_conn_glue_piperemove() argument 112 close(fd); in loc_eng_dmn_conn_glue_piperemove() 114 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_piperemove() 138 int loc_eng_dmn_conn_glue_pipewrite(int fd, const void * buf, size_t sz) in loc_eng_dmn_conn_glue_pipewrite() argument 142 result = write(fd, buf, sz); in loc_eng_dmn_conn_glue_pipewrite() [all …]
|
/hardware/qcom/bt/msm8960/libbt-vendor/src/ |
D | userial_vendor.c | 71 int fd; in bt_hci_init_transport() local 73 fd = bt_hci_init_transport_id(i); in bt_hci_init_transport() 74 if(fd < 0 ){ in bt_hci_init_transport() 77 pFd[i] = fd; in bt_hci_init_transport() 85 int fd = -1; in bt_hci_init_transport_id() local 91 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 93 while ((-1 == fd) && (retry < 7)) { in bt_hci_init_transport_id() 97 fd = open(bt_hci_transport_device.name, (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 101 if (-1 == fd) in bt_hci_init_transport_id() 116 if (tcflush(fd, TCIOFLUSH) < 0) in bt_hci_init_transport_id() [all …]
|
/hardware/google/graphics/common/libion/test/ |
D | ion_allocate_special.cpp | 35 int fd = open(pathname.c_str(), O_RDWR); in flushShrinker() local 36 if (fd < 0) in flushShrinker() 40 if (write(fd, &val, sizeof(val)) < 0) in flushShrinker() 42 if (read(fd, &val, sizeof(val)) < 0) in flushShrinker() 46 close(fd); in flushShrinker() 51 void ionTestPhys(int fd, unsigned int cmd) { in ionTestPhys() argument 54 EXPECT_EQ(0, ret = ioctl(getTestDevFd(), ION_IOC_TEST_SET_FD, fd)); in ionTestPhys() 79 int fd = ionAlloc(size, getHeapMask(i), 0); in TEST_F() local 84 EXPECT_LT(2, fd); in TEST_F() 85 EXPECT_GT(1024, fd); in TEST_F() [all …]
|
D | ion_device_test.cpp | 52 int fd = ionAlloc(size, getHeapMask(i), 0); in TEST_F() local 53 ASSERT_LT(2, fd); in TEST_F() 56 void *src = ionMmap(fd, size); in TEST_F() 60 ionTestReadKernel(fd, dst, size, 0); in TEST_F() 68 EXPECT_EQ(0, close(fd)); in TEST_F() 89 int fd = ionAlloc(size, getHeapMask(i), 0); in TEST_F() local 90 ASSERT_LT(2, fd); in TEST_F() 93 void *dst = ionMmap(fd, size); in TEST_F() 98 ionTestWriteKernel(fd, src, size, 0); in TEST_F() 106 EXPECT_EQ(0, close(fd)); in TEST_F() [all …]
|
/hardware/qcom/sm7250/media/mm-video-v4l2/vidc/common/inc/ |
D | vidc_common.h | 105 void do_sync_ioctl(int fd, struct dma_buf_sync* sync); 107 static inline void sync_start_write(int fd) { in sync_start_write() argument 110 do_sync_ioctl(fd, &sync); in sync_start_write() 113 static inline void sync_end_write(int fd) { in sync_end_write() argument 116 do_sync_ioctl(fd, &sync); in sync_end_write() 119 static inline void sync_start_read(int fd) { in sync_start_read() argument 122 do_sync_ioctl(fd, &sync); in sync_start_read() 125 static inline void sync_end_read(int fd) { in sync_end_read() argument 128 do_sync_ioctl(fd, &sync); in sync_end_read() 131 static inline void sync_start_rw(int fd) { in sync_start_rw() argument [all …]
|
/hardware/broadcom/libbt/src/ |
D | userial_vendor.c | 63 int fd; /* fd to Bluetooth device */ member 138 void userial_ioctl_init_bt_wake(int fd) in userial_ioctl_init_bt_wake() argument 146 if (ioctl(vnd_userial.fd, TIOCSETD, &ldisc) < 0) in userial_ioctl_init_bt_wake() 149 fd, errno, ldisc); in userial_ioctl_init_bt_wake() 156 ioctl(fd, USERIAL_IOCTL_BT_WAKE_ASSERT, NULL); in userial_ioctl_init_bt_wake() 157 ioctl(fd, USERIAL_IOCTL_BT_WAKE_GET_ST, &bt_wake_state); in userial_ioctl_init_bt_wake() 179 vnd_userial.fd = -1; in userial_vendor_init() 200 vnd_userial.fd = -1; in userial_vendor_open() 245 if ((vnd_userial.fd = open(vnd_userial.port_name, O_RDWR)) == -1) in userial_vendor_open() 251 tcflush(vnd_userial.fd, TCIOFLUSH); in userial_vendor_open() [all …]
|
/hardware/qcom/display/msm8960/liboverlay/ |
D | mdpWrapper.h | 49 bool getFScreenInfo(int fd, fb_fix_screeninfo& finfo); 52 bool getVScreenInfo(int fd, fb_var_screeninfo& vinfo); 55 bool setVScreenInfo(int fd, fb_var_screeninfo& vinfo); 58 bool startRotator(int fd, msm_rotator_img_info& rot); 61 bool rotate(int fd, msm_rotator_data_info& rot); 64 bool setOverlay(int fd, mdp_overlay& ov); 67 bool endRotator(int fd, int sessionId); 70 bool unsetOverlay(int fd, int ovId); 73 bool getOverlay(int fd, mdp_overlay& ov); 76 bool play(int fd, msmfb_overlay_data& od); [all …]
|
/hardware/qcom/display/msm8084/liboverlay/ |
D | mdpWrapper.h | 51 bool getFScreenInfo(int fd, fb_fix_screeninfo& finfo); 54 bool getVScreenInfo(int fd, fb_var_screeninfo& vinfo); 57 bool setVScreenInfo(int fd, fb_var_screeninfo& vinfo); 60 bool startRotator(int fd, msm_rotator_img_info& rot); 63 bool rotate(int fd, msm_rotator_data_info& rot); 66 bool setOverlay(int fd, mdp_overlay& ov); 69 bool validateAndSet(const int& fd, mdp_overlay_list& list); 72 bool endRotator(int fd, int sessionId); 75 bool unsetOverlay(int fd, int ovId); 78 bool getOverlay(int fd, mdp_overlay& ov); [all …]
|