Searched refs:gq (Results 1 – 2 of 2) sorted by relevance
207 static unsigned int rswitch_next_queue_index(struct rswitch_gwca_queue *gq, in rswitch_next_queue_index() argument210 unsigned int index = cur ? gq->cur : gq->dirty; in rswitch_next_queue_index()212 if (index + num >= gq->ring_size) in rswitch_next_queue_index()213 index = (index + num) % gq->ring_size; in rswitch_next_queue_index()220 static unsigned int rswitch_get_num_cur_queues(struct rswitch_gwca_queue *gq) in rswitch_get_num_cur_queues() argument222 if (gq->cur >= gq->dirty) in rswitch_get_num_cur_queues()223 return gq->cur - gq->dirty; in rswitch_get_num_cur_queues()225 return gq->ring_size - gq->dirty + gq->cur; in rswitch_get_num_cur_queues()228 static bool rswitch_is_queue_rxed(struct rswitch_gwca_queue *gq) in rswitch_is_queue_rxed() argument230 struct rswitch_ext_ts_desc *desc = &gq->rx_ring[gq->dirty]; in rswitch_is_queue_rxed()[all …]
1730 struct xfs_dquot *gq = NULL; in xfs_qm_vop_dqalloc() local1795 XFS_DQTYPE_GROUP, true, &gq); in xfs_qm_vop_dqalloc()1800 xfs_dqunlock(gq); in xfs_qm_vop_dqalloc()1805 gq = xfs_qm_dqhold(ip->i_gdquot); in xfs_qm_vop_dqalloc()1834 *O_gdqpp = gq; in xfs_qm_vop_dqalloc()1836 xfs_qm_dqrele(gq); in xfs_qm_vop_dqalloc()1844 xfs_qm_dqrele(gq); in xfs_qm_vop_dqalloc()