• Home
  • Raw
  • Download

Lines Matching refs:seqno

36 			ret = dev->cmds[i].seqno;  in saa7164_cmd_alloc_seqno()
45 static void saa7164_cmd_free_seqno(struct saa7164_dev *dev, u8 seqno) in saa7164_cmd_free_seqno() argument
48 if ((dev->cmds[seqno].inuse == 1) && in saa7164_cmd_free_seqno()
49 (dev->cmds[seqno].seqno == seqno)) { in saa7164_cmd_free_seqno()
50 dev->cmds[seqno].inuse = 0; in saa7164_cmd_free_seqno()
51 dev->cmds[seqno].signalled = 0; in saa7164_cmd_free_seqno()
52 dev->cmds[seqno].timeout = 0; in saa7164_cmd_free_seqno()
57 static void saa7164_cmd_timeout_seqno(struct saa7164_dev *dev, u8 seqno) in saa7164_cmd_timeout_seqno() argument
60 if ((dev->cmds[seqno].inuse == 1) && in saa7164_cmd_timeout_seqno()
61 (dev->cmds[seqno].seqno == seqno)) { in saa7164_cmd_timeout_seqno()
62 dev->cmds[seqno].timeout = 1; in saa7164_cmd_timeout_seqno()
67 static u32 saa7164_cmd_timeout_get(struct saa7164_dev *dev, u8 seqno) in saa7164_cmd_timeout_get() argument
72 if ((dev->cmds[seqno].inuse == 1) && in saa7164_cmd_timeout_get()
73 (dev->cmds[seqno].seqno == seqno)) { in saa7164_cmd_timeout_get()
74 ret = dev->cmds[seqno].timeout; in saa7164_cmd_timeout_get()
100 q = &dev->cmds[tRsp.seqno].wait; in saa7164_irq_dequeue()
101 timeout = saa7164_cmd_timeout_get(dev, tRsp.seqno); in saa7164_irq_dequeue()
106 __func__, tRsp.seqno); in saa7164_irq_dequeue()
107 dev->cmds[tRsp.seqno].signalled = 1; in saa7164_irq_dequeue()
154 q = &dev->cmds[tRsp.seqno].wait; in saa7164_cmd_dequeue()
155 timeout = saa7164_cmd_timeout_get(dev, tRsp.seqno); in saa7164_cmd_dequeue()
173 saa7164_cmd_free_seqno(dev, tRsp.seqno); in saa7164_cmd_dequeue()
180 __func__, tRsp.seqno); in saa7164_cmd_dequeue()
181 dev->cmds[tRsp.seqno].signalled = 1; in saa7164_cmd_dequeue()
262 static int saa7164_cmd_wait(struct saa7164_dev *dev, u8 seqno) in saa7164_cmd_wait() argument
272 dprintk(DBGLVL_CMD, "%s(seqno=%d)\n", __func__, seqno); in saa7164_cmd_wait()
275 if ((dev->cmds[seqno].inuse == 1) && in saa7164_cmd_wait()
276 (dev->cmds[seqno].seqno == seqno)) { in saa7164_cmd_wait()
277 q = &dev->cmds[seqno].wait; in saa7164_cmd_wait()
283 if (dev->cmds[seqno].signalled == 0) { in saa7164_cmd_wait()
287 __func__, seqno, dev->cmds[seqno].signalled); in saa7164_cmd_wait()
296 wait_event_timeout(*q, dev->cmds[seqno].signalled, in saa7164_cmd_wait()
302 saa7164_cmd_timeout_seqno(dev, seqno); in saa7164_cmd_wait()
305 "(signalled=%d)\n", __func__, seqno, r, in saa7164_cmd_wait()
306 dev->cmds[seqno].signalled); in saa7164_cmd_wait()
311 __func__, seqno); in saa7164_cmd_wait()
316 void saa7164_cmd_signal(struct saa7164_dev *dev, u8 seqno) in saa7164_cmd_signal() argument
326 dev->cmds[i].seqno, in saa7164_cmd_signal()
383 command_t.seqno = (u8)ret; in saa7164_cmd_send()
390 __func__, pcommand_t->seqno); in saa7164_cmd_send()
400 saa7164_cmd_free_seqno(dev, pcommand_t->seqno); in saa7164_cmd_send()
404 saa7164_cmd_timeout_seqno(dev, pcommand_t->seqno); in saa7164_cmd_send()
415 ret = saa7164_cmd_wait(dev, pcommand_t->seqno); in saa7164_cmd_send()
422 saa7164_cmd_timeout_seqno(dev, pcommand_t->seqno); in saa7164_cmd_send()
443 __func__, presponse_t->seqno); in saa7164_cmd_send()
452 if (presponse_t->seqno != pcommand_t->seqno) { in saa7164_cmd_send()
458 presponse_t->seqno, pcommand_t->seqno); in saa7164_cmd_send()
484 saa7164_cmd_free_seqno(dev, pcommand_t->seqno); in saa7164_cmd_send()
575 saa7164_cmd_free_seqno(dev, pcommand_t->seqno); in saa7164_cmd_send()