Home
last modified time | relevance | path

Searched refs:uint16_t (Results 1 – 25 of 35) sorted by relevance

12

/lib/uefi/
A Drelocation.cpp25 uint16_t ThumbMovtImmediateAddress(const uint16_t *Instruction) { in ThumbMovtImmediateAddress()
27 uint16_t Address{}; in ThumbMovtImmediateAddress()
54 uint16_t *Word{}; in ThumbMovwMovtImmediateAddress()
55 uint16_t *Top{}; in ThumbMovwMovtImmediateAddress()
70 void ThumbMovtImmediatePatch(uint16_t *Instruction, uint16_t Address) { in ThumbMovtImmediatePatch()
71 uint16_t Patch{}; in ThumbMovtImmediatePatch()
94 uint16_t *Word{}; in ThumbMovwMovtImmediatePatch()
95 uint16_t *Top{}; in ThumbMovwMovtImmediatePatch()
129 auto RelocEnd = reinterpret_cast<uint16_t *>( in relocate_image()
150 *Fixup16 = static_cast<uint16_t>( in relocate_image()
[all …]
/lib/minip/
A Dchksum.c12 uint16_t ones_sum16(uint32_t sum, const void *_buf, int len) { in ones_sum16()
13 const uint16_t *buf = _buf; in ones_sum16()
23 uint16_t temp = htons((*(uint8_t *)buf) << 8); in ones_sum16()
33 uint16_t rfc1701_chksum(const uint8_t *buf, size_t len) { in rfc1701_chksum()
35 uint16_t chksum = 0; in rfc1701_chksum()
36 const uint16_t *p = (const uint16_t *) buf; in rfc1701_chksum()
52 uint16_t chksum = 0; in rfc768_chksum()
54 uint16_t *p; in rfc768_chksum()
56 p = (uint16_t *)ipv4->src_addr; in rfc768_chksum()
60 p = (uint16_t *)ipv4->dst_addr; in rfc768_chksum()
[all …]
A Dminip-internal.h26 uint16_t htype;
27 uint16_t ptype;
30 uint16_t oper;
40 uint16_t len;
41 uint16_t id;
42 uint16_t flags_frags;
45 uint16_t chksum;
54 uint16_t chksum;
62 uint16_t type;
108 uint16_t rfc1701_chksum(const uint8_t *buf, size_t len);
[all …]
A Dudp.c27 uint16_t port;
34 uint16_t sport;
35 uint16_t dport;
40 uint16_t src_port;
41 uint16_t dst_port;
42 uint16_t len;
43 uint16_t chksum;
47 int udp_listen(uint16_t port, udp_callback_t cb, void *arg) { in udp_listen()
73 status_t udp_open(uint32_t host, uint16_t sport, uint16_t dport, udp_socket_t **handle) { in udp_open()
176 uint16_t port; in udp_input()
A Dtcp.c29 uint16_t source_port;
30 uint16_t dest_port;
33 uint16_t length_flags;
34 uint16_t win_size;
35 uint16_t checksum;
36 uint16_t urg_pointer;
44 uint16_t tcp_length;
50 uint16_t mss;
85 uint16_t local_port;
86 uint16_t remote_port;
[all …]
A Ddhcp.cpp87 void udp_callback(void *data, size_t sz, uint32_t srcip, uint16_t srcport);
88 static void dhcp_cb(void *data, size_t sz, uint32_t srcip, uint16_t srcport, void *arg);
202 void dhcp::dhcp_cb(void *data, size_t sz, uint32_t srcip, uint16_t srcport, void *arg) { in dhcp_cb()
208 void dhcp::udp_callback(void *data, size_t sz, uint32_t srcip, uint16_t srcport) { in udp_callback()
/lib/fs/ext2/
A Dext2_fs.h80 uint16_t bg_pad;
104 uint16_t i_mode; /* File mode */
112 uint16_t i_links_count; /* Links count */
135 uint16_t i_pad1;
143 uint16_t h_i_mode_high;
144 uint16_t h_i_uid_high;
145 uint16_t h_i_gid_high;
151 uint16_t m_pad1;
274 uint16_t s_padding1;
285 uint16_t s_reserved_word_pad;
[all …]
/lib/tftp/
A Dtftp.c45 (uint16_t)(((uint16_t)*((uint8_t*)(ptr)+1)<<8)|(uint16_t)*(uint8_t*)(ptr))
60 uint16_t src_port;
61 uint16_t listen_port;
62 uint16_t pkt_count;
65 uint16_t next_port = 2224;
67 static void send_ack(udp_socket_t *socket, uint16_t count) { in send_ack()
70 uint16_t ack[] = {htons(TFTP_OPCODE_ACK), htons(count)}; in send_ack()
77 static void send_error(udp_socket_t *socket, uint16_t code) { in send_error()
80 uint16_t ncode = htons(code); in send_error()
81 uint16_t err[] = { htons(TFTP_OPCODE_ERROR), ncode, in send_error()
[all …]
/lib/acpi_lite/include/lib/acpi_lite/
A Dstructs.h119 uint16_t minimum_tick;
159 uint16_t _reserved;
177 uint16_t _reserved;
218 uint16_t flags;
244 uint16_t length;
246 uint16_t namepath_length;
247 uint16_t namepath_offset;
250 uint16_t port_type;
251 uint16_t port_subtype;
252 uint16_t reserved;
[all …]
/lib/bytes/
A Dbytes.c13 uint16_t bytes_read_u16_be(const uint8_t *buf) { in bytes_read_u16_be()
14 uint16_t val; in bytes_read_u16_be()
37 uint8_t *bytes_write_u16_be(uint8_t *buf, uint16_t val) { in bytes_write_u16_be()
63 uint16_t bytes_read_u16_le(const uint8_t *buf) { in bytes_read_u16_le()
64 uint16_t val; in bytes_read_u16_le()
87 uint8_t *bytes_write_u16_le(uint8_t *buf, uint16_t val) { in bytes_write_u16_le()
119 uint16_t bytes_swap_bits_u16(uint16_t val) { in bytes_swap_bits_u16()
/lib/bytes/include/lib/
A Dbytes.h33 uint16_t bytes_read_u16_be(const uint8_t *buf);
37 uint8_t *bytes_write_u16_be(uint8_t *buf, uint16_t val);
42 uint16_t bytes_read_u16_le(const uint8_t *buf);
46 uint8_t *bytes_write_u16_le(uint8_t *buf, uint16_t val);
52 uint16_t bytes_swap_bits_u16(uint16_t val);
/lib/minip/include/lib/
A Dminip.h29 uint32_t srcaddr, uint16_t srcport, void *arg);
68 int udp_listen(uint16_t port, udp_callback_t cb, void *arg);
69 status_t udp_open(uint32_t host, uint16_t sport, uint16_t dport, udp_socket_t **handle);
77 status_t tcp_connect(tcp_socket_t **handle, uint32_t addr, uint16_t port);
78 status_t tcp_open_listen(tcp_socket_t **handle, uint16_t port);
/lib/uefi/include/uefi/protocols/
A Ddevice_path_protocol.h33 uint16_t* (*convert_device_node_to_text)(struct EfiDevicePathProtocol* device_node,
35 uint16_t* (*convert_device_path_to_text)(struct EfiDevicePathProtocol* device_path,
A Dsimple_text_input_protocol.h24 uint16_t scan_code;
A Dsimple_network_protocol.h122 void* buf, EfiMacAddress* src, EfiMacAddress* dest, uint16_t* protocol);
124 void* buf, EfiMacAddress* src, EfiMacAddress* dest, uint16_t* protocol);
/lib/norfs/
A Dnorfs.c45 uint16_t version;
46 uint16_t len;
48 uint16_t crc;
146 static uint16_t calculate_header_crc(uint32_t key, uint16_t version, in calculate_header_crc()
249 uint16_t len, uint8_t flags, uint16_t crc) { in write_obj_header()
281 uint16_t iov_ptr = 0; in copy_iovec_to_disk()
282 uint16_t word_ptr = 0; in copy_iovec_to_disk()
376 uint16_t crc = 0; in write_obj_iovec()
441 uint16_t prior_len; in norfs_remove_obj()
505 uint16_t version = 0; in norfs_put_obj_iovec()
[all …]
/lib/norfs/include/lib/
A Dnorfs.h40 status_t norfs_put_obj(uint32_t key, unsigned char *obj, uint16_t obj_len,
56 status_t norfs_read_obj(uint32_t key, unsigned char *buffer, uint16_t buffer_len,
A Dnorfs_config.h18 #define NORFS_FLASH_SIZE(obj_size) (uint16_t)(obj_size + NORFS_OBJ_OFFSET)
/lib/tga/
A Dtga.c28 uint16_t colormaporigin;
29 uint16_t colormaplength;
31 uint16_t x_origin;
32 uint16_t y_origin;
33 uint16_t width;
34 uint16_t height;
/lib/libc/include/sys/
A Dtypes.h50 typedef uint16_t u16;
60 typedef uint16_t u_int16_t;
/lib/libc/include/
A Dstdint.h13 typedef unsigned short uint16_t; typedef
56 typedef uint16_t uint_least16_t;
79 typedef uint16_t uint_fast16_t;
A Dendian.h25 static inline uint16_t SWAP_16(uint16_t x) { return __builtin_bswap16(x); } in SWAP_16()
/lib/debugcommands/
A Ddebugcommands.c191 uint16_t val = (byte_order != BYTE_ORDER) ? in cmd_display_mem()
192 SWAP_16(*(uint16_t *)address) : in cmd_display_mem()
193 *(uint16_t *)address; in cmd_display_mem()
282 *(uint16_t *)address = (uint16_t)val; in cmd_modify_mem()
330 *(uint16_t *)address = (uint16_t)val; in cmd_fill_mem()
/lib/uefi/include/uefi/
A Dtypes.h33 uint16_t data2;
34 uint16_t data3;
145 uint16_t Year;
/lib/gfx/
A Dgfx.c49 uint16_t out; in ARGB8888_to_RGB565()
146 uint16_t *dest = &((uint16_t *)surface->ptr)[x + y * surface->stride]; in putpixel16()
149 *dest = (uint16_t)(surface->translate_color(color)); in putpixel16()
218 const uint16_t *src = &((const uint16_t *)surface->ptr)[x + y * surface->stride]; in copyrect16()
219 uint16_t *dest = &((uint16_t *)surface->ptr)[x2 + y2 * surface->stride]; in copyrect16()
252 uint16_t *dest = &((uint16_t *)surface->ptr)[x + y * surface->stride]; in fillrect16()
255 uint16_t color16 = (uint16_t)(surface->translate_color(color)); in fillrect16()
429 const uint16_t *src = (const uint16_t *)source->ptr; in gfx_surface_blend()
430 uint16_t *dest = &((uint16_t *)target->ptr)[destx + desty * target->stride]; in gfx_surface_blend()

Completed in 56 milliseconds

12