| /netbsd-src/sys/arch/news68k/dev/ |
| H A D | ms.c | 84 sc->sc_buf[MS_S_BYTE] = code; in ms_intr() 90 sc->sc_buf[MS_X_BYTE] = code; in ms_intr() 96 sc->sc_buf[MS_Y_BYTE] = code; in ms_intr() 99 byte0 = sc->sc_buf[MS_S_BYTE]; in ms_intr() 100 byte1 = sc->sc_buf[MS_X_BYTE]; in ms_intr() 101 byte2 = sc->sc_buf[MS_Y_BYTE]; in ms_intr()
|
| /netbsd-src/sys/arch/newsmips/dev/ |
| H A D | ms_hb.c | 55 uint8_t sc_buf[3]; member 138 sc->sc_buf[0] = code; in ms_hb_intr() 144 sc->sc_buf[1] = code; in ms_hb_intr() 150 sc->sc_buf[2] = code; in ms_hb_intr() 153 byte0 = sc->sc_buf[0]; in ms_hb_intr() 154 byte1 = sc->sc_buf[1]; in ms_hb_intr() 155 byte2 = sc->sc_buf[2]; in ms_hb_intr()
|
| /netbsd-src/sys/arch/macppc/macppc/ |
| H A D | memory.c | 65 u_char *sc_buf; member 102 sc->sc_buf = malloc(sc->sc_len, M_DEVBUF, M_WAITOK); in memory_attach() 111 OF_getprop(ca->ca_node, "dimm-info", sc->sc_buf, sc->sc_len); in memory_attach() 125 if (sc->sc_buf[addr * SPD_SIZE] != 0) { in memory_attach() 133 free(sc->sc_buf, M_DEVBUF); in memory_attach() 154 memcpy(buf, &sc->sc_buf[off], len); in memory_i2c_exec()
|
| /netbsd-src/sys/arch/newsmips/apbus/ |
| H A D | ms_ap.c | 55 uint8_t sc_buf[3]; member 131 sc->sc_buf[0] = code; in ms_ap_intr() 137 sc->sc_buf[1] = code; in ms_ap_intr() 143 sc->sc_buf[2] = code; in ms_ap_intr() 146 byte0 = sc->sc_buf[0]; in ms_ap_intr() 147 byte1 = sc->sc_buf[1]; in ms_ap_intr() 148 byte2 = sc->sc_buf[2]; in ms_ap_intr()
|
| /netbsd-src/sys/dev/hyperv/ |
| H A D | vmbusic.c | 74 sc->sc_buf = kmem_alloc(sc->sc_buflen, KM_SLEEP); in vmbusic_attach() 87 kmem_free(sc->sc_buf, sc->sc_buflen); in vmbusic_attach() 88 sc->sc_buf = NULL; in vmbusic_attach() 105 if (sc->sc_buf != NULL) { in vmbusic_detach() 106 kmem_free(sc->sc_buf, sc->sc_buflen); in vmbusic_detach() 107 sc->sc_buf = NULL; in vmbusic_detach()
|
| H A D | hvkbd.c | 118 void *sc_buf; member 212 sc->sc_buf = kmem_zalloc(HVKBD_BUFSIZE, KM_SLEEP); in hvkbd_attach() 244 if (sc->sc_buf != NULL) { in hvkbd_attach() 245 kmem_free(sc->sc_buf, HVKBD_BUFSIZE); in hvkbd_attach() 246 sc->sc_buf = NULL; in hvkbd_attach() 480 error = vmbus_channel_recv(sc->sc_chan, sc->sc_buf, in hvkbd_intr() 489 cph = (struct vmbus_chanpkt_hdr *)sc->sc_buf; in hvkbd_intr()
|
| H A D | hvheartbeat.c | 118 error = vmbus_channel_recv(ch, vsc->sc_buf, vsc->sc_buflen, in hvheartbeat_channel_cb() 133 hdr = (struct vmbus_icmsg_hdr *)vsc->sc_buf; in hvheartbeat_channel_cb() 159 (void) vmbusic_sendresp(vsc, ch, vsc->sc_buf, rlen, rid); in hvheartbeat_channel_cb()
|
| H A D | hvshutdown.c | 141 error = vmbus_channel_recv(ch, vsc->sc_buf, vsc->sc_buflen, in hvshutdown_channel_cb() 156 hdr = (struct vmbus_icmsg_hdr *)vsc->sc_buf; in hvshutdown_channel_cb() 191 (void) vmbusic_sendresp(vsc, ch, vsc->sc_buf, rlen, rid); in hvshutdown_channel_cb()
|
| H A D | hvtimesync.c | 189 error = vmbus_channel_recv(ch, vsc->sc_buf, vsc->sc_buflen, in hvtimesync_channel_cb() 204 hdr = (struct vmbus_icmsg_hdr *)vsc->sc_buf; in hvtimesync_channel_cb() 249 (void) vmbusic_sendresp(vsc, ch, vsc->sc_buf, rlen, rid); in hvtimesync_channel_cb()
|
| /netbsd-src/sys/dev/ic/ |
| H A D | an.c | 219 buflen = sizeof(sc->sc_buf); in an_attach() 220 if (an_read_rid(sc, dumprid[rid], &sc->sc_buf, &buflen) in an_attach() 225 printf(" %04x", sc->sc_buf.sc_val[i]); in an_attach() 232 akey = &sc->sc_buf.sc_wepkey; in an_attach() 614 memset(&sc->sc_buf, 0, sizeof(sc->sc_buf.sc_ssidlist)); in an_init() 615 sc->sc_buf.sc_ssidlist.an_entry[0].an_ssid_len = in an_init() 618 memcpy(sc->sc_buf.sc_ssidlist.an_entry[0].an_ssid, in an_init() 620 if ((error = an_write_rid(sc, AN_RID_SSIDLIST, &sc->sc_buf, in an_init() 621 sizeof(sc->sc_buf.sc_ssidlist))) != 0) { in an_init() 628 memset(&sc->sc_buf, 0, sizeof(sc->sc_buf.sc_aplist)); in an_init() [all …]
|
| H A D | lcdkp_subr.c | 81 sc->sc_buf = b; in lcdkp_scankey() 104 *result = sc->sc_buf; in lcdkp_readkey() 154 sc->sc_buf = b; in lcdkp_poll()
|
| /netbsd-src/sys/arch/mips/atheros/dev/ |
| H A D | athflash.c | 112 u_int8_t *sc_buf; member 254 sc->sc_buf = kmem_alloc(sc->sc_sector_size, KM_SLEEP); in flash_attach() 303 bus_space_read_region_1(iot, ioh, off, sc->sc_buf, count); in flashread() 304 if ((error = uiomove(sc->sc_buf, count, uio)) != 0) in flashread() 333 error = uiomove(sc->sc_buf, sc->sc_sector_size, uio); in flashwrite() 336 if (is_block_same(sc, off, sc->sc_buf)) in flashwrite() 428 p = (u_int16_t *) sc->sc_buf; in flash_sector_write()
|
| /netbsd-src/sys/dev/pci/ |
| H A D | viornd.c | 70 void *sc_buf; member 154 &sc->sc_buf, BUS_DMA_NOWAIT); in viornd_attach() 171 sc->sc_buf, VIORND_BUFSIZE, NULL, in viornd_attach() 212 bus_dmamem_unmap(virtio_dmat(vsc), sc->sc_buf, VIORND_BUFSIZE); in viornd_attach() 249 rnd_add_data_intr(&sc->sc_rndsource, sc->sc_buf, VIORND_BUFSIZE, in viornd_vq_done()
|
| /netbsd-src/sys/arch/hpcarm/dev/ |
| H A D | nbpiic.c | 55 char sc_buf[16]; member 146 handled = pxa2x0_i2c_intr_sub(pi2c, &len, &sc->sc_buf[sc->sc_idx]); in nbpiic_intr() 151 nbppcon_intr(sc->sc_pcon, sc->sc_idx, sc->sc_buf); in nbpiic_intr() 169 sizeof(sc->sc_buf) - sc->sc_idx, buf + sc->sc_idx, in nbpiic_poll() 173 memcpy(buf, sc->sc_buf, sc->sc_idx); in nbpiic_poll()
|
| /netbsd-src/sys/arch/hpcmips/vr/ |
| H A D | vraiu.c | 74 u_short *sc_buf; /* DMA buffer pointer */ member 211 (void **)&sc->sc_buf, in vraiu_attach() 220 bus_dmamem_unmap(sc->sc_dmat, (void *)sc->sc_buf, in vraiu_attach() 225 if (bus_dmamap_load(sc->sc_dmat, sc->sc_dmap, sc->sc_buf, in vraiu_attach() 229 bus_dmamem_unmap(sc->sc_dmat, (void *)sc->sc_buf, in vraiu_attach() 234 if (sc->sc_ac->ac_set_aiuout(sc->sc_ac, sc->sc_buf)) { in vraiu_attach() 238 bus_dmamem_unmap(sc->sc_dmat, (void *)sc->sc_buf, in vraiu_attach() 351 vraiu_slinear16_1(sc, sc->sc_buf, block, bsize); in vraiu_start_output()
|
| H A D | flash_vrip.c | 265 sc->sc_buf = kmem_alloc(sc->sc_block_size, KM_SLEEP); in flash_attach() 360 bus_space_read_region_1(iot, ioh, off, sc->sc_buf, count); in flashread() 361 if ((error = uiomove(sc->sc_buf, count, uio)) != 0) in flashread() 390 if ((error = uiomove(sc->sc_buf, sc->sc_block_size, uio)) != 0) in flashwrite() 392 if (is_block_same(sc, off, sc->sc_buf)) in flashwrite() 551 p = (u_int16_t *) sc->sc_buf; in intel_write() 703 p = (u_int16_t *) sc->sc_buf; in amd_write()
|
| /netbsd-src/sys/dev/sdmmc/ |
| H A D | sbt.c | 66 u_char *sc_buf; member 185 sc->sc_buf = malloc(SBT_PKT_BUFSIZ, M_DEVBUF, M_WAITOK); in sbt_attach() 338 if (sbt_read_packet(sc, sc->sc_buf, &len) != 0 || len == 0) { in sbt_intr() 350 m_copyback(m, 0, len, sc->sc_buf); in sbt_intr() 362 switch (sc->sc_buf[0]) { in sbt_intr() 380 DEVNAME(sc), sc->sc_buf[0], m->m_pkthdr.len)); in sbt_intr() 497 m_copydata(m, 0, len, sc->sc_buf); in sbt_start() 500 if (sbt_write_packet(sc, sc->sc_buf, len)) in sbt_start()
|
| /netbsd-src/sys/dev/marvell/ |
| H A D | mvxpbm.c | 269 sc->sc_buf = (void *)kva; in mvxpbm_alloc_buffer() 272 DPRINTSC(sc, 1, "memory pool at %p\n", sc->sc_buf); in mvxpbm_alloc_buffer() 276 for (ptr = sc->sc_buf; ptr + sc->sc_slotsize <= bm_buf_end; in mvxpbm_alloc_buffer() 285 chunk->off = (ptr - sc->sc_buf); in mvxpbm_alloc_buffer() 287 chunk->buf_off = (ptr_data - sc->sc_buf); in mvxpbm_alloc_buffer() 289 chunk->buf_va = (vaddr_t)(sc->sc_buf + chunk->buf_off); in mvxpbm_alloc_buffer()
|
| /netbsd-src/sys/dev/sbus/ |
| H A D | bpp.c | 92 uint8_t *sc_buf; member 215 dsc->sc_buf = malloc(dsc->sc_bufsz, M_DEVBUF, M_WAITOK); in bppattach() 333 error = tsleep(sc->sc_buf, PZERO|PCATCH, "bppwrite", 0); in bppwrite() 347 uint8_t *bp = sc->sc_buf; in bppwrite() 402 wakeup(sc->sc_buf); in bppwrite() 618 wakeup(sc->sc_buf); in bppintr()
|
| /netbsd-src/sys/arch/arm/broadcom/ |
| H A D | bcm2835_bsc.c | 158 sc->sc_buf[sc->sc_bufpos++]); in bsciic_txfill() 171 sc->sc_buf[sc->sc_bufpos++] = in bsciic_rxdrain() 375 sc->sc_buf = __UNCONST(sc->sc_exec.cmdbuf); in bsciic_exec_func_send_cmd() 391 sc->sc_buf = sc->sc_exec.databuf; in bsciic_exec_func_send_data() 411 sc->sc_buf = sc->sc_exec.databuf; in bsciic_exec_func_recv_data()
|
| /netbsd-src/sys/arch/arm/ti/ |
| H A D | ti_iic.c | 182 char *sc_buf; member 492 sc->sc_buf = buf; in ti_iic_op() 604 sc->sc_buf[sc->sc_bufidx] = I2C_READ_DATA(sc); in ti_iic_do_read() 606 sc->sc_buf[sc->sc_bufidx])); in ti_iic_do_read() 632 sc->sc_bufidx, sc->sc_buf[sc->sc_bufidx])); in ti_iic_do_write() 633 I2C_WRITE_DATA(sc, sc->sc_buf[sc->sc_bufidx]); in ti_iic_do_write()
|
| /netbsd-src/sys/arch/usermode/dev/ |
| H A D | ttycons.c | 57 u_char sc_buf[1024]; member 317 u_char *p = sc->sc_buf; in ttycons_start() 328 brem = q_to_b(&t->t_outq, sc->sc_buf, sizeof(sc->sc_buf)); in ttycons_start()
|
| /netbsd-src/sys/arch/acorn32/podulebus/ |
| H A D | esc.c | 496 nx->buf = dev->sc_buf; in esc_save_pointers() 518 dev->sc_buf = nx->buf; in esc_restore_pointers() 577 buf = dev->sc_buf; 604 dev->sc_buf = buf; 631 buf = dev->sc_buf; in esc_ixfer() 680 dev->sc_buf = buf; in esc_ixfer() 1206 memcpy(dev->sc_buf, dev->sc_bump_va, len-left); in esc_midaction() 1219 dev->sc_buf += len-left; in esc_midaction() 1321 memcpy(dev->sc_bump_va, dev->sc_buf, dev->sc_dma_len); in esc_postaction()
|
| /netbsd-src/games/sail/ |
| H A D | pl_7.c | 76 static const char *sc_buf; variable 388 waddstr(scroll_w, sc_buf); in draw_scroll() 389 cursorx = strlen(sc_prompt) + strlen(sc_buf); in draw_scroll() 444 sc_buf = ""; in prompt() 452 sc_buf = NULL; in endprompt() 487 sc_buf = input; in sgetch() 514 sc_buf = buf; in sgetstr()
|
| /netbsd-src/sys/arch/arm/amlogic/ |
| H A D | meson_uart.c | 103 u_char sc_buf[1024]; member 414 u_char *p = sc->sc_buf; in meson_uart_start() 427 for (brem = q_to_b(&tp->t_outq, sc->sc_buf, sizeof(sc->sc_buf)); in meson_uart_start()
|