/hardware/qcom/bt/msm8998/libbt-vendor/src/ |
H A D | hw_ar3k.c | 236 int set_speed(int fd, struct termios *ti, int speed) argument 244 if (tcsetattr(fd, TCSANOW, ti) < 0) 297 static int write_cmd(int fd, uint8_t *buffer, int len) argument 302 err = send_hci_cmd_sync(fd, buffer, len, &event); 319 static int write_ps_cmd(int fd, uint8_t opcode, uint32_t ps_param) argument 328 if (write_cmd(fd, cmd, HCI_PS_CMD_HDR_LEN) < 0) 339 if (write_cmd(fd, cmd, PS_RESET_CMD_LEN) < 0) 351 if (write_cmd(fd, cmd, ps_list[i].len + 390 static int set_cntrlr_baud(int fd, int speed) argument 411 if (write(fd, cm 671 ps_config_download(int fd, int tag_count) argument 715 write_bdaddr_from_file(int rom_version, int fd) argument 913 ps_patch_download(int fd, FILE *stream) argument 972 ath_ps_download(int fd) argument 1054 ath3k_init(int fd, int speed, int init_speed, char *bdaddr, struct termios *ti) argument 1235 ath3k_post(int fd, int pm) argument 1283 int i, fd; local 1394 int fd = -1; local [all...] |
/hardware/interfaces/bluetooth/1.0/default/ |
H A D | mct_protocol.cc | 59 void MctProtocol::OnEventDataReady(int fd) { argument 60 event_packetizer_.OnDataReady(fd, HCI_PACKET_TYPE_EVENT); 63 void MctProtocol::OnAclDataReady(int fd) { argument 64 acl_packetizer_.OnDataReady(fd, HCI_PACKET_TYPE_ACL_DATA);
|
/hardware/libhardware/modules/gralloc/ |
H A D | gralloc_priv.h | 70 int fd; member in struct:private_handle_t 88 private_handle_t(int fd, int size, int flags) : argument 89 fd(fd), magic(sMagic), flags(flags), size(size), offset(0),
|
/hardware/libhardware_legacy/ |
H A D | uevent.c | 40 static int fd = -1; variable 65 fd = s; 66 return (fd > 0); 71 return fd; 80 fds.fd = fd; 86 int count = recv(fd, buffer, buffer_length, 0);
|
/hardware/intel/common/libva/va/x11/ |
H A D | dri1_util.c | 68 assert(dri_state->base.fd >= 0); 69 drmCloseOnce(dri_state->base.fd); 86 dri_state->base.fd = -1; 108 dri_state->base.fd = drmOpenOnce(NULL, BusID, &newlyopened); 111 if (dri_state->base.fd < 0) 115 if (drmGetMagic(dri_state->base.fd, &magic)) 121 if (drmMap(dri_state->base.fd, dri_state->hSAREA, SAREA_MAX, &dri_state->pSAREA)) 142 if (dri_state->base.fd >= 0) 143 drmCloseOnce(dri_state->base.fd); 152 dri_state->base.fd [all...] |
/hardware/libhardware/modules/camera/3_0/ |
H A D | Stream.cpp | 223 void Stream::dump(int fd) argument 227 dprintf(fd, "Stream ID: %d (%p)\n", mId, mStream); 228 dprintf(fd, "Stream Type: %s (%d)\n", typeToString(mType), mType); 229 dprintf(fd, "Width: %" PRIu32 " Height: %" PRIu32 "\n", mWidth, mHeight); 230 dprintf(fd, "Stream Format: %s (%d)", formatToString(mFormat), mFormat); 232 dprintf(fd, "Gralloc Usage Mask: %#" PRIx32 "\n", mUsage); 233 dprintf(fd, "Max Buffer Count: %" PRIu32 "\n", mMaxBuffers); 234 dprintf(fd, "Buffers Registered: %s\n", mRegistered ? "true" : "false"); 235 dprintf(fd, "Number of Buffers: %" PRIu32 "\n", mNumBuffers); 237 dprintf(fd, "Buffe [all...] |
/hardware/qcom/display/msm8909/sdm/libs/core/drm/ |
H A D | hw_events_drm.cpp | 61 poll_fds_[i].fd = -1; 72 master->GetHandle(&poll_fds_[i].fd); 78 poll_fds_[i].fd = Sys::eventfd_(0, 0); 81 Sys::pread_(poll_fds_[i].fd, data, kMaxStringLength, 0); 163 ssize_t write_size = Sys::write_(poll_fds_[i].fd, &exit_value, sizeof(uint64_t)); 165 DLOGW("Error triggering exit fd (%d). write size = %d, error = %s", poll_fds_[i].fd, 181 poll_fds_[i].fd = -1; 184 Sys::close_(poll_fds_[i].fd); 185 poll_fds_[i].fd 284 VSyncHandlerCallback(int fd, unsigned int sequence, unsigned int tv_sec, unsigned int tv_usec, void *data) argument [all...] |
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/drm/ |
H A D | hw_events_drm.cpp | 61 poll_fds_[i].fd = -1; 72 master->GetHandle(&poll_fds_[i].fd); 78 poll_fds_[i].fd = Sys::eventfd_(0, 0); 81 Sys::pread_(poll_fds_[i].fd, data, kMaxStringLength, 0); 163 ssize_t write_size = Sys::write_(poll_fds_[i].fd, &exit_value, sizeof(uint64_t)); 165 DLOGW("Error triggering exit fd (%d). write size = %d, error = %s", poll_fds_[i].fd, 181 poll_fds_[i].fd = -1; 184 Sys::close_(poll_fds_[i].fd); 185 poll_fds_[i].fd 284 VSyncHandlerCallback(int fd, unsigned int sequence, unsigned int tv_sec, unsigned int tv_usec, void *data) argument [all...] |
/hardware/qcom/display/msm8998/sdm/libs/core/drm/ |
H A D | hw_events_drm.cpp | 61 poll_fds_[i].fd = -1; 72 master->GetHandle(&poll_fds_[i].fd); 78 poll_fds_[i].fd = Sys::eventfd_(0, 0); 81 Sys::pread_(poll_fds_[i].fd, data, kMaxStringLength, 0); 168 ssize_t write_size = Sys::write_(poll_fds_[i].fd, &exit_value, sizeof(uint64_t)); 170 DLOGW("Error triggering exit fd (%d). write size = %d, error = %s", poll_fds_[i].fd, 186 poll_fds_[i].fd = -1; 189 Sys::close_(poll_fds_[i].fd); 190 poll_fds_[i].fd 292 VSyncHandlerCallback(int fd, unsigned int sequence, unsigned int tv_sec, unsigned int tv_usec, void *data) argument [all...] |
/hardware/libhardware/modules/usbcamera/ |
H A D | Stream.cpp | 165 void Stream::dump(int fd) { argument 168 dprintf(fd, "Stream ID: %d (%p)\n", mId, mStream); 169 dprintf(fd, "Stream Type: %s (%d)\n", typeToString(mStream->stream_type), mStream->stream_type); 170 dprintf(fd, "Width: %" PRIu32 " Height: %" PRIu32 "\n", mStream->width, mStream->height); 171 dprintf(fd, "Stream Format: %s (%d)", formatToString(mStream->format), mStream->format); 173 dprintf(fd, "Gralloc Usage Mask: %#" PRIx32 "\n", mStream->usage); 174 dprintf(fd, "Max Buffer Count: %" PRIu32 "\n", mStream->max_buffers); 175 dprintf(fd, "Number of Buffers in use by HAL: %zu\n", mBuffers.size()); 177 dprintf(fd, "Buffer %zu/%zu: %p\n", i, mBuffers.size(), mBuffers[i]);
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/src/ |
H A D | mm_camera_sock.c | 48 * RETURN : fd related to the domain socket 71 LOGE("error create socket fd =%d", socket_fd); 94 * DESCRIPTION: close domain socket by its fd 95 * @fd : file descriptor for the domain socket to be closed 99 void mm_camera_socket_close(int fd) argument 101 if (fd >= 0) { 102 close(fd); 110 * @fd : socket fd 117 int fd, 116 mm_camera_socket_sendmsg( int fd, void *msg, size_t buf_size, int sendfd) argument 177 mm_camera_socket_bundle_sendmsg( int fd, void *msg, size_t buf_size, int sendfds[CAM_MAX_NUM_BUFS_PER_STREAM], int numfds) argument 241 mm_camera_socket_recvmsg( int fd, void *msg, uint32_t buf_size, int *rcvdfd) argument [all...] |
/hardware/qcom/display/msm8960/libgralloc/ |
H A D | ionalloc.cpp | 104 MAP_SHARED, fd_data.fd, 0); 114 clean_buffer(base, data.size, data.offset, fd_data.fd, 119 data.fd = fd_data.fd; 121 ALOGD_IF(DEBUG, "ion: Allocated buffer base:%p size:%d fd:%d", 122 data.base, ionAllocData.len, data.fd); 127 int IonAlloc::free_buffer(void* base, size_t size, int offset, int fd) argument 130 ALOGD_IF(DEBUG, "ion: Freeing buffer base:%p size:%d fd:%d", 131 base, size, fd); 139 close(fd); 143 map_buffer(void **pBase, size_t size, int offset, int fd) argument 179 clean_buffer(void *base, size_t size, int offset, int fd, int op) argument [all...] |
/hardware/ril/libril/ |
H A D | ril_event.cpp | 84 dlog(" fd = %d", ev->fd); 109 list->fd = -1; 140 FD_CLR(ev->fd, &readFds); 142 if (ev->fd+1 == nfds) { 148 if ((rev != NULL) && (rev->fd > n)) { 149 n = rev->fd; 189 if (rev != NULL && FD_ISSET(rev->fd, rfds)) { 209 ev->func(ev->fd, 0, ev->param); 252 void ril_event_set(struct ril_event * ev, int fd, boo argument [all...] |
/hardware/qcom/bt/msm8996/libbt-vendor/src/ |
H A D | hw_rome.c | 70 int read_vs_hci_event(int fd, unsigned char* buf, int size); 71 int get_boardid_req(int fd); 105 int do_write(int fd, unsigned char *buf,int len) argument 111 ret = write(fd,buf+write_offset,write_len); 321 int read_vs_hci_event(int fd, unsigned char* buf, int size) argument 337 r = read(fd, buf, 1); 347 r = read(fd, buf + count, 3 - count); 362 r = read(fd, buf + count, remain - (count - 3)); 380 int hci_send_wipower_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) argument 386 ret = do_write(fd, cm 405 hci_send_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) argument 567 rome_edl_set_patch_request(int fd) argument 597 rome_edl_patch_download_request(int fd) argument 689 rome_download_rampatch(int fd) argument 769 rome_attach_rampatch(int fd) argument 799 rome_rampatch_reset(int fd) argument 947 rome_tlv_dnld_segment(int fd, int index, int seg_size, unsigned char wait_cc_evt) argument 983 rome_tlv_dnld_req(int fd, int tlv_size) argument 1081 rome_download_tlv_file(int fd) argument 1125 rome_1_0_nvm_tag_dnld(int fd) argument 1394 rome_patch_ver_req(int fd) argument 1425 rome_get_build_info_req(int fd) argument 1456 rome_set_baudrate_req(int fd) argument 1520 rome_hci_reset_req(int fd) argument 1578 rome_hci_reset(int fd) argument 1615 rome_wipower_current_charging_status_req(int fd) argument 1662 get_boardid_req(int fd) argument 1692 addon_feature_req(int fd) argument 1727 check_embedded_mode(int fd) argument 1743 rome_get_addon_feature_list(int fd) argument 1754 rome_wipower_forward_handoff_req(int fd) argument 1792 enable_controller_log(int fd, unsigned char wait_for_evt) argument 1825 disable_internal_ldo(int fd) argument 1848 rome_soc_init(int fd, char *bdaddr) argument [all...] |
/hardware/qcom/display/msm8909/libgralloc/ |
H A D | framebuffer.cpp | 55 //fd - which is returned on open 125 int fd = -1; local 130 while ((fd==-1) && device_template[i]) { 132 fd = open(name, O_RDWR, 0); 135 if (fd < 0) 139 if (ioctl(fd, FBIOGET_FSCREENINFO, &finfo) == -1) { 140 close(fd); 145 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) { 146 close(fd); 241 if (ioctl(fd, FBIOGET_VSCREENINF [all...] |
H A D | ionalloc.cpp | 104 MAP_SHARED, fd_data.fd, 0); 115 data.fd = fd_data.fd; 117 ALOGD_IF(DEBUG, "ion: Allocated buffer base:%p size:%zu fd:%d", 118 data.base, ionAllocData.len, data.fd); 124 int fd) 128 ALOGD_IF(DEBUG, "ion: Freeing buffer base:%p size:%u fd:%d", 129 base, size, fd); 137 close(fd); 142 int fd) 123 free_buffer(void* base, unsigned int size, unsigned int offset, int fd) argument 141 map_buffer(void **pBase, unsigned int size, unsigned int offset, int fd) argument 181 clean_buffer(void *base, unsigned int size, unsigned int offset, int fd, int op) argument [all...] |
/hardware/qcom/display/msm8909w_3100/libgralloc/ |
H A D | framebuffer.cpp | 55 //fd - which is returned on open 125 int fd = -1; local 130 while ((fd==-1) && device_template[i]) { 132 fd = open(name, O_RDWR, 0); 135 if (fd < 0) 139 if (ioctl(fd, FBIOGET_FSCREENINFO, &finfo) == -1) { 140 close(fd); 145 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) { 146 close(fd); 241 if (ioctl(fd, FBIOGET_VSCREENINF [all...] |
H A D | ionalloc.cpp | 104 MAP_SHARED, fd_data.fd, 0); 115 data.fd = fd_data.fd; 117 ALOGD_IF(DEBUG, "ion: Allocated buffer base:%p size:%zu fd:%d", 118 data.base, ionAllocData.len, data.fd); 124 int fd) 128 ALOGD_IF(DEBUG, "ion: Freeing buffer base:%p size:%u fd:%d", 129 base, size, fd); 137 close(fd); 142 int fd) 123 free_buffer(void* base, unsigned int size, unsigned int offset, int fd) argument 141 map_buffer(void **pBase, unsigned int size, unsigned int offset, int fd) argument 181 clean_buffer(void *base, unsigned int size, unsigned int offset, int fd, int op) argument [all...] |
/hardware/qcom/display/msm8994/libgralloc/ |
H A D | framebuffer.cpp | 61 //fd - which is returned on open 131 int fd = -1; local 136 while ((fd==-1) && device_template[i]) { 138 fd = open(name, O_RDWR, 0); 141 if (fd < 0) 145 if (ioctl(fd, FBIOGET_FSCREENINFO, &finfo) == -1) { 146 close(fd); 151 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) { 152 close(fd); 247 if (ioctl(fd, FBIOGET_VSCREENINF [all...] |
H A D | ionalloc.cpp | 115 MAP_SHARED, fd_data.fd, 0); 126 data.fd = fd_data.fd; 128 ALOGD_IF(DEBUG, "ion: Allocated buffer base:%p size:%zu fd:%d", 129 data.base, ionAllocData.len, data.fd); 135 int fd) 139 ALOGD_IF(DEBUG, "ion: Freeing buffer base:%p size:%u fd:%d", 140 base, size, fd); 148 close(fd); 153 int fd) 134 free_buffer(void* base, unsigned int size, unsigned int offset, int fd) argument 152 map_buffer(void **pBase, unsigned int size, unsigned int offset, int fd) argument 192 clean_buffer(void *base, unsigned int size, unsigned int offset, int fd, int op) argument [all...] |
/hardware/qcom/display/msm8996/libgralloc/ |
H A D | framebuffer.cpp | 50 //fd - which is returned on open 118 int fd = -1; local 123 while ((fd==-1) && device_template[i]) { 125 fd = open(name, O_RDWR, 0); 128 if (fd < 0) 132 if (ioctl(fd, FBIOGET_FSCREENINFO, &finfo) == -1) { 133 close(fd); 138 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) { 139 close(fd); 234 if (ioctl(fd, FBIOGET_VSCREENINF [all...] |
H A D | ionalloc.cpp | 109 MAP_SHARED, fd_data.fd, 0); 120 data.fd = fd_data.fd; 122 ALOGD_IF(DEBUG, "ion: Allocated buffer base:%p size:%zu fd:%d", 123 data.base, ionAllocData.len, data.fd); 129 int fd) 133 ALOGD_IF(DEBUG, "ion: Freeing buffer base:%p size:%u fd:%d", 134 base, size, fd); 142 close(fd); 147 int fd) 128 free_buffer(void* base, unsigned int size, unsigned int offset, int fd) argument 146 map_buffer(void **pBase, unsigned int size, unsigned int offset, int fd) argument 186 clean_buffer(void *base, unsigned int size, unsigned int offset, int fd, int op) argument [all...] |
/hardware/qcom/display/msm8084/libgralloc/ |
H A D | ionalloc.cpp | 104 MAP_SHARED, fd_data.fd, 0); 115 data.fd = fd_data.fd; 117 ALOGD_IF(DEBUG, "ion: Allocated buffer base:%p size:%zu fd:%d", 118 data.base, ionAllocData.len, data.fd); 123 int IonAlloc::free_buffer(void* base, size_t size, size_t offset, int fd) argument 126 ALOGD_IF(DEBUG, "ion: Freeing buffer base:%p size:%zu fd:%d", 127 base, size, fd); 135 close(fd); 139 int IonAlloc::map_buffer(void **pBase, size_t size, size_t offset, int fd) argument 175 clean_buffer(void *base, size_t size, size_t offset, int fd, int op) argument [all...] |
/hardware/qcom/display/msm8226/libgralloc/ |
H A D | ionalloc.cpp | 104 MAP_SHARED, fd_data.fd, 0); 115 data.fd = fd_data.fd; 117 ALOGD_IF(DEBUG, "ion: Allocated buffer base:%p size:%zu fd:%d", 118 data.base, ionAllocData.len, data.fd); 124 int fd) 127 ALOGD_IF(DEBUG, "ion: Freeing buffer base:%p size:%u fd:%d", 128 base, size, fd); 136 close(fd); 141 int fd) 123 free_buffer(void* base, unsigned int size, unsigned int offset, int fd) argument 140 map_buffer(void **pBase, unsigned int size, unsigned int offset, int fd) argument 178 clean_buffer(void *base, unsigned int size, unsigned int offset, int fd, int op) argument [all...] |
/hardware/qcom/bt/msm8909/libbt-vendor/src/ |
H A D | hw_rome.c | 61 int read_vs_hci_event(int fd, unsigned char* buf, int size); 91 int do_write(int fd, unsigned char *buf,int len) argument 97 ret = write(fd,buf+write_offset,write_len); 295 int read_vs_hci_event(int fd, unsigned char* buf, int size) argument 311 r = read(fd, buf, 1); 321 r = read(fd, buf + count, 3 - count); 336 r = read(fd, buf + count, remain - (count - 3)); 354 int hci_send_wipower_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) argument 360 ret = do_write(fd, cmd, size); 367 err = read_hci_event(fd, rs 379 hci_send_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) argument 536 rome_edl_set_patch_request(int fd) argument 566 rome_edl_patch_download_request(int fd) argument 658 rome_download_rampatch(int fd) argument 739 rome_attach_rampatch(int fd) argument 769 rome_rampatch_reset(int fd) argument 917 rome_tlv_dnld_segment(int fd, int index, int seg_size, unsigned char wait_cc_evt) argument 953 rome_tlv_dnld_req(int fd, int tlv_size) argument 1050 rome_download_tlv_file(int fd) argument 1080 rome_1_0_nvm_tag_dnld(int fd) argument 1350 rome_patch_ver_req(int fd) argument 1381 rome_get_build_info_req(int fd) argument 1412 rome_set_baudrate_req(int fd) argument 1476 rome_hci_reset_req(int fd) argument 1534 rome_hci_reset(int fd) argument 1572 rome_wipower_current_charging_status_req(int fd) argument 1620 addon_feature_req(int fd) argument 1656 check_embedded_mode(int fd) argument 1683 rome_wipower_forward_handoff_req(int fd) argument 1722 enable_controller_log(int fd, unsigned char wait_for_evt) argument 1755 disable_internal_ldo(int fd) argument 1778 rome_soc_init(int fd, char *bdaddr) argument [all...] |