Home
last modified time | relevance | path

Searched defs:port (Results 1 – 25 of 414) sorted by relevance

12345678910>>...17

/openbmc/qemu/hw/net/rocker/
H A Drocker_fp.c44 char *fp_port_get_name(FpPort *port) in fp_port_get_name()
49 bool fp_port_get_link_up(FpPort *port) in fp_port_get_link_up()
54 RockerPort *fp_port_get_info(FpPort *port) in fp_port_get_info()
67 void fp_port_get_macaddr(FpPort *port, MACAddr *macaddr) in fp_port_get_macaddr()
72 void fp_port_set_macaddr(FpPort *port, MACAddr *macaddr) in fp_port_set_macaddr()
79 uint8_t fp_port_get_learning(FpPort *port) in fp_port_get_learning()
84 void fp_port_set_learning(FpPort *port, uint8_t learning) in fp_port_set_learning()
89 int fp_port_get_settings(FpPort *port, uint32_t *speed, in fp_port_get_settings()
99 int fp_port_set_settings(FpPort *port, uint32_t speed, in fp_port_set_settings()
111 bool fp_port_from_pport(uint32_t pport, uint32_t *port) in fp_port_from_pport()
[all …]
/openbmc/u-boot/drivers/serial/
H A Dserial_sh.c26 static int scif_rxfill(struct uart_port *port) in scif_rxfill()
31 static int scif_rxfill(struct uart_port *port) in scif_rxfill()
43 static int scif_rxfill(struct uart_port *port) in scif_rxfill()
51 static int scif_rxfill(struct uart_port *port) in scif_rxfill()
57 static void sh_serial_init_generic(struct uart_port *port) in sh_serial_init_generic()
69 sh_serial_setbrg_generic(struct uart_port *port, int clk, int baudrate) in sh_serial_setbrg_generic()
81 static void handle_error(struct uart_port *port) in handle_error()
89 static int serial_raw_putc(struct uart_port *port, const char c) in serial_raw_putc()
101 static int serial_rx_fifo_level(struct uart_port *port) in serial_rx_fifo_level()
106 static int sh_serial_tstc_generic(struct uart_port *port) in sh_serial_tstc_generic()
[all …]
H A Dserial_sh.h28 # define SCSCR_INIT(port) 0x30 /* TIE=0,RIE=0,TE=1,RE=1 */ argument
41 # define SCSCR_INIT(port) (port->mapbase == SCIF2) ? 0xF3 : 0xF0 argument
49 # define SCSCR_INIT(port) 0x0030 /* TIE=0,RIE=0,TE=1,RE=1 */ argument
57 # define SCSCR_INIT(port) 0x3a /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
67 # define SCSCR_INIT(port) (((port)->type == PORT_SCI) ? \ argument
75 # define SCSCR_INIT(port) 0x38 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
81 # define SCSCR_INIT(port) 0x3B argument
87 # define SCSCR_INIT(port) 0x32 /* TIE=0,RIE=0,TE=1,RE=1,REIE=0,CKE=1 */ argument
95 # define SCSCR_INIT(port) 0x0038 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
100 # define SCSCR_INIT(port) 0x0038 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
[all …]
H A Dserial_ns16550.c79 #define DECLARE_ESERIAL_FUNCTIONS(port) \ argument
110 #define INIT_ESERIAL_STRUCTURE(port, __name) { \ argument
121 static void _serial_putc(const char c, const int port) in _serial_putc()
129 static void _serial_puts(const char *s, const int port) in _serial_puts()
136 static int _serial_getc(const int port) in _serial_getc()
141 static int _serial_tstc(const int port) in _serial_tstc()
146 static void _serial_setbrg(const int port) in _serial_setbrg()
/openbmc/u-boot/drivers/bios_emulator/
H A Dbesys.c249 #define IS_TIMER_PORT(port) (0x40 <= port && port <= 0x43) argument
250 #define IS_CMOS_PORT(port) (0x70 <= port && port <= 0x71) argument
252 #define IS_VGA_PORT(port) (0x3C0 <= port && port <= 0x3DA) argument
253 #define IS_PCI_PORT(port) (0xCF8 <= port && port <= 0xCFF) argument
254 #define IS_SPKR_PORT(port) (port == 0x61) argument
267 static u8 VGA_inpb (const int port) in VGA_inpb()
343 static void VGA_outpb (int port, u8 val) in VGA_outpb()
501 static u32 PCI_inp(int port, int type) in PCI_inp()
532 static void PCI_outp(int port, u32 val, int type) in PCI_outp()
570 u8 X86API BE_inb(X86EMU_pioAddr port) in BE_inb()
[all …]
H A Dbiosemui.h131 #define PM_inpb(port) inb(port+VIDEO_IO_OFFSET) argument
132 #define PM_inpw(port) inw(port+VIDEO_IO_OFFSET) argument
133 #define PM_inpd(port) inl(port+VIDEO_IO_OFFSET) argument
134 #define PM_outpb(port,val) outb(val,port+VIDEO_IO_OFFSET) argument
135 #define PM_outpw(port,val) outw(val,port+VIDEO_IO_OFFSET) argument
136 #define PM_outpd(port,val) outl(val,port+VIDEO_IO_OFFSET) argument
138 #define LOG_inpb(port) PM_inpb(port) argument
139 #define LOG_inpw(port) PM_inpw(port) argument
140 #define LOG_inpd(port) PM_inpd(port) argument
141 #define LOG_outpb(port,val) PM_outpb(port,val) argument
[all …]
/openbmc/u-boot/arch/x86/cpu/quark/
H A Dmsg_port.c11 void msg_port_setup(int op, int port, int reg) in msg_port_setup()
18 u32 msg_port_read(u8 port, u32 reg) in msg_port_read()
30 void msg_port_write(u8 port, u32 reg, u32 value) in msg_port_write()
38 u32 msg_port_alt_read(u8 port, u32 reg) in msg_port_alt_read()
50 void msg_port_alt_write(u8 port, u32 reg, u32 value) in msg_port_alt_write()
58 u32 msg_port_io_read(u8 port, u32 reg) in msg_port_io_read()
70 void msg_port_io_write(u8 port, u32 reg, u32 value) in msg_port_io_write()
/openbmc/u-boot/drivers/misc/
H A Dsmsc_sio1007.c11 static inline u8 sio1007_read(int port, int reg) in sio1007_read()
18 static inline void sio1007_write(int port, int reg, int val) in sio1007_write()
24 static inline void sio1007_clrsetbits(int port, int reg, u8 clr, u8 set) in sio1007_clrsetbits()
29 void sio1007_enable_serial(int port, int num, int iobase, int irq) in sio1007_enable_serial()
52 void sio1007_enable_runtime(int port, int iobase) in sio1007_enable_runtime()
67 void sio1007_gpio_config(int port, int gpio, int dir, int pol, int type) in sio1007_gpio_config()
90 int sio1007_gpio_get_value(int port, int gpio) in sio1007_gpio_get_value()
109 void sio1007_gpio_set_value(int port, int gpio, int val) in sio1007_gpio_set_value()
/openbmc/u-boot/drivers/gpio/
H A Dat91_gpio.c22 static struct at91_port *at91_pio_get_port(unsigned port) in at91_pio_get_port()
58 int at91_set_pio_pullup(unsigned port, unsigned pin, int use_pullup) in at91_set_pio_pullup()
71 int at91_set_pio_periph(unsigned port, unsigned pin, int use_pullup) in at91_set_pio_periph()
89 int at91_set_a_periph(unsigned port, unsigned pin, int use_pullup) in at91_set_a_periph()
108 int at91_set_b_periph(unsigned port, unsigned pin, int use_pullup) in at91_set_b_periph()
127 int at91_pio3_set_a_periph(unsigned port, unsigned pin, int use_pullup) in at91_pio3_set_a_periph()
150 int at91_pio3_set_b_periph(unsigned port, unsigned pin, int use_pullup) in at91_pio3_set_b_periph()
172 int at91_pio3_set_c_periph(unsigned port, unsigned pin, int use_pullup) in at91_pio3_set_c_periph()
194 int at91_pio3_set_d_periph(unsigned port, unsigned pin, int use_pullup) in at91_pio3_set_d_periph()
240 int at91_set_pio_input(unsigned port, u32 pin, int use_pullup) in at91_set_pio_input()
[all …]
H A Datmel_pio4.c19 static struct atmel_pio4_port *atmel_pio4_port_base(u32 port) in atmel_pio4_port_base()
45 static int atmel_pio4_config_io_func(u32 port, u32 pin, in atmel_pio4_config_io_func()
68 int atmel_pio4_set_gpio(u32 port, u32 pin, u32 config) in atmel_pio4_set_gpio()
75 int atmel_pio4_set_a_periph(u32 port, u32 pin, u32 config) in atmel_pio4_set_a_periph()
82 int atmel_pio4_set_b_periph(u32 port, u32 pin, u32 config) in atmel_pio4_set_b_periph()
89 int atmel_pio4_set_c_periph(u32 port, u32 pin, u32 config) in atmel_pio4_set_c_periph()
96 int atmel_pio4_set_d_periph(u32 port, u32 pin, u32 config) in atmel_pio4_set_d_periph()
103 int atmel_pio4_set_e_periph(u32 port, u32 pin, u32 config) in atmel_pio4_set_e_periph()
110 int atmel_pio4_set_f_periph(u32 port, u32 pin, u32 config) in atmel_pio4_set_f_periph()
117 int atmel_pio4_set_g_periph(u32 port, u32 pin, u32 config) in atmel_pio4_set_g_periph()
[all …]
/openbmc/u-boot/arch/x86/include/asm/arch-quark/
H A Dmsg_port.h108 #define msg_port_generic_clrsetbits(type, port, reg, clr, set) \ argument
113 #define msg_port_clrbits(port, reg, clr) \ argument
115 #define msg_port_setbits(port, reg, set) \ argument
117 #define msg_port_clrsetbits(port, reg, clr, set) \ argument
120 #define msg_port_alt_clrbits(port, reg, clr) \ argument
122 #define msg_port_alt_setbits(port, reg, set) \ argument
124 #define msg_port_alt_clrsetbits(port, reg, clr, set) \ argument
127 #define msg_port_io_clrbits(port, reg, clr) \ argument
129 #define msg_port_io_setbits(port, reg, set) \ argument
131 #define msg_port_io_clrsetbits(port, reg, clr, set) \ argument
/openbmc/qemu/pc-bios/optionrom/
H A Doptrom.h38 static inline void outb(uint8_t value, uint16_t port) in outb()
43 static inline void outw(uint16_t value, uint16_t port) in outw()
48 static inline void outl(uint32_t value, uint16_t port) in outl()
53 static inline uint8_t inb(uint16_t port) in inb()
61 static inline uint16_t inw(uint16_t port) in inw()
69 static inline uint32_t inl(uint16_t port) in inl()
77 static inline void insb(uint16_t port, uint8_t *buf, uint32_t len) in insb()
/openbmc/u-boot/arch/m68k/include/asm/
H A Dio.h46 #define insb(port, buf, ns) _insb((u8 *)((port)+_IO_BASE), (buf), (ns)) argument
47 #define outsb(port, buf, ns) _outsb((u8 *)((port)+_IO_BASE), (buf), (ns)) argument
48 #define insw(port, buf, ns) _insw_ns((u16 *)((port)+_IO_BASE), (buf), (ns)) argument
49 #define outsw(port, buf, ns) _outsw_ns((u16 *)((port)+_IO_BASE), (buf), (ns)) argument
50 #define insl(port, buf, nl) _insl_ns((u32 *)((port)+_IO_BASE), (buf), (nl)) argument
51 #define outsl(port, buf, nl) _outsl_ns((u32 *)((port)+_IO_BASE), (buf), (nl)) argument
53 #define inb(port) in_8((u8 *)((port)+_IO_BASE)) argument
54 #define outb(val, port) out_8((u8 *)((port)+_IO_BASE), (val)) argument
56 #define inw(port) in_be16((u16 *)((port)+_IO_BASE)) argument
57 #define outw(val, port) out_be16((u16 *)((port)+_IO_BASE), (val)) argument
[all …]
/openbmc/qemu/net/
H A Dhub.c51 NetHubPort *port; in net_hub_receive() local
66 NetHubPort *port; in net_hub_receive_iov() local
95 NetHubPort *port; in net_hub_port_can_receive() local
115 NetHubPort *port = DO_UPCAST(NetHubPort, nc, nc); in net_hub_port_receive() local
123 NetHubPort *port = DO_UPCAST(NetHubPort, nc, nc); in net_hub_port_receive_iov() local
130 NetHubPort *port = DO_UPCAST(NetHubPort, nc, nc); in net_hub_port_cleanup() local
148 NetHubPort *port; in net_hub_port_new() local
180 NetHubPort *port; in net_hub_add_port() local
202 NetHubPort *port; in net_hub_info() local
225 NetHubPort *port; in net_hub_id_for_client() local
[all …]
/openbmc/qemu/hw/char/
H A Dvirtio-serial-bus.c41 VirtIOSerialPort *port; in find_port_by_id() local
56 VirtIOSerialPort *port; in find_port_by_vq() local
70 VirtIOSerialPort *port; in find_port_by_name() local
83 VirtIOSerialPort *port; in find_first_connected_console() local
100 static size_t write_to_port(VirtIOSerialPort *port, in write_to_port()
151 static void discard_throttle_data(VirtIOSerialPort *port) in discard_throttle_data()
160 static void do_flush_queued_data(VirtIOSerialPort *port, VirtQueue *vq, in do_flush_queued_data()
214 static void flush_queued_data(VirtIOSerialPort *port) in flush_queued_data()
264 int virtio_serial_open(VirtIOSerialPort *port) in virtio_serial_open()
277 int virtio_serial_close(VirtIOSerialPort *port) in virtio_serial_close()
[all …]
/openbmc/u-boot/drivers/net/fm/
H A Dp4080.c25 static int is_device_disabled(enum fm_port port) in is_device_disabled()
33 void fman_disable_port(enum fm_port port) in fman_disable_port()
44 void fman_enable_port(enum fm_port port) in fman_enable_port()
51 phy_interface_t fman_port_enet_if(enum fm_port port) in fman_port_enet_if()
H A Dp1023.c17 static int is_device_disabled(enum fm_port port) in is_device_disabled()
25 void fman_disable_port(enum fm_port port) in fman_disable_port()
36 void fman_enable_port(enum fm_port port) in fman_enable_port()
43 phy_interface_t fman_port_enet_if(enum fm_port port) in fman_port_enet_if()
H A Dp5020.c21 static int is_device_disabled(enum fm_port port) in is_device_disabled()
29 void fman_disable_port(enum fm_port port) in fman_disable_port()
40 void fman_enable_port(enum fm_port port) in fman_enable_port()
47 phy_interface_t fman_port_enet_if(enum fm_port port) in fman_port_enet_if()
H A Dp5040.c27 static int is_device_disabled(enum fm_port port) in is_device_disabled()
35 void fman_disable_port(enum fm_port port) in fman_disable_port()
46 void fman_enable_port(enum fm_port port) in fman_enable_port()
53 phy_interface_t fman_port_enet_if(enum fm_port port) in fman_port_enet_if()
H A Db4860.c25 static int is_device_disabled(enum fm_port port) in is_device_disabled()
33 void fman_disable_port(enum fm_port port) in fman_disable_port()
40 void fman_enable_port(enum fm_port port) in fman_enable_port()
47 phy_interface_t fman_port_enet_if(enum fm_port port) in fman_port_enet_if()
H A Dinit.c116 static int fm_port_to_index(enum fm_port port) in fm_port_to_index()
152 void fm_disable_port(enum fm_port port) in fm_disable_port()
165 void fm_enable_port(enum fm_port port) in fm_enable_port()
176 void fm_info_set_mdio(enum fm_port port, struct mii_dev *bus) in fm_info_set_mdio()
186 void fm_info_set_phy_address(enum fm_port port, int address) in fm_info_set_phy_address()
202 int fm_info_get_phy_address(enum fm_port port) in fm_info_get_phy_address()
216 phy_interface_t fm_info_get_enet_if(enum fm_port port) in fm_info_get_enet_if()
231 enum fm_port port, int offset) in __def_board_ft_fman_fixup_port()
H A Dt4240.c36 static int is_device_disabled(enum fm_port port) in is_device_disabled()
44 void fman_disable_port(enum fm_port port) in fman_disable_port()
51 void fman_enable_port(enum fm_port port) in fman_enable_port()
58 phy_interface_t fman_port_enet_if(enum fm_port port) in fman_port_enet_if()
/openbmc/u-boot/arch/xtensa/include/asm/
H A Dio.h59 #define inb(port) readb((u8 *)((port))) argument
60 #define outb(val, port) writeb((val), (u8 *)((unsigned long)(port))) argument
61 #define inw(port) readw((u16 *)((port))) argument
62 #define outw(val, port) writew((val), (u16 *)((unsigned long)(port))) argument
63 #define inl(port) readl((u32 *)((port))) argument
64 #define outl(val, port) writel((val), (u32 *)((unsigned long)(port))) argument
66 #define inb_p(port) inb((port)) argument
67 #define outb_p(val, port) outb((val), (port)) argument
68 #define inw_p(port) inw((port)) argument
69 #define outw_p(val, port) outw((val), (port)) argument
[all …]
/openbmc/u-boot/arch/powerpc/include/asm/
H A Dio.h43 #define insb(port, buf, ns) _insb((u8 *)((port)+_IO_BASE), (buf), (ns)) argument
44 #define outsb(port, buf, ns) _outsb((u8 *)((port)+_IO_BASE), (buf), (ns)) argument
45 #define insw(port, buf, ns) _insw_ns((u16 *)((port)+_IO_BASE), (buf), (ns)) argument
46 #define outsw(port, buf, ns) _outsw_ns((u16 *)((port)+_IO_BASE), (buf), (ns)) argument
47 #define insl(port, buf, nl) _insl_ns((u32 *)((port)+_IO_BASE), (buf), (nl)) argument
48 #define outsl(port, buf, nl) _outsl_ns((u32 *)((port)+_IO_BASE), (buf), (nl)) argument
50 #define inb(port) in_8((u8 *)((port)+_IO_BASE)) argument
51 #define outb(val, port) out_8((u8 *)((port)+_IO_BASE), (val)) argument
53 #define inw(port) in_be16((u16 *)((port)+_IO_BASE)) argument
54 #define outw(val, port) out_be16((u16 *)((port)+_IO_BASE), (val)) argument
[all …]
/openbmc/u-boot/arch/arm/mach-mvebu/serdes/axp/
H A Dboard_env_spec.h130 #define SATA_BASE_REG(port) (0xA2000 + (port)*0x2000) argument
132 #define SATA_PWR_PLL_CTRL_REG(port) (SATA_BASE_REG(port) + 0x804) argument
133 #define SATA_DIG_LP_ENA_REG(port) (SATA_BASE_REG(port) + 0x88C) argument
134 #define SATA_REF_CLK_SEL_REG(port) (SATA_BASE_REG(port) + 0x918) argument
135 #define SATA_COMPHY_CTRL_REG(port) (SATA_BASE_REG(port) + 0x920) argument
136 #define SATA_LP_PHY_EXT_CTRL_REG(port) (SATA_BASE_REG(port) + 0x058) argument
137 #define SATA_LP_PHY_EXT_STAT_REG(port) (SATA_BASE_REG(port) + 0x05C) argument
138 #define SATA_IMP_TX_SSC_CTRL_REG(port) (SATA_BASE_REG(port) + 0x810) argument
139 #define SATA_GEN_1_SET_0_REG(port) (SATA_BASE_REG(port) + 0x834) argument
140 #define SATA_GEN_1_SET_1_REG(port) (SATA_BASE_REG(port) + 0x838) argument
[all …]

12345678910>>...17