• Home
  • Raw
  • Download

Lines Matching refs:pen

57 					const struct uclogic_params_pen *pen)  in uclogic_params_pen_hid_dbg()  argument
62 (pen->usage_invalid ? "true" : "false")); in uclogic_params_pen_hid_dbg()
63 hid_dbg(hdev, "\t.desc_ptr = %p\n", pen->desc_ptr); in uclogic_params_pen_hid_dbg()
64 hid_dbg(hdev, "\t.desc_size = %u\n", pen->desc_size); in uclogic_params_pen_hid_dbg()
65 hid_dbg(hdev, "\t.id = %u\n", pen->id); in uclogic_params_pen_hid_dbg()
67 for (i = 0; i < ARRAY_SIZE(pen->subreport_list); i++) { in uclogic_params_pen_hid_dbg()
69 pen->subreport_list[i].value, in uclogic_params_pen_hid_dbg()
70 pen->subreport_list[i].id, in uclogic_params_pen_hid_dbg()
71 i < (ARRAY_SIZE(pen->subreport_list) - 1) ? "," : ""); in uclogic_params_pen_hid_dbg()
75 uclogic_params_pen_inrange_to_str(pen->inrange)); in uclogic_params_pen_hid_dbg()
77 (pen->fragmented_hires ? "true" : "false")); in uclogic_params_pen_hid_dbg()
79 (pen->tilt_y_flipped ? "true" : "false")); in uclogic_params_pen_hid_dbg()
125 uclogic_params_pen_hid_dbg(hdev, &params->pen); in uclogic_params_hid_dbg()
208 static void uclogic_params_pen_cleanup(struct uclogic_params_pen *pen) in uclogic_params_pen_cleanup() argument
210 kfree(pen->desc_ptr); in uclogic_params_pen_cleanup()
211 memset(pen, 0, sizeof(*pen)); in uclogic_params_pen_cleanup()
230 static int uclogic_params_pen_init_v1(struct uclogic_params_pen *pen, in uclogic_params_pen_init_v1() argument
246 if (pen == NULL || pfound == NULL || hdev == NULL) { in uclogic_params_pen_init_v1()
311 memset(pen, 0, sizeof(*pen)); in uclogic_params_pen_init_v1()
312 pen->desc_ptr = desc_ptr; in uclogic_params_pen_init_v1()
314 pen->desc_size = uclogic_rdesc_v1_pen_template_size; in uclogic_params_pen_init_v1()
315 pen->id = UCLOGIC_RDESC_V1_PEN_ID; in uclogic_params_pen_init_v1()
316 pen->inrange = UCLOGIC_PARAMS_PEN_INRANGE_INVERTED; in uclogic_params_pen_init_v1()
368 static int uclogic_params_pen_init_v2(struct uclogic_params_pen *pen, in uclogic_params_pen_init_v2() argument
391 if (pen == NULL || pfound == NULL || hdev == NULL) { in uclogic_params_pen_init_v2()
471 memset(pen, 0, sizeof(*pen)); in uclogic_params_pen_init_v2()
472 pen->desc_ptr = desc_ptr; in uclogic_params_pen_init_v2()
474 pen->desc_size = uclogic_rdesc_v2_pen_template_size; in uclogic_params_pen_init_v2()
475 pen->id = UCLOGIC_RDESC_V2_PEN_ID; in uclogic_params_pen_init_v2()
476 pen->inrange = UCLOGIC_PARAMS_PEN_INRANGE_NONE; in uclogic_params_pen_init_v2()
477 pen->fragmented_hires = true; in uclogic_params_pen_init_v2()
478 pen->tilt_y_flipped = true; in uclogic_params_pen_init_v2()
655 uclogic_params_pen_cleanup(&params->pen); in uclogic_params_cleanup()
717 ADD_DESC(params->pen.desc_ptr, params->pen.desc_size); in uclogic_params_get_desc()
864 p.pen.usage_invalid = true; in uclogic_params_huion_init()
893 rc = uclogic_params_pen_init_v2(&p.pen, &found, in uclogic_params_huion_init()
916 p.pen.subreport_list[0].value = 0xe0; in uclogic_params_huion_init()
917 p.pen.subreport_list[0].id = in uclogic_params_huion_init()
964 p.pen.subreport_list[1].value = 0xf0; in uclogic_params_huion_init()
965 p.pen.subreport_list[1].id = in uclogic_params_huion_init()
986 p.pen.subreport_list[2].value = 0xf1; in uclogic_params_huion_init()
987 p.pen.subreport_list[2].id = in uclogic_params_huion_init()
996 rc = uclogic_params_pen_init_v1(&p.pen, &found, hdev); in uclogic_params_huion_init()
1014 p.pen.subreport_list[0].value = 0xe0; in uclogic_params_huion_init()
1015 p.pen.subreport_list[0].id = in uclogic_params_huion_init()
1303 p->pen.subreport_list[1].value = 0xf2; in uclogic_params_ugee_v2_init_battery()
1304 p->pen.subreport_list[1].id = UCLOGIC_RDESC_UGEE_V2_BATTERY_ID; in uclogic_params_ugee_v2_init_battery()
1476 p.pen.desc_ptr = rdesc_pen; in uclogic_params_ugee_v2_init()
1477 p.pen.desc_size = uclogic_rdesc_ugee_v2_pen_template_size; in uclogic_params_ugee_v2_init()
1478 p.pen.id = 0x02; in uclogic_params_ugee_v2_init()
1479 p.pen.subreport_list[0].value = 0xf0; in uclogic_params_ugee_v2_init()
1480 p.pen.subreport_list[0].id = UCLOGIC_RDESC_V1_FRAME_ID; in uclogic_params_ugee_v2_init()
1617 rc = uclogic_params_pen_init_v1(&p.pen, in uclogic_params_init()
1729 rc = uclogic_params_pen_init_v1(&p.pen, &found, hdev); in uclogic_params_init()
1747 rc = uclogic_params_pen_init_v1(&p.pen, &found, hdev); in uclogic_params_init()
1790 rc = uclogic_params_pen_init_v1(&p.pen, &found, hdev); in uclogic_params_init()
1824 rc = uclogic_params_pen_init_v1(&p.pen, &found, hdev); in uclogic_params_init()