Lines Matching refs:state
1506 new->vb.state = VIDEOBUF_DONE;
1514 dprintk("switch_overlay: old=%p state is %d\n",
1515 old, old->vb.state);
1610 if (VIDEOBUF_NEEDS_INIT == buf->vb.state) {
1620 buf->vb.state = VIDEOBUF_PREPARED;
1659 buf->vb.state = VIDEOBUF_QUEUED;
2408 /* update our state information */
2952 if (buf->vb.state == VIDEOBUF_DONE ||
2953 buf->vb.state == VIDEOBUF_ERROR)
3548 struct bttv_buffer_set *curr, unsigned int state)
3559 wakeup->top->vb.state = state;
3569 wakeup->top->vb.state = state;
3578 wakeup->bottom->vb.state = state;
3586 unsigned int state)
3593 wakeup->vb.state = state;
3634 item->vb.state = VIDEOBUF_ERROR;
3640 item->vb.state = VIDEOBUF_ERROR;
3663 wakeup->vb.state = VIDEOBUF_DONE;
4275 static int bttv_suspend(struct pci_dev *pci_dev, pm_message_t state)
4282 dprintk("%d: suspend %d\n", btv->c.nr, state.event);
4287 btv->state.video = btv->curr;
4288 btv->state.vbi = btv->cvbi;
4289 btv->state.loop_irq = btv->loop_irq;
4298 /* save bt878 state */
4299 btv->state.gpio_enable = btread(BT848_GPIO_OUT_EN);
4300 btv->state.gpio_data = gpio_read();
4302 /* save pci state */
4304 if (0 != pci_set_power_state(pci_dev, pci_choose_state(pci_dev, state))) {
4306 btv->state.disabled = 1;
4320 /* restore pci state */
4321 if (btv->state.disabled) {
4327 btv->state.disabled = 0;
4333 btv->state.disabled = 1;
4339 /* restore bt878 state */
4341 gpio_inout(0xffffff, btv->state.gpio_enable);
4342 gpio_write(btv->state.gpio_data);
4346 btv->curr = btv->state.video;
4347 btv->cvbi = btv->state.vbi;
4348 btv->loop_irq = btv->state.loop_irq;