Lines Matching refs:gbmsg
257 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()
282 struct vprbrd_gpiob_msg *gbmsg = (struct vprbrd_gpiob_msg *)vb->buf; in vprbrd_gpiob_get() local
292 0x0000, gbmsg, sizeof(struct vprbrd_gpiob_msg), in vprbrd_gpiob_get()
294 val = gbmsg->val; in vprbrd_gpiob_get()
313 struct vprbrd_gpiob_msg *gbmsg = (struct vprbrd_gpiob_msg *)vb->buf; in vprbrd_gpiob_set() local
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()
330 0x0000, 0x0000, gbmsg, in vprbrd_gpiob_set()