Searched refs:rc5t583_gpio (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/gpio/
H A Dgpio-rc5t583.c32 struct rc5t583_gpio { struct
37 static inline struct rc5t583_gpio *to_rc5t583_gpio(struct gpio_chip *chip) to_rc5t583_gpio()
39 return container_of(chip, struct rc5t583_gpio, gpio_chip); to_rc5t583_gpio()
44 struct rc5t583_gpio *rc5t583_gpio = to_rc5t583_gpio(gc); rc5t583_gpio_get() local
45 struct device *parent = rc5t583_gpio->rc5t583->dev; rc5t583_gpio_get()
58 struct rc5t583_gpio *rc5t583_gpio = to_rc5t583_gpio(gc); rc5t583_gpio_set() local
59 struct device *parent = rc5t583_gpio->rc5t583->dev; rc5t583_gpio_set()
68 struct rc5t583_gpio *rc5t583_gpio = to_rc5t583_gpio(gc); rc5t583_gpio_dir_input() local
69 struct device *parent = rc5t583_gpio->rc5t583->dev; rc5t583_gpio_dir_input()
83 struct rc5t583_gpio *rc5t583_gpio = to_rc5t583_gpio(gc); rc5t583_gpio_dir_output() local
84 struct device *parent = rc5t583_gpio->rc5t583->dev; rc5t583_gpio_dir_output()
98 struct rc5t583_gpio *rc5t583_gpio = to_rc5t583_gpio(gc); rc5t583_gpio_to_irq() local
101 return rc5t583_gpio->rc5t583->irq_base + rc5t583_gpio_to_irq()
108 struct rc5t583_gpio *rc5t583_gpio = to_rc5t583_gpio(gc); rc5t583_gpio_free() local
109 struct device *parent = rc5t583_gpio->rc5t583->dev; rc5t583_gpio_free()
118 struct rc5t583_gpio *rc5t583_gpio; rc5t583_gpio_probe() local
120 rc5t583_gpio = devm_kzalloc(&pdev->dev, sizeof(*rc5t583_gpio), rc5t583_gpio_probe()
122 if (!rc5t583_gpio) rc5t583_gpio_probe()
125 rc5t583_gpio->gpio_chip.label = "gpio-rc5t583", rc5t583_gpio_probe()
126 rc5t583_gpio->gpio_chip.owner = THIS_MODULE, rc5t583_gpio_probe()
127 rc5t583_gpio->gpio_chip.free = rc5t583_gpio_free, rc5t583_gpio_probe()
128 rc5t583_gpio->gpio_chip.direction_input = rc5t583_gpio_dir_input, rc5t583_gpio_probe()
129 rc5t583_gpio->gpio_chip.direction_output = rc5t583_gpio_dir_output, rc5t583_gpio_probe()
130 rc5t583_gpio->gpio_chip.set = rc5t583_gpio_set, rc5t583_gpio_probe()
131 rc5t583_gpio->gpio_chip.get = rc5t583_gpio_get, rc5t583_gpio_probe()
132 rc5t583_gpio->gpio_chip.to_irq = rc5t583_gpio_to_irq, rc5t583_gpio_probe()
133 rc5t583_gpio->gpio_chip.ngpio = RC5T583_MAX_GPIO, rc5t583_gpio_probe()
134 rc5t583_gpio->gpio_chip.can_sleep = true, rc5t583_gpio_probe()
135 rc5t583_gpio->gpio_chip.dev = &pdev->dev; rc5t583_gpio_probe()
136 rc5t583_gpio->gpio_chip.base = -1; rc5t583_gpio_probe()
137 rc5t583_gpio->rc5t583 = rc5t583; rc5t583_gpio_probe()
140 rc5t583_gpio->gpio_chip.base = pdata->gpio_base; rc5t583_gpio_probe()
142 platform_set_drvdata(pdev, rc5t583_gpio); rc5t583_gpio_probe()
144 return gpiochip_add(&rc5t583_gpio->gpio_chip); rc5t583_gpio_probe()
149 struct rc5t583_gpio *rc5t583_gpio = platform_get_drvdata(pdev); rc5t583_gpio_remove() local
151 gpiochip_remove(&rc5t583_gpio->gpio_chip); rc5t583_gpio_remove()

Completed in 75 milliseconds