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()
140 struct men_z127_gpio *men_z127_gpio; in men_z127_probe() local
144 men_z127_gpio = devm_kzalloc(dev, sizeof(struct men_z127_gpio), in men_z127_probe()
146 if (!men_z127_gpio) in men_z127_probe()
149 men_z127_gpio->mem = mcb_request_mem(mdev, dev_name(dev)); in men_z127_probe()
150 if (IS_ERR(men_z127_gpio->mem)) in men_z127_probe()
151 return dev_err_probe(dev, PTR_ERR(men_z127_gpio->mem), in men_z127_probe()
155 men_z127_gpio->mem); in men_z127_probe()
159 men_z127_gpio->reg_base = devm_ioremap(dev, men_z127_gpio->mem->start, in men_z127_probe()
160 resource_size(men_z127_gpio->mem)); in men_z127_probe()
161 if (men_z127_gpio->reg_base == NULL) in men_z127_probe()
164 mcb_set_drvdata(mdev, men_z127_gpio); in men_z127_probe()
166 ret = bgpio_init(&men_z127_gpio->gc, &mdev->dev, 4, in men_z127_probe()
167 men_z127_gpio->reg_base + MEN_Z127_PSR, in men_z127_probe()
168 men_z127_gpio->reg_base + MEN_Z127_CTRL, in men_z127_probe()
170 men_z127_gpio->reg_base + MEN_Z127_GPIODR, in men_z127_probe()
175 men_z127_gpio->gc.set_config = men_z127_set_config; in men_z127_probe()
177 ret = devm_gpiochip_add_data(dev, &men_z127_gpio->gc, men_z127_gpio); in men_z127_probe()