Home
last modified time | relevance | path

Searched refs:vol (Results 1 – 25 of 224) sorted by relevance

123456789

/linux/drivers/mtd/ubi/
A Dupd.c94 vol->last_eb_bytes = vol->usable_leb_size; in clear_update_marker()
120 ubi_assert(!vol->updating && !vol->changing_leb); in ubi_start_update()
171 ubi_assert(!vol->updating && !vol->changing_leb); in ubi_start_leb_change()
271 count, vol->upd_bytes, vol->upd_received); in ubi_more_update_data()
277 if (vol->upd_received + count > vol->upd_bytes) in ubi_more_update_data()
350 if (vol->upd_received == vol->upd_bytes) { in ubi_more_update_data()
386 count, vol->upd_bytes, vol->upd_received); in ubi_more_leb_change_data()
392 count = vol->upd_bytes - vol->upd_received; in ubi_more_leb_change_data()
400 if (vol->upd_received == vol->upd_bytes) { in ubi_more_leb_change_data()
403 memset(vol->upd_buf + vol->upd_bytes, 0xFF, in ubi_more_leb_change_data()
[all …]
A Dvmt.c249 memcpy(vol->name, req->name, vol->name_len); in ubi_create_volume()
270 vol->used_ebs = vol->reserved_pebs; in ubi_create_volume()
271 vol->last_eb_bytes = vol->usable_leb_size; in ubi_create_volume()
332 cdev_device_del(&vol->cdev, &vol->dev); in ubi_create_volume()
361 struct ubi_volume *vol = desc->vol; in ubi_remove_volume() local
409 cdev_device_del(&vol->cdev, &vol->dev); in ubi_remove_volume()
446 struct ubi_volume *vol = desc->vol; in ubi_resize_volume() local
594 struct ubi_volume *vol = re->desc->vol; in ubi_rename_volumes() local
700 if (vol->reserved_pebs < 0 || vol->alignment < 0 || vol->data_pad < 0 || in self_check_volume()
728 if (vol->upd_marker && vol->corrupted) { in self_check_volume()
[all …]
A Dkapi.c155 if (!vol || vol->is_dead) in ubi_open_volume()
173 if (vol->exclusive || vol->writers || vol->readers || in ubi_open_volume()
180 if (vol->metaonly || vol->exclusive) in ubi_open_volume()
189 desc->vol = vol; in ubi_open_volume()
261 if (vol && len == vol->name_len && !strcmp(name, vol->name)) { in ubi_open_volume_nm()
348 struct ubi_volume *vol = desc->vol; in ubi_close_volume() local
392 struct ubi_volume *vol = desc->vol; in leb_read_sanity_check() local
446 struct ubi_volume *vol = desc->vol; in ubi_leb_read() local
486 struct ubi_volume *vol = desc->vol; in ubi_leb_read_sg() local
537 struct ubi_volume *vol = desc->vol; in ubi_leb_write() local
[all …]
A Dcdev.c47 struct ubi_volume *vol = desc->vol; in get_exclusive() local
50 users = vol->readers + vol->writers + vol->exclusive + vol->metaonly; in get_exclusive()
56 vol->readers = vol->writers = vol->metaonly = 0; in get_exclusive()
73 struct ubi_volume *vol = desc->vol; in revoke_exclusive() local
76 ubi_assert(vol->readers == 0 && vol->writers == 0 && vol->metaonly == 0); in revoke_exclusive()
120 struct ubi_volume *vol = desc->vol; in vol_cdev_release() local
133 vol->upd_received, vol->upd_bytes, vol->ubi->ubi_num, in vol_cdev_release()
146 struct ubi_volume *vol = desc->vol; in vol_cdev_llseek() local
175 struct ubi_volume *vol = desc->vol; in vol_cdev_read() local
252 struct ubi_volume *vol = desc->vol; in vol_cdev_direct_write() local
[all …]
A Dvtbl.c128 struct ubi_volume *vol = re->desc->vol; in ubi_vtbl_rename_volumes() local
535 if (!vol) in init_volumes()
546 memcpy(vol->name, vtbl[i].name, vol->name_len); in init_volumes()
547 vol->name[vol->name_len] = '\0'; in init_volumes()
586 vol->used_ebs = vol->reserved_pebs; in init_volumes()
587 vol->last_eb_bytes = vol->usable_leb_size; in init_volumes()
589 (long long)vol->used_ebs * vol->usable_leb_size; in init_volumes()
627 if (!vol) in init_volumes()
636 vol->used_ebs = vol->reserved_pebs; in init_volumes()
637 vol->last_eb_bytes = vol->reserved_pebs; in init_volumes()
[all …]
A Deba.c176 ubi_assert(dst && vol && vol->eba_tbl); in ubi_eba_copy_table()
178 src = vol->eba_tbl; in ubi_eba_copy_table()
194 vol->eba_tbl = tbl; in ubi_eba_replace_table()
504 if (!vol->checkmap || test_bit(lnum, vol->checkmap)) in check_mapping()
1312 struct ubi_volume *vol; in ubi_eba_copy_leb() local
1339 if (!vol) { in ubi_eba_copy_leb()
1533 struct ubi_volume *vol; in self_check_eba() local
1550 vol = ubi->volumes[i]; in self_check_eba()
1551 if (!vol) in self_check_eba()
1645 if (!vol) in ubi_eba_init()
[all …]
A Dubi.h380 struct ubi_volume *vol; member
848 int ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol);
849 void ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol);
852 int ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol,
869 static inline bool ubi_leb_valid(struct ubi_volume *vol, int lnum) in ubi_leb_valid() argument
871 return lnum >= 0 && lnum < vol->reserved_pebs; in ubi_leb_valid()
875 struct ubi_eba_table *ubi_eba_create_table(struct ubi_volume *vol,
881 void ubi_eba_get_ldesc(struct ubi_volume *vol, int lnum,
883 bool ubi_eba_is_mapped(struct ubi_volume *vol, int lnum);
884 int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol,
[all …]
A Ddebug.c128 pr_err("\tvol_id %d\n", vol->vol_id); in ubi_dump_vol_info()
130 pr_err("\talignment %d\n", vol->alignment); in ubi_dump_vol_info()
131 pr_err("\tdata_pad %d\n", vol->data_pad); in ubi_dump_vol_info()
132 pr_err("\tvol_type %d\n", vol->vol_type); in ubi_dump_vol_info()
133 pr_err("\tname_len %d\n", vol->name_len); in ubi_dump_vol_info()
135 pr_err("\tused_ebs %d\n", vol->used_ebs); in ubi_dump_vol_info()
142 if (vol->name_len <= UBI_VOL_NAME_MAX && in ubi_dump_vol_info()
143 strnlen(vol->name, vol->name_len + 1) == vol->name_len) { in ubi_dump_vol_info()
144 pr_err("\tname %s\n", vol->name); in ubi_dump_vol_info()
147 vol->name[0], vol->name[1], vol->name[2], in ubi_dump_vol_info()
[all …]
A Dmisc.c52 struct ubi_volume *vol = ubi->volumes[vol_id]; in ubi_check_volume() local
54 if (vol->vol_type != UBI_STATIC_VOLUME) in ubi_check_volume()
57 buf = vmalloc(vol->usable_leb_size); in ubi_check_volume()
61 for (i = 0; i < vol->used_ebs; i++) { in ubi_check_volume()
66 if (i == vol->used_ebs - 1) in ubi_check_volume()
67 size = vol->last_eb_bytes; in ubi_check_volume()
69 size = vol->usable_leb_size; in ubi_check_volume()
71 err = ubi_eba_read_leb(ubi, vol, i, buf, 0, size, 1); in ubi_check_volume()
/linux/sound/ppc/
A Dawacs.c141 int vol[2]; in snd_pmac_awacs_get_volume() local
148 vol[0] = 0x0f - vol[0]; in snd_pmac_awacs_get_volume()
149 vol[1] = 0x0f - vol[1]; in snd_pmac_awacs_get_volume()
169 if (vol[0] > 0x0f || vol[1] > 0x0f) in snd_pmac_awacs_put_volume()
172 vol[0] = 0x0f - vol[0]; in snd_pmac_awacs_put_volume()
173 vol[1] = 0x0f - vol[1]; in snd_pmac_awacs_put_volume()
301 vol = 32 + (79 - vol); in awacs_amp_set_master()
303 vol = 32 - (vol - 79); in awacs_amp_set_master()
348 int vol[2]; in snd_pmac_awacs_put_volume_amp() local
377 int vol[2]; in snd_pmac_awacs_put_switch_amp() local
[all …]
A Dtumbler.c268 unsigned int vol[2]; in tumbler_put_master_volume() local
492 unsigned int vol; in tumbler_set_mono_volume() local
499 if (vol >= info->max) in tumbler_set_mono_volume()
500 vol = info->max - 1; in tumbler_set_mono_volume()
501 vol = info->table[vol]; in tumbler_set_mono_volume()
544 unsigned int vol; in tumbler_put_mono() local
551 if (vol >= info->max) in tumbler_put_mono()
629 int i, j, vol; in snapper_set_mix_vol1() local
639 vol = mix->mix_vol[i][ch]; in snapper_set_mix_vol1()
640 vol = mixer_volume_table[vol]; in snapper_set_mix_vol1()
[all …]
A Ddaca.c141 unsigned int vol[2]; in daca_put_volume() local
147 vol[0] = ucontrol->value.integer.value[0]; in daca_put_volume()
148 vol[1] = ucontrol->value.integer.value[1]; in daca_put_volume()
149 if (vol[0] > DACA_VOL_MAX || vol[1] > DACA_VOL_MAX) in daca_put_volume()
151 change = mix->left_vol != vol[0] || in daca_put_volume()
152 mix->right_vol != vol[1]; in daca_put_volume()
154 mix->left_vol = vol[0]; in daca_put_volume()
155 mix->right_vol = vol[1]; in daca_put_volume()
/linux/sound/pci/ice1712/
A Dse.c25 } vol[8]; member
482 spec->vol[n].ch1, in se200pci_cont_update()
483 spec->vol[n].ch2); in se200pci_cont_update()
488 spec->vol[n].ch1, in se200pci_cont_update()
489 spec->vol[n].ch2); in se200pci_cont_update()
494 spec->vol[n].ch1, in se200pci_cont_update()
495 spec->vol[n].ch2); in se200pci_cont_update()
529 spec->vol[n].ch1 = vol1; in se200pci_cont_volume_put()
533 spec->vol[n].ch2 = vol2; in se200pci_cont_volume_put()
552 spec->vol[n].ch1 = vol1; in se200pci_cont_boolean_put()
[all …]
A Dphase.c47 unsigned short vol[8]; member
350 if (vol > WM_VOL_MAX) in wm_master_vol_put()
355 spec->master[ch] = vol; in wm_master_vol_put()
358 spec->vol[dac + ch], in wm_master_vol_put()
502 unsigned int vol; in wm_vol_put() local
504 if (vol > 0x7f) in wm_vol_put()
506 vol |= spec->vol[ofs+i] & WM_VOL_MUTE; in wm_vol_put()
507 if (vol != spec->vol[ofs+i]) { in wm_vol_put()
508 spec->vol[ofs+i] = vol; in wm_vol_put()
562 spec->vol[ofs + i] |= in wm_mute_put()
[all …]
A Dprodigy_hifi.c30 unsigned short vol[8]; member
276 spec->vol[i] & 0xff); in ak4396_dac_vol_put()
330 unsigned short vol, unsigned short master) in wm8766_set_vol() argument
369 spec->vol[2 + i] & ~WM_VOL_MUTE; in wm_dac_vol_get()
383 spec->vol[2 + i] &= WM_VOL_MUTE; in wm_dac_vol_put()
435 spec->vol[ofs + i] &= WM_VOL_MUTE; in wm8766_vol_put()
438 spec->vol[ofs + i], spec->master[i]); in wm8766_vol_put()
484 spec->vol[2 + ch], spec->master[ch]); in wm_master_vol_put()
487 spec->vol[0 + ch], spec->master[ch]); in wm_master_vol_put()
490 spec->vol[4 + ch], spec->master[ch]); in wm_master_vol_put()
[all …]
A Dmaya44.c161 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()
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()
209 vol->mask | vol->update, data); in maya_vol_put()
210 if (vol->mux_bits[ch]) in maya_vol_put()
212 vol->mux_bits[ch], in maya_vol_put()
[all …]
A Daureon.c53 unsigned short vol[8]; member
359 unsigned short vol; in aureon_ac97_vol_get() local
762 if (vol > WM_VOL_MAX) in wm_master_vol_put()
763 vol = WM_VOL_MAX; in wm_master_vol_put()
818 if (vol > WM_VOL_MAX) in wm_vol_put()
819 vol = WM_VOL_MAX; in wm_vol_put()
820 vol |= spec->vol[ofs+i] & WM_VOL_MUTE; in wm_vol_put()
821 if (vol != spec->vol[ofs+i]) { in wm_vol_put()
822 spec->vol[ofs+i] = vol; in wm_vol_put()
874 spec->vol[ofs + i] |= in wm_mute_put()
[all …]
/linux/drivers/media/radio/
A Dradio-typhoon.c111 static int typhoon_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) in typhoon_s_mute_volume() argument
116 vol = 0; in typhoon_s_mute_volume()
117 vol >>= 14; /* Map 16 bit to 2 bit */ in typhoon_s_mute_volume()
118 vol &= 3; in typhoon_s_mute_volume()
119 outb_p(vol / 2, isa->io); /* Set the volume, high bit. */ in typhoon_s_mute_volume()
120 outb_p(vol % 2, isa->io + 2); /* Set the volume, low bit. */ in typhoon_s_mute_volume()
122 if (vol == 0 && !ty->muted) { in typhoon_s_mute_volume()
126 if (vol && ty->muted) { in typhoon_s_mute_volume()
A Dradio-terratec.c62 static int terratec_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) in terratec_s_mute_volume() argument
67 vol = 0; in terratec_s_mute_volume()
68 vol = vol + (vol * 32); /* change both channels */ in terratec_s_mute_volume()
70 if (vol & (0x80 >> i)) in terratec_s_mute_volume()
A Dradio-aimslab.c118 static int rtrack_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) in rtrack_s_mute_volume() argument
127 if (vol == 0) { /* volume = 0 means mute the card */ in rtrack_s_mute_volume()
130 } else if (curvol < vol) { in rtrack_s_mute_volume()
132 for (; curvol < vol; curvol++) in rtrack_s_mute_volume()
134 } else if (curvol > vol) { in rtrack_s_mute_volume()
136 for (; curvol > vol; curvol--) in rtrack_s_mute_volume()
140 rt->curvol = vol; in rtrack_s_mute_volume()
/linux/sound/soc/codecs/
A Dtas5805m.c166 int vol[2]; member
177 uint32_t x = tas5805m_volume[vol]; in set_dsp_scale()
193 tas5805m->is_muted, tas5805m->vol[0], tas5805m->vol[1]); in tas5805m_refresh()
203 set_dsp_scale(rm, 0x24, tas5805m->vol[0]); in tas5805m_refresh()
204 set_dsp_scale(rm, 0x28, tas5805m->vol[1]); in tas5805m_refresh()
235 ucontrol->value.integer.value[0] = tas5805m->vol[0]; in tas5805m_vol_get()
236 ucontrol->value.integer.value[1] = tas5805m->vol[1]; in tas5805m_vol_get()
263 tas5805m->vol[0] = ucontrol->value.integer.value[0]; in tas5805m_vol_put()
266 tas5805m->vol[0], tas5805m->vol[1], in tas5805m_vol_put()
541 tas5805m->vol[0] = TAS5805M_VOLUME_MIN; in tas5805m_i2c_probe()
[all …]
/linux/drivers/staging/vc04_services/bcm2835-audio/
A Dbcm2835.h26 #define alsa2chip(vol) ((uint)(-(((vol) << 8) / 100))) argument
29 #define chip2alsa(vol) -(((vol) * 100) >> 8) argument
/linux/sound/synth/emux/
A Demux_synth.c742 int vol; in calc_volume() local
754 vol = vol * vp->reg.amplitude / 127; in calc_volume()
756 LIMITVALUE(vol, 0, 127); in calc_volume()
759 vol = snd_sf_vol_table[vol]; in calc_volume()
766 vol = (vol * 8) / 3; in calc_volume()
767 vol += vp->reg.attenuation; in calc_volume()
768 vol += ((0x100 - vol) * expressiontab[expression_vol])/128; in calc_volume()
774 vol += port->volume_atten; in calc_volume()
783 LIMITVALUE(vol, 0, 255); in calc_volume()
784 if (vp->avol == vol) in calc_volume()
[all …]
/linux/Documentation/devicetree/bindings/regulator/
A Danatop-regulator.yaml25 anatop-vol-bit-shift:
29 anatop-vol-bit-width:
68 - anatop-vol-bit-shift
69 - anatop-vol-bit-width
85 anatop-vol-bit-shift = <9>;
86 anatop-vol-bit-width = <5>;
/linux/sound/isa/gus/
A Dgus_volume.c15 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()

Completed in 83 milliseconds

123456789