Home
last modified time | relevance | path

Searched +defs:val +defs:buf (Results 1 – 25 of 1298) sorted by relevance

12345678910>>...52

/linux-6.14.4/drivers/hwtracing/coresight/
Dcoresight-etm3x-sysfs.c14 struct device_attribute *attr, char *buf) in nr_addr_cmp_show()
16 unsigned long val; in nr_addr_cmp_show() local
25 struct device_attribute *attr, char *buf) in nr_cntr_show()
26 { unsigned long val; in nr_cntr_show() local
35 struct device_attribute *attr, char *buf) in nr_ctxid_cmp_show()
37 unsigned long val; in nr_ctxid_cmp_show() local
46 struct device_attribute *attr, char *buf) in etmsr_show()
48 unsigned long flags, val; in etmsr_show() local
67 const char *buf, size_t size) in reset_store()
70 unsigned long val; in reset_store() local
[all …]
Dcoresight-etm4x-sysfs.c59 char *buf) in nr_pe_cmp_show()
61 unsigned long val; in nr_pe_cmp_show() local
71 char *buf) in nr_addr_cmp_show()
73 unsigned long val; in nr_addr_cmp_show() local
83 char *buf) in nr_cntr_show()
85 unsigned long val; in nr_cntr_show() local
95 char *buf) in nr_ext_inp_show()
97 unsigned long val; in nr_ext_inp_show() local
107 char *buf) in numcidc_show()
109 unsigned long val; in numcidc_show() local
[all …]
Dcoresight-tpdm.c27 char *buf) in tpdm_simple_dataset_show()
101 const char *buf, in tpdm_simple_dataset_store()
104 unsigned long val; in tpdm_simple_dataset_store() local
253 static void set_dsb_mode(struct tpdm_drvdata *drvdata, u32 *val) in set_dsb_mode()
276 u32 val; in set_dsb_tier() local
315 u32 val, i; in tpdm_enable_dsb() local
355 u32 val; in set_cmb_tier() local
389 u32 val, i; in tpdm_enable_cmb() local
468 u32 val; in tpdm_disable_dsb() local
481 u32 val; in tpdm_disable_cmb() local
[all …]
Dcoresight-cti-sysfs.c81 char *buf) in enable_show()
101 const char *buf, size_t size) in enable_store()
104 unsigned long val; in enable_store() local
132 char *buf) in powered_show()
146 struct device_attribute *attr, char *buf) in ctmid_show()
156 char *buf) in nr_trigger_cons_show()
177 struct device_attribute *attr, char *buf) in coresight_cti_reg_show()
181 u32 val = 0; in coresight_cti_reg_show() local
195 const char *buf, size_t size) in coresight_cti_reg_store()
199 unsigned long val = 0; in coresight_cti_reg_store() local
[all …]
/linux-6.14.4/net/bridge/
Dbr_sysfs_br.c32 const char *buf, size_t len, in store_bridge_parm()
33 int (*set)(struct net_bridge *br, unsigned long val, in store_bridge_parm()
38 unsigned long val; in store_bridge_parm() local
67 struct device_attribute *attr, char *buf) in forward_delay_show()
73 static int set_forward_delay(struct net_bridge *br, unsigned long val, in set_forward_delay()
81 const char *buf, size_t len) in forward_delay_store()
88 char *buf) in hello_time_show()
94 static int set_hello_time(struct net_bridge *br, unsigned long val, in set_hello_time()
101 struct device_attribute *attr, const char *buf, in hello_time_store()
109 char *buf) in max_age_show()
[all …]
/linux-6.14.4/drivers/hwmon/
Dadm1026.c186 #define SCALE(val, from, to) (((val)*(to) + ((from)/2))/(from)) argument
187 #define INS_TO_REG(n, val) \ argument
190 #define INS_FROM_REG(n, val) (SCALE(val, 192, adm1026_scaling[n])) argument
197 #define FAN_TO_REG(val, div) ((val) <= 0 ? 0xff : \ argument
200 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : (val) == 0xff ? 0 : \ argument
202 #define DIV_FROM_REG(val) (1 << (val)) argument
203 #define DIV_TO_REG(val) ((val) >= 8 ? 3 : (val) >= 4 ? 2 : (val) >= 2 ? 1 : 0) argument
206 #define TEMP_TO_REG(val) DIV_ROUND_CLOSEST(clamp_val(val, -128000, 127000), \ argument
208 #define TEMP_FROM_REG(val) ((val) * 1000) argument
209 #define OFFSET_TO_REG(val) DIV_ROUND_CLOSEST(clamp_val(val, -128000, 127000), \ argument
[all …]
Dlm85.c124 #define SCALE(val, from, to) (((val) * (to) + ((from) / 2)) / (from)) argument
126 #define INS_TO_REG(n, val) \ argument
130 #define INSEXT_FROM_REG(n, val, ext) \ argument
133 #define INS_FROM_REG(n, val) SCALE((val), 192, lm85_scaling[n]) argument
136 static inline u16 FAN_TO_REG(unsigned long val) in FAN_TO_REG()
142 #define FAN_FROM_REG(val) ((val) == 0 ? -1 : (val) == 0xffff ? 0 : \ argument
146 #define TEMP_TO_REG(val) \ argument
148 #define TEMPEXT_FROM_REG(val, ext) \ argument
150 #define TEMP_FROM_REG(val) ((val) * 1000) argument
152 #define PWM_TO_REG(val) clamp_val(val, 0, 255) argument
[all …]
Dw83791d.c210 #define IN_TO_REG(val) (clamp_val((((val) + 8) / 16), 0, 255)) argument
211 #define IN_FROM_REG(val) ((val) * 16) argument
221 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : \ argument
226 #define TEMP1_FROM_REG(val) ((val) * 1000) argument
227 #define TEMP1_TO_REG(val) ((val) <= -128000 ? -128 : \ argument
238 #define TEMP23_FROM_REG(val) ((val) / 128 * 500) argument
239 #define TEMP23_TO_REG(val) (DIV_ROUND_CLOSEST(clamp_val((val), -128000, \ argument
243 #define TARGET_TEMP_TO_REG(val) DIV_ROUND_CLOSEST(clamp_val((val), 0, 127000), \ argument
247 #define TOL_TEMP_TO_REG(val) DIV_ROUND_CLOSEST(clamp_val((val), 0, 15000), \ argument
250 #define BEEP_MASK_TO_REG(val) ((val) & 0xffffff) argument
[all …]
Dpc87360.c87 static inline void superio_outb(int sioaddr, int reg, int val) in superio_outb()
124 #define FAN_FROM_REG(val, div) ((val) == 0 ? 0 : \ argument
126 #define FAN_TO_REG(val, div) ((val) <= 100 ? 0 : \ argument
128 #define FAN_DIV_FROM_REG(val) (1 << (((val) >> 5) & 0x03)) argument
129 #define FAN_STATUS_FROM_REG(val) ((val) & 0x07) argument
131 #define FAN_CONFIG_MONITOR(val, nr) (((val) >> (2 + (nr) * 3)) & 1) argument
132 #define FAN_CONFIG_CONTROL(val, nr) (((val) >> (3 + (nr) * 3)) & 1) argument
133 #define FAN_CONFIG_INVERT(val, nr) (((val) >> (4 + (nr) * 3)) & 1) argument
135 #define PWM_FROM_REG(val, inv) ((inv) ? 255 - (val) : (val)) argument
136 static inline u8 PWM_TO_REG(int val, int inv) in PWM_TO_REG()
[all …]
Dw83627hf.c100 superio_outb(struct w83627hf_sio_data *sio, int reg, int val) in superio_outb()
250 #define IN_TO_REG(val) (clamp_val((((val) + 8) / 16), 0, 255)) argument
251 #define IN_FROM_REG(val) ((val) * 16) argument
280 #define FAN_FROM_REG(val,div) ((val)==0?-1:(val)==255?0:1350000/((val)*(div))) argument
282 #define PWM_TO_REG(val) (clamp_val((val), 0, 255)) argument
290 static inline u8 pwm_freq_to_reg_627hf(unsigned long val) in pwm_freq_to_reg_627hf()
316 static inline u8 pwm_freq_to_reg(unsigned long val) in pwm_freq_to_reg()
329 #define BEEP_MASK_FROM_REG(val) ((val) & 0xff7fff) argument
330 #define BEEP_MASK_TO_REG(val) ((val) & 0xff7fff) argument
332 #define DIV_FROM_REG(val) (1 << (val)) argument
[all …]
Dadm1031.c198 #define TEMP_TO_REG(val) (((val) < 0 ? ((val - 500) / 1000) : \ argument
201 #define TEMP_FROM_REG(val) ((val) * 1000) argument
203 #define TEMP_FROM_REG_EXT(val, ext) (TEMP_FROM_REG(val) + (ext) * 125) argument
205 #define TEMP_OFFSET_TO_REG(val) (TEMP_TO_REG(val) & 0x8f) argument
206 #define TEMP_OFFSET_FROM_REG(val) TEMP_FROM_REG((val) < 0 ? \ argument
221 #define PWM_TO_REG(val) (clamp_val((val), 0, 255) >> 4) argument
222 #define PWM_FROM_REG(val) ((val) << 4) argument
225 #define FAN_CHAN_TO_REG(val, reg) \ argument
228 #define AUTO_TEMP_MIN_TO_REG(val, reg) \ argument
242 static int AUTO_TEMP_MAX_TO_REG(int val, int reg, int pwm) in AUTO_TEMP_MAX_TO_REG()
[all …]
Dvt8231.c92 #define TEMP_MAXMIN_TO_REG(val) (253 - ((val) * 210 + 1100) / 2200) argument
112 #define DIV_FROM_REG(val) (1 << (val)) argument
141 #define FAN_FROM_REG(val, div) ((val) == 0 ? 0 : 1310720 / ((val) * (div))) argument
248 char *buf) in in_show()
258 char *buf) in in_min_show()
268 char *buf) in in_max_show()
278 const char *buf, size_t count) in in_min_store()
283 unsigned long val; in in_min_store() local
298 const char *buf, size_t count) in in_max_store()
303 unsigned long val; in in_max_store() local
[all …]
Dg762.c258 static int do_set_clk_freq(struct device *dev, unsigned long val) in do_set_clk_freq()
273 static int do_set_pwm_mode(struct device *dev, unsigned long val) in do_set_pwm_mode()
303 static int do_set_fan_div(struct device *dev, unsigned long val) in do_set_fan_div()
343 static int do_set_fan_gear_mode(struct device *dev, unsigned long val) in do_set_fan_gear_mode()
379 static int do_set_fan_pulses(struct device *dev, unsigned long val) in do_set_fan_pulses()
409 static int do_set_pwm_enable(struct device *dev, unsigned long val) in do_set_pwm_enable()
450 static int do_set_pwm_polarity(struct device *dev, unsigned long val) in do_set_pwm_polarity()
483 static int do_set_pwm(struct device *dev, unsigned long val) in do_set_pwm()
504 static int do_set_fan_target(struct device *dev, unsigned long val) in do_set_fan_target()
526 static int do_set_fan_startv(struct device *dev, unsigned long val) in do_set_fan_startv()
[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
229 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : \ argument
234 #define TEMP1_TO_REG(val) (clamp_val(((val) < 0 ? (val) + 0x100 * 1000 \ argument
236 #define TEMP1_FROM_REG(val) (((val) & 0x80 ? (val)-0x100 : (val)) * 1000) argument
241 #define TEMP_ADD_TO_REG_HIGH(val) \ argument
243 #define TEMP_ADD_TO_REG_LOW(val) ((val%1000) ? 0x80 : 0x00) argument
245 #define DIV_FROM_REG(val) (1 << (val)) argument
248 DIV_TO_REG(long val) in DIV_TO_REG()
340 char *buf) in show_in()
[all …]
Dvia686a.c116 static inline u8 IN_TO_REG(long val, int in_num) in IN_TO_REG()
136 static inline long IN_FROM_REG(u8 val, int in_num) in IN_FROM_REG()
167 #define FAN_FROM_REG(val, div) ((val) == 0 ? 0 : (val) == 255 ? 0 : 1350000 / \ argument
273 static inline u8 TEMP_TO_REG(long val) in TEMP_TO_REG()
280 #define TEMP_FROM_REG(val) ((long)temp_lut[val] * 100) argument
283 static inline long TEMP_FROM_REG10(u16 val) in TEMP_FROM_REG10()
297 #define DIV_FROM_REG(val) (1 << (val)) argument
298 #define DIV_TO_REG(val) ((val) == 8 ? 3 : (val) == 4 ? 2 : (val) == 1 ? 0 : 1) argument
412 char *buf) { in in_show()
420 char *buf) { in in_min_show()
[all …]
Dgl520sm.c113 int val, i; in gl520_update_device() local
190 struct device_attribute *attr, char *buf) in cpu0_vid_show()
197 #define VDD_FROM_REG(val) DIV_ROUND_CLOSEST((val) * 95, 4) argument
198 #define VDD_CLAMP(val) clamp_val(val, 0, 255 * 95 / 4) argument
199 #define VDD_TO_REG(val) DIV_ROUND_CLOSEST(VDD_CLAMP(val) * 4, 95) argument
201 #define IN_FROM_REG(val) ((val) * 19) argument
202 #define IN_CLAMP(val) clamp_val(val, 0, 255 * 19) argument
203 #define IN_TO_REG(val) DIV_ROUND_CLOSEST(IN_CLAMP(val), 19) argument
206 struct device_attribute *attr, char *buf) in in_input_show()
219 char *buf) in in_min_show()
[all …]
/linux-6.14.4/drivers/media/pci/mgb4/
Dmgb4_sysfs_out.c53 struct device_attribute *attr, char *buf) in output_id_show()
62 struct device_attribute *attr, char *buf) in video_source_show()
86 const char *buf, size_t count) in video_source_store()
92 unsigned long val; in video_source_store() local
147 struct device_attribute *attr, char *buf) in display_width_show()
159 const char *buf, size_t count) in display_width_store()
163 unsigned long val; in display_width_store() local
187 struct device_attribute *attr, char *buf) in display_height_show()
199 const char *buf, size_t count) in display_height_store()
203 unsigned long val; in display_height_store() local
[all …]
/linux-6.14.4/drivers/net/wireless/silabs/wfx/
Dhwio.c20 static int wfx_read32(struct wfx_dev *wdev, int reg, u32 *val) in wfx_read32()
37 static int wfx_write32(struct wfx_dev *wdev, int reg, u32 val) in wfx_write32()
52 static int wfx_read32_locked(struct wfx_dev *wdev, int reg, u32 *val) in wfx_read32_locked()
63 static int wfx_write32_locked(struct wfx_dev *wdev, int reg, u32 val) in wfx_write32_locked()
74 static int wfx_write32_bits_locked(struct wfx_dev *wdev, int reg, u32 mask, u32 val) in wfx_write32_bits_locked()
96 static int wfx_indirect_read(struct wfx_dev *wdev, int reg, u32 addr, void *buf, size_t len) in wfx_indirect_read()
147 const void *buf, size_t len) in wfx_indirect_write()
161 void *buf, size_t len) in wfx_indirect_read_locked()
173 const void *buf, size_t len) in wfx_indirect_write_locked()
184 static int wfx_indirect_read32_locked(struct wfx_dev *wdev, int reg, u32 addr, u32 *val) in wfx_indirect_read32_locked()
[all …]
/linux-6.14.4/drivers/char/
Dtlclk.c146 #define SET_PORT_BITS(port, mask, val) outb(((inb(port) & mask) | val), port) argument
244 static ssize_t tlclk_read(struct file *filp, char __user *buf, size_t count, in tlclk_read()
281 struct device_attribute *attr, char *buf) in show_current_ref()
297 struct device_attribute *attr, char *buf) in show_telclock_version()
313 struct device_attribute *attr, char *buf) in show_alarms()
328 struct device_attribute *attr, const char *buf, size_t count) in store_received_ref_clk3a()
331 unsigned char val; in store_received_ref_clk3a() local
350 struct device_attribute *attr, const char *buf, size_t count) in store_received_ref_clk3b()
353 unsigned char val; in store_received_ref_clk3b() local
372 struct device_attribute *attr, const char *buf, size_t count) in store_enable_clk3b_output()
[all …]
/linux-6.14.4/drivers/rapidio/
Drio-sysfs.c37 static ssize_t routes_show(struct device *dev, struct device_attribute *attr, char *buf) in routes_show()
57 struct device_attribute *attr, char *buf) in lprev_show()
67 struct device_attribute *attr, char *buf) in lnext_show()
88 struct device_attribute *attr, char *buf) in modalias_show()
118 char *buf, loff_t off, size_t count) in rio_read_config()
139 u8 val; in rio_read_config() local
147 u16 val; in rio_read_config() local
156 u32 val; in rio_read_config() local
167 u16 val; in rio_read_config() local
176 u8 val; in rio_read_config() local
[all …]
/linux-6.14.4/fs/xfs/
Dxfs_sysfs.c43 char *buf) in xfs_sysfs_object_show()
54 const char *buf, in xfs_sysfs_object_store()
84 const char *buf, in bug_on_assert_store()
88 int val; in bug_on_assert_store() local
107 char *buf) in bug_on_assert_show()
116 const char *buf, in log_recovery_delay_store()
120 int val; in log_recovery_delay_store() local
137 char *buf) in log_recovery_delay_show()
146 const char *buf, in mount_delay_store()
150 int val; in mount_delay_store() local
[all …]
/linux-6.14.4/arch/m68k/include/asm/
Dio_mm.h204 #define isa_outb(val,port) out_8(isa_itb(port),(val)) argument
205 #define isa_outw(val,port) (ISA_SEX ? out_be16(isa_itw(port),(val)) : out_le16(isa_itw(port),(val))) argument
206 #define isa_outl(val,port) (ISA_SEX ? out_be32(isa_itl(port),(val)) : out_le32(isa_itl(port),(val))) argument
212 #define isa_writeb(val,p) out_8(isa_mtb((unsigned long)(p)),(val)) argument
213 #define isa_writew(val,p) \ argument
223 #define isa_rom_outb(val, port) rom_out_8(isa_itb(port), (val)) argument
224 #define isa_rom_outw(val, port) \ argument
237 #define isa_rom_writeb(val, p) rom_out_8(isa_mtb((unsigned long)(p)), (val)) argument
238 #define isa_rom_writew(val, p) \ argument
241 #define isa_rom_writew_swap(val, p) \ argument
[all …]
Draw_io.h43 #define raw_outb(val,port) out_8((port),(val)) argument
44 #define raw_outw(val,port) out_be16((port),(val)) argument
45 #define raw_outl(val,port) out_be32((port),(val)) argument
46 #define __raw_writeb(val,addr) out_8((addr),(val)) argument
47 #define __raw_writew(val,addr) out_be16((addr),(val)) argument
48 #define __raw_writel(val,addr) out_be32((addr),(val)) argument
97 #define raw_rom_outb(val, port) rom_out_8((port), (val)) argument
98 #define raw_rom_outw(val, port) rom_out_be16((port), (val)) argument
101 static inline void raw_insb(const volatile u8 __iomem *port, u8 *buf, in raw_insb()
110 static inline void raw_outsb(volatile u8 __iomem *port, const u8 *buf, in raw_outsb()
[all …]
/linux-6.14.4/tools/perf/util/
Dperf_event_attr_fprintf.c19 static void __p_bits(char *buf, size_t size, u64 value, struct bit_names *bits) in __p_bits()
32 static void __p_sample_type(char *buf, size_t size, u64 value) in __p_sample_type()
50 static void __p_branch_sample_type(char *buf, size_t size, u64 value) in __p_branch_sample_type()
67 static void __p_read_format(char *buf, size_t size, u64 value) in __p_read_format()
183 static void __p_type_id(struct perf_pmu *pmu, char *buf, size_t size, u64 value) in __p_type_id()
188 static void __p_config_hw_id(char *buf, size_t size, u64 value) in __p_config_hw_id()
193 static void __p_config_sw_id(char *buf, size_t size, u64 value) in __p_config_sw_id()
198 static void __p_config_hw_cache_id(char *buf, size_t size, u64 value) in __p_config_hw_cache_id()
215 static void __p_config_tracepoint_id(char *buf, size_t size, u64 value) in __p_config_tracepoint_id()
223 static void __p_config_id(struct perf_pmu *pmu, char *buf, size_t size, u32 type, u64 value) in __p_config_id()
[all …]
/linux-6.14.4/drivers/net/bonding/
Dbond_sysfs.c36 char *buf) in bonding_show_bonds()
166 struct device_attribute *attr, char *buf) in bonding_show_slaves()
198 struct device_attribute *attr, char *buf) in bonding_show_mode()
201 const struct bond_opt_value *val; in bonding_show_mode() local
212 char *buf) in bonding_show_xmit_hash()
215 const struct bond_opt_value *val; in bonding_show_xmit_hash() local
227 char *buf) in bonding_show_arp_validate()
230 const struct bond_opt_value *val; in bonding_show_arp_validate() local
243 char *buf) in bonding_show_arp_all_targets()
246 const struct bond_opt_value *val; in bonding_show_arp_all_targets() local
[all …]

12345678910>>...52