| /netbsd-src/sys/dev/mca/ |
| H A D | ed_mca.c | 153 struct ed_softc *ed = device_private(self); in ed_mca_attach() local 159 ed->sc_dev = self; in ed_mca_attach() 160 ed->edc_softc = sc; in ed_mca_attach() 161 ed->sc_devno = eda->edc_drive; in ed_mca_attach() 162 edc_add_disk(sc, ed); in ed_mca_attach() 164 bufq_alloc(&ed->sc_q, "disksort", BUFQ_SORT_RAWBLOCK); in ed_mca_attach() 165 mutex_init(&ed->sc_q_lock, MUTEX_DEFAULT, IPL_VM); in ed_mca_attach() 167 if (ed_get_params(ed, &drv_flags)) { in ed_mca_attach() 173 (u_int64_t) ed->sc_capacity * DEV_BSIZE); in ed_mca_attach() 176 ed->cyl, ed->heads, ed->sectors, in ed_mca_attach() [all …]
|
| H A D | edc_mca.c | 345 edc_add_disk(struct edc_mca_softc *sc, struct ed_softc *ed) in edc_add_disk() argument 347 sc->sc_ed[ed->sc_devno] = ed; in edc_add_disk() 807 struct ed_softc *ed; in edcworker() local 818 if ((ed = sc->sc_ed[i]) == NULL) { in edcworker() 824 mutex_enter(&ed->sc_q_lock); in edcworker() 825 if ((bp = bufq_get(ed->sc_q)) == NULL) { in edcworker() 826 mutex_exit(&ed->sc_q_lock); in edcworker() 830 mutex_exit(&ed->sc_q_lock); in edcworker() 833 disk_busy(&ed->sc_dk); in edcworker() 835 error = edc_bio(sc, ed, bp->b_data, bp->b_bcount, in edcworker() [all …]
|
| /netbsd-src/sys/arch/i386/stand/lib/ |
| H A D | bootinfo_biosgeom.c | 68 struct biosdisk_extinfo ed; in bi_getbiosgeom() local 84 if (set_geometry(&d, &ed)) in bi_getbiosgeom() 103 ed.size, ed.flags, ed.cyl, ed.head, ed.sec, in bi_getbiosgeom() 104 ed.totsec, ed.sbytes); in bi_getbiosgeom() 108 bibg->disk[nvalid].totsec = ed.totsec; in bi_getbiosgeom() 114 ed.edd_cfg, ed.devpath_sig, ed.devpath_len, in bi_getbiosgeom() 115 ed.host_bus, ed.iface_type); in bi_getbiosgeom() 119 if (ed.size >= offsetof(struct biosdisk_ext13info, checksum) in bi_getbiosgeom() 120 && ed.devpath_sig == EXTINFO_DEVPATH_SIGNATURE) { in bi_getbiosgeom() 123 for (cp = (void *)&ed.devpath_sig, cksum = 0; in bi_getbiosgeom() [all …]
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/krb5/ |
| H A D | keytab_any.c | 131 struct any_cursor_extra_data *ed; in any_start_seq_get() local 137 ed = (struct any_cursor_extra_data *)c->data; in any_start_seq_get() 138 for (ed->a = a; ed->a != NULL; ed->a = ed->a->next) { in any_start_seq_get() 139 ret = krb5_kt_start_seq_get(context, ed->a->kt, &ed->cursor); in any_start_seq_get() 143 if (ed->a == NULL) { in any_start_seq_get() 159 struct any_cursor_extra_data *ed; in any_next_entry() local 161 ed = (struct any_cursor_extra_data *)cursor->data; in any_next_entry() 163 ret = krb5_kt_next_entry(context, ed->a->kt, entry, &ed->cursor); in any_next_entry() 169 ret2 = krb5_kt_end_seq_get (context, ed->a->kt, &ed->cursor); in any_next_entry() 172 while ((ed->a = ed->a->next) != NULL) { in any_next_entry() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/ |
| H A D | denum.c | 49 EnumDeclaration *ed = new EnumDeclaration(loc, ident, in syntaxCopy() local 51 return ScopeDsymbol::syntaxCopy(ed); in syntaxCopy() 80 em->ed = this; in addMember() 254 em->ed = this; in semantic() 502 this->ed = NULL; in EnumMember() 538 assert(ed); in semantic() 539 ed->semantic(sc); in semantic() 540 if (ed->errors) in semantic() 553 protection = ed->isAnonymous() ? ed->protection : Prot(PROTpublic); in semantic() 556 userAttribDecl = ed->isAnonymous() ? ed->userAttribDecl : NULL; in semantic() [all …]
|
| /netbsd-src/bin/ed/test/ |
| H A D | README | 4 used for testing ed. To run the tests, set the ED variable in the Makefile 5 for the path name of the program to be tested (e.g., /bin/ed), and type 10 .t Template - a list of ed commands from which an ed script is 12 .d Data - read by an ed script 13 .r Result - the expected output after processing data via an ed 15 .err Error - invalid ed commands that should generate an error 18 At the end of the tests, these files are grep'ed for error messages, 20 *** The script u.ed exited abnormally *** 22 *** Output u.o of script u.ed is incorrect *** 25 a single address is expected has been relaxed in this version of ed. [all …]
|
| /netbsd-src/external/cddl/osnet/dist/tools/ctf/cvt/ |
| H A D | merge.c | 223 equiv_intrinsic(tdesc_t *stdp, tdesc_t *ttdp, equiv_data_t *ed __unused) in equiv_intrinsic() 245 equiv_plain(tdesc_t *stdp, tdesc_t *ttdp, equiv_data_t *ed) in equiv_plain() argument 247 return (equiv_node(stdp->t_tdesc, ttdp->t_tdesc, ed)); in equiv_plain() 251 equiv_function(tdesc_t *stdp, tdesc_t *ttdp, equiv_data_t *ed) in equiv_function() argument 260 if (!equiv_node(fn1->fn_ret, fn2->fn_ret, ed)) in equiv_function() 264 if (!equiv_node(fn1->fn_args[i], fn2->fn_args[i], ed)) in equiv_function() 272 equiv_array(tdesc_t *stdp, tdesc_t *ttdp, equiv_data_t *ed) in equiv_array() argument 276 if (!equiv_node(ar1->ad_contents, ar2->ad_contents, ed) || in equiv_array() 277 !equiv_node(ar1->ad_idxtype, ar2->ad_idxtype, ed)) in equiv_array() 287 equiv_su(tdesc_t *stdp, tdesc_t *ttdp, equiv_data_t *ed) in equiv_su() argument [all …]
|
| /netbsd-src/sys/arch/mips/cavium/dev/ |
| H A D | octeon_cop2var.h | 136 #define __octeon_cop2_aes_ed_16_au_vaddr64(ed, ED, au, AU) \ argument 138 octeon_cop2_aes_##ed##_16_##au##_vaddr64(uint64_t d, uint64_t s) \ 159 #define __octeon_cop2_aes_ed_16_au_ptr(ed, ED, au, AU, ptr) \ argument 161 octeon_cop2_aes_##ed##_16_##au(ptr d, ptr s) \ 163 octeon_cop2_aes_##ed##_16_##au##_vaddr64((intptr_t)d, (intptr_t)s); \ 166 #define __octeon_cop2_aes_ed_16_au(ed, ED, au, AU) \ argument 167 __octeon_cop2_aes_ed_16_au_vaddr64(ed, ED, au, AU) \ 168 __octeon_cop2_aes_ed_16_au_ptr(ed, ED, au, AU, __##au##_t *) 170 #define __octeon_cop2_aes_ed_16(ed, ED) \ argument 171 __octeon_cop2_aes_ed_16_au(ed, ED, aligned, A) \ [all …]
|
| /netbsd-src/sys/dev/usb/ |
| H A D | ubsa.c | 158 usb_endpoint_descriptor_t *ed; in ubsa_attach() local 230 ed = usbd_interface2endpoint_descriptor(sc->sc_iface[0], i); in ubsa_attach() 231 if (ed == NULL) { in ubsa_attach() 237 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in ubsa_attach() 238 UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT) { in ubsa_attach() 239 sc->sc_intr_number = ed->bEndpointAddress; in ubsa_attach() 240 sc->sc_isize = UGETW(ed->wMaxPacketSize); in ubsa_attach() 241 } else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in ubsa_attach() 242 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in ubsa_attach() 243 ucaa.ucaa_bulkin = ed->bEndpointAddress; in ubsa_attach() [all …]
|
| H A D | u3g.c | 353 usb_endpoint_descriptor_t *ed; in u3g_attach() local 385 ed = usbd_interface2endpoint_descriptor(iface, n); in u3g_attach() 386 if (ed == NULL) { in u3g_attach() 393 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in u3g_attach() 394 UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT) { in u3g_attach() 395 intr_address = ed->bEndpointAddress; in u3g_attach() 396 intr_size = UGETW(ed->wMaxPacketSize); in u3g_attach() 398 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in u3g_attach() 399 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in u3g_attach() 400 ucaa.ucaa_bulkin = ed->bEndpointAddress; in u3g_attach() [all …]
|
| H A D | uhmodem.c | 195 usb_endpoint_descriptor_t *ed; in uhmodem_attach() local 282 ed = usbd_interface2endpoint_descriptor( in uhmodem_attach() 284 if (ed == NULL) { in uhmodem_attach() 291 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in uhmodem_attach() 292 UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT) { in uhmodem_attach() 293 sc->sc_intr_number = ed->bEndpointAddress; in uhmodem_attach() 294 sc->sc_isize = UGETW(ed->wMaxPacketSize); in uhmodem_attach() 295 } else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in uhmodem_attach() 296 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in uhmodem_attach() 297 ucaa.ucaa_bulkin = ed->bEndpointAddress; in uhmodem_attach() [all …]
|
| H A D | auvitek.c | 96 usb_endpoint_descriptor_t *ed; in auvitek_attach() local 155 ed = usbd_interface2endpoint_descriptor(sc->sc_isoc_iface, i); in auvitek_attach() 156 if (ed == NULL) { in auvitek_attach() 162 dir = UE_GET_DIR(ed->bEndpointAddress); in auvitek_attach() 163 type = UE_GET_XFERTYPE(ed->bmAttributes); in auvitek_attach() 167 sc->sc_ax.ax_endpt = ed->bEndpointAddress; in auvitek_attach() 169 UE_GET_SIZE(UGETW(ed->wMaxPacketSize)) * in auvitek_attach() 170 (UE_GET_TRANS(UGETW(ed->wMaxPacketSize)) + 1); in auvitek_attach() 200 ed = usbd_interface2endpoint_descriptor(sc->sc_bulk_iface, i); in auvitek_attach() 201 if (ed == NULL) { in auvitek_attach() [all …]
|
| H A D | ohci.c | 429 sed->ed = KERNADDR(&dma, offs); in ohci_alloc_sed() 442 memset(sed->ed, 0, sizeof(*sed->ed)); in ohci_free_sed_locked() 724 /* Last TD gets usb_syncmem'ed by caller */ in ohci_alloc_sitd() 874 sc->sc_ctrl_head->ed->ed_flags |= HTOO32(OHCI_ED_SKIP); in ohci_init() 876 sizeof(*sc->sc_ctrl_head->ed), in ohci_init() 885 sc->sc_bulk_head->ed->ed_flags |= HTOO32(OHCI_ED_SKIP); in ohci_init() 887 sizeof(*sc->sc_bulk_head->ed), in ohci_init() 896 sc->sc_isoc_head->ed->ed_flags |= HTOO32(OHCI_ED_SKIP); in ohci_init() 898 sizeof(*sc->sc_isoc_head->ed), in ohci_init() 2054 usb_endpoint_descriptor_t *ed = pipe->up_endpoint->ue_edesc; ohci_open() local [all...] |
| H A D | if_cdce.c | 121 usb_endpoint_descriptor_t *ed; in cdce_attach() 211 ed = usbd_interface2endpoint_descriptor(un->un_iface, i); in cdce_attach() 212 if (!ed) { in cdce_attach() 217 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in cdce_attach() 218 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in cdce_attach() 219 un->un_ed[USBNET_ENDPT_RX] = ed->bEndpointAddress; in cdce_attach() 220 } else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && in cdce_attach() 221 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in cdce_attach() 222 un->un_ed[USBNET_ENDPT_TX] = ed->bEndpointAddress; in cdce_attach() 223 } else if (UE_GET_DIR(ed in cdce_attach() 115 usb_endpoint_descriptor_t *ed; cdce_attach() local [all...] |
| H A D | if_upl.c | 149 usb_endpoint_descriptor_t *ed; in upl_attach() local 188 ed = usbd_interface2endpoint_descriptor(un->un_iface, i); in upl_attach() 189 if (ed == NULL) { in upl_attach() 193 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in upl_attach() 194 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in upl_attach() 195 un->un_ed[USBNET_ENDPT_RX] = ed->bEndpointAddress; in upl_attach() 196 } else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && in upl_attach() 197 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in upl_attach() 198 un->un_ed[USBNET_ENDPT_TX] = ed->bEndpointAddress; in upl_attach()
|
| H A D | umct.c | 175 usb_endpoint_descriptor_t *ed; in umct_attach() local 237 ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i); in umct_attach() 238 if (ed == NULL) { in umct_attach() 250 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in umct_attach() 251 UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT && in umct_attach() 252 UGETW(ed->wMaxPacketSize) != 0x2) { in umct_attach() 253 ucaa.ucaa_bulkin = ed->bEndpointAddress; in umct_attach() 254 } else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && in umct_attach() 255 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in umct_attach() 256 ucaa.ucaa_bulkout = ed->bEndpointAddress; in umct_attach() [all …]
|
| /netbsd-src/tests/fs/cd9660/ |
| H A D | pr_48787.image.hex | 77 00019020 01 00 53 50 07 01 be ef 00 50 58 24 01 ed 41 00 |..SP.....PX$..A.| 78 00019030 00 00 00 41 ed 01 00 00 00 00 00 00 01 00 00 00 |...A............| 82 00019070 00 00 33 00 00 00 00 00 00 00 00 ed 00 00 00 00 |..3.............| 83 00019080 00 00 ed 00 60 00 32 00 00 00 00 00 00 32 00 08 |....`.2......2..| 85 000190a0 01 00 00 01 01 01 50 58 24 01 ed 41 00 00 00 00 |......PX$..A....| 86 000190b0 41 ed 01 00 00 00 00 00 00 01 00 00 00 00 00 00 |A...............| 91 00019100 01 00 00 01 02 4d 59 00 50 58 24 01 ed 41 00 00 |.....MY.PX$..A..| 92 00019110 00 00 41 ed 01 00 00 00 00 00 00 01 e8 03 00 00 |..A.............| 98 00019800 45 52 ed 01 0a 54 87 01 52 52 49 50 5f 31 39 39 |ER...T..RRIP_199| 117 0001a020 01 00 50 58 24 01 ed 41 00 00 00 00 41 ed 01 00 |..PX$..A....A...| [all …]
|
| /netbsd-src/sys/dev/pci/ |
| H A D | eso.c | 1471 size_t boundary, int direction, struct eso_dma *ed) in eso_allocmem() argument 1475 ed->ed_size = size; in eso_allocmem() 1477 error = bus_dmamem_alloc(ed->ed_dmat, ed->ed_size, align, boundary, in eso_allocmem() 1478 ed->ed_segs, sizeof (ed->ed_segs) / sizeof (ed->ed_segs[0]), in eso_allocmem() 1479 &ed->ed_nsegs, BUS_DMA_WAITOK); in eso_allocmem() 1483 error = bus_dmamem_map(ed->ed_dmat, ed->ed_segs, ed->ed_nsegs, in eso_allocmem() 1484 ed->ed_size, &ed->ed_kva, BUS_DMA_WAITOK | BUS_DMA_COHERENT); in eso_allocmem() 1488 error = bus_dmamap_create(ed->ed_dmat, ed->ed_size, 1, ed->ed_size, 0, in eso_allocmem() 1489 BUS_DMA_WAITOK, &ed->ed_map); in eso_allocmem() 1493 error = bus_dmamap_load(ed->ed_dmat, ed->ed_map, ed->ed_kva, in eso_allocmem() [all …]
|
| /netbsd-src/bin/ed/ |
| H A D | POSIX | 3 This version of ed(1) is not strictly POSIX compliant, as described in 50 processing is performed by ed. 52 5) For SunOS ed(1) compatibility, ed runs in restricted mode if invoked 58 1) Though ed is not a stream editor, it can be used to edit binary files. 64 For example, to create a file with ed containing a single NUL character: 65 $ ed file 73 $ ed file 78 not specified by POSIX, it follows the behavior of the SunOS ed: 87 would otherwise cause a script to fail. For instance, an ed script 90 ed - file <<EOF [all …]
|
| /netbsd-src/sys/arch/mips/adm5120/ |
| H A D | adm5120_extio.c | 128 extio_attach_args_create(struct extio_attach_args *ea, struct extiodev *ed, in extio_attach_args_create() argument 131 ea->ea_name = ed->ed_name; in extio_attach_args_create() 132 ea->ea_addr = ed->ed_addr; in extio_attach_args_create() 133 ea->ea_irq = ed->ed_irq; in extio_attach_args_create() 136 ea->ea_gpio_mask = ed->ed_gpio_mask; in extio_attach_args_create() 137 ea->ea_cfio = ed->ed_cfio; in extio_attach_args_create() 290 struct extiodev *ed; in extio_attach() local 364 for (ed = extiodevs; ed->ed_name != NULL; ed++) { in extio_attach() 366 extio_attach_args_create(&ea, ed, sc->sc_gpio, in extio_attach() 367 (ed->ed_cfio) ? &sc->sc_cfio : &admc->extio_space); in extio_attach()
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/hx509/ |
| H A D | cms.c | 366 EnvelopedData ed; in hx509_cms_unenvelope() local 378 memset(&ed, 0, sizeof(ed)); in hx509_cms_unenvelope() 386 ret = decode_EnvelopedData(data, length, &ed, &size); in hx509_cms_unenvelope() 393 if (ed.recipientInfos.len == 0) { in hx509_cms_unenvelope() 400 enccontent = ed.encryptedContentInfo.encryptedContent; in hx509_cms_unenvelope() 417 for (i = 0; i < ed.recipientInfos.len; i++) { in hx509_cms_unenvelope() 422 ri = &ed.recipientInfos.val[i]; in hx509_cms_unenvelope() 463 ret = der_copy_oid(&ed.encryptedContentInfo.contentType, contentType); in hx509_cms_unenvelope() 470 ai = &ed.encryptedContentInfo.contentEncryptionAlgorithm; in hx509_cms_unenvelope() 520 free_EnvelopedData(&ed); in hx509_cms_unenvelope() [all …]
|
| /netbsd-src/sys/arch/i386/stand/efiboot/ |
| H A D | efidisk_ll.c | 86 set_geometry(struct biosdisk_ll *d, struct biosdisk_extinfo *ed) in set_geometry() argument 101 if (ed != NULL) { in set_geometry() 102 ed->totsec = media->LastBlock + 1; in set_geometry() 103 ed->sbytes = media->BlockSize; in set_geometry() 104 ed->flags = 0; in set_geometry() 106 ed->flags |= EXTINFO_REMOVABLE; in set_geometry()
|
| /netbsd-src/external/bsd/elftoolchain/dist/libdwarf/ |
| H A D | libdwarf_elf_access.c | 136 Dwarf_Elf_Data *ed; in _dwarf_elf_load_section() local 153 ed = &e->eo_data[ndx]; in _dwarf_elf_load_section() 155 if (ed->ed_alloc != NULL) in _dwarf_elf_load_section() 156 *ret_data = ed->ed_alloc; in _dwarf_elf_load_section() 158 if (ed->ed_data == NULL) { in _dwarf_elf_load_section() 163 *ret_data = ed->ed_data->d_buf; in _dwarf_elf_load_section()
|
| H A D | libdwarf_elf_init.c | 135 _dwarf_elf_relocate(Dwarf_Debug dbg, Elf *elf, Dwarf_Elf_Data *ed, size_t shndx, in _dwarf_elf_relocate() argument 175 ed->ed_alloc = malloc(ed->ed_data->d_size); in _dwarf_elf_relocate() 176 if (ed->ed_alloc == NULL) { in _dwarf_elf_relocate() 180 memcpy(ed->ed_alloc, ed->ed_data->d_buf, in _dwarf_elf_relocate() 181 ed->ed_data->d_size); in _dwarf_elf_relocate() 184 ed->ed_alloc, ed->ed_data->d_size, in _dwarf_elf_relocate() 188 ed->ed_alloc, ed->ed_data->d_size, in _dwarf_elf_relocate()
|
| /netbsd-src/external/lgpl3/mpc/dist/src/ |
| H A D | pow.c | 176 mpfr_exp_t ec, ed, ey; in mpc_pow_exact() local 218 ed = ec; in mpc_pow_exact() 222 ed = mpfr_get_z_exp (d, mpc_imagref(x)); in mpc_pow_exact() 224 ec = ed; in mpc_pow_exact() 228 if (ec < ed) in mpc_pow_exact() 230 mpz_mul_2exp (d, d, (unsigned long int) (ed - ec)); in mpc_pow_exact() 234 else if (ed < ec) in mpc_pow_exact() 236 mpz_mul_2exp (c, c, (unsigned long int) (ec - ed)); in mpc_pow_exact() 239 ec = ed; in mpc_pow_exact() 332 ed = ec; in mpc_pow_exact() [all …]
|