Lines Matching defs:haptic_data
44 static __u8 haptic_data[8];
50 const size_t size = sizeof(haptic_data);
54 if (size > sizeof(haptic_data))
61 haptic_data[0] = 1; /* report ID */
63 ret = hid_bpf_hw_request(ctx, haptic_data, size, HID_FEATURE_REPORT, HID_REQ_GET_REPORT);
67 haptic_data[0],
68 haptic_data[1],
69 haptic_data[2]);
71 haptic_data[3],
72 haptic_data[4],
73 haptic_data[5]);
75 haptic_data[6],
76 haptic_data[7]);
79 res = (u16 *)&haptic_data[1];
81 // haptic_data[1] = 72; /* resolution multiplier */
82 // haptic_data[2] = 0; /* resolution multiplier */
83 // haptic_data[3] = 0; /* Repeat Count */
84 haptic_data[4] = 3; /* haptic Auto Trigger */
85 // haptic_data[5] = 5; /* Waveform Cutoff Time */
86 // haptic_data[6] = 80; /* Retrigger Period */
87 // haptic_data[7] = 0; /* Retrigger Period */
89 haptic_data[4] = 0;
92 ret = hid_bpf_hw_request(ctx, haptic_data, size, HID_FEATURE_REPORT, HID_REQ_SET_REPORT);
94 bpf_printk("set haptic ret value: %d -> %d", ret, haptic_data[4]);