Home
last modified time | relevance | path

Searched refs:mem (Results 1 – 25 of 26) sorted by relevance

12

/drivers/hdf_core/adapter/khdf/liteos/osal/src/
Dosal_mem.c83 void OsalMemFree(void *mem) in OsalMemFree() argument
85 if (mem != NULL) { in OsalMemFree()
86 LOS_MemFree((VOID *)OS_SYS_MEM_ADDR, mem); in OsalMemFree()
/drivers/hdf_core/adapter/khdf/liteos_m/osal/src/
Dosal_mem.c83 void OsalMemFree(void *mem) in OsalMemFree() argument
85 if (mem != NULL) { in OsalMemFree()
86 LOS_MemFree((VOID *)OS_SYS_MEM_ADDR, mem); in OsalMemFree()
/drivers/hdf_core/framework/support/posix/src/
Dosal_mem.c66 void OsalMemFree(void *mem) in OsalMemFree() argument
68 if (mem != NULL) { in OsalMemFree()
69 free(mem); in OsalMemFree()
/drivers/hdf_core/interfaces/inner_api/utils/
Dhdf_slist.h210 #define OFFSET_OF(type, mem) ((size_t) &((type *)0)->mem) argument
212 #define HDF_SLIST_CONTAINER_OF(mtype, ptr, type, mem) ( { \ argument
214 (type *)((char *)__mptr - OFFSET_OF(type, mem)); \
/drivers/hdf_core/adapter/khdf/uniproton/osal/src/
Dosal_mem.c95 void OsalMemFree(void *mem) in OsalMemFree() argument
97 if (mem != NULL) { in OsalMemFree()
98 PRT_MemFree((U32)OS_MID_TSK, mem); in OsalMemFree()
/drivers/hdf_core/adapter/khdf/liteos_m/network/src/
Dnetbuf_adapter.c312 nb->mem = data; in NetBufAlloc()
337 if (nb->mem != NULL) { in NetBufFree()
338 LOS_MemFree(m_aucSysMem0, nb->mem); in NetBufFree()
339 nb->mem = NULL; in NetBufFree()
405 return (nb->mem + dataBuf->offset); in NetBufPush()
466 return (nb->mem + dataBuf->offset); in NetBufPop()
487 return (nb->mem + nb->bufs[id].offset); in NetBufGetAddress()
565 if (memcpy_s(data + head, size - head, nb->mem, nb->bufs[E_TAIL_BUF].offset) != EOK) { in NetBufResizeRoom()
572 LOS_MemFree(m_aucSysMem0, nb->mem); in NetBufResizeRoom()
573 nb->mem = data; in NetBufResizeRoom()
[all …]
/drivers/hdf_core/adapter/khdf/liteos/network/src/
Dnetbuf_adapter.c312 nb->mem = data; in NetBufAlloc()
337 if (nb->mem != NULL) { in NetBufFree()
338 LOS_MemFree(m_aucSysMem0, nb->mem); in NetBufFree()
339 nb->mem = NULL; in NetBufFree()
405 return (nb->mem + dataBuf->offset); in NetBufPush()
466 return (nb->mem + dataBuf->offset); in NetBufPop()
487 return (nb->mem + nb->bufs[id].offset); in NetBufGetAddress()
565 if (memcpy_s(data + head, size - head, nb->mem, nb->bufs[E_TAIL_BUF].offset) != EOK) { in NetBufResizeRoom()
572 LOS_MemFree(m_aucSysMem0, nb->mem); in NetBufResizeRoom()
573 nb->mem = data; in NetBufResizeRoom()
[all …]
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/src/
Dv4l2_buffer.cpp364 for (auto &mem : adapterBufferMap_) { in V4L2ReleaseBuffers() local
365 if (mem.second.dmafd > 0) { in V4L2ReleaseBuffers()
368 int ret = ioctl(mem.second.dmafd, DMA_BUF_IOCTL_SYNC, &sync); in V4L2ReleaseBuffers()
373 if (mem.second.start) { in V4L2ReleaseBuffers()
374 if (munmap(mem.second.start, mem.second.length) < 0) { in V4L2ReleaseBuffers()
378 if (mem.second.dmafd > 0) { in V4L2ReleaseBuffers()
379 close(mem.second.dmafd); in V4L2ReleaseBuffers()
381 if (mem.second.heapfd > 0) { in V4L2ReleaseBuffers()
382 close(mem.second.heapfd); in V4L2ReleaseBuffers()
/drivers/hdf_core/interfaces/inner_api/osal/shared/
Dosal_mem.h81 void OsalMemFree(void *mem);
/drivers/liteos/
DREADME_zh.md13 …动,完成数据的传输。内核初始化驱动并注册设备节点,用户通过文件系统接口操作该设备节点。内核驱动主要包括mem、random、video、quickstart、hievent和tzdriver,其中
20 - mem驱动用于用户态访问物理IO设备,与mmap接口结合使用;
207 - mem\_dev\_register
211 int mem\_dev\_register\(void\);
213 **函数功能:** 初始化mem驱动,注册设备节点/dev/mem;若成功则返回0,否则返回相应的错误码。
DREADME.md13 …and kernel space and between processes. The main kernel drivers include **mem**, **random**, **…
20 - **mem** indicates the driver for accessing physical input/output \(I/O\) devices in user space…
207 - mem\_dev\_register
211 int mem\_dev\_register\(void\);
213 …**Function description:** Initializes the mem driver and registers the **/dev/mem** device node…
/drivers/hdf_core/adapter/khdf/liteos_m/network/include/
Dnetbuf_adapter.h106 uint8_t *mem; /**< Memory buffer address */ member
/drivers/hdf_core/adapter/khdf/liteos/network/include/
Dnetbuf_adapter.h106 uint8_t *mem; /**< Memory buffer address */ member
/drivers/peripheral/camera/vdi_base/common/utils/exif/
Dexif_utils.cpp41 ExifMem *mem = exif_mem_new_default(); in CreateTag() local
42 assert(mem != NULL); in CreateTag()
44 entry = exif_entry_new_mem(mem); in CreateTag()
47 buf = exif_mem_alloc(mem, len); in CreateTag()
58 exif_mem_unref(mem); in CreateTag()
/drivers/hdf_core/adapter/khdf/linux/osal/src/
Dosal_mem.c38 uint8_t mem[0]; member
155 block = (struct mem_block *)((char *)buf - (char *)&((struct mem_block *)0)->mem); in OsalMemFree()
/drivers/peripheral/codec/hal/src/
Dcodec_callback_type_stub.c42 static void FreeMem(int8_t *mem, uint32_t memLen) in FreeMem() argument
44 if (memLen > 0 && mem != NULL) { in FreeMem()
45 OsalMemFree(mem); in FreeMem()
Dcodec_component_type_stub.c27 static void FreeMem(int8_t *mem, uint32_t memLen) in FreeMem() argument
29 if (memLen > 0 && mem != NULL) { in FreeMem()
30 OsalMemFree(mem); in FreeMem()
/drivers/peripheral/usb/ddk/device/src/
Dusbfn_io_mgr.c129 struct GenericMemory mem; in UsbFnIoMgrRequestFree() local
144 mem.size = reqList->bufLen; in UsbFnIoMgrRequestFree()
145 mem.buf = (uint64_t)req->buf; in UsbFnIoMgrRequestFree()
146 ret = fnOps->releaseBuf(reqList->fd, &mem); in UsbFnIoMgrRequestFree()
Dadapter_if_liteos.c778 static int32_t UsbFnAdapterReleaseBuf(int32_t ep, const struct GenericMemory *mem) in UsbFnAdapterReleaseBuf() argument
780 return handle_ioctl(ep, GENERIC_CMD_FREE_MEM, &mem); in UsbFnAdapterReleaseBuf()
799 struct GenericMemory mem; in UsbFnAdapterCancelIo() local
801 mem.buf = ioData->buf; in UsbFnAdapterCancelIo()
802 mem.size = ioData->len; in UsbFnAdapterCancelIo()
804 return handle_ioctl(ep, GENERIC_CMD_CANCEL_REQUEST, &mem); in UsbFnAdapterCancelIo()
1065 void UsbFnMemFree(const void *mem) in UsbFnMemFree() argument
1067 if (mem == NULL) { in UsbFnMemFree()
1079 if (pos->address == (uintptr_t)mem) { in UsbFnMemFree()
1091 if (mem != NULL) { in UsbFnMemFree()
[all …]
Dadapter_if.c1063 static int32_t UsbFnAdapterReleaseBuf(int32_t ep, const struct GenericMemory *mem) in UsbFnAdapterReleaseBuf() argument
1065 if (ep <= 0 || mem == NULL) { in UsbFnAdapterReleaseBuf()
1069 return ioctl(ep, FUNCTIONFS_ENDPOINT_RELEASE_BUF, mem); in UsbFnAdapterReleaseBuf()
1257 void UsbFnMemFree(const void *mem) in UsbFnMemFree() argument
1259 if (mem == NULL) { in UsbFnMemFree()
1271 if (pos->address == (uintptr_t)mem) { in UsbFnMemFree()
1283 if (mem != NULL) { in UsbFnMemFree()
1284 OsalMemFree((void *)mem); in UsbFnMemFree()
/drivers/peripheral/codec/test/demo/jpeg/src/
Dcodec_jpeg_helper.cpp375 OHOS::Ashmem mem(fd, size); in JpegDataAssemble() local
377 mem.MapReadOnlyAshmem(); in JpegDataAssemble()
378 auto addr = const_cast<void *>(mem.ReadFromAshmem(0, 0)); in JpegDataAssemble()
382 mem.UnmapAshmem(); in JpegDataAssemble()
388 mem.UnmapAshmem(); in JpegDataAssemble()
389 mem.CloseAshmem(); in JpegDataAssemble()
/drivers/peripheral/usb/ddk/device/include/
Dadapter_if.h216 int32_t (*releaseBuf)(int32_t ep, const struct GenericMemory *mem);
240 void UsbFnMemFree(const void *mem);
/drivers/peripheral/usb/ddk/host/src/
Dliteos_adapter.c53 void *mem; in OsAdapterRealloc() local
55 mem = RawUsbMemAlloc(newSize); in OsAdapterRealloc()
56 if (mem == NULL) { in OsAdapterRealloc()
62 if (memmove_s(mem, newSize, ptr, oldSize) != HDF_SUCCESS) { in OsAdapterRealloc()
64 RawUsbMemFree(mem); in OsAdapterRealloc()
65 mem = NULL; in OsAdapterRealloc()
72 return mem; in OsAdapterRealloc()
Dlinux_adapter.c35 void *mem = RawUsbMemAlloc(newSize); in OsAdapterRealloc() local
36 if (mem == NULL) { in OsAdapterRealloc()
42 if (memmove_s(mem, newSize, ptr, oldSize) != EOK) { in OsAdapterRealloc()
44 RawUsbMemFree(mem); in OsAdapterRealloc()
45 mem = NULL; in OsAdapterRealloc()
51 return mem; in OsAdapterRealloc()
/drivers/peripheral/usb/ddk/host/include/
Dusb_raw_api_library.h138 void RawUsbMemFree(void *mem);

12