Lines Matching refs:ion_device_fd
2229 m_pInput_ion[i].ion_device_fd =-1;
2258 m_pInput_ion[i].ion_device_fd = alloc_map_ion_memory(m_sInPortDef.nBufferSize,
2262 m_pInput_ion[i].ion_device_fd = alloc_map_ion_memory(m_sInPortDef.nBufferSize,
2266 if (m_pInput_ion[i].ion_device_fd < 0) {
2422 m_pOutput_ion[i].ion_device_fd =-1;
2449 m_pOutput_ion[i].ion_device_fd = alloc_map_ion_memory(align_size,
2453 m_pOutput_ion[i].ion_device_fd = alloc_map_ion_memory(
2458 if (m_pOutput_ion[i].ion_device_fd < 0) {
2836 m_pInput_ion[i].ion_device_fd =-1;
2861 m_pInput_ion[i].ion_device_fd = alloc_map_ion_memory(m_sInPortDef.nBufferSize,
2865 m_pInput_ion[i].ion_device_fd = alloc_map_ion_memory(m_sInPortDef.nBufferSize,
2869 if (m_pInput_ion[i].ion_device_fd < 0) {
3005 m_pOutput_ion[i].ion_device_fd =-1;
3028 m_pOutput_ion[i].ion_device_fd = alloc_map_ion_memory(align_size,
3032 m_pOutput_ion[i].ion_device_fd = alloc_map_ion_memory(m_sOutPortDef.nBufferSize,
3036 if (m_pOutput_ion[i].ion_device_fd < 0) {
4395 int ion_device_fd =-1,rc=0,ion_dev_flags = 0;
4402 ion_device_fd = open (MEM_DEVICE,ion_dev_flags);
4403 if (ion_device_fd < 0) {
4405 return ion_device_fd;
4431 rc = ioctl(ion_device_fd,ION_IOC_ALLOC,alloc_data);
4435 close(ion_device_fd);
4436 ion_device_fd = -1;
4437 return ion_device_fd;
4440 rc = ioctl(ion_device_fd,ION_IOC_MAP,fd_data);
4444 buf_ion_info.ion_device_fd = ion_device_fd;
4448 ion_device_fd =-1;
4450 return ion_device_fd;
4459 if (ioctl(buf_ion_info->ion_device_fd,ION_IOC_FREE,
4464 close(buf_ion_info->ion_device_fd);
4466 buf_ion_info->ion_device_fd = -1;