Home
last modified time | relevance | path

Searched refs:EVENT_SIZE (Results 1 – 25 of 32) sorted by relevance

12

/aosp_15_r20/external/ltp/testcases/kernel/syscalls/fanotify/
H A Dfanotify04.c28 #define EVENT_SIZE (sizeof(struct fanotify_event_metadata)) macro
37 static char event_buf[EVENT_SIZE];
106 SAFE_READ(0, fd_notify, event_buf, EVENT_SIZE); in verify_event()
140 ret = read(fd_notify, event_buf, EVENT_SIZE); in verify_no_event()
152 EVENT_SIZE); in verify_no_event()
H A Dfanotify02.c29 #define EVENT_SIZE (sizeof(struct fanotify_event_metadata)) macro
31 #define EVENT_BUF_LEN (EVENT_MAX * EVENT_SIZE)
H A Dfanotify12.c31 #define EVENT_SIZE (sizeof(struct fanotify_event_metadata)) macro
32 #define EVENT_BUF_LEN (EVENT_MAX * EVENT_SIZE)
H A Dfanotify19.c32 #define EVENT_SIZE (sizeof(struct fanotify_event_metadata)) macro
33 #define EVENT_BUF_LEN (EVENT_MAX * EVENT_SIZE)
H A Dfanotify23.c29 #define EVENT_SIZE (sizeof(struct fanotify_event_metadata)) macro
31 #define EVENT_BUF_LEN (EVENT_MAX * EVENT_SIZE)
H A Dfanotify06.c48 #define EVENT_SIZE (sizeof(struct fanotify_event_metadata)) macro
50 #define EVENT_BUF_LEN (EVENT_MAX * EVENT_SIZE)
H A Dfanotify03.c33 #define EVENT_SIZE (sizeof(struct fanotify_event_metadata)) macro
35 #define EVENT_BUF_LEN (EVENT_MAX * EVENT_SIZE)
H A Dfanotify15.c35 #define EVENT_SIZE (sizeof(struct fanotify_event_metadata) + \ macro
39 #define EVENT_BUF_LEN (EVENT_MAX * EVENT_SIZE * 2)
H A Dfanotify01.c29 #define EVENT_SIZE (sizeof(struct fanotify_event_metadata)) macro
31 #define EVENT_BUF_LEN (EVENT_MAX * EVENT_SIZE)
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/inotify/
H A Dinotify05.c29 #define EVENT_SIZE (sizeof(struct inotify_event)) macro
30 #define EVENT_BUF_LEN (EVENT_SIZE * 16)
106 if ((int)(i + EVENT_SIZE) != len) { in verify_inotify()
119 i += EVENT_SIZE + event->len; in verify_inotify()
H A Dinotify11.c40 #define EVENT_SIZE (sizeof(struct inotify_event)) macro
41 #define EVENT_BUF_LEN (EVENT_MAX * (EVENT_SIZE + 16))
80 for (i = 0; i < len; i += EVENT_SIZE + event->len) { in verify_inotify()
H A Dinotify01.c30 #define EVENT_SIZE (sizeof (struct inotify_event)) macro
32 #define EVENT_BUF_LEN (EVENT_MAX * (EVENT_SIZE + 16))
131 i += EVENT_SIZE + event->len; in verify_inotify()
H A Dinotify08.c49 #define EVENT_SIZE (sizeof (struct inotify_event)) macro
51 #define EVENT_BUF_LEN (EVENT_MAX * (EVENT_SIZE + 16))
126 i += EVENT_SIZE + event->len; in verify_inotify()
H A Dinotify03.c32 #define EVENT_SIZE (sizeof(struct inotify_event)) macro
34 #define EVENT_BUF_LEN (EVENT_MAX * (EVENT_SIZE + 16))
111 i += EVENT_SIZE + event->len; in verify_inotify()
H A Dinotify04.c36 #define EVENT_SIZE (sizeof(struct inotify_event)) macro
38 #define EVENT_BUF_LEN (EVENT_MAX * (EVENT_SIZE + 16))
160 i += EVENT_SIZE + event->len; in verify_inotify()
H A Dinotify07.c48 #define EVENT_SIZE (sizeof (struct inotify_event)) macro
50 #define EVENT_BUF_LEN (EVENT_MAX * (EVENT_SIZE + 16))
134 i += EVENT_SIZE + event->len; in verify_inotify()
H A Dinotify10.c34 #define EVENT_SIZE (sizeof(struct inotify_event)) macro
35 #define EVENT_BUF_LEN (EVENT_MAX * (EVENT_SIZE + 16))
182 i += EVENT_SIZE + event->len; in verify_inotify()
H A Dinotify02.c35 #define EVENT_SIZE (sizeof (struct inotify_event)) macro
37 #define EVENT_BUF_LEN (EVENT_MAX * (EVENT_SIZE + 16))
192 i += EVENT_SIZE + event->len; in verify_inotify()
H A Dinotify12.c34 #define EVENT_SIZE (sizeof(struct inotify_event)) macro
35 #define EVENT_BUF_LEN (EVENT_MAX * (EVENT_SIZE + 16))
/aosp_15_r20/external/tpm2-tss/test/integration/
H A Dfapi-pcr-test.int.c23 #define EVENT_SIZE 10 macro
165 uint8_t data[EVENT_SIZE] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; in test_fapi_pcr_test()
176 r = Fapi_PcrExtend(context, 16, data, EVENT_SIZE, "{ \"test\": \"myfile\" }"); in test_fapi_pcr_test()
H A Dfapi-quote.int.c27 #define EVENT_SIZE 10 macro
63 uint8_t data[EVENT_SIZE] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; in test_fapi_quote()
83 r = Fapi_PcrExtend(context, 16, data, EVENT_SIZE, "{ \"test\": \"myfile\" }"); in test_fapi_quote()
/aosp_15_r20/external/crosvm/gpu_display/src/
H A Devent_device.rs23 const EVENT_SIZE: usize = virtio_input_event::SIZE; constant
24 const EVENT_BUFFER_LEN_MAX: usize = 64 * EVENT_SIZE;
97 let event_bytes = match EVENT_SIZE.checked_mul(num_events) { in can_buffer_events()
/aosp_15_r20/external/selinux/restorecond/
H A Duser.c109 #define EVENT_SIZE (sizeof (struct inotify_event)) macro
111 #define BUF_LEN (1024 * (EVENT_SIZE + 16))
146 i += EVENT_SIZE + event->len; in io_channel_callback()
H A Dwatch.c32 #define EVENT_SIZE (sizeof (struct inotify_event)) macro
34 #define BUF_LEN (1024 * (EVENT_SIZE + 16))
221 i += EVENT_SIZE + event->len; in watch()
/aosp_15_r20/external/fastrpc/src/
H A Dlog_config.c55 #define EVENT_SIZE ( sizeof (struct inotify_event) ) macro
56 #define EVENT_BUF_LEN ( 1024 * ( EVENT_SIZE + 16 ) )
380 i += EVENT_SIZE + event->len; in file_watcher_thread()

12