Lines Matching refs:ipc

63 int xf_ipc_send(xf_proxy_ipc_data_t *ipc, xf_proxy_msg_t *msg, void *b)  in xf_ipc_send()  argument
68 int fd = ipc->fd; in xf_ipc_send()
84 int xf_ipc_wait(xf_proxy_ipc_data_t *ipc, u32 timeout) in xf_ipc_wait() argument
86 int fd = ipc->fd; in xf_ipc_wait()
106 int xf_ipc_recv(xf_proxy_ipc_data_t *ipc, xf_proxy_msg_t *msg, void **buffer) in xf_ipc_recv() argument
108 int fd = ipc->fd; in xf_ipc_recv()
118 XF_CHK_ERR((*buffer = xf_ipc_a2b(ipc, msg->address)) != (void *)-1, -EBADFD); in xf_ipc_recv()
129 *buffer = xf_ipc_a2b(ipc, temp.address); in xf_ipc_recv()
131 XF_CHK_ERR((*buffer = xf_ipc_a2b(ipc, temp.address)) != (void *)-1, -EBADFD); in xf_ipc_recv()
148 int xf_ipc_open(xf_proxy_ipc_data_t *ipc, u32 core, void *p_shmem) in xf_ipc_open() argument
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()
164 XF_CHK_ERR(pipe(ipc->pipe) == 0, -errno); in xf_ipc_open()
171 …XF_CHK_ERR((ipc->shmem = mmap(NULL, XF_CFG_REMOTE_IPC_POOL_SIZE, PROT_READ | PROT_WRITE, MAP_SHARE… in xf_ipc_open()
173 …XF_CHK_ERR((ipc->shmem = mmap(NULL, xf_cfg_remote_ipc_pool_size, PROT_READ | PROT_WRITE, MAP_SHARE… in xf_ipc_open()
180 void xf_ipc_close(xf_proxy_ipc_data_t *ipc, u32 core) in xf_ipc_close() argument
186 close(ipc->pipe[0]), close(ipc->pipe[1]); in xf_ipc_close()
189 close(ipc->fd); in xf_ipc_close()