Home
last modified time | relevance | path

Searched defs:nr (Results 1 – 25 of 349) sorted by relevance

12345678910>>...14

/drivers/hwmon/
Df75375s.c46 #define F75375_REG_VOLT(nr) (0x10 + (nr)) argument
47 #define F75375_REG_VOLT_HIGH(nr) (0x20 + (nr) * 2) argument
48 #define F75375_REG_VOLT_LOW(nr) (0x21 + (nr) * 2) argument
50 #define F75375_REG_TEMP(nr) (0x14 + (nr)) argument
51 #define F75387_REG_TEMP11_LSB(nr) (0x1a + (nr)) argument
52 #define F75375_REG_TEMP_HIGH(nr) (0x28 + (nr) * 2) argument
53 #define F75375_REG_TEMP_HYST(nr) (0x29 + (nr) * 2) argument
55 #define F75375_REG_FAN(nr) (0x16 + (nr) * 2) argument
56 #define F75375_REG_FAN_MIN(nr) (0x2C + (nr) * 2) argument
57 #define F75375_REG_FAN_FULL(nr) (0x70 + (nr) * 0x10) argument
[all …]
Dlm85.c38 #define LM85_REG_IN(nr) (0x20 + (nr)) argument
39 #define LM85_REG_IN_MIN(nr) (0x44 + (nr) * 2) argument
40 #define LM85_REG_IN_MAX(nr) (0x45 + (nr) * 2) argument
42 #define LM85_REG_TEMP(nr) (0x25 + (nr)) argument
43 #define LM85_REG_TEMP_MIN(nr) (0x4e + (nr) * 2) argument
44 #define LM85_REG_TEMP_MAX(nr) (0x4f + (nr) * 2) argument
47 #define LM85_REG_FAN(nr) (0x28 + (nr) * 2) argument
48 #define LM85_REG_FAN_MIN(nr) (0x54 + (nr) * 2) argument
50 #define LM85_REG_PWM(nr) (0x30 + (nr)) argument
91 #define LM85_REG_AFAN_CONFIG(nr) (0x5c + (nr)) argument
[all …]
Dlm93.c52 #define LM93_REG_IN(nr) (0x56 + (nr)) argument
53 #define LM93_REG_IN_MIN(nr) (0x90 + (nr) * 2) argument
54 #define LM93_REG_IN_MAX(nr) (0x91 + (nr) * 2) argument
57 #define LM93_REG_TEMP(nr) (0x50 + (nr)) argument
58 #define LM93_REG_TEMP_MIN(nr) (0x78 + (nr) * 2) argument
59 #define LM93_REG_TEMP_MAX(nr) (0x79 + (nr) * 2) argument
62 #define LM93_REG_BOOST(nr) (0x80 + (nr)) argument
65 #define LM93_REG_PROCHOT_CUR(nr) (0x67 + (nr) * 2) argument
66 #define LM93_REG_PROCHOT_AVG(nr) (0x68 + (nr) * 2) argument
67 #define LM93_REG_PROCHOT_MAX(nr) (0xb0 + (nr)) argument
[all …]
Df71805f.c118 #define F71805F_REG_IN(nr) (0x10 + (nr)) argument
119 #define F71805F_REG_IN_HIGH(nr) ((nr) < 10 ? 0x40 + 2 * (nr) : 0x2E) argument
120 #define F71805F_REG_IN_LOW(nr) ((nr) < 10 ? 0x41 + 2 * (nr) : 0x2F) argument
122 #define F71805F_REG_FAN(nr) (0x20 + 2 * (nr)) argument
123 #define F71805F_REG_FAN_LOW(nr) (0x28 + 2 * (nr)) argument
124 #define F71805F_REG_FAN_TARGET(nr) (0x69 + 16 * (nr)) argument
125 #define F71805F_REG_FAN_CTRL(nr) (0x60 + 16 * (nr)) argument
126 #define F71805F_REG_PWM_FREQ(nr) (0x63 + 16 * (nr)) argument
127 #define F71805F_REG_PWM_DUTY(nr) (0x6B + 16 * (nr)) argument
129 #define F71805F_REG_TEMP(nr) (0x1B + (nr)) argument
[all …]
Df71882fg.c61 #define F71882FG_REG_IN(nr) (0x20 + (nr)) argument
68 #define F71882FG_REG_FAN(nr) (0xA0 + (16 * (nr))) argument
69 #define F71882FG_REG_FAN_TARGET(nr) (0xA2 + (16 * (nr))) argument
70 #define F71882FG_REG_FAN_FULL_SPEED(nr) (0xA4 + (16 * (nr))) argument
74 #define F71882FG_REG_TEMP(nr) (0x70 + 2 * (nr)) argument
75 #define F71882FG_REG_TEMP_OVT(nr) (0x80 + 2 * (nr)) argument
76 #define F71882FG_REG_TEMP_HIGH(nr) (0x81 + 2 * (nr)) argument
80 #define F71882FG_REG_TEMP_HYST(nr) (0x6C + (nr)) argument
84 #define F71882FG_REG_PWM(nr) (0xA3 + (16 * (nr))) argument
88 #define F71882FG_REG_FAN_HYST(nr) (0x98 + (nr)) argument
[all …]
Demc6w201.c27 #define EMC6W201_REG_IN(nr) (0x20 + (nr)) argument
28 #define EMC6W201_REG_TEMP(nr) (0x26 + (nr)) argument
29 #define EMC6W201_REG_FAN(nr) (0x2C + (nr) * 2) argument
33 #define EMC6W201_REG_IN_LOW(nr) (0x4A + (nr) * 2) argument
34 #define EMC6W201_REG_IN_HIGH(nr) (0x4B + (nr) * 2) argument
35 #define EMC6W201_REG_TEMP_LOW(nr) (0x56 + (nr) * 2) argument
36 #define EMC6W201_REG_TEMP_HIGH(nr) (0x57 + (nr) * 2) argument
37 #define EMC6W201_REG_FAN_MIN(nr) (0x62 + (nr) * 2) argument
126 int nr; in emc6w201_update_device() local
184 int nr = to_sensor_dev_attr_2(devattr)->nr; in in_show() local
[all …]
Dadm1031.c22 #define ADM1031_REG_FAN_SPEED(nr) (0x08 + (nr)) argument
23 #define ADM1031_REG_FAN_DIV(nr) (0x20 + (nr)) argument
25 #define ADM1031_REG_FAN_MIN(nr) (0x10 + (nr)) argument
28 #define ADM1031_REG_TEMP_OFFSET(nr) (0x0d + (nr)) argument
29 #define ADM1031_REG_TEMP_MAX(nr) (0x14 + 4 * (nr)) argument
30 #define ADM1031_REG_TEMP_MIN(nr) (0x15 + 4 * (nr)) argument
31 #define ADM1031_REG_TEMP_CRIT(nr) (0x16 + 4 * (nr)) argument
33 #define ADM1031_REG_TEMP(nr) (0x0a + (nr)) argument
34 #define ADM1031_REG_AUTO_TEMP(nr) (0x24 + (nr)) argument
36 #define ADM1031_REG_STATUS(nr) (0x2 + (nr)) argument
[all …]
Dpc87427.c133 #define BANK_FM(nr) (nr) argument
134 #define BANK_FT(nr) (0x08 + (nr)) argument
135 #define BANK_FC(nr) (0x10 + (nr) * 2) argument
136 #define BANK_TM(nr) (nr) argument
137 #define BANK_VM(nr) (0x08 + (nr)) argument
184 static void pc87427_readall_fan(struct pc87427_data *data, u8 nr) in pc87427_readall_fan()
239 static void pc87427_readall_pwm(struct pc87427_data *data, u8 nr) in pc87427_readall_pwm()
303 static void pc87427_readall_temp(struct pc87427_data *data, u8 nr) in pc87427_readall_temp()
391 int nr = to_sensor_dev_attr(devattr)->index; in fan_input_show() local
400 int nr = to_sensor_dev_attr(devattr)->index; in fan_min_show() local
[all …]
Dlm87.c70 #define LM87_REG_IN(nr) (0x20 + (nr)) argument
71 #define LM87_REG_IN_MAX(nr) (0x2B + (nr) * 2) argument
72 #define LM87_REG_IN_MIN(nr) (0x2C + (nr) * 2) argument
74 #define LM87_REG_AIN(nr) (0x28 + (nr)) argument
75 #define LM87_REG_AIN_MIN(nr) (0x1A + (nr)) argument
76 #define LM87_REG_AIN_MAX(nr) (0x3B + (nr)) argument
88 #define LM87_REG_FAN(nr) (0x28 + (nr)) argument
89 #define LM87_REG_FAN_MIN(nr) (0x3B + (nr)) argument
133 #define CHAN_NO_FAN(nr) (1 << (nr)) argument
270 int nr = to_sensor_dev_attr(attr)->index; in in_input_show() local
[all …]
Dvia686a.c64 #define VIA686A_REG_IN_MAX(nr) (0x2b + ((nr) * 2)) argument
65 #define VIA686A_REG_IN_MIN(nr) (0x2c + ((nr) * 2)) argument
66 #define VIA686A_REG_IN(nr) (0x22 + (nr)) argument
69 #define VIA686A_REG_FAN_MIN(nr) (0x3a + (nr)) argument
70 #define VIA686A_REG_FAN(nr) (0x28 + (nr)) argument
415 int nr = attr->index; in in_show() local
423 int nr = attr->index; in in_min_show() local
431 int nr = attr->index; in in_max_show() local
439 int nr = attr->index; in in_min_store() local
458 int nr = attr->index; in in_max_store() local
[all …]
Dsmsc47m192.c27 #define SMSC47M192_REG_IN(nr) ((nr) < 6 ? (0x20 + (nr)) : \ argument
29 #define SMSC47M192_REG_IN_MAX(nr) ((nr) < 6 ? (0x2b + (nr) * 2) : \ argument
31 #define SMSC47M192_REG_IN_MIN(nr) ((nr) < 6 ? (0x2c + (nr) * 2) : \ argument
36 #define SMSC47M192_REG_TEMP_OFFSET(nr) ((nr) == 2 ? 0x1e : 0x1f) argument
173 int nr = sensor_attr->index; in in_show() local
182 int nr = sensor_attr->index; in in_min_show() local
191 int nr = sensor_attr->index; in in_max_show() local
200 int nr = sensor_attr->index; in in_min_store() local
222 int nr = sensor_attr->index; in in_max_store() local
270 int nr = sensor_attr->index; in temp_show() local
[all …]
Dw83792d.c215 #define IN_FROM_REG(nr, val) (((nr) <= 1) ? ((val) * 2) : \ argument
217 #define IN_TO_REG(nr, val) (((nr) <= 1) ? ((val) / 2) : \ argument
316 static inline long in_count_from_reg(int nr, struct w83792d_data *data) in in_count_from_reg()
343 int nr = sensor_attr->index; in show_in() local
409 int nr = sensor_attr->index - 1; in store_fan_min() local
433 int nr = sensor_attr->index; in show_fan_div() local
449 int nr = sensor_attr->index - 1; in store_fan_div() local
491 int nr = sensor_attr->index; in show_temp1() local
500 int nr = sensor_attr->index; in store_temp1() local
526 int nr = sensor_attr->nr; in show_temp23() local
[all …]
Dnct6775-core.c194 #define NCT6775_AUTO_TEMP(data, nr, p) ((data)->REG_AUTO_TEMP[nr] + (p)) argument
195 #define NCT6775_AUTO_PWM(data, nr, p) ((data)->REG_AUTO_PWM[nr] + (p)) argument
918 static inline long in_from_reg(u8 reg, u8 nr) in in_from_reg()
923 static inline u8 in_to_reg(u32 val, u8 nr) in in_to_reg()
942 u8 nr; member
1142 static int nct6775_write_fan_div(struct nct6775_data *data, int nr) in nct6775_write_fan_div()
1157 static int nct6775_write_fan_div_common(struct nct6775_data *data, int nr) in nct6775_write_fan_div_common()
1253 struct nct6775_data *data, int nr, u16 reg) in nct6775_select_fan_div()
1633 int nr = sattr->nr; in show_in_reg() local
1648 int nr = sattr->nr; in store_in_reg() local
[all …]
Dw83l786ng.c34 #define W83L786NG_REG_IN_MIN(nr) (0x2C + (nr) * 2) argument
35 #define W83L786NG_REG_IN_MAX(nr) (0x2B + (nr) * 2) argument
36 #define W83L786NG_REG_IN(nr) ((nr) + 0x20) argument
38 #define W83L786NG_REG_FAN(nr) ((nr) + 0x28) argument
39 #define W83L786NG_REG_FAN_MIN(nr) ((nr) + 0x3B) argument
294 int nr = to_sensor_dev_attr(attr)->index; in store_fan_min() local
317 int nr = to_sensor_dev_attr(attr)->index; in show_fan_div() local
332 int nr = to_sensor_dev_attr(attr)->index; in store_fan_div() local
410 int nr = sensor_attr->nr; in show_temp() local
422 int nr = sensor_attr->nr; in store_temp() local
[all …]
Dw83627hf.c161 #define W83781D_REG_IN_MAX(nr) ((nr < 7) ? (0x2b + (nr) * 2) : \ argument
163 #define W83781D_REG_IN_MIN(nr) ((nr < 7) ? (0x2c + (nr) * 2) : \ argument
165 #define W83781D_REG_IN(nr) ((nr < 7) ? (0x20 + (nr)) : \ argument
169 #define W83627HF_REG_FAN_MIN(nr) (0x3b + (nr)) argument
170 #define W83627HF_REG_FAN(nr) (0x28 + (nr)) argument
219 #define W836X7HF_REG_PWM(type, nr) (((type) == w83627hf) ? \ argument
1009 int nr = to_sensor_dev_attr(devattr)->index; in in_input_show() local
1017 int nr = to_sensor_dev_attr(devattr)->index; in in_min_show() local
1026 int nr = to_sensor_dev_attr(devattr)->index; in in_min_store() local
1045 int nr = to_sensor_dev_attr(devattr)->index; in in_max_show() local
[all …]
Dsis5595.c83 #define SIS5595_REG_IN_MAX(nr) (0x2b + (nr) * 2) argument
84 #define SIS5595_REG_IN_MIN(nr) (0x2c + (nr) * 2) argument
85 #define SIS5595_REG_IN(nr) (0x20 + (nr)) argument
87 #define SIS5595_REG_FAN_MIN(nr) (0x3b + (nr)) argument
88 #define SIS5595_REG_FAN(nr) (0x28 + (nr)) argument
271 int nr = attr->index; in in_show() local
280 int nr = attr->index; in in_min_show() local
289 int nr = attr->index; in in_max_show() local
298 int nr = attr->index; in in_min_store() local
318 int nr = attr->index; in in_max_store() local
[all …]
Dit87.c238 #define IT87_REG_TEMP(nr) (0x29 + (nr)) argument
240 #define IT87_REG_VIN_MAX(nr) (0x30 + (nr) * 2) argument
241 #define IT87_REG_VIN_MIN(nr) (0x31 + (nr) * 2) argument
242 #define IT87_REG_TEMP_HIGH(nr) (0x40 + (nr) * 2) argument
243 #define IT87_REG_TEMP_LOW(nr) (0x41 + (nr) * 2) argument
254 #define IT87_REG_AUTO_TEMP(nr, i) (IT87_REG_AUTO_BASE[nr] + (i)) argument
255 #define IT87_REG_AUTO_PWM(nr, i) (IT87_REG_AUTO_BASE[nr] + 5 + (i)) argument
471 #define has_temp_peci(data, nr) (((data)->features & FEAT_TEMP_PECI) && \ argument
473 #define has_temp_old_peci(data, nr) \ argument
568 static int adc_lsb(const struct it87_data *data, int nr) in adc_lsb()
[all …]
Dvt8231.c66 #define VT8231_REG_FAN_MIN(nr) (0x3b + (nr)) argument
67 #define VT8231_REG_FAN(nr) (0x29 + (nr)) argument
252 int nr = sensor_attr->index; in in_show() local
262 int nr = sensor_attr->index; in in_min_show() local
272 int nr = sensor_attr->index; in in_max_show() local
282 int nr = sensor_attr->index; in in_min_store() local
302 int nr = sensor_attr->index; in in_max_store() local
469 int nr = sensor_attr->index; in temp_show() local
478 int nr = sensor_attr->index; in temp_max_show() local
487 int nr = sensor_attr->index; in temp_min_show() local
[all …]
Dlm80.c28 #define LM80_REG_IN_MAX(nr) (0x2a + (nr) * 2) argument
29 #define LM80_REG_IN_MIN(nr) (0x2b + (nr) * 2) argument
30 #define LM80_REG_IN(nr) (0x20 + (nr)) argument
34 #define LM80_REG_FAN_MIN(nr) (0x3b + (nr)) argument
264 int nr = to_sensor_dev_attr_2(attr)->nr; in in_show() local
277 int nr = to_sensor_dev_attr_2(attr)->nr; in in_store() local
297 int nr = to_sensor_dev_attr_2(attr)->nr; in fan_show() local
308 int nr = to_sensor_dev_attr(attr)->index; in fan_div_show() local
319 int nr = to_sensor_dev_attr_2(attr)->nr; in fan_store() local
346 int nr = to_sensor_dev_attr(attr)->index; in fan_div_store() local
[all …]
Dasb100.c49 #define ASB100_REG_IN(nr) (0x20 + (nr)) argument
50 #define ASB100_REG_IN_MAX(nr) (0x2b + (nr * 2)) argument
51 #define ASB100_REG_IN_MIN(nr) (0x2c + (nr * 2)) argument
54 #define ASB100_REG_FAN(nr) (0x28 + (nr)) argument
55 #define ASB100_REG_FAN_MIN(nr) (0x3b + (nr)) argument
62 #define ASB100_REG_TEMP(nr) (asb100_reg_temp[nr]) argument
63 #define ASB100_REG_TEMP_MAX(nr) (asb100_reg_temp_max[nr]) argument
64 #define ASB100_REG_TEMP_HYST(nr) (asb100_reg_temp_hyst[nr]) argument
289 int nr = to_sensor_dev_attr(attr)->index; in show_fan() local
298 int nr = to_sensor_dev_attr(attr)->index; in show_fan_min() local
[all …]
Dadm1026.c121 #define ADM1026_REG_FAN(nr) (0x38 + (nr)) argument
122 #define ADM1026_REG_FAN_MIN(nr) (0x60 + (nr)) argument
471 int nr = sensor_attr->index; in in_show() local
479 int nr = sensor_attr->index; in in_min_show() local
487 int nr = sensor_attr->index; in in_min_store() local
507 int nr = sensor_attr->index; in in_max_show() local
515 int nr = sensor_attr->index; in in_max_store() local
657 int nr = sensor_attr->index; in fan_show() local
666 int nr = sensor_attr->index; in fan_min_show() local
676 int nr = sensor_attr->index; in fan_min_store() local
[all …]
/drivers/gpio/
Dgpio-ich.c101 static int ichx_write_bit(int reg, unsigned int nr, int val, int verify) in ichx_write_bit()
133 static int ichx_read_bit(int reg, unsigned int nr) in ichx_read_bit()
153 static bool ichx_gpio_check_available(struct gpio_chip *gpio, unsigned int nr) in ichx_gpio_check_available()
158 static int ichx_gpio_get_direction(struct gpio_chip *gpio, unsigned int nr) in ichx_gpio_get_direction()
166 static int ichx_gpio_direction_input(struct gpio_chip *gpio, unsigned int nr) in ichx_gpio_direction_input()
175 static int ichx_gpio_direction_output(struct gpio_chip *gpio, unsigned int nr, in ichx_gpio_direction_output()
192 static int ichx_gpio_get(struct gpio_chip *chip, unsigned int nr) in ichx_gpio_get()
197 static int ich6_gpio_get(struct gpio_chip *chip, unsigned int nr) in ich6_gpio_get()
224 static int ichx_gpio_request(struct gpio_chip *chip, unsigned int nr) in ichx_gpio_request()
241 static int ich6_gpio_request(struct gpio_chip *chip, unsigned int nr) in ich6_gpio_request()
[all …]
Dgpio-sta2x11.c53 static void gsta_gpio_set(struct gpio_chip *gpio, unsigned nr, int val) in gsta_gpio_set()
65 static int gsta_gpio_get(struct gpio_chip *gpio, unsigned nr) in gsta_gpio_get()
74 static int gsta_gpio_direction_output(struct gpio_chip *gpio, unsigned nr, in gsta_gpio_direction_output()
90 static int gsta_gpio_direction_input(struct gpio_chip *gpio, unsigned nr) in gsta_gpio_direction_input()
144 static void gsta_set_config(struct gsta_gpio *chip, int nr, unsigned cfg) in gsta_set_config()
214 int nr = data->irq - chip->irq_base; in gsta_irq_disable() local
237 int nr = data->irq - chip->irq_base; in gsta_irq_enable() local
265 int nr = d->irq - chip->irq_base; in gsta_irq_type() local
284 int i, nr, base; in gsta_gpio_handler() local
/drivers/clk/hisilicon/
Dclk-hi3670.c829 int nr = ARRAY_SIZE(hi3670_fixed_rate_clks) + in hi3670_clk_crgctrl_init() local
863 int nr = ARRAY_SIZE(hi3670_pctrl_gate_clks); in hi3670_clk_pctrl_init() local
875 int nr = ARRAY_SIZE(hi3670_pmu_gate_clks); in hi3670_clk_pmuctrl_init() local
888 int nr = ARRAY_SIZE(hi3670_sctrl_gate_sep_clks) + in hi3670_clk_sctrl_init() local
914 int nr = ARRAY_SIZE(hi3670_iomcu_gate_sep_clks) + in hi3670_clk_iomcu_init() local
933 int nr = ARRAY_SIZE(hi3670_media1_gate_sep_clks) + in hi3670_clk_media1_init() local
960 int nr = ARRAY_SIZE(hi3670_media2_gate_sep_clks); in hi3670_clk_media2_init() local
/drivers/sh/clk/
Dcpg.c79 int __init sh_clk_mstp_register(struct clk *clks, int nr) in sh_clk_mstp_register()
226 static int __init sh_clk_div_register_ops(struct clk *clks, int nr, in sh_clk_div_register_ops()
321 int __init sh_clk_div6_register(struct clk *clks, int nr) in sh_clk_div6_register()
327 int __init sh_clk_div6_reparent_register(struct clk *clks, int nr) in sh_clk_div6_reparent_register()
374 int __init sh_clk_div4_register(struct clk *clks, int nr, in sh_clk_div4_register()
380 int __init sh_clk_div4_enable_register(struct clk *clks, int nr, in sh_clk_div4_enable_register()
387 int __init sh_clk_div4_reparent_register(struct clk *clks, int nr, in sh_clk_div4_reparent_register()
452 int __init sh_clk_fsidiv_register(struct clk *clks, int nr) in sh_clk_fsidiv_register()

12345678910>>...14