Lines Matching defs:gpio
3 * mxl111sf-gpio.c - driver for the MaxLinear MXL111SF
8 #include "mxl111sf-gpio.h"
166 int gpio, int direction, int val)
169 .pin = gpio,
174 mxl_debug("(%d, %d, %d)", gpio, direction, val);
548 static int mxl111sf_hw_set_gpio(struct mxl111sf_state *state, int gpio, int val)
550 return mxl111sf_hw_do_set_gpio(state, gpio, MXL_GPIO_DIR_OUTPUT, val);
570 static int pca9534_set_gpio(struct mxl111sf_state *state, int gpio, int val)
581 mxl_debug("(%d, %d)", gpio, val);
594 w[1] &= ~(1 << gpio);
597 w[1] |= ((val ? 1 : 0) << gpio);
627 int mxl111sf_set_gpio(struct mxl111sf_state *state, int gpio, int val)
629 mxl_debug("(%d, %d)", gpio, val);
637 return pca9534_set_gpio(state, gpio, val);
639 return mxl111sf_hw_set_gpio(state, gpio, val);
681 mxl_debug("using hardware gpio");