Home
last modified time | relevance | path

Searched refs:uint8_t (Results 1 – 25 of 90) sorted by relevance

1234

/tools/usb/usbip/libsrc/
Dvhci_driver.h24 uint8_t port;
29 uint8_t busnum;
30 uint8_t devnum;
56 int usbip_vhci_attach_device2(uint8_t port, int sockfd, uint32_t devid,
60 int usbip_vhci_attach_device(uint8_t port, int sockfd, uint8_t busnum,
61 uint8_t devnum, uint32_t speed);
63 int usbip_vhci_detach_device(uint8_t port);
Dusbip_common.h105 uint8_t bInterfaceClass;
106 uint8_t bInterfaceSubClass;
107 uint8_t bInterfaceProtocol;
108 uint8_t padding; /* alignment */
123 uint8_t bDeviceClass;
124 uint8_t bDeviceSubClass;
125 uint8_t bDeviceProtocol;
126 uint8_t bConfigurationValue;
127 uint8_t bNumConfigurations;
128 uint8_t bNumInterfaces;
[all …]
Dusbip_common.c211 READ_ATTR(udev, uint8_t, sdev, bDeviceClass, "%02x\n"); in read_usb_device()
212 READ_ATTR(udev, uint8_t, sdev, bDeviceSubClass, "%02x\n"); in read_usb_device()
213 READ_ATTR(udev, uint8_t, sdev, bDeviceProtocol, "%02x\n"); in read_usb_device()
219 READ_ATTR(udev, uint8_t, sdev, bConfigurationValue, "%02x\n"); in read_usb_device()
220 READ_ATTR(udev, uint8_t, sdev, bNumConfigurations, "%02x\n"); in read_usb_device()
221 READ_ATTR(udev, uint8_t, sdev, bNumInterfaces, "%02x\n"); in read_usb_device()
223 READ_ATTR(udev, uint8_t, sdev, devnum, "%d\n"); in read_usb_device()
261 READ_ATTR(uinf, uint8_t, sif, bInterfaceClass, "%02x\n"); in read_usb_interface()
262 READ_ATTR(uinf, uint8_t, sif, bInterfaceSubClass, "%02x\n"); in read_usb_interface()
263 READ_ATTR(uinf, uint8_t, sif, bInterfaceProtocol, "%02x\n"); in read_usb_interface()
[all …]
Dvhci_driver.c357 int usbip_vhci_attach_device2(uint8_t port, int sockfd, uint32_t devid, in usbip_vhci_attach_device2()
385 static unsigned long get_devid(uint8_t busnum, uint8_t devnum) in get_devid()
391 int usbip_vhci_attach_device(uint8_t port, int sockfd, uint8_t busnum, in usbip_vhci_attach_device()
392 uint8_t devnum, uint32_t speed) in usbip_vhci_attach_device()
399 int usbip_vhci_detach_device(uint8_t port) in usbip_vhci_detach_device()
/tools/include/tools/
Dbe_byteshift.h7 static inline uint16_t __get_unaligned_be16(const uint8_t *p) in __get_unaligned_be16()
12 static inline uint32_t __get_unaligned_be32(const uint8_t *p) in __get_unaligned_be32()
17 static inline uint64_t __get_unaligned_be64(const uint8_t *p) in __get_unaligned_be64()
23 static inline void __put_unaligned_be16(uint16_t val, uint8_t *p) in __put_unaligned_be16()
29 static inline void __put_unaligned_be32(uint32_t val, uint8_t *p) in __put_unaligned_be32()
35 static inline void __put_unaligned_be64(uint64_t val, uint8_t *p) in __put_unaligned_be64()
43 return __get_unaligned_be16((const uint8_t *)p); in get_unaligned_be16()
48 return __get_unaligned_be32((const uint8_t *)p); in get_unaligned_be32()
53 return __get_unaligned_be64((const uint8_t *)p); in get_unaligned_be64()
Dle_byteshift.h7 static inline uint16_t __get_unaligned_le16(const uint8_t *p) in __get_unaligned_le16()
12 static inline uint32_t __get_unaligned_le32(const uint8_t *p) in __get_unaligned_le32()
17 static inline uint64_t __get_unaligned_le64(const uint8_t *p) in __get_unaligned_le64()
23 static inline void __put_unaligned_le16(uint16_t val, uint8_t *p) in __put_unaligned_le16()
29 static inline void __put_unaligned_le32(uint32_t val, uint8_t *p) in __put_unaligned_le32()
35 static inline void __put_unaligned_le64(uint64_t val, uint8_t *p) in __put_unaligned_le64()
43 return __get_unaligned_le16((const uint8_t *)p); in get_unaligned_le16()
48 return __get_unaligned_le32((const uint8_t *)p); in get_unaligned_le32()
53 return __get_unaligned_le64((const uint8_t *)p); in get_unaligned_le64()
/tools/testing/selftests/bpf/progs/
Dtest_cls_redirect.h31 uint8_t hlen : 5, control : 1, variant : 2;
33 uint8_t variant : 2, control : 1, hlen : 5;
35 uint8_t proto_ctype;
41 uint8_t _r : 2, last_hop_gre : 1, forward_syn : 1, version : 4;
43 uint8_t version : 4, forward_syn : 1, last_hop_gre : 1, _r : 2;
45 uint8_t reserved;
46 uint8_t next_hop;
47 uint8_t hop_count;
Dtest_seg6_loop.c58 uint8_t *ipver; in get_srh()
62 ipver = (uint8_t *)cursor; in get_srh()
181 struct sr6_tlv_t *itlv, uint8_t tlv_size) in add_tlv()
184 uint8_t len_remaining, new_pad; in add_tlv()
231 uint8_t new_flags = SR6_FLAG_ALERT; in __add_egr_x()
238 uint8_t tlv[20] = {2, 18, 0, 0, 0xfd, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, in __add_egr_x()
Dprofiler.h72 uint8_t comm_length;
90 uint8_t sysctl_val_length;
103 uint8_t kill_target_name_length;
104 uint8_t kill_target_cgroup_proc_length;
Dtest_lwt_seg6local.c58 uint8_t *ipver; in get_srh()
62 ipver = (uint8_t *)cursor; in get_srh()
178 struct sr6_tlv_t *itlv, uint8_t tlv_size) in add_tlv()
181 uint8_t len_remaining, new_pad; in add_tlv()
225 uint8_t len_remaining, new_pad; in delete_tlv()
327 uint8_t new_flags = SR6_FLAG_ALERT; in __add_egr_x()
334 uint8_t tlv[20] = {2, 18, 0, 0, 0xfd, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, in __add_egr_x()
364 uint8_t new_flags = 0; in __pop_egr()
Dtest_core_reloc_bitfields_probed.c18 uint8_t ub1: 1;
19 uint8_t ub2: 2;
Dtest_core_reloc_bitfields_direct.c18 uint8_t ub1: 1;
19 uint8_t ub2: 2;
Dtest_cls_redirect.c123 typedef uint8_t *net_ptr __attribute__((align_value(8)));
131 uint8_t *const tail;
280 uint8_t *upper_proto, in pkt_skip_ipv6_extension_headers()
289 uint8_t next; in pkt_skip_ipv6_extension_headers()
290 uint8_t len; in pkt_skip_ipv6_extension_headers()
347 pkt_parse_ipv6(buf_t *pkt, struct ipv6hdr *scratch, uint8_t *proto, in pkt_parse_ipv6()
419 uint8_t ttl; in forward_with_gre()
444 uint8_t ttl; in forward_with_gre()
497 .head = (uint8_t *)(long)skb->data, in forward_with_gre()
498 .tail = (uint8_t *)(long)skb->data_end, in forward_with_gre()
[all …]
/tools/firmware/
Dihex2fw.c32 uint8_t data[];
38 static uint8_t nybble(const uint8_t n) in nybble()
46 static uint8_t hex(const uint8_t *data, uint8_t *crc) in hex()
48 uint8_t val = (nybble(data[0]) << 4) | nybble(data[1]); in hex()
53 static int process_ihex(uint8_t *data, ssize_t size);
76 uint8_t *data; in main()
132 static int process_ihex(uint8_t *data, ssize_t size) in process_ihex()
138 uint8_t type, crc = 0, crcbyte = 0; in process_ihex()
/tools/testing/selftests/bpf/
Dtest_tag.c78 static int hex2bin(uint8_t *dst, const char *src, size_t count) in hex2bin()
91 static void tag_from_fdinfo(int fd_prog, uint8_t *tag, uint32_t len) in tag_from_fdinfo()
114 static void tag_from_alg(int insns, uint8_t *tag, uint32_t len) in tag_from_alg()
144 static void tag_dump(const char *prefix, uint8_t *tag, uint32_t len) in tag_dump()
154 static void tag_exit_report(int insns, int fd_map, uint8_t *ftag, in tag_exit_report()
155 uint8_t *atag, uint32_t len) in tag_exit_report()
171 uint8_t ftag[8], atag[sizeof(ftag)]; in do_test()
Dtest_lpm_map.c34 uint8_t key[];
38 const uint8_t *key,
42 const uint8_t *key, in tlpm_add()
82 const uint8_t *key, in tlpm_match()
111 const uint8_t *key, in tlpm_delete()
144 assert(!tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic()
146 t1 = list = tlpm_add(list, (uint8_t[]){ 0xff }, 8); in test_lpm_basic()
147 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic()
148 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0xff }, 16)); in test_lpm_basic()
149 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0x00 }, 16)); in test_lpm_basic()
[all …]
/tools/spi/
Dspidev_test.c40 static uint8_t bits = 8;
50 static uint8_t default_tx[] = {
59 static uint8_t default_rx[ARRAY_SIZE(default_tx)] = {0, };
118 static void transfer(int fd, uint8_t const *tx, uint8_t const *rx, size_t len) in transfer()
315 uint8_t *tx; in transfer_escaped_string()
316 uint8_t *rx; in transfer_escaped_string()
337 uint8_t *tx; in transfer_file()
338 uint8_t *rx; in transfer_file()
384 uint8_t *tx; in transfer_buf()
385 uint8_t *rx; in transfer_buf()
/tools/testing/selftests/kvm/lib/
Dkvm_util_internal.h74 void virt_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent);
91 void regs_dump(FILE *stream, struct kvm_regs *regs, uint8_t indent);
108 void sregs_dump(FILE *stream, struct kvm_sregs *sregs, uint8_t indent);
/tools/power/acpi/tools/ec/
Dec_access.c33 static uint8_t write_value = -1;
143 printf(" %.2x ", (uint8_t)buf[byte_off]); in dump_ec()
168 printf(" %.2x ", (uint8_t)buf2[byte_off]); in dump_ec()
170 printf("*%.2x ", (uint8_t)buf2[byte_off]); in dump_ec()
177 uint8_t buf; in read_ec_val()
192 void write_ec_val(int fd, int byte_offset, uint8_t value) in write_ec_val()
/tools/testing/selftests/net/
Dip_defrag.c46 static uint8_t udp_payload[MSG_LEN_MAX];
47 static uint8_t ip_frame[IP_MAXPACKET];
57 static uint8_t recv_buff[MSG_LEN_MAX]; in recv_validate_udp()
82 static uint32_t raw_checksum(uint8_t *buf, int len, uint32_t sum) in raw_checksum()
106 sum = raw_checksum((uint8_t *)&iphdr->ip_src, 2 * sizeof(iphdr->ip_src), in udp_checksum()
108 sum = raw_checksum((uint8_t *)udphdr, UDP_HLEN, sum); in udp_checksum()
109 sum = raw_checksum((uint8_t *)udp_payload, payload_len, sum); in udp_checksum()
122 sum = raw_checksum((uint8_t *)&iphdr->ip6_src, 2 * sizeof(iphdr->ip6_src), in udp6_checksum()
124 sum = raw_checksum((uint8_t *)&udphdr->len, sizeof(udphdr->len), sum); in udp6_checksum()
125 sum = raw_checksum((uint8_t *)udphdr, UDP_HLEN, sum); in udp6_checksum()
[all …]
Dpsock_tpacket.c68 uint8_t *mm_space;
157 ((uint8_t *) pay)[i + sizeof(*eth)] = (uint8_t) rand(); in create_payload()
245 test_payload((uint8_t *) ppd.raw + ppd.v1->tp_h.tp_mac, in walk_v1_v2_rx()
251 test_payload((uint8_t *) ppd.raw + ppd.v2->tp_h.tp_mac, in walk_v1_v2_rx()
356 uint8_t *f0 = ring->rd[0].iov_base; in get_next_frame()
430 memcpy((uint8_t *) ppd.raw + TPACKET_HDRLEN - in walk_tx()
440 memcpy((uint8_t *) ppd.raw + TPACKET2_HDRLEN - in walk_tx()
452 memcpy((uint8_t *)tx + TPACKET3_HDRLEN - in walk_tx()
551 ppd = (struct tpacket3_hdr *) ((uint8_t *) pbd + in __v3_walk_block()
562 test_payload((uint8_t *) ppd + ppd->tp_mac, ppd->tp_snaplen); in __v3_walk_block()
[all …]
/tools/bpf/
Dbpf_jit_disasm.c52 static void get_asm_insns(uint8_t *image, size_t len, int opcodes) in get_asm_insns()
93 printf("%02x ", (uint8_t) image[pc + i]); in get_asm_insns()
170 static uint8_t *get_last_jit_image(char *haystack, size_t hlen, in get_last_jit_image()
180 uint8_t *image; in get_last_jit_image()
231 image[ulen++] = (uint8_t) strtoul(pptr, &pptr, 16); in get_last_jit_image()
268 uint8_t *pos; in main()
269 uint8_t *image = NULL; in main()
/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/
Dint_typedefs.h8 typedef uint8_t u8;
17 typedef uint8_t __u8;
/tools/lib/bpf/
Dnlattr.h74 static inline uint8_t libbpf_nla_getattr_u8(const struct nlattr *nla) in libbpf_nla_getattr_u8()
76 return *(uint8_t *)libbpf_nla_data(nla); in libbpf_nla_getattr_u8()
/tools/testing/selftests/kvm/include/x86_64/
Dvmx.h344 uint8_t ret; in vmxon()
361 uint8_t ret; in vmclear()
373 uint8_t ret; in vmptrld()
389 uint8_t ret; in vmptrst()
495 uint8_t ret; in vmread()
522 uint8_t ret; in vmwrite()

1234