Searched refs:cons (Results 1 - 25 of 89) sorted by relevance

1234

/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/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;
H A Dsuncore.c61 drv->cons = con;
H A Dserial_core.c54 #define uart_console(port) ((port)->cons && (port)->cons->index == (port)->line)
164 if (uart_console(uport) && uport->cons->cflag) {
165 tty->termios->c_cflag = uport->cons->cflag;
166 uport->cons->cflag = 0;
1922 console_stop(uport->cons);
1961 termios.c_cflag = uport->cons->cflag;
1973 console_start(uport->cons);
2096 if (port->cons && !(port->cons
[all...]
H A Dmsm_serial.c455 if (!port->cons || (port->cons && !(port->cons->flags & CON_ENABLED))) {
857 .cons = MSM_CONSOLE,
H A Dmux.c484 mux_driver.cons = MUX_CONSOLE;
H A Dserial_txx9.c622 if (up->port.cons && up->port.line == up->port.cons->index) {
848 if (up->port.line == up->port.cons->index)
1005 .cons = SERIAL_TXX9_CONSOLE,
H A Dsunsu.c333 if (up->port.cons != NULL &&
334 up->port.line == up->port.cons->index)
356 if (up->port.cons != NULL &&
357 up->port.line == up->port.cons->index) {
H A Dsirfsoc_uart.c572 port->cons = co;
617 .cons = &sirfsoc_uart_console,
619 .cons = NULL,
/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/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/mellanox/mlx4/
H A Den_tx.c166 ring->cons = 0xffffffff;
283 ring->cons += ring->last_nr_txbb;
284 en_dbg(DRV, priv, "Freeing Tx buf - cons:0x%x prod:0x%x\n",
285 ring->cons, ring->prod);
287 if ((u32) (ring->prod - ring->cons) > ring->size) {
293 while (ring->cons != ring->prod) {
295 ring->cons & ring->size_mask,
296 !!(ring->cons & ring->size));
297 ring->cons += ring->last_nr_txbb;
326 ring_index = ring->cons
[all...]
H A Den_rx.c254 en_dbg(DRV, priv, "Freeing Rx buf - cons:%d prod:%d\n",
255 ring->cons, ring->prod);
258 BUG_ON((u32) (ring->prod - ring->cons) > ring->actual_size);
259 while (ring->cons != ring->prod) {
260 index = ring->cons & ring->size_mask;
263 ++ring->cons;
276 ring->cons = 0;
327 ring->cons = 0;
695 ring->cons = cq->mcq.cons_index;
H A Den_selftest.c158 if (tx_ring->prod != (tx_ring->cons + tx_ring->last_nr_txbb))
H A Dmlx4_en.h237 u32 cons; member in struct:mlx4_en_tx_ring
274 u32 cons; member in struct:mlx4_en_rx_ring
/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/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/s390/cio/
H A Ddevice_status.c185 cdev_irb->esw.esw0.erw.cons = irb->esw.esw0.erw.cons;
186 if (irb->esw.esw0.erw.cons)
304 !(cdev_irb->esw.esw0.erw.cons))
368 cdev->private->irb.esw.esw0.erw.cons = 1;
390 cdev->private->irb.esw.esw0.erw.cons = 1;
H A Dccwreq.c185 if (irb->esw.esw0.erw.cons) {
/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/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...]
/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/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
/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;

Completed in 429 milliseconds

1234