Searched refs:vol (Results 1 - 25 of 51) sorted by relevance

123

/drivers/mtd/ubi/
H A Dupd.c49 * @vol: volume description object
51 * This function sets the update marker flag for volume @vol. Returns zero
54 static int set_update_marker(struct ubi_device *ubi, struct ubi_volume *vol) argument
59 dbg_gen("set update marker for volume %d", vol->vol_id);
61 if (vol->upd_marker) {
62 ubi_assert(ubi->vtbl[vol->vol_id].upd_marker);
67 vtbl_rec = ubi->vtbl[vol->vol_id];
71 err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec);
72 vol->upd_marker = 1;
80 * @vol
87 clear_update_marker(struct ubi_device *ubi, struct ubi_volume *vol, long long bytes) argument
127 ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol, long long bytes) argument
179 ubi_start_leb_change(struct ubi_device *ubi, struct ubi_volume *vol, const struct ubi_leb_change_req *req) argument
230 write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, void *buf, int len, int used_ebs) argument
276 ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol, const void __user *buf, int count) argument
391 ubi_more_leb_change_data(struct ubi_device *ubi, struct ubi_volume *vol, const void __user *buf, int count) argument
[all...]
H A Dkapi.c77 * @vol: volume description object
80 void ubi_do_get_volume_info(struct ubi_device *ubi, struct ubi_volume *vol, argument
83 vi->vol_id = vol->vol_id;
85 vi->size = vol->reserved_pebs;
86 vi->used_bytes = vol->used_bytes;
87 vi->vol_type = vol->vol_type;
88 vi->corrupted = vol->corrupted;
89 vi->upd_marker = vol->upd_marker;
90 vi->alignment = vol->alignment;
91 vi->usable_leb_size = vol
132 struct ubi_volume *vol; local
264 struct ubi_volume *vol = ubi->volumes[i]; local
330 struct ubi_volume *vol = desc->vol; local
387 struct ubi_volume *vol = desc->vol; local
450 struct ubi_volume *vol = desc->vol; local
495 struct ubi_volume *vol = desc->vol; local
535 struct ubi_volume *vol = desc->vol; local
596 struct ubi_volume *vol = desc->vol; local
632 struct ubi_volume *vol = desc->vol; local
671 struct ubi_volume *vol = desc->vol; local
[all...]
H A Dvmt.c71 struct ubi_volume *vol = container_of(dev, struct ubi_volume, dev); local
74 ubi = ubi_get_device(vol->ubi->ubi_num);
79 if (!ubi->volumes[vol->vol_id]) {
85 vol->ref_count += 1;
89 ret = sprintf(buf, "%d\n", vol->reserved_pebs);
93 if (vol->vol_type == UBI_DYNAMIC_VOLUME)
99 ret = sprintf(buf, "%s\n", vol->name);
101 ret = sprintf(buf, "%d\n", vol->corrupted);
103 ret = sprintf(buf, "%d\n", vol->alignment);
105 ret = sprintf(buf, "%d\n", vol
126 struct ubi_volume *vol = container_of(dev, struct ubi_volume, dev); local
144 volume_sysfs_init(struct ubi_device *ubi, struct ubi_volume *vol) argument
177 volume_sysfs_close(struct ubi_volume *vol) argument
204 struct ubi_volume *vol; local
405 struct ubi_volume *vol = desc->vol; local
477 struct ubi_volume *vol = desc->vol; local
609 struct ubi_volume *vol = re->desc->vol; local
633 ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol) argument
683 ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol) argument
703 const struct ubi_volume *vol; local
[all...]
H A Dcdev.c60 struct ubi_volume *vol = desc->vol; local
62 spin_lock(&vol->ubi->volumes_lock);
63 users = vol->readers + vol->writers + vol->exclusive;
66 ubi_err("%d users for volume %d", users, vol->vol_id);
69 vol->readers = vol->writers = 0;
70 vol
86 struct ubi_volume *vol = desc->vol; local
131 struct ubi_volume *vol = desc->vol; local
157 struct ubi_volume *vol = desc->vol; local
186 struct ubi_volume *vol = desc->vol; local
263 struct ubi_volume *vol = desc->vol; local
339 struct ubi_volume *vol = desc->vol; local
390 struct ubi_volume *vol = desc->vol; local
[all...]
H A Dvtbl.c131 struct ubi_volume *vol = re->desc->vol; local
132 struct ubi_vtbl_record *vtbl_rec = &ubi->vtbl[vol->vol_id];
538 struct ubi_volume *vol; local
546 vol = kzalloc(sizeof(struct ubi_volume), GFP_KERNEL);
547 if (!vol)
550 vol->reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs);
551 vol->alignment = be32_to_cpu(vtbl[i].alignment);
552 vol->data_pad = be32_to_cpu(vtbl[i].data_pad);
553 vol
669 check_av(const struct ubi_volume *vol, const struct ubi_ainf_volume *av) argument
718 struct ubi_volume *vol; local
[all...]
H A Dmisc.c65 struct ubi_volume *vol = ubi->volumes[vol_id]; local
67 if (vol->vol_type != UBI_STATIC_VOLUME)
70 buf = vmalloc(vol->usable_leb_size);
74 for (i = 0; i < vol->used_ebs; i++) {
77 if (i == vol->used_ebs - 1)
78 size = vol->last_eb_bytes;
80 size = vol->usable_leb_size;
82 err = ubi_eba_read_leb(ubi, vol, i, buf, 0, size, 1);
H A Deba.c317 * @vol: volume description object
324 int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol, argument
327 int err, pnum, vol_id = vol->vol_id;
336 pnum = vol->eba_tbl[lnum];
344 vol->eba_tbl[lnum] = UBI_LEB_UNMAPPED;
356 * @vol: volume description object
372 int ubi_eba_read_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, argument
375 int err, pnum, scrub = 0, vol_id = vol->vol_id;
383 pnum = vol->eba_tbl[lnum];
393 ubi_assert(vol
502 struct ubi_volume *vol = ubi->volumes[idx]; local
596 ubi_eba_write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, const void *buf, int offset, int len) argument
727 ubi_eba_write_leb_st(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, const void *buf, int len, int used_ebs) argument
842 ubi_eba_atomic_leb_change(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, const void *buf, int len) argument
992 struct ubi_volume *vol; local
1231 struct ubi_volume *vol; local
1323 struct ubi_volume *vol; local
[all...]
H A Ddebug.c105 * @vol: UBI volume description object
107 void ubi_dump_vol_info(const struct ubi_volume *vol) argument
110 pr_err("\tvol_id %d\n", vol->vol_id);
111 pr_err("\treserved_pebs %d\n", vol->reserved_pebs);
112 pr_err("\talignment %d\n", vol->alignment);
113 pr_err("\tdata_pad %d\n", vol->data_pad);
114 pr_err("\tvol_type %d\n", vol->vol_type);
115 pr_err("\tname_len %d\n", vol->name_len);
116 pr_err("\tusable_leb_size %d\n", vol->usable_leb_size);
117 pr_err("\tused_ebs %d\n", vol
[all...]
H A Dubi.h340 * @vol: reference to the corresponding volume description object
344 struct ubi_volume *vol; member in struct:ubi_volume_desc
391 * @vol->readers, @vol->writers, @vol->exclusive,
392 * @vol->ref_count, @vol->mapping and @vol->eba_tbl.
767 int ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol);
768 void ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol);
[all...]
H A Ddebug.h56 void ubi_dump_vol_info(const struct ubi_volume *vol);
/drivers/media/radio/
H A Dradio-typhoon.c110 static int typhoon_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) argument
115 vol = 0;
116 vol >>= 14; /* Map 16 bit to 2 bit */
117 vol &= 3;
118 outb_p(vol / 2, isa->io); /* Set the volume, high bit. */
119 outb_p(vol % 2, isa->io + 2); /* Set the volume, low bit. */
121 if (vol == 0 && !ty->muted) {
125 if (vol && ty->muted) {
H A Dradio-terratec.c61 static int terratec_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) argument
66 vol = 0;
67 vol = vol + (vol * 32); /* change both channels */
69 if (vol & (0x80 >> i))
H A Dradio-aimslab.c117 static int rtrack_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) argument
126 if (vol == 0) { /* volume = 0 means mute the card */
129 } else if (curvol < vol) {
131 for (; curvol < vol; curvol++)
133 } else if (curvol > vol) {
135 for (; curvol > vol; curvol--)
139 rt->curvol = vol;
H A Dradio-aztech.c109 static int aztech_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) argument
114 vol = 0;
115 az->curvol = (vol & 1) + ((vol & 2) << 1);
H A Dradio-zoltrix.c86 static int zoltrix_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) argument
90 zol->curvol = vol;
92 if (mute || vol == 0) {
99 outb(vol - 1, isa->io);
H A Dradio-rtrack2.c96 static int rtrack2_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) argument
H A Dradio-trust.c119 static int trust_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) argument
125 write_i2c(tr, 2, TDA7318_ADDR, vol ^ 0x1f);
/drivers/media/i2c/
H A Dcs5345.c117 int vol = cs5345_read(sd, 0x08) & 0x3f; local
121 if (vol >= 32)
122 vol = vol - 64;
123 v4l2_info(sd, "Volume: %d dB\n", vol);
H A Dwm8775.c60 struct v4l2_ctrl *vol; member in struct:wm8775_state
99 u16 volume = (u16)state->vol->val;
135 if (!v4l2_ctrl_g_ctrl(state->vol))
243 state->vol = v4l2_ctrl_new_std(&state->hdl, &wm8775_ctrl_ops,
/drivers/media/i2c/cx25840/
H A Dcx25840-audio.c483 int vol; local
486 vol = volume >> 9;
491 if (vol <= 23) {
492 vol = 0;
494 vol -= 23;
498 cx25840_write(client, 0x8d4, 228 - (vol * 2));
/drivers/media/pci/bt8xx/
H A Dbttv-audio-hook.c18 int bits_out, loops, vol, data; local
21 vol = 32 - ((volume>>11));
23 bits_out = (PT2254_DBS_IN_2>>(vol%5));
25 bits_out |= (PT2254_DBS_IN_10>>(vol/5));
/drivers/media/pci/cx18/
H A Dcx18-av-audio.c348 int vol = volume >> 9; local
352 if (vol <= 23)
353 vol = 0;
355 vol -= 23;
358 cx18_av_write(cx, 0x8d4, 228 - (vol * 2));
/drivers/media/pci/cx88/
H A Dcx88-alsa.c577 int vol = 0x3f - (cx_read(AUD_VOL_CTL) & 0x3f), local
580 value->value.integer.value[(bal & 0x40) ? 0 : 1] = vol;
581 vol -= (bal & 0x3f);
582 value->value.integer.value[(bal & 0x40) ? 1 : 0] = vol < 0 ? 0 : vol;
677 u32 vol; local
680 vol = cx_read(AUD_VOL_CTL);
681 if (value->value.integer.value[0] != !(vol & bit)) {
682 vol ^= bit;
683 cx_swrite(SHADOW_AUD_VOL_CTL, AUD_VOL_CTL, vol);
[all...]
/drivers/media/usb/tm6000/
H A Dtm6000-core.c781 static void tm6010_set_volume_sif(struct tm6000_core *dev, int vol) argument
785 vol_reg = vol & 0x0F;
787 if (vol < 0)
794 static void tm6010_set_volume_adc(struct tm6000_core *dev, int vol) argument
798 vol_reg = (vol + 0x10) & 0x1f;
809 void tm6000_set_volume(struct tm6000_core *dev, int vol) argument
815 vol += 8; /* Offset to 0 dB */
823 tm6010_set_volume_sif(dev, vol);
831 tm6010_set_volume_adc(dev, vol);
/drivers/staging/speakup/
H A Dspeakup_dummy.c59 __ATTR(vol, S_IWUSR|S_IRUGO, spk_var_show, spk_var_store);

Completed in 3615 milliseconds

123