Lines Matching +full:- +full:l
4 * SPDX-License-Identifier: Apache-2.0
12 int llext_buf_read(struct llext_loader *l, void *buf, size_t len) in llext_buf_read() argument
14 struct llext_buf_loader *buf_l = CONTAINER_OF(l, struct llext_buf_loader, loader); in llext_buf_read()
15 size_t end = MIN(buf_l->pos + len, buf_l->len); in llext_buf_read()
16 size_t read_len = end - buf_l->pos; in llext_buf_read()
18 memcpy(buf, buf_l->buf + buf_l->pos, read_len); in llext_buf_read()
19 buf_l->pos = end; in llext_buf_read()
24 int llext_buf_seek(struct llext_loader *l, size_t pos) in llext_buf_seek() argument
26 struct llext_buf_loader *buf_l = CONTAINER_OF(l, struct llext_buf_loader, loader); in llext_buf_seek()
28 buf_l->pos = MIN(pos, buf_l->len); in llext_buf_seek()
33 void *llext_buf_peek(struct llext_loader *l, size_t pos) in llext_buf_peek() argument
35 struct llext_buf_loader *buf_l = CONTAINER_OF(l, struct llext_buf_loader, loader); in llext_buf_peek()
37 return (void *)(buf_l->buf + pos); in llext_buf_peek()