Home
last modified time | relevance | path

Searched refs:ljca_gpio (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/gpio/
H A Dgpio-ljca.c75 static int gpio_config(struct ljca_gpio_dev *ljca_gpio, u8 gpio_id, u8 config) in gpio_config() argument
77 struct gpio_packet *packet = (struct gpio_packet *)ljca_gpio->obuf; in gpio_config()
80 mutex_lock(&ljca_gpio->trans_lock); in gpio_config()
82 packet->item[0].value = config | ljca_gpio->connect_mode[gpio_id]; in gpio_config()
85 ret = ljca_transfer(ljca_gpio->gpio_info->ljca, LJCA_GPIO_CONFIG, packet, in gpio_config()
87 mutex_unlock(&ljca_gpio->trans_lock); in gpio_config()
91 static int ljca_gpio_read(struct ljca_gpio_dev *ljca_gpio, u8 gpio_id) in ljca_gpio_read() argument
93 struct gpio_packet *packet = (struct gpio_packet *)ljca_gpio->obuf; in ljca_gpio_read()
94 struct gpio_packet *ack_packet = (struct gpio_packet *)ljca_gpio->ibuf; in ljca_gpio_read()
98 mutex_lock(&ljca_gpio->trans_lock); in ljca_gpio_read()
[all …]