Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 1065) sorted by relevance

12345678910>>...43

/linux-2.4.37.9/arch/sh/kernel/
Dio_hs7729pci.c22 #define io_is_pci(port) (port >= PCIBIOS_MIN_IO) argument
24 #define io_is_pci(port) (0) argument
44 port2adr(unsigned long port) in port2adr() argument
46 if (port >= 0x2000) in port2adr()
47 return (volatile __u16 *) (PA_MRSHPC + (port - 0x2000)); in port2adr()
48 else if (sh_pcic_io_start <= port && port <= sh_pcic_io_stop) in port2adr()
49 return (volatile __u16 *) (sh_pcic_io_wbase + (port &~ 1)); in port2adr()
52 return (volatile __u16 *) (PA_SUPERIO + (port << 1)); in port2adr()
56 shifted_port(unsigned long port) in shifted_port() argument
59 if ((0x1f0 <= port && port < 0x1f8) || port == 0x3f6 || in shifted_port()
[all …]
Dio_7751se.c55 #define maybebadio(name,port) \ argument
57 #name, (port), (__u32) __builtin_return_address(0))
65 port2adr(unsigned int port) in port2adr() argument
67 if (port >= 0x2000) in port2adr()
68 return (volatile __u16 *) (PA_MRSHPC + (port - 0x2000)); in port2adr()
71 return (volatile __u16 *) (PA_SUPERIO + (port << 1)); in port2adr()
73 maybebadio(name,(unsigned long)port); in port2adr()
74 return (volatile __u16*)port; in port2adr()
82 shifted_port(unsigned long port)
85 if ((0x1f0 <= port && port < 0x1f8) || port == 0x3f6)
[all …]
Dio_hd64461.c11 static __inline__ unsigned long PORT2ADDR(unsigned long port) in PORT2ADDR() argument
14 if (0x3f8<=port && port<=0x3ff) in PORT2ADDR()
15 return CONFIG_HD64461_IOBASE + 0x8000 + ((port-0x3f8)<<1); in PORT2ADDR()
16 if (0x2f8<=port && port<=0x2ff) in PORT2ADDR()
17 return CONFIG_HD64461_IOBASE + 0x7000 + ((port-0x2f8)<<1); in PORT2ADDR()
21 if (0x300<=port && port<=0x31f) in PORT2ADDR()
22 return 0xba000000 + port; in PORT2ADDR()
28 if (0x1f0<=port && port<=0x1f7) return 0xb5000000 + port; in PORT2ADDR()
29 if (port == 0x3f6) return 0xb50001fe; in PORT2ADDR()
30 if (port == 0x3f7) return 0xb50001ff; in PORT2ADDR()
[all …]
Dio_snapgear.c42 #define maybebadio(name,port) \ argument
44 #name, (port), (__u32) __builtin_return_address(0))
54 port2adr(unsigned int port) in port2adr() argument
57 if (port >= 0x2000) in port2adr()
58 return (volatile __u16 *) (PA_MRSHPC + (port - 0x2000)); in port2adr()
60 maybebadio(name,port); in port2adr()
61 return (volatile __u16*)port; in port2adr()
70 #define CHECK_SH7751_PCIIO(port) \ argument
71 ((port >= PCIBIOS_MIN_IO) && (port < (PCIBIOS_MIN_IO + SH7751_PCI_IO_SIZE)))
73 #define CHECK_SH7751_PCIIO(port) (0) argument
[all …]
Dio_se.c34 port2adr(unsigned int port) in port2adr() argument
36 if (port >= 0x2000) in port2adr()
37 return (volatile __u16 *) (PA_MRSHPC + (port - 0x2000)); in port2adr()
38 else if (port >= 0x1000) in port2adr()
39 return (volatile __u16 *) (PA_83902 + (port << 1)); in port2adr()
40 else if (sh_pcic_io_start <= port && port <= sh_pcic_io_stop) in port2adr()
41 return (volatile __u16 *) (sh_pcic_io_wbase + (port &~ 1)); in port2adr()
43 return (volatile __u16 *) (PA_SUPERIO + (port << 1)); in port2adr()
47 shifted_port(unsigned long port) in shifted_port() argument
50 if ((0x1f0 <= port && port < 0x1f8) || port == 0x3f6) in shifted_port()
[all …]
Dio_bigsur.c60 u32 port, endport = baseport + nports; in bigsur_port_map() local
65 for (port = baseport ; in bigsur_port_map()
66 port < endport && port < BIGSUR_IOMAP_LO_THRESH ; in bigsur_port_map()
67 port += (1<<BIGSUR_IOMAP_LO_SHIFT)) { in bigsur_port_map()
68 DPRINTK(" maplo[0x%x] = 0x%08x\n", port, addr); in bigsur_port_map()
69 bigsur_iomap_lo[port>>BIGSUR_IOMAP_LO_SHIFT] = addr; in bigsur_port_map()
70 bigsur_iomap_lo_shift[port>>BIGSUR_IOMAP_LO_SHIFT] = shift; in bigsur_port_map()
74 for (port = MAX(baseport, BIGSUR_IOMAP_LO_THRESH) ; in bigsur_port_map()
75 port < endport && port < BIGSUR_IOMAP_HI_THRESH ; in bigsur_port_map()
76 port += (1<<BIGSUR_IOMAP_HI_SHIFT)) { in bigsur_port_map()
[all …]
Dio_hd64465.c60 unsigned int port, endport = baseport + nports; in hd64465_port_map() local
65 for (port = baseport ; in hd64465_port_map()
66 port < endport && port < HD64465_IOMAP_LO_THRESH ; in hd64465_port_map()
67 port += (1<<HD64465_IOMAP_LO_SHIFT)) { in hd64465_port_map()
68 DPRINTK(" maplo[0x%x] = 0x%08lx\n", port, addr); in hd64465_port_map()
69 hd64465_iomap_lo[port>>HD64465_IOMAP_LO_SHIFT] = addr; in hd64465_port_map()
70 hd64465_iomap_lo_shift[port>>HD64465_IOMAP_LO_SHIFT] = shift; in hd64465_port_map()
74 for (port = MAX(baseport, HD64465_IOMAP_LO_THRESH) ; in hd64465_port_map()
75 port < endport && port < HD64465_IOMAP_HI_THRESH ; in hd64465_port_map()
76 port += (1<<HD64465_IOMAP_HI_SHIFT)) { in hd64465_port_map()
[all …]
Dio_keywest.c60 u32 port, endport = baseport + nports; in keywest_port_map() local
65 for (port = baseport ; in keywest_port_map()
66 port < endport && port < KEYWEST_IOMAP_LO_THRESH ; in keywest_port_map()
67 port += (1<<KEYWEST_IOMAP_LO_SHIFT)) { in keywest_port_map()
68 DPRINTK(" maplo[0x%x] = 0x%08x\n", port, addr); in keywest_port_map()
69 keywest_iomap_lo[port>>KEYWEST_IOMAP_LO_SHIFT] = addr; in keywest_port_map()
70 keywest_iomap_lo_shift[port>>KEYWEST_IOMAP_LO_SHIFT] = shift; in keywest_port_map()
74 for (port = MAX(baseport, KEYWEST_IOMAP_LO_THRESH) ; in keywest_port_map()
75 port < endport && port < KEYWEST_IOMAP_HI_THRESH ; in keywest_port_map()
76 port += (1<<KEYWEST_IOMAP_HI_SHIFT)) { in keywest_port_map()
[all …]
/linux-2.4.37.9/drivers/net/bonding/
Dbond_3ad.c130 static u16 __get_link_speed(struct port *port);
131 static u8 __get_duplex(struct port *port);
132 static inline void __initialize_port_locks(struct port *port);
133 static inline void __deinitialize_port_locks(struct port *port);
141 static void __record_pdu(struct lacpdu *lacpdu, struct port *port);
142 static void __record_default(struct port *port);
143 static void __update_selected(struct lacpdu *lacpdu, struct port *port);
144 static void __update_default_selected(struct port *port);
145 static void __choose_matched(struct lacpdu *lacpdu, struct port *port);
146 static void __update_ntt(struct lacpdu *lacpdu, struct port *port);
[all …]
/linux-2.4.37.9/drivers/net/wan/8253x/
D8253xsyn.c42 struct sab_port *port; in sab8253x_flush_to_ldiscS() local
47 port = (struct sab_port *)tty->driver_data; in sab8253x_flush_to_ldiscS()
53 if(port == NULL) in sab8253x_flush_to_ldiscS()
64 port->DoingInterrupt = 1; in sab8253x_flush_to_ldiscS()
65 while(port->sab8253xc_rcvbuflist && (skb_queue_len(port->sab8253xc_rcvbuflist) > 0)) in sab8253x_flush_to_ldiscS()
67 skb = skb_dequeue(port->sab8253xc_rcvbuflist); in sab8253x_flush_to_ldiscS()
73 port->DoingInterrupt = 0; in sab8253x_flush_to_ldiscS()
78 struct sab_port *port = (struct sab_port *)tty->driver_data; in sab8253x_flush_charsS() local
80 if (sab8253x_serial_paranoia_check(port, tty->device, "sab8253x_flush_chars")) in sab8253x_flush_charsS()
85 if ((Sab8253xCountTransmit(port) <= 0) || tty->stopped || tty->hw_stopped) in sab8253x_flush_charsS()
[all …]
D8253xchr.c47 SAB_PORT *port = filep->private_data; in sab8253xc_read() local
53 if(port->sab8253xc_rcvbuflist == NULL) in sab8253xc_read()
59 if(skb_queue_len(port->sab8253xc_rcvbuflist) == 0) in sab8253xc_read()
61 port->rx_empty = 1; in sab8253xc_read()
68 interruptible_sleep_on(&port->read_wait); in sab8253xc_read()
75 skb = skb_peek(port->sab8253xc_rcvbuflist); in sab8253xc_read()
82 skb = skb_dequeue(port->sab8253xc_rcvbuflist); in sab8253xc_read()
85 if(skb_queue_len(port->sab8253xc_rcvbuflist) <= 0) in sab8253xc_read()
87 port->rx_empty = 1; in sab8253xc_read()
103 SAB_PORT *port = filep->private_data; in sab8253xc_write() local
[all …]
D8253xtty.c51 static void sab8253x_change_speed(struct sab_port *port);
81 struct sab_port *port; in sab8253x_flush_to_ldisc() local
86 port = (struct sab_port *)tty->driver_data; /* probably a silly check */ in sab8253x_flush_to_ldisc()
93 if(!port) in sab8253x_flush_to_ldisc()
104 port->DoingInterrupt = 1; in sab8253x_flush_to_ldisc()
105 while(port->sab8253xc_rcvbuflist && (skb_queue_len(port->sab8253xc_rcvbuflist) > 0)) in sab8253x_flush_to_ldisc()
107 skb = skb_dequeue(port->sab8253xc_rcvbuflist); in sab8253x_flush_to_ldisc()
114 port->DoingInterrupt = 0; in sab8253x_flush_to_ldisc()
118 static void inline sab8253x_tec_wait(struct sab_port *port) in sab8253x_tec_wait() argument
120 int count = port->tec_timeout; in sab8253x_tec_wait()
[all …]
D8253xutl.c35 void sab8253x_start_txS(struct sab_port *port) in sab8253x_start_txS() argument
47 struct tty_struct *tty = port->tty; /* a little gross tty flags whether in sab8253x_start_txS()
50 fifospace = port->xmit_fifo_size; /* This code can handle fragmented frames in sab8253x_start_txS()
54 if(port->sabnext2.transmit == NULL) in sab8253x_start_txS()
63 if(count = port->sabnext2.transmit->Count, (count & OWNER) == OWN_SAB) in sab8253x_start_txS()
67 if(port->sabnext2.transmit->HostVaddr) in sab8253x_start_txS()
69 total = (port->sabnext2.transmit->HostVaddr->tail - in sab8253x_start_txS()
70 port->sabnext2.transmit->HostVaddr->data); /* packet size */ in sab8253x_start_txS()
79 port->interrupt_mask1 |= SAB82532_IMR1_XPR; in sab8253x_start_txS()
80 WRITEB(port, imr1, port->interrupt_mask1); in sab8253x_start_txS()
[all …]
D8253xint.c69 struct sab_port *port; in sab82532_interrupt() local
77 port= chip->c_portbase; in sab82532_interrupt()
78 gis = READB(port, gis); /* Global! */ in sab82532_interrupt()
94 status.sreg.isr0 = READB(port, isr0); in sab82532_interrupt()
102 status.sreg.isr1 = READB(port, isr1); in sab82532_interrupt()
111 status.sreg.pis = READB(port, pis); in sab82532_interrupt()
120 if (status.images[ISR0_IDX] & port->receive_test) in sab82532_interrupt()
122 (*port->receive_chars)(port, &status); /* when the fifo is full */ in sab82532_interrupt()
126 if ((status.images[port->dcd.irq] & port->dcd.irqmask) || in sab82532_interrupt()
127 (status.images[port->cts.irq] & port->cts.irqmask) || in sab82532_interrupt()
[all …]
/linux-2.4.37.9/include/asm-mips/
Dmv64340.h689 #define MV64340_ETH_ACCESS_PROTECTION_REG(port) (0x2294 + (port<<2)) argument
690 #define MV64340_ETH_MIB_COUNTERS_BASE(port) (0x3000 + (port<<7)) argument
691 #define MV64340_ETH_PORT_CONFIG_REG(port) (0x2400 + (port<<10)) argument
692 #define MV64340_ETH_PORT_CONFIG_EXTEND_REG(port) (0x2404 + (port<<10)) argument
693 #define MV64340_ETH_MII_SERIAL_PARAMETRS_REG(port) (0x2408 + (port<<10)) argument
694 #define MV64340_ETH_GMII_SERIAL_PARAMETRS_REG(port) (0x240c + (port<<10)) argument
695 #define MV64340_ETH_VLAN_ETHERTYPE_REG(port) (0x2410 + (port<<10)) argument
696 #define MV64340_ETH_MAC_ADDR_LOW(port) (0x2414 + (port<<10)) argument
697 #define MV64340_ETH_MAC_ADDR_HIGH(port) (0x2418 + (port<<10)) argument
698 #define MV64340_ETH_SDMA_CONFIG_REG(port) (0x241c + (port<<10)) argument
[all …]
/linux-2.4.37.9/include/asm-mips64/
Dmv64340.h689 #define MV64340_ETH_ACCESS_PROTECTION_REG(port) (0x2294 + (port<<2)) argument
690 #define MV64340_ETH_MIB_COUNTERS_BASE(port) (0x3000 + (port<<7)) argument
691 #define MV64340_ETH_PORT_CONFIG_REG(port) (0x2400 + (port<<10)) argument
692 #define MV64340_ETH_PORT_CONFIG_EXTEND_REG(port) (0x2404 + (port<<10)) argument
693 #define MV64340_ETH_MII_SERIAL_PARAMETRS_REG(port) (0x2408 + (port<<10)) argument
694 #define MV64340_ETH_GMII_SERIAL_PARAMETRS_REG(port) (0x240c + (port<<10)) argument
695 #define MV64340_ETH_VLAN_ETHERTYPE_REG(port) (0x2410 + (port<<10)) argument
696 #define MV64340_ETH_MAC_ADDR_LOW(port) (0x2414 + (port<<10)) argument
697 #define MV64340_ETH_MAC_ADDR_HIGH(port) (0x2418 + (port<<10)) argument
698 #define MV64340_ETH_SDMA_CONFIG_REG(port) (0x241c + (port<<10)) argument
[all …]
/linux-2.4.37.9/drivers/char/
Dgeneric_serial.c49 #define LOCKIT down (& port->port_write_sem);
50 #define RELEASEIT up (&port->port_write_sem);
64 struct gs_port *port; in gs_put_char() local
71 port = tty->driver_data; in gs_put_char()
73 if (!port) return; in gs_put_char()
75 if (! (port->flags & ASYNC_INITIALIZED)) return; in gs_put_char()
80 if (port->xmit_cnt >= SERIAL_XMIT_SIZE - 1) { in gs_put_char()
86 port->xmit_buf[port->xmit_head++] = ch; in gs_put_char()
87 port->xmit_head &= SERIAL_XMIT_SIZE - 1; in gs_put_char()
88 port->xmit_cnt++; /* Characters in buffer */ in gs_put_char()
[all …]
Dsh-sci.c59 static int kgdb_get_char(struct sci_port *port);
60 static void kgdb_put_char(struct sci_port *port, char c);
61 static void kgdb_handle_error(struct sci_port *port);
83 static void sci_init_pins_sci(struct sci_port* port, unsigned int cflag);
86 static void sci_init_pins_scif(struct sci_port* port, unsigned int cflag);
88 static void sci_init_pins_irda(struct sci_port* port, unsigned int cflag);
101 static int sci_request_irq(struct sci_port *port);
102 static void sci_free_irq(struct sci_port *port);
122 static void put_char(struct sci_port *port, char c) in put_char() argument
130 status = sci_in(port, SCxSR); in put_char()
[all …]
Dsh-sci.h39 # define SCSCR_INIT(port) 0x30 /* TIE=0,RIE=0,TE=1,RE=1 */ argument
48 # define SCSCR_INIT(port) 0x0030 /* TIE=0,RIE=0,TE=1,RE=1 */ argument
60 # define SCSCR_INIT(port) 0x30 /* TIE=0,RIE=0,TE=1,RE=1 */ argument
71 # define SCSCR_INIT(port) (((port)->type == PORT_SCI) ? \ argument
82 # define SCSCR_INIT(port) 0x38 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
93 # define SCSCR_INIT(port) 0x38 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
109 # define SCSCR_INIT(port) 0x38 /* TIE=0,RIE=0, argument
159 # define SCxSR_TEND(port) SCI_TEND argument
160 # define SCxSR_ERRORS(port) SCI_ERRORS argument
161 # define SCxSR_RDxF(port) SCI_RDRF argument
[all …]
Driscom8.c133 static inline int rc_paranoia_check(struct riscom_port const * port, in rc_paranoia_check() argument
142 if (!port) { in rc_paranoia_check()
146 if (port->magic != RISCOM8_MAGIC) { in rc_paranoia_check()
167 static inline int port_No (struct riscom_port const * port) in port_No() argument
169 return RC_PORT(port - rc_port); in port_No()
173 static inline struct riscom_board * port_Board(struct riscom_port const * port) in port_Board() argument
175 return &rc_board[RC_BOARD(port - rc_port)]; in port_Board()
340 static inline void rc_mark_event(struct riscom_port * port, int event) in rc_mark_event() argument
350 set_bit(event, &port->event); in rc_mark_event()
351 queue_task(&port->tqueue, &tq_riscom); in rc_mark_event()
[all …]
Dserial_txx9.c243 sio_in(struct rs_port *port, int offset) in sio_in() argument
245 if (port->io_type < 0) in sio_in()
247 return (*(volatile unsigned long*)(port->base + offset)); in sio_in()
249 return inl(port->base + offset); in sio_in()
253 sio_out(struct rs_port *port, int offset, unsigned int value) in sio_out() argument
255 if (port->io_type < 0) in sio_out()
257 (*(volatile unsigned long*)(port->base + offset))=(value); in sio_out()
259 outl(value, port->base + offset); in sio_out()
263 sio_mask(struct rs_port *port, int offset, unsigned int value) in sio_mask() argument
265 sio_out(port, offset, sio_in(port, offset) & ~value); in sio_mask()
[all …]
/linux-2.4.37.9/drivers/parport/
Dieee1284_ops.c39 size_t parport_ieee1284_write_compat (struct parport *port, in parport_ieee1284_write_compat() argument
47 struct pardevice *dev = port->physport->cad; in parport_ieee1284_write_compat()
51 if (port->irq != PARPORT_IRQ_NONE) { in parport_ieee1284_write_compat()
52 parport_enable_irq (port); in parport_ieee1284_write_compat()
56 port->physport->ieee1284.phase = IEEE1284_PH_FWD_DATA; in parport_ieee1284_write_compat()
57 parport_write_control (port, ctl); in parport_ieee1284_write_compat()
58 parport_data_forward (port); in parport_ieee1284_write_compat()
70 if (!parport_wait_peripheral (port, mask, val)) in parport_ieee1284_write_compat()
75 if ((parport_read_status (port) & in parport_ieee1284_write_compat()
104 parport_wait_event (port, wait); in parport_ieee1284_write_compat()
[all …]
Dieee1284.c40 void parport_ieee1284_wakeup (struct parport *port) in parport_ieee1284_wakeup() argument
42 up (&port->physport->ieee1284.irq); in parport_ieee1284_wakeup()
67 int parport_wait_event (struct parport *port, signed long timeout) in parport_wait_event() argument
72 if (!port->physport->cad->timeout) in parport_wait_event()
80 port_from_cookie[port->number % PARPORT_MAX] = port; in parport_wait_event()
81 timer.data = port->number; in parport_wait_event()
84 ret = down_interruptible (&port->physport->ieee1284.irq); in parport_wait_event()
116 int parport_poll_peripheral(struct parport *port, in parport_poll_peripheral() argument
126 status = parport_read_status (port); in parport_poll_peripheral()
165 int parport_wait_peripheral(struct parport *port, in parport_wait_peripheral() argument
[all …]
Ddaisy.c36 struct parport *port; member
44 static int mux_present (struct parport *port);
45 static int num_mux_ports (struct parport *port);
46 static int select_port (struct parport *port);
47 static int assign_addrs (struct parport *port);
50 static void add_dev (int devnum, struct parport *port, int daisy) in add_dev() argument
55 newdev->port = port; in add_dev()
89 int parport_daisy_init (struct parport *port) in parport_daisy_init() argument
102 if (port->muxport < 0 && mux_present (port) && in parport_daisy_init()
104 ((num_ports = num_mux_ports (port)) == 2 || num_ports == 4)) { in parport_daisy_init()
[all …]
/linux-2.4.37.9/arch/cris/drivers/
Dsync_serial.c135 static inline int sync_data_avail(struct sync_port *port);
155 static void send_word(sync_port* port);
156 static void start_dma(struct sync_port *port, const char* data, int count);
157 static void start_dma_in(sync_port* port);
327 struct sync_port* port = &ports[portnbr]; in initialize_port() local
331 port->started = 0; in initialize_port()
332 port->port_nbr = portnbr; in initialize_port()
333 port->busy = 0; in initialize_port()
334 port->cur_in_descr = 0; in initialize_port()
335 port->tr_running = 0; in initialize_port()
[all …]

12345678910>>...43