Lines Matching refs:pout
78 struct out_pin *pout; in brcmstb_usb_pinmap_ovr_isr() local
84 pout = pdata->out_pins; in brcmstb_usb_pinmap_ovr_isr()
87 if (val & pout->changed_mask) { in brcmstb_usb_pinmap_ovr_isr()
88 pinmap_set(pdata->regs, pout->clr_changed_mask); in brcmstb_usb_pinmap_ovr_isr()
89 pinmap_unset(pdata->regs, pout->clr_changed_mask); in brcmstb_usb_pinmap_ovr_isr()
90 bit = val & pout->value_mask; in brcmstb_usb_pinmap_ovr_isr()
91 gpiod_set_value(pout->gpiod, bit ? 1 : 0); in brcmstb_usb_pinmap_ovr_isr()
93 __func__, pout->name, bit ? 1 : 0); in brcmstb_usb_pinmap_ovr_isr()
133 struct out_pin *pout; in parse_pins() local
171 pout = pdata->out_pins; in parse_pins()
173 pout->gpiod = devm_gpiod_get_index(dev, "out", x, in parse_pins()
175 if (IS_ERR(pout->gpiod)) { in parse_pins()
177 return PTR_ERR(pout->gpiod); in parse_pins()
180 &pout->name); in parse_pins()
183 pout->name); in parse_pins()
187 &pout->enable_mask); in parse_pins()
190 pout->name); in parse_pins()
194 &pout->value_mask); in parse_pins()
197 pout->name); in parse_pins()
201 &pout->changed_mask); in parse_pins()
204 pout->name); in parse_pins()
208 &pout->clr_changed_mask); in parse_pins()
211 pout->name); in parse_pins()
214 pout++; in parse_pins()
221 struct out_pin *pout; in sync_all_pins() local
230 pout = pdata->out_pins; in sync_all_pins()
232 pinmap_set(pdata->regs, pout->enable_mask); in sync_all_pins()
233 pinmap_set(pdata->regs, pout->clr_changed_mask); in sync_all_pins()
234 pinmap_unset(pdata->regs, pout->clr_changed_mask); in sync_all_pins()
235 val = readl(pdata->regs) & pout->value_mask; in sync_all_pins()
236 gpiod_set_value(pout->gpiod, val ? 1 : 0); in sync_all_pins()
237 pout++; in sync_all_pins()