Home
last modified time | relevance | path

Searched refs:cal_x (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/hid/
H A Dhid-nintendo.c750 struct joycon_stick_cal *cal_x, in joycon_read_stick_calibration() argument
772 cal_x->center = hid_field_extract(ctlr->hdev, (raw_cal + 3), 0, in joycon_read_stick_calibration()
781 cal_x->center = hid_field_extract(ctlr->hdev, (raw_cal + 0), 0, in joycon_read_stick_calibration()
795 cal_x->max = cal_x->center + x_max_above; in joycon_read_stick_calibration()
796 cal_x->min = cal_x->center - x_min_below; in joycon_read_stick_calibration()
801 if (cal_x->min >= cal_x->center || cal_x->center >= cal_x->max || in joycon_read_stick_calibration()
812 struct joycon_stick_cal *cal_x, in joycon_use_default_calibration() argument
820 cal_x->center = cal_y->center = DFLT_STICK_CAL_CEN; in joycon_use_default_calibration()
821 cal_x->max = cal_y->max = DFLT_STICK_CAL_MAX; in joycon_use_default_calibration()
822 cal_x->min = cal_y->min = DFLT_STICK_CAL_MIN; in joycon_use_default_calibration()