• Home
  • Raw
  • Download

Lines Matching refs:q

50 static inline void smtc_ipi_nq(struct smtc_ipi_q *q, struct smtc_ipi *p)  in smtc_ipi_nq()  argument
54 spin_lock_irqsave(&q->lock, flags); in smtc_ipi_nq()
55 if (q->head == NULL) in smtc_ipi_nq()
56 q->head = q->tail = p; in smtc_ipi_nq()
58 q->tail->flink = p; in smtc_ipi_nq()
60 q->tail = p; in smtc_ipi_nq()
61 q->depth++; in smtc_ipi_nq()
66 spin_unlock_irqrestore(&q->lock, flags); in smtc_ipi_nq()
69 static inline struct smtc_ipi *__smtc_ipi_dq(struct smtc_ipi_q *q) in __smtc_ipi_dq() argument
73 if (q->head == NULL) in __smtc_ipi_dq()
76 p = q->head; in __smtc_ipi_dq()
77 q->head = q->head->flink; in __smtc_ipi_dq()
78 q->depth--; in __smtc_ipi_dq()
80 if (q->head == NULL) in __smtc_ipi_dq()
81 q->tail = NULL; in __smtc_ipi_dq()
87 static inline struct smtc_ipi *smtc_ipi_dq(struct smtc_ipi_q *q) in smtc_ipi_dq() argument
92 spin_lock_irqsave(&q->lock, flags); in smtc_ipi_dq()
93 p = __smtc_ipi_dq(q); in smtc_ipi_dq()
94 spin_unlock_irqrestore(&q->lock, flags); in smtc_ipi_dq()
99 static inline void smtc_ipi_req(struct smtc_ipi_q *q, struct smtc_ipi *p) in smtc_ipi_req() argument
103 spin_lock_irqsave(&q->lock, flags); in smtc_ipi_req()
104 if (q->head == NULL) { in smtc_ipi_req()
105 q->head = q->tail = p; in smtc_ipi_req()
108 p->flink = q->head; in smtc_ipi_req()
109 q->head = p; in smtc_ipi_req()
111 q->depth++; in smtc_ipi_req()
112 spin_unlock_irqrestore(&q->lock, flags); in smtc_ipi_req()
115 static inline int smtc_ipi_qdepth(struct smtc_ipi_q *q) in smtc_ipi_qdepth() argument
120 spin_lock_irqsave(&q->lock, flags); in smtc_ipi_qdepth()
121 retval = q->depth; in smtc_ipi_qdepth()
122 spin_unlock_irqrestore(&q->lock, flags); in smtc_ipi_qdepth()