vol               102 arch/arc/mm/cache.c 	} vol;
vol               134 arch/arc/mm/cache.c 		READ_BCR(AUX_VOL, vol);
vol               135 arch/arc/mm/cache.c 		perip_base = vol.start << 28;
vol               138 arch/arc/mm/cache.c 			perip_end = (vol.limit << 28) - 1;
vol              1351 arch/mips/include/asm/mipsregs.h #define ___read_32bit_c0_register(source, sel, vol)			\
vol              1354 arch/mips/include/asm/mipsregs.h 		__asm__ vol(						\
vol              1358 arch/mips/include/asm/mipsregs.h 		__asm__ vol(						\
vol              1367 arch/mips/include/asm/mipsregs.h #define ___read_64bit_c0_register(source, sel, vol)			\
vol              1370 arch/mips/include/asm/mipsregs.h 		__res = __read_64bit_c0_split(source, sel, vol);	\
vol              1372 arch/mips/include/asm/mipsregs.h 		__asm__ vol(						\
vol              1379 arch/mips/include/asm/mipsregs.h 		__asm__ vol(						\
vol              1475 arch/mips/include/asm/mipsregs.h #define __read_64bit_c0_split(source, sel, vol)				\
vol              1482 arch/mips/include/asm/mipsregs.h 		__asm__ vol(						\
vol              1491 arch/mips/include/asm/mipsregs.h 		__asm__ vol(						\
vol                22 block/partitions/ibm.c 	struct vtoc_volume_label_cdl vol;
vol               114 block/partitions/ibm.c 				strncpy(type, label->vol.vollbl, 4);
vol               115 block/partitions/ibm.c 				strncpy(name, label->vol.volid, 6);
vol               155 block/partitions/ibm.c 	blk = cchhb2blk(&label->vol.vtoc, geo) + 1;
vol              2804 drivers/base/regmap/regmap.c 	bool vol = regmap_volatile_range(map, reg, val_count);
vol              2811 drivers/base/regmap/regmap.c 	if (map->bus && map->format.parse_inplace && (vol || map->cache_type == REGCACHE_NONE)) {
vol               426 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c 		ptable->entries[i].vol         = pclk_dependency_table->Vol;
vol              1085 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c 			clocks->data[clocks->num_levels].voltage_in_mv = pclk_vol_table->entries[i].vol;
vol               189 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.h 	uint32_t vol;
vol               571 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c 	uint32_t vol;
vol               581 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c 		ret = atomctrl_get_voltage_evv_on_sclk_ai(hwmgr, voltage_type, sclk, id, &vol);
vol               582 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c 		*voltage = (uint16_t)(vol/100);
vol               277 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c 	uint32_t clock, uint32_t *vol)
vol               286 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c 			*vol = allowed_clock_voltage_table->entries[i].v;
vol               291 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c 	*vol = allowed_clock_voltage_table->entries[i - 1].v;
vol               508 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c 	uint32_t clock, uint32_t *vol)
vol               519 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c 			*vol = allowed_clock_voltage_table->entries[i].v;
vol               525 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c 	*vol = allowed_clock_voltage_table->entries[i - 1].v;
vol                16 drivers/gpu/drm/nouveau/include/nvif/if900d.h 	__u8  vol;
vol                22 drivers/gpu/drm/nouveau/include/nvif/ifb00d.h 	__u8  vol;
vol                22 drivers/gpu/drm/nouveau/include/nvif/ifc00d.h 	__u8  vol;
vol                63 drivers/gpu/drm/nouveau/nouveau_mem.c 			args.gf100.vol = 0;
vol                65 drivers/gpu/drm/nouveau/nouveau_mem.c 			args.gf100.vol = 1;
vol               250 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c 	u8  kind, priv, ro, vol;
vol               258 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c 		vol  = !!args->v0.vol;
vol               264 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c 		vol  = target == NVKM_MEM_TARGET_HOST;
vol               316 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c 	map->type |= (u64) vol << 32;
vol               323 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c 	u8  kind, priv, ro, vol;
vol               331 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c 		vol  = !!args->v0.vol;
vol               337 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c 		vol  = target == NVKM_MEM_TARGET_HOST;
vol               383 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c 	map->type |= (u64) vol << 3;
vol               532 drivers/isdn/hardware/mISDN/w6692.c 	u16 *vol = (u16 *)skb->data;
vol               540 drivers/isdn/hardware/mISDN/w6692.c 	if (*vol > 7)
vol               542 drivers/isdn/hardware/mISDN/w6692.c 	val = *vol & 7;
vol               104 drivers/media/i2c/cs5345.c 	int vol = cs5345_read(sd, 0x08) & 0x3f;
vol               108 drivers/media/i2c/cs5345.c 	if (vol >= 32)
vol               109 drivers/media/i2c/cs5345.c 		vol = vol - 64;
vol               110 drivers/media/i2c/cs5345.c 	v4l2_info(sd, "Volume: %d dB\n", vol);
vol               470 drivers/media/i2c/cx25840/cx25840-audio.c 	int vol;
vol               473 drivers/media/i2c/cx25840/cx25840-audio.c 	vol = volume >> 9;
vol               478 drivers/media/i2c/cx25840/cx25840-audio.c 	if (vol <= 23) {
vol               479 drivers/media/i2c/cx25840/cx25840-audio.c 		vol = 0;
vol               481 drivers/media/i2c/cx25840/cx25840-audio.c 		vol -= 23;
vol               485 drivers/media/i2c/cx25840/cx25840-audio.c 	cx25840_write(client, 0x8d4, 228 - (vol * 2));
vol                47 drivers/media/i2c/wm8775.c 	struct v4l2_ctrl *vol;
vol                86 drivers/media/i2c/wm8775.c 	u16 volume = (u16)state->vol->val;
vol               122 drivers/media/i2c/wm8775.c 	if (!v4l2_ctrl_g_ctrl(state->vol))
vol               223 drivers/media/i2c/wm8775.c 	state->vol = v4l2_ctrl_new_std(&state->hdl, &wm8775_ctrl_ops,
vol                18 drivers/media/pci/bt8xx/bttv-audio-hook.c 	int bits_out, loops, vol, data;
vol                21 drivers/media/pci/bt8xx/bttv-audio-hook.c 	vol = 32 - ((volume>>11));
vol                23 drivers/media/pci/bt8xx/bttv-audio-hook.c 	bits_out = (PT2254_DBS_IN_2>>(vol%5));
vol                25 drivers/media/pci/bt8xx/bttv-audio-hook.c 	bits_out |= (PT2254_DBS_IN_10>>(vol/5));
vol               334 drivers/media/pci/cx18/cx18-av-audio.c 	int vol = volume >> 9;
vol               338 drivers/media/pci/cx18/cx18-av-audio.c 	if (vol <= 23)
vol               339 drivers/media/pci/cx18/cx18-av-audio.c 		vol = 0;
vol               341 drivers/media/pci/cx18/cx18-av-audio.c 		vol -= 23;
vol               344 drivers/media/pci/cx18/cx18-av-audio.c 	cx18_av_write(cx, 0x8d4, 228 - (vol * 2));
vol               635 drivers/media/pci/cx88/cx88-alsa.c 	int vol = 0x3f - (cx_read(AUD_VOL_CTL) & 0x3f),
vol               638 drivers/media/pci/cx88/cx88-alsa.c 	value->value.integer.value[(bal & 0x40) ? 0 : 1] = vol;
vol               639 drivers/media/pci/cx88/cx88-alsa.c 	vol -= (bal & 0x3f);
vol               640 drivers/media/pci/cx88/cx88-alsa.c 	value->value.integer.value[(bal & 0x40) ? 1 : 0] = vol < 0 ? 0 : vol;
vol               735 drivers/media/pci/cx88/cx88-alsa.c 	u32 vol;
vol               738 drivers/media/pci/cx88/cx88-alsa.c 	vol = cx_read(AUD_VOL_CTL);
vol               739 drivers/media/pci/cx88/cx88-alsa.c 	if (value->value.integer.value[0] != !(vol & bit)) {
vol               740 drivers/media/pci/cx88/cx88-alsa.c 		vol ^= bit;
vol               741 drivers/media/pci/cx88/cx88-alsa.c 		cx_swrite(SHADOW_AUD_VOL_CTL, AUD_VOL_CTL, vol);
vol               745 drivers/media/pci/cx88/cx88-alsa.c 				      V4L2_CID_AUDIO_MUTE, 0 != (vol & bit));
vol               269 drivers/media/pci/ttpci/av7110_av.c 	unsigned int vol, val, balance = 0;
vol               297 drivers/media/pci/ttpci/av7110_av.c 		vol  = (volleft > volright) ? volleft : volright;
vol               298 drivers/media/pci/ttpci/av7110_av.c 		val	= (vol * 0x73 / 255) << 8;
vol               299 drivers/media/pci/ttpci/av7110_av.c 		if (vol > 0)
vol               300 drivers/media/pci/ttpci/av7110_av.c 		       balance = ((volright - volleft) * 127) / vol;
vol               307 drivers/media/pci/ttpci/av7110_av.c 		vol = (volleft > volright) ? volleft : volright;
vol               308 drivers/media/pci/ttpci/av7110_av.c 		val = (vol * 0x73 / 255) << 8;
vol               309 drivers/media/pci/ttpci/av7110_av.c 		if (vol > 0)
vol               310 drivers/media/pci/ttpci/av7110_av.c 			balance = ((volright - volleft) * 127) / vol;
vol               118 drivers/media/radio/radio-aimslab.c static int rtrack_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol)
vol               127 drivers/media/radio/radio-aimslab.c 	if (vol == 0) {			/* volume = 0 means mute the card */
vol               130 drivers/media/radio/radio-aimslab.c 	} else if (curvol < vol) {
vol               132 drivers/media/radio/radio-aimslab.c 		for (; curvol < vol; curvol++)
vol               134 drivers/media/radio/radio-aimslab.c 	} else if (curvol > vol) {
vol               136 drivers/media/radio/radio-aimslab.c 		for (; curvol > vol; curvol--)
vol               140 drivers/media/radio/radio-aimslab.c 	rt->curvol = vol;
vol               109 drivers/media/radio/radio-aztech.c static int aztech_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol)
vol               114 drivers/media/radio/radio-aztech.c 		vol = 0;
vol               115 drivers/media/radio/radio-aztech.c 	az->curvol = (vol & 1) + ((vol & 2) << 1);
vol               214 drivers/media/radio/radio-gemtek.c static int gemtek_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol)
vol                97 drivers/media/radio/radio-rtrack2.c static int rtrack2_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol)
vol                62 drivers/media/radio/radio-terratec.c static int terratec_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol)
vol                67 drivers/media/radio/radio-terratec.c 		vol = 0;
vol                68 drivers/media/radio/radio-terratec.c 	vol = vol + (vol * 32); /* change both channels */
vol                70 drivers/media/radio/radio-terratec.c 		if (vol & (0x80 >> i))
vol               119 drivers/media/radio/radio-trust.c static int trust_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol)
vol               125 drivers/media/radio/radio-trust.c 	write_i2c(tr, 2, TDA7318_ADDR, vol ^ 0x1f);
vol               111 drivers/media/radio/radio-typhoon.c static int typhoon_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol)
vol               116 drivers/media/radio/radio-typhoon.c 		vol = 0;
vol               117 drivers/media/radio/radio-typhoon.c 	vol >>= 14;			/* Map 16 bit to 2 bit */
vol               118 drivers/media/radio/radio-typhoon.c 	vol &= 3;
vol               119 drivers/media/radio/radio-typhoon.c 	outb_p(vol / 2, isa->io);	/* Set the volume, high bit. */
vol               120 drivers/media/radio/radio-typhoon.c 	outb_p(vol % 2, isa->io + 2);	/* Set the volume, low bit. */
vol               122 drivers/media/radio/radio-typhoon.c 	if (vol == 0 && !ty->muted) {
vol               126 drivers/media/radio/radio-typhoon.c 	if (vol && ty->muted) {
vol                87 drivers/media/radio/radio-zoltrix.c static int zoltrix_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol)
vol                91 drivers/media/radio/radio-zoltrix.c 	zol->curvol = vol;
vol                93 drivers/media/radio/radio-zoltrix.c 	if (mute || vol == 0) {
vol               100 drivers/media/radio/radio-zoltrix.c 	outb(vol - 1, isa->io);
vol               461 drivers/media/usb/em28xx/em28xx-core.c 		int vol;
vol               468 drivers/media/usb/em28xx/em28xx-core.c 		vol = (0x1f - dev->volume) | ((0x1f - dev->volume) << 8);
vol               472 drivers/media/usb/em28xx/em28xx-core.c 			vol |= 0x8000;
vol               478 drivers/media/usb/em28xx/em28xx-core.c 							vol);
vol               766 drivers/media/usb/tm6000/tm6000-core.c static void tm6010_set_volume_sif(struct tm6000_core *dev, int vol)
vol               770 drivers/media/usb/tm6000/tm6000-core.c 	vol_reg = vol & 0x0F;
vol               772 drivers/media/usb/tm6000/tm6000-core.c 	if (vol < 0)
vol               779 drivers/media/usb/tm6000/tm6000-core.c static void tm6010_set_volume_adc(struct tm6000_core *dev, int vol)
vol               783 drivers/media/usb/tm6000/tm6000-core.c 	vol_reg = (vol + 0x10) & 0x1f;
vol               794 drivers/media/usb/tm6000/tm6000-core.c void tm6000_set_volume(struct tm6000_core *dev, int vol)
vol               800 drivers/media/usb/tm6000/tm6000-core.c 		vol += 8; /* Offset to 0 dB */
vol               808 drivers/media/usb/tm6000/tm6000-core.c 			tm6010_set_volume_sif(dev, vol);
vol               815 drivers/media/usb/tm6000/tm6000-core.c 		tm6010_set_volume_adc(dev, vol);
vol               323 drivers/media/usb/tm6000/tm6000.h void tm6000_set_volume(struct tm6000_core *dev, int vol);
vol                20 drivers/mfd/wm8350-regmap.c 	u16 vol;		/* Mask of volatile bits */
vol               303 drivers/mfd/wm8350-regmap.c 	return wm8350_reg_io_map[reg].vol;
vol               154 drivers/mtd/ubi/build.c int ubi_volume_notify(struct ubi_device *ubi, struct ubi_volume *vol, int ntype)
vol               160 drivers/mtd/ubi/build.c 	ubi_do_get_volume_info(ubi, vol, &nt.vi);
vol               744 drivers/mtd/ubi/build.c 	struct ubi_volume *vol = ubi->volumes[vol_id];
vol               745 drivers/mtd/ubi/build.c 	int err, old_reserved_pebs = vol->reserved_pebs;
vol               772 drivers/mtd/ubi/build.c 		desc.vol = vol;
vol               784 drivers/mtd/ubi/build.c 		vol_id, vol->name, old_reserved_pebs, vol->reserved_pebs);
vol                47 drivers/mtd/ubi/cdev.c 	struct ubi_volume *vol = desc->vol;
vol                49 drivers/mtd/ubi/cdev.c 	spin_lock(&vol->ubi->volumes_lock);
vol                50 drivers/mtd/ubi/cdev.c 	users = vol->readers + vol->writers + vol->exclusive + vol->metaonly;
vol                53 drivers/mtd/ubi/cdev.c 		ubi_err(vol->ubi, "%d users for volume %d", users, vol->vol_id);
vol                56 drivers/mtd/ubi/cdev.c 		vol->readers = vol->writers = vol->metaonly = 0;
vol                57 drivers/mtd/ubi/cdev.c 		vol->exclusive = 1;
vol                61 drivers/mtd/ubi/cdev.c 	spin_unlock(&vol->ubi->volumes_lock);
vol                73 drivers/mtd/ubi/cdev.c 	struct ubi_volume *vol = desc->vol;
vol                75 drivers/mtd/ubi/cdev.c 	spin_lock(&vol->ubi->volumes_lock);
vol                76 drivers/mtd/ubi/cdev.c 	ubi_assert(vol->readers == 0 && vol->writers == 0 && vol->metaonly == 0);
vol                77 drivers/mtd/ubi/cdev.c 	ubi_assert(vol->exclusive == 1 && desc->mode == UBI_EXCLUSIVE);
vol                78 drivers/mtd/ubi/cdev.c 	vol->exclusive = 0;
vol                80 drivers/mtd/ubi/cdev.c 		vol->readers = 1;
vol                82 drivers/mtd/ubi/cdev.c 		vol->writers = 1;
vol                84 drivers/mtd/ubi/cdev.c 		vol->metaonly = 1;
vol                86 drivers/mtd/ubi/cdev.c 		vol->exclusive = 1;
vol                87 drivers/mtd/ubi/cdev.c 	spin_unlock(&vol->ubi->volumes_lock);
vol               120 drivers/mtd/ubi/cdev.c 	struct ubi_volume *vol = desc->vol;
vol               123 drivers/mtd/ubi/cdev.c 		vol->ubi->ubi_num, vol->vol_id, desc->mode);
vol               125 drivers/mtd/ubi/cdev.c 	if (vol->updating) {
vol               126 drivers/mtd/ubi/cdev.c 		ubi_warn(vol->ubi, "update of volume %d not finished, volume is damaged",
vol               127 drivers/mtd/ubi/cdev.c 			 vol->vol_id);
vol               128 drivers/mtd/ubi/cdev.c 		ubi_assert(!vol->changing_leb);
vol               129 drivers/mtd/ubi/cdev.c 		vol->updating = 0;
vol               130 drivers/mtd/ubi/cdev.c 		vfree(vol->upd_buf);
vol               131 drivers/mtd/ubi/cdev.c 	} else if (vol->changing_leb) {
vol               133 drivers/mtd/ubi/cdev.c 			vol->upd_received, vol->upd_bytes, vol->ubi->ubi_num,
vol               134 drivers/mtd/ubi/cdev.c 			vol->vol_id);
vol               135 drivers/mtd/ubi/cdev.c 		vol->changing_leb = 0;
vol               136 drivers/mtd/ubi/cdev.c 		vfree(vol->upd_buf);
vol               146 drivers/mtd/ubi/cdev.c 	struct ubi_volume *vol = desc->vol;
vol               148 drivers/mtd/ubi/cdev.c 	if (vol->updating) {
vol               150 drivers/mtd/ubi/cdev.c 		ubi_err(vol->ubi, "updating");
vol               154 drivers/mtd/ubi/cdev.c 	return fixed_size_llseek(file, offset, origin, vol->used_bytes);
vol               161 drivers/mtd/ubi/cdev.c 	struct ubi_device *ubi = desc->vol->ubi;
vol               175 drivers/mtd/ubi/cdev.c 	struct ubi_volume *vol = desc->vol;
vol               176 drivers/mtd/ubi/cdev.c 	struct ubi_device *ubi = vol->ubi;
vol               182 drivers/mtd/ubi/cdev.c 		count, *offp, vol->vol_id);
vol               184 drivers/mtd/ubi/cdev.c 	if (vol->updating) {
vol               185 drivers/mtd/ubi/cdev.c 		ubi_err(vol->ubi, "updating");
vol               188 drivers/mtd/ubi/cdev.c 	if (vol->upd_marker) {
vol               189 drivers/mtd/ubi/cdev.c 		ubi_err(vol->ubi, "damaged volume, update marker is set");
vol               192 drivers/mtd/ubi/cdev.c 	if (*offp == vol->used_bytes || count == 0)
vol               195 drivers/mtd/ubi/cdev.c 	if (vol->corrupted)
vol               196 drivers/mtd/ubi/cdev.c 		dbg_gen("read from corrupted volume %d", vol->vol_id);
vol               198 drivers/mtd/ubi/cdev.c 	if (*offp + count > vol->used_bytes)
vol               199 drivers/mtd/ubi/cdev.c 		count_save = count = vol->used_bytes - *offp;
vol               201 drivers/mtd/ubi/cdev.c 	tbuf_size = vol->usable_leb_size;
vol               209 drivers/mtd/ubi/cdev.c 	lnum = div_u64_rem(*offp, vol->usable_leb_size, &off);
vol               214 drivers/mtd/ubi/cdev.c 		if (off + len >= vol->usable_leb_size)
vol               215 drivers/mtd/ubi/cdev.c 			len = vol->usable_leb_size - off;
vol               217 drivers/mtd/ubi/cdev.c 		err = ubi_eba_read_leb(ubi, vol, lnum, tbuf, off, len, 0);
vol               222 drivers/mtd/ubi/cdev.c 		if (off == vol->usable_leb_size) {
vol               224 drivers/mtd/ubi/cdev.c 			off -= vol->usable_leb_size;
vol               252 drivers/mtd/ubi/cdev.c 	struct ubi_volume *vol = desc->vol;
vol               253 drivers/mtd/ubi/cdev.c 	struct ubi_device *ubi = vol->ubi;
vol               258 drivers/mtd/ubi/cdev.c 	if (!vol->direct_writes)
vol               262 drivers/mtd/ubi/cdev.c 		count, *offp, vol->vol_id);
vol               264 drivers/mtd/ubi/cdev.c 	if (vol->vol_type == UBI_STATIC_VOLUME)
vol               267 drivers/mtd/ubi/cdev.c 	lnum = div_u64_rem(*offp, vol->usable_leb_size, &off);
vol               273 drivers/mtd/ubi/cdev.c 	if (*offp + count > vol->used_bytes)
vol               274 drivers/mtd/ubi/cdev.c 		count_save = count = vol->used_bytes - *offp;
vol               282 drivers/mtd/ubi/cdev.c 	tbuf_size = vol->usable_leb_size;
vol               294 drivers/mtd/ubi/cdev.c 		if (off + len >= vol->usable_leb_size)
vol               295 drivers/mtd/ubi/cdev.c 			len = vol->usable_leb_size - off;
vol               303 drivers/mtd/ubi/cdev.c 		err = ubi_eba_write_leb(ubi, vol, lnum, tbuf, off, len);
vol               308 drivers/mtd/ubi/cdev.c 		if (off == vol->usable_leb_size) {
vol               310 drivers/mtd/ubi/cdev.c 			off -= vol->usable_leb_size;
vol               328 drivers/mtd/ubi/cdev.c 	struct ubi_volume *vol = desc->vol;
vol               329 drivers/mtd/ubi/cdev.c 	struct ubi_device *ubi = vol->ubi;
vol               331 drivers/mtd/ubi/cdev.c 	if (!vol->updating && !vol->changing_leb)
vol               334 drivers/mtd/ubi/cdev.c 	if (vol->updating)
vol               335 drivers/mtd/ubi/cdev.c 		err = ubi_more_update_data(ubi, vol, buf, count);
vol               337 drivers/mtd/ubi/cdev.c 		err = ubi_more_leb_change_data(ubi, vol, buf, count);
vol               352 drivers/mtd/ubi/cdev.c 		if (vol->changing_leb) {
vol               361 drivers/mtd/ubi/cdev.c 		err = ubi_check_volume(ubi, vol->vol_id);
vol               367 drivers/mtd/ubi/cdev.c 				 vol->vol_id, ubi->ubi_num);
vol               368 drivers/mtd/ubi/cdev.c 			vol->corrupted = 1;
vol               370 drivers/mtd/ubi/cdev.c 		vol->checked = 1;
vol               371 drivers/mtd/ubi/cdev.c 		ubi_volume_notify(ubi, vol, UBI_VOLUME_UPDATED);
vol               383 drivers/mtd/ubi/cdev.c 	struct ubi_volume *vol = desc->vol;
vol               384 drivers/mtd/ubi/cdev.c 	struct ubi_device *ubi = vol->ubi;
vol               409 drivers/mtd/ubi/cdev.c 		rsvd_bytes = (long long)vol->reserved_pebs *
vol               410 drivers/mtd/ubi/cdev.c 					vol->usable_leb_size;
vol               420 drivers/mtd/ubi/cdev.c 		err = ubi_start_update(ubi, vol, bytes);
vol               422 drivers/mtd/ubi/cdev.c 			ubi_volume_notify(ubi, vol, UBI_VOLUME_UPDATED);
vol               441 drivers/mtd/ubi/cdev.c 		    vol->vol_type == UBI_STATIC_VOLUME) {
vol               448 drivers/mtd/ubi/cdev.c 		if (!ubi_leb_valid(vol, req.lnum) ||
vol               449 drivers/mtd/ubi/cdev.c 		    req.bytes < 0 || req.bytes > vol->usable_leb_size)
vol               456 drivers/mtd/ubi/cdev.c 		err = ubi_start_leb_change(ubi, vol, &req);
vol               474 drivers/mtd/ubi/cdev.c 		    vol->vol_type == UBI_STATIC_VOLUME) {
vol               479 drivers/mtd/ubi/cdev.c 		if (!ubi_leb_valid(vol, lnum)) {
vol               484 drivers/mtd/ubi/cdev.c 		dbg_gen("erase LEB %d:%d", vol->vol_id, lnum);
vol               485 drivers/mtd/ubi/cdev.c 		err = ubi_eba_unmap_leb(ubi, vol, lnum);
vol               549 drivers/mtd/ubi/cdev.c 			desc->vol->direct_writes = !!req.value;
vol               746 drivers/mtd/ubi/cdev.c 		if (re->desc->vol->name_len == name_len &&
vol               747 drivers/mtd/ubi/cdev.c 		    !memcmp(re->desc->vol->name, name, name_len)) {
vol               757 drivers/mtd/ubi/cdev.c 			vol_id, re->desc->vol->name, name);
vol               775 drivers/mtd/ubi/cdev.c 			if (re->new_name_len == re1->desc->vol->name_len &&
vol               776 drivers/mtd/ubi/cdev.c 			    !memcmp(re->new_name, re1->desc->vol->name,
vol               777 drivers/mtd/ubi/cdev.c 				    re1->desc->vol->name_len)) {
vol               815 drivers/mtd/ubi/cdev.c 			re1->desc->vol->vol_id, re1->desc->vol->name);
vol               930 drivers/mtd/ubi/cdev.c 		pebs = div_u64(req.bytes + desc->vol->usable_leb_size - 1,
vol               931 drivers/mtd/ubi/cdev.c 			       desc->vol->usable_leb_size);
vol                95 drivers/mtd/ubi/debug.c void ubi_dump_vol_info(const struct ubi_volume *vol)
vol                98 drivers/mtd/ubi/debug.c 	pr_err("\tvol_id          %d\n", vol->vol_id);
vol                99 drivers/mtd/ubi/debug.c 	pr_err("\treserved_pebs   %d\n", vol->reserved_pebs);
vol               100 drivers/mtd/ubi/debug.c 	pr_err("\talignment       %d\n", vol->alignment);
vol               101 drivers/mtd/ubi/debug.c 	pr_err("\tdata_pad        %d\n", vol->data_pad);
vol               102 drivers/mtd/ubi/debug.c 	pr_err("\tvol_type        %d\n", vol->vol_type);
vol               103 drivers/mtd/ubi/debug.c 	pr_err("\tname_len        %d\n", vol->name_len);
vol               104 drivers/mtd/ubi/debug.c 	pr_err("\tusable_leb_size %d\n", vol->usable_leb_size);
vol               105 drivers/mtd/ubi/debug.c 	pr_err("\tused_ebs        %d\n", vol->used_ebs);
vol               106 drivers/mtd/ubi/debug.c 	pr_err("\tused_bytes      %lld\n", vol->used_bytes);
vol               107 drivers/mtd/ubi/debug.c 	pr_err("\tlast_eb_bytes   %d\n", vol->last_eb_bytes);
vol               108 drivers/mtd/ubi/debug.c 	pr_err("\tcorrupted       %d\n", vol->corrupted);
vol               109 drivers/mtd/ubi/debug.c 	pr_err("\tupd_marker      %d\n", vol->upd_marker);
vol               111 drivers/mtd/ubi/debug.c 	if (vol->name_len <= UBI_VOL_NAME_MAX &&
vol               112 drivers/mtd/ubi/debug.c 	    strnlen(vol->name, vol->name_len + 1) == vol->name_len) {
vol               113 drivers/mtd/ubi/debug.c 		pr_err("\tname            %s\n", vol->name);
vol               116 drivers/mtd/ubi/debug.c 		       vol->name[0], vol->name[1], vol->name[2],
vol               117 drivers/mtd/ubi/debug.c 		       vol->name[3], vol->name[4]);
vol                43 drivers/mtd/ubi/debug.h void ubi_dump_vol_info(const struct ubi_volume *vol);
vol               107 drivers/mtd/ubi/eba.c void ubi_eba_get_ldesc(struct ubi_volume *vol, int lnum,
vol               111 drivers/mtd/ubi/eba.c 	ldesc->pnum = vol->eba_tbl->entries[lnum].pnum;
vol               123 drivers/mtd/ubi/eba.c struct ubi_eba_table *ubi_eba_create_table(struct ubi_volume *vol,
vol               174 drivers/mtd/ubi/eba.c void ubi_eba_copy_table(struct ubi_volume *vol, struct ubi_eba_table *dst,
vol               180 drivers/mtd/ubi/eba.c 	ubi_assert(dst && vol && vol->eba_tbl);
vol               182 drivers/mtd/ubi/eba.c 	src = vol->eba_tbl;
vol               195 drivers/mtd/ubi/eba.c void ubi_eba_replace_table(struct ubi_volume *vol, struct ubi_eba_table *tbl)
vol               197 drivers/mtd/ubi/eba.c 	ubi_eba_destroy_table(vol->eba_tbl);
vol               198 drivers/mtd/ubi/eba.c 	vol->eba_tbl = tbl;
vol               436 drivers/mtd/ubi/eba.c bool ubi_eba_is_mapped(struct ubi_volume *vol, int lnum)
vol               438 drivers/mtd/ubi/eba.c 	return vol->eba_tbl->entries[lnum].pnum >= 0;
vol               451 drivers/mtd/ubi/eba.c int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol,
vol               454 drivers/mtd/ubi/eba.c 	int err, pnum, vol_id = vol->vol_id;
vol               463 drivers/mtd/ubi/eba.c 	pnum = vol->eba_tbl->entries[lnum].pnum;
vol               471 drivers/mtd/ubi/eba.c 	vol->eba_tbl->entries[lnum].pnum = UBI_LEB_UNMAPPED;
vol               498 drivers/mtd/ubi/eba.c static int check_mapping(struct ubi_device *ubi, struct ubi_volume *vol, int lnum,
vol               508 drivers/mtd/ubi/eba.c 	if (!vol->checkmap || test_bit(lnum, vol->checkmap))
vol               533 drivers/mtd/ubi/eba.c 		vol->eba_tbl->entries[lnum].pnum = UBI_LEB_UNMAPPED;
vol               535 drivers/mtd/ubi/eba.c 		ubi_wl_put_peb(ubi, vol->vol_id, lnum, *pnum, torture);
vol               552 drivers/mtd/ubi/eba.c 		if (found_lnum != lnum || found_vol_id != vol->vol_id) {
vol               554 drivers/mtd/ubi/eba.c 				*pnum, found_vol_id, found_lnum, vol->vol_id, lnum);
vol               561 drivers/mtd/ubi/eba.c 	set_bit(lnum, vol->checkmap);
vol               570 drivers/mtd/ubi/eba.c static int check_mapping(struct ubi_device *ubi, struct ubi_volume *vol, int lnum,
vol               596 drivers/mtd/ubi/eba.c int ubi_eba_read_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum,
vol               599 drivers/mtd/ubi/eba.c 	int err, pnum, scrub = 0, vol_id = vol->vol_id;
vol               608 drivers/mtd/ubi/eba.c 	pnum = vol->eba_tbl->entries[lnum].pnum;
vol               610 drivers/mtd/ubi/eba.c 		err = check_mapping(ubi, vol, lnum, &pnum);
vol               624 drivers/mtd/ubi/eba.c 		ubi_assert(vol->vol_type != UBI_STATIC_VOLUME);
vol               632 drivers/mtd/ubi/eba.c 	if (vol->vol_type == UBI_DYNAMIC_VOLUME)
vol               699 drivers/mtd/ubi/eba.c 			if (vol->vol_type == UBI_DYNAMIC_VOLUME)
vol               748 drivers/mtd/ubi/eba.c int ubi_eba_read_leb_sg(struct ubi_device *ubi, struct ubi_volume *vol,
vol               764 drivers/mtd/ubi/eba.c 		ret = ubi_eba_read_leb(ubi, vol, lnum,
vol               807 drivers/mtd/ubi/eba.c static int try_recover_peb(struct ubi_volume *vol, int pnum, int lnum,
vol               811 drivers/mtd/ubi/eba.c 	struct ubi_device *ubi = vol->ubi;
vol               813 drivers/mtd/ubi/eba.c 	int new_pnum, err, vol_id = vol->vol_id, data_size;
vol               867 drivers/mtd/ubi/eba.c 		vol->eba_tbl->entries[lnum].pnum = new_pnum;
vol               907 drivers/mtd/ubi/eba.c 	struct ubi_volume *vol = ubi->volumes[idx];
vol               917 drivers/mtd/ubi/eba.c 		err = try_recover_peb(vol, pnum, lnum, buf, offset, len, vidb,
vol               945 drivers/mtd/ubi/eba.c static int try_write_vid_and_data(struct ubi_volume *vol, int lnum,
vol               949 drivers/mtd/ubi/eba.c 	struct ubi_device *ubi = vol->ubi;
vol               950 drivers/mtd/ubi/eba.c 	int pnum, opnum, err, vol_id = vol->vol_id;
vol               958 drivers/mtd/ubi/eba.c 	opnum = vol->eba_tbl->entries[lnum].pnum;
vol               980 drivers/mtd/ubi/eba.c 	vol->eba_tbl->entries[lnum].pnum = pnum;
vol              1008 drivers/mtd/ubi/eba.c int ubi_eba_write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum,
vol              1011 drivers/mtd/ubi/eba.c 	int err, pnum, tries, vol_id = vol->vol_id;
vol              1022 drivers/mtd/ubi/eba.c 	pnum = vol->eba_tbl->entries[lnum].pnum;
vol              1024 drivers/mtd/ubi/eba.c 		err = check_mapping(ubi, vol, lnum, &pnum);
vol              1061 drivers/mtd/ubi/eba.c 	vid_hdr->data_pad = cpu_to_be32(vol->data_pad);
vol              1064 drivers/mtd/ubi/eba.c 		err = try_write_vid_and_data(vol, lnum, vidb, buf, offset, len);
vol              1111 drivers/mtd/ubi/eba.c int ubi_eba_write_leb_st(struct ubi_device *ubi, struct ubi_volume *vol,
vol              1114 drivers/mtd/ubi/eba.c 	int err, tries, data_size = len, vol_id = vol->vol_id;
vol              1142 drivers/mtd/ubi/eba.c 	vid_hdr->data_pad = cpu_to_be32(vol->data_pad);
vol              1150 drivers/mtd/ubi/eba.c 	ubi_assert(vol->eba_tbl->entries[lnum].pnum < 0);
vol              1153 drivers/mtd/ubi/eba.c 		err = try_write_vid_and_data(vol, lnum, vidb, buf, 0, len);
vol              1189 drivers/mtd/ubi/eba.c int ubi_eba_atomic_leb_change(struct ubi_device *ubi, struct ubi_volume *vol,
vol              1192 drivers/mtd/ubi/eba.c 	int err, tries, vol_id = vol->vol_id;
vol              1205 drivers/mtd/ubi/eba.c 		err = ubi_eba_unmap_leb(ubi, vol, lnum);
vol              1208 drivers/mtd/ubi/eba.c 		return ubi_eba_write_leb(ubi, vol, lnum, NULL, 0, 0);
vol              1226 drivers/mtd/ubi/eba.c 	vid_hdr->data_pad = cpu_to_be32(vol->data_pad);
vol              1237 drivers/mtd/ubi/eba.c 		err = try_write_vid_and_data(vol, lnum, vidb, buf, 0, len);
vol              1307 drivers/mtd/ubi/eba.c 	struct ubi_volume *vol;
vol              1332 drivers/mtd/ubi/eba.c 	vol = ubi->volumes[idx];
vol              1334 drivers/mtd/ubi/eba.c 	if (!vol) {
vol              1366 drivers/mtd/ubi/eba.c 	if (vol->eba_tbl->entries[lnum].pnum != from) {
vol              1368 drivers/mtd/ubi/eba.c 		       vol_id, lnum, from, vol->eba_tbl->entries[lnum].pnum);
vol              1453 drivers/mtd/ubi/eba.c 	ubi_assert(vol->eba_tbl->entries[lnum].pnum == from);
vol              1454 drivers/mtd/ubi/eba.c 	vol->eba_tbl->entries[lnum].pnum = to;
vol              1520 drivers/mtd/ubi/eba.c 	struct ubi_volume *vol;
vol              1537 drivers/mtd/ubi/eba.c 		vol = ubi->volumes[i];
vol              1538 drivers/mtd/ubi/eba.c 		if (!vol)
vol              1541 drivers/mtd/ubi/eba.c 		scan_eba[i] = kmalloc_array(vol->reserved_pebs,
vol              1549 drivers/mtd/ubi/eba.c 		fm_eba[i] = kmalloc_array(vol->reserved_pebs,
vol              1557 drivers/mtd/ubi/eba.c 		for (j = 0; j < vol->reserved_pebs; j++)
vol              1574 drivers/mtd/ubi/eba.c 		for (j = 0; j < vol->reserved_pebs; j++) {
vol              1581 drivers/mtd/ubi/eba.c 					vol->vol_id, j, fm_eba[i][j],
vol              1614 drivers/mtd/ubi/eba.c 	struct ubi_volume *vol;
vol              1630 drivers/mtd/ubi/eba.c 		vol = ubi->volumes[i];
vol              1631 drivers/mtd/ubi/eba.c 		if (!vol)
vol              1636 drivers/mtd/ubi/eba.c 		tbl = ubi_eba_create_table(vol, vol->reserved_pebs);
vol              1642 drivers/mtd/ubi/eba.c 		ubi_eba_replace_table(vol, tbl);
vol              1649 drivers/mtd/ubi/eba.c 			if (aeb->lnum >= vol->reserved_pebs) {
vol              1658 drivers/mtd/ubi/eba.c 				entry = &vol->eba_tbl->entries[aeb->lnum];
vol              1094 drivers/mtd/ubi/fastmap.c int ubi_fastmap_init_checkmap(struct ubi_volume *vol, int leb_count)
vol              1096 drivers/mtd/ubi/fastmap.c 	struct ubi_device *ubi = vol->ubi;
vol              1101 drivers/mtd/ubi/fastmap.c 	vol->checkmap = kcalloc(BITS_TO_LONGS(leb_count), sizeof(unsigned long),
vol              1103 drivers/mtd/ubi/fastmap.c 	if (!vol->checkmap)
vol              1109 drivers/mtd/ubi/fastmap.c void ubi_fastmap_destroy_checkmap(struct ubi_volume *vol)
vol              1111 drivers/mtd/ubi/fastmap.c 	kfree(vol->checkmap);
vol              1133 drivers/mtd/ubi/fastmap.c 	struct ubi_volume *vol;
vol              1283 drivers/mtd/ubi/fastmap.c 		vol = ubi->volumes[i];
vol              1285 drivers/mtd/ubi/fastmap.c 		if (!vol)
vol              1295 drivers/mtd/ubi/fastmap.c 		fvh->vol_id = cpu_to_be32(vol->vol_id);
vol              1296 drivers/mtd/ubi/fastmap.c 		fvh->vol_type = vol->vol_type;
vol              1297 drivers/mtd/ubi/fastmap.c 		fvh->used_ebs = cpu_to_be32(vol->used_ebs);
vol              1298 drivers/mtd/ubi/fastmap.c 		fvh->data_pad = cpu_to_be32(vol->data_pad);
vol              1299 drivers/mtd/ubi/fastmap.c 		fvh->last_eb_bytes = cpu_to_be32(vol->last_eb_bytes);
vol              1301 drivers/mtd/ubi/fastmap.c 		ubi_assert(vol->vol_type == UBI_DYNAMIC_VOLUME ||
vol              1302 drivers/mtd/ubi/fastmap.c 			vol->vol_type == UBI_STATIC_VOLUME);
vol              1305 drivers/mtd/ubi/fastmap.c 		fm_pos += sizeof(*feba) + (sizeof(__be32) * vol->reserved_pebs);
vol              1308 drivers/mtd/ubi/fastmap.c 		for (j = 0; j < vol->reserved_pebs; j++) {
vol              1311 drivers/mtd/ubi/fastmap.c 			ubi_eba_get_ldesc(vol, j, &ldesc);
vol                67 drivers/mtd/ubi/kapi.c void ubi_do_get_volume_info(struct ubi_device *ubi, struct ubi_volume *vol,
vol                70 drivers/mtd/ubi/kapi.c 	vi->vol_id = vol->vol_id;
vol                72 drivers/mtd/ubi/kapi.c 	vi->size = vol->reserved_pebs;
vol                73 drivers/mtd/ubi/kapi.c 	vi->used_bytes = vol->used_bytes;
vol                74 drivers/mtd/ubi/kapi.c 	vi->vol_type = vol->vol_type;
vol                75 drivers/mtd/ubi/kapi.c 	vi->corrupted = vol->corrupted;
vol                76 drivers/mtd/ubi/kapi.c 	vi->upd_marker = vol->upd_marker;
vol                77 drivers/mtd/ubi/kapi.c 	vi->alignment = vol->alignment;
vol                78 drivers/mtd/ubi/kapi.c 	vi->usable_leb_size = vol->usable_leb_size;
vol                79 drivers/mtd/ubi/kapi.c 	vi->name_len = vol->name_len;
vol                80 drivers/mtd/ubi/kapi.c 	vi->name = vol->name;
vol                81 drivers/mtd/ubi/kapi.c 	vi->cdev = vol->cdev.dev;
vol                92 drivers/mtd/ubi/kapi.c 	ubi_do_get_volume_info(desc->vol->ubi, desc->vol, vi);
vol               119 drivers/mtd/ubi/kapi.c 	struct ubi_volume *vol;
vol               153 drivers/mtd/ubi/kapi.c 	vol = ubi->volumes[vol_id];
vol               154 drivers/mtd/ubi/kapi.c 	if (!vol)
vol               160 drivers/mtd/ubi/kapi.c 		if (vol->exclusive)
vol               162 drivers/mtd/ubi/kapi.c 		vol->readers += 1;
vol               166 drivers/mtd/ubi/kapi.c 		if (vol->exclusive || vol->writers > 0)
vol               168 drivers/mtd/ubi/kapi.c 		vol->writers += 1;
vol               172 drivers/mtd/ubi/kapi.c 		if (vol->exclusive || vol->writers || vol->readers ||
vol               173 drivers/mtd/ubi/kapi.c 		    vol->metaonly)
vol               175 drivers/mtd/ubi/kapi.c 		vol->exclusive = 1;
vol               179 drivers/mtd/ubi/kapi.c 		if (vol->metaonly || vol->exclusive)
vol               181 drivers/mtd/ubi/kapi.c 		vol->metaonly = 1;
vol               184 drivers/mtd/ubi/kapi.c 	get_device(&vol->dev);
vol               185 drivers/mtd/ubi/kapi.c 	vol->ref_count += 1;
vol               188 drivers/mtd/ubi/kapi.c 	desc->vol = vol;
vol               192 drivers/mtd/ubi/kapi.c 	if (!vol->checked && !vol->skip_check) {
vol               203 drivers/mtd/ubi/kapi.c 			vol->corrupted = 1;
vol               205 drivers/mtd/ubi/kapi.c 		vol->checked = 1;
vol               258 drivers/mtd/ubi/kapi.c 		struct ubi_volume *vol = ubi->volumes[i];
vol               260 drivers/mtd/ubi/kapi.c 		if (vol && len == vol->name_len && !strcmp(name, vol->name)) {
vol               327 drivers/mtd/ubi/kapi.c 	struct ubi_volume *vol = desc->vol;
vol               328 drivers/mtd/ubi/kapi.c 	struct ubi_device *ubi = vol->ubi;
vol               331 drivers/mtd/ubi/kapi.c 		ubi->ubi_num, vol->vol_id, desc->mode);
vol               336 drivers/mtd/ubi/kapi.c 		vol->readers -= 1;
vol               339 drivers/mtd/ubi/kapi.c 		vol->writers -= 1;
vol               342 drivers/mtd/ubi/kapi.c 		vol->exclusive = 0;
vol               345 drivers/mtd/ubi/kapi.c 		vol->metaonly = 0;
vol               348 drivers/mtd/ubi/kapi.c 	vol->ref_count -= 1;
vol               352 drivers/mtd/ubi/kapi.c 	put_device(&vol->dev);
vol               371 drivers/mtd/ubi/kapi.c 	struct ubi_volume *vol = desc->vol;
vol               372 drivers/mtd/ubi/kapi.c 	struct ubi_device *ubi = vol->ubi;
vol               373 drivers/mtd/ubi/kapi.c 	int vol_id = vol->vol_id;
vol               376 drivers/mtd/ubi/kapi.c 	    lnum >= vol->used_ebs || offset < 0 || len < 0 ||
vol               377 drivers/mtd/ubi/kapi.c 	    offset + len > vol->usable_leb_size)
vol               380 drivers/mtd/ubi/kapi.c 	if (vol->vol_type == UBI_STATIC_VOLUME) {
vol               381 drivers/mtd/ubi/kapi.c 		if (vol->used_ebs == 0)
vol               384 drivers/mtd/ubi/kapi.c 		if (lnum == vol->used_ebs - 1 &&
vol               385 drivers/mtd/ubi/kapi.c 		    offset + len > vol->last_eb_bytes)
vol               389 drivers/mtd/ubi/kapi.c 	if (vol->upd_marker)
vol               425 drivers/mtd/ubi/kapi.c 	struct ubi_volume *vol = desc->vol;
vol               426 drivers/mtd/ubi/kapi.c 	struct ubi_device *ubi = vol->ubi;
vol               427 drivers/mtd/ubi/kapi.c 	int err, vol_id = vol->vol_id;
vol               438 drivers/mtd/ubi/kapi.c 	err = ubi_eba_read_leb(ubi, vol, lnum, buf, offset, len, check);
vol               439 drivers/mtd/ubi/kapi.c 	if (err && mtd_is_eccerr(err) && vol->vol_type == UBI_STATIC_VOLUME) {
vol               441 drivers/mtd/ubi/kapi.c 		vol->corrupted = 1;
vol               465 drivers/mtd/ubi/kapi.c 	struct ubi_volume *vol = desc->vol;
vol               466 drivers/mtd/ubi/kapi.c 	struct ubi_device *ubi = vol->ubi;
vol               467 drivers/mtd/ubi/kapi.c 	int err, vol_id = vol->vol_id;
vol               478 drivers/mtd/ubi/kapi.c 	err = ubi_eba_read_leb_sg(ubi, vol, sgl, lnum, offset, len, check);
vol               479 drivers/mtd/ubi/kapi.c 	if (err && mtd_is_eccerr(err) && vol->vol_type == UBI_STATIC_VOLUME) {
vol               481 drivers/mtd/ubi/kapi.c 		vol->corrupted = 1;
vol               516 drivers/mtd/ubi/kapi.c 	struct ubi_volume *vol = desc->vol;
vol               517 drivers/mtd/ubi/kapi.c 	struct ubi_device *ubi = vol->ubi;
vol               518 drivers/mtd/ubi/kapi.c 	int vol_id = vol->vol_id;
vol               525 drivers/mtd/ubi/kapi.c 	if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME)
vol               528 drivers/mtd/ubi/kapi.c 	if (!ubi_leb_valid(vol, lnum) || offset < 0 || len < 0 ||
vol               529 drivers/mtd/ubi/kapi.c 	    offset + len > vol->usable_leb_size ||
vol               533 drivers/mtd/ubi/kapi.c 	if (vol->upd_marker)
vol               539 drivers/mtd/ubi/kapi.c 	return ubi_eba_write_leb(ubi, vol, lnum, buf, offset, len);
vol               561 drivers/mtd/ubi/kapi.c 	struct ubi_volume *vol = desc->vol;
vol               562 drivers/mtd/ubi/kapi.c 	struct ubi_device *ubi = vol->ubi;
vol               563 drivers/mtd/ubi/kapi.c 	int vol_id = vol->vol_id;
vol               570 drivers/mtd/ubi/kapi.c 	if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME)
vol               573 drivers/mtd/ubi/kapi.c 	if (!ubi_leb_valid(vol, lnum) || len < 0 ||
vol               574 drivers/mtd/ubi/kapi.c 	    len > vol->usable_leb_size || len & (ubi->min_io_size - 1))
vol               577 drivers/mtd/ubi/kapi.c 	if (vol->upd_marker)
vol               583 drivers/mtd/ubi/kapi.c 	return ubi_eba_atomic_leb_change(ubi, vol, lnum, buf, len);
vol               601 drivers/mtd/ubi/kapi.c 	struct ubi_volume *vol = desc->vol;
vol               602 drivers/mtd/ubi/kapi.c 	struct ubi_device *ubi = vol->ubi;
vol               605 drivers/mtd/ubi/kapi.c 	dbg_gen("erase LEB %d:%d", vol->vol_id, lnum);
vol               607 drivers/mtd/ubi/kapi.c 	if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME)
vol               610 drivers/mtd/ubi/kapi.c 	if (!ubi_leb_valid(vol, lnum))
vol               613 drivers/mtd/ubi/kapi.c 	if (vol->upd_marker)
vol               616 drivers/mtd/ubi/kapi.c 	err = ubi_eba_unmap_leb(ubi, vol, lnum);
vol               620 drivers/mtd/ubi/kapi.c 	return ubi_wl_flush(ubi, vol->vol_id, lnum);
vol               662 drivers/mtd/ubi/kapi.c 	struct ubi_volume *vol = desc->vol;
vol               663 drivers/mtd/ubi/kapi.c 	struct ubi_device *ubi = vol->ubi;
vol               665 drivers/mtd/ubi/kapi.c 	dbg_gen("unmap LEB %d:%d", vol->vol_id, lnum);
vol               667 drivers/mtd/ubi/kapi.c 	if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME)
vol               670 drivers/mtd/ubi/kapi.c 	if (!ubi_leb_valid(vol, lnum))
vol               673 drivers/mtd/ubi/kapi.c 	if (vol->upd_marker)
vol               676 drivers/mtd/ubi/kapi.c 	return ubi_eba_unmap_leb(ubi, vol, lnum);
vol               698 drivers/mtd/ubi/kapi.c 	struct ubi_volume *vol = desc->vol;
vol               699 drivers/mtd/ubi/kapi.c 	struct ubi_device *ubi = vol->ubi;
vol               701 drivers/mtd/ubi/kapi.c 	dbg_gen("map LEB %d:%d", vol->vol_id, lnum);
vol               703 drivers/mtd/ubi/kapi.c 	if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME)
vol               706 drivers/mtd/ubi/kapi.c 	if (!ubi_leb_valid(vol, lnum))
vol               709 drivers/mtd/ubi/kapi.c 	if (vol->upd_marker)
vol               712 drivers/mtd/ubi/kapi.c 	if (ubi_eba_is_mapped(vol, lnum))
vol               715 drivers/mtd/ubi/kapi.c 	return ubi_eba_write_leb(ubi, vol, lnum, NULL, 0, 0);
vol               737 drivers/mtd/ubi/kapi.c 	struct ubi_volume *vol = desc->vol;
vol               739 drivers/mtd/ubi/kapi.c 	dbg_gen("test LEB %d:%d", vol->vol_id, lnum);
vol               741 drivers/mtd/ubi/kapi.c 	if (!ubi_leb_valid(vol, lnum))
vol               744 drivers/mtd/ubi/kapi.c 	if (vol->upd_marker)
vol               747 drivers/mtd/ubi/kapi.c 	return ubi_eba_is_mapped(vol, lnum);
vol                52 drivers/mtd/ubi/misc.c 	struct ubi_volume *vol = ubi->volumes[vol_id];
vol                54 drivers/mtd/ubi/misc.c 	if (vol->vol_type != UBI_STATIC_VOLUME)
vol                57 drivers/mtd/ubi/misc.c 	buf = vmalloc(vol->usable_leb_size);
vol                61 drivers/mtd/ubi/misc.c 	for (i = 0; i < vol->used_ebs; i++) {
vol                66 drivers/mtd/ubi/misc.c 		if (i == vol->used_ebs - 1)
vol                67 drivers/mtd/ubi/misc.c 			size = vol->last_eb_bytes;
vol                69 drivers/mtd/ubi/misc.c 			size = vol->usable_leb_size;
vol                71 drivers/mtd/ubi/misc.c 		err = ubi_eba_read_leb(ubi, vol, i, buf, 0, size, 1);
vol               387 drivers/mtd/ubi/ubi.h 	struct ubi_volume *vol;
vol               848 drivers/mtd/ubi/ubi.h int ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol);
vol               849 drivers/mtd/ubi/ubi.h void ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol);
vol               852 drivers/mtd/ubi/ubi.h int ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol,
vol               854 drivers/mtd/ubi/ubi.h int ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol,
vol               856 drivers/mtd/ubi/ubi.h int ubi_start_leb_change(struct ubi_device *ubi, struct ubi_volume *vol,
vol               858 drivers/mtd/ubi/ubi.h int ubi_more_leb_change_data(struct ubi_device *ubi, struct ubi_volume *vol,
vol               869 drivers/mtd/ubi/ubi.h static inline bool ubi_leb_valid(struct ubi_volume *vol, int lnum)
vol               871 drivers/mtd/ubi/ubi.h 	return lnum >= 0 && lnum < vol->reserved_pebs;
vol               875 drivers/mtd/ubi/ubi.h struct ubi_eba_table *ubi_eba_create_table(struct ubi_volume *vol,
vol               878 drivers/mtd/ubi/ubi.h void ubi_eba_copy_table(struct ubi_volume *vol, struct ubi_eba_table *dst,
vol               880 drivers/mtd/ubi/ubi.h void ubi_eba_replace_table(struct ubi_volume *vol, struct ubi_eba_table *tbl);
vol               881 drivers/mtd/ubi/ubi.h void ubi_eba_get_ldesc(struct ubi_volume *vol, int lnum,
vol               883 drivers/mtd/ubi/ubi.h bool ubi_eba_is_mapped(struct ubi_volume *vol, int lnum);
vol               884 drivers/mtd/ubi/ubi.h int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol,
vol               886 drivers/mtd/ubi/ubi.h int ubi_eba_read_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum,
vol               888 drivers/mtd/ubi/ubi.h int ubi_eba_read_leb_sg(struct ubi_device *ubi, struct ubi_volume *vol,
vol               891 drivers/mtd/ubi/ubi.h int ubi_eba_write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum,
vol               893 drivers/mtd/ubi/ubi.h int ubi_eba_write_leb_st(struct ubi_device *ubi, struct ubi_volume *vol,
vol               895 drivers/mtd/ubi/ubi.h int ubi_eba_atomic_leb_change(struct ubi_device *ubi, struct ubi_volume *vol,
vol               946 drivers/mtd/ubi/ubi.h int ubi_volume_notify(struct ubi_device *ubi, struct ubi_volume *vol,
vol               955 drivers/mtd/ubi/ubi.h void ubi_do_get_volume_info(struct ubi_device *ubi, struct ubi_volume *vol,
vol               967 drivers/mtd/ubi/ubi.h int ubi_fastmap_init_checkmap(struct ubi_volume *vol, int leb_count);
vol               968 drivers/mtd/ubi/ubi.h void ubi_fastmap_destroy_checkmap(struct ubi_volume *vol);
vol               971 drivers/mtd/ubi/ubi.h int static inline ubi_fastmap_init_checkmap(struct ubi_volume *vol, int leb_count) { return 0; }
vol               972 drivers/mtd/ubi/ubi.h static inline void ubi_fastmap_destroy_checkmap(struct ubi_volume *vol) {}
vol                41 drivers/mtd/ubi/upd.c static int set_update_marker(struct ubi_device *ubi, struct ubi_volume *vol)
vol                46 drivers/mtd/ubi/upd.c 	dbg_gen("set update marker for volume %d", vol->vol_id);
vol                48 drivers/mtd/ubi/upd.c 	if (vol->upd_marker) {
vol                49 drivers/mtd/ubi/upd.c 		ubi_assert(ubi->vtbl[vol->vol_id].upd_marker);
vol                54 drivers/mtd/ubi/upd.c 	vtbl_rec = ubi->vtbl[vol->vol_id];
vol                58 drivers/mtd/ubi/upd.c 	err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec);
vol                59 drivers/mtd/ubi/upd.c 	vol->upd_marker = 1;
vol                74 drivers/mtd/ubi/upd.c static int clear_update_marker(struct ubi_device *ubi, struct ubi_volume *vol,
vol                80 drivers/mtd/ubi/upd.c 	dbg_gen("clear update marker for volume %d", vol->vol_id);
vol                82 drivers/mtd/ubi/upd.c 	vtbl_rec = ubi->vtbl[vol->vol_id];
vol                83 drivers/mtd/ubi/upd.c 	ubi_assert(vol->upd_marker && vtbl_rec.upd_marker);
vol                86 drivers/mtd/ubi/upd.c 	if (vol->vol_type == UBI_STATIC_VOLUME) {
vol                87 drivers/mtd/ubi/upd.c 		vol->corrupted = 0;
vol                88 drivers/mtd/ubi/upd.c 		vol->used_bytes = bytes;
vol                89 drivers/mtd/ubi/upd.c 		vol->used_ebs = div_u64_rem(bytes, vol->usable_leb_size,
vol                90 drivers/mtd/ubi/upd.c 					    &vol->last_eb_bytes);
vol                91 drivers/mtd/ubi/upd.c 		if (vol->last_eb_bytes)
vol                92 drivers/mtd/ubi/upd.c 			vol->used_ebs += 1;
vol                94 drivers/mtd/ubi/upd.c 			vol->last_eb_bytes = vol->usable_leb_size;
vol                98 drivers/mtd/ubi/upd.c 	err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec);
vol                99 drivers/mtd/ubi/upd.c 	vol->upd_marker = 0;
vol               114 drivers/mtd/ubi/upd.c int ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol,
vol               119 drivers/mtd/ubi/upd.c 	dbg_gen("start update of volume %d, %llu bytes", vol->vol_id, bytes);
vol               120 drivers/mtd/ubi/upd.c 	ubi_assert(!vol->updating && !vol->changing_leb);
vol               121 drivers/mtd/ubi/upd.c 	vol->updating = 1;
vol               123 drivers/mtd/ubi/upd.c 	vol->upd_buf = vmalloc(ubi->leb_size);
vol               124 drivers/mtd/ubi/upd.c 	if (!vol->upd_buf)
vol               127 drivers/mtd/ubi/upd.c 	err = set_update_marker(ubi, vol);
vol               132 drivers/mtd/ubi/upd.c 	for (i = 0; i < vol->reserved_pebs; i++) {
vol               133 drivers/mtd/ubi/upd.c 		err = ubi_eba_unmap_leb(ubi, vol, i);
vol               143 drivers/mtd/ubi/upd.c 		err = clear_update_marker(ubi, vol, 0);
vol               147 drivers/mtd/ubi/upd.c 		vfree(vol->upd_buf);
vol               148 drivers/mtd/ubi/upd.c 		vol->updating = 0;
vol               152 drivers/mtd/ubi/upd.c 	vol->upd_ebs = div_u64(bytes + vol->usable_leb_size - 1,
vol               153 drivers/mtd/ubi/upd.c 			       vol->usable_leb_size);
vol               154 drivers/mtd/ubi/upd.c 	vol->upd_bytes = bytes;
vol               155 drivers/mtd/ubi/upd.c 	vol->upd_received = 0;
vol               168 drivers/mtd/ubi/upd.c int ubi_start_leb_change(struct ubi_device *ubi, struct ubi_volume *vol,
vol               171 drivers/mtd/ubi/upd.c 	ubi_assert(!vol->updating && !vol->changing_leb);
vol               174 drivers/mtd/ubi/upd.c 		vol->vol_id, req->lnum, req->bytes);
vol               176 drivers/mtd/ubi/upd.c 		return ubi_eba_atomic_leb_change(ubi, vol, req->lnum, NULL, 0);
vol               178 drivers/mtd/ubi/upd.c 	vol->upd_bytes = req->bytes;
vol               179 drivers/mtd/ubi/upd.c 	vol->upd_received = 0;
vol               180 drivers/mtd/ubi/upd.c 	vol->changing_leb = 1;
vol               181 drivers/mtd/ubi/upd.c 	vol->ch_lnum = req->lnum;
vol               183 drivers/mtd/ubi/upd.c 	vol->upd_buf = vmalloc(ALIGN((int)req->bytes, ubi->min_io_size));
vol               184 drivers/mtd/ubi/upd.c 	if (!vol->upd_buf)
vol               219 drivers/mtd/ubi/upd.c static int write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum,
vol               224 drivers/mtd/ubi/upd.c 	if (vol->vol_type == UBI_DYNAMIC_VOLUME) {
vol               234 drivers/mtd/ubi/upd.c 		err = ubi_eba_write_leb(ubi, vol, lnum, buf, 0, len);
vol               245 drivers/mtd/ubi/upd.c 		memset(buf + len, 0, vol->usable_leb_size - len);
vol               246 drivers/mtd/ubi/upd.c 		err = ubi_eba_write_leb_st(ubi, vol, lnum, buf, len, used_ebs);
vol               265 drivers/mtd/ubi/upd.c int ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol,
vol               271 drivers/mtd/ubi/upd.c 		count, vol->upd_bytes, vol->upd_received);
vol               276 drivers/mtd/ubi/upd.c 	lnum = div_u64_rem(vol->upd_received,  vol->usable_leb_size, &offs);
vol               277 drivers/mtd/ubi/upd.c 	if (vol->upd_received + count > vol->upd_bytes)
vol               278 drivers/mtd/ubi/upd.c 		to_write = count = vol->upd_bytes - vol->upd_received;
vol               292 drivers/mtd/ubi/upd.c 		len = vol->usable_leb_size - offs;
vol               296 drivers/mtd/ubi/upd.c 		err = copy_from_user(vol->upd_buf + offs, buf, len);
vol               300 drivers/mtd/ubi/upd.c 		if (offs + len == vol->usable_leb_size ||
vol               301 drivers/mtd/ubi/upd.c 		    vol->upd_received + len == vol->upd_bytes) {
vol               308 drivers/mtd/ubi/upd.c 			ubi_assert(flush_len <= vol->usable_leb_size);
vol               309 drivers/mtd/ubi/upd.c 			err = write_leb(ubi, vol, lnum, vol->upd_buf, flush_len,
vol               310 drivers/mtd/ubi/upd.c 					vol->upd_ebs);
vol               315 drivers/mtd/ubi/upd.c 		vol->upd_received += len;
vol               326 drivers/mtd/ubi/upd.c 		if (count > vol->usable_leb_size)
vol               327 drivers/mtd/ubi/upd.c 			len = vol->usable_leb_size;
vol               331 drivers/mtd/ubi/upd.c 		err = copy_from_user(vol->upd_buf, buf, len);
vol               335 drivers/mtd/ubi/upd.c 		if (len == vol->usable_leb_size ||
vol               336 drivers/mtd/ubi/upd.c 		    vol->upd_received + len == vol->upd_bytes) {
vol               337 drivers/mtd/ubi/upd.c 			err = write_leb(ubi, vol, lnum, vol->upd_buf,
vol               338 drivers/mtd/ubi/upd.c 					len, vol->upd_ebs);
vol               343 drivers/mtd/ubi/upd.c 		vol->upd_received += len;
vol               349 drivers/mtd/ubi/upd.c 	ubi_assert(vol->upd_received <= vol->upd_bytes);
vol               350 drivers/mtd/ubi/upd.c 	if (vol->upd_received == vol->upd_bytes) {
vol               355 drivers/mtd/ubi/upd.c 		err = clear_update_marker(ubi, vol, vol->upd_bytes);
vol               358 drivers/mtd/ubi/upd.c 		vol->updating = 0;
vol               360 drivers/mtd/ubi/upd.c 		vfree(vol->upd_buf);
vol               380 drivers/mtd/ubi/upd.c int ubi_more_leb_change_data(struct ubi_device *ubi, struct ubi_volume *vol,
vol               386 drivers/mtd/ubi/upd.c 		count, vol->upd_bytes, vol->upd_received);
vol               391 drivers/mtd/ubi/upd.c 	if (vol->upd_received + count > vol->upd_bytes)
vol               392 drivers/mtd/ubi/upd.c 		count = vol->upd_bytes - vol->upd_received;
vol               394 drivers/mtd/ubi/upd.c 	err = copy_from_user(vol->upd_buf + vol->upd_received, buf, count);
vol               398 drivers/mtd/ubi/upd.c 	vol->upd_received += count;
vol               400 drivers/mtd/ubi/upd.c 	if (vol->upd_received == vol->upd_bytes) {
vol               401 drivers/mtd/ubi/upd.c 		int len = ALIGN((int)vol->upd_bytes, ubi->min_io_size);
vol               403 drivers/mtd/ubi/upd.c 		memset(vol->upd_buf + vol->upd_bytes, 0xFF,
vol               404 drivers/mtd/ubi/upd.c 		       len - vol->upd_bytes);
vol               405 drivers/mtd/ubi/upd.c 		len = ubi_calc_data_len(ubi, vol->upd_buf, len);
vol               406 drivers/mtd/ubi/upd.c 		err = ubi_eba_atomic_leb_change(ubi, vol, vol->ch_lnum,
vol               407 drivers/mtd/ubi/upd.c 						vol->upd_buf, len);
vol               412 drivers/mtd/ubi/upd.c 	ubi_assert(vol->upd_received <= vol->upd_bytes);
vol               413 drivers/mtd/ubi/upd.c 	if (vol->upd_received == vol->upd_bytes) {
vol               414 drivers/mtd/ubi/upd.c 		vol->changing_leb = 0;
vol               416 drivers/mtd/ubi/upd.c 		vfree(vol->upd_buf);
vol                58 drivers/mtd/ubi/vmt.c 	struct ubi_volume *vol = container_of(dev, struct ubi_volume, dev);
vol                61 drivers/mtd/ubi/vmt.c 	ubi = ubi_get_device(vol->ubi->ubi_num);
vol                66 drivers/mtd/ubi/vmt.c 	if (!ubi->volumes[vol->vol_id]) {
vol                72 drivers/mtd/ubi/vmt.c 	vol->ref_count += 1;
vol                76 drivers/mtd/ubi/vmt.c 		ret = sprintf(buf, "%d\n", vol->reserved_pebs);
vol                80 drivers/mtd/ubi/vmt.c 		if (vol->vol_type == UBI_DYNAMIC_VOLUME)
vol                86 drivers/mtd/ubi/vmt.c 		ret = sprintf(buf, "%s\n", vol->name);
vol                88 drivers/mtd/ubi/vmt.c 		ret = sprintf(buf, "%d\n", vol->corrupted);
vol                90 drivers/mtd/ubi/vmt.c 		ret = sprintf(buf, "%d\n", vol->alignment);
vol                92 drivers/mtd/ubi/vmt.c 		ret = sprintf(buf, "%d\n", vol->usable_leb_size);
vol                94 drivers/mtd/ubi/vmt.c 		ret = sprintf(buf, "%lld\n", vol->used_bytes);
vol                96 drivers/mtd/ubi/vmt.c 		ret = sprintf(buf, "%d\n", vol->upd_marker);
vol               103 drivers/mtd/ubi/vmt.c 	vol->ref_count -= 1;
vol               104 drivers/mtd/ubi/vmt.c 	ubi_assert(vol->ref_count >= 0);
vol               126 drivers/mtd/ubi/vmt.c 	struct ubi_volume *vol = container_of(dev, struct ubi_volume, dev);
vol               128 drivers/mtd/ubi/vmt.c 	ubi_eba_replace_table(vol, NULL);
vol               129 drivers/mtd/ubi/vmt.c 	ubi_fastmap_destroy_checkmap(vol);
vol               130 drivers/mtd/ubi/vmt.c 	kfree(vol);
vol               147 drivers/mtd/ubi/vmt.c 	struct ubi_volume *vol;
vol               154 drivers/mtd/ubi/vmt.c 	vol = kzalloc(sizeof(struct ubi_volume), GFP_KERNEL);
vol               155 drivers/mtd/ubi/vmt.c 	if (!vol)
vol               158 drivers/mtd/ubi/vmt.c 	device_initialize(&vol->dev);
vol               159 drivers/mtd/ubi/vmt.c 	vol->dev.release = vol_release;
vol               160 drivers/mtd/ubi/vmt.c 	vol->dev.parent = &ubi->dev;
vol               161 drivers/mtd/ubi/vmt.c 	vol->dev.class = &ubi_class;
vol               162 drivers/mtd/ubi/vmt.c 	vol->dev.groups = volume_dev_groups;
vol               165 drivers/mtd/ubi/vmt.c 		vol->skip_check = 1;
vol               207 drivers/mtd/ubi/vmt.c 	vol->usable_leb_size = ubi->leb_size - ubi->leb_size % req->alignment;
vol               208 drivers/mtd/ubi/vmt.c 	vol->reserved_pebs = div_u64(req->bytes + vol->usable_leb_size - 1,
vol               209 drivers/mtd/ubi/vmt.c 				     vol->usable_leb_size);
vol               212 drivers/mtd/ubi/vmt.c 	if (vol->reserved_pebs > ubi->avail_pebs) {
vol               221 drivers/mtd/ubi/vmt.c 	ubi->avail_pebs -= vol->reserved_pebs;
vol               222 drivers/mtd/ubi/vmt.c 	ubi->rsvd_pebs += vol->reserved_pebs;
vol               225 drivers/mtd/ubi/vmt.c 	vol->vol_id    = vol_id;
vol               226 drivers/mtd/ubi/vmt.c 	vol->alignment = req->alignment;
vol               227 drivers/mtd/ubi/vmt.c 	vol->data_pad  = ubi->leb_size % vol->alignment;
vol               228 drivers/mtd/ubi/vmt.c 	vol->vol_type  = req->vol_type;
vol               229 drivers/mtd/ubi/vmt.c 	vol->name_len  = req->name_len;
vol               230 drivers/mtd/ubi/vmt.c 	memcpy(vol->name, req->name, vol->name_len);
vol               231 drivers/mtd/ubi/vmt.c 	vol->ubi = ubi;
vol               241 drivers/mtd/ubi/vmt.c 	eba_tbl = ubi_eba_create_table(vol, vol->reserved_pebs);
vol               247 drivers/mtd/ubi/vmt.c 	ubi_eba_replace_table(vol, eba_tbl);
vol               249 drivers/mtd/ubi/vmt.c 	if (vol->vol_type == UBI_DYNAMIC_VOLUME) {
vol               250 drivers/mtd/ubi/vmt.c 		vol->used_ebs = vol->reserved_pebs;
vol               251 drivers/mtd/ubi/vmt.c 		vol->last_eb_bytes = vol->usable_leb_size;
vol               252 drivers/mtd/ubi/vmt.c 		vol->used_bytes =
vol               253 drivers/mtd/ubi/vmt.c 			(long long)vol->used_ebs * vol->usable_leb_size;
vol               255 drivers/mtd/ubi/vmt.c 		vol->used_ebs = div_u64_rem(vol->used_bytes,
vol               256 drivers/mtd/ubi/vmt.c 					    vol->usable_leb_size,
vol               257 drivers/mtd/ubi/vmt.c 					    &vol->last_eb_bytes);
vol               258 drivers/mtd/ubi/vmt.c 		if (vol->last_eb_bytes != 0)
vol               259 drivers/mtd/ubi/vmt.c 			vol->used_ebs += 1;
vol               261 drivers/mtd/ubi/vmt.c 			vol->last_eb_bytes = vol->usable_leb_size;
vol               266 drivers/mtd/ubi/vmt.c 	ubi->volumes[vol_id] = vol;
vol               271 drivers/mtd/ubi/vmt.c 	cdev_init(&vol->cdev, &ubi_vol_cdev_operations);
vol               272 drivers/mtd/ubi/vmt.c 	vol->cdev.owner = THIS_MODULE;
vol               274 drivers/mtd/ubi/vmt.c 	vol->dev.devt = MKDEV(MAJOR(ubi->cdev.dev), vol_id + 1);
vol               275 drivers/mtd/ubi/vmt.c 	dev_set_name(&vol->dev, "%s_%d", ubi->ubi_name, vol->vol_id);
vol               276 drivers/mtd/ubi/vmt.c 	err = cdev_device_add(&vol->cdev, &vol->dev);
vol               284 drivers/mtd/ubi/vmt.c 	vtbl_rec.reserved_pebs = cpu_to_be32(vol->reserved_pebs);
vol               285 drivers/mtd/ubi/vmt.c 	vtbl_rec.alignment     = cpu_to_be32(vol->alignment);
vol               286 drivers/mtd/ubi/vmt.c 	vtbl_rec.data_pad      = cpu_to_be32(vol->data_pad);
vol               287 drivers/mtd/ubi/vmt.c 	vtbl_rec.name_len      = cpu_to_be16(vol->name_len);
vol               288 drivers/mtd/ubi/vmt.c 	if (vol->vol_type == UBI_DYNAMIC_VOLUME)
vol               293 drivers/mtd/ubi/vmt.c 	if (vol->skip_check)
vol               296 drivers/mtd/ubi/vmt.c 	memcpy(vtbl_rec.name, vol->name, vol->name_len);
vol               302 drivers/mtd/ubi/vmt.c 	ubi_volume_notify(ubi, vol, UBI_VOLUME_ADDED);
vol               312 drivers/mtd/ubi/vmt.c 	cdev_device_del(&vol->cdev, &vol->dev);
vol               321 drivers/mtd/ubi/vmt.c 	ubi->rsvd_pebs -= vol->reserved_pebs;
vol               322 drivers/mtd/ubi/vmt.c 	ubi->avail_pebs += vol->reserved_pebs;
vol               325 drivers/mtd/ubi/vmt.c 	put_device(&vol->dev);
vol               342 drivers/mtd/ubi/vmt.c 	struct ubi_volume *vol = desc->vol;
vol               343 drivers/mtd/ubi/vmt.c 	struct ubi_device *ubi = vol->ubi;
vol               344 drivers/mtd/ubi/vmt.c 	int i, err, vol_id = vol->vol_id, reserved_pebs = vol->reserved_pebs;
vol               348 drivers/mtd/ubi/vmt.c 	ubi_assert(vol == ubi->volumes[vol_id]);
vol               354 drivers/mtd/ubi/vmt.c 	if (vol->ref_count > 1) {
vol               371 drivers/mtd/ubi/vmt.c 	for (i = 0; i < vol->reserved_pebs; i++) {
vol               372 drivers/mtd/ubi/vmt.c 		err = ubi_eba_unmap_leb(ubi, vol, i);
vol               377 drivers/mtd/ubi/vmt.c 	cdev_device_del(&vol->cdev, &vol->dev);
vol               378 drivers/mtd/ubi/vmt.c 	put_device(&vol->dev);
vol               387 drivers/mtd/ubi/vmt.c 	ubi_volume_notify(ubi, vol, UBI_VOLUME_REMOVED);
vol               396 drivers/mtd/ubi/vmt.c 	ubi->volumes[vol_id] = vol;
vol               414 drivers/mtd/ubi/vmt.c 	struct ubi_volume *vol = desc->vol;
vol               415 drivers/mtd/ubi/vmt.c 	struct ubi_device *ubi = vol->ubi;
vol               418 drivers/mtd/ubi/vmt.c 	int vol_id = vol->vol_id;
vol               424 drivers/mtd/ubi/vmt.c 		ubi->ubi_num, vol_id, vol->reserved_pebs, reserved_pebs);
vol               426 drivers/mtd/ubi/vmt.c 	if (vol->vol_type == UBI_STATIC_VOLUME &&
vol               427 drivers/mtd/ubi/vmt.c 	    reserved_pebs < vol->used_ebs) {
vol               429 drivers/mtd/ubi/vmt.c 			reserved_pebs, vol->used_ebs);
vol               434 drivers/mtd/ubi/vmt.c 	if (reserved_pebs == vol->reserved_pebs)
vol               437 drivers/mtd/ubi/vmt.c 	new_eba_tbl = ubi_eba_create_table(vol, reserved_pebs);
vol               442 drivers/mtd/ubi/vmt.c 	if (vol->ref_count > 1) {
vol               450 drivers/mtd/ubi/vmt.c 	pebs = reserved_pebs - vol->reserved_pebs;
vol               465 drivers/mtd/ubi/vmt.c 		ubi_eba_copy_table(vol, new_eba_tbl, vol->reserved_pebs);
vol               466 drivers/mtd/ubi/vmt.c 		ubi_eba_replace_table(vol, new_eba_tbl);
vol               472 drivers/mtd/ubi/vmt.c 			err = ubi_eba_unmap_leb(ubi, vol, reserved_pebs + i);
vol               480 drivers/mtd/ubi/vmt.c 		ubi_eba_copy_table(vol, new_eba_tbl, reserved_pebs);
vol               481 drivers/mtd/ubi/vmt.c 		ubi_eba_replace_table(vol, new_eba_tbl);
vol               503 drivers/mtd/ubi/vmt.c 	vol->reserved_pebs = reserved_pebs;
vol               504 drivers/mtd/ubi/vmt.c 	if (vol->vol_type == UBI_DYNAMIC_VOLUME) {
vol               505 drivers/mtd/ubi/vmt.c 		vol->used_ebs = reserved_pebs;
vol               506 drivers/mtd/ubi/vmt.c 		vol->last_eb_bytes = vol->usable_leb_size;
vol               507 drivers/mtd/ubi/vmt.c 		vol->used_bytes =
vol               508 drivers/mtd/ubi/vmt.c 			(long long)vol->used_ebs * vol->usable_leb_size;
vol               511 drivers/mtd/ubi/vmt.c 	ubi_volume_notify(ubi, vol, UBI_VOLUME_RESIZED);
vol               551 drivers/mtd/ubi/vmt.c 			struct ubi_volume *vol = re->desc->vol;
vol               554 drivers/mtd/ubi/vmt.c 			vol->name_len = re->new_name_len;
vol               555 drivers/mtd/ubi/vmt.c 			memcpy(vol->name, re->new_name, re->new_name_len + 1);
vol               557 drivers/mtd/ubi/vmt.c 			ubi_volume_notify(ubi, vol, UBI_VOLUME_RENAMED);
vol               575 drivers/mtd/ubi/vmt.c int ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol)
vol               577 drivers/mtd/ubi/vmt.c 	int err, vol_id = vol->vol_id;
vol               583 drivers/mtd/ubi/vmt.c 	cdev_init(&vol->cdev, &ubi_vol_cdev_operations);
vol               584 drivers/mtd/ubi/vmt.c 	vol->cdev.owner = THIS_MODULE;
vol               585 drivers/mtd/ubi/vmt.c 	dev = MKDEV(MAJOR(ubi->cdev.dev), vol->vol_id + 1);
vol               586 drivers/mtd/ubi/vmt.c 	err = cdev_add(&vol->cdev, dev, 1);
vol               593 drivers/mtd/ubi/vmt.c 	vol->dev.release = vol_release;
vol               594 drivers/mtd/ubi/vmt.c 	vol->dev.parent = &ubi->dev;
vol               595 drivers/mtd/ubi/vmt.c 	vol->dev.devt = dev;
vol               596 drivers/mtd/ubi/vmt.c 	vol->dev.class = &ubi_class;
vol               597 drivers/mtd/ubi/vmt.c 	vol->dev.groups = volume_dev_groups;
vol               598 drivers/mtd/ubi/vmt.c 	dev_set_name(&vol->dev, "%s_%d", ubi->ubi_name, vol->vol_id);
vol               599 drivers/mtd/ubi/vmt.c 	err = device_register(&vol->dev);
vol               607 drivers/mtd/ubi/vmt.c 	cdev_del(&vol->cdev);
vol               619 drivers/mtd/ubi/vmt.c void ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol)
vol               621 drivers/mtd/ubi/vmt.c 	dbg_gen("free volume %d", vol->vol_id);
vol               623 drivers/mtd/ubi/vmt.c 	ubi->volumes[vol->vol_id] = NULL;
vol               624 drivers/mtd/ubi/vmt.c 	cdev_del(&vol->cdev);
vol               625 drivers/mtd/ubi/vmt.c 	device_unregister(&vol->dev);
vol               639 drivers/mtd/ubi/vmt.c 	const struct ubi_volume *vol;
vol               645 drivers/mtd/ubi/vmt.c 	vol = ubi->volumes[idx];
vol               647 drivers/mtd/ubi/vmt.c 	if (!vol) {
vol               656 drivers/mtd/ubi/vmt.c 	if (vol->reserved_pebs < 0 || vol->alignment < 0 || vol->data_pad < 0 ||
vol               657 drivers/mtd/ubi/vmt.c 	    vol->name_len < 0) {
vol               661 drivers/mtd/ubi/vmt.c 	if (vol->alignment > ubi->leb_size || vol->alignment == 0) {
vol               666 drivers/mtd/ubi/vmt.c 	n = vol->alignment & (ubi->min_io_size - 1);
vol               667 drivers/mtd/ubi/vmt.c 	if (vol->alignment != 1 && n) {
vol               672 drivers/mtd/ubi/vmt.c 	n = ubi->leb_size % vol->alignment;
vol               673 drivers/mtd/ubi/vmt.c 	if (vol->data_pad != n) {
vol               678 drivers/mtd/ubi/vmt.c 	if (vol->vol_type != UBI_DYNAMIC_VOLUME &&
vol               679 drivers/mtd/ubi/vmt.c 	    vol->vol_type != UBI_STATIC_VOLUME) {
vol               684 drivers/mtd/ubi/vmt.c 	if (vol->upd_marker && vol->corrupted) {
vol               689 drivers/mtd/ubi/vmt.c 	if (vol->reserved_pebs > ubi->good_peb_count) {
vol               694 drivers/mtd/ubi/vmt.c 	n = ubi->leb_size - vol->data_pad;
vol               695 drivers/mtd/ubi/vmt.c 	if (vol->usable_leb_size != ubi->leb_size - vol->data_pad) {
vol               700 drivers/mtd/ubi/vmt.c 	if (vol->name_len > UBI_VOL_NAME_MAX) {
vol               706 drivers/mtd/ubi/vmt.c 	n = strnlen(vol->name, vol->name_len + 1);
vol               707 drivers/mtd/ubi/vmt.c 	if (n != vol->name_len) {
vol               712 drivers/mtd/ubi/vmt.c 	n = (long long)vol->used_ebs * vol->usable_leb_size;
vol               713 drivers/mtd/ubi/vmt.c 	if (vol->vol_type == UBI_DYNAMIC_VOLUME) {
vol               714 drivers/mtd/ubi/vmt.c 		if (vol->corrupted) {
vol               718 drivers/mtd/ubi/vmt.c 		if (vol->used_ebs != vol->reserved_pebs) {
vol               722 drivers/mtd/ubi/vmt.c 		if (vol->last_eb_bytes != vol->usable_leb_size) {
vol               726 drivers/mtd/ubi/vmt.c 		if (vol->used_bytes != n) {
vol               731 drivers/mtd/ubi/vmt.c 		if (vol->skip_check) {
vol               736 drivers/mtd/ubi/vmt.c 		if (vol->used_ebs < 0 || vol->used_ebs > vol->reserved_pebs) {
vol               740 drivers/mtd/ubi/vmt.c 		if (vol->last_eb_bytes < 0 ||
vol               741 drivers/mtd/ubi/vmt.c 		    vol->last_eb_bytes > vol->usable_leb_size) {
vol               745 drivers/mtd/ubi/vmt.c 		if (vol->used_bytes < 0 || vol->used_bytes > n ||
vol               746 drivers/mtd/ubi/vmt.c 		    vol->used_bytes < n - vol->usable_leb_size) {
vol               762 drivers/mtd/ubi/vmt.c 	if (alignment != vol->alignment || data_pad != vol->data_pad ||
vol               763 drivers/mtd/ubi/vmt.c 	    upd_marker != vol->upd_marker || vol_type != vol->vol_type ||
vol               764 drivers/mtd/ubi/vmt.c 	    name_len != vol->name_len || strncmp(name, vol->name, name_len)) {
vol               774 drivers/mtd/ubi/vmt.c 	if (vol)
vol               775 drivers/mtd/ubi/vmt.c 		ubi_dump_vol_info(vol);
vol               128 drivers/mtd/ubi/vtbl.c 		struct ubi_volume *vol = re->desc->vol;
vol               129 drivers/mtd/ubi/vtbl.c 		struct ubi_vtbl_record *vtbl_rec = &ubi->vtbl[vol->vol_id];
vol               526 drivers/mtd/ubi/vtbl.c 	struct ubi_volume *vol;
vol               534 drivers/mtd/ubi/vtbl.c 		vol = kzalloc(sizeof(struct ubi_volume), GFP_KERNEL);
vol               535 drivers/mtd/ubi/vtbl.c 		if (!vol)
vol               538 drivers/mtd/ubi/vtbl.c 		vol->reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs);
vol               539 drivers/mtd/ubi/vtbl.c 		vol->alignment = be32_to_cpu(vtbl[i].alignment);
vol               540 drivers/mtd/ubi/vtbl.c 		vol->data_pad = be32_to_cpu(vtbl[i].data_pad);
vol               541 drivers/mtd/ubi/vtbl.c 		vol->upd_marker = vtbl[i].upd_marker;
vol               542 drivers/mtd/ubi/vtbl.c 		vol->vol_type = vtbl[i].vol_type == UBI_VID_DYNAMIC ?
vol               544 drivers/mtd/ubi/vtbl.c 		vol->name_len = be16_to_cpu(vtbl[i].name_len);
vol               545 drivers/mtd/ubi/vtbl.c 		vol->usable_leb_size = ubi->leb_size - vol->data_pad;
vol               546 drivers/mtd/ubi/vtbl.c 		memcpy(vol->name, vtbl[i].name, vol->name_len);
vol               547 drivers/mtd/ubi/vtbl.c 		vol->name[vol->name_len] = '\0';
vol               548 drivers/mtd/ubi/vtbl.c 		vol->vol_id = i;
vol               551 drivers/mtd/ubi/vtbl.c 			vol->skip_check = 1;
vol               558 drivers/mtd/ubi/vtbl.c 				kfree(vol);
vol               566 drivers/mtd/ubi/vtbl.c 		ubi->volumes[i] = vol;
vol               568 drivers/mtd/ubi/vtbl.c 		vol->ubi = ubi;
vol               569 drivers/mtd/ubi/vtbl.c 		reserved_pebs += vol->reserved_pebs;
vol               577 drivers/mtd/ubi/vtbl.c 		err = ubi_fastmap_init_checkmap(vol, ubi->peb_count);
vol               585 drivers/mtd/ubi/vtbl.c 		if (vol->vol_type == UBI_DYNAMIC_VOLUME) {
vol               586 drivers/mtd/ubi/vtbl.c 			vol->used_ebs = vol->reserved_pebs;
vol               587 drivers/mtd/ubi/vtbl.c 			vol->last_eb_bytes = vol->usable_leb_size;
vol               588 drivers/mtd/ubi/vtbl.c 			vol->used_bytes =
vol               589 drivers/mtd/ubi/vtbl.c 				(long long)vol->used_ebs * vol->usable_leb_size;
vol               614 drivers/mtd/ubi/vtbl.c 			vol->corrupted = 1;
vol               618 drivers/mtd/ubi/vtbl.c 		vol->used_ebs = av->used_ebs;
vol               619 drivers/mtd/ubi/vtbl.c 		vol->used_bytes =
vol               620 drivers/mtd/ubi/vtbl.c 			(long long)(vol->used_ebs - 1) * vol->usable_leb_size;
vol               621 drivers/mtd/ubi/vtbl.c 		vol->used_bytes += av->last_data_size;
vol               622 drivers/mtd/ubi/vtbl.c 		vol->last_eb_bytes = av->last_data_size;
vol               626 drivers/mtd/ubi/vtbl.c 	vol = kzalloc(sizeof(struct ubi_volume), GFP_KERNEL);
vol               627 drivers/mtd/ubi/vtbl.c 	if (!vol)
vol               630 drivers/mtd/ubi/vtbl.c 	vol->reserved_pebs = UBI_LAYOUT_VOLUME_EBS;
vol               631 drivers/mtd/ubi/vtbl.c 	vol->alignment = UBI_LAYOUT_VOLUME_ALIGN;
vol               632 drivers/mtd/ubi/vtbl.c 	vol->vol_type = UBI_DYNAMIC_VOLUME;
vol               633 drivers/mtd/ubi/vtbl.c 	vol->name_len = sizeof(UBI_LAYOUT_VOLUME_NAME) - 1;
vol               634 drivers/mtd/ubi/vtbl.c 	memcpy(vol->name, UBI_LAYOUT_VOLUME_NAME, vol->name_len + 1);
vol               635 drivers/mtd/ubi/vtbl.c 	vol->usable_leb_size = ubi->leb_size;
vol               636 drivers/mtd/ubi/vtbl.c 	vol->used_ebs = vol->reserved_pebs;
vol               637 drivers/mtd/ubi/vtbl.c 	vol->last_eb_bytes = vol->reserved_pebs;
vol               638 drivers/mtd/ubi/vtbl.c 	vol->used_bytes =
vol               639 drivers/mtd/ubi/vtbl.c 		(long long)vol->used_ebs * (ubi->leb_size - vol->data_pad);
vol               640 drivers/mtd/ubi/vtbl.c 	vol->vol_id = UBI_LAYOUT_VOLUME_ID;
vol               641 drivers/mtd/ubi/vtbl.c 	vol->ref_count = 1;
vol               644 drivers/mtd/ubi/vtbl.c 	ubi->volumes[vol_id2idx(ubi, vol->vol_id)] = vol;
vol               645 drivers/mtd/ubi/vtbl.c 	reserved_pebs += vol->reserved_pebs;
vol               647 drivers/mtd/ubi/vtbl.c 	vol->ubi = ubi;
vol               648 drivers/mtd/ubi/vtbl.c 	err = ubi_fastmap_init_checkmap(vol, UBI_LAYOUT_VOLUME_EBS);
vol               674 drivers/mtd/ubi/vtbl.c static int check_av(const struct ubi_volume *vol,
vol               679 drivers/mtd/ubi/vtbl.c 	if (av->highest_lnum >= vol->reserved_pebs) {
vol               683 drivers/mtd/ubi/vtbl.c 	if (av->leb_count > vol->reserved_pebs) {
vol               687 drivers/mtd/ubi/vtbl.c 	if (av->vol_type != vol->vol_type) {
vol               691 drivers/mtd/ubi/vtbl.c 	if (av->used_ebs > vol->reserved_pebs) {
vol               695 drivers/mtd/ubi/vtbl.c 	if (av->data_pad != vol->data_pad) {
vol               702 drivers/mtd/ubi/vtbl.c 	ubi_err(vol->ubi, "bad attaching information, error %d", err);
vol               704 drivers/mtd/ubi/vtbl.c 	ubi_dump_vol_info(vol);
vol               723 drivers/mtd/ubi/vtbl.c 	struct ubi_volume *vol;
vol               742 drivers/mtd/ubi/vtbl.c 		vol = ubi->volumes[i];
vol               743 drivers/mtd/ubi/vtbl.c 		if (!vol) {
vol               749 drivers/mtd/ubi/vtbl.c 		if (vol->reserved_pebs == 0) {
vol               765 drivers/mtd/ubi/vtbl.c 			err = check_av(vol, av);
vol               260 drivers/pinctrl/freescale/pinctrl-mxs.c 	u8 ma, vol, pull, bank, shift;
vol               270 drivers/pinctrl/freescale/pinctrl-mxs.c 		vol = CONFIG_TO_VOL(config);
vol               290 drivers/pinctrl/freescale/pinctrl-mxs.c 				if (vol)
vol              7397 drivers/platform/x86/thinkpad_acpi.c static int __volume_set_volume_ec(const u8 vol)
vol              7402 drivers/platform/x86/thinkpad_acpi.c 	if (vol > TP_EC_VOLUME_MAX)
vol              7412 drivers/platform/x86/thinkpad_acpi.c 	n = (s & ~TP_EC_AUDIO_LVL_MSK) | vol;
vol              7476 drivers/platform/x86/thinkpad_acpi.c static int volume_alsa_set_volume(const u8 vol)
vol              7479 drivers/platform/x86/thinkpad_acpi.c 		   "ALSA: trying to set volume level to %hu\n", vol);
vol              7480 drivers/platform/x86/thinkpad_acpi.c 	return __volume_set_volume_ec(vol);
vol               133 drivers/power/supply/sc27xx_fuel_gauge.c static int sc27xx_fgu_voltage_to_adc(struct sc27xx_fgu_data *data, int vol)
vol               135 drivers/power/supply/sc27xx_fuel_gauge.c 	return DIV_ROUND_CLOSEST(vol * data->vol_1000mv_adc, 1000);
vol               403 drivers/power/supply/sc27xx_fuel_gauge.c 	int ret, vol;
vol               405 drivers/power/supply/sc27xx_fuel_gauge.c 	ret = regmap_read(data->regmap, data->base + SC27XX_FGU_VOLTAGE, &vol);
vol               413 drivers/power/supply/sc27xx_fuel_gauge.c 	*val = sc27xx_fgu_adc_to_voltage(data, vol);
vol               437 drivers/power/supply/sc27xx_fuel_gauge.c 	int vol, cur, ret;
vol               439 drivers/power/supply/sc27xx_fuel_gauge.c 	ret = sc27xx_fgu_get_vbat_vol(data, &vol);
vol               448 drivers/power/supply/sc27xx_fuel_gauge.c 	*val = vol * 1000 - cur * data->internal_resist;
vol               455 drivers/power/supply/sc27xx_fuel_gauge.c 	int ret, vol;
vol               457 drivers/power/supply/sc27xx_fuel_gauge.c 	ret = iio_read_channel_processed(data->charge_chan, &vol);
vol               461 drivers/power/supply/sc27xx_fuel_gauge.c 	*val = vol * 1000;
vol               472 drivers/power/supply/sc27xx_fuel_gauge.c 	int ret, vol;
vol               474 drivers/power/supply/sc27xx_fuel_gauge.c 	ret = sc27xx_fgu_get_vbat_vol(data, &vol);
vol               478 drivers/power/supply/sc27xx_fuel_gauge.c 	if (vol > data->max_volt)
vol               643 drivers/scsi/aacraid/aachba.c 		    (le32_to_cpu(dresp->mnt[0].vol) != CT_NONE) &&
vol               662 drivers/scsi/aacraid/aachba.c 			fsa_dev_ptr->type = le32_to_cpu(dresp->mnt[0].vol);
vol               691 drivers/scsi/aacraid/aachba.c 			(le32_to_cpu(dresp->mnt[0].vol) != CT_NONE)) {
vol              2235 drivers/scsi/aacraid/aacraid.h 	__le32			vol;		/* substrate structure */
vol                62 drivers/staging/speakup/speakup_acntpc.c 	__ATTR(vol, 0644, spk_var_show, spk_var_store);
vol                47 drivers/staging/speakup/speakup_acntsa.c 	__ATTR(vol, 0644, spk_var_show, spk_var_store);
vol                55 drivers/staging/speakup/speakup_apollo.c 	__ATTR(vol, 0644, spk_var_show, spk_var_store);
vol                50 drivers/staging/speakup/speakup_audptr.c 	__ATTR(vol, 0644, spk_var_show, spk_var_store);
vol                44 drivers/staging/speakup/speakup_bns.c 	__ATTR(vol, 0644, spk_var_show, spk_var_store);
vol                69 drivers/staging/speakup/speakup_decext.c 	__ATTR(vol, 0644, spk_var_show, spk_var_store);
vol               165 drivers/staging/speakup/speakup_decpc.c 	__ATTR(vol, 0644, spk_var_show, spk_var_store);
vol                71 drivers/staging/speakup/speakup_dectlk.c 	__ATTR(vol, 0644, spk_var_show, spk_var_store);
vol                74 drivers/staging/speakup/speakup_dtlk.c 	__ATTR(vol, 0644, spk_var_show, spk_var_store);
vol                47 drivers/staging/speakup/speakup_dummy.c 	__ATTR(vol, 0644, spk_var_show, spk_var_store);
vol                55 drivers/staging/speakup/speakup_ltlk.c 	__ATTR(vol, 0644, spk_var_show, spk_var_store);
vol                71 drivers/staging/speakup/speakup_soft.c 	__ATTR(vol, 0644, spk_var_show, spk_var_store);
vol                48 drivers/staging/speakup/speakup_spkout.c 	__ATTR(vol, 0644, spk_var_show, spk_var_store);
vol                43 drivers/staging/speakup/speakup_txprt.c 	__ATTR(vol, 0644, spk_var_show, spk_var_store);
vol                25 drivers/staging/vc04_services/bcm2835-audio/bcm2835.h #define alsa2chip(vol) (uint)(-(((vol) << 8) / 100))
vol                28 drivers/staging/vc04_services/bcm2835-audio/bcm2835.h #define chip2alsa(vol) -(((vol) * 100) >> 8)
vol               276 fs/affs/super.c 			char *vol = match_strdup(&args[0]);
vol               277 fs/affs/super.c 			if (!vol)
vol               279 fs/affs/super.c 			strlcpy(volume, vol, 32);
vol               280 fs/affs/super.c 			kfree(vol);
vol               212 fs/afs/proc.c  	struct afs_volume *vol = list_entry(v, struct afs_volume, proc_link);
vol               221 fs/afs/proc.c  		   atomic_read(&vol->usage), vol->vid,
vol               222 fs/afs/proc.c  		   afs_vol_types[vol->type]);
vol              2178 fs/btrfs/super.c 	struct btrfs_ioctl_vol_args *vol;
vol              2185 fs/btrfs/super.c 	vol = memdup_user((void __user *)arg, sizeof(*vol));
vol              2186 fs/btrfs/super.c 	if (IS_ERR(vol))
vol              2187 fs/btrfs/super.c 		return PTR_ERR(vol);
vol              2188 fs/btrfs/super.c 	vol->name[BTRFS_PATH_NAME_MAX] = '\0';
vol              2193 fs/btrfs/super.c 		device = btrfs_scan_one_device(vol->name, FMODE_READ,
vol              2199 fs/btrfs/super.c 		ret = btrfs_forget_devices(vol->name);
vol              2203 fs/btrfs/super.c 		device = btrfs_scan_one_device(vol->name, FMODE_READ,
vol              2219 fs/btrfs/super.c 	kfree(vol);
vol               709 fs/cifs/cifsfs.c cifs_get_root(struct smb_vol *vol, struct super_block *sb)
vol               720 fs/cifs/cifsfs.c 	full_path = cifs_build_path_to_root(vol, cifs_sb,
vol               822 fs/cifs/cifsfs.c 	mnt_data.vol = volume_info;
vol               642 fs/cifs/cifsglob.h 	struct smb_vol *vol;
vol                75 fs/cifs/cifsproto.h extern char *cifs_build_path_to_root(struct smb_vol *vol,
vol               230 fs/cifs/cifsproto.h extern int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb_vol *vol);
vol               318 fs/cifs/cifsproto.h 				 struct smb_vol *vol);
vol               545 fs/cifs/cifsproto.h cifs_find_tcp_session(struct smb_vol *vol);
vol              1408 fs/cifs/connect.c 				       struct smb_vol *vol)
vol              1417 fs/cifs/connect.c 	vol->sectype = Unspecified;
vol              1418 fs/cifs/connect.c 	vol->sign = false;
vol              1425 fs/cifs/connect.c 		vol->sign = true;
vol              1428 fs/cifs/connect.c 		vol->sectype = Kerberos;
vol              1431 fs/cifs/connect.c 		vol->sign = true;
vol              1434 fs/cifs/connect.c 		vol->sectype = RawNTLMSSP;
vol              1437 fs/cifs/connect.c 		vol->sign = true;
vol              1440 fs/cifs/connect.c 		vol->sectype = NTLM;
vol              1443 fs/cifs/connect.c 		vol->sign = true;
vol              1446 fs/cifs/connect.c 		vol->sectype = NTLMv2;
vol              1450 fs/cifs/connect.c 		vol->sectype = LANMAN;
vol              1454 fs/cifs/connect.c 		vol->nullauth = 1;
vol              1465 fs/cifs/connect.c cifs_parse_cache_flavor(char *value, struct smb_vol *vol)
vol              1471 fs/cifs/connect.c 		vol->direct_io = false;
vol              1472 fs/cifs/connect.c 		vol->strict_io = false;
vol              1473 fs/cifs/connect.c 		vol->cache_ro = false;
vol              1474 fs/cifs/connect.c 		vol->cache_rw = false;
vol              1477 fs/cifs/connect.c 		vol->direct_io = false;
vol              1478 fs/cifs/connect.c 		vol->strict_io = true;
vol              1479 fs/cifs/connect.c 		vol->cache_ro = false;
vol              1480 fs/cifs/connect.c 		vol->cache_rw = false;
vol              1483 fs/cifs/connect.c 		vol->direct_io = true;
vol              1484 fs/cifs/connect.c 		vol->strict_io = false;
vol              1485 fs/cifs/connect.c 		vol->cache_ro = false;
vol              1486 fs/cifs/connect.c 		vol->cache_rw = false;
vol              1489 fs/cifs/connect.c 		vol->direct_io = false;
vol              1490 fs/cifs/connect.c 		vol->strict_io = false;
vol              1491 fs/cifs/connect.c 		vol->cache_ro = true;
vol              1492 fs/cifs/connect.c 		vol->cache_rw = false;
vol              1495 fs/cifs/connect.c 		vol->direct_io = false;
vol              1496 fs/cifs/connect.c 		vol->strict_io = false;
vol              1497 fs/cifs/connect.c 		vol->cache_ro = false;
vol              1498 fs/cifs/connect.c 		vol->cache_rw = true;
vol              1508 fs/cifs/connect.c cifs_parse_smb_version(char *value, struct smb_vol *vol, bool is_smb3)
vol              1523 fs/cifs/connect.c 		vol->ops = &smb1_operations;
vol              1524 fs/cifs/connect.c 		vol->vals = &smb1_values;
vol              1535 fs/cifs/connect.c 		vol->ops = &smb20_operations;
vol              1536 fs/cifs/connect.c 		vol->vals = &smb20_values;
vol              1547 fs/cifs/connect.c 		vol->ops = &smb21_operations;
vol              1548 fs/cifs/connect.c 		vol->vals = &smb21_values;
vol              1551 fs/cifs/connect.c 		vol->ops = &smb30_operations;
vol              1552 fs/cifs/connect.c 		vol->vals = &smb30_values;
vol              1555 fs/cifs/connect.c 		vol->ops = &smb30_operations; /* currently identical with 3.0 */
vol              1556 fs/cifs/connect.c 		vol->vals = &smb302_values;
vol              1559 fs/cifs/connect.c 		vol->ops = &smb311_operations;
vol              1560 fs/cifs/connect.c 		vol->vals = &smb311_values;
vol              1563 fs/cifs/connect.c 		vol->ops = &smb30_operations; /* currently identical with 3.0 */
vol              1564 fs/cifs/connect.c 		vol->vals = &smb3any_values;
vol              1567 fs/cifs/connect.c 		vol->ops = &smb30_operations; /* currently identical with 3.0 */
vol              1568 fs/cifs/connect.c 		vol->vals = &smbdefault_values;
vol              1582 fs/cifs/connect.c cifs_parse_devname(const char *devname, struct smb_vol *vol)
vol              1611 fs/cifs/connect.c 	vol->UNC = kstrndup(devname, pos - devname, GFP_KERNEL);
vol              1612 fs/cifs/connect.c 	if (!vol->UNC)
vol              1615 fs/cifs/connect.c 	convert_delimiter(vol->UNC, '\\');
vol              1625 fs/cifs/connect.c 	vol->prepath = kstrdup(pos, GFP_KERNEL);
vol              1626 fs/cifs/connect.c 	if (!vol->prepath)
vol              1634 fs/cifs/connect.c 			 struct smb_vol *vol, bool is_smb3)
vol              1653 fs/cifs/connect.c 	struct sockaddr *dstaddr = (struct sockaddr *)&vol->dstaddr;
vol              1660 fs/cifs/connect.c 	memset(vol, 0, sizeof(*vol));
vol              1667 fs/cifs/connect.c 	memset(vol->source_rfc1001_name, 0x20, RFC1001_NAME_LEN);
vol              1669 fs/cifs/connect.c 		vol->source_rfc1001_name[i] = toupper(nodename[i]);
vol              1671 fs/cifs/connect.c 	vol->source_rfc1001_name[RFC1001_NAME_LEN] = 0;
vol              1674 fs/cifs/connect.c 	vol->target_rfc1001_name[0] = 0;
vol              1675 fs/cifs/connect.c 	vol->cred_uid = current_uid();
vol              1676 fs/cifs/connect.c 	vol->linux_uid = current_uid();
vol              1677 fs/cifs/connect.c 	vol->linux_gid = current_gid();
vol              1678 fs/cifs/connect.c 	vol->bsize = 1024 * 1024; /* can improve cp performance significantly */
vol              1685 fs/cifs/connect.c 	vol->remap = true;
vol              1688 fs/cifs/connect.c 	vol->dir_mode = vol->file_mode = S_IRUGO | S_IXUGO | S_IWUSR;
vol              1692 fs/cifs/connect.c 	vol->posix_paths = 1;
vol              1694 fs/cifs/connect.c 	vol->server_ino = 1;
vol              1697 fs/cifs/connect.c 	vol->strict_io = true;
vol              1699 fs/cifs/connect.c 	vol->actimeo = CIFS_DEF_ACTIMEO;
vol              1702 fs/cifs/connect.c 	vol->handle_timeout = 0; /* See MS-SMB2 spec section 2.2.14.2.12 */
vol              1705 fs/cifs/connect.c 	vol->ops = &smb30_operations;
vol              1706 fs/cifs/connect.c 	vol->vals = &smbdefault_values;
vol              1708 fs/cifs/connect.c 	vol->echo_interval = SMB_ECHO_INTERVAL_DEFAULT;
vol              1728 fs/cifs/connect.c 	vol->backupuid_specified = false; /* no backup intent for a user */
vol              1729 fs/cifs/connect.c 	vol->backupgid_specified = false; /* no backup intent for a group */
vol              1731 fs/cifs/connect.c 	switch (cifs_parse_devname(devname, vol)) {
vol              1763 fs/cifs/connect.c 			vol->no_xattr = 0;
vol              1766 fs/cifs/connect.c 			vol->no_xattr = 1;
vol              1781 fs/cifs/connect.c 			vol->noblocksnd = 1;
vol              1784 fs/cifs/connect.c 			vol->noautotune = 1;
vol              1787 fs/cifs/connect.c 			vol->no_lease = 1;
vol              1790 fs/cifs/connect.c 			vol->retry = 1;
vol              1793 fs/cifs/connect.c 			vol->retry = 0;
vol              1796 fs/cifs/connect.c 			vol->noperm = 0;
vol              1799 fs/cifs/connect.c 			vol->noperm = 1;
vol              1802 fs/cifs/connect.c 			vol->sfu_remap = true;
vol              1803 fs/cifs/connect.c 			vol->remap = false; /* disable SFM mapping */
vol              1806 fs/cifs/connect.c 			vol->sfu_remap = false;
vol              1809 fs/cifs/connect.c 			vol->remap = true;
vol              1810 fs/cifs/connect.c 			vol->sfu_remap = false; /* disable SFU mapping */
vol              1813 fs/cifs/connect.c 			vol->remap = false;
vol              1816 fs/cifs/connect.c 			vol->sfu_emul = 1;
vol              1819 fs/cifs/connect.c 			vol->sfu_emul = 0;
vol              1822 fs/cifs/connect.c 			vol->nodfs = 1;
vol              1826 fs/cifs/connect.c 			vol->rootfs = true;
vol              1830 fs/cifs/connect.c 			vol->posix_paths = 1;
vol              1833 fs/cifs/connect.c 			vol->posix_paths = 0;
vol              1836 fs/cifs/connect.c 			if (vol->linux_ext)
vol              1839 fs/cifs/connect.c 			vol->no_linux_ext = 1;
vol              1842 fs/cifs/connect.c 			if (vol->no_linux_ext)
vol              1845 fs/cifs/connect.c 			vol->linux_ext = 1;
vol              1848 fs/cifs/connect.c 			vol->nocase = 1;
vol              1851 fs/cifs/connect.c 			vol->nobrl =  0;
vol              1854 fs/cifs/connect.c 			vol->nobrl =  1;
vol              1860 fs/cifs/connect.c 			if (vol->file_mode ==
vol              1862 fs/cifs/connect.c 				vol->file_mode = S_IALLUGO;
vol              1865 fs/cifs/connect.c 			vol->nohandlecache = 1;
vol              1868 fs/cifs/connect.c 			vol->nohandlecache = 0;
vol              1871 fs/cifs/connect.c 			vol->mand_lock = 1;
vol              1874 fs/cifs/connect.c 			vol->setuids = 1;
vol              1877 fs/cifs/connect.c 			vol->setuids = 0;
vol              1880 fs/cifs/connect.c 			vol->setuidfromacl = 1;
vol              1883 fs/cifs/connect.c 			vol->dynperm = true;
vol              1886 fs/cifs/connect.c 			vol->dynperm = false;
vol              1889 fs/cifs/connect.c 			vol->retry = 0;
vol              1892 fs/cifs/connect.c 			vol->retry = 1;
vol              1895 fs/cifs/connect.c 			vol->intr = 0;
vol              1898 fs/cifs/connect.c 			vol->intr = 1;
vol              1901 fs/cifs/connect.c 			vol->nostrictsync = 1;
vol              1904 fs/cifs/connect.c 			vol->nostrictsync = 0;
vol              1907 fs/cifs/connect.c 			vol->server_ino = 1;
vol              1910 fs/cifs/connect.c 			vol->server_ino = 0;
vol              1913 fs/cifs/connect.c 			vol->rwpidforward = 1;
vol              1916 fs/cifs/connect.c 			vol->mode_ace = 1;
vol              1919 fs/cifs/connect.c 			vol->cifs_acl = 1;
vol              1922 fs/cifs/connect.c 			vol->cifs_acl = 0;
vol              1925 fs/cifs/connect.c 			vol->no_psx_acl = 0;
vol              1928 fs/cifs/connect.c 			vol->no_psx_acl = 1;
vol              1931 fs/cifs/connect.c 			vol->local_lease = 1;
vol              1934 fs/cifs/connect.c 			vol->sign = true;
vol              1937 fs/cifs/connect.c 			vol->sign = true;
vol              1938 fs/cifs/connect.c 			vol->ignore_signature = true;
vol              1946 fs/cifs/connect.c 			vol->seal = 1;
vol              1956 fs/cifs/connect.c 			vol->fsc = true;
vol              1959 fs/cifs/connect.c 			vol->mfsymlinks = true;
vol              1962 fs/cifs/connect.c 			vol->multiuser = true;
vol              1968 fs/cifs/connect.c 			vol->nosharesock = true;
vol              1971 fs/cifs/connect.c 			vol->nopersistent = true;
vol              1972 fs/cifs/connect.c 			if (vol->persistent) {
vol              1979 fs/cifs/connect.c 			vol->persistent = true;
vol              1980 fs/cifs/connect.c 			if ((vol->nopersistent) || (vol->resilient)) {
vol              1987 fs/cifs/connect.c 			vol->resilient = true;
vol              1988 fs/cifs/connect.c 			if (vol->persistent) {
vol              1995 fs/cifs/connect.c 			vol->resilient = false; /* already the default */
vol              1998 fs/cifs/connect.c 			vol->domainauto = true;
vol              2001 fs/cifs/connect.c 			vol->rdma = true;
vol              2004 fs/cifs/connect.c 			vol->compression = UNKNOWN_TYPE;
vol              2011 fs/cifs/connect.c 			if (get_option_uid(args, &vol->backupuid)) {
vol              2016 fs/cifs/connect.c 			vol->backupuid_specified = true;
vol              2019 fs/cifs/connect.c 			if (get_option_gid(args, &vol->backupgid)) {
vol              2024 fs/cifs/connect.c 			vol->backupgid_specified = true;
vol              2027 fs/cifs/connect.c 			if (get_option_uid(args, &vol->linux_uid)) {
vol              2035 fs/cifs/connect.c 			if (get_option_uid(args, &vol->cred_uid)) {
vol              2042 fs/cifs/connect.c 			if (get_option_gid(args, &vol->linux_gid)) {
vol              2055 fs/cifs/connect.c 			vol->file_mode = option;
vol              2063 fs/cifs/connect.c 			vol->dir_mode = option;
vol              2079 fs/cifs/connect.c 			vol->min_offload = option;
vol              2099 fs/cifs/connect.c 			vol->bsize = option;
vol              2107 fs/cifs/connect.c 			vol->rsize = option;
vol              2115 fs/cifs/connect.c 			vol->wsize = option;
vol              2123 fs/cifs/connect.c 			vol->actimeo = HZ * option;
vol              2124 fs/cifs/connect.c 			if (vol->actimeo > CIFS_MAX_ACTIMEO) {
vol              2135 fs/cifs/connect.c 			vol->handle_timeout = option;
vol              2136 fs/cifs/connect.c 			if (vol->handle_timeout > SMB3_MAX_HANDLE_TIMEOUT) {
vol              2147 fs/cifs/connect.c 			vol->echo_interval = option;
vol              2155 fs/cifs/connect.c 			vol->snapshot_time = option;
vol              2164 fs/cifs/connect.c 			vol->max_credits = option;
vol              2171 fs/cifs/connect.c 			vol->nullauth = 1;
vol              2172 fs/cifs/connect.c 			vol->username = NULL;
vol              2185 fs/cifs/connect.c 			kfree(vol->username);
vol              2186 fs/cifs/connect.c 			vol->username = kstrdup(string, GFP_KERNEL);
vol              2187 fs/cifs/connect.c 			if (!vol->username)
vol              2204 fs/cifs/connect.c 				kzfree(vol->password);
vol              2205 fs/cifs/connect.c 				vol->password = NULL;
vol              2242 fs/cifs/connect.c 			kzfree(vol->password);
vol              2245 fs/cifs/connect.c 			vol->password = kzalloc(temp_len+1, GFP_KERNEL);
vol              2246 fs/cifs/connect.c 			if (vol->password == NULL) {
vol              2252 fs/cifs/connect.c 				vol->password[j] = value[i];
vol              2258 fs/cifs/connect.c 			vol->password[j] = '\0';
vol              2287 fs/cifs/connect.c 			kfree(vol->domainname);
vol              2288 fs/cifs/connect.c 			vol->domainname = kstrdup(string, GFP_KERNEL);
vol              2289 fs/cifs/connect.c 			if (!vol->domainname) {
vol              2301 fs/cifs/connect.c 					(struct sockaddr *)&vol->srcaddr,
vol              2319 fs/cifs/connect.c 				kfree(vol->iocharset);
vol              2320 fs/cifs/connect.c 				vol->iocharset = kstrdup(string,
vol              2322 fs/cifs/connect.c 				if (!vol->iocharset) {
vol              2337 fs/cifs/connect.c 			memset(vol->source_rfc1001_name, 0x20,
vol              2348 fs/cifs/connect.c 				vol->source_rfc1001_name[i] = string[i];
vol              2363 fs/cifs/connect.c 			memset(vol->target_rfc1001_name, 0x20,
vol              2375 fs/cifs/connect.c 				vol->target_rfc1001_name[i] = string[i];
vol              2409 fs/cifs/connect.c 			if (cifs_parse_smb_version(string, vol, is_smb3) != 0)
vol              2418 fs/cifs/connect.c 			if (cifs_parse_security_flavors(string, vol) != 0)
vol              2426 fs/cifs/connect.c 			if (cifs_parse_cache_flavor(string, vol) != 0)
vol              2448 fs/cifs/connect.c 	if (vol->rdma && vol->vals->protocol_id < SMB30_PROT_ID) {
vol              2455 fs/cifs/connect.c 	if (vol->multiuser) {
vol              2460 fs/cifs/connect.c 	if (!vol->UNC) {
vol              2466 fs/cifs/connect.c 	if (!strchr(vol->UNC + 3, '\\')) {
vol              2477 fs/cifs/connect.c 		slash = strchr(&vol->UNC[2], '\\');
vol              2478 fs/cifs/connect.c 		len = slash - &vol->UNC[2];
vol              2479 fs/cifs/connect.c 		if (!cifs_convert_address(dstaddr, &vol->UNC[2], len)) {
vol              2489 fs/cifs/connect.c 		vol->override_uid = override_uid;
vol              2494 fs/cifs/connect.c 		vol->override_gid = override_gid;
vol              2619 fs/cifs/connect.c match_security(struct TCP_Server_Info *server, struct smb_vol *vol)
vol              2626 fs/cifs/connect.c 	if (server->ops->select_sectype(server, vol->sectype)
vol              2635 fs/cifs/connect.c 	if (vol->sign && !server->sign)
vol              2641 fs/cifs/connect.c static int match_server(struct TCP_Server_Info *server, struct smb_vol *vol)
vol              2643 fs/cifs/connect.c 	struct sockaddr *addr = (struct sockaddr *)&vol->dstaddr;
vol              2645 fs/cifs/connect.c 	if (vol->nosharesock)
vol              2649 fs/cifs/connect.c 	if (strcmp(vol->vals->version_string, SMB3ANY_VERSION_STRING) == 0) {
vol              2652 fs/cifs/connect.c 	} else if (strcmp(vol->vals->version_string,
vol              2656 fs/cifs/connect.c 	} else if ((server->vals != vol->vals) || (server->ops != vol->ops))
vol              2663 fs/cifs/connect.c 			   (struct sockaddr *)&vol->srcaddr))
vol              2669 fs/cifs/connect.c 	if (!match_security(server, vol))
vol              2672 fs/cifs/connect.c 	if (server->echo_interval != vol->echo_interval * HZ)
vol              2675 fs/cifs/connect.c 	if (server->rdma != vol->rdma)
vol              2678 fs/cifs/connect.c 	if (server->ignore_signature != vol->ignore_signature)
vol              2681 fs/cifs/connect.c 	if (server->min_offload != vol->min_offload)
vol              2688 fs/cifs/connect.c cifs_find_tcp_session(struct smb_vol *vol)
vol              2694 fs/cifs/connect.c 		if (!match_server(server, vol))
vol              2893 fs/cifs/connect.c static int match_session(struct cifs_ses *ses, struct smb_vol *vol)
vol              2895 fs/cifs/connect.c 	if (vol->sectype != Unspecified &&
vol              2896 fs/cifs/connect.c 	    vol->sectype != ses->sectype)
vol              2901 fs/cifs/connect.c 		if (!uid_eq(vol->cred_uid, ses->cred_uid))
vol              2907 fs/cifs/connect.c 			if (!vol->nullauth)
vol              2914 fs/cifs/connect.c 			    vol->username ? vol->username : "",
vol              2917 fs/cifs/connect.c 		if ((vol->username && strlen(vol->username) != 0) &&
vol              2920 fs/cifs/connect.c 			    vol->password ? vol->password : "",
vol              3016 fs/cifs/connect.c cifs_find_smb_ses(struct TCP_Server_Info *server, struct smb_vol *vol)
vol              3024 fs/cifs/connect.c 		if (!match_session(ses, vol))
vol              3080 fs/cifs/connect.c cifs_set_cifscreds(struct smb_vol *vol, struct cifs_ses *ses)
vol              3160 fs/cifs/connect.c 	vol->username = kstrndup(payload, len, GFP_KERNEL);
vol              3161 fs/cifs/connect.c 	if (!vol->username) {
vol              3167 fs/cifs/connect.c 	cifs_dbg(FYI, "%s: username=%s\n", __func__, vol->username);
vol              3173 fs/cifs/connect.c 		kfree(vol->username);
vol              3174 fs/cifs/connect.c 		vol->username = NULL;
vol              3179 fs/cifs/connect.c 	vol->password = kstrndup(delim, len, GFP_KERNEL);
vol              3180 fs/cifs/connect.c 	if (!vol->password) {
vol              3184 fs/cifs/connect.c 		kfree(vol->username);
vol              3185 fs/cifs/connect.c 		vol->username = NULL;
vol              3194 fs/cifs/connect.c 		vol->domainname = kstrndup(ses->domainName,
vol              3197 fs/cifs/connect.c 		if (!vol->domainname) {
vol              3201 fs/cifs/connect.c 			kfree(vol->username);
vol              3202 fs/cifs/connect.c 			vol->username = NULL;
vol              3203 fs/cifs/connect.c 			kzfree(vol->password);
vol              3204 fs/cifs/connect.c 			vol->password = NULL;
vol              3219 fs/cifs/connect.c cifs_set_cifscreds(struct smb_vol *vol __attribute__((unused)),
vol              3697 fs/cifs/connect.c 	volume_info = mnt_data->vol;
vol              4243 fs/cifs/connect.c static int mount_get_conns(struct smb_vol *vol, struct cifs_sb_info *cifs_sb,
vol              4260 fs/cifs/connect.c 	server = cifs_get_tcp_session(vol);
vol              4268 fs/cifs/connect.c 	if ((vol->max_credits < 20) || (vol->max_credits > 60000))
vol              4271 fs/cifs/connect.c 		server->max_credits = vol->max_credits;
vol              4274 fs/cifs/connect.c 	ses = cifs_get_smb_ses(server, vol);
vol              4282 fs/cifs/connect.c 	if ((vol->persistent == true) && (!(ses->server->capabilities &
vol              4289 fs/cifs/connect.c 	tcon = cifs_get_tcon(ses, vol);
vol              4307 fs/cifs/connect.c 		reset_cifs_unix_caps(*xid, tcon, cifs_sb, vol);
vol              4329 fs/cifs/connect.c 	cifs_sb->wsize = server->ops->negotiate_wsize(tcon, vol);
vol              4330 fs/cifs/connect.c 	cifs_sb->rsize = server->ops->negotiate_rsize(tcon, vol);
vol              4367 fs/cifs/connect.c build_unc_path_to_root(const struct smb_vol *vol,
vol              4371 fs/cifs/connect.c 	unsigned int pplen = useppath && vol->prepath ?
vol              4372 fs/cifs/connect.c 		strlen(vol->prepath) + 1 : 0;
vol              4373 fs/cifs/connect.c 	unsigned int unc_len = strnlen(vol->UNC, MAX_TREE_SIZE + 1);
vol              4382 fs/cifs/connect.c 	memcpy(full_path, vol->UNC, unc_len);
vol              4387 fs/cifs/connect.c 		memcpy(pos + 1, vol->prepath, pplen);
vol              4465 fs/cifs/connect.c 			   struct smb_vol *fake_vol, struct smb_vol *vol)
vol              4476 fs/cifs/connect.c 	kfree(vol->UNC);
vol              4477 fs/cifs/connect.c 	vol->UNC = new_unc;
vol              4480 fs/cifs/connect.c 		kfree(vol->prepath);
vol              4481 fs/cifs/connect.c 		vol->prepath = fake_vol->prepath;
vol              4484 fs/cifs/connect.c 	memcpy(&vol->dstaddr, &fake_vol->dstaddr, sizeof(vol->dstaddr));
vol              4492 fs/cifs/connect.c 			      struct smb_vol *vol,
vol              4538 fs/cifs/connect.c 			rc = update_vol_info(tgt_it, &fake_vol, vol);
vol              4547 fs/cifs/connect.c 				 struct smb_vol *vol,
vol              4571 fs/cifs/connect.c 		rc = setup_dfs_tgt_conn(path, tgt_it, cifs_sb, vol, xid, server,
vol              4700 fs/cifs/connect.c static int is_path_remote(struct cifs_sb_info *cifs_sb, struct smb_vol *vol,
vol              4714 fs/cifs/connect.c 	full_path = cifs_build_path_to_root(vol, cifs_sb, tcon,
vol              4755 fs/cifs/connect.c int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb_vol *vol)
vol              4767 fs/cifs/connect.c 	rc = mount_get_conns(vol, cifs_sb, &xid, &server, &ses, &tcon);
vol              4771 fs/cifs/connect.c 				    cifs_remap(cifs_sb), vol->UNC + 1, NULL,
vol              4774 fs/cifs/connect.c 			rc = is_path_remote(cifs_sb, vol, xid, server, tcon);
vol              4795 fs/cifs/connect.c 	root_path = build_unc_path_to_root(vol, cifs_sb, false);
vol              4802 fs/cifs/connect.c 	full_path = build_unc_path_to_root(vol, cifs_sb, true);
vol              4816 fs/cifs/connect.c 	(void)expand_dfs_referral(xid, ses, vol, cifs_sb, false);
vol              4834 fs/cifs/connect.c 		rc = mount_get_conns(vol, cifs_sb, &xid, &server, &ses, &tcon);
vol              4840 fs/cifs/connect.c 		rc = mount_do_dfs_failover(root_path + 1, cifs_sb, vol, NULL,
vol              4847 fs/cifs/connect.c 	root_path = build_unc_path_to_root(vol, cifs_sb, false);
vol              4863 fs/cifs/connect.c 			rc = is_path_remote(cifs_sb, vol, xid, server, tcon);
vol              4879 fs/cifs/connect.c 		full_path = build_unc_path_to_root(vol, cifs_sb, true);
vol              4887 fs/cifs/connect.c 		rc = expand_dfs_referral(xid, root_tcon->ses, vol, cifs_sb,
vol              4894 fs/cifs/connect.c 			rc = mount_get_conns(vol, cifs_sb, &xid, &server, &ses,
vol              4910 fs/cifs/connect.c 			rc = mount_do_dfs_failover(full_path + 1, cifs_sb, vol,
vol              4940 fs/cifs/connect.c 	rc = dfs_cache_add_vol(origin_mountdata, vol, cifs_sb->origin_fullpath);
vol              4963 fs/cifs/connect.c int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb_vol *vol)
vol              4971 fs/cifs/connect.c 	rc = mount_get_conns(vol, cifs_sb, &xid, &server, &ses, &tcon);
vol              4976 fs/cifs/connect.c 		rc = is_path_remote(cifs_sb, vol, xid, server, tcon);
vol              5252 fs/cifs/connect.c cifs_set_vol_auth(struct smb_vol *vol, struct cifs_ses *ses)
vol              5254 fs/cifs/connect.c 	vol->sectype = ses->sectype;
vol              5257 fs/cifs/connect.c 	if (vol->sectype == Kerberos)
vol              5260 fs/cifs/connect.c 	return cifs_set_cifscreds(vol, ses);
vol              1082 fs/cifs/dfs_cache.c static int dup_vol(struct smb_vol *vol, struct smb_vol *new)
vol              1084 fs/cifs/dfs_cache.c 	memcpy(new, vol, sizeof(*new));
vol              1086 fs/cifs/dfs_cache.c 	if (vol->username) {
vol              1087 fs/cifs/dfs_cache.c 		new->username = kstrndup(vol->username, strlen(vol->username),
vol              1092 fs/cifs/dfs_cache.c 	if (vol->password) {
vol              1093 fs/cifs/dfs_cache.c 		new->password = kstrndup(vol->password, strlen(vol->password),
vol              1098 fs/cifs/dfs_cache.c 	if (vol->UNC) {
vol              1099 fs/cifs/dfs_cache.c 		cifs_dbg(FYI, "%s: vol->UNC: %s\n", __func__, vol->UNC);
vol              1100 fs/cifs/dfs_cache.c 		new->UNC = kstrndup(vol->UNC, strlen(vol->UNC), GFP_KERNEL);
vol              1104 fs/cifs/dfs_cache.c 	if (vol->domainname) {
vol              1105 fs/cifs/dfs_cache.c 		new->domainname = kstrndup(vol->domainname,
vol              1106 fs/cifs/dfs_cache.c 					  strlen(vol->domainname), GFP_KERNEL);
vol              1110 fs/cifs/dfs_cache.c 	if (vol->iocharset) {
vol              1111 fs/cifs/dfs_cache.c 		new->iocharset = kstrndup(vol->iocharset,
vol              1112 fs/cifs/dfs_cache.c 					  strlen(vol->iocharset), GFP_KERNEL);
vol              1116 fs/cifs/dfs_cache.c 	if (vol->prepath) {
vol              1117 fs/cifs/dfs_cache.c 		cifs_dbg(FYI, "%s: vol->prepath: %s\n", __func__, vol->prepath);
vol              1118 fs/cifs/dfs_cache.c 		new->prepath = kstrndup(vol->prepath, strlen(vol->prepath),
vol              1150 fs/cifs/dfs_cache.c int dfs_cache_add_vol(char *mntdata, struct smb_vol *vol, const char *fullpath)
vol              1155 fs/cifs/dfs_cache.c 	if (!vol || !fullpath || !mntdata)
vol              1170 fs/cifs/dfs_cache.c 	rc = dup_vol(vol, &vi->vi_vol);
vol              1322 fs/cifs/dfs_cache.c 	struct smb_vol vol = {NULL};
vol              1328 fs/cifs/dfs_cache.c 	memset(&vol, 0, sizeof(vol));
vol              1346 fs/cifs/dfs_cache.c 	rc = cifs_setup_volume_info(&vol, mdata, devname, false);
vol              1354 fs/cifs/dfs_cache.c 	server = cifs_find_tcp_session(&vol);
vol              1365 fs/cifs/dfs_cache.c 	ses = cifs_get_smb_ses(server, &vol);
vol              1368 fs/cifs/dfs_cache.c 	cifs_cleanup_volume_info_contents(&vol);
vol                46 fs/cifs/dfs_cache.h extern int dfs_cache_add_vol(char *mntdata, struct smb_vol *vol,
vol                49 fs/cifs/dir.c  cifs_build_path_to_root(struct smb_vol *vol, struct cifs_sb_info *cifs_sb,
vol                52 fs/cifs/dir.c  	int pplen = vol->prepath ? strlen(vol->prepath) + 1 : 0;
vol                74 fs/cifs/dir.c  	memcpy(full_path + dfsplen + 1, vol->prepath, pplen);
vol                91 fs/ntfs/aops.c 		ntfs_error(ni->vol->sb, "Buffer I/O error, logical block "
vol               175 fs/ntfs/aops.c 	ntfs_volume *vol;
vol               186 fs/ntfs/aops.c 	vol = ni->vol;
vol               191 fs/ntfs/aops.c 	blocksize = vol->sb->s_blocksize;
vol               192 fs/ntfs/aops.c 	blocksize_bits = vol->sb->s_blocksize_bits;
vol               239 fs/ntfs/aops.c 		bh->b_bdev = vol->sb->s_bdev;
vol               246 fs/ntfs/aops.c 					vol->cluster_size_bits;
vol               248 fs/ntfs/aops.c 					vol->cluster_size_mask;
vol               264 fs/ntfs/aops.c 				bh->b_blocknr = ((lcn << vol->cluster_size_bits)
vol               306 fs/ntfs/aops.c 			ntfs_error(vol->sb, "Failed to read from inode 0x%lx, "
vol               542 fs/ntfs/aops.c 	ntfs_volume *vol;
vol               553 fs/ntfs/aops.c 	vol = ni->vol;
vol               560 fs/ntfs/aops.c 	blocksize = vol->sb->s_blocksize;
vol               561 fs/ntfs/aops.c 	blocksize_bits = vol->sb->s_blocksize_bits;
vol               567 fs/ntfs/aops.c 			ntfs_warning(vol->sb, "Error allocating page "
vol               684 fs/ntfs/aops.c 			ntfs_error(vol->sb, "Writing beyond initialized size "
vol               699 fs/ntfs/aops.c 		bh->b_bdev = vol->sb->s_bdev;
vol               703 fs/ntfs/aops.c 		vcn_ofs = vcn & vol->cluster_size_mask;
vol               704 fs/ntfs/aops.c 		vcn >>= vol->cluster_size_bits;
vol               720 fs/ntfs/aops.c 			bh->b_blocknr = ((lcn << vol->cluster_size_bits) +
vol               751 fs/ntfs/aops.c 			ntfs_error(vol->sb, "Writing into sparse regions is "
vol               787 fs/ntfs/aops.c 		ntfs_error(vol->sb, "Failed to write to inode 0x%lx, "
vol               842 fs/ntfs/aops.c 			ntfs_warning(vol->sb, "Error allocating memory. "
vol               908 fs/ntfs/aops.c 	ntfs_volume *vol = ni->vol;
vol               936 fs/ntfs/aops.c 	bh_size = vol->sb->s_blocksize;
vol               937 fs/ntfs/aops.c 	bh_size_bits = vol->sb->s_blocksize_bits;
vol              1009 fs/ntfs/aops.c 			bh->b_bdev = vol->sb->s_bdev;
vol              1012 fs/ntfs/aops.c 			vcn_ofs = vcn & vol->cluster_size_mask;
vol              1013 fs/ntfs/aops.c 			vcn >>= vol->cluster_size_bits;
vol              1030 fs/ntfs/aops.c 						vol->cluster_size_bits) +
vol              1062 fs/ntfs/aops.c 				ntfs_error(vol->sb, "Cannot write ntfs record "
vol              1070 fs/ntfs/aops.c 						vol->mft_record_size_bits,
vol              1126 fs/ntfs/aops.c 			if (!ntfs_may_write_mft_record(vol, mft_no,
vol              1157 fs/ntfs/aops.c 			ntfs_error(vol->sb, "Failed to apply mst fixups "
vol              1204 fs/ntfs/aops.c 			ntfs_error(vol->sb, "I/O error while writing ntfs "
vol              1240 fs/ntfs/aops.c 			if (mft_no < vol->mftmirr_size)
vol              1241 fs/ntfs/aops.c 				ntfs_sync_mft_mirror(vol, mft_no,
vol              1291 fs/ntfs/aops.c 		NVolSetErrors(vol);
vol              1514 fs/ntfs/aops.c 		NVolSetErrors(ni->vol);
vol              1556 fs/ntfs/aops.c 	ntfs_volume *vol = ni->vol;
vol              1563 fs/ntfs/aops.c 		ntfs_error(vol->sb, "BMAP does not make sense for %s "
vol              1573 fs/ntfs/aops.c 	blocksize = vol->sb->s_blocksize;
vol              1574 fs/ntfs/aops.c 	blocksize_bits = vol->sb->s_blocksize_bits;
vol              1587 fs/ntfs/aops.c 	cluster_size_shift = vol->cluster_size_bits;
vol              1609 fs/ntfs/aops.c 			ntfs_error(vol->sb, "Not enough memory to complete "
vol              1614 fs/ntfs/aops.c 			ntfs_error(vol->sb, "Failed to complete mapping for "
vol              1631 fs/ntfs/aops.c 	delta = ofs & vol->cluster_size_mask;
vol              1637 fs/ntfs/aops.c 			ntfs_error(vol->sb, "Physical block 0x%llx is too "
vol               109 fs/ntfs/attrib.c 				ni->vol->cluster_size_bits;
vol               173 fs/ntfs/attrib.c 	rl = ntfs_mapping_pairs_decompress(ni->vol, a, ni->runlist.rl);
vol               388 fs/ntfs/attrib.c 		ntfs_error(ni->vol->sb, "Failed with error code %lli.",
vol               514 fs/ntfs/attrib.c 		ntfs_error(ni->vol->sb, "Failed with error code %i.", err);
vol               580 fs/ntfs/attrib.c 	ntfs_volume *vol = ctx->ntfs_ino->vol;
vol               581 fs/ntfs/attrib.c 	ntfschar *upcase = vol->upcase;
vol               582 fs/ntfs/attrib.c 	u32 upcase_len = vol->upcase_len;
vol               675 fs/ntfs/attrib.c 	ntfs_error(vol->sb, "Inode is corrupt.  Run chkdsk.");
vol               676 fs/ntfs/attrib.c 	NVolSetErrors(vol);
vol               696 fs/ntfs/attrib.c int load_attribute_list(ntfs_volume *vol, runlist *runlist, u8 *al_start,
vol               711 fs/ntfs/attrib.c 	if (!vol || !runlist || !al || size <= 0 || initialized_size < 0 ||
vol               718 fs/ntfs/attrib.c 	sb = vol->sb;
vol               740 fs/ntfs/attrib.c 		block = lcn << vol->cluster_size_bits >> block_size_bits;
vol               742 fs/ntfs/attrib.c 		max_block = block + (rl->length << vol->cluster_size_bits >>
vol               849 fs/ntfs/attrib.c 	ntfs_volume *vol;
vol               870 fs/ntfs/attrib.c 	vol = base_ni->vol;
vol               915 fs/ntfs/attrib.c 				name_len, ic, vol->upcase, vol->upcase_len)) {
vol               920 fs/ntfs/attrib.c 					vol->upcase, vol->upcase_len);
vol               940 fs/ntfs/attrib.c 					vol->upcase, vol->upcase_len);
vol               965 fs/ntfs/attrib.c 					vol->upcase, vol->upcase_len))
vol               969 fs/ntfs/attrib.c 				ntfs_error(vol->sb, "Found stale mft "
vol               991 fs/ntfs/attrib.c 					ntfs_error(vol->sb, "Failed to map "
vol              1050 fs/ntfs/attrib.c 				vol->upcase, vol->upcase_len))
vol              1071 fs/ntfs/attrib.c 		ntfs_error(vol->sb, "Base inode 0x%lx contains corrupt "
vol              1084 fs/ntfs/attrib.c 		NVolSetErrors(vol);
vol              1292 fs/ntfs/attrib.c static ATTR_DEF *ntfs_attr_find_in_attrdef(const ntfs_volume *vol,
vol              1297 fs/ntfs/attrib.c 	BUG_ON(!vol->attrdef);
vol              1299 fs/ntfs/attrib.c 	for (ad = vol->attrdef; (u8*)ad - (u8*)vol->attrdef <
vol              1300 fs/ntfs/attrib.c 			vol->attrdef_size && ad->type; ++ad) {
vol              1328 fs/ntfs/attrib.c int ntfs_attr_size_bounds_check(const ntfs_volume *vol, const ATTR_TYPE type,
vol              1341 fs/ntfs/attrib.c 	ad = ntfs_attr_find_in_attrdef(vol, type);
vol              1364 fs/ntfs/attrib.c int ntfs_attr_can_be_non_resident(const ntfs_volume *vol, const ATTR_TYPE type)
vol              1369 fs/ntfs/attrib.c 	ad = ntfs_attr_find_in_attrdef(vol, type);
vol              1396 fs/ntfs/attrib.c int ntfs_attr_can_be_resident(const ntfs_volume *vol, const ATTR_TYPE type)
vol              1525 fs/ntfs/attrib.c 	ntfs_volume *vol = ni->vol;
vol              1539 fs/ntfs/attrib.c 	err = ntfs_attr_can_be_non_resident(vol, ni->type);
vol              1559 fs/ntfs/attrib.c 	new_size = (data_size + vol->cluster_size - 1) &
vol              1560 fs/ntfs/attrib.c 			~(vol->cluster_size - 1);
vol              1571 fs/ntfs/attrib.c 		rl = ntfs_cluster_alloc(vol, 0, new_size >>
vol              1572 fs/ntfs/attrib.c 				vol->cluster_size_bits, -1, DATA_ZONE, true);
vol              1577 fs/ntfs/attrib.c 					vol->cluster_size_bits) > 1 ? "s" : "",
vol              1586 fs/ntfs/attrib.c 	mp_size = ntfs_get_size_for_mapping_pairs(vol, rl, 0, -1);
vol              1673 fs/ntfs/attrib.c 			vol->cluster_size_bits);
vol              1683 fs/ntfs/attrib.c 		if (NInoCompressed(ni) || vol->major_ver < 3)
vol              1690 fs/ntfs/attrib.c 	err = ntfs_mapping_pairs_build(vol, (u8*)a + mp_ofs,
vol              1706 fs/ntfs/attrib.c 					vol->cluster_size_bits);
vol              1768 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Failed to undo partial resident "
vol              1814 fs/ntfs/attrib.c 		if (ntfs_cluster_free_from_rl(vol, rl) < 0) {
vol              1815 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Failed to release allocated "
vol              1819 fs/ntfs/attrib.c 			NVolSetErrors(vol);
vol              1896 fs/ntfs/attrib.c 	ntfs_volume *vol = ni->vol;
vol              1928 fs/ntfs/attrib.c 			start &= ~(s64)vol->cluster_size_mask;
vol              1929 fs/ntfs/attrib.c 		new_alloc_size = (new_alloc_size + vol->cluster_size - 1) &
vol              1930 fs/ntfs/attrib.c 				~(s64)vol->cluster_size_mask;
vol              1934 fs/ntfs/attrib.c 	err = ntfs_attr_size_bounds_check(vol, ni->type, new_alloc_size);
vol              1942 fs/ntfs/attrib.c 				ntfs_error(vol->sb, "Cannot extend allocation "
vol              1951 fs/ntfs/attrib.c 				ntfs_error(vol->sb, "Cannot extend allocation "
vol              1997 fs/ntfs/attrib.c 	vcn = NInoNonResident(ni) ? allocated_size >> vol->cluster_size_bits :
vol              2036 fs/ntfs/attrib.c 	if (new_alloc_size < vol->mft_record_size &&
vol              2081 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Cannot extend allocation of "
vol              2097 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Not enough space in the mft "
vol              2102 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "This attribute type may not be "
vol              2151 fs/ntfs/attrib.c 			!NVolSparseEnabled(vol) || NInoSparseDisabled(ni))
vol              2170 fs/ntfs/attrib.c 		rl = ntfs_mapping_pairs_decompress(vol, a, ni->runlist.rl);
vol              2174 fs/ntfs/attrib.c 				ntfs_error(vol->sb, "Cannot extend allocation "
vol              2205 fs/ntfs/attrib.c 	rl2 = ntfs_cluster_alloc(vol, allocated_size >> vol->cluster_size_bits,
vol              2207 fs/ntfs/attrib.c 			vol->cluster_size_bits, (rl && (rl->lcn >= 0)) ?
vol              2212 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Cannot extend allocation of "
vol              2225 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Cannot extend allocation of "
vol              2232 fs/ntfs/attrib.c 		if (ntfs_cluster_free_from_rl(vol, rl2)) {
vol              2233 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Failed to release allocated "
vol              2237 fs/ntfs/attrib.c 			NVolSetErrors(vol);
vol              2244 fs/ntfs/attrib.c 			allocated_size) >> vol->cluster_size_bits);
vol              2253 fs/ntfs/attrib.c 	mp_size = ntfs_get_size_for_mapping_pairs(vol, rl2, ll, -1);
vol              2257 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Cannot extend allocation of "
vol              2279 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Not enough space in the mft "
vol              2288 fs/ntfs/attrib.c 	err = ntfs_mapping_pairs_build(vol, (u8*)a +
vol              2293 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Cannot extend allocation of "
vol              2303 fs/ntfs/attrib.c 			vol->cluster_size_bits) - 1);
vol              2363 fs/ntfs/attrib.c 		ntfs_error(vol->sb, "Cannot complete extension of allocation "
vol              2372 fs/ntfs/attrib.c 			allocated_size >> vol->cluster_size_bits, NULL, 0,
vol              2374 fs/ntfs/attrib.c 		ntfs_error(vol->sb, "Failed to find last attribute extent of "
vol              2398 fs/ntfs/attrib.c 		NVolSetErrors(vol);
vol              2402 fs/ntfs/attrib.c 			(allocated_size >> vol->cluster_size_bits) - 1);
vol              2404 fs/ntfs/attrib.c 	ll = allocated_size >> vol->cluster_size_bits;
vol              2406 fs/ntfs/attrib.c 		ntfs_error(vol->sb, "Failed to release allocated cluster(s) "
vol              2409 fs/ntfs/attrib.c 		NVolSetErrors(vol);
vol              2419 fs/ntfs/attrib.c 	if (ntfs_rl_truncate_nolock(vol, &ni->runlist, ll) || IS_ERR(m)) {
vol              2420 fs/ntfs/attrib.c 		ntfs_error(vol->sb, "Failed to %s in error code path.  Run "
vol              2424 fs/ntfs/attrib.c 		NVolSetErrors(vol);
vol              2427 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Failed to restore attribute "
vol              2430 fs/ntfs/attrib.c 			NVolSetErrors(vol);
vol              2432 fs/ntfs/attrib.c 			if (ntfs_mapping_pairs_build(vol, (u8*)a + le16_to_cpu(
vol              2438 fs/ntfs/attrib.c 				ntfs_error(vol->sb, "Failed to restore "
vol              2442 fs/ntfs/attrib.c 				NVolSetErrors(vol);
vol              2481 fs/ntfs/attrib.c 	ntfs_volume *vol = ni->vol;
vol              2509 fs/ntfs/attrib.c 		ntfs_error(vol->sb, "Request exceeds end of attribute.");
vol              2517 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Failed to read first partial "
vol              2545 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Insufficient memory to grab "
vol              2582 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Failed to read last partial page "
vol                64 fs/ntfs/attrib.h extern int load_attribute_list(ntfs_volume *vol, runlist *rl, u8 *al_start,
vol                81 fs/ntfs/attrib.h extern int ntfs_attr_size_bounds_check(const ntfs_volume *vol,
vol                83 fs/ntfs/attrib.h extern int ntfs_attr_can_be_non_resident(const ntfs_volume *vol,
vol                85 fs/ntfs/attrib.h extern int ntfs_attr_can_be_resident(const ntfs_volume *vol,
vol                12 fs/ntfs/collate.c static int ntfs_collate_binary(ntfs_volume *vol,
vol                30 fs/ntfs/collate.c static int ntfs_collate_ntofs_ulong(ntfs_volume *vol,
vol                87 fs/ntfs/collate.c int ntfs_collate(ntfs_volume *vol, COLLATION_RULE cr,
vol               101 fs/ntfs/collate.c 		return ntfs_do_collate0x0[i](vol, data1, data1_len,
vol               106 fs/ntfs/collate.c 		return ntfs_do_collate0x1[i](vol, data1, data1_len,
vol                32 fs/ntfs/collate.h extern int ntfs_collate(ntfs_volume *vol, COLLATION_RULE cr,
vol               468 fs/ntfs/compress.c 	ntfs_volume *vol = ni->vol;
vol               469 fs/ntfs/compress.c 	struct super_block *sb = vol->sb;
vol               482 fs/ntfs/compress.c 			vol->cluster_size_bits;
vol               488 fs/ntfs/compress.c 			& ~cb_size_mask) >> vol->cluster_size_bits;
vol               490 fs/ntfs/compress.c 	unsigned int nr_cbs = (end_vcn - start_vcn) << vol->cluster_size_bits
vol               498 fs/ntfs/compress.c 			vol->cluster_size_bits >> PAGE_SHIFT;
vol               527 fs/ntfs/compress.c 		ntfs_error(vol->sb, "Failed to allocate internal buffers.");
vol               535 fs/ntfs/compress.c 	offset = start_vcn << vol->cluster_size_bits >> PAGE_SHIFT;
vol               634 fs/ntfs/compress.c 		block = lcn << vol->cluster_size_bits >> block_size_bits;
vol               636 fs/ntfs/compress.c 		max_block = block + (vol->cluster_size >> block_size_bits);
vol               681 fs/ntfs/compress.c 			ntfs_warning(vol->sb, "Buffer is unlocked but not "
vol               689 fs/ntfs/compress.c 			ntfs_warning(vol->sb, "Buffer is now uptodate. Good.");
vol               854 fs/ntfs/compress.c 			ntfs_error(vol->sb, "ntfs_decompress() failed in inode "
vol               888 fs/ntfs/compress.c 			ntfs_error(vol->sb, "Still have pages left! "
vol               914 fs/ntfs/compress.c 	ntfs_error(vol->sb, "IO error while reading compressed data.");
vol               921 fs/ntfs/compress.c 	ntfs_error(vol->sb, "ntfs_map_runlist() failed. Cannot read "
vol               927 fs/ntfs/compress.c 	ntfs_error(vol->sb, "ntfs_rl_vcn_to_lcn() failed. Cannot read "
vol               933 fs/ntfs/compress.c 	ntfs_error(vol->sb, "getblk() failed. Cannot read compression block.");
vol                69 fs/ntfs/dir.c  	ntfs_volume *vol = dir_ni->vol;
vol                70 fs/ntfs/dir.c  	struct super_block *sb = vol->sb;
vol               145 fs/ntfs/dir.c  				CASE_SENSITIVE, vol->upcase, vol->upcase_len)) {
vol               190 fs/ntfs/dir.c  		if (!NVolCaseSensitive(vol) &&
vol               195 fs/ntfs/dir.c  				IGNORE_CASE, vol->upcase, vol->upcase_len)) {
vol               236 fs/ntfs/dir.c  				IGNORE_CASE, vol->upcase, vol->upcase_len);
vol               255 fs/ntfs/dir.c  				CASE_SENSITIVE, vol->upcase, vol->upcase_len);
vol               405 fs/ntfs/dir.c  				CASE_SENSITIVE, vol->upcase, vol->upcase_len)) {
vol               450 fs/ntfs/dir.c  		if (!NVolCaseSensitive(vol) &&
vol               455 fs/ntfs/dir.c  				IGNORE_CASE, vol->upcase, vol->upcase_len)) {
vol               498 fs/ntfs/dir.c  				IGNORE_CASE, vol->upcase, vol->upcase_len);
vol               517 fs/ntfs/dir.c  				CASE_SENSITIVE, vol->upcase, vol->upcase_len);
vol               547 fs/ntfs/dir.c  			if (old_vcn << vol->cluster_size_bits >>
vol               549 fs/ntfs/dir.c  					vol->cluster_size_bits >>
vol               622 fs/ntfs/dir.c  	ntfs_volume *vol = dir_ni->vol;
vol               623 fs/ntfs/dir.c  	struct super_block *sb = vol->sb;
vol               707 fs/ntfs/dir.c  				vol->upcase, vol->upcase_len)) {
vol               721 fs/ntfs/dir.c  				IGNORE_CASE, vol->upcase, vol->upcase_len);
vol               740 fs/ntfs/dir.c  				CASE_SENSITIVE, vol->upcase, vol->upcase_len);
vol               894 fs/ntfs/dir.c  				vol->upcase, vol->upcase_len)) {
vol               908 fs/ntfs/dir.c  				IGNORE_CASE, vol->upcase, vol->upcase_len);
vol               927 fs/ntfs/dir.c  				CASE_SENSITIVE, vol->upcase, vol->upcase_len);
vol               956 fs/ntfs/dir.c  			if (old_vcn << vol->cluster_size_bits >>
vol               958 fs/ntfs/dir.c  					vol->cluster_size_bits >>
vol              1011 fs/ntfs/dir.c  static inline int ntfs_filldir(ntfs_volume *vol,
vol              1030 fs/ntfs/dir.c  			!NVolShowSystemFiles(vol)) {
vol              1034 fs/ntfs/dir.c  	name_len = ntfs_ucstonls(vol, (ntfschar*)&ie->key.file_name.file_name,
vol              1038 fs/ntfs/dir.c  		ntfs_warning(vol->sb, "Skipping unrepresentable inode 0x%llx.",
vol              1092 fs/ntfs/dir.c  	ntfs_volume *vol = NTFS_SB(sb);
vol              1109 fs/ntfs/dir.c  	if (actor->pos >= i_size + vol->mft_record_size)
vol              1126 fs/ntfs/dir.c  	if (actor->pos >= vol->mft_record_size)
vol              1199 fs/ntfs/dir.c  		rc = ntfs_filldir(vol, ndir, NULL, ie, name, actor);
vol              1212 fs/ntfs/dir.c  	actor->pos = vol->mft_record_size;
vol              1217 fs/ntfs/dir.c  	ia_pos = (s64)actor->pos - vol->mft_record_size;
vol              1382 fs/ntfs/dir.c  				vol->mft_record_size;
vol              1389 fs/ntfs/dir.c  		rc = ntfs_filldir(vol, ndir, ia_page, ie, name, actor);
vol              1408 fs/ntfs/dir.c  	actor->pos = i_size + vol->mft_record_size;
vol               327 fs/ntfs/file.c 	ntfs_volume *vol = ni->vol;
vol               381 fs/ntfs/file.c 	end = (pos + iov_iter_count(from) + vol->cluster_size_mask) &
vol               382 fs/ntfs/file.c 			~(u64)vol->cluster_size_mask;
vol               580 fs/ntfs/file.c 	ntfs_volume *vol;
vol               604 fs/ntfs/file.c 	vol = ni->vol;
vol               609 fs/ntfs/file.c 	blocksize = vol->sb->s_blocksize;
vol               610 fs/ntfs/file.c 	blocksize_bits = vol->sb->s_blocksize_bits;
vol               632 fs/ntfs/file.c 	cpos = pos >> vol->cluster_size_bits;
vol               634 fs/ntfs/file.c 	cend = (end + vol->cluster_size - 1) >> vol->cluster_size_bits;
vol               653 fs/ntfs/file.c 		bh_cpos = bh_pos >> vol->cluster_size_bits;
vol               654 fs/ntfs/file.c 		bh_cofs = bh_pos & vol->cluster_size_mask;
vol               697 fs/ntfs/file.c 		bh->b_bdev = vol->sb->s_bdev;
vol               711 fs/ntfs/file.c 					(cdelta << (vol->cluster_size_bits -
vol               847 fs/ntfs/file.c 				lcn_block = lcn << (vol->cluster_size_bits -
vol               909 fs/ntfs/file.c 			ntfs_error(vol->sb, "Failed to write to inode 0x%lx, "
vol               917 fs/ntfs/file.c 					vol->cluster_size_mask,
vol               930 fs/ntfs/file.c 		if (unlikely(vol->cluster_size < PAGE_SIZE)) {
vol               931 fs/ntfs/file.c 			bh_cend = (bh_end + vol->cluster_size - 1) >>
vol               932 fs/ntfs/file.c 					vol->cluster_size_bits;
vol               981 fs/ntfs/file.c 		rl2 = ntfs_cluster_alloc(vol, bh_cpos, 1, lcn, DATA_ZONE,
vol               995 fs/ntfs/file.c 			if (ntfs_cluster_free_from_rl(vol, rl2)) {
vol               996 fs/ntfs/file.c 				ntfs_error(vol->sb, "Failed to release "
vol              1000 fs/ntfs/file.c 				NVolSetErrors(vol);
vol              1055 fs/ntfs/file.c 					vol->cluster_size_bits) - 1;
vol              1060 fs/ntfs/file.c 		mp_size = ntfs_get_size_for_mapping_pairs(vol, rl2, vcn,
vol              1090 fs/ntfs/file.c 			ntfs_error(vol->sb, "Not enough space in the mft "
vol              1102 fs/ntfs/file.c 		err = ntfs_mapping_pairs_build(vol, (u8*)a + le16_to_cpu(
vol              1106 fs/ntfs/file.c 			ntfs_error(vol->sb, "Cannot fill hole in inode 0x%lx, "
vol              1143 fs/ntfs/file.c 			ni->itype.compressed.size += vol->cluster_size;
vol              1161 fs/ntfs/file.c 		lcn_block = lcn << (vol->cluster_size_bits - blocksize_bits);
vol              1231 fs/ntfs/file.c 			ntfs_error(vol->sb, "Failed to find required "
vol              1236 fs/ntfs/file.c 			ni->itype.compressed.size += vol->cluster_size;
vol              1245 fs/ntfs/file.c 			NVolSetErrors(vol);
vol              1262 fs/ntfs/file.c 		if (ntfs_rl_punch_nolock(vol, &ni->runlist, bh_cpos, 1)) {
vol              1263 fs/ntfs/file.c 			ntfs_error(vol->sb, "Failed to punch hole into "
vol              1267 fs/ntfs/file.c 			NVolSetErrors(vol);
vol              1275 fs/ntfs/file.c 			down_write(&vol->lcnbmp_lock);
vol              1276 fs/ntfs/file.c 			if (ntfs_bitmap_clear_bit(vol->lcnbmp_ino, lcn)) {
vol              1277 fs/ntfs/file.c 				ntfs_error(vol->sb, "Failed to release "
vol              1281 fs/ntfs/file.c 				NVolSetErrors(vol);
vol              1283 fs/ntfs/file.c 			up_write(&vol->lcnbmp_lock);
vol              1294 fs/ntfs/file.c 			ntfs_error(vol->sb, "Failed to restore attribute "
vol              1297 fs/ntfs/file.c 			NVolSetErrors(vol);
vol              1299 fs/ntfs/file.c 			if (ntfs_mapping_pairs_build(vol, (u8*)a +
vol              1305 fs/ntfs/file.c 				ntfs_error(vol->sb, "Failed to restore "
vol              1309 fs/ntfs/file.c 				NVolSetErrors(vol);
vol              1332 fs/ntfs/file.c 	end = bh_cpos << vol->cluster_size_bits;
vol              1356 fs/ntfs/file.c 	ntfs_error(vol->sb, "Failed.  Returning error code %i.", err);
vol              1499 fs/ntfs/file.c 		NVolSetErrors(ni->vol);
vol              1671 fs/ntfs/file.c 		NVolSetErrors(ni->vol);
vol              1736 fs/ntfs/file.c 	ntfs_volume *vol = ni->vol;
vol              1762 fs/ntfs/file.c 			ntfs_error(vol->sb, "Cannot perform write to inode "
vol              1775 fs/ntfs/file.c 	if (vol->cluster_size > PAGE_SIZE && NInoNonResident(ni))
vol              1776 fs/ntfs/file.c 		nr_pages = vol->cluster_size >> PAGE_SHIFT;
vol              1789 fs/ntfs/file.c 			vcn = pos >> vol->cluster_size_bits;
vol              1799 fs/ntfs/file.c 						vol->cluster_size_bits, false);
vol              1806 fs/ntfs/file.c 						ntfs_error(vol->sb, "Cannot "
vol              1819 fs/ntfs/file.c 							vol->cluster_size_mask)
vol              1821 fs/ntfs/file.c 					bytes = vol->cluster_size - (pos &
vol              1822 fs/ntfs/file.c 							vol->cluster_size_mask);
vol               110 fs/ntfs/index.c 	ntfs_volume *vol = idx_ni->vol;
vol               111 fs/ntfs/index.c 	struct super_block *sb = vol->sb;
vol               213 fs/ntfs/index.c 		rc = ntfs_collate(vol, idx_ni->itype.index.collation_rule, key,
vol               376 fs/ntfs/index.c 		rc = ntfs_collate(vol, idx_ni->itype.index.collation_rule, key,
vol               415 fs/ntfs/index.c 		if (old_vcn << vol->cluster_size_bits >>
vol               417 fs/ntfs/index.c 				vol->cluster_size_bits >>
vol               374 fs/ntfs/inode.c 	ni->vol = NTFS_SB(sb);
vol               457 fs/ntfs/inode.c 			ntfs_error(ctx->ntfs_ino->vol->sb, "Corrupt file name "
vol               462 fs/ntfs/inode.c 			ntfs_error(ctx->ntfs_ino->vol->sb, "Non-resident file "
vol               467 fs/ntfs/inode.c 			ntfs_error(ctx->ntfs_ino->vol->sb, "File name with "
vol               473 fs/ntfs/inode.c 			ntfs_error(ctx->ntfs_ino->vol->sb, "Unindexed file "
vol               489 fs/ntfs/inode.c 		ntfs_error(ctx->ntfs_ino->vol->sb, "Inode hard link count "
vol               525 fs/ntfs/inode.c 	ntfs_volume *vol = NTFS_SB(vi->i_sb);
vol               537 fs/ntfs/inode.c 	vi->i_uid = vol->uid;
vol               538 fs/ntfs/inode.c 	vi->i_gid = vol->gid;
vol               600 fs/ntfs/inode.c 		vi->i_mode &= ~vol->dmask;
vol               607 fs/ntfs/inode.c 		vi->i_mode &= ~vol->fmask;
vol               714 fs/ntfs/inode.c 			ni->attr_list_rl.rl = ntfs_mapping_pairs_decompress(vol,
vol               724 fs/ntfs/inode.c 			if ((err = load_attribute_list(vol, &ni->attr_list_rl,
vol               736 fs/ntfs/inode.c 					(u8*)ctx->mrec + vol->mft_record_size) {
vol               776 fs/ntfs/inode.c 			ntfs_error(vol->sb, "$INDEX_ROOT attribute is not "
vol               783 fs/ntfs/inode.c 			ntfs_error(vol->sb, "$INDEX_ROOT attribute name is "
vol               808 fs/ntfs/inode.c 		if (ir_end > (u8*)ctx->mrec + vol->mft_record_size) {
vol               859 fs/ntfs/inode.c 		if (vol->cluster_size <= ni->itype.index.block_size) {
vol               860 fs/ntfs/inode.c 			ni->itype.index.vcn_size = vol->cluster_size;
vol               861 fs/ntfs/inode.c 			ni->itype.index.vcn_size_bits = vol->cluster_size_bits;
vol               863 fs/ntfs/inode.c 			ni->itype.index.vcn_size = vol->sector_size;
vol               864 fs/ntfs/inode.c 			ni->itype.index.vcn_size_bits = vol->sector_size_bits;
vol               913 fs/ntfs/inode.c 			ntfs_error(vol->sb, "$INDEX_ALLOCATION attribute name "
vol              1028 fs/ntfs/inode.c 				if (vol->cluster_size > 4096) {
vol              1035 fs/ntfs/inode.c 							vol->cluster_size);
vol              1076 fs/ntfs/inode.c 							vol->cluster_size_bits);
vol              1163 fs/ntfs/inode.c 	ntfs_error(vol->sb, "Failed with error code %i.  Marking corrupt "
vol              1167 fs/ntfs/inode.c 		NVolSetErrors(vol);
vol              1195 fs/ntfs/inode.c 	ntfs_volume *vol = NTFS_SB(vi->i_sb);
vol              1250 fs/ntfs/inode.c 			if (vol->cluster_size > 4096) {
vol              1255 fs/ntfs/inode.c 						vol->cluster_size);
vol              1310 fs/ntfs/inode.c 			ntfs_error(vol->sb, "Attribute name is placed after "
vol              1339 fs/ntfs/inode.c 			ntfs_error(vol->sb, "Attribute name is placed after "
vol              1358 fs/ntfs/inode.c 						vol->cluster_size_bits);
vol              1414 fs/ntfs/inode.c 	ntfs_error(vol->sb, "Failed with error code %i while reading attribute "
vol              1421 fs/ntfs/inode.c 		NVolSetErrors(vol);
vol              1461 fs/ntfs/inode.c 	ntfs_volume *vol = NTFS_SB(vi->i_sb);
vol              1508 fs/ntfs/inode.c 		ntfs_error(vol->sb, "$INDEX_ROOT attribute is not resident.");
vol              1514 fs/ntfs/inode.c 		ntfs_error(vol->sb, "$INDEX_ROOT attribute name is placed "
vol              1530 fs/ntfs/inode.c 	if (ir_end > (u8*)ctx->mrec + vol->mft_record_size) {
vol              1569 fs/ntfs/inode.c 	if (vol->cluster_size <= ni->itype.index.block_size) {
vol              1570 fs/ntfs/inode.c 		ni->itype.index.vcn_size = vol->cluster_size;
vol              1571 fs/ntfs/inode.c 		ni->itype.index.vcn_size_bits = vol->cluster_size_bits;
vol              1573 fs/ntfs/inode.c 		ni->itype.index.vcn_size = vol->sector_size;
vol              1574 fs/ntfs/inode.c 		ni->itype.index.vcn_size_bits = vol->sector_size_bits;
vol              1614 fs/ntfs/inode.c 		ntfs_error(vol->sb, "$INDEX_ALLOCATION attribute name is "
vol              1701 fs/ntfs/inode.c 		NVolSetErrors(vol);
vol              1745 fs/ntfs/inode.c 	ntfs_volume *vol = NTFS_SB(sb);
vol              1772 fs/ntfs/inode.c 	ni->itype.index.block_size = vol->mft_record_size;
vol              1773 fs/ntfs/inode.c 	ni->itype.index.block_size_bits = vol->mft_record_size_bits;
vol              1776 fs/ntfs/inode.c 	vol->mft_ino = vi;
vol              1779 fs/ntfs/inode.c 	if (vol->mft_record_size > 64 * 1024) {
vol              1781 fs/ntfs/inode.c 				vol->mft_record_size);
vol              1784 fs/ntfs/inode.c 	i = vol->mft_record_size;
vol              1794 fs/ntfs/inode.c 	block = vol->mft_lcn << vol->cluster_size_bits >>
vol              1796 fs/ntfs/inode.c 	nr_blocks = vol->mft_record_size >> sb->s_blocksize_bits;
vol              1813 fs/ntfs/inode.c 	if (post_read_mst_fixup((NTFS_RECORD*)m, vol->mft_record_size)) {
vol              1886 fs/ntfs/inode.c 			ni->attr_list_rl.rl = ntfs_mapping_pairs_decompress(vol,
vol              1897 fs/ntfs/inode.c 			if ((err = load_attribute_list(vol, &ni->attr_list_rl,
vol              1911 fs/ntfs/inode.c 					(u8*)ctx->mrec + vol->mft_record_size) {
vol              2017 fs/ntfs/inode.c 		nrl = ntfs_mapping_pairs_decompress(vol, a, ni->runlist.rl);
vol              2038 fs/ntfs/inode.c 					>> vol->cluster_size_bits;
vol              2050 fs/ntfs/inode.c 			if ((vi->i_size >> vol->mft_record_size_bits) >=
vol              2201 fs/ntfs/inode.c 			ntfs_error(ni->vol->sb, "Clearing dirty extent inode!  "
vol              2282 fs/ntfs/inode.c 	ntfs_volume *vol = NTFS_SB(root->d_sb);
vol              2285 fs/ntfs/inode.c 	seq_printf(sf, ",uid=%i", from_kuid_munged(&init_user_ns, vol->uid));
vol              2286 fs/ntfs/inode.c 	seq_printf(sf, ",gid=%i", from_kgid_munged(&init_user_ns, vol->gid));
vol              2287 fs/ntfs/inode.c 	if (vol->fmask == vol->dmask)
vol              2288 fs/ntfs/inode.c 		seq_printf(sf, ",umask=0%o", vol->fmask);
vol              2290 fs/ntfs/inode.c 		seq_printf(sf, ",fmask=0%o", vol->fmask);
vol              2291 fs/ntfs/inode.c 		seq_printf(sf, ",dmask=0%o", vol->dmask);
vol              2293 fs/ntfs/inode.c 	seq_printf(sf, ",nls=%s", vol->nls_map->charset);
vol              2294 fs/ntfs/inode.c 	if (NVolCaseSensitive(vol))
vol              2296 fs/ntfs/inode.c 	if (NVolShowSystemFiles(vol))
vol              2298 fs/ntfs/inode.c 	if (!NVolSparseEnabled(vol))
vol              2301 fs/ntfs/inode.c 		if (on_errors_arr[i].val & vol->on_errors)
vol              2304 fs/ntfs/inode.c 	seq_printf(sf, ",mft_zone_multiplier=%i", vol->mft_zone_multiplier);
vol              2337 fs/ntfs/inode.c 	ntfs_volume *vol = ni->vol;
vol              2401 fs/ntfs/inode.c 		new_alloc_size = (new_size + vol->cluster_size - 1) &
vol              2402 fs/ntfs/inode.c 				~(s64)vol->cluster_size_mask;
vol              2434 fs/ntfs/inode.c 		err = ntfs_attr_size_bounds_check(vol, ni->type, new_size);
vol              2437 fs/ntfs/inode.c 				ntfs_error(vol->sb, "Truncate would cause the "
vol              2447 fs/ntfs/inode.c 				ntfs_error(vol->sb, "Inode 0x%lx has unknown "
vol              2471 fs/ntfs/inode.c 	if (new_size < vol->mft_record_size &&
vol              2539 fs/ntfs/inode.c 		ntfs_error(vol->sb, "Cannot truncate inode 0x%lx, attribute "
vol              2550 fs/ntfs/inode.c 		ntfs_error(vol->sb, "Not enough space in the mft record/on "
vol              2554 fs/ntfs/inode.c 		ntfs_error(vol->sb, "This attribute type may not be "
vol              2592 fs/ntfs/inode.c 				old_alloc_size >> vol->cluster_size_bits >
vol              2598 fs/ntfs/inode.c 			ntfs_error(vol->sb, "Cannot truncate inode 0x%lx, "
vol              2673 fs/ntfs/inode.c 			vol->cluster_size_bits, -1, ctx);
vol              2677 fs/ntfs/inode.c 		ntfs_error(vol->sb, "Failed to release cluster(s) (error code "
vol              2680 fs/ntfs/inode.c 		NVolSetErrors(vol);
vol              2684 fs/ntfs/inode.c 	err = ntfs_rl_truncate_nolock(vol, &ni->runlist,
vol              2685 fs/ntfs/inode.c 			new_alloc_size >> vol->cluster_size_bits);
vol              2693 fs/ntfs/inode.c 		ntfs_error(vol->sb, "Failed to %s (error code %li).%s",
vol              2702 fs/ntfs/inode.c 	mp_size = ntfs_get_size_for_mapping_pairs(vol, ni->runlist.rl, 0, -1);
vol              2704 fs/ntfs/inode.c 		ntfs_error(vol->sb, "Cannot shrink allocation of inode 0x%lx, "
vol              2724 fs/ntfs/inode.c 	err = ntfs_mapping_pairs_build(vol, (u8*)a +
vol              2728 fs/ntfs/inode.c 		ntfs_error(vol->sb, "Cannot shrink allocation of inode 0x%lx, "
vol              2738 fs/ntfs/inode.c 			vol->cluster_size_bits) - 1);
vol              2745 fs/ntfs/inode.c 					vol->cluster_size_bits;
vol              2806 fs/ntfs/inode.c 		NVolSetErrors(vol);
vol              2822 fs/ntfs/inode.c 		NVolSetErrors(vol);
vol              3071 fs/ntfs/inode.c 		NVolSetErrors(ni->vol);
vol                42 fs/ntfs/inode.h 	ntfs_volume *vol;	/* Pointer to the ntfs volume of this inode. */
vol                36 fs/ntfs/lcnalloc.c int ntfs_cluster_free_from_rl_nolock(ntfs_volume *vol,
vol                39 fs/ntfs/lcnalloc.c 	struct inode *lcnbmp_vi = vol->lcnbmp_ino;
vol               132 fs/ntfs/lcnalloc.c runlist_element *ntfs_cluster_alloc(ntfs_volume *vol, const VCN start_vcn,
vol               154 fs/ntfs/lcnalloc.c 	BUG_ON(!vol);
vol               155 fs/ntfs/lcnalloc.c 	lcnbmp_vi = vol->lcnbmp_ino;
vol               167 fs/ntfs/lcnalloc.c 	down_write(&vol->lcnbmp_lock);
vol               189 fs/ntfs/lcnalloc.c 			zone_start = vol->data1_zone_pos;
vol               191 fs/ntfs/lcnalloc.c 			zone_start = vol->mft_zone_pos;
vol               199 fs/ntfs/lcnalloc.c 	} else if (zone == DATA_ZONE && zone_start >= vol->mft_zone_start &&
vol               200 fs/ntfs/lcnalloc.c 			zone_start < vol->mft_zone_end) {
vol               201 fs/ntfs/lcnalloc.c 		zone_start = vol->mft_zone_end;
vol               207 fs/ntfs/lcnalloc.c 	} else if (zone == MFT_ZONE && (zone_start < vol->mft_zone_start ||
vol               208 fs/ntfs/lcnalloc.c 			zone_start >= vol->mft_zone_end)) {
vol               209 fs/ntfs/lcnalloc.c 		zone_start = vol->mft_lcn;
vol               210 fs/ntfs/lcnalloc.c 		if (!vol->mft_zone_end)
vol               219 fs/ntfs/lcnalloc.c 		zone_end = vol->mft_zone_end;
vol               224 fs/ntfs/lcnalloc.c 		if (zone_start >= vol->mft_zone_end) {
vol               225 fs/ntfs/lcnalloc.c 			zone_end = vol->nr_clusters;
vol               228 fs/ntfs/lcnalloc.c 			zone_end = vol->mft_zone_start;
vol               275 fs/ntfs/lcnalloc.c 			ntfs_error(vol->sb, "Failed to map page.");
vol               332 fs/ntfs/lcnalloc.c 					ntfs_error(vol->sb, "Failed to "
vol               419 fs/ntfs/lcnalloc.c 							vol->mft_zone_pos);
vol               420 fs/ntfs/lcnalloc.c 					if (tc >= vol->mft_zone_end) {
vol               421 fs/ntfs/lcnalloc.c 						vol->mft_zone_pos =
vol               422 fs/ntfs/lcnalloc.c 								vol->mft_lcn;
vol               423 fs/ntfs/lcnalloc.c 						if (!vol->mft_zone_end)
vol               424 fs/ntfs/lcnalloc.c 							vol->mft_zone_pos = 0;
vol               426 fs/ntfs/lcnalloc.c 							vol->mft_zone_pos ||
vol               427 fs/ntfs/lcnalloc.c 							tc > vol->mft_zone_pos)
vol               428 fs/ntfs/lcnalloc.c 							&& tc >= vol->mft_lcn)
vol               429 fs/ntfs/lcnalloc.c 						vol->mft_zone_pos = tc;
vol               434 fs/ntfs/lcnalloc.c 							vol->mft_zone_pos);
vol               441 fs/ntfs/lcnalloc.c 							vol->data1_zone_pos);
vol               442 fs/ntfs/lcnalloc.c 					if (tc >= vol->nr_clusters)
vol               443 fs/ntfs/lcnalloc.c 						vol->data1_zone_pos =
vol               444 fs/ntfs/lcnalloc.c 							     vol->mft_zone_end;
vol               446 fs/ntfs/lcnalloc.c 						    vol->data1_zone_pos ||
vol               447 fs/ntfs/lcnalloc.c 						    tc > vol->data1_zone_pos)
vol               448 fs/ntfs/lcnalloc.c 						    && tc >= vol->mft_zone_end)
vol               449 fs/ntfs/lcnalloc.c 						vol->data1_zone_pos = tc;
vol               454 fs/ntfs/lcnalloc.c 							vol->data1_zone_pos);
vol               461 fs/ntfs/lcnalloc.c 							vol->data2_zone_pos);
vol               462 fs/ntfs/lcnalloc.c 					if (tc >= vol->mft_zone_start)
vol               463 fs/ntfs/lcnalloc.c 						vol->data2_zone_pos = 0;
vol               465 fs/ntfs/lcnalloc.c 						      vol->data2_zone_pos ||
vol               466 fs/ntfs/lcnalloc.c 						      tc > vol->data2_zone_pos)
vol               467 fs/ntfs/lcnalloc.c 						vol->data2_zone_pos = tc;
vol               472 fs/ntfs/lcnalloc.c 							vol->data2_zone_pos);
vol               505 fs/ntfs/lcnalloc.c 				zone_start = vol->mft_zone_start;
vol               508 fs/ntfs/lcnalloc.c 				zone_start = vol->mft_zone_end;
vol               550 fs/ntfs/lcnalloc.c 							vol->mft_zone_pos);
vol               553 fs/ntfs/lcnalloc.c 					if (tc >= vol->mft_zone_end) {
vol               554 fs/ntfs/lcnalloc.c 						vol->mft_zone_pos =
vol               555 fs/ntfs/lcnalloc.c 								vol->mft_lcn;
vol               556 fs/ntfs/lcnalloc.c 						if (!vol->mft_zone_end)
vol               557 fs/ntfs/lcnalloc.c 							vol->mft_zone_pos = 0;
vol               559 fs/ntfs/lcnalloc.c 							vol->mft_zone_pos ||
vol               560 fs/ntfs/lcnalloc.c 							tc > vol->mft_zone_pos)
vol               561 fs/ntfs/lcnalloc.c 							&& tc >= vol->mft_lcn)
vol               562 fs/ntfs/lcnalloc.c 						vol->mft_zone_pos = tc;
vol               567 fs/ntfs/lcnalloc.c 							vol->mft_zone_pos);
vol               572 fs/ntfs/lcnalloc.c 						vol->data1_zone_pos;
vol               573 fs/ntfs/lcnalloc.c 				zone_end = vol->nr_clusters;
vol               574 fs/ntfs/lcnalloc.c 				if (zone_start == vol->mft_zone_end)
vol               577 fs/ntfs/lcnalloc.c 					vol->data1_zone_pos = zone_start =
vol               578 fs/ntfs/lcnalloc.c 							vol->mft_zone_end;
vol               593 fs/ntfs/lcnalloc.c 							vol->data1_zone_pos);
vol               596 fs/ntfs/lcnalloc.c 					if (tc >= vol->nr_clusters)
vol               597 fs/ntfs/lcnalloc.c 						vol->data1_zone_pos =
vol               598 fs/ntfs/lcnalloc.c 							     vol->mft_zone_end;
vol               600 fs/ntfs/lcnalloc.c 						    vol->data1_zone_pos ||
vol               601 fs/ntfs/lcnalloc.c 						    tc > vol->data1_zone_pos)
vol               602 fs/ntfs/lcnalloc.c 						    && tc >= vol->mft_zone_end)
vol               603 fs/ntfs/lcnalloc.c 						vol->data1_zone_pos = tc;
vol               608 fs/ntfs/lcnalloc.c 							vol->data1_zone_pos);
vol               613 fs/ntfs/lcnalloc.c 						vol->data2_zone_pos;
vol               614 fs/ntfs/lcnalloc.c 				zone_end = vol->mft_zone_start;
vol               618 fs/ntfs/lcnalloc.c 					vol->data2_zone_pos = zone_start =
vol               634 fs/ntfs/lcnalloc.c 							vol->data2_zone_pos);
vol               637 fs/ntfs/lcnalloc.c 					if (tc >= vol->mft_zone_start)
vol               638 fs/ntfs/lcnalloc.c 						vol->data2_zone_pos = 0;
vol               640 fs/ntfs/lcnalloc.c 						      vol->data2_zone_pos ||
vol               641 fs/ntfs/lcnalloc.c 						      tc > vol->data2_zone_pos)
vol               642 fs/ntfs/lcnalloc.c 						vol->data2_zone_pos = tc;
vol               647 fs/ntfs/lcnalloc.c 							vol->data2_zone_pos);
vol               676 fs/ntfs/lcnalloc.c 		mft_zone_size = vol->mft_zone_end - vol->mft_zone_start;
vol               679 fs/ntfs/lcnalloc.c 				(unsigned long long)vol->mft_zone_start,
vol               680 fs/ntfs/lcnalloc.c 				(unsigned long long)vol->mft_zone_end,
vol               689 fs/ntfs/lcnalloc.c 		zone_end = vol->mft_zone_end;
vol               692 fs/ntfs/lcnalloc.c 			vol->mft_zone_end = vol->mft_zone_start + mft_zone_size;
vol               694 fs/ntfs/lcnalloc.c 			vol->data2_zone_pos = vol->mft_zone_start =
vol               695 fs/ntfs/lcnalloc.c 					vol->mft_zone_end = 0;
vol               696 fs/ntfs/lcnalloc.c 		if (vol->mft_zone_pos >= vol->mft_zone_end) {
vol               697 fs/ntfs/lcnalloc.c 			vol->mft_zone_pos = vol->mft_lcn;
vol               698 fs/ntfs/lcnalloc.c 			if (!vol->mft_zone_end)
vol               699 fs/ntfs/lcnalloc.c 				vol->mft_zone_pos = 0;
vol               702 fs/ntfs/lcnalloc.c 				vol->data1_zone_pos = vol->mft_zone_end;
vol               714 fs/ntfs/lcnalloc.c 				(unsigned long long)vol->mft_zone_start,
vol               715 fs/ntfs/lcnalloc.c 				(unsigned long long)vol->mft_zone_end,
vol               716 fs/ntfs/lcnalloc.c 				(unsigned long long)vol->mft_zone_pos,
vol               719 fs/ntfs/lcnalloc.c 				(unsigned long long)vol->data1_zone_pos);
vol               740 fs/ntfs/lcnalloc.c 		up_write(&vol->lcnbmp_lock);
vol               744 fs/ntfs/lcnalloc.c 	ntfs_error(vol->sb, "Failed to allocate clusters, aborting "
vol               758 fs/ntfs/lcnalloc.c 		err2 = ntfs_cluster_free_from_rl_nolock(vol, rl);
vol               760 fs/ntfs/lcnalloc.c 			ntfs_error(vol->sb, "Failed to rollback (error %i).  "
vol               763 fs/ntfs/lcnalloc.c 			NVolSetErrors(vol);
vol               770 fs/ntfs/lcnalloc.c 				(long long)vol->data1_zone_pos);
vol               771 fs/ntfs/lcnalloc.c 	up_write(&vol->lcnbmp_lock);
vol               839 fs/ntfs/lcnalloc.c 	ntfs_volume *vol;
vol               849 fs/ntfs/lcnalloc.c 	vol = ni->vol;
vol               850 fs/ntfs/lcnalloc.c 	lcnbmp_vi = vol->lcnbmp_ino;
vol               862 fs/ntfs/lcnalloc.c 		down_write(&vol->lcnbmp_lock);
vol               869 fs/ntfs/lcnalloc.c 			ntfs_error(vol->sb, "Failed to find first runlist "
vol               877 fs/ntfs/lcnalloc.c 			ntfs_error(vol->sb, "First runlist element has "
vol               896 fs/ntfs/lcnalloc.c 				ntfs_error(vol->sb, "Failed to clear first run "
vol               924 fs/ntfs/lcnalloc.c 					ntfs_error(vol->sb, "Failed to map "
vol               933 fs/ntfs/lcnalloc.c 					ntfs_error(vol->sb, "Runlist element "
vol               953 fs/ntfs/lcnalloc.c 					ntfs_error(vol->sb, "Failed to clear "
vol               968 fs/ntfs/lcnalloc.c 		up_write(&vol->lcnbmp_lock);
vol               980 fs/ntfs/lcnalloc.c 		up_write(&vol->lcnbmp_lock);
vol               990 fs/ntfs/lcnalloc.c 		ntfs_error(vol->sb, "Failed to rollback (error %i).  Leaving "
vol               993 fs/ntfs/lcnalloc.c 		NVolSetErrors(vol);
vol               995 fs/ntfs/lcnalloc.c 	up_write(&vol->lcnbmp_lock);
vol               996 fs/ntfs/lcnalloc.c 	ntfs_error(vol->sb, "Aborting (error %i).", err);
vol                29 fs/ntfs/lcnalloc.h extern runlist_element *ntfs_cluster_alloc(ntfs_volume *vol,
vol                99 fs/ntfs/lcnalloc.h extern int ntfs_cluster_free_from_rl_nolock(ntfs_volume *vol,
vol               118 fs/ntfs/lcnalloc.h static inline int ntfs_cluster_free_from_rl(ntfs_volume *vol,
vol               123 fs/ntfs/lcnalloc.h 	down_write(&vol->lcnbmp_lock);
vol               124 fs/ntfs/lcnalloc.h 	ret = ntfs_cluster_free_from_rl_nolock(vol, rl);
vol               125 fs/ntfs/lcnalloc.h 	up_write(&vol->lcnbmp_lock);
vol               475 fs/ntfs/logfile.c 	ntfs_volume *vol = NTFS_SB(log_vi->i_sb);
vol               487 fs/ntfs/logfile.c 	if (NVolLogFileEmpty(vol))
vol               517 fs/ntfs/logfile.c 		ntfs_error(vol->sb, "$LogFile is too small.");
vol               535 fs/ntfs/logfile.c 				ntfs_error(vol->sb, "Error mapping $LogFile "
vol               603 fs/ntfs/logfile.c 		NVolSetLogFileEmpty(vol);
vol               610 fs/ntfs/logfile.c 		ntfs_error(vol->sb, "Did not find any restart pages in "
vol               668 fs/ntfs/logfile.c 	ntfs_volume *vol = NTFS_SB(log_vi->i_sb);
vol               673 fs/ntfs/logfile.c 	if (NVolLogFileEmpty(vol)) {
vol               680 fs/ntfs/logfile.c 		ntfs_error(vol->sb, "Restart page buffer is invalid.  This is "
vol               717 fs/ntfs/logfile.c 	ntfs_volume *vol = log_ni->vol;
vol               718 fs/ntfs/logfile.c 	struct super_block *sb = vol->sb;
vol               726 fs/ntfs/logfile.c 	if (NVolLogFileEmpty(vol)) {
vol               741 fs/ntfs/logfile.c 	end_vcn = (log_ni->initialized_size + vol->cluster_size_mask) >>
vol               742 fs/ntfs/logfile.c 			vol->cluster_size_bits;
vol               781 fs/ntfs/logfile.c 		block = lcn << vol->cluster_size_bits >> block_size_bits;
vol               785 fs/ntfs/logfile.c 		end_block = (lcn + len) << vol->cluster_size_bits >>
vol               832 fs/ntfs/logfile.c 	NVolSetLogFileEmpty(vol);
vol               841 fs/ntfs/logfile.c 	NVolSetErrors(vol);
vol                39 fs/ntfs/mft.c  	ntfs_volume *vol = ni->vol;
vol                40 fs/ntfs/mft.c  	struct inode *mft_vi = vol->mft_ino;
vol                52 fs/ntfs/mft.c  	index = (u64)ni->mft_no << vol->mft_record_size_bits >>
vol                54 fs/ntfs/mft.c  	ofs = (ni->mft_no << vol->mft_record_size_bits) & ~PAGE_MASK;
vol                63 fs/ntfs/mft.c  				vol->mft_record_size) {
vol                65 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Attempt to read mft record 0x%lx, "
vol                82 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Mft record 0x%lx is corrupt.  "
vol                86 fs/ntfs/mft.c  		NVolSetErrors(vol);
vol               162 fs/ntfs/mft.c  	ntfs_error(ni->vol->sb, "Failed with error code %lu.", -PTR_ERR(m));
vol               282 fs/ntfs/mft.c  			ntfs_error(base_ni->vol->sb, "Found stale extent mft "
vol               288 fs/ntfs/mft.c  		ntfs_error(base_ni->vol->sb, "Failed to map extent "
vol               293 fs/ntfs/mft.c  	ni = ntfs_new_extent_inode(base_ni->vol->sb, mft_no);
vol               299 fs/ntfs/mft.c  	ni->vol = base_ni->vol;
vol               313 fs/ntfs/mft.c  		ntfs_error(base_ni->vol->sb, "Found stale extent mft "
vol               326 fs/ntfs/mft.c  			ntfs_error(base_ni->vol->sb, "Failed to allocate "
vol               427 fs/ntfs/mft.c  static int ntfs_sync_mft_mirror_umount(ntfs_volume *vol,
vol               430 fs/ntfs/mft.c  	BUG_ON(vol->mftmirr_ino);
vol               431 fs/ntfs/mft.c  	ntfs_error(vol->sb, "Umount time mft mirror syncing is not "
vol               454 fs/ntfs/mft.c  int ntfs_sync_mft_mirror(ntfs_volume *vol, const unsigned long mft_no,
vol               458 fs/ntfs/mft.c  	unsigned int blocksize = vol->sb->s_blocksize;
vol               459 fs/ntfs/mft.c  	int max_bhs = vol->mft_record_size / blocksize;
vol               466 fs/ntfs/mft.c  	unsigned char blocksize_bits = vol->sb->s_blocksize_bits;
vol               472 fs/ntfs/mft.c  	if (unlikely(!vol->mftmirr_ino)) {
vol               474 fs/ntfs/mft.c  		err = ntfs_sync_mft_mirror_umount(vol, mft_no, m);
vol               480 fs/ntfs/mft.c  	page = ntfs_map_page(vol->mftmirr_ino->i_mapping, mft_no >>
vol               481 fs/ntfs/mft.c  			(PAGE_SHIFT - vol->mft_record_size_bits));
vol               483 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to map mft mirror page.");
vol               491 fs/ntfs/mft.c  	page_ofs = (mft_no << vol->mft_record_size_bits) & ~PAGE_MASK;
vol               495 fs/ntfs/mft.c  	memcpy(kmirr, m, vol->mft_record_size);
vol               515 fs/ntfs/mft.c  	m_end = m_start + vol->mft_record_size;
vol               529 fs/ntfs/mft.c  			bh->b_bdev = vol->sb->s_bdev;
vol               531 fs/ntfs/mft.c  			vcn = ((VCN)mft_no << vol->mft_record_size_bits) +
vol               533 fs/ntfs/mft.c  			vcn_ofs = vcn & vol->cluster_size_mask;
vol               534 fs/ntfs/mft.c  			vcn >>= vol->cluster_size_bits;
vol               536 fs/ntfs/mft.c  				down_read(&NTFS_I(vol->mftmirr_ino)->
vol               538 fs/ntfs/mft.c  				rl = NTFS_I(vol->mftmirr_ino)->runlist.rl;
vol               553 fs/ntfs/mft.c  						vol->cluster_size_bits) +
vol               558 fs/ntfs/mft.c  				ntfs_error(vol->sb, "Cannot write mft mirror "
vol               574 fs/ntfs/mft.c  		up_read(&NTFS_I(vol->mftmirr_ino)->runlist.lock);
vol               617 fs/ntfs/mft.c  		ntfs_error(vol->sb, "I/O error while writing mft mirror "
vol               620 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to synchronize $MFTMirr (error "
vol               624 fs/ntfs/mft.c  		NVolSetErrors(vol);
vol               662 fs/ntfs/mft.c  	ntfs_volume *vol = ni->vol;
vol               664 fs/ntfs/mft.c  	unsigned int blocksize = vol->sb->s_blocksize;
vol               665 fs/ntfs/mft.c  	unsigned char blocksize_bits = vol->sb->s_blocksize_bits;
vol               666 fs/ntfs/mft.c  	int max_bhs = vol->mft_record_size / blocksize;
vol               695 fs/ntfs/mft.c  	m_end = m_start + vol->mft_record_size;
vol               722 fs/ntfs/mft.c  			bh->b_bdev = vol->sb->s_bdev;
vol               724 fs/ntfs/mft.c  			vcn = ((VCN)ni->mft_no << vol->mft_record_size_bits) +
vol               726 fs/ntfs/mft.c  			vcn_ofs = vcn & vol->cluster_size_mask;
vol               727 fs/ntfs/mft.c  			vcn >>= vol->cluster_size_bits;
vol               729 fs/ntfs/mft.c  				down_read(&NTFS_I(vol->mft_ino)->runlist.lock);
vol               730 fs/ntfs/mft.c  				rl = NTFS_I(vol->mft_ino)->runlist.rl;
vol               741 fs/ntfs/mft.c  						vol->cluster_size_bits) +
vol               746 fs/ntfs/mft.c  				ntfs_error(vol->sb, "Cannot write mft record "
vol               761 fs/ntfs/mft.c  		up_read(&NTFS_I(vol->mft_ino)->runlist.lock);
vol               767 fs/ntfs/mft.c  	err = pre_write_mst_fixup((NTFS_RECORD*)m, vol->mft_record_size);
vol               769 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to apply mst fixups!");
vol               786 fs/ntfs/mft.c  	if (!sync && ni->mft_no < vol->mftmirr_size)
vol               787 fs/ntfs/mft.c  		ntfs_sync_mft_mirror(vol, ni->mft_no, m, sync);
vol               804 fs/ntfs/mft.c  	if (sync && ni->mft_no < vol->mftmirr_size)
vol               805 fs/ntfs/mft.c  		ntfs_sync_mft_mirror(vol, ni->mft_no, m, sync);
vol               811 fs/ntfs/mft.c  		ntfs_error(vol->sb, "I/O error while writing mft record "
vol               832 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Not enough memory to write mft record.  "
vol               837 fs/ntfs/mft.c  		NVolSetErrors(vol);
vol               920 fs/ntfs/mft.c  bool ntfs_may_write_mft_record(ntfs_volume *vol, const unsigned long mft_no,
vol               923 fs/ntfs/mft.c  	struct super_block *sb = vol->sb;
vol               924 fs/ntfs/mft.c  	struct inode *mft_vi = vol->mft_ino;
vol              1126 fs/ntfs/mft.c  static int ntfs_mft_bitmap_find_and_alloc_free_rec_nolock(ntfs_volume *vol,
vol              1139 fs/ntfs/mft.c  	mftbmp_mapping = vol->mftbmp_ino->i_mapping;
vol              1144 fs/ntfs/mft.c  	read_lock_irqsave(&NTFS_I(vol->mft_ino)->size_lock, flags);
vol              1145 fs/ntfs/mft.c  	pass_end = NTFS_I(vol->mft_ino)->allocated_size >>
vol              1146 fs/ntfs/mft.c  			vol->mft_record_size_bits;
vol              1147 fs/ntfs/mft.c  	read_unlock_irqrestore(&NTFS_I(vol->mft_ino)->size_lock, flags);
vol              1148 fs/ntfs/mft.c  	read_lock_irqsave(&NTFS_I(vol->mftbmp_ino)->size_lock, flags);
vol              1149 fs/ntfs/mft.c  	ll = NTFS_I(vol->mftbmp_ino)->initialized_size << 3;
vol              1150 fs/ntfs/mft.c  	read_unlock_irqrestore(&NTFS_I(vol->mftbmp_ino)->size_lock, flags);
vol              1155 fs/ntfs/mft.c  		data_pos = vol->mft_data_pos;
vol              1190 fs/ntfs/mft.c  				ntfs_error(vol->sb, "Failed to read mft "
vol              1273 fs/ntfs/mft.c  static int ntfs_mft_bitmap_extend_allocation_nolock(ntfs_volume *vol)
vol              1294 fs/ntfs/mft.c  	mft_ni = NTFS_I(vol->mft_ino);
vol              1295 fs/ntfs/mft.c  	mftbmp_ni = NTFS_I(vol->mftbmp_ino);
vol              1305 fs/ntfs/mft.c  			(ll - 1) >> vol->cluster_size_bits, NULL);
vol              1308 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to determine last allocated "
vol              1325 fs/ntfs/mft.c  	page = ntfs_map_page(vol->lcnbmp_ino->i_mapping,
vol              1329 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to read from lcn bitmap.");
vol              1334 fs/ntfs/mft.c  	down_write(&vol->lcnbmp_lock);
vol              1340 fs/ntfs/mft.c  		up_write(&vol->lcnbmp_lock);
vol              1348 fs/ntfs/mft.c  		up_write(&vol->lcnbmp_lock);
vol              1351 fs/ntfs/mft.c  		rl2 = ntfs_cluster_alloc(vol, rl[1].vcn, 1, lcn, DATA_ZONE,
vol              1355 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to allocate a cluster for "
vol              1362 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to merge runlists for mft "
vol              1364 fs/ntfs/mft.c  			if (ntfs_cluster_free_from_rl(vol, rl2)) {
vol              1365 fs/ntfs/mft.c  				ntfs_error(vol->sb, "Failed to deallocate "
vol              1367 fs/ntfs/mft.c  				NVolSetErrors(vol);
vol              1385 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to map mft record.");
vol              1391 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to get search context.");
vol              1399 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to find last attribute extent of "
vol              1415 fs/ntfs/mft.c  	mp_size = ntfs_get_size_for_mapping_pairs(vol, rl2, ll, -1);
vol              1417 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Get size for mapping pairs failed for "
vol              1430 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to resize attribute "
vol              1439 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Not enough space in this mft record to "
vol              1447 fs/ntfs/mft.c  	ret = ntfs_mapping_pairs_build(vol, (u8*)a +
vol              1451 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to build mapping pairs array for "
vol              1473 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to find first attribute "
vol              1480 fs/ntfs/mft.c  	mftbmp_ni->allocated_size += vol->cluster_size;
vol              1497 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to find last attribute extent of "
vol              1500 fs/ntfs/mft.c  		mftbmp_ni->allocated_size += vol->cluster_size;
vol              1509 fs/ntfs/mft.c  		NVolSetErrors(vol);
vol              1526 fs/ntfs/mft.c  	down_write(&vol->lcnbmp_lock);
vol              1527 fs/ntfs/mft.c  	if (ntfs_bitmap_clear_bit(vol->lcnbmp_ino, lcn)) {
vol              1528 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to free allocated cluster.%s", es);
vol              1529 fs/ntfs/mft.c  		NVolSetErrors(vol);
vol              1531 fs/ntfs/mft.c  	up_write(&vol->lcnbmp_lock);
vol              1533 fs/ntfs/mft.c  		if (ntfs_mapping_pairs_build(vol, (u8*)a + le16_to_cpu(
vol              1538 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to restore mapping pairs "
vol              1540 fs/ntfs/mft.c  			NVolSetErrors(vol);
vol              1543 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to restore attribute "
vol              1545 fs/ntfs/mft.c  			NVolSetErrors(vol);
vol              1572 fs/ntfs/mft.c  static int ntfs_mft_bitmap_extend_initialized_nolock(ntfs_volume *vol)
vol              1584 fs/ntfs/mft.c  	mft_ni = NTFS_I(vol->mft_ino);
vol              1585 fs/ntfs/mft.c  	mftbmp_vi = vol->mftbmp_ino;
vol              1590 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to map mft record.");
vol              1595 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to get search context.");
vol              1602 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to find first attribute extent of "
vol              1638 fs/ntfs/mft.c  	ntfs_error(vol->sb, "Failed to write to mft bitmap.");
vol              1642 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to map mft record.%s", es);
vol              1643 fs/ntfs/mft.c  		NVolSetErrors(vol);
vol              1648 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to get search context.%s", es);
vol              1649 fs/ntfs/mft.c  		NVolSetErrors(vol);
vol              1654 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to find first attribute extent of "
vol              1656 fs/ntfs/mft.c  		NVolSetErrors(vol);
vol              1709 fs/ntfs/mft.c  static int ntfs_mft_data_extend_allocation_nolock(ntfs_volume *vol)
vol              1725 fs/ntfs/mft.c  	mft_ni = NTFS_I(vol->mft_ino);
vol              1736 fs/ntfs/mft.c  			(ll - 1) >> vol->cluster_size_bits, NULL);
vol              1739 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to determine last allocated "
vol              1750 fs/ntfs/mft.c  	min_nr = vol->mft_record_size >> vol->cluster_size_bits;
vol              1754 fs/ntfs/mft.c  	nr = vol->mft_record_size << 4 >> vol->cluster_size_bits;
vol              1761 fs/ntfs/mft.c  	if (unlikely((ll + (nr << vol->cluster_size_bits)) >>
vol              1762 fs/ntfs/mft.c  			vol->mft_record_size_bits >= (1ll << 32))) {
vol              1764 fs/ntfs/mft.c  		if (unlikely((ll + (nr << vol->cluster_size_bits)) >>
vol              1765 fs/ntfs/mft.c  				vol->mft_record_size_bits >= (1ll << 32))) {
vol              1766 fs/ntfs/mft.c  			ntfs_warning(vol->sb, "Cannot allocate mft record "
vol              1777 fs/ntfs/mft.c  		rl2 = ntfs_cluster_alloc(vol, old_last_vcn, nr, lcn, MFT_ZONE,
vol              1782 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to allocate the minimal "
vol              1800 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to merge runlists for mft data "
vol              1802 fs/ntfs/mft.c  		if (ntfs_cluster_free_from_rl(vol, rl2)) {
vol              1803 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to deallocate clusters "
vol              1805 fs/ntfs/mft.c  			NVolSetErrors(vol);
vol              1818 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to map mft record.");
vol              1824 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to get search context.");
vol              1831 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to find last attribute extent of "
vol              1847 fs/ntfs/mft.c  	mp_size = ntfs_get_size_for_mapping_pairs(vol, rl2, ll, -1);
vol              1849 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Get size for mapping pairs failed for "
vol              1862 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to resize attribute "
vol              1876 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Not enough space in this mft record to "
vol              1884 fs/ntfs/mft.c  	ret = ntfs_mapping_pairs_build(vol, (u8*)a +
vol              1888 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to build mapping pairs array of "
vol              1912 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to find first attribute "
vol              1919 fs/ntfs/mft.c  	mft_ni->allocated_size += nr << vol->cluster_size_bits;
vol              1935 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to find last attribute extent of "
vol              1938 fs/ntfs/mft.c  		mft_ni->allocated_size += nr << vol->cluster_size_bits;
vol              1947 fs/ntfs/mft.c  		NVolSetErrors(vol);
vol              1954 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to free clusters from mft data "
vol              1956 fs/ntfs/mft.c  		NVolSetErrors(vol);
vol              1959 fs/ntfs/mft.c  	if (ntfs_rl_truncate_nolock(vol, &mft_ni->runlist, old_last_vcn)) {
vol              1960 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to truncate mft data attribute "
vol              1962 fs/ntfs/mft.c  		NVolSetErrors(vol);
vol              1965 fs/ntfs/mft.c  		if (ntfs_mapping_pairs_build(vol, (u8*)a + le16_to_cpu(
vol              1970 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to restore mapping pairs "
vol              1972 fs/ntfs/mft.c  			NVolSetErrors(vol);
vol              1975 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to restore attribute "
vol              1977 fs/ntfs/mft.c  			NVolSetErrors(vol);
vol              1982 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to restore attribute search "
vol              1984 fs/ntfs/mft.c  		NVolSetErrors(vol);
vol              2007 fs/ntfs/mft.c  static int ntfs_mft_record_layout(const ntfs_volume *vol, const s64 mft_no,
vol              2014 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Mft record number 0x%llx exceeds "
vol              2019 fs/ntfs/mft.c  	memset(m, 0, vol->mft_record_size);
vol              2021 fs/ntfs/mft.c  	if (vol->major_ver < 3 || (vol->major_ver == 3 && !vol->minor_ver))
vol              2033 fs/ntfs/mft.c  	if (vol->mft_record_size >= NTFS_BLOCK_SIZE)
vol              2034 fs/ntfs/mft.c  		m->usa_count = cpu_to_le16(vol->mft_record_size /
vol              2038 fs/ntfs/mft.c  		ntfs_warning(vol->sb, "Sector size is bigger than mft record "
vol              2064 fs/ntfs/mft.c  	m->bytes_allocated = cpu_to_le32(vol->mft_record_size);
vol              2086 fs/ntfs/mft.c  static int ntfs_mft_record_format(const ntfs_volume *vol, const s64 mft_no)
vol              2089 fs/ntfs/mft.c  	struct inode *mft_vi = vol->mft_ino;
vol              2101 fs/ntfs/mft.c  	index = mft_no << vol->mft_record_size_bits >> PAGE_SHIFT;
vol              2102 fs/ntfs/mft.c  	ofs = (mft_no << vol->mft_record_size_bits) & ~PAGE_MASK;
vol              2107 fs/ntfs/mft.c  		if (unlikely(index > end_index || ofs + vol->mft_record_size >=
vol              2109 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Tried to format non-existing mft "
vol              2117 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to map page containing mft record "
vol              2125 fs/ntfs/mft.c  	err = ntfs_mft_record_layout(vol, mft_no, m);
vol              2127 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to layout mft record 0x%llx.",
vol              2238 fs/ntfs/mft.c  ntfs_inode *ntfs_mft_record_alloc(ntfs_volume *vol, const int mode,
vol              2271 fs/ntfs/mft.c  	mft_ni = NTFS_I(vol->mft_ino);
vol              2272 fs/ntfs/mft.c  	mftbmp_ni = NTFS_I(vol->mftbmp_ino);
vol              2273 fs/ntfs/mft.c  	down_write(&vol->mftbmp_lock);
vol              2274 fs/ntfs/mft.c  	bit = ntfs_mft_bitmap_find_and_alloc_free_rec_nolock(vol, base_ni);
vol              2281 fs/ntfs/mft.c  		up_write(&vol->mftbmp_lock);
vol              2293 fs/ntfs/mft.c  	ll = mft_ni->initialized_size >> vol->mft_record_size_bits;
vol              2321 fs/ntfs/mft.c  			(long long)i_size_read(vol->mftbmp_ino),
vol              2327 fs/ntfs/mft.c  		err = ntfs_mft_bitmap_extend_allocation_nolock(vol);
vol              2329 fs/ntfs/mft.c  			up_write(&vol->mftbmp_lock);
vol              2338 fs/ntfs/mft.c  				(long long)i_size_read(vol->mftbmp_ino),
vol              2348 fs/ntfs/mft.c  	err = ntfs_mft_bitmap_extend_initialized_nolock(vol);
vol              2350 fs/ntfs/mft.c  		up_write(&vol->mftbmp_lock);
vol              2359 fs/ntfs/mft.c  			(long long)i_size_read(vol->mftbmp_ino),
vol              2367 fs/ntfs/mft.c  	err = ntfs_bitmap_set_bit(vol->mftbmp_ino, bit);
vol              2369 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to allocate bit in mft bitmap.");
vol              2370 fs/ntfs/mft.c  		up_write(&vol->mftbmp_lock);
vol              2383 fs/ntfs/mft.c  	ll = (bit + 1) << vol->mft_record_size_bits;
vol              2403 fs/ntfs/mft.c  			(long long)i_size_read(vol->mft_ino),
vol              2407 fs/ntfs/mft.c  		err = ntfs_mft_data_extend_allocation_nolock(vol);
vol              2409 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to extend mft data "
vol              2418 fs/ntfs/mft.c  				(long long)i_size_read(vol->mft_ino),
vol              2431 fs/ntfs/mft.c  	old_data_size = vol->mft_ino->i_size;
vol              2436 fs/ntfs/mft.c  				vol->mft_record_size;
vol              2437 fs/ntfs/mft.c  		mft_no = mft_ni->initialized_size >> vol->mft_record_size_bits;
vol              2438 fs/ntfs/mft.c  		if (new_initialized_size > i_size_read(vol->mft_ino))
vol              2439 fs/ntfs/mft.c  			i_size_write(vol->mft_ino, new_initialized_size);
vol              2443 fs/ntfs/mft.c  		err = ntfs_mft_record_format(vol, mft_no);
vol              2445 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to format mft record.");
vol              2456 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to map mft record.");
vol              2462 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to get search context.");
vol              2470 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to find first attribute extent of "
vol              2481 fs/ntfs/mft.c  			cpu_to_sle64(i_size_read(vol->mft_ino));
vol              2493 fs/ntfs/mft.c  			(long long)i_size_read(vol->mft_ino),
vol              2495 fs/ntfs/mft.c  	BUG_ON(i_size_read(vol->mft_ino) > mft_ni->allocated_size);
vol              2496 fs/ntfs/mft.c  	BUG_ON(mft_ni->initialized_size > i_size_read(vol->mft_ino));
vol              2508 fs/ntfs/mft.c  	up_write(&vol->mftbmp_lock);
vol              2513 fs/ntfs/mft.c  	index = bit << vol->mft_record_size_bits >> PAGE_SHIFT;
vol              2514 fs/ntfs/mft.c  	ofs = (bit << vol->mft_record_size_bits) & ~PAGE_MASK;
vol              2516 fs/ntfs/mft.c  	page = ntfs_map_page(vol->mft_ino->i_mapping, index);
vol              2518 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to map page containing allocated "
vol              2532 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Mft record 0x%llx was marked "
vol              2541 fs/ntfs/mft.c  			NVolSetErrors(vol);
vol              2553 fs/ntfs/mft.c  		err = ntfs_mft_record_layout(vol, bit, m);
vol              2555 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to layout allocated mft "
vol              2590 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to map allocated extent "
vol              2624 fs/ntfs/mft.c  		vi = new_inode(vol->sb);
vol              2640 fs/ntfs/mft.c  		vi->i_uid = vol->uid;
vol              2641 fs/ntfs/mft.c  		vi->i_gid = vol->gid;
vol              2652 fs/ntfs/mft.c  			vi->i_mode &= ~vol->dmask;
vol              2662 fs/ntfs/mft.c  			if (vol->cluster_size <= ni->itype.index.block_size) {
vol              2663 fs/ntfs/mft.c  				ni->itype.index.vcn_size = vol->cluster_size;
vol              2665 fs/ntfs/mft.c  						vol->cluster_size_bits;
vol              2667 fs/ntfs/mft.c  				ni->itype.index.vcn_size = vol->sector_size;
vol              2669 fs/ntfs/mft.c  						vol->sector_size_bits;
vol              2673 fs/ntfs/mft.c  			vi->i_mode &= ~vol->fmask;
vol              2719 fs/ntfs/mft.c  		vol->mft_data_pos = bit + 1;
vol              2732 fs/ntfs/mft.c  	i_size_write(vol->mft_ino, old_data_size);
vol              2736 fs/ntfs/mft.c  	down_write(&vol->mftbmp_lock);
vol              2738 fs/ntfs/mft.c  	if (ntfs_bitmap_clear_bit(vol->mftbmp_ino, bit)) {
vol              2739 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to clear bit in mft bitmap.%s", es);
vol              2740 fs/ntfs/mft.c  		NVolSetErrors(vol);
vol              2742 fs/ntfs/mft.c  	up_write(&vol->mftbmp_lock);
vol              2746 fs/ntfs/mft.c  	ntfs_warning(vol->sb, "Cannot allocate mft record because the maximum "
vol              2748 fs/ntfs/mft.c  	up_write(&vol->mftbmp_lock);
vol              2776 fs/ntfs/mft.c  	ntfs_volume *vol = ni->vol;
vol              2799 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Tried to free busy extent inode 0x%lx, "
vol              2822 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Extent inode 0x%lx is not attached to "
vol              2853 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to write mft record 0x%lx, not "
vol              2863 fs/ntfs/mft.c  	down_write(&vol->mftbmp_lock);
vol              2864 fs/ntfs/mft.c  	err = ntfs_bitmap_clear_bit(vol->mftbmp_ino, mft_no);
vol              2865 fs/ntfs/mft.c  	up_write(&vol->mftbmp_lock);
vol              2872 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to clear bit in mft bitmap.%s", es);
vol              2873 fs/ntfs/mft.c  		NVolSetErrors(vol);
vol              2885 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to allocate internal "
vol              2888 fs/ntfs/mft.c  			NVolSetErrors(vol);
vol                65 fs/ntfs/mft.h  extern int ntfs_sync_mft_mirror(ntfs_volume *vol, const unsigned long mft_no,
vol               100 fs/ntfs/mft.h  extern bool ntfs_may_write_mft_record(ntfs_volume *vol,
vol               104 fs/ntfs/mft.h  extern ntfs_inode *ntfs_mft_record_alloc(ntfs_volume *vol, const int mode,
vol                92 fs/ntfs/namei.c 	ntfs_volume *vol = NTFS_SB(dir_ino->i_sb);
vol               103 fs/ntfs/namei.c 	uname_len = ntfs_nlstoucs(vol, dent->d_name.name, dent->d_name.len,
vol               107 fs/ntfs/namei.c 			ntfs_error(vol->sb, "Failed to convert name to "
vol               117 fs/ntfs/namei.c 		dent_inode = ntfs_iget(vol->sb, dent_ino);
vol               134 fs/ntfs/namei.c 			ntfs_error(vol->sb, "Found stale reference to inode "
vol               143 fs/ntfs/namei.c 			ntfs_error(vol->sb, "ntfs_iget(0x%lx) failed with "
vol               158 fs/ntfs/namei.c 	ntfs_error(vol->sb, "ntfs_lookup_ino_by_name() failed with error "
vol               173 fs/ntfs/namei.c 		nls_name.len = (unsigned)ntfs_ucstonls(vol,
vol               204 fs/ntfs/namei.c 				ntfs_error(vol->sb, "Inode corrupt: No WIN32 "
vol               227 fs/ntfs/namei.c 		nls_name.len = (unsigned)ntfs_ucstonls(vol,
vol               249 fs/ntfs/namei.c 	ntfs_error(vol->sb, "Illegal file name attribute. Run chkdsk.");
vol               257 fs/ntfs/namei.c 	ntfs_error(vol->sb, "Failed, returning error code %i.", err);
vol               113 fs/ntfs/ntfs.h extern int ntfs_nlstoucs(const ntfs_volume *vol, const char *ins,
vol               115 fs/ntfs/ntfs.h extern int ntfs_ucstonls(const ntfs_volume *vol, const ntfschar *ins,
vol                23 fs/ntfs/quota.c bool ntfs_mark_quotas_out_of_date(ntfs_volume *vol)
vol                31 fs/ntfs/quota.c 	if (NVolQuotaOutOfDate(vol))
vol                33 fs/ntfs/quota.c 	if (!vol->quota_ino || !vol->quota_q_ino) {
vol                34 fs/ntfs/quota.c 		ntfs_error(vol->sb, "Quota inodes are not open.");
vol                37 fs/ntfs/quota.c 	inode_lock(vol->quota_q_ino);
vol                38 fs/ntfs/quota.c 	ictx = ntfs_index_ctx_get(NTFS_I(vol->quota_q_ino));
vol                40 fs/ntfs/quota.c 		ntfs_error(vol->sb, "Failed to get index context.");
vol                46 fs/ntfs/quota.c 			ntfs_error(vol->sb, "Quota defaults entry is not "
vol                49 fs/ntfs/quota.c 			ntfs_error(vol->sb, "Lookup of quota defaults entry "
vol                54 fs/ntfs/quota.c 		ntfs_error(vol->sb, "Quota defaults entry size is invalid.  "
vol                60 fs/ntfs/quota.c 		ntfs_error(vol->sb, "Quota defaults entry version 0x%x is not "
vol                87 fs/ntfs/quota.c 	inode_unlock(vol->quota_q_ino);
vol                92 fs/ntfs/quota.c 	NVolSetQuotaOutOfDate(vol);
vol                99 fs/ntfs/quota.c 	inode_unlock(vol->quota_q_ino);
vol                17 fs/ntfs/quota.h extern bool ntfs_mark_quotas_out_of_date(ntfs_volume *vol);
vol               735 fs/ntfs/runlist.c runlist_element *ntfs_mapping_pairs_decompress(const ntfs_volume *vol,
vol               753 fs/ntfs/runlist.c 		ntfs_error(vol->sb, "Invalid arguments.");
vol               765 fs/ntfs/runlist.c 		ntfs_error(vol->sb, "Corrupt attribute.");
vol               819 fs/ntfs/runlist.c 			ntfs_error(vol->sb, "Missing length entry in mapping "
vol               828 fs/ntfs/runlist.c 			ntfs_error(vol->sb, "Invalid length in mapping pairs "
vol               864 fs/ntfs/runlist.c 			if (vol->major_ver < 3) {
vol               866 fs/ntfs/runlist.c 					ntfs_error(vol->sb, "lcn delta == -1");
vol               868 fs/ntfs/runlist.c 					ntfs_error(vol->sb, "lcn == -1");
vol               873 fs/ntfs/runlist.c 				ntfs_error(vol->sb, "Invalid LCN < -1 in "
vol               894 fs/ntfs/runlist.c 		ntfs_error(vol->sb, "Corrupt mapping pairs array in "
vol               904 fs/ntfs/runlist.c 				vol->cluster_size - 1) >>
vol               905 fs/ntfs/runlist.c 				vol->cluster_size_bits) - 1;
vol               930 fs/ntfs/runlist.c 				ntfs_error(vol->sb, "Corrupt attribute.  "
vol               957 fs/ntfs/runlist.c 	ntfs_error(vol->sb, "Failed to merge runlists.");
vol               960 fs/ntfs/runlist.c 	ntfs_error(vol->sb, "Corrupt attribute.");
vol              1117 fs/ntfs/runlist.c int ntfs_get_size_for_mapping_pairs(const ntfs_volume *vol,
vol              1169 fs/ntfs/runlist.c 		if (likely(rl->lcn >= 0 || vol->major_ver < 3)) {
vol              1204 fs/ntfs/runlist.c 		if (likely(rl->lcn >= 0 || vol->major_ver < 3)) {
vol              1309 fs/ntfs/runlist.c int ntfs_mapping_pairs_build(const ntfs_volume *vol, s8 *dst,
vol              1376 fs/ntfs/runlist.c 		if (likely(rl->lcn >= 0 || vol->major_ver < 3)) {
vol              1427 fs/ntfs/runlist.c 		if (likely(rl->lcn >= 0 || vol->major_ver < 3)) {
vol              1485 fs/ntfs/runlist.c int ntfs_rl_truncate_nolock(const ntfs_volume *vol, runlist *const runlist,
vol              1509 fs/ntfs/runlist.c 			ntfs_error(vol->sb, "Not enough memory to allocate "
vol              1558 fs/ntfs/runlist.c 				ntfs_warning(vol->sb, "Failed to shrink "
vol              1582 fs/ntfs/runlist.c 				ntfs_error(vol->sb, "Failed to expand runlist "
vol              1630 fs/ntfs/runlist.c int ntfs_rl_punch_nolock(const ntfs_volume *vol, runlist *const runlist,
vol              1716 fs/ntfs/runlist.c 				ntfs_warning(vol->sb, "Failed to shrink "
vol              1889 fs/ntfs/runlist.c 	ntfs_error(vol->sb, "Not enough memory to extend runlist buffer.");
vol                62 fs/ntfs/runlist.h extern runlist_element *ntfs_mapping_pairs_decompress(const ntfs_volume *vol,
vol                72 fs/ntfs/runlist.h extern int ntfs_get_size_for_mapping_pairs(const ntfs_volume *vol,
vol                76 fs/ntfs/runlist.h extern int ntfs_mapping_pairs_build(const ntfs_volume *vol, s8 *dst,
vol                80 fs/ntfs/runlist.h extern int ntfs_rl_truncate_nolock(const ntfs_volume *vol,
vol                83 fs/ntfs/runlist.h int ntfs_rl_punch_nolock(const ntfs_volume *vol, runlist *const runlist,
vol                87 fs/ntfs/super.c static bool parse_options(ntfs_volume *vol, char *opt)
vol               192 fs/ntfs/super.c 			ntfs_warning(vol->sb, "Ignoring obsolete option %s.",
vol               196 fs/ntfs/super.c 				ntfs_warning(vol->sb, "Option iocharset is "
vol               207 fs/ntfs/super.c 					ntfs_error(vol->sb, "NLS character set "
vol               211 fs/ntfs/super.c 				ntfs_error(vol->sb, "NLS character set %s not "
vol               220 fs/ntfs/super.c 			ntfs_warning(vol->sb, "Option utf8 is no longer "
vol               234 fs/ntfs/super.c 			ntfs_error(vol->sb, "Unrecognized mount option %s.", p);
vol               247 fs/ntfs/super.c 		ntfs_warning(vol->sb, "Sloppy option given. Ignoring "
vol               252 fs/ntfs/super.c 			ntfs_error(vol->sb, "Invalid errors option argument "
vol               258 fs/ntfs/super.c 		if (vol->nls_map && vol->nls_map != nls_map) {
vol               259 fs/ntfs/super.c 			ntfs_error(vol->sb, "Cannot change NLS character set "
vol               264 fs/ntfs/super.c 		vol->nls_map = nls_map;
vol               266 fs/ntfs/super.c 		if (!vol->nls_map) {
vol               267 fs/ntfs/super.c 			vol->nls_map = load_nls_default();
vol               268 fs/ntfs/super.c 			if (!vol->nls_map) {
vol               269 fs/ntfs/super.c 				ntfs_error(vol->sb, "Failed to load default "
vol               274 fs/ntfs/super.c 					vol->nls_map->charset);
vol               278 fs/ntfs/super.c 		if (vol->mft_zone_multiplier && vol->mft_zone_multiplier !=
vol               280 fs/ntfs/super.c 			ntfs_error(vol->sb, "Cannot change mft_zone_multiplier "
vol               285 fs/ntfs/super.c 			ntfs_error(vol->sb, "Invalid mft_zone_multiplier. "
vol               289 fs/ntfs/super.c 		vol->mft_zone_multiplier = mft_zone_multiplier;
vol               291 fs/ntfs/super.c 	if (!vol->mft_zone_multiplier)
vol               292 fs/ntfs/super.c 		vol->mft_zone_multiplier = 1;
vol               294 fs/ntfs/super.c 		vol->on_errors = on_errors;
vol               295 fs/ntfs/super.c 	if (!vol->on_errors || vol->on_errors == ON_ERRORS_RECOVER)
vol               296 fs/ntfs/super.c 		vol->on_errors |= ON_ERRORS_CONTINUE;
vol               298 fs/ntfs/super.c 		vol->uid = uid;
vol               300 fs/ntfs/super.c 		vol->gid = gid;
vol               302 fs/ntfs/super.c 		vol->fmask = fmask;
vol               304 fs/ntfs/super.c 		vol->dmask = dmask;
vol               307 fs/ntfs/super.c 			NVolSetShowSystemFiles(vol);
vol               309 fs/ntfs/super.c 			NVolClearShowSystemFiles(vol);
vol               313 fs/ntfs/super.c 			NVolSetCaseSensitive(vol);
vol               315 fs/ntfs/super.c 			NVolClearCaseSensitive(vol);
vol               319 fs/ntfs/super.c 			NVolClearSparseEnabled(vol);
vol               321 fs/ntfs/super.c 			if (!NVolSparseEnabled(vol) &&
vol               322 fs/ntfs/super.c 					vol->major_ver && vol->major_ver < 3)
vol               323 fs/ntfs/super.c 				ntfs_warning(vol->sb, "Not enabling sparse "
vol               326 fs/ntfs/super.c 						"version 3.0).", vol->major_ver,
vol               327 fs/ntfs/super.c 						vol->minor_ver);
vol               329 fs/ntfs/super.c 				NVolSetSparseEnabled(vol);
vol               334 fs/ntfs/super.c 	ntfs_error(vol->sb, "The %s option requires an argument.", p);
vol               337 fs/ntfs/super.c 	ntfs_error(vol->sb, "The %s option requires a boolean argument.", p);
vol               340 fs/ntfs/super.c 	ntfs_error(vol->sb, "Invalid %s option argument: %s", p, ov);
vol               361 fs/ntfs/super.c static int ntfs_write_volume_flags(ntfs_volume *vol, const VOLUME_FLAGS flags)
vol               363 fs/ntfs/super.c 	ntfs_inode *ni = NTFS_I(vol->vol_ino);
vol               370 fs/ntfs/super.c 			le16_to_cpu(vol->vol_flags), le16_to_cpu(flags));
vol               371 fs/ntfs/super.c 	if (vol->vol_flags == flags)
vol               390 fs/ntfs/super.c 	vol->vol_flags = vi->flags = flags;
vol               403 fs/ntfs/super.c 	ntfs_error(vol->sb, "Failed with error code %i.", -err);
vol               416 fs/ntfs/super.c static inline int ntfs_set_volume_flags(ntfs_volume *vol, VOLUME_FLAGS flags)
vol               419 fs/ntfs/super.c 	return ntfs_write_volume_flags(vol, vol->vol_flags | flags);
vol               431 fs/ntfs/super.c static inline int ntfs_clear_volume_flags(ntfs_volume *vol, VOLUME_FLAGS flags)
vol               434 fs/ntfs/super.c 	flags = vol->vol_flags & cpu_to_le16(~le16_to_cpu(flags));
vol               435 fs/ntfs/super.c 	return ntfs_write_volume_flags(vol, flags);
vol               454 fs/ntfs/super.c 	ntfs_volume *vol = NTFS_SB(sb);
vol               480 fs/ntfs/super.c 		if (NVolErrors(vol)) {
vol               485 fs/ntfs/super.c 		if (vol->vol_flags & VOLUME_IS_DIRTY) {
vol               489 fs/ntfs/super.c 		if (vol->vol_flags & VOLUME_MODIFIED_BY_CHKDSK) {
vol               494 fs/ntfs/super.c 		if (vol->vol_flags & VOLUME_MUST_MOUNT_RO_MASK) {
vol               497 fs/ntfs/super.c 					(unsigned)le16_to_cpu(vol->vol_flags),
vol               501 fs/ntfs/super.c 		if (ntfs_set_volume_flags(vol, VOLUME_IS_DIRTY)) {
vol               510 fs/ntfs/super.c 		if ((vol->major_ver > 1)) {
vol               511 fs/ntfs/super.c 			if (ntfs_set_volume_flags(vol, VOLUME_MOUNTED_ON_NT4)) {
vol               514 fs/ntfs/super.c 				NVolSetErrors(vol);
vol               519 fs/ntfs/super.c 		if (!ntfs_empty_logfile(vol->logfile_ino)) {
vol               522 fs/ntfs/super.c 			NVolSetErrors(vol);
vol               525 fs/ntfs/super.c 		if (!ntfs_mark_quotas_out_of_date(vol)) {
vol               528 fs/ntfs/super.c 			NVolSetErrors(vol);
vol               531 fs/ntfs/super.c 		if (!ntfs_stamp_usnjrnl(vol)) {
vol               534 fs/ntfs/super.c 			NVolSetErrors(vol);
vol               539 fs/ntfs/super.c 		if (!NVolErrors(vol)) {
vol               540 fs/ntfs/super.c 			if (ntfs_clear_volume_flags(vol, VOLUME_IS_DIRTY))
vol               550 fs/ntfs/super.c 	if (!parse_options(vol, opt))
vol               752 fs/ntfs/super.c static bool parse_ntfs_boot_sector(ntfs_volume *vol, const NTFS_BOOT_SECTOR *b)
vol               758 fs/ntfs/super.c 	vol->sector_size = le16_to_cpu(b->bpb.bytes_per_sector);
vol               759 fs/ntfs/super.c 	vol->sector_size_bits = ffs(vol->sector_size) - 1;
vol               760 fs/ntfs/super.c 	ntfs_debug("vol->sector_size = %i (0x%x)", vol->sector_size,
vol               761 fs/ntfs/super.c 			vol->sector_size);
vol               762 fs/ntfs/super.c 	ntfs_debug("vol->sector_size_bits = %i (0x%x)", vol->sector_size_bits,
vol               763 fs/ntfs/super.c 			vol->sector_size_bits);
vol               764 fs/ntfs/super.c 	if (vol->sector_size < vol->sb->s_blocksize) {
vol               765 fs/ntfs/super.c 		ntfs_error(vol->sb, "Sector size (%i) is smaller than the "
vol               767 fs/ntfs/super.c 				"supported.  Sorry.", vol->sector_size,
vol               768 fs/ntfs/super.c 				vol->sb->s_blocksize);
vol               777 fs/ntfs/super.c 	vol->cluster_size = vol->sector_size << sectors_per_cluster_bits;
vol               778 fs/ntfs/super.c 	vol->cluster_size_mask = vol->cluster_size - 1;
vol               779 fs/ntfs/super.c 	vol->cluster_size_bits = ffs(vol->cluster_size) - 1;
vol               780 fs/ntfs/super.c 	ntfs_debug("vol->cluster_size = %i (0x%x)", vol->cluster_size,
vol               781 fs/ntfs/super.c 			vol->cluster_size);
vol               782 fs/ntfs/super.c 	ntfs_debug("vol->cluster_size_mask = 0x%x", vol->cluster_size_mask);
vol               783 fs/ntfs/super.c 	ntfs_debug("vol->cluster_size_bits = %i", vol->cluster_size_bits);
vol               784 fs/ntfs/super.c 	if (vol->cluster_size < vol->sector_size) {
vol               785 fs/ntfs/super.c 		ntfs_error(vol->sb, "Cluster size (%i) is smaller than the "
vol               787 fs/ntfs/super.c 				"Sorry.", vol->cluster_size, vol->sector_size);
vol               794 fs/ntfs/super.c 		vol->mft_record_size = vol->cluster_size <<
vol               802 fs/ntfs/super.c 		vol->mft_record_size = 1 << -clusters_per_mft_record;
vol               803 fs/ntfs/super.c 	vol->mft_record_size_mask = vol->mft_record_size - 1;
vol               804 fs/ntfs/super.c 	vol->mft_record_size_bits = ffs(vol->mft_record_size) - 1;
vol               805 fs/ntfs/super.c 	ntfs_debug("vol->mft_record_size = %i (0x%x)", vol->mft_record_size,
vol               806 fs/ntfs/super.c 			vol->mft_record_size);
vol               808 fs/ntfs/super.c 			vol->mft_record_size_mask);
vol               810 fs/ntfs/super.c 			vol->mft_record_size_bits, vol->mft_record_size_bits);
vol               815 fs/ntfs/super.c 	if (vol->mft_record_size > PAGE_SIZE) {
vol               816 fs/ntfs/super.c 		ntfs_error(vol->sb, "Mft record size (%i) exceeds the "
vol               819 fs/ntfs/super.c 				vol->mft_record_size, PAGE_SIZE);
vol               823 fs/ntfs/super.c 	if (vol->mft_record_size < vol->sector_size) {
vol               824 fs/ntfs/super.c 		ntfs_error(vol->sb, "Mft record size (%i) is smaller than the "
vol               826 fs/ntfs/super.c 				"Sorry.", vol->mft_record_size,
vol               827 fs/ntfs/super.c 				vol->sector_size);
vol               834 fs/ntfs/super.c 		vol->index_record_size = vol->cluster_size <<
vol               843 fs/ntfs/super.c 		vol->index_record_size = 1 << -clusters_per_index_record;
vol               844 fs/ntfs/super.c 	vol->index_record_size_mask = vol->index_record_size - 1;
vol               845 fs/ntfs/super.c 	vol->index_record_size_bits = ffs(vol->index_record_size) - 1;
vol               847 fs/ntfs/super.c 			vol->index_record_size, vol->index_record_size);
vol               849 fs/ntfs/super.c 			vol->index_record_size_mask);
vol               851 fs/ntfs/super.c 			vol->index_record_size_bits,
vol               852 fs/ntfs/super.c 			vol->index_record_size_bits);
vol               854 fs/ntfs/super.c 	if (vol->index_record_size < vol->sector_size) {
vol               855 fs/ntfs/super.c 		ntfs_error(vol->sb, "Index record size (%i) is smaller than "
vol               857 fs/ntfs/super.c 				"supported.  Sorry.", vol->index_record_size,
vol               858 fs/ntfs/super.c 				vol->sector_size);
vol               868 fs/ntfs/super.c 		ntfs_error(vol->sb, "Cannot handle 64-bit clusters.  Sorry.");
vol               871 fs/ntfs/super.c 	vol->nr_clusters = ll;
vol               872 fs/ntfs/super.c 	ntfs_debug("vol->nr_clusters = 0x%llx", (long long)vol->nr_clusters);
vol               879 fs/ntfs/super.c 		if ((ll << vol->cluster_size_bits) >= (1ULL << 41)) {
vol               880 fs/ntfs/super.c 			ntfs_error(vol->sb, "Volume size (%lluTiB) is too "
vol               884 fs/ntfs/super.c 					vol->cluster_size_bits));
vol               889 fs/ntfs/super.c 	if (ll >= vol->nr_clusters) {
vol               890 fs/ntfs/super.c 		ntfs_error(vol->sb, "MFT LCN (%lli, 0x%llx) is beyond end of "
vol               895 fs/ntfs/super.c 	vol->mft_lcn = ll;
vol               896 fs/ntfs/super.c 	ntfs_debug("vol->mft_lcn = 0x%llx", (long long)vol->mft_lcn);
vol               898 fs/ntfs/super.c 	if (ll >= vol->nr_clusters) {
vol               899 fs/ntfs/super.c 		ntfs_error(vol->sb, "MFTMirr LCN (%lli, 0x%llx) is beyond end "
vol               904 fs/ntfs/super.c 	vol->mftmirr_lcn = ll;
vol               905 fs/ntfs/super.c 	ntfs_debug("vol->mftmirr_lcn = 0x%llx", (long long)vol->mftmirr_lcn);
vol               915 fs/ntfs/super.c 	if (vol->cluster_size <= (4 << vol->mft_record_size_bits))
vol               916 fs/ntfs/super.c 		vol->mftmirr_size = 4;
vol               918 fs/ntfs/super.c 		vol->mftmirr_size = vol->cluster_size >>
vol               919 fs/ntfs/super.c 				vol->mft_record_size_bits;
vol               920 fs/ntfs/super.c 	ntfs_debug("vol->mftmirr_size = %i", vol->mftmirr_size);
vol               922 fs/ntfs/super.c 	vol->serial_no = le64_to_cpu(b->volume_serial_number);
vol               924 fs/ntfs/super.c 			(unsigned long long)vol->serial_no);
vol               934 fs/ntfs/super.c static void ntfs_setup_allocators(ntfs_volume *vol)
vol               941 fs/ntfs/super.c 			vol->mft_zone_multiplier);
vol               944 fs/ntfs/super.c 	mft_zone_size = vol->nr_clusters;
vol               945 fs/ntfs/super.c 	switch (vol->mft_zone_multiplier) {  /* % of volume size in clusters */
vol               962 fs/ntfs/super.c 	vol->mft_zone_start = vol->mft_zone_pos = vol->mft_lcn;
vol               964 fs/ntfs/super.c 			(unsigned long long)vol->mft_zone_pos);
vol               974 fs/ntfs/super.c 	mft_lcn = (8192 + 2 * vol->cluster_size - 1) / vol->cluster_size;
vol               975 fs/ntfs/super.c 	if (mft_lcn * vol->cluster_size < 16 * 1024)
vol               976 fs/ntfs/super.c 		mft_lcn = (16 * 1024 + vol->cluster_size - 1) /
vol               977 fs/ntfs/super.c 				vol->cluster_size;
vol               978 fs/ntfs/super.c 	if (vol->mft_zone_start <= mft_lcn)
vol               979 fs/ntfs/super.c 		vol->mft_zone_start = 0;
vol               981 fs/ntfs/super.c 			(unsigned long long)vol->mft_zone_start);
vol               987 fs/ntfs/super.c 	vol->mft_zone_end = vol->mft_lcn + mft_zone_size;
vol               988 fs/ntfs/super.c 	while (vol->mft_zone_end >= vol->nr_clusters) {
vol               990 fs/ntfs/super.c 		vol->mft_zone_end = vol->mft_lcn + mft_zone_size;
vol               993 fs/ntfs/super.c 			(unsigned long long)vol->mft_zone_end);
vol               998 fs/ntfs/super.c 	vol->data1_zone_pos = vol->mft_zone_end;
vol              1000 fs/ntfs/super.c 			(unsigned long long)vol->data1_zone_pos);
vol              1001 fs/ntfs/super.c 	vol->data2_zone_pos = 0;
vol              1003 fs/ntfs/super.c 			(unsigned long long)vol->data2_zone_pos);
vol              1006 fs/ntfs/super.c 	vol->mft_data_pos = 24;
vol              1008 fs/ntfs/super.c 			(unsigned long long)vol->mft_data_pos);
vol              1020 fs/ntfs/super.c static bool load_and_init_mft_mirror(ntfs_volume *vol)
vol              1027 fs/ntfs/super.c 	tmp_ino = ntfs_iget(vol->sb, FILE_MFTMirr);
vol              1056 fs/ntfs/super.c 	tmp_ni->itype.index.block_size = vol->mft_record_size;
vol              1057 fs/ntfs/super.c 	tmp_ni->itype.index.block_size_bits = vol->mft_record_size_bits;
vol              1058 fs/ntfs/super.c 	vol->mftmirr_ino = tmp_ino;
vol              1073 fs/ntfs/super.c static bool check_mft_mirror(ntfs_volume *vol)
vol              1075 fs/ntfs/super.c 	struct super_block *sb = vol->sb;
vol              1085 fs/ntfs/super.c 	mrecs_per_page = PAGE_SIZE / vol->mft_record_size;
vol              1087 fs/ntfs/super.c 	BUG_ON(!vol->mftmirr_size);
vol              1101 fs/ntfs/super.c 			mft_page = ntfs_map_page(vol->mft_ino->i_mapping,
vol              1109 fs/ntfs/super.c 			mirr_page = ntfs_map_page(vol->mftmirr_ino->i_mapping,
vol              1144 fs/ntfs/super.c 				bytes > vol->mft_record_size ||
vol              1148 fs/ntfs/super.c 					bytes > vol->mft_record_size ||
vol              1150 fs/ntfs/super.c 				bytes = vol->mft_record_size;
vol              1158 fs/ntfs/super.c 		kmft += vol->mft_record_size;
vol              1159 fs/ntfs/super.c 		kmirr += vol->mft_record_size;
vol              1160 fs/ntfs/super.c 	} while (++i < vol->mftmirr_size);
vol              1167 fs/ntfs/super.c 	rl2[0].lcn = vol->mftmirr_lcn;
vol              1168 fs/ntfs/super.c 	rl2[0].length = (vol->mftmirr_size * vol->mft_record_size +
vol              1169 fs/ntfs/super.c 			vol->cluster_size - 1) / vol->cluster_size;
vol              1177 fs/ntfs/super.c 	mirr_ni = NTFS_I(vol->mftmirr_ino);
vol              1202 fs/ntfs/super.c static bool load_and_check_logfile(ntfs_volume *vol,
vol              1208 fs/ntfs/super.c 	tmp_ino = ntfs_iget(vol->sb, FILE_LogFile);
vol              1221 fs/ntfs/super.c 	vol->logfile_ino = tmp_ino;
vol              1252 fs/ntfs/super.c static int check_windows_hibernation_status(ntfs_volume *vol)
vol              1273 fs/ntfs/super.c 	inode_lock(vol->root_ino);
vol              1274 fs/ntfs/super.c 	mref = ntfs_lookup_inode_by_name(NTFS_I(vol->root_ino), hiberfil, 12,
vol              1276 fs/ntfs/super.c 	inode_unlock(vol->root_ino);
vol              1286 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to find inode number for "
vol              1293 fs/ntfs/super.c 	vi = ntfs_iget(vol->sb, MREF(mref));
vol              1297 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to load hiberfil.sys.");
vol              1308 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to read from hiberfil.sys.");
vol              1349 fs/ntfs/super.c static bool load_and_init_quota(ntfs_volume *vol)
vol              1366 fs/ntfs/super.c 	inode_lock(vol->extend_ino);
vol              1367 fs/ntfs/super.c 	mref = ntfs_lookup_inode_by_name(NTFS_I(vol->extend_ino), Quota, 6,
vol              1369 fs/ntfs/super.c 	inode_unlock(vol->extend_ino);
vol              1382 fs/ntfs/super.c 			NVolSetQuotaOutOfDate(vol);
vol              1386 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to find inode number for $Quota.");
vol              1392 fs/ntfs/super.c 	tmp_ino = ntfs_iget(vol->sb, MREF(mref));
vol              1396 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to load $Quota.");
vol              1399 fs/ntfs/super.c 	vol->quota_ino = tmp_ino;
vol              1401 fs/ntfs/super.c 	tmp_ino = ntfs_index_iget(vol->quota_ino, Q, 2);
vol              1403 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to load $Quota/$Q index.");
vol              1406 fs/ntfs/super.c 	vol->quota_q_ino = tmp_ino;
vol              1425 fs/ntfs/super.c static bool load_and_init_usnjrnl(ntfs_volume *vol)
vol              1449 fs/ntfs/super.c 	inode_lock(vol->extend_ino);
vol              1450 fs/ntfs/super.c 	mref = ntfs_lookup_inode_by_name(NTFS_I(vol->extend_ino), UsnJrnl, 8,
vol              1452 fs/ntfs/super.c 	inode_unlock(vol->extend_ino);
vol              1466 fs/ntfs/super.c 			NVolSetUsnJrnlStamped(vol);
vol              1470 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to find inode number for "
vol              1477 fs/ntfs/super.c 	tmp_ino = ntfs_iget(vol->sb, MREF(mref));
vol              1481 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to load $UsnJrnl.");
vol              1484 fs/ntfs/super.c 	vol->usnjrnl_ino = tmp_ino;
vol              1489 fs/ntfs/super.c 	if (unlikely(vol->vol_flags & VOLUME_DELETE_USN_UNDERWAY)) {
vol              1496 fs/ntfs/super.c 	tmp_ino = ntfs_attr_iget(vol->usnjrnl_ino, AT_DATA, Max, 4);
vol              1498 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to load $UsnJrnl/$DATA/$Max "
vol              1502 fs/ntfs/super.c 	vol->usnjrnl_max_ino = tmp_ino;
vol              1504 fs/ntfs/super.c 		ntfs_error(vol->sb, "Found corrupt $UsnJrnl/$DATA/$Max "
vol              1511 fs/ntfs/super.c 	tmp_ino = ntfs_attr_iget(vol->usnjrnl_ino, AT_DATA, J, 2);
vol              1513 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to load $UsnJrnl/$DATA/$J "
vol              1517 fs/ntfs/super.c 	vol->usnjrnl_j_ino = tmp_ino;
vol              1519 fs/ntfs/super.c 	tmp_ni = NTFS_I(vol->usnjrnl_j_ino);
vol              1521 fs/ntfs/super.c 		ntfs_error(vol->sb, "$UsnJrnl/$DATA/$J attribute is resident "
vol              1526 fs/ntfs/super.c 	page = ntfs_map_page(vol->usnjrnl_max_ino->i_mapping, 0);
vol              1528 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to read from $UsnJrnl/$DATA/$Max "
vol              1536 fs/ntfs/super.c 		ntfs_error(vol->sb, "Allocation delta (0x%llx) exceeds "
vol              1548 fs/ntfs/super.c 			i_size_read(vol->usnjrnl_j_ino))) {
vol              1550 fs/ntfs/super.c 				i_size_read(vol->usnjrnl_j_ino))) {
vol              1559 fs/ntfs/super.c 		ntfs_error(vol->sb, "$UsnJrnl has lowest valid usn (0x%llx) "
vol              1563 fs/ntfs/super.c 				i_size_read(vol->usnjrnl_j_ino));
vol              1578 fs/ntfs/super.c static bool load_and_init_attrdef(ntfs_volume *vol)
vol              1581 fs/ntfs/super.c 	struct super_block *sb = vol->sb;
vol              1600 fs/ntfs/super.c 	vol->attrdef = (ATTR_DEF*)ntfs_malloc_nofs(i_size);
vol              1601 fs/ntfs/super.c 	if (!vol->attrdef)
vol              1612 fs/ntfs/super.c 		memcpy((u8*)vol->attrdef + (index++ << PAGE_SHIFT),
vol              1621 fs/ntfs/super.c 	vol->attrdef_size = i_size;
vol              1626 fs/ntfs/super.c 	ntfs_free(vol->attrdef);
vol              1627 fs/ntfs/super.c 	vol->attrdef = NULL;
vol              1643 fs/ntfs/super.c static bool load_and_init_upcase(ntfs_volume *vol)
vol              1646 fs/ntfs/super.c 	struct super_block *sb = vol->sb;
vol              1669 fs/ntfs/super.c 	vol->upcase = (ntfschar*)ntfs_malloc_nofs(i_size);
vol              1670 fs/ntfs/super.c 	if (!vol->upcase)
vol              1681 fs/ntfs/super.c 		memcpy((char*)vol->upcase + (index++ << PAGE_SHIFT),
vol              1690 fs/ntfs/super.c 	vol->upcase_len = i_size >> UCHAR_T_SIZE_BITS;
vol              1702 fs/ntfs/super.c 	if (max > vol->upcase_len)
vol              1703 fs/ntfs/super.c 		max = vol->upcase_len;
vol              1705 fs/ntfs/super.c 		if (vol->upcase[i] != default_upcase[i])
vol              1708 fs/ntfs/super.c 		ntfs_free(vol->upcase);
vol              1709 fs/ntfs/super.c 		vol->upcase = default_upcase;
vol              1710 fs/ntfs/super.c 		vol->upcase_len = max;
vol              1723 fs/ntfs/super.c 	ntfs_free(vol->upcase);
vol              1724 fs/ntfs/super.c 	vol->upcase = NULL;
vol              1728 fs/ntfs/super.c 		vol->upcase = default_upcase;
vol              1729 fs/ntfs/super.c 		vol->upcase_len = default_upcase_len;
vol              1758 fs/ntfs/super.c static bool load_system_files(ntfs_volume *vol)
vol              1760 fs/ntfs/super.c 	struct super_block *sb = vol->sb;
vol              1772 fs/ntfs/super.c 	if (!load_and_init_mft_mirror(vol) || !check_mft_mirror(vol)) {
vol              1779 fs/ntfs/super.c 			if (!(vol->on_errors & (ON_ERRORS_REMOUNT_RO |
vol              1784 fs/ntfs/super.c 						!vol->mftmirr_ino ? es1 : es2,
vol              1790 fs/ntfs/super.c 					!vol->mftmirr_ino ? es1 : es2, es3);
vol              1794 fs/ntfs/super.c 					!vol->mftmirr_ino ? es1 : es2, es3);
vol              1796 fs/ntfs/super.c 		NVolSetErrors(vol);
vol              1800 fs/ntfs/super.c 	vol->mftbmp_ino = ntfs_attr_iget(vol->mft_ino, AT_BITMAP, NULL, 0);
vol              1801 fs/ntfs/super.c 	if (IS_ERR(vol->mftbmp_ino)) {
vol              1805 fs/ntfs/super.c 	lockdep_set_class(&NTFS_I(vol->mftbmp_ino)->runlist.lock,
vol              1807 fs/ntfs/super.c 	lockdep_set_class(&NTFS_I(vol->mftbmp_ino)->mrec_lock,
vol              1810 fs/ntfs/super.c 	if (!load_and_init_upcase(vol))
vol              1817 fs/ntfs/super.c 	if (!load_and_init_attrdef(vol))
vol              1825 fs/ntfs/super.c 	vol->lcnbmp_ino = ntfs_iget(sb, FILE_Bitmap);
vol              1826 fs/ntfs/super.c 	if (IS_ERR(vol->lcnbmp_ino) || is_bad_inode(vol->lcnbmp_ino)) {
vol              1827 fs/ntfs/super.c 		if (!IS_ERR(vol->lcnbmp_ino))
vol              1828 fs/ntfs/super.c 			iput(vol->lcnbmp_ino);
vol              1831 fs/ntfs/super.c 	lockdep_set_class(&NTFS_I(vol->lcnbmp_ino)->runlist.lock,
vol              1833 fs/ntfs/super.c 	lockdep_set_class(&NTFS_I(vol->lcnbmp_ino)->mrec_lock,
vol              1836 fs/ntfs/super.c 	NInoSetSparseDisabled(NTFS_I(vol->lcnbmp_ino));
vol              1837 fs/ntfs/super.c 	if ((vol->nr_clusters + 7) >> 3 > i_size_read(vol->lcnbmp_ino)) {
vol              1838 fs/ntfs/super.c 		iput(vol->lcnbmp_ino);
vol              1847 fs/ntfs/super.c 	vol->vol_ino = ntfs_iget(sb, FILE_Volume);
vol              1848 fs/ntfs/super.c 	if (IS_ERR(vol->vol_ino) || is_bad_inode(vol->vol_ino)) {
vol              1849 fs/ntfs/super.c 		if (!IS_ERR(vol->vol_ino))
vol              1850 fs/ntfs/super.c 			iput(vol->vol_ino);
vol              1855 fs/ntfs/super.c 	m = map_mft_record(NTFS_I(vol->vol_ino));
vol              1858 fs/ntfs/super.c 		iput(vol->vol_ino);
vol              1861 fs/ntfs/super.c 	if (!(ctx = ntfs_attr_get_search_ctx(NTFS_I(vol->vol_ino), m))) {
vol              1870 fs/ntfs/super.c 		unmap_mft_record(NTFS_I(vol->vol_ino));
vol              1881 fs/ntfs/super.c 	vol->vol_flags = vi->flags;
vol              1882 fs/ntfs/super.c 	vol->major_ver = vi->major_ver;
vol              1883 fs/ntfs/super.c 	vol->minor_ver = vi->minor_ver;
vol              1885 fs/ntfs/super.c 	unmap_mft_record(NTFS_I(vol->vol_ino));
vol              1886 fs/ntfs/super.c 	pr_info("volume version %i.%i.\n", vol->major_ver,
vol              1887 fs/ntfs/super.c 			vol->minor_ver);
vol              1888 fs/ntfs/super.c 	if (vol->major_ver < 3 && NVolSparseEnabled(vol)) {
vol              1889 fs/ntfs/super.c 		ntfs_warning(vol->sb, "Disabling sparse support due to NTFS "
vol              1891 fs/ntfs/super.c 				"3.0).", vol->major_ver, vol->minor_ver);
vol              1892 fs/ntfs/super.c 		NVolClearSparseEnabled(vol);
vol              1896 fs/ntfs/super.c 	if (vol->vol_flags & VOLUME_MUST_MOUNT_RO_MASK) {
vol              1905 fs/ntfs/super.c 		if (vol->vol_flags & VOLUME_IS_DIRTY)
vol              1907 fs/ntfs/super.c 		else if (vol->vol_flags & VOLUME_MODIFIED_BY_CHKDSK) {
vol              1914 fs/ntfs/super.c 					(unsigned)le16_to_cpu(vol->vol_flags));
vol              1918 fs/ntfs/super.c 			if (!(vol->on_errors & (ON_ERRORS_REMOUNT_RO |
vol              1941 fs/ntfs/super.c 	if (!load_and_check_logfile(vol, &rp) ||
vol              1942 fs/ntfs/super.c 			!ntfs_is_logfile_clean(vol->logfile_ino, rp)) {
vol              1948 fs/ntfs/super.c 		es1 = !vol->logfile_ino ? es1a : es1b;
vol              1951 fs/ntfs/super.c 			if (!(vol->on_errors & (ON_ERRORS_REMOUNT_RO |
vol              1957 fs/ntfs/super.c 				if (vol->logfile_ino) {
vol              1969 fs/ntfs/super.c 		NVolSetErrors(vol);
vol              1974 fs/ntfs/super.c 	vol->root_ino = ntfs_iget(sb, FILE_root);
vol              1975 fs/ntfs/super.c 	if (IS_ERR(vol->root_ino) || is_bad_inode(vol->root_ino)) {
vol              1976 fs/ntfs/super.c 		if (!IS_ERR(vol->root_ino))
vol              1977 fs/ntfs/super.c 			iput(vol->root_ino);
vol              1989 fs/ntfs/super.c 	err = check_windows_hibernation_status(vol);
vol              2000 fs/ntfs/super.c 			if (!(vol->on_errors & (ON_ERRORS_REMOUNT_RO |
vol              2014 fs/ntfs/super.c 		NVolSetErrors(vol);
vol              2017 fs/ntfs/super.c 	if (!sb_rdonly(sb) && ntfs_set_volume_flags(vol, VOLUME_IS_DIRTY)) {
vol              2023 fs/ntfs/super.c 		if (!(vol->on_errors & (ON_ERRORS_REMOUNT_RO |
vol              2044 fs/ntfs/super.c 	if (!(sb->s_flags & SB_RDONLY) && (vol->major_ver > 1) &&
vol              2045 fs/ntfs/super.c 			ntfs_set_volume_flags(vol, VOLUME_MOUNTED_ON_NT4)) {
vol              2050 fs/ntfs/super.c 		if (!(vol->on_errors & (ON_ERRORS_REMOUNT_RO |
vol              2059 fs/ntfs/super.c 		NVolSetErrors(vol);
vol              2063 fs/ntfs/super.c 	if (!sb_rdonly(sb) && !ntfs_empty_logfile(vol->logfile_ino)) {
vol              2068 fs/ntfs/super.c 		if (!(vol->on_errors & (ON_ERRORS_REMOUNT_RO |
vol              2077 fs/ntfs/super.c 		NVolSetErrors(vol);
vol              2081 fs/ntfs/super.c 	if (unlikely(vol->major_ver < 3))
vol              2085 fs/ntfs/super.c 	vol->secure_ino = ntfs_iget(sb, FILE_Secure);
vol              2086 fs/ntfs/super.c 	if (IS_ERR(vol->secure_ino) || is_bad_inode(vol->secure_ino)) {
vol              2087 fs/ntfs/super.c 		if (!IS_ERR(vol->secure_ino))
vol              2088 fs/ntfs/super.c 			iput(vol->secure_ino);
vol              2094 fs/ntfs/super.c 	vol->extend_ino = ntfs_iget(sb, FILE_Extend);
vol              2095 fs/ntfs/super.c 	if (IS_ERR(vol->extend_ino) || is_bad_inode(vol->extend_ino)) {
vol              2096 fs/ntfs/super.c 		if (!IS_ERR(vol->extend_ino))
vol              2097 fs/ntfs/super.c 			iput(vol->extend_ino);
vol              2103 fs/ntfs/super.c 	if (!load_and_init_quota(vol)) {
vol              2109 fs/ntfs/super.c 			if (!(vol->on_errors & (ON_ERRORS_REMOUNT_RO |
vol              2123 fs/ntfs/super.c 		NVolSetErrors(vol);
vol              2126 fs/ntfs/super.c 	if (!sb_rdonly(sb) && !ntfs_mark_quotas_out_of_date(vol)) {
vol              2131 fs/ntfs/super.c 		if (!(vol->on_errors & (ON_ERRORS_REMOUNT_RO |
vol              2140 fs/ntfs/super.c 		NVolSetErrors(vol);
vol              2146 fs/ntfs/super.c 	if (!load_and_init_usnjrnl(vol)) {
vol              2152 fs/ntfs/super.c 			if (!(vol->on_errors & (ON_ERRORS_REMOUNT_RO |
vol              2166 fs/ntfs/super.c 		NVolSetErrors(vol);
vol              2169 fs/ntfs/super.c 	if (!sb_rdonly(sb) && !ntfs_stamp_usnjrnl(vol)) {
vol              2175 fs/ntfs/super.c 		if (!(vol->on_errors & (ON_ERRORS_REMOUNT_RO |
vol              2184 fs/ntfs/super.c 		NVolSetErrors(vol);
vol              2190 fs/ntfs/super.c 	iput(vol->usnjrnl_j_ino);
vol              2191 fs/ntfs/super.c 	iput(vol->usnjrnl_max_ino);
vol              2192 fs/ntfs/super.c 	iput(vol->usnjrnl_ino);
vol              2194 fs/ntfs/super.c 	iput(vol->quota_q_ino);
vol              2195 fs/ntfs/super.c 	iput(vol->quota_ino);
vol              2196 fs/ntfs/super.c 	iput(vol->extend_ino);
vol              2199 fs/ntfs/super.c 	iput(vol->secure_ino);
vol              2201 fs/ntfs/super.c 	iput(vol->root_ino);
vol              2204 fs/ntfs/super.c 	iput(vol->logfile_ino);
vol              2207 fs/ntfs/super.c 	iput(vol->vol_ino);
vol              2209 fs/ntfs/super.c 	iput(vol->lcnbmp_ino);
vol              2211 fs/ntfs/super.c 	vol->attrdef_size = 0;
vol              2212 fs/ntfs/super.c 	if (vol->attrdef) {
vol              2213 fs/ntfs/super.c 		ntfs_free(vol->attrdef);
vol              2214 fs/ntfs/super.c 		vol->attrdef = NULL;
vol              2219 fs/ntfs/super.c 	vol->upcase_len = 0;
vol              2221 fs/ntfs/super.c 	if (vol->upcase == default_upcase) {
vol              2223 fs/ntfs/super.c 		vol->upcase = NULL;
vol              2226 fs/ntfs/super.c 	if (vol->upcase) {
vol              2227 fs/ntfs/super.c 		ntfs_free(vol->upcase);
vol              2228 fs/ntfs/super.c 		vol->upcase = NULL;
vol              2231 fs/ntfs/super.c 	iput(vol->mftbmp_ino);
vol              2234 fs/ntfs/super.c 	iput(vol->mftmirr_ino);
vol              2250 fs/ntfs/super.c 	ntfs_volume *vol = NTFS_SB(sb);
vol              2259 fs/ntfs/super.c 	ntfs_commit_inode(vol->vol_ino);
vol              2262 fs/ntfs/super.c 	if (vol->major_ver >= 3) {
vol              2263 fs/ntfs/super.c 		if (vol->usnjrnl_j_ino)
vol              2264 fs/ntfs/super.c 			ntfs_commit_inode(vol->usnjrnl_j_ino);
vol              2265 fs/ntfs/super.c 		if (vol->usnjrnl_max_ino)
vol              2266 fs/ntfs/super.c 			ntfs_commit_inode(vol->usnjrnl_max_ino);
vol              2267 fs/ntfs/super.c 		if (vol->usnjrnl_ino)
vol              2268 fs/ntfs/super.c 			ntfs_commit_inode(vol->usnjrnl_ino);
vol              2269 fs/ntfs/super.c 		if (vol->quota_q_ino)
vol              2270 fs/ntfs/super.c 			ntfs_commit_inode(vol->quota_q_ino);
vol              2271 fs/ntfs/super.c 		if (vol->quota_ino)
vol              2272 fs/ntfs/super.c 			ntfs_commit_inode(vol->quota_ino);
vol              2273 fs/ntfs/super.c 		if (vol->extend_ino)
vol              2274 fs/ntfs/super.c 			ntfs_commit_inode(vol->extend_ino);
vol              2275 fs/ntfs/super.c 		if (vol->secure_ino)
vol              2276 fs/ntfs/super.c 			ntfs_commit_inode(vol->secure_ino);
vol              2279 fs/ntfs/super.c 	ntfs_commit_inode(vol->root_ino);
vol              2281 fs/ntfs/super.c 	down_write(&vol->lcnbmp_lock);
vol              2282 fs/ntfs/super.c 	ntfs_commit_inode(vol->lcnbmp_ino);
vol              2283 fs/ntfs/super.c 	up_write(&vol->lcnbmp_lock);
vol              2285 fs/ntfs/super.c 	down_write(&vol->mftbmp_lock);
vol              2286 fs/ntfs/super.c 	ntfs_commit_inode(vol->mftbmp_ino);
vol              2287 fs/ntfs/super.c 	up_write(&vol->mftbmp_lock);
vol              2289 fs/ntfs/super.c 	if (vol->logfile_ino)
vol              2290 fs/ntfs/super.c 		ntfs_commit_inode(vol->logfile_ino);
vol              2292 fs/ntfs/super.c 	if (vol->mftmirr_ino)
vol              2293 fs/ntfs/super.c 		ntfs_commit_inode(vol->mftmirr_ino);
vol              2294 fs/ntfs/super.c 	ntfs_commit_inode(vol->mft_ino);
vol              2301 fs/ntfs/super.c 		if (!NVolErrors(vol)) {
vol              2302 fs/ntfs/super.c 			if (ntfs_clear_volume_flags(vol, VOLUME_IS_DIRTY))
vol              2306 fs/ntfs/super.c 			ntfs_commit_inode(vol->vol_ino);
vol              2307 fs/ntfs/super.c 			ntfs_commit_inode(vol->root_ino);
vol              2308 fs/ntfs/super.c 			if (vol->mftmirr_ino)
vol              2309 fs/ntfs/super.c 				ntfs_commit_inode(vol->mftmirr_ino);
vol              2310 fs/ntfs/super.c 			ntfs_commit_inode(vol->mft_ino);
vol              2318 fs/ntfs/super.c 	iput(vol->vol_ino);
vol              2319 fs/ntfs/super.c 	vol->vol_ino = NULL;
vol              2322 fs/ntfs/super.c 	if (vol->major_ver >= 3) {
vol              2324 fs/ntfs/super.c 		if (vol->usnjrnl_j_ino) {
vol              2325 fs/ntfs/super.c 			iput(vol->usnjrnl_j_ino);
vol              2326 fs/ntfs/super.c 			vol->usnjrnl_j_ino = NULL;
vol              2328 fs/ntfs/super.c 		if (vol->usnjrnl_max_ino) {
vol              2329 fs/ntfs/super.c 			iput(vol->usnjrnl_max_ino);
vol              2330 fs/ntfs/super.c 			vol->usnjrnl_max_ino = NULL;
vol              2332 fs/ntfs/super.c 		if (vol->usnjrnl_ino) {
vol              2333 fs/ntfs/super.c 			iput(vol->usnjrnl_ino);
vol              2334 fs/ntfs/super.c 			vol->usnjrnl_ino = NULL;
vol              2336 fs/ntfs/super.c 		if (vol->quota_q_ino) {
vol              2337 fs/ntfs/super.c 			iput(vol->quota_q_ino);
vol              2338 fs/ntfs/super.c 			vol->quota_q_ino = NULL;
vol              2340 fs/ntfs/super.c 		if (vol->quota_ino) {
vol              2341 fs/ntfs/super.c 			iput(vol->quota_ino);
vol              2342 fs/ntfs/super.c 			vol->quota_ino = NULL;
vol              2345 fs/ntfs/super.c 		if (vol->extend_ino) {
vol              2346 fs/ntfs/super.c 			iput(vol->extend_ino);
vol              2347 fs/ntfs/super.c 			vol->extend_ino = NULL;
vol              2349 fs/ntfs/super.c 		if (vol->secure_ino) {
vol              2350 fs/ntfs/super.c 			iput(vol->secure_ino);
vol              2351 fs/ntfs/super.c 			vol->secure_ino = NULL;
vol              2355 fs/ntfs/super.c 	iput(vol->root_ino);
vol              2356 fs/ntfs/super.c 	vol->root_ino = NULL;
vol              2358 fs/ntfs/super.c 	down_write(&vol->lcnbmp_lock);
vol              2359 fs/ntfs/super.c 	iput(vol->lcnbmp_ino);
vol              2360 fs/ntfs/super.c 	vol->lcnbmp_ino = NULL;
vol              2361 fs/ntfs/super.c 	up_write(&vol->lcnbmp_lock);
vol              2363 fs/ntfs/super.c 	down_write(&vol->mftbmp_lock);
vol              2364 fs/ntfs/super.c 	iput(vol->mftbmp_ino);
vol              2365 fs/ntfs/super.c 	vol->mftbmp_ino = NULL;
vol              2366 fs/ntfs/super.c 	up_write(&vol->mftbmp_lock);
vol              2369 fs/ntfs/super.c 	if (vol->logfile_ino) {
vol              2370 fs/ntfs/super.c 		iput(vol->logfile_ino);
vol              2371 fs/ntfs/super.c 		vol->logfile_ino = NULL;
vol              2373 fs/ntfs/super.c 	if (vol->mftmirr_ino) {
vol              2375 fs/ntfs/super.c 		ntfs_commit_inode(vol->mftmirr_ino);
vol              2376 fs/ntfs/super.c 		ntfs_commit_inode(vol->mft_ino);
vol              2377 fs/ntfs/super.c 		iput(vol->mftmirr_ino);
vol              2378 fs/ntfs/super.c 		vol->mftmirr_ino = NULL;
vol              2385 fs/ntfs/super.c 	ntfs_commit_inode(vol->mft_ino);
vol              2386 fs/ntfs/super.c 	write_inode_now(vol->mft_ino, 1);
vol              2389 fs/ntfs/super.c 	iput(vol->mft_ino);
vol              2390 fs/ntfs/super.c 	vol->mft_ino = NULL;
vol              2393 fs/ntfs/super.c 	vol->attrdef_size = 0;
vol              2394 fs/ntfs/super.c 	if (vol->attrdef) {
vol              2395 fs/ntfs/super.c 		ntfs_free(vol->attrdef);
vol              2396 fs/ntfs/super.c 		vol->attrdef = NULL;
vol              2398 fs/ntfs/super.c 	vol->upcase_len = 0;
vol              2404 fs/ntfs/super.c 	if (vol->upcase == default_upcase) {
vol              2406 fs/ntfs/super.c 		vol->upcase = NULL;
vol              2412 fs/ntfs/super.c 	if (vol->cluster_size <= 4096 && !--ntfs_nr_compression_users)
vol              2415 fs/ntfs/super.c 	if (vol->upcase) {
vol              2416 fs/ntfs/super.c 		ntfs_free(vol->upcase);
vol              2417 fs/ntfs/super.c 		vol->upcase = NULL;
vol              2420 fs/ntfs/super.c 	unload_nls(vol->nls_map);
vol              2423 fs/ntfs/super.c 	kfree(vol);
vol              2445 fs/ntfs/super.c static s64 get_nr_free_clusters(ntfs_volume *vol)
vol              2447 fs/ntfs/super.c 	s64 nr_free = vol->nr_clusters;
vol              2448 fs/ntfs/super.c 	struct address_space *mapping = vol->lcnbmp_ino->i_mapping;
vol              2454 fs/ntfs/super.c 	down_read(&vol->lcnbmp_lock);
vol              2460 fs/ntfs/super.c 	max_index = (((vol->nr_clusters + 7) >> 3) + PAGE_SIZE - 1) >>
vol              2498 fs/ntfs/super.c 	if (vol->nr_clusters & 63)
vol              2499 fs/ntfs/super.c 		nr_free += 64 - (vol->nr_clusters & 63);
vol              2500 fs/ntfs/super.c 	up_read(&vol->lcnbmp_lock);
vol              2525 fs/ntfs/super.c static unsigned long __get_nr_free_mft_records(ntfs_volume *vol,
vol              2528 fs/ntfs/super.c 	struct address_space *mapping = vol->mftbmp_ino->i_mapping;
vol              2595 fs/ntfs/super.c 	ntfs_volume *vol = NTFS_SB(sb);
vol              2596 fs/ntfs/super.c 	ntfs_inode *mft_ni = NTFS_I(vol->mft_ino);
vol              2610 fs/ntfs/super.c 	sfs->f_blocks = vol->nr_clusters << vol->cluster_size_bits >>
vol              2613 fs/ntfs/super.c 	size	      = get_nr_free_clusters(vol) << vol->cluster_size_bits >>
vol              2620 fs/ntfs/super.c 	down_read(&vol->mftbmp_lock);
vol              2622 fs/ntfs/super.c 	size = i_size_read(vol->mft_ino) >> vol->mft_record_size_bits;
vol              2628 fs/ntfs/super.c 	max_index = ((((mft_ni->initialized_size >> vol->mft_record_size_bits)
vol              2634 fs/ntfs/super.c 	sfs->f_ffree = __get_nr_free_mft_records(vol, size, max_index);
vol              2635 fs/ntfs/super.c 	up_read(&vol->mftbmp_lock);
vol              2646 fs/ntfs/super.c 	sfs->f_fsid.val[0] = vol->serial_no & 0xffffffff;
vol              2647 fs/ntfs/super.c 	sfs->f_fsid.val[1] = (vol->serial_no >> 32) & 0xffffffff;
vol              2699 fs/ntfs/super.c 	ntfs_volume *vol;
vol              2721 fs/ntfs/super.c 	vol = NTFS_SB(sb);
vol              2722 fs/ntfs/super.c 	if (!vol) {
vol              2730 fs/ntfs/super.c 	*vol = (ntfs_volume) {
vol              2741 fs/ntfs/super.c 	init_rwsem(&vol->mftbmp_lock);
vol              2742 fs/ntfs/super.c 	init_rwsem(&vol->lcnbmp_lock);
vol              2745 fs/ntfs/super.c 	NVolSetSparseEnabled(vol);
vol              2748 fs/ntfs/super.c 	if (!parse_options(vol, (char*)opt))
vol              2781 fs/ntfs/super.c 	vol->nr_blocks = i_size_read(sb->s_bdev->bd_inode) >>
vol              2793 fs/ntfs/super.c 	result = parse_ntfs_boot_sector(vol, (NTFS_BOOT_SECTOR*)bh->b_data);
vol              2810 fs/ntfs/super.c 	if (vol->sector_size > blocksize) {
vol              2811 fs/ntfs/super.c 		blocksize = sb_set_blocksize(sb, vol->sector_size);
vol              2812 fs/ntfs/super.c 		if (blocksize != vol->sector_size) {
vol              2816 fs/ntfs/super.c 						vol->sector_size);
vol              2820 fs/ntfs/super.c 		vol->nr_blocks = i_size_read(sb->s_bdev->bd_inode) >>
vol              2827 fs/ntfs/super.c 	ntfs_setup_allocators(vol);
vol              2867 fs/ntfs/super.c 	if (vol->cluster_size <= 4096 && !ntfs_nr_compression_users++) {
vol              2894 fs/ntfs/super.c 	if (!load_system_files(vol)) {
vol              2900 fs/ntfs/super.c 	ihold(vol->root_ino);
vol              2901 fs/ntfs/super.c 	if ((sb->s_root = d_make_root(vol->root_ino))) {
vol              2919 fs/ntfs/super.c 	iput(vol->vol_ino);
vol              2920 fs/ntfs/super.c 	vol->vol_ino = NULL;
vol              2922 fs/ntfs/super.c 	if (vol->major_ver >= 3) {
vol              2924 fs/ntfs/super.c 		if (vol->usnjrnl_j_ino) {
vol              2925 fs/ntfs/super.c 			iput(vol->usnjrnl_j_ino);
vol              2926 fs/ntfs/super.c 			vol->usnjrnl_j_ino = NULL;
vol              2928 fs/ntfs/super.c 		if (vol->usnjrnl_max_ino) {
vol              2929 fs/ntfs/super.c 			iput(vol->usnjrnl_max_ino);
vol              2930 fs/ntfs/super.c 			vol->usnjrnl_max_ino = NULL;
vol              2932 fs/ntfs/super.c 		if (vol->usnjrnl_ino) {
vol              2933 fs/ntfs/super.c 			iput(vol->usnjrnl_ino);
vol              2934 fs/ntfs/super.c 			vol->usnjrnl_ino = NULL;
vol              2936 fs/ntfs/super.c 		if (vol->quota_q_ino) {
vol              2937 fs/ntfs/super.c 			iput(vol->quota_q_ino);
vol              2938 fs/ntfs/super.c 			vol->quota_q_ino = NULL;
vol              2940 fs/ntfs/super.c 		if (vol->quota_ino) {
vol              2941 fs/ntfs/super.c 			iput(vol->quota_ino);
vol              2942 fs/ntfs/super.c 			vol->quota_ino = NULL;
vol              2945 fs/ntfs/super.c 		if (vol->extend_ino) {
vol              2946 fs/ntfs/super.c 			iput(vol->extend_ino);
vol              2947 fs/ntfs/super.c 			vol->extend_ino = NULL;
vol              2949 fs/ntfs/super.c 		if (vol->secure_ino) {
vol              2950 fs/ntfs/super.c 			iput(vol->secure_ino);
vol              2951 fs/ntfs/super.c 			vol->secure_ino = NULL;
vol              2954 fs/ntfs/super.c 	iput(vol->root_ino);
vol              2955 fs/ntfs/super.c 	vol->root_ino = NULL;
vol              2956 fs/ntfs/super.c 	iput(vol->lcnbmp_ino);
vol              2957 fs/ntfs/super.c 	vol->lcnbmp_ino = NULL;
vol              2958 fs/ntfs/super.c 	iput(vol->mftbmp_ino);
vol              2959 fs/ntfs/super.c 	vol->mftbmp_ino = NULL;
vol              2961 fs/ntfs/super.c 	if (vol->logfile_ino) {
vol              2962 fs/ntfs/super.c 		iput(vol->logfile_ino);
vol              2963 fs/ntfs/super.c 		vol->logfile_ino = NULL;
vol              2965 fs/ntfs/super.c 	if (vol->mftmirr_ino) {
vol              2966 fs/ntfs/super.c 		iput(vol->mftmirr_ino);
vol              2967 fs/ntfs/super.c 		vol->mftmirr_ino = NULL;
vol              2971 fs/ntfs/super.c 	vol->attrdef_size = 0;
vol              2972 fs/ntfs/super.c 	if (vol->attrdef) {
vol              2973 fs/ntfs/super.c 		ntfs_free(vol->attrdef);
vol              2974 fs/ntfs/super.c 		vol->attrdef = NULL;
vol              2976 fs/ntfs/super.c 	vol->upcase_len = 0;
vol              2978 fs/ntfs/super.c 	if (vol->upcase == default_upcase) {
vol              2980 fs/ntfs/super.c 		vol->upcase = NULL;
vol              2983 fs/ntfs/super.c 	if (vol->upcase) {
vol              2984 fs/ntfs/super.c 		ntfs_free(vol->upcase);
vol              2985 fs/ntfs/super.c 		vol->upcase = NULL;
vol              2987 fs/ntfs/super.c 	if (vol->nls_map) {
vol              2988 fs/ntfs/super.c 		unload_nls(vol->nls_map);
vol              2989 fs/ntfs/super.c 		vol->nls_map = NULL;
vol              3002 fs/ntfs/super.c 	if (vol->cluster_size <= 4096 && !--ntfs_nr_compression_users)
vol              3007 fs/ntfs/super.c 	if (vol->mft_ino && vol->mft_ino != tmp_ino)
vol              3008 fs/ntfs/super.c 		iput(vol->mft_ino);
vol              3009 fs/ntfs/super.c 	vol->mft_ino = NULL;
vol              3013 fs/ntfs/super.c 	kfree(vol);
vol               245 fs/ntfs/unistr.c int ntfs_nlstoucs(const ntfs_volume *vol, const char *ins,
vol               248 fs/ntfs/unistr.c 	struct nls_table *nls = vol->nls_map;
vol               275 fs/ntfs/unistr.c 		ntfs_error(vol->sb, "Failed to allocate buffer for converted "
vol               279 fs/ntfs/unistr.c 	ntfs_error(vol->sb, "Received NULL pointer.");
vol               284 fs/ntfs/unistr.c 		ntfs_error(vol->sb, "Name using character set %s contains "
vol               289 fs/ntfs/unistr.c 		ntfs_error(vol->sb, "Name is too long (maximum length for a "
vol               322 fs/ntfs/unistr.c int ntfs_ucstonls(const ntfs_volume *vol, const ntfschar *ins,
vol               325 fs/ntfs/unistr.c 	struct nls_table *nls = vol->nls_map;
vol               370 fs/ntfs/unistr.c 	ntfs_error(vol->sb, "Received NULL pointer.");
vol               373 fs/ntfs/unistr.c 	ntfs_error(vol->sb, "Unicode name contains characters that cannot be "
vol               382 fs/ntfs/unistr.c 	ntfs_error(vol->sb, "Failed to allocate name!");
vol                33 fs/ntfs/usnjrnl.c bool ntfs_stamp_usnjrnl(ntfs_volume *vol)
vol                36 fs/ntfs/usnjrnl.c 	if (likely(!NVolUsnJrnlStamped(vol))) {
vol                41 fs/ntfs/usnjrnl.c 		page = ntfs_map_page(vol->usnjrnl_max_ino->i_mapping, 0);
vol                43 fs/ntfs/usnjrnl.c 			ntfs_error(vol->sb, "Failed to read from "
vol                56 fs/ntfs/usnjrnl.c 				i_size_read(vol->usnjrnl_j_ino));
vol                58 fs/ntfs/usnjrnl.c 				cpu_to_sle64(i_size_read(vol->usnjrnl_j_ino));
vol                64 fs/ntfs/usnjrnl.c 		NVolSetUsnJrnlStamped(vol);
vol               187 fs/ntfs/usnjrnl.h extern bool ntfs_stamp_usnjrnl(ntfs_volume *vol);
vol               142 fs/ntfs/volume.h static inline int NVol##flag(ntfs_volume *vol)		\
vol               144 fs/ntfs/volume.h 	return test_bit(NV_##flag, &(vol)->flags);	\
vol               146 fs/ntfs/volume.h static inline void NVolSet##flag(ntfs_volume *vol)	\
vol               148 fs/ntfs/volume.h 	set_bit(NV_##flag, &(vol)->flags);		\
vol               150 fs/ntfs/volume.h static inline void NVolClear##flag(ntfs_volume *vol)	\
vol               152 fs/ntfs/volume.h 	clear_bit(NV_##flag, &(vol)->flags);		\
vol              2040 fs/ubifs/super.c 	int dev, vol;
vol              2070 fs/ubifs/super.c 		vol = simple_strtoul(endptr + 1, &endptr, 0);
vol              2073 fs/ubifs/super.c 		return ubi_open_volume(dev, vol, mode);
vol               559 include/sound/gus.h unsigned short snd_gf1_lvol_to_gvol_raw(unsigned int vol);
vol              1140 include/uapi/linux/soundcard.h #define SEQ_START_NOTE(dev, chn, note, vol) \
vol              1141 include/uapi/linux/soundcard.h 		_CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol)
vol              1143 include/uapi/linux/soundcard.h #define SEQ_STOP_NOTE(dev, chn, note, vol) \
vol              1144 include/uapi/linux/soundcard.h 		_CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol)
vol               153 sound/core/vmaster.c 	int err, ch, vol;
vol               168 sound/core/vmaster.c 			vol = ucontrol->value.integer.value[ch];
vol               169 sound/core/vmaster.c 			vol += slave->master->val - slave->master->info.max_val;
vol               170 sound/core/vmaster.c 			if (vol < slave->info.min_val)
vol               171 sound/core/vmaster.c 				vol = slave->info.min_val;
vol               172 sound/core/vmaster.c 			else if (vol > slave->info.max_val)
vol               173 sound/core/vmaster.c 				vol = slave->info.max_val;
vol               174 sound/core/vmaster.c 			ucontrol->value.integer.value[ch] = vol;
vol               655 sound/isa/cs423x/cs4236_lib.c static inline int snd_cs4236_mixer_master_digital_invert_volume(int vol)
vol               657 sound/isa/cs423x/cs4236_lib.c 	return (vol < 64) ? 63 - vol : 64 + (71 - vol);
vol               699 sound/isa/cs423x/cs4236_lib.c static inline int snd_cs4235_mixer_output_accu_get_volume(int vol)
vol               701 sound/isa/cs423x/cs4236_lib.c 	switch ((vol >> 5) & 3) {
vol               710 sound/isa/cs423x/cs4236_lib.c static inline int snd_cs4235_mixer_output_accu_set_volume(int vol)
vol               712 sound/isa/cs423x/cs4236_lib.c 	switch (vol & 3) {
vol               100 sound/isa/gus/gus_pcm.c 	unsigned short vol;
vol               132 sound/isa/gus/gus_pcm.c 		vol = !voice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right;
vol               143 sound/isa/gus/gus_pcm.c 		snd_gf1_write8(gus, SNDRV_GF1_VB_VOLUME_END, vol >> 8);
vol               259 sound/isa/gus/gus_pcm.c 	unsigned short vol;
vol               277 sound/isa/gus/gus_pcm.c 	vol = !cvoice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right;
vol               280 sound/isa/gus/gus_pcm.c 	snd_gf1_write16(gus, SNDRV_GF1_VW_VOLUME, vol);
vol               776 sound/isa/gus/gus_pcm.c 	unsigned short val1, val2, vol;
vol               803 sound/isa/gus/gus_pcm.c 		vol = pvoice == pcmp->pvoices[0] ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right;
vol               804 sound/isa/gus/gus_pcm.c 		snd_gf1_write16(gus, SNDRV_GF1_VW_VOLUME, vol);
vol                15 sound/isa/gus/gus_volume.c unsigned short snd_gf1_lvol_to_gvol_raw(unsigned int vol)
vol                19 sound/isa/gus/gus_volume.c 	if (vol > 65535)
vol                20 sound/isa/gus/gus_volume.c 		vol = 65535;
vol                21 sound/isa/gus/gus_volume.c 	tmp = vol;
vol                32 sound/isa/gus/gus_volume.c 	m = vol - (1 << e);
vol               161 sound/mips/sgio2audio.c 	int vol;
vol               163 sound/mips/sgio2audio.c 	vol = ad1843_get_gain(&chip->ad1843, (int)kcontrol->private_value);
vol               165 sound/mips/sgio2audio.c 	ucontrol->value.integer.value[0] = (vol >> 8) & 0xFF;
vol               166 sound/mips/sgio2audio.c 	ucontrol->value.integer.value[1] = vol & 0xFF;
vol              1341 sound/pci/asihpi/hpi_internal.h 		struct hpi_control_cache_vol vol;
vol               344 sound/pci/asihpi/hpicmn.c 			phr->u.c.an_log_value[0] = pC->u.vol.an_log[0];
vol               345 sound/pci/asihpi/hpicmn.c 			phr->u.c.an_log_value[1] = pC->u.vol.an_log[1];
vol               347 sound/pci/asihpi/hpicmn.c 			if (pC->u.vol.flags & HPI_VOLUME_FLAG_HAS_MUTE) {
vol               348 sound/pci/asihpi/hpicmn.c 				if (pC->u.vol.flags & HPI_VOLUME_FLAG_MUTED)
vol               559 sound/pci/asihpi/hpicmn.c 			pC->u.vol.an_log[0] = phr->u.c.an_log_value[0];
vol               560 sound/pci/asihpi/hpicmn.c 			pC->u.vol.an_log[1] = phr->u.c.an_log_value[1];
vol               563 sound/pci/asihpi/hpicmn.c 				pC->u.vol.flags |= HPI_VOLUME_FLAG_MUTED;
vol               565 sound/pci/asihpi/hpicmn.c 				pC->u.vol.flags &= ~HPI_VOLUME_FLAG_MUTED;
vol               582 sound/pci/asihpi/hpicmn.c 			pC->u.vol.an_log[0] = phr->u.c.an_log_value[0];
vol               583 sound/pci/asihpi/hpicmn.c 			pC->u.vol.an_log[1] = phr->u.c.an_log_value[1];
vol               101 sound/pci/au88x0/au88x0.h 	int vol[4];
vol               258 sound/pci/au88x0/au88x0.h 					  unsigned char vol);
vol               260 sound/pci/au88x0/au88x0.h 				     unsigned char vol);
vol               109 sound/pci/au88x0/au88x0_core.c 			  int channel, int *vol)
vol               122 sound/pci/au88x0/au88x0_core.c 	*vol = a;
vol               126 sound/pci/au88x0/au88x0_core.c static unsigned int vortex_mix_boost6db(unsigned char vol)
vol               128 sound/pci/au88x0/au88x0_core.c 	return (vol + 8);	/* WOW! what a complex function! */
vol               169 sound/pci/au88x0/au88x0_core.c 			 unsigned char vol)
vol               172 sound/pci/au88x0/au88x0_core.c 	hwwrite(vortex->mmio, VORTEX_MIX_VOL_A + (mix << 2), vol);
vol               175 sound/pci/au88x0/au88x0_core.c 		if ((temp != 0x80) || (vol == 0x80))
vol               178 sound/pci/au88x0/au88x0_core.c 	hwwrite(vortex->mmio, VORTEX_MIX_VOL_B + (mix << 2), vol);
vol               183 sound/pci/au88x0/au88x0_core.c 			      int mixin, unsigned char vol)
vol               188 sound/pci/au88x0/au88x0_core.c 		VORTEX_MIX_INVOL_A + (((mix << 5) + mixin) << 2), vol);
vol               193 sound/pci/au88x0/au88x0_core.c 		if ((temp != 0x80) || (vol == 0x80))
vol               197 sound/pci/au88x0/au88x0_core.c 		VORTEX_MIX_INVOL_B + (((mix << 5) + mixin) << 2), vol);
vol              2252 sound/pci/au88x0/au88x0_core.c 					p->vol[i] = 0;
vol               549 sound/pci/au88x0/au88x0_pcm.c 		ucontrol->value.integer.value[i] = p->vol[i];
vol               559 sound/pci/au88x0/au88x0_pcm.c 	unsigned char vol;
vol               565 sound/pci/au88x0/au88x0_pcm.c 		if (p->vol[i] != ucontrol->value.integer.value[i]) {
vol               566 sound/pci/au88x0/au88x0_pcm.c 			p->vol[i] = ucontrol->value.integer.value[i];
vol               580 sound/pci/au88x0/au88x0_pcm.c 				vol = p->vol[i];
vol               582 sound/pci/au88x0/au88x0_pcm.c 					vortex->mixplayb[i], mixin, vol);
vol               325 sound/pci/au88x0/au88x0_synth.c static void vortex_wt_SetVolume(vortex_t * vortex, int wt, int vol[])
vol               328 sound/pci/au88x0/au88x0_synth.c 	int ecx = vol[1], eax = vol[0];
vol               332 sound/pci/au88x0/au88x0_synth.c 	voice->parm0 |= (vol[0] & 0xff) << 0x10;
vol               334 sound/pci/au88x0/au88x0_synth.c 	voice->parm1 |= (vol[1] & 0xff) << 0x10;
vol              1305 sound/pci/emu10k1/emufx.c #define A_ADD_VOLUME_IN(var,vol,input) \
vol              1306 sound/pci/emu10k1/emufx.c A_OP(icode, &ptr, iMAC0, A_GPR(var), A_GPR(var), A_GPR(vol), A_EXTIN(input))
vol              1780 sound/pci/emu10k1/emufx.c static void _volume(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol)
vol              1782 sound/pci/emu10k1/emufx.c 	OP(icode, ptr, iMAC0, dst, C_00000000, src, vol);
vol              1783 sound/pci/emu10k1/emufx.c 	OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff);
vol              1787 sound/pci/emu10k1/emufx.c static void _volume_add(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol)
vol              1789 sound/pci/emu10k1/emufx.c 	OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff);
vol              1793 sound/pci/emu10k1/emufx.c 	OP(icode, ptr, iMAC0, dst, dst, src, vol);
vol              1795 sound/pci/emu10k1/emufx.c static void _volume_out(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol)
vol              1797 sound/pci/emu10k1/emufx.c 	OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff);
vol              1801 sound/pci/emu10k1/emufx.c 	OP(icode, ptr, iMAC0, dst, C_00000000, src, vol);
vol              1804 sound/pci/emu10k1/emufx.c #define VOLUME(icode, ptr, dst, src, vol) \
vol              1805 sound/pci/emu10k1/emufx.c 		_volume(icode, ptr, GPR(dst), GPR(src), GPR(vol))
vol              1806 sound/pci/emu10k1/emufx.c #define VOLUME_IN(icode, ptr, dst, src, vol) \
vol              1807 sound/pci/emu10k1/emufx.c 		_volume(icode, ptr, GPR(dst), EXTIN(src), GPR(vol))
vol              1808 sound/pci/emu10k1/emufx.c #define VOLUME_ADD(icode, ptr, dst, src, vol) \
vol              1809 sound/pci/emu10k1/emufx.c 		_volume_add(icode, ptr, GPR(dst), GPR(src), GPR(vol))
vol              1810 sound/pci/emu10k1/emufx.c #define VOLUME_ADDIN(icode, ptr, dst, src, vol) \
vol              1811 sound/pci/emu10k1/emufx.c 		_volume_add(icode, ptr, GPR(dst), EXTIN(src), GPR(vol))
vol              1812 sound/pci/emu10k1/emufx.c #define VOLUME_OUT(icode, ptr, dst, src, vol) \
vol              1813 sound/pci/emu10k1/emufx.c 		_volume_out(icode, ptr, EXTOUT(dst), GPR(src), GPR(vol))
vol              3755 sound/pci/hda/hda_generic.c 		int vol, sw;
vol              3757 sound/pci/hda/hda_generic.c 		vol = sw = 0;
vol              3764 sound/pci/hda/hda_generic.c 			if (!vol)
vol              3765 sound/pci/hda/hda_generic.c 				vol = path->ctls[NID_PATH_VOL_CTL];
vol              3766 sound/pci/hda/hda_generic.c 			else if (vol != path->ctls[NID_PATH_VOL_CTL]) {
vol              3768 sound/pci/hda/hda_generic.c 				if (!same_amp_caps(codec, vol,
vol              3785 sound/pci/hda/hda_generic.c 			err = create_single_cap_vol_ctl(codec, n, vol, sw,
vol              3788 sound/pci/hda/hda_generic.c 			err = create_bind_cap_vol_ctl(codec, n, vol, sw);
vol               959 sound/pci/hda/patch_cirrus.c 	unsigned int vol = ucontrol->value.integer.value[0];
vol               965 sound/pci/hda/patch_cirrus.c 	coef |= (vol & 0x0003);
vol                53 sound/pci/ice1712/aureon.c 	unsigned short vol[8];
vol               359 sound/pci/ice1712/aureon.c 	unsigned short vol;
vol               363 sound/pci/ice1712/aureon.c 	vol = aureon_ac97_read(ice, kcontrol->private_value & 0x7F);
vol               364 sound/pci/ice1712/aureon.c 	ucontrol->value.integer.value[0] = 0x1F - (vol & 0x1F);
vol               366 sound/pci/ice1712/aureon.c 		ucontrol->value.integer.value[1] = 0x1F - ((vol >> 8) & 0x1F);
vol               682 sound/pci/ice1712/aureon.c static void wm_set_vol(struct snd_ice1712 *ice, unsigned int index, unsigned short vol, unsigned short master)
vol               686 sound/pci/ice1712/aureon.c 	if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) {
vol               689 sound/pci/ice1712/aureon.c 		nvol = ((vol % WM_VOL_CNT) * (master % WM_VOL_CNT)) /
vol               761 sound/pci/ice1712/aureon.c 		unsigned int vol = ucontrol->value.integer.value[ch];
vol               762 sound/pci/ice1712/aureon.c 		if (vol > WM_VOL_MAX)
vol               763 sound/pci/ice1712/aureon.c 			vol = WM_VOL_MAX;
vol               764 sound/pci/ice1712/aureon.c 		vol |= spec->master[ch] & WM_VOL_MUTE;
vol               765 sound/pci/ice1712/aureon.c 		if (vol != spec->master[ch]) {
vol               767 sound/pci/ice1712/aureon.c 			spec->master[ch] = vol;
vol               770 sound/pci/ice1712/aureon.c 					   spec->vol[dac + ch],
vol               802 sound/pci/ice1712/aureon.c 			spec->vol[ofs+i] & ~WM_VOL_MUTE;
vol               817 sound/pci/ice1712/aureon.c 		unsigned int vol = ucontrol->value.integer.value[i];
vol               818 sound/pci/ice1712/aureon.c 		if (vol > WM_VOL_MAX)
vol               819 sound/pci/ice1712/aureon.c 			vol = WM_VOL_MAX;
vol               820 sound/pci/ice1712/aureon.c 		vol |= spec->vol[ofs+i] & WM_VOL_MUTE;
vol               821 sound/pci/ice1712/aureon.c 		if (vol != spec->vol[ofs+i]) {
vol               822 sound/pci/ice1712/aureon.c 			spec->vol[ofs+i] = vol;
vol               824 sound/pci/ice1712/aureon.c 			wm_set_vol(ice, idx, spec->vol[ofs + i],
vol               856 sound/pci/ice1712/aureon.c 			(spec->vol[ofs + i] & WM_VOL_MUTE) ? 0 : 1;
vol               871 sound/pci/ice1712/aureon.c 		int val = (spec->vol[ofs + i] & WM_VOL_MUTE) ? 0 : 1;
vol               873 sound/pci/ice1712/aureon.c 			spec->vol[ofs + i] &= ~WM_VOL_MUTE;
vol               874 sound/pci/ice1712/aureon.c 			spec->vol[ofs + i] |=
vol               876 sound/pci/ice1712/aureon.c 			wm_set_vol(ice, ofs + i, spec->vol[ofs + i],
vol               919 sound/pci/ice1712/aureon.c 					   spec->vol[dac + i],
vol              1032 sound/pci/ice1712/aureon.c 	unsigned short vol;
vol              1037 sound/pci/ice1712/aureon.c 		vol = wm_get(ice, idx) & 0x1f;
vol              1038 sound/pci/ice1712/aureon.c 		ucontrol->value.integer.value[i] = vol;
vol              2078 sound/pci/ice1712/aureon.c 		wm_set_vol(ice, i, spec->vol[i], spec->master[i % 2]);
vol              2118 sound/pci/ice1712/aureon.c 		spec->vol[i] = WM_VOL_MUTE;
vol              2119 sound/pci/ice1712/aureon.c 		wm_set_vol(ice, i, spec->vol[i], spec->master[i % 2]);
vol              1278 sound/pci/ice1712/ice1712.c 	unsigned int vol = ice->pro_volumes[index];
vol              1281 sound/pci/ice1712/ice1712.c 	val |= (vol & 0x8000) == 0 ? (96 - (vol & 0x7f)) : 0x7f;
vol              1282 sound/pci/ice1712/ice1712.c 	val |= ((vol & 0x80000000) == 0 ? (96 - ((vol >> 16) & 0x7f)) : 0x7f) << 8;
vol               161 sound/pci/ice1712/maya44.c 	struct maya_vol_info *vol = &vol_info[idx];
vol               166 sound/pci/ice1712/maya44.c 	uinfo->value.integer.max = vol->maxval;
vol               192 sound/pci/ice1712/maya44.c 	struct maya_vol_info *vol = &vol_info[idx];
vol               199 sound/pci/ice1712/maya44.c 		if (val > vol->maxval)
vol               200 sound/pci/ice1712/maya44.c 			val = vol->maxval;
vol               204 sound/pci/ice1712/maya44.c 			data = vol->mute;
vol               206 sound/pci/ice1712/maya44.c 			data = (val - 1) + vol->offset;
vol               207 sound/pci/ice1712/maya44.c 		data |= vol->update;
vol               208 sound/pci/ice1712/maya44.c 		changed |= wm8776_write_bits(chip->ice, wm, vol->regs[ch],
vol               209 sound/pci/ice1712/maya44.c 					     vol->mask | vol->update, data);
vol               210 sound/pci/ice1712/maya44.c 		if (vol->mux_bits[ch])
vol               212 sound/pci/ice1712/maya44.c 					  vol->mux_bits[ch],
vol               213 sound/pci/ice1712/maya44.c 					  val ? 0 : vol->mux_bits[ch]);
vol                47 sound/pci/ice1712/phase.c 	unsigned short vol[8];
vol               266 sound/pci/ice1712/phase.c 			unsigned short vol, unsigned short master)
vol               270 sound/pci/ice1712/phase.c 	if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE))
vol               273 sound/pci/ice1712/phase.c 		nvol = 127 - wm_vol[(((vol & ~WM_VOL_MUTE) *
vol               349 sound/pci/ice1712/phase.c 		unsigned int vol = ucontrol->value.integer.value[ch];
vol               350 sound/pci/ice1712/phase.c 		if (vol > WM_VOL_MAX)
vol               352 sound/pci/ice1712/phase.c 		vol |= spec->master[ch] & WM_VOL_MUTE;
vol               353 sound/pci/ice1712/phase.c 		if (vol != spec->master[ch]) {
vol               355 sound/pci/ice1712/phase.c 			spec->master[ch] = vol;
vol               358 sound/pci/ice1712/phase.c 					   spec->vol[dac + ch],
vol               454 sound/pci/ice1712/phase.c 		spec->vol[i] = WM_VOL_MUTE;
vol               455 sound/pci/ice1712/phase.c 		wm_set_vol(ice, i, spec->vol[i], spec->master[i % 2]);
vol               486 sound/pci/ice1712/phase.c 			spec->vol[ofs+i] & ~WM_VOL_MUTE;
vol               502 sound/pci/ice1712/phase.c 		unsigned int vol;
vol               503 sound/pci/ice1712/phase.c 		vol = ucontrol->value.integer.value[i];
vol               504 sound/pci/ice1712/phase.c 		if (vol > 0x7f)
vol               506 sound/pci/ice1712/phase.c 		vol |= spec->vol[ofs+i] & WM_VOL_MUTE;
vol               507 sound/pci/ice1712/phase.c 		if (vol != spec->vol[ofs+i]) {
vol               508 sound/pci/ice1712/phase.c 			spec->vol[ofs+i] = vol;
vol               510 sound/pci/ice1712/phase.c 			wm_set_vol(ice, idx, spec->vol[ofs+i],
vol               543 sound/pci/ice1712/phase.c 			(spec->vol[ofs+i] & WM_VOL_MUTE) ? 0 : 1;
vol               559 sound/pci/ice1712/phase.c 		int val = (spec->vol[ofs + i] & WM_VOL_MUTE) ? 0 : 1;
vol               561 sound/pci/ice1712/phase.c 			spec->vol[ofs + i] &= ~WM_VOL_MUTE;
vol               562 sound/pci/ice1712/phase.c 			spec->vol[ofs + i] |=
vol               565 sound/pci/ice1712/phase.c 			wm_set_vol(ice, ofs + i, spec->vol[ofs + i],
vol               611 sound/pci/ice1712/phase.c 						spec->vol[dac + i],
vol               146 sound/pci/ice1712/prodigy192.c 	unsigned char vol;
vol               152 sound/pci/ice1712/prodigy192.c 	vol = stac9460_get(ice, idx) & 0x7f;
vol               153 sound/pci/ice1712/prodigy192.c 	ucontrol->value.integer.value[0] = 0x7f - vol;
vol               238 sound/pci/ice1712/prodigy192.c 	unsigned char vol;
vol               242 sound/pci/ice1712/prodigy192.c 		vol = stac9460_get(ice, reg) & 0x0f;
vol               243 sound/pci/ice1712/prodigy192.c 		ucontrol->value.integer.value[i] = 0x0f - vol;
vol                30 sound/pci/ice1712/prodigy_hifi.c 	unsigned short vol[8];
vol               259 sound/pci/ice1712/prodigy_hifi.c 		ucontrol->value.integer.value[i] = spec->vol[i];
vol               273 sound/pci/ice1712/prodigy_hifi.c 		if (ucontrol->value.integer.value[i] != spec->vol[i]) {
vol               274 sound/pci/ice1712/prodigy_hifi.c 			spec->vol[i] = ucontrol->value.integer.value[i];
vol               276 sound/pci/ice1712/prodigy_hifi.c 				     spec->vol[i] & 0xff);
vol               313 sound/pci/ice1712/prodigy_hifi.c 		       unsigned short vol, unsigned short master)
vol               317 sound/pci/ice1712/prodigy_hifi.c 	if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE))
vol               320 sound/pci/ice1712/prodigy_hifi.c 		nvol = (((vol & ~WM_VOL_MUTE) * (master & ~WM_VOL_MUTE)) / 128)
vol               330 sound/pci/ice1712/prodigy_hifi.c 			   unsigned short vol, unsigned short master)
vol               334 sound/pci/ice1712/prodigy_hifi.c 	if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE))
vol               337 sound/pci/ice1712/prodigy_hifi.c 		nvol = (((vol & ~WM_VOL_MUTE) * (master & ~WM_VOL_MUTE)) / 128)
vol               369 sound/pci/ice1712/prodigy_hifi.c 			spec->vol[2 + i] & ~WM_VOL_MUTE;
vol               381 sound/pci/ice1712/prodigy_hifi.c 		if (ucontrol->value.integer.value[i] != spec->vol[2 + i]) {
vol               383 sound/pci/ice1712/prodigy_hifi.c 			spec->vol[2 + i] &= WM_VOL_MUTE;
vol               384 sound/pci/ice1712/prodigy_hifi.c 			spec->vol[2 + i] |= ucontrol->value.integer.value[i];
vol               385 sound/pci/ice1712/prodigy_hifi.c 			wm_set_vol(ice, idx, spec->vol[2 + i], spec->master[i]);
vol               418 sound/pci/ice1712/prodigy_hifi.c 		ucontrol->value.integer.value[i] = spec->vol[ofs + i];
vol               433 sound/pci/ice1712/prodigy_hifi.c 		if (ucontrol->value.integer.value[i] != spec->vol[ofs + i]) {
vol               435 sound/pci/ice1712/prodigy_hifi.c 			spec->vol[ofs + i] &= WM_VOL_MUTE;
vol               436 sound/pci/ice1712/prodigy_hifi.c 			spec->vol[ofs + i] |= ucontrol->value.integer.value[i];
vol               438 sound/pci/ice1712/prodigy_hifi.c 				       spec->vol[ofs + i], spec->master[i]);
vol               484 sound/pci/ice1712/prodigy_hifi.c 				   spec->vol[2 + ch], spec->master[ch]);
vol               487 sound/pci/ice1712/prodigy_hifi.c 				       spec->vol[0 + ch], spec->master[ch]);
vol               490 sound/pci/ice1712/prodigy_hifi.c 				       spec->vol[4 + ch], spec->master[ch]);
vol               493 sound/pci/ice1712/prodigy_hifi.c 				       spec->vol[6 + ch], spec->master[ch]);
vol              1010 sound/pci/ice1712/prodigy_hifi.c 			   spec->vol[2 + ch], spec->master[ch]);
vol              1013 sound/pci/ice1712/prodigy_hifi.c 			       spec->vol[0 + ch], spec->master[ch]);
vol              1016 sound/pci/ice1712/prodigy_hifi.c 			       spec->vol[4 + ch], spec->master[ch]);
vol              1019 sound/pci/ice1712/prodigy_hifi.c 			       spec->vol[6 + ch], spec->master[ch]);
vol              1140 sound/pci/ice1712/prodigy_hifi.c 		ak4396_write(ice, AK4396_LCH_ATT + i, spec->vol[i] & 0xff);
vol                25 sound/pci/ice1712/se.c 	} vol[8];
vol               450 sound/pci/ice1712/se.c 	uc->value.integer.value[0] = spec->vol[n].ch1;
vol               451 sound/pci/ice1712/se.c 	uc->value.integer.value[1] = spec->vol[n].ch2;
vol               461 sound/pci/ice1712/se.c 	uc->value.integer.value[0] = spec->vol[n].ch1;
vol               471 sound/pci/ice1712/se.c 	uc->value.enumerated.item[0] = spec->vol[n].ch1;
vol               482 sound/pci/ice1712/se.c 					   spec->vol[n].ch1,
vol               483 sound/pci/ice1712/se.c 					   spec->vol[n].ch2);
vol               488 sound/pci/ice1712/se.c 						 spec->vol[n].ch1,
vol               489 sound/pci/ice1712/se.c 						 spec->vol[n].ch2);
vol               494 sound/pci/ice1712/se.c 						  spec->vol[n].ch1,
vol               495 sound/pci/ice1712/se.c 						  spec->vol[n].ch2);
vol               500 sound/pci/ice1712/se.c 						   spec->vol[n].ch1);
vol               504 sound/pci/ice1712/se.c 		se200pci_WM8776_set_agc(ice, spec->vol[n].ch1);
vol               508 sound/pci/ice1712/se.c 		se200pci_WM8776_set_afl(ice, spec->vol[n].ch1);
vol               528 sound/pci/ice1712/se.c 	if (spec->vol[n].ch1 != vol1) {
vol               529 sound/pci/ice1712/se.c 		spec->vol[n].ch1 = vol1;
vol               532 sound/pci/ice1712/se.c 	if (spec->vol[n].ch2 != vol2) {
vol               533 sound/pci/ice1712/se.c 		spec->vol[n].ch2 = vol2;
vol               551 sound/pci/ice1712/se.c 	if (spec->vol[n].ch1 != vol1) {
vol               552 sound/pci/ice1712/se.c 		spec->vol[n].ch1 = vol1;
vol               570 sound/pci/ice1712/se.c 	if (spec->vol[n].ch1 != vol1) {
vol               571 sound/pci/ice1712/se.c 		spec->vol[n].ch1 = vol1;
vol               196 sound/pci/ice1712/wtm.c 	unsigned char vol;
vol               206 sound/pci/ice1712/wtm.c 		vol = stac9460_get(ice, idx) & 0x7f;
vol               208 sound/pci/ice1712/wtm.c 		vol = stac9460_2_get(ice, idx - 6) & 0x7f;
vol               209 sound/pci/ice1712/wtm.c 	ucontrol->value.integer.value[0] = 0x7f - vol;
vol               331 sound/pci/ice1712/wtm.c 	unsigned char vol;
vol               337 sound/pci/ice1712/wtm.c 			vol = stac9460_get(ice, reg) & 0x0f;
vol               338 sound/pci/ice1712/wtm.c 			ucontrol->value.integer.value[i] = 0x0f - vol;
vol               343 sound/pci/ice1712/wtm.c 			vol = stac9460_2_get(ice, reg) & 0x0f;
vol               344 sound/pci/ice1712/wtm.c 			ucontrol->value.integer.value[i] = 0x0f - vol;
vol               866 sound/pci/mixart/mixart_mixer.c 		int vol = ucontrol->value.integer.value[i];
vol               867 sound/pci/mixart/mixart_mixer.c 		if (vol < MIXART_DIGITAL_LEVEL_MIN ||
vol               868 sound/pci/mixart/mixart_mixer.c 		    vol > MIXART_DIGITAL_LEVEL_MAX)
vol               870 sound/pci/mixart/mixart_mixer.c 		if (stored_volume[i] != vol) {
vol               871 sound/pci/mixart/mixart_mixer.c 			stored_volume[i] = vol;
vol               556 sound/pci/pcxhr/pcxhr_mix22.c 		int vol;
vol               558 sound/pci/pcxhr/pcxhr_mix22.c 			vol = chip->analog_playback_volume[channel];
vol               560 sound/pci/pcxhr/pcxhr_mix22.c 			vol = HR222_LINE_PLAYBACK_LEVEL_MIN;
vol               561 sound/pci/pcxhr/pcxhr_mix22.c 		return hr222_set_hw_playback_level(chip->mgr, channel, vol);
vol                42 sound/pci/pcxhr/pcxhr_mixer.c 	int err, vol;
vol                52 sound/pci/pcxhr/pcxhr_mixer.c 			vol = chip->analog_playback_volume[channel];
vol                54 sound/pci/pcxhr/pcxhr_mixer.c 			vol = PCXHR_LINE_PLAYBACK_LEVEL_MIN;
vol                56 sound/pci/pcxhr/pcxhr_mixer.c 		rmh.cmd[2] = PCXHR_LINE_PLAYBACK_LEVEL_MAX - vol;
vol               382 sound/pci/pcxhr/pcxhr_mixer.c 		int vol = ucontrol->value.integer.value[i];
vol               383 sound/pci/pcxhr/pcxhr_mixer.c 		if (vol < PCXHR_DIGITAL_LEVEL_MIN ||
vol               384 sound/pci/pcxhr/pcxhr_mixer.c 		    vol > PCXHR_DIGITAL_LEVEL_MAX)
vol               386 sound/pci/pcxhr/pcxhr_mixer.c 		if (stored_volume[i] != vol) {
vol               387 sound/pci/pcxhr/pcxhr_mixer.c 			stored_volume[i] = vol;
vol               224 sound/pci/rme96.c 	u16 vol[2]; /* cached volume of analog output */
vol               529 sound/pci/rme96.c 		snd_rme96_write_SPI(rme96, (rme96->vol[0] << 2) | 0x0);
vol               530 sound/pci/rme96.c 		snd_rme96_write_SPI(rme96, (rme96->vol[1] << 2) | 0x2);
vol               532 sound/pci/rme96.c 		snd_rme96_write_SPI(rme96, (rme96->vol[0] & 0x3FF) | 0x000);
vol               533 sound/pci/rme96.c 		snd_rme96_write_SPI(rme96, (rme96->vol[1] & 0x3FF) | 0x400);
vol              1706 sound/pci/rme96.c 	rme96->vol[0] = rme96->vol[1] = 0;
vol              1850 sound/pci/rme96.c 		snd_iprintf(buffer, "  volume left: %u\n", rme96->vol[0]);
vol              1851 sound/pci/rme96.c 		snd_iprintf(buffer, "  volume right: %u\n", rme96->vol[1]);
vol              2223 sound/pci/rme96.c         u->value.integer.value[0] = rme96->vol[0];
vol              2224 sound/pci/rme96.c         u->value.integer.value[1] = rme96->vol[1];
vol              2235 sound/pci/rme96.c 	unsigned int vol, maxvol;
vol              2242 sound/pci/rme96.c 	vol = u->value.integer.value[0];
vol              2243 sound/pci/rme96.c 	if (vol != rme96->vol[0] && vol <= maxvol) {
vol              2244 sound/pci/rme96.c 		rme96->vol[0] = vol;
vol              2247 sound/pci/rme96.c 	vol = u->value.integer.value[1];
vol              2248 sound/pci/rme96.c 	if (vol != rme96->vol[1] && vol <= maxvol) {
vol              2249 sound/pci/rme96.c 		rme96->vol[1] = vol;
vol               630 sound/pci/sonicvibes.c 		int vol, oleft, oright, mleft, mright;
vol               634 sound/pci/sonicvibes.c 		vol = udreg & 0x3f;
vol               636 sound/pci/sonicvibes.c 			vol = -vol;
vol               641 sound/pci/sonicvibes.c 		oleft += vol;
vol               646 sound/pci/sonicvibes.c 		oright += vol;
vol               333 sound/pci/trident/trident.h 	unsigned short vol;		/* front volume */
vol               961 sound/pci/trident/trident_main.c 	voice->Vol = mix->vol;
vol              1472 sound/pci/trident/trident_main.c 		voice->Vol = mix->vol;
vol              2660 sound/pci/trident/trident_main.c 		ucontrol->value.integer.value[0] = 1023 - mix->vol;
vol              2662 sound/pci/trident/trident_main.c 		ucontrol->value.integer.value[0] = 255 - (mix->vol>>2);
vol              2681 sound/pci/trident/trident_main.c 	change = val != mix->vol;
vol              2682 sound/pci/trident/trident_main.c 	mix->vol = val;
vol              2915 sound/pci/trident/trident_main.c 	tmix->vol = T4D_DEFAULT_PCM_VOL;
vol              3634 sound/pci/trident/trident_main.c 		tmix->vol = T4D_DEFAULT_PCM_VOL;
vol               140 sound/ppc/awacs.c 	int vol[2];
vol               143 sound/ppc/awacs.c 	vol[0] = (chip->awacs_reg[reg] >> lshift) & 0xf;
vol               144 sound/ppc/awacs.c 	vol[1] = chip->awacs_reg[reg] & 0xf;
vol               147 sound/ppc/awacs.c 		vol[0] = 0x0f - vol[0];
vol               148 sound/ppc/awacs.c 		vol[1] = 0x0f - vol[1];
vol               150 sound/ppc/awacs.c 	ucontrol->value.integer.value[0] = vol[0];
vol               151 sound/ppc/awacs.c 	ucontrol->value.integer.value[1] = vol[1];
vol               164 sound/ppc/awacs.c 	unsigned int vol[2];
vol               166 sound/ppc/awacs.c 	vol[0] = ucontrol->value.integer.value[0];
vol               167 sound/ppc/awacs.c 	vol[1] = ucontrol->value.integer.value[1];
vol               168 sound/ppc/awacs.c 	if (vol[0] > 0x0f || vol[1] > 0x0f)
vol               171 sound/ppc/awacs.c 		vol[0] = 0x0f - vol[0];
vol               172 sound/ppc/awacs.c 		vol[1] = 0x0f - vol[1];
vol               174 sound/ppc/awacs.c 	vol[0] &= 0x0f;
vol               175 sound/ppc/awacs.c 	vol[1] &= 0x0f;
vol               179 sound/ppc/awacs.c 	val |= vol[0] << lshift;
vol               180 sound/ppc/awacs.c 	val |= vol[1];
vol               296 sound/ppc/awacs.c static void awacs_amp_set_master(struct awacs_amp *amp, int vol)
vol               298 sound/ppc/awacs.c 	amp->amp_master = vol;
vol               299 sound/ppc/awacs.c 	if (vol <= 79)
vol               300 sound/ppc/awacs.c 		vol = 32 + (79 - vol);
vol               302 sound/ppc/awacs.c 		vol = 32 - (vol - 79);
vol               303 sound/ppc/awacs.c 	awacs_set_cuda(1, vol);
vol               347 sound/ppc/awacs.c 	int vol[2];
vol               350 sound/ppc/awacs.c 	vol[0] = (31 - (ucontrol->value.integer.value[0] & 31))
vol               352 sound/ppc/awacs.c 	vol[1] = (31 - (ucontrol->value.integer.value[1] & 31))
vol               354 sound/ppc/awacs.c 	return awacs_amp_set_vol(amp, index, vol[0], vol[1], 1);
vol               376 sound/ppc/awacs.c 	int vol[2];
vol               379 sound/ppc/awacs.c 	vol[0] = (ucontrol->value.integer.value[0] ? 0 : 32)
vol               381 sound/ppc/awacs.c 	vol[1] = (ucontrol->value.integer.value[1] ? 0 : 32)
vol               383 sound/ppc/awacs.c 	return awacs_amp_set_vol(amp, index, vol[0], vol[1], 1);
vol               795 sound/ppc/awacs.c 	int vol[2];
vol               796 sound/ppc/awacs.c 	vol[0] = amp->amp_vol[index][0] & 31;
vol               797 sound/ppc/awacs.c 	vol[1] = amp->amp_vol[index][1] & 31;
vol               799 sound/ppc/awacs.c 		vol[0] |= 32;
vol               800 sound/ppc/awacs.c 		vol[1] |= 32;
vol               802 sound/ppc/awacs.c 	return awacs_amp_set_vol(amp, index, vol[0], vol[1], 1);
vol               871 sound/ppc/awacs.c 	int err, vol;
vol               891 sound/ppc/awacs.c 	vol = 0x0f; /* no, on alsa, muted as default */
vol               892 sound/ppc/awacs.c 	vol = vol + (vol << 6);
vol               893 sound/ppc/awacs.c 	chip->awacs_reg[2] = vol;
vol               894 sound/ppc/awacs.c 	chip->awacs_reg[4] = vol;
vol               897 sound/ppc/awacs.c 		chip->awacs_reg[5] = vol;
vol               138 sound/ppc/daca.c 	unsigned int vol[2];
vol               143 sound/ppc/daca.c 	vol[0] = ucontrol->value.integer.value[0];
vol               144 sound/ppc/daca.c 	vol[1] = ucontrol->value.integer.value[1];
vol               145 sound/ppc/daca.c 	if (vol[0] > DACA_VOL_MAX || vol[1] > DACA_VOL_MAX)
vol               147 sound/ppc/daca.c 	change = mix->left_vol != vol[0] ||
vol               148 sound/ppc/daca.c 		mix->right_vol != vol[1];
vol               150 sound/ppc/daca.c 		mix->left_vol = vol[0];
vol               151 sound/ppc/daca.c 		mix->right_vol = vol[1];
vol               268 sound/ppc/tumbler.c 	unsigned int vol[2];
vol               271 sound/ppc/tumbler.c 	vol[0] = ucontrol->value.integer.value[0];
vol               272 sound/ppc/tumbler.c 	vol[1] = ucontrol->value.integer.value[1];
vol               273 sound/ppc/tumbler.c 	if (vol[0] >= ARRAY_SIZE(master_volume_table) ||
vol               274 sound/ppc/tumbler.c 	    vol[1] >= ARRAY_SIZE(master_volume_table))
vol               276 sound/ppc/tumbler.c 	change = mix->master_vol[0] != vol[0] ||
vol               277 sound/ppc/tumbler.c 		mix->master_vol[1] != vol[1];
vol               279 sound/ppc/tumbler.c 		mix->master_vol[0] = vol[0];
vol               280 sound/ppc/tumbler.c 		mix->master_vol[1] = vol[1];
vol               488 sound/ppc/tumbler.c 	unsigned int vol;
vol               494 sound/ppc/tumbler.c 	vol = mix->mono_vol[info->index];
vol               495 sound/ppc/tumbler.c 	if (vol >= info->max)
vol               496 sound/ppc/tumbler.c 		vol = info->max - 1;
vol               497 sound/ppc/tumbler.c 	vol = info->table[vol];
vol               499 sound/ppc/tumbler.c 		block[i] = (vol >> ((info->bytes - i - 1) * 8)) & 0xff;
vol               539 sound/ppc/tumbler.c 	unsigned int vol;
vol               544 sound/ppc/tumbler.c 	vol = ucontrol->value.integer.value[0];
vol               545 sound/ppc/tumbler.c 	if (vol >= info->max)
vol               547 sound/ppc/tumbler.c 	change = mix->mono_vol[info->index] != vol;
vol               549 sound/ppc/tumbler.c 		mix->mono_vol[info->index] = vol;
vol               623 sound/ppc/tumbler.c 	int i, j, vol;
vol               626 sound/ppc/tumbler.c 	vol = mix->mix_vol[idx][ch];
vol               627 sound/ppc/tumbler.c 	if (vol >= ARRAY_SIZE(mixer_volume_table)) {
vol               628 sound/ppc/tumbler.c 		vol = ARRAY_SIZE(mixer_volume_table) - 1;
vol               629 sound/ppc/tumbler.c 		mix->mix_vol[idx][ch] = vol;
vol               633 sound/ppc/tumbler.c 		vol = mix->mix_vol[i][ch];
vol               634 sound/ppc/tumbler.c 		vol = mixer_volume_table[vol];
vol               636 sound/ppc/tumbler.c 			block[i * 3 + j] = (vol >> ((2 - j) * 8)) & 0xff;
vol               685 sound/ppc/tumbler.c 	unsigned int vol[2];
vol               690 sound/ppc/tumbler.c 	vol[0] = ucontrol->value.integer.value[0];
vol               691 sound/ppc/tumbler.c 	vol[1] = ucontrol->value.integer.value[1];
vol               692 sound/ppc/tumbler.c 	if (vol[0] >= ARRAY_SIZE(mixer_volume_table) ||
vol               693 sound/ppc/tumbler.c 	    vol[1] >= ARRAY_SIZE(mixer_volume_table))
vol               695 sound/ppc/tumbler.c 	change = mix->mix_vol[idx][0] != vol[0] ||
vol               696 sound/ppc/tumbler.c 		mix->mix_vol[idx][1] != vol[1];
vol               698 sound/ppc/tumbler.c 		mix->mix_vol[idx][0] = vol[0];
vol               699 sound/ppc/tumbler.c 		mix->mix_vol[idx][1] = vol[1];
vol               340 sound/sh/aica.c 	channel->vol = dreamcastcard->master_volume;
vol               489 sound/sh/aica.c 	ucontrol->value.integer.value[0] = dreamcastcard->channel->vol;
vol               497 sound/sh/aica.c 	unsigned int vol;
vol               501 sound/sh/aica.c 	vol = ucontrol->value.integer.value[0];
vol               502 sound/sh/aica.c 	if (vol > 0xff)
vol               504 sound/sh/aica.c 	if (unlikely(dreamcastcard->channel->vol == vol))
vol               506 sound/sh/aica.c 	dreamcastcard->channel->vol = ucontrol->value.integer.value[0];
vol                52 sound/sh/aica.h 	uint32_t vol;		/* Volume 0-255         */
vol               677 sound/soc/codecs/nau8825.c static void nau8825_xtalk_imm_start(struct nau8825 *nau8825, int vol)
vol               681 sound/soc/codecs/nau8825.c 				NAU8825_ADC_DIG_VOL_MASK, vol);
vol                45 sound/soc/codecs/rt5663.c 	unsigned int vol;
vol              1677 sound/soc/codecs/rt5663.c 		if (rt5663->imp_table[i].vol == 7)
vol              1815 sound/soc/codecs/rt5663.c 		rt5663->imp_table[i].vol);
vol              1817 sound/soc/codecs/rt5663.c 		rt5663->imp_table[i].vol);
vol              4243 sound/soc/codecs/wm8995.h 	u16 vol;
vol              1245 sound/soc/codecs/wm_adsp.c 	unsigned int out, rd, wr, vol;
vol              1250 sound/soc/codecs/wm_adsp.c 		vol = SNDRV_CTL_ELEM_ACCESS_VOLATILE;
vol              1256 sound/soc/codecs/wm_adsp.c 		vol = SNDRV_CTL_ELEM_ACCESS_VOLATILE;
vol              1266 sound/soc/codecs/wm_adsp.c 			out |= vol;
vol              1268 sound/soc/codecs/wm_adsp.c 		out |= rd | wr | vol;
vol               357 sound/soc/sh/siu_dai.c 	u32 vol;
vol               364 sound/soc/sh/siu_dai.c 		vol = port_info->playback.volume;
vol               365 sound/soc/sh/siu_dai.c 		ucontrol->value.integer.value[0] = vol & 0xffff;
vol               366 sound/soc/sh/siu_dai.c 		ucontrol->value.integer.value[1] = vol >> 16 & 0xffff;
vol               370 sound/soc/sh/siu_dai.c 		vol = port_info->capture.volume;
vol               371 sound/soc/sh/siu_dai.c 		ucontrol->value.integer.value[0] = vol & 0xffff;
vol               372 sound/soc/sh/siu_dai.c 		ucontrol->value.integer.value[1] = vol >> 16 & 0xffff;
vol               742 sound/soc/uniphier/aio-core.c void aio_port_set_volume(struct uniphier_aio_sub *sub, int vol)
vol               752 sound/soc/uniphier/aio-core.c 	diff = abs(vol - cur);
vol               761 sound/soc/uniphier/aio-core.c 			   OPORTMXTYVOLPARA2_TARGET_MASK, vol);
vol               763 sound/soc/uniphier/aio-core.c 	if (cur < vol)
vol               314 sound/soc/uniphier/aio-cpu.c 	aio_port_set_volume(sub, sub->vol);
vol               402 sound/soc/uniphier/aio-cpu.c 		sub->vol = AUD_VOL_INIT;
vol               512 sound/soc/uniphier/aio-cpu.c 	ucontrol->value.integer.value[0] = sub->vol;
vol               529 sound/soc/uniphier/aio-cpu.c 	if (sub->vol == ucontrol->value.integer.value[0])
vol               531 sound/soc/uniphier/aio-cpu.c 	sub->vol = ucontrol->value.integer.value[0];
vol               533 sound/soc/uniphier/aio-cpu.c 	aio_port_set_volume(sub, sub->vol);
vol               241 sound/soc/uniphier/aio.h 	int vol;
vol               333 sound/soc/uniphier/aio.h void aio_port_set_volume(struct uniphier_aio_sub *sub, int vol);
vol              2295 sound/sparc/dbri.c 	unsigned int vol[2];
vol              2298 sound/sparc/dbri.c 	vol[0] = ucontrol->value.integer.value[0];
vol              2299 sound/sparc/dbri.c 	vol[1] = ucontrol->value.integer.value[1];
vol              2301 sound/sparc/dbri.c 		if (vol[0] > DBRI_MAX_VOLUME || vol[1] > DBRI_MAX_VOLUME)
vol              2304 sound/sparc/dbri.c 		if (vol[0] > DBRI_MAX_GAIN || vol[1] > DBRI_MAX_GAIN)
vol              2308 sound/sparc/dbri.c 	if (info->left_gain != vol[0]) {
vol              2309 sound/sparc/dbri.c 		info->left_gain = vol[0];
vol              2312 sound/sparc/dbri.c 	if (info->right_gain != vol[1]) {
vol              2313 sound/sparc/dbri.c 		info->right_gain = vol[1];
vol               742 sound/synth/emux/emux_synth.c 	int vol;
vol               753 sound/synth/emux/emux_synth.c 		vol = (vp->velocity * main_vol * expression_vol) / (127*127);
vol               754 sound/synth/emux/emux_synth.c 		vol = vol * vp->reg.amplitude / 127;
vol               756 sound/synth/emux/emux_synth.c 		LIMITVALUE(vol, 0, 127);
vol               759 sound/synth/emux/emux_synth.c 		vol = snd_sf_vol_table[vol];
vol               765 sound/synth/emux/emux_synth.c 		vol = voltab1[main_vol] + voltab2[vp->velocity];
vol               766 sound/synth/emux/emux_synth.c 		vol = (vol * 8) / 3;
vol               767 sound/synth/emux/emux_synth.c 		vol += vp->reg.attenuation;
vol               768 sound/synth/emux/emux_synth.c 		vol += ((0x100 - vol) * expressiontab[expression_vol])/128;
vol               773 sound/synth/emux/emux_synth.c 	vol += snd_sf_vol_table[master_vol];
vol               774 sound/synth/emux/emux_synth.c 	vol += port->volume_atten;
vol               779 sound/synth/emux/emux_synth.c 		vol += fx->val[EMUX_FX_ATTEN];
vol               783 sound/synth/emux/emux_synth.c 	LIMITVALUE(vol, 0, 255);
vol               784 sound/synth/emux/emux_synth.c 	if (vp->avol == vol)
vol               787 sound/synth/emux/emux_synth.c 	vp->avol = vol;
vol               233 sound/usb/mixer_scarlett_gen2.c 	u8 vol[SCARLETT2_ANALOGUE_MAX];
vol              1002 sound/usb/mixer_scarlett_gen2.c 			private->vol[i] = private->master_vol;
vol              1055 sound/usb/mixer_scarlett_gen2.c 	ucontrol->value.integer.value[0] = private->vol[index];
vol              1070 sound/usb/mixer_scarlett_gen2.c 	oval = private->vol[index];
vol              1076 sound/usb/mixer_scarlett_gen2.c 	private->vol[index] = val;
vol              1168 sound/usb/mixer_scarlett_gen2.c 	private->vol[index] = private->master_vol;
vol              1891 sound/usb/mixer_scarlett_gen2.c 		private->vol[i] = volume;
vol                78 sound/usb/usx2y/usbus428ctldefs.h 		struct usX2Y_volume vol;
vol               231 sound/usb/usx2y/usbusx2y.c 								  usb_sndbulkpipe(usX2Y->dev, 0x04), &p4out->val.vol,