Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpio/
H A Dgpio-viperboard.c257 struct vprbrd_gpiob_msg *gbmsg = (struct vprbrd_gpiob_msg *)vb->buf; in vprbrd_gpiob_setdir() local
260 gbmsg->cmd = VPRBRD_GPIOB_CMD_SETDIR; in vprbrd_gpiob_setdir()
261 gbmsg->val = cpu_to_be16(dir << offset); in vprbrd_gpiob_setdir()
262 gbmsg->mask = cpu_to_be16(0x0001 << offset); in vprbrd_gpiob_setdir()
266 0x0000, gbmsg, sizeof(struct vprbrd_gpiob_msg), in vprbrd_gpiob_setdir()
292 0x0000, gbmsg, sizeof(struct vprbrd_gpiob_msg), in vprbrd_gpiob_get()
294 val = gbmsg->val; in vprbrd_gpiob_get()
323 gbmsg->cmd = VPRBRD_GPIOB_CMD_SETVAL; in vprbrd_gpiob_set()
324 gbmsg->val = cpu_to_be16(value << offset); in vprbrd_gpiob_set()
325 gbmsg->mask = cpu_to_be16(0x0001 << offset); in vprbrd_gpiob_set()
[all …]