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()
140 struct scm_legacy_command *cmd; in scm_legacy_call() local
146 size_t alloc_len = sizeof(*cmd) + cmd_len + sizeof(*rsp) + resp_len; in scm_legacy_call()
151 cmd = kzalloc(PAGE_ALIGN(alloc_len), GFP_KERNEL); in scm_legacy_call()
152 if (!cmd) in scm_legacy_call()
155 cmd->len = cpu_to_le32(alloc_len); in scm_legacy_call()
156 cmd->buf_offset = cpu_to_le32(sizeof(*cmd)); in scm_legacy_call()
157 cmd->resp_hdr_offset = cpu_to_le32(sizeof(*cmd) + cmd_len); in scm_legacy_call()
158 cmd->id = cpu_to_le32(SCM_LEGACY_FNID(desc->svc, desc->cmd)); in scm_legacy_call()
160 arg_buf = scm_legacy_get_command_buffer(cmd); in scm_legacy_call()
164 rsp = scm_legacy_command_to_response(cmd); in scm_legacy_call()
166 cmd_phys = dma_map_single(dev, cmd, alloc_len, DMA_TO_DEVICE); in scm_legacy_call()
168 kfree(cmd); in scm_legacy_call()
185 dma_sync_single_for_cpu(dev, cmd_phys + sizeof(*cmd) + cmd_len, in scm_legacy_call()
189 dma_sync_single_for_cpu(dev, cmd_phys + sizeof(*cmd) + cmd_len + in scm_legacy_call()
200 kfree(cmd); in scm_legacy_call()
208 #define SCM_LEGACY_ATOMIC_ID(svc, cmd, n) \ argument
209 ((SCM_LEGACY_FNID(svc, cmd) << 12) | \
234 arm_smccc_smc(SCM_LEGACY_ATOMIC_ID(desc->svc, desc->cmd, arglen), in scm_legacy_call_atomic()