Home
last modified time | relevance | path

Searched refs:res (Results 1 – 6 of 6) sorted by relevance

/samples/hidraw/
A Dhid-example.c46 int i, res, desc_size = 0; in main() local
70 if (res < 0) in main()
78 if (res < 0) { in main()
89 if (res < 0) in main()
96 if (res < 0) in main()
103 if (res < 0) { in main()
119 if (res < 0) in main()
127 if (res < 0) { in main()
140 res = write(fd, buf, 2); in main()
141 if (res < 0) { in main()
[all …]
/samples/bpf/
A Dxdp_sample.bpf.h72 case 1: *(__u8_alias_t *) res = *(volatile __u8_alias_t *) p; break; in __read_once_size()
73 case 2: *(__u16_alias_t *) res = *(volatile __u16_alias_t *) p; break; in __read_once_size()
74 case 4: *(__u32_alias_t *) res = *(volatile __u32_alias_t *) p; break; in __read_once_size()
75 case 8: *(__u64_alias_t *) res = *(volatile __u64_alias_t *) p; break; in __read_once_size()
78 __builtin_memcpy((void *)res, (const void *)p, size); in __read_once_size()
83 static __always_inline void __write_once_size(volatile void *p, void *res, int size) in __write_once_size() argument
86 case 1: *(volatile __u8_alias_t *) p = *(__u8_alias_t *) res; break; in __write_once_size()
87 case 2: *(volatile __u16_alias_t *) p = *(__u16_alias_t *) res; break; in __write_once_size()
88 case 4: *(volatile __u32_alias_t *) p = *(__u32_alias_t *) res; break; in __write_once_size()
89 case 8: *(volatile __u64_alias_t *) p = *(__u64_alias_t *) res; break; in __write_once_size()
[all …]
A Dcookie_uid_helper_example.c201 int res; in print_table() local
206 if (res < 0) { in print_table()
226 int res; in udp_client() local
243 if (res < 0) in udp_client()
246 if (res != -1) in udp_client()
249 res = sendto(s_send, &message, sizeof(message), 0, in udp_client()
251 if (res == -1) in udp_client()
253 if (res != sizeof(message)) in udp_client()
261 if (res != 0) in udp_client()
262 error(1, EFAULT, "sender addr error: %d\n", res); in udp_client()
[all …]
A Dtask_fd_query_user.c234 int err = -1, res, kfd, efd; in test_debug_fs_uprobe() local
243 res = snprintf(event_alias, sizeof(event_alias), "test_%d", getpid()); in test_debug_fs_uprobe()
244 CHECK_PERROR_RET(res < 0 || res >= sizeof(event_alias)); in test_debug_fs_uprobe()
246 res = snprintf(buf, sizeof(buf), "%c:%ss/%s %s:0x%lx", in test_debug_fs_uprobe()
249 CHECK_PERROR_RET(res < 0 || res >= sizeof(buf)); in test_debug_fs_uprobe()
A Dxdp_sample_user.c195 int res; in gettime() local
197 res = clock_gettime(CLOCK_MONOTONIC, &t); in gettime()
198 if (res < 0) { in gettime()
199 fprintf(stderr, "Error with gettimeofday! (%i)\n", res); in gettime()
/samples/hid/
A Dhid_surface_dial.bpf.c51 u16 *res; in set_haptic() local
79 res = (u16 *)&haptic_data[1]; in set_haptic()
80 if (*res != 3600) { in set_haptic()
108 __u16 *res, *phys; in BPF_PROG() local
123 res = (__u16 *)&data[66]; in BPF_PROG()
124 *res = resolution; in BPF_PROG()

Completed in 12 milliseconds