tcon              252 drivers/clocksource/exynos_mct.c 	unsigned int tcon;
tcon              254 drivers/clocksource/exynos_mct.c 	tcon = readl_relaxed(reg_base + EXYNOS4_MCT_G_TCON);
tcon              255 drivers/clocksource/exynos_mct.c 	tcon &= ~(MCT_G_TCON_COMP0_ENABLE | MCT_G_TCON_COMP0_AUTO_INC);
tcon              257 drivers/clocksource/exynos_mct.c 	exynos4_mct_write(tcon, EXYNOS4_MCT_G_TCON);
tcon              263 drivers/clocksource/exynos_mct.c 	unsigned int tcon;
tcon              266 drivers/clocksource/exynos_mct.c 	tcon = readl_relaxed(reg_base + EXYNOS4_MCT_G_TCON);
tcon              269 drivers/clocksource/exynos_mct.c 		tcon |= MCT_G_TCON_COMP0_AUTO_INC;
tcon              279 drivers/clocksource/exynos_mct.c 	tcon |= MCT_G_TCON_COMP0_ENABLE;
tcon              280 drivers/clocksource/exynos_mct.c 	exynos4_mct_write(tcon , EXYNOS4_MCT_G_TCON);
tcon              122 drivers/clocksource/samsung_pwm_timer.c 	unsigned long tcon;
tcon              130 drivers/clocksource/samsung_pwm_timer.c 	tcon = readl_relaxed(pwm.base + REG_TCON);
tcon              131 drivers/clocksource/samsung_pwm_timer.c 	tcon &= ~TCON_START(channel);
tcon              132 drivers/clocksource/samsung_pwm_timer.c 	writel_relaxed(tcon, pwm.base + REG_TCON);
tcon              139 drivers/clocksource/samsung_pwm_timer.c 	unsigned long tcon;
tcon              148 drivers/clocksource/samsung_pwm_timer.c 	tcon = readl_relaxed(pwm.base + REG_TCON);
tcon              150 drivers/clocksource/samsung_pwm_timer.c 	tcon &= ~(TCON_START(tcon_chan) | TCON_AUTORELOAD(tcon_chan));
tcon              151 drivers/clocksource/samsung_pwm_timer.c 	tcon |= TCON_MANUALUPDATE(tcon_chan);
tcon              155 drivers/clocksource/samsung_pwm_timer.c 	writel_relaxed(tcon, pwm.base + REG_TCON);
tcon              162 drivers/clocksource/samsung_pwm_timer.c 	unsigned long tcon;
tcon              170 drivers/clocksource/samsung_pwm_timer.c 	tcon = readl_relaxed(pwm.base + REG_TCON);
tcon              172 drivers/clocksource/samsung_pwm_timer.c 	tcon &= ~TCON_MANUALUPDATE(channel);
tcon              173 drivers/clocksource/samsung_pwm_timer.c 	tcon |= TCON_START(channel);
tcon              176 drivers/clocksource/samsung_pwm_timer.c 		tcon |= TCON_AUTORELOAD(channel);
tcon              178 drivers/clocksource/samsung_pwm_timer.c 		tcon &= ~TCON_AUTORELOAD(channel);
tcon              180 drivers/clocksource/samsung_pwm_timer.c 	writel_relaxed(tcon, pwm.base + REG_TCON);
tcon              198 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c 	if (fsl_dev->tcon)
tcon              199 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c 		fsl_tcon_bypass_enable(fsl_dev->tcon);
tcon              314 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c 	fsl_dev->tcon = fsl_tcon_init(dev);
tcon              186 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.h 	struct fsl_tcon *tcon;
tcon               37 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c 	if (fsl_dev->tcon)
tcon               38 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c 		fsl_tcon_bypass_enable(fsl_dev->tcon);
tcon               19 drivers/gpu/drm/fsl-dcu/fsl_tcon.c void fsl_tcon_bypass_disable(struct fsl_tcon *tcon)
tcon               21 drivers/gpu/drm/fsl-dcu/fsl_tcon.c 	regmap_update_bits(tcon->regs, FSL_TCON_CTRL1,
tcon               25 drivers/gpu/drm/fsl-dcu/fsl_tcon.c void fsl_tcon_bypass_enable(struct fsl_tcon *tcon)
tcon               27 drivers/gpu/drm/fsl-dcu/fsl_tcon.c 	regmap_update_bits(tcon->regs, FSL_TCON_CTRL1,
tcon               41 drivers/gpu/drm/fsl-dcu/fsl_tcon.c 				struct fsl_tcon *tcon,
tcon               54 drivers/gpu/drm/fsl-dcu/fsl_tcon.c 	tcon->regs = devm_regmap_init_mmio(dev, regs,
tcon               56 drivers/gpu/drm/fsl-dcu/fsl_tcon.c 	return PTR_ERR_OR_ZERO(tcon->regs);
tcon               61 drivers/gpu/drm/fsl-dcu/fsl_tcon.c 	struct fsl_tcon *tcon;
tcon               70 drivers/gpu/drm/fsl-dcu/fsl_tcon.c 	tcon = devm_kzalloc(dev, sizeof(*tcon), GFP_KERNEL);
tcon               71 drivers/gpu/drm/fsl-dcu/fsl_tcon.c 	if (!tcon)
tcon               74 drivers/gpu/drm/fsl-dcu/fsl_tcon.c 	ret = fsl_tcon_init_regmap(dev, tcon, np);
tcon               80 drivers/gpu/drm/fsl-dcu/fsl_tcon.c 	tcon->ipg_clk = of_clk_get_by_name(np, "ipg");
tcon               81 drivers/gpu/drm/fsl-dcu/fsl_tcon.c 	if (IS_ERR(tcon->ipg_clk)) {
tcon               86 drivers/gpu/drm/fsl-dcu/fsl_tcon.c 	ret = clk_prepare_enable(tcon->ipg_clk);
tcon               95 drivers/gpu/drm/fsl-dcu/fsl_tcon.c 	return tcon;
tcon              102 drivers/gpu/drm/fsl-dcu/fsl_tcon.c void fsl_tcon_free(struct fsl_tcon *tcon)
tcon              104 drivers/gpu/drm/fsl-dcu/fsl_tcon.c 	clk_disable_unprepare(tcon->ipg_clk);
tcon              105 drivers/gpu/drm/fsl-dcu/fsl_tcon.c 	clk_put(tcon->ipg_clk);
tcon               24 drivers/gpu/drm/fsl-dcu/fsl_tcon.h void fsl_tcon_free(struct fsl_tcon *tcon);
tcon               26 drivers/gpu/drm/fsl-dcu/fsl_tcon.h void fsl_tcon_bypass_disable(struct fsl_tcon *tcon);
tcon               27 drivers/gpu/drm/fsl-dcu/fsl_tcon.h void fsl_tcon_bypass_enable(struct fsl_tcon *tcon);
tcon              113 drivers/gpu/drm/sun4i/sun4i_crtc.c 	sun4i_tcon_set_status(scrtc->tcon, encoder, false);
tcon              132 drivers/gpu/drm/sun4i/sun4i_crtc.c 	sun4i_tcon_set_status(scrtc->tcon, encoder, true);
tcon              143 drivers/gpu/drm/sun4i/sun4i_crtc.c 	sun4i_tcon_mode_set(scrtc->tcon, encoder, mode);
tcon              161 drivers/gpu/drm/sun4i/sun4i_crtc.c 	sun4i_tcon_enable_vblank(scrtc->tcon, true);
tcon              172 drivers/gpu/drm/sun4i/sun4i_crtc.c 	sun4i_tcon_enable_vblank(scrtc->tcon, false);
tcon              188 drivers/gpu/drm/sun4i/sun4i_crtc.c 				   struct sun4i_tcon *tcon)
tcon              199 drivers/gpu/drm/sun4i/sun4i_crtc.c 	scrtc->tcon = tcon;
tcon              237 drivers/gpu/drm/sun4i/sun4i_crtc.c 	scrtc->crtc.port = of_graph_get_port_by_id(scrtc->tcon->dev->of_node,
tcon               17 drivers/gpu/drm/sun4i/sun4i_crtc.h 	struct sun4i_tcon		*tcon;
tcon               27 drivers/gpu/drm/sun4i/sun4i_crtc.h 				   struct sun4i_tcon *tcon);
tcon               18 drivers/gpu/drm/sun4i/sun4i_dotclock.c 	struct sun4i_tcon	*tcon;
tcon               74 drivers/gpu/drm/sun4i/sun4i_dotclock.c 	struct sun4i_tcon *tcon = dclk->tcon;
tcon               79 drivers/gpu/drm/sun4i/sun4i_dotclock.c 	for (i = tcon->dclk_min_div; i <= tcon->dclk_max_div; i++) {
tcon              165 drivers/gpu/drm/sun4i/sun4i_dotclock.c int sun4i_dclk_create(struct device *dev, struct sun4i_tcon *tcon)
tcon              172 drivers/gpu/drm/sun4i/sun4i_dotclock.c 	parent_name = __clk_get_name(tcon->sclk0);
tcon              182 drivers/gpu/drm/sun4i/sun4i_dotclock.c 	dclk->tcon = tcon;
tcon              190 drivers/gpu/drm/sun4i/sun4i_dotclock.c 	dclk->regmap = tcon->regs;
tcon              193 drivers/gpu/drm/sun4i/sun4i_dotclock.c 	tcon->dclk = clk_register(dev, &dclk->hw);
tcon              194 drivers/gpu/drm/sun4i/sun4i_dotclock.c 	if (IS_ERR(tcon->dclk))
tcon              195 drivers/gpu/drm/sun4i/sun4i_dotclock.c 		return PTR_ERR(tcon->dclk);
tcon              201 drivers/gpu/drm/sun4i/sun4i_dotclock.c int sun4i_dclk_free(struct sun4i_tcon *tcon)
tcon              203 drivers/gpu/drm/sun4i/sun4i_dotclock.c 	clk_unregister(tcon->dclk);
tcon               14 drivers/gpu/drm/sun4i/sun4i_dotclock.h int sun4i_dclk_create(struct device *dev, struct sun4i_tcon *tcon);
tcon               15 drivers/gpu/drm/sun4i/sun4i_dotclock.h int sun4i_dclk_free(struct sun4i_tcon *tcon);
tcon              102 drivers/gpu/drm/sun4i/sun4i_lvds.c int sun4i_lvds_init(struct drm_device *drm, struct sun4i_tcon *tcon)
tcon              114 drivers/gpu/drm/sun4i/sun4i_lvds.c 	ret = drm_of_find_panel_or_bridge(tcon->dev->of_node, 1, 0,
tcon              134 drivers/gpu/drm/sun4i/sun4i_lvds.c 	lvds->encoder.possible_crtcs = drm_crtc_mask(&tcon->crtc->crtc);
tcon               10 drivers/gpu/drm/sun4i/sun4i_lvds.h int sun4i_lvds_init(struct drm_device *drm, struct sun4i_tcon *tcon);
tcon               25 drivers/gpu/drm/sun4i/sun4i_rgb.c 	struct sun4i_tcon	*tcon;
tcon               64 drivers/gpu/drm/sun4i/sun4i_rgb.c 	struct sun4i_tcon *tcon = rgb->tcon;
tcon              119 drivers/gpu/drm/sun4i/sun4i_rgb.c 	tcon->dclk_min_div = 6;
tcon              120 drivers/gpu/drm/sun4i/sun4i_rgb.c 	tcon->dclk_max_div = 127;
tcon              121 drivers/gpu/drm/sun4i/sun4i_rgb.c 	rounded_rate = clk_round_rate(tcon->dclk, rate);
tcon              199 drivers/gpu/drm/sun4i/sun4i_rgb.c int sun4i_rgb_init(struct drm_device *drm, struct sun4i_tcon *tcon)
tcon              208 drivers/gpu/drm/sun4i/sun4i_rgb.c 	rgb->tcon = tcon;
tcon              211 drivers/gpu/drm/sun4i/sun4i_rgb.c 	ret = drm_of_find_panel_or_bridge(tcon->dev->of_node, 1, 0,
tcon              231 drivers/gpu/drm/sun4i/sun4i_rgb.c 	rgb->encoder.possible_crtcs = drm_crtc_mask(&tcon->crtc->crtc);
tcon               12 drivers/gpu/drm/sun4i/sun4i_rgb.h int sun4i_rgb_init(struct drm_device *drm, struct sun4i_tcon *tcon);
tcon               82 drivers/gpu/drm/sun4i/sun4i_tcon.c static void sun4i_tcon_channel_set_status(struct sun4i_tcon *tcon, int channel,
tcon               89 drivers/gpu/drm/sun4i/sun4i_tcon.c 		WARN_ON(!tcon->quirks->has_channel_0);
tcon               90 drivers/gpu/drm/sun4i/sun4i_tcon.c 		regmap_update_bits(tcon->regs, SUN4I_TCON0_CTL_REG,
tcon               93 drivers/gpu/drm/sun4i/sun4i_tcon.c 		clk = tcon->dclk;
tcon               96 drivers/gpu/drm/sun4i/sun4i_tcon.c 		WARN_ON(!tcon->quirks->has_channel_1);
tcon               97 drivers/gpu/drm/sun4i/sun4i_tcon.c 		regmap_update_bits(tcon->regs, SUN4I_TCON1_CTL_REG,
tcon              100 drivers/gpu/drm/sun4i/sun4i_tcon.c 		clk = tcon->sclk1;
tcon              116 drivers/gpu/drm/sun4i/sun4i_tcon.c static void sun4i_tcon_lvds_set_status(struct sun4i_tcon *tcon,
tcon              123 drivers/gpu/drm/sun4i/sun4i_tcon.c 		regmap_update_bits(tcon->regs, SUN4I_TCON0_LVDS_IF_REG,
tcon              132 drivers/gpu/drm/sun4i/sun4i_tcon.c 		regmap_write(tcon->regs, SUN4I_TCON0_LVDS_ANA0_REG,
tcon              139 drivers/gpu/drm/sun4i/sun4i_tcon.c 		regmap_update_bits(tcon->regs, SUN4I_TCON0_LVDS_ANA0_REG,
tcon              144 drivers/gpu/drm/sun4i/sun4i_tcon.c 		regmap_update_bits(tcon->regs, SUN4I_TCON0_LVDS_ANA0_REG,
tcon              153 drivers/gpu/drm/sun4i/sun4i_tcon.c 		regmap_write_bits(tcon->regs, SUN4I_TCON0_LVDS_ANA0_REG,
tcon              157 drivers/gpu/drm/sun4i/sun4i_tcon.c 		regmap_update_bits(tcon->regs, SUN4I_TCON0_LVDS_IF_REG,
tcon              162 drivers/gpu/drm/sun4i/sun4i_tcon.c void sun4i_tcon_set_status(struct sun4i_tcon *tcon,
tcon              187 drivers/gpu/drm/sun4i/sun4i_tcon.c 		sun4i_tcon_lvds_set_status(tcon, encoder, false);
tcon              189 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_update_bits(tcon->regs, SUN4I_TCON_GCTL_REG,
tcon              194 drivers/gpu/drm/sun4i/sun4i_tcon.c 		sun4i_tcon_lvds_set_status(tcon, encoder, true);
tcon              196 drivers/gpu/drm/sun4i/sun4i_tcon.c 	sun4i_tcon_channel_set_status(tcon, channel, enabled);
tcon              199 drivers/gpu/drm/sun4i/sun4i_tcon.c void sun4i_tcon_enable_vblank(struct sun4i_tcon *tcon, bool enable)
tcon              212 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_update_bits(tcon->regs, SUN4I_TCON_GINT0_REG, mask, val);
tcon              225 drivers/gpu/drm/sun4i/sun4i_tcon.c 	struct sun4i_tcon *tcon;
tcon              227 drivers/gpu/drm/sun4i/sun4i_tcon.c 	list_for_each_entry(tcon, &drv->tcon_list, list)
tcon              228 drivers/gpu/drm/sun4i/sun4i_tcon.c 		if (tcon->id == 0)
tcon              229 drivers/gpu/drm/sun4i/sun4i_tcon.c 			return tcon;
tcon              237 drivers/gpu/drm/sun4i/sun4i_tcon.c static void sun4i_tcon_set_mux(struct sun4i_tcon *tcon, int channel,
tcon              242 drivers/gpu/drm/sun4i/sun4i_tcon.c 	if (tcon->quirks->set_mux)
tcon              243 drivers/gpu/drm/sun4i/sun4i_tcon.c 		ret = tcon->quirks->set_mux(tcon, encoder);
tcon              267 drivers/gpu/drm/sun4i/sun4i_tcon.c static void sun4i_tcon0_mode_set_common(struct sun4i_tcon *tcon,
tcon              271 drivers/gpu/drm/sun4i/sun4i_tcon.c 	clk_set_rate(tcon->dclk, mode->crtc_clock * 1000);
tcon              274 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_BASIC0_REG,
tcon              279 drivers/gpu/drm/sun4i/sun4i_tcon.c static void sun4i_tcon0_mode_set_dithering(struct sun4i_tcon *tcon,
tcon              295 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_FRM_SEED_PR_REG, 0x11111111);
tcon              296 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_FRM_SEED_PG_REG, 0x11111111);
tcon              297 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_FRM_SEED_PB_REG, 0x11111111);
tcon              298 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_FRM_SEED_LR_REG, 0x11111111);
tcon              299 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_FRM_SEED_LG_REG, 0x11111111);
tcon              300 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_FRM_SEED_LB_REG, 0x11111111);
tcon              301 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_FRM_TBL0_REG, 0x01010000);
tcon              302 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_FRM_TBL1_REG, 0x15151111);
tcon              303 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_FRM_TBL2_REG, 0x57575555);
tcon              304 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_FRM_TBL3_REG, 0x7f7f7777);
tcon              328 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON_FRM_CTL_REG, val);
tcon              331 drivers/gpu/drm/sun4i/sun4i_tcon.c static void sun4i_tcon0_mode_set_cpu(struct sun4i_tcon *tcon,
tcon              343 drivers/gpu/drm/sun4i/sun4i_tcon.c 	tcon->dclk_min_div = SUN6I_DSI_TCON_DIV;
tcon              344 drivers/gpu/drm/sun4i/sun4i_tcon.c 	tcon->dclk_max_div = SUN6I_DSI_TCON_DIV;
tcon              346 drivers/gpu/drm/sun4i/sun4i_tcon.c 	sun4i_tcon0_mode_set_common(tcon, mode);
tcon              349 drivers/gpu/drm/sun4i/sun4i_tcon.c 	sun4i_tcon0_mode_set_dithering(tcon, sun4i_tcon_get_connector(encoder));
tcon              351 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_update_bits(tcon->regs, SUN4I_TCON0_CTL_REG,
tcon              355 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON_ECC_FIFO_REG,
tcon              358 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_CPU_IF_REG,
tcon              370 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_read(tcon->regs, SUN4I_TCON0_DCLK_REG, &tcon_div);
tcon              375 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_CPU_TRI0_REG,
tcon              379 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_CPU_TRI1_REG,
tcon              385 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_CPU_TRI2_REG,
tcon              393 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON_SAFE_PERIOD_REG,
tcon              398 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_IO_TRI_REG,
tcon              402 drivers/gpu/drm/sun4i/sun4i_tcon.c static void sun4i_tcon0_mode_set_lvds(struct sun4i_tcon *tcon,
tcon              410 drivers/gpu/drm/sun4i/sun4i_tcon.c 	WARN_ON(!tcon->quirks->has_channel_0);
tcon              412 drivers/gpu/drm/sun4i/sun4i_tcon.c 	tcon->dclk_min_div = 7;
tcon              413 drivers/gpu/drm/sun4i/sun4i_tcon.c 	tcon->dclk_max_div = 7;
tcon              414 drivers/gpu/drm/sun4i/sun4i_tcon.c 	sun4i_tcon0_mode_set_common(tcon, mode);
tcon              417 drivers/gpu/drm/sun4i/sun4i_tcon.c 	sun4i_tcon0_mode_set_dithering(tcon, sun4i_tcon_get_connector(encoder));
tcon              421 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_update_bits(tcon->regs, SUN4I_TCON0_CTL_REG,
tcon              434 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_BASIC1_REG,
tcon              447 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_BASIC2_REG,
tcon              459 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_LVDS_IF_REG, reg);
tcon              468 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_IO_POL_REG, val);
tcon              471 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_update_bits(tcon->regs, SUN4I_TCON_GCTL_REG,
tcon              476 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_IO_TRI_REG, 0xe0000000);
tcon              479 drivers/gpu/drm/sun4i/sun4i_tcon.c static void sun4i_tcon0_mode_set_rgb(struct sun4i_tcon *tcon,
tcon              489 drivers/gpu/drm/sun4i/sun4i_tcon.c 	WARN_ON(!tcon->quirks->has_channel_0);
tcon              491 drivers/gpu/drm/sun4i/sun4i_tcon.c 	tcon->dclk_min_div = tcon->quirks->dclk_min_div;
tcon              492 drivers/gpu/drm/sun4i/sun4i_tcon.c 	tcon->dclk_max_div = 127;
tcon              493 drivers/gpu/drm/sun4i/sun4i_tcon.c 	sun4i_tcon0_mode_set_common(tcon, mode);
tcon              496 drivers/gpu/drm/sun4i/sun4i_tcon.c 	sun4i_tcon0_mode_set_dithering(tcon, connector);
tcon              500 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_update_bits(tcon->regs, SUN4I_TCON0_CTL_REG,
tcon              513 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_BASIC1_REG,
tcon              526 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_BASIC2_REG,
tcon              534 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_BASIC3_REG,
tcon              564 drivers/gpu/drm/sun4i/sun4i_tcon.c 		clk_set_phase(tcon->dclk, 240);
tcon              567 drivers/gpu/drm/sun4i/sun4i_tcon.c 		clk_set_phase(tcon->dclk, 0);
tcon              569 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_update_bits(tcon->regs, SUN4I_TCON0_IO_POL_REG,
tcon              576 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_update_bits(tcon->regs, SUN4I_TCON_GCTL_REG,
tcon              581 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_IO_TRI_REG, 0);
tcon              584 drivers/gpu/drm/sun4i/sun4i_tcon.c static void sun4i_tcon1_mode_set(struct sun4i_tcon *tcon,
tcon              591 drivers/gpu/drm/sun4i/sun4i_tcon.c 	WARN_ON(!tcon->quirks->has_channel_1);
tcon              594 drivers/gpu/drm/sun4i/sun4i_tcon.c 	clk_set_rate(tcon->sclk1, mode->crtc_clock * 1000);
tcon              598 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_update_bits(tcon->regs, SUN4I_TCON1_CTL_REG,
tcon              607 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_update_bits(tcon->regs, SUN4I_TCON1_CTL_REG,
tcon              612 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON1_BASIC0_REG,
tcon              617 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON1_BASIC1_REG,
tcon              622 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON1_BASIC2_REG,
tcon              630 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON1_BASIC3_REG,
tcon              656 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON1_BASIC4_REG,
tcon              664 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON1_BASIC5_REG,
tcon              669 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_update_bits(tcon->regs, SUN4I_TCON_GCTL_REG,
tcon              674 drivers/gpu/drm/sun4i/sun4i_tcon.c void sun4i_tcon_mode_set(struct sun4i_tcon *tcon,
tcon              681 drivers/gpu/drm/sun4i/sun4i_tcon.c 		sun4i_tcon0_mode_set_cpu(tcon, encoder, mode);
tcon              684 drivers/gpu/drm/sun4i/sun4i_tcon.c 		sun4i_tcon0_mode_set_lvds(tcon, encoder, mode);
tcon              687 drivers/gpu/drm/sun4i/sun4i_tcon.c 		sun4i_tcon0_mode_set_rgb(tcon, encoder, mode);
tcon              688 drivers/gpu/drm/sun4i/sun4i_tcon.c 		sun4i_tcon_set_mux(tcon, 0, encoder);
tcon              692 drivers/gpu/drm/sun4i/sun4i_tcon.c 		sun4i_tcon1_mode_set(tcon, mode);
tcon              693 drivers/gpu/drm/sun4i/sun4i_tcon.c 		sun4i_tcon_set_mux(tcon, 1, encoder);
tcon              717 drivers/gpu/drm/sun4i/sun4i_tcon.c 	struct sun4i_tcon *tcon = private;
tcon              718 drivers/gpu/drm/sun4i/sun4i_tcon.c 	struct drm_device *drm = tcon->drm;
tcon              719 drivers/gpu/drm/sun4i/sun4i_tcon.c 	struct sun4i_crtc *scrtc = tcon->crtc;
tcon              723 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_read(tcon->regs, SUN4I_TCON_GINT0_REG, &status);
tcon              734 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_update_bits(tcon->regs, SUN4I_TCON_GINT0_REG,
tcon              747 drivers/gpu/drm/sun4i/sun4i_tcon.c 				  struct sun4i_tcon *tcon)
tcon              749 drivers/gpu/drm/sun4i/sun4i_tcon.c 	tcon->clk = devm_clk_get(dev, "ahb");
tcon              750 drivers/gpu/drm/sun4i/sun4i_tcon.c 	if (IS_ERR(tcon->clk)) {
tcon              752 drivers/gpu/drm/sun4i/sun4i_tcon.c 		return PTR_ERR(tcon->clk);
tcon              754 drivers/gpu/drm/sun4i/sun4i_tcon.c 	clk_prepare_enable(tcon->clk);
tcon              756 drivers/gpu/drm/sun4i/sun4i_tcon.c 	if (tcon->quirks->has_channel_0) {
tcon              757 drivers/gpu/drm/sun4i/sun4i_tcon.c 		tcon->sclk0 = devm_clk_get(dev, "tcon-ch0");
tcon              758 drivers/gpu/drm/sun4i/sun4i_tcon.c 		if (IS_ERR(tcon->sclk0)) {
tcon              760 drivers/gpu/drm/sun4i/sun4i_tcon.c 			return PTR_ERR(tcon->sclk0);
tcon              763 drivers/gpu/drm/sun4i/sun4i_tcon.c 	clk_prepare_enable(tcon->sclk0);
tcon              765 drivers/gpu/drm/sun4i/sun4i_tcon.c 	if (tcon->quirks->has_channel_1) {
tcon              766 drivers/gpu/drm/sun4i/sun4i_tcon.c 		tcon->sclk1 = devm_clk_get(dev, "tcon-ch1");
tcon              767 drivers/gpu/drm/sun4i/sun4i_tcon.c 		if (IS_ERR(tcon->sclk1)) {
tcon              769 drivers/gpu/drm/sun4i/sun4i_tcon.c 			return PTR_ERR(tcon->sclk1);
tcon              776 drivers/gpu/drm/sun4i/sun4i_tcon.c static void sun4i_tcon_free_clocks(struct sun4i_tcon *tcon)
tcon              778 drivers/gpu/drm/sun4i/sun4i_tcon.c 	clk_disable_unprepare(tcon->sclk0);
tcon              779 drivers/gpu/drm/sun4i/sun4i_tcon.c 	clk_disable_unprepare(tcon->clk);
tcon              783 drivers/gpu/drm/sun4i/sun4i_tcon.c 			       struct sun4i_tcon *tcon)
tcon              795 drivers/gpu/drm/sun4i/sun4i_tcon.c 			       dev_name(dev), tcon);
tcon              812 drivers/gpu/drm/sun4i/sun4i_tcon.c 				  struct sun4i_tcon *tcon)
tcon              823 drivers/gpu/drm/sun4i/sun4i_tcon.c 	tcon->regs = devm_regmap_init_mmio(dev, regs,
tcon              825 drivers/gpu/drm/sun4i/sun4i_tcon.c 	if (IS_ERR(tcon->regs)) {
tcon              827 drivers/gpu/drm/sun4i/sun4i_tcon.c 		return PTR_ERR(tcon->regs);
tcon              831 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON_GCTL_REG, 0);
tcon              832 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON_GINT0_REG, 0);
tcon              833 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON_GINT1_REG, 0);
tcon              836 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON0_IO_TRI_REG, ~0);
tcon              837 drivers/gpu/drm/sun4i/sun4i_tcon.c 	regmap_write(tcon->regs, SUN4I_TCON1_IO_TRI_REG, ~0);
tcon             1090 drivers/gpu/drm/sun4i/sun4i_tcon.c 	struct sun4i_tcon *tcon;
tcon             1101 drivers/gpu/drm/sun4i/sun4i_tcon.c 	tcon = devm_kzalloc(dev, sizeof(*tcon), GFP_KERNEL);
tcon             1102 drivers/gpu/drm/sun4i/sun4i_tcon.c 	if (!tcon)
tcon             1104 drivers/gpu/drm/sun4i/sun4i_tcon.c 	dev_set_drvdata(dev, tcon);
tcon             1105 drivers/gpu/drm/sun4i/sun4i_tcon.c 	tcon->drm = drm;
tcon             1106 drivers/gpu/drm/sun4i/sun4i_tcon.c 	tcon->dev = dev;
tcon             1107 drivers/gpu/drm/sun4i/sun4i_tcon.c 	tcon->id = engine->id;
tcon             1108 drivers/gpu/drm/sun4i/sun4i_tcon.c 	tcon->quirks = of_device_get_match_data(dev);
tcon             1110 drivers/gpu/drm/sun4i/sun4i_tcon.c 	tcon->lcd_rst = devm_reset_control_get(dev, "lcd");
tcon             1111 drivers/gpu/drm/sun4i/sun4i_tcon.c 	if (IS_ERR(tcon->lcd_rst)) {
tcon             1113 drivers/gpu/drm/sun4i/sun4i_tcon.c 		return PTR_ERR(tcon->lcd_rst);
tcon             1116 drivers/gpu/drm/sun4i/sun4i_tcon.c 	if (tcon->quirks->needs_edp_reset) {
tcon             1131 drivers/gpu/drm/sun4i/sun4i_tcon.c 	ret = reset_control_reset(tcon->lcd_rst);
tcon             1137 drivers/gpu/drm/sun4i/sun4i_tcon.c 	if (tcon->quirks->supports_lvds) {
tcon             1145 drivers/gpu/drm/sun4i/sun4i_tcon.c 		tcon->lvds_rst = devm_reset_control_get_optional(dev, "lvds");
tcon             1146 drivers/gpu/drm/sun4i/sun4i_tcon.c 		if (IS_ERR(tcon->lvds_rst)) {
tcon             1148 drivers/gpu/drm/sun4i/sun4i_tcon.c 			return PTR_ERR(tcon->lvds_rst);
tcon             1149 drivers/gpu/drm/sun4i/sun4i_tcon.c 		} else if (tcon->lvds_rst) {
tcon             1151 drivers/gpu/drm/sun4i/sun4i_tcon.c 			reset_control_reset(tcon->lvds_rst);
tcon             1163 drivers/gpu/drm/sun4i/sun4i_tcon.c 		if (tcon->quirks->has_lvds_alt) {
tcon             1164 drivers/gpu/drm/sun4i/sun4i_tcon.c 			tcon->lvds_pll = devm_clk_get(dev, "lvds-alt");
tcon             1165 drivers/gpu/drm/sun4i/sun4i_tcon.c 			if (IS_ERR(tcon->lvds_pll)) {
tcon             1166 drivers/gpu/drm/sun4i/sun4i_tcon.c 				if (PTR_ERR(tcon->lvds_pll) == -ENOENT) {
tcon             1170 drivers/gpu/drm/sun4i/sun4i_tcon.c 					return PTR_ERR(tcon->lvds_pll);
tcon             1178 drivers/gpu/drm/sun4i/sun4i_tcon.c 		    (tcon->quirks->has_lvds_alt && !has_lvds_alt)) {
tcon             1189 drivers/gpu/drm/sun4i/sun4i_tcon.c 	ret = sun4i_tcon_init_clocks(dev, tcon);
tcon             1195 drivers/gpu/drm/sun4i/sun4i_tcon.c 	ret = sun4i_tcon_init_regmap(dev, tcon);
tcon             1201 drivers/gpu/drm/sun4i/sun4i_tcon.c 	if (tcon->quirks->has_channel_0) {
tcon             1202 drivers/gpu/drm/sun4i/sun4i_tcon.c 		ret = sun4i_dclk_create(dev, tcon);
tcon             1209 drivers/gpu/drm/sun4i/sun4i_tcon.c 	ret = sun4i_tcon_init_irq(dev, tcon);
tcon             1215 drivers/gpu/drm/sun4i/sun4i_tcon.c 	tcon->crtc = sun4i_crtc_init(drm, engine, tcon);
tcon             1216 drivers/gpu/drm/sun4i/sun4i_tcon.c 	if (IS_ERR(tcon->crtc)) {
tcon             1218 drivers/gpu/drm/sun4i/sun4i_tcon.c 		ret = PTR_ERR(tcon->crtc);
tcon             1222 drivers/gpu/drm/sun4i/sun4i_tcon.c 	if (tcon->quirks->has_channel_0) {
tcon             1231 drivers/gpu/drm/sun4i/sun4i_tcon.c 				ret = sun4i_lvds_init(drm, tcon);
tcon             1235 drivers/gpu/drm/sun4i/sun4i_tcon.c 			ret = sun4i_rgb_init(drm, tcon);
tcon             1242 drivers/gpu/drm/sun4i/sun4i_tcon.c 	if (tcon->quirks->needs_de_be_mux) {
tcon             1253 drivers/gpu/drm/sun4i/sun4i_tcon.c 		regmap_update_bits(tcon->regs, SUN4I_TCON0_CTL_REG,
tcon             1255 drivers/gpu/drm/sun4i/sun4i_tcon.c 				   tcon->id);
tcon             1256 drivers/gpu/drm/sun4i/sun4i_tcon.c 		regmap_update_bits(tcon->regs, SUN4I_TCON1_CTL_REG,
tcon             1258 drivers/gpu/drm/sun4i/sun4i_tcon.c 				   tcon->id);
tcon             1261 drivers/gpu/drm/sun4i/sun4i_tcon.c 	list_add_tail(&tcon->list, &drv->tcon_list);
tcon             1266 drivers/gpu/drm/sun4i/sun4i_tcon.c 	if (tcon->quirks->has_channel_0)
tcon             1267 drivers/gpu/drm/sun4i/sun4i_tcon.c 		sun4i_dclk_free(tcon);
tcon             1269 drivers/gpu/drm/sun4i/sun4i_tcon.c 	sun4i_tcon_free_clocks(tcon);
tcon             1271 drivers/gpu/drm/sun4i/sun4i_tcon.c 	reset_control_assert(tcon->lcd_rst);
tcon             1278 drivers/gpu/drm/sun4i/sun4i_tcon.c 	struct sun4i_tcon *tcon = dev_get_drvdata(dev);
tcon             1280 drivers/gpu/drm/sun4i/sun4i_tcon.c 	list_del(&tcon->list);
tcon             1281 drivers/gpu/drm/sun4i/sun4i_tcon.c 	if (tcon->quirks->has_channel_0)
tcon             1282 drivers/gpu/drm/sun4i/sun4i_tcon.c 		sun4i_dclk_free(tcon);
tcon             1283 drivers/gpu/drm/sun4i/sun4i_tcon.c 	sun4i_tcon_free_clocks(tcon);
tcon             1319 drivers/gpu/drm/sun4i/sun4i_tcon.c static int sun4i_a10_tcon_set_mux(struct sun4i_tcon *tcon,
tcon             1338 drivers/gpu/drm/sun4i/sun4i_tcon.c 			   0x3 << shift, tcon->id << shift);
tcon             1343 drivers/gpu/drm/sun4i/sun4i_tcon.c static int sun5i_a13_tcon_set_mux(struct sun4i_tcon *tcon,
tcon             1356 drivers/gpu/drm/sun4i/sun4i_tcon.c 	return regmap_write(tcon->regs, SUN4I_TCON_MUX_CTRL_REG, val);
tcon             1359 drivers/gpu/drm/sun4i/sun4i_tcon.c static int sun6i_tcon_set_mux(struct sun4i_tcon *tcon,
tcon             1379 drivers/gpu/drm/sun4i/sun4i_tcon.c 			   0x3 << shift, tcon->id << shift);
tcon             1384 drivers/gpu/drm/sun4i/sun4i_tcon.c static int sun8i_r40_tcon_tv_set_mux(struct sun4i_tcon *tcon,
tcon             1393 drivers/gpu/drm/sun4i/sun4i_tcon.c 	port = of_graph_get_port_by_id(tcon->dev->of_node, 0);
tcon             1400 drivers/gpu/drm/sun4i/sun4i_tcon.c 	remote = of_graph_get_remote_node(tcon->dev->of_node, 0, -1);
tcon             1417 drivers/gpu/drm/sun4i/sun4i_tcon.c 		ret = sun8i_tcon_top_de_config(&pdev->dev, tcon->id, id);
tcon              272 drivers/gpu/drm/sun4i/sun4i_tcon.h void sun4i_tcon_enable_vblank(struct sun4i_tcon *tcon, bool enable);
tcon              273 drivers/gpu/drm/sun4i/sun4i_tcon.h void sun4i_tcon_mode_set(struct sun4i_tcon *tcon,
tcon               28 drivers/gpu/drm/sun4i/sun8i_tcon_top.c int sun8i_tcon_top_set_hdmi_src(struct device *dev, int tcon)
tcon               39 drivers/gpu/drm/sun4i/sun8i_tcon_top.c 	if (tcon < 2 || tcon > 3) {
tcon               48 drivers/gpu/drm/sun4i/sun8i_tcon_top.c 	val |= FIELD_PREP(TCON_TOP_HDMI_SRC_MSK, tcon - 1);
tcon               57 drivers/gpu/drm/sun4i/sun8i_tcon_top.c int sun8i_tcon_top_de_config(struct device *dev, int mixer, int tcon)
tcon               73 drivers/gpu/drm/sun4i/sun8i_tcon_top.c 	if (tcon > 3) {
tcon               83 drivers/gpu/drm/sun4i/sun8i_tcon_top.c 		reg |= FIELD_PREP(TCON_TOP_PORT_DE0_MSK, tcon);
tcon               86 drivers/gpu/drm/sun4i/sun8i_tcon_top.c 		reg |= FIELD_PREP(TCON_TOP_PORT_DE1_MSK, tcon);
tcon               41 drivers/gpu/drm/sun4i/sun8i_tcon_top.h int sun8i_tcon_top_set_hdmi_src(struct device *dev, int tcon);
tcon               42 drivers/gpu/drm/sun4i/sun8i_tcon_top.h int sun8i_tcon_top_de_config(struct device *dev, int mixer, int tcon);
tcon              245 drivers/pwm/pwm-samsung.c 	u32 tcon;
tcon              249 drivers/pwm/pwm-samsung.c 	tcon = readl(our_chip->base + REG_TCON);
tcon              251 drivers/pwm/pwm-samsung.c 	tcon &= ~TCON_START(tcon_chan);
tcon              252 drivers/pwm/pwm-samsung.c 	tcon |= TCON_MANUALUPDATE(tcon_chan);
tcon              253 drivers/pwm/pwm-samsung.c 	writel(tcon, our_chip->base + REG_TCON);
tcon              255 drivers/pwm/pwm-samsung.c 	tcon &= ~TCON_MANUALUPDATE(tcon_chan);
tcon              256 drivers/pwm/pwm-samsung.c 	tcon |= TCON_START(tcon_chan) | TCON_AUTORELOAD(tcon_chan);
tcon              257 drivers/pwm/pwm-samsung.c 	writel(tcon, our_chip->base + REG_TCON);
tcon              271 drivers/pwm/pwm-samsung.c 	u32 tcon;
tcon              275 drivers/pwm/pwm-samsung.c 	tcon = readl(our_chip->base + REG_TCON);
tcon              276 drivers/pwm/pwm-samsung.c 	tcon &= ~TCON_AUTORELOAD(tcon_chan);
tcon              277 drivers/pwm/pwm-samsung.c 	writel(tcon, our_chip->base + REG_TCON);
tcon              288 drivers/pwm/pwm-samsung.c 	u32 tcon;
tcon              293 drivers/pwm/pwm-samsung.c 	tcon = readl(chip->base + REG_TCON);
tcon              294 drivers/pwm/pwm-samsung.c 	tcon |= TCON_MANUALUPDATE(tcon_chan);
tcon              295 drivers/pwm/pwm-samsung.c 	writel(tcon, chip->base + REG_TCON);
tcon              297 drivers/pwm/pwm-samsung.c 	tcon &= ~TCON_MANUALUPDATE(tcon_chan);
tcon              298 drivers/pwm/pwm-samsung.c 	writel(tcon, chip->base + REG_TCON);
tcon              395 drivers/pwm/pwm-samsung.c 	u32 tcon;
tcon              399 drivers/pwm/pwm-samsung.c 	tcon = readl(chip->base + REG_TCON);
tcon              403 drivers/pwm/pwm-samsung.c 		tcon |= TCON_INVERT(tcon_chan);
tcon              406 drivers/pwm/pwm-samsung.c 		tcon &= ~TCON_INVERT(tcon_chan);
tcon              409 drivers/pwm/pwm-samsung.c 	writel(tcon, chip->base + REG_TCON);
tcon               94 fs/cifs/cache.c 	const struct cifs_tcon *tcon = cookie_netfs_data;
tcon              100 fs/cifs/cache.c 	auxdata.resource_id = tcon->resource_id;
tcon               87 fs/cifs/cifs_debug.c static void cifs_debug_tcon(struct seq_file *m, struct cifs_tcon *tcon)
tcon               89 fs/cifs/cifs_debug.c 	__u32 dev_type = le32_to_cpu(tcon->fsDevInfo.DeviceType);
tcon               91 fs/cifs/cifs_debug.c 	seq_printf(m, "%s Mounts: %d ", tcon->treeName, tcon->tc_count);
tcon               92 fs/cifs/cifs_debug.c 	if (tcon->nativeFileSystem)
tcon               93 fs/cifs/cifs_debug.c 		seq_printf(m, "Type: %s ", tcon->nativeFileSystem);
tcon               95 fs/cifs/cifs_debug.c 		   le32_to_cpu(tcon->fsDevInfo.DeviceCharacteristics),
tcon               96 fs/cifs/cifs_debug.c 		   le32_to_cpu(tcon->fsAttrInfo.Attributes),
tcon               97 fs/cifs/cifs_debug.c 		   le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength),
tcon               98 fs/cifs/cifs_debug.c 		   tcon->tidStatus);
tcon              106 fs/cifs/cifs_debug.c 	seq_printf(m, "Serial Number: 0x%x", tcon->vol_serial_number);
tcon              108 fs/cifs/cifs_debug.c 	if ((tcon->seal) ||
tcon              109 fs/cifs/cifs_debug.c 	    (tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) ||
tcon              110 fs/cifs/cifs_debug.c 	    (tcon->share_flags & SHI1005_FLAGS_ENCRYPT_DATA))
tcon              112 fs/cifs/cifs_debug.c 	if (tcon->nocase)
tcon              114 fs/cifs/cifs_debug.c 	if (tcon->unix_ext)
tcon              116 fs/cifs/cifs_debug.c 	if (tcon->ses->server->ops->dump_share_caps)
tcon              117 fs/cifs/cifs_debug.c 		tcon->ses->server->ops->dump_share_caps(m, tcon);
tcon              119 fs/cifs/cifs_debug.c 	if (tcon->need_reconnect)
tcon              148 fs/cifs/cifs_debug.c 	struct cifs_tcon *tcon;
tcon              166 fs/cifs/cifs_debug.c 				tcon = list_entry(tmp1, struct cifs_tcon, tcon_list);
tcon              167 fs/cifs/cifs_debug.c 				spin_lock(&tcon->open_file_lock);
tcon              168 fs/cifs/cifs_debug.c 				list_for_each(tmp2, &tcon->openFileList) {
tcon              173 fs/cifs/cifs_debug.c 						tcon->tid,
tcon              186 fs/cifs/cifs_debug.c 				spin_unlock(&tcon->open_file_lock);
tcon              201 fs/cifs/cifs_debug.c 	struct cifs_tcon *tcon;
tcon              390 fs/cifs/cifs_debug.c 				tcon = list_entry(tmp3, struct cifs_tcon,
tcon              394 fs/cifs/cifs_debug.c 				cifs_debug_tcon(m, tcon);
tcon              439 fs/cifs/cifs_debug.c 	struct cifs_tcon *tcon;
tcon              474 fs/cifs/cifs_debug.c 					tcon = list_entry(tmp3,
tcon              477 fs/cifs/cifs_debug.c 					atomic_set(&tcon->num_smbs_sent, 0);
tcon              478 fs/cifs/cifs_debug.c 					spin_lock(&tcon->stat_lock);
tcon              479 fs/cifs/cifs_debug.c 					tcon->bytes_read = 0;
tcon              480 fs/cifs/cifs_debug.c 					tcon->bytes_written = 0;
tcon              481 fs/cifs/cifs_debug.c 					spin_unlock(&tcon->stat_lock);
tcon              483 fs/cifs/cifs_debug.c 						server->ops->clear_stats(tcon);
tcon              504 fs/cifs/cifs_debug.c 	struct cifs_tcon *tcon;
tcon              557 fs/cifs/cifs_debug.c 				tcon = list_entry(tmp3,
tcon              561 fs/cifs/cifs_debug.c 				seq_printf(m, "\n%d) %s", i, tcon->treeName);
tcon              562 fs/cifs/cifs_debug.c 				if (tcon->need_reconnect)
tcon              565 fs/cifs/cifs_debug.c 					   atomic_read(&tcon->num_smbs_sent));
tcon              567 fs/cifs/cifs_debug.c 					server->ops->print_stats(m, tcon);
tcon              113 fs/cifs/cifs_debug.h 	if (tcon && tcon->treeName)				\
tcon              114 fs/cifs/cifs_debug.h 		tn = tcon->treeName;				\
tcon              158 fs/cifs/cifs_debug.h 		pr_debug("%s " fmt, tcon->treeName, ##__VA_ARGS__);	\
tcon              299 fs/cifs/cifs_dfs_ref.c 	struct cifs_tcon *tcon;
tcon              336 fs/cifs/cifs_dfs_ref.c 	tcon = cifs_sb_master_tcon(cifs_sb);
tcon              337 fs/cifs/cifs_dfs_ref.c 	if (!tcon) {
tcon              342 fs/cifs/cifs_dfs_ref.c 	root_path = kstrdup(tcon->treeName, GFP_KERNEL);
tcon              349 fs/cifs/cifs_dfs_ref.c 	ses = tcon->ses;
tcon             1060 fs/cifs/cifsacl.c 	struct cifs_tcon *tcon;
tcon             1068 fs/cifs/cifsacl.c 	tcon = tlink_tcon(tlink);
tcon             1074 fs/cifs/cifsacl.c 	oparms.tcon = tcon;
tcon             1085 fs/cifs/cifsacl.c 		rc = CIFSSMBGetCIFSACL(xid, tcon, fid.netfid, &pntsd, pacllen);
tcon             1086 fs/cifs/cifsacl.c 		CIFSSMBClose(xid, tcon, fid.netfid);
tcon             1123 fs/cifs/cifsacl.c 	struct cifs_tcon *tcon;
tcon             1132 fs/cifs/cifsacl.c 	tcon = tlink_tcon(tlink);
tcon             1143 fs/cifs/cifsacl.c 	oparms.tcon = tcon;
tcon             1158 fs/cifs/cifsacl.c 	rc = CIFSSMBSetCIFSACL(xid, tcon, fid.netfid, pnntsd, acllen, aclflag);
tcon             1161 fs/cifs/cifsacl.c 	CIFSSMBClose(xid, tcon, fid.netfid);
tcon              155 fs/cifs/cifsfs.c 	struct cifs_tcon *tcon;
tcon              160 fs/cifs/cifsfs.c 	tcon = cifs_sb_master_tcon(cifs_sb);
tcon              165 fs/cifs/cifsfs.c 	if (tcon->snapshot_time)
tcon              168 fs/cifs/cifsfs.c 	if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files)
tcon              180 fs/cifs/cifsfs.c 	if ((tcon->ses->server->vals->protocol_id == SMB10_PROT_ID) &&
tcon              181 fs/cifs/cifsfs.c 	    ((tcon->ses->capabilities &
tcon              182 fs/cifs/cifsfs.c 	      tcon->ses->server->vals->cap_nt_find) == 0) &&
tcon              183 fs/cifs/cifsfs.c 	    !tcon->unix_ext) {
tcon              220 fs/cifs/cifsfs.c 	if (tcon->nocase)
tcon              257 fs/cifs/cifsfs.c 	struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
tcon              258 fs/cifs/cifsfs.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon              264 fs/cifs/cifsfs.c 	if (le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength) > 0)
tcon              266 fs/cifs/cifsfs.c 		       le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength);
tcon              270 fs/cifs/cifsfs.c 	buf->f_fsid.val[0] = tcon->vol_serial_number;
tcon              272 fs/cifs/cifsfs.c 	buf->f_fsid.val[1] =  (int)le64_to_cpu(tcon->vol_create_time);
tcon              278 fs/cifs/cifsfs.c 		rc = server->ops->queryfs(xid, tcon, buf);
tcon              287 fs/cifs/cifsfs.c 	struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
tcon              288 fs/cifs/cifsfs.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon              291 fs/cifs/cifsfs.c 		return server->ops->fallocate(file, tcon, mode, off, len);
tcon              474 fs/cifs/cifsfs.c 	struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
tcon              476 fs/cifs/cifsfs.c 	srcaddr = (struct sockaddr *)&tcon->ses->server->srcaddr;
tcon              478 fs/cifs/cifsfs.c 	seq_show_option(s, "vers", tcon->ses->server->vals->version_string);
tcon              479 fs/cifs/cifsfs.c 	cifs_show_security(s, tcon->ses);
tcon              482 fs/cifs/cifsfs.c 	if (tcon->no_lease)
tcon              486 fs/cifs/cifsfs.c 	else if (tcon->ses->user_name)
tcon              487 fs/cifs/cifsfs.c 		seq_show_option(s, "username", tcon->ses->user_name);
tcon              489 fs/cifs/cifsfs.c 	if (tcon->ses->domainName && tcon->ses->domainName[0] != 0)
tcon              490 fs/cifs/cifsfs.c 		seq_show_option(s, "domain", tcon->ses->domainName);
tcon              522 fs/cifs/cifsfs.c 	cifs_show_address(s, tcon->ses->server);
tcon              524 fs/cifs/cifsfs.c 	if (!tcon->unix_ext)
tcon              531 fs/cifs/cifsfs.c 	if (tcon->seal)
tcon              533 fs/cifs/cifsfs.c 	else if (tcon->ses->server->ignore_signature)
tcon              535 fs/cifs/cifsfs.c 	if (tcon->nocase)
tcon              537 fs/cifs/cifsfs.c 	if (tcon->local_lease)
tcon              539 fs/cifs/cifsfs.c 	if (tcon->retry)
tcon              543 fs/cifs/cifsfs.c 	if (tcon->use_persistent)
tcon              545 fs/cifs/cifsfs.c 	else if (tcon->use_resilient)
tcon              547 fs/cifs/cifsfs.c 	if (tcon->posix_extensions)
tcon              549 fs/cifs/cifsfs.c 	else if (tcon->unix_ext)
tcon              607 fs/cifs/cifsfs.c 	if (tcon->ses->server->min_offload)
tcon              608 fs/cifs/cifsfs.c 		seq_printf(s, ",esize=%u", tcon->ses->server->min_offload);
tcon              610 fs/cifs/cifsfs.c 			tcon->ses->server->echo_interval / HZ);
tcon              613 fs/cifs/cifsfs.c 	if (tcon->ses->server->max_credits != SMB2_MAX_CREDITS_AVAILABLE)
tcon              614 fs/cifs/cifsfs.c 		seq_printf(s, ",max_credits=%u", tcon->ses->server->max_credits);
tcon              616 fs/cifs/cifsfs.c 	if (tcon->snapshot_time)
tcon              617 fs/cifs/cifsfs.c 		seq_printf(s, ",snapshot=%llu", tcon->snapshot_time);
tcon              618 fs/cifs/cifsfs.c 	if (tcon->handle_timeout)
tcon              619 fs/cifs/cifsfs.c 		seq_printf(s, ",handletimeout=%u", tcon->handle_timeout);
tcon              629 fs/cifs/cifsfs.c 	struct cifs_tcon *tcon;
tcon              634 fs/cifs/cifsfs.c 	tcon = cifs_sb_master_tcon(cifs_sb);
tcon              637 fs/cifs/cifsfs.c 	if ((tcon->tc_count > 1) || (tcon->tidStatus == CifsExiting)) {
tcon              643 fs/cifs/cifsfs.c 	} else if (tcon->tc_count == 1)
tcon              644 fs/cifs/cifsfs.c 		tcon->tidStatus = CifsExiting;
tcon              649 fs/cifs/cifsfs.c 	if (tcon->ses && tcon->ses->server) {
tcon              651 fs/cifs/cifsfs.c 		wake_up_all(&tcon->ses->server->request_q);
tcon              652 fs/cifs/cifsfs.c 		wake_up_all(&tcon->ses->server->response_q);
tcon              655 fs/cifs/cifsfs.c 		wake_up_all(&tcon->ses->server->response_q);
tcon              942 fs/cifs/cifsfs.c 	struct cifs_tcon *tcon;
tcon              976 fs/cifs/cifsfs.c 		tcon = tlink_tcon(cfile->tlink);
tcon              977 fs/cifs/cifsfs.c 		if (tcon->ses->server->ops->llseek)
tcon              978 fs/cifs/cifsfs.c 			return tcon->ses->server->ops->llseek(file, tcon,
tcon              331 fs/cifs/cifsglob.h 			umode_t mode, struct cifs_tcon *tcon,
tcon              335 fs/cifs/cifsglob.h 		     struct cifs_tcon *tcon, const char *name,
tcon              424 fs/cifs/cifsglob.h 	int (*set_integrity)(const unsigned int, struct cifs_tcon *tcon,
tcon              426 fs/cifs/cifsglob.h 	int (*enum_snapshots)(const unsigned int xid, struct cifs_tcon *tcon,
tcon              487 fs/cifs/cifsglob.h 				struct cifs_tcon *tcon,
tcon              494 fs/cifs/cifsglob.h 			 struct cifs_tcon *tcon,
tcon              499 fs/cifs/cifsglob.h 	int (*fiemap)(struct cifs_tcon *tcon, struct cifsFileInfo *,
tcon             1020 fs/cifs/cifsglob.h 	struct cifs_tcon *tcon;
tcon             1215 fs/cifs/cifsglob.h 	struct cifs_tcon *tcon;
tcon             1279 fs/cifs/cifsglob.h 	struct cifs_tcon *tcon;
tcon             1472 fs/cifs/cifsglob.h static inline void cifs_stats_bytes_written(struct cifs_tcon *tcon,
tcon             1476 fs/cifs/cifsglob.h 		spin_lock(&tcon->stat_lock);
tcon             1477 fs/cifs/cifsglob.h 		tcon->bytes_written += bytes;
tcon             1478 fs/cifs/cifsglob.h 		spin_unlock(&tcon->stat_lock);
tcon             1482 fs/cifs/cifsglob.h static inline void cifs_stats_bytes_read(struct cifs_tcon *tcon,
tcon             1485 fs/cifs/cifsglob.h 	spin_lock(&tcon->stat_lock);
tcon             1486 fs/cifs/cifsglob.h 	tcon->bytes_read += bytes;
tcon             1487 fs/cifs/cifsglob.h 	spin_unlock(&tcon->stat_lock);
tcon             1557 fs/cifs/cifsglob.h 	struct cifs_tcon        *tcon;
tcon               77 fs/cifs/cifsproto.h 				     struct cifs_tcon *tcon,
tcon              140 fs/cifs/cifsproto.h extern int cifs_get_writable_path(struct cifs_tcon *tcon, const char *name,
tcon              144 fs/cifs/cifsproto.h extern int cifs_get_readable_path(struct cifs_tcon *tcon, const char *name,
tcon              232 fs/cifs/cifsproto.h extern void cifs_mark_open_files_invalid(struct cifs_tcon *tcon);
tcon              233 fs/cifs/cifsproto.h extern void cifs_reopen_persistent_handles(struct cifs_tcon *tcon);
tcon              248 fs/cifs/cifsproto.h extern void cifs_put_tcon(struct cifs_tcon *tcon);
tcon              271 fs/cifs/cifsproto.h 		    const char *tree, struct cifs_tcon *tcon,
tcon              274 fs/cifs/cifsproto.h extern int CIFSFindFirst(const unsigned int xid, struct cifs_tcon *tcon,
tcon              280 fs/cifs/cifsproto.h extern int CIFSFindNext(const unsigned int xid, struct cifs_tcon *tcon,
tcon              284 fs/cifs/cifsproto.h extern int CIFSFindClose(const unsigned int xid, struct cifs_tcon *tcon,
tcon              287 fs/cifs/cifsproto.h extern int CIFSSMBQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
tcon              289 fs/cifs/cifsproto.h extern int CIFSSMBQPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
tcon              293 fs/cifs/cifsproto.h extern int SMBQueryInformation(const unsigned int xid, struct cifs_tcon *tcon,
tcon              297 fs/cifs/cifsproto.h extern int CIFSSMBUnixQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
tcon              300 fs/cifs/cifsproto.h 			struct cifs_tcon *tcon,
tcon              316 fs/cifs/cifsproto.h extern void reset_cifs_unix_caps(unsigned int xid, struct cifs_tcon *tcon,
tcon              319 fs/cifs/cifsproto.h extern int CIFSSMBQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
tcon              321 fs/cifs/cifsproto.h extern int SMBOldQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
tcon              323 fs/cifs/cifsproto.h extern int CIFSSMBSetFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon,
tcon              327 fs/cifs/cifsproto.h 			struct cifs_tcon *tcon);
tcon              328 fs/cifs/cifsproto.h extern int CIFSSMBQFSDeviceInfo(const unsigned int xid, struct cifs_tcon *tcon);
tcon              329 fs/cifs/cifsproto.h extern int CIFSSMBQFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon);
tcon              330 fs/cifs/cifsproto.h extern int CIFSSMBQFSPosixInfo(const unsigned int xid, struct cifs_tcon *tcon,
tcon              333 fs/cifs/cifsproto.h extern int CIFSSMBSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
tcon              337 fs/cifs/cifsproto.h extern int CIFSSMBSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
tcon              341 fs/cifs/cifsproto.h 				     struct cifs_tcon *tcon,
tcon              345 fs/cifs/cifsproto.h extern int CIFSSMBSetAttrLegacy(unsigned int xid, struct cifs_tcon *tcon,
tcon              349 fs/cifs/cifsproto.h extern int CIFSSMBSetEOF(const unsigned int xid, struct cifs_tcon *tcon,
tcon              352 fs/cifs/cifsproto.h extern int CIFSSMBSetFileSize(const unsigned int xid, struct cifs_tcon *tcon,
tcon              367 fs/cifs/cifsproto.h 				  struct cifs_tcon *tcon,
tcon              372 fs/cifs/cifsproto.h 				  struct cifs_tcon *tcon, const char *file_name,
tcon              378 fs/cifs/cifsproto.h 			umode_t mode, struct cifs_tcon *tcon,
tcon              380 fs/cifs/cifsproto.h extern int CIFSSMBRmDir(const unsigned int xid, struct cifs_tcon *tcon,
tcon              382 fs/cifs/cifsproto.h extern int CIFSPOSIXDelFile(const unsigned int xid, struct cifs_tcon *tcon,
tcon              386 fs/cifs/cifsproto.h extern int CIFSSMBDelFile(const unsigned int xid, struct cifs_tcon *tcon,
tcon              388 fs/cifs/cifsproto.h extern int CIFSSMBRename(const unsigned int xid, struct cifs_tcon *tcon,
tcon              391 fs/cifs/cifsproto.h extern int CIFSSMBRenameOpenFile(const unsigned int xid, struct cifs_tcon *tcon,
tcon              395 fs/cifs/cifsproto.h extern int CIFSCreateHardLink(const unsigned int xid, struct cifs_tcon *tcon,
tcon              399 fs/cifs/cifsproto.h 			struct cifs_tcon *tcon,
tcon              404 fs/cifs/cifsproto.h 			struct cifs_tcon *tcon,
tcon              408 fs/cifs/cifsproto.h 			struct cifs_tcon *tcon,
tcon              411 fs/cifs/cifsproto.h extern int CIFSSMBQuerySymLink(const unsigned int xid, struct cifs_tcon *tcon,
tcon              415 fs/cifs/cifsproto.h 				   struct cifs_tcon *tcon, __u16 fid);
tcon              418 fs/cifs/cifsproto.h extern int SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon,
tcon              423 fs/cifs/cifsproto.h extern int CIFSPOSIXCreate(const unsigned int xid, struct cifs_tcon *tcon,
tcon              428 fs/cifs/cifsproto.h extern int CIFSSMBClose(const unsigned int xid, struct cifs_tcon *tcon,
tcon              431 fs/cifs/cifsproto.h extern int CIFSSMBFlush(const unsigned int xid, struct cifs_tcon *tcon,
tcon              441 fs/cifs/cifsproto.h extern int CIFSGetSrvInodeNumber(const unsigned int xid, struct cifs_tcon *tcon,
tcon              446 fs/cifs/cifsproto.h extern int cifs_lockv(const unsigned int xid, struct cifs_tcon *tcon,
tcon              450 fs/cifs/cifsproto.h extern int CIFSSMBLock(const unsigned int xid, struct cifs_tcon *tcon,
tcon              455 fs/cifs/cifsproto.h extern int CIFSSMBPosixLock(const unsigned int xid, struct cifs_tcon *tcon,
tcon              460 fs/cifs/cifsproto.h extern int CIFSSMBTDis(const unsigned int xid, struct cifs_tcon *tcon);
tcon              491 fs/cifs/cifsproto.h extern int CIFSSMBNotify(const unsigned int xid, struct cifs_tcon *tcon,
tcon              503 fs/cifs/cifsproto.h extern ssize_t CIFSSMBQAllEAs(const unsigned int xid, struct cifs_tcon *tcon,
tcon              507 fs/cifs/cifsproto.h extern int CIFSSMBSetEA(const unsigned int xid, struct cifs_tcon *tcon,
tcon              512 fs/cifs/cifsproto.h extern int CIFSSMBGetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon,
tcon              516 fs/cifs/cifsproto.h extern int CIFSSMBGetPosixACL(const unsigned int xid, struct cifs_tcon *tcon,
tcon              520 fs/cifs/cifsproto.h extern int CIFSSMBSetPosixACL(const unsigned int xid, struct cifs_tcon *tcon,
tcon              524 fs/cifs/cifsproto.h extern int CIFSGetExtAttr(const unsigned int xid, struct cifs_tcon *tcon,
tcon              528 fs/cifs/cifsproto.h extern int check_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
tcon              564 fs/cifs/cifsproto.h int cifs_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
tcon              568 fs/cifs/cifsproto.h int cifs_create_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
tcon               98 fs/cifs/cifssmb.c cifs_mark_open_files_invalid(struct cifs_tcon *tcon)
tcon              105 fs/cifs/cifssmb.c 	spin_lock(&tcon->open_file_lock);
tcon              106 fs/cifs/cifssmb.c 	list_for_each_safe(tmp, tmp1, &tcon->openFileList) {
tcon              111 fs/cifs/cifssmb.c 	spin_unlock(&tcon->open_file_lock);
tcon              113 fs/cifs/cifssmb.c 	mutex_lock(&tcon->crfid.fid_mutex);
tcon              114 fs/cifs/cifssmb.c 	tcon->crfid.is_valid = false;
tcon              115 fs/cifs/cifssmb.c 	memset(tcon->crfid.fid, 0, sizeof(struct cifs_fid));
tcon              116 fs/cifs/cifssmb.c 	mutex_unlock(&tcon->crfid.fid_mutex);
tcon              126 fs/cifs/cifssmb.c 				 struct cifs_tcon *tcon)
tcon              141 fs/cifs/cifssmb.c 	if (tcon->ipc) {
tcon              143 fs/cifs/cifssmb.c 			  tcon->ses->server->hostname);
tcon              144 fs/cifs/cifssmb.c 		rc = CIFSTCon(0, tcon->ses, tree, tcon, nlsc);
tcon              148 fs/cifs/cifssmb.c 	if (!tcon->dfs_path) {
tcon              149 fs/cifs/cifssmb.c 		rc = CIFSTCon(0, tcon->ses, tcon->treeName, tcon, nlsc);
tcon              153 fs/cifs/cifssmb.c 	rc = dfs_cache_noreq_find(tcon->dfs_path + 1, NULL, &tl);
tcon              157 fs/cifs/cifssmb.c 	extract_unc_hostname(tcon->ses->server->hostname, &tcp_host,
tcon              177 fs/cifs/cifssmb.c 		rc = CIFSTCon(0, tcon->ses, tree, tcon, nlsc);
tcon              186 fs/cifs/cifssmb.c 			rc = dfs_cache_noreq_update_tgthint(tcon->dfs_path + 1,
tcon              198 fs/cifs/cifssmb.c 					struct cifs_tcon *tcon)
tcon              200 fs/cifs/cifssmb.c 	return CIFSTCon(0, tcon->ses, tcon->treeName, tcon, nlsc);
tcon              206 fs/cifs/cifssmb.c cifs_reconnect_tcon(struct cifs_tcon *tcon, int smb_command)
tcon              219 fs/cifs/cifssmb.c 	if (!tcon)
tcon              222 fs/cifs/cifssmb.c 	ses = tcon->ses;
tcon              229 fs/cifs/cifssmb.c 	if (tcon->tidStatus == CifsExiting) {
tcon              268 fs/cifs/cifssmb.c 		if (!tcon->retry) {
tcon              275 fs/cifs/cifssmb.c 	if (!ses->need_reconnect && !tcon->need_reconnect)
tcon              302 fs/cifs/cifssmb.c 	if (rc || !tcon->need_reconnect) {
tcon              307 fs/cifs/cifssmb.c 	cifs_mark_open_files_invalid(tcon);
tcon              308 fs/cifs/cifssmb.c 	rc = __cifs_reconnect_tcon(nls_codepage, tcon);
tcon              321 fs/cifs/cifssmb.c 		reset_cifs_unix_caps(0, tcon, NULL, NULL);
tcon              352 fs/cifs/cifssmb.c small_smb_init(int smb_command, int wct, struct cifs_tcon *tcon,
tcon              357 fs/cifs/cifssmb.c 	rc = cifs_reconnect_tcon(tcon, smb_command);
tcon              368 fs/cifs/cifssmb.c 			tcon, wct);
tcon              370 fs/cifs/cifssmb.c 	if (tcon != NULL)
tcon              371 fs/cifs/cifssmb.c 		cifs_stats_inc(&tcon->num_smbs_sent);
tcon              404 fs/cifs/cifssmb.c __smb_init(int smb_command, int wct, struct cifs_tcon *tcon,
tcon              419 fs/cifs/cifssmb.c 	header_assemble((struct smb_hdr *) *request_buf, smb_command, tcon,
tcon              422 fs/cifs/cifssmb.c 	if (tcon != NULL)
tcon              423 fs/cifs/cifssmb.c 		cifs_stats_inc(&tcon->num_smbs_sent);
tcon              430 fs/cifs/cifssmb.c smb_init(int smb_command, int wct, struct cifs_tcon *tcon,
tcon              435 fs/cifs/cifssmb.c 	rc = cifs_reconnect_tcon(tcon, smb_command);
tcon              439 fs/cifs/cifssmb.c 	return __smb_init(smb_command, wct, tcon, request_buf, response_buf);
tcon              443 fs/cifs/cifssmb.c smb_init_no_reconnect(int smb_command, int wct, struct cifs_tcon *tcon,
tcon              446 fs/cifs/cifssmb.c 	if (tcon->ses->need_reconnect || tcon->need_reconnect)
tcon              449 fs/cifs/cifssmb.c 	return __smb_init(smb_command, wct, tcon, request_buf, response_buf);
tcon              776 fs/cifs/cifssmb.c CIFSSMBTDis(const unsigned int xid, struct cifs_tcon *tcon)
tcon              784 fs/cifs/cifssmb.c 	if ((tcon->ses == NULL) || (tcon->ses->server == NULL))
tcon              793 fs/cifs/cifssmb.c 	if ((tcon->need_reconnect) || (tcon->ses->need_reconnect))
tcon              796 fs/cifs/cifssmb.c 	rc = small_smb_init(SMB_COM_TREE_DISCONNECT, 0, tcon,
tcon              801 fs/cifs/cifssmb.c 	rc = SendReceiveNoRsp(xid, tcon->ses, (char *)smb_buffer, 0);
tcon              920 fs/cifs/cifssmb.c CIFSPOSIXDelFile(const unsigned int xid, struct cifs_tcon *tcon,
tcon              934 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon              979 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon              985 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_deletes);
tcon              994 fs/cifs/cifssmb.c CIFSSMBDelFile(const unsigned int xid, struct cifs_tcon *tcon, const char *name,
tcon             1005 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_DELETE, 1, tcon, (void **) &pSMB,
tcon             1024 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             1026 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_deletes);
tcon             1038 fs/cifs/cifssmb.c CIFSSMBRmDir(const unsigned int xid, struct cifs_tcon *tcon, const char *name,
tcon             1050 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_DELETE_DIRECTORY, 0, tcon, (void **) &pSMB,
tcon             1068 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             1070 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_rmdirs);
tcon             1082 fs/cifs/cifssmb.c 	     struct cifs_tcon *tcon, const char *name,
tcon             1094 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_CREATE_DIRECTORY, 0, tcon, (void **) &pSMB,
tcon             1112 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             1114 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_mkdirs);
tcon             1125 fs/cifs/cifssmb.c CIFSPOSIXCreate(const unsigned int xid, struct cifs_tcon *tcon,
tcon             1142 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             1189 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             1235 fs/cifs/cifssmb.c 		cifs_stats_inc(&tcon->stats.cifs_stats.num_posixmkdirs);
tcon             1237 fs/cifs/cifssmb.c 		cifs_stats_inc(&tcon->stats.cifs_stats.num_posixopens);
tcon             1290 fs/cifs/cifssmb.c SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon,
tcon             1304 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_OPEN_ANDX, 15, tcon, (void **) &pSMB,
tcon             1353 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             1355 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_opens);
tcon             1404 fs/cifs/cifssmb.c 	struct cifs_tcon *tcon = oparms->tcon;
tcon             1413 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_NT_CREATE_ANDX, 24, tcon, (void **)&req,
tcon             1459 fs/cifs/cifssmb.c 	if (tcon->ses->capabilities & CAP_UNIX)
tcon             1477 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *)req,
tcon             1479 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_opens);
tcon             1696 fs/cifs/cifssmb.c 	struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink);
tcon             1697 fs/cifs/cifssmb.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon             1725 fs/cifs/cifssmb.c 		cifs_stats_bytes_read(tcon, rdata->got_bytes);
tcon             1735 fs/cifs/cifssmb.c 		cifs_stats_bytes_read(tcon, rdata->got_bytes);
tcon             1753 fs/cifs/cifssmb.c 	struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink);
tcon             1760 fs/cifs/cifssmb.c 	if (tcon->ses->capabilities & CAP_LARGE_FILES)
tcon             1770 fs/cifs/cifssmb.c 	rc = small_smb_init(SMB_COM_READ_ANDX, wct, tcon, (void **)&smb);
tcon             1801 fs/cifs/cifssmb.c 	rc = cifs_call_async(tcon->ses->server, &rqst, cifs_readv_receive,
tcon             1805 fs/cifs/cifssmb.c 		cifs_stats_inc(&tcon->stats.cifs_stats.num_reads);
tcon             1828 fs/cifs/cifssmb.c 	struct cifs_tcon *tcon = io_parms->tcon;
tcon             1832 fs/cifs/cifssmb.c 	if (tcon->ses->capabilities & CAP_LARGE_FILES)
tcon             1843 fs/cifs/cifssmb.c 	rc = small_smb_init(SMB_COM_READ_ANDX, wct, tcon, (void **) &pSMB);
tcon             1851 fs/cifs/cifssmb.c 	if (tcon->ses->server == NULL)
tcon             1874 fs/cifs/cifssmb.c 	rc = SendReceive2(xid, tcon->ses, iov, 1, &resp_buf_type,
tcon             1877 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_reads);
tcon             1936 fs/cifs/cifssmb.c 	struct cifs_tcon *tcon = io_parms->tcon;
tcon             1942 fs/cifs/cifssmb.c 	if (tcon->ses == NULL)
tcon             1945 fs/cifs/cifssmb.c 	if (tcon->ses->capabilities & CAP_LARGE_FILES)
tcon             1955 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_WRITE_ANDX, wct, tcon, (void **) &pSMB,
tcon             1964 fs/cifs/cifssmb.c 	if (tcon->ses->server == NULL)
tcon             1981 fs/cifs/cifssmb.c 	if (tcon->ses->capabilities & CAP_LARGE_WRITE_X) {
tcon             1984 fs/cifs/cifssmb.c 		bytes_sent = (tcon->ses->server->maxBuf - MAX_CIFS_HDR_SIZE)
tcon             2017 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             2019 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_writes);
tcon             2228 fs/cifs/cifssmb.c 	struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink);
tcon             2235 fs/cifs/cifssmb.c 		wdata->result = cifs_check_receive(mid, tcon->ses->server, 0);
tcon             2267 fs/cifs/cifssmb.c 	add_credits(tcon->ses->server, &credits, 0);
tcon             2278 fs/cifs/cifssmb.c 	struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink);
tcon             2282 fs/cifs/cifssmb.c 	if (tcon->ses->capabilities & CAP_LARGE_FILES) {
tcon             2292 fs/cifs/cifssmb.c 	rc = small_smb_init(SMB_COM_WRITE_ANDX, wct, tcon, (void **)&smb);
tcon             2344 fs/cifs/cifssmb.c 	rc = cifs_call_async(tcon->ses->server, &rqst, NULL,
tcon             2348 fs/cifs/cifssmb.c 		cifs_stats_inc(&tcon->stats.cifs_stats.num_writes);
tcon             2369 fs/cifs/cifssmb.c 	struct cifs_tcon *tcon = io_parms->tcon;
tcon             2377 fs/cifs/cifssmb.c 	if (tcon->ses->capabilities & CAP_LARGE_FILES) {
tcon             2386 fs/cifs/cifssmb.c 	rc = small_smb_init(SMB_COM_WRITE_ANDX, wct, tcon, (void **) &pSMB);
tcon             2394 fs/cifs/cifssmb.c 	if (tcon->ses->server == NULL)
tcon             2430 fs/cifs/cifssmb.c 	rc = SendReceive2(xid, tcon->ses, iov, n_vec + 1, &resp_buf_type, 0,
tcon             2433 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_writes);
tcon             2462 fs/cifs/cifssmb.c int cifs_lockv(const unsigned int xid, struct cifs_tcon *tcon,
tcon             2476 fs/cifs/cifssmb.c 	rc = small_smb_init(SMB_COM_LOCKING_ANDX, 8, tcon, (void **) &pSMB);
tcon             2497 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_locks);
tcon             2498 fs/cifs/cifssmb.c 	rc = SendReceive2(xid, tcon->ses, iov, 2, &resp_buf_type,
tcon             2508 fs/cifs/cifssmb.c CIFSSMBLock(const unsigned int xid, struct cifs_tcon *tcon,
tcon             2523 fs/cifs/cifssmb.c 	rc = small_smb_init(SMB_COM_LOCKING_ANDX, 8, tcon, (void **) &pSMB);
tcon             2562 fs/cifs/cifssmb.c 		rc = SendReceiveBlockingLock(xid, tcon, (struct smb_hdr *) pSMB,
tcon             2565 fs/cifs/cifssmb.c 		rc = SendReceiveNoRsp(xid, tcon->ses, (char *)pSMB, flags);
tcon             2567 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_locks);
tcon             2577 fs/cifs/cifssmb.c CIFSSMBPosixLock(const unsigned int xid, struct cifs_tcon *tcon,
tcon             2596 fs/cifs/cifssmb.c 	rc = small_smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB);
tcon             2648 fs/cifs/cifssmb.c 		rc = SendReceiveBlockingLock(xid, tcon, (struct smb_hdr *) pSMB,
tcon             2653 fs/cifs/cifssmb.c 		rc = SendReceive2(xid, tcon->ses, iov, 1 /* num iovecs */,
tcon             2707 fs/cifs/cifssmb.c CIFSSMBClose(const unsigned int xid, struct cifs_tcon *tcon, int smb_file_id)
tcon             2714 fs/cifs/cifssmb.c 	rc = small_smb_init(SMB_COM_CLOSE, 3, tcon, (void **) &pSMB);
tcon             2723 fs/cifs/cifssmb.c 	rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0);
tcon             2725 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_closes);
tcon             2741 fs/cifs/cifssmb.c CIFSSMBFlush(const unsigned int xid, struct cifs_tcon *tcon, int smb_file_id)
tcon             2747 fs/cifs/cifssmb.c 	rc = small_smb_init(SMB_COM_FLUSH, 1, tcon, (void **) &pSMB);
tcon             2753 fs/cifs/cifssmb.c 	rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0);
tcon             2755 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_flushes);
tcon             2763 fs/cifs/cifssmb.c CIFSSMBRename(const unsigned int xid, struct cifs_tcon *tcon,
tcon             2777 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_RENAME, 1, tcon, (void **) &pSMB,
tcon             2813 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             2815 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_renames);
tcon             2910 fs/cifs/cifssmb.c CIFSSMBCopy(const unsigned int xid, struct cifs_tcon *tcon,
tcon             2923 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_COPY, 1, tcon, (void **) &pSMB,
tcon             2958 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             2973 fs/cifs/cifssmb.c CIFSUnixCreateSymLink(const unsigned int xid, struct cifs_tcon *tcon,
tcon             2988 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             3043 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             3045 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_symlinks);
tcon             3059 fs/cifs/cifssmb.c CIFSUnixCreateHardLink(const unsigned int xid, struct cifs_tcon *tcon,
tcon             3074 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             3126 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             3128 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_hardlinks);
tcon             3141 fs/cifs/cifssmb.c CIFSCreateHardLink(const unsigned int xid, struct cifs_tcon *tcon,
tcon             3156 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_NT_RENAME, 4, tcon, (void **) &pSMB,
tcon             3196 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             3198 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_hardlinks);
tcon             3210 fs/cifs/cifssmb.c CIFSSMBUnixQuerySymLink(const unsigned int xid, struct cifs_tcon *tcon,
tcon             3226 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             3266 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             3313 fs/cifs/cifssmb.c CIFSSMBQuerySymLink(const unsigned int xid, struct cifs_tcon *tcon,
tcon             3330 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_NT_TRANSACT, 23, tcon, (void **) &pSMB,
tcon             3354 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             3436 fs/cifs/cifssmb.c CIFSSMB_set_compression(const unsigned int xid, struct cifs_tcon *tcon,
tcon             3445 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_NT_TRANSACT, 23, tcon, (void **) &pSMB,
tcon             3474 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             3626 fs/cifs/cifssmb.c CIFSSMBGetPosixACL(const unsigned int xid, struct cifs_tcon *tcon,
tcon             3642 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             3686 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             3688 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_acl_get);
tcon             3713 fs/cifs/cifssmb.c CIFSSMBSetPosixACL(const unsigned int xid, struct cifs_tcon *tcon,
tcon             3729 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             3777 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             3791 fs/cifs/cifssmb.c CIFSGetExtAttr(const unsigned int xid, struct cifs_tcon *tcon,
tcon             3801 fs/cifs/cifssmb.c 	if (tcon == NULL)
tcon             3805 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             3836 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             3883 fs/cifs/cifssmb.c 		   const int parm_len, struct cifs_tcon *tcon,
tcon             3890 fs/cifs/cifssmb.c 	rc = small_smb_init(SMB_COM_NT_TRANSACT, 19 + setup_count, tcon,
tcon             3965 fs/cifs/cifssmb.c CIFSSMBGetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon, __u16 fid,
tcon             3980 fs/cifs/cifssmb.c 			8 /* parm len */, tcon, (void **) &pSMB);
tcon             3995 fs/cifs/cifssmb.c 	rc = SendReceive2(xid, tcon->ses, iov, 1 /* num iovec */, &buf_type,
tcon             3998 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_acl_get);
tcon             4055 fs/cifs/cifssmb.c CIFSSMBSetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon, __u16 fid,
tcon             4065 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_NT_TRANSACT, 19, tcon, (void **) &pSMB, &pSMBr);
tcon             4101 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             4120 fs/cifs/cifssmb.c SMBQueryInformation(const unsigned int xid, struct cifs_tcon *tcon,
tcon             4132 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_QUERY_INFORMATION, 0, tcon, (void **) &pSMB,
tcon             4152 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             4186 fs/cifs/cifssmb.c CIFSSMBQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
tcon             4196 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             4227 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             4254 fs/cifs/cifssmb.c CIFSSMBQPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
tcon             4269 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             4312 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             4353 fs/cifs/cifssmb.c CIFSSMBUnixQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
tcon             4363 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             4394 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             4421 fs/cifs/cifssmb.c CIFSSMBUnixQPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
tcon             4436 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             4476 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             4503 fs/cifs/cifssmb.c CIFSFindFirst(const unsigned int xid, struct cifs_tcon *tcon,
tcon             4521 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             4593 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             4595 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_ffirst);
tcon             4656 fs/cifs/cifssmb.c int CIFSFindNext(const unsigned int xid, struct cifs_tcon *tcon,
tcon             4674 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             4721 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             4723 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_fnext);
tcon             4792 fs/cifs/cifssmb.c CIFSFindClose(const unsigned int xid, struct cifs_tcon *tcon,
tcon             4799 fs/cifs/cifssmb.c 	rc = small_smb_init(SMB_COM_FIND_CLOSE2, 1, tcon, (void **)&pSMB);
tcon             4810 fs/cifs/cifssmb.c 	rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0);
tcon             4815 fs/cifs/cifssmb.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_fclose);
tcon             4825 fs/cifs/cifssmb.c CIFSGetSrvInodeNumber(const unsigned int xid, struct cifs_tcon *tcon,
tcon             4836 fs/cifs/cifssmb.c 	if (tcon == NULL)
tcon             4840 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             4881 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             5027 fs/cifs/cifssmb.c SMBOldQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
tcon             5040 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             5068 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             5114 fs/cifs/cifssmb.c CIFSSMBQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
tcon             5127 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             5155 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             5201 fs/cifs/cifssmb.c CIFSSMBQFSAttributeInfo(const unsigned int xid, struct cifs_tcon *tcon)
tcon             5213 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             5242 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             5258 fs/cifs/cifssmb.c 			memcpy(&tcon->fsAttrInfo, response_data,
tcon             5271 fs/cifs/cifssmb.c CIFSSMBQFSDeviceInfo(const unsigned int xid, struct cifs_tcon *tcon)
tcon             5283 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             5313 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             5329 fs/cifs/cifssmb.c 			memcpy(&tcon->fsDevInfo, response_data,
tcon             5342 fs/cifs/cifssmb.c CIFSSMBQFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon)
tcon             5354 fs/cifs/cifssmb.c 	rc = smb_init_no_reconnect(SMB_COM_TRANSACTION2, 15, tcon,
tcon             5383 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             5398 fs/cifs/cifssmb.c 			memcpy(&tcon->fsUnixInfo, response_data,
tcon             5412 fs/cifs/cifssmb.c CIFSSMBSetFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon, __u64 cap)
tcon             5424 fs/cifs/cifssmb.c 	rc = smb_init_no_reconnect(SMB_COM_TRANSACTION2, 15, tcon,
tcon             5466 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             5486 fs/cifs/cifssmb.c CIFSSMBQFSPosixInfo(const unsigned int xid, struct cifs_tcon *tcon,
tcon             5499 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             5528 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             5586 fs/cifs/cifssmb.c CIFSSMBSetEOF(const unsigned int xid, struct cifs_tcon *tcon,
tcon             5602 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             5629 fs/cifs/cifssmb.c 		if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)
tcon             5636 fs/cifs/cifssmb.c 	    if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)
tcon             5661 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             5675 fs/cifs/cifssmb.c CIFSSMBSetFileSize(const unsigned int xid, struct cifs_tcon *tcon,
tcon             5685 fs/cifs/cifssmb.c 	rc = small_smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB);
tcon             5722 fs/cifs/cifssmb.c 		if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)
tcon             5729 fs/cifs/cifssmb.c 	    if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)
tcon             5739 fs/cifs/cifssmb.c 	rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0);
tcon             5759 fs/cifs/cifssmb.c CIFSSMBSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
tcon             5768 fs/cifs/cifssmb.c 	rc = small_smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB);
tcon             5803 fs/cifs/cifssmb.c 	if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)
tcon             5811 fs/cifs/cifssmb.c 	rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0);
tcon             5824 fs/cifs/cifssmb.c CIFSSMBSetFileDisposition(const unsigned int xid, struct cifs_tcon *tcon,
tcon             5833 fs/cifs/cifssmb.c 	rc = small_smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB);
tcon             5872 fs/cifs/cifssmb.c 	rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0);
tcon             5881 fs/cifs/cifssmb.c CIFSSMBSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
tcon             5896 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             5936 fs/cifs/cifssmb.c 	if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)
tcon             5944 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             5963 fs/cifs/cifssmb.c CIFSSMBSetAttrLegacy(unsigned int xid, struct cifs_tcon *tcon, char *fileName,
tcon             5975 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_SETATTR, 8, tcon, (void **) &pSMB,
tcon             5993 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             6055 fs/cifs/cifssmb.c CIFSSMBUnixSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
tcon             6065 fs/cifs/cifssmb.c 	rc = small_smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB);
tcon             6108 fs/cifs/cifssmb.c 	rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0);
tcon             6121 fs/cifs/cifssmb.c CIFSSMBUnixSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
tcon             6136 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             6185 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             6207 fs/cifs/cifssmb.c CIFSSMBQAllEAs(const unsigned int xid, struct cifs_tcon *tcon,
tcon             6229 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             6269 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon             6393 fs/cifs/cifssmb.c CIFSSMBSetEA(const unsigned int xid, struct cifs_tcon *tcon,
tcon             6409 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
tcon             6482 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
tcon              401 fs/cifs/connect.c 	struct cifs_tcon *tcon;
tcon              407 fs/cifs/connect.c 	tcon = cifs_sb_master_tcon(cifs_sb);
tcon              408 fs/cifs/connect.c 	if (tcon->ses->server == d->server)
tcon              495 fs/cifs/connect.c 	struct cifs_tcon *tcon;
tcon              557 fs/cifs/connect.c 			tcon = list_entry(tmp2, struct cifs_tcon, tcon_list);
tcon              558 fs/cifs/connect.c 			tcon->need_reconnect = true;
tcon             2937 fs/cifs/connect.c 	struct cifs_tcon *tcon;
tcon             2957 fs/cifs/connect.c 	tcon = tconInfoAlloc();
tcon             2958 fs/cifs/connect.c 	if (tcon == NULL)
tcon             2967 fs/cifs/connect.c 	tcon->ses = ses;
tcon             2968 fs/cifs/connect.c 	tcon->ipc = true;
tcon             2969 fs/cifs/connect.c 	tcon->seal = seal;
tcon             2970 fs/cifs/connect.c 	rc = server->ops->tree_connect(xid, ses, unc, tcon, nls_codepage);
tcon             2975 fs/cifs/connect.c 		tconInfoFree(tcon);
tcon             2979 fs/cifs/connect.c 	cifs_dbg(FYI, "IPC tcon rc = %d ipc tid = %d\n", rc, tcon->tid);
tcon             2981 fs/cifs/connect.c 	ses->tcon_ipc = tcon;
tcon             2996 fs/cifs/connect.c 	struct cifs_tcon *tcon = ses->tcon_ipc;
tcon             2998 fs/cifs/connect.c 	if (tcon == NULL)
tcon             3003 fs/cifs/connect.c 		rc = ses->server->ops->tree_disconnect(xid, tcon);
tcon             3010 fs/cifs/connect.c 	tconInfoFree(tcon);
tcon             3339 fs/cifs/connect.c static int match_tcon(struct cifs_tcon *tcon, struct smb_vol *volume_info)
tcon             3341 fs/cifs/connect.c 	if (tcon->tidStatus == CifsExiting)
tcon             3343 fs/cifs/connect.c 	if (strncmp(tcon->treeName, volume_info->UNC, MAX_TREE_SIZE))
tcon             3345 fs/cifs/connect.c 	if (tcon->seal != volume_info->seal)
tcon             3347 fs/cifs/connect.c 	if (tcon->snapshot_time != volume_info->snapshot_time)
tcon             3349 fs/cifs/connect.c 	if (tcon->handle_timeout != volume_info->handle_timeout)
tcon             3351 fs/cifs/connect.c 	if (tcon->no_lease != volume_info->no_lease)
tcon             3360 fs/cifs/connect.c 	struct cifs_tcon *tcon;
tcon             3364 fs/cifs/connect.c 		tcon = list_entry(tmp, struct cifs_tcon, tcon_list);
tcon             3366 fs/cifs/connect.c 		if (tcon->dfs_path)
tcon             3369 fs/cifs/connect.c 		if (!match_tcon(tcon, volume_info))
tcon             3371 fs/cifs/connect.c 		++tcon->tc_count;
tcon             3373 fs/cifs/connect.c 		return tcon;
tcon             3380 fs/cifs/connect.c cifs_put_tcon(struct cifs_tcon *tcon)
tcon             3389 fs/cifs/connect.c 	if (tcon == NULL || tcon->ipc)
tcon             3392 fs/cifs/connect.c 	ses = tcon->ses;
tcon             3393 fs/cifs/connect.c 	cifs_dbg(FYI, "%s: tc_count=%d\n", __func__, tcon->tc_count);
tcon             3395 fs/cifs/connect.c 	if (--tcon->tc_count > 0) {
tcon             3400 fs/cifs/connect.c 	list_del_init(&tcon->tcon_list);
tcon             3405 fs/cifs/connect.c 		ses->server->ops->tree_disconnect(xid, tcon);
tcon             3408 fs/cifs/connect.c 	cifs_fscache_release_super_cookie(tcon);
tcon             3409 fs/cifs/connect.c 	tconInfoFree(tcon);
tcon             3437 fs/cifs/connect.c 	struct cifs_tcon *tcon;
tcon             3439 fs/cifs/connect.c 	tcon = cifs_find_tcon(ses, volume_info);
tcon             3440 fs/cifs/connect.c 	if (tcon) {
tcon             3447 fs/cifs/connect.c 		return tcon;
tcon             3455 fs/cifs/connect.c 	tcon = tconInfoAlloc();
tcon             3456 fs/cifs/connect.c 	if (tcon == NULL) {
tcon             3468 fs/cifs/connect.c 			tcon->snapshot_time = volume_info->snapshot_time;
tcon             3478 fs/cifs/connect.c 			tcon->handle_timeout = volume_info->handle_timeout;
tcon             3481 fs/cifs/connect.c 	tcon->ses = ses;
tcon             3483 fs/cifs/connect.c 		tcon->password = kstrdup(volume_info->password, GFP_KERNEL);
tcon             3484 fs/cifs/connect.c 		if (!tcon->password) {
tcon             3496 fs/cifs/connect.c 		} else if (tcon->ses->server->capabilities &
tcon             3498 fs/cifs/connect.c 			tcon->seal = true;
tcon             3508 fs/cifs/connect.c 			tcon->posix_extensions = true;
tcon             3523 fs/cifs/connect.c 	rc = ses->server->ops->tree_connect(xid, ses, volume_info->UNC, tcon,
tcon             3530 fs/cifs/connect.c 	tcon->use_persistent = false;
tcon             3540 fs/cifs/connect.c 			tcon->use_persistent = true;
tcon             3547 fs/cifs/connect.c 	} else if ((tcon->capabilities & SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY)
tcon             3551 fs/cifs/connect.c 		tcon->use_persistent = true;
tcon             3559 fs/cifs/connect.c 		tcon->use_resilient = true;
tcon             3563 fs/cifs/connect.c 	if (tcon->share_flags & SMB2_SHAREFLAG_NO_CACHING) {
tcon             3575 fs/cifs/connect.c 	tcon->retry = volume_info->retry;
tcon             3576 fs/cifs/connect.c 	tcon->nocase = volume_info->nocase;
tcon             3577 fs/cifs/connect.c 	tcon->nohandlecache = volume_info->nohandlecache;
tcon             3578 fs/cifs/connect.c 	tcon->local_lease = volume_info->local_lease;
tcon             3579 fs/cifs/connect.c 	tcon->no_lease = volume_info->no_lease;
tcon             3580 fs/cifs/connect.c 	INIT_LIST_HEAD(&tcon->pending_opens);
tcon             3583 fs/cifs/connect.c 	list_add(&tcon->tcon_list, &ses->tcon_list);
tcon             3586 fs/cifs/connect.c 	cifs_fscache_get_super_cookie(tcon);
tcon             3588 fs/cifs/connect.c 	return tcon;
tcon             3591 fs/cifs/connect.c 	tconInfoFree(tcon);
tcon             3682 fs/cifs/connect.c 	struct cifs_tcon *tcon;
tcon             3693 fs/cifs/connect.c 	tcon = tlink_tcon(tlink);
tcon             3694 fs/cifs/connect.c 	ses = tcon->ses;
tcon             3701 fs/cifs/connect.c 	    !match_tcon(tcon, volume_info) ||
tcon             3983 fs/cifs/connect.c void reset_cifs_unix_caps(unsigned int xid, struct cifs_tcon *tcon,
tcon             3995 fs/cifs/connect.c 	__u64 saved_cap = le64_to_cpu(tcon->fsUnixInfo.Capability);
tcon             3998 fs/cifs/connect.c 		tcon->fsUnixInfo.Capability = 0;
tcon             3999 fs/cifs/connect.c 		tcon->unix_ext = 0; /* Unix Extensions disabled */
tcon             4003 fs/cifs/connect.c 		tcon->unix_ext = 1; /* Unix Extensions supported */
tcon             4005 fs/cifs/connect.c 	if (tcon->unix_ext == 0) {
tcon             4010 fs/cifs/connect.c 	if (!CIFSSMBQFSUnixInfo(xid, tcon)) {
tcon             4011 fs/cifs/connect.c 		__u64 cap = le64_to_cpu(tcon->fsUnixInfo.Capability);
tcon             4073 fs/cifs/connect.c 		if (CIFSSMBSetFSUnixInfo(xid, tcon, cap)) {
tcon             4228 fs/cifs/connect.c 				   struct cifs_ses *ses, struct cifs_tcon *tcon)
tcon             4232 fs/cifs/connect.c 	if (tcon)
tcon             4233 fs/cifs/connect.c 		cifs_put_tcon(tcon);
tcon             4251 fs/cifs/connect.c 	struct cifs_tcon *tcon;
tcon             4289 fs/cifs/connect.c 	tcon = cifs_get_tcon(ses, vol);
tcon             4290 fs/cifs/connect.c 	if (IS_ERR(tcon)) {
tcon             4291 fs/cifs/connect.c 		rc = PTR_ERR(tcon);
tcon             4295 fs/cifs/connect.c 	*ntcon = tcon;
tcon             4298 fs/cifs/connect.c 	if (tcon->posix_extensions)
tcon             4302 fs/cifs/connect.c 	if (cap_unix(tcon->ses)) {
tcon             4307 fs/cifs/connect.c 		reset_cifs_unix_caps(*xid, tcon, cifs_sb, vol);
tcon             4308 fs/cifs/connect.c 		if ((tcon->ses->server->tcpStatus == CifsNeedReconnect) &&
tcon             4309 fs/cifs/connect.c 		    (le64_to_cpu(tcon->fsUnixInfo.Capability) &
tcon             4313 fs/cifs/connect.c 		tcon->unix_ext = 0; /* server does not support them */
tcon             4316 fs/cifs/connect.c 	if (!tcon->pipe && server->ops->qfs_tcon) {
tcon             4317 fs/cifs/connect.c 		server->ops->qfs_tcon(*xid, tcon);
tcon             4319 fs/cifs/connect.c 			if (tcon->fsDevInfo.DeviceCharacteristics &
tcon             4329 fs/cifs/connect.c 	cifs_sb->wsize = server->ops->negotiate_wsize(tcon, vol);
tcon             4330 fs/cifs/connect.c 	cifs_sb->rsize = server->ops->negotiate_rsize(tcon, vol);
tcon             4336 fs/cifs/connect.c 			     struct cifs_tcon *tcon)
tcon             4346 fs/cifs/connect.c 	tlink->tl_tcon = tcon;
tcon             4496 fs/cifs/connect.c 			      struct cifs_tcon **tcon)
tcon             4530 fs/cifs/connect.c 		mount_put_conns(cifs_sb, *xid, *server, *ses, *tcon);
tcon             4532 fs/cifs/connect.c 				     tcon);
tcon             4552 fs/cifs/connect.c 				 struct cifs_tcon **tcon)
tcon             4572 fs/cifs/connect.c 					ses, tcon);
tcon             4652 fs/cifs/connect.c 					struct cifs_tcon *tcon,
tcon             4665 fs/cifs/connect.c 	rc = server->ops->is_path_accessible(xid, tcon, cifs_sb, "");
tcon             4689 fs/cifs/connect.c 		rc = server->ops->is_path_accessible(xid, tcon, cifs_sb,
tcon             4703 fs/cifs/connect.c 			  struct cifs_tcon *tcon)
tcon             4714 fs/cifs/connect.c 	full_path = cifs_build_path_to_root(vol, cifs_sb, tcon,
tcon             4715 fs/cifs/connect.c 					    tcon->Flags & SMB_SHARE_IS_IN_DFS);
tcon             4721 fs/cifs/connect.c 	rc = server->ops->is_path_accessible(xid, tcon, cifs_sb,
tcon             4729 fs/cifs/connect.c 		rc = cifs_are_all_path_components_accessible(server, xid, tcon,
tcon             4730 fs/cifs/connect.c 			cifs_sb, full_path, tcon->Flags & SMB_SHARE_IS_IN_DFS);
tcon             4745 fs/cifs/connect.c 				 struct cifs_tcon *tcon,
tcon             4749 fs/cifs/connect.c 	tcon->tc_count++;
tcon             4750 fs/cifs/connect.c 	tcon->remap = cifs_remap(cifs_sb);
tcon             4752 fs/cifs/connect.c 	*root = tcon;
tcon             4761 fs/cifs/connect.c 	struct cifs_tcon *tcon = NULL;
tcon             4767 fs/cifs/connect.c 	rc = mount_get_conns(vol, cifs_sb, &xid, &server, &ses, &tcon);
tcon             4768 fs/cifs/connect.c 	if (!rc && tcon) {
tcon             4774 fs/cifs/connect.c 			rc = is_path_remote(cifs_sb, vol, xid, server, tcon);
tcon             4833 fs/cifs/connect.c 		mount_put_conns(cifs_sb, xid, server, ses, tcon);
tcon             4834 fs/cifs/connect.c 		rc = mount_get_conns(vol, cifs_sb, &xid, &server, &ses, &tcon);
tcon             4841 fs/cifs/connect.c 					   &xid, &server, &ses, &tcon);
tcon             4859 fs/cifs/connect.c 	set_root_tcon(cifs_sb, tcon, &root_tcon);
tcon             4862 fs/cifs/connect.c 		if (!rc && tcon) {
tcon             4863 fs/cifs/connect.c 			rc = is_path_remote(cifs_sb, vol, xid, server, tcon);
tcon             4893 fs/cifs/connect.c 			mount_put_conns(cifs_sb, xid, server, ses, tcon);
tcon             4895 fs/cifs/connect.c 					     &tcon);
tcon             4899 fs/cifs/connect.c 			if (!rc && tcon &&
tcon             4900 fs/cifs/connect.c 			    (tcon->share_flags & (SHI1005_FLAGS_DFS |
tcon             4903 fs/cifs/connect.c 				set_root_tcon(cifs_sb, tcon, &root_tcon);
tcon             4912 fs/cifs/connect.c 						   &server, &ses, &tcon);
tcon             4924 fs/cifs/connect.c 	if (!tcon->dfs_path) {
tcon             4926 fs/cifs/connect.c 		tcon->dfs_path = full_path;
tcon             4928 fs/cifs/connect.c 		tcon->remap = cifs_remap(cifs_sb);
tcon             4930 fs/cifs/connect.c 	cifs_sb->origin_fullpath = kstrndup(tcon->dfs_path,
tcon             4931 fs/cifs/connect.c 					    strlen(tcon->dfs_path),
tcon             4953 fs/cifs/connect.c 	return mount_setup_tlink(cifs_sb, ses, tcon);
tcon             4959 fs/cifs/connect.c 	mount_put_conns(cifs_sb, xid, server, ses, tcon);
tcon             4968 fs/cifs/connect.c 	struct cifs_tcon *tcon;
tcon             4971 fs/cifs/connect.c 	rc = mount_get_conns(vol, cifs_sb, &xid, &server, &ses, &tcon);
tcon             4975 fs/cifs/connect.c 	if (tcon) {
tcon             4976 fs/cifs/connect.c 		rc = is_path_remote(cifs_sb, vol, xid, server, tcon);
tcon             4985 fs/cifs/connect.c 	return mount_setup_tlink(cifs_sb, ses, tcon);
tcon             4988 fs/cifs/connect.c 	mount_put_conns(cifs_sb, xid, server, ses, tcon);
tcon             4998 fs/cifs/connect.c 	 const char *tree, struct cifs_tcon *tcon,
tcon             5030 fs/cifs/connect.c 	if (tcon->pipe || (ses->server->sec_mode & SECMODE_USER)) {
tcon             5046 fs/cifs/connect.c 			calc_lanman_hash(tcon->password, ses->server->cryptkey,
tcon             5052 fs/cifs/connect.c 		rc = SMBNTencrypt(tcon->password, ses->server->cryptkey,
tcon             5105 fs/cifs/connect.c 		tcon->tidStatus = CifsGood;
tcon             5106 fs/cifs/connect.c 		tcon->need_reconnect = false;
tcon             5107 fs/cifs/connect.c 		tcon->tid = smb_buffer_response->Tid;
tcon             5122 fs/cifs/connect.c 				tcon->ipc = true;
tcon             5123 fs/cifs/connect.c 				tcon->pipe = true;
tcon             5133 fs/cifs/connect.c 		strlcpy(tcon->treeName, tree, sizeof(tcon->treeName));
tcon             5136 fs/cifs/connect.c 		kfree(tcon->nativeFileSystem);
tcon             5137 fs/cifs/connect.c 		tcon->nativeFileSystem = cifs_strndup_from_utf16(bcc_ptr,
tcon             5141 fs/cifs/connect.c 		cifs_dbg(FYI, "nativeFileSystem=%s\n", tcon->nativeFileSystem);
tcon             5146 fs/cifs/connect.c 			tcon->Flags = le16_to_cpu(pSMBr->OptionalSupport);
tcon             5148 fs/cifs/connect.c 			tcon->Flags = 0;
tcon             5149 fs/cifs/connect.c 		cifs_dbg(FYI, "Tcon flags: 0x%x\n", tcon->Flags);
tcon             5269 fs/cifs/connect.c 	struct cifs_tcon *tcon = NULL;
tcon             5290 fs/cifs/connect.c 		tcon = ERR_PTR(rc);
tcon             5301 fs/cifs/connect.c 		tcon = (struct cifs_tcon *)ses;
tcon             5306 fs/cifs/connect.c 	tcon = cifs_get_tcon(ses, vol_info);
tcon             5307 fs/cifs/connect.c 	if (IS_ERR(tcon)) {
tcon             5313 fs/cifs/connect.c 	if (tcon->posix_extensions)
tcon             5317 fs/cifs/connect.c 		reset_cifs_unix_caps(0, tcon, NULL, vol_info);
tcon             5324 fs/cifs/connect.c 	return tcon;
tcon             1262 fs/cifs/dfs_cache.c 	struct cifs_tcon *tcon;
tcon             1268 fs/cifs/dfs_cache.c 		list_for_each_entry(tcon, &ses->tcon_list, tcon_list) {
tcon             1269 fs/cifs/dfs_cache.c 			if (!tcon->need_reconnect && !tcon->need_reopen_files &&
tcon             1270 fs/cifs/dfs_cache.c 			    tcon->dfs_path) {
tcon             1271 fs/cifs/dfs_cache.c 				tcon->tc_count++;
tcon             1272 fs/cifs/dfs_cache.c 				list_add_tail(&tcon->ulist, head);
tcon             1314 fs/cifs/dfs_cache.c 				      struct cifs_tcon *tcon, const char *path)
tcon             1377 fs/cifs/dfs_cache.c 			    struct cifs_tcon *tcon)
tcon             1390 fs/cifs/dfs_cache.c 	path = tcon->dfs_path + 1;
tcon             1410 fs/cifs/dfs_cache.c 		ses = root_ses = find_root_ses(vi, tcon, npath);
tcon             1417 fs/cifs/dfs_cache.c 		ses = tcon->ses;
tcon             1425 fs/cifs/dfs_cache.c 						     tcon->remap);
tcon             1456 fs/cifs/dfs_cache.c 	struct cifs_tcon *tcon, *ntcon;
tcon             1467 fs/cifs/dfs_cache.c 		list_for_each_entry_safe(tcon, ntcon, &list, ulist) {
tcon             1468 fs/cifs/dfs_cache.c 			do_refresh_tcon(dc, vi, tcon);
tcon             1469 fs/cifs/dfs_cache.c 			list_del_init(&tcon->ulist);
tcon             1470 fs/cifs/dfs_cache.c 			cifs_put_tcon(tcon);
tcon               50 fs/cifs/dir.c  			struct cifs_tcon *tcon, int add_treename)
tcon               63 fs/cifs/dir.c  		dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1);
tcon               72 fs/cifs/dir.c  		memcpy(full_path, tcon->treeName, dfsplen);
tcon               84 fs/cifs/dir.c  	struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
tcon               85 fs/cifs/dir.c  	bool prefix = tcon->Flags & SMB_SHARE_IS_IN_DFS;
tcon              101 fs/cifs/dir.c  	struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
tcon              106 fs/cifs/dir.c  		dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1);
tcon              183 fs/cifs/dir.c  		strncpy(full_path, tcon->treeName, dfsplen);
tcon              201 fs/cifs/dir.c  check_name(struct dentry *direntry, struct cifs_tcon *tcon)
tcon              206 fs/cifs/dir.c  	if (unlikely(tcon->fsAttrInfo.MaxPathNameComponentLength &&
tcon              208 fs/cifs/dir.c  		     le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength)))
tcon              234 fs/cifs/dir.c  	struct cifs_tcon *tcon = tlink_tcon(tlink);
tcon              239 fs/cifs/dir.c  	struct TCP_Server_Info *server = tcon->ses->server;
tcon              243 fs/cifs/dir.c  	if (tcon->ses->server->oplocks)
tcon              252 fs/cifs/dir.c  	if (tcon->unix_ext && cap_unix(tcon->ses) && !tcon->broken_posix_open &&
tcon              254 fs/cifs/dir.c  			le64_to_cpu(tcon->fsUnixInfo.Capability))) {
tcon              265 fs/cifs/dir.c  				CIFSSMBClose(xid, tcon, fid->netfid);
tcon              279 fs/cifs/dir.c  				CIFSSMBClose(xid, tcon, fid->netfid);
tcon              298 fs/cifs/dir.c  			tcon->broken_posix_open = true;
tcon              357 fs/cifs/dir.c  	if (!tcon->unix_ext && (mode & S_IWUGO) == 0)
tcon              363 fs/cifs/dir.c  	oparms.tcon = tcon;
tcon              382 fs/cifs/dir.c  	if ((tcon->unix_ext) && (*oplock & CIFS_CREATE_ACTION)) {
tcon              401 fs/cifs/dir.c  		CIFSSMBUnixSetFileInfo(xid, tcon, &args, fid->netfid,
tcon              415 fs/cifs/dir.c  	if (tcon->unix_ext)
tcon              459 fs/cifs/dir.c  		server->ops->close(xid, tcon, fid);
tcon              472 fs/cifs/dir.c  	struct cifs_tcon *tcon;
tcon              518 fs/cifs/dir.c  	tcon = tlink_tcon(tlink);
tcon              520 fs/cifs/dir.c  	rc = check_name(direntry, tcon);
tcon              524 fs/cifs/dir.c  	server = tcon->ses->server;
tcon              545 fs/cifs/dir.c  			server->ops->close(xid, tcon, &fid);
tcon              561 fs/cifs/dir.c  			server->ops->close(xid, tcon, &fid);
tcon              587 fs/cifs/dir.c  	struct cifs_tcon *tcon;
tcon              600 fs/cifs/dir.c  	tcon = tlink_tcon(tlink);
tcon              601 fs/cifs/dir.c  	server = tcon->ses->server;
tcon              609 fs/cifs/dir.c  		server->ops->close(xid, tcon, &fid);
tcon              624 fs/cifs/dir.c  	struct cifs_tcon *tcon;
tcon              635 fs/cifs/dir.c  	tcon = tlink_tcon(tlink);
tcon              645 fs/cifs/dir.c  	rc = tcon->ses->server->ops->make_node(xid, inode, direntry, tcon,
tcon              124 fs/cifs/file.c 	struct cifs_tcon *tcon;
tcon              138 fs/cifs/file.c 	tcon = tlink_tcon(tlink);
tcon              142 fs/cifs/file.c 	rc = CIFSPOSIXCreate(xid, tcon, posix_flags, mode, pnetfid, presp_data,
tcon              177 fs/cifs/file.c 	     struct cifs_tcon *tcon, unsigned int f_flags, __u32 *oplock,
tcon              185 fs/cifs/file.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon              235 fs/cifs/file.c 	oparms.tcon = tcon;
tcon              249 fs/cifs/file.c 	if (tcon->unix_ext)
tcon              257 fs/cifs/file.c 		server->ops->close(xid, tcon, fid);
tcon              302 fs/cifs/file.c 	struct cifs_tcon *tcon = tlink_tcon(tlink);
tcon              303 fs/cifs/file.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon              346 fs/cifs/file.c 	spin_lock(&tcon->open_file_lock);
tcon              354 fs/cifs/file.c 	list_add(&cfile->tlist, &tcon->openFileList);
tcon              355 fs/cifs/file.c 	atomic_inc(&tcon->num_local_opens);
tcon              364 fs/cifs/file.c 	spin_unlock(&tcon->open_file_lock);
tcon              444 fs/cifs/file.c 	struct cifs_tcon *tcon = tlink_tcon(cifs_file->tlink);
tcon              445 fs/cifs/file.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon              453 fs/cifs/file.c 	spin_lock(&tcon->open_file_lock);
tcon              459 fs/cifs/file.c 		spin_unlock(&tcon->open_file_lock);
tcon              473 fs/cifs/file.c 	atomic_dec(&tcon->num_local_opens);
tcon              489 fs/cifs/file.c 	spin_unlock(&tcon->open_file_lock);
tcon              494 fs/cifs/file.c 	if (!tcon->need_reconnect && !cifs_file->invalidHandle) {
tcon              495 fs/cifs/file.c 		struct TCP_Server_Info *server = tcon->ses->server;
tcon              500 fs/cifs/file.c 			server->ops->close(xid, tcon, &cifs_file->fid);
tcon              523 fs/cifs/file.c 	struct cifs_tcon *tcon;
tcon              539 fs/cifs/file.c 	tcon = tlink_tcon(tlink);
tcon              540 fs/cifs/file.c 	server = tcon->ses->server;
tcon              564 fs/cifs/file.c 	if (!tcon->broken_posix_open && tcon->unix_ext &&
tcon              565 fs/cifs/file.c 	    cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
tcon              566 fs/cifs/file.c 				le64_to_cpu(tcon->fsUnixInfo.Capability))) {
tcon              575 fs/cifs/file.c 			if (tcon->ses->serverNOS)
tcon              577 fs/cifs/file.c 					 tcon->ses->serverName,
tcon              578 fs/cifs/file.c 					 tcon->ses->serverNOS);
tcon              579 fs/cifs/file.c 			tcon->broken_posix_open = true;
tcon              598 fs/cifs/file.c 		rc = cifs_nt_open(full_path, inode, cifs_sb, tcon,
tcon              609 fs/cifs/file.c 			server->ops->close(xid, tcon, &fid);
tcon              617 fs/cifs/file.c 	if ((oplock & CIFS_CREATE_ACTION) && !posix_open_ok && tcon->unix_ext) {
tcon              631 fs/cifs/file.c 		CIFSSMBUnixSetFileInfo(xid, tcon, &args, fid.netfid,
tcon              653 fs/cifs/file.c 	struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
tcon              663 fs/cifs/file.c 	if (cap_unix(tcon->ses) &&
tcon              664 fs/cifs/file.c 	    (CIFS_UNIX_FCNTL_CAP & le64_to_cpu(tcon->fsUnixInfo.Capability)) &&
tcon              668 fs/cifs/file.c 		rc = tcon->ses->server->ops->push_mand_locks(cfile);
tcon              681 fs/cifs/file.c 	struct cifs_tcon *tcon;
tcon              702 fs/cifs/file.c 	tcon = tlink_tcon(cfile->tlink);
tcon              703 fs/cifs/file.c 	server = tcon->ses->server;
tcon              722 fs/cifs/file.c 	if (tcon->ses->server->oplocks)
tcon              727 fs/cifs/file.c 	if (tcon->unix_ext && cap_unix(tcon->ses) &&
tcon              729 fs/cifs/file.c 				le64_to_cpu(tcon->fsUnixInfo.Capability))) {
tcon              766 fs/cifs/file.c 	oparms.tcon = tcon;
tcon              807 fs/cifs/file.c 		if (tcon->unix_ext)
tcon              852 fs/cifs/file.c cifs_reopen_persistent_handles(struct cifs_tcon *tcon)
tcon              859 fs/cifs/file.c 	if (!tcon->use_persistent || !tcon->need_reopen_files)
tcon              862 fs/cifs/file.c 	tcon->need_reopen_files = false;
tcon              868 fs/cifs/file.c 	spin_lock(&tcon->open_file_lock);
tcon              869 fs/cifs/file.c 	list_for_each(tmp, &tcon->openFileList) {
tcon              876 fs/cifs/file.c 	spin_unlock(&tcon->open_file_lock);
tcon              881 fs/cifs/file.c 			tcon->need_reopen_files = true;
tcon              892 fs/cifs/file.c 	struct cifs_tcon *tcon;
tcon              902 fs/cifs/file.c 	tcon = tlink_tcon(cfile->tlink);
tcon              903 fs/cifs/file.c 	server = tcon->ses->server;
tcon              911 fs/cifs/file.c 			rc = server->ops->close_dir(xid, tcon, &cfile->fid);
tcon             1191 fs/cifs/file.c 	struct cifs_tcon *tcon;
tcon             1201 fs/cifs/file.c 	tcon = tlink_tcon(cfile->tlink);
tcon             1207 fs/cifs/file.c 	max_buf = tcon->ses->server->maxBuf;
tcon             1237 fs/cifs/file.c 				stored_rc = cifs_lockv(xid, tcon,
tcon             1250 fs/cifs/file.c 			stored_rc = cifs_lockv(xid, tcon, cfile->fid.netfid,
tcon             1281 fs/cifs/file.c 	struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
tcon             1345 fs/cifs/file.c 		stored_rc = CIFSSMBPosixLock(xid, tcon, lck->netfid, lck->pid,
tcon             1370 fs/cifs/file.c 	struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
tcon             1380 fs/cifs/file.c 	if (cap_unix(tcon->ses) &&
tcon             1381 fs/cifs/file.c 	    (CIFS_UNIX_FCNTL_CAP & le64_to_cpu(tcon->fsUnixInfo.Capability)) &&
tcon             1385 fs/cifs/file.c 		rc = tcon->ses->server->ops->push_mand_locks(cfile);
tcon             1446 fs/cifs/file.c 	struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
tcon             1447 fs/cifs/file.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon             1461 fs/cifs/file.c 		rc = CIFSSMBPosixLock(xid, tcon, netfid,
tcon             1539 fs/cifs/file.c 	struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
tcon             1551 fs/cifs/file.c 	max_buf = tcon->ses->server->maxBuf;
tcon             1600 fs/cifs/file.c 				stored_rc = cifs_lockv(xid, tcon,
tcon             1624 fs/cifs/file.c 			stored_rc = cifs_lockv(xid, tcon, cfile->fid.netfid,
tcon             1648 fs/cifs/file.c 	struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
tcon             1649 fs/cifs/file.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon             1667 fs/cifs/file.c 		rc = CIFSSMBPosixLock(xid, tcon, cfile->fid.netfid,
tcon             1741 fs/cifs/file.c 	struct cifs_tcon *tcon;
tcon             1753 fs/cifs/file.c 	tcon = tlink_tcon(cfile->tlink);
tcon             1756 fs/cifs/file.c 			tcon->ses->server);
tcon             1759 fs/cifs/file.c 	if (cap_unix(tcon->ses) &&
tcon             1760 fs/cifs/file.c 	    (CIFS_UNIX_FCNTL_CAP & le64_to_cpu(tcon->fsUnixInfo.Capability)) &&
tcon             1809 fs/cifs/file.c 	struct cifs_tcon *tcon;
tcon             1819 fs/cifs/file.c 	tcon = tlink_tcon(open_file->tlink);
tcon             1820 fs/cifs/file.c 	server = tcon->ses->server;
tcon             1850 fs/cifs/file.c 			io_parms.tcon = tcon;
tcon             1871 fs/cifs/file.c 	cifs_stats_bytes_written(tcon, total_written);
tcon             2023 fs/cifs/file.c cifs_get_writable_path(struct cifs_tcon *tcon, const char *name,
tcon             2034 fs/cifs/file.c 	spin_lock(&tcon->open_file_lock);
tcon             2035 fs/cifs/file.c 	list_for_each(tmp, &tcon->openFileList) {
tcon             2040 fs/cifs/file.c 			spin_unlock(&tcon->open_file_lock);
tcon             2050 fs/cifs/file.c 		spin_unlock(&tcon->open_file_lock);
tcon             2054 fs/cifs/file.c 	spin_unlock(&tcon->open_file_lock);
tcon             2059 fs/cifs/file.c cifs_get_readable_path(struct cifs_tcon *tcon, const char *name,
tcon             2069 fs/cifs/file.c 	spin_lock(&tcon->open_file_lock);
tcon             2070 fs/cifs/file.c 	list_for_each(tmp, &tcon->openFileList) {
tcon             2075 fs/cifs/file.c 			spin_unlock(&tcon->open_file_lock);
tcon             2085 fs/cifs/file.c 		spin_unlock(&tcon->open_file_lock);
tcon             2090 fs/cifs/file.c 	spin_unlock(&tcon->open_file_lock);
tcon             2553 fs/cifs/file.c 	struct cifs_tcon *tcon;
tcon             2576 fs/cifs/file.c 	tcon = tlink_tcon(smbfile->tlink);
tcon             2578 fs/cifs/file.c 		server = tcon->ses->server;
tcon             2580 fs/cifs/file.c 			rc = server->ops->flush(xid, tcon, &smbfile->fid);
tcon             2593 fs/cifs/file.c 	struct cifs_tcon *tcon;
tcon             2607 fs/cifs/file.c 	tcon = tlink_tcon(smbfile->tlink);
tcon             2609 fs/cifs/file.c 		server = tcon->ses->server;
tcon             2611 fs/cifs/file.c 			rc = server->ops->flush(xid, tcon, &smbfile->fid);
tcon             2988 fs/cifs/file.c 	struct cifs_tcon *tcon;
tcon             2993 fs/cifs/file.c 	tcon = tlink_tcon(ctx->cfile->tlink);
tcon             3054 fs/cifs/file.c 	cifs_stats_bytes_written(tcon, ctx->total_len);
tcon             3073 fs/cifs/file.c 	struct cifs_tcon *tcon;
tcon             3096 fs/cifs/file.c 	tcon = tlink_tcon(cfile->tlink);
tcon             3098 fs/cifs/file.c 	if (!tcon->ses->server->ops->async_writev)
tcon             3225 fs/cifs/file.c 	struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
tcon             3233 fs/cifs/file.c 		if (cap_unix(tcon->ses) &&
tcon             3234 fs/cifs/file.c 		(CIFS_UNIX_FCNTL_CAP & le64_to_cpu(tcon->fsUnixInfo.Capability))
tcon             3798 fs/cifs/file.c 	struct cifs_tcon *tcon;
tcon             3819 fs/cifs/file.c 	tcon = tlink_tcon(cfile->tlink);
tcon             3821 fs/cifs/file.c 	if (!tcon->ses->server->ops->async_readv)
tcon             3912 fs/cifs/file.c 	struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
tcon             3926 fs/cifs/file.c 	if (cap_unix(tcon->ses) &&
tcon             3927 fs/cifs/file.c 	    (CIFS_UNIX_FCNTL_CAP & le64_to_cpu(tcon->fsUnixInfo.Capability)) &&
tcon             3937 fs/cifs/file.c 				     tcon->ses->server->vals->shared_lock_type,
tcon             3953 fs/cifs/file.c 	struct cifs_tcon *tcon;
tcon             3974 fs/cifs/file.c 	tcon = tlink_tcon(open_file->tlink);
tcon             3975 fs/cifs/file.c 	server = tcon->ses->server;
tcon             4000 fs/cifs/file.c 			if (!(tcon->ses->capabilities &
tcon             4001 fs/cifs/file.c 				tcon->ses->server->vals->cap_large_files)) {
tcon             4011 fs/cifs/file.c 			io_parms.tcon = tcon;
tcon             4027 fs/cifs/file.c 			cifs_stats_bytes_read(tcon, total_read);
tcon             4675 fs/cifs/file.c 	struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
tcon             4676 fs/cifs/file.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon             4717 fs/cifs/file.c 		rc = tcon->ses->server->ops->oplock_response(tcon, &cfile->fid,
tcon               95 fs/cifs/fscache.c void cifs_fscache_get_super_cookie(struct cifs_tcon *tcon)
tcon               97 fs/cifs/fscache.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon              100 fs/cifs/fscache.c 	sharename = extract_sharename(tcon->treeName);
tcon              103 fs/cifs/fscache.c 		tcon->fscache = NULL;
tcon              107 fs/cifs/fscache.c 	tcon->fscache =
tcon              111 fs/cifs/fscache.c 				       &tcon->resource_id, sizeof(tcon->resource_id),
tcon              112 fs/cifs/fscache.c 				       tcon, 0, true);
tcon              115 fs/cifs/fscache.c 		 __func__, server->fscache, tcon->fscache);
tcon              118 fs/cifs/fscache.c void cifs_fscache_release_super_cookie(struct cifs_tcon *tcon)
tcon              120 fs/cifs/fscache.c 	cifs_dbg(FYI, "%s: (0x%p)\n", __func__, tcon->fscache);
tcon              121 fs/cifs/fscache.c 	fscache_relinquish_cookie(tcon->fscache, &tcon->resource_id, false);
tcon              122 fs/cifs/fscache.c 	tcon->fscache = NULL;
tcon              126 fs/cifs/fscache.c 					      struct cifs_tcon *tcon)
tcon              138 fs/cifs/fscache.c 		fscache_acquire_cookie(tcon->fscache,
tcon              149 fs/cifs/fscache.c 	struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
tcon              157 fs/cifs/fscache.c 	cifs_fscache_acquire_inode_cookie(cifsi, tcon);
tcon              160 fs/cifs/fscache.c 		 __func__, tcon->fscache, cifsi->fscache);
tcon              206 fs/cifs/fscache.c 	struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
tcon              213 fs/cifs/fscache.c 		cifs_fscache_acquire_inode_cookie(cifsi, tcon);
tcon              125 fs/cifs/fscache.h static inline void cifs_fscache_get_super_cookie(struct cifs_tcon *tcon) {}
tcon              127 fs/cifs/fscache.h cifs_fscache_release_super_cookie(struct cifs_tcon *tcon) {}
tcon              349 fs/cifs/inode.c 	struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
tcon              352 fs/cifs/inode.c 	rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data);
tcon              372 fs/cifs/inode.c 	struct cifs_tcon *tcon;
tcon              381 fs/cifs/inode.c 	tcon = tlink_tcon(tlink);
tcon              384 fs/cifs/inode.c 	rc = CIFSSMBUnixQPathInfo(xid, tcon, full_path, &find_data,
tcon              399 fs/cifs/inode.c 		int tmprc = check_mf_symlink(xid, tcon, cifs_sb, &fattr,
tcon              444 fs/cifs/inode.c 	struct cifs_tcon *tcon;
tcon              470 fs/cifs/inode.c 	tcon = tlink_tcon(tlink);
tcon              472 fs/cifs/inode.c 	oparms.tcon = tcon;
tcon              483 fs/cifs/inode.c 	if (tcon->ses->server->oplocks)
tcon              487 fs/cifs/inode.c 	rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL);
tcon              497 fs/cifs/inode.c 	io_parms.tcon = tcon;
tcon              501 fs/cifs/inode.c 	rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms,
tcon              543 fs/cifs/inode.c 	tcon->ses->server->ops->close(xid, tcon, &fid);
tcon              563 fs/cifs/inode.c 	struct cifs_tcon *tcon;
tcon              568 fs/cifs/inode.c 	tcon = tlink_tcon(tlink);
tcon              570 fs/cifs/inode.c 	if (tcon->ses->server->ops->query_all_EAs == NULL) {
tcon              575 fs/cifs/inode.c 	rc = tcon->ses->server->ops->query_all_EAs(xid, tcon, path,
tcon              603 fs/cifs/inode.c 	struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
tcon              621 fs/cifs/inode.c 		fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj;
tcon              622 fs/cifs/inode.c 		fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj;
tcon              641 fs/cifs/inode.c 		if (!tcon->unix_ext)
tcon              655 fs/cifs/inode.c 		if ((fattr->cf_nlink < 1) && !tcon->unix_ext &&
tcon              676 fs/cifs/inode.c 	struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
tcon              677 fs/cifs/inode.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon              683 fs/cifs/inode.c 	rc = server->ops->query_file_info(xid, tcon, &cfile->fid, &find_data);
tcon              737 fs/cifs/inode.c 	struct cifs_tcon *tcon;
tcon              750 fs/cifs/inode.c 	tcon = tlink_tcon(tlink);
tcon              751 fs/cifs/inode.c 	server = tcon->ses->server;
tcon              775 fs/cifs/inode.c 		rc = server->ops->query_path_info(xid, tcon, cifs_sb, full_path,
tcon              802 fs/cifs/inode.c 		if (tcon->unix_ext)
tcon              804 fs/cifs/inode.c 		else if ((tcon->ses->capabilities &
tcon              805 fs/cifs/inode.c 			 tcon->ses->server->vals->cap_nt_find) == 0)
tcon              816 fs/cifs/inode.c 		rc = CIFSFindFirst(xid, tcon, full_path,
tcon              845 fs/cifs/inode.c 								  tcon, cifs_sb, full_path,
tcon              859 fs/cifs/inode.c 					simple_hashstr(tcon->treeName);
tcon              922 fs/cifs/inode.c 		tmprc = check_mf_symlink(xid, tcon, cifs_sb, &fattr,
tcon             1072 fs/cifs/inode.c 	struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
tcon             1091 fs/cifs/inode.c 	if (tcon->unix_ext) {
tcon             1097 fs/cifs/inode.c 		tcon->unix_ext = false;
tcon             1111 fs/cifs/inode.c 	tcon->resource_id = CIFS_I(inode)->uniqueid;
tcon             1114 fs/cifs/inode.c 	if (rc && tcon->pipe) {
tcon             1203 fs/cifs/inode.c 	struct cifs_tcon *tcon;
tcon             1210 fs/cifs/inode.c 	tcon = tlink_tcon(tlink);
tcon             1216 fs/cifs/inode.c 	if (!(tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)) {
tcon             1221 fs/cifs/inode.c 	oparms.tcon = tcon;
tcon             1251 fs/cifs/inode.c 		rc = CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid,
tcon             1262 fs/cifs/inode.c 	rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, NULL,
tcon             1272 fs/cifs/inode.c 		rc = CIFSSMBSetFileDisposition(xid, tcon, true, fid.netfid,
tcon             1292 fs/cifs/inode.c 	CIFSSMBClose(xid, tcon, fid.netfid);
tcon             1304 fs/cifs/inode.c 	CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, dentry->d_name.name,
tcon             1309 fs/cifs/inode.c 		if (!CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid,
tcon             1344 fs/cifs/inode.c 	struct cifs_tcon *tcon;
tcon             1354 fs/cifs/inode.c 	tcon = tlink_tcon(tlink);
tcon             1355 fs/cifs/inode.c 	server = tcon->ses->server;
tcon             1367 fs/cifs/inode.c 	if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
tcon             1368 fs/cifs/inode.c 				le64_to_cpu(tcon->fsUnixInfo.Capability))) {
tcon             1369 fs/cifs/inode.c 		rc = CIFSPOSIXDelFile(xid, tcon, full_path,
tcon             1383 fs/cifs/inode.c 	rc = server->ops->unlink(xid, tcon, full_path, cifs_sb);
tcon             1447 fs/cifs/inode.c 		 struct cifs_tcon *tcon, const unsigned int xid)
tcon             1452 fs/cifs/inode.c 	if (tcon->unix_ext)
tcon             1474 fs/cifs/inode.c 	if (tcon->unix_ext) {
tcon             1492 fs/cifs/inode.c 		CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args,
tcon             1496 fs/cifs/inode.c 		struct TCP_Server_Info *server = tcon->ses->server;
tcon             1500 fs/cifs/inode.c 						   tcon, xid);
tcon             1519 fs/cifs/inode.c 		 struct cifs_tcon *tcon, const unsigned int xid)
tcon             1534 fs/cifs/inode.c 	rc = CIFSPOSIXCreate(xid, tcon, SMB_O_DIRECTORY | SMB_O_CREAT, mode,
tcon             1574 fs/cifs/inode.c 	rc = cifs_mkdir_qinfo(inode, dentry, mode, full_path, cifs_sb, tcon,
tcon             1585 fs/cifs/inode.c 	struct cifs_tcon *tcon;
tcon             1596 fs/cifs/inode.c 	tcon = tlink_tcon(tlink);
tcon             1606 fs/cifs/inode.c 	server = tcon->ses->server;
tcon             1608 fs/cifs/inode.c 	if ((server->ops->posix_mkdir) && (tcon->posix_extensions)) {
tcon             1609 fs/cifs/inode.c 		rc = server->ops->posix_mkdir(xid, inode, mode, tcon, full_path,
tcon             1615 fs/cifs/inode.c 	if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
tcon             1616 fs/cifs/inode.c 				le64_to_cpu(tcon->fsUnixInfo.Capability))) {
tcon             1618 fs/cifs/inode.c 				      tcon, xid);
tcon             1629 fs/cifs/inode.c 	rc = server->ops->mkdir(xid, inode, mode, tcon, full_path, cifs_sb);
tcon             1637 fs/cifs/inode.c 	rc = cifs_mkdir_qinfo(inode, direntry, mode, full_path, cifs_sb, tcon,
tcon             1657 fs/cifs/inode.c 	struct cifs_tcon *tcon;
tcon             1678 fs/cifs/inode.c 	tcon = tlink_tcon(tlink);
tcon             1679 fs/cifs/inode.c 	server = tcon->ses->server;
tcon             1687 fs/cifs/inode.c 	rc = server->ops->rmdir(xid, tcon, full_path, cifs_sb);
tcon             1724 fs/cifs/inode.c 	struct cifs_tcon *tcon;
tcon             1733 fs/cifs/inode.c 	tcon = tlink_tcon(tlink);
tcon             1734 fs/cifs/inode.c 	server = tcon->ses->server;
tcon             1740 fs/cifs/inode.c 	rc = server->ops->rename(xid, tcon, from_path, to_path, cifs_sb);
tcon             1758 fs/cifs/inode.c 	oparms.tcon = tcon;
tcon             1770 fs/cifs/inode.c 		rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid,
tcon             1773 fs/cifs/inode.c 		CIFSSMBClose(xid, tcon, fid.netfid);
tcon             1789 fs/cifs/inode.c 	struct cifs_tcon *tcon;
tcon             1802 fs/cifs/inode.c 	tcon = tlink_tcon(tlink);
tcon             1831 fs/cifs/inode.c 	if (rc == -EEXIST && tcon->unix_ext) {
tcon             1845 fs/cifs/inode.c 		tmprc = CIFSSMBUnixQPathInfo(xid, tcon, from_name,
tcon             1852 fs/cifs/inode.c 		tmprc = CIFSSMBUnixQPathInfo(xid, tcon, to_name,
tcon             2081 fs/cifs/inode.c 	struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
tcon             2126 fs/cifs/inode.c 	    !tcon->unix_ext) {
tcon             2140 fs/cifs/inode.c 	struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
tcon             2141 fs/cifs/inode.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon             2163 fs/cifs/inode.c 		rc = server->ops->fiemap(tcon, cfile, fei, start, len);
tcon             2211 fs/cifs/inode.c 	struct cifs_tcon *tcon = NULL;
tcon             2225 fs/cifs/inode.c 		tcon = tlink_tcon(open_file->tlink);
tcon             2226 fs/cifs/inode.c 		server = tcon->ses->server;
tcon             2228 fs/cifs/inode.c 			rc = server->ops->set_file_size(xid, tcon, open_file,
tcon             2240 fs/cifs/inode.c 	if (tcon == NULL) {
tcon             2244 fs/cifs/inode.c 		tcon = tlink_tcon(tlink);
tcon             2245 fs/cifs/inode.c 		server = tcon->ses->server;
tcon             2254 fs/cifs/inode.c 		rc = server->ops->set_path_size(xid, tcon, full_path,
tcon             2428 fs/cifs/inode.c 	struct cifs_tcon *tcon;
tcon             2479 fs/cifs/inode.c 			tcon = tlink_tcon(wfile->tlink);
tcon             2480 fs/cifs/inode.c 			rc = tcon->ses->server->ops->flush(xid, tcon, &wfile->fid);
tcon               43 fs/cifs/ioctl.c 	struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
tcon               66 fs/cifs/ioctl.c 	if (tcon->ses->server->ops->ioctl_query_info)
tcon               67 fs/cifs/ioctl.c 		rc = tcon->ses->server->ops->ioctl_query_info(
tcon               68 fs/cifs/ioctl.c 				xid, tcon, utf16_path,
tcon              129 fs/cifs/ioctl.c static long smb_mnt_get_fsinfo(unsigned int xid, struct cifs_tcon *tcon,
tcon              140 fs/cifs/ioctl.c 	fsinf->protocol_id = tcon->ses->server->vals->protocol_id;
tcon              142 fs/cifs/ioctl.c 			le32_to_cpu(tcon->fsDevInfo.DeviceCharacteristics);
tcon              143 fs/cifs/ioctl.c 	fsinf->device_type = le32_to_cpu(tcon->fsDevInfo.DeviceType);
tcon              144 fs/cifs/ioctl.c 	fsinf->fs_attributes = le32_to_cpu(tcon->fsAttrInfo.Attributes);
tcon              146 fs/cifs/ioctl.c 		le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength);
tcon              147 fs/cifs/ioctl.c 	fsinf->vol_serial_number = tcon->vol_serial_number;
tcon              148 fs/cifs/ioctl.c 	fsinf->vol_create_time = le64_to_cpu(tcon->vol_create_time);
tcon              149 fs/cifs/ioctl.c 	fsinf->share_flags = tcon->share_flags;
tcon              150 fs/cifs/ioctl.c 	fsinf->share_caps = le32_to_cpu(tcon->capabilities);
tcon              151 fs/cifs/ioctl.c 	fsinf->sector_flags = tcon->ss_flags;
tcon              152 fs/cifs/ioctl.c 	fsinf->optimal_sector_size = tcon->perf_sector_size;
tcon              153 fs/cifs/ioctl.c 	fsinf->max_bytes_chunk = tcon->max_bytes_chunk;
tcon              154 fs/cifs/ioctl.c 	fsinf->maximal_access = tcon->maximal_access;
tcon              155 fs/cifs/ioctl.c 	fsinf->cifs_posix_caps = le64_to_cpu(tcon->fsUnixInfo.Capability);
tcon              171 fs/cifs/ioctl.c 	struct cifs_tcon *tcon;
tcon              182 fs/cifs/ioctl.c 			tcon = tlink_tcon(pSMBFile->tlink);
tcon              183 fs/cifs/ioctl.c 			caps = le64_to_cpu(tcon->fsUnixInfo.Capability);
tcon              187 fs/cifs/ioctl.c 				rc = CIFSGetExtAttr(xid, tcon,
tcon              209 fs/cifs/ioctl.c 			tcon = tlink_tcon(pSMBFile->tlink);
tcon              210 fs/cifs/ioctl.c 			caps = le64_to_cpu(tcon->fsUnixInfo.Capability);
tcon              232 fs/cifs/ioctl.c 			if (tcon->ses->server->ops->set_compression) {
tcon              233 fs/cifs/ioctl.c 				rc = tcon->ses->server->ops->set_compression(
tcon              234 fs/cifs/ioctl.c 							xid, tcon, pSMBFile);
tcon              247 fs/cifs/ioctl.c 			tcon = tlink_tcon(pSMBFile->tlink);
tcon              248 fs/cifs/ioctl.c 			if (tcon->ses->server->ops->set_integrity)
tcon              249 fs/cifs/ioctl.c 				rc = tcon->ses->server->ops->set_integrity(xid,
tcon              250 fs/cifs/ioctl.c 						tcon, pSMBFile);
tcon              257 fs/cifs/ioctl.c 			tcon = tlink_tcon(pSMBFile->tlink);
tcon              258 fs/cifs/ioctl.c 			rc = smb_mnt_get_fsinfo(xid, tcon, (void __user *)arg);
tcon              267 fs/cifs/ioctl.c 			tcon = tlink_tcon(pSMBFile->tlink);
tcon              268 fs/cifs/ioctl.c 			if (tcon->ses->server->ops->enum_snapshots)
tcon              269 fs/cifs/ioctl.c 				rc = tcon->ses->server->ops->enum_snapshots(xid, tcon,
tcon              282 fs/cifs/ioctl.c 			tcon = tlink_tcon(pSMBFile->tlink);
tcon              283 fs/cifs/ioctl.c 			if (!smb3_encryption_required(tcon)) {
tcon              288 fs/cifs/ioctl.c 				le16_to_cpu(tcon->ses->server->cipher_type);
tcon              289 fs/cifs/ioctl.c 			pkey_inf.Suid = tcon->ses->Suid;
tcon              290 fs/cifs/ioctl.c 			memcpy(pkey_inf.auth_key, tcon->ses->auth_key.response,
tcon              293 fs/cifs/ioctl.c 			      tcon->ses->smb3decryptionkey, SMB3_SIGN_KEY_SIZE);
tcon              295 fs/cifs/ioctl.c 			      tcon->ses->smb3encryptionkey, SMB3_SIGN_KEY_SIZE);
tcon              182 fs/cifs/link.c create_mf_symlink(const unsigned int xid, struct cifs_tcon *tcon,
tcon              198 fs/cifs/link.c 	if (tcon->ses->server->ops->create_mf_symlink)
tcon              199 fs/cifs/link.c 		rc = tcon->ses->server->ops->create_mf_symlink(xid, tcon,
tcon              215 fs/cifs/link.c query_mf_symlink(const unsigned int xid, struct cifs_tcon *tcon,
tcon              228 fs/cifs/link.c 	if (tcon->ses->server->ops->query_mf_symlink)
tcon              229 fs/cifs/link.c 		rc = tcon->ses->server->ops->query_mf_symlink(xid, tcon,
tcon              249 fs/cifs/link.c check_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
tcon              266 fs/cifs/link.c 	if (tcon->ses->server->ops->query_mf_symlink)
tcon              267 fs/cifs/link.c 		rc = tcon->ses->server->ops->query_mf_symlink(xid, tcon,
tcon              303 fs/cifs/link.c cifs_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
tcon              315 fs/cifs/link.c 	oparms.tcon = tcon;
tcon              336 fs/cifs/link.c 	io_parms.tcon = tcon;
tcon              342 fs/cifs/link.c 	CIFSSMBClose(xid, tcon, fid.netfid);
tcon              347 fs/cifs/link.c cifs_create_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
tcon              361 fs/cifs/link.c 	oparms.tcon = tcon;
tcon              376 fs/cifs/link.c 	io_parms.tcon = tcon;
tcon              381 fs/cifs/link.c 	CIFSSMBClose(xid, tcon, fid.netfid);
tcon              389 fs/cifs/link.c smb3_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
tcon              402 fs/cifs/link.c 	oparms.tcon = tcon;
tcon              437 fs/cifs/link.c 	io_parms.tcon = tcon;
tcon              444 fs/cifs/link.c 	SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid);
tcon              452 fs/cifs/link.c smb3_create_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
tcon              474 fs/cifs/link.c 	oparms.tcon = tcon;
tcon              491 fs/cifs/link.c 	io_parms.tcon = tcon;
tcon              507 fs/cifs/link.c 	SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid);
tcon              527 fs/cifs/link.c 	struct cifs_tcon *tcon;
tcon              534 fs/cifs/link.c 	tcon = tlink_tcon(tlink);
tcon              545 fs/cifs/link.c 	if (tcon->unix_ext)
tcon              546 fs/cifs/link.c 		rc = CIFSUnixCreateHardLink(xid, tcon, from_name, to_name,
tcon              550 fs/cifs/link.c 		server = tcon->ses->server;
tcon              555 fs/cifs/link.c 		rc = server->ops->create_hardlink(xid, tcon, from_name, to_name,
tcon              617 fs/cifs/link.c 	struct cifs_tcon *tcon;
tcon              630 fs/cifs/link.c 	tcon = tlink_tcon(tlink);
tcon              631 fs/cifs/link.c 	server = tcon->ses->server;
tcon              648 fs/cifs/link.c 		rc = query_mf_symlink(xid, tcon, cifs_sb, full_path,
tcon              658 fs/cifs/link.c 		rc = server->ops->query_symlink(xid, tcon, cifs_sb, full_path,
tcon              405 fs/cifs/misc.c 	struct cifs_tcon *tcon;
tcon              473 fs/cifs/misc.c 			tcon = list_entry(tmp1, struct cifs_tcon, tcon_list);
tcon              474 fs/cifs/misc.c 			if (tcon->tid != buf->Tid)
tcon              477 fs/cifs/misc.c 			cifs_stats_inc(&tcon->stats.cifs_stats.num_oplock_brks);
tcon              478 fs/cifs/misc.c 			spin_lock(&tcon->open_file_lock);
tcon              479 fs/cifs/misc.c 			list_for_each(tmp2, &tcon->openFileList) {
tcon              507 fs/cifs/misc.c 				spin_unlock(&tcon->open_file_lock);
tcon              511 fs/cifs/misc.c 			spin_unlock(&tcon->open_file_lock);
tcon              536 fs/cifs/misc.c 		struct cifs_tcon *tcon = NULL;
tcon              539 fs/cifs/misc.c 			tcon = cifs_sb_master_tcon(cifs_sb);
tcon              544 fs/cifs/misc.c 			 tcon ? tcon->treeName : "new server");
tcon              275 fs/cifs/readdir.c 	struct cifs_tcon *tcon;
tcon              291 fs/cifs/readdir.c 		tcon = tlink_tcon(tlink);
tcon              294 fs/cifs/readdir.c 		tcon = tlink_tcon(cifsFile->tlink);
tcon              297 fs/cifs/readdir.c 	server = tcon->ses->server;
tcon              319 fs/cifs/readdir.c 	if (tcon->unix_ext)
tcon              321 fs/cifs/readdir.c 	else if ((tcon->ses->capabilities &
tcon              322 fs/cifs/readdir.c 		  tcon->ses->server->vals->cap_nt_find) == 0) {
tcon              334 fs/cifs/readdir.c 	rc = server->ops->query_dir_first(xid, tcon, full_path, cifs_sb,
tcon              572 fs/cifs/readdir.c find_cifs_entry(const unsigned int xid, struct cifs_tcon *tcon, loff_t pos,
tcon              582 fs/cifs/readdir.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon              613 fs/cifs/readdir.c 				server->ops->close_dir(xid, tcon, &cfile->fid);
tcon              644 fs/cifs/readdir.c 		rc = server->ops->query_dir_next(xid, tcon, &cfile->fid,
tcon              793 fs/cifs/readdir.c 	struct cifs_tcon *tcon;
tcon              834 fs/cifs/readdir.c 	tcon = tlink_tcon(cifsFile->tlink);
tcon              835 fs/cifs/readdir.c 	rc = find_cifs_entry(xid, tcon, ctx->pos, file, &current_entry,
tcon              848 fs/cifs/readdir.c 	max_len = tcon->ses->server->ops->calc_smb_size(
tcon              850 fs/cifs/readdir.c 			tcon->ses->server);
tcon              433 fs/cifs/smb1ops.c cifs_negotiate_wsize(struct cifs_tcon *tcon, struct smb_vol *volume_info)
tcon              435 fs/cifs/smb1ops.c 	__u64 unix_cap = le64_to_cpu(tcon->fsUnixInfo.Capability);
tcon              436 fs/cifs/smb1ops.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon              442 fs/cifs/smb1ops.c 	else if (tcon->unix_ext && (unix_cap & CIFS_UNIX_LARGE_WRITE_CAP))
tcon              448 fs/cifs/smb1ops.c 	if (!tcon->unix_ext || !(unix_cap & CIFS_UNIX_LARGE_WRITE_CAP))
tcon              468 fs/cifs/smb1ops.c cifs_negotiate_rsize(struct cifs_tcon *tcon, struct smb_vol *volume_info)
tcon              470 fs/cifs/smb1ops.c 	__u64 unix_cap = le64_to_cpu(tcon->fsUnixInfo.Capability);
tcon              471 fs/cifs/smb1ops.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon              486 fs/cifs/smb1ops.c 	if (tcon->unix_ext && (unix_cap & CIFS_UNIX_LARGE_READ_CAP))
tcon              509 fs/cifs/smb1ops.c cifs_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon)
tcon              511 fs/cifs/smb1ops.c 	CIFSSMBQFSDeviceInfo(xid, tcon);
tcon              512 fs/cifs/smb1ops.c 	CIFSSMBQFSAttributeInfo(xid, tcon);
tcon              516 fs/cifs/smb1ops.c cifs_is_path_accessible(const unsigned int xid, struct cifs_tcon *tcon,
tcon              526 fs/cifs/smb1ops.c 	rc = CIFSSMBQPathInfo(xid, tcon, full_path, file_info,
tcon              531 fs/cifs/smb1ops.c 		rc = SMBQueryInformation(xid, tcon, full_path, file_info,
tcon              538 fs/cifs/smb1ops.c cifs_query_path_info(const unsigned int xid, struct cifs_tcon *tcon,
tcon              547 fs/cifs/smb1ops.c 	rc = CIFSSMBQPathInfo(xid, tcon, full_path, data, 0 /* not legacy */,
tcon              555 fs/cifs/smb1ops.c 		rc = SMBQueryInformation(xid, tcon, full_path, data,
tcon              567 fs/cifs/smb1ops.c 		oparms.tcon = tcon;
tcon              581 fs/cifs/smb1ops.c 			CIFSSMBClose(xid, tcon, fid.netfid);
tcon              588 fs/cifs/smb1ops.c cifs_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon,
tcon              603 fs/cifs/smb1ops.c 	return CIFSGetSrvInodeNumber(xid, tcon, full_path, uniqueid,
tcon              609 fs/cifs/smb1ops.c cifs_query_file_info(const unsigned int xid, struct cifs_tcon *tcon,
tcon              612 fs/cifs/smb1ops.c 	return CIFSSMBQFileInfo(xid, tcon, fid->netfid, data);
tcon              616 fs/cifs/smb1ops.c cifs_clear_stats(struct cifs_tcon *tcon)
tcon              618 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_writes, 0);
tcon              619 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_reads, 0);
tcon              620 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_flushes, 0);
tcon              621 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_oplock_brks, 0);
tcon              622 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_opens, 0);
tcon              623 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_posixopens, 0);
tcon              624 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_posixmkdirs, 0);
tcon              625 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_closes, 0);
tcon              626 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_deletes, 0);
tcon              627 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_mkdirs, 0);
tcon              628 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_rmdirs, 0);
tcon              629 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_renames, 0);
tcon              630 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_t2renames, 0);
tcon              631 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_ffirst, 0);
tcon              632 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_fnext, 0);
tcon              633 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_fclose, 0);
tcon              634 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_hardlinks, 0);
tcon              635 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_symlinks, 0);
tcon              636 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_locks, 0);
tcon              637 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_acl_get, 0);
tcon              638 fs/cifs/smb1ops.c 	atomic_set(&tcon->stats.cifs_stats.num_acl_set, 0);
tcon              642 fs/cifs/smb1ops.c cifs_print_stats(struct seq_file *m, struct cifs_tcon *tcon)
tcon              645 fs/cifs/smb1ops.c 		   atomic_read(&tcon->stats.cifs_stats.num_oplock_brks));
tcon              647 fs/cifs/smb1ops.c 		   atomic_read(&tcon->stats.cifs_stats.num_reads),
tcon              648 fs/cifs/smb1ops.c 		   (long long)(tcon->bytes_read));
tcon              650 fs/cifs/smb1ops.c 		   atomic_read(&tcon->stats.cifs_stats.num_writes),
tcon              651 fs/cifs/smb1ops.c 		   (long long)(tcon->bytes_written));
tcon              653 fs/cifs/smb1ops.c 		   atomic_read(&tcon->stats.cifs_stats.num_flushes));
tcon              655 fs/cifs/smb1ops.c 		   atomic_read(&tcon->stats.cifs_stats.num_locks),
tcon              656 fs/cifs/smb1ops.c 		   atomic_read(&tcon->stats.cifs_stats.num_hardlinks),
tcon              657 fs/cifs/smb1ops.c 		   atomic_read(&tcon->stats.cifs_stats.num_symlinks));
tcon              659 fs/cifs/smb1ops.c 		   atomic_read(&tcon->stats.cifs_stats.num_opens),
tcon              660 fs/cifs/smb1ops.c 		   atomic_read(&tcon->stats.cifs_stats.num_closes),
tcon              661 fs/cifs/smb1ops.c 		   atomic_read(&tcon->stats.cifs_stats.num_deletes));
tcon              663 fs/cifs/smb1ops.c 		   atomic_read(&tcon->stats.cifs_stats.num_posixopens),
tcon              664 fs/cifs/smb1ops.c 		   atomic_read(&tcon->stats.cifs_stats.num_posixmkdirs));
tcon              666 fs/cifs/smb1ops.c 		   atomic_read(&tcon->stats.cifs_stats.num_mkdirs),
tcon              667 fs/cifs/smb1ops.c 		   atomic_read(&tcon->stats.cifs_stats.num_rmdirs));
tcon              669 fs/cifs/smb1ops.c 		   atomic_read(&tcon->stats.cifs_stats.num_renames),
tcon              670 fs/cifs/smb1ops.c 		   atomic_read(&tcon->stats.cifs_stats.num_t2renames));
tcon              672 fs/cifs/smb1ops.c 		   atomic_read(&tcon->stats.cifs_stats.num_ffirst),
tcon              673 fs/cifs/smb1ops.c 		   atomic_read(&tcon->stats.cifs_stats.num_fnext),
tcon              674 fs/cifs/smb1ops.c 		   atomic_read(&tcon->stats.cifs_stats.num_fclose));
tcon              679 fs/cifs/smb1ops.c 		   struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon,
tcon              691 fs/cifs/smb1ops.c 	rc = CIFSSMBSetPathInfo(xid, tcon, full_path, &info, cifs_sb->local_nls,
tcon              701 fs/cifs/smb1ops.c 	if (!(oparms->tcon->ses->capabilities & CAP_NT_SMBS))
tcon              702 fs/cifs/smb1ops.c 		return SMBLegacyOpen(xid, oparms->tcon, oparms->path,
tcon              722 fs/cifs/smb1ops.c cifs_close_file(const unsigned int xid, struct cifs_tcon *tcon,
tcon              725 fs/cifs/smb1ops.c 	CIFSSMBClose(xid, tcon, fid->netfid);
tcon              729 fs/cifs/smb1ops.c cifs_flush_file(const unsigned int xid, struct cifs_tcon *tcon,
tcon              732 fs/cifs/smb1ops.c 	return CIFSSMBFlush(xid, tcon, fid->netfid);
tcon              767 fs/cifs/smb1ops.c 	struct cifs_tcon *tcon;
tcon              774 fs/cifs/smb1ops.c 		tcon = tlink_tcon(open_file->tlink);
tcon              784 fs/cifs/smb1ops.c 	tcon = tlink_tcon(tlink);
tcon              786 fs/cifs/smb1ops.c 	rc = CIFSSMBSetPathInfo(xid, tcon, full_path, buf, cifs_sb->local_nls,
tcon              795 fs/cifs/smb1ops.c 	oparms.tcon = tcon;
tcon              815 fs/cifs/smb1ops.c 	rc = CIFSSMBSetFileInfo(xid, tcon, buf, fid.netfid, netpid);
tcon              820 fs/cifs/smb1ops.c 		CIFSSMBClose(xid, tcon, fid.netfid);
tcon              830 fs/cifs/smb1ops.c cifs_set_compression(const unsigned int xid, struct cifs_tcon *tcon,
tcon              833 fs/cifs/smb1ops.c 	return CIFSSMB_set_compression(xid, tcon, cfile->fid.netfid);
tcon              837 fs/cifs/smb1ops.c cifs_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon,
tcon              844 fs/cifs/smb1ops.c 	rc = CIFSFindFirst(xid, tcon, path, cifs_sb,
tcon              852 fs/cifs/smb1ops.c cifs_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon,
tcon              856 fs/cifs/smb1ops.c 	return CIFSFindNext(xid, tcon, fid->netfid, search_flags, srch_inf);
tcon              860 fs/cifs/smb1ops.c cifs_close_dir(const unsigned int xid, struct cifs_tcon *tcon,
tcon              863 fs/cifs/smb1ops.c 	return CIFSFindClose(xid, tcon, fid->netfid);
tcon              867 fs/cifs/smb1ops.c cifs_oplock_response(struct cifs_tcon *tcon, struct cifs_fid *fid,
tcon              870 fs/cifs/smb1ops.c 	return CIFSSMBLock(0, tcon, fid->netfid, current->tgid, 0, 0, 0, 0,
tcon              876 fs/cifs/smb1ops.c cifs_queryfs(const unsigned int xid, struct cifs_tcon *tcon,
tcon              886 fs/cifs/smb1ops.c 	if ((tcon->ses->capabilities & CAP_UNIX) &&
tcon              887 fs/cifs/smb1ops.c 	    (CIFS_POSIX_EXTENSIONS & le64_to_cpu(tcon->fsUnixInfo.Capability)))
tcon              888 fs/cifs/smb1ops.c 		rc = CIFSSMBQFSPosixInfo(xid, tcon, buf);
tcon              894 fs/cifs/smb1ops.c 	if (rc && (tcon->ses->capabilities & CAP_NT_SMBS))
tcon              895 fs/cifs/smb1ops.c 		rc = CIFSSMBQFSInfo(xid, tcon, buf);
tcon              903 fs/cifs/smb1ops.c 		rc = SMBOldQFSInfo(xid, tcon, buf);
tcon              917 fs/cifs/smb1ops.c cifs_unix_dfs_readlink(const unsigned int xid, struct cifs_tcon *tcon,
tcon              925 fs/cifs/smb1ops.c 	rc = get_dfs_path(xid, tcon->ses, searchName, nls_codepage, &referral,
tcon              943 fs/cifs/smb1ops.c cifs_query_symlink(const unsigned int xid, struct cifs_tcon *tcon,
tcon              960 fs/cifs/smb1ops.c 	if (cap_unix(tcon->ses)) {
tcon              961 fs/cifs/smb1ops.c 		rc = CIFSSMBUnixQuerySymLink(xid, tcon, full_path, target_path,
tcon              965 fs/cifs/smb1ops.c 			rc = cifs_unix_dfs_readlink(xid, tcon, full_path,
tcon              972 fs/cifs/smb1ops.c 	oparms.tcon = tcon;
tcon              985 fs/cifs/smb1ops.c 	rc = CIFSSMBQuerySymLink(xid, tcon, fid.netfid, target_path,
tcon              992 fs/cifs/smb1ops.c 	CIFSSMBClose(xid, tcon, fid.netfid);
tcon             1028 fs/cifs/smb1ops.c 	       struct dentry *dentry, struct cifs_tcon *tcon,
tcon             1044 fs/cifs/smb1ops.c 	if (tcon->unix_ext) {
tcon             1063 fs/cifs/smb1ops.c 		rc = CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args,
tcon             1098 fs/cifs/smb1ops.c 	oparms.tcon = tcon;
tcon             1107 fs/cifs/smb1ops.c 	if (tcon->ses->server->oplocks)
tcon             1111 fs/cifs/smb1ops.c 	rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, buf);
tcon             1122 fs/cifs/smb1ops.c 	io_parms.tcon = tcon;
tcon             1131 fs/cifs/smb1ops.c 		rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms,
tcon             1137 fs/cifs/smb1ops.c 		rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms,
tcon             1140 fs/cifs/smb1ops.c 	tcon->ses->server->ops->close(xid, tcon, &fid);
tcon               70 fs/cifs/smb2file.c 	if (oparms->tcon->use_resilient) {
tcon               73 fs/cifs/smb2file.c 			cpu_to_le32(oparms->tcon->handle_timeout);
tcon               75 fs/cifs/smb2file.c 		rc = SMB2_ioctl(xid, oparms->tcon, fid->persistent_fid,
tcon               83 fs/cifs/smb2file.c 			oparms->tcon->use_resilient = false;
tcon               93 fs/cifs/smb2file.c 			rc = SMB2_get_srv_num(xid, oparms->tcon,
tcon              123 fs/cifs/smb2file.c 	struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
tcon              135 fs/cifs/smb2file.c 	max_buf = tcon->ses->server->maxBuf;
tcon              175 fs/cifs/smb2file.c 			stored_rc = smb2_lockv(xid, tcon,
tcon              200 fs/cifs/smb2file.c 		stored_rc = smb2_lockv(xid, tcon, cfile->fid.persistent_fid,
tcon              224 fs/cifs/smb2file.c 	struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
tcon              232 fs/cifs/smb2file.c 			stored_rc = smb2_lockv(xid, tcon,
tcon              244 fs/cifs/smb2file.c 		stored_rc = smb2_lockv(xid, tcon,
tcon               51 fs/cifs/smb2inode.c smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
tcon               62 fs/cifs/smb2inode.c 	struct cifs_ses *ses = tcon->ses;
tcon               80 fs/cifs/smb2inode.c 	if (smb3_encryption_required(tcon))
tcon               98 fs/cifs/smb2inode.c 	oparms.tcon = tcon;
tcon              111 fs/cifs/smb2inode.c 	rc = SMB2_open_init(tcon, &rqst[num_rqst], &oplock, &oparms,
tcon              117 fs/cifs/smb2inode.c 	smb2_set_next_command(tcon, &rqst[num_rqst]);
tcon              130 fs/cifs/smb2inode.c 			rc = SMB2_query_info_init(tcon, &rqst[num_rqst],
tcon              138 fs/cifs/smb2inode.c 			rc = SMB2_query_info_init(tcon, &rqst[num_rqst],
tcon              146 fs/cifs/smb2inode.c 				smb2_set_next_command(tcon, &rqst[num_rqst]);
tcon              154 fs/cifs/smb2inode.c 		trace_smb3_query_info_compound_enter(xid, ses->Suid, tcon->tid,
tcon              158 fs/cifs/smb2inode.c 		trace_smb3_delete_enter(xid, ses->Suid, tcon->tid, full_path);
tcon              165 fs/cifs/smb2inode.c 		trace_smb3_mkdir_enter(xid, ses->Suid, tcon->tid, full_path);
tcon              175 fs/cifs/smb2inode.c 		rc = SMB2_set_info_init(tcon, &rqst[num_rqst], COMPOUND_FID,
tcon              181 fs/cifs/smb2inode.c 		smb2_set_next_command(tcon, &rqst[num_rqst]);
tcon              183 fs/cifs/smb2inode.c 		trace_smb3_rmdir_enter(xid, ses->Suid, tcon->tid, full_path);
tcon              193 fs/cifs/smb2inode.c 		rc = SMB2_set_info_init(tcon, &rqst[num_rqst], COMPOUND_FID,
tcon              199 fs/cifs/smb2inode.c 		smb2_set_next_command(tcon, &rqst[num_rqst]);
tcon              201 fs/cifs/smb2inode.c 		trace_smb3_set_eof_enter(xid, ses->Suid, tcon->tid, full_path);
tcon              213 fs/cifs/smb2inode.c 			rc = SMB2_set_info_init(tcon, &rqst[num_rqst],
tcon              219 fs/cifs/smb2inode.c 			rc = SMB2_set_info_init(tcon, &rqst[num_rqst],
tcon              225 fs/cifs/smb2inode.c 				smb2_set_next_command(tcon, &rqst[num_rqst]);
tcon              233 fs/cifs/smb2inode.c 		trace_smb3_set_info_compound_enter(xid, ses->Suid, tcon->tid,
tcon              254 fs/cifs/smb2inode.c 			rc = SMB2_set_info_init(tcon, &rqst[num_rqst],
tcon              260 fs/cifs/smb2inode.c 			rc = SMB2_set_info_init(tcon, &rqst[num_rqst],
tcon              265 fs/cifs/smb2inode.c 				smb2_set_next_command(tcon, &rqst[num_rqst]);
tcon              272 fs/cifs/smb2inode.c 		trace_smb3_rename_enter(xid, ses->Suid, tcon->tid, full_path);
tcon              291 fs/cifs/smb2inode.c 		rc = SMB2_set_info_init(tcon, &rqst[num_rqst], COMPOUND_FID,
tcon              297 fs/cifs/smb2inode.c 		smb2_set_next_command(tcon, &rqst[num_rqst]);
tcon              299 fs/cifs/smb2inode.c 		trace_smb3_hardlink_enter(xid, ses->Suid, tcon->tid, full_path);
tcon              315 fs/cifs/smb2inode.c 	rc = SMB2_close_init(tcon, &rqst[num_rqst], COMPOUND_FID,
tcon              341 fs/cifs/smb2inode.c 			    tcon->treeName);
tcon              342 fs/cifs/smb2inode.c 		tcon->need_reconnect = true;
tcon              362 fs/cifs/smb2inode.c 						tcon->tid, rc);
tcon              365 fs/cifs/smb2inode.c 						tcon->tid);
tcon              369 fs/cifs/smb2inode.c 			trace_smb3_delete_err(xid,  ses->Suid, tcon->tid, rc);
tcon              371 fs/cifs/smb2inode.c 			trace_smb3_delete_done(xid, ses->Suid, tcon->tid);
tcon              377 fs/cifs/smb2inode.c 			trace_smb3_mkdir_err(xid,  ses->Suid, tcon->tid, rc);
tcon              379 fs/cifs/smb2inode.c 			trace_smb3_mkdir_done(xid, ses->Suid, tcon->tid);
tcon              385 fs/cifs/smb2inode.c 			trace_smb3_hardlink_err(xid,  ses->Suid, tcon->tid, rc);
tcon              387 fs/cifs/smb2inode.c 			trace_smb3_hardlink_done(xid, ses->Suid, tcon->tid);
tcon              392 fs/cifs/smb2inode.c 			trace_smb3_rename_err(xid,  ses->Suid, tcon->tid, rc);
tcon              394 fs/cifs/smb2inode.c 			trace_smb3_rename_done(xid, ses->Suid, tcon->tid);
tcon              399 fs/cifs/smb2inode.c 			trace_smb3_rmdir_err(xid,  ses->Suid, tcon->tid, rc);
tcon              401 fs/cifs/smb2inode.c 			trace_smb3_rmdir_done(xid, ses->Suid, tcon->tid);
tcon              406 fs/cifs/smb2inode.c 			trace_smb3_set_eof_err(xid,  ses->Suid, tcon->tid, rc);
tcon              408 fs/cifs/smb2inode.c 			trace_smb3_set_eof_done(xid, ses->Suid, tcon->tid);
tcon              414 fs/cifs/smb2inode.c 						tcon->tid, rc);
tcon              417 fs/cifs/smb2inode.c 						tcon->tid);
tcon              438 fs/cifs/smb2inode.c smb2_query_path_info(const unsigned int xid, struct cifs_tcon *tcon,
tcon              446 fs/cifs/smb2inode.c 	bool no_cached_open = tcon->nohandlecache;
tcon              459 fs/cifs/smb2inode.c 		rc = open_shroot(xid, tcon, &fid);
tcon              463 fs/cifs/smb2inode.c 		if (tcon->crfid.file_all_info_is_valid) {
tcon              465 fs/cifs/smb2inode.c 					       &tcon->crfid.file_all_info);
tcon              467 fs/cifs/smb2inode.c 			rc = SMB2_query_info(xid, tcon, fid.persistent_fid,
tcon              472 fs/cifs/smb2inode.c 		close_shroot(&tcon->crfid);
tcon              479 fs/cifs/smb2inode.c 	cifs_get_readable_path(tcon, full_path, &cfile);
tcon              480 fs/cifs/smb2inode.c 	rc = smb2_compound_op(xid, tcon, cifs_sb, full_path,
tcon              488 fs/cifs/smb2inode.c 		rc = smb2_compound_op(xid, tcon, cifs_sb, full_path,
tcon              504 fs/cifs/smb2inode.c 	   struct cifs_tcon *tcon, const char *name,
tcon              507 fs/cifs/smb2inode.c 	return smb2_compound_op(xid, tcon, cifs_sb, name,
tcon              515 fs/cifs/smb2inode.c 		   struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon,
tcon              528 fs/cifs/smb2inode.c 	cifs_get_writable_path(tcon, name, FIND_WR_ANY, &cfile);
tcon              529 fs/cifs/smb2inode.c 	tmprc = smb2_compound_op(xid, tcon, cifs_sb, name,
tcon              538 fs/cifs/smb2inode.c smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon, const char *name,
tcon              541 fs/cifs/smb2inode.c 	return smb2_compound_op(xid, tcon, cifs_sb, name, DELETE, FILE_OPEN,
tcon              547 fs/cifs/smb2inode.c smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon, const char *name,
tcon              550 fs/cifs/smb2inode.c 	return smb2_compound_op(xid, tcon, cifs_sb, name, DELETE, FILE_OPEN,
tcon              556 fs/cifs/smb2inode.c smb2_set_path_attr(const unsigned int xid, struct cifs_tcon *tcon,
tcon              569 fs/cifs/smb2inode.c 	rc = smb2_compound_op(xid, tcon, cifs_sb, from_name, access,
tcon              578 fs/cifs/smb2inode.c smb2_rename_path(const unsigned int xid, struct cifs_tcon *tcon,
tcon              584 fs/cifs/smb2inode.c 	cifs_get_writable_path(tcon, from_name, FIND_WR_WITH_DELETE, &cfile);
tcon              586 fs/cifs/smb2inode.c 	return smb2_set_path_attr(xid, tcon, from_name, to_name,
tcon              591 fs/cifs/smb2inode.c smb2_create_hardlink(const unsigned int xid, struct cifs_tcon *tcon,
tcon              595 fs/cifs/smb2inode.c 	return smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb,
tcon              601 fs/cifs/smb2inode.c smb2_set_path_size(const unsigned int xid, struct cifs_tcon *tcon,
tcon              607 fs/cifs/smb2inode.c 	return smb2_compound_op(xid, tcon, cifs_sb, full_path,
tcon              513 fs/cifs/smb2misc.c smb2_tcon_has_lease(struct cifs_tcon *tcon, struct smb2_lease_break *rsp,
tcon              527 fs/cifs/smb2misc.c 	list_for_each(tmp, &tcon->openFileList) {
tcon              564 fs/cifs/smb2misc.c 	list_for_each_entry(open, &tcon->pending_opens, olist) {
tcon              594 fs/cifs/smb2misc.c 	struct cifs_tcon *tcon;
tcon              615 fs/cifs/smb2misc.c 				tcon = list_entry(tmp2, struct cifs_tcon,
tcon              617 fs/cifs/smb2misc.c 				spin_lock(&tcon->open_file_lock);
tcon              619 fs/cifs/smb2misc.c 				    &tcon->stats.cifs_stats.num_oplock_brks);
tcon              620 fs/cifs/smb2misc.c 				if (smb2_tcon_has_lease(tcon, rsp, lw)) {
tcon              621 fs/cifs/smb2misc.c 					spin_unlock(&tcon->open_file_lock);
tcon              625 fs/cifs/smb2misc.c 				spin_unlock(&tcon->open_file_lock);
tcon              627 fs/cifs/smb2misc.c 				if (tcon->crfid.is_valid &&
tcon              629 fs/cifs/smb2misc.c 					    tcon->crfid.fid->lease_key,
tcon              631 fs/cifs/smb2misc.c 					INIT_WORK(&tcon->crfid.lease_break,
tcon              634 fs/cifs/smb2misc.c 						   &tcon->crfid.lease_break);
tcon              653 fs/cifs/smb2misc.c 	struct cifs_tcon *tcon;
tcon              678 fs/cifs/smb2misc.c 			tcon = list_entry(tmp1, struct cifs_tcon, tcon_list);
tcon              680 fs/cifs/smb2misc.c 			spin_lock(&tcon->open_file_lock);
tcon              681 fs/cifs/smb2misc.c 			list_for_each(tmp2, &tcon->openFileList) {
tcon              692 fs/cifs/smb2misc.c 				    &tcon->stats.cifs_stats.num_oplock_brks);
tcon              720 fs/cifs/smb2misc.c 				spin_unlock(&tcon->open_file_lock);
tcon              724 fs/cifs/smb2misc.c 			spin_unlock(&tcon->open_file_lock);
tcon              740 fs/cifs/smb2misc.c 	SMB2_close(0, cancelled->tcon, cancelled->fid.persistent_fid,
tcon              742 fs/cifs/smb2misc.c 	cifs_put_tcon(cancelled->tcon);
tcon              748 fs/cifs/smb2misc.c __smb2_handle_cancelled_close(struct cifs_tcon *tcon, __u64 persistent_fid,
tcon              759 fs/cifs/smb2misc.c 	cancelled->tcon = tcon;
tcon              767 fs/cifs/smb2misc.c smb2_handle_cancelled_close(struct cifs_tcon *tcon, __u64 persistent_fid,
tcon              772 fs/cifs/smb2misc.c 	cifs_dbg(FYI, "%s: tc_count=%d\n", __func__, tcon->tc_count);
tcon              774 fs/cifs/smb2misc.c 	tcon->tc_count++;
tcon              777 fs/cifs/smb2misc.c 	rc = __smb2_handle_cancelled_close(tcon, persistent_fid, volatile_fid);
tcon              779 fs/cifs/smb2misc.c 		cifs_put_tcon(tcon);
tcon              789 fs/cifs/smb2misc.c 	struct cifs_tcon *tcon;
tcon              796 fs/cifs/smb2misc.c 	tcon = smb2_find_smb_tcon(server, sync_hdr->SessionId,
tcon              798 fs/cifs/smb2misc.c 	if (!tcon)
tcon              801 fs/cifs/smb2misc.c 	rc = __smb2_handle_cancelled_close(tcon, rsp->PersistentFileId,
tcon              804 fs/cifs/smb2misc.c 		cifs_put_tcon(tcon);
tcon              321 fs/cifs/smb2ops.c smb2_negotiate_wsize(struct cifs_tcon *tcon, struct smb_vol *volume_info)
tcon              323 fs/cifs/smb2ops.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon              346 fs/cifs/smb2ops.c smb3_negotiate_wsize(struct cifs_tcon *tcon, struct smb_vol *volume_info)
tcon              348 fs/cifs/smb2ops.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon              371 fs/cifs/smb2ops.c smb2_negotiate_rsize(struct cifs_tcon *tcon, struct smb_vol *volume_info)
tcon              373 fs/cifs/smb2ops.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon              397 fs/cifs/smb2ops.c smb3_negotiate_rsize(struct cifs_tcon *tcon, struct smb_vol *volume_info)
tcon              399 fs/cifs/smb2ops.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon              557 fs/cifs/smb2ops.c SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon)
tcon              564 fs/cifs/smb2ops.c 	struct cifs_ses *ses = tcon->ses;
tcon              566 fs/cifs/smb2ops.c 	rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID,
tcon              604 fs/cifs/smb2ops.c 		SMB2_close(0, cfid->tcon, cfid->fid->persistent_fid,
tcon              630 fs/cifs/smb2ops.c int open_shroot(unsigned int xid, struct cifs_tcon *tcon, struct cifs_fid *pfid)
tcon              632 fs/cifs/smb2ops.c 	struct cifs_ses *ses = tcon->ses;
tcon              646 fs/cifs/smb2ops.c 	mutex_lock(&tcon->crfid.fid_mutex);
tcon              647 fs/cifs/smb2ops.c 	if (tcon->crfid.is_valid) {
tcon              649 fs/cifs/smb2ops.c 		memcpy(pfid, tcon->crfid.fid, sizeof(struct cifs_fid));
tcon              650 fs/cifs/smb2ops.c 		kref_get(&tcon->crfid.refcount);
tcon              651 fs/cifs/smb2ops.c 		mutex_unlock(&tcon->crfid.fid_mutex);
tcon              662 fs/cifs/smb2ops.c 	mutex_unlock(&tcon->crfid.fid_mutex);
tcon              664 fs/cifs/smb2ops.c 	if (smb3_encryption_required(tcon))
tcon              681 fs/cifs/smb2ops.c 	oparms.tcon = tcon;
tcon              688 fs/cifs/smb2ops.c 	rc = SMB2_open_init(tcon, &rqst[0], &oplock, &oparms, &utf16_path);
tcon              691 fs/cifs/smb2ops.c 	smb2_set_next_command(tcon, &rqst[0]);
tcon              697 fs/cifs/smb2ops.c 	rc = SMB2_query_info_init(tcon, &rqst[1], COMPOUND_FID,
tcon              709 fs/cifs/smb2ops.c 	mutex_lock(&tcon->crfid.fid_mutex);
tcon              716 fs/cifs/smb2ops.c 	if (tcon->crfid.is_valid) {
tcon              730 fs/cifs/smb2ops.c 		memcpy(pfid, tcon->crfid.fid, sizeof(*pfid));
tcon              731 fs/cifs/smb2ops.c 		kref_get(&tcon->crfid.refcount);
tcon              733 fs/cifs/smb2ops.c 		mutex_unlock(&tcon->crfid.fid_mutex);
tcon              737 fs/cifs/smb2ops.c 			SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid);
tcon              746 fs/cifs/smb2ops.c 			tcon->need_reconnect = true;
tcon              748 fs/cifs/smb2ops.c 				    tcon->treeName);
tcon              753 fs/cifs/smb2ops.c 	atomic_inc(&tcon->num_remote_opens);
tcon              762 fs/cifs/smb2ops.c 	memcpy(tcon->crfid.fid, pfid, sizeof(struct cifs_fid));
tcon              763 fs/cifs/smb2ops.c 	tcon->crfid.tcon = tcon;
tcon              764 fs/cifs/smb2ops.c 	tcon->crfid.is_valid = true;
tcon              765 fs/cifs/smb2ops.c 	kref_init(&tcon->crfid.refcount);
tcon              769 fs/cifs/smb2ops.c 		kref_get(&tcon->crfid.refcount);
tcon              783 fs/cifs/smb2ops.c 				(char *)&tcon->crfid.file_all_info))
tcon              784 fs/cifs/smb2ops.c 		tcon->crfid.file_all_info_is_valid = 1;
tcon              787 fs/cifs/smb2ops.c 	mutex_unlock(&tcon->crfid.fid_mutex);
tcon              797 fs/cifs/smb2ops.c smb3_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon)
tcon              804 fs/cifs/smb2ops.c 	bool no_cached_open = tcon->nohandlecache;
tcon              806 fs/cifs/smb2ops.c 	oparms.tcon = tcon;
tcon              817 fs/cifs/smb2ops.c 		rc = open_shroot(xid, tcon, &fid);
tcon              822 fs/cifs/smb2ops.c 	SMB3_request_interfaces(xid, tcon);
tcon              824 fs/cifs/smb2ops.c 	SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid,
tcon              826 fs/cifs/smb2ops.c 	SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid,
tcon              828 fs/cifs/smb2ops.c 	SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid,
tcon              830 fs/cifs/smb2ops.c 	SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid,
tcon              833 fs/cifs/smb2ops.c 		SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid);
tcon              835 fs/cifs/smb2ops.c 		close_shroot(&tcon->crfid);
tcon              839 fs/cifs/smb2ops.c smb2_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon)
tcon              847 fs/cifs/smb2ops.c 	oparms.tcon = tcon;
tcon              858 fs/cifs/smb2ops.c 	SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid,
tcon              860 fs/cifs/smb2ops.c 	SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid,
tcon              862 fs/cifs/smb2ops.c 	SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid);
tcon              866 fs/cifs/smb2ops.c smb2_is_path_accessible(const unsigned int xid, struct cifs_tcon *tcon,
tcon              875 fs/cifs/smb2ops.c 	if ((*full_path == 0) && tcon->crfid.is_valid)
tcon              882 fs/cifs/smb2ops.c 	oparms.tcon = tcon;
tcon              898 fs/cifs/smb2ops.c 	rc = SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid);
tcon              904 fs/cifs/smb2ops.c smb2_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon,
tcon              913 fs/cifs/smb2ops.c smb2_query_file_info(const unsigned int xid, struct cifs_tcon *tcon,
tcon              924 fs/cifs/smb2ops.c 	rc = SMB2_query_info(xid, tcon, fid->persistent_fid, fid->volatile_fid,
tcon             1017 fs/cifs/smb2ops.c smb2_query_eas(const unsigned int xid, struct cifs_tcon *tcon,
tcon             1033 fs/cifs/smb2ops.c 	rc = smb2_query_info_compound(xid, tcon, utf16_path,
tcon             1073 fs/cifs/smb2ops.c smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon,
tcon             1078 fs/cifs/smb2ops.c 	struct cifs_ses *ses = tcon->ses;
tcon             1098 fs/cifs/smb2ops.c 	if (smb3_encryption_required(tcon))
tcon             1114 fs/cifs/smb2ops.c 			rc = ses->server->ops->query_all_EAs(xid, tcon, path,
tcon             1125 fs/cifs/smb2ops.c 			rc = smb2_query_info_compound(xid, tcon, utf16_path,
tcon             1160 fs/cifs/smb2ops.c 	oparms.tcon = tcon;
tcon             1170 fs/cifs/smb2ops.c 	rc = SMB2_open_init(tcon, &rqst[0], &oplock, &oparms, utf16_path);
tcon             1173 fs/cifs/smb2ops.c 	smb2_set_next_command(tcon, &rqst[0]);
tcon             1196 fs/cifs/smb2ops.c 	rc = SMB2_set_info_init(tcon, &rqst[1], COMPOUND_FID,
tcon             1200 fs/cifs/smb2ops.c 	smb2_set_next_command(tcon, &rqst[1]);
tcon             1208 fs/cifs/smb2ops.c 	rc = SMB2_close_init(tcon, &rqst[2], COMPOUND_FID, COMPOUND_FID);
tcon             1235 fs/cifs/smb2ops.c smb2_clear_stats(struct cifs_tcon *tcon)
tcon             1240 fs/cifs/smb2ops.c 		atomic_set(&tcon->stats.smb2_stats.smb2_com_sent[i], 0);
tcon             1241 fs/cifs/smb2ops.c 		atomic_set(&tcon->stats.smb2_stats.smb2_com_failed[i], 0);
tcon             1246 fs/cifs/smb2ops.c smb2_dump_share_caps(struct seq_file *m, struct cifs_tcon *tcon)
tcon             1249 fs/cifs/smb2ops.c 	if (tcon->capabilities & SMB2_SHARE_CAP_DFS)
tcon             1251 fs/cifs/smb2ops.c 	if (tcon->capabilities & SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY)
tcon             1253 fs/cifs/smb2ops.c 	if (tcon->capabilities & SMB2_SHARE_CAP_SCALEOUT)
tcon             1255 fs/cifs/smb2ops.c 	if (tcon->capabilities & SMB2_SHARE_CAP_CLUSTER)
tcon             1257 fs/cifs/smb2ops.c 	if (tcon->capabilities & SMB2_SHARE_CAP_ASYMMETRIC)
tcon             1259 fs/cifs/smb2ops.c 	if (tcon->capabilities == 0)
tcon             1261 fs/cifs/smb2ops.c 	if (tcon->ss_flags & SSINFO_FLAGS_ALIGNED_DEVICE)
tcon             1263 fs/cifs/smb2ops.c 	if (tcon->ss_flags & SSINFO_FLAGS_PARTITION_ALIGNED_ON_DEVICE)
tcon             1265 fs/cifs/smb2ops.c 	if (tcon->ss_flags & SSINFO_FLAGS_NO_SEEK_PENALTY)
tcon             1267 fs/cifs/smb2ops.c 	if (tcon->ss_flags & SSINFO_FLAGS_TRIM_ENABLED)
tcon             1270 fs/cifs/smb2ops.c 	seq_printf(m, "\tShare Flags: 0x%x", tcon->share_flags);
tcon             1271 fs/cifs/smb2ops.c 	seq_printf(m, "\n\ttid: 0x%x", tcon->tid);
tcon             1272 fs/cifs/smb2ops.c 	if (tcon->perf_sector_size)
tcon             1274 fs/cifs/smb2ops.c 			   tcon->perf_sector_size);
tcon             1275 fs/cifs/smb2ops.c 	seq_printf(m, "\tMaximal Access: 0x%x", tcon->maximal_access);
tcon             1279 fs/cifs/smb2ops.c smb2_print_stats(struct seq_file *m, struct cifs_tcon *tcon)
tcon             1281 fs/cifs/smb2ops.c 	atomic_t *sent = tcon->stats.smb2_stats.smb2_com_sent;
tcon             1282 fs/cifs/smb2ops.c 	atomic_t *failed = tcon->stats.smb2_stats.smb2_com_failed;
tcon             1289 fs/cifs/smb2ops.c 		   (long long)(tcon->bytes_read),
tcon             1290 fs/cifs/smb2ops.c 		   (long long)(tcon->bytes_written));
tcon             1292 fs/cifs/smb2ops.c 		   atomic_read(&tcon->num_local_opens),
tcon             1293 fs/cifs/smb2ops.c 		   atomic_read(&tcon->num_remote_opens));
tcon             1357 fs/cifs/smb2ops.c smb2_close_file(const unsigned int xid, struct cifs_tcon *tcon,
tcon             1360 fs/cifs/smb2ops.c 	SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid);
tcon             1364 fs/cifs/smb2ops.c SMB2_request_res_key(const unsigned int xid, struct cifs_tcon *tcon,
tcon             1372 fs/cifs/smb2ops.c 	rc = SMB2_ioctl(xid, tcon, persistent_fid, volatile_fid,
tcon             1395 fs/cifs/smb2ops.c 		      struct cifs_tcon *tcon,
tcon             1399 fs/cifs/smb2ops.c 	struct cifs_ses *ses = tcon->ses;
tcon             1435 fs/cifs/smb2ops.c 	if (smb3_encryption_required(tcon))
tcon             1454 fs/cifs/smb2ops.c 	oparms.tcon = tcon;
tcon             1484 fs/cifs/smb2ops.c 	rc = SMB2_open_init(tcon, &rqst[0], &oplock, &oparms, path);
tcon             1487 fs/cifs/smb2ops.c 	smb2_set_next_command(tcon, &rqst[0]);
tcon             1499 fs/cifs/smb2ops.c 			rc = SMB2_ioctl_init(tcon, &rqst[1],
tcon             1519 fs/cifs/smb2ops.c 			rc = SMB2_set_info_init(tcon, &rqst[1],
tcon             1530 fs/cifs/smb2ops.c 		rc = SMB2_query_info_init(tcon, &rqst[1], COMPOUND_FID,
tcon             1542 fs/cifs/smb2ops.c 	smb2_set_next_command(tcon, &rqst[1]);
tcon             1550 fs/cifs/smb2ops.c 	rc = SMB2_close_init(tcon, &rqst[2], COMPOUND_FID, COMPOUND_FID);
tcon             1623 fs/cifs/smb2ops.c 	struct cifs_tcon *tcon;
tcon             1648 fs/cifs/smb2ops.c 	tcon = tlink_tcon(trgtfile->tlink);
tcon             1654 fs/cifs/smb2ops.c 			cpu_to_le32(min_t(u32, len, tcon->max_bytes_chunk));
tcon             1657 fs/cifs/smb2ops.c 		rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid,
tcon             1721 fs/cifs/smb2ops.c 					tcon->max_bytes_chunk)
tcon             1722 fs/cifs/smb2ops.c 				tcon->max_bytes_chunk =
tcon             1743 fs/cifs/smb2ops.c smb2_flush_file(const unsigned int xid, struct cifs_tcon *tcon,
tcon             1746 fs/cifs/smb2ops.c 	return SMB2_flush(xid, tcon, fid->persistent_fid, fid->volatile_fid);
tcon             1791 fs/cifs/smb2ops.c static bool smb2_set_sparse(const unsigned int xid, struct cifs_tcon *tcon,
tcon             1816 fs/cifs/smb2ops.c 	if (tcon->broken_sparse_sup)
tcon             1819 fs/cifs/smb2ops.c 	rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid,
tcon             1824 fs/cifs/smb2ops.c 		tcon->broken_sparse_sup = true;
tcon             1838 fs/cifs/smb2ops.c smb2_set_file_size(const unsigned int xid, struct cifs_tcon *tcon,
tcon             1854 fs/cifs/smb2ops.c 		smb2_set_sparse(xid, tcon, cfile, inode, set_sparse);
tcon             1857 fs/cifs/smb2ops.c 	return SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid,
tcon             1870 fs/cifs/smb2ops.c 	struct cifs_tcon *tcon = tlink_tcon(trgtfile->tlink);
tcon             1873 fs/cifs/smb2ops.c 	if ((le32_to_cpu(tcon->fsAttrInfo.Attributes) &
tcon             1885 fs/cifs/smb2ops.c 	rc = smb2_set_file_size(xid, tcon, trgtfile, dest_off + len, false);
tcon             1889 fs/cifs/smb2ops.c 	rc = SMB2_ioctl(xid, tcon, trgtfile->fid.persistent_fid,
tcon             1906 fs/cifs/smb2ops.c smb2_set_compression(const unsigned int xid, struct cifs_tcon *tcon,
tcon             1909 fs/cifs/smb2ops.c 	return SMB2_set_compression(xid, tcon, cfile->fid.persistent_fid,
tcon             1914 fs/cifs/smb2ops.c smb3_set_integrity(const unsigned int xid, struct cifs_tcon *tcon,
tcon             1924 fs/cifs/smb2ops.c 	return SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid,
tcon             1945 fs/cifs/smb2ops.c smb3_enum_snapshots(const unsigned int xid, struct cifs_tcon *tcon,
tcon             1977 fs/cifs/smb2ops.c 	rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid,
tcon             2028 fs/cifs/smb2ops.c smb2_query_dir_first(const unsigned int xid, struct cifs_tcon *tcon,
tcon             2042 fs/cifs/smb2ops.c 	oparms.tcon = tcon;
tcon             2062 fs/cifs/smb2ops.c 	rc = SMB2_query_directory(xid, tcon, fid->persistent_fid,
tcon             2066 fs/cifs/smb2ops.c 		SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid);
tcon             2072 fs/cifs/smb2ops.c smb2_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon,
tcon             2076 fs/cifs/smb2ops.c 	return SMB2_query_directory(xid, tcon, fid->persistent_fid,
tcon             2081 fs/cifs/smb2ops.c smb2_close_dir(const unsigned int xid, struct cifs_tcon *tcon,
tcon             2084 fs/cifs/smb2ops.c 	return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid);
tcon             2127 fs/cifs/smb2ops.c smb2_oplock_response(struct cifs_tcon *tcon, struct cifs_fid *fid,
tcon             2130 fs/cifs/smb2ops.c 	if (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING)
tcon             2131 fs/cifs/smb2ops.c 		return SMB2_lease_break(0, tcon, cinode->lease_key,
tcon             2134 fs/cifs/smb2ops.c 	return SMB2_oplock_break(0, tcon, fid->persistent_fid,
tcon             2155 fs/cifs/smb2ops.c smb2_set_next_command(struct cifs_tcon *tcon, struct smb_rqst *rqst)
tcon             2158 fs/cifs/smb2ops.c 	struct cifs_ses *ses = tcon->ses;
tcon             2176 fs/cifs/smb2ops.c 	if (!smb3_encryption_required(tcon)) {
tcon             2216 fs/cifs/smb2ops.c smb2_query_info_compound(const unsigned int xid, struct cifs_tcon *tcon,
tcon             2222 fs/cifs/smb2ops.c 	struct cifs_ses *ses = tcon->ses;
tcon             2235 fs/cifs/smb2ops.c 	if (smb3_encryption_required(tcon))
tcon             2246 fs/cifs/smb2ops.c 	oparms.tcon = tcon;
tcon             2256 fs/cifs/smb2ops.c 	rc = SMB2_open_init(tcon, &rqst[0], &oplock, &oparms, utf16_path);
tcon             2259 fs/cifs/smb2ops.c 	smb2_set_next_command(tcon, &rqst[0]);
tcon             2265 fs/cifs/smb2ops.c 	rc = SMB2_query_info_init(tcon, &rqst[1], COMPOUND_FID, COMPOUND_FID,
tcon             2271 fs/cifs/smb2ops.c 	smb2_set_next_command(tcon, &rqst[1]);
tcon             2278 fs/cifs/smb2ops.c 	rc = SMB2_close_init(tcon, &rqst[2], COMPOUND_FID, COMPOUND_FID);
tcon             2288 fs/cifs/smb2ops.c 			tcon->need_reconnect = true;
tcon             2290 fs/cifs/smb2ops.c 				    tcon->treeName);
tcon             2307 fs/cifs/smb2ops.c smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon,
tcon             2318 fs/cifs/smb2ops.c 	rc = smb2_query_info_compound(xid, tcon, &utf16_path,
tcon             2344 fs/cifs/smb2ops.c smb311_queryfs(const unsigned int xid, struct cifs_tcon *tcon,
tcon             2353 fs/cifs/smb2ops.c 	if (!tcon->posix_extensions)
tcon             2354 fs/cifs/smb2ops.c 		return smb2_queryfs(xid, tcon, buf);
tcon             2356 fs/cifs/smb2ops.c 	oparms.tcon = tcon;
tcon             2367 fs/cifs/smb2ops.c 	rc = SMB311_posix_qfs_info(xid, tcon, fid.persistent_fid,
tcon             2370 fs/cifs/smb2ops.c 	SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid);
tcon             2420 fs/cifs/smb2ops.c 	struct cifs_tcon *tcon;
tcon             2430 fs/cifs/smb2ops.c 	tcon = ses->tcon_ipc;
tcon             2431 fs/cifs/smb2ops.c 	if (tcon == NULL) {
tcon             2433 fs/cifs/smb2ops.c 		tcon = list_first_entry_or_null(&ses->tcon_list,
tcon             2436 fs/cifs/smb2ops.c 		if (tcon)
tcon             2437 fs/cifs/smb2ops.c 			tcon->tc_count++;
tcon             2441 fs/cifs/smb2ops.c 	if (tcon == NULL) {
tcon             2470 fs/cifs/smb2ops.c 		rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID,
tcon             2493 fs/cifs/smb2ops.c 	if (tcon && !tcon->ipc) {
tcon             2496 fs/cifs/smb2ops.c 		tcon->tc_count--;
tcon             2602 fs/cifs/smb2ops.c smb2_query_symlink(const unsigned int xid, struct cifs_tcon *tcon,
tcon             2634 fs/cifs/smb2ops.c 	if (smb3_encryption_required(tcon))
tcon             2651 fs/cifs/smb2ops.c 	oparms.tcon = tcon;
tcon             2665 fs/cifs/smb2ops.c 	rc = SMB2_open_init(tcon, &rqst[0], &oplock, &oparms, utf16_path);
tcon             2668 fs/cifs/smb2ops.c 	smb2_set_next_command(tcon, &rqst[0]);
tcon             2676 fs/cifs/smb2ops.c 	rc = SMB2_ioctl_init(tcon, &rqst[1], fid.persistent_fid,
tcon             2685 fs/cifs/smb2ops.c 	smb2_set_next_command(tcon, &rqst[1]);
tcon             2694 fs/cifs/smb2ops.c 	rc = SMB2_close_init(tcon, &rqst[2], COMPOUND_FID, COMPOUND_FID);
tcon             2700 fs/cifs/smb2ops.c 	rc = compound_send_recv(xid, tcon->ses, flags, 3, rqst,
tcon             2827 fs/cifs/smb2ops.c 	struct cifs_tcon *tcon;
tcon             2837 fs/cifs/smb2ops.c 	tcon = tlink_tcon(tlink);
tcon             2852 fs/cifs/smb2ops.c 	oparms.tcon = tcon;
tcon             2863 fs/cifs/smb2ops.c 		SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid);
tcon             2882 fs/cifs/smb2ops.c 	struct cifs_tcon *tcon;
tcon             2893 fs/cifs/smb2ops.c 	tcon = tlink_tcon(tlink);
tcon             2913 fs/cifs/smb2ops.c 	oparms.tcon = tcon;
tcon             2925 fs/cifs/smb2ops.c 		SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid);
tcon             2952 fs/cifs/smb2ops.c static long smb3_zero_range(struct file *file, struct cifs_tcon *tcon,
tcon             2955 fs/cifs/smb2ops.c 	struct cifs_ses *ses = tcon->ses;
tcon             2969 fs/cifs/smb2ops.c 	trace_smb3_zero_enter(xid, cfile->fid.persistent_fid, tcon->tid,
tcon             2978 fs/cifs/smb2ops.c 				tcon->tid, ses->Suid, offset, len, rc);
tcon             2988 fs/cifs/smb2ops.c 	rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid,
tcon             3001 fs/cifs/smb2ops.c 		rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid,
tcon             3008 fs/cifs/smb2ops.c 		trace_smb3_zero_err(xid, cfile->fid.persistent_fid, tcon->tid,
tcon             3011 fs/cifs/smb2ops.c 		trace_smb3_zero_done(xid, cfile->fid.persistent_fid, tcon->tid,
tcon             3016 fs/cifs/smb2ops.c static long smb3_punch_hole(struct file *file, struct cifs_tcon *tcon,
tcon             3032 fs/cifs/smb2ops.c 	if (!smb2_set_sparse(xid, tcon, cfile, inode, set_sparse)) {
tcon             3043 fs/cifs/smb2ops.c 	rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid,
tcon             3052 fs/cifs/smb2ops.c static long smb3_simple_falloc(struct file *file, struct cifs_tcon *tcon,
tcon             3067 fs/cifs/smb2ops.c 	trace_smb3_falloc_enter(xid, cfile->fid.persistent_fid, tcon->tid,
tcon             3068 fs/cifs/smb2ops.c 				tcon->ses->Suid, off, len);
tcon             3073 fs/cifs/smb2ops.c 				tcon->tid, tcon->ses->Suid, off, len, rc);
tcon             3095 fs/cifs/smb2ops.c 				tcon->tid, tcon->ses->Suid, off, len, rc);
tcon             3098 fs/cifs/smb2ops.c 				tcon->tid, tcon->ses->Suid, off, len);
tcon             3115 fs/cifs/smb2ops.c 				tcon->tid, tcon->ses->Suid, off, len, rc);
tcon             3120 fs/cifs/smb2ops.c 		smb2_set_sparse(xid, tcon, cfile, inode, false);
tcon             3123 fs/cifs/smb2ops.c 		smb2_set_sparse(xid, tcon, cfile, inode, false);
tcon             3127 fs/cifs/smb2ops.c 			rc = SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid,
tcon             3134 fs/cifs/smb2ops.c 		trace_smb3_falloc_err(xid, cfile->fid.persistent_fid, tcon->tid,
tcon             3135 fs/cifs/smb2ops.c 				tcon->ses->Suid, off, len, rc);
tcon             3137 fs/cifs/smb2ops.c 		trace_smb3_falloc_done(xid, cfile->fid.persistent_fid, tcon->tid,
tcon             3138 fs/cifs/smb2ops.c 				tcon->ses->Suid, off, len);
tcon             3144 fs/cifs/smb2ops.c static loff_t smb3_llseek(struct file *file, struct cifs_tcon *tcon, loff_t offset, int whence)
tcon             3174 fs/cifs/smb2ops.c 		smb2_flush_file(xid, tcon, &wrcfile->fid);
tcon             3187 fs/cifs/smb2ops.c 	rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid,
tcon             3228 fs/cifs/smb2ops.c static int smb3_fiemap(struct cifs_tcon *tcon,
tcon             3246 fs/cifs/smb2ops.c 	rc = SMB2_ioctl(xid, tcon, cfile->fid.persistent_fid,
tcon             3302 fs/cifs/smb2ops.c static long smb3_fallocate(struct file *file, struct cifs_tcon *tcon, int mode,
tcon             3307 fs/cifs/smb2ops.c 		return smb3_punch_hole(file, tcon, off, len);
tcon             3310 fs/cifs/smb2ops.c 			return smb3_zero_range(file, tcon, off, len, true);
tcon             3311 fs/cifs/smb2ops.c 		return smb3_zero_range(file, tcon, off, len, false);
tcon             3313 fs/cifs/smb2ops.c 		return smb3_simple_falloc(file, tcon, off, len, true);
tcon             3315 fs/cifs/smb2ops.c 		return smb3_simple_falloc(file, tcon, off, len, false);
tcon             4381 fs/cifs/smb2ops.c 	       struct dentry *dentry, struct cifs_tcon *tcon,
tcon             4425 fs/cifs/smb2ops.c 	oparms.tcon = tcon;
tcon             4434 fs/cifs/smb2ops.c 	if (tcon->ses->server->oplocks)
tcon             4438 fs/cifs/smb2ops.c 	rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, buf);
tcon             4449 fs/cifs/smb2ops.c 	io_parms.tcon = tcon;
tcon             4458 fs/cifs/smb2ops.c 		rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms,
tcon             4464 fs/cifs/smb2ops.c 		rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms,
tcon             4467 fs/cifs/smb2ops.c 	tcon->ses->server->ops->close(xid, tcon, &fid);
tcon               86 fs/cifs/smb2pdu.c int smb3_encryption_required(const struct cifs_tcon *tcon)
tcon               88 fs/cifs/smb2pdu.c 	if (!tcon)
tcon               90 fs/cifs/smb2pdu.c 	if ((tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) ||
tcon               91 fs/cifs/smb2pdu.c 	    (tcon->share_flags & SHI1005_FLAGS_ENCRYPT_DATA))
tcon               93 fs/cifs/smb2pdu.c 	if (tcon->seal &&
tcon               94 fs/cifs/smb2pdu.c 	    (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION))
tcon              101 fs/cifs/smb2pdu.c 		  const struct cifs_tcon *tcon)
tcon              106 fs/cifs/smb2pdu.c 	if (tcon && tcon->ses && tcon->ses->server) {
tcon              107 fs/cifs/smb2pdu.c 		struct TCP_Server_Info *server = tcon->ses->server;
tcon              123 fs/cifs/smb2pdu.c 	if (!tcon)
tcon              128 fs/cifs/smb2pdu.c 	if ((tcon->ses) && (tcon->ses->server) &&
tcon              129 fs/cifs/smb2pdu.c 	    (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LARGE_MTU))
tcon              133 fs/cifs/smb2pdu.c 	shdr->TreeId = tcon->tid;
tcon              135 fs/cifs/smb2pdu.c 	if (tcon->ses)
tcon              136 fs/cifs/smb2pdu.c 		shdr->SessionId = tcon->ses->Suid;
tcon              151 fs/cifs/smb2pdu.c 	if (tcon->ses && tcon->ses->server && tcon->ses->server->sign &&
tcon              152 fs/cifs/smb2pdu.c 	    !smb3_encryption_required(tcon))
tcon              160 fs/cifs/smb2pdu.c 			    struct cifs_tcon *tcon)
tcon              175 fs/cifs/smb2pdu.c 	if (tcon->ipc) {
tcon              177 fs/cifs/smb2pdu.c 			  tcon->ses->server->hostname);
tcon              178 fs/cifs/smb2pdu.c 		rc = SMB2_tcon(0, tcon->ses, tree, tcon, nlsc);
tcon              182 fs/cifs/smb2pdu.c 	if (!tcon->dfs_path) {
tcon              183 fs/cifs/smb2pdu.c 		rc = SMB2_tcon(0, tcon->ses, tcon->treeName, tcon, nlsc);
tcon              187 fs/cifs/smb2pdu.c 	rc = dfs_cache_noreq_find(tcon->dfs_path + 1, NULL, &tl);
tcon              191 fs/cifs/smb2pdu.c 	extract_unc_hostname(tcon->ses->server->hostname, &tcp_host,
tcon              211 fs/cifs/smb2pdu.c 		rc = SMB2_tcon(0, tcon->ses, tree, tcon, nlsc);
tcon              220 fs/cifs/smb2pdu.c 			rc = dfs_cache_noreq_update_tgthint(tcon->dfs_path + 1,
tcon              232 fs/cifs/smb2pdu.c 				   struct cifs_tcon *tcon)
tcon              234 fs/cifs/smb2pdu.c 	return SMB2_tcon(0, tcon->ses, tcon->treeName, tcon, nlsc);
tcon              239 fs/cifs/smb2pdu.c smb2_reconnect(__le16 smb2_command, struct cifs_tcon *tcon)
tcon              252 fs/cifs/smb2pdu.c 	if (tcon == NULL)
tcon              258 fs/cifs/smb2pdu.c 	if (tcon->tidStatus == CifsExiting) {
tcon              272 fs/cifs/smb2pdu.c 	if ((!tcon->ses) || (tcon->ses->status == CifsExiting) ||
tcon              273 fs/cifs/smb2pdu.c 	    (!tcon->ses->server))
tcon              276 fs/cifs/smb2pdu.c 	ses = tcon->ses;
tcon              323 fs/cifs/smb2pdu.c 		if (!tcon->retry) {
tcon              330 fs/cifs/smb2pdu.c 	if (!tcon->ses->need_reconnect && !tcon->need_reconnect)
tcon              339 fs/cifs/smb2pdu.c 	mutex_lock(&tcon->ses->session_mutex);
tcon              348 fs/cifs/smb2pdu.c 		mutex_unlock(&tcon->ses->session_mutex);
tcon              352 fs/cifs/smb2pdu.c 	rc = cifs_negotiate_protocol(0, tcon->ses);
tcon              353 fs/cifs/smb2pdu.c 	if (!rc && tcon->ses->need_reconnect) {
tcon              354 fs/cifs/smb2pdu.c 		rc = cifs_setup_session(0, tcon->ses, nls_codepage);
tcon              355 fs/cifs/smb2pdu.c 		if ((rc == -EACCES) && !tcon->retry) {
tcon              357 fs/cifs/smb2pdu.c 			mutex_unlock(&tcon->ses->session_mutex);
tcon              361 fs/cifs/smb2pdu.c 	if (rc || !tcon->need_reconnect) {
tcon              362 fs/cifs/smb2pdu.c 		mutex_unlock(&tcon->ses->session_mutex);
tcon              366 fs/cifs/smb2pdu.c 	cifs_mark_open_files_invalid(tcon);
tcon              367 fs/cifs/smb2pdu.c 	if (tcon->use_persistent)
tcon              368 fs/cifs/smb2pdu.c 		tcon->need_reopen_files = true;
tcon              370 fs/cifs/smb2pdu.c 	rc = __smb2_reconnect(nls_codepage, tcon);
tcon              371 fs/cifs/smb2pdu.c 	mutex_unlock(&tcon->ses->session_mutex);
tcon              411 fs/cifs/smb2pdu.c fill_small_buf(__le16 smb2_command, struct cifs_tcon *tcon, void *buf,
tcon              424 fs/cifs/smb2pdu.c 	smb2_hdr_assemble(&spdu->sync_hdr, smb2_command, tcon);
tcon              435 fs/cifs/smb2pdu.c static int __smb2_plain_req_init(__le16 smb2_command, struct cifs_tcon *tcon,
tcon              448 fs/cifs/smb2pdu.c 	fill_small_buf(smb2_command, tcon,
tcon              452 fs/cifs/smb2pdu.c 	if (tcon != NULL) {
tcon              454 fs/cifs/smb2pdu.c 		cifs_stats_inc(&tcon->stats.smb2_stats.smb2_com_sent[com_code]);
tcon              455 fs/cifs/smb2pdu.c 		cifs_stats_inc(&tcon->num_smbs_sent);
tcon              461 fs/cifs/smb2pdu.c static int smb2_plain_req_init(__le16 smb2_command, struct cifs_tcon *tcon,
tcon              466 fs/cifs/smb2pdu.c 	rc = smb2_reconnect(smb2_command, tcon);
tcon              470 fs/cifs/smb2pdu.c 	return __smb2_plain_req_init(smb2_command, tcon, request_buf,
tcon              474 fs/cifs/smb2pdu.c static int smb2_ioctl_req_init(u32 opcode, struct cifs_tcon *tcon,
tcon              479 fs/cifs/smb2pdu.c 		return __smb2_plain_req_init(SMB2_IOCTL, tcon, request_buf,
tcon              482 fs/cifs/smb2pdu.c 	return smb2_plain_req_init(SMB2_IOCTL, tcon, request_buf, total_len);
tcon             1016 fs/cifs/smb2pdu.c int smb3_validate_negotiate(const unsigned int xid, struct cifs_tcon *tcon)
tcon             1023 fs/cifs/smb2pdu.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon             1038 fs/cifs/smb2pdu.c 	if (tcon->ses->session_flags & SMB2_SESSION_FLAG_IS_GUEST)
tcon             1041 fs/cifs/smb2pdu.c 	if (tcon->ses->user_name == NULL) {
tcon             1046 fs/cifs/smb2pdu.c 	if (tcon->ses->session_flags & SMB2_SESSION_FLAG_IS_NULL)
tcon             1058 fs/cifs/smb2pdu.c 	if (tcon->ses->sign)
tcon             1095 fs/cifs/smb2pdu.c 	rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID,
tcon             1659 fs/cifs/smb2pdu.c static inline void cifs_stats_fail_inc(struct cifs_tcon *tcon, uint16_t code)
tcon             1661 fs/cifs/smb2pdu.c 	cifs_stats_inc(&tcon->stats.smb2_stats.smb2_com_failed[code]);
tcon             1667 fs/cifs/smb2pdu.c static inline void init_copy_chunk_defaults(struct cifs_tcon *tcon)
tcon             1669 fs/cifs/smb2pdu.c 	tcon->max_chunks = 256;
tcon             1670 fs/cifs/smb2pdu.c 	tcon->max_bytes_chunk = 1048576;
tcon             1671 fs/cifs/smb2pdu.c 	tcon->max_bytes_copy = 16777216;
tcon             1676 fs/cifs/smb2pdu.c 	  struct cifs_tcon *tcon, const struct nls_table *cp)
tcon             1708 fs/cifs/smb2pdu.c 	tcon->tid = 0;
tcon             1709 fs/cifs/smb2pdu.c 	atomic_set(&tcon->num_remote_opens, 0);
tcon             1710 fs/cifs/smb2pdu.c 	rc = smb2_plain_req_init(SMB2_TREE_CONNECT, tcon, (void **) &req,
tcon             1717 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(tcon))
tcon             1737 fs/cifs/smb2pdu.c 	    !smb3_encryption_required(tcon) &&
tcon             1753 fs/cifs/smb2pdu.c 	trace_smb3_tcon(xid, tcon->tid, ses->Suid, tree, rc);
tcon             1755 fs/cifs/smb2pdu.c 		if (tcon) {
tcon             1756 fs/cifs/smb2pdu.c 			cifs_stats_fail_inc(tcon, SMB2_TREE_CONNECT_HE);
tcon             1757 fs/cifs/smb2pdu.c 			tcon->need_reconnect = true;
tcon             1767 fs/cifs/smb2pdu.c 		tcon->pipe = true;
tcon             1771 fs/cifs/smb2pdu.c 		tcon->print = true;
tcon             1780 fs/cifs/smb2pdu.c 	tcon->share_flags = le32_to_cpu(rsp->ShareFlags);
tcon             1781 fs/cifs/smb2pdu.c 	tcon->capabilities = rsp->Capabilities; /* we keep caps little endian */
tcon             1782 fs/cifs/smb2pdu.c 	tcon->maximal_access = le32_to_cpu(rsp->MaximalAccess);
tcon             1783 fs/cifs/smb2pdu.c 	tcon->tidStatus = CifsGood;
tcon             1784 fs/cifs/smb2pdu.c 	tcon->need_reconnect = false;
tcon             1785 fs/cifs/smb2pdu.c 	tcon->tid = rsp->sync_hdr.TreeId;
tcon             1786 fs/cifs/smb2pdu.c 	strlcpy(tcon->treeName, tree, sizeof(tcon->treeName));
tcon             1789 fs/cifs/smb2pdu.c 	    ((tcon->share_flags & SHI1005_FLAGS_DFS) == 0))
tcon             1792 fs/cifs/smb2pdu.c 	if (tcon->seal &&
tcon             1796 fs/cifs/smb2pdu.c 	init_copy_chunk_defaults(tcon);
tcon             1798 fs/cifs/smb2pdu.c 		rc = server->ops->validate_negotiate(xid, tcon);
tcon             1813 fs/cifs/smb2pdu.c SMB2_tdis(const unsigned int xid, struct cifs_tcon *tcon)
tcon             1818 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
tcon             1830 fs/cifs/smb2pdu.c 	if ((tcon->need_reconnect) || (tcon->ses->need_reconnect))
tcon             1833 fs/cifs/smb2pdu.c 	rc = smb2_plain_req_init(SMB2_TREE_DISCONNECT, tcon, (void **) &req,
tcon             1838 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(tcon))
tcon             1853 fs/cifs/smb2pdu.c 		cifs_stats_fail_inc(tcon, SMB2_TREE_DISCONNECT_HE);
tcon             2007 fs/cifs/smb2pdu.c 	buf->dcontext.Timeout = cpu_to_le32(oparms->tcon->handle_timeout);
tcon             2263 fs/cifs/smb2pdu.c 			       umode_t mode, struct cifs_tcon *tcon,
tcon             2270 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
tcon             2298 fs/cifs/smb2pdu.c 	rc = smb2_plain_req_init(SMB2_CREATE, tcon, (void **) &req, &total_len);
tcon             2303 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(tcon))
tcon             2328 fs/cifs/smb2pdu.c 	if (tcon->share_flags & SHI1005_FLAGS_DFS) {
tcon             2334 fs/cifs/smb2pdu.c 						 tcon->treeName, utf16_path);
tcon             2367 fs/cifs/smb2pdu.c 	if (tcon->posix_extensions) {
tcon             2381 fs/cifs/smb2pdu.c 	trace_smb3_posix_mkdir_enter(xid, tcon->tid, ses->Suid, CREATE_NOT_FILE,
tcon             2386 fs/cifs/smb2pdu.c 		cifs_stats_fail_inc(tcon, SMB2_CREATE_HE);
tcon             2387 fs/cifs/smb2pdu.c 		trace_smb3_posix_mkdir_err(xid, tcon->tid, ses->Suid,
tcon             2394 fs/cifs/smb2pdu.c 	trace_smb3_posix_mkdir_done(xid, rsp->PersistentFileId, tcon->tid,
tcon             2398 fs/cifs/smb2pdu.c 	SMB2_close(xid, tcon, rsp->PersistentFileId, rsp->VolatileFileId);
tcon             2413 fs/cifs/smb2pdu.c SMB2_open_init(struct cifs_tcon *tcon, struct smb_rqst *rqst, __u8 *oplock,
tcon             2416 fs/cifs/smb2pdu.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon             2427 fs/cifs/smb2pdu.c 	rc = smb2_plain_req_init(SMB2_CREATE, tcon, (void **) &req, &total_len);
tcon             2458 fs/cifs/smb2pdu.c 	if (tcon->share_flags & SHI1005_FLAGS_DFS) {
tcon             2464 fs/cifs/smb2pdu.c 						 tcon->treeName, path);
tcon             2489 fs/cifs/smb2pdu.c 	if ((!server->oplocks) || (tcon->no_lease))
tcon             2515 fs/cifs/smb2pdu.c 					tcon->use_persistent);
tcon             2520 fs/cifs/smb2pdu.c 	if (tcon->posix_extensions) {
tcon             2533 fs/cifs/smb2pdu.c 	if (tcon->snapshot_time) {
tcon             2542 fs/cifs/smb2pdu.c 		rc = add_twarp_context(iov, &n_iov, tcon->snapshot_time);
tcon             2596 fs/cifs/smb2pdu.c 	struct cifs_tcon *tcon = oparms->tcon;
tcon             2597 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
tcon             2610 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(tcon))
tcon             2618 fs/cifs/smb2pdu.c 	rc = SMB2_open_init(tcon, &rqst, oplock, oparms, path);
tcon             2622 fs/cifs/smb2pdu.c 	trace_smb3_open_enter(xid, tcon->tid, tcon->ses->Suid,
tcon             2630 fs/cifs/smb2pdu.c 		cifs_stats_fail_inc(tcon, SMB2_CREATE_HE);
tcon             2637 fs/cifs/smb2pdu.c 		trace_smb3_open_err(xid, tcon->tid, ses->Suid,
tcon             2641 fs/cifs/smb2pdu.c 				    tcon->treeName);
tcon             2642 fs/cifs/smb2pdu.c 			tcon->need_reconnect = true;
tcon             2646 fs/cifs/smb2pdu.c 		trace_smb3_open_done(xid, rsp->PersistentFileId, tcon->tid,
tcon             2650 fs/cifs/smb2pdu.c 	atomic_inc(&tcon->num_remote_opens);
tcon             2677 fs/cifs/smb2pdu.c SMB2_ioctl_init(struct cifs_tcon *tcon, struct smb_rqst *rqst,
tcon             2688 fs/cifs/smb2pdu.c 	rc = smb2_ioctl_req_init(opcode, tcon, (void **) &req, &total_len);
tcon             2782 fs/cifs/smb2pdu.c SMB2_ioctl(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid,
tcon             2806 fs/cifs/smb2pdu.c 	if (tcon)
tcon             2807 fs/cifs/smb2pdu.c 		ses = tcon->ses;
tcon             2817 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(tcon))
tcon             2825 fs/cifs/smb2pdu.c 	rc = SMB2_ioctl_init(tcon, &rqst, persistent_fid, volatile_fid, opcode,
tcon             2835 fs/cifs/smb2pdu.c 		trace_smb3_fsctl_err(xid, persistent_fid, tcon->tid,
tcon             2839 fs/cifs/smb2pdu.c 		cifs_stats_fail_inc(tcon, SMB2_IOCTL_HE);
tcon             2844 fs/cifs/smb2pdu.c 			cifs_stats_fail_inc(tcon, SMB2_IOCTL_HE);
tcon             2849 fs/cifs/smb2pdu.c 			cifs_stats_fail_inc(tcon, SMB2_IOCTL_HE);
tcon             2896 fs/cifs/smb2pdu.c SMB2_set_compression(const unsigned int xid, struct cifs_tcon *tcon,
tcon             2906 fs/cifs/smb2pdu.c 	rc = SMB2_ioctl(xid, tcon, persistent_fid, volatile_fid,
tcon             2918 fs/cifs/smb2pdu.c SMB2_close_init(struct cifs_tcon *tcon, struct smb_rqst *rqst,
tcon             2926 fs/cifs/smb2pdu.c 	rc = smb2_plain_req_init(SMB2_CLOSE, tcon, (void **) &req, &total_len);
tcon             2946 fs/cifs/smb2pdu.c SMB2_close_flags(const unsigned int xid, struct cifs_tcon *tcon,
tcon             2951 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
tcon             2962 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(tcon))
tcon             2970 fs/cifs/smb2pdu.c 	trace_smb3_close_enter(xid, persistent_fid, tcon->tid, ses->Suid);
tcon             2971 fs/cifs/smb2pdu.c 	rc = SMB2_close_init(tcon, &rqst, persistent_fid, volatile_fid);
tcon             2979 fs/cifs/smb2pdu.c 		cifs_stats_fail_inc(tcon, SMB2_CLOSE_HE);
tcon             2980 fs/cifs/smb2pdu.c 		trace_smb3_close_err(xid, persistent_fid, tcon->tid, ses->Suid,
tcon             2984 fs/cifs/smb2pdu.c 		trace_smb3_close_done(xid, persistent_fid, tcon->tid,
tcon             2987 fs/cifs/smb2pdu.c 	atomic_dec(&tcon->num_remote_opens);
tcon             2998 fs/cifs/smb2pdu.c SMB2_close(const unsigned int xid, struct cifs_tcon *tcon,
tcon             3004 fs/cifs/smb2pdu.c 	rc = SMB2_close_flags(xid, tcon, persistent_fid, volatile_fid, 0);
tcon             3008 fs/cifs/smb2pdu.c 		tmp_rc = smb2_handle_cancelled_close(tcon, persistent_fid,
tcon             3074 fs/cifs/smb2pdu.c SMB2_query_info_init(struct cifs_tcon *tcon, struct smb_rqst *rqst,
tcon             3084 fs/cifs/smb2pdu.c 	rc = smb2_plain_req_init(SMB2_QUERY_INFO, tcon, (void **) &req,
tcon             3117 fs/cifs/smb2pdu.c query_info(const unsigned int xid, struct cifs_tcon *tcon,
tcon             3128 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
tcon             3141 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(tcon))
tcon             3149 fs/cifs/smb2pdu.c 	rc = SMB2_query_info_init(tcon, &rqst, persistent_fid, volatile_fid,
tcon             3155 fs/cifs/smb2pdu.c 	trace_smb3_query_info_enter(xid, persistent_fid, tcon->tid,
tcon             3162 fs/cifs/smb2pdu.c 		cifs_stats_fail_inc(tcon, SMB2_QUERY_INFO_HE);
tcon             3163 fs/cifs/smb2pdu.c 		trace_smb3_query_info_err(xid, persistent_fid, tcon->tid,
tcon             3168 fs/cifs/smb2pdu.c 	trace_smb3_query_info_done(xid, persistent_fid, tcon->tid,
tcon             3202 fs/cifs/smb2pdu.c int SMB2_query_info(const unsigned int xid, struct cifs_tcon *tcon,
tcon             3205 fs/cifs/smb2pdu.c 	return query_info(xid, tcon, persistent_fid, volatile_fid,
tcon             3213 fs/cifs/smb2pdu.c SMB2_query_acl(const unsigned int xid, struct cifs_tcon *tcon,
tcon             3220 fs/cifs/smb2pdu.c 	return query_info(xid, tcon, persistent_fid, volatile_fid,
tcon             3226 fs/cifs/smb2pdu.c SMB2_get_srv_num(const unsigned int xid, struct cifs_tcon *tcon,
tcon             3229 fs/cifs/smb2pdu.c 	return query_info(xid, tcon, persistent_fid, volatile_fid,
tcon             3243 fs/cifs/smb2pdu.c 		struct cifs_tcon *tcon, u64 persistent_fid, u64 volatile_fid,
tcon             3251 fs/cifs/smb2pdu.c 	rc = smb2_plain_req_init(SMB2_CHANGE_NOTIFY, tcon, (void **) &req, &total_len);
tcon             3272 fs/cifs/smb2pdu.c SMB2_change_notify(const unsigned int xid, struct cifs_tcon *tcon,
tcon             3276 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
tcon             3288 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(tcon))
tcon             3296 fs/cifs/smb2pdu.c 	rc = SMB2_notify_init(xid, &rqst, tcon, persistent_fid, volatile_fid,
tcon             3301 fs/cifs/smb2pdu.c 	trace_smb3_notify_enter(xid, persistent_fid, tcon->tid, ses->Suid,
tcon             3306 fs/cifs/smb2pdu.c 		cifs_stats_fail_inc(tcon, SMB2_CHANGE_NOTIFY_HE);
tcon             3307 fs/cifs/smb2pdu.c 		trace_smb3_notify_err(xid, persistent_fid, tcon->tid, ses->Suid,
tcon             3310 fs/cifs/smb2pdu.c 		trace_smb3_notify_done(xid, persistent_fid, tcon->tid,
tcon             3351 fs/cifs/smb2pdu.c 	struct cifs_tcon *tcon, *tcon2;
tcon             3366 fs/cifs/smb2pdu.c 		list_for_each_entry(tcon, &ses->tcon_list, tcon_list) {
tcon             3367 fs/cifs/smb2pdu.c 			if (tcon->need_reconnect || tcon->need_reopen_files) {
tcon             3368 fs/cifs/smb2pdu.c 				tcon->tc_count++;
tcon             3369 fs/cifs/smb2pdu.c 				list_add_tail(&tcon->rlist, &tmp_list);
tcon             3392 fs/cifs/smb2pdu.c 	list_for_each_entry_safe(tcon, tcon2, &tmp_list, rlist) {
tcon             3393 fs/cifs/smb2pdu.c 		rc = smb2_reconnect(SMB2_INTERNAL_CMD, tcon);
tcon             3395 fs/cifs/smb2pdu.c 			cifs_reopen_persistent_handles(tcon);
tcon             3398 fs/cifs/smb2pdu.c 		list_del_init(&tcon->rlist);
tcon             3399 fs/cifs/smb2pdu.c 		if (tcon->ipc)
tcon             3400 fs/cifs/smb2pdu.c 			cifs_put_smb_ses(tcon->ses);
tcon             3402 fs/cifs/smb2pdu.c 			cifs_put_tcon(tcon);
tcon             3460 fs/cifs/smb2pdu.c 		struct cifs_tcon *tcon, u64 persistent_fid, u64 volatile_fid)
tcon             3467 fs/cifs/smb2pdu.c 	rc = smb2_plain_req_init(SMB2_FLUSH, tcon, (void **) &req, &total_len);
tcon             3481 fs/cifs/smb2pdu.c SMB2_flush(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid,
tcon             3484 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
tcon             3496 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(tcon))
tcon             3504 fs/cifs/smb2pdu.c 	rc = SMB2_flush_init(xid, &rqst, tcon, persistent_fid, volatile_fid);
tcon             3508 fs/cifs/smb2pdu.c 	trace_smb3_flush_enter(xid, persistent_fid, tcon->tid, ses->Suid);
tcon             3512 fs/cifs/smb2pdu.c 		cifs_stats_fail_inc(tcon, SMB2_FLUSH_HE);
tcon             3513 fs/cifs/smb2pdu.c 		trace_smb3_flush_err(xid, persistent_fid, tcon->tid, ses->Suid,
tcon             3516 fs/cifs/smb2pdu.c 		trace_smb3_flush_done(xid, persistent_fid, tcon->tid,
tcon             3539 fs/cifs/smb2pdu.c 	rc = smb2_plain_req_init(SMB2_READ, io_parms->tcon, (void **) &req,
tcon             3544 fs/cifs/smb2pdu.c 	server = io_parms->tcon->ses->server;
tcon             3562 fs/cifs/smb2pdu.c 			io_parms->tcon->tid, io_parms->tcon->ses->Suid,
tcon             3574 fs/cifs/smb2pdu.c 			io_parms->tcon->ses->server->dialect == SMB30_PROT_ID;
tcon             3630 fs/cifs/smb2pdu.c 	struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink);
tcon             3631 fs/cifs/smb2pdu.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon             3662 fs/cifs/smb2pdu.c 		cifs_stats_bytes_read(tcon, rdata->got_bytes);
tcon             3672 fs/cifs/smb2pdu.c 		cifs_stats_bytes_read(tcon, rdata->got_bytes);
tcon             3693 fs/cifs/smb2pdu.c 		cifs_stats_fail_inc(tcon, SMB2_READ_HE);
tcon             3696 fs/cifs/smb2pdu.c 				    tcon->tid, tcon->ses->Suid, rdata->offset,
tcon             3701 fs/cifs/smb2pdu.c 				     tcon->tid, tcon->ses->Suid,
tcon             3725 fs/cifs/smb2pdu.c 	io_parms.tcon = tlink_tcon(rdata->cfile->tlink);
tcon             3732 fs/cifs/smb2pdu.c 	server = io_parms.tcon->ses->server;
tcon             3739 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(io_parms.tcon))
tcon             3761 fs/cifs/smb2pdu.c 	rc = cifs_call_async(io_parms.tcon->ses->server, &rqst,
tcon             3767 fs/cifs/smb2pdu.c 		cifs_stats_fail_inc(io_parms.tcon, SMB2_READ_HE);
tcon             3769 fs/cifs/smb2pdu.c 				    io_parms.tcon->tid,
tcon             3770 fs/cifs/smb2pdu.c 				    io_parms.tcon->ses->Suid,
tcon             3791 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = io_parms->tcon->ses;
tcon             3798 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(io_parms->tcon))
tcon             3813 fs/cifs/smb2pdu.c 			cifs_stats_fail_inc(io_parms->tcon, SMB2_READ_HE);
tcon             3816 fs/cifs/smb2pdu.c 					    io_parms->tcon->tid, ses->Suid,
tcon             3821 fs/cifs/smb2pdu.c 				    io_parms->tcon->tid, ses->Suid,
tcon             3828 fs/cifs/smb2pdu.c 				    io_parms->tcon->tid, ses->Suid,
tcon             3863 fs/cifs/smb2pdu.c 	struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink);
tcon             3864 fs/cifs/smb2pdu.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon             3918 fs/cifs/smb2pdu.c 		cifs_stats_fail_inc(tcon, SMB2_WRITE_HE);
tcon             3921 fs/cifs/smb2pdu.c 				     tcon->tid, tcon->ses->Suid, wdata->offset,
tcon             3925 fs/cifs/smb2pdu.c 				    tcon->treeName);
tcon             3929 fs/cifs/smb2pdu.c 				      tcon->tid, tcon->ses->Suid,
tcon             3945 fs/cifs/smb2pdu.c 	struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink);
tcon             3946 fs/cifs/smb2pdu.c 	struct TCP_Server_Info *server = tcon->ses->server;
tcon             3951 fs/cifs/smb2pdu.c 	rc = smb2_plain_req_init(SMB2_WRITE, tcon, (void **) &req, &total_len);
tcon             3955 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(tcon))
tcon             3972 fs/cifs/smb2pdu.c 		tcon->tid, tcon->ses->Suid, wdata->offset, wdata->bytes);
tcon             4061 fs/cifs/smb2pdu.c 				     tcon->tid, tcon->ses->Suid, wdata->offset,
tcon             4064 fs/cifs/smb2pdu.c 		cifs_stats_fail_inc(tcon, SMB2_WRITE_HE);
tcon             4096 fs/cifs/smb2pdu.c 	rc = smb2_plain_req_init(SMB2_WRITE, io_parms->tcon, (void **) &req,
tcon             4101 fs/cifs/smb2pdu.c 	if (io_parms->tcon->ses->server == NULL)
tcon             4104 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(io_parms->tcon))
tcon             4121 fs/cifs/smb2pdu.c 		io_parms->tcon->tid, io_parms->tcon->ses->Suid,
tcon             4132 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, io_parms->tcon->ses, &rqst,
tcon             4138 fs/cifs/smb2pdu.c 				     io_parms->tcon->tid,
tcon             4139 fs/cifs/smb2pdu.c 				     io_parms->tcon->ses->Suid,
tcon             4141 fs/cifs/smb2pdu.c 		cifs_stats_fail_inc(io_parms->tcon, SMB2_WRITE_HE);
tcon             4146 fs/cifs/smb2pdu.c 				     io_parms->tcon->tid,
tcon             4147 fs/cifs/smb2pdu.c 				     io_parms->tcon->ses->Suid,
tcon             4205 fs/cifs/smb2pdu.c SMB2_query_directory(const unsigned int xid, struct cifs_tcon *tcon,
tcon             4219 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
tcon             4232 fs/cifs/smb2pdu.c 	rc = smb2_plain_req_init(SMB2_QUERY_DIRECTORY, tcon, (void **) &req,
tcon             4237 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(tcon))
tcon             4286 fs/cifs/smb2pdu.c 	trace_smb3_query_dir_enter(xid, persistent_fid, tcon->tid,
tcon             4287 fs/cifs/smb2pdu.c 			tcon->ses->Suid, index, output_size);
tcon             4297 fs/cifs/smb2pdu.c 				tcon->tid, tcon->ses->Suid, index, 0);
tcon             4301 fs/cifs/smb2pdu.c 			trace_smb3_query_dir_err(xid, persistent_fid, tcon->tid,
tcon             4302 fs/cifs/smb2pdu.c 				tcon->ses->Suid, index, 0, rc);
tcon             4303 fs/cifs/smb2pdu.c 			cifs_stats_fail_inc(tcon, SMB2_QUERY_DIRECTORY_HE);
tcon             4312 fs/cifs/smb2pdu.c 		trace_smb3_query_dir_err(xid, persistent_fid, tcon->tid,
tcon             4313 fs/cifs/smb2pdu.c 			tcon->ses->Suid, index, 0, rc);
tcon             4343 fs/cifs/smb2pdu.c 	trace_smb3_query_dir_done(xid, persistent_fid, tcon->tid,
tcon             4344 fs/cifs/smb2pdu.c 			tcon->ses->Suid, index, srch_inf->entries_in_buffer);
tcon             4353 fs/cifs/smb2pdu.c SMB2_set_info_init(struct cifs_tcon *tcon, struct smb_rqst *rqst,
tcon             4363 fs/cifs/smb2pdu.c 	rc = smb2_plain_req_init(SMB2_SET_INFO, tcon, (void **) &req, &total_len);
tcon             4402 fs/cifs/smb2pdu.c send_set_info(const unsigned int xid, struct cifs_tcon *tcon,
tcon             4413 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
tcon             4422 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(tcon))
tcon             4433 fs/cifs/smb2pdu.c 	rc = SMB2_set_info_init(tcon, &rqst, persistent_fid, volatile_fid, pid,
tcon             4448 fs/cifs/smb2pdu.c 		cifs_stats_fail_inc(tcon, SMB2_SET_INFO_HE);
tcon             4449 fs/cifs/smb2pdu.c 		trace_smb3_set_info_err(xid, persistent_fid, tcon->tid,
tcon             4459 fs/cifs/smb2pdu.c SMB2_set_eof(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid,
tcon             4471 fs/cifs/smb2pdu.c 	return send_set_info(xid, tcon, persistent_fid, volatile_fid,
tcon             4477 fs/cifs/smb2pdu.c SMB2_set_acl(const unsigned int xid, struct cifs_tcon *tcon,
tcon             4481 fs/cifs/smb2pdu.c 	return send_set_info(xid, tcon, persistent_fid, volatile_fid,
tcon             4487 fs/cifs/smb2pdu.c SMB2_set_ea(const unsigned int xid, struct cifs_tcon *tcon,
tcon             4491 fs/cifs/smb2pdu.c 	return send_set_info(xid, tcon, persistent_fid, volatile_fid,
tcon             4497 fs/cifs/smb2pdu.c SMB2_oplock_break(const unsigned int xid, struct cifs_tcon *tcon,
tcon             4504 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
tcon             4512 fs/cifs/smb2pdu.c 	rc = smb2_plain_req_init(SMB2_OPLOCK_BREAK, tcon, (void **) &req,
tcon             4517 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(tcon))
tcon             4538 fs/cifs/smb2pdu.c 		cifs_stats_fail_inc(tcon, SMB2_OPLOCK_BREAK_HE);
tcon             4577 fs/cifs/smb2pdu.c build_qfs_info_req(struct kvec *iov, struct cifs_tcon *tcon, int level,
tcon             4586 fs/cifs/smb2pdu.c 	if ((tcon->ses == NULL) || (tcon->ses->server == NULL))
tcon             4589 fs/cifs/smb2pdu.c 	rc = smb2_plain_req_init(SMB2_QUERY_INFO, tcon, (void **) &req,
tcon             4610 fs/cifs/smb2pdu.c SMB311_posix_qfs_info(const unsigned int xid, struct cifs_tcon *tcon,
tcon             4619 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
tcon             4623 fs/cifs/smb2pdu.c 	rc = build_qfs_info_req(&iov, tcon, FS_POSIX_INFORMATION,
tcon             4629 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(tcon))
tcon             4639 fs/cifs/smb2pdu.c 		cifs_stats_fail_inc(tcon, SMB2_QUERY_INFO_HE);
tcon             4658 fs/cifs/smb2pdu.c SMB2_QFS_info(const unsigned int xid, struct cifs_tcon *tcon,
tcon             4667 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
tcon             4671 fs/cifs/smb2pdu.c 	rc = build_qfs_info_req(&iov, tcon, FS_FULL_SIZE_INFORMATION,
tcon             4677 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(tcon))
tcon             4687 fs/cifs/smb2pdu.c 		cifs_stats_fail_inc(tcon, SMB2_QUERY_INFO_HE);
tcon             4706 fs/cifs/smb2pdu.c SMB2_QFS_attr(const unsigned int xid, struct cifs_tcon *tcon,
tcon             4715 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
tcon             4736 fs/cifs/smb2pdu.c 	rc = build_qfs_info_req(&iov, tcon, level, max_len,
tcon             4741 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(tcon))
tcon             4751 fs/cifs/smb2pdu.c 		cifs_stats_fail_inc(tcon, SMB2_QUERY_INFO_HE);
tcon             4763 fs/cifs/smb2pdu.c 		memcpy(&tcon->fsAttrInfo, offset
tcon             4767 fs/cifs/smb2pdu.c 		memcpy(&tcon->fsDevInfo, offset
tcon             4772 fs/cifs/smb2pdu.c 		tcon->ss_flags = le32_to_cpu(ss_info->Flags);
tcon             4773 fs/cifs/smb2pdu.c 		tcon->perf_sector_size =
tcon             4778 fs/cifs/smb2pdu.c 		tcon->vol_serial_number = vol_info->VolumeSerialNumber;
tcon             4779 fs/cifs/smb2pdu.c 		tcon->vol_create_time = vol_info->VolumeCreationTime;
tcon             4788 fs/cifs/smb2pdu.c smb2_lockv(const unsigned int xid, struct cifs_tcon *tcon,
tcon             4804 fs/cifs/smb2pdu.c 	rc = smb2_plain_req_init(SMB2_LOCK, tcon, (void **) &req, &total_len);
tcon             4808 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(tcon))
tcon             4824 fs/cifs/smb2pdu.c 	cifs_stats_inc(&tcon->stats.cifs_stats.num_locks);
tcon             4830 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, tcon->ses, &rqst, &resp_buf_type, flags,
tcon             4835 fs/cifs/smb2pdu.c 		cifs_stats_fail_inc(tcon, SMB2_LOCK_HE);
tcon             4836 fs/cifs/smb2pdu.c 		trace_smb3_lock_err(xid, persist_fid, tcon->tid,
tcon             4837 fs/cifs/smb2pdu.c 				    tcon->ses->Suid, rc);
tcon             4844 fs/cifs/smb2pdu.c SMB2_lock(const unsigned int xid, struct cifs_tcon *tcon,
tcon             4857 fs/cifs/smb2pdu.c 	return smb2_lockv(xid, tcon, persist_fid, volatile_fid, pid, 1, &lock);
tcon             4861 fs/cifs/smb2pdu.c SMB2_lease_break(const unsigned int xid, struct cifs_tcon *tcon,
tcon             4867 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
tcon             4877 fs/cifs/smb2pdu.c 	rc = smb2_plain_req_init(SMB2_OPLOCK_BREAK, tcon, (void **) &req,
tcon             4882 fs/cifs/smb2pdu.c 	if (smb3_encryption_required(tcon))
tcon             4907 fs/cifs/smb2pdu.c 		cifs_stats_fail_inc(tcon, SMB2_OPLOCK_BREAK_HE);
tcon             4908 fs/cifs/smb2pdu.c 		trace_smb3_lease_err(le32_to_cpu(lease_state), tcon->tid,
tcon             4912 fs/cifs/smb2pdu.c 		trace_smb3_lease_done(le32_to_cpu(lease_state), tcon->tid,
tcon               69 fs/cifs/smb2proto.h extern int open_shroot(unsigned int xid, struct cifs_tcon *tcon,
tcon               74 fs/cifs/smb2proto.h extern int smb2_query_path_info(const unsigned int xid, struct cifs_tcon *tcon,
tcon               78 fs/cifs/smb2proto.h extern int smb2_set_path_size(const unsigned int xid, struct cifs_tcon *tcon,
tcon               84 fs/cifs/smb2proto.h 			       umode_t mode, struct cifs_tcon *tcon,
tcon               88 fs/cifs/smb2proto.h 		      umode_t mode, struct cifs_tcon *tcon,
tcon               92 fs/cifs/smb2proto.h 			       struct cifs_tcon *tcon, const unsigned int xid);
tcon               93 fs/cifs/smb2proto.h extern int smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon,
tcon               95 fs/cifs/smb2proto.h extern int smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon,
tcon               97 fs/cifs/smb2proto.h extern int smb2_rename_path(const unsigned int xid, struct cifs_tcon *tcon,
tcon              100 fs/cifs/smb2proto.h extern int smb2_create_hardlink(const unsigned int xid, struct cifs_tcon *tcon,
tcon              103 fs/cifs/smb2proto.h extern int smb3_create_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
tcon              106 fs/cifs/smb2proto.h extern int smb3_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
tcon              120 fs/cifs/smb2proto.h extern void smb2_set_next_command(struct cifs_tcon *tcon,
tcon              133 fs/cifs/smb2proto.h 		     const char *tree, struct cifs_tcon *tcon,
tcon              135 fs/cifs/smb2proto.h extern int SMB2_tdis(const unsigned int xid, struct cifs_tcon *tcon);
tcon              140 fs/cifs/smb2proto.h extern int SMB2_open_init(struct cifs_tcon *tcon, struct smb_rqst *rqst,
tcon              144 fs/cifs/smb2proto.h extern int SMB2_ioctl(const unsigned int xid, struct cifs_tcon *tcon,
tcon              148 fs/cifs/smb2proto.h extern int SMB2_ioctl_init(struct cifs_tcon *tcon, struct smb_rqst *rqst,
tcon              153 fs/cifs/smb2proto.h extern int SMB2_change_notify(const unsigned int xid, struct cifs_tcon *tcon,
tcon              157 fs/cifs/smb2proto.h extern int SMB2_close(const unsigned int xid, struct cifs_tcon *tcon,
tcon              159 fs/cifs/smb2proto.h extern int SMB2_close_flags(const unsigned int xid, struct cifs_tcon *tcon,
tcon              161 fs/cifs/smb2proto.h extern int SMB2_close_init(struct cifs_tcon *tcon, struct smb_rqst *rqst,
tcon              164 fs/cifs/smb2proto.h extern int SMB2_flush(const unsigned int xid, struct cifs_tcon *tcon,
tcon              167 fs/cifs/smb2proto.h 			   struct cifs_tcon *tcon,
tcon              170 fs/cifs/smb2proto.h extern int SMB2_query_info(const unsigned int xid, struct cifs_tcon *tcon,
tcon              173 fs/cifs/smb2proto.h extern int SMB2_query_info_init(struct cifs_tcon *tcon, struct smb_rqst *rqst,
tcon              179 fs/cifs/smb2proto.h extern int SMB2_query_acl(const unsigned int xid, struct cifs_tcon *tcon,
tcon              182 fs/cifs/smb2proto.h extern int SMB2_get_srv_num(const unsigned int xid, struct cifs_tcon *tcon,
tcon              193 fs/cifs/smb2proto.h extern int SMB2_query_directory(const unsigned int xid, struct cifs_tcon *tcon,
tcon              196 fs/cifs/smb2proto.h extern int SMB2_set_eof(const unsigned int xid, struct cifs_tcon *tcon,
tcon              199 fs/cifs/smb2proto.h extern int SMB2_set_info_init(struct cifs_tcon *tcon, struct smb_rqst *rqst,
tcon              204 fs/cifs/smb2proto.h extern int SMB2_set_acl(const unsigned int xid, struct cifs_tcon *tcon,
tcon              207 fs/cifs/smb2proto.h extern int SMB2_set_ea(const unsigned int xid, struct cifs_tcon *tcon,
tcon              210 fs/cifs/smb2proto.h extern int SMB2_set_compression(const unsigned int xid, struct cifs_tcon *tcon,
tcon              212 fs/cifs/smb2proto.h extern int SMB2_oplock_break(const unsigned int xid, struct cifs_tcon *tcon,
tcon              215 fs/cifs/smb2proto.h extern int smb2_handle_cancelled_close(struct cifs_tcon *tcon,
tcon              221 fs/cifs/smb2proto.h extern int SMB2_QFS_info(const unsigned int xid, struct cifs_tcon *tcon,
tcon              224 fs/cifs/smb2proto.h extern int SMB311_posix_qfs_info(const unsigned int xid, struct cifs_tcon *tcon,
tcon              227 fs/cifs/smb2proto.h extern int SMB2_QFS_attr(const unsigned int xid, struct cifs_tcon *tcon,
tcon              229 fs/cifs/smb2proto.h extern int SMB2_lock(const unsigned int xid, struct cifs_tcon *tcon,
tcon              233 fs/cifs/smb2proto.h extern int smb2_lockv(const unsigned int xid, struct cifs_tcon *tcon,
tcon              237 fs/cifs/smb2proto.h extern int SMB2_lease_break(const unsigned int xid, struct cifs_tcon *tcon,
tcon              247 fs/cifs/smb2proto.h extern int smb3_encryption_required(const struct cifs_tcon *tcon);
tcon              261 fs/cifs/smb2proto.h 				    struct cifs_tcon *tcon,
tcon              130 fs/cifs/smb2transport.c 	struct cifs_tcon *tcon;
tcon              132 fs/cifs/smb2transport.c 	list_for_each_entry(tcon, &ses->tcon_list, tcon_list) {
tcon              133 fs/cifs/smb2transport.c 		if (tcon->tid != tid)
tcon              135 fs/cifs/smb2transport.c 		++tcon->tc_count;
tcon              136 fs/cifs/smb2transport.c 		return tcon;
tcon              151 fs/cifs/smb2transport.c 	struct cifs_tcon *tcon;
tcon              159 fs/cifs/smb2transport.c 	tcon = smb2_find_smb_sess_tcon_unlocked(ses, tid);
tcon              162 fs/cifs/smb2transport.c 	return tcon;
tcon              614 fs/cifs/trace.h DEFINE_SMB3_TCON_EVENT(tcon);
tcon             1376 fs/cifs/transport.c send_lock_cancel(const unsigned int xid, struct cifs_tcon *tcon,
tcon             1381 fs/cifs/transport.c 	struct cifs_ses *ses = tcon->ses;
tcon             1398 fs/cifs/transport.c SendReceiveBlockingLock(const unsigned int xid, struct cifs_tcon *tcon,
tcon             1412 fs/cifs/transport.c 	if (tcon == NULL || tcon->ses == NULL) {
tcon             1416 fs/cifs/transport.c 	ses = tcon->ses;
tcon             1500 fs/cifs/transport.c 			rc = send_lock_cancel(xid, tcon, in_buf, out_buf);
tcon              816 security/selinux/selinuxfs.c 	char *scon = NULL, *tcon = NULL;
tcon              834 security/selinux/selinuxfs.c 	tcon = kzalloc(size + 1, GFP_KERNEL);
tcon              835 security/selinux/selinuxfs.c 	if (!tcon)
tcon              839 security/selinux/selinuxfs.c 	if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3)
tcon              846 security/selinux/selinuxfs.c 	length = security_context_str_to_sid(state, tcon, &tsid, GFP_KERNEL);
tcon              858 security/selinux/selinuxfs.c 	kfree(tcon);
tcon              867 security/selinux/selinuxfs.c 	char *scon = NULL, *tcon = NULL;
tcon              889 security/selinux/selinuxfs.c 	tcon = kzalloc(size + 1, GFP_KERNEL);
tcon              890 security/selinux/selinuxfs.c 	if (!tcon)
tcon              899 security/selinux/selinuxfs.c 	nargs = sscanf(buf, "%s %s %hu %s", scon, tcon, &tclass, namebuf);
tcon              937 security/selinux/selinuxfs.c 	length = security_context_str_to_sid(state, tcon, &tsid, GFP_KERNEL);
tcon              962 security/selinux/selinuxfs.c 	kfree(tcon);
tcon              971 security/selinux/selinuxfs.c 	char *scon = NULL, *tcon = NULL;
tcon              991 security/selinux/selinuxfs.c 	tcon = kzalloc(size + 1, GFP_KERNEL);
tcon              992 security/selinux/selinuxfs.c 	if (!tcon)
tcon              996 security/selinux/selinuxfs.c 	if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3)
tcon             1003 security/selinux/selinuxfs.c 	length = security_context_str_to_sid(state, tcon, &tsid, GFP_KERNEL);
tcon             1023 security/selinux/selinuxfs.c 	kfree(tcon);
tcon             1097 security/selinux/selinuxfs.c 	char *scon = NULL, *tcon = NULL;
tcon             1117 security/selinux/selinuxfs.c 	tcon = kzalloc(size + 1, GFP_KERNEL);
tcon             1118 security/selinux/selinuxfs.c 	if (!tcon)
tcon             1122 security/selinux/selinuxfs.c 	if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3)
tcon             1129 security/selinux/selinuxfs.c 	length = security_context_str_to_sid(state, tcon, &tsid, GFP_KERNEL);
tcon             1152 security/selinux/selinuxfs.c 	kfree(tcon);