| /netbsd-src/sys/arch/amiga/dev/ |
| H A D | msc.c | 213 #define SWFLAGS(dev) (msc->openflags | (MSCDIALIN(dev) ? 0 : TIOCFLAG_SOFTCAR)) 216 CFATTACH_DECL_NEW(msc, 0, 259 struct mscdevice *msc; in mscattach() local 302 msc = &mscdev[MSCSLOTUL(unit, Count)]; in mscattach() 303 msc->board = mscmem; in mscattach() 304 msc->port = Count; in mscattach() 305 msc->flags = 0; in mscattach() 306 msc->openflags = 0; in mscattach() 307 msc->active = 1; in mscattach() 308 msc->unit = unit; in mscattach() [all …]
|
| H A D | a2kbbc.c | 104 struct msm6242b_softc *msc; in a2kbbc_attach() local 107 msc = &sc->sc_msm6242b; in a2kbbc_attach() 108 msc->sc_dev = self; in a2kbbc_attach() 113 msc->sc_iot = &sc->sc_bst; in a2kbbc_attach() 115 if (bus_space_map(msc->sc_iot, 0, MSM6242B_SIZE, 0, &msc->sc_ioh)) { in a2kbbc_attach() 116 aprint_error_dev(msc->sc_dev, "couldn't map registers\n"); in a2kbbc_attach() 120 msm6242b_attach(msc); in a2kbbc_attach()
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/back-asyncmeta/ |
| H A D | conn.c | 84 a_metasingleconn_t *msc = NULL; in asyncmeta_init_one_conn() local 133 msc = &mc->mc_conns[candidate]; in asyncmeta_init_one_conn() 137 if ( LDAP_BACK_CONN_ISBOUND( msc ) in asyncmeta_init_one_conn() 138 || LDAP_BACK_CONN_ISANON( msc ) ) in asyncmeta_init_one_conn() 140 assert( msc->msc_ld != NULL ); in asyncmeta_init_one_conn() 144 } else if ( META_BACK_CONN_CREATING( msc ) in asyncmeta_init_one_conn() 145 || LDAP_BACK_CONN_BINDING( msc ) ) in asyncmeta_init_one_conn() 150 } else if ( META_BACK_CONN_INITED( msc ) ) { in asyncmeta_init_one_conn() 151 assert( msc->msc_ld != NULL ); in asyncmeta_init_one_conn() 159 META_BACK_CONN_CREATING_SET( msc ); in asyncmeta_init_one_conn() [all …]
|
| H A D | bind.c | 160 a_metasingleconn_t *msc = &mc->mc_conns[ i ]; in asyncmeta_back_bind() local 162 if ( !BER_BVISNULL( &msc->msc_bound_ndn ) ) { in asyncmeta_back_bind() 163 ch_free( msc->msc_bound_ndn.bv_val ); in asyncmeta_back_bind() 164 BER_BVZERO( &msc->msc_bound_ndn ); in asyncmeta_back_bind() 167 if ( !BER_BVISNULL( &msc->msc_cred ) ) { in asyncmeta_back_bind() 169 memset( msc->msc_cred.bv_val, 0, in asyncmeta_back_bind() 170 msc->msc_cred.bv_len ); in asyncmeta_back_bind() 171 ch_free( msc->msc_cred.bv_val ); in asyncmeta_back_bind() 172 BER_BVZERO( &msc->msc_cred ); in asyncmeta_back_bind() 200 a_metasingleconn_t *msc = &mc->mc_conns[ i ]; in asyncmeta_back_bind() local [all …]
|
| H A D | delete.c | 55 a_metasingleconn_t *msc = &mc->mc_conns[ candidate ]; in asyncmeta_back_delete_start() local 66 asyncmeta_set_msc_time(msc); in asyncmeta_back_delete_start() 75 if (!( LDAP_BACK_CONN_ISBOUND( msc ) in asyncmeta_back_delete_start() 76 || LDAP_BACK_CONN_ISANON( msc )) || msc->msc_ld == NULL ) { in asyncmeta_back_delete_start() 77 Debug( asyncmeta_debug, "msc %p not initialized at %s:%d\n", msc, __FILE__, __LINE__ ); in asyncmeta_back_delete_start() 80 ber = ldap_build_delete_req( msc->msc_ld, mdn.bv_val, ctrls, NULL, &msgid); in asyncmeta_back_delete_start() 84 op->o_log_prefix, msc->msc_ld->ld_errno ); in asyncmeta_back_delete_start() 94 if (!( LDAP_BACK_CONN_ISBOUND( msc ) in asyncmeta_back_delete_start() 95 || LDAP_BACK_CONN_ISANON( msc )) || msc->msc_ld == NULL ) { in asyncmeta_back_delete_start() 96 Debug( asyncmeta_debug, "msc %p not initialized at %s:%d\n", msc, __FILE__, __LINE__ ); in asyncmeta_back_delete_start() [all …]
|
| H A D | compare.c | 58 a_metasingleconn_t *msc = &mc->mc_conns[ candidate ]; in asyncmeta_back_compare_start() local 72 asyncmeta_set_msc_time(msc); in asyncmeta_back_compare_start() 81 if (!( LDAP_BACK_CONN_ISBOUND( msc ) in asyncmeta_back_compare_start() 82 || LDAP_BACK_CONN_ISANON( msc )) || msc->msc_ld == NULL ) { in asyncmeta_back_compare_start() 83 Debug( asyncmeta_debug, "msc %p not initialized at %s:%d\n", msc, __FILE__, __LINE__ ); in asyncmeta_back_compare_start() 87 ber = ldap_build_compare_req( msc->msc_ld, mdn.bv_val, c_attr.bv_val, &mapped_value, in asyncmeta_back_compare_start() 92 op->o_log_prefix, msc->msc_ld->ld_errno ); in asyncmeta_back_compare_start() 102 if (!( LDAP_BACK_CONN_ISBOUND( msc ) in asyncmeta_back_compare_start() 103 || LDAP_BACK_CONN_ISANON( msc )) || msc->msc_ld == NULL ) { in asyncmeta_back_compare_start() 104 Debug( asyncmeta_debug, "msc %p not initialized at %s:%d\n", msc, __FILE__, __LINE__ ); in asyncmeta_back_compare_start() [all …]
|
| H A D | modrdn.c | 58 a_metasingleconn_t *msc = &mc->mc_conns[ candidate ]; in asyncmeta_back_modrdn_start() local 125 asyncmeta_set_msc_time(msc); in asyncmeta_back_modrdn_start() 134 if (!( LDAP_BACK_CONN_ISBOUND( msc ) in asyncmeta_back_modrdn_start() 135 || LDAP_BACK_CONN_ISANON( msc )) || msc->msc_ld == NULL ) { in asyncmeta_back_modrdn_start() 136 Debug( asyncmeta_debug, "msc %p not initialized at %s:%d\n", msc, __FILE__, __LINE__ ); in asyncmeta_back_modrdn_start() 139 ber = ldap_build_moddn_req( msc->msc_ld, mdn.bv_val, newrdn.bv_val, in asyncmeta_back_modrdn_start() 144 op->o_log_prefix, msc->msc_ld->ld_errno ); in asyncmeta_back_modrdn_start() 155 if (!( LDAP_BACK_CONN_ISBOUND( msc ) in asyncmeta_back_modrdn_start() 156 || LDAP_BACK_CONN_ISANON( msc )) || msc->msc_ld == NULL ) { in asyncmeta_back_modrdn_start() 157 Debug( asyncmeta_debug, "msc %p not initialized at %s:%d\n", msc, __FILE__, __LINE__ ); in asyncmeta_back_modrdn_start() [all …]
|
| H A D | modify.c | 58 a_metasingleconn_t *msc = &mc->mc_conns[ candidate ]; in asyncmeta_back_modify_start() local 124 asyncmeta_set_msc_time(msc); in asyncmeta_back_modify_start() 134 if (!( LDAP_BACK_CONN_ISBOUND( msc ) in asyncmeta_back_modify_start() 135 || LDAP_BACK_CONN_ISANON( msc )) || msc->msc_ld == NULL ) { in asyncmeta_back_modify_start() 136 Debug( asyncmeta_debug , "msc %p not initialized at %s:%d\n", msc, __FILE__, __LINE__ ); in asyncmeta_back_modify_start() 140 ber = ldap_build_modify_req( msc->msc_ld, mdn.bv_val, modv, ctrls, NULL, &msgid); in asyncmeta_back_modify_start() 144 op->o_log_prefix, msc->msc_ld->ld_errno ); in asyncmeta_back_modify_start() 154 if (!( LDAP_BACK_CONN_ISBOUND( msc ) in asyncmeta_back_modify_start() 155 || LDAP_BACK_CONN_ISANON( msc )) || msc->msc_ld == NULL ) { in asyncmeta_back_modify_start() 156 Debug( asyncmeta_debug, "msc %p not initialized at %s:%d\n", msc, __FILE__, __LINE__ ); in asyncmeta_back_modify_start() [all …]
|
| H A D | add.c | 82 a_metasingleconn_t *msc = &mc->mc_conns[ candidate ]; in asyncmeta_back_add_start() local 130 asyncmeta_set_msc_time(msc); in asyncmeta_back_add_start() 140 if (!( LDAP_BACK_CONN_ISBOUND( msc ) in asyncmeta_back_add_start() 141 || LDAP_BACK_CONN_ISANON( msc )) || msc->msc_ld == NULL ) { in asyncmeta_back_add_start() 142 Debug( asyncmeta_debug, "msc %p not initialized at %s:%d\n", msc, __FILE__, __LINE__ ); in asyncmeta_back_add_start() 146 ber = ldap_build_add_req( msc->msc_ld, mdn.bv_val, attrs, ctrls, NULL, &msgid); in asyncmeta_back_add_start() 149 op->o_log_prefix, msc->msc_ld->ld_errno ); in asyncmeta_back_add_start() 159 if (!( LDAP_BACK_CONN_ISBOUND( msc ) in asyncmeta_back_add_start() 160 || LDAP_BACK_CONN_ISANON( msc )) || msc->msc_ld == NULL ) { in asyncmeta_back_add_start() 161 Debug( asyncmeta_debug, "msc %p not initialized at %s:%d\n", msc, __FILE__, __LINE__ ); in asyncmeta_back_add_start() [all …]
|
| H A D | meta_result.c | 79 a_metasingleconn_t *msc = &mc->mc_conns[ candidate ]; in asyncmeta_dobind_result() local 84 assert( msc->msc_ldr != NULL ); in asyncmeta_dobind_result() 87 asyncmeta_set_msc_time(msc); in asyncmeta_dobind_result() 95 (unsigned int)slap_get_time(), time_buf, msc, in asyncmeta_dobind_result() 96 (unsigned int)msc->msc_binding_time, msc->msc_mscflags ); in asyncmeta_dobind_result() 99 rc = ldap_parse_result( msc->msc_ldr, res, in asyncmeta_dobind_result() 110 time_buf,bind_result->sr_err, msc ); in asyncmeta_dobind_result() 118 LDAP_BACK_CONN_BINDING_CLEAR( msc ); in asyncmeta_dobind_result() 123 if ( BER_BVISNULL( &msc->msc_bound_ndn ) in asyncmeta_dobind_result() 124 || BER_BVISEMPTY( &msc->msc_bound_ndn ) ) in asyncmeta_dobind_result() [all …]
|
| /netbsd-src/sys/arch/evbppc/explora/dev/ |
| H A D | le_elb.c | 96 struct le_elb_softc *msc = device_private(self); in le_elb_attach() local 97 struct lance_softc *sc = &msc->sc_am79900.lsc; in le_elb_attach() 108 msc->sc_iot = eaa->elb_bt; in le_elb_attach() 109 msc->sc_dmat = eaa->elb_dmat; in le_elb_attach() 111 bus_space_map(msc->sc_iot, eaa->elb_base, LE_NPORTS, 0, &msc->sc_ioh); in le_elb_attach() 116 if (bus_dmamem_alloc(msc->sc_dmat, LE_MEMSIZE, PAGE_SIZE, 0, in le_elb_attach() 121 if (bus_dmamem_map(msc->sc_dmat, &seg, rseg, LE_MEMSIZE, in le_elb_attach() 131 if (bus_dmamap_create(msc->sc_dmat, LE_MEMSIZE, 1, in le_elb_attach() 132 LE_MEMSIZE, 0, BUS_DMA_NOWAIT, &msc->sc_dmam)) { in le_elb_attach() 136 if (bus_dmamap_load(msc->sc_dmat, msc->sc_dmam, in le_elb_attach() [all …]
|
| H A D | pckbc_elb.c | 74 struct pckbc_elb_softc *msc = device_private(self); in pckbc_elb_attach() local 75 struct pckbc_softc *sc = &msc->sc_pckbc; in pckbc_elb_attach() 84 msc->sc_irq = eaa->elb_irq; in pckbc_elb_attach() 115 struct pckbc_elb_softc *msc = (void *)sc; in pckbc_elb_intr_establish() local 116 int irq = msc->sc_irq; in pckbc_elb_intr_establish() 126 msc->sc_irq = -1; in pckbc_elb_intr_establish()
|
| /netbsd-src/sys/arch/virt68k/dev/ |
| H A D | virtio_mainbus.c | 86 struct virtio_mmio_softc *msc = &sc->sc_msc; in virtio_mainbus_attach() local 87 struct virtio_softc *vsc = &msc->sc_sc; in virtio_mainbus_attach() 101 msc->sc_iot = ma->ma_st; in virtio_mainbus_attach() 102 msc->sc_ioh = bsh; in virtio_mainbus_attach() 103 msc->sc_iosize = ma->ma_size; in virtio_mainbus_attach() 104 msc->sc_alloc_interrupts = virtio_mainbus_alloc_interrupts; in virtio_mainbus_attach() 105 msc->sc_free_interrupts = virtio_mainbus_free_interrupts; in virtio_mainbus_attach() 109 virtio_mmio_common_attach(msc); in virtio_mainbus_attach() 120 struct virtio_mmio_softc *msc = &sc->sc_msc; in virtio_mainbus_rescan() local 121 struct virtio_softc *vsc = &msc->sc_sc; in virtio_mainbus_rescan() [all …]
|
| /netbsd-src/sys/dev/fdt/ |
| H A D | virtio_mmio_fdt.c | 76 struct virtio_mmio_softc * const msc = &fsc->sc_msc; in virtio_mmio_fdt_attach() local 77 struct virtio_softc * const vsc = &msc->sc_sc; in virtio_mmio_fdt_attach() 92 msc->sc_iot = faa->faa_bst; in virtio_mmio_fdt_attach() 96 error = bus_space_map(msc->sc_iot, addr, size, 0, &msc->sc_ioh); in virtio_mmio_fdt_attach() 102 msc->sc_iosize = size; in virtio_mmio_fdt_attach() 104 msc->sc_alloc_interrupts = virtio_mmio_fdt_alloc_interrupts; in virtio_mmio_fdt_attach() 105 msc->sc_free_interrupts = virtio_mmio_fdt_free_interrupts; in virtio_mmio_fdt_attach() 107 virtio_mmio_common_attach(msc); in virtio_mmio_fdt_attach() 116 struct virtio_mmio_softc * const msc in virtio_mmio_fdt_rescan() local 138 struct virtio_mmio_softc * const msc = &fsc->sc_msc; virtio_mmio_fdt_detach() local 144 virtio_mmio_fdt_alloc_interrupts(struct virtio_mmio_softc * msc) virtio_mmio_fdt_alloc_interrupts() argument 173 virtio_mmio_fdt_free_interrupts(struct virtio_mmio_softc * msc) virtio_mmio_fdt_free_interrupts() argument [all...] |
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/back-meta/ |
| H A D | bind.c | 159 metasingleconn_t *msc = &mc->mc_conns[ i ]; in meta_back_bind() local 162 if ( !BER_BVISNULL( &msc->msc_bound_ndn ) ) { in meta_back_bind() 163 ch_free( msc->msc_bound_ndn.bv_val ); in meta_back_bind() 164 BER_BVZERO( &msc->msc_bound_ndn ); in meta_back_bind() 167 if ( !BER_BVISNULL( &msc->msc_cred ) ) { in meta_back_bind() 169 memset( msc->msc_cred.bv_val, 0, in meta_back_bind() 170 msc->msc_cred.bv_len ); in meta_back_bind() 171 ch_free( msc->msc_cred.bv_val ); in meta_back_bind() 172 BER_BVZERO( &msc->msc_cred ); in meta_back_bind() 311 metasingleconn_t *msc = &mc->mc_conns[ candidate ]; in meta_back_bind_op_result() local [all …]
|
| H A D | conn.c | 282 metasingleconn_t *msc = &mc->mc_conns[ candidate ]; in meta_back_init_one_conn() local 338 if ( LDAP_BACK_CONN_ISBOUND( msc ) in meta_back_init_one_conn() 339 || LDAP_BACK_CONN_ISANON( msc ) ) in meta_back_init_one_conn() 341 assert( msc->msc_ld != NULL ); in meta_back_init_one_conn() 345 } else if ( META_BACK_CONN_CREATING( msc ) in meta_back_init_one_conn() 346 || LDAP_BACK_CONN_BINDING( msc ) ) in meta_back_init_one_conn() 362 } else if ( META_BACK_CONN_INITED( msc ) ) { in meta_back_init_one_conn() 363 assert( msc->msc_ld != NULL ); in meta_back_init_one_conn() 371 META_BACK_CONN_CREATING_SET( msc ); in meta_back_init_one_conn() 389 assert( msc->msc_ld == NULL ); in meta_back_init_one_conn() [all …]
|
| H A D | candidates.c | 257 metasingleconn_t *msc = &mc->mc_conns[ candidate ]; in meta_clear_one_candidate() local 259 if ( msc->msc_ld != NULL ) { in meta_clear_one_candidate() 265 (void *)msc->msc_ld ); in meta_clear_one_candidate() 268 ldap_unbind_ext( msc->msc_ld, NULL, NULL ); in meta_clear_one_candidate() 269 msc->msc_ld = NULL; in meta_clear_one_candidate() 272 if ( !BER_BVISNULL( &msc->msc_bound_ndn ) ) { in meta_clear_one_candidate() 273 ber_memfree_x( msc->msc_bound_ndn.bv_val, NULL ); in meta_clear_one_candidate() 274 BER_BVZERO( &msc->msc_bound_ndn ); in meta_clear_one_candidate() 277 if ( !BER_BVISNULL( &msc->msc_cred ) ) { in meta_clear_one_candidate() 278 memset( msc->msc_cred.bv_val, 0, msc->msc_cred.bv_len ); in meta_clear_one_candidate() [all …]
|
| H A D | search.c | 84 metasingleconn_t *msc = &mc->mc_conns[ candidate ]; in meta_search_dobind_init() local 86 struct berval binddn = msc->msc_bound_ndn, in meta_search_dobind_init() 87 cred = msc->msc_cred; in meta_search_dobind_init() 106 if ( LDAP_BACK_CONN_ISBOUND( msc ) || LDAP_BACK_CONN_ISANON( msc ) ) { in meta_search_dobind_init() 112 if ( LDAP_BACK_CONN_ISBOUND( msc ) ) { in meta_search_dobind_init() 119 (void *)msc->msc_ld, bound ? " bound" : " anonymous", in meta_search_dobind_init() 120 bound == 0 ? "" : msc->msc_bound_ndn.bv_val ); in meta_search_dobind_init() 125 } else if ( META_BACK_CONN_CREATING( msc ) || LDAP_BACK_CONN_BINDING( msc ) ) { in meta_search_dobind_init() 132 (void *)msc->msc_ld ); in meta_search_dobind_init() 145 (void *)msc->msc_ld ); in meta_search_dobind_init() [all …]
|
| /netbsd-src/sys/arch/evbmips/mipssim/ |
| H A D | virtio_mainbus.c | 85 struct virtio_mmio_softc *msc = &sc->sc_msc; in virtio_mainbus_attach() local 86 struct virtio_softc *vsc = &msc->sc_sc; in virtio_mainbus_attach() 100 msc->sc_iot = ma->ma_iot; in virtio_mainbus_attach() 101 msc->sc_ioh = ioh; in virtio_mainbus_attach() 102 msc->sc_iosize = VIRTIO_STRIDE; in virtio_mainbus_attach() 103 msc->sc_alloc_interrupts = virtio_mainbus_alloc_interrupts; in virtio_mainbus_attach() 104 msc->sc_free_interrupts = virtio_mainbus_free_interrupts; in virtio_mainbus_attach() 108 if (virtio_mmio_common_probe_present(msc)) in virtio_mainbus_attach() 109 virtio_mmio_common_attach(msc); in virtio_mainbus_attach() 120 struct virtio_mmio_softc *msc = &sc->sc_msc; in virtio_mainbus_rescan() local [all …]
|
| /netbsd-src/sys/dev/acpi/ |
| H A D | virtio_acpi.c | 83 struct virtio_mmio_softc * const msc = &sc->sc_msc; in virtio_acpi_attach() local 84 struct virtio_softc * const vsc = &msc->sc_sc; in virtio_acpi_attach() 93 msc->sc_iot = aa->aa_memt; in virtio_acpi_attach() 123 error = bus_space_map(msc->sc_iot, mem->ar_base, mem->ar_length, 0, &msc->sc_ioh); in virtio_acpi_attach() 128 msc->sc_iosize = mem->ar_length; in virtio_acpi_attach() 130 msc->sc_alloc_interrupts = virtio_acpi_alloc_interrupts; in virtio_acpi_attach() 131 msc->sc_free_interrupts = virtio_acpi_free_interrupts; in virtio_acpi_attach() 133 virtio_mmio_common_attach(msc); in virtio_acpi_attach() 144 struct virtio_mmio_softc * const msc in virtio_acpi_detach() local 153 struct virtio_mmio_softc * const msc = &sc->sc_msc; virtio_acpi_rescan() local 172 virtio_acpi_alloc_interrupts(struct virtio_mmio_softc * msc) virtio_acpi_alloc_interrupts() argument 191 virtio_acpi_free_interrupts(struct virtio_mmio_softc * msc) virtio_acpi_free_interrupts() argument [all...] |
| /netbsd-src/sys/arch/sgimips/hpc/ |
| H A D | pckbc_hpc.c | 85 struct pckbc_hpc_softc *msc = device_private(self); in pckbc_hpc_attach() local 86 struct pckbc_softc *sc = &msc->sc_pckbc; in pckbc_hpc_attach() 93 msc->sc_irq = haa->ha_irq; in pckbc_hpc_attach() 95 msc->sc_hasintr = 0; in pckbc_hpc_attach() 133 struct pckbc_hpc_softc *msc = (void *) sc; in pckbc_hpc_intr_establish() local 135 if (msc->sc_hasintr) in pckbc_hpc_intr_establish() 138 if (cpu_intr_establish(msc->sc_irq, IPL_TTY, pckbcintr, sc) == NULL) { in pckbc_hpc_intr_establish() 143 msc->sc_hasintr = 1; in pckbc_hpc_intr_establish()
|
| /netbsd-src/sys/arch/arm/sunxi/ |
| H A D | sunxi_musb.c | 303 struct sunxi_musb_softc * const msc = device_private(self); in sunxi_musb_attach() local 304 struct motg_softc * const sc = &msc->sc_otg; in sunxi_musb_attach() 350 msc->sc_bs.bs_cookie = faa->faa_bst; in sunxi_musb_attach() 351 msc->sc_bs.bs_r_1 = sunxi_musb_bs_r_1; in sunxi_musb_attach() 352 msc->sc_bs.bs_r_2 = sunxi_musb_bs_r_2; in sunxi_musb_attach() 353 msc->sc_bs.bs_w_1 = sunxi_musb_bs_w_1; in sunxi_musb_attach() 354 msc->sc_bs.bs_w_2 = sunxi_musb_bs_w_2; in sunxi_musb_attach() 355 msc->sc_bs.bs_rm_1 = sunxi_musb_bs_rm_1; in sunxi_musb_attach() 356 msc->sc_bs.bs_rm_4 = sunxi_musb_bs_rm_4; in sunxi_musb_attach() 357 msc->sc_bs.bs_wm_1 = sunxi_musb_bs_wm_1; in sunxi_musb_attach() [all …]
|
| /netbsd-src/sys/dev/pcmcia/ |
| H A D | xirc.c | 544 struct xirc_softc *msc = device_private(parent); in com_xirc_attach() local 551 msc->sc_modem_pcioh.iot, in com_xirc_attach() 552 msc->sc_modem_pcioh.ioh, in com_xirc_attach() 572 struct xirc_softc *msc = in com_xirc_enable() local 575 return (xirc_enable(msc, XIRC_MODEM_ENABLED, XIMEDIA_MODEM)); in com_xirc_enable() 581 struct xirc_softc *msc = in com_xirc_disable() local 584 xirc_disable(msc, XIRC_MODEM_ENABLED, XIMEDIA_MODEM); in com_xirc_disable() 619 struct xirc_softc *msc = device_private(parent); in xi_xirc_attach() local 626 sc->sc_bst = msc->sc_ethernet_pcioh.iot; in xi_xirc_attach() 627 sc->sc_bsh = msc->sc_ethernet_pcioh.ioh; in xi_xirc_attach() [all …]
|
| /netbsd-src/sys/dev/mii/ |
| H A D | micphy.c | 196 struct micphy_softc *msc = device_private(self); in micphyattach() local 197 struct mii_softc *sc = &msc->sc_mii; in micphyattach() 220 msc->sc_lstype = MICPHYF_LSTYPE_1F_42; in micphyattach() 224 msc->sc_lstype = MICPHYF_LSTYPE_1E_20; in micphyattach() 230 msc->sc_lstype = MICPHYF_LSTYPE_GIGA; in micphyattach() 232 msc->sc_lstype = MICPHYF_LSTYPE_DEFAULT; in micphyattach() 369 struct micphy_softc *msc = device_private(sc->mii_dev); in micphy_status() local 376 if (msc->sc_lstype == MICPHYF_LSTYPE_DEFAULT) { in micphy_status() 398 if (msc->sc_lstype == MICPHYF_LSTYPE_1F_42) { in micphy_status() 409 } else if (msc->sc_lstype == MICPHYF_LSTYPE_1E_20) { in micphy_status() [all …]
|
| /netbsd-src/sys/arch/evbppc/walnut/dev/ |
| H A D | pckbc_pbus.c | 91 struct pckbc_pbus_softc *msc = device_private(self); in pckbc_pbus_attach() local 92 struct pckbc_softc *sc = &msc->sc_pckbc; in pckbc_pbus_attach() 103 msc->sc_irq[PCKBC_KBD_SLOT] = paa->pb_irq; in pckbc_pbus_attach() 104 msc->sc_irq[PCKBC_AUX_SLOT] = paa->pb_irq + 1; /* XXX */ in pckbc_pbus_attach() 141 struct pckbc_pbus_softc *msc = (void *)sc; in pckbc_pbus_intr_establish() local 142 int irq = msc->sc_irq[slot]; in pckbc_pbus_intr_establish()
|