Searched refs:cons (Results 51 - 75 of 168) sorted by relevance

1234567

/linux-master/drivers/infiniband/hw/qedr/
H A Dqedr.h326 u16 cons; member in struct:qedr_qp_hwq_info
521 info->cons = (info->cons + 1) % info->max_wr;
H A Dverbs.c859 static void doorbell_cq(struct qedr_cq *cq, u32 cons, u8 flags) argument
862 cq->db.data.value = cpu_to_le32(cons);
1337 qph->cons = 0;
2179 * We should add an extra WR since the prod and cons indices of
2181 * when (prod+1)%max_wr==cons. We currently don't do that because we
2443 if ((qp->rq.prod != qp->rq.cons) ||
2444 (qp->sq.prod != qp->sq.cons)) {
2446 "Error->Reset with rq/sq not empty rq.prod=%x rq.cons=%x sq.prod=%x sq.cons=%x\n",
2447 qp->rq.prod, qp->rq.cons, q
[all...]
/linux-master/drivers/tty/serial/
H A Dserial_core.c290 if (uart_console(uport) && uport->cons->cflag) {
291 tty->termios.c_cflag = uport->cons->cflag;
292 tty->termios.c_ispeed = uport->cons->ispeed;
293 tty->termios.c_ospeed = uport->cons->ospeed;
294 uport->cons->cflag = 0;
295 uport->cons->ispeed = 0;
296 uport->cons->ospeed = 0;
378 uport->cons->cflag = tty->termios.c_cflag;
379 uport->cons->ispeed = tty->termios.c_ispeed;
380 uport->cons
[all...]
H A Dsuncore.c61 drv->cons = con;
H A Dsprd_serial.c1076 .cons = SPRD_CONSOLE,
1096 struct console *cons = sprd_uart_driver.cons; local
1098 if ((cons && cons->index >= 0 && cons->index == uport->line) ||
H A Dkgdb_nmi.c53 dbg_io_ops->cons = co;
H A Dserial_txx9.c555 if (up->cons && up->line == up->cons->index) {
779 if (up->line == up->cons->index)
931 .cons = SERIAL_TXX9_CONSOLE,
/linux-master/include/linux/
H A Dkgdb.h291 * @cons: valid if the I/O device is a console; else NULL.
302 struct console *cons; member in struct:kgdb_io
/linux-master/drivers/xen/
H A Devtchn.c166 unsigned int prod, cons; local
181 cons = READ_ONCE(u->ring_cons);
183 if ((prod - cons) < u->ring_size) {
187 if (cons == prod) {
343 * prod /or/ cons lock so take both when resizing.
/linux-master/drivers/accel/ivpu/
H A Divpu_drv.c292 struct ivpu_ipc_consumer cons; local
300 ivpu_ipc_consumer_add(vdev, &cons, IVPU_IPC_CHAN_BOOT_MSG, NULL);
305 ret = ivpu_ipc_receive(vdev, &cons, &ipc_hdr, NULL, 0);
312 ivpu_ipc_consumer_del(vdev, &cons);
/linux-master/drivers/net/xen-netback/
H A Dnetback.c209 RING_IDX cons = queue->tx.req_cons; local
213 if (cons == end)
215 RING_COPY_REQUEST(&queue->tx, cons++, txp);
218 queue->tx.req_cons = cons;
236 RING_IDX cons = queue->tx.req_cons; local
284 RING_COPY_REQUEST(&queue->tx, cons + slots, txp);
321 xenvif_tx_err(queue, first, extra_count, cons + slots);
730 RING_IDX cons = queue->tx.req_cons; local
739 RING_COPY_REQUEST(&queue->tx, cons, &extra);
741 queue->tx.req_cons = ++cons;
[all...]
/linux-master/drivers/infiniband/hw/bnxt_re/
H A Dqplib_fp.c144 qp->sq.hwq.cons = 0;
147 qp->rq.hwq.cons = 0;
247 nqe = &nq_ptr[NQE_PG(hwq->cons)][NQE_IDX(hwq->cons)];
276 bnxt_qplib_hwq_incr_cons(hwq->max_elements, &hwq->cons,
311 nqe = bnxt_qplib_get_qe(hwq, hwq->cons, NULL);
375 bnxt_qplib_hwq_incr_cons(hwq->max_elements, &hwq->cons,
408 sw_cons = HWQ_CMP(hwq->cons, hwq);
1470 peek_cons = cq_hwq->cons;
1814 "prod = %#x cons
[all...]
H A Dqplib_rcfw.c704 hwq->cons += req_size;
744 creqe = bnxt_qplib_get_qe(hwq, hwq->cons, NULL);
778 bnxt_qplib_hwq_incr_cons(hwq->max_elements, &hwq->cons,
800 sw_cons = HWQ_CMP(hwq->cons, hwq);
/linux-master/drivers/net/thunderbolt/
H A Dmain.c143 unsigned int cons; member in struct:tbnet_ring
368 ring->cons = 0;
496 return ring->prod - ring->cons;
558 index = ring->cons++ & (TBNET_RING_SIZE - 1);
616 ring->cons = 0;
839 net->rx_ring.cons++;
1234 net->tx_ring.cons -= frame_index;
/linux-master/drivers/net/ethernet/mellanox/mlx4/
H A Den_rx.c159 return ring->prod == ring->cons;
231 en_dbg(DRV, priv, "Freeing Rx buf - cons:%d prod:%d\n",
232 ring->cons, ring->prod);
239 ring->cons = 0;
279 ring->cons = 0;
339 ring->cons = 0;
550 u32 missing = ring->actual_size - (ring->prod - ring->cons);
976 ring->cons = cq->mcq.cons_index;
/linux-master/drivers/video/fbdev/
H A Dxen-fbfront.c119 u32 cons, prod; local
122 cons = info->page->out_cons;
123 return prod - cons == XENFB_OUT_RING_LEN;
/linux-master/drivers/tty/vt/
H A Dconsolemap.c470 unsigned int cons, d, r; local
472 for (cons = 0; cons < MAX_NR_CONSOLES; cons++) {
473 if (!vc_cons_allocated(cons))
475 dict2 = *vc_cons[cons].d->uni_pagedict_loc;
/linux-master/arch/sparc/include/asm/
H A Dvio.h281 u32 cons; member in struct:vio_dring_state
310 ((dr->prod - dr->cons) & (ring_size - 1)) - 1);
/linux-master/arch/arm64/kvm/
H A Darm.c2506 int kvm_arch_irq_bypass_add_producer(struct irq_bypass_consumer *cons, argument
2510 container_of(cons, struct kvm_kernel_irqfd, consumer);
2515 void kvm_arch_irq_bypass_del_producer(struct irq_bypass_consumer *cons, argument
2519 container_of(cons, struct kvm_kernel_irqfd, consumer);
2525 void kvm_arch_irq_bypass_stop(struct irq_bypass_consumer *cons) argument
2528 container_of(cons, struct kvm_kernel_irqfd, consumer);
2533 void kvm_arch_irq_bypass_start(struct irq_bypass_consumer *cons) argument
2536 container_of(cons, struct kvm_kernel_irqfd, consumer);
/linux-master/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.c398 netdev_err(bp->dev, "Invalid Tx completion (ring:%d tx_hw_cons:%u cons:%u prod:%u curr:%u)",
771 u16 cons = txr->tx_cons; local
774 while (RING_TX(bp, cons) != hw_cons) {
779 tx_buf = &txr->tx_buf_ring[RING_TX(bp, cons)];
780 cons = NEXT_TX(cons);
785 bnxt_sched_reset_txr(bp, txr, cons);
802 cons = NEXT_TX(cons);
803 tx_buf = &txr->tx_buf_ring[RING_TX(bp, cons)];
923 bnxt_reuse_rx_data(struct bnxt_rx_ring_info *rxr, u16 cons, void *data) argument
1022 u16 cons; local
1064 bnxt_rx_multi_page_skb(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons, void *data, u8 *data_ptr, dma_addr_t dma_addr, unsigned int offset_and_len) argument
1096 bnxt_rx_page_skb(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons, void *data, u8 *data_ptr, dma_addr_t dma_addr, unsigned int offset_and_len) argument
1143 bnxt_rx_skb(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons, void *data, u8 *data_ptr, dma_addr_t dma_addr, unsigned int offset_and_len) argument
1190 u16 cons, frag_len; local
1418 u16 cons, prod, agg_id; local
1972 u16 cons, prod, cp_cons = RING_CMP(tmp_raw_cons); local
2773 u32 cons = RING_CMP(cpr->cp_raw_cons); local
2784 u16 cons = RING_CMP(raw_cons); local
2797 u32 cons = RING_CMP(cpr->cp_raw_cons); local
2825 u32 cons; local
3123 u32 cons; local
12756 bnxt_dbg_hwrm_ring_info_get(struct bnxt *bp, u8 ring_type, u32 ring_id, u32 *prod, u32 *cons) argument
[all...]
/linux-master/drivers/s390/cio/
H A Dccwreq.c186 if (irb->esw.esw0.erw.cons) {
/linux-master/net/smc/
H A Dsmc.h137 union smc_host_cursor cons; /* consumer cursor, member in struct:smc_host_cdc_msg
180 * .cons cf. TCP sends ack
208 * .cons cf. TCP snd_una
H A Dsmc_core.c967 union smc_host_cursor cons; local
971 smc_curs_copy(&cons, &conn->local_rx_ctrl.cons, conn);
973 space = buffer_len - smc_curs_diff(buffer_len, &cons, &prod);
981 union smc_host_cursor cons, fin; local
989 smc_curs_copy(&cons, &conn->local_rx_ctrl.cons, conn);
991 if (smc_curs_comp(conn->peer_rmbe_size, &cons, &fin) < 0) {
992 /* cons cursor advanced more than fin, and prod was set
993 * fin above, so now prod is smaller than cons
[all...]
/linux-master/arch/s390/include/asm/
H A Dcio.h87 * @cons: concurrent sense
90 * @scnt: sense count, if @cons == %1
99 __u32 cons : 1; member in struct:erw
/linux-master/drivers/net/ethernet/sun/
H A Dsunvnet_common.c673 u32 idx = dr->cons;
711 dr->cons = vio_dring_next(dr, end);
712 desc = vio_dring_entry(dr, dr->cons);
718 if (__vnet_tx_trigger(port, dr->cons) > 0)
1452 /* Exactly one ldc "start" trigger (for dr->cons) needs to be sent
1455 * a DRING_STOPPED is received from the consumer. The dr->cons field
1459 * vnet_ack() should check if the dring corresponding to cons
1474 port->vio._peer_sid, dr->cons);
1478 err = __vnet_tx_trigger(port, dr->cons);
1748 dr->cons
[all...]

Completed in 770 milliseconds

1234567