scq               639 drivers/atm/idt77252.c 	struct scq_info *scq;
scq               641 drivers/atm/idt77252.c 	scq = kzalloc(sizeof(struct scq_info), GFP_KERNEL);
scq               642 drivers/atm/idt77252.c 	if (!scq)
scq               644 drivers/atm/idt77252.c 	scq->base = dma_alloc_coherent(&card->pcidev->dev, SCQ_SIZE,
scq               645 drivers/atm/idt77252.c 				       &scq->paddr, GFP_KERNEL);
scq               646 drivers/atm/idt77252.c 	if (scq->base == NULL) {
scq               647 drivers/atm/idt77252.c 		kfree(scq);
scq               651 drivers/atm/idt77252.c 	scq->next = scq->base;
scq               652 drivers/atm/idt77252.c 	scq->last = scq->base + (SCQ_ENTRIES - 1);
scq               653 drivers/atm/idt77252.c 	atomic_set(&scq->used, 0);
scq               655 drivers/atm/idt77252.c 	spin_lock_init(&scq->lock);
scq               656 drivers/atm/idt77252.c 	spin_lock_init(&scq->skblock);
scq               658 drivers/atm/idt77252.c 	skb_queue_head_init(&scq->transmit);
scq               659 drivers/atm/idt77252.c 	skb_queue_head_init(&scq->pending);
scq               662 drivers/atm/idt77252.c 		 scq->base, scq->next, scq->last, (unsigned long long)scq->paddr);
scq               664 drivers/atm/idt77252.c 	return scq;
scq               668 drivers/atm/idt77252.c free_scq(struct idt77252_dev *card, struct scq_info *scq)
scq               674 drivers/atm/idt77252.c 			  scq->base, scq->paddr);
scq               676 drivers/atm/idt77252.c 	while ((skb = skb_dequeue(&scq->transmit))) {
scq               687 drivers/atm/idt77252.c 	while ((skb = skb_dequeue(&scq->pending))) {
scq               698 drivers/atm/idt77252.c 	kfree(scq);
scq               705 drivers/atm/idt77252.c 	struct scq_info *scq = vc->scq;
scq               710 drivers/atm/idt77252.c 	TXPRINTK("%s: SCQ: next 0x%p\n", card->name, scq->next);
scq               712 drivers/atm/idt77252.c 	atomic_inc(&scq->used);
scq               713 drivers/atm/idt77252.c 	entries = atomic_read(&scq->used);
scq               715 drivers/atm/idt77252.c 		atomic_dec(&scq->used);
scq               719 drivers/atm/idt77252.c 	skb_queue_tail(&scq->transmit, skb);
scq               744 drivers/atm/idt77252.c 	spin_lock_irqsave(&scq->lock, flags);
scq               745 drivers/atm/idt77252.c 	scq->next->word_1 = cpu_to_le32(tbd->word_1 |
scq               747 drivers/atm/idt77252.c 	scq->next->word_2 = cpu_to_le32(tbd->word_2);
scq               748 drivers/atm/idt77252.c 	scq->next->word_3 = cpu_to_le32(tbd->word_3);
scq               749 drivers/atm/idt77252.c 	scq->next->word_4 = cpu_to_le32(tbd->word_4);
scq               751 drivers/atm/idt77252.c 	if (scq->next == scq->last)
scq               752 drivers/atm/idt77252.c 		scq->next = scq->base;
scq               754 drivers/atm/idt77252.c 		scq->next++;
scq               756 drivers/atm/idt77252.c 	write_sram(card, scq->scd,
scq               757 drivers/atm/idt77252.c 		   scq->paddr +
scq               758 drivers/atm/idt77252.c 		   (u32)((unsigned long)scq->next - (unsigned long)scq->base));
scq               759 drivers/atm/idt77252.c 	spin_unlock_irqrestore(&scq->lock, flags);
scq               761 drivers/atm/idt77252.c 	scq->trans_start = jiffies;
scq               768 drivers/atm/idt77252.c 	TXPRINTK("%d entries in SCQ used (push).\n", atomic_read(&scq->used));
scq               771 drivers/atm/idt77252.c 		card->name, atomic_read(&scq->used),
scq               772 drivers/atm/idt77252.c 		read_sram(card, scq->scd + 1), scq->next);
scq               777 drivers/atm/idt77252.c 	if (time_after(jiffies, scq->trans_start + HZ)) {
scq               783 drivers/atm/idt77252.c 		scq->trans_start = jiffies;
scq               793 drivers/atm/idt77252.c 	struct scq_info *scq = vc->scq;
scq               798 drivers/atm/idt77252.c 		 card->name, atomic_read(&scq->used), scq->next);
scq               800 drivers/atm/idt77252.c 	skb = skb_dequeue(&scq->transmit);
scq               817 drivers/atm/idt77252.c 	atomic_dec(&scq->used);
scq               819 drivers/atm/idt77252.c 	spin_lock(&scq->skblock);
scq               820 drivers/atm/idt77252.c 	while ((skb = skb_dequeue(&scq->pending))) {
scq               822 drivers/atm/idt77252.c 			skb_queue_head(&vc->scq->pending, skb);
scq               826 drivers/atm/idt77252.c 	spin_unlock(&scq->skblock);
scq               914 drivers/atm/idt77252.c 	spin_lock_irqsave(&vc->scq->skblock, flags);
scq               915 drivers/atm/idt77252.c 	skb_queue_tail(&vc->scq->pending, skb);
scq               917 drivers/atm/idt77252.c 	while ((skb = skb_dequeue(&vc->scq->pending))) {
scq               919 drivers/atm/idt77252.c 			skb_queue_head(&vc->scq->pending, skb);
scq               923 drivers/atm/idt77252.c 	spin_unlock_irqrestore(&vc->scq->skblock, flags);
scq               949 drivers/atm/idt77252.c fill_scd(struct idt77252_dev *card, struct scq_info *scq, int class)
scq               951 drivers/atm/idt77252.c 	write_sram(card, scq->scd, scq->paddr);
scq               952 drivers/atm/idt77252.c 	write_sram(card, scq->scd + 1, 0x00000000);
scq               953 drivers/atm/idt77252.c 	write_sram(card, scq->scd + 2, 0xffffffff);
scq               954 drivers/atm/idt77252.c 	write_sram(card, scq->scd + 3, 0x00000000);
scq               958 drivers/atm/idt77252.c clear_scd(struct idt77252_dev *card, struct scq_info *scq, int class)
scq              1744 drivers/atm/idt77252.c 		        card->name, tct, vc->scq->scd);
scq              1746 drivers/atm/idt77252.c 		write_sram(card, tct + 0, TCT_CBR | vc->scq->scd);
scq              1758 drivers/atm/idt77252.c 		        card->name, tct, vc->scq->scd);
scq              1760 drivers/atm/idt77252.c 		write_sram(card, tct + 0, TCT_UBR | vc->scq->scd);
scq              2266 drivers/atm/idt77252.c 	vc->scq = alloc_scq(card, vc->class);
scq              2267 drivers/atm/idt77252.c 	if (!vc->scq) {
scq              2272 drivers/atm/idt77252.c 	vc->scq->scd = get_free_scd(card, vc);
scq              2273 drivers/atm/idt77252.c 	if (vc->scq->scd == 0) {
scq              2275 drivers/atm/idt77252.c 		free_scq(card, vc->scq);
scq              2279 drivers/atm/idt77252.c 	fill_scd(card, vc->scq, vc->class);
scq              2286 drivers/atm/idt77252.c 		free_scq(card, vc->scq);
scq              2295 drivers/atm/idt77252.c 				free_scq(card, vc->scq);
scq              2307 drivers/atm/idt77252.c 				free_scq(card, vc->scq);
scq              2545 drivers/atm/idt77252.c 		while (atomic_read(&vc->scq->used) > 0) {
scq              2549 drivers/atm/idt77252.c 					card->name, atomic_read(&vc->scq->used));
scq              2555 drivers/atm/idt77252.c 		clear_scd(card, vc->scq, vc->class);
scq              2564 drivers/atm/idt77252.c 		free_scq(card, vc->scq);
scq              2934 drivers/atm/idt77252.c 	vc->scq = alloc_scq(card, vc->class);
scq              2935 drivers/atm/idt77252.c 	if (!vc->scq) {
scq              2942 drivers/atm/idt77252.c 	vc->scq->scd = card->scd_base;
scq              2944 drivers/atm/idt77252.c 	fill_scd(card, vc->scq, vc->class);
scq               217 drivers/atm/idt77252.h 	struct scq_info		*scq;		/* To keep track of the SCQ */
scq               115 drivers/atm/nicstar.c #define scq_virt_to_bus(scq, p) \
scq               116 drivers/atm/nicstar.c 		(scq->dma + ((unsigned long)(p) - (unsigned long)(scq)->org))
scq               126 drivers/atm/nicstar.c static void free_scq(ns_dev *card, scq_info * scq, struct atm_vcc *vcc);
scq               133 drivers/atm/nicstar.c static int push_scqe(ns_dev * card, vc_map * vc, scq_info * scq, ns_scqe * tbd,
scq               136 drivers/atm/nicstar.c static void drain_scq(ns_dev * card, scq_info * scq, int pos);
scq               245 drivers/atm/nicstar.c 			free_scq(card, card->scd2vc[j]->scq, card->scd2vc[j]->tx_vcc);
scq               859 drivers/atm/nicstar.c 	scq_info *scq;
scq               865 drivers/atm/nicstar.c 	scq = kmalloc(sizeof(*scq), GFP_KERNEL);
scq               866 drivers/atm/nicstar.c 	if (!scq)
scq               868 drivers/atm/nicstar.c         scq->org = dma_alloc_coherent(&card->pcidev->dev,
scq               869 drivers/atm/nicstar.c 				      2 * size,  &scq->dma, GFP_KERNEL);
scq               870 drivers/atm/nicstar.c 	if (!scq->org) {
scq               871 drivers/atm/nicstar.c 		kfree(scq);
scq               874 drivers/atm/nicstar.c 	scq->skb = kmalloc_array(size / NS_SCQE_SIZE,
scq               875 drivers/atm/nicstar.c 				 sizeof(*scq->skb),
scq               877 drivers/atm/nicstar.c 	if (!scq->skb) {
scq               879 drivers/atm/nicstar.c 				  2 * size, scq->org, scq->dma);
scq               880 drivers/atm/nicstar.c 		kfree(scq);
scq               883 drivers/atm/nicstar.c 	scq->num_entries = size / NS_SCQE_SIZE;
scq               884 drivers/atm/nicstar.c 	scq->base = PTR_ALIGN(scq->org, size);
scq               885 drivers/atm/nicstar.c 	scq->next = scq->base;
scq               886 drivers/atm/nicstar.c 	scq->last = scq->base + (scq->num_entries - 1);
scq               887 drivers/atm/nicstar.c 	scq->tail = scq->last;
scq               888 drivers/atm/nicstar.c 	scq->scd = scd;
scq               889 drivers/atm/nicstar.c 	scq->num_entries = size / NS_SCQE_SIZE;
scq               890 drivers/atm/nicstar.c 	scq->tbd_count = 0;
scq               891 drivers/atm/nicstar.c 	init_waitqueue_head(&scq->scqfull_waitq);
scq               892 drivers/atm/nicstar.c 	scq->full = 0;
scq               893 drivers/atm/nicstar.c 	spin_lock_init(&scq->lock);
scq               895 drivers/atm/nicstar.c 	for (i = 0; i < scq->num_entries; i++)
scq               896 drivers/atm/nicstar.c 		scq->skb[i] = NULL;
scq               898 drivers/atm/nicstar.c 	return scq;
scq               902 drivers/atm/nicstar.c static void free_scq(ns_dev *card, scq_info *scq, struct atm_vcc *vcc)
scq               906 drivers/atm/nicstar.c 	if (scq->num_entries == VBR_SCQ_NUM_ENTRIES)
scq               907 drivers/atm/nicstar.c 		for (i = 0; i < scq->num_entries; i++) {
scq               908 drivers/atm/nicstar.c 			if (scq->skb[i] != NULL) {
scq               909 drivers/atm/nicstar.c 				vcc = ATM_SKB(scq->skb[i])->vcc;
scq               911 drivers/atm/nicstar.c 					vcc->pop(vcc, scq->skb[i]);
scq               913 drivers/atm/nicstar.c 					dev_kfree_skb_any(scq->skb[i]);
scq               920 drivers/atm/nicstar.c 			for (i = 0; i < scq->num_entries; i++)
scq               921 drivers/atm/nicstar.c 				dev_kfree_skb_any(scq->skb[i]);
scq               923 drivers/atm/nicstar.c 			for (i = 0; i < scq->num_entries; i++) {
scq               924 drivers/atm/nicstar.c 				if (scq->skb[i] != NULL) {
scq               926 drivers/atm/nicstar.c 						vcc->pop(vcc, scq->skb[i]);
scq               928 drivers/atm/nicstar.c 						dev_kfree_skb_any(scq->skb[i]);
scq               932 drivers/atm/nicstar.c 	kfree(scq->skb);
scq               934 drivers/atm/nicstar.c 			  2 * (scq->num_entries == VBR_SCQ_NUM_ENTRIES ?
scq               936 drivers/atm/nicstar.c 			  scq->org, scq->dma);
scq               937 drivers/atm/nicstar.c 	kfree(scq);
scq              1273 drivers/atm/nicstar.c 		scq_info *scq;
scq              1355 drivers/atm/nicstar.c 			scq = get_scq(card, CBR_SCQSIZE, vc->cbr_scd);
scq              1356 drivers/atm/nicstar.c 			if (scq == NULL) {
scq              1365 drivers/atm/nicstar.c 			vc->scq = scq;
scq              1366 drivers/atm/nicstar.c 			u32d[0] = scq_virt_to_bus(scq, scq->base);
scq              1375 drivers/atm/nicstar.c 			vc->scq = card->scq0;
scq              1467 drivers/atm/nicstar.c 		scq_info *scq;
scq              1469 drivers/atm/nicstar.c 		scq = vc->scq;
scq              1472 drivers/atm/nicstar.c 			spin_lock_irqsave(&scq->lock, flags);
scq              1473 drivers/atm/nicstar.c 			scqep = scq->next;
scq              1474 drivers/atm/nicstar.c 			if (scqep == scq->base)
scq              1475 drivers/atm/nicstar.c 				scqep = scq->last;
scq              1478 drivers/atm/nicstar.c 			if (scqep == scq->tail) {
scq              1479 drivers/atm/nicstar.c 				spin_unlock_irqrestore(&scq->lock, flags);
scq              1484 drivers/atm/nicstar.c 			if (!ns_scqe_is_tsr(scqep) && scq->tail != scq->next) {
scq              1492 drivers/atm/nicstar.c 				scqi = scq->next - scq->base;
scq              1496 drivers/atm/nicstar.c 				*scq->next = tsr;
scq              1498 drivers/atm/nicstar.c 				scq->skb[index] = NULL;
scq              1499 drivers/atm/nicstar.c 				if (scq->next == scq->last)
scq              1500 drivers/atm/nicstar.c 					scq->next = scq->base;
scq              1502 drivers/atm/nicstar.c 					scq->next++;
scq              1503 drivers/atm/nicstar.c 				data = scq_virt_to_bus(scq, scq->next);
scq              1504 drivers/atm/nicstar.c 				ns_write_sram(card, scq->scd, &data, 1);
scq              1506 drivers/atm/nicstar.c 			spin_unlock_irqrestore(&scq->lock, flags);
scq              1522 drivers/atm/nicstar.c 		free_scq(card, vc->scq, vcc);
scq              1528 drivers/atm/nicstar.c 		scq_info *scq = card->scq0;
scq              1530 drivers/atm/nicstar.c 		spin_lock_irqsave(&scq->lock, flags);
scq              1532 drivers/atm/nicstar.c 		for (i = 0; i < scq->num_entries; i++) {
scq              1533 drivers/atm/nicstar.c 			if (scq->skb[i] && ATM_SKB(scq->skb[i])->vcc == vcc) {
scq              1534 drivers/atm/nicstar.c 				ATM_SKB(scq->skb[i])->vcc = NULL;
scq              1535 drivers/atm/nicstar.c 				atm_return(vcc, scq->skb[i]->truesize);
scq              1541 drivers/atm/nicstar.c 		spin_unlock_irqrestore(&scq->lock, flags);
scq              1627 drivers/atm/nicstar.c 	scq_info *scq;
scq              1700 drivers/atm/nicstar.c 		scq = ((vc_map *) vcc->dev_data)->scq;
scq              1704 drivers/atm/nicstar.c 		scq = card->scq0;
scq              1707 drivers/atm/nicstar.c 	if (push_scqe(card, vc, scq, &scqe, skb) != 0) {
scq              1717 drivers/atm/nicstar.c static int push_scqe(ns_dev * card, vc_map * vc, scq_info * scq, ns_scqe * tbd,
scq              1727 drivers/atm/nicstar.c 	spin_lock_irqsave(&scq->lock, flags);
scq              1728 drivers/atm/nicstar.c 	while (scq->tail == scq->next) {
scq              1730 drivers/atm/nicstar.c 			spin_unlock_irqrestore(&scq->lock, flags);
scq              1735 drivers/atm/nicstar.c 		scq->full = 1;
scq              1736 drivers/atm/nicstar.c 		wait_event_interruptible_lock_irq_timeout(scq->scqfull_waitq,
scq              1737 drivers/atm/nicstar.c 							  scq->tail != scq->next,
scq              1738 drivers/atm/nicstar.c 							  scq->lock,
scq              1741 drivers/atm/nicstar.c 		if (scq->full) {
scq              1742 drivers/atm/nicstar.c 			spin_unlock_irqrestore(&scq->lock, flags);
scq              1748 drivers/atm/nicstar.c 	*scq->next = *tbd;
scq              1749 drivers/atm/nicstar.c 	index = (int)(scq->next - scq->base);
scq              1750 drivers/atm/nicstar.c 	scq->skb[index] = skb;
scq              1756 drivers/atm/nicstar.c 		scq->next);
scq              1757 drivers/atm/nicstar.c 	if (scq->next == scq->last)
scq              1758 drivers/atm/nicstar.c 		scq->next = scq->base;
scq              1760 drivers/atm/nicstar.c 		scq->next++;
scq              1763 drivers/atm/nicstar.c 	if (scq->num_entries == VBR_SCQ_NUM_ENTRIES) {
scq              1764 drivers/atm/nicstar.c 		scq->tbd_count++;
scq              1770 drivers/atm/nicstar.c 	    || scq->tbd_count >= MAX_TBD_PER_SCQ) {
scq              1773 drivers/atm/nicstar.c 		while (scq->tail == scq->next) {
scq              1775 drivers/atm/nicstar.c 				data = scq_virt_to_bus(scq, scq->next);
scq              1776 drivers/atm/nicstar.c 				ns_write_sram(card, scq->scd, &data, 1);
scq              1777 drivers/atm/nicstar.c 				spin_unlock_irqrestore(&scq->lock, flags);
scq              1783 drivers/atm/nicstar.c 			scq->full = 1;
scq              1786 drivers/atm/nicstar.c 			wait_event_interruptible_lock_irq_timeout(scq->scqfull_waitq,
scq              1787 drivers/atm/nicstar.c 								  scq->tail != scq->next,
scq              1788 drivers/atm/nicstar.c 								  scq->lock,
scq              1792 drivers/atm/nicstar.c 		if (!scq->full) {
scq              1798 drivers/atm/nicstar.c 			scqi = scq->next - scq->base;
scq              1803 drivers/atm/nicstar.c 			*scq->next = tsr;
scq              1805 drivers/atm/nicstar.c 			scq->skb[index] = NULL;
scq              1810 drivers/atm/nicstar.c 			     le32_to_cpu(tsr.word_4), scq->next);
scq              1811 drivers/atm/nicstar.c 			if (scq->next == scq->last)
scq              1812 drivers/atm/nicstar.c 				scq->next = scq->base;
scq              1814 drivers/atm/nicstar.c 				scq->next++;
scq              1816 drivers/atm/nicstar.c 			scq->tbd_count = 0;
scq              1821 drivers/atm/nicstar.c 	data = scq_virt_to_bus(scq, scq->next);
scq              1822 drivers/atm/nicstar.c 	ns_write_sram(card, scq->scd, &data, 1);
scq              1824 drivers/atm/nicstar.c 	spin_unlock_irqrestore(&scq->lock, flags);
scq              1832 drivers/atm/nicstar.c 	scq_info *scq;
scq              1865 drivers/atm/nicstar.c 				scq = card->scq0;
scq              1874 drivers/atm/nicstar.c 				scq = card->scd2vc[scdi]->scq;
scq              1876 drivers/atm/nicstar.c 			drain_scq(card, scq, ns_tsi_getscqpos(card->tsq.next));
scq              1877 drivers/atm/nicstar.c 			scq->full = 0;
scq              1878 drivers/atm/nicstar.c 			wake_up_interruptible(&(scq->scqfull_waitq));
scq              1904 drivers/atm/nicstar.c static void drain_scq(ns_dev * card, scq_info * scq, int pos)
scq              1912 drivers/atm/nicstar.c 		card->index, scq, pos);
scq              1913 drivers/atm/nicstar.c 	if (pos >= scq->num_entries) {
scq              1918 drivers/atm/nicstar.c 	spin_lock_irqsave(&scq->lock, flags);
scq              1919 drivers/atm/nicstar.c 	i = (int)(scq->tail - scq->base);
scq              1920 drivers/atm/nicstar.c 	if (++i == scq->num_entries)
scq              1923 drivers/atm/nicstar.c 		skb = scq->skb[i];
scq              1937 drivers/atm/nicstar.c 			scq->skb[i] = NULL;
scq              1939 drivers/atm/nicstar.c 		if (++i == scq->num_entries)
scq              1942 drivers/atm/nicstar.c 	scq->tail = scq->base + pos;
scq              1943 drivers/atm/nicstar.c 	spin_unlock_irqrestore(&scq->lock, flags);
scq               702 drivers/atm/nicstar.h 	scq_info *scq;		/* To keep track of the SCQ */
scq              1277 drivers/infiniband/core/uverbs_cmd.c 	struct ib_cq			*scq = NULL, *rcq = NULL;
scq              1361 drivers/infiniband/core/uverbs_cmd.c 			scq = uobj_get_obj_read(cq, UVERBS_OBJECT_CQ,
scq              1364 drivers/infiniband/core/uverbs_cmd.c 			rcq = rcq ?: scq;
scq              1367 drivers/infiniband/core/uverbs_cmd.c 		if (!pd || (!scq && has_sq)) {
scq              1377 drivers/infiniband/core/uverbs_cmd.c 	attr.send_cq       = scq;
scq              1473 drivers/infiniband/core/uverbs_cmd.c 	if (scq)
scq              1474 drivers/infiniband/core/uverbs_cmd.c 		uobj_put_obj_read(scq);
scq              1475 drivers/infiniband/core/uverbs_cmd.c 	if (rcq && rcq != scq)
scq              1491 drivers/infiniband/core/uverbs_cmd.c 	if (scq)
scq              1492 drivers/infiniband/core/uverbs_cmd.c 		uobj_put_obj_read(scq);
scq              1493 drivers/infiniband/core/uverbs_cmd.c 	if (rcq && rcq != scq)
scq              1861 drivers/infiniband/core/verbs.c 	struct ib_cq *scq, *rcq;
scq              1876 drivers/infiniband/core/verbs.c 	scq  = qp->send_cq;
scq              1897 drivers/infiniband/core/verbs.c 		if (scq)
scq              1898 drivers/infiniband/core/verbs.c 			atomic_dec(&scq->usecnt);
scq               739 drivers/infiniband/hw/bnxt_re/ib_verbs.c 	__acquires(&qp->scq->cq_lock) __acquires(&qp->rcq->cq_lock)
scq               743 drivers/infiniband/hw/bnxt_re/ib_verbs.c 	spin_lock_irqsave(&qp->scq->cq_lock, flags);
scq               744 drivers/infiniband/hw/bnxt_re/ib_verbs.c 	if (qp->rcq != qp->scq)
scq               754 drivers/infiniband/hw/bnxt_re/ib_verbs.c 	__releases(&qp->scq->cq_lock) __releases(&qp->rcq->cq_lock)
scq               756 drivers/infiniband/hw/bnxt_re/ib_verbs.c 	if (qp->rcq != qp->scq)
scq               760 drivers/infiniband/hw/bnxt_re/ib_verbs.c 	spin_unlock_irqrestore(&qp->scq->cq_lock, flags);
scq               969 drivers/infiniband/hw/bnxt_re/ib_verbs.c 	qp->qplib_qp.scq = qp1_qp->scq;
scq              1056 drivers/infiniband/hw/bnxt_re/ib_verbs.c 		qp->qplib_qp.scq = &cq->qplib_cq;
scq              1057 drivers/infiniband/hw/bnxt_re/ib_verbs.c 		qp->scq = cq;
scq                92 drivers/infiniband/hw/bnxt_re/ib_verbs.h 	struct bnxt_re_cq	*scq;
scq                70 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	struct bnxt_qplib_cq *scq, *rcq;
scq                72 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	scq = qp->scq;
scq                76 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		dev_dbg(&scq->hwq.pdev->dev,
scq                79 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		list_add_tail(&qp->sq_flush, &scq->sqf_head);
scq                94 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	__acquires(&qp->scq->flush_lock) __acquires(&qp->rcq->flush_lock)
scq                96 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	spin_lock_irqsave(&qp->scq->flush_lock, *flags);
scq                97 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	if (qp->scq == qp->rcq)
scq               105 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	__releases(&qp->scq->flush_lock) __releases(&qp->rcq->flush_lock)
scq               107 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	if (qp->scq == qp->rcq)
scq               111 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	spin_unlock_irqrestore(&qp->scq->flush_lock, *flags);
scq               142 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	__clean_cq(qp->scq, (u64)(unsigned long)qp);
scq               774 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	if (qp->scq)
scq               775 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		req.scq_cid = cpu_to_le32(qp->scq->id);
scq               949 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	if (qp->scq)
scq               950 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		req.scq_cid = cpu_to_le32(qp->scq->id);
scq              1794 drivers/infiniband/hw/bnxt_re/qplib_fp.c 			nq_work->cq = qp->scq;
scq              1795 drivers/infiniband/hw/bnxt_re/qplib_fp.c 			nq_work->nq = qp->scq->nq;
scq              1797 drivers/infiniband/hw/bnxt_re/qplib_fp.c 			queue_work(qp->scq->nq->cqn_wq, &nq_work->work);
scq              2831 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	flush_workqueue(qp->scq->nq->cqn_wq);
scq              2832 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	if (qp->scq != qp->rcq)
scq               294 drivers/infiniband/hw/bnxt_re/qplib_fp.h 	struct bnxt_qplib_cq		*scq;
scq               770 drivers/infiniband/hw/cxgb3/iwch_provider.c 	qhp->attr.scq = ((struct iwch_cq *) attrs->send_cq)->cq.cqid;
scq               132 drivers/infiniband/hw/cxgb3/iwch_provider.h 	u32 scq;
scq               778 drivers/infiniband/hw/cxgb3/iwch_qp.c 	schp = get_chp(qhp->rhp, qhp->attr.scq);
scq               825 drivers/infiniband/hw/cxgb3/iwch_qp.c 	init_attr.scqid = qhp->attr.scq;
scq               139 drivers/infiniband/hw/cxgb4/ev.c 		cqid = qhp->attr.scq;
scq               456 drivers/infiniband/hw/cxgb4/iw_cxgb4.h 	u32 scq;
scq               200 drivers/infiniband/hw/cxgb4/qp.c 		     struct t4_cq *rcq, struct t4_cq *scq,
scq               337 drivers/infiniband/hw/cxgb4/qp.c 		FW_RI_RES_WR_IQID_V(scq->cqid));
scq              1811 drivers/infiniband/hw/cxgb4/qp.c 	wqe->u.init.scqid = cpu_to_be32(qhp->attr.scq);
scq              2197 drivers/infiniband/hw/cxgb4/qp.c 	qhp->attr.scq = ((struct c4iw_cq *) attrs->send_cq)->cq.cqid;
scq                62 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c static void pvrdma_lock_cqs(struct pvrdma_cq *scq, struct pvrdma_cq *rcq,
scq                65 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	__acquires(scq->cq_lock) __acquires(rcq->cq_lock)
scq                67 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	if (scq == rcq) {
scq                68 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 		spin_lock_irqsave(&scq->cq_lock, *scq_flags);
scq                70 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	} else if (scq->cq_handle < rcq->cq_handle) {
scq                71 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 		spin_lock_irqsave(&scq->cq_lock, *scq_flags);
scq                76 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 		spin_lock_irqsave_nested(&scq->cq_lock, *scq_flags,
scq                81 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c static void pvrdma_unlock_cqs(struct pvrdma_cq *scq, struct pvrdma_cq *rcq,
scq                84 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	__releases(scq->cq_lock) __releases(rcq->cq_lock)
scq                86 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	if (scq == rcq) {
scq                88 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 		spin_unlock_irqrestore(&scq->cq_lock, *scq_flags);
scq                89 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	} else if (scq->cq_handle < rcq->cq_handle) {
scq                91 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 		spin_unlock_irqrestore(&scq->cq_lock, *scq_flags);
scq                93 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 		spin_unlock_irqrestore(&scq->cq_lock, *scq_flags);
scq               100 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	struct pvrdma_cq *scq, *rcq;
scq               104 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	get_cqs(qp, &scq, &rcq);
scq               105 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	pvrdma_lock_cqs(scq, rcq, &scq_flags, &rcq_flags);
scq               107 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	_pvrdma_flush_cqe(qp, scq);
scq               108 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	if (scq != rcq)
scq               111 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	pvrdma_unlock_cqs(scq, rcq, &scq_flags, &rcq_flags);
scq               406 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	struct pvrdma_cq *scq;
scq               411 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	get_cqs(qp, &scq, &rcq);
scq               412 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	pvrdma_lock_cqs(scq, rcq, &scq_flags, &rcq_flags);
scq               414 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	_pvrdma_flush_cqe(qp, scq);
scq               415 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	if (scq != rcq)
scq               422 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c 	pvrdma_unlock_cqs(scq, rcq, &scq_flags, &rcq_flags);
scq               450 drivers/infiniband/sw/rxe/rxe_comp.c 		rxe_cq_post(qp->scq, &cqe, 0);
scq               344 drivers/infiniband/sw/rxe/rxe_qp.c 	struct rxe_cq *scq = to_rcq(init->send_cq);
scq               349 drivers/infiniband/sw/rxe/rxe_qp.c 	rxe_add_ref(scq);
scq               355 drivers/infiniband/sw/rxe/rxe_qp.c 	qp->scq			= scq;
scq               378 drivers/infiniband/sw/rxe/rxe_qp.c 	rxe_drop_ref(scq);
scq               820 drivers/infiniband/sw/rxe/rxe_qp.c 	if (qp->scq)
scq               821 drivers/infiniband/sw/rxe/rxe_qp.c 		rxe_drop_ref(qp->scq);
scq               245 drivers/infiniband/sw/rxe/rxe_verbs.h 	struct rxe_cq		*scq;
scq               444 drivers/infiniband/sw/siw/siw.h 	struct siw_cq *scq;
scq              1050 drivers/infiniband/sw/siw/siw_qp.c 	struct siw_cq *cq = qp->scq;
scq               317 drivers/infiniband/sw/siw/siw_verbs.c 	struct siw_cq *scq = NULL, *rcq = NULL;
scq               356 drivers/infiniband/sw/siw/siw_verbs.c 	scq = to_siw_cq(attrs->send_cq);
scq               359 drivers/infiniband/sw/siw/siw_verbs.c 	if (!scq || (!rcq && !attrs->srq)) {
scq               417 drivers/infiniband/sw/siw/siw_verbs.c 	qp->scq = scq;
scq               640 drivers/infiniband/sw/siw/siw_verbs.c 	qp->scq = qp->rcq = NULL;
scq               112 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_cq	       *scq;
scq              2965 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_cq *scq;
scq              3003 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		err = get_res(dev, slave, scqn, RES_CQ, &scq);
scq              3007 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		scq = rcq;
scq              3024 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	atomic_inc(&scq->ref_count);
scq              3025 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	qp->scq = scq;
scq              4003 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	atomic_dec(&qp->scq->ref_count);
scq              4716 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 					atomic_dec(&qp->scq->ref_count);