Home
last modified time | relevance | path

Searched refs:HID_BPF_MAX_PROGS (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/hid/bpf/entrypoints/
H A Dentrypoints.bpf.c8 #define HID_BPF_MAX_PROGS 1024 macro
12 __uint(max_entries, HID_BPF_MAX_PROGS);
/openbmc/linux/drivers/hid/bpf/
H A Dhid_bpf_jmp_table.c22 #define HID_BPF_MAX_PROGS 1024 /* keep this in sync with preloaded bpf, macro
27 #define NEXT(idx) (((idx) + 1) & (HID_BPF_MAX_PROGS - 1))
28 #define PREV(idx) (((idx) - 1) & (HID_BPF_MAX_PROGS - 1))
42 struct hid_bpf_prog_entry entries[HID_BPF_MAX_PROGS]; /* compacted list, circular buffer */
44 struct bpf_prog *progs[HID_BPF_MAX_PROGS]; /* idx -> progs mapping */
45 unsigned long enabled[BITS_TO_LONGS(HID_BPF_MAX_PROGS)];
49 for (__i = __start; CIRC_CNT(__end, __i, HID_BPF_MAX_PROGS); __i = NEXT(__i))
321 for (i = 0; i < HID_BPF_MAX_PROGS; i++) { in hid_bpf_insert_prog()