hw_gpio
if (hw_gpio) {
clrbits32(hw_gpio + HW_GPIO_OWNER, HW_GPIO_SHUTDOWN);
setbits32(hw_gpio + HW_GPIO_DIR(1), HW_GPIO_SHUTDOWN);
setbits32(hw_gpio + HW_GPIO_OUT(1), HW_GPIO_SHUTDOWN);
static void __iomem *hw_gpio;
hw_gpio = wii_ioremap_hw_regs("hw_gpio", HW_GPIO_COMPATIBLE);
if (hw_gpio) {
clrbits32(hw_gpio + HW_GPIO_OUT(0),
struct hw_gpio *hw_data;
struct hw_gpio *hw_clock;
if (hw_gpio->base.en <= GPIO_DDC_LINE_DDC_VGA) {
if (hw_gpio->base.en <= GPIO_DDC_LINE_DDC_VGA) {
if (hw_gpio->base.en <= GPIO_DDC_LINE_DDC_VGA) {
struct hw_gpio *hw_gpio = NULL;
hw_gpio = &ddc->base;
if (hw_gpio == NULL) {
if (hw_gpio->base.en != GPIO_DDC_LINE_VIP_PAD) {
if (hw_gpio->base.en == GPIO_DDC_LINE_DDC_VGA) {
struct hw_gpio base;
#define HW_DDC_FROM_BASE(hw_gpio) \
container_of((HW_GPIO_FROM_BASE(hw_gpio)), struct hw_ddc, base)
struct hw_gpio base;
#define HW_GENERIC_FROM_BASE(hw_gpio) \
container_of((HW_GPIO_FROM_BASE(hw_gpio)), struct hw_generic, base)
struct hw_gpio *pin = FROM_HW_GPIO_PIN(ptr);
struct hw_gpio *pin = FROM_HW_GPIO_PIN(ptr);
struct hw_gpio *gpio,
struct hw_gpio *pin,
struct hw_gpio *pin)
struct hw_gpio *gpio)
struct hw_gpio *gpio)
struct hw_gpio *pin = FROM_HW_GPIO_PIN(ptr);
const struct hw_gpio *gpio = FROM_HW_GPIO_PIN(ptr);
struct hw_gpio *gpio = FROM_HW_GPIO_PIN(ptr);
container_of((hw_gpio_pin), struct hw_gpio, base)
struct hw_gpio *pin,
struct hw_gpio *pin,
struct hw_gpio *pin);
container_of((ptr), struct hw_gpio, base)
struct hw_gpio;
struct hw_gpio base;
#define HW_HPD_FROM_BASE(hw_gpio) \
container_of((HW_GPIO_FROM_BASE(hw_gpio)), struct hw_hpd, base)
unsigned int hw_gpio = bcm6358_pins[pin].number;
range = pinctrl_find_gpio_range_from_pin(pctldev, hw_gpio);
gc->direction_output(gc, hw_gpio, 0);
gc->direction_input(gc, hw_gpio);
int hw_gpio = bcm6368_pins[pin].number;
range = pinctrl_find_gpio_range_from_pin(pctldev, hw_gpio);
gc->direction_output(gc, hw_gpio, 0);
gc->direction_input(gc, hw_gpio);