Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/macintosh/
Dadb-iop.c103 struct adb_iopmsg *amsg = (struct adb_iopmsg *)msg->message; in adb_iop_listen() local
104 u8 addr = (amsg->cmd & ADDR_MASK) >> 4; in adb_iop_listen()
105 u8 op = amsg->cmd & OP_MASK; in adb_iop_listen()
117 switch (amsg->flags & (ADB_IOP_EXPLICIT | in adb_iop_listen()
126 req->reply_len = amsg->count + 1; in adb_iop_listen()
127 memcpy(req->reply, &amsg->cmd, req->reply_len); in adb_iop_listen()
135 amsg->cmd == ADB_READREG(addr, 0)) in adb_iop_listen()
136 adb_input(&amsg->cmd, amsg->count + 1, 1); in adb_iop_listen()
160 struct adb_iopmsg amsg; in adb_iop_start() local
170 amsg.flags = ADB_IOP_EXPLICIT; in adb_iop_start()
[all …]
/linux-5.19.10/drivers/i2c/busses/
Di2c-viperboard.c96 struct vprbrd_i2c_addr_msg *amsg) in vprbrd_i2c_addr() argument
101 usb_sndbulkpipe(usb_dev, VPRBRD_EP_OUT), amsg, in vprbrd_i2c_addr()
272 struct vprbrd_i2c_addr_msg *amsg = in vprbrd_i2c_xfer() local
290 amsg->cmd = VPRBRD_I2C_CMD_ADDR; in vprbrd_i2c_xfer()
291 amsg->unknown2 = 0x00; in vprbrd_i2c_xfer()
292 amsg->unknown3 = 0x00; in vprbrd_i2c_xfer()
293 amsg->addr = pmsg->addr; in vprbrd_i2c_xfer()
294 amsg->unknown1 = 0x01; in vprbrd_i2c_xfer()
295 amsg->len = cpu_to_le16(pmsg->len); in vprbrd_i2c_xfer()
297 ret = vprbrd_i2c_addr(vb->usb_dev, amsg); in vprbrd_i2c_xfer()
[all …]
/linux-5.19.10/drivers/hwmon/
Dxgene-hwmon.c257 u32 *amsg) in xgene_hwmon_get_notification_msg() argument
270 amsg[0] = msg[0]; in xgene_hwmon_get_notification_msg()
271 amsg[1] = msg[1]; in xgene_hwmon_get_notification_msg()
272 amsg[2] = msg[2]; in xgene_hwmon_get_notification_msg()
418 struct slimpro_resp_msg *amsg) in xgene_hwmon_tpc_alarm() argument
420 ctx->temp_critical_alarm = !!amsg->param2; in xgene_hwmon_tpc_alarm()
427 struct slimpro_resp_msg *amsg) in xgene_hwmon_process_pwrmsg() argument
429 if ((MSG_SUBTYPE(amsg->msg) == PWRMGMT_SUBTYPE_TPC) && in xgene_hwmon_process_pwrmsg()
430 (TPC_CMD(amsg->msg) == TPC_ALARM)) in xgene_hwmon_process_pwrmsg()
431 xgene_hwmon_tpc_alarm(ctx, amsg); in xgene_hwmon_process_pwrmsg()
[all …]