Home
last modified time | relevance | path

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

123

/tools/include/tools/
Dbe_byteshift.h7 static inline uint16_t __get_unaligned_be16(const uint8_t *p) in __get_unaligned_be16()
23 static inline void __put_unaligned_be16(uint16_t val, uint8_t *p) in __put_unaligned_be16()
41 static inline uint16_t get_unaligned_be16(const void *p) in get_unaligned_be16()
56 static inline void put_unaligned_be16(uint16_t val, void *p) in put_unaligned_be16()
Dle_byteshift.h7 static inline uint16_t __get_unaligned_le16(const uint8_t *p) in __get_unaligned_le16()
23 static inline void __put_unaligned_le16(uint16_t val, uint8_t *p) in __put_unaligned_le16()
41 static inline uint16_t get_unaligned_le16(const void *p) in get_unaligned_le16()
56 static inline void put_unaligned_le16(uint16_t val, void *p) in put_unaligned_le16()
/tools/usb/usbip/libsrc/
Dusbip_common.h119 uint16_t idVendor;
120 uint16_t idProduct;
121 uint16_t bcdDevice;
147 void usbip_names_get_product(char *buff, size_t size, uint16_t vendor,
148 uint16_t product);
Dusbip_common.c215 READ_ATTR(udev, uint16_t, sdev, idVendor, "%04x\n"); in read_usb_device()
216 READ_ATTR(udev, uint16_t, sdev, idProduct, "%04x\n"); in read_usb_device()
217 READ_ATTR(udev, uint16_t, sdev, bcdDevice, "%04x\n"); in read_usb_device()
278 void usbip_names_get_product(char *buff, size_t size, uint16_t vendor, in usbip_names_get_product()
279 uint16_t product) in usbip_names_get_product()
/tools/testing/selftests/kvm/include/x86_64/
Dprocessor.h58 uint16_t limit0;
59 uint16_t base0;
67 uint16_t size;
115 static inline uint16_t inw(uint16_t port) in inw()
117 uint16_t tmp; in inw()
126 static inline uint16_t get_es(void) in get_es()
128 uint16_t es; in get_es()
135 static inline uint16_t get_cs(void) in get_cs()
137 uint16_t cs; in get_cs()
144 static inline uint16_t get_ss(void) in get_ss()
[all …]
/tools/lib/bpf/
Dnlattr.h43 uint16_t type;
46 uint16_t minlen;
49 uint16_t maxlen;
Dnlattr.c15 static uint16_t nla_attr_minlen[LIBBPF_NLA_TYPE_MAX+1] = {
17 [LIBBPF_NLA_U16] = sizeof(uint16_t),
/tools/usb/usbip/src/
Dusbip_network.h24 uint16_t version;
28 uint16_t code;
164 uint16_t usbip_net_pack_uint16_t(int pack, uint16_t num);
171 int usbip_net_recv_op_common(int sockfd, uint16_t *code, int *status);
Dusbip_network.c65 uint16_t usbip_net_pack_uint16_t(int pack, uint16_t num) in usbip_net_pack_uint16_t()
67 uint16_t i; in usbip_net_pack_uint16_t()
162 int usbip_net_recv_op_common(int sockfd, uint16_t *code, int *status) in usbip_net_recv_op_common()
Dusbip_list.c48 uint16_t code = OP_REP_DEVLIST; in get_exported_devices()
262 uint16_t idVendor; in list_gadget_devices()
264 uint16_t idProduct; in list_gadget_devices()
/tools/lib/traceevent/plugins/
Dplugin_cfg80211.c24 uint16_t *val = (uint16_t *) (unsigned long) args[0]; in process___le16_to_cpup()
/tools/testing/selftests/bpf/progs/
Dcore_reloc_types.h552 uint16_t u16_field;
565 uint16_t s16_field;
575 uint16_t u16_field;
586 uint16_t u16_field;
595 uint16_t u8_field; /* not 8-bit anymore */
598 uint16_t u16_field;
622 uint16_t u16_field;
635 uint16_t u16_field;
Dtest_core_reloc_ints.c18 uint16_t u16_field;
Dstrobemeta.h39 uint16_t len;
163 uint16_t key_lens[STROBE_MAX_MAP_ENTRIES];
164 uint16_t val_lens[STROBE_MAX_MAP_ENTRIES];
178 uint16_t str_lens[STROBE_MAX_STRS];
/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/
Dint_typedefs.h10 typedef uint16_t u16;
19 typedef uint16_t __u16;
/tools/testing/selftests/proc/
Dproc-pid-vm.c80 uint16_t e_type;
81 uint16_t e_machine;
87 uint16_t e_ehsize;
88 uint16_t e_phentsize;
89 uint16_t e_phnum;
90 uint16_t e_shentsize;
91 uint16_t e_shnum;
92 uint16_t e_shstrndx;
/tools/testing/selftests/net/
Dpsock_fanout.c61 static int sock_fanout_open(uint16_t typeflags, uint16_t group_id) in sock_fanout_open()
116 static void sock_fanout_getopts(int fd, uint16_t *typeflags, uint16_t *group_id) in sock_fanout_getopts()
293 uint16_t typeflags, first_group_id, second_group_id; in test_unique_fanout_group_ids()
344 static int test_datapath(uint16_t typeflags, int port_off, in test_datapath()
353 typeflags, (uint16_t)PORT_BASE, in test_datapath()
354 (uint16_t)(PORT_BASE + port_off)); in test_datapath()
Dpsock_snd.c47 static uint16_t cfg_port = 8000;
54 static unsigned long add_csum_hword(const uint16_t *start, int num_u16) in add_csum_hword()
65 static uint16_t build_ip_csum(const uint16_t *start, int num_u16, in build_ip_csum()
106 uint16_t *tag = header + ETH_HLEN; in build_eth_header()
Dreuseport_bpf.c36 uint16_t recv_port;
37 uint16_t send_port_min;
45 static struct sockaddr *new_any_sockaddr(int family, uint16_t port) in new_any_sockaddr()
73 static struct sockaddr *new_loopback_sockaddr(int family, uint16_t port) in new_loopback_sockaddr()
94 static void attach_ebpf(int fd, uint16_t mod) in attach_ebpf()
133 static void attach_cbpf(int fd, uint16_t mod) in attach_cbpf()
152 static void build_recv_group(const struct test_params p, int fd[], uint16_t mod, in build_recv_group() argument
153 void (*attach_bpf)(int, uint16_t)) in build_recv_group()
188 static void send_from(struct test_params p, uint16_t sport, char *buf, in send_from()
Dip_defrag.c101 static uint16_t udp_checksum(struct ip *iphdr, struct udphdr *udphdr) in udp_checksum()
104 uint16_t res; in udp_checksum()
117 static uint16_t udp6_checksum(struct ip6_hdr *iphdr, struct udphdr *udphdr) in udp6_checksum()
120 uint16_t res; in udp6_checksum()
/tools/testing/selftests/bpf/
Dtest_flow_dissector.c40 uint16_t unused;
41 uint16_t protocol;
143 static unsigned long add_csum_hword(const uint16_t *start, int num_u16) in add_csum_hword()
154 static uint16_t build_ip_csum(const uint16_t *start, int num_u16, in build_ip_csum()
185 uint16_t val, *ptr = (uint16_t *)ip6h; in ipv6_set_dsfield()
189 val |= ((uint16_t) dsfield) << 4; in ipv6_set_dsfield()
210 static uint16_t build_udp_v4_csum(const struct iphdr *iph, in build_udp_v4_csum()
223 static uint16_t build_udp_v6_csum(const struct ipv6hdr *ip6h, in build_udp_v6_csum()
237 uint16_t dport, int family) in build_udp_header()
261 static void build_gre_header(void *header, uint16_t proto) in build_gre_header()
/tools/firmware/
Dihex2fw.c31 uint16_t len;
265 static uint16_t ihex_binrec_size(struct ihex_binrec *p) in ihex_binrec_size()
276 uint16_t writelen = ALIGN(ihex_binrec_size(p), 4); in output_records()
/tools/testing/selftests/kvm/lib/x86_64/
Ducall.c9 #define UCALL_PIO_PORT ((uint16_t)0x1000)
/tools/testing/selftests/rcutorture/formal/srcu-cbmc/include/linux/
Dtypes.h46 typedef __u16 uint16_t; typedef
/tools/bpf/
Dbpf_dbg.c103 uint16_t version_major;
104 uint16_t version_minor;
128 uint16_t Pc;
612 static uint16_t extract_u16(uint8_t *pkt, uint32_t off) in extract_u16()
614 uint16_t r; in extract_u16()
673 if (d >= sizeof(uint16_t)) in bpf_single_step()
692 if (d >= sizeof(uint16_t)) in bpf_single_step()
840 static bool bpf_pc_has_breakpoint(uint16_t pc) in bpf_pc_has_breakpoint()
866 static int bpf_run_all(struct sock_filter *f, uint16_t bpf_len, uint8_t *pkt, in bpf_run_all()
886 static int bpf_run_stepping(struct sock_filter *f, uint16_t bpf_len, in bpf_run_stepping()

123