Lines Matching refs:gpi_cmd
319 enum gpi_cmd { enum
392 enum gpi_cmd gpi_cmd; member
520 enum gpi_cmd gpi_cmd; member
687 enum gpi_cmd gpi_cmd) in gpi_send_cmd() argument
694 if (gpi_cmd >= GPI_MAX_CMD) in gpi_send_cmd()
696 if (IS_CHAN_CMD(gpi_cmd)) in gpi_send_cmd()
700 "sending cmd: %s:%u\n", TO_GPI_CMD_STR(gpi_cmd), chid); in gpi_send_cmd()
704 gpii->gpi_cmd = gpi_cmd; in gpi_send_cmd()
706 cmd_reg = IS_CHAN_CMD(gpi_cmd) ? gchan->ch_cmd_reg : gpii->ev_cmd_reg; in gpi_send_cmd()
707 cmd = IS_CHAN_CMD(gpi_cmd) ? GPII_n_CH_CMD(gpi_cmd_info[gpi_cmd].opcode, chid) : in gpi_send_cmd()
708 GPII_n_EV_CMD(gpi_cmd_info[gpi_cmd].opcode, 0); in gpi_send_cmd()
714 TO_GPI_CMD_STR(gpi_cmd), chid); in gpi_send_cmd()
719 if (gpi_cmd_info[gpi_cmd].state == STATE_IGNORE) in gpi_send_cmd()
722 if (IS_CHAN_CMD(gpi_cmd) && gchan->ch_state == gpi_cmd_info[gpi_cmd].state) in gpi_send_cmd()
725 if (!IS_CHAN_CMD(gpi_cmd) && gpii->ev_state == gpi_cmd_info[gpi_cmd].state) in gpi_send_cmd()
788 if (gpii->gpi_cmd == GPI_CH_CMD_DE_ALLOC) in gpi_process_ch_ctrl_irq()
895 if (gpii->gpi_cmd == GPI_EV_CMD_DEALLOC) in gpi_handle_irq()
1196 static int gpi_reset_chan(struct gchan *gchan, enum gpi_cmd gpi_cmd) in gpi_reset_chan() argument
1204 ret = gpi_send_cmd(gpii, gchan, gpi_cmd); in gpi_reset_chan()
1207 TO_GPI_CMD_STR(gpi_cmd), ret); in gpi_reset_chan()