Searched refs:ctx_kern (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/hid/bpf/ |
H A D | hid_bpf_dispatch.c | 52 struct hid_bpf_ctx_kern ctx_kern = { in dispatch_hid_bpf_device_event() local 70 memset(ctx_kern.data, 0, hdev->bpf.allocated_data); in dispatch_hid_bpf_device_event() 71 memcpy(ctx_kern.data, data, *size); in dispatch_hid_bpf_device_event() 73 ret = hid_bpf_prog_run(hdev, HID_BPF_PROG_TYPE_DEVICE_EVENT, &ctx_kern); in dispatch_hid_bpf_device_event() 78 if (ret > ctx_kern.ctx.allocated_size) in dispatch_hid_bpf_device_event() 84 return ctx_kern.data; in dispatch_hid_bpf_device_event() 111 struct hid_bpf_ctx_kern ctx_kern = { in call_hid_bpf_rdesc_fixup() local 119 ctx_kern.data = kzalloc(ctx_kern.ctx.allocated_size, GFP_KERNEL); in call_hid_bpf_rdesc_fixup() 120 if (!ctx_kern.data) in call_hid_bpf_rdesc_fixup() 123 memcpy(ctx_kern.data, rdesc, min_t(unsigned int, *size, HID_MAX_DESCRIPTOR_SIZE)); in call_hid_bpf_rdesc_fixup() [all …]
|
H A D | hid_bpf_jmp_table.c | 108 struct hid_bpf_ctx_kern *ctx_kern) in hid_bpf_prog_run() argument 125 ctx_kern->ctx.index = idx; in hid_bpf_prog_run() 126 err = __hid_bpf_tail_call(&ctx_kern->ctx); in hid_bpf_prog_run() 130 ctx_kern->ctx.retval = err; in hid_bpf_prog_run()
|
H A D | hid_bpf_dispatch.h | 20 struct hid_bpf_ctx_kern *ctx_kern);
|