Lines Matching refs:padconf
100 * A pointer to the matching padconf or NULL if the ball wasn't found.
105 const struct ti_pinmux_padconf *padconf;
107 padconf = ti_pinmux_dev->padconf;
108 while (padconf->ballname != NULL) {
109 if (strcmp(ballname, padconf->ballname) == 0)
110 return(padconf);
111 padconf++;
119 * @padconf: pointer to the pad structure
133 const struct ti_pinmux_padconf *padconf,
144 if ((padconf->muxmodes[mode] != NULL) &&
145 (strcmp(padconf->muxmodes[mode], muxmode) == 0)) {
163 ti_pinmux_write_2(sc, padconf->reg_off, reg_val);
185 const struct ti_pinmux_padconf *padconf;
191 padconf = ti_pinmux_padconf_from_name(padname);
192 if (padconf == NULL)
195 return (ti_pinmux_padconf_set_internal(ti_pinmux_sc, padconf, muxmode, state));
216 const struct ti_pinmux_padconf *padconf;
223 padconf = ti_pinmux_padconf_from_name(padname);
224 if (padconf == NULL)
228 reg_val = ti_pinmux_read_2(ti_pinmux_sc, padconf->reg_off);
236 *muxmode = padconf->muxmodes[(reg_val & ti_pinmux_dev->padconf_muxmode_mask)];
258 const struct ti_pinmux_padconf *padconf;
264 /* find the gpio pin in the padconf array */
265 padconf = ti_pinmux_dev->padconf;
266 while (padconf->ballname != NULL) {
267 if (padconf->gpio_pin == gpio)
269 padconf++;
271 if (padconf->ballname == NULL)
278 reg_val |= (uint16_t)(padconf->gpio_mode & ti_pinmux_dev->padconf_muxmode_mask);
281 ti_pinmux_write_2(ti_pinmux_sc, padconf->reg_off, reg_val);
303 const struct ti_pinmux_padconf *padconf;
309 /* find the gpio pin in the padconf array */
310 padconf = ti_pinmux_dev->padconf;
311 while (padconf->ballname != NULL) {
312 if (padconf->gpio_pin == gpio)
314 padconf++;
316 if (padconf->ballname == NULL)
320 reg_val = ti_pinmux_read_2(ti_pinmux_sc, padconf->reg_off);
323 if ((reg_val & ti_pinmux_dev->padconf_muxmode_mask) != padconf->gpio_mode)