Lines Matching defs:skel
33 #include "hid_surface_dial.skel.h"
89 static int attach_prog(struct hid_surface_dial *skel, struct bpf_program *prog, int hid_id)
101 attach_fd = bpf_program__fd(skel->progs.attach_prog);
117 static int set_haptic(struct hid_surface_dial *skel, int hid_id)
129 haptic_fd = bpf_program__fd(skel->progs.set_haptic);
146 struct hid_surface_dial *skel;
192 skel = hid_surface_dial__open_and_load();
193 if (!skel) {
204 skel->data->resolution = resolution;
205 skel->data->physical = (int)(resolution / 72);
207 bpf_object__for_each_program(prog, *skel->skeleton->obj) {
212 attach_prog(skel, prog, hid_id);
218 set_haptic(skel, hid_id);
223 hid_surface_dial__destroy(skel);