Home
last modified time | relevance | path

Searched refs:size_t (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/lk-master/external/lib/heap/dlmalloc/include/lib/
A Ddlmalloc.h134 void* dlcalloc(size_t, size_t);
187 void* dlmemalign(size_t, size_t);
197 int dlposix_memalign(void**, size_t, size_t);
276 size_t dlmalloc_set_footprint_limit(size_t bytes);
385 void** dlindependent_calloc(size_t, size_t, void**);
443 void** dlindependent_comalloc(size_t, size_t*, void**);
454 size_t dlbulk_free(void**, size_t n_elements);
599 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size);
602 void* mspace_memalign(mspace msp, size_t alignment, size_t bytes);
607 size_t mspace_bulk_free(mspace msp, void**, size_t n_elements);
[all …]
/lk-master/lib/libc/include/
A Dstring.h15 void *memchr (void const *, int, size_t) __PURE;
17 void *memcpy (void *, void const *, size_t);
18 void *memmove(void *, void const *, size_t);
19 void *memset (void *, int, size_t);
26 size_t strlen(char const *) __PURE;
37 size_t strxfrm(char *dest, const char *src, size_t n) __PURE;
41 void bcopy(void const *, void *, size_t);
42 void bzero(void *, size_t);
43 size_t strlcat(char *, char const *, size_t);
44 size_t strlcpy(char *, char const *, size_t);
[all …]
A Dstdio.h29 size_t fread(void *ptr, size_t size, size_t count, FILE *stream);
30 size_t fwrite(const void *ptr, size_t size, size_t count, FILE *stream);
61 int _fprintf_output_func(const char *str, size_t len, void *state);
64 int snprintf(char *str, size_t len, const char *fmt, ...) __PRINTFLIKE(3, 4);
66 int vsnprintf(char *str, size_t len, const char *fmt, va_list ap);
/lk-master/dev/include/dev/class/
A Dfb.h15 size_t line_width;
16 size_t width;
17 size_t height;
18 size_t bpp;
25 status_t (*set_mode)(struct device *dev, size_t width, size_t height, size_t bpp);
28 status_t (*update_region)(struct device *dev, size_t x, size_t y, size_t width, size_t height);
33 status_t class_fb_set_mode(struct device *dev, size_t width, size_t height, size_t bpp);
36 status_t class_fb_update_region(struct device *dev, size_t x, size_t y, size_t width, size_t height…
/lk-master/lib/libc/string/
A Dmemset.c17 memset(void *s, int c, size_t count) { in memset()
19 size_t len = (-(size_t)s) & (sizeof(size_t)-1); in memset()
20 size_t cc = c & 0xff; in memset()
26 if (sizeof(size_t) == 8) in memset()
34 for ( len = count/sizeof(size_t); len > 0; len-- ) { in memset()
35 *((size_t *)xs) = (size_t)cc; in memset()
36 xs += sizeof(size_t); in memset()
39 count &= sizeof(size_t)-1; in memset()
/lk-master/lib/cbuf/include/lib/
A Dcbuf.h37 void cbuf_initialize(cbuf_t *cbuf, size_t len);
49 void cbuf_initialize_etc(cbuf_t *cbuf, size_t len, void *buf);
65 size_t cbuf_read(cbuf_t *cbuf, void *buf, size_t buflen, bool block);
81 size_t cbuf_peek(cbuf_t *cbuf, iovec_t *regions);
99 size_t cbuf_write(cbuf_t *cbuf, const void *buf, size_t len, bool canreschedule);
109 size_t cbuf_space_avail(cbuf_t *cbuf);
119 size_t cbuf_space_used(cbuf_t *cbuf);
128 static inline size_t cbuf_size(cbuf_t *cbuf) { in cbuf_size()
145 size_t cbuf_read_char(cbuf_t *cbuf, char *c, bool block);
146 size_t cbuf_write_char(cbuf_t *cbuf, char c, bool canreschedule);
/lk-master/external/lib/heap/dlmalloc/
A Ddlmalloc.c703 #define DEFAULT_GRANULARITY ((size_t)64U * (size_t)1024U)
708 #define DEFAULT_TRIM_THRESHOLD ((size_t)2U * (size_t)1024U * (size_t)1024U)
898 DLMALLOC_EXPORT void* dlcalloc(size_t, size_t);
951 DLMALLOC_EXPORT void* dlmemalign(size_t, size_t);
3229 magic = (size_t)&magic ^ (size_t)0x55555555U; in init_mparams()
3231 magic = (size_t)(time(0) ^ (size_t)0x55555555U); in init_mparams()
3246 size_t val; in change_mparam()
4844 void* dlcalloc(size_t n_elements, size_t elem_size) { in dlcalloc()
5314 void* dlmemalign(size_t alignment, size_t bytes) { in dlmemalign()
5369 size_t dlbulk_free(void* array[], size_t nelem) { in dlbulk_free()
[all …]
/lk-master/external/lib/miniz/include/lib/
A Dminiz.h99 typedef void *(*mz_alloc_func)(void *opaque, size_t items, size_t size);
101 typedef void *(*mz_realloc_func)(void *opaque, void *address, size_t items, size_t size);
368 typedef size_t (*mz_file_read_func)(void *pOpaque, mz_uint64 file_ofs, void *pBuf, size_t n);
369 typedef size_t (*mz_file_write_func)(void *pOpaque, mz_uint64 file_ofs, const void *pBuf, size_t n);
551 void *tinfl_decompress_mem_to_heap(const void *pSrc_buf, size_t src_buf_len, size_t *pOut_len, int …
556 size_t tinfl_decompress_mem_to_mem(void *pOut_buf, size_t out_buf_len, const void *pSrc_buf, size_t
616 size_t m_dist_from_out_buf_start;
663 void *tdefl_compress_mem_to_heap(const void *pSrc_buf, size_t src_buf_len, size_t *pOut_len, int fl…
667 size_t tdefl_compress_mem_to_mem(void *pOut_buf, size_t out_buf_len, const void *pSrc_buf, size_t s…
729 size_t *m_pIn_buf_size, *m_pOut_buf_size;
[all …]
/lk-master/external/platform/pico/rp2_common/hardware_i2c/include/hardware/
A Di2c.h170 int i2c_read_blocking_until(i2c_inst_t *i2c, uint8_t addr, uint8_t *dst, size_t len, bool nostop, a…
206 static inline int i2c_read_timeout_us(i2c_inst_t *i2c, uint8_t addr, uint8_t *dst, size_t len, bool… in i2c_read_timeout_us()
224 int i2c_write_blocking(i2c_inst_t *i2c, uint8_t addr, const uint8_t *src, size_t len, bool nostop);
237 int i2c_read_blocking(i2c_inst_t *i2c, uint8_t addr, uint8_t *dst, size_t len, bool nostop);
247 static inline size_t i2c_get_write_available(i2c_inst_t *i2c) { in i2c_get_write_available()
248 const size_t IC_TX_BUFFER_DEPTH = 32; in i2c_get_write_available()
259 static inline size_t i2c_get_read_available(i2c_inst_t *i2c) { in i2c_get_read_available()
273 static inline void i2c_write_raw_blocking(i2c_inst_t *i2c, const uint8_t *src, size_t len) { in i2c_write_raw_blocking()
274 for (size_t i = 0; i < len; ++i) { in i2c_write_raw_blocking()
292 static inline void i2c_read_raw_blocking(i2c_inst_t *i2c, uint8_t *dst, size_t len) { in i2c_read_raw_blocking()
[all …]
/lk-master/lib/bio/include/lib/
A Dbio.h25 size_t erase_size;
26 size_t erase_shift;
37 size_t block_size;
38 size_t block_shift;
41 size_t geometry_count;
53 ssize_t (*erase)(struct bdev *, off_t offset, size_t len);
65 ssize_t bio_erase(bdev_t *dev, off_t offset, size_t len);
75 size_t block_size,
77 size_t geometry_count,
91 int create_membdev(const char *name, void *ptr, size_t len);
[all …]
/lk-master/lib/heap/miniheap/include/lib/
A Dminiheap.h16 size_t heap_len;
17 size_t heap_free;
18 size_t heap_max_chunk;
19 size_t heap_low_watermark;
24 void *miniheap_alloc(size_t, unsigned int alignment);
25 void *miniheap_realloc(void *, size_t);
28 void miniheap_init(void *ptr, size_t len);
/lk-master/external/platform/pico/rp2_common/pico_printf/
A Dprintf.c200 static size_t _out_rev(out_fct_type out, char *buffer, size_t idx, size_t maxlen, const char *buf, in _out_rev()
228 static size_t _ntoa_format(out_fct_type out, char *buffer, size_t idx, size_t maxlen, char *buf, si… in _ntoa_format()
279 static size_t _ntoa_long(out_fct_type out, char *buffer, size_t idx, size_t maxlen, unsigned long v… in _ntoa_long()
282 size_t len = 0U; in _ntoa_long()
305 static size_t _ntoa_long_long(out_fct_type out, char *buffer, size_t idx, size_t maxlen, unsigned l… in _ntoa_long_long()
309 size_t len = 0U; in _ntoa_long_long()
335 static size_t _etoa(out_fct_type out, char *buffer, size_t idx, size_t maxlen, double value, unsign…
342 static size_t _ftoa(out_fct_type out, char *buffer, size_t idx, size_t maxlen, double value, unsign… in _ftoa()
345 size_t len = 0U; in _ftoa()
467 static size_t _etoa(out_fct_type out, char *buffer, size_t idx, size_t maxlen, double value, unsign… in _etoa()
[all …]
/lk-master/lib/heap/cmpctmalloc/
A Dcmpctmalloc.c65 size_t size;
75 size_t size;
76 size_t remaining;
127 size_t size, size_t *rounded_up_out, int adjust, int increment) { in size_to_index_helper()
168 static int size_to_index_allocating(size_t size, size_t *rounded_up_out) { in size_to_index_allocating()
175 size_t dummy; in size_to_index_freeing()
278 void *address, size_t offset, size_t size, void *left) { in create_allocation_header()
419 size_t rounded; in cmpct_test_buckets()
689 size_t rounded_up; in cmpct_alloc()
737 void *cmpct_memalign(size_t size, size_t alignment) { in cmpct_memalign()
[all …]
/lk-master/kernel/include/kernel/
A Dvm.h53 size_t size;
117 size_t size;
119 size_t free_count;
134 size_t pmm_alloc_pages(uint count, struct list_node *list) __NONNULL((2));
143 size_t pmm_alloc_range(paddr_t address, uint count, struct list_node *list) __NONNULL((3));
148 size_t pmm_free(struct list_node *list) __NONNULL((1));
151 size_t pmm_free_page(vm_page_t *page) __NONNULL((1));
167 size_t pmm_free_kpages(void *ptr, uint count);
173 void *kvaddr_get_range(size_t *size_return);
192 size_t size;
[all …]
/lk-master/lib/cbuf/
A Dcbuf.c47 size_t cbuf_space_used(cbuf_t *cbuf) { in cbuf_space_used()
51 size_t cbuf_write(cbuf_t *cbuf, const void *_buf, size_t len, bool canreschedule) { in cbuf_write()
62 size_t write_len; in cbuf_write()
63 size_t pos = 0; in cbuf_write()
110 size_t cbuf_read(cbuf_t *cbuf, void *_buf, size_t buflen, bool block) { in cbuf_read()
125 size_t ret = 0; in cbuf_read()
127 size_t pos = 0; in cbuf_read()
132 size_t read_len; in cbuf_read()
175 size_t sz = cbuf_size(cbuf); in cbuf_peek()
201 size_t ret = 0; in cbuf_write_char()
[all …]
/lk-master/app/stringtests/
A Dstring_tests.c31 extern void *mymemset(void *dst, int c, size_t len);
95 size_t len = (-(size_t)s) & lmask; in c_memset()
129 …h_memcpy_routine(void *memcpy_routine(void *, const void *, size_t), size_t srcalign, size_t dstal… in bench_memcpy_routine() argument
142 size_t srcalign, dstalign; in bench_memcpy()
175 size_t i; in fillbuf()
184 size_t srcalign, dstalign, size; in validate_memcpy()
185 const size_t maxsize = 256; in validate_memcpy()
218 …me_t bench_memset_routine(void *memset_routine(void *, int, size_t), size_t dstalign, size_t len) { in bench_memset_routine() argument
231 size_t dstalign; in bench_memset()
251 size_t dstalign, size; in validate_memset()
[all …]
/lk-master/lib/heap/include/lib/
A Dheap.h17 void *malloc(size_t size) __MALLOC;
18 void *memalign(size_t boundary, size_t size) __MALLOC;
19 void *calloc(size_t count, size_t size) __MALLOC;
20 void *realloc(void *ptr, size_t size) __MALLOC;
/lk-master/external/platform/pico/rp2_common/hardware_spi/
A Dspi.c73 const size_t fifo_depth = 8; in __not_in_flash_func()
74 size_t rx_remaining = len, tx_remaining = len; in __not_in_flash_func()
91 int __not_in_flash_func(spi_write_blocking)(spi_inst_t *spi, const uint8_t *src, size_t len) { in __not_in_flash_func()
95 for (size_t i = 0; i < len; ++i) { in __not_in_flash_func()
120 const size_t fifo_depth = 8; in __not_in_flash_func()
121 size_t rx_remaining = len, tx_remaining = len; in __not_in_flash_func()
141 const size_t fifo_depth = 8; in __not_in_flash_func()
142 size_t rx_remaining = len, tx_remaining = len; in __not_in_flash_func()
162 for (size_t i = 0; i < len; ++i) { in __not_in_flash_func()
184 const size_t fifo_depth = 8; in __not_in_flash_func()
[all …]
/lk-master/arch/arm/arm-m/
A Dcache.c38 void arch_clean_cache_range(addr_t start, size_t len) { in arch_clean_cache_range()
48 void arch_clean_invalidate_cache_range(addr_t start, size_t len) { in arch_clean_invalidate_cache_range()
58 void arch_invalidate_cache_range(addr_t start, size_t len) { in arch_invalidate_cache_range()
71 void arch_sync_cache_range(addr_t start, size_t len) { in arch_sync_cache_range()
88 void arch_clean_cache_range(addr_t start, size_t len) { in arch_clean_cache_range()
92 void arch_clean_invalidate_cache_range(addr_t start, size_t len) { in arch_clean_invalidate_cache_range()
96 void arch_invalidate_cache_range(addr_t start, size_t len) { in arch_invalidate_cache_range()
103 void arch_sync_cache_range(addr_t start, size_t len) { in arch_sync_cache_range()
/lk-master/lib/libcpp/
A Dnew.cpp12 void *operator new (size_t s) { in operator new()
16 void *operator new[](size_t s) { in operator new[]()
20 void *operator new (size_t s, const std::nothrow_t &) noexcept { in operator new()
24 void *operator new[](size_t s, const std::nothrow_t &) noexcept { in operator new[]()
36 void operator delete (void *p, size_t s) { in operator delete()
40 void operator delete[](void *p, size_t s) { in operator delete[]()
/lk-master/lib/bio/
A Dbio.c50 } else if ((size_t)err != dev->block_size) { in bio_default_read()
56 size_t block_offset = offset % dev->block_size; in bio_default_read()
113 } else if ((size_t)err != dev->block_size) { in bio_default_read()
146 } else if ((size_t)err != dev->block_size) { in bio_default_write()
160 } else if ((size_t)err != dev->block_size) { in bio_default_write()
222 } else if ((size_t)err != dev->block_size) { in bio_default_write()
254 size_t remaining = len; in bio_default_erase()
267 if ((size_t)written < towrite) in bio_default_erase()
306 size_t bio_trim_range(const bdev_t *dev, off_t offset, size_t len) { in bio_trim_range()
439 size_t block_size, in bio_initialize_bdev()
[all …]
/lk-master/kernel/novm/
A Dnovm.c25 size_t pages;
28 size_t size;
35 size_t unaligned_size;
69 void *novm_alloc_unaligned(size_t *size_return) { in novm_alloc_unaligned()
99 size_t map_size = size >> PAGE_SIZE_SHIFT; in novm_init_helper()
160 for (size_t i = 0; i <= n->pages - pages; i++) { in novm_alloc_helper()
162 for (size_t j = 0; j < pages; j++) { in novm_alloc_helper()
195 void novm_free_pages(void *address, size_t pages) { in novm_free_pages()
237 for (size_t i = 0; i < pages; i++) { in novm_alloc_specific_pages()
283 size_t pages = (argc >= 4) ? argv[3].u : 1; in cmd_novm()
[all …]
/lk-master/dev/class/
A Dfb_api.c12 status_t class_fb_set_mode(struct device *dev, size_t width, size_t height, size_t bpp) { in class_fb_set_mode()
45 status_t class_fb_update_region(struct device *dev, size_t x, size_t y, size_t width, size_t height… in class_fb_update_region()
/lk-master/lib/buildsig/
A Dbuildsig.c56 status_t buildsig_search(const void *_ptr, size_t search_len, size_t max_len, const lk_version_t **… in buildsig_search()
65 for (size_t pos = 0; pos < search_len / 4; pos++) { in buildsig_search()
73 if ((size_t)sig->version - (size_t)ptr > max_len - sizeof(lk_version_t)) in buildsig_search()
79 (((size_t)(str) >= (size_t)ptr) && (((size_t)(str) - (size_t)ptr) < max_len)) in buildsig_search()
/lk-master/lib/heap/
A Dheap_wrapper.c38 static inline void *HEAP_MALLOC(size_t s) { return miniheap_alloc(s, 0); } in HEAP_MALLOC()
40 static inline void *HEAP_MEMALIGN(size_t boundary, size_t s) { return miniheap_alloc(s, boundary); } in HEAP_MEMALIGN()
42 static inline void *HEAP_CALLOC(size_t n, size_t s) { in HEAP_CALLOC()
43 size_t realsize = n * s; in HEAP_CALLOC()
52 size_t len; in HEAP_INIT()
71 static inline void *HEAP_CALLOC(size_t n, size_t s) { in HEAP_CALLOC()
72 size_t realsize = n * s; in HEAP_CALLOC()
152 void *malloc(size_t size) { in malloc()
166 void *memalign(size_t boundary, size_t size) { in memalign()
180 void *calloc(size_t count, size_t size) { in calloc()
[all …]

Completed in 58 milliseconds

12345678910>>...13