| /netbsd-src/sys/arch/pmax/tc/ |
| H A D | asc_ioasic.c | 71 #define ASC_READ_REG(asc, reg) \ argument 72 ((uint8_t)bus_space_read_4((asc)->sc_bst, (asc)->sc_scsi_bsh, \ 74 #define ASC_WRITE_REG(asc, reg, val) \ argument 75 bus_space_write_4((asc)->sc_bst, (asc)->sc_scsi_bsh, \ 122 struct asc_softc *asc = device_private(self); in asc_ioasic_attach() local 123 struct ncr53c9x_softc *sc = &asc->sc_ncr53c9x; in asc_ioasic_attach() 132 asc->sc_bst = isc->sc_bst; in asc_ioasic_attach() 133 asc->sc_bsh = isc->sc_bsh; in asc_ioasic_attach() 134 if (bus_space_subregion(asc->sc_bst, asc->sc_bsh, in asc_ioasic_attach() 135 IOASIC_SLOT_12_START, 0x100, &asc->sc_scsi_bsh)) { in asc_ioasic_attach() [all …]
|
| /netbsd-src/sys/arch/vax/vsa/ |
| H A D | asc_vsbus.c | 177 struct asc_vsbus_softc * const asc = device_private(self); in asc_vsbus_attach() local 178 struct ncr53c9x_softc * const sc = &asc->sc_ncr53c9x; in asc_vsbus_attach() 188 asc->sc_bst = va->va_memt; in asc_vsbus_attach() 189 asc->sc_dmat = va->va_dmat; in asc_vsbus_attach() 191 error = bus_space_map(asc->sc_bst, va->va_paddr - ASC_REG_NCR, in asc_vsbus_attach() 192 ASC_REG_END, 0, &asc->sc_bsh); in asc_vsbus_attach() 197 error = bus_space_subregion(asc->sc_bst, asc->sc_bsh, ASC_REG_NCR, in asc_vsbus_attach() 198 ASC_REG_END - ASC_REG_NCR, &asc->sc_ncrh); in asc_vsbus_attach() 205 error = bus_space_subregion(asc->sc_bst, asc->sc_bsh, in asc_vsbus_attach() 206 ASC_REG_KA46_ADR, sizeof(uint32_t), &asc->sc_adrh); in asc_vsbus_attach() [all …]
|
| /netbsd-src/sys/arch/arc/jazz/ |
| H A D | asc.c | 78 CFATTACH_DECL_NEW(asc, sizeof(struct asc_softc), 125 struct asc_softc *asc = device_private(self); in asc_attach() local 126 struct ncr53c9x_softc *sc = &asc->sc_ncr53c9x; in asc_attach() 140 asc->sc_iot = iot = ja->ja_bust; in asc_attach() 141 asc->sc_dmat = ja->ja_dmat; in asc_attach() 143 if (bus_space_map(iot, ja->ja_addr, ASC_NPORTS, 0, &asc->sc_ioh)) { in asc_attach() 149 0, &asc->sc_dmaioh)) { in asc_attach() 154 if (bus_dmamap_create(asc->sc_dmat, MAXPHYS, 1, MAXPHYS, 0, in asc_attach() 155 BUS_DMA_ALLOCNOW | BUS_DMA_NOWAIT, &asc->sc_dmamap)) { in asc_attach() 215 jazzio_intr_establish(ja->ja_intr, ncr53c9x_intr, asc); in asc_attach() [all …]
|
| /netbsd-src/sys/dev/tc/ |
| H A D | asc_tc.c | 127 struct asc_softc *asc = device_private(self); in asc_tc_attach() local 128 struct ncr53c9x_softc *sc = &asc->sc_ncr53c9x; in asc_tc_attach() 136 asc->sc_bst = ta->ta_memt; in asc_tc_attach() 137 asc->sc_dmat = ta->ta_dmat; in asc_tc_attach() 138 if (bus_space_map(asc->sc_bst, ta->ta_addr, in asc_tc_attach() 139 PMAZ_OFFSET_RAM + PMAZ_RAM_SIZE, 0, &asc->sc_bsh)) { in asc_tc_attach() 143 asc->sc_base = (void *)ta->ta_addr; /* XXX XXX XXX */ in asc_tc_attach() 195 struct asc_softc *asc = (struct asc_softc *)sc; in asc_tc_reset() local 197 asc->sc_active = 0; in asc_tc_reset() 203 struct asc_softc *asc = (struct asc_softc *)sc; in asc_tc_intr() local [all …]
|
| H A D | asc_tcds.c | 149 struct asc_softc *asc = device_private(self); in asc_tcds_attach() local 150 struct ncr53c9x_softc *sc = &asc->sc_ncr53c9x; in asc_tcds_attach() 160 asc->sc_bst = tcdsdev->tcdsda_bst; in asc_tcds_attach() 161 asc->sc_scsi_bsh = tcdsdev->tcdsda_bsh; in asc_tcds_attach() 162 asc->sc_tcds = tcdsdev->tcdsda_sc; in asc_tcds_attach() 170 asc->sc_dmat = tcdsdev->tcdsda_dmat; in asc_tcds_attach() 171 if ((error = bus_dmamap_create(asc->sc_dmat, PAGE_SIZE, 1, PAGE_SIZE, in asc_tcds_attach() 172 PAGE_SIZE, BUS_DMA_NOWAIT, &asc->sc_dmamap)) < 0) { in asc_tcds_attach() 233 struct asc_softc *asc = (struct asc_softc *)sc; in tcds_dma_reset() local 236 tcds_scsi_reset(asc->sc_tcds); /* XXX */ in tcds_dma_reset() [all …]
|
| /netbsd-src/sys/dev/pci/ |
| H A D | agp_amd64.c | 203 struct agp_amd64_softc *asc; in agp_amd64_attach() local 211 asc = malloc(sizeof(struct agp_amd64_softc), M_AGP, M_WAITOK | M_ZERO); in agp_amd64_attach() 226 asc->mctrl_tag[n] = tag; in agp_amd64_attach() 235 asc->n_mctrl = n; in agp_amd64_attach() 238 asc->n_mctrl); in agp_amd64_attach() 241 sc->as_chipc = asc; in agp_amd64_attach() 245 asc->initial_aperture = AGP_GET_APERTURE(sc); in agp_amd64_attach() 261 asc->gatt = gatt; in agp_amd64_attach() 266 if (agp_amd64_uli_set_aperture(sc, asc->initial_aperture)) { in agp_amd64_attach() 274 asc->ctrl_tag = AGP_AMD64_NVIDIA_PCITAG(pa->pa_pc); in agp_amd64_attach() [all …]
|
| H A D | agp_via.c | 90 struct agp_via_softc *asc; in agp_via_attach() local 94 asc = malloc(sizeof *asc, M_AGP, M_WAITOK|M_ZERO); in agp_via_attach() 95 sc->as_chipc = asc; in agp_via_attach() 103 asc->regs = via_v3_regs; in agp_via_attach() 106 asc->regs = via_v2_regs; in agp_via_attach() 110 asc->regs = via_v2_regs; in agp_via_attach() 116 free(asc, M_AGP); in agp_via_attach() 120 asc->initial_aperture = AGP_GET_APERTURE(sc); in agp_via_attach() 137 asc->gatt = gatt; in agp_via_attach() 139 if (asc->regs == via_v2_regs) { in agp_via_attach() [all …]
|
| H A D | agp_amd.c | 50 #define READ2(off) bus_space_read_2(asc->iot, asc->ioh, off) 51 #define READ4(off) bus_space_read_4(asc->iot, asc->ioh, off) 52 #define WRITE2(off,v) bus_space_write_2(asc->iot, asc->ioh, off, v) 53 #define WRITE4(off,v) bus_space_write_4(asc->iot, asc->ioh, off, v) 170 struct agp_amd_softc *asc; in agp_amd_attach() local 176 asc = malloc(sizeof *asc, M_AGP, M_WAITOK|M_ZERO); in agp_amd_attach() 179 &asc->iot, &asc->ioh, NULL, NULL); in agp_amd_attach() 183 free(asc, M_AGP); in agp_amd_attach() 190 free(asc, M_AGP); in agp_amd_attach() 196 sc->as_chipc = asc; in agp_amd_attach() [all …]
|
| H A D | agp_ali.c | 79 struct agp_ali_softc *asc; in agp_ali_attach() local 84 asc = malloc(sizeof *asc, M_AGP, M_WAITOK); in agp_ali_attach() 85 sc->as_chipc = asc; in agp_ali_attach() 90 free(asc, M_AGP); in agp_ali_attach() 97 asc->initial_aperture = agp_ali_get_aperture(sc); in agp_ali_attach() 114 asc->gatt = gatt; in agp_ali_attach() 135 struct agp_ali_softc *asc = sc->as_chipc; 148 AGP_SET_APERTURE(sc, asc->initial_aperture); 153 agp_free_gatt(sc, asc->gatt); 215 struct agp_ali_softc *asc = sc->as_chipc; in agp_ali_bind_page() local [all …]
|
| H A D | agp_apple.c | 84 struct agp_apple_softc *asc; in agp_apple_attach() local 87 asc = malloc(sizeof *asc, M_AGP, M_WAITOK|M_ZERO); in agp_apple_attach() 88 sc->as_chipc = asc; in agp_apple_attach() 100 asc->initial_aperture = sc->as_apsize; in agp_apple_attach() 112 asc->gatt = gatt; in agp_apple_attach() 164 struct agp_apple_softc *asc = sc->as_chipc; in agp_apple_bind_page() local 166 if (offset < 0 || offset >= (asc->gatt->ag_entries << AGP_PAGE_SHIFT)) in agp_apple_bind_page() 169 asc->gatt->ag_virtual[offset >> AGP_PAGE_SHIFT] = htole32(physical); in agp_apple_bind_page() 176 struct agp_apple_softc *asc = sc->as_chipc; in agp_apple_unbind_page() local 178 if (offset < 0 || offset >= (asc->gatt->ag_entries << AGP_PAGE_SHIFT)) in agp_apple_unbind_page() [all …]
|
| /netbsd-src/sys/dev/acpi/ |
| H A D | igpio_acpi.c | 112 struct igpio_acpi_softc * const asc = device_private(self); in igpio_acpi_attach() local 122 asc->sc_handle = aa->aa_node->ad_handle; in igpio_acpi_attach() 135 asc->sc_isc.sc_dev = self; in igpio_acpi_attach() 137 asc->sc_isc.sc_bst = aa->aa_memt; in igpio_acpi_attach() 139 asc->sc_isc.sc_nbar = nbar; in igpio_acpi_attach() 140 asc->sc_isc.sc_base = in igpio_acpi_attach() 141 kmem_zalloc(sizeof(*asc->sc_isc.sc_base) * nbar, KM_SLEEP); in igpio_acpi_attach() 142 asc->sc_isc.sc_length = in igpio_acpi_attach() 143 kmem_zalloc(sizeof(*asc->sc_isc.sc_length) * nbar, KM_SLEEP); in igpio_acpi_attach() 144 asc->sc_isc.sc_bsh = in igpio_acpi_attach() [all …]
|
| H A D | acpi_display.c | 516 struct acpidisp_vga_softc *asc = device_private(self); in acpidisp_vga_attach() local 523 asc->sc_node = ad; in acpidisp_vga_attach() 524 asc->sc_dev = self; in acpidisp_vga_attach() 525 asc->sc_log = NULL; in acpidisp_vga_attach() 527 mutex_init(&asc->sc_mtx, MUTEX_DEFAULT, IPL_NONE); in acpidisp_vga_attach() 529 asc->sc_caps = acpidisp_vga_capabilities(ad); in acpidisp_vga_attach() 530 asc->sc_policy = acpidisp_default_bios_policy; in acpidisp_vga_attach() 531 asc->sc_odinfo = NULL; in acpidisp_vga_attach() 533 acpidisp_vga_print_capabilities(self, asc->sc_caps); in acpidisp_vga_attach() 540 asc in acpidisp_vga_attach() 572 struct acpidisp_vga_softc *asc = device_private(self); acpidisp_vga_detach() local 603 struct acpidisp_vga_softc *asc = device_private(self); acpidisp_vga_childdetached() local 629 acpidisp_vga_scan_outdevs(struct acpidisp_vga_softc * asc) acpidisp_vga_scan_outdevs() argument 776 struct acpidisp_vga_softc *asc = device_private(self); acpidisp_vga_resume() local 914 struct acpidisp_vga_softc *asc = device_private(context); acpidisp_vga_notify_handler() local 994 struct acpidisp_vga_softc *asc = arg; acpidisp_vga_cycle_output_device_callback() local 1059 struct acpidisp_vga_softc *asc = arg; acpidisp_vga_output_device_change_callback() local 1203 acpidisp_vga_sysctl_setup(struct acpidisp_vga_softc * asc) acpidisp_vga_sysctl_setup() argument 1316 struct acpidisp_vga_softc *asc; global() local 1348 struct acpidisp_vga_softc *asc; global() local 1492 acpidisp_init_odinfo(const struct acpidisp_vga_softc * asc) global() argument 1575 acpidisp_vga_bind_outdevs(struct acpidisp_vga_softc * asc) global() argument 1761 acpidisp_set_policy(const struct acpidisp_vga_softc * asc,uint8_t value) global() argument [all...] |
| H A D | plgpio_acpi.c | 84 struct plgpio_acpi_softc * const asc = device_private(self); in plgpio_acpi_attach() local 85 struct plgpio_softc * const sc = &asc->sc_base; in plgpio_acpi_attach() 95 asc->sc_handle = aa->aa_node->ad_handle; in plgpio_acpi_attach() 124 rv = acpi_event_create_gpio(self, asc->sc_handle, plgpio_acpi_register_event, asc); in plgpio_acpi_attach() 132 (uint64_t)(uintptr_t)asc->sc_handle, in plgpio_acpi_attach() 133 IPL_VM, false, plgpio_acpi_intr, asc, device_xname(self)); in plgpio_acpi_attach() 144 struct plgpio_acpi_softc * const asc = priv; in plgpio_acpi_register_event() local 145 struct plgpio_softc * const sc = &asc->sc_base; in plgpio_acpi_register_event() 150 if (pin >= __arraycount(asc->sc_event)) { in plgpio_acpi_register_event() 151 aprint_error_dev(asc->sc_base.sc_dev, in plgpio_acpi_register_event() [all …]
|
| H A D | fdc_acpi.c | 98 struct fdc_acpi_softc *asc = device_private(self); in fdc_acpi_attach() local 99 struct fdc_softc *sc = &asc->sc_fdc; in fdc_acpi_attach() 108 asc->sc_node = aa->aa_node; in fdc_acpi_attach() 134 0, &asc->sc_baseioh)) { in fdc_acpi_attach() 141 sc->sc_ioh = asc->sc_baseioh; in fdc_acpi_attach() 144 if (bus_space_subregion(sc->sc_iot, asc->sc_baseioh, 2, 4, in fdc_acpi_attach() 190 sc->sc_present = fdc_acpi_enumerate(asc); in fdc_acpi_attach() 193 fdc_acpi_getknownfds(asc); in fdc_acpi_attach() 210 fdc_acpi_enumerate(struct fdc_acpi_softc *asc) in fdc_acpi_enumerate() argument 212 struct fdc_softc *sc = &asc->sc_fdc; in fdc_acpi_enumerate() [all …]
|
| /netbsd-src/sys/arch/mips/atheros/dev/ |
| H A D | if_ath_arbus.c | 99 struct ath_arbus_softc *asc = device_private(dv); in ath_arbus_resume() local 100 ath_resume(&asc->sc_ath); in ath_arbus_resume() 109 struct ath_arbus_softc *asc; in ath_arbus_attach() local 117 asc = device_private(self); in ath_arbus_attach() 118 sc = &asc->sc_ath; in ath_arbus_attach() 135 asc->sc_iot = aa->aa_bst; in ath_arbus_attach() 136 rv = bus_space_map(asc->sc_iot, aa->aa_addr, aa->aa_size, 0, in ath_arbus_attach() 137 &asc->sc_ioh); in ath_arbus_attach() 145 rv = atheros_get_board_config(&asc->sc_config); in ath_arbus_attach() 150 asc->sc_config.unit = device_unit(sc->sc_dev); in ath_arbus_attach() [all …]
|
| /netbsd-src/sys/dev/mca/ |
| H A D | if_elmc_mca.c | 104 struct elmc_mca_softc *asc = device_private(self); in elmc_mca_attach() local 105 struct ie_softc *sc = &asc->sc_ie; in elmc_mca_attach() 175 asc->sc_regt = ma->ma_iot; in elmc_mca_attach() 176 asc->sc_regh = ioh; in elmc_mca_attach() 240 bus_space_unmap(asc->sc_regt, asc->sc_regh, ELMC_IOADDR_SIZE); in elmc_mca_attach() 246 revision = (int) bus_space_read_1(asc->sc_regt, asc->sc_regh, in elmc_mca_attach() 262 myaddr[i] = bus_space_read_1(asc->sc_regt, asc->sc_regh, i); in elmc_mca_attach() 268 asc->sc_ih = mca_intr_establish(ma->ma_mc, irq, IPL_NET, i82586_intr, in elmc_mca_attach() 270 if (asc->sc_ih == NULL) { in elmc_mca_attach() 346 struct elmc_mca_softc* asc = (struct elmc_mca_softc *) sc; in elmc_mca_attn() local [all …]
|
| /netbsd-src/sys/dev/isa/ |
| H A D | if_ai.c | 110 struct ai_softc *asc = (struct ai_softc *)sc; in ai_reset() local 115 bus_space_write_1(asc->sc_regt, asc->sc_regh, AI_RESET, 0); in ai_reset() 131 struct ai_softc *asc = (struct ai_softc *)sc; in ai_atten() local 133 bus_space_write_1(asc->sc_regt, asc->sc_regh, AI_ATTN, 0); in ai_atten() 210 struct ai_softc asc; in ai_match() local 259 memset(&asc, 0, sizeof asc); in ai_match() 260 asc.sc_regt = iot; in ai_match() 261 asc.sc_regh = ioh; in ai_match() 263 if ((memsize = ai_find_mem_size(&asc, ia->ia_memt, in ai_match() 300 struct ai_softc *asc = device_private(self); in ai_attach() local [all …]
|
| /netbsd-src/sys/arch/arm/apple/ |
| H A D | apple_nvme.c | 277 struct apple_nvme_softc * const asc = in apple_nvme_intr_establish() local 279 const int phandle = asc->asc_phandle; in apple_nvme_intr_establish() 328 struct apple_nvme_softc * const asc = in apple_nvme_intr_disestablish() local 339 fdtbus_intr_disestablish(asc->asc_phandle, sc->sc_ih[qid]); in apple_nvme_intr_disestablish() 348 struct apple_nvme_softc * const asc) in apple_nvme_setup_intr() argument 350 struct nvme_softc * const sc = &asc->asc_nvme; in apple_nvme_setup_intr() 352 asc->asc_nintrs = 1; in apple_nvme_setup_intr() 353 asc->asc_phandle = faa->faa_phandle; in apple_nvme_setup_intr() 355 sc->sc_use_mq = asc->asc_nintrs > 1; in apple_nvme_setup_intr() 373 struct apple_nvme_softc * const asc = device_private(self); in apple_nvme_attach() local [all …]
|
| /netbsd-src/sys/arch/mips/alchemy/dev/ |
| H A D | com_aubus.c | 88 struct com_aubus_softc *asc = device_private(self); in com_aubus_attach() local 89 struct com_softc *sc = &asc->sc_com; in com_aubus_attach() 95 asc->sc_irq = aa->aa_irq[0]; in com_aubus_attach() 136 struct com_aubus_softc *asc = (void *)sc; /* XXX mi prototype */ in com_aubus_enable() local 139 if (ISSET(sc->sc_hwflags, COM_HW_CONSOLE) && (asc->sc_ih != NULL)) in com_aubus_enable() 147 asc->sc_ih = au_intr_establish(asc->sc_irq, 0, IPL_SERIAL, IST_LEVEL, in com_aubus_enable() 149 if (asc->sc_ih == NULL) { in com_aubus_enable() 161 struct com_aubus_softc *asc = (void *)sc; /* XXX mi prototype */ in com_aubus_disable() local 168 au_intr_disestablish(asc->sc_ih); in com_aubus_disable()
|
| /netbsd-src/sys/dev/i2c/ |
| H A D | as3722.c | 573 struct as3722_softc *asc = device_private(device_parent(dev)); in as3722reg_enable() local 581 iic_acquire_bus(asc->sc_i2c, flags); in as3722reg_enable() 583 error = as3722_set_clear(asc, regdef->enable_reg, in as3722reg_enable() 586 error = as3722_set_clear(asc, regdef->enable_reg, in as3722reg_enable() 588 iic_release_bus(asc->sc_i2c, flags); in as3722reg_enable() 597 struct as3722_softc *asc = device_private(device_parent(dev)); in as3722reg_set_voltage_ldo() local 622 iic_acquire_bus(asc->sc_i2c, flags); in as3722reg_set_voltage_ldo() 623 error = as3722_set_clear(asc, regdef->vsel_reg, set_v, in as3722reg_set_voltage_ldo() 625 iic_release_bus(asc->sc_i2c, flags); in as3722reg_set_voltage_ldo() 634 struct as3722_softc *asc = device_private(device_parent(dev)); in as3722reg_get_voltage_ldo() local [all …]
|
| /netbsd-src/sys/arch/amiga/dev/ |
| H A D | toccata.c | 250 struct ad1848_softc *asc; in toccata_attach() local 255 asc = &sc->sc_ad; in toccata_attach() 256 asc->sc_dev = self; in toccata_attach() 266 asc->parent = sc; in toccata_attach() 267 asc->sc_readreg = toccata_readreg; in toccata_attach() 268 asc->sc_writereg = toccata_writereg; in toccata_attach() 270 asc->chip_name = "ad1848"; in toccata_attach() 271 asc->mode = 1; in toccata_attach() 272 ad1848_attach(asc); in toccata_attach() 353 toccata_readreg(struct ad1848_softc *asc, int offset) in toccata_readreg() argument [all …]
|
| /netbsd-src/sys/dev/mii/ |
| H A D | atphy.c | 114 atphy_clk_25m(struct atphy_softc *asc) in atphy_clk_25m() argument 116 struct mii_softc *sc = &asc->mii_sc; in atphy_clk_25m() 130 if (asc->mii_clk_25m <= select_clk[i].hz) in atphy_clk_25m() 170 struct atphy_softc *asc = device_private(self); in atphy_attach() local 173 struct mii_softc *sc = &asc->mii_sc; in atphy_attach() 195 &asc->rgmii_tx_internal_delay); in atphy_attach() 197 &asc->rgmii_rx_internal_delay); in atphy_attach() 199 prop_dictionary_get_uint32(prop, "clk_25m", &asc->mii_clk_25m); in atphy_attach() 200 if (asc->mii_clk_25m != 0) in atphy_attach() 201 atphy_clk_25m(asc); in atphy_attach() 411 struct atphy_softc *asc = (struct atphy_softc *)sc; atphy_reset() local [all...] |
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/pkcs12/ |
| H A D | p12_utl.c | 16 unsigned char *OPENSSL_asc2uni(const char *asc, int asclen, in OPENSSL_asc2uni() argument 23 asclen = strlen(asc); in OPENSSL_asc2uni() 31 unitmp[i + 1] = asc[i >> 1]; in OPENSSL_asc2uni() 74 unsigned char *OPENSSL_utf82uni(const char *asc, int asclen, in OPENSSL_utf82uni() argument 82 asclen = strlen(asc); in OPENSSL_utf82uni() 85 j = UTF8_getc((const unsigned char *)asc+i, asclen-i, &utf32chr); in OPENSSL_utf82uni() 104 return OPENSSL_asc2uni(asc, asclen, uni, unilen); in OPENSSL_utf82uni() 123 j = UTF8_getc((const unsigned char *)asc+i, asclen-i, &utf32chr); in OPENSSL_utf82uni()
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/ |
| H A D | schema_check.c | 61 Attribute *a, *asc = NULL, *aoc = NULL; in entry_schema_check() local 105 asc = a; in entry_schema_check() 145 if ( asc == NULL && !add ) { in entry_schema_check() 160 if ( asc == NULL && add ) { in entry_schema_check() 162 asc = attr_find( e->e_attrs, ad_structuralObjectClass ); in entry_schema_check() 167 assert( asc->a_vals != NULL ); in entry_schema_check() 168 assert( asc->a_vals[0].bv_val != NULL ); in entry_schema_check() 169 assert( asc->a_vals[1].bv_val == NULL ); in entry_schema_check() 171 sc = oc_bvfind( &asc->a_vals[0] ); in entry_schema_check() 175 asc->a_vals[0].bv_val ); in entry_schema_check() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/pkcs12/ |
| H A D | p12_utl.c | 16 unsigned char *OPENSSL_asc2uni(const char *asc, int asclen, in OPENSSL_asc2uni() argument 23 asclen = strlen(asc); in OPENSSL_asc2uni() 33 unitmp[i + 1] = asc[i >> 1]; in OPENSSL_asc2uni() 79 unsigned char *OPENSSL_utf82uni(const char *asc, int asclen, in OPENSSL_utf82uni() argument 87 asclen = strlen(asc); in OPENSSL_utf82uni() 90 j = UTF8_getc((const unsigned char *)asc+i, asclen-i, &utf32chr); in OPENSSL_utf82uni() 109 return OPENSSL_asc2uni(asc, asclen, uni, unilen); in OPENSSL_utf82uni() 128 j = UTF8_getc((const unsigned char *)asc+i, asclen-i, &utf32chr); in OPENSSL_utf82uni()
|