Lines Matching refs:gamsg
94 struct vprbrd_gpioa_msg *gamsg = (struct vprbrd_gpioa_msg *)vb->buf; in vprbrd_gpioa_get() local
102 gamsg->cmd = VPRBRD_GPIOA_CMD_GETIN; in vprbrd_gpioa_get()
103 gamsg->clk = 0x00; in vprbrd_gpioa_get()
104 gamsg->offset = offset; in vprbrd_gpioa_get()
105 gamsg->t1 = 0x00; in vprbrd_gpioa_get()
106 gamsg->t2 = 0x00; in vprbrd_gpioa_get()
107 gamsg->invert = 0x00; in vprbrd_gpioa_get()
108 gamsg->pwmlevel = 0x00; in vprbrd_gpioa_get()
109 gamsg->outval = 0x00; in vprbrd_gpioa_get()
110 gamsg->risefall = 0x00; in vprbrd_gpioa_get()
111 gamsg->answer = 0x00; in vprbrd_gpioa_get()
112 gamsg->__fill = 0x00; in vprbrd_gpioa_get()
116 0x0000, gamsg, sizeof(struct vprbrd_gpioa_msg), in vprbrd_gpioa_get()
123 0x0000, gamsg, sizeof(struct vprbrd_gpioa_msg), in vprbrd_gpioa_get()
125 answer = gamsg->answer & 0x01; in vprbrd_gpioa_get()
145 struct vprbrd_gpioa_msg *gamsg = (struct vprbrd_gpioa_msg *)vb->buf; in vprbrd_gpioa_set() local
155 gamsg->cmd = VPRBRD_GPIOA_CMD_SETOUT; in vprbrd_gpioa_set()
156 gamsg->clk = 0x00; in vprbrd_gpioa_set()
157 gamsg->offset = offset; in vprbrd_gpioa_set()
158 gamsg->t1 = 0x00; in vprbrd_gpioa_set()
159 gamsg->t2 = 0x00; in vprbrd_gpioa_set()
160 gamsg->invert = 0x00; in vprbrd_gpioa_set()
161 gamsg->pwmlevel = 0x00; in vprbrd_gpioa_set()
162 gamsg->outval = value; in vprbrd_gpioa_set()
163 gamsg->risefall = 0x00; in vprbrd_gpioa_set()
164 gamsg->answer = 0x00; in vprbrd_gpioa_set()
165 gamsg->__fill = 0x00; in vprbrd_gpioa_set()
170 0x0000, 0x0000, gamsg, in vprbrd_gpioa_set()
187 struct vprbrd_gpioa_msg *gamsg = (struct vprbrd_gpioa_msg *)vb->buf; in vprbrd_gpioa_direction_input() local
193 gamsg->cmd = VPRBRD_GPIOA_CMD_SETIN; in vprbrd_gpioa_direction_input()
194 gamsg->clk = gpioa_clk; in vprbrd_gpioa_direction_input()
195 gamsg->offset = offset; in vprbrd_gpioa_direction_input()
196 gamsg->t1 = 0x00; in vprbrd_gpioa_direction_input()
197 gamsg->t2 = 0x00; in vprbrd_gpioa_direction_input()
198 gamsg->invert = 0x00; in vprbrd_gpioa_direction_input()
199 gamsg->pwmlevel = 0x00; in vprbrd_gpioa_direction_input()
200 gamsg->outval = 0x00; in vprbrd_gpioa_direction_input()
201 gamsg->risefall = 0x00; in vprbrd_gpioa_direction_input()
202 gamsg->answer = 0x00; in vprbrd_gpioa_direction_input()
203 gamsg->__fill = 0x00; in vprbrd_gpioa_direction_input()
207 0x0000, gamsg, sizeof(struct vprbrd_gpioa_msg), in vprbrd_gpioa_direction_input()
225 struct vprbrd_gpioa_msg *gamsg = (struct vprbrd_gpioa_msg *)vb->buf; in vprbrd_gpioa_direction_output() local
235 gamsg->cmd = VPRBRD_GPIOA_CMD_SETOUT; in vprbrd_gpioa_direction_output()
236 gamsg->clk = 0x00; in vprbrd_gpioa_direction_output()
237 gamsg->offset = offset; in vprbrd_gpioa_direction_output()
238 gamsg->t1 = 0x00; in vprbrd_gpioa_direction_output()
239 gamsg->t2 = 0x00; in vprbrd_gpioa_direction_output()
240 gamsg->invert = 0x00; in vprbrd_gpioa_direction_output()
241 gamsg->pwmlevel = 0x00; in vprbrd_gpioa_direction_output()
242 gamsg->outval = value; in vprbrd_gpioa_direction_output()
243 gamsg->risefall = 0x00; in vprbrd_gpioa_direction_output()
244 gamsg->answer = 0x00; in vprbrd_gpioa_direction_output()
245 gamsg->__fill = 0x00; in vprbrd_gpioa_direction_output()
249 0x0000, gamsg, sizeof(struct vprbrd_gpioa_msg), in vprbrd_gpioa_direction_output()