Lines Matching refs:cmd

31 static enum mc_cmd_status mc_cmd_hdr_read_status(struct fsl_mc_command *cmd)  in mc_cmd_hdr_read_status()  argument
33 struct mc_cmd_header *hdr = (struct mc_cmd_header *)&cmd->header; in mc_cmd_hdr_read_status()
38 u16 mc_cmd_hdr_read_cmdid(struct fsl_mc_command *cmd) in mc_cmd_hdr_read_cmdid() argument
40 struct mc_cmd_header *hdr = (struct mc_cmd_header *)&cmd->header; in mc_cmd_hdr_read_cmdid()
98 struct fsl_mc_command *cmd) in mc_write_command() argument
109 writeq_relaxed(le64_to_cpu(cmd->params[i]), &portal->params[i]); in mc_write_command()
112 writeq(le64_to_cpu(cmd->header), &portal->header); in mc_write_command()
160 struct fsl_mc_command *cmd, in mc_polling_wait_preemptible() argument
171 status = mc_read_response(mc_io->portal_virt_addr, cmd); in mc_polling_wait_preemptible()
186 (unsigned int)mc_cmd_hdr_read_token(cmd), in mc_polling_wait_preemptible()
187 (unsigned int)mc_cmd_hdr_read_cmdid(cmd)); in mc_polling_wait_preemptible()
206 struct fsl_mc_command *cmd, in mc_polling_wait_atomic() argument
216 status = mc_read_response(mc_io->portal_virt_addr, cmd); in mc_polling_wait_atomic()
226 (unsigned int)mc_cmd_hdr_read_token(cmd), in mc_polling_wait_atomic()
227 (unsigned int)mc_cmd_hdr_read_cmdid(cmd)); in mc_polling_wait_atomic()
245 int mc_send_command(struct fsl_mc_io *mc_io, struct fsl_mc_command *cmd) in mc_send_command() argument
262 mc_write_command(mc_io->portal_virt_addr, cmd); in mc_send_command()
268 error = mc_polling_wait_preemptible(mc_io, cmd, &status); in mc_send_command()
270 error = mc_polling_wait_atomic(mc_io, cmd, &status); in mc_send_command()
279 (unsigned int)mc_cmd_hdr_read_token(cmd), in mc_send_command()
280 (unsigned int)mc_cmd_hdr_read_cmdid(cmd), in mc_send_command()