Lines Matching defs:data
49 dispatch_hid_bpf_device_event(struct hid_device *hdev, enum hid_report_type type, u8 *data,
59 .data = hdev->bpf.device_data,
68 return data;
70 memset(ctx_kern.data, 0, hdev->bpf.allocated_data);
71 memcpy(ctx_kern.data, data, *size);
84 return ctx_kern.data;
119 ctx_kern.data = kzalloc(ctx_kern.ctx.allocated_size, GFP_KERNEL);
120 if (!ctx_kern.data)
123 memcpy(ctx_kern.data, rdesc, min_t(unsigned int, *size, HID_MAX_DESCRIPTOR_SIZE));
136 rdesc = krealloc(ctx_kern.data, *size, GFP_KERNEL);
141 kfree(ctx_kern.data);
168 return ctx_kern->data + offset;
191 static int __hid_bpf_allocate_data(struct hid_device *hdev, u8 **data, u32 *size)
221 *data = alloc_data;
394 * @buf__sz: the size of the data to transfer
502 /* only allocate BPF data if there are programs attached */