Searched defs:cons (Results 1 - 19 of 19) sorted by relevance

/drivers/xen/xenbus/
H A Dxenbus_comms.c60 static int check_indexes(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod) argument
62 return ((prod - cons) <= XENSTORE_RING_SIZE);
65 static void *get_output_chunk(XENSTORE_RING_IDX cons, argument
70 if ((XENSTORE_RING_SIZE - (prod - cons)) < *len)
71 *len = XENSTORE_RING_SIZE - (prod - cons);
75 static const void *get_input_chunk(XENSTORE_RING_IDX cons, argument
79 *len = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(cons);
80 if ((prod - cons) < *len)
81 *len = prod - cons;
82 return buf + MASK_XENSTORE_IDX(cons);
95 XENSTORE_RING_IDX cons, prod; local
155 XENSTORE_RING_IDX cons, prod; local
[all...]
H A Dxenbus_dev_frontend.c80 unsigned int cons; member in struct:read_buffer
145 unsigned sz = min((unsigned)len - i, rb->len - rb->cons);
147 ret = copy_to_user(ubuf + i, &rb->msg[rb->cons], sz);
150 rb->cons += sz - ret;
159 if (rb->cons == rb->len) {
194 rb->cons = 0;
/drivers/input/misc/
H A Dxen-kbdfront.c56 __u32 cons, prod; local
62 for (cons = page->in_cons; cons != prod; cons++) {
65 event = &XENKBD_IN_RING_REF(page, cons);
101 page->in_cons = cons;
/drivers/tty/serial/
H A Dkgdboc.c159 struct console *cons; local
182 cons = console_drivers;
183 while (cons) {
185 if (cons->device && cons->device(cons, &idx) == p &&
190 cons = cons->next;
/drivers/tty/hvc/
H A Dhvc_xen.c83 static inline void notify_daemon(struct xencons_info *cons) argument
86 notify_remote_via_evtchn(cons->evtchn);
92 XENCONS_RING_IDX cons, prod; local
96 cons = intf->out_cons;
99 BUG_ON((prod - cons) > sizeof(intf->out));
101 while ((sent < len) && ((prod - cons) < sizeof(intf->out)))
115 struct xencons_info *cons = vtermno_to_xencons(vtermno); local
116 if (cons == NULL)
126 int sent = __write_console(cons, data, len);
141 XENCONS_RING_IDX cons, pro local
[all...]
/drivers/net/hippi/
H A Drrunner.c1280 u32 index, cons; local
1297 cons = rrpriv->dirty_tx;
1299 index, cons);
1312 if (rrpriv->tx_skbuff[cons]){
1313 len = min_t(int, 0x80, rrpriv->tx_skbuff[cons]->len);
1314 printk("skbuff for cons %i is valid - dumping data (0x%x bytes - skbuff len 0x%x)\n", cons, len, rrpriv->tx_skbuff[cons]->len);
1316 rrpriv->tx_ring[cons].mode,
1317 rrpriv->tx_ring[cons]
[all...]
/drivers/video/
H A Dxen-fbfront.c116 u32 cons, prod; local
119 cons = info->page->out_cons;
120 return prod - cons == XENFB_OUT_RING_LEN;
/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_cmn.h744 u16 cons; local
747 cons = txdata->tx_bd_cons;
751 used = SUB_S16(prod, cons) + (s16)NUM_TX_RINGS;
947 * we are just moving one from cons to prod
952 u16 cons, u16 prod)
954 struct sw_rx_bd *cons_rx_buf = &fp->rx_buf_ring[cons];
956 struct eth_rx_bd *cons_bd = &fp->rx_desc_ring[cons];
951 bnx2x_reuse_rx_data(struct bnx2x_fastpath *fp, u16 cons, u16 prod) argument
H A Dbnx2x_cmn.c278 u16 cons, u16 prod,
282 struct sw_rx_bd *cons_rx_buf = &fp->rx_buf_ring[cons];
305 bnx2x_reuse_rx_data(fp, cons, prod);
317 /* move partial skb from cons to pool (don't unmap yet) */
277 bnx2x_tpa_start(struct bnx2x_fastpath *fp, u16 queue, u16 cons, u16 prod, struct eth_fast_path_rx_cqe *cqe) argument
/drivers/char/
H A Dvirtio_console.c200 struct console cons; member in struct:port
236 struct console *cons; local
240 list_for_each_entry(cons, &pdrvdata.consoles, list) {
241 if (cons->vtermno == vtermno) {
242 port = container_of(cons, struct port, cons);
321 if (port->cons.hvc)
922 hvc_resize(port->cons.hvc, port->cons.ws);
990 port->cons
[all...]
/drivers/net/ethernet/broadcom/
H A Db44.c594 u32 cur, cons; local
600 for (cons = bp->tx_cons; cons != cur; cons = NEXT_TX(cons)) {
601 struct ring_info *rp = &bp->tx_buffers[cons];
614 bp->tx_cons = cons;
751 u32 cons, prod; local
756 cons = bp->rx_cons;
758 while (cons !
[all...]
H A Dbnx2.c2794 u16 cons; local
2798 cons = *bnapi->hw_tx_cons_ptr;
2800 if (unlikely((cons & MAX_TX_DESC_CNT) == MAX_TX_DESC_CNT))
2801 cons++;
2802 return cons;
2907 u16 cons = rxr->rx_pg_cons; local
2909 cons_rx_pg = &rxr->rx_pg_ring[cons];
2934 cons_rx_pg = &rxr->rx_pg_ring[cons];
2935 cons_bd = &rxr->rx_pg_desc_ring[RX_RING(cons)][RX_IDX(cons)];
2956 bnx2_reuse_rx_data(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u8 *data, u16 cons, u16 prod) argument
3093 u16 cons; local
[all...]
/drivers/net/xen-netback/
H A Dnetback.c850 RING_IDX cons = vif->tx.req_cons; local
854 if (cons >= end)
856 txp = RING_GET_REQUEST(&vif->tx, cons++);
858 vif->tx.req_cons = cons;
868 RING_IDX cons = vif->tx.req_cons; local
885 memcpy(txp, RING_GET_REQUEST(&vif->tx, cons + frags),
1066 RING_IDX cons = vif->tx.req_cons; local
1074 memcpy(&extra, RING_GET_REQUEST(&vif->tx, cons),
1078 vif->tx.req_cons = ++cons;
1085 vif->tx.req_cons = ++cons;
[all...]
/drivers/net/
H A Dxen-netfront.c358 RING_IDX cons, prod; local
369 for (cons = np->tx.rsp_cons; cons != prod; cons++) {
372 txrsp = RING_GET_RESPONSE(&np->tx, cons);
407 } while ((cons == prod) && (prod != np->tx.sring->rsp_prod));
617 RING_IDX cons = np->rx.rsp_cons; local
624 if (unlikely(cons + 1 == rp)) {
632 RING_GET_RESPONSE(&np->rx, ++cons);
645 skb = xennet_get_rx_skb(np, cons);
661 RING_IDX cons = np->rx.rsp_cons; local
766 RING_IDX cons = np->rx.rsp_cons; local
[all...]
/drivers/net/ethernet/mellanox/mlx4/
H A Dmlx4_en.h237 u32 cons; member in struct:mlx4_en_tx_ring
274 u32 cons; member in struct:mlx4_en_rx_ring
H A Dmlx4.h495 u32 cons; member in struct:mlx4_slave_event_eq
/drivers/net/ethernet/sun/
H A Dniu.c3602 int cons, index; local
3618 cons = rp->cons;
3621 "%s() pkt_cnt[%u] cons[%d]\n", __func__, pkt_cnt, cons);
3624 cons = release_tx_packet(np, rp, cons);
3626 rp->cons = cons;
4304 rp->cons
[all...]
H A Dniu.h2858 int cons; member in struct:rx_pkt_hdr0::tx_ring_info
2884 ((tp->prod - tp->cons) & (MAX_TX_RING_SIZE - 1)));
/drivers/net/fddi/
H A Ddefxx.h1386 PI_UINT8 cons; member in struct:__anon3015::__anon3016
1451 PI_UINT8 cons; member in struct:__anon3023::__anon3024

Completed in 434 milliseconds