static inline int vmsvga_fifo_length(struct vmsvga_state_s *s)

{

    int num;

    if (!s->config || !s->enable)

        return 0;

    num = CMD(next_cmd) - CMD(stop);

    if (num < 0)

        num += CMD(max) - CMD(min);

    return num >> 2;

}

static inline int vmsvga_fifo_length(struct vmsvga_state_s *s)

{

    int num;

    if (!s->config || !s->enable)

        return 0;

    num = CMD(next_cmd) - CMD(stop);

    if (num < 0)

        num += CMD(max) - CMD(min);

    return num >> 2;

}

static inline int FUNC_0(struct vmsvga_state_s *VAR_0)

{

    int VAR_1;

    if (!VAR_0->config || !VAR_0->enable)

        return 0;

    VAR_1 = CMD(next_cmd) - CMD(stop);

    if (VAR_1 < 0)

        VAR_1 += CMD(max) - CMD(min);

    return VAR_1 >> 2;

}

static inline int FUNC_0(struct vmsvga_state_s *VAR_0)
{ int VAR_1; if (!VAR_0->config || !VAR_0->enable)
return 0; VAR_1 = CMD(next_cmd) - CMD(stop); if (VAR_1 < 0)
VAR_1 += CMD(max) - CMD(min); return VAR_1 >> 2; }