Lines Matching refs:cmd

1199 		struct svc_i3c_cmd *cmd = &xfer->cmds[i];  in svc_i3c_master_start_xfer_locked()  local
1201 ret = svc_i3c_master_xfer(master, cmd->rnw, xfer->type, in svc_i3c_master_start_xfer_locked()
1202 cmd->addr, cmd->in, cmd->out, in svc_i3c_master_start_xfer_locked()
1203 cmd->len, &cmd->actual_len, in svc_i3c_master_start_xfer_locked()
1204 cmd->continued); in svc_i3c_master_start_xfer_locked()
1206 if (cmd->xfer) in svc_i3c_master_start_xfer_locked()
1207 cmd->xfer->actual_len = cmd->actual_len; in svc_i3c_master_start_xfer_locked()
1257 const struct i3c_ccc_cmd *cmd) in svc_i3c_master_supports_ccc_cmd() argument
1260 return (cmd->ndests == 1); in svc_i3c_master_supports_ccc_cmd()
1268 struct svc_i3c_cmd *cmd; in svc_i3c_master_send_bdcast_ccc_cmd() local
1287 cmd = &xfer->cmds[0]; in svc_i3c_master_send_bdcast_ccc_cmd()
1288 cmd->addr = ccc->dests[0].addr; in svc_i3c_master_send_bdcast_ccc_cmd()
1289 cmd->rnw = ccc->rnw; in svc_i3c_master_send_bdcast_ccc_cmd()
1290 cmd->in = NULL; in svc_i3c_master_send_bdcast_ccc_cmd()
1291 cmd->out = buf; in svc_i3c_master_send_bdcast_ccc_cmd()
1292 cmd->len = xfer_len; in svc_i3c_master_send_bdcast_ccc_cmd()
1293 cmd->actual_len = 0; in svc_i3c_master_send_bdcast_ccc_cmd()
1294 cmd->continued = false; in svc_i3c_master_send_bdcast_ccc_cmd()
1315 struct svc_i3c_cmd *cmd; in svc_i3c_master_send_direct_ccc_cmd() local
1325 cmd = &xfer->cmds[0]; in svc_i3c_master_send_direct_ccc_cmd()
1326 cmd->addr = I3C_BROADCAST_ADDR; in svc_i3c_master_send_direct_ccc_cmd()
1327 cmd->rnw = 0; in svc_i3c_master_send_direct_ccc_cmd()
1328 cmd->in = NULL; in svc_i3c_master_send_direct_ccc_cmd()
1329 cmd->out = &ccc->id; in svc_i3c_master_send_direct_ccc_cmd()
1330 cmd->len = 1; in svc_i3c_master_send_direct_ccc_cmd()
1331 cmd->actual_len = 0; in svc_i3c_master_send_direct_ccc_cmd()
1332 cmd->continued = true; in svc_i3c_master_send_direct_ccc_cmd()
1335 cmd = &xfer->cmds[1]; in svc_i3c_master_send_direct_ccc_cmd()
1336 cmd->addr = ccc->dests[0].addr; in svc_i3c_master_send_direct_ccc_cmd()
1337 cmd->rnw = ccc->rnw; in svc_i3c_master_send_direct_ccc_cmd()
1338 cmd->in = ccc->rnw ? ccc->dests[0].payload.data : NULL; in svc_i3c_master_send_direct_ccc_cmd()
1339 cmd->out = ccc->rnw ? NULL : ccc->dests[0].payload.data, in svc_i3c_master_send_direct_ccc_cmd()
1340 cmd->len = xfer_len; in svc_i3c_master_send_direct_ccc_cmd()
1341 cmd->actual_len = actual_len; in svc_i3c_master_send_direct_ccc_cmd()
1342 cmd->continued = false; in svc_i3c_master_send_direct_ccc_cmd()
1350 if (cmd->actual_len != xfer_len) in svc_i3c_master_send_direct_ccc_cmd()
1351 ccc->dests[0].payload.len = cmd->actual_len; in svc_i3c_master_send_direct_ccc_cmd()
1360 struct i3c_ccc_cmd *cmd) in svc_i3c_master_send_ccc_cmd() argument
1363 bool broadcast = cmd->id < 0x80; in svc_i3c_master_send_ccc_cmd()
1367 ret = svc_i3c_master_send_bdcast_ccc_cmd(master, cmd); in svc_i3c_master_send_ccc_cmd()
1369 ret = svc_i3c_master_send_direct_ccc_cmd(master, cmd); in svc_i3c_master_send_ccc_cmd()
1372 cmd->err = I3C_ERROR_M2; in svc_i3c_master_send_ccc_cmd()
1394 struct svc_i3c_cmd *cmd = &xfer->cmds[i]; in svc_i3c_master_priv_xfers() local
1396 cmd->xfer = &xfers[i]; in svc_i3c_master_priv_xfers()
1397 cmd->addr = master->addrs[data->index]; in svc_i3c_master_priv_xfers()
1398 cmd->rnw = xfers[i].rnw; in svc_i3c_master_priv_xfers()
1399 cmd->in = xfers[i].rnw ? xfers[i].data.in : NULL; in svc_i3c_master_priv_xfers()
1400 cmd->out = xfers[i].rnw ? NULL : xfers[i].data.out; in svc_i3c_master_priv_xfers()
1401 cmd->len = xfers[i].len; in svc_i3c_master_priv_xfers()
1402 cmd->actual_len = xfers[i].rnw ? xfers[i].len : 0; in svc_i3c_master_priv_xfers()
1403 cmd->continued = (i + 1) < nxfers; in svc_i3c_master_priv_xfers()
1435 struct svc_i3c_cmd *cmd = &xfer->cmds[i]; in svc_i3c_master_i2c_xfers() local
1437 cmd->addr = master->addrs[data->index]; in svc_i3c_master_i2c_xfers()
1438 cmd->rnw = xfers[i].flags & I2C_M_RD; in svc_i3c_master_i2c_xfers()
1439 cmd->in = cmd->rnw ? xfers[i].buf : NULL; in svc_i3c_master_i2c_xfers()
1440 cmd->out = cmd->rnw ? NULL : xfers[i].buf; in svc_i3c_master_i2c_xfers()
1441 cmd->len = xfers[i].len; in svc_i3c_master_i2c_xfers()
1442 cmd->actual_len = cmd->rnw ? xfers[i].len : 0; in svc_i3c_master_i2c_xfers()
1443 cmd->continued = (i + 1 < nxfers); in svc_i3c_master_i2c_xfers()