Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/hwmon/
Dg760a.c47 u8 set_cnt; /* PWM (period) count number; 0xff stops fan */ member
93 data->set_cnt = g760a_read_value(client, G760A_REG_SET_CNT); in g760a_update_client()
135 return sprintf(buf, "%d\n", PWM_FROM_CNT(data->set_cnt)); in pwm1_show()
149 data->set_cnt = PWM_TO_CNT(clamp_val(val, 0, 255)); in pwm1_store()
150 g760a_write_value(client, G760A_REG_SET_CNT, data->set_cnt); in pwm1_store()
Dg762.c133 u8 set_cnt; /* controls fan rotation speed in closed-loop mode */ member
212 data->set_cnt = ret; in g762_update_client()
431 if (data->set_cnt == 0xff) in do_set_pwm_enable()
513 data->set_cnt = cnt_from_rpm(val, data->clk_freq, in do_set_fan_target()
518 data->set_cnt); in do_set_fan_target()
959 rpm = rpm_from_cnt(data->set_cnt, data->clk_freq, in fan1_target_show()
/linux-6.12.1/kernel/bpf/
Dbtf.c8226 u32 set_cnt, i; in btf_populate_kfunc_set() local
8282 set_cnt = set ? set->cnt : 0; in btf_populate_kfunc_set()
8284 if (set_cnt > U32_MAX - add_set->cnt) { in btf_populate_kfunc_set()
8289 if (set_cnt + add_set->cnt > BTF_KFUNC_SET_MAX_CNT) { in btf_populate_kfunc_set()
8296 offsetof(struct btf_id_set8, pairs[set_cnt + add_set->cnt]), in btf_populate_kfunc_set()