Lines Matching refs:cmd

81 		const struct scm_legacy_command *cmd)  in scm_legacy_command_to_response()  argument
83 return (void *)cmd + le32_to_cpu(cmd->resp_hdr_offset); in scm_legacy_command_to_response()
93 const struct scm_legacy_command *cmd) in scm_legacy_get_command_buffer() argument
95 return (void *)cmd->buf; in scm_legacy_get_command_buffer()
137 struct scm_legacy_command *cmd; in scm_legacy_call() local
143 size_t alloc_len = sizeof(*cmd) + cmd_len + sizeof(*rsp) + resp_len; in scm_legacy_call()
148 cmd = kzalloc(PAGE_ALIGN(alloc_len), GFP_KERNEL); in scm_legacy_call()
149 if (!cmd) in scm_legacy_call()
152 cmd->len = cpu_to_le32(alloc_len); in scm_legacy_call()
153 cmd->buf_offset = cpu_to_le32(sizeof(*cmd)); in scm_legacy_call()
154 cmd->resp_hdr_offset = cpu_to_le32(sizeof(*cmd) + cmd_len); in scm_legacy_call()
155 cmd->id = cpu_to_le32(SCM_LEGACY_FNID(desc->svc, desc->cmd)); in scm_legacy_call()
157 arg_buf = scm_legacy_get_command_buffer(cmd); in scm_legacy_call()
161 rsp = scm_legacy_command_to_response(cmd); in scm_legacy_call()
163 cmd_phys = dma_map_single(dev, cmd, alloc_len, DMA_TO_DEVICE); in scm_legacy_call()
165 kfree(cmd); in scm_legacy_call()
182 dma_sync_single_for_cpu(dev, cmd_phys + sizeof(*cmd) + cmd_len, in scm_legacy_call()
186 dma_sync_single_for_cpu(dev, cmd_phys + sizeof(*cmd) + cmd_len + in scm_legacy_call()
197 kfree(cmd); in scm_legacy_call()
205 #define SCM_LEGACY_ATOMIC_ID(svc, cmd, n) \ argument
206 ((SCM_LEGACY_FNID(svc, cmd) << 12) | \
230 arm_smccc_smc(SCM_LEGACY_ATOMIC_ID(desc->svc, desc->cmd, arglen), in scm_legacy_call_atomic()