Lines Matching refs:pw_table
550 const struct pd692x0_class_pw *pw_table; in pd692x0_pi_get_pw_from_table() local
553 pw_table = pd692x0_class_pw_table; in pd692x0_pi_get_pw_from_table()
554 for (i = 0; i < PD692X0_CLASS_PW_TABLE_SIZE; i++, pw_table++) { in pd692x0_pi_get_pw_from_table()
555 if (pw_table->class_cfg_value == op_mode) in pd692x0_pi_get_pw_from_table()
556 return pw_table->class_pw + added_pw * 100; in pd692x0_pi_get_pw_from_table()
565 const struct pd692x0_class_pw *pw_table; in pd692x0_pi_set_pw_from_table() local
568 pw_table = pd692x0_class_pw_table; in pd692x0_pi_set_pw_from_table()
569 if (pw < pw_table->class_pw) { in pd692x0_pi_set_pw_from_table()
573 pw_table->class_pw, in pd692x0_pi_set_pw_from_table()
574 pw_table->class_pw + pw_table->max_added_class_pw); in pd692x0_pi_set_pw_from_table()
578 for (i = 0; i < PD692X0_CLASS_PW_TABLE_SIZE; i++, pw_table++) { in pd692x0_pi_set_pw_from_table()
579 if (pw > (pw_table->class_pw + pw_table->max_added_class_pw)) in pd692x0_pi_set_pw_from_table()
582 if (pw < pw_table->class_pw) { in pd692x0_pi_set_pw_from_table()
586 (pw_table - 1)->class_pw, in pd692x0_pi_set_pw_from_table()
587 (pw_table - 1)->class_pw + (pw_table - 1)->max_added_class_pw, in pd692x0_pi_set_pw_from_table()
588 pw_table->class_pw, in pd692x0_pi_set_pw_from_table()
589 pw_table->class_pw + pw_table->max_added_class_pw); in pd692x0_pi_set_pw_from_table()
593 msg->data[2] = pw_table->class_cfg_value; in pd692x0_pi_set_pw_from_table()
594 msg->data[3] = (pw - pw_table->class_pw) / 100; in pd692x0_pi_set_pw_from_table()
598 pw_table--; in pd692x0_pi_set_pw_from_table()
601 pw, pw_table->class_pw + pw_table->max_added_class_pw); in pd692x0_pi_set_pw_from_table()
602 msg->data[2] = pw_table->class_cfg_value; in pd692x0_pi_set_pw_from_table()
603 msg->data[3] = pw_table->max_added_class_pw / 100; in pd692x0_pi_set_pw_from_table()
612 const struct pd692x0_class_pw *pw_table; in pd692x0_pi_get_pw_limit_ranges() local
615 pw_table = pd692x0_class_pw_table; in pd692x0_pi_get_pw_limit_ranges()
622 for (i = 0; i < PD692X0_CLASS_PW_TABLE_SIZE; i++, pw_table++) { in pd692x0_pi_get_pw_limit_ranges()
623 c33_pw_limit_ranges[i].min = pw_table->class_pw; in pd692x0_pi_get_pw_limit_ranges()
624 c33_pw_limit_ranges[i].max = pw_table->class_pw + in pd692x0_pi_get_pw_limit_ranges()
625 pw_table->max_added_class_pw; in pd692x0_pi_get_pw_limit_ranges()