Home
last modified time | relevance | path

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

123

/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/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 …]
Dtest_flow_dissector.c65 static uint8_t cfg_dsfield_inner;
66 static uint8_t cfg_dsfield_outer;
67 static uint8_t cfg_encap_proto;
165 static void build_ipv4_header(void *header, uint8_t proto, in build_ipv4_header()
167 int payload_len, uint8_t tos) in build_ipv4_header()
183 static void ipv6_set_dsfield(struct ipv6hdr *ip6h, uint8_t dsfield) in ipv6_set_dsfield()
193 static void build_ipv6_header(void *header, uint8_t proto, in build_ipv6_header()
196 int payload_len, uint8_t dsfield) in build_ipv6_header()
254 static void build_gue_header(void *header, uint8_t proto) in build_gue_header()
/tools/spi/
Dspidev_test.c35 static uint8_t bits = 8;
45 uint8_t default_tx[] = {
54 uint8_t default_rx[ARRAY_SIZE(default_tx)] = {0, };
113 static void transfer(int fd, uint8_t const *tx, uint8_t const *rx, size_t len) in transfer()
300 uint8_t *tx; in transfer_escaped_string()
301 uint8_t *rx; in transfer_escaped_string()
322 uint8_t *tx; in transfer_file()
323 uint8_t *rx; in transfer_file()
369 uint8_t *tx; in transfer_buf()
370 uint8_t *rx; in transfer_buf()
/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/kvm/lib/
Dkvm_util_internal.h67 void virt_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent);
68 void regs_dump(FILE *stream, struct kvm_regs *regs, uint8_t indent);
69 void sregs_dump(FILE *stream, struct kvm_sregs *sregs, uint8_t indent);
/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/testing/selftests/bpf/progs/
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()
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()
Dcore_reloc_types.h550 uint8_t u8_field;
563 uint8_t s8_field;
584 uint8_t u8_field;
607 uint8_t u8_field;
620 uint8_t u8_field;
633 uint8_t u8_field;
/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()
/tools/testing/selftests/kvm/lib/s390x/
Dprocessor.c155 static void virt_dump_ptes(FILE *stream, struct kvm_vm *vm, uint8_t indent, in virt_dump_ptes()
169 static void virt_dump_region(FILE *stream, struct kvm_vm *vm, uint8_t indent, in virt_dump_region()
191 void virt_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent) in virt_dump()
272 void vcpu_dump(FILE *stream, struct kvm_vm *vm, uint32_t vcpuid, uint8_t indent) in vcpu_dump()
/tools/testing/selftests/breakpoints/
Dbreakpoint_test_arm64.c31 static volatile uint8_t var[96] __attribute__((__aligned__(32)));
35 volatile uint8_t *addr = &var[32 + wr]; in child()
83 const volatile uint8_t *addr = &var[32 + wp]; in set_watchpoint()
/tools/testing/selftests/powerpc/tm/
Dtm-signal-context-chk-vsx.c60 uint8_t vsx[sizeof(vector int)]; in signal_usr1()
61 uint8_t vsx_tm[sizeof(vector int)]; in signal_usr1()

123