Home
last modified time | relevance | path

Searched refs:cons (Results 1 – 25 of 91) sorted by relevance

1234

/linux-2.6.39/drivers/xen/xenbus/
Dxenbus_comms.c60 static int check_indexes(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod) in check_indexes() argument
62 return ((prod - cons) <= XENSTORE_RING_SIZE); in check_indexes()
65 static void *get_output_chunk(XENSTORE_RING_IDX cons, in get_output_chunk() argument
70 if ((XENSTORE_RING_SIZE - (prod - cons)) < *len) in get_output_chunk()
71 *len = XENSTORE_RING_SIZE - (prod - cons); in get_output_chunk()
75 static const void *get_input_chunk(XENSTORE_RING_IDX cons, in get_input_chunk() argument
79 *len = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(cons); in get_input_chunk()
80 if ((prod - cons) < *len) in get_input_chunk()
81 *len = prod - cons; in get_input_chunk()
82 return buf + MASK_XENSTORE_IDX(cons); in get_input_chunk()
[all …]
/linux-2.6.39/security/keys/
Drequest_key.c51 void complete_request_key(struct key_construction *cons, int error) in complete_request_key() argument
53 kenter("{%d,%d},%d", cons->key->serial, cons->authkey->serial, error); in complete_request_key()
56 key_negate_and_link(cons->key, key_negative_timeout, NULL, in complete_request_key()
57 cons->authkey); in complete_request_key()
59 key_revoke(cons->authkey); in complete_request_key()
61 key_put(cons->key); in complete_request_key()
62 key_put(cons->authkey); in complete_request_key()
63 kfree(cons); in complete_request_key()
113 static int call_sbin_request_key(struct key_construction *cons, in call_sbin_request_key() argument
119 struct key *key = cons->key, *authkey = cons->authkey, *keyring, in call_sbin_request_key()
[all …]
/linux-2.6.39/drivers/tty/hvc/
Dhvc_xen.c63 XENCONS_RING_IDX cons, prod; in __write_console() local
66 cons = intf->out_cons; in __write_console()
69 BUG_ON((prod - cons) > sizeof(intf->out)); in __write_console()
71 while ((sent < len) && ((prod - cons) < sizeof(intf->out))) in __write_console()
108 XENCONS_RING_IDX cons, prod; in domU_read_console() local
111 cons = intf->in_cons; in domU_read_console()
114 BUG_ON((prod - cons) > sizeof(intf->in)); in domU_read_console()
116 while (cons != prod && recv < len) in domU_read_console()
117 buf[recv++] = intf->in[MASK_XENCONS_IDX(cons++, intf->in)]; in domU_read_console()
120 intf->in_cons = cons; in domU_read_console()
/linux-2.6.39/drivers/tty/serial/
Dkgdboc.c158 struct console *cons; in configure_kgdboc() local
181 cons = console_drivers; in configure_kgdboc()
182 while (cons) { in configure_kgdboc()
184 if (cons->device && cons->device(cons, &idx) == p && in configure_kgdboc()
189 cons = cons->next; in configure_kgdboc()
Dserial_core.c55 #define uart_console(port) ((port)->cons && (port)->cons->index == (port)->line)
1484 if (uart_console(port) && port->cons->cflag) { in uart_update_termios()
1485 tty->termios->c_cflag = port->cons->cflag; in uart_update_termios()
1486 port->cons->cflag = 0; in uart_update_termios()
2029 console_stop(uport->cons); in uart_suspend_port()
2068 termios.c_cflag = uport->cons->cflag; in uart_resume_port()
2078 console_start(uport->cons); in uart_resume_port()
2203 if (port->cons && !(port->cons->flags & CON_ENABLED)) in uart_configure_port()
2204 register_console(port->cons); in uart_configure_port()
2441 uport->cons = drv->cons; in uart_add_one_port()
[all …]
Dmsm_serial.c452 if (!port->cons || (port->cons && !(port->cons->flags & CON_ENABLED))) { in msm_startup()
807 port->cons = co; in msm_console_setup()
859 .cons = MSM_CONSOLE,
/linux-2.6.39/drivers/char/
Dvirtio_console.c185 struct console cons; member
221 struct console *cons; in find_port_by_vtermno() local
225 list_for_each_entry(cons, &pdrvdata.consoles, list) { in find_port_by_vtermno()
226 if (cons->vtermno == vtermno) { in find_port_by_vtermno()
227 port = container_of(cons, struct port, cons); in find_port_by_vtermno()
306 if (port->cons.hvc) in is_console_port()
914 hvc_resize(port->cons.hvc, port->cons.ws); in resize_console()
982 port->cons.vtermno = pdrvdata.next_vtermno; in init_port_console()
984 port->cons.hvc = hvc_alloc(port->cons.vtermno, 0, &hv_ops, PAGE_SIZE); in init_port_console()
985 if (IS_ERR(port->cons.hvc)) { in init_port_console()
[all …]
/linux-2.6.39/drivers/net/mlx4/
Den_tx.c167 ring->cons = 0xffffffff; in mlx4_en_activate_tx_ring()
286 ring->cons += ring->last_nr_txbb; in mlx4_en_free_tx_buf()
288 ring->cons, ring->prod); in mlx4_en_free_tx_buf()
290 if ((u32) (ring->prod - ring->cons) > ring->size) { in mlx4_en_free_tx_buf()
296 while (ring->cons != ring->prod) { in mlx4_en_free_tx_buf()
298 ring->cons & ring->size_mask, in mlx4_en_free_tx_buf()
299 !!(ring->cons & ring->size)); in mlx4_en_free_tx_buf()
300 ring->cons += ring->last_nr_txbb; in mlx4_en_free_tx_buf()
323 index = ring->cons & ring->size_mask; in mlx4_en_process_tx_cq()
348 !!((ring->cons + txbbs_skipped) & in mlx4_en_process_tx_cq()
[all …]
Den_rx.c253 ring->cons, ring->prod); in mlx4_en_free_rx_buf()
256 BUG_ON((u32) (ring->prod - ring->cons) > ring->actual_size); in mlx4_en_free_rx_buf()
257 while (ring->cons != ring->prod) { in mlx4_en_free_rx_buf()
258 index = ring->cons & ring->size_mask; in mlx4_en_free_rx_buf()
261 ++ring->cons; in mlx4_en_free_rx_buf()
274 ring->cons = 0; in mlx4_en_create_rx_ring()
326 ring->cons = 0; in mlx4_en_activate_rx_rings()
673 ring->cons = cq->mcq.cons_index; in mlx4_en_process_rx_cq()
Den_selftest.c158 if (tx_ring->prod != (tx_ring->cons + tx_ring->last_nr_txbb)) in mlx4_en_ex_selftest()
/linux-2.6.39/arch/ia64/hp/sim/
Dhpsim_console.c42 simcons_init (struct console *cons, char *options) in simcons_init() argument
48 simcons_write (struct console *cons, const char *buf, unsigned count) in simcons_write() argument
/linux-2.6.39/drivers/input/misc/
Dxen-kbdfront.c56 __u32 cons, prod; in input_handler() local
62 for (cons = page->in_cons; cons != prod; cons++) { in input_handler()
65 event = &XENKBD_IN_RING_REF(page, cons); in input_handler()
101 page->in_cons = cons; in input_handler()
/linux-2.6.39/drivers/net/
Dxen-netfront.c347 RING_IDX cons, prod; in xennet_tx_buf_gc() local
358 for (cons = np->tx.rsp_cons; cons != prod; cons++) { in xennet_tx_buf_gc()
361 txrsp = RING_GET_RESPONSE(&np->tx, cons); in xennet_tx_buf_gc()
396 } while ((cons == prod) && (prod != np->tx.sring->rsp_prod)); in xennet_tx_buf_gc()
602 RING_IDX cons = np->rx.rsp_cons; in xennet_get_extras() local
609 if (unlikely(cons + 1 == rp)) { in xennet_get_extras()
617 RING_GET_RESPONSE(&np->rx, ++cons); in xennet_get_extras()
630 skb = xennet_get_rx_skb(np, cons); in xennet_get_extras()
631 ref = xennet_get_rx_ref(np, cons); in xennet_get_extras()
635 np->rx.rsp_cons = cons; in xennet_get_extras()
[all …]
Drrunner.c1281 u32 index, cons; in rr_dump() local
1298 cons = rrpriv->dirty_tx; in rr_dump()
1300 index, cons); in rr_dump()
1313 if (rrpriv->tx_skbuff[cons]){ in rr_dump()
1314 len = min_t(int, 0x80, rrpriv->tx_skbuff[cons]->len); in rr_dump()
1315 … is valid - dumping data (0x%x bytes - skbuff len 0x%x)\n", cons, len, rrpriv->tx_skbuff[cons]->le… in rr_dump()
1317 rrpriv->tx_ring[cons].mode, in rr_dump()
1318 rrpriv->tx_ring[cons].size, in rr_dump()
1319 (unsigned long long) rrpriv->tx_ring[cons].addr.addrlo, in rr_dump()
1320 (unsigned long)rrpriv->tx_skbuff[cons]->data, in rr_dump()
[all …]
Db44.c595 u32 cur, cons; in b44_tx() local
601 for (cons = bp->tx_cons; cons != cur; cons = NEXT_TX(cons)) { in b44_tx()
602 struct ring_info *rp = &bp->tx_buffers[cons]; in b44_tx()
615 bp->tx_cons = cons; in b44_tx()
752 u32 cons, prod; in b44_rx() local
757 cons = bp->rx_cons; in b44_rx()
759 while (cons != prod && budget > 0) { in b44_rx()
760 struct ring_info *rp = &bp->rx_buffers[cons]; in b44_rx()
774 b44_recycle_rx(bp, cons, bp->rx_prod); in b44_rx()
797 skb_size = b44_alloc_rx_skb(bp, cons, bp->rx_prod); in b44_rx()
[all …]
/linux-2.6.39/arch/mips/sibyte/common/
Dcfe_console.c12 static void cfe_console_write(struct console *cons, const char *str, in cfe_console_write() argument
43 static int cfe_console_setup(struct console *cons, char *str) in cfe_console_setup() argument
/linux-2.6.39/drivers/s390/cio/
Ddevice_status.c185 cdev_irb->esw.esw0.erw.cons = irb->esw.esw0.erw.cons; in ccw_device_accumulate_esw()
186 if (irb->esw.esw0.erw.cons) in ccw_device_accumulate_esw()
304 !(cdev_irb->esw.esw0.erw.cons)) in ccw_device_accumulate_irb()
368 cdev->private->irb.esw.esw0.erw.cons = 1; in ccw_device_accumulate_basic_sense()
390 cdev->private->irb.esw.esw0.erw.cons = 1; in ccw_device_accumulate_and_sense()
/linux-2.6.39/drivers/xen/xenfs/
Dxenbus.c76 unsigned int cons; member
141 unsigned sz = min((unsigned)len - i, rb->len - rb->cons); in xenbus_file_read()
143 ret = copy_to_user(ubuf + i, &rb->msg[rb->cons], sz); in xenbus_file_read()
146 rb->cons += sz - ret; in xenbus_file_read()
155 if (rb->cons == rb->len) { in xenbus_file_read()
190 rb->cons = 0; in queue_reply()
/linux-2.6.39/include/linux/
Dserial_core.h325 struct console *cons; /* struct console, if any */ member
403 struct console *cons; member
508 if (port->cons && port->cons->index == port->line) { in uart_handle_break()
Dkey-type.h113 extern void complete_request_key(struct key_construction *cons, int error);
/linux-2.6.39/drivers/net/bnx2x/
Dbnx2x_cmn.h665 u16 cons; in bnx2x_tx_avail() local
668 cons = fp->tx_bd_cons; in bnx2x_tx_avail()
672 used = SUB_S16(prod, cons) + (s16)NUM_TX_RINGS; in bnx2x_tx_avail()
860 u16 cons, u16 prod) in bnx2x_reuse_rx_skb() argument
863 struct sw_rx_bd *cons_rx_buf = &fp->rx_buf_ring[cons]; in bnx2x_reuse_rx_skb()
865 struct eth_rx_bd *cons_bd = &fp->rx_desc_ring[cons]; in bnx2x_reuse_rx_skb()
/linux-2.6.39/drivers/net/xen-netback/
Dnetback.c837 RING_IDX cons = vif->tx.req_cons; in netbk_tx_err() local
841 if (cons >= end) in netbk_tx_err()
843 txp = RING_GET_REQUEST(&vif->tx, cons++); in netbk_tx_err()
845 vif->tx.req_cons = cons; in netbk_tx_err()
855 RING_IDX cons = vif->tx.req_cons; in netbk_count_requests() local
872 memcpy(txp, RING_GET_REQUEST(&vif->tx, cons + frags), in netbk_count_requests()
1056 RING_IDX cons = vif->tx.req_cons; in xen_netbk_get_extras() local
1064 memcpy(&extra, RING_GET_REQUEST(&vif->tx, cons), in xen_netbk_get_extras()
1068 vif->tx.req_cons = ++cons; in xen_netbk_get_extras()
1075 vif->tx.req_cons = ++cons; in xen_netbk_get_extras()
/linux-2.6.39/arch/sparc/include/asm/
Dvio.h241 u32 cons; member
262 ((dr->prod - dr->cons) & (ring_size - 1))); in vio_dring_avail()
/linux-2.6.39/arch/s390/include/asm/
Dcio.h80 __u32 cons : 1; member
/linux-2.6.39/drivers/video/
Dxen-fbfront.c116 u32 cons, prod; in xenfb_queue_full() local
119 cons = info->page->out_cons; in xenfb_queue_full()
120 return prod - cons == XENFB_OUT_RING_LEN; in xenfb_queue_full()

1234