Lines Matching refs:p
1218 __u8 *p; in uclogic_rdesc_template_apply() local
1225 for (p = rdesc_ptr; p + sizeof(btn_head) < rdesc_ptr + template_size;) { in uclogic_rdesc_template_apply()
1226 if (p + sizeof(pen_head) < rdesc_ptr + template_size && in uclogic_rdesc_template_apply()
1227 memcmp(p, pen_head, sizeof(pen_head)) == 0 && in uclogic_rdesc_template_apply()
1228 p[sizeof(pen_head)] < param_num) { in uclogic_rdesc_template_apply()
1229 v = param_list[p[sizeof(pen_head)]]; in uclogic_rdesc_template_apply()
1230 put_unaligned((__force u32)cpu_to_le32(v), (s32 *)p); in uclogic_rdesc_template_apply()
1231 p += sizeof(pen_head) + 1; in uclogic_rdesc_template_apply()
1232 } else if (memcmp(p, btn_head, sizeof(btn_head)) == 0 && in uclogic_rdesc_template_apply()
1233 p[sizeof(btn_head)] < param_num) { in uclogic_rdesc_template_apply()
1234 v = param_list[p[sizeof(btn_head)]]; in uclogic_rdesc_template_apply()
1235 put_unaligned((__u8)0x2A, p); /* Usage Maximum */ in uclogic_rdesc_template_apply()
1236 put_unaligned((__force u16)cpu_to_le16(v), (s16 *)(p + 1)); in uclogic_rdesc_template_apply()
1237 p += sizeof(btn_head) + 1; in uclogic_rdesc_template_apply()
1239 p++; in uclogic_rdesc_template_apply()