fsel
*loc = fsel(val, addend);
*loc = fsel(val, addend);
*loc = fsel(val, addend);
*loc = fsel(val, addend);
*loc = fsel(val, addend);
*loc = fsel(val, addend);
FPD_THREE_IN(fsel)
case FSEL: func = fsel; type = ABC; break;
FLOATFUNC(fsel);
enum cmn_filter_select fsel, u8 occupid)
if (fsel == SEL_NONE)
if (!dn->occupid[fsel].count) {
dn->occupid[fsel].val = occupid;
} else if (dn->occupid[fsel].val != occupid) {
dn->occupid[fsel].count++;
return e->fsel;
enum cmn_filter_select fsel;
.fsel = _fsel, \
if (eattr->fsel > SEL_NONE)
FIELD_PREP(FSEL, data->fsel));
.fsel = FSEL_38_4_MHZ_VAL,
unsigned int fsel;
enum bcm2835_fsel fsel = bcm2835_pinctrl_fsel_get(pc, pin);
if (fsel != BCM2835_FSEL_GPIO_OUT)
enum bcm2835_fsel fsel)
if (cur == fsel)
if (cur != BCM2835_FSEL_GPIO_IN && fsel != BCM2835_FSEL_GPIO_IN) {
val |= fsel << FSEL_SHIFT(pin);
bcm2835_functions[fsel]);
enum bcm2835_fsel fsel = bcm2835_pinctrl_fsel_get(pc, offset);
if (fsel == BCM2835_FSEL_GPIO_OUT)
enum bcm2835_fsel fsel = bcm2835_pinctrl_fsel_get(pc, offset);
const char *fname = bcm2835_functions[fsel];
enum bcm2835_fsel fsel = bcm2835_pinctrl_fsel_get(pc, offset);
if (fsel == BCM2835_FSEL_GPIO_IN)
if (persist_gpio_outputs && fsel == BCM2835_FSEL_GPIO_OUT)
enum bcm2835_fsel fsel = input ?
bcm2835_pinctrl_fsel_set(pc, offset, fsel);
for (i = 1; i < fsel; i++) {
fsel = i;
fsel = func;
if (fsel >= pc->pin_funcs[pin].n_funcs + 1)
if (cur != fsel) {
val |= fsel << BIT_TO_SHIFT(bit);
pc->func_names[fsel]);
unsigned int fsel = brcmstb_pinctrl_fsel_get(pc, offset);
const char *fname = pc->func_names[fsel];
int fsel;
fsel = (val >> BIT_TO_SHIFT(bit)) & pc->pin_funcs[pin].func_mask;
func = pc->pin_funcs[pin].funcs[fsel];
func = fsel;
int fsel;
fsel = pc->pin_funcs[pin].n_funcs + 1;
if (func >= fsel) {
static int mpfs_iomux0_pinmux_set_mux(struct pinctrl_dev *pctrl_dev, unsigned int fsel,
function = &mpfs_iomux0_functions[fsel];
static int mpfs_pinctrl_set_mux(struct pinctrl_dev *pctrl_dev, unsigned int fsel,
static int pic64gx_gpio2_pinmux_set_mux(struct pinctrl_dev *pctrl_dev, unsigned int fsel,
function = &pic64gx_gpio2_functions[fsel];
static int aw9523_pmx_set_mux(struct pinctrl_dev *pctl, unsigned int fsel,
if (fsel >= ARRAY_SIZE(aw9523_pmx))
BIT(pin), (fsel ? BIT(pin) : 0));
static enum funcs rp1_get_fsel_func(unsigned int pin, unsigned int fsel)
if (fsel < RP1_FSEL_COUNT)
return rp1_gpio_pin_funcs[pin].funcs[fsel];
else if (fsel == RP1_FSEL_NONE)
u32 fsel = rp1_get_fsel(pin);
enum funcs func = rp1_get_fsel_func(offset, fsel);
rp1_func_names[fsel].name, rp1_func_names[func].name,
u32 fsel = rp1_get_fsel(pin);
if (persist_gpio_outputs && fsel == RP1_FSEL_GPIO)
int offset, fsel;
for (fsel = 0; fsel < RP1_FSEL_COUNT; fsel++) {
if (pin_funcs[fsel] == func_selector)
fsel = (int)func_selector;
if (fsel >= RP1_FSEL_COUNT && fsel != RP1_FSEL_NONE)
rp1_set_fsel(pin, fsel);
u8 fsel;
u32 oeover, fsel;
regmap_field_read(pin->gpio[RP1_GPIO_CTRL_FUNCSEL], &fsel);
if (oeover != RP1_OEOVER_PERI || fsel >= RP1_FSEL_COUNT)
fsel = RP1_FSEL_NONE;
return fsel;
static void rp1_set_fsel(struct rp1_pin_info *pin, u32 fsel)
if (fsel >= RP1_FSEL_COUNT)
fsel = RP1_FSEL_NONE_HW;
if (fsel == RP1_FSEL_NONE) {
regmap_field_write(pin->gpio[RP1_GPIO_CTRL_FUNCSEL], fsel);
u32 fsel;
fsel = rp1_get_fsel(pin);
if (fsel != RP1_FSEL_GPIO)
int rows, *pins, found = 0, res = -ENOMEM, i, fsel, gsel;
fsel = pcs_add_function(pcs, &function, np->name, vals, found,
if (fsel < 0) {
res = fsel;
pinmux_generic_remove_function(pcs->pctl, fsel);
int rows, *pins, found = 0, res = -ENOMEM, i, fsel;
fsel = pcs_add_function(pcs, &function, np->name, vals, found,
if (fsel < 0) {
res = fsel;
pinmux_generic_remove_function(pcs->pctl, fsel);
unsigned int fsel, unsigned int gsel)
const struct function_desc *func = pinmux_generic_get_function(pctldev, fsel);
int fsel, gsel, ret;
fsel = ret;
ret = pmxops->get_function_groups(pctldev, fsel, &groups, &num_groups);
dev_err(pctldev->dev, "no groups for function %d (%s)", fsel, fname);
ret = pmxops->set_mux(pctldev, fsel, gsel);
fsel = pinmux_generic_add_function(pctldev, grpname, fngrps, 1,
if (fsel < 0) {
ret = fsel;
pinmux_generic_remove_function(pctldev, fsel);
int gsel, fsel;
int i, ret, npins, gsel, fsel;
fsel = pinmux_generic_add_function(pctldev, np->name, pin_fn, 1,
if (fsel < 0) {
ret = fsel;
pinmux_generic_remove_function(pctldev, fsel);
int ret, gsel, fsel;
fsel = pinmux_generic_add_function(pctldev, name, pin_fn, 1, psel_val);
if (fsel < 0) {
ret = fsel;
int ret, gsel, fsel;
fsel = pinmux_generic_add_function(pctldev, name, pin_fn, 1, psel_val);
if (fsel < 0) {
ret = fsel;
int ret, gsel, fsel;
fsel = pinmux_generic_add_function(pctldev, name, pin_fn, 1, psel_val);
if (fsel < 0) {
ret = fsel;
unsigned int fsel, unsigned int gsel)
unsigned int fsel, unsigned int gsel);
unsigned int fsel, unsigned int gsel)
unsigned int fsel, unsigned int gsel)
unsigned int fsel, unsigned int gsel)