Searched refs:amsg (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/macintosh/
H A Dadb-iop.c104 struct adb_iopmsg *amsg = (struct adb_iopmsg *) msg->message; adb_iop_listen() local
117 (uint) amsg->count + 2, (uint) amsg->flags, (uint) amsg->cmd); adb_iop_listen()
118 for (i = 0; i < amsg->count; i++) adb_iop_listen()
119 printk(" %02X", (uint) amsg->data[i]); adb_iop_listen()
129 if (amsg->flags & ADB_IOP_TIMEOUT) { adb_iop_listen()
141 (amsg->flags & ADB_IOP_EXPLICIT)) { adb_iop_listen()
142 req->reply_len = amsg->count + 1; adb_iop_listen()
143 memcpy(req->reply, &amsg->cmd, req->reply_len); adb_iop_listen()
145 adb_input(&amsg->cmd, amsg->count + 1, adb_iop_listen()
146 amsg->flags & ADB_IOP_AUTOPOLL); adb_iop_listen()
165 struct adb_iopmsg amsg; adb_iop_start() local
186 amsg.flags = ADB_IOP_EXPLICIT; adb_iop_start()
187 amsg.count = req->nbytes - 2; adb_iop_start()
189 /* amsg.data immediately follows amsg.cmd, effectively making */ adb_iop_start()
190 /* amsg.cmd a pointer to the beginning of a full ADB packet. */ adb_iop_start()
191 memcpy(&amsg.cmd, req->data + 1, req->nbytes - 1); adb_iop_start()
201 sizeof(amsg), (__u8 *) &amsg, adb_iop_complete); adb_iop_start()
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-viperboard.c101 struct vprbrd_i2c_addr_msg *amsg) vprbrd_i2c_addr()
106 usb_sndbulkpipe(usb_dev, VPRBRD_EP_OUT), amsg, vprbrd_i2c_addr()
277 struct vprbrd_i2c_addr_msg *amsg = vprbrd_i2c_xfer() local
295 amsg->cmd = VPRBRD_I2C_CMD_ADDR; vprbrd_i2c_xfer()
296 amsg->unknown2 = 0x00; vprbrd_i2c_xfer()
297 amsg->unknown3 = 0x00; vprbrd_i2c_xfer()
298 amsg->addr = pmsg->addr; vprbrd_i2c_xfer()
299 amsg->unknown1 = 0x01; vprbrd_i2c_xfer()
300 amsg->len = cpu_to_le16(pmsg->len); vprbrd_i2c_xfer()
302 ret = vprbrd_i2c_addr(vb->usb_dev, amsg); vprbrd_i2c_xfer()
320 amsg->cmd = VPRBRD_I2C_CMD_ADDR; vprbrd_i2c_xfer()
321 amsg->unknown2 = 0x00; vprbrd_i2c_xfer()
322 amsg->unknown3 = 0x00; vprbrd_i2c_xfer()
323 amsg->addr = pmsg->addr; vprbrd_i2c_xfer()
324 amsg->unknown1 = 0x00; vprbrd_i2c_xfer()
325 amsg->len = cpu_to_le16(pmsg->len); vprbrd_i2c_xfer()
327 ret = vprbrd_i2c_addr(vb->usb_dev, amsg); vprbrd_i2c_xfer()
100 vprbrd_i2c_addr(struct usb_device *usb_dev, struct vprbrd_i2c_addr_msg *amsg) vprbrd_i2c_addr() argument

Completed in 122 milliseconds