| /drivers/usb/tcpm/ |
| A D | tcpm.c | 282 switch (port->polarity ? port->cc2 : port->cc1) { in tcpm_get_current_limit() 452 port->prev_state = port->state; in tcpm_set_state() 470 if (port->enter_state == port->state) in tcpm_set_state_cond() 1145 port->cc_req, port->cc1, port->cc2, port->vbus_source, in tcpm_pd_build_request() 1452 port->enter_state = port->state; in run_state_machine() 1838 port->prev_state = port->state; in tcpm_state_machine() 1839 port->state = port->delayed_state; in tcpm_state_machine() 2157 port->port_type = port->typec_type; in tcpm_fw_get_caps() 2169 port->src_pdo, port->nr_src_pdo); in tcpm_fw_get_caps() 2198 port->snk_pdo, port->nr_snk_pdo); in tcpm_fw_get_caps() [all …]
|
| A D | tcpm-uclass.c | 17 struct tcpm_port *port = dev_get_uclass_plat(dev); in tcpm_get_voltage() local 19 return port->supply_voltage; in tcpm_get_voltage() 24 struct tcpm_port *port = dev_get_uclass_plat(dev); in tcpm_get_current() local 26 return port->current_limit; in tcpm_get_current() 31 struct tcpm_port *port = dev_get_uclass_plat(dev); in tcpm_get_orientation() local 33 switch (port->polarity) { in tcpm_get_orientation() 47 return tcpm_states[port->state]; in tcpm_get_state() 54 return port->negotiated_rev; in tcpm_get_pd_rev() 61 return port->pwr_role; in tcpm_get_pwr_role() 68 return port->data_role; in tcpm_get_data_role() [all …]
|
| /drivers/serial/ |
| A D | serial_sh.c | 51 sci_out(port, SCSCR , SCSCR_INIT(port)); in sh_serial_init_generic() 52 sci_out(port, SCSCR , SCSCR_INIT(port)); in sh_serial_init_generic() 56 sci_in(port, SCFCR); in sh_serial_init_generic() 89 sci_out(port, SCxSR, status & ~SCxSR_ERRORS(port)); in handle_error() 90 sci_in(port, SCLSR); in handle_error() 104 if (!(sci_in(port, SCxSR) & SCxSR_TEND(port))) in serial_raw_putc() 108 sci_out(port, SCxSR, sci_in(port, SCxSR) & ~SCxSR_TEND(port)); in serial_raw_putc() 121 handle_error(port); in sh_serial_tstc_generic() 136 if (sci_in(port, SCLSR) & SCxSR_ORER(port)) in serial_getc_check() 155 sci_out(port, SCxSR, SCxSR_RDxF_CLEAR(port)); in sh_serial_getc_generic() [all …]
|
| A D | serial_sh.h | 29 # define SCSCR_INIT(port) (((port)->type == PORT_SCI) ? \ argument 99 # define SCSCR_INIT(port) (port->clk_mode == EXT_CLK ? 0x32 : 0x30) argument 199 # define SCxSR_RDxF_CLEAR(port) (sci_in(port, SCxSR) & 0xfffc) argument 200 # define SCxSR_ERROR_CLEAR(port) (sci_in(port, SCxSR) & 0xfd73) argument 201 # define SCxSR_TDxE_CLEAR(port) (sci_in(port, SCxSR) & 0xffdf) argument 202 # define SCxSR_BREAK_CLEAR(port) (sci_in(port, SCxSR) & 0xffe3) argument 204 # define SCxSR_RDxF_CLEAR(port) (((port)->type == PORT_SCI) ? 0xbc : 0x00fc) argument 249 if (port->type == PORT_SCIF || port->type == PORT_SCIFB ||\ 258 if (port->type == PORT_SCIF || port->type == PORT_SCIFB ||\ 445 #define sci_in(port, reg) sci_##reg##_in(port) argument [all …]
|
| A D | serial_ns16550.c | 73 #define PORT serial_ports[port-1] 87 serial_setbrg_dev(port); \ 91 return serial_getc_dev(port); \ 95 return serial_tstc_dev(port); \ 99 serial_putc_dev(port, c); \ 103 serial_puts_dev(port, s); \ 112 .getc = eserial##port##_getc, \ 113 .tstc = eserial##port##_tstc, \ 114 .putc = eserial##port##_putc, \ 115 .puts = eserial##port##_puts, \ [all …]
|
| /drivers/bios_emulator/ |
| A D | besys.c | 249 #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 272 switch (port) { in VGA_inpb() 345 switch (port) { in VGA_outpb() 500 && port <= 0xCFF) in PCI_inp() 509 if (port == 0xCF8) in PCI_inp() 540 if (port == 0xCF8) in PCI_outp() [all …]
|
| A D | biosemui.h | 132 #define PM_inpb(port) inb(port) argument 133 #define PM_inpw(port) inw(port) argument 134 #define PM_inpd(port) inl(port) argument 135 #define PM_outpb(port, val) outb(val, port) argument 136 #define PM_outpw(port, val) outw(val, port) argument 137 #define PM_outpd(port, val) outl(val, port) argument 179 #define LOG_inpb(port) PM_inpb(port) argument 180 #define LOG_inpw(port) PM_inpw(port) argument 181 #define LOG_inpd(port) PM_inpd(port) argument 182 #define LOG_outpb(port, val) PM_outpb(port, val) argument [all …]
|
| /drivers/misc/ |
| A D | smsc_sio1007.c | 12 outb(reg, port); in sio1007_read() 14 return inb(port + 1); in sio1007_read() 19 outb(reg, port); in sio1007_write() 20 outb(val, port + 1); in sio1007_write() 25 sio1007_write(port, reg, (sio1007_read(port, reg) & ~clr) | set); in sio1007_clrsetbits() 34 outb(0x55, port); in sio1007_enable_serial() 48 outb(0xaa, port); in sio1007_enable_serial() 54 outb(0x55, port); in sio1007_enable_runtime() 63 outb(0xaa, port); in sio1007_enable_runtime() 78 outb(0x55, port); in sio1007_gpio_config() [all …]
|
| /drivers/net/ |
| A D | mvpp2.c | 80 #define MVPP2_RX_CTRL_REG(port) (0x140 + 4 * (port)) argument 1901 for (port = 0; port < MVPP2_MAX_PORTS; port++) { in mvpp2_prs_def_flow_init() 2391 err = mvpp2_prs_mac_da_accept(port->priv, port->id, port->dev_addr, in mvpp2_prs_update_mac_da() 4337 mvpp2_rxq_deinit(port, port->rxqs[queue]); in mvpp2_cleanup_rxqs() 4515 if (!port->init || port->link == 0) { in mvpp2_phy_connect() 4697 rxq->port = port->id; in mvpp2_port_init() 4789 port->first_rxq = port->id * rxq_number; in phy_info_parse() 4791 port->first_rxq = port->id * port->priv->max_port_rxqs; in phy_info_parse() 4834 priv->port_list[port->id] = port; in mvpp2_port_probe() 4877 for (port = 0; port < MVPP2_MAX_PORTS; port++) { in mvpp2_rx_fifo_init() [all …]
|
| A D | ksz9477.c | 39 #define PORT_CTRL_ADDR(port, addr) ((addr) | (((port) + 1) << 12)) argument 349 dev_dbg(dev, "%s P%d\n", __func__, port + 1); in ksz_phy_errata_setup() 352 ksz_port_mmd_write(dev, port, 0x01, 0x6f, 0xdd0b); in ksz_phy_errata_setup() 353 ksz_port_mmd_write(dev, port, 0x01, 0x8f, 0x6032); in ksz_phy_errata_setup() 520 dev_dbg(dev, "%s P%d %s\n", __func__, port + 1, in ksz_port_setup() 521 (port == pdata->cpu_port) ? "cpu" : ""); in ksz_port_setup() 523 if (port != pdata->cpu_port) { in ksz_port_setup() 526 ksz_phy_errata_setup(dev, port); in ksz_port_setup() 588 ret = ksz_port_setup(dev, port, phy->interface); in ksz_port_enable() 601 if (port == pdata->cpu_port) in ksz_port_enable() [all …]
|
| /drivers/xen/ |
| A D | events.c | 73 clear_evtchn(port); in do_event() 75 if (port >= NR_EVS) { in do_event() 80 action = &ev_actions[port]; in do_event() 95 port); in bind_evtchn() 97 ev_actions[port].data = data; in bind_evtchn() 102 return port; in bind_evtchn() 115 mask_evtchn(port); in unbind_evtchn() 116 clear_evtchn(port); in unbind_evtchn() 120 ev_actions[port].data = NULL; in unbind_evtchn() 123 close.port = port; in unbind_evtchn() [all …]
|
| /drivers/pci/ |
| A D | pcie_mediatek.c | 271 return port; in mtk_pcie_find_port() 275 return port; in mtk_pcie_find_port() 289 if (!port) { in mtk_pcie_config_read() 308 if (!port) in mtk_pcie_config_write() 326 free(port); in mtk_pcie_port_free() 534 port = devm_kzalloc(dev, sizeof(*port), GFP_KERNEL); in mtk_pcie_parse_port() 535 if (!port) in mtk_pcie_parse_port() 540 if (!port->base) in mtk_pcie_parse_port() 556 port->slot = slot; in mtk_pcie_parse_port() 572 port = devm_kzalloc(dev, sizeof(*port), GFP_KERNEL); in mtk_pcie_parse_port_v2() [all …]
|
| A D | pcie_apple.c | 40 #define CORE_PHY_DEFAULT_BASE(port) (0x84000 + 0x4000 * (port)) argument 247 struct apple_pcie_port *port; in apple_pcie_setup_port() local 258 port = devm_kzalloc(pcie->dev, sizeof(*port), GFP_KERNEL); in apple_pcie_setup_port() 259 if (!port) in apple_pcie_setup_port() 267 port->idx = idx >> 11; in apple_pcie_setup_port() 268 port->pcie = pcie; in apple_pcie_setup_port() 269 port->reset = reset; in apple_pcie_setup_port() 270 port->np = np; in apple_pcie_setup_port() 278 port->base = map_sysmem(addr, 0); in apple_pcie_setup_port() 283 port->phy = pcie->base + CORE_PHY_DEFAULT_BASE(port->idx); in apple_pcie_setup_port() [all …]
|
| /drivers/usb/host/ |
| A D | ehci-mxs.c | 43 writel(port->pll_en_bits, (u32)port->pll + pll_offset); in ehci_mxs_toggle_clock() 47 writel(port->pll_dis_bits, (u32)port->pll + pll_offset); in ehci_mxs_toggle_clock() 78 usb_base = port->usb_regs + 0x100; in __ehci_hcd_init() 94 usb_base = port->usb_regs + 0x100; in __ehci_hcd_stop() 118 struct ehci_mxs_port port; member 136 struct ehci_mxs_port *port = &priv->port; in ehci_usb_ofdata_to_platdata() local 194 port->pll = PLL0CTRL0(port->pll); in ehci_usb_ofdata_to_platdata() 197 port->pll = PLL1CTRL0(port->pll); in ehci_usb_ofdata_to_platdata() 218 struct ehci_mxs_port *port = &priv->port; in ehci_usb_probe() local 258 struct ehci_mxs_port *port = &priv->port; in ehci_usb_remove() local [all …]
|
| /drivers/gpio/ |
| A D | at91_gpio.c | 24 switch (port) { in at91_pio_get_port() 79 at91_set_pio_pullup(port, pin, use_pullup); in at91_set_pio_periph() 97 at91_set_pio_pullup(port, pin, use_pullup); in at91_set_a_periph() 116 at91_set_pio_pullup(port, pin, use_pullup); in at91_set_b_periph() 135 at91_set_pio_pullup(port, pin, use_pullup); in at91_pio3_set_a_periph() 158 at91_set_pio_pullup(port, pin, use_pullup); in at91_pio3_set_b_periph() 180 at91_set_pio_pullup(port, pin, use_pullup); in at91_pio3_set_c_periph() 202 at91_set_pio_pullup(port, pin, use_pullup); in at91_pio3_set_d_periph() 392 at91_set_pio_pullup(port, pin, 0); in at91_pio3_set_pio_pulldown() 406 at91_pio3_set_pio_pulldown(port, pin, 0); in at91_pio3_set_pio_pullup() [all …]
|
| A D | rzg2l-gpio.c | 18 setbits_8(data->base + P(port), BIT(pin)); in rzg2l_gpio_set() 20 clrbits_8(data->base + P(port), BIT(pin)); in rzg2l_gpio_set() 27 const u32 port = RZG2L_PINMUX_TO_PORT(offset); in rzg2l_gpio_get_value() local 48 const u32 port = RZG2L_PINMUX_TO_PORT(offset); in rzg2l_gpio_set_value() local 51 rzg2l_gpio_set(data, port, pin, (bool)value); in rzg2l_gpio_set_value() 56 u32 port, u8 pin, bool output) in rzg2l_gpio_set_direction() argument 66 const u32 port = RZG2L_PINMUX_TO_PORT(offset); in rzg2l_gpio_direction_input() local 81 rzg2l_gpio_set(data, port, pin, (bool)value); in rzg2l_gpio_direction_output() 94 if (!rzg2l_port_validate(data, port, pin)) { in rzg2l_gpio_request() 100 clrbits_8(data->base + PMC(port), BIT(pin)); in rzg2l_gpio_request() [all …]
|
| /drivers/net/fm/ |
| A D | b4860.c | 31 return port_to_devdisr[port] & devdisr2; in is_device_disabled() 41 void fman_enable_port(enum fm_port port) in fman_enable_port() argument 57 if (is_device_disabled(port)) in fman_port_enet_if() 61 if ((port == FM1_10GEC1 || port == FM1_10GEC2) && in fman_port_enet_if() 106 if ((port == FM1_10GEC1 || in fman_port_enet_if() 107 port == FM1_10GEC2) && in fman_port_enet_if() 111 else if ((port == FM1_DTSEC1) || in fman_port_enet_if() 112 (port == FM1_DTSEC2) || in fman_port_enet_if() 113 (port == FM1_DTSEC3) || in fman_port_enet_if() 114 (port == FM1_DTSEC4)) in fman_port_enet_if() [all …]
|
| A D | p5040.c | 27 static int is_device_disabled(enum fm_port port) in is_device_disabled() argument 32 return port_to_devdisr[port] & devdisr2; in is_device_disabled() 35 void fman_disable_port(enum fm_port port) in fman_disable_port() argument 40 if (port == FM1_DTSEC1) in fman_disable_port() 43 setbits_be32(&gur->devdisr2, port_to_devdisr[port]); in fman_disable_port() 46 void fman_enable_port(enum fm_port port) in fman_enable_port() argument 50 clrbits_be32(&gur->devdisr2, port_to_devdisr[port]); in fman_enable_port() 53 phy_interface_t fman_port_enet_if(enum fm_port port) in fman_port_enet_if() argument 58 if (is_device_disabled(port)) in fman_port_enet_if() 61 if ((port == FM1_10GEC1) && (is_serdes_configured(XAUI_FM1))) in fman_port_enet_if() [all …]
|
| A D | p4080.c | 25 static int is_device_disabled(enum fm_port port) in is_device_disabled() argument 30 return port_to_devdisr[port] & devdisr2; in is_device_disabled() 33 void fman_disable_port(enum fm_port port) in fman_disable_port() argument 38 if (port == FM1_DTSEC1) in fman_disable_port() 41 setbits_be32(&gur->devdisr2, port_to_devdisr[port]); in fman_disable_port() 44 void fman_enable_port(enum fm_port port) in fman_enable_port() argument 48 clrbits_be32(&gur->devdisr2, port_to_devdisr[port]); in fman_enable_port() 51 phy_interface_t fman_port_enet_if(enum fm_port port) in fman_port_enet_if() argument 56 if (is_device_disabled(port)) in fman_port_enet_if() 59 if ((port == FM1_10GEC1) && (is_serdes_configured(XAUI_FM1))) in fman_port_enet_if() [all …]
|
| A D | p5020.c | 21 static int is_device_disabled(enum fm_port port) in is_device_disabled() argument 26 return port_to_devdisr[port] & devdisr2; in is_device_disabled() 29 void fman_disable_port(enum fm_port port) in fman_disable_port() argument 34 if (port == FM1_DTSEC1) in fman_disable_port() 37 setbits_be32(&gur->devdisr2, port_to_devdisr[port]); in fman_disable_port() 40 void fman_enable_port(enum fm_port port) in fman_enable_port() argument 44 clrbits_be32(&gur->devdisr2, port_to_devdisr[port]); in fman_enable_port() 47 phy_interface_t fman_port_enet_if(enum fm_port port) in fman_port_enet_if() argument 52 if (is_device_disabled(port)) in fman_port_enet_if() 55 if ((port == FM1_10GEC1) && (is_serdes_configured(XAUI_FM1))) in fman_port_enet_if() [all …]
|
| A D | t4240.c | 36 static int is_device_disabled(enum fm_port port) in is_device_disabled() argument 41 return port_to_devdisr[port] & devdisr2; in is_device_disabled() 44 void fman_disable_port(enum fm_port port) in fman_disable_port() argument 51 void fman_enable_port(enum fm_port port) in fman_enable_port() argument 58 phy_interface_t fman_port_enet_if(enum fm_port port) in fman_port_enet_if() argument 63 if (is_device_disabled(port)) in fman_port_enet_if() 66 if ((port == FM1_10GEC1 || port == FM1_10GEC2) && in fman_port_enet_if() 73 if ((port == FM1_DTSEC9 || port == FM1_DTSEC10) && in fman_port_enet_if() 78 if ((port == FM2_10GEC1 || port == FM2_10GEC2) && in fman_port_enet_if() 104 switch (port) { in fman_port_enet_if() [all …]
|
| A D | ls1046.c | 36 static int is_device_disabled(enum fm_port port) in is_device_disabled() argument 41 return port_to_devdisr[port] & devdisr2; in is_device_disabled() 44 void fman_disable_port(enum fm_port port) in fman_disable_port() argument 51 phy_interface_t fman_port_enet_if(enum fm_port port) in fman_port_enet_if() argument 56 if (is_device_disabled(port)) in fman_port_enet_if() 71 if (port == FM1_DTSEC3) in fman_port_enet_if() 76 if (port == FM1_DTSEC4) in fman_port_enet_if() 82 switch (port) { in fman_port_enet_if() 96 switch (port) { in fman_port_enet_if() 101 port - FM1_DTSEC5)) in fman_port_enet_if() [all …]
|
| A D | ls1043.c | 36 static int is_device_disabled(enum fm_port port) in is_device_disabled() argument 41 return port_to_devdisr[port] & devdisr2; in is_device_disabled() 44 void fman_disable_port(enum fm_port port) in fman_disable_port() argument 51 phy_interface_t fman_port_enet_if(enum fm_port port) in fman_port_enet_if() argument 56 if (is_device_disabled(port)) in fman_port_enet_if() 65 if (port == FM1_DTSEC3) in fman_port_enet_if() 70 if (port == FM1_DTSEC4) in fman_port_enet_if() 77 switch (port) { in fman_port_enet_if() 80 if ((port == FM1_DTSEC2) && in fman_port_enet_if() 88 else if ((port == FM1_DTSEC9) && in fman_port_enet_if() [all …]
|
| A D | t2080.c | 29 static int is_device_disabled(enum fm_port port) in is_device_disabled() argument 34 return port_to_devdisr[port] & devdisr2; in is_device_disabled() 37 void fman_disable_port(enum fm_port port) in fman_disable_port() argument 41 setbits_be32(&gur->devdisr2, port_to_devdisr[port]); in fman_disable_port() 44 phy_interface_t fman_port_enet_if(enum fm_port port) in fman_port_enet_if() argument 49 if (is_device_disabled(port)) in fman_port_enet_if() 52 if ((port == FM1_10GEC1 || port == FM1_10GEC2) && in fman_port_enet_if() 58 if ((port == FM1_10GEC3 || port == FM1_10GEC4) && in fman_port_enet_if() 63 if ((port == FM1_DTSEC3) && ((rcwsr13 & FSL_CORENET_RCWSR13_EC1) == in fman_port_enet_if() 75 switch (port) { in fman_port_enet_if() [all …]
|
| /drivers/core/ |
| A D | ofnode_graph.c | 21 ofnode ports, port, endpoint; in ofnode_graph_get_endpoint_count() local 29 ofnode_for_each_subnode(port, parent) { in ofnode_graph_get_endpoint_count() 32 ofnode_for_each_subnode(endpoint, port) in ofnode_graph_get_endpoint_count() 50 ofnode ports, port; in ofnode_graph_get_port_count() local 58 ofnode_for_each_subnode(port, parent) in ofnode_graph_get_port_count() 76 ofnode ports, port; in ofnode_graph_get_port_by_id() local 84 ofnode_for_each_subnode(port, ports) { in ofnode_graph_get_port_by_id() 85 ofnode_read_u32(port, "reg", &port_id); in ofnode_graph_get_port_by_id() 88 return port; in ofnode_graph_get_port_by_id() 105 ofnode port, endpoint; in ofnode_graph_get_endpoint_by_regs() local [all …]
|