Lines Matching refs:amsg
103 struct adb_iopmsg *amsg = (struct adb_iopmsg *)msg->message;
104 u8 addr = (amsg->cmd & ADDR_MASK) >> 4;
105 u8 op = amsg->cmd & OP_MASK;
117 switch (amsg->flags & (ADB_IOP_EXPLICIT |
126 req->reply_len = amsg->count + 1;
127 memcpy(req->reply, &amsg->cmd, req->reply_len);
135 amsg->cmd == ADB_READREG(addr, 0))
136 adb_input(&amsg->cmd, amsg->count + 1, 1);
160 struct adb_iopmsg amsg;
170 amsg.flags = ADB_IOP_EXPLICIT;
171 amsg.count = req->nbytes - 2;
173 /* amsg.data immediately follows amsg.cmd, effectively making
174 * &amsg.cmd a pointer to the beginning of a full ADB packet.
176 memcpy(&amsg.cmd, req->data + 1, req->nbytes - 1);
184 iop_send_message(ADB_IOP, ADB_CHAN, req, sizeof(amsg), (__u8 *)&amsg,
251 struct adb_iopmsg *amsg = (struct adb_iopmsg *)msg->message;
253 autopoll_devs = get_unaligned_be16(amsg->data);
261 struct adb_iopmsg amsg;
267 amsg.flags = ADB_IOP_SET_AUTOPOLL | (mask ? ADB_IOP_AUTOPOLL : 0);
268 amsg.count = 2;
269 amsg.cmd = 0;
270 put_unaligned_be16(mask, amsg.data);
272 iop_send_message(ADB_IOP, ADB_CHAN, NULL, sizeof(amsg), (__u8 *)&amsg,