Home
last modified time | relevance | path

Searched refs:ed (Results 1 – 25 of 389) sorted by relevance

12345678910>>...16

/openbsd-src/sys/arch/riscv64/stand/efiboot/
H A Defidev.c65 dip->ed.blkio = blkio; in efid_init()
66 dip->ed.mediaid = blkio->Media->MediaId; in efid_init()
70 if (efi_getdisklabel(&dip->ed, &dip->disklabel) == NULL) in efid_init()
75 efid_io(int rw, efi_diskinfo_t ed, u_int off, int nsect, void *buf) in efid_io() argument
84 blks = EFI_BLKSPERSEC(ed); in efid_io()
91 size = (end - start) * ed->blkio->Media->BlockSize; in efid_io()
101 status = ed->blkio->ReadBlocks(ed->blkio, ed->mediaid, start, in efid_io()
109 if (ed->blkio->Media->ReadOnly) in efid_io()
112 status = ed->blkio->ReadBlocks(ed->blkio, ed->mediaid, in efid_io()
119 status = ed->blkio->WriteBlocks(ed->blkio, ed->mediaid, start, in efid_io()
[all …]
/openbsd-src/sys/arch/armv7/stand/efiboot/
H A Defidev.c65 dip->ed.blkio = blkio; in efid_init()
66 dip->ed.mediaid = blkio->Media->MediaId; in efid_init()
70 if (efi_getdisklabel(&dip->ed, &dip->disklabel) == NULL) in efid_init()
75 efid_io(int rw, efi_diskinfo_t ed, u_int off, int nsect, void *buf) in efid_io() argument
84 blks = EFI_BLKSPERSEC(ed); in efid_io()
91 size = (end - start) * ed->blkio->Media->BlockSize; in efid_io()
101 status = ed->blkio->ReadBlocks(ed->blkio, ed->mediaid, start, in efid_io()
109 if (ed->blkio->Media->ReadOnly) in efid_io()
112 status = ed->blkio->ReadBlocks(ed->blkio, ed->mediaid, in efid_io()
119 status = ed->blkio->WriteBlocks(ed->blkio, ed->mediaid, start, in efid_io()
[all …]
/openbsd-src/regress/usr.bin/mandoc/char/bar/
H A Dmdoc.out_ascii10 --iissoollaatteedd | --eemm||bbeeddddeedd | --ffoorrmmaatttteedd
11 iissoollaatteedd | eemm||bbeeddddeedd | ffoorrmmaatttteedd
18 …--iissoollaatteedd --|| --eemm||bbeeddddeedd --| --ffoorrmmaattttee…
19 …iissoollaatteedd || eemm||bbeeddddeedd | ffoorrmmaatttteedd || bbool…
23 pprreeddeeffiinneedd ssttrriinngg
26 --iissoollaatteedd | --eemm|bbeeddddeedd
27 iissoollaatteedd | eemm|bbeeddddeedd
/openbsd-src/sys/arch/amd64/stand/efiboot/
H A Defidev.c85 efid_io(int rw, efi_diskinfo_t ed, u_int off, int nsect, void *buf) in efid_io() argument
94 blks = EFI_BLKSPERSEC(ed); in efid_io()
101 size = (end - start) * ed->blkio->Media->BlockSize; in efid_io()
111 status = ed->blkio->ReadBlocks(ed->blkio, ed->mediaid, start, in efid_io()
119 if (ed->blkio->Media->ReadOnly) in efid_io()
122 status = ed->blkio->ReadBlocks(ed->blkio, ed->mediaid, in efid_io()
129 status = ed->blkio->WriteBlocks(ed->blkio, ed->mediaid, start, in efid_io()
200 findopenbsd(efi_diskinfo_t ed, const char **err) in findopenbsd() argument
217 status = efid_io(F_READ, ed, mbroff, 1, &mbr); in findopenbsd()
274 findopenbsd_gpt(efi_diskinfo_t ed, const char **err) in findopenbsd_gpt() argument
[all …]
/openbsd-src/sys/arch/arm64/stand/efiboot/
H A Defidev.c65 dip->ed.blkio = blkio; in efid_init()
66 dip->ed.mediaid = blkio->Media->MediaId; in efid_init()
70 if (efi_getdisklabel(&dip->ed, &dip->disklabel) == NULL) in efid_init()
75 efid_io(int rw, efi_diskinfo_t ed, u_int off, int nsect, void *buf) in efid_io() argument
84 blks = EFI_BLKSPERSEC(ed); in efid_io()
91 size = (end - start) * ed->blkio->Media->BlockSize; in efid_io()
101 status = ed->blkio->ReadBlocks(ed->blkio, ed->mediaid, start, in efid_io()
109 if (ed->blkio->Media->ReadOnly) in efid_io()
112 status = ed->blkio->ReadBlocks(ed->blkio, ed->mediaid, in efid_io()
119 status = ed->blkio->WriteBlocks(ed->blkio, ed->mediaid, start, in efid_io()
[all …]
/openbsd-src/usr.sbin/amd/rpcx/
H A DMakefile21 amq_svc.c: amq.x $*.ed
23 ed -s $@.tmp <$*.ed
26 nfs_prot_svc.c: nfs_prot.x $*.ed
28 ed -s $@.tmp <$*.ed
31 nfs_prot.x: ${NFSX} $*.ed
33 ed -s $@.tmp <$*.ed
/openbsd-src/regress/bin/ed/
H A DMakefile3 ED ?= /bin/ed
8 CLEANFILES = *.t *.d *.ed *.err *.red *.o *.z
10 # from /usr/src/bin/ed/test/README, known failing tests
20 # from /usr/src/bin/ed/test/mkscripts.sh, converted to make rule
21 $t.ed: ${TESTDIR}/$t.t ${TESTDIR}/$t.d Makefile
33 mv $t.tmp $t.ed
34 chmod +x $t.ed
36 REGRESS_TARGETS += run-$t.ed
37 # from /usr/src/bin/ed/test/ckscripts.sh, converted to make rule
38 run-$t.ed
[all...]
/openbsd-src/regress/usr.bin/mandoc/mdoc/Fd/
H A Darg.out_ascii7 ##uunnqquuootteedd uunneessccaappeedd
9 ##qquuootteedd uunneessccaappeedd
11 ##uunnqquuootteedd eessccaappeedd
13 ##qquuootteedd eessccaappeedd
/openbsd-src/sys/dev/usb/
H A Ducrcom.c82 usb_endpoint_descriptor_t *ed; in ucrcom_attach() local
90 ed = usbd_interface2endpoint_descriptor(uaa->iface, i); in ucrcom_attach()
91 if (ed == NULL) { in ucrcom_attach()
98 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in ucrcom_attach()
99 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in ucrcom_attach()
100 uca.bulkin = ed->bEndpointAddress; in ucrcom_attach()
101 else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && in ucrcom_attach()
102 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in ucrcom_attach()
103 uca.bulkout = ed->bEndpointAddress; in ucrcom_attach()
H A Duscom.c88 usb_endpoint_descriptor_t *ed; in uscom_attach() local
109 ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i); in uscom_attach()
110 if (ed == NULL) { in uscom_attach()
117 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in uscom_attach()
118 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in uscom_attach()
119 uca.bulkin = ed->bEndpointAddress; in uscom_attach()
120 else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && in uscom_attach()
121 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in uscom_attach()
122 uca.bulkout = ed->bEndpointAddress; in uscom_attach()
H A Duxrcom.c129 usb_endpoint_descriptor_t *ed; in uxrcom_attach() local
140 ed = usbd_interface2endpoint_descriptor(sc->sc_intr_iface, i); in uxrcom_attach()
141 if (ed == NULL) { in uxrcom_attach()
148 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in uxrcom_attach()
149 UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT) in uxrcom_attach()
150 sc->sc_intr_number = ed->bEndpointAddress; in uxrcom_attach()
165 ed = usbd_interface2endpoint_descriptor(sc->sc_data_iface, i); in uxrcom_attach()
166 if (ed == NULL) { in uxrcom_attach()
173 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in uxrcom_attach()
174 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in uxrcom_attach()
[all …]
H A Duark.c119 usb_endpoint_descriptor_t *ed; in uark_attach() local
140 ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i); in uark_attach()
141 if (ed == NULL) { in uark_attach()
148 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in uark_attach()
149 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in uark_attach()
150 uca.bulkin = ed->bEndpointAddress; in uark_attach()
151 else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && in uark_attach()
152 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in uark_attach()
153 uca.bulkout = ed->bEndpointAddress; in uark_attach()
H A Dubsa.c237 usb_endpoint_descriptor_t *ed; in ubsa_attach() local
294 ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i); in ubsa_attach()
295 if (ed == NULL) { in ubsa_attach()
302 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in ubsa_attach()
303 UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT) { in ubsa_attach()
304 sc->sc_intr_number = ed->bEndpointAddress; in ubsa_attach()
305 sc->sc_isize = UGETW(ed->wMaxPacketSize); in ubsa_attach()
306 } else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in ubsa_attach()
307 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in ubsa_attach()
308 uca.bulkin = ed in ubsa_attach()
[all...]
H A Dumct.c169 usb_endpoint_descriptor_t *ed; in umct_attach() local
212 ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i); in umct_attach()
213 if (ed == NULL) { in umct_attach()
225 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in umct_attach()
226 UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT && in umct_attach()
227 UGETW(ed->wMaxPacketSize) != 0x2) { in umct_attach()
228 uca.bulkin = ed->bEndpointAddress; in umct_attach()
229 } else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && in umct_attach()
230 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in umct_attach()
231 uca.bulkout = ed->bEndpointAddress; in umct_attach()
[all …]
H A Duipaq.c157 usb_endpoint_descriptor_t *ed; in uipaq_attach() local
199 ed = usbd_interface2endpoint_descriptor(iface, i); in uipaq_attach()
200 if (ed == NULL) { in uipaq_attach()
205 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in uipaq_attach()
206 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in uipaq_attach()
207 uca.bulkin = ed->bEndpointAddress; in uipaq_attach()
208 } else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && in uipaq_attach()
209 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in uipaq_attach()
210 uca.bulkout = ed->bEndpointAddress; in uipaq_attach()
H A Duticom.c217 usb_endpoint_descriptor_t *ed; in uticom_attach_hook() local
272 ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i); in uticom_attach_hook()
273 if (ed == NULL) { in uticom_attach_hook()
280 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && in uticom_attach_hook()
281 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in uticom_attach_hook()
282 uca.bulkout = ed->bEndpointAddress; in uticom_attach_hook()
284 sc->sc_dev.dv_xname, ed->bEndpointAddress)); in uticom_attach_hook()
351 ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i); in uticom_attach_hook()
352 if (ed == NULL) { in uticom_attach_hook()
359 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in uticom_attach_hook()
[all …]
H A Dumsm.c377 usb_endpoint_descriptor_t *ed; in umsm_attach() local
419 ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i); in umsm_attach()
420 if (ed == NULL) { in umsm_attach()
427 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in umsm_attach()
428 UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT) { in umsm_attach()
429 sc->sc_intr_number = ed->bEndpointAddress; in umsm_attach()
430 sc->sc_isize = UGETW(ed->wMaxPacketSize); in umsm_attach()
433 } else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in umsm_attach()
434 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in umsm_attach()
435 uca.bulkin = ed->bEndpointAddress; in umsm_attach()
[all …]
H A Dmoscom.c192 usb_endpoint_descriptor_t *ed; in moscom_attach() local
213 ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i); in moscom_attach()
214 if (ed == NULL) { in moscom_attach()
221 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in moscom_attach()
222 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in moscom_attach()
223 uca.bulkin = ed->bEndpointAddress; in moscom_attach()
224 else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && in moscom_attach()
225 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in moscom_attach()
226 uca.bulkout = ed->bEndpointAddress; in moscom_attach()
H A Duow.c114 usb_endpoint_descriptor_t *ed; in uow_attach() local
134 ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i); in uow_attach()
135 if (ed == NULL) { in uow_attach()
141 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in uow_attach()
142 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in uow_attach()
143 ep_ibulk = ed->bEndpointAddress; in uow_attach()
144 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && in uow_attach()
145 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in uow_attach()
146 ep_obulk = ed->bEndpointAddress; in uow_attach()
147 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in uow_attach()
[all …]
H A Dohci.c411 memset(&sed->ed, 0, sizeof(struct ohci_ed)); in ohci_alloc_sed()
750 sc->sc_ctrl_head->ed.ed_flags |= htole32(OHCI_ED_SKIP); in ohci_init()
758 sc->sc_bulk_head->ed.ed_flags |= htole32(OHCI_ED_SKIP); in ohci_init()
766 sc->sc_isoc_head->ed.ed_flags |= htole32(OHCI_ED_SKIP); in ohci_init()
779 sed->ed.ed_flags |= htole32(OHCI_ED_SKIP); in ohci_init()
785 sed->ed.ed_nexted = htole32(psed->physaddr); in ohci_init()
1317 opipe->sed->ed.ed_headp = htole32(p->physaddr); in ohci_softintr()
1479 sed->ed.ed_tailp = htole32(tail->physaddr); in ohci_device_intr_done()
1634 sed->ed.ed_tailp = htole32(tail->physaddr); in ohci_device_request()
1678 sed->ed.ed_nexted = head->ed.ed_nexted; in ohci_add_ed()
[all …]
/openbsd-src/usr.bin/sdiff/
H A Dedit.c35 char *argp[] = {"sh", "-c", NULL, NULL}, *ed, *p; in editit() local
40 ed = getenv("VISUAL"); in editit()
41 if (ed == NULL || ed[0] == '\0') in editit()
42 ed = getenv("EDITOR"); in editit()
43 if (ed == NULL || ed[0] == '\0') in editit()
44 ed = _PATH_VI; in editit()
45 if (asprintf(&p, "%s %s", ed, pathname) == -1) in editit()
/openbsd-src/usr.bin/mail/
H A Dedit.c242 editit(const char *ed, const char *pathname) in editit() argument
249 if (ed == NULL) in editit()
250 ed = getenv("VISUAL"); in editit()
251 if (ed == NULL || ed[0] == '\0') in editit()
252 ed = getenv("EDITOR"); in editit()
253 if (ed == NULL || ed[0] == '\0') in editit()
254 ed = _PATH_VI; in editit()
255 if (asprintf(&p, "%s %s", ed, pathname) == -1) in editit()
/openbsd-src/sys/dev/pci/
H A Deso.c1414 size_t boundary, int flags, int direction, struct eso_dma *ed) in eso_allocmem() argument
1419 ed->ed_size = size; in eso_allocmem()
1421 error = bus_dmamem_alloc(ed->ed_dmat, ed->ed_size, align, boundary, in eso_allocmem()
1422 ed->ed_segs, sizeof (ed->ed_segs) / sizeof (ed->ed_segs[0]), in eso_allocmem()
1423 &ed->ed_nsegs, wait); in eso_allocmem()
1427 error = bus_dmamem_map(ed->ed_dmat, ed in eso_allocmem()
1456 eso_freemem(struct eso_dma * ed) eso_freemem() argument
1468 struct eso_dma *ed; eso_allocm() local
1563 struct eso_dma *ed; eso_trigger_output() local
1639 struct eso_dma *ed; eso_trigger_input() local
[all...]
/openbsd-src/bin/ed/
H A DPOSIX4 This version of ed(1) is not strictly POSIX compliant, as described in
42 processing is performed by ed.
46 1) Though ed is not a stream editor, it can be used to edit binary files.
52 For example, to create a file with ed containing a single NUL character:
53 $ ed file
61 $ ed file
66 not specified by POSIX, it follows the behavior of the SunOS ed:
75 would otherwise cause a script to fail. For instance, an ed script
78 ed - file <<EOF
85 ed implementation: any moved lines are removed from the global command's
[all …]
/openbsd-src/usr.bin/tmux/
H A Dwindow-buffer.c438 window_buffer_finish_edit(struct window_buffer_editdata *ed) in window_buffer_edit_close_cb() local
440 free(ed->name); in window_buffer_edit_close_cb()
441 free(ed); in window_buffer_edit_close_cb()
447 struct window_buffer_editdata *ed = arg; in window_buffer_edit_close_cb()
456 window_buffer_finish_edit(ed); in window_buffer_edit_close_cb()
460 pb = paste_get_name(ed->name); in window_buffer_edit_close_cb()
461 if (pb == NULL || pb != ed->pb) { in window_buffer_edit_close_cb()
462 window_buffer_finish_edit(ed); in window_buffer_edit_close_cb()
474 wp = window_pane_find_by_id(ed->wp_id); in window_buffer_edit_close_cb()
484 window_buffer_finish_edit(ed); in window_buffer_start_edit()
429 window_buffer_finish_edit(struct window_buffer_editdata * ed) window_buffer_finish_edit() argument
485 struct window_buffer_editdata *ed; window_buffer_start_edit() local
[all...]

12345678910>>...16