Lines Matching refs:bpf
56 .allocated_size = hdev->bpf.allocated_data, in dispatch_hid_bpf_device_event()
59 .data = hdev->bpf.device_data, in dispatch_hid_bpf_device_event()
67 if (!hdev->bpf.device_data) in dispatch_hid_bpf_device_event()
70 memset(ctx_kern.data, 0, hdev->bpf.allocated_data); in dispatch_hid_bpf_device_event()
230 if (hdev->bpf.device_data) in hid_bpf_allocate_event_data()
233 return __hid_bpf_allocate_data(hdev, &hdev->bpf.device_data, &hdev->bpf.allocated_data); in hid_bpf_allocate_event_data()
499 prog_list = rcu_dereference(hdev->bpf.progs[HID_BPF_PROG_TYPE_DEVICE_EVENT]); in hid_bpf_connect_device()
512 kfree(hdev->bpf.device_data); in hid_bpf_disconnect_device()
513 hdev->bpf.device_data = NULL; in hid_bpf_disconnect_device()
514 hdev->bpf.allocated_data = 0; in hid_bpf_disconnect_device()
524 hdev->bpf.destroyed = true; in hid_bpf_destroy_device()
532 spin_lock_init(&hdev->bpf.progs_lock); in hid_bpf_device_init()