/netbsd/sys/dev/hpc/ |
H A D | pwctl.c | 74 int sc_port; member 118 sc->sc_port = loc[HPCIOIFCF_PORT]; in pwctl_attach() 125 sc->sc_port, sc->sc_id, sc->sc_on, in pwctl_attach() 129 if (sc->sc_port == HPCIOIFCF_PORT_DEFAULT || in pwctl_attach() 143 hpcio_portwrite(sc->sc_hc, sc->sc_port, in pwctl_attach() 153 DPRINTF(("pwctl hook: port %d %s(%d)", sc->sc_port, in pwctl_hook() 155 hpcio_portwrite(sc->sc_hc, sc->sc_port, in pwctl_hook() 170 DPRINTF(("pwctl ghook: port %d %s(%d)", sc->sc_port, in pwctl_ghook() 191 sc->sc_save = hpcio_portread(sc->sc_hc, sc->sc_port); in pwctl_hardpower() 192 hpcio_portwrite(sc->sc_hc, sc->sc_port, sc->sc_off); in pwctl_hardpower() [all …]
|
H A D | button.c | 57 int sc_port; member 96 sc->sc_port = loc[HPCIOIFCF_PORT]; in button_attach() 100 sc->sc_port, sc->sc_id, sc->sc_active ? "high" : "low"); in button_attach() 133 if (sc->sc_port == HPCIOIFCF_PORT_DEFAULT || in button_attach() 138 hpcio_intr_establish(sc->sc_hc, sc->sc_port, in button_attach() 156 *(int*)msg = (hpcio_portread(sc->sc_hc, sc->sc_port) == sc->sc_active); in button_state() 166 on = (hpcio_portread(sc->sc_hc, sc->sc_port) == sc->sc_active); in button_intr()
|
H A D | hpcout.c | 59 #define sc_port sc_hma.hma_port macro 91 hpcio_portwrite(sc->sc_hc, sc->sc_port, hma->hma_initvalue); in hpcout_attach() 102 printf("%s: port %d: %s\n", __func__, sc->sc_port, in hpcout_hook() 104 hpcio_portwrite(sc->sc_hc, sc->sc_port, in hpcout_hook()
|
H A D | hpcin.c | 61 #define sc_port sc_hma.hma_port macro 94 sc->sc_ih = hpcio_intr_establish(sc->sc_hc, sc->sc_port, in hpcin_attach() 109 on = (hpcio_portread(sc->sc_hc, sc->sc_port) == sc->sc_on); in hpcin_intr()
|
/netbsd/sys/arch/evbarm/armadillo/ |
H A D | armadillo9_iic.c | 51 int sc_port; member 95 sc->sc_port = ga->ga_port; in armadillo9iic_attach() 116 epgpio_in(sc->sc_gpio, sc->sc_port, sc->sc_sda); in armadillo9iic_attach() 117 epgpio_out(sc->sc_gpio, sc->sc_port, sc->sc_scl); in armadillo9iic_attach() 118 epgpio_set(sc->sc_gpio, sc->sc_port, sc->sc_scl); in armadillo9iic_attach() 174 epgpio_set(sc->sc_gpio, sc->sc_port, sc->sc_sda); in armadillo9iic_bb_set_bits() 176 epgpio_clear(sc->sc_gpio, sc->sc_port, sc->sc_sda); in armadillo9iic_bb_set_bits() 179 epgpio_set(sc->sc_gpio, sc->sc_port, sc->sc_scl); in armadillo9iic_bb_set_bits() 181 epgpio_clear(sc->sc_gpio, sc->sc_port, sc->sc_scl); in armadillo9iic_bb_set_bits() 190 epgpio_out(sc->sc_gpio, sc->sc_port, sc->sc_sda); in armadillo9iic_bb_set_dir() [all …]
|
/netbsd/sys/arch/arm/ep93xx/ |
H A D | epled.c | 40 int sc_port; member 66 sc->sc_port = ga->ga_port; in epled_attach() 79 epgpio_out(sc->sc_gpio, sc->sc_port, sc->sc_green); in epled_attach() 80 epgpio_out(sc->sc_gpio, sc->sc_port, sc->sc_red); in epled_attach() 94 epgpio_set(sc->sc_gpio, sc->sc_port, sc->sc_red); in epled_red_on() 109 epgpio_clear(sc->sc_gpio, sc->sc_port, sc->sc_red); in epled_red_off() 124 epgpio_set(sc->sc_gpio, sc->sc_port, sc->sc_green); in epled_green_on() 139 epgpio_clear(sc->sc_gpio, sc->sc_port, sc->sc_green); in epled_green_off()
|
H A D | epgpio.c | 149 pi = &sc->sc_port[0]; in epgpio_attach() 164 pi = &sc->sc_port[1]; in epgpio_attach() 179 pi = &sc->sc_port[2]; in epgpio_attach() 189 pi = &sc->sc_port[3]; in epgpio_attach() 199 pi = &sc->sc_port[4]; in epgpio_attach() 209 pi = &sc->sc_port[5]; in epgpio_attach() 224 pi = &sc->sc_port[6]; in epgpio_attach() 234 pi = &sc->sc_port[7]; in epgpio_attach() 268 pi = &sc->sc_port[i]; in epgpio_attach() 457 pi = &sc->sc_port[port]; in epgpio_intr_establish() [all …]
|
/netbsd/sys/arch/mips/cavium/dev/ |
H A D | octeon_asx.c | 50 sc->sc_port = aa->aa_port; in octasx_init() 85 SET(asx_tx_port, __BIT(sc->sc_port)); in octasx_enable_tx() 87 CLR(asx_tx_port, __BIT(sc->sc_port)); in octasx_enable_tx() 99 SET(asx_rx_port, __BIT(sc->sc_port)); in octasx_enable_rx() 101 CLR(asx_rx_port, __BIT(sc->sc_port)); in octasx_enable_rx() 110 _ASX_WR8(sc, ASX0_TX_CLK_SET0_OFFSET + 8 * sc->sc_port, tx_setting); in octasx_clk_set() 111 _ASX_WR8(sc, ASX0_RX_CLK_SET0_OFFSET + 8 * sc->sc_port, rx_setting); in octasx_clk_set()
|
H A D | octeon_pko.c | 60 sc->sc_port = aa->aa_port; in octpko_init() 108 SET(reg_read_idx, sc->sc_port & PKO_REG_READ_IDX_IDX); in octpko_port_enable() 113 SET(mem_queue_qos, __SHIFTIN(sc->sc_port, PKO_MEM_QUEUE_QOS_PID)); in octpko_port_enable() 114 SET(mem_queue_qos, __SHIFTIN(sc->sc_port, PKO_MEM_QUEUE_QOS_QID)); in octpko_port_enable() 131 KASSERT(sc->sc_port < 32); in octpko_port_config() 143 SET(mem_queue_ptrs, __SHIFTIN(sc->sc_port, PKO_MEM_QUEUE_PTRS_PID)); in octpko_port_config() 144 SET(mem_queue_ptrs, __SHIFTIN(sc->sc_port, PKO_MEM_QUEUE_PTRS_QID)); in octpko_port_config() 157 pko_queue_map_init[sc->sc_port] = 1; in octpko_port_config()
|
H A D | octeon_pip.c | 181 sc->sc_port = aa->aa_port; in octpip_init() 221 SET(prt_cfg, __SHIFTIN(sc->sc_port, PIP_PRT_CFGN_QOS)); in octpip_port_config() 251 _PIP_WR8(sc, PIP_PRT_CFG0_OFFSET + (8 * sc->sc_port), prt_cfg); in octpip_port_config() 252 _PIP_WR8(sc, PIP_PRT_TAG0_OFFSET + (8 * sc->sc_port), prt_tag); in octpip_port_config() 263 tmp = _PIP_RD8(sc, PIP_PRT_CFG0_OFFSET + (8 * sc->sc_port)); in octpip_prt_cfg_enable() 268 _PIP_WR8(sc, PIP_PRT_CFG0_OFFSET + (8 * sc->sc_port), tmp); in octpip_prt_cfg_enable()
|
H A D | octeon_ipd.c | 60 sc->sc_port = aa->aa_port; in octipd_init() 211 CLR(sub_port_fcs, __BIT(sc->sc_port)); in octipd_sub_port_fcs() 213 SET(sub_port_fcs, __BIT(sc->sc_port)); in octipd_sub_port_fcs()
|
H A D | if_cnmac.c | 241 sc->sc_port = ga->ga_portno; in cnmac_attach() 248 if (sc->sc_port >= CVMSEG_LM_ETHER_COUNT) { in cnmac_attach() 371 pip_aa.aa_port = sc->sc_port; in cnmac_pip_init() 386 ipd_aa.aa_port = sc->sc_port; in cnmac_ipd_init() 399 pko_aa.aa_port = sc->sc_port; in cnmac_pko_init() 1021 octpko_op_doorbell_write(sc->sc_port, in cnmac_start() 1022 sc->sc_port, wdc); in cnmac_start() 1053 octpko_op_doorbell_write(sc->sc_port, sc->sc_port, wdc); in cnmac_start() 1315 if (port != sc->sc_port) { in cnmac_intr() 1317 device_xname(sc->sc_dev), port, sc->sc_port); in cnmac_intr() [all …]
|
H A D | octeon_smivar.h | 35 int sc_port; member
|
H A D | octeon_asxvar.h | 34 int sc_port; member
|
H A D | octeon_ipdvar.h | 34 int sc_port; member
|
H A D | octeon_pipvar.h | 36 int sc_port; member
|
/netbsd/sys/arch/ews4800mips/sbd/ |
H A D | if_iee_sbdio.c | 67 volatile uint32_t *sc_port; /* CPU <-> i82596 interface */ member 91 sc_ssc->sc_port = in iee_sbdio_attach() 199 dummy = *sc->sc_port; in iee_sbdio_channel_attention() 200 dummy = *sc->sc_port; in iee_sbdio_channel_attention() 209 *sc->sc_port = 0; in iee_sbdio_chip_reset() 210 *sc->sc_port = 0; in iee_sbdio_chip_reset() 220 *sc->sc_port = cmd; in iee_sbdio_set_scp() 221 *sc->sc_port = cmd; in iee_sbdio_set_scp()
|
/netbsd/sys/dev/sbus/ |
H A D | spif.c | 154 sc->sc_ttys->sc_port[(port)].sp_dtr = v; \ 309 struct stty_port *sp = &ssc->sc_port[port]; in stty_attach() 350 sp = &sc->sc_port[port]; in stty_open() 410 struct stty_port *sp = &sc->sc_port[SPIF_PORT(dev)]; in stty_close() 656 struct stty_port *sp = &sc->sc_port[SPIF_PORT(dev)]; in stty_read() 666 struct stty_port *sp = &sc->sc_port[SPIF_PORT(dev)]; in stty_write() 740 sp = &sc->sc_ttys->sc_port[channel]; in spif_stcintr_rxexception() 766 sp = &sc->sc_ttys->sc_port[channel]; in spif_stcintr_rx() 799 sp = &sc->sc_ttys->sc_port[channel]; in spif_stcintr_tx() 849 sp = &sc->sc_ttys->sc_port[channel]; in spif_stcintr_mx() [all …]
|
H A D | spifvar.h | 58 struct stty_port sc_port[SPIF_MAX_SERIAL]; member
|
/netbsd/sys/arch/macppc/dev/ |
H A D | gpio.c | 59 u_int8_t *sc_port; member 97 sc->sc_port = mapiodev(ca->ca_baseaddr + ca->ca_reg[0], ca->ca_reg[1], in gpio_obio_attach() 163 sc->sc_port = device_private(parent)->sc_port; in gpio_gpio_attach()
|
/netbsd/sys/dev/usb/ |
H A D | uhso.c | 330 struct uhso_port *sc_port[UHSO_PORT_MAX]; member 543 hp = sc->sc_port[i]; in uhso_detach() 571 hp = sc->sc_port[i]; in uhso_detach() 793 if (sc->sc_port[uhso_mux_port[i]] != NULL) { in uhso_mux_attach() 801 sc->sc_port[uhso_mux_port[i]] = hp; in uhso_mux_attach() 1016 hp = sc->sc_port[uhso_mux_port[i]]; in uhso_mux_intr() 1069 if (sc->sc_port[index] != NULL) { in uhso_bulk_attach() 1077 sc->sc_port[index] = hp; in uhso_bulk_attach() 1495 hp = sc->sc_port[UHSOPORT(dev)]; in uhso_tty_open() 1932 if (sc->sc_port[index] != NULL) { in uhso_ifnet_attach() [all …]
|
H A D | vhci.c | 261 vhci_port_t sc_port[VHCI_NPORTS]; member 522 port = &sc->sc_port[VHCI_INDEX2PORT(index)]; in vhci_roothub_ctrl() 539 port = &sc->sc_port[VHCI_INDEX2PORT(index)]; in vhci_roothub_ctrl() 573 port = &sc->sc_port[VHCI_INDEX2PORT(index)]; in vhci_roothub_ctrl() 625 port = &sc->sc_port[portno]; in vhci_device_ctrl_start() 791 port = &sc->sc_port[vfd->port]; in vhci_usb_attach() 880 port = &sc->sc_port[vfd->port]; in vhci_usb_detach() 919 port = &sc->sc_port[vfd->port]; in vhci_get_info() 1047 port = &sc->sc_port[vfd->port]; in vhci_fd_read() 1121 port = &sc->sc_port[vfd->port]; in vhci_fd_write() [all …]
|
H A D | usb.c | 146 struct usbd_port sc_port; /* dummy port for root hub */ member 468 sc->sc_port.up_power = USB_MAX_POWER; in usb_doattach() 494 &sc->sc_port); in usb_doattach() 497 dev = sc->sc_port.up_dev; in usb_doattach() 1393 if ((dev = sc->sc_port.up_dev) == NULL || dev->ud_subdevlen == 0) in usb_childdet() 1411 if (sc->sc_port.up_dev != NULL && in usb_detach() 1412 (rc = usb_disconnect_port(&sc->sc_port, self, flags)) != 0) in usb_detach()
|
/netbsd/sys/dev/pci/ |
H A D | if_ixl.c | 575 uint32_t sc_port; member 1055 sc->sc_port = port; in ixl_attach() 6273 I40E_GLPRT_GORCH(sc->sc_port), I40E_GLPRT_GORCL(sc->sc_port), in ixl_stats_update() 6283 I40E_GLPRT_UPRCH(sc->sc_port), I40E_GLPRT_UPRCL(sc->sc_port), in ixl_stats_update() 6288 I40E_GLPRT_MPRCH(sc->sc_port), I40E_GLPRT_MPRCL(sc->sc_port), in ixl_stats_update() 6293 I40E_GLPRT_BPRCH(sc->sc_port), I40E_GLPRT_BPRCL(sc->sc_port), in ixl_stats_update() 6299 I40E_GLPRT_PRC64H(sc->sc_port), I40E_GLPRT_PRC64L(sc->sc_port), in ixl_stats_update() 6345 I40E_GLPRT_GOTCH(sc->sc_port), I40E_GLPRT_GOTCL(sc->sc_port), in ixl_stats_update() 6355 I40E_GLPRT_UPTCH(sc->sc_port), I40E_GLPRT_UPTCL(sc->sc_port), in ixl_stats_update() 6360 I40E_GLPRT_MPTCH(sc->sc_port), I40E_GLPRT_MPTCL(sc->sc_port), in ixl_stats_update() [all …]
|
/netbsd/sys/arch/arm/amlogic/ |
H A D | meson_sdhc.c | 90 int sc_port; member 223 sc->sc_port = -1; in meson_sdhc_attach() 228 sc->sc_port = port; in meson_sdhc_attach() 232 if (sc->sc_port == -1) { in meson_sdhc_attach() 238 aprint_normal(": SDHC controller (port %c)\n", sc->sc_port + 'A'); in meson_sdhc_attach() 299 if (sc->sc_port == SDHC_PORT_C) { in meson_sdhc_attach_i()
|