Home
last modified time | relevance | path

Searched refs:sz (Results 1 – 8 of 8) sorted by relevance

/lk-master/lib/minip/
A Dpktbuf.c139 if (pktbuf_avail_tail(p) < sz) { in pktbuf_append_data()
144 p->dlen += sz; in pktbuf_append_data()
148 if (pktbuf_avail_tail(p) < sz) { in pktbuf_append()
153 p->dlen += sz; in pktbuf_append()
163 p->dlen += sz; in pktbuf_prepend()
164 p->data -= sz; in pktbuf_prepend()
172 if (sz > p->dlen) { in pktbuf_consume()
176 p->data += sz; in pktbuf_consume()
177 p->dlen -= sz; in pktbuf_consume()
183 if (sz > p->dlen) { in pktbuf_consume_tail()
[all …]
A Ddhcp.c167 static void dhcp_cb(void *data, size_t sz, uint32_t srcip, uint16_t srcport, void *arg) { in dhcp_cb() argument
176 if (sz < sizeof(dhcp_msg_t)) return; in dhcp_cb()
181 printf("dhcp op=%d len=%d from p=%d ip=", msg->opcode, sz, srcport); in dhcp_cb()
198 sz -= sizeof(dhcp_msg_t); in dhcp_cb()
200 while (sz >= 2) { in dhcp_cb()
201 sz -= 2; in dhcp_cb()
202 if (opt[1] > sz) { in dhcp_cb()
228 sz -= opt[1]; in dhcp_cb()
/lk-master/tools/
A Dbootimage.c86 unsigned sz = img->next_offset; in bootimage_done() local
87 if (sz & 4095) { in bootimage_done()
88 sz += (4096 - (sz & 4095)); in bootimage_done()
90 img->entry[1].info.image_size = sz; in bootimage_done()
141 off_t sz; in load_file() local
150 if ((sz = lseek(fd, 0, SEEK_END)) < 0) { in load_file()
157 if ((data = malloc(sz)) == NULL) { in load_file()
162 *len = sz; in load_file()
164 while (sz > 0) { in load_file()
165 r = read(fd, x, sz); in load_file()
[all …]
/lk-master/lib/devicetree/
A Ddevicetree.c89 u32 sz = s->size; in sstring() local
92 while (sz-- > 0) { in sstring()
94 while (((end - s->data) & 3) && (sz > 0)) { in sstring()
96 sz--; in sstring()
99 s->size = sz; in sstring()
152 u32 sz, str; in dt_walk() local
178 sz = su32(&dt); in dt_walk()
180 data = sdata(&dt, sz); in dt_walk()
181 if (pcb((const char *) (ds.data + str), data, sz, cookie)) in dt_walk()
/lk-master/lib/minip/include/lib/
A Dpktbuf.h80 void pktbuf_append_data(pktbuf_t *p, const void *data, size_t sz);
84 void *pktbuf_append(pktbuf_t *p, size_t sz);
88 void *pktbuf_prepend(pktbuf_t *p, size_t sz);
94 void *pktbuf_consume(pktbuf_t *p, size_t sz);
97 void pktbuf_consume_tail(pktbuf_t *p, size_t sz);
/lk-master/platform/lpc43xx/include/platform/
A Dlpc43xx-gpdma.h43 #define DMA_SRC_BURST(sz) (((sz) & 7) << 12) argument
44 #define DMA_DST_BURST(sz) (((sz) & 7) << 15) argument
/lk-master/lib/cbuf/
A Dcbuf.c175 size_t sz = cbuf_size(cbuf); in cbuf_peek() local
177 DEBUG_ASSERT(cbuf->tail < sz); in cbuf_peek()
178 DEBUG_ASSERT(ret <= sz); in cbuf_peek()
181 if (ret + cbuf->tail > sz) { in cbuf_peek()
182 regions[0].iov_len = sz - cbuf->tail; in cbuf_peek()
/lk-master/external/lib/heap/dlmalloc/
A Ddlmalloc.c3284 assert(sz == m->topsize); in do_check_top_chunk()
3285 assert(sz > 0); in do_check_top_chunk()
3293 size_t sz = chunksize(p); in do_check_mmapped_chunk() local
3299 assert(!is_small(sz)); in do_check_mmapped_chunk()
3318 size_t sz = chunksize(p); in do_check_free_chunk() local
3325 if (sz >= MIN_CHUNK_SIZE) { in do_check_free_chunk()
3335 assert(sz == SIZE_T_SIZE); in do_check_free_chunk()
3346 assert(sz >= MIN_CHUNK_SIZE); in do_check_malloced_chunk()
3347 assert(sz >= s); in do_check_malloced_chunk()
3555 sum += sz; in internal_mallinfo()
[all …]

Completed in 23 milliseconds