Lines Matching defs:pin
64 struct hw_gpio *pin = FROM_HW_GPIO_PIN(ptr);
66 store_registers(pin);
68 ptr->opened = (dal_hw_gpio_config_mode(pin, mode) == GPIO_RESULT_OK);
125 struct hw_gpio *pin = FROM_HW_GPIO_PIN(ptr);
127 return dal_hw_gpio_config_mode(pin, mode);
133 struct hw_gpio *pin = FROM_HW_GPIO_PIN(ptr);
135 restore_registers(pin);
149 /* turn off output enable, act as input pin;
150 * program the pin as GPIO, mask out signal driven by HW */
155 /* turn on output enable, act as output pin;
156 * program the pin as GPIO, mask out signal driven by HW */
167 /* program the pin as tri-state, pin is driven by HW */
180 struct hw_gpio *pin,
185 pin->base.ctx = ctx;
186 pin->base.id = id;
187 pin->base.en = en;
188 pin->base.mode = GPIO_MODE_UNKNOWN;
189 pin->base.opened = false;
191 pin->store.mask = 0;
192 pin->store.a = 0;
193 pin->store.en = 0;
194 pin->store.mux = 0;
196 pin->mux_supported = false;
200 struct hw_gpio *pin)
202 ASSERT(!pin->base.opened);