| /openbsd/src/gnu/usr.bin/binutils/gdb/ |
| D | serial.c | 174 struct serial *scb; in serial_open() local 178 for (scb = scb_base; scb; scb = scb->next) in serial_open() 179 if (scb->name && strcmp (scb->name, name) == 0) in serial_open() 181 scb->refcnt++; in serial_open() 182 return scb; in serial_open() 202 scb = XMALLOC (struct serial); in serial_open() 204 scb->ops = ops; in serial_open() 206 scb->bufcnt = 0; in serial_open() 207 scb->bufp = scb->buf; in serial_open() 209 if (scb->ops->open (scb, open_name)) in serial_open() [all …]
|
| D | ser-unix.c | 68 static int hardwire_open (struct serial *scb, const char *name); 69 static void hardwire_raw (struct serial *scb); 70 static int wait_for (struct serial *scb, int timeout); 71 static int hardwire_readchar (struct serial *scb, int timeout); 72 static int do_hardwire_readchar (struct serial *scb, int timeout); 73 static int generic_readchar (struct serial *scb, int timeout, 74 int (*do_readchar) (struct serial *scb, 77 static int hardwire_setbaudrate (struct serial *scb, int rate); 78 static void hardwire_close (struct serial *scb); 79 static int get_tty_state (struct serial *scb, [all …]
|
| D | ser-unix.h | 30 extern int ser_unix_nop_flush_output (struct serial *scb); 31 extern int ser_unix_flush_input (struct serial *scb); 32 extern int ser_unix_nop_send_break (struct serial *scb); 33 extern void ser_unix_nop_raw (struct serial *scb); 34 extern serial_ttystate ser_unix_nop_get_tty_state (struct serial *scb); 35 extern int ser_unix_nop_set_tty_state (struct serial *scb, 37 extern void ser_unix_nop_print_tty_state (struct serial *scb, 40 extern int ser_unix_nop_noflush_set_tty_state (struct serial *scb, 43 extern int ser_unix_nop_setbaudrate (struct serial *scb, int rate); 44 extern int ser_unix_nop_setstopbits (struct serial *scb, int rate); [all …]
|
| D | serial.h | 50 extern void serial_close (struct serial *scb); 54 extern void serial_un_fdopen (struct serial *scb); 73 extern int serial_readchar (struct serial *scb, int timeout); 78 extern int serial_write (struct serial *scb, const char *str, int len); 100 extern int serial_send_break (struct serial *scb); 104 extern void serial_raw (struct serial *scb); 109 extern serial_ttystate serial_get_tty_state (struct serial *scb); 116 extern int serial_set_tty_state (struct serial *scb, serial_ttystate ttystate); 122 extern void serial_print_tty_state (struct serial *scb, serial_ttystate ttystate, struct ui_file *); 130 extern int serial_noflush_set_tty_state (struct serial *scb, serial_ttystate new_ttystate, serial_t… [all …]
|
| D | ser-tcp.c | 45 static int net_open (struct serial *scb, const char *name); 46 static void net_close (struct serial *scb); 57 net_open (struct serial *scb, const char *name) in net_open() argument 97 scb->fd = socket (PF_INET, SOCK_DGRAM, 0); in net_open() 99 scb->fd = socket (PF_INET, SOCK_STREAM, 0); in net_open() 101 if (scb->fd < 0) in net_open() 111 ioctl (scb->fd, FIONBIO, &tmp); in net_open() 114 n = connect (scb->fd, (struct sockaddr *) &sockaddr, sizeof (sockaddr)); in net_open() 118 net_close (scb); in net_open() 140 net_close (scb); in net_open() [all …]
|
| D | ser-e7kpc.c | 36 static int e7000pc_open (struct serial *scb, const char *name); 37 static void e7000pc_raw (struct serial *scb); 38 static int e7000pc_readchar (struct serial *scb, int timeout); 39 static int e7000pc_setbaudrate (struct serial *scb, int rate); 40 static int e7000pc_write (struct serial *scb, const char *str, int len); 41 static void e7000pc_close (struct serial *scb); 42 static serial_ttystate e7000pc_get_tty_state (struct serial *scb); 43 static int e7000pc_set_tty_state (struct serial *scb, serial_ttystate state); 294 e7000pc_open (struct serial *scb, const char *name) in e7000pc_open() argument 302 scb->fd = e7000pc_init (); in e7000pc_open() [all …]
|
| D | ser-go32.c | 231 static int dos_open (struct serial *scb, const char *name); 232 static void dos_raw (struct serial *scb); 233 static int dos_readchar (struct serial *scb, int timeout); 234 static int dos_setbaudrate (struct serial *scb, int rate); 235 static int dos_write (struct serial *scb, const char *str, int len); 236 static void dos_close (struct serial *scb); 237 static serial_ttystate dos_get_tty_state (struct serial *scb); 238 static int dos_set_tty_state (struct serial *scb, serial_ttystate state); 456 dos_open (struct serial *scb, const char *name) in dos_open() argument 487 scb->fd = fd; in dos_open() [all …]
|
| D | ser-pipe.c | 37 static int pipe_open (struct serial *scb, const char *name); 38 static void pipe_close (struct serial *scb); 50 pipe_open (struct serial *scb, const char *name) in pipe_open() argument 110 scb->fd = pdes[0]; in pipe_open() 111 scb->state = state; in pipe_open() 120 pipe_close (struct serial *scb) in pipe_close() argument 122 struct pipe_state *state = scb->state; in pipe_close() 126 close (scb->fd); in pipe_close() 127 scb->fd = -1; in pipe_close() 129 scb->state = NULL; in pipe_close()
|
| /openbsd/src/sys/dev/ic/ |
| D | aic7xxx_openbsd.h | 161 ahc_scb_timer_reset(struct scb *scb, u_int usec) in ahc_scb_timer_reset() argument 163 if (!(scb->xs->xs_control & XS_CTL_POLL)) { in ahc_scb_timer_reset() 164 callout_reset(&scb->xs->xs_callout, in ahc_scb_timer_reset() 165 (usec * hz)/1000000, ahc_timeout, scb); in ahc_scb_timer_reset() 197 static __inline void ahc_set_transaction_status(struct scb *, uint32_t); 198 static __inline void ahc_set_scsi_status(struct scb *, uint32_t); 199 static __inline uint32_t ahc_get_transaction_status(struct scb *); 200 static __inline uint32_t ahc_get_scsi_status(struct scb *); 201 static __inline void ahc_set_transaction_tag(struct scb *, int, u_int); 202 static __inline u_long ahc_get_transfer_length(struct scb *); [all …]
|
| D | aic7xxx_openbsd.c | 54 void ahc_setup_data(struct ahc_softc *, struct scsi_xfer *, struct scb *); 56 void ahc_adapter_req_set_xfer_mode(struct ahc_softc *, struct scb *); 146 ahc_done(struct ahc_softc *ahc, struct scb *scb) in ahc_done() argument 148 struct scsi_xfer *xs = scb->xs; in ahc_done() 154 LIST_REMOVE(scb, pending_links); in ahc_done() 155 if ((scb->flags & SCB_UNTAGGEDQ) != 0) { in ahc_done() 159 target_offset = SCB_GET_TARGET_OFFSET(ahc, scb); in ahc_done() 161 TAILQ_REMOVE(untagged_q, scb, links.tqe); in ahc_done() 162 scb->flags &= ~SCB_UNTAGGEDQ; in ahc_done() 175 bus_dmamap_sync(ahc->parent_dmat, scb->dmamap, 0, in ahc_done() [all …]
|
| D | aic7xxx_inline.h | 169 ahc_sg_bus_to_virt(struct scb *scb, 172 ahc_sg_virt_to_bus(struct scb *scb, 177 struct scb *scb, int op); 187 ahc_sg_bus_to_virt(struct scb *scb, uint32_t sg_busaddr) in ahc_sg_bus_to_virt() argument 191 sg_index = (sg_busaddr - scb->sg_list_phys)/sizeof(struct ahc_dma_seg); in ahc_sg_bus_to_virt() 195 return (&scb->sg_list[sg_index]); in ahc_sg_bus_to_virt() 199 ahc_sg_virt_to_bus(struct scb *scb, struct ahc_dma_seg *sg) in ahc_sg_virt_to_bus() argument 204 sg_index = sg - &scb->sg_list[1]; in ahc_sg_virt_to_bus() 206 return (scb->sg_list_phys + (sg_index * sizeof(*scb->sg_list))); in ahc_sg_virt_to_bus() 217 ahc_sync_scb(struct ahc_softc *ahc, struct scb *scb, int op) in ahc_sync_scb() argument [all …]
|
| D | aic79xx_openbsd.c | 76 struct scb *); 78 void ahd_adapter_req_set_xfer_mode(struct ahd_softc *, struct scb *); 150 ahd_done(struct ahd_softc *ahd, struct scb *scb) in ahd_done() argument 152 struct scsi_xfer *xs = scb->xs; in ahd_done() 156 TAILQ_REMOVE(&ahd->pending_scbs, scb, next); in ahd_done() 167 bus_dmamap_sync(ahd->parent_dmat, scb->dmamap, 0, in ahd_done() 168 scb->dmamap->dm_mapsize, op); in ahd_done() 169 bus_dmamap_unload(ahd->parent_dmat, scb->dmamap); in ahd_done() 184 if ((scb->flags & SCB_SENSE) == 0) { in ahd_done() 216 } else if ((scb->flags & SCB_SENSE) != 0) { in ahd_done() [all …]
|
| D | aic79xx_openbsd.h | 153 void aic_scb_timer_reset(struct scb *, u_int); 156 #define aic_get_timeout(scb) ((scb)->xs->timeout) argument 207 #define aic_set_transaction_status(scb, status) (scb)->xs->error = (status) argument 208 #define aic_set_scsi_status(scb, status) (scb)->xs->xs_status = (status) argument 209 #define aic_set_transaction_tag(scb, enabled, type) argument 210 #define aic_set_residual(scb, residual) (scb)->xs->resid = (residual) argument 211 #define aic_set_sense_residual(scb, residual) (scb)->xs->resid = (residual) argument 213 #define aic_get_transaction_status(scb) \ argument 214 (((scb)->xs->flags & ITSDONE) ? CAM_REQ_CMP : (scb)->xs->error) 215 #define aic_get_scsi_status(scb) ((scb)->xs->status) argument [all …]
|
| D | aic79xx_inline.h | 97 void *ahd_sg_setup(struct ahd_softc *ahd, struct scb *scb, 101 struct scb *scb); 103 struct scb *scb); 105 struct scb *scb); 110 ahd_sg_bus_to_virt(struct ahd_softc *, struct scb *, 113 ahd_sg_virt_to_bus(struct ahd_softc *, struct scb *, 115 void ahd_sync_scb(struct ahd_softc *, struct scb *, int); 116 void ahd_sync_sglist(struct ahd_softc *, struct scb *, int); 117 void ahd_sync_sense(struct ahd_softc *, struct scb *, int); 122 void ahd_complete_scb(struct ahd_softc *, struct scb *); [all …]
|
| D | aic79xx.c | 165 struct scb *scb); 168 struct scb *scb); 204 struct scb *scb); 211 struct scb * ahd_find_scb_by_tag(struct ahd_softc *, u_int); 217 struct scb *prev_scb, 218 struct scb *scb); 249 struct scb *scb); 251 struct scb *scb); 402 struct scb *scb; in ahd_flush_qoutfifo() local 421 scb = ahd_lookup_scb(ahd, scbid); in ahd_flush_qoutfifo() [all …]
|
| D | aic7xxx.c | 170 struct scb *scb); 207 struct scb *scb); 215 struct scb *prev_scb, 216 struct scb *scb); 330 struct scb *scb; in ahc_run_qoutfifo() local 356 scb = ahc_lookup_scb(ahc, scb_index); in ahc_run_qoutfifo() 357 if (scb == NULL) { in ahc_run_qoutfifo() 369 ahc_update_residual(ahc, scb); in ahc_run_qoutfifo() 370 ahc_done(ahc, scb); in ahc_run_qoutfifo() 386 struct scb *scb; in ahc_run_untagged_queue() local [all …]
|
| D | aic7xxxvar.h | 90 #define SCB_IS_SCSIBUS_B(ahc, scb) \ argument 91 (SCSIID_CHANNEL(ahc, (scb)->hscb->scsiid) == 'B') 92 #define SCB_GET_OUR_ID(scb) \ argument 93 SCSIID_OUR_ID((scb)->hscb->scsiid) 94 #define SCB_GET_TARGET(ahc, scb) \ argument 95 SCSIID_TARGET((ahc), (scb)->hscb->scsiid) 96 #define SCB_GET_CHANNEL(ahc, scb) \ argument 97 SCSIID_CHANNEL(ahc, (scb)->hscb->scsiid) 98 #define SCB_GET_LUN(scb) \ argument 99 ((scb)->hscb->lun & LID) [all …]
|
| D | aic79xx.h | 115 #define SCB_IS_SCSIBUS_B(ahd, scb) (0) argument 116 #define SCB_GET_OUR_ID(scb) \ argument 117 SCSIID_OUR_ID((scb)->hscb->scsiid) 118 #define SCB_GET_TARGET(ahd, scb) \ argument 119 SCSIID_TARGET((ahd), (scb)->hscb->scsiid) 120 #define SCB_GET_CHANNEL(ahd, scb) \ argument 121 SCSIID_CHANNEL(ahd, (scb)->hscb->scsiid) 122 #define SCB_GET_LUN(scb) \ argument 123 ((scb)->hscb->lun) 124 #define SCB_GET_TARGET_OFFSET(ahd, scb) \ argument [all …]
|
| D | i82596.c | 216 sc->scb = 32; 219 (sc->ie_bus_write16)(sc, IE_ISCP_SCB(sc->iscp), sc->scb); 277 (sc->ie_bus_write16)(sc, IE_ISCP_SCB(sc->iscp), sc->scb); in i82596_attach() 351 off = IE_SCB_CMD(sc->scb); 368 sc->ie_bus_read16(sc, IE_SCB_STATUS(sc->scb)), 409 off = IE_SCB_CMD(sc->scb); 461 int scb = sc->scb; in i82596_count_errors() local 464 sc->ie_bus_read16(sc, IE_SCB_ERRCRC(scb)) + in i82596_count_errors() 465 sc->ie_bus_read16(sc, IE_SCB_ERRALN(scb)) + in i82596_count_errors() 466 sc->ie_bus_read16(sc, IE_SCB_ERRRES(scb)) + in i82596_count_errors() [all …]
|
| D | i82596var.h | 227 int scb; /* Offset to SCB (set by front-end) */ member 292 int off = IE_SCB_STATUS(sc->scb); in ie_ack()
|
| /openbsd/src/sys/dev/isa/ |
| D | wds.c | 305 struct wds_scb *scb; in wds_finish_scbs() local 328 scb = wds_scb_phys_kv(sc, phystol(wmbi->scb_addr)); in wds_finish_scbs() 329 if (!scb) { in wds_finish_scbs() 337 u_int8_t *cp = (u_int8_t *)&scb->cmd.scb; in wds_finish_scbs() 342 printf("scb addr = %p\n", scb); in wds_finish_scbs() 346 timeout_del(&scb->xs->stimeout); in wds_finish_scbs() 347 wds_done(sc, scb, wmbi->stat); in wds_finish_scbs() 397 wds_reset_scb(struct wds_softc *sc, struct wds_scb *scb) in wds_reset_scb() argument 399 scb->flags = 0; in wds_reset_scb() 409 struct wds_scb *scb = xscb; in wds_scb_free() local [all …]
|
| D | if_ie.c | 225 volatile struct ie_sys_ctl_block *scb; member 346 volatile struct ie_sys_ctl_block *scb = sc->scb; in ie_ack() local 348 scb->ie_command = scb->ie_status & mask; in ie_ack() 351 while (scb->ie_command) in ie_ack() 808 status = sc->scb->ie_status & IE_ST_WHENCE; in ieintr() 855 status = sc->scb->ie_status & IE_ST_WHENCE; in ieintr() 872 volatile struct ie_sys_ctl_block *scb = sc->scb; in ierint() local 883 scb->ie_err_crc + scb->ie_err_align + in ierint() 884 scb->ie_err_resource + scb->ie_err_overrun; in ierint() 885 scb->ie_err_crc = scb->ie_err_align = in ierint() [all …]
|
| D | wdsreg.h | 57 struct scsi_generic scb; member
|
| /openbsd/src/usr.bin/cdio/ |
| D | mmc.c | 307 struct scsi_blank *scb; in blank() local 312 scb = (struct scsi_blank *)scr.cmd; in blank() 313 scb->opcode = BLANK; in blank() 314 scb->byte2 |= BLANK_MINIMAL; in blank() 315 scr.cmdlen = sizeof(*scb); in blank() 328 struct scsi_test_unit_ready *scb; in unit_ready() local 333 scb = (struct scsi_test_unit_ready *)scr.cmd; in unit_ready() 334 scb->opcode = TEST_UNIT_READY; in unit_ready() 335 scr.cmdlen = sizeof(*scb); in unit_ready() 348 struct scsi_synchronize_cache *scb; in synchronize_cache() local [all …]
|
| /openbsd/src/sys/arch/alpha/alpha/ |
| D | interrupt.c | 245 struct scbvec *scb; in interrupt() local 251 scb = &scb_iovectab[SCB_VECTOIDX(a1 - SCB_IOVECBASE)]; in interrupt() 252 (*scb->scb_func)(scb->scb_arg, a1); in interrupt()
|