Lines Matching refs:name
55 static struct device_node *get_gpio(char *name, in get_gpio() argument
67 np = of_find_node_by_name(NULL, name); in get_gpio()
80 if (strcmp(audio_gpio, name) == 0) in get_gpio()
127 #define SWITCH_GPIO(name, v, on) \ argument
129 (name##_gpio_activestate==0?4:5): \
130 (name##_gpio_activestate==0?5:4)))
132 #define FTR_GPIO(name, bit) \ argument
133 static void ftr_gpio_set_##name(struct gpio_runtime *rt, int on)\
139 if (name##_mute_gpio < 0) \
143 name##_mute_gpio, \
147 v = SWITCH_GPIO(name##_mute, v, !on); \
150 name##_mute_gpio, v); \
155 static int ftr_gpio_get_##name(struct gpio_runtime *rt) \
318 char *name; in ftr_set_notify() local
324 name = "headphone-detect"; in ftr_set_notify()
329 name = "linein-detect"; in ftr_set_notify()
334 name = "lineout-detect"; in ftr_set_notify()
363 err = request_irq(irq, ftr_handle_notify_irq, 0, name, notif); in ftr_set_notify()