| /lib/gfx/include/lib/ |
| A D | gfx.h | 47 uint width; 52 uint alpha; 56 … void (*copyrect)(struct gfx_surface *, uint x, uint y, uint width, uint height, uint x2, uint y2); 57 void (*fillrect)(struct gfx_surface *, uint x, uint y, uint width, uint height, uint color); 58 void (*putpixel)(struct gfx_surface *, uint x, uint y, uint color); 59 void (*flush)(uint starty, uint endy); 63 void gfx_copyrect(gfx_surface *surface, uint x, uint y, uint width, uint height, uint x2, uint y2); 66 void gfx_fillrect(gfx_surface *surface, uint x, uint y, uint width, uint height, uint color); 69 void gfx_putpixel(gfx_surface *surface, uint x, uint y, uint color); 72 void gfx_line(gfx_surface *surface, uint x1, uint y1, uint x2, uint y2, uint color); [all …]
|
| /lib/evlog/include/lib/ |
| A D | evlog.h | 14 uint head; 15 uint unitsize; 16 uint len_pow2; 20 status_t evlog_init_etc(evlog_t *e, uint len, uint unitsize, uintptr_t *items); 21 status_t evlog_init(evlog_t *e, uint len, uint unitsize); 30 uint evlog_bump_head(evlog_t *e);
|
| /lib/gfx/ |
| A D | gfx.c | 81 void gfx_copyrect(gfx_surface *surface, uint x, uint y, uint width, uint height, uint x2, uint y2) { in gfx_copyrect() 112 void gfx_fillrect(gfx_surface *surface, uint x, uint y, uint width, uint height, uint color) { in gfx_fillrect() 136 void gfx_putpixel(gfx_surface *surface, uint x, uint y, uint color) { in gfx_putpixel() 158 static void putpixel8(gfx_surface *surface, uint x, uint y, uint color) { in putpixel8() 165 static void copyrect8(gfx_surface *surface, uint x, uint y, uint width, uint height, uint x2, uint … in copyrect8() 200 static void fillrect8(gfx_surface *surface, uint x, uint y, uint width, uint height, uint color) { in fillrect8() 216 static void copyrect16(gfx_surface *surface, uint x, uint y, uint width, uint height, uint x2, uint… in copyrect16() 251 static void fillrect16(gfx_surface *surface, uint x, uint y, uint width, uint height, uint color) { in fillrect16() 267 static void copyrect32(gfx_surface *surface, uint x, uint y, uint width, uint height, uint x2, uint… in copyrect32() 302 static void fillrect32(gfx_surface *surface, uint x, uint y, uint width, uint height, uint color) { in fillrect32() [all …]
|
| /lib/tga/ |
| A D | tga.c | 56 static void decode_2byte(gfx_surface *surface, uint x, uint y, const void *input) { in decode_2byte() 60 uint r,g,b; in decode_2byte() 129 void (*decodefunc)(gfx_surface *, uint x, uint y, const void *) = NULL; in tga_decode() 131 uint step = 1; in tga_decode() 145 uint pos = 0; in tga_decode() 146 uint x, y; in tga_decode() 147 uint surfacey; in tga_decode() 163 uint pos = 0; in tga_decode() 164 uint count = 0; in tga_decode() 165 uint x, y; in tga_decode() [all …]
|
| /lib/iovec/ |
| A D | iovec.c | 21 ssize_t iovec_size (const iovec_t *iov, uint iov_cnt) { in iovec_size() 26 for (uint i = 0; i < iov_cnt; i++, iov++) { in iovec_size() 36 ssize_t iovec_to_membuf (uint8_t *buf, uint buf_len, const iovec_t *iov, uint iov_cnt, uint iov_pos… in iovec_to_membuf() 37 uint buf_pos = 0; in iovec_to_membuf() 43 for (uint i = 0; i < iov_cnt; i++, iov++) { in iovec_to_membuf()
|
| /lib/bcache/include/lib/ |
| A D | bcache.h | 20 int bcache_read_block(bcache_t, void *, uint block); 23 int bcache_get_block(bcache_t, void **, uint block); 24 int bcache_put_block(bcache_t, uint block); 25 int bcache_mark_block_dirty(bcache_t priv, uint blocknum); 26 int bcache_zero_block(bcache_t priv, uint blocknum);
|
| /lib/libc/include/ |
| A D | iovec.h | 21 ssize_t iovec_size(const iovec_t *iov, uint iov_cnt); 23 ssize_t iovec_to_membuf(uint8_t *buf, uint buf_len, 24 const iovec_t *iov, uint iov_cnt, uint iov_pos);
|
| /lib/evlog/ |
| A D | evlog.c | 18 status_t evlog_init_etc(evlog_t *e, uint len, uint unitsize, uintptr_t *items) { in evlog_init_etc() 37 status_t evlog_init(evlog_t *e, uint len, uint unitsize) { in evlog_init() 49 uint evlog_bump_head(evlog_t *e) { in evlog_bump_head() 50 uint index = e->head; in evlog_bump_head() 57 …for (uint index = INCPTR(e, e->head, e->unitsize); index != e->head; index = INCPTR(e, index, e->u… in evlog_dump()
|
| /lib/klog/include/lib/ |
| A D | klog.h | 24 status_t klog_create(void *ptr, size_t len, uint count); 26 uint klog_buffer_count(void); 27 uint klog_current_buffer(void); 28 status_t klog_set_current_buffer(uint buffer);
|
| /lib/cbuf/include/lib/ |
| A D | cbuf.h | 19 uint head; 20 uint tail; 21 uint len_pow2;
|
| /lib/font/ |
| A D | font.c | 31 uint i,j; in font_draw_char() 32 uint line; in font_draw_char()
|
| /lib/klog/ |
| A D | klog.c | 54 static struct klog_header *find_nth_log(uint log) { in find_nth_log() 85 for (uint i = 0; i < k->size; i++) { in get_checksum_klog_data() 180 for (uint i = 0; i < kbuf->log_count; i++) { in klog_recover() 217 uint klog_buffer_count(void) { in klog_buffer_count() 227 uint klog_current_buffer(void) { in klog_current_buffer() 237 status_t klog_set_current_buffer(uint buffer) { in klog_set_current_buffer() 332 uint newhead = klog->head + 1; in klog_puts_len() 339 uint newtail = klog->tail + 1; in klog_puts_len() 436 for (uint i = 0; i < vec[0].iov_len; i++) in klog_dump() 478 uint size = argv[2].u; in cmd_klog() [all …]
|
| /lib/bio/include/lib/ |
| A D | bio.h | 53 ssize_t (*read_block)(struct bdev *, void *buf, bnum_t block, uint count); 55 ssize_t (*write_block)(struct bdev *, const void *buf, bnum_t block, uint count); 68 ssize_t bio_read_block(bdev_t *dev, void *buf, bnum_t block, uint count); 70 ssize_t bio_write_block(bdev_t *dev, const void *buf, bnum_t block, uint count); 103 uint bio_trim_block_range(const bdev_t *dev, bnum_t block, uint count);
|
| /lib/elf/include/lib/ |
| A D | elf.h | 27 typedef status_t (*elf_mem_alloc_t)(struct elf_handle *, void **ptr, size_t len, uint num, uint fla…
|
| /lib/gfxconsole/ |
| A D | gfxconsole.c | 36 uint rows, columns; 37 uint extray; // extra pixels left over if the rows doesn't fit precisely 39 uint x, y; 157 static void gfxconsole_init_hook(uint level) { in gfxconsole_init_hook()
|
| /lib/dpc/ |
| A D | dpc.c | 30 status_t dpc_queue(dpc_callback cb, void *arg, uint flags) { in dpc_queue() 69 static void dpc_init(uint level) { in dpc_init()
|
| /lib/dpc/include/lib/ |
| A D | dpc.h | 17 status_t dpc_queue(dpc_callback, void *arg, uint flags);
|
| /lib/bcache/ |
| A D | bcache.c | 108 static struct bcache_block *find_block(struct bcache *cache, uint blocknum) { in find_block() 166 static struct bcache_block *find_or_fill_block(struct bcache *cache, uint blocknum) { in find_or_fill_block() 198 int bcache_read_block(bcache_t _cache, void *buf, uint blocknum) { in bcache_read_block() 213 int bcache_get_block(bcache_t _cache, void **ptr, uint blocknum) { in bcache_get_block() 233 int bcache_put_block(bcache_t _cache, uint blocknum) { in bcache_put_block() 249 int bcache_mark_block_dirty(bcache_t priv, uint blocknum) { in bcache_mark_block_dirty() 266 int bcache_zero_block(bcache_t priv, uint blocknum) { in bcache_zero_block()
|
| /lib/console/ |
| A D | console.c | 71 static uint start_history_cursor(console_t *con); 72 static const char *next_history(console_t *con, uint *cursor); 73 static const char *prev_history(console_t *con, uint *cursor); 115 static inline char *history_line(console_t *con, uint line) { in history_line() 119 static inline uint ptrnext(uint ptr) { in ptrnext() 123 static inline uint ptrprev(uint ptr) { in ptrprev() 129 uint ptr = ptrprev(con->history_next); in dump_history() 151 static uint start_history_cursor(console_t *con) { in start_history_cursor() 156 uint i = ptrnext(*cursor); in next_history() 166 uint i; in prev_history() [all …]
|
| /lib/libc/ |
| A D | printf.c | 142 __NO_INLINE static char *longlong_to_string(char *buf, unsigned long long n, size_t len, uint flag,… in longlong_to_string() 179 __NO_INLINE static char *longlong_to_hexstring(char *buf, unsigned long long u, size_t len, uint fl… in longlong_to_hexstring() 222 uint i = pos; in exponent_to_string() 224 uint digit = (uint32_t)exponent % 10; in exponent_to_string() 235 __NO_INLINE static char *double_to_string(char *buf, size_t len, double d, uint flag) { in double_to_string() 311 uint i = decimal_spot + 6 + 1; in double_to_string() 313 uint digit = frac % 10; in double_to_string() 334 __NO_INLINE static char *double_to_hexstring(char *buf, size_t len, double d, uint flag) { in double_to_hexstring() 388 uint digit = (fraction >> i) & 0xf; in double_to_hexstring() 620 uint written = err; in _printf_engine()
|
| /lib/bio/ |
| A D | mem.c | 34 static ssize_t mem_bdev_read_block(struct bdev *bdev, void *buf, bnum_t block, uint count) { in mem_bdev_read_block() 54 static ssize_t mem_bdev_write_block(struct bdev *bdev, const void *buf, bnum_t block, uint count) { in mem_bdev_write_block()
|
| /lib/fs/ext2/ |
| A D | io.c | 79 blocknum_t **cache_block, uint32_t level, uint32_t pos[], uint *block_loaded) { in ext2_get_indirect_block_pointer_cache_block() 81 uint current_block = 0, last_block; in ext2_get_indirect_block_pointer_cache_block() 127 static blocknum_t file_block_to_fs_block(ext2_t *ext2, struct ext2_inode *inode, uint fileblock) { in file_block_to_fs_block() 182 uint file_block = offset / EXT2_BLOCK_SIZE(ext2->sb); in ext2_read_inode()
|
| A D | dir.c | 19 uint file_blocknum; in ext2_dir_lookup() 40 uint pos = 0; in ext2_dir_lookup()
|
| /lib/libc/include/sys/ |
| A D | types.h | 16 typedef unsigned int uint; typedef
|
| /lib/cbuf/ |
| A D | cbuf.c | 43 uint consumed = modpow2((uint)(cbuf->head - cbuf->tail), cbuf->len_pow2); in cbuf_space_avail() 48 return modpow2((uint)(cbuf->head - cbuf->tail), cbuf->len_pow2); in cbuf_space_used()
|