Searched refs:gq (Results 1 – 2 of 2) sorted by relevance
242 static unsigned int rswitch_next_queue_index(struct rswitch_gwca_queue *gq, in rswitch_next_queue_index() argument245 unsigned int index = cur ? gq->cur : gq->dirty; in rswitch_next_queue_index()247 if (index + num >= gq->ring_size) in rswitch_next_queue_index()248 index = (index + num) % gq->ring_size; in rswitch_next_queue_index()255 static unsigned int rswitch_get_num_cur_queues(struct rswitch_gwca_queue *gq) in rswitch_get_num_cur_queues() argument257 if (gq->cur >= gq->dirty) in rswitch_get_num_cur_queues()258 return gq->cur - gq->dirty; in rswitch_get_num_cur_queues()260 return gq->ring_size - gq->dirty + gq->cur; in rswitch_get_num_cur_queues()263 static bool rswitch_is_queue_rxed(struct rswitch_gwca_queue *gq) in rswitch_is_queue_rxed() argument265 struct rswitch_ext_ts_desc *desc = &gq->rx_ring[gq->dirty]; in rswitch_is_queue_rxed()[all …]
1861 struct xfs_dquot *gq = NULL; in xfs_qm_vop_dqalloc() local1907 XFS_DQTYPE_GROUP, true, &gq); in xfs_qm_vop_dqalloc()1914 gq = xfs_qm_dqhold(ip->i_gdquot); in xfs_qm_vop_dqalloc()1938 *O_gdqpp = gq; in xfs_qm_vop_dqalloc()1940 xfs_qm_dqrele(gq); in xfs_qm_vop_dqalloc()1948 xfs_qm_dqrele(gq); in xfs_qm_vop_dqalloc()