• Home
  • Raw
  • Download

Lines Matching refs:men_z127_gpio

35 struct men_z127_gpio {  struct
44 struct men_z127_gpio *priv = gpiochip_get_data(gc); in men_z127_debounce() argument
94 struct men_z127_gpio *priv = gpiochip_get_data(gc); in men_z127_set_single_ended()
119 struct men_z127_gpio *men_z127_gpio; in men_z127_probe() local
123 men_z127_gpio = devm_kzalloc(dev, sizeof(struct men_z127_gpio), in men_z127_probe()
125 if (!men_z127_gpio) in men_z127_probe()
128 men_z127_gpio->mem = mcb_request_mem(mdev, dev_name(dev)); in men_z127_probe()
129 if (IS_ERR(men_z127_gpio->mem)) { in men_z127_probe()
131 return PTR_ERR(men_z127_gpio->mem); in men_z127_probe()
134 men_z127_gpio->reg_base = ioremap(men_z127_gpio->mem->start, in men_z127_probe()
135 resource_size(men_z127_gpio->mem)); in men_z127_probe()
136 if (men_z127_gpio->reg_base == NULL) { in men_z127_probe()
141 mcb_set_drvdata(mdev, men_z127_gpio); in men_z127_probe()
143 ret = bgpio_init(&men_z127_gpio->gc, &mdev->dev, 4, in men_z127_probe()
144 men_z127_gpio->reg_base + MEN_Z127_PSR, in men_z127_probe()
145 men_z127_gpio->reg_base + MEN_Z127_CTRL, in men_z127_probe()
147 men_z127_gpio->reg_base + MEN_Z127_GPIODR, in men_z127_probe()
152 men_z127_gpio->gc.set_debounce = men_z127_debounce; in men_z127_probe()
153 men_z127_gpio->gc.set_single_ended = men_z127_set_single_ended; in men_z127_probe()
155 ret = gpiochip_add_data(&men_z127_gpio->gc, men_z127_gpio); in men_z127_probe()
166 iounmap(men_z127_gpio->reg_base); in men_z127_probe()
168 mcb_release_mem(men_z127_gpio->mem); in men_z127_probe()
174 struct men_z127_gpio *men_z127_gpio = mcb_get_drvdata(mdev); in men_z127_remove() local
176 gpiochip_remove(&men_z127_gpio->gc); in men_z127_remove()
177 iounmap(men_z127_gpio->reg_base); in men_z127_remove()
178 mcb_release_mem(men_z127_gpio->mem); in men_z127_remove()