/kernel/linux/linux-5.10/drivers/cpufreq/ |
H A D | omap-cpufreq.c | 46 unsigned long freq, volt = 0, volt_old = 0, tol = 0; in omap_target() local 71 tol = volt * OPP_TOLERANCE / 100; in omap_target() 81 r = regulator_set_voltage(mpu_reg, volt - tol, volt + tol); in omap_target() 93 r = regulator_set_voltage(mpu_reg, volt - tol, volt + tol); in omap_target()
|
/kernel/linux/linux-6.6/drivers/cpufreq/ |
H A D | omap-cpufreq.c | 46 unsigned long freq, volt = 0, volt_old = 0, tol = 0; in omap_target() local 71 tol = volt * OPP_TOLERANCE / 100; in omap_target() 81 r = regulator_set_voltage(mpu_reg, volt - tol, volt + tol); in omap_target() 93 r = regulator_set_voltage(mpu_reg, volt - tol, volt + tol); in omap_target()
|
/kernel/linux/linux-6.6/drivers/iio/potentiometer/ |
H A D | ad5110.c | 61 s16 tol; /* resistor tolerance */ member 144 data->tol = data->cfg->kohms * (val & GENMASK(6, 0)) * 10 / 8; in ad5110_resistor_tol() 146 data->tol *= -1; in ad5110_resistor_tol() 216 *val2 = 1000 * data->cfg->kohms + data->tol; in ad5110_read_raw() 219 *val = 1000 * data->cfg->kohms + data->tol; in ad5110_read_raw()
|
/kernel/linux/linux-6.6/net/tipc/ |
H A D | link.h | 122 void tipc_link_set_tolerance(struct tipc_link *l, u32 tol,
|
H A D | link.c | 2608 u32 tol; in tipc_nl_parse_link_prop() local 2610 tol = nla_get_u32(props[TIPC_NLA_PROP_TOL]); in tipc_nl_parse_link_prop() 2611 if ((tol < TIPC_MIN_LINK_TOL) || (tol > TIPC_MAX_LINK_TOL)) in tipc_nl_parse_link_prop() 2885 void tipc_link_set_tolerance(struct tipc_link *l, u32 tol, in tipc_link_set_tolerance() argument 2888 l->tolerance = tol; in tipc_link_set_tolerance() 2890 l->bc_rcvlink->tolerance = tol; in tipc_link_set_tolerance() 2892 tipc_link_build_proto_msg(l, STATE_MSG, 0, 0, 0, tol, 0, xmitq); in tipc_link_set_tolerance()
|
H A D | node.c | 617 unsigned long tol = tipc_link_tolerance(l); in tipc_node_calculate_timer() local 618 unsigned long intv = ((tol / 4) > 500) ? 500 : tol / 4; in tipc_node_calculate_timer() 625 tipc_link_set_abort_limit(l, tol / n->keepalive_intv); in tipc_node_calculate_timer() 2470 u32 tol; in tipc_nl_node_set_link() local 2472 tol = nla_get_u32(props[TIPC_NLA_PROP_TOL]); in tipc_nl_node_set_link() 2473 tipc_link_set_tolerance(link, tol, &xmitq); in tipc_nl_node_set_link()
|
/kernel/linux/linux-5.10/net/tipc/ |
H A D | link.c | 2572 u32 tol; in tipc_nl_parse_link_prop() local 2574 tol = nla_get_u32(props[TIPC_NLA_PROP_TOL]); in tipc_nl_parse_link_prop() 2575 if ((tol < TIPC_MIN_LINK_TOL) || (tol > TIPC_MAX_LINK_TOL)) in tipc_nl_parse_link_prop() 2849 void tipc_link_set_tolerance(struct tipc_link *l, u32 tol, in tipc_link_set_tolerance() argument 2852 l->tolerance = tol; in tipc_link_set_tolerance() 2854 l->bc_rcvlink->tolerance = tol; in tipc_link_set_tolerance() 2856 tipc_link_build_proto_msg(l, STATE_MSG, 0, 0, 0, tol, 0, xmitq); in tipc_link_set_tolerance()
|
H A D | link.h | 122 void tipc_link_set_tolerance(struct tipc_link *l, u32 tol,
|
H A D | node.c | 601 unsigned long tol = tipc_link_tolerance(l); in tipc_node_calculate_timer() local 602 unsigned long intv = ((tol / 4) > 500) ? 500 : tol / 4; in tipc_node_calculate_timer() 609 tipc_link_set_abort_limit(l, tol / n->keepalive_intv); in tipc_node_calculate_timer() 2424 u32 tol; in tipc_nl_node_set_link() local 2426 tol = nla_get_u32(props[TIPC_NLA_PROP_TOL]); in tipc_nl_node_set_link() 2427 tipc_link_set_tolerance(link, tol, &xmitq); in tipc_nl_node_set_link()
|
/kernel/linux/linux-5.10/drivers/atm/ |
H A D | horizon.c | 679 static int make_rate_with_tolerance (const hrz_dev * dev, u32 c, rounding r, unsigned int tol, in make_rate_with_tolerance() argument 683 PRINTD (DBG_QOS|DBG_FLOW, "make_rate_with_tolerance c=%u, %s, tol=%u", in make_rate_with_tolerance() 684 c, (r == round_up) ? "up" : (r == round_down) ? "down" : "nearest", tol); in make_rate_with_tolerance() 694 if (c - tol <= *actual && *actual <= c + tol) in make_rate_with_tolerance()
|
/kernel/linux/linux-5.10/drivers/opp/ |
H A D | core.c | 1557 unsigned long tol; in _opp_add_v1() local 1566 tol = u_volt * opp_table->voltage_tolerance_v1 / 100; in _opp_add_v1() 1568 new_opp->supplies[0].u_volt_min = u_volt - tol; in _opp_add_v1() 1569 new_opp->supplies[0].u_volt_max = u_volt + tol; in _opp_add_v1()
|
/kernel/linux/linux-6.6/drivers/opp/ |
H A D | core.c | 2027 unsigned long tol; in _opp_add_v1() local 2039 tol = u_volt * opp_table->voltage_tolerance_v1 / 100; in _opp_add_v1() 2041 new_opp->supplies[0].u_volt_min = u_volt - tol; in _opp_add_v1() 2042 new_opp->supplies[0].u_volt_max = u_volt + tol; in _opp_add_v1()
|
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/ |
H A D | coex.c | 16 u8 tol = chip->rssi_tolerance; in rtw_coex_next_rssi_state() local 21 if (rssi >= (rssi_thresh + tol)) in rtw_coex_next_rssi_state()
|
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtw88/ |
H A D | coex.c | 17 u8 tol = chip->rssi_tolerance; in rtw_coex_next_rssi_state() local 22 if (rssi >= (rssi_thresh + tol)) in rtw_coex_next_rssi_state()
|
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtw89/ |
H A D | coex.c | 4448 u8 next_state, tol = chip->rssi_tol; in _update_rssi_state() local 4452 if (rssi >= (thresh + tol)) in _update_rssi_state()
|