/linux-master/drivers/mtd/ubi/ |
H A D | upd.c | 36 * @vol: volume description object 38 * This function sets the update marker flag for volume @vol. Returns zero 41 static int set_update_marker(struct ubi_device *ubi, struct ubi_volume *vol) argument 46 dbg_gen("set update marker for volume %d", vol->vol_id); 48 if (vol->upd_marker) { 49 ubi_assert(ubi->vtbl[vol->vol_id].upd_marker); 54 vtbl_rec = ubi->vtbl[vol->vol_id]; 58 err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec); 59 vol->upd_marker = 1; 67 * @vol 74 clear_update_marker(struct ubi_device *ubi, struct ubi_volume *vol, long long bytes) argument 114 ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol, long long bytes) argument 168 ubi_start_leb_change(struct ubi_device *ubi, struct ubi_volume *vol, const struct ubi_leb_change_req *req) argument 219 write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, void *buf, int len, int used_ebs) argument 265 ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol, const void __user *buf, int count) argument 380 ubi_more_leb_change_data(struct ubi_device *ubi, struct ubi_volume *vol, const void __user *buf, int count) argument [all...] |
H A D | vmt.c | 58 struct ubi_volume *vol = container_of(dev, struct ubi_volume, dev); local 59 struct ubi_device *ubi = vol->ubi; 62 if (!ubi->volumes[vol->vol_id] || ubi->volumes[vol->vol_id]->is_dead) { 67 vol->ref_count += 1; 71 ret = sprintf(buf, "%d\n", vol->reserved_pebs); 75 if (vol->vol_type == UBI_DYNAMIC_VOLUME) 81 ret = sprintf(buf, "%s\n", vol->name); 83 ret = sprintf(buf, "%d\n", vol->corrupted); 85 ret = sprintf(buf, "%d\n", vol 120 struct ubi_volume *vol = container_of(dev, struct ubi_volume, dev); local 127 find_volume_fwnode(struct ubi_volume *vol) argument 166 struct ubi_volume *vol; local 361 struct ubi_volume *vol = desc->vol; local 446 struct ubi_volume *vol = desc->vol; local 594 struct ubi_volume *vol = re->desc->vol; local 618 ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol) argument 663 ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol) argument 683 const struct ubi_volume *vol; local [all...] |
H A D | kapi.c | 64 * @vol: volume description object 67 void ubi_do_get_volume_info(struct ubi_device *ubi, struct ubi_volume *vol, argument 70 vi->vol_id = vol->vol_id; 72 vi->size = vol->reserved_pebs; 73 vi->used_bytes = vol->used_bytes; 74 vi->vol_type = vol->vol_type; 75 vi->corrupted = vol->corrupted; 76 vi->upd_marker = vol->upd_marker; 77 vi->alignment = vol->alignment; 78 vi->usable_leb_size = vol 120 struct ubi_volume *vol; local 259 struct ubi_volume *vol = ubi->volumes[i]; local 348 struct ubi_volume *vol = desc->vol; local 392 struct ubi_volume *vol = desc->vol; local 446 struct ubi_volume *vol = desc->vol; local 486 struct ubi_volume *vol = desc->vol; local 537 struct ubi_volume *vol = desc->vol; local 582 struct ubi_volume *vol = desc->vol; local 622 struct ubi_volume *vol = desc->vol; local 683 struct ubi_volume *vol = desc->vol; local 719 struct ubi_volume *vol = desc->vol; local 758 struct ubi_volume *vol = desc->vol; local [all...] |
H A D | cdev.c | 47 struct ubi_volume *vol = desc->vol; local 49 spin_lock(&vol->ubi->volumes_lock); 50 users = vol->readers + vol->writers + vol->exclusive + vol->metaonly; 53 ubi_err(vol->ubi, "%d users for volume %d", users, vol->vol_id); 56 vol 73 struct ubi_volume *vol = desc->vol; local 120 struct ubi_volume *vol = desc->vol; local 146 struct ubi_volume *vol = desc->vol; local 175 struct ubi_volume *vol = desc->vol; local 252 struct ubi_volume *vol = desc->vol; local 328 struct ubi_volume *vol = desc->vol; local 383 struct ubi_volume *vol = desc->vol; local [all...] |
H A D | vtbl.c | 128 struct ubi_volume *vol = re->desc->vol; local 129 struct ubi_vtbl_record *vtbl_rec = &ubi->vtbl[vol->vol_id]; 526 struct ubi_volume *vol; local 534 vol = kzalloc(sizeof(struct ubi_volume), GFP_KERNEL); 535 if (!vol) 538 vol->reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs); 539 vol->alignment = be32_to_cpu(vtbl[i].alignment); 540 vol->data_pad = be32_to_cpu(vtbl[i].data_pad); 541 vol 674 check_av(const struct ubi_volume *vol, const struct ubi_ainf_volume *av) argument 723 struct ubi_volume *vol; local [all...] |
H A D | misc.c | 52 struct ubi_volume *vol = ubi->volumes[vol_id]; local 54 if (vol->vol_type != UBI_STATIC_VOLUME) 57 buf = vmalloc(vol->usable_leb_size); 61 for (i = 0; i < vol->used_ebs; i++) { 66 if (i == vol->used_ebs - 1) 67 size = vol->last_eb_bytes; 69 size = vol->usable_leb_size; 71 err = ubi_eba_read_leb(ubi, vol, i, buf, 0, size, 1);
|
H A D | eba.c | 96 * @vol: volume description object 104 void ubi_eba_get_ldesc(struct ubi_volume *vol, int lnum, argument 108 ldesc->pnum = vol->eba_tbl->entries[lnum].pnum; 114 * @vol: volume containing the EBA table to copy 120 struct ubi_eba_table *ubi_eba_create_table(struct ubi_volume *vol, argument 163 * ubi_eba_copy_table - copy the EBA table attached to vol into another table 164 * @vol: volume containing the EBA table to copy 168 * Copy the EBA table stored in vol into the one pointed by dst. 170 void ubi_eba_copy_table(struct ubi_volume *vol, struct ubi_eba_table *dst, argument 176 ubi_assert(dst && vol 191 ubi_eba_replace_table(struct ubi_volume *vol, struct ubi_eba_table *tbl) argument 432 ubi_eba_is_mapped(struct ubi_volume *vol, int lnum) argument 447 ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum) argument 494 check_mapping(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, int *pnum) argument 566 check_mapping(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, int *pnum) argument 592 ubi_eba_read_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, void *buf, int offset, int len, int check) argument 744 ubi_eba_read_leb_sg(struct ubi_device *ubi, struct ubi_volume *vol, struct ubi_sgl *sgl, int lnum, int offset, int len, int check) argument 803 try_recover_peb(struct ubi_volume *vol, int pnum, int lnum, const void *buf, int offset, int len, struct ubi_vid_io_buf *vidb, bool *retry) argument 903 struct ubi_volume *vol = ubi->volumes[idx]; local 941 try_write_vid_and_data(struct ubi_volume *vol, int lnum, struct ubi_vid_io_buf *vidb, const void *buf, int offset, int len) argument 1013 ubi_eba_write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, const void *buf, int offset, int len) argument 1116 ubi_eba_write_leb_st(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, const void *buf, int len, int used_ebs) argument 1194 ubi_eba_atomic_leb_change(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, const void *buf, int len) argument 1312 struct ubi_volume *vol; local 1533 struct ubi_volume *vol; local 1627 struct ubi_volume *vol; local [all...] |
H A D | ubi.h | 375 * @vol: reference to the corresponding volume description object 380 struct ubi_volume *vol; member in struct:ubi_volume_desc 447 * @vol->readers, @vol->writers, @vol->exclusive, 448 * @vol->metaonly, @vol->ref_count, @vol->mapping and 449 * @vol->eba_tbl. 848 int ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol); 869 ubi_leb_valid(struct ubi_volume *vol, int lnum) argument 975 ubi_fastmap_init_checkmap(struct ubi_volume *vol, int leb_count) argument 976 ubi_fastmap_destroy_checkmap(struct ubi_volume *vol) argument [all...] |
H A D | debug.c | 123 * @vol: UBI volume description object 125 void ubi_dump_vol_info(const struct ubi_volume *vol) argument 128 pr_err("\tvol_id %d\n", vol->vol_id); 129 pr_err("\treserved_pebs %d\n", vol->reserved_pebs); 130 pr_err("\talignment %d\n", vol->alignment); 131 pr_err("\tdata_pad %d\n", vol->data_pad); 132 pr_err("\tvol_type %d\n", vol->vol_type); 133 pr_err("\tname_len %d\n", vol->name_len); 134 pr_err("\tusable_leb_size %d\n", vol->usable_leb_size); 135 pr_err("\tused_ebs %d\n", vol [all...] |
/linux-master/drivers/gpu/drm/nouveau/include/nvif/ |
H A D | ifb00d.h | 22 __u8 vol; member in struct:gm200_vmm_map_v0
|
H A D | if900d.h | 16 __u8 vol; member in struct:gf100_vmm_map_v0
|
H A D | ifc00d.h | 22 __u8 vol; member in struct:gp100_vmm_map_v0
|
/linux-master/drivers/media/radio/ |
H A D | radio-typhoon.c | 111 static int typhoon_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) argument 116 vol = 0; 117 vol >>= 14; /* Map 16 bit to 2 bit */ 118 vol &= 3; 119 outb_p(vol / 2, isa->io); /* Set the volume, high bit. */ 120 outb_p(vol % 2, isa->io + 2); /* Set the volume, low bit. */ 122 if (vol == 0 && !ty->muted) { 126 if (vol && ty->muted) {
|
H A D | radio-terratec.c | 62 static int terratec_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) argument 67 vol = 0; 68 vol = vol + (vol * 32); /* change both channels */ 70 if (vol & (0x80 >> i))
|
H A D | radio-aimslab.c | 118 static int rtrack_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) argument 127 if (vol == 0) { /* volume = 0 means mute the card */ 130 } else if (curvol < vol) { 132 for (; curvol < vol; curvol++) 134 } else if (curvol > vol) { 136 for (; curvol > vol; curvol--) 140 rt->curvol = vol;
|
H A D | radio-aztech.c | 109 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);
|
/linux-master/sound/ppc/ |
H A D | awacs.c | 141 int vol[2]; local 144 vol[0] = (chip->awacs_reg[reg] >> lshift) & 0xf; 145 vol[1] = chip->awacs_reg[reg] & 0xf; 148 vol[0] = 0x0f - vol[0]; 149 vol[1] = 0x0f - vol[1]; 151 ucontrol->value.integer.value[0] = vol[0]; 152 ucontrol->value.integer.value[1] = vol[1]; 165 unsigned int vol[ local 297 awacs_amp_set_master(struct awacs_amp *amp, int vol) argument 348 int vol[2]; local 377 int vol[2]; local 796 int vol[2]; local 872 int err, vol; local [all...] |
H A D | daca.c | 141 unsigned int vol[2]; local 147 vol[0] = ucontrol->value.integer.value[0]; 148 vol[1] = ucontrol->value.integer.value[1]; 149 if (vol[0] > DACA_VOL_MAX || vol[1] > DACA_VOL_MAX) 151 change = mix->left_vol != vol[0] || 152 mix->right_vol != vol[1]; 154 mix->left_vol = vol[0]; 155 mix->right_vol = vol[1];
|
H A D | tumbler.c | 268 unsigned int vol[2]; local 271 vol[0] = ucontrol->value.integer.value[0]; 272 vol[1] = ucontrol->value.integer.value[1]; 273 if (vol[0] >= ARRAY_SIZE(master_volume_table) || 274 vol[1] >= ARRAY_SIZE(master_volume_table)) 276 change = mix->master_vol[0] != vol[0] || 277 mix->master_vol[1] != vol[1]; 279 mix->master_vol[0] = vol[0]; 280 mix->master_vol[1] = vol[1]; 492 unsigned int vol; local 544 unsigned int vol; local 629 int i, j, vol; local 692 unsigned int vol[2]; local [all...] |
/linux-master/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)
|
/linux-master/sound/pci/ice1712/ |
H A D | se.c | 25 } vol[8]; member in struct:se_spec 450 uc->value.integer.value[0] = spec->vol[n].ch1; 451 uc->value.integer.value[1] = spec->vol[n].ch2; 461 uc->value.integer.value[0] = spec->vol[n].ch1; 471 uc->value.enumerated.item[0] = spec->vol[n].ch1; 482 spec->vol[n].ch1, 483 spec->vol[n].ch2); 488 spec->vol[n].ch1, 489 spec->vol[n].ch2); 494 spec->vol[ [all...] |
H A D | phase.c | 47 unsigned short vol[8]; member in struct:phase28_spec 164 [ICE_EEP2_I2S] = 0xf0, /* vol, 96k, 24bit */ 181 [ICE_EEP2_I2S] = 0xfc, /* vol, 96k, 24bit, 192k */ 266 unsigned short vol, unsigned short master) 270 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) 273 nvol = 127 - wm_vol[(((vol & ~WM_VOL_MUTE) * 349 unsigned int vol = ucontrol->value.integer.value[ch]; local 350 if (vol > WM_VOL_MAX) 352 vol |= spec->master[ch] & WM_VOL_MUTE; 353 if (vol ! 265 wm_set_vol(struct snd_ice1712 *ice, unsigned int index, unsigned short vol, unsigned short master) argument 502 unsigned int vol; local [all...] |
/linux-master/sound/isa/gus/ |
H A D | gus_volume.c | 15 unsigned short snd_gf1_lvol_to_gvol_raw(unsigned int vol) argument 19 if (vol > 65535) 20 vol = 65535; 21 tmp = vol; 32 m = vol - (1 << e);
|
/linux-master/sound/soc/codecs/ |
H A D | tas5805m.c | 166 int vol[2]; member in struct:tas5805m_priv 174 static void set_dsp_scale(struct regmap *rm, int offset, int vol) argument 177 uint32_t x = tas5805m_volume[vol]; 192 dev_dbg(&tas5805m->i2c->dev, "refresh: is_muted=%d, vol=%d/%d\n", 193 tas5805m->is_muted, tas5805m->vol[0], tas5805m->vol[1]); 203 set_dsp_scale(rm, 0x24, tas5805m->vol[0]); 204 set_dsp_scale(rm, 0x28, tas5805m->vol[1]); 235 ucontrol->value.integer.value[0] = tas5805m->vol[0]; 236 ucontrol->value.integer.value[1] = tas5805m->vol[ [all...] |
/linux-master/sound/sh/ |
H A D | aica.h | 52 uint32_t vol; /* Volume 0-255 */ member in struct:aica_channel
|