Lines Matching defs:cmd
124 struct thread_command *cmd = (struct thread_command *)calloc(1, sizeof(struct thread_command));
127 if (cmd == NULL)
132 cmd->type = type;
134 if (cmd->type == CMD_CONFIG) {
135 cmd->config = *(radio_hal_band_config_t *)param;
136 ALOGV("%s CMD_CONFIG type %d", __func__, cmd->config.type);
138 cmd->param = *(unsigned int *)param;
149 cmd->ts = ts;
150 list_add_tail(&tuner->command_list, &cmd->node);
255 struct thread_command *cmd = NULL;
278 cmd = node_to_item(item, struct thread_command, node);
280 if (got_cancel && (cmd->type == CMD_STEP || cmd->type == CMD_SCAN ||
281 cmd->type == CMD_TUNE || cmd->type == CMD_METADATA)) {
283 free(cmd);
287 if ((cmd->ts.tv_sec < cur_ts.tv_sec) ||
288 ((cmd->ts.tv_sec == cur_ts.tv_sec) && (cmd->ts.tv_nsec < cur_ts.tv_nsec))) {
295 ALOGV("%s processing command %d time %ld.%ld", __func__, cmd->type, cmd->ts.tv_sec,
296 cmd->ts.tv_nsec);
298 switch (cmd->type) {
301 free(cmd);
305 tuner->config = cmd->config;
323 if (cmd->param == RADIO_DIRECTION_UP) {
349 if (cmd->param == RADIO_DIRECTION_UP) {
374 tuner->program.channel = cmd->param;
421 ALOGV("%s processed command %d", __func__, cmd->type);
422 free(cmd);
425 (cmd->ts.tv_sec < ts.tv_sec) ||
426 ((cmd->ts.tv_sec == ts.tv_sec) && (cmd->ts.tv_nsec < ts.tv_nsec))) {
427 ts.tv_sec = cmd->ts.tv_sec;
428 ts.tv_nsec = cmd->ts.tv_nsec;
435 cmd = node_to_item(item, struct thread_command, node);
436 if (cmd->type == CMD_METADATA) {
438 free(cmd);
491 struct thread_command *cmd = node_to_item(item, struct thread_command, node);
492 if (cmd->type == CMD_CONFIG) {
493 src_config = &cmd->config;