cons               13 arch/mips/sibyte/common/cfe_console.c static void cfe_console_write(struct console *cons, const char *str,
cons               44 arch/mips/sibyte/common/cfe_console.c static int cfe_console_setup(struct console *cons, char *str)
cons             5144 arch/powerpc/kvm/book3s_hv.c static int kvmppc_irq_bypass_add_producer_hv(struct irq_bypass_consumer *cons,
cons             5149 arch/powerpc/kvm/book3s_hv.c 		container_of(cons, struct kvm_kernel_irqfd, consumer);
cons             5161 arch/powerpc/kvm/book3s_hv.c static void kvmppc_irq_bypass_del_producer_hv(struct irq_bypass_consumer *cons,
cons             5166 arch/powerpc/kvm/book3s_hv.c 		container_of(cons, struct kvm_kernel_irqfd, consumer);
cons              835 arch/powerpc/kvm/powerpc.c int kvm_arch_irq_bypass_add_producer(struct irq_bypass_consumer *cons,
cons              839 arch/powerpc/kvm/powerpc.c 		container_of(cons, struct kvm_kernel_irqfd, consumer);
cons              843 arch/powerpc/kvm/powerpc.c 		return kvm->arch.kvm_ops->irq_bypass_add_producer(cons, prod);
cons              848 arch/powerpc/kvm/powerpc.c void kvm_arch_irq_bypass_del_producer(struct irq_bypass_consumer *cons,
cons              852 arch/powerpc/kvm/powerpc.c 		container_of(cons, struct kvm_kernel_irqfd, consumer);
cons              856 arch/powerpc/kvm/powerpc.c 		kvm->arch.kvm_ops->irq_bypass_del_producer(cons, prod);
cons               98 arch/s390/include/asm/cio.h 	__u32 cons  : 1;
cons              281 arch/sparc/include/asm/vio.h 	u32			cons;
cons              310 arch/sparc/include/asm/vio.h 		((dr->prod - dr->cons) & (ring_size - 1)) - 1);
cons             10305 arch/x86/kvm/x86.c int kvm_arch_irq_bypass_add_producer(struct irq_bypass_consumer *cons,
cons             10309 arch/x86/kvm/x86.c 		container_of(cons, struct kvm_kernel_irqfd, consumer);
cons             10317 arch/x86/kvm/x86.c void kvm_arch_irq_bypass_del_producer(struct irq_bypass_consumer *cons,
cons             10322 arch/x86/kvm/x86.c 		container_of(cons, struct kvm_kernel_irqfd, consumer);
cons              316 drivers/block/sunvdc.c 	dr->cons = vio_dring_next(dr, index);
cons              733 drivers/block/sunvdc.c 	dr->prod = dr->cons = 0;
cons             1104 drivers/block/sunvdc.c 	for (idx = dr->cons; idx != dr->prod; idx = vio_dring_next(dr, idx)) {
cons             1111 drivers/block/sunvdc.c 		dr->cons = vio_dring_next(dr, idx);
cons              209 drivers/char/virtio_console.c 	struct console cons;
cons              245 drivers/char/virtio_console.c 	struct console *cons;
cons              249 drivers/char/virtio_console.c 	list_for_each_entry(cons, &pdrvdata.consoles, list) {
cons              250 drivers/char/virtio_console.c 		if (cons->vtermno == vtermno) {
cons              251 drivers/char/virtio_console.c 			port = container_of(cons, struct port, cons);
cons              333 drivers/char/virtio_console.c 	if (port->cons.hvc)
cons             1180 drivers/char/virtio_console.c 		hvc_resize(port->cons.hvc, port->cons.ws);
cons             1248 drivers/char/virtio_console.c 	port->cons.vtermno = pdrvdata.next_vtermno;
cons             1250 drivers/char/virtio_console.c 	port->cons.hvc = hvc_alloc(port->cons.vtermno, 0, &hv_ops, PAGE_SIZE);
cons             1251 drivers/char/virtio_console.c 	if (IS_ERR(port->cons.hvc)) {
cons             1252 drivers/char/virtio_console.c 		ret = PTR_ERR(port->cons.hvc);
cons             1255 drivers/char/virtio_console.c 		port->cons.hvc = NULL;
cons             1260 drivers/char/virtio_console.c 	list_add_tail(&port->cons.list, &pdrvdata.consoles);
cons             1312 drivers/char/virtio_console.c 	seq_printf(s, "console_vtermno: %u\n", port->cons.vtermno);
cons             1324 drivers/char/virtio_console.c 	port->cons.ws.ws_row = rows;
cons             1325 drivers/char/virtio_console.c 	port->cons.ws.ws_col = cols;
cons             1379 drivers/char/virtio_console.c 	port->cons.hvc = NULL;
cons             1382 drivers/char/virtio_console.c 	port->cons.ws.ws_row = port->cons.ws.ws_col = 0;
cons             1383 drivers/char/virtio_console.c 	port->cons.vtermno = 0;
cons             1536 drivers/char/virtio_console.c 		list_del(&port->cons.list);
cons             1538 drivers/char/virtio_console.c 		hvc_remove(port->cons.hvc);
cons             1633 drivers/char/virtio_console.c 		port->cons.hvc->irq_requested = 1;
cons             1795 drivers/char/virtio_console.c 	if (is_console_port(port) && hvc_poll(port->cons.hvc))
cons               93 drivers/gpu/drm/qxl/qxl_cmd.c 	ret = header->prod - header->cons < header->num_items;
cons               95 drivers/gpu/drm/qxl/qxl_cmd.c 		header->notify_on_cons = header->cons + 1;
cons              107 drivers/gpu/drm/qxl/qxl_cmd.c 	ret = header->prod == header->cons;
cons              121 drivers/gpu/drm/qxl/qxl_cmd.c 	if (header->prod - header->cons == header->num_items) {
cons              122 drivers/gpu/drm/qxl/qxl_cmd.c 		header->notify_on_cons = header->cons + 1;
cons              168 drivers/gpu/drm/qxl/qxl_cmd.c 	if (header->cons == header->prod) {
cons              169 drivers/gpu/drm/qxl/qxl_cmd.c 		header->notify_on_prod = header->cons + 1;
cons              174 drivers/gpu/drm/qxl/qxl_cmd.c 	idx = header->cons & (ring->n_elements - 1);
cons              179 drivers/gpu/drm/qxl/qxl_cmd.c 	header->cons++;
cons              343 drivers/gpu/drm/qxl/qxl_dev.h 	uint32_t cons;
cons               86 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c 	u32 cons, prod;
cons              100 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c 	for (cons = page->in_cons; cons != prod; cons++) {
cons              103 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c 		event = &XENDISPL_IN_RING_REF(page, cons);
cons              114 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c 	page->in_cons = cons;
cons             2615 drivers/infiniband/hw/bnxt_re/ib_verbs.c 		resp.tail = cq->qplib_cq.hwq.cons;
cons              144 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->sq.hwq.cons = 0;
cons              147 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->rq.hwq.cons = 0;
cons              251 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	raw_cons = hwq->cons;
cons              315 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	if (hwq->cons != raw_cons) {
cons              316 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		hwq->cons = raw_cons;
cons              317 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		bnxt_qplib_ring_nq_db_rearm(nq->bar_reg_iomem, hwq->cons,
cons              331 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	sw_cons = HWQ_CMP(hwq->cons, hwq);
cons              346 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bnxt_qplib_ring_nq_db(nq->bar_reg_iomem, nq->hwq.cons,
cons              409 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bnxt_qplib_ring_nq_db_rearm(nq->bar_reg_iomem, nq->hwq.cons,
cons              618 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	sw_cons = HWQ_CMP(srq_hwq->cons, srq_hwq);
cons              707 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	sw_cons = HWQ_CMP(srq_hwq->cons, srq_hwq);
cons             1548 drivers/infiniband/hw/bnxt_re/qplib_fp.c 			sq->hwq.prod, sq->hwq.cons, sq->hwq.max_elements,
cons             1921 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	sw_cons = HWQ_CMP(cq_hwq->cons, cq_hwq);
cons             2026 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		sw_cons = HWQ_CMP(sq->hwq.cons, &sq->hwq);
cons             2045 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		sq->hwq.cons++;
cons             2048 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	if (!(*budget) && HWQ_CMP(sq->hwq.cons, &sq->hwq) != sw_prod)
cons             2080 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		sw_cons = HWQ_CMP(rq->hwq.cons, &rq->hwq);
cons             2091 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		rq->hwq.cons++;
cons             2094 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	if (!*budget && HWQ_CMP(rq->hwq.cons, &rq->hwq) != sw_prod)
cons             2151 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		peek_raw_cq_cons = cq->hwq.cons;
cons             2255 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		sw_sq_cons = HWQ_CMP(sq->hwq.cons, &sq->hwq);
cons             2299 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		sq->hwq.cons++;
cons             2305 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	if (HWQ_CMP(sq->hwq.cons, &sq->hwq) != cqe_sq_cons) {
cons             2325 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	srq->hwq.cons++; /* Support for SRQE counter */
cons             2390 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		rq->hwq.cons++;
cons             2472 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		rq->hwq.cons++;
cons             2491 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	raw_cons = cq->hwq.cons;
cons             2575 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		rq->hwq.cons++;
cons             2643 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		sw_cons = HWQ_CMP(sq->hwq.cons, &sq->hwq);
cons             2657 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		sq->hwq.cons++;
cons             2743 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	raw_cons = cq->hwq.cons;
cons             2813 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	if (cq->hwq.cons != raw_cons) {
cons             2814 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		cq->hwq.cons = raw_cons;
cons              341 drivers/infiniband/hw/bnxt_re/qplib_fp.h 		       &qplib_q->hwq) == HWQ_CMP(qplib_q->hwq.cons,
cons              354 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 		cmdq->cons += crsqe->req_size;
cons              377 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 	raw_cons = creq->cons;
cons              415 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 	if (creq->cons != raw_cons) {
cons              416 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 		creq->cons = raw_cons;
cons              432 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 	sw_cons = HWQ_CMP(creq->cons, creq);
cons              627 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 	bnxt_qplib_ring_creq_db(rcfw->creq_bar_reg_iomem, rcfw->creq.cons,
cons              684 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 				      rcfw->creq.cons, rcfw->creq.max_elements,
cons              156 drivers/infiniband/hw/bnxt_re/qplib_res.c 	hwq->cons = 0;
cons              285 drivers/infiniband/hw/bnxt_re/qplib_res.c 	hwq->cons = 0;
cons               53 drivers/infiniband/hw/bnxt_re/qplib_res.h 				- HWQ_CMP(hwq->cons, hwq))\
cons              102 drivers/infiniband/hw/bnxt_re/qplib_res.h 	u32				cons;		/* raw */
cons              325 drivers/infiniband/hw/qedr/qedr.h 	u16 cons;
cons              505 drivers/infiniband/hw/qedr/qedr.h 	info->cons = (info->cons + 1) % info->max_wr;
cons              683 drivers/infiniband/hw/qedr/qedr_roce_cm.c 	while (i < num_entries && qp->rq.cons != qp->rq.gsi_cons) {
cons              687 drivers/infiniband/hw/qedr/qedr_roce_cm.c 		wc[i].wr_id = qp->rqe_wr_id[qp->rq.cons].wr_id;
cons              690 drivers/infiniband/hw/qedr/qedr_roce_cm.c 		wc[i].status = (qp->rqe_wr_id[qp->rq.cons].rc) ?
cons              693 drivers/infiniband/hw/qedr/qedr_roce_cm.c 		wc[i].byte_len = qp->rqe_wr_id[qp->rq.cons].sg_list[0].length;
cons              695 drivers/infiniband/hw/qedr/qedr_roce_cm.c 		ether_addr_copy(wc[i].smac, qp->rqe_wr_id[qp->rq.cons].smac);
cons              698 drivers/infiniband/hw/qedr/qedr_roce_cm.c 		vlan_id = qp->rqe_wr_id[qp->rq.cons].vlan &
cons              703 drivers/infiniband/hw/qedr/qedr_roce_cm.c 			wc[i].sl = (qp->rqe_wr_id[qp->rq.cons].vlan &
cons              711 drivers/infiniband/hw/qedr/qedr_roce_cm.c 	while (i < num_entries && qp->sq.cons != qp->sq.gsi_cons) {
cons              715 drivers/infiniband/hw/qedr/qedr_roce_cm.c 		wc[i].wr_id = qp->wqe_wr_id[qp->sq.cons].wr_id;
cons              727 drivers/infiniband/hw/qedr/qedr_roce_cm.c 		 num_entries, i, qp->rq.cons, qp->rq.gsi_cons, qp->sq.cons,
cons              767 drivers/infiniband/hw/qedr/verbs.c static void doorbell_cq(struct qedr_cq *cq, u32 cons, u8 flags)
cons              770 drivers/infiniband/hw/qedr/verbs.c 	cq->db.data.value = cpu_to_le32(cons);
cons             1994 drivers/infiniband/hw/qedr/verbs.c 	qph->cons = 0;
cons             2083 drivers/infiniband/hw/qedr/verbs.c 			if ((qp->rq.prod != qp->rq.cons) ||
cons             2084 drivers/infiniband/hw/qedr/verbs.c 			    (qp->sq.prod != qp->sq.cons)) {
cons             2087 drivers/infiniband/hw/qedr/verbs.c 					  qp->rq.prod, qp->rq.cons, qp->sq.prod,
cons             2088 drivers/infiniband/hw/qedr/verbs.c 					  qp->sq.cons);
cons             2905 drivers/infiniband/hw/qedr/verbs.c 	return (((wq->prod + 1) % wq->max_wr) == wq->cons);
cons             3693 drivers/infiniband/hw/qedr/verbs.c 	if (qp->wqe_wr_id[qp->sq.cons].opcode == IB_WC_REG_MR)
cons             3694 drivers/infiniband/hw/qedr/verbs.c 		qp->wqe_wr_id[qp->sq.cons].mr->info.completed++;
cons             3705 drivers/infiniband/hw/qedr/verbs.c 		if (!qp->wqe_wr_id[qp->sq.cons].signaled && !force) {
cons             3718 drivers/infiniband/hw/qedr/verbs.c 		wc->wr_id = qp->wqe_wr_id[qp->sq.cons].wr_id;
cons             3719 drivers/infiniband/hw/qedr/verbs.c 		wc->opcode = qp->wqe_wr_id[qp->sq.cons].opcode;
cons             3723 drivers/infiniband/hw/qedr/verbs.c 			wc->byte_len = qp->wqe_wr_id[qp->sq.cons].bytes_len;
cons             3730 drivers/infiniband/hw/qedr/verbs.c 			qp->wqe_wr_id[qp->sq.cons].mr->info.completed++;
cons             3734 drivers/infiniband/hw/qedr/verbs.c 			wc->byte_len = qp->wqe_wr_id[qp->sq.cons].bytes_len;
cons             3744 drivers/infiniband/hw/qedr/verbs.c 		while (qp->wqe_wr_id[qp->sq.cons].wqe_size--)
cons             3967 drivers/infiniband/hw/qedr/verbs.c 	u64 wr_id = qp->rqe_wr_id[qp->rq.cons].wr_id;
cons             3971 drivers/infiniband/hw/qedr/verbs.c 	while (qp->rqe_wr_id[qp->rq.cons].wqe_size--)
cons             3990 drivers/infiniband/hw/qedr/verbs.c 		wc->wr_id = qp->rqe_wr_id[qp->rq.cons].wr_id;
cons             3995 drivers/infiniband/hw/qedr/verbs.c 		while (qp->rqe_wr_id[qp->rq.cons].wqe_size--)
cons              185 drivers/input/misc/xen-kbdfront.c 	__u32 cons, prod;
cons              191 drivers/input/misc/xen-kbdfront.c 	for (cons = page->in_cons; cons != prod; cons++)
cons              192 drivers/input/misc/xen-kbdfront.c 		xenkbd_handle_event(info, &XENKBD_IN_RING_REF(page, cons));
cons              194 drivers/input/misc/xen-kbdfront.c 	page->in_cons = cons;
cons              494 drivers/iommu/arm-smmu-v3.c 			u32		cons;
cons              498 drivers/iommu/arm-smmu-v3.c 			atomic_t	cons;
cons              714 drivers/iommu/arm-smmu-v3.c 	u32 space, prod, cons;
cons              717 drivers/iommu/arm-smmu-v3.c 	cons = Q_IDX(q, q->cons);
cons              719 drivers/iommu/arm-smmu-v3.c 	if (Q_WRP(q, q->prod) == Q_WRP(q, q->cons))
cons              720 drivers/iommu/arm-smmu-v3.c 		space = (1 << q->max_n_shift) - (prod - cons);
cons              722 drivers/iommu/arm-smmu-v3.c 		space = cons - prod;
cons              729 drivers/iommu/arm-smmu-v3.c 	return Q_IDX(q, q->prod) == Q_IDX(q, q->cons) &&
cons              730 drivers/iommu/arm-smmu-v3.c 	       Q_WRP(q, q->prod) != Q_WRP(q, q->cons);
cons              735 drivers/iommu/arm-smmu-v3.c 	return Q_IDX(q, q->prod) == Q_IDX(q, q->cons) &&
cons              736 drivers/iommu/arm-smmu-v3.c 	       Q_WRP(q, q->prod) == Q_WRP(q, q->cons);
cons              741 drivers/iommu/arm-smmu-v3.c 	return ((Q_WRP(q, q->cons) == Q_WRP(q, prod)) &&
cons              742 drivers/iommu/arm-smmu-v3.c 		(Q_IDX(q, q->cons) > Q_IDX(q, prod))) ||
cons              743 drivers/iommu/arm-smmu-v3.c 	       ((Q_WRP(q, q->cons) != Q_WRP(q, prod)) &&
cons              744 drivers/iommu/arm-smmu-v3.c 		(Q_IDX(q, q->cons) <= Q_IDX(q, prod)));
cons              754 drivers/iommu/arm-smmu-v3.c 	writel_relaxed(q->llq.cons, q->cons_reg);
cons              759 drivers/iommu/arm-smmu-v3.c 	u32 cons = (Q_WRP(q, q->cons) | Q_IDX(q, q->cons)) + 1;
cons              760 drivers/iommu/arm-smmu-v3.c 	q->cons = Q_OVF(q->cons) | Q_WRP(q, cons) | Q_IDX(q, cons);
cons              829 drivers/iommu/arm-smmu-v3.c 	queue_read(ent, Q_ENT(q, q->llq.cons), q->ent_dwords);
cons              948 drivers/iommu/arm-smmu-v3.c 	u32 cons = readl_relaxed(q->cons_reg);
cons              949 drivers/iommu/arm-smmu-v3.c 	u32 idx = FIELD_GET(CMDQ_CONS_ERR, cons);
cons              954 drivers/iommu/arm-smmu-v3.c 	dev_err(smmu->dev, "CMDQ error (cons 0x%08x): %s\n", cons,
cons              980 drivers/iommu/arm-smmu-v3.c 	queue_read(cmd, Q_ENT(q, cons), q->ent_dwords);
cons              991 drivers/iommu/arm-smmu-v3.c 	queue_write(Q_ENT(q, cons), cmd, q->ent_dwords);
cons             1168 drivers/iommu/arm-smmu-v3.c 		WRITE_ONCE(cmdq->q.llq.cons, readl_relaxed(cmdq->q.cons_reg));
cons             1206 drivers/iommu/arm-smmu-v3.c 	llq->cons = ret ? llq->prod : queue_inc_prod_n(llq, 1);
cons             1258 drivers/iommu/arm-smmu-v3.c 		llq->cons = readl(cmdq->q.cons_reg);
cons             1333 drivers/iommu/arm-smmu-v3.c 		head.cons = llq.cons;
cons             1418 drivers/iommu/arm-smmu-v3.c 			WRITE_ONCE(cmdq->q.llq.cons, llq.cons);
cons             1722 drivers/iommu/arm-smmu-v3.c 	llq->cons = Q_OVF(llq->prod) | Q_WRP(llq, llq->cons) |
cons             1723 drivers/iommu/arm-smmu-v3.c 		    Q_IDX(llq, llq->cons);
cons             1781 drivers/iommu/arm-smmu-v3.c 	llq->cons = Q_OVF(llq->prod) | Q_WRP(llq, llq->cons) |
cons             1782 drivers/iommu/arm-smmu-v3.c 		      Q_IDX(llq, llq->cons);
cons             2784 drivers/iommu/arm-smmu-v3.c 	q->llq.prod = q->llq.cons = 0;
cons             3209 drivers/iommu/arm-smmu-v3.c 	writel_relaxed(smmu->cmdq.q.llq.cons, smmu->base + ARM_SMMU_CMDQ_CONS);
cons             3238 drivers/iommu/arm-smmu-v3.c 	writel_relaxed(smmu->evtq.q.llq.cons,
cons             3255 drivers/iommu/arm-smmu-v3.c 		writel_relaxed(smmu->priq.q.llq.cons,
cons              619 drivers/net/ethernet/broadcom/b44.c 	u32 cur, cons;
cons              626 drivers/net/ethernet/broadcom/b44.c 	for (cons = bp->tx_cons; cons != cur; cons = NEXT_TX(cons)) {
cons              627 drivers/net/ethernet/broadcom/b44.c 		struct ring_info *rp = &bp->tx_buffers[cons];
cons              645 drivers/net/ethernet/broadcom/b44.c 	bp->tx_cons = cons;
cons              782 drivers/net/ethernet/broadcom/b44.c 	u32 cons, prod;
cons              787 drivers/net/ethernet/broadcom/b44.c 	cons = bp->rx_cons;
cons              789 drivers/net/ethernet/broadcom/b44.c 	while (cons != prod && budget > 0) {
cons              790 drivers/net/ethernet/broadcom/b44.c 		struct ring_info *rp = &bp->rx_buffers[cons];
cons              804 drivers/net/ethernet/broadcom/b44.c 			b44_recycle_rx(bp, cons, bp->rx_prod);
cons              827 drivers/net/ethernet/broadcom/b44.c 			skb_size = b44_alloc_rx_skb(bp, cons, bp->rx_prod);
cons              838 drivers/net/ethernet/broadcom/b44.c 			b44_recycle_rx(bp, cons, bp->rx_prod);
cons              857 drivers/net/ethernet/broadcom/b44.c 		cons = (cons + 1) & (B44_RX_RING_SIZE - 1);
cons              860 drivers/net/ethernet/broadcom/b44.c 	bp->rx_cons = cons;
cons              861 drivers/net/ethernet/broadcom/b44.c 	bw32(bp, B44_DMARX_PTR, cons * sizeof(struct dma_desc));
cons             2838 drivers/net/ethernet/broadcom/bnx2.c 	u16 cons;
cons             2840 drivers/net/ethernet/broadcom/bnx2.c 	cons = READ_ONCE(*bnapi->hw_tx_cons_ptr);
cons             2842 drivers/net/ethernet/broadcom/bnx2.c 	if (unlikely((cons & BNX2_MAX_TX_DESC_CNT) == BNX2_MAX_TX_DESC_CNT))
cons             2843 drivers/net/ethernet/broadcom/bnx2.c 		cons++;
cons             2844 drivers/net/ethernet/broadcom/bnx2.c 	return cons;
cons             2950 drivers/net/ethernet/broadcom/bnx2.c 	u16 cons = rxr->rx_pg_cons;
cons             2952 drivers/net/ethernet/broadcom/bnx2.c 	cons_rx_pg = &rxr->rx_pg_ring[cons];
cons             2977 drivers/net/ethernet/broadcom/bnx2.c 		cons_rx_pg = &rxr->rx_pg_ring[cons];
cons             2978 drivers/net/ethernet/broadcom/bnx2.c 		cons_bd = &rxr->rx_pg_desc_ring[BNX2_RX_RING(cons)]
cons             2979 drivers/net/ethernet/broadcom/bnx2.c 						[BNX2_RX_IDX(cons)];
cons             2983 drivers/net/ethernet/broadcom/bnx2.c 		if (prod != cons) {
cons             2993 drivers/net/ethernet/broadcom/bnx2.c 		cons = BNX2_RX_PG_RING_IDX(BNX2_NEXT_RX_BD(cons));
cons             2997 drivers/net/ethernet/broadcom/bnx2.c 	rxr->rx_pg_cons = cons;
cons             3002 drivers/net/ethernet/broadcom/bnx2.c 		   u8 *data, u16 cons, u16 prod)
cons             3007 drivers/net/ethernet/broadcom/bnx2.c 	cons_rx_buf = &rxr->rx_buf_ring[cons];
cons             3018 drivers/net/ethernet/broadcom/bnx2.c 	if (cons == prod)
cons             3024 drivers/net/ethernet/broadcom/bnx2.c 	cons_bd = &rxr->rx_desc_ring[BNX2_RX_RING(cons)][BNX2_RX_IDX(cons)];
cons             3138 drivers/net/ethernet/broadcom/bnx2.c 	u16 cons;
cons             3140 drivers/net/ethernet/broadcom/bnx2.c 	cons = READ_ONCE(*bnapi->hw_rx_cons_ptr);
cons             3142 drivers/net/ethernet/broadcom/bnx2.c 	if (unlikely((cons & BNX2_MAX_RX_DESC_CNT) == BNX2_MAX_RX_DESC_CNT))
cons             3143 drivers/net/ethernet/broadcom/bnx2.c 		cons++;
cons             3144 drivers/net/ethernet/broadcom/bnx2.c 	return cons;
cons              431 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 			    u16 cons, u16 prod,
cons              435 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 	struct sw_rx_bd *cons_rx_buf = &fp->rx_buf_ring[cons];
cons              458 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 		bnx2x_reuse_rx_data(fp, cons, prod);
cons              741 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h 	u16 cons;
cons              744 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h 	cons = txdata->tx_bd_cons;
cons              746 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h 	used = SUB_S16(prod, cons);
cons              780 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h 	u16 cons;
cons              784 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h 	cons = RCQ_BD(fp->rx_comp_cons);
cons              785 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h 	cqe = &fp->rx_comp_ring[cons];
cons              890 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h 				      u16 cons, u16 prod)
cons              892 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h 	struct sw_rx_bd *cons_rx_buf = &fp->rx_buf_ring[cons];
cons              894 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h 	struct eth_rx_bd *cons_bd = &fp->rx_desc_ring[cons];
cons              623 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	u16 cons = txr->tx_cons;
cons              633 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		tx_buf = &txr->tx_buf_ring[cons];
cons              634 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		cons = NEXT_TX(cons);
cons              648 drivers/net/ethernet/broadcom/bnxt/bnxt.c 			cons = NEXT_TX(cons);
cons              649 drivers/net/ethernet/broadcom/bnxt/bnxt.c 			tx_buf = &txr->tx_buf_ring[cons];
cons              658 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		cons = NEXT_TX(cons);
cons              665 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	txr->tx_cons = cons;
cons              758 drivers/net/ethernet/broadcom/bnxt/bnxt.c void bnxt_reuse_rx_data(struct bnxt_rx_ring_info *rxr, u16 cons, void *data)
cons              765 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	cons_rx_buf = &rxr->rx_buf_ring[cons];
cons              773 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	cons_bd = &rxr->rx_desc_ring[RX_RING(cons)][RX_IDX(cons)];
cons              881 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		u16 cons;
cons              891 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		cons = agg->rx_agg_cmp_opaque;
cons              892 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		__clear_bit(cons, rxr->rx_agg_bmap);
cons              899 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		cons_rx_buf = &rxr->rx_agg_ring[cons];
cons              925 drivers/net/ethernet/broadcom/bnxt/bnxt.c 					u16 cons, void *data, u8 *data_ptr,
cons              939 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		bnxt_reuse_rx_data(rxr, cons, data);
cons              971 drivers/net/ethernet/broadcom/bnxt/bnxt.c 				   struct bnxt_rx_ring_info *rxr, u16 cons,
cons              982 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		bnxt_reuse_rx_data(rxr, cons, data);
cons             1015 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		u16 cons, frag_len;
cons             1025 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		cons = agg->rx_agg_cmp_opaque;
cons             1029 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		cons_rx_buf = &rxr->rx_agg_ring[cons];
cons             1032 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		__clear_bit(cons, rxr->rx_agg_bmap);
cons             1211 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	u16 cons, prod, agg_id;
cons             1221 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	cons = tpa_start->rx_tpa_start_cmp_opaque;
cons             1223 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	cons_rx_buf = &rxr->rx_buf_ring[cons];
cons             1227 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	if (unlikely(cons != rxr->rx_next_cons ||
cons             1230 drivers/net/ethernet/broadcom/bnxt/bnxt.c 			    cons, rxr->rx_next_cons,
cons             1279 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	cons = NEXT_RX(cons);
cons             1280 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	rxr->rx_next_cons = NEXT_RX(cons);
cons             1281 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	cons_rx_buf = &rxr->rx_buf_ring[cons];
cons             1283 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	bnxt_reuse_rx_data(rxr, cons, cons_rx_buf->data);
cons             1680 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	u16 cfa_code, cons, prod, cp_cons = RING_CMP(tmp_raw_cons);
cons             1734 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	cons = rxcmp->rx_cmp_opaque;
cons             1735 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	if (unlikely(cons != rxr->rx_next_cons)) {
cons             1739 drivers/net/ethernet/broadcom/bnxt/bnxt.c 			    cons, rxr->rx_next_cons);
cons             1743 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	rx_buf = &rxr->rx_buf_ring[cons];
cons             1764 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		bnxt_reuse_rx_data(rxr, cons, data);
cons             1784 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	if (bnxt_rx_xdp(bp, rxr, cons, data, &data_ptr, &len, event)) {
cons             1791 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		bnxt_reuse_rx_data(rxr, cons, data);
cons             1806 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		skb = bp->rx_skb_func(bp, rxr, cons, data, data_ptr, dma_addr,
cons             1867 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	rxr->rx_next_cons = NEXT_RX(cons);
cons             2104 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	u32 cons = RING_CMP(cpr->cp_raw_cons);
cons             2107 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	prefetch(&cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]);
cons             2115 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	u16 cons = RING_CMP(raw_cons);
cons             2118 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)];
cons             2128 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	u32 cons = RING_CMP(cpr->cp_raw_cons);
cons             2131 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	prefetch(&cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)]);
cons             2156 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	u32 cons;
cons             2166 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		cons = RING_CMP(raw_cons);
cons             2167 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)];
cons             2420 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	u32 cons;
cons             2435 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		cons = RING_CMP(raw_cons);
cons             2436 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		nqcmp = &cpr->nq_desc_ring[CP_RING(cons)][CP_IDX(cons)];
cons             9864 drivers/net/ethernet/broadcom/bnxt/bnxt.c 				       u32 ring_id, u32 *prod, u32 *cons)
cons             9877 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		*cons = le32_to_cpu(resp->consumer_index);
cons             1961 drivers/net/ethernet/broadcom/bnxt/bnxt.h void bnxt_reuse_rx_data(struct bnxt_rx_ring_info *rxr, u16 cons, void *data);
cons             2751 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	u16 cp_cons, cons;
cons             2760 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	cons = rxcmp->rx_cmp_opaque;
cons             2761 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	rx_buf = &rxr->rx_buf_ring[cons];
cons             2783 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	u32 cons;
cons             2788 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 		cons = RING_CMP(raw_cons);
cons             2789 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 		txcmp = &cpr->cp_desc_ring[CP_RING(cons)][CP_IDX(cons)];
cons              111 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c bool bnxt_rx_xdp(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons,
cons              129 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c 	rx_buf = &rxr->rx_buf_ring[cons];
cons              166 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c 			bnxt_reuse_rx_data(rxr, cons, page);
cons              175 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c 		bnxt_reuse_rx_data(rxr, cons, page);
cons              189 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c 			bnxt_reuse_rx_data(rxr, cons, page);
cons              208 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c 		bnxt_reuse_rx_data(rxr, cons, page);
cons               17 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.h bool bnxt_rx_xdp(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons,
cons              162 drivers/net/ethernet/brocade/bna/bnad.c 	u32 wis, unmap_wis, hw_cons, cons, q_depth;
cons              173 drivers/net/ethernet/brocade/bna/bnad.c 	cons = tcb->consumer_index;
cons              176 drivers/net/ethernet/brocade/bna/bnad.c 	wis = BNA_Q_INDEX_CHANGE(cons, hw_cons, q_depth);
cons              180 drivers/net/ethernet/brocade/bna/bnad.c 		unmap = &unmap_q[cons];
cons              190 drivers/net/ethernet/brocade/bna/bnad.c 		cons = bnad_tx_buff_unmap(bnad, unmap_q, q_depth, cons);
cons             1382 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 			tx_ring->cons, tx_ring->prod);
cons              159 drivers/net/ethernet/mellanox/mlx4/en_rx.c 	return ring->prod == ring->cons;
cons              232 drivers/net/ethernet/mellanox/mlx4/en_rx.c 	       ring->cons, ring->prod);
cons              239 drivers/net/ethernet/mellanox/mlx4/en_rx.c 	ring->cons = 0;
cons              279 drivers/net/ethernet/mellanox/mlx4/en_rx.c 	ring->cons = 0;
cons              339 drivers/net/ethernet/mellanox/mlx4/en_rx.c 		ring->cons = 0;
cons              550 drivers/net/ethernet/mellanox/mlx4/en_rx.c 	u32 missing = ring->actual_size - (ring->prod - ring->cons);
cons              914 drivers/net/ethernet/mellanox/mlx4/en_rx.c 		ring->cons = cq->mcq.cons_index;
cons              191 drivers/net/ethernet/mellanox/mlx4/en_tx.c 	ring->cons = 0xffffffff;
cons              228 drivers/net/ethernet/mellanox/mlx4/en_tx.c 	return ring->prod - ring->cons > ring->full_size;
cons              368 drivers/net/ethernet/mellanox/mlx4/en_tx.c 	ring->cons += ring->last_nr_txbb;
cons              370 drivers/net/ethernet/mellanox/mlx4/en_tx.c 		 ring->cons, ring->prod);
cons              372 drivers/net/ethernet/mellanox/mlx4/en_tx.c 	if ((u32) (ring->prod - ring->cons) > ring->size) {
cons              378 drivers/net/ethernet/mellanox/mlx4/en_tx.c 	while (ring->cons != ring->prod) {
cons              380 drivers/net/ethernet/mellanox/mlx4/en_tx.c 						ring->cons & ring->size_mask,
cons              382 drivers/net/ethernet/mellanox/mlx4/en_tx.c 		ring->cons += ring->last_nr_txbb;
cons              425 drivers/net/ethernet/mellanox/mlx4/en_tx.c 	ring_cons = READ_ONCE(ring->cons);
cons              492 drivers/net/ethernet/mellanox/mlx4/en_tx.c 	WRITE_ONCE(ring->cons, ring_cons + txbbs_skipped);
cons              868 drivers/net/ethernet/mellanox/mlx4/en_tx.c 	ring_cons = READ_ONCE(ring->cons);
cons             1078 drivers/net/ethernet/mellanox/mlx4/en_tx.c 		ring_cons = READ_ONCE(ring->cons);
cons             1147 drivers/net/ethernet/mellanox/mlx4/en_tx.c 			 (u32)(ring->prod - READ_ONCE(ring->cons) - 1));
cons              130 drivers/net/ethernet/mellanox/mlx4/eq.c 		&slave_eq->event_eqe[slave_eq->cons & (SLAVE_EVENT_EQ_SIZE - 1)];
cons              132 drivers/net/ethernet/mellanox/mlx4/eq.c 		!!(slave_eq->cons & SLAVE_EVENT_EQ_SIZE)) ?
cons              189 drivers/net/ethernet/mellanox/mlx4/eq.c 		++slave_eq->cons;
cons              567 drivers/net/ethernet/mellanox/mlx4/mlx4.h 	u32 cons;
cons              281 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h 	u32			cons;
cons              343 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h 	u32 cons;
cons             3606 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	u32 cons[MAX_NUM_VOQS_E4], distance[MAX_NUM_VOQS_E4];
cons             3613 drivers/net/ethernet/qlogic/qed/qed_sriov.c 		cons[i] = qed_rd(p_hwfn, p_ptt,
cons             3619 drivers/net/ethernet/qlogic/qed/qed_sriov.c 		distance[i] = prod - cons[i];
cons             3631 drivers/net/ethernet/qlogic/qed/qed_sriov.c 			if (distance[i] > tmp - cons[i])
cons             3588 drivers/net/ethernet/sun/niu.c 	int cons, index;
cons             3604 drivers/net/ethernet/sun/niu.c 	cons = rp->cons;
cons             3607 drivers/net/ethernet/sun/niu.c 		     "%s() pkt_cnt[%u] cons[%d]\n", __func__, pkt_cnt, cons);
cons             3610 drivers/net/ethernet/sun/niu.c 		cons = release_tx_packet(np, rp, cons);
cons             3612 drivers/net/ethernet/sun/niu.c 	rp->cons = cons;
cons             4290 drivers/net/ethernet/sun/niu.c 		rp->cons = 0;
cons             4414 drivers/net/ethernet/sun/niu.c 	rp->cons = 0;
cons             6476 drivers/net/ethernet/sun/niu.c 			rp->cons = 0;
cons             2859 drivers/net/ethernet/sun/niu.h 	int			cons;
cons             2885 drivers/net/ethernet/sun/niu.h 		((tp->prod - tp->cons) & (MAX_TX_RING_SIZE - 1)));
cons              672 drivers/net/ethernet/sun/sunvnet_common.c 	u32 idx = dr->cons;
cons              710 drivers/net/ethernet/sun/sunvnet_common.c 	dr->cons = vio_dring_next(dr, end);
cons              711 drivers/net/ethernet/sun/sunvnet_common.c 	desc = vio_dring_entry(dr, dr->cons);
cons              717 drivers/net/ethernet/sun/sunvnet_common.c 		if (__vnet_tx_trigger(port, dr->cons) > 0)
cons             1491 drivers/net/ethernet/sun/sunvnet_common.c 					   port->vio._peer_sid, dr->cons);
cons             1495 drivers/net/ethernet/sun/sunvnet_common.c 	err = __vnet_tx_trigger(port, dr->cons);
cons             1765 drivers/net/ethernet/sun/sunvnet_common.c 	dr->cons = 0;
cons             1386 drivers/net/fddi/defxx.h 		PI_UINT8	cons;
cons             1451 drivers/net/fddi/defxx.h 		PI_UINT8	cons;
cons             1260 drivers/net/hippi/rrunner.c 	u32 index, cons;
cons             1277 drivers/net/hippi/rrunner.c 	cons = rrpriv->dirty_tx;
cons             1279 drivers/net/hippi/rrunner.c 	       index, cons);
cons             1292 drivers/net/hippi/rrunner.c 	if (rrpriv->tx_skbuff[cons]){
cons             1293 drivers/net/hippi/rrunner.c 		len = min_t(int, 0x80, rrpriv->tx_skbuff[cons]->len);
cons             1294 drivers/net/hippi/rrunner.c 		printk("skbuff for cons %i is valid - dumping data (0x%x bytes - skbuff len 0x%x)\n", cons, len, rrpriv->tx_skbuff[cons]->len);
cons             1296 drivers/net/hippi/rrunner.c 		       rrpriv->tx_ring[cons].mode,
cons             1297 drivers/net/hippi/rrunner.c 		       rrpriv->tx_ring[cons].size,
cons             1298 drivers/net/hippi/rrunner.c 		       (unsigned long long) rrpriv->tx_ring[cons].addr.addrlo,
cons             1299 drivers/net/hippi/rrunner.c 		       rrpriv->tx_skbuff[cons]->data,
cons             1300 drivers/net/hippi/rrunner.c 		       (unsigned int)rrpriv->tx_skbuff[cons]->truesize);
cons             1304 drivers/net/hippi/rrunner.c 			printk("%02x ", (unsigned char)rrpriv->tx_ring[cons].size);
cons              139 drivers/net/thunderbolt.c 	unsigned int cons;
cons              353 drivers/net/thunderbolt.c 	ring->cons = 0;
cons              463 drivers/net/thunderbolt.c 	return ring->prod - ring->cons;
cons              522 drivers/net/thunderbolt.c 	index = ring->cons++ & (TBNET_RING_SIZE - 1);
cons              578 drivers/net/thunderbolt.c 	ring->cons = 0;
cons              777 drivers/net/thunderbolt.c 		net->rx_ring.cons++;
cons             1139 drivers/net/thunderbolt.c 	net->tx_ring.cons -= frame_index;
cons              197 drivers/net/xen-netback/netback.c 	RING_IDX cons = queue->tx.req_cons;
cons              205 drivers/net/xen-netback/netback.c 		if (cons == end)
cons              207 drivers/net/xen-netback/netback.c 		RING_COPY_REQUEST(&queue->tx, cons++, txp);
cons              210 drivers/net/xen-netback/netback.c 	queue->tx.req_cons = cons;
cons              228 drivers/net/xen-netback/netback.c 	RING_IDX cons = queue->tx.req_cons;
cons              276 drivers/net/xen-netback/netback.c 		RING_COPY_REQUEST(&queue->tx, cons + slots, txp);
cons              313 drivers/net/xen-netback/netback.c 		xenvif_tx_err(queue, first, extra_count, cons + slots);
cons              604 drivers/net/xen-netback/netback.c 	RING_IDX cons = queue->tx.req_cons;
cons              613 drivers/net/xen-netback/netback.c 		RING_COPY_REQUEST(&queue->tx, cons, &extra);
cons              615 drivers/net/xen-netback/netback.c 		queue->tx.req_cons = ++cons;
cons               38 drivers/net/xen-netback/rx.c 	RING_IDX prod, cons;
cons               54 drivers/net/xen-netback/rx.c 		cons = queue->rx.req_cons;
cons               56 drivers/net/xen-netback/rx.c 		if (prod - cons >= needed)
cons              472 drivers/net/xen-netback/rx.c 	RING_IDX prod, cons;
cons              475 drivers/net/xen-netback/rx.c 	cons = queue->rx.req_cons;
cons              478 drivers/net/xen-netback/rx.c 		prod - cons < 1 &&
cons              485 drivers/net/xen-netback/rx.c 	RING_IDX prod, cons;
cons              488 drivers/net/xen-netback/rx.c 	cons = queue->rx.req_cons;
cons              490 drivers/net/xen-netback/rx.c 	return queue->stalled && prod - cons >= 1;
cons              376 drivers/net/xen-netfront.c 	RING_IDX cons, prod;
cons              387 drivers/net/xen-netfront.c 		for (cons = queue->tx.rsp_cons; cons != prod; cons++) {
cons              390 drivers/net/xen-netfront.c 			txrsp = RING_GET_RESPONSE(&queue->tx, cons);
cons              744 drivers/net/xen-netfront.c 	RING_IDX cons = queue->rx.rsp_cons;
cons              751 drivers/net/xen-netfront.c 		if (unlikely(cons + 1 == rp)) {
cons              759 drivers/net/xen-netfront.c 			RING_GET_RESPONSE(&queue->rx, ++cons);
cons              772 drivers/net/xen-netfront.c 		skb = xennet_get_rx_skb(queue, cons);
cons              773 drivers/net/xen-netfront.c 		ref = xennet_get_rx_ref(queue, cons);
cons              777 drivers/net/xen-netfront.c 	queue->rx.rsp_cons = cons;
cons              788 drivers/net/xen-netfront.c 	RING_IDX cons = queue->rx.rsp_cons;
cons              789 drivers/net/xen-netfront.c 	struct sk_buff *skb = xennet_get_rx_skb(queue, cons);
cons              790 drivers/net/xen-netfront.c 	grant_ref_t ref = xennet_get_rx_ref(queue, cons);
cons              798 drivers/net/xen-netfront.c 		cons = queue->rx.rsp_cons;
cons              836 drivers/net/xen-netfront.c 		if (cons + slots == rp) {
cons              843 drivers/net/xen-netfront.c 		rx = RING_GET_RESPONSE(&queue->rx, cons + slots);
cons              844 drivers/net/xen-netfront.c 		skb = xennet_get_rx_skb(queue, cons + slots);
cons              845 drivers/net/xen-netfront.c 		ref = xennet_get_rx_ref(queue, cons + slots);
cons              856 drivers/net/xen-netfront.c 		queue->rx.rsp_cons = cons + slots;
cons              894 drivers/net/xen-netfront.c 	RING_IDX cons = queue->rx.rsp_cons;
cons              899 drivers/net/xen-netfront.c 			RING_GET_RESPONSE(&queue->rx, ++cons);
cons              909 drivers/net/xen-netfront.c 			queue->rx.rsp_cons = ++cons + skb_queue_len(list);
cons              922 drivers/net/xen-netfront.c 	queue->rx.rsp_cons = cons;
cons              121 drivers/platform/mellanox/mlxbf-tmfifo.c 		struct virtio_console_config cons;
cons              411 drivers/platform/mellanox/mlxbf-tmfifo.c static void mlxbf_tmfifo_console_output_one(struct mlxbf_tmfifo_vdev *cons,
cons              416 drivers/platform/mellanox/mlxbf-tmfifo.c 	struct virtio_device *vdev = &cons->vdev;
cons              424 drivers/platform/mellanox/mlxbf-tmfifo.c 		seg = CIRC_SPACE_TO_END(cons->tx_buf.head, cons->tx_buf.tail,
cons              427 drivers/platform/mellanox/mlxbf-tmfifo.c 			memcpy(cons->tx_buf.buf + cons->tx_buf.head, addr, len);
cons              429 drivers/platform/mellanox/mlxbf-tmfifo.c 			memcpy(cons->tx_buf.buf + cons->tx_buf.head, addr, seg);
cons              431 drivers/platform/mellanox/mlxbf-tmfifo.c 			memcpy(cons->tx_buf.buf, addr, len - seg);
cons              433 drivers/platform/mellanox/mlxbf-tmfifo.c 		cons->tx_buf.head = (cons->tx_buf.head + len) %
cons              444 drivers/platform/mellanox/mlxbf-tmfifo.c static void mlxbf_tmfifo_console_output(struct mlxbf_tmfifo_vdev *cons,
cons              454 drivers/platform/mellanox/mlxbf-tmfifo.c 		avail = CIRC_SPACE(cons->tx_buf.head, cons->tx_buf.tail,
cons              461 drivers/platform/mellanox/mlxbf-tmfifo.c 		mlxbf_tmfifo_console_output_one(cons, vring, desc);
cons              498 drivers/platform/mellanox/mlxbf-tmfifo.c 	struct mlxbf_tmfifo_vdev *cons;
cons              508 drivers/platform/mellanox/mlxbf-tmfifo.c 	cons = fifo->vdev[VIRTIO_ID_CONSOLE];
cons              509 drivers/platform/mellanox/mlxbf-tmfifo.c 	if (!cons || !cons->tx_buf.buf)
cons              513 drivers/platform/mellanox/mlxbf-tmfifo.c 	size = CIRC_CNT(cons->tx_buf.head, cons->tx_buf.tail,
cons              531 drivers/platform/mellanox/mlxbf-tmfifo.c 		addr = cons->tx_buf.buf + cons->tx_buf.tail;
cons              533 drivers/platform/mellanox/mlxbf-tmfifo.c 		seg = CIRC_CNT_TO_END(cons->tx_buf.head, cons->tx_buf.tail,
cons              539 drivers/platform/mellanox/mlxbf-tmfifo.c 			memcpy((u8 *)&data + seg, cons->tx_buf.buf,
cons              545 drivers/platform/mellanox/mlxbf-tmfifo.c 			cons->tx_buf.tail = (cons->tx_buf.tail + sizeof(u64)) %
cons              549 drivers/platform/mellanox/mlxbf-tmfifo.c 			cons->tx_buf.tail = (cons->tx_buf.tail + size) %
cons             4193 drivers/s390/block/dasd.c 	} else if (irb->esw.esw0.erw.cons) {
cons             5477 drivers/s390/block/dasd_eckd.c 	if (irb->esw.esw0.erw.cons) {
cons              691 drivers/s390/block/dasd_fba.c 	if (irb->esw.esw0.erw.cons) {
cons              186 drivers/s390/cio/ccwreq.c 	if (irb->esw.esw0.erw.cons) {
cons              766 drivers/s390/cio/device_fsm.c 		    !irb->esw.esw0.erw.cons) {
cons              184 drivers/s390/cio/device_status.c 	cdev_irb->esw.esw0.erw.cons = irb->esw.esw0.erw.cons;
cons              185 drivers/s390/cio/device_status.c 	if (irb->esw.esw0.erw.cons)
cons              303 drivers/s390/cio/device_status.c 	    !(cdev_irb->esw.esw0.erw.cons))
cons              367 drivers/s390/cio/device_status.c 		cdev->private->dma_area->irb.esw.esw0.erw.cons = 1;
cons              389 drivers/s390/cio/device_status.c 		cdev->private->dma_area->irb.esw.esw0.erw.cons = 1;
cons              945 drivers/s390/cio/qdio_main.c 	if (irb->esw.esw0.erw.cons) {
cons             1037 drivers/s390/net/qeth_core_main.c 		if (irb->esw.esw0.erw.cons) {
cons              147 drivers/thunderbolt/nhi.c static void ring_iowrite_cons(struct tb_ring *ring, u16 cons)
cons              154 drivers/thunderbolt/nhi.c 	iowrite32(cons, ring_desc_base(ring) + 8);
cons               73 drivers/tty/hvc/hvc_xen.c static inline void notify_daemon(struct xencons_info *cons)
cons               76 drivers/tty/hvc/hvc_xen.c 	notify_remote_via_evtchn(cons->evtchn);
cons               82 drivers/tty/hvc/hvc_xen.c 	XENCONS_RING_IDX cons, prod;
cons               86 drivers/tty/hvc/hvc_xen.c 	cons = intf->out_cons;
cons               89 drivers/tty/hvc/hvc_xen.c 	BUG_ON((prod - cons) > sizeof(intf->out));
cons               91 drivers/tty/hvc/hvc_xen.c 	while ((sent < len) && ((prod - cons) < sizeof(intf->out)))
cons              105 drivers/tty/hvc/hvc_xen.c 	struct xencons_info *cons = vtermno_to_xencons(vtermno);
cons              106 drivers/tty/hvc/hvc_xen.c 	if (cons == NULL)
cons              116 drivers/tty/hvc/hvc_xen.c 		int sent = __write_console(cons, data, len);
cons              131 drivers/tty/hvc/hvc_xen.c 	XENCONS_RING_IDX cons, prod;
cons              138 drivers/tty/hvc/hvc_xen.c 	cons = intf->in_cons;
cons              141 drivers/tty/hvc/hvc_xen.c 	BUG_ON((prod - cons) > sizeof(intf->in));
cons              143 drivers/tty/hvc/hvc_xen.c 	while (cons != prod && recv < len)
cons              144 drivers/tty/hvc/hvc_xen.c 		buf[recv++] = intf->in[MASK_XENCONS_IDX(cons++, intf->in)];
cons              147 drivers/tty/hvc/hvc_xen.c 	intf->in_cons = cons;
cons              292 drivers/tty/mips_ejtag_fdc.c 	struct console		 cons;
cons              303 drivers/tty/mips_ejtag_fdc.c 	struct mips_ejtag_fdc_console *cons =
cons              304 drivers/tty/mips_ejtag_fdc.c 		container_of(c, struct mips_ejtag_fdc_console, cons);
cons              317 drivers/tty/mips_ejtag_fdc.c 	regs = cons->regs[cpu];
cons              321 drivers/tty/mips_ejtag_fdc.c 		cons->regs[cpu] = regs;
cons              358 drivers/tty/mips_ejtag_fdc.c 	struct mips_ejtag_fdc_console *cons =
cons              359 drivers/tty/mips_ejtag_fdc.c 		container_of(c, struct mips_ejtag_fdc_console, cons);
cons              362 drivers/tty/mips_ejtag_fdc.c 	return cons->tty_drv;
cons              385 drivers/tty/mips_ejtag_fdc.c 	register_console(&c->cons);
cons              392 drivers/tty/mips_ejtag_fdc.c 	.cons	= {
cons              593 drivers/tty/mips_ejtag_fdc.c 			if (channel == mips_ejtag_fdc_con.cons.index) {
cons             1134 drivers/tty/mips_ejtag_fdc.c 	.cons	= {
cons              478 drivers/tty/serial/21285.c 	.cons			= SERIAL_21285_CONSOLE,
cons              603 drivers/tty/serial/8250/8250_core.c 	port->cons = co;
cons              607 drivers/tty/serial/8250/8250_core.c 		port->cons = NULL;
cons              657 drivers/tty/serial/8250/8250_core.c 		port->cons = co;
cons              697 drivers/tty/serial/8250/8250_core.c 	.cons			= SERIAL8250_CONSOLE,
cons              380 drivers/tty/serial/8250/8250_mtk.c 		up->port.cons->cflag = termios->c_cflag;
cons             3127 drivers/tty/serial/8250/8250_port.c 	termios.c_cflag = port->cons->cflag;
cons             3232 drivers/tty/serial/8250/8250_port.c 	return uart_set_options(port, port->cons, baud, parity, bits, flow);
cons              415 drivers/tty/serial/altera_jtaguart.c 	.cons		= ALTERA_JTAGUART_CONSOLE,
cons              550 drivers/tty/serial/altera_uart.c 	.cons		= ALTERA_UART_CONSOLE,
cons              695 drivers/tty/serial/amba-pl010.c 	.cons			= AMBA_CONSOLE,
cons             2393 drivers/tty/serial/amba-pl011.c 		port->cons = co;
cons             2507 drivers/tty/serial/amba-pl011.c 	.cons			= AMBA_CONSOLE,
cons              545 drivers/tty/serial/apbuart.c 	.cons = APBUART_CONSOLE,
cons              618 drivers/tty/serial/ar933x_uart.c 	.cons		= NULL, /* filled in runtime */
cons              752 drivers/tty/serial/ar933x_uart.c 	ar933x_uart_driver.cons = &ar933x_uart_console;
cons              122 drivers/tty/serial/arc_uart.c 	.cons		= &arc_console,
cons             2680 drivers/tty/serial/atmel_serial.c 	return port->cons && port->cons->index == port->line;
cons             2699 drivers/tty/serial/atmel_serial.c 	.cons		= ATMEL_CONSOLE_DEVICE,
cons              805 drivers/tty/serial/bcm63xx_uart.c 	.cons		= BCM63XX_CONSOLE,
cons              544 drivers/tty/serial/clps711x.c 	clps711x_uart.cons = &clps711x_console;
cons             1398 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	.cons		= CPM_UART_CONSOLE,
cons              536 drivers/tty/serial/digicolor-usart.c 		digicolor_uart.cons = &digicolor_console;
cons              924 drivers/tty/serial/dz.c 	.cons			= SERIAL_DZ_CONSOLE,
cons              661 drivers/tty/serial/efm32-uart.c 	.cons = &efm32_uart_console,
cons              824 drivers/tty/serial/fsl_linflexuart.c 	.cons		= LINFLEX_CONSOLE,
cons             2369 drivers/tty/serial/fsl_lpuart.c 	.cons		= LPUART_CONSOLE,
cons             2452 drivers/tty/serial/fsl_lpuart.c 		lpuart_reg.cons = LPUART32_CONSOLE;
cons             2456 drivers/tty/serial/fsl_lpuart.c 		lpuart_reg.cons = LPUART_CONSOLE;
cons             1300 drivers/tty/serial/icom.c 	.cons = ICOM_CONSOLE,
cons             2158 drivers/tty/serial/imx.c 	.cons           = IMX_CONSOLE,
cons             1077 drivers/tty/serial/ip22zilog.c 	.cons		= &ip22zilog_console,
cons              149 drivers/tty/serial/kgdboc.c 	struct console *cons;
cons              172 drivers/tty/serial/kgdboc.c 	cons = console_drivers;
cons              173 drivers/tty/serial/kgdboc.c 	while (cons) {
cons              175 drivers/tty/serial/kgdboc.c 		if (cons->device && cons->device(cons, &idx) == p &&
cons              180 drivers/tty/serial/kgdboc.c 		cons = cons->next;
cons              716 drivers/tty/serial/lantiq.c 	.cons =		&lqasc_console,
cons              208 drivers/tty/serial/lpc32xx_hs.c 	.cons		= LPC32XX_HSUART_CONSOLE,
cons              609 drivers/tty/serial/mcf.c 	.cons		= MCF_CONSOLE,
cons              584 drivers/tty/serial/meson_uart.c 	.cons		= MESON_SERIAL_CONSOLE,
cons              497 drivers/tty/serial/milbeaut_usio.c 	.cons           = USIO_CONSOLE,
cons             1718 drivers/tty/serial/mpc52xx_uart.c 	.cons		= MPC52xx_PSC_CONSOLE,
cons              523 drivers/tty/serial/mps2-uart.c 	.cons = MPS2_SERIAL_CONSOLE,
cons             1747 drivers/tty/serial/msm_serial.c 	.cons = MSM_CONSOLE,
cons              463 drivers/tty/serial/mux.c 		mux_driver.cons = MUX_CONSOLE;
cons              745 drivers/tty/serial/mvebu-uart.c 	.cons			= &mvebu_uart_console,
cons             1491 drivers/tty/serial/mxs-auart.c 	.cons =		&auart_console,
cons              533 drivers/tty/serial/omap-serial.c 	if (up->port.line == up->port.cons->index) {
cons             1479 drivers/tty/serial/omap-serial.c 	.cons		= OMAP_CONSOLE,
cons              620 drivers/tty/serial/owl-uart.c 	.cons = OWL_UART_CONSOLE,
cons             1731 drivers/tty/serial/pch_uart.c 	.cons = PCH_CONSOLE,
cons              773 drivers/tty/serial/pic32_uart.c 	return port->cons && port->cons->index == port->line;
cons              798 drivers/tty/serial/pic32_uart.c 	.cons			= PIC32_SCONSOLE,
cons             1824 drivers/tty/serial/pmac_zilog.c 	pmz_uart_reg.cons = PMACZILOG_CONSOLE;
cons              773 drivers/tty/serial/pnx8xxx_uart.c 	.cons			= PNX8XXX_CONSOLE,
cons              143 drivers/tty/serial/pxa.c 			if (up->port.line == up->port.cons->index) {
cons              792 drivers/tty/serial/pxa.c 	.cons		= PXA_CONSOLE,
cons              841 drivers/tty/serial/qcom_geni_serial.c 		console_stop(uport->cons);
cons             1186 drivers/tty/serial/qcom_geni_serial.c 	.cons = &cons_ops,
cons              708 drivers/tty/serial/rda-uart.c 	.cons = RDA_UART_CONSOLE,
cons              837 drivers/tty/serial/sa1100.c 	.cons			= SA1100_CONSOLE,
cons             1521 drivers/tty/serial/samsung.c 	.cons		= S3C24XX_SERIAL_CONSOLE,
cons              924 drivers/tty/serial/sb1250-duart.c 	.cons		= SERIAL_SB1250_DUART_CONSOLE,
cons              975 drivers/tty/serial/sccnxp.c 	s->uart.cons		= &s->console;
cons              976 drivers/tty/serial/sccnxp.c 	s->uart.cons->device	= uart_console_device;
cons              977 drivers/tty/serial/sccnxp.c 	s->uart.cons->write	= sccnxp_console_write;
cons              978 drivers/tty/serial/sccnxp.c 	s->uart.cons->setup	= sccnxp_console_setup;
cons              979 drivers/tty/serial/sccnxp.c 	s->uart.cons->flags	= CON_PRINTBUFFER;
cons              980 drivers/tty/serial/sccnxp.c 	s->uart.cons->index	= -1;
cons              981 drivers/tty/serial/sccnxp.c 	s->uart.cons->data	= s;
cons              982 drivers/tty/serial/sccnxp.c 	strcpy(s->uart.cons->name, "ttySC");
cons             1410 drivers/tty/serial/serial-tegra.c 	.cons		= NULL,
cons              221 drivers/tty/serial/serial_core.c 		if (uart_console(uport) && uport->cons->cflag) {
cons              222 drivers/tty/serial/serial_core.c 			tty->termios.c_cflag = uport->cons->cflag;
cons              223 drivers/tty/serial/serial_core.c 			uport->cons->cflag = 0;
cons              292 drivers/tty/serial/serial_core.c 			uport->cons->cflag = tty->termios.c_cflag;
cons             2069 drivers/tty/serial/serial_core.c 	if (!(uart_console(port) && (port->cons->flags & CON_ENABLED))) {
cons             2203 drivers/tty/serial/serial_core.c 		console_stop(uport->cons);
cons             2241 drivers/tty/serial/serial_core.c 		termios.c_cflag = uport->cons->cflag;
cons             2253 drivers/tty/serial/serial_core.c 			console_start(uport->cons);
cons             2377 drivers/tty/serial/serial_core.c 		if (port->cons && !(port->cons->flags & CON_ENABLED))
cons             2378 drivers/tty/serial/serial_core.c 			register_console(port->cons);
cons             2817 drivers/tty/serial/serial_core.c 	uport->cons = drv->cons;
cons             2830 drivers/tty/serial/serial_core.c 	if (!(uart_console(uport) && (uport->cons->flags & CON_ENABLED))) {
cons             2834 drivers/tty/serial/serial_core.c 	if (uport->cons && uport->dev)
cons             2835 drivers/tty/serial/serial_core.c 		of_console_check(uport->dev->of_node, uport->cons->name, uport->line);
cons             2935 drivers/tty/serial/serial_core.c 		unregister_console(uport->cons);
cons              606 drivers/tty/serial/serial_txx9.c 	if (up->port.cons && up->port.line == up->port.cons->index) {
cons              832 drivers/tty/serial/serial_txx9.c 	if (up->port.line == up->port.cons->index)
cons              988 drivers/tty/serial/serial_txx9.c 	.cons			= SERIAL_TXX9_CONSOLE,
cons             3151 drivers/tty/serial/sh-sci.c 	.cons		= SCI_CONSOLE,
cons              888 drivers/tty/serial/sifive.c 	.cons		= SIFIVE_SERIAL_CONSOLE,
cons             1107 drivers/tty/serial/sirfsoc_uart.c 	sirfport->port.cons = co;
cons             1161 drivers/tty/serial/sirfsoc_uart.c 	.cons			= &sirfsoc_uart_console,
cons             1163 drivers/tty/serial/sirfsoc_uart.c 	.cons			= NULL,
cons             1073 drivers/tty/serial/sprd_serial.c 	.cons = SPRD_CONSOLE,
cons             1118 drivers/tty/serial/sprd_serial.c 	struct console *cons = sprd_uart_driver.cons;
cons             1120 drivers/tty/serial/sprd_serial.c 	if (cons && cons->index >= 0 && cons->index == uport->line)
cons              963 drivers/tty/serial/st-asc.c 	.cons		= ASC_SERIAL_CONSOLE,
cons             1342 drivers/tty/serial/stm32-usart.c 	.cons		= STM32_SERIAL_CONSOLE,
cons               61 drivers/tty/serial/suncore.c 	drv->cons = con;
cons              158 drivers/tty/serial/sunsab.c 	    (up->port.line == up->port.cons->index))
cons              344 drivers/tty/serial/sunsu.c 				if (up->port.cons != NULL &&
cons              345 drivers/tty/serial/sunsu.c 				    up->port.line == up->port.cons->index)
cons              367 drivers/tty/serial/sunsu.c 			if (up->port.cons != NULL &&
cons              368 drivers/tty/serial/sunsu.c 			    up->port.line == up->port.cons->index) {
cons             1610 drivers/tty/serial/sunzilog.c 		sunzilog_reg.cons = NULL;
cons              147 drivers/tty/serial/tegra-tcu.c static void tegra_tcu_console_write(struct console *cons, const char *s,
cons              150 drivers/tty/serial/tegra-tcu.c 	struct tegra_tcu *tcu = container_of(cons, struct tegra_tcu, console);
cons              155 drivers/tty/serial/tegra-tcu.c static int tegra_tcu_console_setup(struct console *cons, char *options)
cons              221 drivers/tty/serial/tegra-tcu.c 	tcu->driver.cons = &tcu->console;
cons              601 drivers/tty/serial/uartlite.c 	.cons		= &ulite_console,
cons              668 drivers/tty/serial/uartlite.c 	if (ulite_uart_driver.cons->index == -1)
cons              683 drivers/tty/serial/uartlite.c 	if (ulite_uart_driver.cons->index == -1)
cons              851 drivers/tty/serial/vr41xx_siu.c 	.cons		= SERIAL_VR41XX_CONSOLE,
cons              615 drivers/tty/serial/vt8500_serial.c 	.cons		= VT8500_CONSOLE,
cons             1447 drivers/tty/serial/xilinx_uartps.c 		cdns_uart_uart_driver.cons = &cdns_uart_console;
cons             1577 drivers/tty/serial/xilinx_uartps.c 	    !(cdns_uart_uart_driver.cons->flags & CON_ENABLED))
cons             1262 drivers/tty/serial/zs.c 	.cons			= SERIAL_ZS_CONSOLE,
cons              119 drivers/video/fbdev/xen-fbfront.c 	u32 cons, prod;
cons              122 drivers/video/fbdev/xen-fbfront.c 	cons = info->page->out_cons;
cons              123 drivers/video/fbdev/xen-fbfront.c 	return prod - cons == XENFB_OUT_RING_LEN;
cons               95 drivers/xen/pvcalls-back.c 	RING_IDX cons, prod, size, wanted, array_size, masked_prod, masked_cons;
cons              103 drivers/xen/pvcalls-back.c 	cons = intf->in_cons;
cons              112 drivers/xen/pvcalls-back.c 	size = pvcalls_queued(prod, cons, array_size);
cons              125 drivers/xen/pvcalls-back.c 	masked_cons = pvcalls_mask(cons, array_size);
cons              172 drivers/xen/pvcalls-back.c 	RING_IDX cons, prod, size, array_size;
cons              175 drivers/xen/pvcalls-back.c 	cons = intf->out_cons;
cons              181 drivers/xen/pvcalls-back.c 	size = pvcalls_queued(prod, cons, array_size);
cons              187 drivers/xen/pvcalls-back.c 	if (pvcalls_mask(prod, array_size) > pvcalls_mask(cons, array_size)) {
cons              188 drivers/xen/pvcalls-back.c 		vec[0].iov_base = data->out + pvcalls_mask(cons, array_size);
cons              192 drivers/xen/pvcalls-back.c 		vec[0].iov_base = data->out + pvcalls_mask(cons, array_size);
cons              193 drivers/xen/pvcalls-back.c 		vec[0].iov_len = array_size - pvcalls_mask(cons, array_size);
cons              214 drivers/xen/pvcalls-back.c 		intf->out_cons = cons + ret;
cons              219 drivers/xen/pvcalls-back.c 	if (prod != cons + ret)
cons              137 drivers/xen/pvcalls-front.c 	RING_IDX cons, prod, size = XEN_FLEX_RING_SIZE(PVCALLS_RING_ORDER);
cons              146 drivers/xen/pvcalls-front.c 	cons = intf->out_cons;
cons              148 drivers/xen/pvcalls-front.c 	return !!(size - pvcalls_queued(prod, cons, size));
cons              154 drivers/xen/pvcalls-front.c 	RING_IDX cons, prod;
cons              157 drivers/xen/pvcalls-front.c 	cons = intf->in_cons;
cons              161 drivers/xen/pvcalls-front.c 		pvcalls_queued(prod, cons,
cons              485 drivers/xen/pvcalls-front.c 	RING_IDX cons, prod, size, masked_prod, masked_cons;
cons              492 drivers/xen/pvcalls-front.c 	cons = intf->out_cons;
cons              497 drivers/xen/pvcalls-front.c 	size = pvcalls_queued(prod, cons, array_size);
cons              506 drivers/xen/pvcalls-front.c 	masked_cons = pvcalls_mask(cons, array_size);
cons              580 drivers/xen/pvcalls-front.c 	RING_IDX cons, prod, size, masked_prod, masked_cons;
cons              584 drivers/xen/pvcalls-front.c 	cons = intf->in_cons;
cons              590 drivers/xen/pvcalls-front.c 	size = pvcalls_queued(prod, cons, array_size);
cons              592 drivers/xen/pvcalls-front.c 	masked_cons = pvcalls_mask(cons, array_size);
cons               74 drivers/xen/xenbus/xenbus_comms.c static int check_indexes(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod)
cons               76 drivers/xen/xenbus/xenbus_comms.c 	return ((prod - cons) <= XENSTORE_RING_SIZE);
cons               79 drivers/xen/xenbus/xenbus_comms.c static void *get_output_chunk(XENSTORE_RING_IDX cons,
cons               84 drivers/xen/xenbus/xenbus_comms.c 	if ((XENSTORE_RING_SIZE - (prod - cons)) < *len)
cons               85 drivers/xen/xenbus/xenbus_comms.c 		*len = XENSTORE_RING_SIZE - (prod - cons);
cons               89 drivers/xen/xenbus/xenbus_comms.c static const void *get_input_chunk(XENSTORE_RING_IDX cons,
cons               93 drivers/xen/xenbus/xenbus_comms.c 	*len = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(cons);
cons               94 drivers/xen/xenbus/xenbus_comms.c 	if ((prod - cons) < *len)
cons               95 drivers/xen/xenbus/xenbus_comms.c 		*len = prod - cons;
cons               96 drivers/xen/xenbus/xenbus_comms.c 	return buf + MASK_XENSTORE_IDX(cons);
cons              117 drivers/xen/xenbus/xenbus_comms.c 	XENSTORE_RING_IDX cons, prod;
cons              125 drivers/xen/xenbus/xenbus_comms.c 		cons = intf->req_cons;
cons              127 drivers/xen/xenbus/xenbus_comms.c 		if (!check_indexes(cons, prod)) {
cons              137 drivers/xen/xenbus/xenbus_comms.c 		dst = get_output_chunk(cons, prod, intf->req, &avail);
cons              169 drivers/xen/xenbus/xenbus_comms.c 	XENSTORE_RING_IDX cons, prod;
cons              177 drivers/xen/xenbus/xenbus_comms.c 		cons = intf->rsp_cons;
cons              179 drivers/xen/xenbus/xenbus_comms.c 		if (cons == prod)
cons              182 drivers/xen/xenbus/xenbus_comms.c 		if (!check_indexes(cons, prod)) {
cons              187 drivers/xen/xenbus/xenbus_comms.c 		src = get_input_chunk(cons, prod, intf->rsp, &avail);
cons              206 drivers/xen/xenbus/xenbus_comms.c 		if (intf->rsp_prod - cons >= XENSTORE_RING_SIZE)
cons               83 drivers/xen/xenbus/xenbus_dev_frontend.c 	unsigned int cons;
cons              151 drivers/xen/xenbus/xenbus_dev_frontend.c 		unsigned sz = min((unsigned)len - i, rb->len - rb->cons);
cons              153 drivers/xen/xenbus/xenbus_dev_frontend.c 		ret = copy_to_user(ubuf + i, &rb->msg[rb->cons], sz);
cons              156 drivers/xen/xenbus/xenbus_dev_frontend.c 		rb->cons += sz - ret;
cons              165 drivers/xen/xenbus/xenbus_dev_frontend.c 		if (rb->cons == rb->len) {
cons              202 drivers/xen/xenbus/xenbus_dev_frontend.c 	rb->cons = 0;
cons             1035 include/linux/device.h static inline void device_connections_add(struct device_connection *cons)
cons             1039 include/linux/device.h 	for (c = cons; c->endpoint[0]; c++)
cons             1047 include/linux/device.h static inline void device_connections_remove(struct device_connection *cons)
cons             1051 include/linux/device.h 	for (c = cons; c->endpoint[0]; c++)
cons               24 include/linux/serial_core.h 	((port)->cons && (port)->cons->index == (port)->line)
cons              163 include/linux/serial_core.h 	struct console		*cons;			/* struct console, if any */
cons              310 include/linux/serial_core.h 	struct console		*cons;
cons              526 include/linux/serial_core.h 	if (port->cons && port->cons->index == port->line) {
cons              391 include/xen/interface/io/ring.h                                      RING_IDX cons,                           \
cons              396 include/xen/interface/io/ring.h     if (prod == cons)                                                         \
cons              400 include/xen/interface/io/ring.h     cons = name##_mask(cons, ring_size);                                      \
cons              402 include/xen/interface/io/ring.h     if (prod == cons)                                                         \
cons              405 include/xen/interface/io/ring.h     if (prod > cons)                                                          \
cons              406 include/xen/interface/io/ring.h         size = prod - cons;                                                   \
cons              408 include/xen/interface/io/ring.h         size = ring_size - (cons - prod);                                     \
cons              129 net/9p/trans_xen.c 	RING_IDX cons, prod;
cons              131 net/9p/trans_xen.c 	cons = ring->intf->out_cons;
cons              136 net/9p/trans_xen.c 		xen_9pfs_queued(prod, cons, XEN_9PFS_RING_SIZE) >= size;
cons              142 net/9p/trans_xen.c 	RING_IDX cons, prod, masked_cons, masked_prod;
cons              166 net/9p/trans_xen.c 	cons = ring->intf->out_cons;
cons              170 net/9p/trans_xen.c 	if (XEN_9PFS_RING_SIZE - xen_9pfs_queued(prod, cons,
cons              177 net/9p/trans_xen.c 	masked_cons = xen_9pfs_mask(cons, XEN_9PFS_RING_SIZE);
cons              197 net/9p/trans_xen.c 	RING_IDX cons, prod, masked_cons, masked_prod;
cons              206 net/9p/trans_xen.c 		cons = ring->intf->in_cons;
cons              210 net/9p/trans_xen.c 		if (xen_9pfs_queued(prod, cons, XEN_9PFS_RING_SIZE) <
cons              217 net/9p/trans_xen.c 		masked_cons = xen_9pfs_mask(cons, XEN_9PFS_RING_SIZE);
cons              227 net/9p/trans_xen.c 			cons += h.size;
cons              229 net/9p/trans_xen.c 			ring->intf->in_cons = cons;
cons              236 net/9p/trans_xen.c 		masked_cons = xen_9pfs_mask(cons, XEN_9PFS_RING_SIZE);
cons              243 net/9p/trans_xen.c 		cons += h.size;
cons              244 net/9p/trans_xen.c 		ring->intf->in_cons = cons;
cons             1790 net/smc/af_smc.c 	union smc_host_cursor cons, urg;
cons             1853 net/smc/af_smc.c 			smc_curs_copy(&cons, &conn->local_tx_ctrl.cons, conn);
cons             1856 net/smc/af_smc.c 					     &cons, &urg) == 1;
cons              107 net/smc/smc.h  	union smc_host_cursor		cons;		/* consumer cursor,
cons              188 net/smc/smc_cdc.c 	curs.acurs.counter = atomic64_read(&conn->local_tx_ctrl.cons.acurs);
cons              189 net/smc/smc_cdc.c 	cdc.cons.wrap = curs.wrap;
cons              190 net/smc/smc_cdc.c 	cdc.cons.count = curs.count;
cons              191 net/smc/smc_cdc.c 	cdc.cons.prod_flags = conn->local_tx_ctrl.prod_flags;
cons              192 net/smc/smc_cdc.c 	cdc.cons.conn_state_flags = conn->local_tx_ctrl.conn_state_flags;
cons              247 net/smc/smc_cdc.c 	smc_curs_copy(&cons_old, &conn->local_rx_ctrl.cons, conn);
cons              251 net/smc/smc_cdc.c 				  &conn->local_rx_ctrl.cons);
cons              336 net/smc/smc_cdc.c 	smcd_curs_copy(&cdc.cons, &data_cdc->cons, conn);
cons               47 net/smc/smc_cdc.h 	union smc_cdc_cursor		cons;	/* piggy backed "ack" */
cons               73 net/smc/smc_cdc.h 	union smcd_cdc_cursor	cons;
cons              234 net/smc/smc_cdc.h 	smc_host_cursor_to_cdc(&peer->cons, &local->cons, save, conn);
cons              267 net/smc/smc_cdc.h 	smc_cdc_cursor_to_host(&local->cons, &peer->cons, conn);
cons              282 net/smc/smc_cdc.h 	temp.wrap = peer->cons.wrap;
cons              283 net/smc/smc_cdc.h 	temp.count = peer->cons.count;
cons              284 net/smc/smc_cdc.h 	smc_curs_copy(&local->cons, &temp, conn);
cons              285 net/smc/smc_cdc.h 	local->prod_flags = peer->cons.prod_flags;
cons              286 net/smc/smc_cdc.h 	local->conn_state_flags = peer->cons.conn_state_flags;
cons              121 net/smc/smc_diag.c 			.rx_cons.wrap = conn->local_rx_ctrl.cons.wrap,
cons              122 net/smc/smc_diag.c 			.rx_cons.count = conn->local_rx_ctrl.cons.count,
cons              126 net/smc/smc_diag.c 			.tx_cons.wrap = conn->local_tx_ctrl.cons.wrap,
cons              127 net/smc/smc_diag.c 			.tx_cons.count = conn->local_tx_ctrl.cons.count,
cons               54 net/smc/smc_rx.c 				  union smc_host_cursor cons, size_t len)
cons               61 net/smc/smc_rx.c 	smc_curs_add(conn->rmb_desc->len, &cons, len);
cons               65 net/smc/smc_rx.c 		diff = smc_curs_comp(conn->rmb_desc->len, &cons,
cons               77 net/smc/smc_rx.c 				smc_curs_add(conn->rmb_desc->len, &cons, 1);
cons               85 net/smc/smc_rx.c 	smc_curs_copy(&conn->local_tx_ctrl.cons, &cons, conn);
cons               97 net/smc/smc_rx.c 	union smc_host_cursor cons;
cons               99 net/smc/smc_rx.c 	smc_curs_copy(&cons, &conn->local_tx_ctrl.cons, conn);
cons              100 net/smc/smc_rx.c 	smc_rx_update_consumer(smc, cons, len);
cons              225 net/smc/smc_rx.c 	union smc_host_cursor cons;
cons              242 net/smc/smc_rx.c 			smc_curs_copy(&cons, &conn->local_tx_ctrl.cons, conn);
cons              243 net/smc/smc_rx.c 			if (smc_curs_diff(conn->rmb_desc->len, &cons,
cons              250 net/smc/smc_rx.c 				smc_rx_update_consumer(smc, cons, 0);
cons              290 net/smc/smc_rx.c 	union smc_host_cursor cons;
cons              378 net/smc/smc_rx.c 		smc_curs_copy(&cons, &conn->local_tx_ctrl.cons, conn);
cons              381 net/smc/smc_rx.c 			smc_curs_add(conn->rmb_desc->len, &cons, splbytes);
cons              391 net/smc/smc_rx.c 				  cons.count);
cons              393 net/smc/smc_rx.c 		chunk_off = cons.count;
cons              432 net/smc/smc_rx.c 			if (msg && smc_rx_update_consumer(smc, cons, copylen))
cons              406 net/smc/smc_tx.c 	union smc_host_cursor sent, prep, prod, cons;
cons              425 net/smc/smc_tx.c 	smc_curs_copy(&cons, &conn->local_rx_ctrl.cons, conn);
cons              435 net/smc/smc_tx.c 	if (prod.wrap == cons.wrap) {
cons              592 net/smc/smc_tx.c 	union smc_host_cursor cfed, cons, prod;
cons              596 net/smc/smc_tx.c 	smc_curs_copy(&cons, &conn->local_tx_ctrl.cons, conn);
cons              598 net/smc/smc_tx.c 	to_confirm = smc_curs_diff(conn->rmb_desc->len, &cfed, &cons);
cons               95 sound/xen/xen_snd_front_evtchnl.c 	u32 cons, prod;
cons              113 sound/xen/xen_snd_front_evtchnl.c 	for (cons = page->in_cons; cons != prod; cons++) {
cons              116 sound/xen/xen_snd_front_evtchnl.c 		event = &XENSND_IN_RING_REF(page, cons);
cons              128 sound/xen/xen_snd_front_evtchnl.c 	page->in_cons = cons;
cons              138 tools/lib/bpf/xsk.h static inline size_t xsk_ring_cons__peek(struct xsk_ring_cons *cons,
cons              141 tools/lib/bpf/xsk.h 	size_t entries = xsk_cons_nb_avail(cons, nb);
cons              149 tools/lib/bpf/xsk.h 		*idx = cons->cached_cons;
cons              150 tools/lib/bpf/xsk.h 		cons->cached_cons += entries;
cons              156 tools/lib/bpf/xsk.h static inline void xsk_ring_cons__release(struct xsk_ring_cons *cons, size_t nb)
cons              163 tools/lib/bpf/xsk.h 	*cons->consumer += nb;
cons             1647 virt/kvm/arm/arm.c int kvm_arch_irq_bypass_add_producer(struct irq_bypass_consumer *cons,
cons             1651 virt/kvm/arm/arm.c 		container_of(cons, struct kvm_kernel_irqfd, consumer);
cons             1656 virt/kvm/arm/arm.c void kvm_arch_irq_bypass_del_producer(struct irq_bypass_consumer *cons,
cons             1660 virt/kvm/arm/arm.c 		container_of(cons, struct kvm_kernel_irqfd, consumer);
cons             1666 virt/kvm/arm/arm.c void kvm_arch_irq_bypass_stop(struct irq_bypass_consumer *cons)
cons             1669 virt/kvm/arm/arm.c 		container_of(cons, struct kvm_kernel_irqfd, consumer);
cons             1674 virt/kvm/arm/arm.c void kvm_arch_irq_bypass_start(struct irq_bypass_consumer *cons)
cons             1677 virt/kvm/arm/arm.c 		container_of(cons, struct kvm_kernel_irqfd, consumer);
cons              264 virt/kvm/eventfd.c 				struct irq_bypass_consumer *cons)
cons              269 virt/kvm/eventfd.c 				struct irq_bypass_consumer *cons)
cons               31 virt/lib/irqbypass.c 		     struct irq_bypass_consumer *cons)
cons               37 virt/lib/irqbypass.c 	if (cons->stop)
cons               38 virt/lib/irqbypass.c 		cons->stop(cons);
cons               41 virt/lib/irqbypass.c 		ret = prod->add_consumer(prod, cons);
cons               44 virt/lib/irqbypass.c 		ret = cons->add_producer(cons, prod);
cons               46 virt/lib/irqbypass.c 			prod->del_consumer(prod, cons);
cons               49 virt/lib/irqbypass.c 	if (cons->start)
cons               50 virt/lib/irqbypass.c 		cons->start(cons);
cons               59 virt/lib/irqbypass.c 			 struct irq_bypass_consumer *cons)
cons               63 virt/lib/irqbypass.c 	if (cons->stop)
cons               64 virt/lib/irqbypass.c 		cons->stop(cons);
cons               66 virt/lib/irqbypass.c 	cons->del_producer(cons, prod);
cons               69 virt/lib/irqbypass.c 		prod->del_consumer(prod, cons);
cons               71 virt/lib/irqbypass.c 	if (cons->start)
cons               72 virt/lib/irqbypass.c 		cons->start(cons);