Home
last modified time | relevance | path

Searched refs:val (Results 2101 - 2125 of 26046) sorted by relevance

1...<<81828384858687888990>>...1042

/kernel/linux/linux-5.10/drivers/hwmon/occ/
H A Dcommon.c227 u32 val = 0; in occ_show_temp_1() local
241 val = get_unaligned_be16(&temp->sensor_id); in occ_show_temp_1()
250 val = get_unaligned_be16(&temp->value) * 1000; in occ_show_temp_1()
256 return snprintf(buf, PAGE_SIZE - 1, "%u\n", val); in occ_show_temp_1()
263 u32 val = 0; in occ_show_temp_2() local
277 val = get_unaligned_be32(&temp->sensor_id); in occ_show_temp_2()
280 val = temp->value; in occ_show_temp_2()
281 if (val == OCC_TEMP_SENSOR_FAULT) in occ_show_temp_2()
291 if (val == 0) in occ_show_temp_2()
294 val * in occ_show_temp_2()
314 u16 val = 0; occ_show_freq_1() local
344 u32 val = 0; occ_show_freq_2() local
374 u64 val = 0; occ_show_power_1() local
421 u64 val = 0; occ_show_power_2() local
460 u64 val = 0; occ_show_power_a0() local
540 u64 val = 0; occ_show_caps_1_2() local
590 u64 val = 0; occ_show_caps_3() local
[all...]
/kernel/linux/linux-6.6/drivers/pci/controller/
H A Dpcie-iproc.c427 enum iproc_pcie_reg reg, u32 val) in iproc_pcie_write_reg()
434 writel(val, pcie->base + offset); in iproc_pcie_write_reg()
447 u32 val; in iproc_pcie_apb_err_disable() local
450 val = iproc_pcie_read_reg(pcie, IPROC_PCIE_APB_ERR_EN); in iproc_pcie_apb_err_disable()
452 val &= ~APB_ERR_EN; in iproc_pcie_apb_err_disable()
454 val |= APB_ERR_EN; in iproc_pcie_apb_err_disable()
455 iproc_pcie_write_reg(pcie, IPROC_PCIE_APB_ERR_EN, val); in iproc_pcie_apb_err_disable()
465 u32 val; in iproc_pcie_map_ep_cfg_reg() local
468 val = ALIGN_DOWN(PCIE_ECAM_OFFSET(busno, devfn, where), 4) | in iproc_pcie_map_ep_cfg_reg()
471 iproc_pcie_write_reg(pcie, IPROC_PCIE_CFG_ADDR, val); in iproc_pcie_map_ep_cfg_reg()
426 iproc_pcie_write_reg(struct iproc_pcie *pcie, enum iproc_pcie_reg reg, u32 val) iproc_pcie_write_reg() argument
525 iproc_pcie_fix_cap(struct iproc_pcie *pcie, int where, u32 *val) iproc_pcie_fix_cap() argument
568 iproc_pcie_config_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) iproc_pcie_config_read() argument
654 iproc_pci_raw_config_read32(struct iproc_pcie *pcie, unsigned int devfn, int where, int size, u32 *val) iproc_pci_raw_config_read32() argument
672 iproc_pci_raw_config_write32(struct iproc_pcie *pcie, unsigned int devfn, int where, int size, u32 val) iproc_pci_raw_config_write32() argument
696 iproc_pcie_config_read32(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) iproc_pcie_config_read32() argument
712 iproc_pcie_config_write32(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) iproc_pcie_config_write32() argument
732 u32 val; iproc_pcie_perst_ctrl() local
768 u32 hdr_type, link_ctrl, link_status, class, val; iproc_pcie_check_link() local
845 u32 val; iproc_pcie_ob_is_valid() local
1042 u32 val; iproc_pcie_ib_is_in_use() local
1062 u32 val; iproc_pcie_ib_write() local
1263 u32 val; iproc_pcie_paxc_v2_msi_steer() local
[all...]
/kernel/linux/linux-6.6/drivers/input/misc/
H A Dda7280.c235 int val; member
286 unsigned int val; in da7280_haptic_mem_update() local
290 error = regmap_read(haptics->regmap, DA7280_IRQ_STATUS1, &val); in da7280_haptic_mem_update()
293 if (val & DA7280_STA_WARNING_MASK) { in da7280_haptic_mem_update()
300 val = 0; in da7280_haptic_mem_update()
301 error = regmap_read(haptics->regmap, DA7280_MEM_CTL2, &val); in da7280_haptic_mem_update()
304 if (~val & DA7280_WAV_MEM_LOCK_MASK) { in da7280_haptic_mem_update()
317 error = regmap_read(haptics->regmap, DA7280_MEM_CTL1, &val); in da7280_haptic_mem_update()
321 return regmap_bulk_write(haptics->regmap, val, haptics->snp_mem, in da7280_haptic_mem_update()
322 DA7280_SNP_MEM_MAX - val in da7280_haptic_mem_update()
497 int val = haptics->val; da7280_haptic_work() local
511 unsigned int val; da7280_haptics_upload_effect() local
659 da7280_haptics_playback(struct input_dev *dev, int effect_id, int val) da7280_haptics_playback() argument
765 da7280_haptic_of_volt_rating_set(u32 val) da7280_haptic_of_volt_rating_set() argument
780 u32 val; da7280_parse_properties() local
964 unsigned int val = 0; da7280_init() local
[all...]
/third_party/libinput/test/
H A Dtest-utils.c143 ck_assert_int_eq(m1.val[row][col], in START_TEST()
150 ck_assert_int_eq(m2.val[0][0], 1); in START_TEST()
151 ck_assert_int_eq(m2.val[0][1], 2); in START_TEST()
152 ck_assert_int_eq(m2.val[0][2], 3); in START_TEST()
153 ck_assert_int_eq(m2.val[1][0], 4); in START_TEST()
154 ck_assert_int_eq(m2.val[1][1], 5); in START_TEST()
155 ck_assert_int_eq(m2.val[1][2], 6); in START_TEST()
156 ck_assert_int_eq(m2.val[2][0], 0); in START_TEST()
157 ck_assert_int_eq(m2.val[2][1], 0); in START_TEST()
158 ck_assert_int_eq(m2.val[ in START_TEST()
804 int val; global() member
916 unsigned int val; global() member
1029 double val; START_TEST() member
1405 int val; START_TEST() member
1415 int val; START_TEST() local
1436 int val; START_TEST() member
1446 int val; START_TEST() local
1466 int val; START_TEST() member
[all...]
/kernel/linux/linux-6.6/drivers/hwmon/
H A Dmr75203.c277 static int pvt_read_temp(struct device *dev, u32 attr, int channel, long *val) in pvt_read_temp() argument
303 *val = pvt_calc_temp(pvt, nbs); in pvt_read_temp()
311 static int pvt_read_in(struct device *dev, u32 attr, int channel, long *val) in pvt_read_in() argument
343 * n must be cast to long, since n and *val differ both in in pvt_read_in()
351 *val = pre_scaler * (PVT_N_CONST * (long)n - PVT_R_CONST) / in pvt_read_in()
361 u32 attr, int channel, long *val) in pvt_read()
365 return pvt_read_temp(dev, attr, channel, val); in pvt_read()
367 return pvt_read_in(dev, attr, channel, val); in pvt_read()
399 u32 clk_synth, val; in pvt_init() local
447 val, !(va in pvt_init()
360 pvt_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long *val) pvt_read() argument
769 u32 ts_num, vm_num, pd_num, ch_num, val, index, i; mr75203_probe() local
[all...]
/third_party/toybox/kconfig/
H A Dsymbol.c160 return strtol(sym->curr.val, NULL, base); in sym_get_range_val()
166 int base, val, val2; in sym_validate_range() local
182 val = strtol(sym->curr.val, NULL, base); in sym_validate_range()
184 if (val >= val2) { in sym_validate_range()
186 if (val <= val2) in sym_validate_range()
193 sym->curr.val = strdup(str); in sym_validate_range()
233 def_sym = sym->def[S_DEF_USER].val; in sym_calc_choice()
291 sym->curr.val = sym->name; in sym_calc_value()
308 newval.tri = (prop_get_symbol(prop)->curr.val in sym_calc_value()
409 sym_tristate_within_range(struct symbol *sym, tristate val) sym_tristate_within_range() argument
428 sym_set_tristate_value(struct symbol *sym, tristate val) sym_set_tristate_value() argument
533 int val; sym_string_within_range() local
575 char *val; sym_set_string_value() local
623 tristate val; sym_get_string_value() local
[all...]
/kernel/linux/linux-5.10/drivers/power/supply/
H A Dbq24190_charger.c226 * 'val'. The index range returned is 0 to 'tbl_size' - 1. Assumes that
296 int *val) in bq24190_get_field_val()
306 *val = tbl[v]; in bq24190_get_field_val()
314 int val) in bq24190_set_field_val()
318 idx = bq24190_find_idx(tbl, tbl_size, val); in bq24190_set_field_val()
500 static int bq24190_set_charge_mode(struct regulator_dev *dev, u8 val) in bq24190_set_charge_mode() argument
513 BQ24190_REG_POC_CHG_CONFIG_SHIFT, val); in bq24190_set_charge_mode()
535 u8 val; in bq24190_vbus_is_enabled() local
545 BQ24190_REG_POC_CHG_CONFIG_SHIFT, &val); in bq24190_vbus_is_enabled()
553 return (val in bq24190_vbus_is_enabled()
293 bq24190_get_field_val(struct bq24190_dev_info *bdi, u8 reg, u8 mask, u8 shift, const int tbl[], int tbl_size, int *val) bq24190_get_field_val() argument
311 bq24190_set_field_val(struct bq24190_dev_info *bdi, u8 reg, u8 mask, u8 shift, const int tbl[], int tbl_size, int val) bq24190_set_field_val() argument
712 bq24190_charger_get_charge_type(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_charge_type() argument
745 bq24190_charger_set_charge_type(struct bq24190_dev_info *bdi, const union power_supply_propval *val) bq24190_charger_set_charge_type() argument
800 bq24190_charger_get_health(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_health() argument
865 bq24190_charger_get_online(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_online() argument
897 bq24190_charger_set_online(struct bq24190_dev_info *bdi, const union power_supply_propval *val) bq24190_charger_set_online() argument
903 bq24190_charger_get_status(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_status() argument
909 bq24190_charger_get_temp_alert_max(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_temp_alert_max() argument
915 bq24190_charger_set_temp_alert_max(struct bq24190_dev_info *bdi, const union power_supply_propval *val) bq24190_charger_set_temp_alert_max() argument
921 bq24190_charger_get_precharge(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_precharge() argument
937 bq24190_charger_get_charge_term(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_charge_term() argument
953 bq24190_charger_get_current(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_current() argument
980 bq24190_charger_get_current_max(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_current_max() argument
989 bq24190_charger_set_current(struct bq24190_dev_info *bdi, const union power_supply_propval *val) bq24190_charger_set_current() argument
1011 bq24190_charger_get_voltage(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_voltage() argument
1027 bq24190_charger_get_voltage_max(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_voltage_max() argument
1036 bq24190_charger_set_voltage(struct bq24190_dev_info *bdi, const union power_supply_propval *val) bq24190_charger_set_voltage() argument
1045 bq24190_charger_get_iinlimit(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_iinlimit() argument
1062 bq24190_charger_set_iinlimit(struct bq24190_dev_info *bdi, const union power_supply_propval *val) bq24190_charger_set_iinlimit() argument
1072 bq24190_charger_get_property(struct power_supply *psy, enum power_supply_property psp, union power_supply_propval *val) bq24190_charger_get_property() argument
1143 bq24190_charger_set_property(struct power_supply *psy, enum power_supply_property psp, const union power_supply_propval *val) bq24190_charger_set_property() argument
1206 union power_supply_propval val; bq24190_input_current_limit_work() local
1273 bq24190_battery_get_status(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_battery_get_status() argument
1325 bq24190_battery_get_health(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_battery_get_health() argument
1364 bq24190_battery_get_online(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_battery_get_online() argument
1380 bq24190_battery_set_online(struct bq24190_dev_info *bdi, const union power_supply_propval *val) bq24190_battery_set_online() argument
1388 bq24190_battery_get_temp_alert_max(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_battery_get_temp_alert_max() argument
1405 bq24190_battery_set_temp_alert_max(struct bq24190_dev_info *bdi, const union power_supply_propval *val) bq24190_battery_set_temp_alert_max() argument
1415 bq24190_battery_get_property(struct power_supply *psy, enum power_supply_property psp, union power_supply_propval *val) bq24190_battery_get_property() argument
1460 bq24190_battery_set_property(struct power_supply *psy, enum power_supply_property psp, const union power_supply_propval *val) bq24190_battery_set_property() argument
[all...]
/kernel/linux/linux-6.6/drivers/power/supply/
H A Dbq24190_charger.c182 const union power_supply_propval *val);
233 * 'val'. The index range returned is 0 to 'tbl_size' - 1. Assumes that
303 int *val) in bq24190_get_field_val()
313 *val = tbl[v]; in bq24190_get_field_val()
321 int val) in bq24190_set_field_val()
325 idx = bq24190_find_idx(tbl, tbl_size, val); in bq24190_set_field_val()
508 union power_supply_propval val = { .intval = bdi->charge_type }; in bq24190_set_otg_vbus() local
524 ret = bq24190_charger_set_charge_type(bdi, &val); in bq24190_set_otg_vbus()
547 u8 val; in bq24190_vbus_is_enabled() local
557 BQ24190_REG_POC_CHG_CONFIG_SHIFT, &val); in bq24190_vbus_is_enabled()
300 bq24190_get_field_val(struct bq24190_dev_info *bdi, u8 reg, u8 mask, u8 shift, const int tbl[], int tbl_size, int *val) bq24190_get_field_val() argument
318 bq24190_set_field_val(struct bq24190_dev_info *bdi, u8 reg, u8 mask, u8 shift, const int tbl[], int tbl_size, int val) bq24190_set_field_val() argument
747 bq24190_charger_get_charge_type(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_charge_type() argument
780 bq24190_charger_set_charge_type(struct bq24190_dev_info *bdi, const union power_supply_propval *val) bq24190_charger_set_charge_type() argument
843 bq24190_charger_get_health(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_health() argument
908 bq24190_charger_get_online(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_online() argument
940 bq24190_charger_set_online(struct bq24190_dev_info *bdi, const union power_supply_propval *val) bq24190_charger_set_online() argument
946 bq24190_charger_get_status(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_status() argument
952 bq24190_charger_get_temp_alert_max(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_temp_alert_max() argument
958 bq24190_charger_set_temp_alert_max(struct bq24190_dev_info *bdi, const union power_supply_propval *val) bq24190_charger_set_temp_alert_max() argument
964 bq24190_charger_get_precharge(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_precharge() argument
993 bq24190_charger_get_charge_term(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_charge_term() argument
1009 bq24190_charger_get_current(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_current() argument
1036 bq24190_charger_set_current(struct bq24190_dev_info *bdi, const union power_supply_propval *val) bq24190_charger_set_current() argument
1067 bq24190_charger_get_voltage(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_voltage() argument
1083 bq24190_charger_set_voltage(struct bq24190_dev_info *bdi, const union power_supply_propval *val) bq24190_charger_set_voltage() argument
1103 bq24190_charger_get_iinlimit(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_charger_get_iinlimit() argument
1120 bq24190_charger_set_iinlimit(struct bq24190_dev_info *bdi, const union power_supply_propval *val) bq24190_charger_set_iinlimit() argument
1130 bq24190_charger_get_property(struct power_supply *psy, enum power_supply_property psp, union power_supply_propval *val) bq24190_charger_get_property() argument
1203 bq24190_charger_set_property(struct power_supply *psy, enum power_supply_property psp, const union power_supply_propval *val) bq24190_charger_set_property() argument
1266 union power_supply_propval val; bq24190_input_current_limit_work() local
1333 bq24190_battery_get_status(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_battery_get_status() argument
1385 bq24190_battery_get_health(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_battery_get_health() argument
1424 bq24190_battery_get_online(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_battery_get_online() argument
1440 bq24190_battery_set_online(struct bq24190_dev_info *bdi, const union power_supply_propval *val) bq24190_battery_set_online() argument
1448 bq24190_battery_get_temp_alert_max(struct bq24190_dev_info *bdi, union power_supply_propval *val) bq24190_battery_get_temp_alert_max() argument
1465 bq24190_battery_set_temp_alert_max(struct bq24190_dev_info *bdi, const union power_supply_propval *val) bq24190_battery_set_temp_alert_max() argument
1475 bq24190_battery_get_property(struct power_supply *psy, enum power_supply_property psp, union power_supply_propval *val) bq24190_battery_get_property() argument
1520 bq24190_battery_set_property(struct power_supply *psy, enum power_supply_property psp, const union power_supply_propval *val) bq24190_battery_set_property() argument
[all...]
/third_party/vk-gl-cts/modules/glshared/
H A DglsShaderLibraryCase.cpp157 const Value& val = spec.values.inputs[ndx]; in genVertexShader() local
158 const DataType basicType = val.type.getBasicType(); in genVertexShader()
162 res << vtxIn << " " << typeStr << " a_" << val.name << ";\n"; in genVertexShader()
165 res << vtxOut << " " << typeStr << " " << val.name << ";\n"; in genVertexShader()
167 res << vtxOut << " " << typeStr << " v_" << val.name << ";\n"; in genVertexShader()
179 const Value& val = spec.values.inputs[ndx]; in genVertexShader() local
180 const string& name = val.name; in genVertexShader()
182 if (getDataTypeScalarType(val.type.getBasicType()) == TYPE_FLOAT) in genVertexShader()
198 const Value& val = valueBlock.outputs[ndx]; in genCompareOp() local
201 if (checkVarName && val in genCompareOp()
257 const Value& val = spec.values.outputs[ndx]; genFragmentShader() local
303 const Value& val = spec.values.inputs[ndx]; specializeVertexShader() local
324 const Value& val = spec.values.outputs[ndx]; specializeVertexShader() local
378 const Value& val = spec.values.inputs[ndx]; specializeFragmentShader() local
398 const Value& val = spec.values.outputs[ndx]; specializeFragmentShader() local
426 const Value& val = valueBlock.uniforms[ndx]; generateUniformDeclarations() local
446 const Value& val = specParams.caseSpec.values.inputs[ndx]; generateVertexSpecialization() local
490 const Value& val = specParams.caseSpec.values.outputs[ndx]; generateFragmentSpecialization() local
[all...]
/kernel/linux/linux-5.10/sound/pci/
H A Dcmipci.c536 unsigned int val, oval; in snd_cmipci_set_bit() local
537 val = oval = inl(cm->iobase + cmd); in snd_cmipci_set_bit()
538 val |= flag; in snd_cmipci_set_bit()
539 if (val == oval) in snd_cmipci_set_bit()
541 outl(val, cm->iobase + cmd); in snd_cmipci_set_bit()
547 unsigned int val, oval; in snd_cmipci_clear_bit() local
548 val = oval = inl(cm->iobase + cmd); in snd_cmipci_clear_bit()
549 val &= ~flag; in snd_cmipci_clear_bit()
550 if (val == oval) in snd_cmipci_clear_bit()
552 outl(val, c in snd_cmipci_clear_bit()
559 unsigned char val, oval; snd_cmipci_set_bit_b() local
570 unsigned char val, oval; snd_cmipci_clear_bit_b() local
760 unsigned int reg, freq, freq_ext, val; snd_cmipci_pcm_prepare() local
1011 unsigned int val; snd_cmipci_spdif_default_put() local
1085 unsigned int val; snd_cmipci_spdif_stream_put() local
1114 struct snd_ctl_elem_value *val; save_mixer_state() local
1148 struct snd_ctl_elem_value *val; restore_mixer_state() local
1313 unsigned int reg, val; snd_cmipci_silence_hack() local
1989 cmipci_sb_reg_decode(struct cmipci_sb_reg *r, unsigned long val) cmipci_sb_reg_decode() argument
2018 int val; snd_cmipci_get_volume() local
2190 unsigned char oreg, val; snd_cmipci_get_native_mixer() local
2214 unsigned char oreg, nreg, val; snd_cmipci_put_native_mixer() local
2316 unsigned int val; _snd_cmipci_uswitch_get() local
2348 unsigned int val; _snd_cmipci_uswitch_put() local
2491 unsigned int val; get_line_in_mode() local
2922 unsigned int val; snd_cmipci_create_fm() local
2981 unsigned int val; snd_cmipci_create() local
[all...]
/kernel/linux/linux-6.6/sound/pci/
H A Dcmipci.c532 unsigned int val, oval; in snd_cmipci_set_bit() local
533 val = oval = inl(cm->iobase + cmd); in snd_cmipci_set_bit()
534 val |= flag; in snd_cmipci_set_bit()
535 if (val == oval) in snd_cmipci_set_bit()
537 outl(val, cm->iobase + cmd); in snd_cmipci_set_bit()
543 unsigned int val, oval; in snd_cmipci_clear_bit() local
544 val = oval = inl(cm->iobase + cmd); in snd_cmipci_clear_bit()
545 val &= ~flag; in snd_cmipci_clear_bit()
546 if (val == oval) in snd_cmipci_clear_bit()
548 outl(val, c in snd_cmipci_clear_bit()
555 unsigned char val, oval; snd_cmipci_set_bit_b() local
566 unsigned char val, oval; snd_cmipci_clear_bit_b() local
756 unsigned int reg, freq, freq_ext, val; snd_cmipci_pcm_prepare() local
1007 unsigned int val; snd_cmipci_spdif_default_put() local
1081 unsigned int val; snd_cmipci_spdif_stream_put() local
1110 struct snd_ctl_elem_value *val; save_mixer_state() local
1144 struct snd_ctl_elem_value *val; restore_mixer_state() local
1313 unsigned int reg, val; snd_cmipci_silence_hack() local
1997 cmipci_sb_reg_decode(struct cmipci_sb_reg *r, unsigned long val) cmipci_sb_reg_decode() argument
2026 int val; snd_cmipci_get_volume() local
2198 unsigned char oreg, val; snd_cmipci_get_native_mixer() local
2222 unsigned char oreg, nreg, val; snd_cmipci_put_native_mixer() local
2324 unsigned int val; _snd_cmipci_uswitch_get() local
2356 unsigned int val; _snd_cmipci_uswitch_put() local
2499 unsigned int val; get_line_in_mode() local
2918 unsigned int val; snd_cmipci_create_fm() local
2975 unsigned int val; snd_cmipci_create() local
[all...]
/kernel/linux/linux-5.10/arch/parisc/kernel/
H A Dunaligned.c124 unsigned long val = 0; in emulate_ldh() local
143 : "=r" (val), "=r" (ret) in emulate_ldh()
144 : "0" (val), "r" (saddr), "r" (regs->isr) in emulate_ldh()
147 DPRINTF("val = 0x" RFMT "\n", val); in emulate_ldh()
150 regs->gr[toreg] = val; in emulate_ldh()
158 unsigned long val = 0; in emulate_ldw() local
181 : "=r" (val), "=r" (ret) in emulate_ldw()
182 : "0" (val), "r" (saddr), "r" (regs->isr) in emulate_ldw()
185 DPRINTF("val in emulate_ldw()
197 __u64 val = 0; emulate_ldd() local
270 unsigned long val = regs->gr[frreg]; emulate_sth() local
301 unsigned long val; emulate_stw() local
347 __u64 val; emulate_std() local
[all...]
/kernel/linux/linux-5.10/drivers/hwmon/pmbus/
H A Dmax20730.c61 #define VOLT_FROM_REG(val) DIV_ROUND_CLOSEST((val), 1 << 9)
117 u16 val; in max20730_debugfs_read() local
129 val = (data->mfr_devset1 & MAX20730_MFR_DEVSET1_FSW_MASK) in max20730_debugfs_read()
132 if (val == 0) in max20730_debugfs_read()
134 else if (val == 1) in max20730_debugfs_read()
136 else if (val == 2 || val == 3) in max20730_debugfs_read()
138 else if (val == 4) in max20730_debugfs_read()
140 else if (val in max20730_debugfs_read()
[all...]
/kernel/linux/linux-5.10/drivers/iio/imu/inv_icm42600/
H A Dinv_icm42600_core.c146 unsigned int val; in inv_icm42600_set_pwr_mgmt0() local
153 val = INV_ICM42600_PWR_MGMT0_GYRO(gyro) | in inv_icm42600_set_pwr_mgmt0()
156 val |= INV_ICM42600_PWR_MGMT0_TEMP_DIS; in inv_icm42600_set_pwr_mgmt0()
157 ret = regmap_write(st->map, INV_ICM42600_REG_PWR_MGMT0, val); in inv_icm42600_set_pwr_mgmt0()
207 unsigned int val; in inv_icm42600_set_accel_conf() local
222 val = INV_ICM42600_ACCEL_CONFIG0_FS(conf->fs) | in inv_icm42600_set_accel_conf()
224 ret = regmap_write(st->map, INV_ICM42600_REG_ACCEL_CONFIG0, val); in inv_icm42600_set_accel_conf()
233 val = INV_ICM42600_GYRO_ACCEL_CONFIG0_ACCEL_FILT(conf->filter) | in inv_icm42600_set_accel_conf()
235 ret = regmap_write(st->map, INV_ICM42600_REG_GYRO_ACCEL_CONFIG0, val); in inv_icm42600_set_accel_conf()
251 unsigned int val; in inv_icm42600_set_gyro_conf() local
321 unsigned int val; inv_icm42600_set_conf() local
372 unsigned int val; inv_icm42600_setup() local
473 unsigned int val; inv_icm42600_irq_init() local
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/
H A Ddebugfs.c71 u16 val; in shm16read__read_file() local
79 val = b43_shm_read16(dev, routing, addr); in shm16read__read_file()
80 fappend("0x%04X\n", val); in shm16read__read_file()
113 u16 val; in shm16write__write_file() local
132 val = 0; in shm16write__write_file()
134 val = b43_shm_read16(dev, routing, addr); in shm16write__write_file()
135 val &= mask; in shm16write__write_file()
136 val |= set; in shm16write__write_file()
137 b43_shm_write16(dev, routing, addr, val); in shm16write__write_file()
147 u32 val; in shm32read__read_file() local
189 u32 val; shm32write__write_file() local
226 u16 val; mmio16read__read_file() local
262 u16 val; mmio16write__write_file() local
290 u32 val; mmio32read__read_file() local
326 u32 val; mmio32write__write_file() local
[all...]
/kernel/linux/linux-5.10/drivers/rtc/
H A Drtc-sc27xx.c135 u32 val; in sprd_rtc_lock_alarm() local
137 ret = regmap_read(rtc->regmap, rtc->base + SPRD_RTC_SPG_VALUE, &val); in sprd_rtc_lock_alarm()
141 val &= ~SPRD_RTC_ALMLOCK_MASK; in sprd_rtc_lock_alarm()
143 val |= SPRD_RTC_ALM_LOCK; in sprd_rtc_lock_alarm()
145 val |= SPRD_RTC_ALM_UNLOCK | SPRD_RTC_POWEROFF_ALM_FLAG; in sprd_rtc_lock_alarm()
147 ret = regmap_write(rtc->regmap, rtc->base + SPRD_RTC_SPG_UPD, val); in sprd_rtc_lock_alarm()
153 rtc->base + SPRD_RTC_INT_RAW_STS, val, in sprd_rtc_lock_alarm()
154 (val & SPRD_RTC_SPG_UPD_EN), in sprd_rtc_lock_alarm()
170 u32 val, sec, min, hour, day; in sprd_rtc_get_secs() local
196 ret = regmap_read(rtc->regmap, rtc->base + sec_reg, &val); in sprd_rtc_get_secs()
227 u32 sec, min, hour, day, val; sprd_rtc_set_secs() local
306 u32 val; sprd_rtc_read_aux_alarm() local
415 u32 val; sprd_rtc_read_alarm() local
554 u32 val; sprd_rtc_check_power_down() local
572 u32 val; sprd_rtc_check_alarm_int() local
[all...]
/kernel/linux/linux-5.10/sound/soc/codecs/
H A Dadau1701.c261 unsigned int val; in adau1701_safeload() local
266 ret = regmap_read(adau1701->regmap, ADAU1701_DSPCTRL, &val); in adau1701_safeload()
270 if (val & ADAU1701_DSPCTRL_IST) in adau1701_safeload()
369 unsigned int val; in adau1701_set_capture_pcm_format() local
373 val = ADAU1701_SEROCTL_WORD_LEN_16; in adau1701_set_capture_pcm_format()
376 val = ADAU1701_SEROCTL_WORD_LEN_20; in adau1701_set_capture_pcm_format()
379 val = ADAU1701_SEROCTL_WORD_LEN_24; in adau1701_set_capture_pcm_format()
388 val |= ADAU1701_SEROCTL_MSB_DEALY16; in adau1701_set_capture_pcm_format()
391 val |= ADAU1701_SEROCTL_MSB_DEALY12; in adau1701_set_capture_pcm_format()
394 val | in adau1701_set_capture_pcm_format()
409 unsigned int val; adau1701_set_playback_pcm_format() local
440 unsigned int val; adau1701_hw_params() local
581 unsigned int val; adau1701_mute_stream() local
596 unsigned int val; adau1701_set_sysclk() local
670 unsigned int val; adau1701_probe() local
[all...]
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
H A Dpcmmio.c185 static void pcmmio_dio_write(struct comedi_device *dev, unsigned int val, in pcmmio_dio_write() argument
195 outb(val & 0xff, iobase + PCMMIO_PORT_REG(port + 0)); in pcmmio_dio_write()
196 outb((val >> 8) & 0xff, iobase + PCMMIO_PORT_REG(port + 1)); in pcmmio_dio_write()
197 outb((val >> 16) & 0xff, iobase + PCMMIO_PORT_REG(port + 2)); in pcmmio_dio_write()
200 outb(val & 0xff, iobase + PCMMIO_PAGE_REG(0)); in pcmmio_dio_write()
201 outb((val >> 8) & 0xff, iobase + PCMMIO_PAGE_REG(1)); in pcmmio_dio_write()
202 outb((val >> 16) & 0xff, iobase + PCMMIO_PAGE_REG(2)); in pcmmio_dio_write()
213 unsigned int val; in pcmmio_dio_read() local
218 val = inb(iobase + PCMMIO_PORT_REG(port + 0)); in pcmmio_dio_read()
219 val | in pcmmio_dio_read()
251 unsigned int val; pcmmio_dio_insn_bits() local
328 unsigned int val = 0; pcmmio_handle_dio_intr() local
540 unsigned int val; pcmmio_ai_insn_read() local
647 unsigned int val = data[i]; pcmmio_ao_insn_write() local
[all...]
/kernel/linux/linux-6.6/drivers/soc/ixp4xx/
H A Dixp4xx-npe.c138 u32 reg, val; member
191 u32 val = npe_cmd_read(npe, reg, CMD_RD_ECS_REG); in npe_clear_active() local
192 npe_cmd_write(npe, reg, CMD_WR_ECS_REG, val & ~ECS_REG_0_ACTIVE); in npe_clear_active()
256 u8 val, u32 ctx) in npe_logical_reg_write8()
261 (val & 0x1F) << 4 | /* lower 5 bits to immediate data */ in npe_logical_reg_write8()
262 (val & ~0x1F) << (18 - 5);/* higher 3 bits to CoProc instr. */ in npe_logical_reg_write8()
267 u16 val, u32 ctx) in npe_logical_reg_write16()
272 (val & 0x1F) << 4 | /* lower 5 bits to immediate data */ in npe_logical_reg_write16()
273 (val & ~0x1F) << (18 - 5);/* higher 11 bits to CoProc instr. */ in npe_logical_reg_write16()
278 u32 val, u3 in npe_logical_reg_write32()
255 npe_logical_reg_write8(struct npe *npe, u32 addr, u8 val, u32 ctx) npe_logical_reg_write8() argument
266 npe_logical_reg_write16(struct npe *npe, u32 addr, u16 val, u32 ctx) npe_logical_reg_write16() argument
277 npe_logical_reg_write32(struct npe *npe, u32 addr, u32 val, u32 ctx) npe_logical_reg_write32() argument
289 u32 val, ctl, exec_count, ctx_reg2; npe_reset() local
692 u32 val; ixp4xx_npe_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/comedi/drivers/
H A Dpcmmio.c184 static void pcmmio_dio_write(struct comedi_device *dev, unsigned int val, in pcmmio_dio_write() argument
194 outb(val & 0xff, iobase + PCMMIO_PORT_REG(port + 0)); in pcmmio_dio_write()
195 outb((val >> 8) & 0xff, iobase + PCMMIO_PORT_REG(port + 1)); in pcmmio_dio_write()
196 outb((val >> 16) & 0xff, iobase + PCMMIO_PORT_REG(port + 2)); in pcmmio_dio_write()
199 outb(val & 0xff, iobase + PCMMIO_PAGE_REG(0)); in pcmmio_dio_write()
200 outb((val >> 8) & 0xff, iobase + PCMMIO_PAGE_REG(1)); in pcmmio_dio_write()
201 outb((val >> 16) & 0xff, iobase + PCMMIO_PAGE_REG(2)); in pcmmio_dio_write()
212 unsigned int val; in pcmmio_dio_read() local
217 val = inb(iobase + PCMMIO_PORT_REG(port + 0)); in pcmmio_dio_read()
218 val | in pcmmio_dio_read()
250 unsigned int val; pcmmio_dio_insn_bits() local
327 unsigned int val = 0; pcmmio_handle_dio_intr() local
539 unsigned int val; pcmmio_ai_insn_read() local
646 unsigned int val = data[i]; pcmmio_ao_insn_write() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/b43/
H A Ddebugfs.c71 u16 val; in shm16read__read_file() local
79 val = b43_shm_read16(dev, routing, addr); in shm16read__read_file()
80 fappend("0x%04X\n", val); in shm16read__read_file()
113 u16 val; in shm16write__write_file() local
132 val = 0; in shm16write__write_file()
134 val = b43_shm_read16(dev, routing, addr); in shm16write__write_file()
135 val &= mask; in shm16write__write_file()
136 val |= set; in shm16write__write_file()
137 b43_shm_write16(dev, routing, addr, val); in shm16write__write_file()
147 u32 val; in shm32read__read_file() local
189 u32 val; shm32write__write_file() local
226 u16 val; mmio16read__read_file() local
262 u16 val; mmio16write__write_file() local
290 u32 val; mmio32read__read_file() local
326 u32 val; mmio32write__write_file() local
[all...]
/kernel/linux/linux-6.6/drivers/hwmon/pmbus/
H A Dmax20730.c61 #define VOLT_FROM_REG(val) DIV_ROUND_CLOSEST((val), 1 << 9)
118 u16 val; in max20730_debugfs_read() local
130 val = (data->mfr_devset1 & MAX20730_MFR_DEVSET1_FSW_MASK) in max20730_debugfs_read()
133 if (val == 0) in max20730_debugfs_read()
135 else if (val == 1) in max20730_debugfs_read()
137 else if (val == 2 || val == 3) in max20730_debugfs_read()
139 else if (val == 4) in max20730_debugfs_read()
141 else if (val in max20730_debugfs_read()
[all...]
/kernel/linux/linux-6.6/drivers/leds/flash/
H A Dleds-mt6370-flash.c94 u32 val = level ? led_enable_mask : 0; in mt6370_torch_brightness_set() local
116 val |= MT6370_TORCHEN_MASK; in mt6370_torch_brightness_set()
143 ret = regmap_update_bits(priv->regmap, MT6370_REG_FLEDEN, enable_mask, val); in mt6370_torch_brightness_set()
169 u32 val = (brightness - setting->min) / setting->step; in _mt6370_flash_brightness_set() local
179 flevel[0] = val / 2; in _mt6370_flash_brightness_set()
180 flevel[1] = val - flevel[0]; in _mt6370_flash_brightness_set()
189 MT6370_ISTROBE_MASK, val); in _mt6370_flash_brightness_set()
204 u32 val = state ? led_enable_mask : 0; in mt6370_strobe_set() local
226 val |= MT6370_STROBEN_MASK; in mt6370_strobe_set()
228 ret = regmap_update_bits(priv->regmap, MT6370_REG_FLEDEN, enable_mask, val); in mt6370_strobe_set()
277 u32 val = (timeout - s->min) / s->step; mt6370_timeout_set() local
351 u32 val = enable ? mask : 0; mt6370_flash_external_strobe_set() local
424 mt6370_clamp(u32 val, u32 min, u32 max, u32 step) mt6370_clamp() argument
443 u32 max_ua, val; mt6370_init_flash_properties() local
[all...]
/kernel/linux/linux-6.6/sound/soc/codecs/
H A Dadau1701.c261 unsigned int val; in adau1701_safeload() local
266 ret = regmap_read(adau1701->regmap, ADAU1701_DSPCTRL, &val); in adau1701_safeload()
270 if (val & ADAU1701_DSPCTRL_IST) in adau1701_safeload()
371 unsigned int val; in adau1701_set_capture_pcm_format() local
375 val = ADAU1701_SEROCTL_WORD_LEN_16; in adau1701_set_capture_pcm_format()
378 val = ADAU1701_SEROCTL_WORD_LEN_20; in adau1701_set_capture_pcm_format()
381 val = ADAU1701_SEROCTL_WORD_LEN_24; in adau1701_set_capture_pcm_format()
390 val |= ADAU1701_SEROCTL_MSB_DEALY16; in adau1701_set_capture_pcm_format()
393 val |= ADAU1701_SEROCTL_MSB_DEALY12; in adau1701_set_capture_pcm_format()
396 val | in adau1701_set_capture_pcm_format()
411 unsigned int val; adau1701_set_playback_pcm_format() local
442 unsigned int val; adau1701_hw_params() local
583 unsigned int val; adau1701_mute_stream() local
598 unsigned int val; adau1701_set_sysclk() local
672 unsigned int val; adau1701_probe() local
[all...]
/kernel/linux/linux-5.10/arch/mips/pci/
H A Dpci-alchemy.c189 int where, u8 *val) in read_config_byte()
198 *val = data & 0xff; in read_config_byte()
203 int where, u16 *val) in read_config_word()
210 *val = data & 0xffff; in read_config_word()
215 int where, u32 *val) in read_config_dword()
217 return config_access(PCI_ACCESS_READ, bus, devfn, where, val); in read_config_dword()
221 int where, u8 val) in write_config_byte()
229 (val << ((where & 3) << 3)); in write_config_byte()
238 int where, u16 val) in write_config_word()
246 (val << ((wher in write_config_word()
188 read_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 *val) read_config_byte() argument
202 read_config_word(struct pci_bus *bus, unsigned int devfn, int where, u16 *val) read_config_word() argument
214 read_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 *val) read_config_dword() argument
220 write_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 val) write_config_byte() argument
237 write_config_word(struct pci_bus *bus, unsigned int devfn, int where, u16 val) write_config_word() argument
254 write_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 val) write_config_dword() argument
260 alchemy_pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) alchemy_pci_read() argument
283 alchemy_pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) alchemy_pci_write() argument
367 unsigned long val; alchemy_pci_probe() local
[all...]

Completed in 31 milliseconds

1...<<81828384858687888990>>...1042