Lines Matching refs:lane

299 	const struct tegra_xusb_padctl_lane *lane;  in tegra_xusb_padctl_pinmux_set()  local
303 lane = &padctl->soc->lanes[group]; in tegra_xusb_padctl_pinmux_set()
305 for (i = 0; i < lane->num_funcs; i++) in tegra_xusb_padctl_pinmux_set()
306 if (lane->funcs[i] == function) in tegra_xusb_padctl_pinmux_set()
309 if (i >= lane->num_funcs) in tegra_xusb_padctl_pinmux_set()
312 value = padctl_readl(padctl, lane->offset); in tegra_xusb_padctl_pinmux_set()
313 value &= ~(lane->mask << lane->shift); in tegra_xusb_padctl_pinmux_set()
314 value |= i << lane->shift; in tegra_xusb_padctl_pinmux_set()
315 padctl_writel(padctl, value, lane->offset); in tegra_xusb_padctl_pinmux_set()
332 const struct tegra_xusb_padctl_lane *lane; in tegra_xusb_padctl_pinconf_group_get() local
337 lane = &padctl->soc->lanes[group]; in tegra_xusb_padctl_pinconf_group_get()
342 if (lane->iddq == 0) in tegra_xusb_padctl_pinconf_group_get()
345 value = padctl_readl(padctl, lane->offset); in tegra_xusb_padctl_pinconf_group_get()
347 if (value & BIT(lane->iddq)) in tegra_xusb_padctl_pinconf_group_get()
370 const struct tegra_xusb_padctl_lane *lane; in tegra_xusb_padctl_pinconf_group_set() local
376 lane = &padctl->soc->lanes[group]; in tegra_xusb_padctl_pinconf_group_set()
385 if (lane->iddq == 0) in tegra_xusb_padctl_pinconf_group_set()
388 regval = padctl_readl(padctl, lane->offset); in tegra_xusb_padctl_pinconf_group_set()
391 regval &= ~BIT(lane->iddq); in tegra_xusb_padctl_pinconf_group_set()
393 regval |= BIT(lane->iddq); in tegra_xusb_padctl_pinconf_group_set()
395 padctl_writel(padctl, regval, lane->offset); in tegra_xusb_padctl_pinconf_group_set()