Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 79) sorted by relevance

1234

/hardware/msm7k/libgralloc-qsd8k/tests/
Dpmemalloc_test.cpp38 virtual int mapPmem(int fd, int offset, size_t size) { in mapPmem() argument
42 virtual int unmapPmem(int fd, int offset, size_t size) { in unmapPmem() argument
51 off_t offset) { in mmap() argument
83 virtual ssize_t deallocate(size_t offset) { in deallocate() argument
110 off_t offset) { in mmap()
156 off_t offset) { in mmap()
300 virtual int mapPmem(int fd, int offset, size_t size) { in mapPmem()
302 EXPECT_EQ(0x300, offset); in mapPmem()
327 int offset = -9182, fd = -9182; in TEST() local
330 int result = pma.alloc_pmem_buffer(size, flags, &base, &offset, &fd); in TEST()
[all …]
/hardware/qcom/media/libstagefrighthw/
DQComHardwareRenderer.cpp54 uint32_t offset; member
81 size_t offset; in render() local
82 if (!getOffset(platformPrivate, &offset)) { in render()
86 mISurface->postBuffer(offset); in render()
89 bool QComHardwareRenderer::getOffset(void *platformPrivate, size_t *offset) { in getOffset() argument
90 *offset = 0; in getOffset()
110 *offset = info->offset; in getOffset()
/hardware/msm7k/libstagefrighthw/
DQComHardwareRenderer.cpp58 uint32_t offset; member
87 size_t offset; in render() local
88 if (!getOffset(platformPrivate, &offset)) { in render()
92 mISurface->postBuffer(offset); in render()
95 bool QComHardwareRenderer::getOffset(void *platformPrivate, size_t *offset) { in getOffset() argument
96 *offset = 0; in getOffset()
116 *offset = info->offset; in getOffset()
/hardware/msm7k/libgralloc-qsd8k/
Dpmemalloc.cpp152 int offset = allocator.allocate(size); in alloc_pmem_buffer() local
153 if (offset < 0) { in alloc_pmem_buffer()
172 err = deps.mapPmem(fd, offset, size); in alloc_pmem_buffer()
179 allocator.deallocate(offset); in alloc_pmem_buffer()
182 LOGV("%s: mapped fd %d at offset %d, size %d", pmemdev, fd, offset, size); in alloc_pmem_buffer()
183 memset((char*)base + offset, 0, size); in alloc_pmem_buffer()
185 *pOffset = offset; in alloc_pmem_buffer()
196 int PmemUserspaceAllocator::free_pmem_buffer(size_t size, void* base, int offset, int fd) in free_pmem_buffer() argument
201 int err = deps.unmapPmem(fd, offset, size); in free_pmem_buffer()
203 "sub.size=%u", strerror(deps.getErrno()), fd, offset, size); in free_pmem_buffer()
[all …]
Dpmemalloc.h40 virtual int free_pmem_buffer(size_t size, void* base, int offset, int fd) = 0;
62 virtual ssize_t deallocate(size_t offset) = 0;
70 virtual int mapPmem(int fd, int offset, size_t size) = 0;
71 virtual int unmapPmem(int fd, int offset, size_t size) = 0;
78 off_t offset) = 0;
93 virtual int free_pmem_buffer(size_t size, void* base, int offset, int fd);
138 off_t offset) = 0;
152 virtual int free_pmem_buffer(size_t size, void* base, int offset, int fd);
Dmapper.cpp61 size += hnd->offset; in gralloc_map()
71 hnd->base = intptr_t(mappedAddress) + hnd->offset; in gralloc_map()
87 base = (void*)(intptr_t(base) - hnd->offset); in gralloc_unmap()
88 size += hnd->offset; in gralloc_unmap()
285 region.offset = hnd->offset; in gralloc_unlock()
289 hnd, hnd->offset, hnd->size); in gralloc_unlock()
331 size_t offset = va_arg(args, size_t); in gralloc_perform() local
347 hnd->offset = offset; in gralloc_perform()
348 hnd->base = intptr_t(base) + offset; in gralloc_perform()
Dgralloc.cpp80 virtual int mapPmem(int fd, int offset, size_t size) { in mapPmem() argument
81 struct pmem_region sub = { offset, size }; in mapPmem()
85 virtual int unmapPmem(int fd, int offset, size_t size) { in unmapPmem() argument
86 struct pmem_region sub = { offset, size }; in unmapPmem()
95 off_t offset) { in mmap() argument
96 return ::mmap(start, length, prot, flags, fd, offset); in mmap()
Dframebuffer.cpp114 const size_t offset = hnd->base - m->framebuffer->base; in fb_post() local
116 m->info.yoffset = offset / m->finfo.line_length; in fb_post()
213 info.red.offset = 24; in mapFrameBufferLocked()
215 info.green.offset = 16; in mapFrameBufferLocked()
217 info.blue.offset = 8; in mapFrameBufferLocked()
219 info.transp.offset = 0; in mapFrameBufferLocked()
295 info.red.offset, info.red.length, in mapFrameBufferLocked()
296 info.green.offset, info.green.length, in mapFrameBufferLocked()
297 info.blue.offset, info.blue.length in mapFrameBufferLocked()
437 blit.req.src.offset = 0; in msm_copy_buffer()
[all …]
Dgpu.cpp96 hnd->offset = vaddr - intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
122 int offset = 0; in gralloc_alloc_buffer() local
165 err = pma->alloc_pmem_buffer(size, usage, &base, &offset, &fd); in gralloc_alloc_buffer()
188 hnd->offset = offset; in gralloc_alloc_buffer()
189 hnd->base = int(base)+offset; in gralloc_alloc_buffer()
291 hnd->offset, hnd->fd); in free_impl()
Dallocator.cpp64 ssize_t offset = alloc(size, flags); in allocate() local
65 return offset; in allocate()
68 ssize_t SimpleBestFitAllocator::deallocate(size_t offset) in deallocate() argument
72 chunk_t const * const freed = dealloc(offset); in deallocate()
/hardware/msm7k/libgralloc/
Dgralloc.cpp176 hnd->offset = vaddr - intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
323 int offset = 0; in gralloc_alloc_buffer() local
352 offset = sAllocator.allocate(size); in gralloc_alloc_buffer()
353 if (offset < 0) { in gralloc_alloc_buffer()
357 struct pmem_region sub = { offset, size }; in gralloc_alloc_buffer()
374 sAllocator.deallocate(offset); in gralloc_alloc_buffer()
377 memset((char*)base + offset, 0, size); in gralloc_alloc_buffer()
409 offset = sAllocatorGPU.allocate(size); in gralloc_alloc_buffer()
410 if (offset < 0) { in gralloc_alloc_buffer()
418 LOGD("allocating GPU size=%d, offset=%d", size, offset); in gralloc_alloc_buffer()
[all …]
Dmapper.cpp61 size += hnd->offset; in gralloc_map()
71 hnd->base = intptr_t(mappedAddress) + hnd->offset; in gralloc_map()
87 base = (void*)(intptr_t(base) - hnd->offset); in gralloc_unmap()
88 size += hnd->offset; in gralloc_unmap()
215 size_t offset = va_arg(args, size_t); in gralloc_perform() local
231 hnd->offset = offset; in gralloc_perform()
232 hnd->base = intptr_t(base) + offset; in gralloc_perform()
Dframebuffer.cpp100 const size_t offset = hnd->base - m->framebuffer->base; in fb_post() local
102 m->info.yoffset = offset / m->finfo.line_length; in fb_post()
186 info.red.offset = 11; in mapFrameBufferLocked()
188 info.green.offset = 5; in mapFrameBufferLocked()
190 info.blue.offset = 0; in mapFrameBufferLocked()
192 info.transp.offset = 0; in mapFrameBufferLocked()
259 info.red.offset, info.red.length, in mapFrameBufferLocked()
260 info.green.offset, info.green.length, in mapFrameBufferLocked()
261 info.blue.offset, info.blue.length in mapFrameBufferLocked()
400 blit.req.src.offset = 0; in msm_copy_buffer()
[all …]
Dallocator.cpp64 ssize_t offset = alloc(size, flags); in allocate() local
65 return offset; in allocate()
68 ssize_t SimpleBestFitAllocator::deallocate(size_t offset) in deallocate() argument
72 chunk_t const * const freed = dealloc(offset); in deallocate()
/hardware/broadcom/wlan/bcm4329/src/include/
Dlinux_osl.h53 #define OSL_PCMCIA_READ_ATTR(osh, offset, buf, size) \ argument
54 osl_pcmcia_read_attr((osh), (offset), (buf), (size))
55 #define OSL_PCMCIA_WRITE_ATTR(osh, offset, buf, size) \ argument
56 osl_pcmcia_write_attr((osh), (offset), (buf), (size))
57 extern void osl_pcmcia_read_attr(osl_t *osh, uint offset, void *buf, int size);
58 extern void osl_pcmcia_write_attr(osl_t *osh, uint offset, void *buf, int size);
61 #define OSL_PCI_READ_CONFIG(osh, offset, size) \ argument
62 osl_pci_read_config((osh), (offset), (size))
63 #define OSL_PCI_WRITE_CONFIG(osh, offset, size, val) \ argument
64 osl_pci_write_config((osh), (offset), (size), (val))
[all …]
/hardware/libhardware/modules/gralloc/
Dframebuffer.cpp102 const size_t offset = hnd->base - m->framebuffer->base; in fb_post() local
104 m->info.yoffset = offset / m->finfo.line_length; in fb_post()
184 info.red.offset = 11; in mapFrameBufferLocked()
186 info.green.offset = 5; in mapFrameBufferLocked()
188 info.blue.offset = 0; in mapFrameBufferLocked()
190 info.transp.offset = 0; in mapFrameBufferLocked()
262 info.red.offset, info.red.length, in mapFrameBufferLocked()
263 info.green.offset, info.green.length, in mapFrameBufferLocked()
264 info.blue.offset, info.blue.length in mapFrameBufferLocked()
Dgralloc_priv.h75 int offset; member
87 fd(fd), magic(sMagic), flags(flags), size(size), offset(0), in private_handle_t()
/hardware/broadcom/wlan/bcm4329/src/shared/
Dlinux_osl.c377 osl_pci_read_config(osl_t *osh, uint offset, uint size) in osl_pci_read_config() argument
388 pci_read_config_dword(osh->pdev, offset, &val); in osl_pci_read_config()
398 osl_pci_write_config(osl_t *osh, uint offset, uint size, uint val) in osl_pci_write_config() argument
408 pci_write_config_dword(osh->pdev, offset, val); in osl_pci_write_config()
409 if (offset != PCI_BAR0_WIN) in osl_pci_write_config()
411 if (osl_pci_read_config(osh, offset, size) == val) in osl_pci_write_config()
436 osl_pcmcia_attr(osl_t *osh, uint offset, char *buf, int size, bool write) in osl_pcmcia_attr() argument
441 osl_pcmcia_read_attr(osl_t *osh, uint offset, void *buf, int size) in osl_pcmcia_read_attr() argument
443 osl_pcmcia_attr(osh, offset, (char *) buf, size, FALSE); in osl_pcmcia_read_attr()
447 osl_pcmcia_write_attr(osl_t *osh, uint offset, void *buf, int size) in osl_pcmcia_write_attr() argument
[all …]
Dbcmwifi.c151 int offset; in wf_mhz2channel() local
170 offset = freq - base; in wf_mhz2channel()
171 ch = offset / 5; in wf_mhz2channel()
174 if (offset != (ch * 5)) in wf_mhz2channel()
Dbcmutils.c56 pktcopy(osl_t *osh, void *p, uint offset, int len, uchar *buf) in pktcopy() argument
64 for (; p && offset; p = PKTNEXT(osh, p)) { in pktcopy()
65 if (offset < (uint)PKTLEN(osh, p)) in pktcopy()
67 offset -= PKTLEN(osh, p); in pktcopy()
75 n = MIN((uint)PKTLEN(osh, p) - offset, (uint)len); in pktcopy()
76 bcopy(PKTDATA(osh, p) + offset, buf, n); in pktcopy()
80 offset = 0; in pktcopy()
88 pktfrombuf(osl_t *osh, void *p, uint offset, int len, uchar *buf) in pktfrombuf() argument
93 for (; p && offset; p = PKTNEXT(osh, p)) { in pktfrombuf()
94 if (offset < (uint)PKTLEN(osh, p)) in pktfrombuf()
[all …]
/hardware/msm7k/libopencorehw/
Dandroid_surface_output_msm72xx.cpp209 bool AndroidSurfaceOutputMsm72xx::getOffset(OsclAny *private_data_ptr, uint32 *offset) in getOffset() argument
226 *offset = pmemInfoPtr->offset; in getOffset()
227 LOGV("in getOffset: offset = %d\n",*offset); in getOffset()
235 static inline void* byteOffset(void* p, size_t offset) { return (void*)((uint8_t*)p + offset); } in byteOffset() argument
Dandroid_surface_output_msm72xx.h32 uint32 offset; member
69 bool getOffset(OsclAny *private_data_ptr, uint32 *offset);
/hardware/broadcom/wlan/bcm4329/src/bcmsdio/sys/
Dbcmsdh_sdmmc.c594 if (sd_ptr->offset < SD_SysAddr || sd_ptr->offset > SD_MaxCurCap) { in sdioh_iovar_op()
595 sd_err(("%s: bad offset 0x%x\n", __FUNCTION__, sd_ptr->offset)); in sdioh_iovar_op()
601 (sd_ptr->offset & 1) ? 8 : ((sd_ptr->offset & 2) ? 16 : 32), in sdioh_iovar_op()
602 sd_ptr->offset)); in sdioh_iovar_op()
603 if (sd_ptr->offset & 1) in sdioh_iovar_op()
605 else if (sd_ptr->offset & 2) in sdioh_iovar_op()
618 if (sd_ptr->offset < SD_SysAddr || sd_ptr->offset > SD_MaxCurCap) { in sdioh_iovar_op()
619 sd_err(("%s: bad offset 0x%x\n", __FUNCTION__, sd_ptr->offset)); in sdioh_iovar_op()
625 (sd_ptr->offset & 1) ? 8 : ((sd_ptr->offset & 2) ? 16 : 32), in sdioh_iovar_op()
626 sd_ptr->offset)); in sdioh_iovar_op()
[all …]
/hardware/ril/mock-ril/src/cpp/
Dnode_buffer.cpp433 size_t offset = args[1]->Int32Value(); in Utf8Write() local
435 if (offset >= buffer->length_) { in Utf8Write()
441 const char *p = buffer->data() + offset; in Utf8Write()
446 buffer->length_ - offset); in Utf8Write()
475 size_t offset = args[1]->Int32Value(); in AsciiWrite() local
477 if (offset >= buffer->length_) { in AsciiWrite()
483 const char *p = buffer->data() + offset; in AsciiWrite()
485 size_t towrite = MIN((unsigned long) s->Length(), buffer->length_ - offset); in AsciiWrite()
507 size_t offset = args[1]->Int32Value(); in BinaryWrite() local
509 if (offset >= buffer->length_) { in BinaryWrite()
[all …]
/hardware/qcom/media/mm-video/vidc/venc/src/
Dvideo_encoder_device.cpp865 dev_buffer.offset = pmem_tmp->offset; in venc_use_buf()
872 dev_buffer.offset, \ in venc_use_buf()
887 dev_buffer.offset = pmem_tmp->offset; in venc_use_buf()
894 dev_buffer.offset, \ in venc_use_buf()
928 dev_buffer.offset = pmem_tmp->offset; in venc_free_buf()
935 dev_buffer.offset, \ in venc_free_buf()
950 dev_buffer.offset = pmem_tmp->offset; in venc_free_buf()
957 dev_buffer.offset, \ in venc_free_buf()
1006 frameinfo.offset = bufhdr->nOffset; in venc_empty_buf()
1013 bufhdr->pBuffer, frameinfo.ptrbuffer, frameinfo.offset, frameinfo.len); in venc_empty_buf()
[all …]

1234