Lines Matching refs:my_command
1221 ti_private_cmd_t *my_command = (ti_private_cmd_t *)cmdObj->param3;
1224 os_printf ("cmd = 0x%x flags = 0x%x\n",(unsigned int)my_command->cmd,(unsigned int)my_command->flags);
1225 os_printf ("in_buffer = 0x%x (len = %d)\n",my_command->in_buffer,(unsigned int)my_command->in_buffer_len);
1226 os_printf ("out_buffer = 0x%x (len = %d)\n",my_command->out_buffer,(unsigned int)my_command->out_buffer_len);
1229 pParam->paramType = my_command->cmd;
1231 if (IS_PARAM_ASYNC(my_command->cmd))
1236 pParam->content.interogateCmdCBParams.pCb = my_command->out_buffer;
1237 if (my_command->out_buffer)
1240 os_memoryCopy(pCmdInterpret->hOs, my_command->out_buffer, my_command->in_buffer, min(my_command->in_buffer_len,my_command->out_buffer_len));
1243 else if ((my_command->in_buffer) && (my_command->in_buffer_len))
1249 if(IS_ALLOC_NEEDED_PARAM(my_command->cmd))
1251 *(void **)&pParam->content = os_memoryAlloc(pCmdInterpret->hOs, my_command->in_buffer_len);
1252 os_memoryCopy(pCmdInterpret->hOs, *(void **)&pParam->content, my_command->in_buffer, my_command->in_buffer_len);
1255 os_memoryCopy(pCmdInterpret->hOs,&pParam->content,my_command->in_buffer,my_command->in_buffer_len);
1258 if (my_command->flags & PRIVATE_CMD_SET_FLAG)
1261 pParam->paramLength = my_command->in_buffer_len;
1264 else if (my_command->flags & PRIVATE_CMD_GET_FLAG)
1267 pParam->paramLength = my_command->out_buffer_len;
1279 if(pParam->paramLength && (my_command->out_buffer_len == 0))
1281 my_command->out_buffer_len = pParam->paramLength;
1291 if(IS_PARAM_ASYNC(my_command->cmd))
1298 if ((my_command->out_buffer) && (my_command->out_buffer_len))
1300 if(IS_ALLOC_NEEDED_PARAM(my_command->cmd))
1302 os_memoryCopy(pCmdInterpret->hOs,my_command->out_buffer,*(void **)&pParam->content,my_command->out_buffer_len);
1306 os_memoryCopy(pCmdInterpret->hOs,my_command->out_buffer,&pParam->content,my_command->out_buffer_len);
1313 if(IS_ALLOC_NEEDED_PARAM(my_command->cmd))
1315 os_memoryFree(pCmdInterpret->hOs, *(void **)&pParam->content, my_command->in_buffer_len);