Lines Matching refs:fd
68 int fd = ipc->fd; in xf_ipc_send() local
74 XF_CHK_ERR(write(fd, msg, sizeof(*msg)) == sizeof(*msg), -errno); in xf_ipc_send()
76 …ret = ioctl(fd, HIFI_MISC_IOCTL_XAF_IPC_MSG_SEND, msg);// GJB:-Verify th return value with driver … in xf_ipc_send()
86 int fd = ipc->fd; in xf_ipc_wait() local
92 FD_SET(fd, &rfds); in xf_ipc_wait()
99 select(fd+1,&rfds,NULL,NULL,(timeout? &tv: NULL)); in xf_ipc_wait()
102 return (FD_ISSET(fd, &rfds) ? 0 : -ETIMEDOUT); in xf_ipc_wait()
108 int fd = ipc->fd; in xf_ipc_recv() local
113 if ((r = read(fd, msg, sizeof(*msg))) == sizeof(*msg)) in xf_ipc_recv()
124 if ((r = ioctl(fd, HIFI_MISC_IOCTL_XAF_IPC_MSG_RECV, &temp)) == sizeof(temp)) in xf_ipc_recv()
156 XF_CHK_ERR((ipc->fd = open("/dev/xtensa-proxy", O_RDWR)) >= 0, -errno); in xf_ipc_open()
159 XF_CHK_ERR(ioctl(ipc->fd, XF_PROXY_SETUP_IOCTL, core) >= 0, -errno); in xf_ipc_open()
161 XF_CHK_ERR((ipc->fd = open(HIFI_DSP_MISC_DRIVER, O_RDWR,0)) >= 0, -errno); in xf_ipc_open()
171 …ULL, XF_CFG_REMOTE_IPC_POOL_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, ipc->fd, 0)) != MAP_FAILED, … in xf_ipc_open()
173 …ULL, xf_cfg_remote_ipc_pool_size, PROT_READ | PROT_WRITE, MAP_SHARED, ipc->fd, 0)) != MAP_FAILED, … in xf_ipc_open()
189 close(ipc->fd); in xf_ipc_close()