Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/hid/bpf/
Dhid_bpf_jmp_table.c110 struct hid_bpf_prog_list *prog_list; in hid_bpf_prog_run() local
114 prog_list = rcu_dereference(hdev->bpf.progs[type]); in hid_bpf_prog_run()
116 if (!prog_list) in hid_bpf_prog_run()
119 for (i = 0; i < prog_list->prog_cnt; i++) { in hid_bpf_prog_run()
120 idx = prog_list->prog_idx[i]; in hid_bpf_prog_run()
479 struct hid_bpf_prog_list *prog_list; in __hid_bpf_destroy_device() local
484 prog_list = rcu_dereference(hdev->bpf.progs[type]); in __hid_bpf_destroy_device()
486 if (!prog_list) in __hid_bpf_destroy_device()
489 for (i = 0; i < prog_list->prog_cnt; i++) in __hid_bpf_destroy_device()
490 __clear_bit(prog_list->prog_idx[i], jmp_table.enabled); in __hid_bpf_destroy_device()
Dhid_bpf_dispatch.c496 struct hid_bpf_prog_list *prog_list; in hid_bpf_connect_device() local
499 prog_list = rcu_dereference(hdev->bpf.progs[HID_BPF_PROG_TYPE_DEVICE_EVENT]); in hid_bpf_connect_device()
503 if (!prog_list) in hid_bpf_connect_device()