/openbsd/sys/arch/powerpc64/dev/ |
H A D | ipmi_opal.c | 90 size = sizeof(sc->sc.sc_buf); in ipmi_opal_attach() 92 opal_phys(sc->sc.sc_buf), opal_phys(&size)); in ipmi_opal_attach() 110 struct opal_ipmi_msg *msg = (struct opal_ipmi_msg *)sc->sc_buf; in ipmi_opal_buildmsg() 126 opal_phys(sc->sc.sc_buf), c->c_txlen); in ipmi_opal_sendmsg() 135 struct opal_ipmi_msg *msg = (struct opal_ipmi_msg *)sc->sc.sc_buf; in ipmi_opal_recvmsg() 136 uint64_t size = sizeof(sc->sc.sc_buf); in ipmi_opal_recvmsg() 143 opal_phys(sc->sc.sc_buf), opal_phys(&size)); in ipmi_opal_recvmsg() 155 sc->sc.sc_buf[IPMI_MSG_NFLN] = msg->netfn; in ipmi_opal_recvmsg() 156 sc->sc.sc_buf[IPMI_MSG_CMD] = msg->cmd; in ipmi_opal_recvmsg() 157 sc->sc.sc_buf[IPMI_MSG_CCODE] = msg->data[0]; in ipmi_opal_recvmsg()
|
/openbsd/sys/dev/usb/ |
H A D | usps.c | 73 uint8_t sc_buf[16]; member 339 err = usbd_do_request(sc->sc_udev, &req, &sc->sc_buf); in usps_cmd() 441 (sc->sc_buf[0]>>4) * 10 + (sc->sc_buf[0] & 0xf); in usps_get_device_info() 443 (sc->sc_buf[1]>>4) * 10 + (sc->sc_buf[1] & 0xf); in usps_get_device_info() 449 serial += ((sc->sc_buf[0]>>4) * 10 + (sc->sc_buf[0] & 0xf)) * 10000; in usps_get_device_info() 450 serial += ((sc->sc_buf[1]>>4) * 10 + (sc->sc_buf[1] & 0xf)) * 100; in usps_get_device_info() 451 serial += ((sc->sc_buf[2]>>4) * 10 + (sc->sc_buf[2] & 0xf)); in usps_get_device_info() 499 temp = (sc->sc_buf[1] << 8) + sc->sc_buf[0]; in usps_refresh_temp() 518 v = sc->sc_buf[0] * 1000000; in usps_refresh_power() 530 if (sc->sc_buf[7] == 0 && sc->sc_buf[6] == 0) { in usps_refresh_power() [all …]
|
H A D | uoak_subr.c | 52 sc->sc_hdev->sc_report_id, &sc->sc_buf, sc->sc_flen); in uoak_check_device_ready() 56 if (sc->sc_buf[0] != 0xff) in uoak_check_device_ready() 118 strlcpy(sc->sc_config[target].devname, sc->sc_buf+1, in uoak_get_device_name() 134 sc->sc_config[target].report_mode = sc->sc_buf[1]; in uoak_get_report_mode() 150 result = (sc->sc_buf[2] << 8) + sc->sc_buf[1]; in uoak_get_report_rate() 168 result = (sc->sc_buf[2] << 8) + sc->sc_buf[1]; in uoak_get_sample_rate() 209 *mode = sc->sc_buf[1]; in uoak_led_status()
|
H A D | urng.c | 72 int *sc_buf; member 193 sc->sc_buf = usbd_alloc_buffer(sc->sc_xfer, sc->sc_chip.bufsiz); in urng_attach() 194 if (sc->sc_buf == NULL) { in urng_attach() 245 usbd_setup_xfer(sc->sc_xfer, sc->sc_inpipe, NULL, sc->sc_buf, in urng_task() 283 enqueue_randomness(sc->sc_buf[i]); in urng_task()
|
H A D | uonerng.c | 113 int *sc_buf; member 259 sc->sc_buf = usbd_alloc_buffer(sc->sc_xfer, ONERNG_BUFSIZ); in uonerng_attach() 260 if (sc->sc_buf == NULL) { in uonerng_attach() 385 usbd_setup_xfer(sc->sc_xfer, sc->sc_inpipe, NULL, sc->sc_buf, in uonerng_task() 422 enqueue_randomness(sc->sc_buf[i]); in uonerng_task()
|
H A D | if_smsc.c | 620 c, c->sc_buf, sc->sc_bufsz, in smsc_init() 1167 u_char *buf = c->sc_buf; in smsc_rxeof() 1247 memset(c->sc_buf, 0, sc->sc_bufsz); in smsc_rxeof() 1251 c, c->sc_buf, sc->sc_bufsz, in smsc_rxeof() 1319 c->sc_buf = usbd_alloc_buffer(c->sc_xfer, in smsc_tx_list_init() 1321 if (c->sc_buf == NULL) { in smsc_tx_list_init() 1348 c->sc_buf = usbd_alloc_buffer(c->sc_xfer, in smsc_rx_list_init() 1350 if (c->sc_buf == NULL) { in smsc_rx_list_init() 1377 memcpy(c->sc_buf, &txhdr, sizeof(txhdr)); in smsc_encap() 1381 memcpy(c->sc_buf + 4, &txhdr, sizeof(txhdr)); in smsc_encap() [all …]
|
H A D | uoakv.c | 282 result = (scc->sc_buf[2] << 8) + scc->sc_buf[1]; in uoakv_get_channel_setting() 302 result = scc->sc_buf[1]; in uoakv_get_sensor_setting()
|
H A D | if_urndisreg.h | 29 char *sc_buf; member
|
H A D | if_urndis.c | 773 msg = (struct rndis_packet_msg *)c->sc_buf; in urndis_encap() 794 usbd_setup_xfer(c->sc_xfer, sc->sc_bulkout_pipe, c, c->sc_buf, in urndis_encap() 825 msg = (struct rndis_packet_msg *)((char*)c->sc_buf + offset); in urndis_decap() 967 c->sc_buf = usbd_alloc_buffer(c->sc_xfer, in urndis_rx_list_init() 969 if (c->sc_buf == NULL) in urndis_rx_list_init() 994 c->sc_buf = usbd_alloc_buffer(c->sc_xfer, in urndis_tx_list_init() 996 if (c->sc_buf == NULL) in urndis_tx_list_init() 1112 c->sc_buf, RNDIS_BUFSZ, in urndis_init() 1252 usbd_setup_xfer(c->sc_xfer, sc->sc_bulkin_pipe, c, c->sc_buf, in urndis_rxeof()
|
H A D | uoak.h | 130 uint8_t sc_buf[32]; member
|
H A D | if_smscreg.h | 252 char *sc_buf; member
|
H A D | upd.c | 112 char sc_buf[256]; member 324 UHID_FEATURE_REPORT, repid, sc->sc_buf, report->size, sc, in upd_request_children()
|
/openbsd/sys/dev/pv/ |
H A D | viornd.c | 49 int *sc_buf; member 112 sc->sc_buf = dma_alloc(VIORND_BUFSIZE, PR_NOWAIT|PR_ZERO); in viornd_attach() 113 if (sc->sc_buf == NULL) { in viornd_attach() 124 sc->sc_buf, VIORND_BUFSIZE, NULL, BUS_DMA_NOWAIT|BUS_DMA_READ)) { in viornd_attach() 147 if (sc->sc_buf != NULL) { in viornd_attach() 148 dma_free(sc->sc_buf, VIORND_BUFSIZE); in viornd_attach() 149 sc->sc_buf = NULL; in viornd_attach() 175 enqueue_randomness(sc->sc_buf[i]); in viornd_vq_done()
|
/openbsd/sys/arch/macppc/dev/ |
H A D | xlights.c | 45 uint32_t *sc_buf; member 143 BL_BUFSZ, (caddr_t *)&sc->sc_buf, BUS_DMA_NOWAIT))) { in xlights_attach() 147 sc->sc_bufpos = sc->sc_buf; in xlights_attach() 155 if ((error = bus_dmamap_load(sc->sc_dmat, sc->sc_bufmap, sc->sc_buf, in xlights_attach() 198 bus_dmamem_unmap(sc->sc_dmat, (caddr_t)sc->sc_buf, BL_BUFSZ); in xlights_attach() 255 if (p - sc->sc_buf < in xlights_theosDOT() 269 tsleep_nsec(sc->sc_buf, PWAIT, in xlights_theosDOT() 271 p = sc->sc_buf; in xlights_theosDOT() 307 wakeup(sc->sc_buf); in xlights_timeout() 322 wakeup(sc->sc_buf); in xlights_intr()
|
/openbsd/sys/arch/macppc/macppc/ |
H A D | mem.c | 83 uint8_t *sc_buf; member 126 sc->sc_buf = malloc(sc->sc_len, M_DEVBUF, M_NOWAIT); in mem_attach() 127 if (sc->sc_buf == NULL) { in mem_attach() 136 OF_getprop(ca->ca_node, "dimm-info", sc->sc_buf, sc->sc_len); in mem_attach() 150 if (sc->sc_buf[ia.ia_addr * SPD_SIZE] != 0) in mem_attach() 156 free(sc->sc_buf, M_DEVBUF, sc->sc_len); in mem_attach() 186 memcpy(buf, &sc->sc_buf[off], len); in mem_i2c_exec()
|
/openbsd/sys/dev/ic/ |
H A D | an.c | 221 akey = &sc->sc_buf.sc_wepkey; in an_attach() 788 sc->sc_buf.sc_val, cnt); in an_mwrite_bap() 1011 memset(&sc->sc_buf, 0, sizeof(sc->sc_buf.sc_ssidlist)); in an_init() 1019 sizeof(sc->sc_buf.sc_ssidlist)))) { in an_init() 1026 memset(&sc->sc_buf, 0, sizeof(sc->sc_buf.sc_aplist)); in an_init() 1028 sizeof(sc->sc_buf.sc_aplist)); in an_init() 1037 sizeof(sc->sc_buf.sc_encap)); in an_init() 1348 buflen = sizeof(sc->sc_buf); in an_media_status() 1550 akey = &sc->sc_buf.sc_wepkey; in an_write_wepkey() 1595 buflen = sizeof(sc->sc_buf); in an_newstate() [all …]
|
H A D | anvar.h | 146 } sc_buf; member
|
/openbsd/sys/dev/i2c/ |
H A D | ipmi_i2c.c | 159 uint8_t *buf = sc->sc.sc_buf; in ssif_sendmsg() 211 memcpy(sc->sc.sc_buf, &buf[3], c->c_rxlen); in ssif_recvmsg() 216 memcpy(sc->sc.sc_buf, &buf[1], c->c_rxlen); in ssif_recvmsg() 239 memcpy(&sc->sc.sc_buf[c->c_rxlen], &buf[2], len); in ssif_recvmsg() 243 memcpy(&sc->sc.sc_buf[c->c_rxlen], &buf[2], len); in ssif_recvmsg()
|
/openbsd/sys/scsi/ |
H A D | ses.c | 79 u_char *sc_buf; member 207 dma_free(sc->sc_buf, sc->sc_buflen); in ses_attach() 208 sc->sc_buf = NULL; in ses_attach() 246 if (sc->sc_buf != NULL) in ses_detach() 247 dma_free(sc->sc_buf, sc->sc_buflen); in ses_detach() 347 sc->sc_buf = dma_alloc(sc->sc_buflen, PR_NOWAIT); in ses_read_config() 348 if (sc->sc_buf == NULL) { in ses_read_config() 355 dma_free(sc->sc_buf, sc->sc_buflen); in ses_read_config() 379 xs->data = sc->sc_buf; in ses_read_status() 422 status = (struct ses_status *)(sc->sc_buf + SES_STAT_HDRLEN); in ses_make_sensors() [all …]
|
/openbsd/sys/dev/sbus/ |
H A D | bpp.c | 85 caddr_t sc_buf; member 185 dsc->sc_buf = malloc(dsc->sc_bufsz, M_DEVBUF, M_NOWAIT); in bppattach() 291 error = tsleep_nsec(sc->sc_buf, PZERO | PCATCH, "bppwrite", in bppwrite() 306 caddr_t bp = sc->sc_buf; in bppwrite() 361 wakeup(sc->sc_buf); in bppwrite() 406 wakeup(sc->sc_buf); in bppintr()
|
/openbsd/sys/arch/armv7/omap/ |
H A D | ti_iic.c | 103 char *sc_buf; member 391 sc->sc_buf = buf; in ti_iic_op() 492 sc->sc_buf[sc->sc_bufidx] = I2C_READ_DATA(sc); in ti_iic_do_read() 494 sc->sc_buf[sc->sc_bufidx])); in ti_iic_do_read() 520 sc->sc_bufidx, sc->sc_buf[sc->sc_bufidx])); in ti_iic_do_write() 521 I2C_WRITE_DATA(sc, sc->sc_buf[sc->sc_bufidx]); in ti_iic_do_write()
|
/openbsd/sys/dev/ |
H A D | ipmi.c | 350 bt_write(sc, _BT_DATAOUT_REG, sc->sc_buf[i]); in bt_sendmsg() 384 *(sc->sc_buf + j++) = v; in bt_recvmsg() 531 &sc->sc_buf[idx]); in smic_sendmsg() 557 sts = smic_read_data(sc, &sc->sc_buf[idx++]); in smic_recvmsg() 697 dbg_dump(50, "kcs sendmsg", c->c_txlen, sc->sc_buf); in kcs_sendmsg() 706 sts = kcs_write_data(sc, sc->sc_buf[idx]); in kcs_sendmsg() 724 sts = kcs_read_data(sc, &sc->sc_buf[idx]); in kcs_recvmsg() 735 dbg_dump(50, "kcs recvmsg", idx, sc->sc_buf); in kcs_recvmsg() 850 u_int8_t *buf = sc->sc_buf; in bt_buildmsg() 868 u_int8_t *buf = sc->sc_buf; in cmn_buildmsg() [all …]
|
/openbsd/games/sail/ |
H A D | pl_7.c | 48 static const char *sc_buf; variable 130 (void) wprintw(scroll_w, "%s%s", sc_prompt, sc_buf); in newturn() 206 sc_buf = ""; in prompt() 243 sc_buf = buf; in sgetstr()
|
/openbsd/sys/arch/luna88k/stand/boot/ |
H A D | sc.c | 130 hs->sc_buf = NULL; in scinit() 278 hs->sc_buf = buf; in scrun() 302 hs->sc_buf = NULL; in scfinish() 592 buf = hs->sc_buf; in scintr()
|
H A D | scsivar.h | 79 u_char *sc_buf; /* Data Buffer Pointor*/ member
|