Lines Matching refs:cmd

459 		struct vsp1_dl_ext_cmd *cmd = &pool->cmds[i];  in vsp1_dl_cmd_pool_create()  local
465 cmd->pool = pool; in vsp1_dl_cmd_pool_create()
466 cmd->opcode = vsp1_extended_commands[type].opcode; in vsp1_dl_cmd_pool_create()
472 cmd->num_cmds = 1; in vsp1_dl_cmd_pool_create()
473 cmd->cmds = pool->mem + cmd_offset; in vsp1_dl_cmd_pool_create()
474 cmd->cmd_dma = pool->dma + cmd_offset; in vsp1_dl_cmd_pool_create()
476 cmd->data = pool->mem + data_offset; in vsp1_dl_cmd_pool_create()
477 cmd->data_dma = pool->dma + data_offset; in vsp1_dl_cmd_pool_create()
479 list_add_tail(&cmd->free, &pool->free); in vsp1_dl_cmd_pool_create()
488 struct vsp1_dl_ext_cmd *cmd = NULL; in vsp1_dl_ext_cmd_get() local
494 cmd = list_first_entry(&pool->free, struct vsp1_dl_ext_cmd, in vsp1_dl_ext_cmd_get()
496 list_del(&cmd->free); in vsp1_dl_ext_cmd_get()
501 return cmd; in vsp1_dl_ext_cmd_get()
504 static void vsp1_dl_ext_cmd_put(struct vsp1_dl_ext_cmd *cmd) in vsp1_dl_ext_cmd_put() argument
508 if (!cmd) in vsp1_dl_ext_cmd_put()
512 cmd->flags = 0; in vsp1_dl_ext_cmd_put()
514 spin_lock_irqsave(&cmd->pool->lock, flags); in vsp1_dl_ext_cmd_put()
515 list_add_tail(&cmd->free, &cmd->pool->free); in vsp1_dl_ext_cmd_put()
516 spin_unlock_irqrestore(&cmd->pool->lock, flags); in vsp1_dl_ext_cmd_put()
743 static void vsp1_dl_ext_cmd_fill_header(struct vsp1_dl_ext_cmd *cmd) in vsp1_dl_ext_cmd_fill_header() argument
745 cmd->cmds[0].opcode = cmd->opcode; in vsp1_dl_ext_cmd_fill_header()
746 cmd->cmds[0].flags = cmd->flags; in vsp1_dl_ext_cmd_fill_header()
747 cmd->cmds[0].address_set = cmd->data_dma; in vsp1_dl_ext_cmd_fill_header()
748 cmd->cmds[0].reserved = 0; in vsp1_dl_ext_cmd_fill_header()