Lines Matching refs:men_z127_gpio
32 struct men_z127_gpio { struct
41 struct men_z127_gpio *priv = gpiochip_get_data(gc); in men_z127_debounce() argument
91 struct men_z127_gpio *priv = gpiochip_get_data(gc); in men_z127_set_single_ended()
133 struct men_z127_gpio *men_z127_gpio; in men_z127_probe() local
137 men_z127_gpio = devm_kzalloc(dev, sizeof(struct men_z127_gpio), in men_z127_probe()
139 if (!men_z127_gpio) in men_z127_probe()
142 men_z127_gpio->mem = mcb_request_mem(mdev, dev_name(dev)); in men_z127_probe()
143 if (IS_ERR(men_z127_gpio->mem)) { in men_z127_probe()
145 return PTR_ERR(men_z127_gpio->mem); in men_z127_probe()
148 men_z127_gpio->reg_base = ioremap(men_z127_gpio->mem->start, in men_z127_probe()
149 resource_size(men_z127_gpio->mem)); in men_z127_probe()
150 if (men_z127_gpio->reg_base == NULL) { in men_z127_probe()
155 mcb_set_drvdata(mdev, men_z127_gpio); in men_z127_probe()
157 ret = bgpio_init(&men_z127_gpio->gc, &mdev->dev, 4, in men_z127_probe()
158 men_z127_gpio->reg_base + MEN_Z127_PSR, in men_z127_probe()
159 men_z127_gpio->reg_base + MEN_Z127_CTRL, in men_z127_probe()
161 men_z127_gpio->reg_base + MEN_Z127_GPIODR, in men_z127_probe()
166 men_z127_gpio->gc.set_config = men_z127_set_config; in men_z127_probe()
168 ret = gpiochip_add_data(&men_z127_gpio->gc, men_z127_gpio); in men_z127_probe()
179 iounmap(men_z127_gpio->reg_base); in men_z127_probe()
181 mcb_release_mem(men_z127_gpio->mem); in men_z127_probe()
187 struct men_z127_gpio *men_z127_gpio = mcb_get_drvdata(mdev); in men_z127_remove() local
189 gpiochip_remove(&men_z127_gpio->gc); in men_z127_remove()
190 iounmap(men_z127_gpio->reg_base); in men_z127_remove()
191 mcb_release_mem(men_z127_gpio->mem); in men_z127_remove()