/kernel/linux/linux-5.10/sound/pci/ice1712/ |
H A D | prodigy_hifi.c | 30 unsigned short vol[8]; member 259 ucontrol->value.integer.value[i] = spec->vol[i]; in ak4396_dac_vol_get() 273 if (ucontrol->value.integer.value[i] != spec->vol[i]) { in ak4396_dac_vol_put() 274 spec->vol[i] = ucontrol->value.integer.value[i]; in ak4396_dac_vol_put() 276 spec->vol[i] & 0xff); in ak4396_dac_vol_put() 313 unsigned short vol, unsigned short master) in wm_set_vol() 317 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) in wm_set_vol() 320 nvol = (((vol & ~WM_VOL_MUTE) * (master & ~WM_VOL_MUTE)) / 128) in wm_set_vol() 330 unsigned short vol, unsigned short master) in wm8766_set_vol() 334 if ((master & WM_VOL_MUTE) || (vol in wm8766_set_vol() 312 wm_set_vol(struct snd_ice1712 *ice, unsigned int index, unsigned short vol, unsigned short master) wm_set_vol() argument 329 wm8766_set_vol(struct snd_ice1712 *ice, unsigned int index, unsigned short vol, unsigned short master) wm8766_set_vol() argument [all...] |
H A D | maya44.c | 161 const struct maya_vol_info *vol = &vol_info[idx]; in maya_vol_info() local 166 uinfo->value.integer.max = vol->maxval; in maya_vol_info() 192 const struct maya_vol_info *vol = &vol_info[idx]; in maya_vol_put() local 199 if (val > vol->maxval) in maya_vol_put() 200 val = vol->maxval; in maya_vol_put() 204 data = vol->mute; in maya_vol_put() 206 data = (val - 1) + vol->offset; in maya_vol_put() 207 data |= vol->update; in maya_vol_put() 208 changed |= wm8776_write_bits(chip->ice, wm, vol->regs[ch], in maya_vol_put() 209 vol in maya_vol_put() [all...] |
H A D | aureon.c | 53 unsigned short vol[8]; member 359 unsigned short vol; in aureon_ac97_vol_get() local 363 vol = aureon_ac97_read(ice, kcontrol->private_value & 0x7F); in aureon_ac97_vol_get() 364 ucontrol->value.integer.value[0] = 0x1F - (vol & 0x1F); in aureon_ac97_vol_get() 366 ucontrol->value.integer.value[1] = 0x1F - ((vol >> 8) & 0x1F); in aureon_ac97_vol_get() 682 static void wm_set_vol(struct snd_ice1712 *ice, unsigned int index, unsigned short vol, unsigned short master) in wm_set_vol() argument 686 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) { in wm_set_vol() 689 nvol = ((vol % WM_VOL_CNT) * (master % WM_VOL_CNT)) / in wm_set_vol() 761 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put() local 762 if (vol > WM_VOL_MA in wm_master_vol_put() 817 unsigned int vol = ucontrol->value.integer.value[i]; wm_vol_put() local 1032 unsigned short vol; wm_adc_vol_get() local [all...] |
/kernel/linux/linux-6.6/sound/pci/ice1712/ |
H A D | prodigy_hifi.c | 30 unsigned short vol[8]; member 259 ucontrol->value.integer.value[i] = spec->vol[i]; in ak4396_dac_vol_get() 273 if (ucontrol->value.integer.value[i] != spec->vol[i]) { in ak4396_dac_vol_put() 274 spec->vol[i] = ucontrol->value.integer.value[i]; in ak4396_dac_vol_put() 276 spec->vol[i] & 0xff); in ak4396_dac_vol_put() 313 unsigned short vol, unsigned short master) in wm_set_vol() 317 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) in wm_set_vol() 320 nvol = (((vol & ~WM_VOL_MUTE) * (master & ~WM_VOL_MUTE)) / 128) in wm_set_vol() 330 unsigned short vol, unsigned short master) in wm8766_set_vol() 334 if ((master & WM_VOL_MUTE) || (vol in wm8766_set_vol() 312 wm_set_vol(struct snd_ice1712 *ice, unsigned int index, unsigned short vol, unsigned short master) wm_set_vol() argument 329 wm8766_set_vol(struct snd_ice1712 *ice, unsigned int index, unsigned short vol, unsigned short master) wm8766_set_vol() argument [all...] |
H A D | maya44.c | 161 const struct maya_vol_info *vol = &vol_info[idx]; in maya_vol_info() local 166 uinfo->value.integer.max = vol->maxval; in maya_vol_info() 192 const struct maya_vol_info *vol = &vol_info[idx]; in maya_vol_put() local 199 if (val > vol->maxval) in maya_vol_put() 200 val = vol->maxval; in maya_vol_put() 204 data = vol->mute; in maya_vol_put() 206 data = (val - 1) + vol->offset; in maya_vol_put() 207 data |= vol->update; in maya_vol_put() 208 changed |= wm8776_write_bits(chip->ice, wm, vol->regs[ch], in maya_vol_put() 209 vol in maya_vol_put() [all...] |
H A D | aureon.c | 53 unsigned short vol[8]; member 359 unsigned short vol; in aureon_ac97_vol_get() local 363 vol = aureon_ac97_read(ice, kcontrol->private_value & 0x7F); in aureon_ac97_vol_get() 364 ucontrol->value.integer.value[0] = 0x1F - (vol & 0x1F); in aureon_ac97_vol_get() 366 ucontrol->value.integer.value[1] = 0x1F - ((vol >> 8) & 0x1F); in aureon_ac97_vol_get() 682 static void wm_set_vol(struct snd_ice1712 *ice, unsigned int index, unsigned short vol, unsigned short master) in wm_set_vol() argument 686 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) { in wm_set_vol() 689 nvol = ((vol % WM_VOL_CNT) * (master % WM_VOL_CNT)) / in wm_set_vol() 761 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put() local 762 if (vol > WM_VOL_MA in wm_master_vol_put() 817 unsigned int vol = ucontrol->value.integer.value[i]; wm_vol_put() local 1032 unsigned short vol; wm_adc_vol_get() local [all...] |
/kernel/linux/linux-5.10/fs/ntfs/ |
H A D | runlist.c | 709 * @vol: ntfs volume on which the attribute resides 735 runlist_element *ntfs_mapping_pairs_decompress(const ntfs_volume *vol, in ntfs_mapping_pairs_decompress() argument 753 ntfs_error(vol->sb, "Invalid arguments."); in ntfs_mapping_pairs_decompress() 765 ntfs_error(vol->sb, "Corrupt attribute."); in ntfs_mapping_pairs_decompress() 819 ntfs_error(vol->sb, "Missing length entry in mapping " in ntfs_mapping_pairs_decompress() 828 ntfs_error(vol->sb, "Invalid length in mapping pairs " in ntfs_mapping_pairs_decompress() 864 if (vol->major_ver < 3) { in ntfs_mapping_pairs_decompress() 866 ntfs_error(vol->sb, "lcn delta == -1"); in ntfs_mapping_pairs_decompress() 868 ntfs_error(vol->sb, "lcn == -1"); in ntfs_mapping_pairs_decompress() 873 ntfs_error(vol in ntfs_mapping_pairs_decompress() 1117 ntfs_get_size_for_mapping_pairs(const ntfs_volume *vol, const runlist_element *rl, const VCN first_vcn, const VCN last_vcn) ntfs_get_size_for_mapping_pairs() argument 1309 ntfs_mapping_pairs_build(const ntfs_volume *vol, s8 *dst, const int dst_len, const runlist_element *rl, const VCN first_vcn, const VCN last_vcn, VCN *const stop_vcn) ntfs_mapping_pairs_build() argument 1485 ntfs_rl_truncate_nolock(const ntfs_volume *vol, runlist *const runlist, const s64 new_length) ntfs_rl_truncate_nolock() argument 1630 ntfs_rl_punch_nolock(const ntfs_volume *vol, runlist *const runlist, const VCN start, const s64 length) ntfs_rl_punch_nolock() argument [all...] |
H A D | attrib.h | 64 extern int load_attribute_list(ntfs_volume *vol, runlist *rl, u8 *al_start, 81 extern int ntfs_attr_size_bounds_check(const ntfs_volume *vol, 83 extern int ntfs_attr_can_be_non_resident(const ntfs_volume *vol, 85 extern int ntfs_attr_can_be_resident(const ntfs_volume *vol,
|
H A D | mft.h | 65 extern int ntfs_sync_mft_mirror(ntfs_volume *vol, const unsigned long mft_no, 100 extern bool ntfs_may_write_mft_record(ntfs_volume *vol, 104 extern ntfs_inode *ntfs_mft_record_alloc(ntfs_volume *vol, const int mode,
|
H A D | index.c | 110 ntfs_volume *vol = idx_ni->vol; in ntfs_index_lookup() local 111 struct super_block *sb = vol->sb; in ntfs_index_lookup() 213 rc = ntfs_collate(vol, idx_ni->itype.index.collation_rule, key, in ntfs_index_lookup() 376 rc = ntfs_collate(vol, idx_ni->itype.index.collation_rule, key, in ntfs_index_lookup() 415 if (old_vcn << vol->cluster_size_bits >> in ntfs_index_lookup() 417 vol->cluster_size_bits >> in ntfs_index_lookup()
|
/kernel/linux/linux-6.6/fs/ntfs/ |
H A D | runlist.c | 709 * @vol: ntfs volume on which the attribute resides 735 runlist_element *ntfs_mapping_pairs_decompress(const ntfs_volume *vol, in ntfs_mapping_pairs_decompress() argument 753 ntfs_error(vol->sb, "Invalid arguments."); in ntfs_mapping_pairs_decompress() 765 ntfs_error(vol->sb, "Corrupt attribute."); in ntfs_mapping_pairs_decompress() 819 ntfs_error(vol->sb, "Missing length entry in mapping " in ntfs_mapping_pairs_decompress() 828 ntfs_error(vol->sb, "Invalid length in mapping pairs " in ntfs_mapping_pairs_decompress() 864 if (vol->major_ver < 3) { in ntfs_mapping_pairs_decompress() 866 ntfs_error(vol->sb, "lcn delta == -1"); in ntfs_mapping_pairs_decompress() 868 ntfs_error(vol->sb, "lcn == -1"); in ntfs_mapping_pairs_decompress() 873 ntfs_error(vol in ntfs_mapping_pairs_decompress() 1117 ntfs_get_size_for_mapping_pairs(const ntfs_volume *vol, const runlist_element *rl, const VCN first_vcn, const VCN last_vcn) ntfs_get_size_for_mapping_pairs() argument 1309 ntfs_mapping_pairs_build(const ntfs_volume *vol, s8 *dst, const int dst_len, const runlist_element *rl, const VCN first_vcn, const VCN last_vcn, VCN *const stop_vcn) ntfs_mapping_pairs_build() argument 1485 ntfs_rl_truncate_nolock(const ntfs_volume *vol, runlist *const runlist, const s64 new_length) ntfs_rl_truncate_nolock() argument 1630 ntfs_rl_punch_nolock(const ntfs_volume *vol, runlist *const runlist, const VCN start, const s64 length) ntfs_rl_punch_nolock() argument [all...] |
H A D | attrib.h | 64 extern int load_attribute_list(ntfs_volume *vol, runlist *rl, u8 *al_start, 81 extern int ntfs_attr_size_bounds_check(const ntfs_volume *vol, 83 extern int ntfs_attr_can_be_non_resident(const ntfs_volume *vol, 85 extern int ntfs_attr_can_be_resident(const ntfs_volume *vol,
|
H A D | mft.h | 65 extern int ntfs_sync_mft_mirror(ntfs_volume *vol, const unsigned long mft_no, 100 extern bool ntfs_may_write_mft_record(ntfs_volume *vol, 104 extern ntfs_inode *ntfs_mft_record_alloc(ntfs_volume *vol, const int mode,
|
/kernel/linux/linux-5.10/drivers/staging/vc04_services/bcm2835-audio/ |
H A D | bcm2835.h | 25 #define alsa2chip(vol) (uint)(-(((vol) << 8) / 100)) 28 #define chip2alsa(vol) -(((vol) * 100) >> 8)
|
/kernel/linux/linux-6.6/drivers/staging/vc04_services/bcm2835-audio/ |
H A D | bcm2835.h | 26 #define alsa2chip(vol) ((uint)(-(((vol) << 8) / 100))) 29 #define chip2alsa(vol) -(((vol) * 100) >> 8)
|
/kernel/linux/linux-5.10/fs/cifs/ |
H A D | fs_context.h | 27 int cifs_parse_smb_version(char *value, struct smb_vol *vol, bool is_smb3); 38 int cifs_parse_cache_flavor(char *value, struct smb_vol *vol); 56 int cifs_parse_security_flavors(char *value, struct smb_vol *vol);
|
/kernel/liteos_a/fs/fat/virpart/include/ |
H A D | virpartff.h | 42 FATFS* f_getfatfs(int vol);
49 FRESULT f_checkvirpart(FATFS *fs, const TCHAR *path, BYTE vol);
50 FRESULT f_makevirpart(FATFS *fs, const TCHAR *path, BYTE vol);
|
/kernel/linux/linux-5.10/drivers/media/i2c/ |
H A D | cs5345.c | 104 int vol = cs5345_read(sd, 0x08) & 0x3f; in cs5345_log_status() local 108 if (vol >= 32) in cs5345_log_status() 109 vol = vol - 64; in cs5345_log_status() 110 v4l2_info(sd, "Volume: %d dB\n", vol); in cs5345_log_status()
|
/kernel/linux/linux-5.10/sound/isa/gus/ |
H A D | gus_volume.c | 15 unsigned short snd_gf1_lvol_to_gvol_raw(unsigned int vol) in snd_gf1_lvol_to_gvol_raw() argument 19 if (vol > 65535) in snd_gf1_lvol_to_gvol_raw() 20 vol = 65535; in snd_gf1_lvol_to_gvol_raw() 21 tmp = vol; in snd_gf1_lvol_to_gvol_raw() 32 m = vol - (1 << e); in snd_gf1_lvol_to_gvol_raw()
|
/kernel/linux/linux-6.6/drivers/media/i2c/ |
H A D | cs5345.c | 104 int vol = cs5345_read(sd, 0x08) & 0x3f; in cs5345_log_status() local 108 if (vol >= 32) in cs5345_log_status() 109 vol = vol - 64; in cs5345_log_status() 110 v4l2_info(sd, "Volume: %d dB\n", vol); in cs5345_log_status()
|
/kernel/linux/linux-6.6/sound/isa/gus/ |
H A D | gus_volume.c | 15 unsigned short snd_gf1_lvol_to_gvol_raw(unsigned int vol) in snd_gf1_lvol_to_gvol_raw() argument 19 if (vol > 65535) in snd_gf1_lvol_to_gvol_raw() 20 vol = 65535; in snd_gf1_lvol_to_gvol_raw() 21 tmp = vol; in snd_gf1_lvol_to_gvol_raw() 32 m = vol - (1 << e); in snd_gf1_lvol_to_gvol_raw()
|
/kernel/linux/linux-5.10/drivers/power/supply/ |
H A D | sc27xx_fuel_gauge.c | 147 static int sc27xx_fgu_voltage_to_adc(struct sc27xx_fgu_data *data, int vol) in sc27xx_fgu_voltage_to_adc() argument 149 return DIV_ROUND_CLOSEST(vol * data->vol_1000mv_adc, 1000); in sc27xx_fgu_voltage_to_adc() 388 u32 vol; in sc27xx_fgu_get_vol_now() local 391 &vol); in sc27xx_fgu_get_vol_now() 399 *val = sc27xx_fgu_adc_to_voltage(data, vol); in sc27xx_fgu_get_vol_now() 456 int ret, vol; in sc27xx_fgu_get_vbat_vol() local 458 ret = regmap_read(data->regmap, data->base + SC27XX_FGU_VOLTAGE, &vol); in sc27xx_fgu_get_vbat_vol() 466 *val = sc27xx_fgu_adc_to_voltage(data, vol); in sc27xx_fgu_get_vbat_vol() 490 int vol, cur, ret, temp, resistance; in sc27xx_fgu_get_vbat_ocv() local 492 ret = sc27xx_fgu_get_vbat_vol(data, &vol); in sc27xx_fgu_get_vbat_ocv() 519 int ret, vol; sc27xx_fgu_get_charge_vol() local 536 int ret, vol; sc27xx_fgu_get_health() local [all...] |
/kernel/linux/linux-6.6/drivers/power/supply/ |
H A D | sc27xx_fuel_gauge.c | 147 static int sc27xx_fgu_voltage_to_adc(struct sc27xx_fgu_data *data, int vol) in sc27xx_fgu_voltage_to_adc() argument 149 return DIV_ROUND_CLOSEST(vol * data->vol_1000mv_adc, 1000); in sc27xx_fgu_voltage_to_adc() 388 u32 vol; in sc27xx_fgu_get_vol_now() local 391 &vol); in sc27xx_fgu_get_vol_now() 399 *val = sc27xx_fgu_adc_to_voltage(data, vol); in sc27xx_fgu_get_vol_now() 456 int ret, vol; in sc27xx_fgu_get_vbat_vol() local 458 ret = regmap_read(data->regmap, data->base + SC27XX_FGU_VOLTAGE, &vol); in sc27xx_fgu_get_vbat_vol() 466 *val = sc27xx_fgu_adc_to_voltage(data, vol); in sc27xx_fgu_get_vbat_vol() 490 int vol, cur, ret, temp, resistance; in sc27xx_fgu_get_vbat_ocv() local 492 ret = sc27xx_fgu_get_vbat_vol(data, &vol); in sc27xx_fgu_get_vbat_ocv() 519 int ret, vol; sc27xx_fgu_get_charge_vol() local 536 int ret, vol; sc27xx_fgu_get_health() local [all...] |
/kernel/linux/linux-5.10/drivers/media/radio/ |
H A D | radio-aztech.c | 109 static int aztech_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) in aztech_s_mute_volume() argument 114 vol = 0; in aztech_s_mute_volume() 115 az->curvol = (vol & 1) + ((vol & 2) << 1); in aztech_s_mute_volume()
|
/kernel/linux/linux-6.6/drivers/media/radio/ |
H A D | radio-aztech.c | 109 static int aztech_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) in aztech_s_mute_volume() argument 114 vol = 0; in aztech_s_mute_volume() 115 az->curvol = (vol & 1) + ((vol & 2) << 1); in aztech_s_mute_volume()
|