/hardware/akm/AK8975_FS/libsensors/ |
H A D | SensorBase.cpp | 72 int fd, amt; local 74 fd = open(path, O_WRONLY); 75 if (fd < 0) { 81 amt = write(fd, value, bytes); 85 close(fd); 116 int fd = -1; 134 fd = open(devname, O_RDONLY); 135 if (fd>=0) { 137 if (ioctl(fd, EVIOCGNAME(sizeof(name) - 1), &name) < 1) { 144 close(fd); [all...] |
/hardware/intel/img/libdrm/tests/ |
H A D | gem_mmap.c | 41 int do_read(int fd, int handle, void *buf, int offset, int size) argument 56 return ioctl(fd, DRM_IOCTL_I915_GEM_PREAD, &read); 59 int do_write(int fd, int handle, void *buf, int offset, int size) argument 69 return ioctl(fd, DRM_IOCTL_I915_GEM_PWRITE, &write); 74 int fd; local 84 fd = drm_open_matching("8086:*", 0); 85 if (fd < 0) { 95 ret = ioctl(fd, DRM_IOCTL_I915_GEM_MMAP, &mmap); 100 ret = ioctl(fd, DRM_IOCTL_I915_GEM_CREATE, &create); 108 ret = ioctl(fd, DRM_IOCTL_I915_GEM_MMA [all...] |
H A D | gem_readwrite.c | 41 int do_read(int fd, int handle, void *buf, int offset, int size) argument 56 return ioctl(fd, DRM_IOCTL_I915_GEM_PREAD, &read); 59 int do_write(int fd, int handle, void *buf, int offset, int size) argument 69 return ioctl(fd, DRM_IOCTL_I915_GEM_PWRITE, &write); 74 int fd; local 81 fd = drm_open_matching("8086:*", 0); 82 if (fd < 0) { 89 ret = ioctl(fd, DRM_IOCTL_I915_GEM_CREATE, &create); 94 ret = do_read(fd, handle, buf, 0, OBJECT_SIZE); 100 ret = do_read(fd, handl [all...] |
/hardware/invensense/6515/libsensors_iio/ |
H A D | MPLSupport.cpp | 33 int count, fd; local 35 fd = open(fname, O_RDONLY); 36 if(fd < 0) { 41 count = read_attribute_sensor(fd, buf, sizeof(buf)); 43 close(fd); 50 close(fd); 56 int read_attribute_sensor(int fd, char* data, unsigned int size) argument 61 if (fd > 0) { 62 count = pread(fd, data, size, 0); 74 * @param fd 80 enable_sysfs_sensor(int fd, int en) argument 102 write_attribute_sensor(int fd, long data) argument 125 write_attribute_sensor_continuous(int fd, long data) argument 286 int fd; local [all...] |
/hardware/invensense/65xx/libsensors_iio/ |
H A D | MPLSupport.cpp | 33 int count, fd; local 35 fd = open(fname, O_RDONLY); 36 if(fd < 0) { 41 count = read_attribute_sensor(fd, buf, sizeof(buf)); 43 close(fd); 50 close(fd); 56 int read_attribute_sensor(int fd, char* data, unsigned int size) argument 61 if (fd > 0) { 62 count = pread(fd, data, size, 0); 74 * @param fd 80 enable_sysfs_sensor(int fd, int en) argument 102 write_attribute_sensor(int fd, long data) argument 125 write_attribute_sensor_continuous(int fd, long data) argument 286 int fd; local [all...] |
/hardware/intel/img/libdrm/libdrm/ |
H A D | xf86drm.c | 183 drmIoctl(int fd, unsigned long request, void *arg) argument 188 ret = ioctl(fd, request, arg); 193 static unsigned long drmGetKeyFromFd(int fd) argument 198 fstat(fd, &st); 202 drmHashEntry *drmGetEntry(int fd) argument 204 unsigned long key = drmGetKeyFromFd(fd); 213 entry->fd = fd; 319 int fd; local 381 fd 426 int fd; local 453 int fd; local 490 int fd; local 536 int fd; local 641 int fd = drmOpenByBusid(busid); local 736 drmGetVersion(int fd) argument 791 drmGetLibVersion(int fd) argument 839 drmGetBusid(int fd) argument 869 drmSetBusid(int fd, const char *busid) argument 882 drmGetMagic(int fd, drm_magic_t * magic) argument 893 drmAuthMagic(int fd, drm_magic_t magic) argument 953 drmAddMap(int fd, drm_handle_t offset, drmSize size, drmMapType type, drmMapFlags flags, drm_handle_t *handle) argument 970 drmRmMap(int fd, drm_handle_t handle) argument 997 drmAddBufs(int fd, int count, int size, drmBufDescFlags flags, int agp_offset) argument 1014 drmMarkBufs(int fd, double low, double high) argument 1066 drmFreeBufs(int fd, int count, int *list) argument 1086 drmClose(int fd) argument 1117 drmMap(int fd, drm_handle_t handle, drmSize size, drmAddressPtr address) argument 1152 drmGetBufInfo(int fd) argument 1203 drmMapBufs(int fd) argument 1280 drmDMA(int fd, drmDMAReqPtr request) argument 1323 drmGetLock(int fd, drm_context_t context, drmLockFlags flags) argument 1353 drmUnlock(int fd, drm_context_t context) argument 1362 drmGetReservedContextList(int fd, int *count) argument 1419 drmCreateContext(int fd, drm_context_t *handle) argument 1430 drmSwitchToContext(int fd, drm_context_t context) argument 1440 drmSetContextFlags(int fd, drm_context_t context, drm_context_tFlags flags) argument 1461 drmGetContextFlags(int fd, drm_context_t context, drm_context_tFlagsPtr flags) argument 1494 drmDestroyContext(int fd, drm_context_t handle) argument 1503 drmCreateDrawable(int fd, drm_drawable_t *handle) argument 1512 drmDestroyDrawable(int fd, drm_drawable_t handle) argument 1521 drmUpdateDrawableInfo(int fd, drm_drawable_t handle, drm_drawable_info_type_t type, unsigned int num, void *data) argument 1550 drmAgpAcquire(int fd) argument 1568 drmAgpRelease(int fd) argument 1588 drmAgpEnable(int fd, unsigned long mode) argument 1615 drmAgpAlloc(int fd, unsigned long size, unsigned long type, unsigned long *address, drm_handle_t *handle) argument 1645 drmAgpFree(int fd, drm_handle_t handle) argument 1670 drmAgpBind(int fd, drm_handle_t handle, unsigned long offset) argument 1694 drmAgpUnbind(int fd, drm_handle_t handle) argument 1717 drmAgpVersionMajor(int fd) argument 1738 drmAgpVersionMinor(int fd) argument 1759 drmAgpGetMode(int fd) argument 1780 drmAgpBase(int fd) argument 1801 drmAgpSize(int fd) argument 1822 drmAgpMemoryUsed(int fd) argument 1843 drmAgpMemoryAvail(int fd) argument 1864 drmAgpVendorId(int fd) argument 1885 drmAgpDeviceId(int fd) argument 1894 drmScatterGatherAlloc(int fd, unsigned long size, drm_handle_t *handle) argument 1907 drmScatterGatherFree(int fd, drm_handle_t handle) argument 1929 drmWaitVBlank(int fd, drmVBlankPtr vbl) argument 1998 drmCtlInstHandler(int fd, int irq) argument 2021 drmCtlUninstHandler(int fd) argument 2032 drmFinish(int fd, int context, drmLockFlags flags) argument 2063 drmGetInterruptFromBusID(int fd, int busnum, int devnum, int funcnum) argument 2075 drmAddContextTag(int fd, drm_context_t context, void *tag) argument 2086 drmDelContextTag(int fd, drm_context_t context) argument 2093 drmGetContextTag(int fd, drm_context_t context) argument 2104 drmAddContextPrivateMapping(int fd, drm_context_t ctx_id, drm_handle_t handle) argument 2117 drmGetContextPrivateMapping(int fd, drm_context_t ctx_id, drm_handle_t *handle) argument 2132 drmGetMap(int fd, int idx, drm_handle_t *offset, drmSize *size, drmMapType *type, drmMapFlags *flags, drm_handle_t *handle, int *mtrr) argument 2150 drmGetClient(int fd, int idx, int *auth, int *pid, int *uid, unsigned long *magic, unsigned long *iocs) argument 2166 drmGetStats(int fd, drmStatsT *stats) argument 2303 drmSetInterfaceVersion(int fd, drmSetVersion *version) argument 2337 drmCommandNone(int fd, unsigned long drmCommandIndex) argument 2365 drmCommandRead(int fd, unsigned long drmCommandIndex, void *data, unsigned long size) argument 2394 drmCommandWrite(int fd, unsigned long drmCommandIndex, void *data, unsigned long size) argument 2423 drmCommandWriteRead(int fd, unsigned long drmCommandIndex, void *data, unsigned long size) argument 2439 int fd; member in struct:__anon746 2450 int fd; local 2478 drmCloseOnce(int fd) argument 2497 drmSetMaster(int fd) argument 2506 drmDropMaster(int fd) argument [all...] |
/hardware/qcom/display/msm8226/liboverlay/ |
H A D | mdpWrapper.h | 54 bool getFScreenInfo(int fd, fb_fix_screeninfo& finfo); 57 bool getVScreenInfo(int fd, fb_var_screeninfo& vinfo); 60 bool setVScreenInfo(int fd, fb_var_screeninfo& vinfo); 63 bool startRotator(int fd, msm_rotator_img_info& rot); 66 bool rotate(int fd, msm_rotator_data_info& rot); 69 bool setOverlay(int fd, mdp_overlay& ov); 72 bool validateAndSet(const int& fd, mdp_overlay_list& list); 75 bool endRotator(int fd, int sessionId); 78 bool unsetOverlay(int fd, int ovId); 81 bool getOverlay(int fd, mdp_overla 121 getFScreenInfo(int fd, fb_fix_screeninfo& finfo) argument 131 getVScreenInfo(int fd, fb_var_screeninfo& vinfo) argument 141 setVScreenInfo(int fd, fb_var_screeninfo& vinfo) argument 151 startRotator(int fd, msm_rotator_img_info& rot) argument 161 rotate(int fd, msm_rotator_data_info& rot) argument 171 setOverlay(int fd, mdp_overlay& ov) argument 181 validateAndSet(const int& fd, mdp_overlay_list& list) argument 191 endRotator(int fd, uint32_t sessionId) argument 201 unsetOverlay(int fd, int ovId) argument 211 getOverlay(int fd, mdp_overlay& ov) argument 221 play(int fd, msmfb_overlay_data& od) argument 231 displayCommit(int fd, mdp_display_commit& info) argument [all...] |
/hardware/qcom/display/msm8226/libgralloc/ |
H A D | ionalloc.h | 45 unsigned int offset, int fd); 48 unsigned int offset, int fd); 54 unsigned int offset, int fd, int op);
|
/hardware/qcom/display/msm8960/libgralloc/ |
H A D | ionalloc.h | 45 int offset, int fd); 48 int offset, int fd); 54 int offset, int fd, int op);
|
H A D | memalloc.h | 45 int fd; member in struct:gralloc::alloc_data 60 // and fd are returned in the alloc_data struct 65 int offset, int fd) = 0; 69 int offset, int fd) = 0; 77 int offset, int fd, int op) = 0;
|
/hardware/qcom/display/msm8974/libgralloc/ |
H A D | ionalloc.h | 45 int offset, int fd); 48 int offset, int fd); 54 int offset, int fd, int op);
|
H A D | memalloc.h | 45 int fd; member in struct:gralloc::alloc_data 60 // and fd are returned in the alloc_data struct 65 int offset, int fd) = 0; 69 int offset, int fd) = 0; 77 int offset, int fd, int op) = 0;
|
/hardware/intel/img/libdrm/libdrm/nouveau/ |
H A D | nouveau_device.c | 35 int fd, drm_context_t ctx) 45 ver = drmGetVersion(fd); 53 nvdev->fd = fd; 57 ret = drmCommandNone(nvdev->fd, DRM_NOUVEAU_CARD_INIT); 109 int fd, ret; local 114 fd = drmOpen("nouveau", busid); 115 if (fd < 0) 118 ret = drmCreateContext(fd, &ctx); 120 drmClose(fd); 34 nouveau_device_open_existing(struct nouveau_device **dev, int close, int fd, drm_context_t ctx) argument [all...] |
/hardware/qcom/bt/libbt-vendor/include/ |
H A D | bt_vendor_qcom.h | 34 extern int fd;
|
/hardware/qcom/display/msm8084/libgralloc/ |
H A D | memalloc.h | 45 int fd; member in struct:gralloc::alloc_data 60 // and fd are returned in the alloc_data struct 65 size_t offset, int fd) = 0; 69 size_t offset, int fd) = 0; 77 size_t offset, int fd, int op) = 0;
|
/hardware/qcom/display/msm8960/libgenlock/ |
H A D | genlock.cpp | 88 lock.fd = hnd->genlockHandle; 93 "err=%s fd=%d)", __FUNCTION__, 94 lockType, strerror(errno), hnd->fd); 103 ALOGE("%s: GENLOCK_IOC_LOCK failed (lockType0x%x, err=%s fd=%d)" 104 ,__FUNCTION__, lockType, strerror(errno), hnd->fd); 116 /* Internal function to close the fd and release the handle */ 117 void close_genlock_fd_and_handle(int& fd, int& handle) argument 119 if (fd >=0 ) { 120 close(fd); 121 fd 149 int fd = open(GENLOCK_DEVICE, O_RDWR); local 234 int fd = open(GENLOCK_DEVICE, O_RDWR); local [all...] |
/hardware/ril/include/telephony/ |
H A D | record_stream.h | 18 * A simple utility for reading fixed records out of a stream fd 31 extern RecordStream *record_stream_new(int fd, size_t maxRecordLen);
|
/hardware/ti/omap4-aah/ion/ |
H A D | ion_test.c | 29 int _ion_alloc_test(int *fd, struct ion_handle **handle) argument 33 *fd = ion_open(); 34 if (*fd < 0) 35 return *fd; 38 ret = ion_alloc_tiler(*fd, width, height, fmt, alloc_flags, 41 ret = ion_alloc(*fd, len, align, alloc_flags, handle); 50 int fd, ret; local 53 if(_ion_alloc_test(&fd, &handle)) 56 ret = ion_free(fd, handle); 61 ion_close(fd); 86 int fd, map_fd, ret; local 153 int fd, share_fd, ret; local 188 int fd, recv_fd; local [all...] |
/hardware/intel/common/libva/va/drm/ |
H A D | va_drm.c | 70 ret = drmGetMagic(drm_state->fd, &magic); 74 if (!va_drm_is_authenticated(drm_state->fd)) { 75 if (!va_drm_authenticate(drm_state->fd, magic)) 77 if (!va_drm_is_authenticated(drm_state->fd)) 87 vaGetDisplayDRM(int fd) argument 93 if (fd < 0) 101 drm_state->fd = fd;
|
/hardware/invensense/60xx/libsensors/ |
H A D | SensorBase.cpp | 92 int fd = -1; local 110 fd = open(devname, O_RDONLY); 111 if (fd>=0) { 113 if (ioctl(fd, EVIOCGNAME(sizeof(name) - 1), &name) < 1) { 120 close(fd); 121 fd = -1; 126 ALOGE_IF(fd<0, "couldn't find '%s' input device", inputName); 127 return fd;
|
/hardware/invensense/60xx/libsensors_iio/ |
H A D | SensorBase.cpp | 90 int fd = -1;
local 108 fd = open(devname, O_RDONLY);
111 if (fd >= 0) {
113 if (ioctl(fd, EVIOCGNAME(sizeof(name) - 1), &name) < 1) {
121 close(fd);
122 fd = -1;
127 LOGE_IF(fd < 0, "couldn't find '%s' input device", inputName);
128 return fd;
|
/hardware/qcom/display/msm8084/libqdutils/ |
H A D | idle_invalidator.cpp | 66 int fd = open(IDLE_TIME_PATH, O_WRONLY); local 67 if (fd < 0) { 77 ssize_t len = pwrite(fd, strSleepTime, strlen(strSleepTime), 0); 83 close(fd); 86 close(fd); 96 pFd.fd = mTimeoutEventFd; 97 if (pFd.fd >= 0) 105 ssize_t len = pread(pFd.fd, data, 64, 0);
|
/hardware/qcom/display/msm8226/libqdutils/ |
H A D | idle_invalidator.cpp | 66 int fd = open(IDLE_TIME_PATH, O_WRONLY); local 67 if (fd < 0) { 77 ssize_t len = pwrite(fd, strSleepTime, strlen(strSleepTime), 0); 83 close(fd); 86 close(fd); 96 pFd.fd = mTimeoutEventFd; 97 if (pFd.fd >= 0) 105 ssize_t len = pread(pFd.fd, data, 64, 0);
|
/hardware/libhardware_legacy/power/ |
H A D | power.c | 67 int fd = open(paths[i], O_RDWR); local 68 if (fd < 0) { 73 g_fds[i] = fd; 102 int fd; local 105 fd = g_fds[ACQUIRE_PARTIAL_WAKE_LOCK]; 111 return write(fd, id, strlen(id));
|
/hardware/samsung_slsi/exynos5/include/ |
H A D | ExynosBuffer.h | 69 int fd; member in union:ExynosBuffer::__anon2675 71 } fd; member in struct:ExynosBuffer 92 fd. extFd[i] = -1; 104 fd. extFd[i] = other->fd.extFd[i]; 116 fd. extFd[i] = other.fd.extFd[i]; 132 && fd. extFd[0] == other.fd.extFd[0] 133 && fd [all...] |