Lines Matching refs:pin_desc
59 void sti_alternate_select(struct udevice *dev, struct sti_pin_desc *pin_desc) in sti_alternate_select() argument
63 int alt = pin_desc->alt; in sti_alternate_select()
64 int bank = pin_desc->bank; in sti_alternate_select()
65 int pin = pin_desc->pin; in sti_alternate_select()
93 void sti_pin_configure(struct udevice *dev, struct sti_pin_desc *pin_desc) in sti_pin_configure() argument
99 int bank = pin_desc->bank; in sti_pin_configure()
129 switch (pin_desc->dir) { in sti_pin_configure()
148 __func__, pin_desc->dir); in sti_pin_configure()
175 bit = ((bank * 8) + pin_desc->pin) % 32; in sti_pin_configure()
223 struct sti_pin_desc pin_desc; in sti_pinctrl_set_state() local
253 pin_desc.bank = trailing_strtoln(bank_name, NULL); in sti_pinctrl_set_state()
268 pin_desc.pin = cells[1]; in sti_pinctrl_set_state()
269 pin_desc.alt = cells[2]; in sti_pinctrl_set_state()
270 pin_desc.dir = cells[3]; in sti_pinctrl_set_state()
272 sti_alternate_select(dev, &pin_desc); in sti_pinctrl_set_state()
273 sti_pin_configure(dev, &pin_desc); in sti_pinctrl_set_state()