Lines Matching full:sys_reg
446 struct iqs626_sys_reg sys_reg; member
464 struct iqs626_sys_reg *sys_reg = &iqs626->sys_reg; in iqs626_parse_events() local
476 thresh = sys_reg->ch_reg_ulp.thresh; in iqs626_parse_events()
477 hyst = &sys_reg->ch_reg_ulp.hyst; in iqs626_parse_events()
482 thresh = &sys_reg->tp_grp_reg.ch_reg_tp[0].thresh; in iqs626_parse_events()
483 hyst = &sys_reg->tp_grp_reg.hyst; in iqs626_parse_events()
490 thresh = sys_reg->ch_reg_gen[i].thresh; in iqs626_parse_events()
491 hyst = &sys_reg->ch_reg_gen[i].hyst; in iqs626_parse_events()
495 thresh = &sys_reg->ch_reg_hall.thresh; in iqs626_parse_events()
496 hyst = &sys_reg->ch_reg_hall.hyst; in iqs626_parse_events()
541 sys_reg->event_mask &= ~iqs626_events[i].mask; in iqs626_parse_events()
601 sys_reg->tp_grp_reg.ch_reg_tp[j].thresh = thresh_tp[j]; in iqs626_parse_events()
613 struct iqs626_sys_reg *sys_reg = &iqs626->sys_reg; in iqs626_parse_ati_target() local
623 ati_target = &sys_reg->ch_reg_ulp.ati_target; in iqs626_parse_ati_target()
628 ati_target = &sys_reg->tp_grp_reg.ati_target; in iqs626_parse_ati_target()
635 ati_target = &sys_reg->ch_reg_gen[i].ati_target; in iqs626_parse_ati_target()
639 ati_target = &sys_reg->ch_reg_hall.ati_target; in iqs626_parse_ati_target()
712 sys_reg->tp_grp_reg.ch_reg_tp[i].ati_base = ati_base[i]; in iqs626_parse_ati_target()
769 struct iqs626_sys_reg *sys_reg = &iqs626->sys_reg; in iqs626_parse_trackpad() local
771 u8 *hyst = &sys_reg->tp_grp_reg.hyst; in iqs626_parse_trackpad()
783 sys_reg->misc_a &= ~IQS626_MISC_A_TPx_LTA_UPDATE_MASK; in iqs626_parse_trackpad()
784 sys_reg->misc_a |= (val << IQS626_MISC_A_TPx_LTA_UPDATE_SHIFT); in iqs626_parse_trackpad()
796 sys_reg->misc_b &= ~IQS626_MISC_B_FILT_STR_TPx; in iqs626_parse_trackpad()
797 sys_reg->misc_b |= val; in iqs626_parse_trackpad()
845 sys_reg->misc_b &= ~IQS626_MISC_B_TPx_SWIPE; in iqs626_parse_trackpad()
847 sys_reg->misc_b |= IQS626_MISC_B_TPx_SWIPE; in iqs626_parse_trackpad()
858 sys_reg->timeout_tap = val / 16; in iqs626_parse_trackpad()
870 sys_reg->timeout_swipe = val / 16; in iqs626_parse_trackpad()
882 sys_reg->thresh_swipe = val; in iqs626_parse_trackpad()
885 sys_reg->event_mask &= ~IQS626_EVENT_MASK_GESTURE; in iqs626_parse_trackpad()
895 struct iqs626_sys_reg *sys_reg = &iqs626->sys_reg; in iqs626_parse_channel() local
904 engine = sys_reg->ch_reg_ulp.engine; in iqs626_parse_channel()
909 engine = sys_reg->tp_grp_reg.engine; in iqs626_parse_channel()
916 engine = sys_reg->ch_reg_gen[i].engine; in iqs626_parse_channel()
920 engine = &sys_reg->ch_reg_hall.engine; in iqs626_parse_channel()
1063 sys_reg->ch_reg_ulp.hyst &= ~IQS626_ULP_PROJ_ENABLE; in iqs626_parse_channel()
1065 sys_reg->ch_reg_ulp.hyst |= IQS626_ULP_PROJ_ENABLE; in iqs626_parse_channel()
1067 filter = &sys_reg->ch_reg_ulp.filter; in iqs626_parse_channel()
1069 rx_enable = &sys_reg->ch_reg_ulp.rx_enable; in iqs626_parse_channel()
1070 tx_enable = &sys_reg->ch_reg_ulp.tx_enable; in iqs626_parse_channel()
1073 filter = &sys_reg->ch_reg_gen[i].filter; in iqs626_parse_channel()
1075 rx_enable = &sys_reg->ch_reg_gen[i].rx_enable; in iqs626_parse_channel()
1076 tx_enable = &sys_reg->ch_reg_gen[i].tx_enable; in iqs626_parse_channel()
1199 assoc_select = &sys_reg->ch_reg_gen[i].assoc_select; in iqs626_parse_channel()
1200 assoc_weight = &sys_reg->ch_reg_gen[i].assoc_weight; in iqs626_parse_channel()
1231 struct iqs626_sys_reg *sys_reg = &iqs626->sys_reg; in iqs626_parse_prop() local
1249 error = regmap_raw_read(iqs626->regmap, IQS626_SYS_SETTINGS, sys_reg, in iqs626_parse_prop()
1250 sizeof(*sys_reg)); in iqs626_parse_prop()
1254 general = be16_to_cpu(sys_reg->general); in iqs626_parse_prop()
1274 sys_reg->misc_a &= ~IQS626_MISC_A_ATI_BAND_DISABLE; in iqs626_parse_prop()
1276 sys_reg->misc_a |= IQS626_MISC_A_ATI_BAND_DISABLE; in iqs626_parse_prop()
1278 sys_reg->misc_a &= ~IQS626_MISC_A_ATI_LP_ONLY; in iqs626_parse_prop()
1280 sys_reg->misc_a |= IQS626_MISC_A_ATI_LP_ONLY; in iqs626_parse_prop()
1290 sys_reg->misc_a &= ~IQS626_MISC_A_GPIO3_SELECT_MASK; in iqs626_parse_prop()
1291 sys_reg->misc_a |= val; in iqs626_parse_prop()
1302 sys_reg->misc_b &= ~IQS626_MISC_B_RESEED_UI_SEL_MASK; in iqs626_parse_prop()
1303 sys_reg->misc_b |= (val << IQS626_MISC_B_RESEED_UI_SEL_SHIFT); in iqs626_parse_prop()
1306 sys_reg->misc_b &= ~IQS626_MISC_B_THRESH_EXTEND; in iqs626_parse_prop()
1308 sys_reg->misc_b |= IQS626_MISC_B_THRESH_EXTEND; in iqs626_parse_prop()
1310 sys_reg->misc_b &= ~IQS626_MISC_B_TRACKING_UI_ENABLE; in iqs626_parse_prop()
1312 sys_reg->misc_b |= IQS626_MISC_B_TRACKING_UI_ENABLE; in iqs626_parse_prop()
1314 sys_reg->misc_b &= ~IQS626_MISC_B_RESEED_OFFSET; in iqs626_parse_prop()
1316 sys_reg->misc_b |= IQS626_MISC_B_RESEED_OFFSET; in iqs626_parse_prop()
1325 sys_reg->rate_np = val; in iqs626_parse_prop()
1335 sys_reg->rate_lp = val; in iqs626_parse_prop()
1345 sys_reg->rate_ulp = val / 16; in iqs626_parse_prop()
1355 sys_reg->timeout_pwr = val / 512; in iqs626_parse_prop()
1365 sys_reg->timeout_lta = val / 512; in iqs626_parse_prop()
1368 sys_reg->event_mask = ~((u8)IQS626_EVENT_MASK_SYS); in iqs626_parse_prop()
1369 sys_reg->redo_ati = 0; in iqs626_parse_prop()
1371 sys_reg->reseed = 0; in iqs626_parse_prop()
1372 sys_reg->active = 0; in iqs626_parse_prop()
1393 sys_reg->redo_ati |= iqs626_channels[i].active; in iqs626_parse_prop()
1396 sys_reg->reseed |= iqs626_channels[i].active; in iqs626_parse_prop()
1398 sys_reg->active |= iqs626_channels[i].active; in iqs626_parse_prop()
1408 if (sys_reg->active & iqs626_channels[IQS626_CH_TP_2].active && in iqs626_parse_prop()
1409 sys_reg->event_mask & IQS626_EVENT_MASK_GESTURE) in iqs626_parse_prop()
1415 sys_reg->general = cpu_to_be16(general); in iqs626_parse_prop()
1418 &iqs626->sys_reg, sizeof(iqs626->sys_reg)); in iqs626_parse_prop()
1429 struct iqs626_sys_reg *sys_reg = &iqs626->sys_reg; in iqs626_input_init() local
1445 if (!(sys_reg->active & iqs626_channels[i].active)) in iqs626_input_init()
1458 if (!(sys_reg->active & iqs626_channels[IQS626_CH_TP_2].active)) in iqs626_input_init()
1476 if (sys_reg->event_mask & IQS626_EVENT_MASK_GESTURE) { in iqs626_input_init()
1482 if ((sys_reg->active & tp_mask) == tp_mask) in iqs626_input_init()
1508 struct iqs626_sys_reg *sys_reg = &iqs626->sys_reg; in iqs626_report() local
1533 sys_reg, sizeof(*sys_reg)); in iqs626_report()
1549 if (sys_reg->active & iqs626_channels[IQS626_CH_HALL].active) { in iqs626_report()
1564 if (!(sys_reg->active & iqs626_channels[i].active)) in iqs626_report()
1589 if (!(sys_reg->active & iqs626_channels[IQS626_CH_TP_2].active)) in iqs626_report()
1592 if (sys_reg->event_mask & IQS626_EVENT_MASK_GESTURE) { in iqs626_report()