Searched refs:sc_buf (Results 1 - 25 of 28) sorted by relevance

12

/openbsd-current/sys/arch/luna88k/stand/boot/
H A Dscsivar.h79 u_char *sc_buf; /* Data Buffer Pointor*/ member in struct:scsi_softc
H A Dsc.c130 hs->sc_buf = NULL;
278 hs->sc_buf = buf;
302 hs->sc_buf = NULL;
592 buf = hs->sc_buf;
/openbsd-current/sys/arch/powerpc64/dev/
H A Dipmi_opal.c89 size = sizeof(sc->sc.sc_buf);
91 opal_phys(sc->sc.sc_buf), opal_phys(&size));
109 struct opal_ipmi_msg *msg = (struct opal_ipmi_msg *)sc->sc_buf;
125 opal_phys(sc->sc.sc_buf), c->c_txlen);
134 struct opal_ipmi_msg *msg = (struct opal_ipmi_msg *)sc->sc.sc_buf;
135 uint64_t size = sizeof(sc->sc.sc_buf);
142 opal_phys(sc->sc.sc_buf), opal_phys(&size));
154 sc->sc.sc_buf[IPMI_MSG_NFLN] = msg->netfn;
155 sc->sc.sc_buf[IPMI_MSG_CMD] = msg->cmd;
156 sc->sc.sc_buf[IPMI_MSG_CCOD
[all...]
/openbsd-current/sys/dev/pv/
H A Dviornd.c49 int *sc_buf; member in struct:viornd_softc
111 sc->sc_buf = dma_alloc(VIORND_BUFSIZE, PR_NOWAIT|PR_ZERO);
112 if (sc->sc_buf == NULL) {
123 sc->sc_buf, VIORND_BUFSIZE, NULL, BUS_DMA_NOWAIT|BUS_DMA_READ)) {
146 if (sc->sc_buf != NULL) {
147 dma_free(sc->sc_buf, VIORND_BUFSIZE);
148 sc->sc_buf = NULL;
174 enqueue_randomness(sc->sc_buf[i]);
/openbsd-current/sys/dev/usb/
H A Dif_urndisreg.h29 char *sc_buf; member in struct:urndis_chain
H A Dusps.c73 uint8_t sc_buf[16]; member in struct:usps_softc
339 err = usbd_do_request(sc->sc_udev, &req, &sc->sc_buf);
361 err = usbd_do_request(sc->sc_udev, &req, &sc->sc_buf);
371 err = usbd_do_request(sc->sc_udev, &req, &sc->sc_buf);
441 (sc->sc_buf[0]>>4) * 10 + (sc->sc_buf[0] & 0xf);
443 (sc->sc_buf[1]>>4) * 10 + (sc->sc_buf[1] & 0xf);
449 serial += ((sc->sc_buf[0]>>4) * 10 + (sc->sc_buf[
[all...]
H A Duoak_subr.c52 sc->sc_hdev->sc_report_id, &sc->sc_buf, sc->sc_flen);
56 if (sc->sc_buf[0] != 0xff)
118 strlcpy(sc->sc_config[target].devname, sc->sc_buf+1,
134 sc->sc_config[target].report_mode = sc->sc_buf[1];
150 result = (sc->sc_buf[2] << 8) + sc->sc_buf[1];
168 result = (sc->sc_buf[2] << 8) + sc->sc_buf[1];
209 *mode = sc->sc_buf[1];
H A Durng.c72 int *sc_buf; member in struct:urng_softc
193 sc->sc_buf = usbd_alloc_buffer(sc->sc_xfer, sc->sc_chip.bufsiz);
194 if (sc->sc_buf == NULL) {
245 usbd_setup_xfer(sc->sc_xfer, sc->sc_inpipe, NULL, sc->sc_buf,
283 enqueue_randomness(sc->sc_buf[i]);
H A Duonerng.c113 int *sc_buf; member in struct:uonerng_softc
259 sc->sc_buf = usbd_alloc_buffer(sc->sc_xfer, ONERNG_BUFSIZ);
260 if (sc->sc_buf == NULL) {
385 usbd_setup_xfer(sc->sc_xfer, sc->sc_inpipe, NULL, sc->sc_buf,
422 enqueue_randomness(sc->sc_buf[i]);
H A Dif_smsc.c620 c, c->sc_buf, sc->sc_bufsz,
1167 u_char *buf = c->sc_buf;
1247 memset(c->sc_buf, 0, sc->sc_bufsz);
1251 c, c->sc_buf, sc->sc_bufsz,
1319 c->sc_buf = usbd_alloc_buffer(c->sc_xfer,
1321 if (c->sc_buf == NULL) {
1348 c->sc_buf = usbd_alloc_buffer(c->sc_xfer,
1350 if (c->sc_buf == NULL) {
1377 memcpy(c->sc_buf, &txhdr, sizeof(txhdr));
1381 memcpy(c->sc_buf
[all...]
H A Duoakv.c282 result = (scc->sc_buf[2] << 8) + scc->sc_buf[1];
302 result = scc->sc_buf[1];
H A Duoak.h130 uint8_t sc_buf[32]; member in struct:uoak_softc
H A Dif_urndis.c773 msg = (struct rndis_packet_msg *)c->sc_buf;
794 usbd_setup_xfer(c->sc_xfer, sc->sc_bulkout_pipe, c, c->sc_buf,
825 msg = (struct rndis_packet_msg *)((char*)c->sc_buf + offset);
967 c->sc_buf = usbd_alloc_buffer(c->sc_xfer,
969 if (c->sc_buf == NULL)
994 c->sc_buf = usbd_alloc_buffer(c->sc_xfer,
996 if (c->sc_buf == NULL)
1112 c->sc_buf, RNDIS_BUFSZ,
1252 usbd_setup_xfer(c->sc_xfer, sc->sc_bulkin_pipe, c, c->sc_buf,
H A Dif_smscreg.h252 char *sc_buf; member in struct:smsc_chain
H A Dupd.c110 char sc_buf[256]; member in struct:upd_softc
322 UHID_FEATURE_REPORT, repid, sc->sc_buf, report->size, sc,
/openbsd-current/sys/arch/macppc/dev/
H A Dxlights.c45 uint32_t *sc_buf; member in struct:xlights_softc
143 BL_BUFSZ, (caddr_t *)&sc->sc_buf, BUS_DMA_NOWAIT))) {
147 sc->sc_bufpos = sc->sc_buf;
155 if ((error = bus_dmamap_load(sc->sc_dmat, sc->sc_bufmap, sc->sc_buf,
198 bus_dmamem_unmap(sc->sc_dmat, (caddr_t)sc->sc_buf, BL_BUFSZ);
255 if (p - sc->sc_buf <
269 tsleep_nsec(sc->sc_buf, PWAIT,
271 p = sc->sc_buf;
307 wakeup(sc->sc_buf);
322 wakeup(sc->sc_buf);
[all...]
/openbsd-current/sys/arch/macppc/macppc/
H A Dmem.c82 uint8_t *sc_buf; member in struct:mem_softc
125 sc->sc_buf = malloc(sc->sc_len, M_DEVBUF, M_NOWAIT);
126 if (sc->sc_buf == NULL) {
135 OF_getprop(ca->ca_node, "dimm-info", sc->sc_buf, sc->sc_len);
149 if (sc->sc_buf[ia.ia_addr * SPD_SIZE] != 0)
155 free(sc->sc_buf, M_DEVBUF, sc->sc_len);
185 memcpy(buf, &sc->sc_buf[off], len);
/openbsd-current/sys/dev/i2c/
H A Dipmi_i2c.c160 uint8_t *buf = sc->sc.sc_buf;
212 memcpy(sc->sc.sc_buf, &buf[3], c->c_rxlen);
217 memcpy(sc->sc.sc_buf, &buf[1], c->c_rxlen);
240 memcpy(&sc->sc.sc_buf[c->c_rxlen], &buf[2], len);
244 memcpy(&sc->sc.sc_buf[c->c_rxlen], &buf[2], len);
/openbsd-current/sys/dev/ic/
H A Dan.c221 akey = &sc->sc_buf.sc_wepkey;
784 m_copydata(m, 0, totlen, &sc->sc_buf.sc_txbuf);
786 an_swap16((u_int16_t *)&sc->sc_buf.sc_txbuf, cnt);
788 sc->sc_buf.sc_val, cnt);
1011 memset(&sc->sc_buf, 0, sizeof(sc->sc_buf.sc_ssidlist));
1012 sc->sc_buf.sc_ssidlist.an_entry[0].an_ssid_len =
1015 memcpy(sc->sc_buf.sc_ssidlist.an_entry[0].an_ssid,
1017 an_swap16((u_int16_t *)&sc->sc_buf.sc_ssidlist.an_entry[0].an_ssid, 16);
1018 if ((error = an_write_rid(sc, AN_RID_SSIDLIST, &sc->sc_buf,
[all...]
H A Danvar.h146 } sc_buf; member in struct:an_softc
/openbsd-current/sys/dev/sbus/
H A Dbpp.c85 caddr_t sc_buf; member in struct:bpp_softc
185 dsc->sc_buf = malloc(dsc->sc_bufsz, M_DEVBUF, M_NOWAIT);
291 error = tsleep_nsec(sc->sc_buf, PZERO | PCATCH, "bppwrite",
306 caddr_t bp = sc->sc_buf;
361 wakeup(sc->sc_buf);
406 wakeup(sc->sc_buf);
/openbsd-current/sys/scsi/
H A Dses.c79 u_char *sc_buf; member in struct:ses_softc
207 dma_free(sc->sc_buf, sc->sc_buflen);
208 sc->sc_buf = NULL;
246 if (sc->sc_buf != NULL)
247 dma_free(sc->sc_buf, sc->sc_buflen);
347 sc->sc_buf = dma_alloc(sc->sc_buflen, PR_NOWAIT);
348 if (sc->sc_buf == NULL) {
355 dma_free(sc->sc_buf, sc->sc_buflen);
379 xs->data = sc->sc_buf;
422 status = (struct ses_status *)(sc->sc_buf
[all...]
/openbsd-current/sys/arch/armv7/omap/
H A Dti_iic.c103 char *sc_buf; member in struct:ti_iic_softc
391 sc->sc_buf = buf;
492 sc->sc_buf[sc->sc_bufidx] = I2C_READ_DATA(sc);
494 sc->sc_buf[sc->sc_bufidx]));
520 sc->sc_bufidx, sc->sc_buf[sc->sc_bufidx]));
521 I2C_WRITE_DATA(sc, sc->sc_buf[sc->sc_bufidx]);
/openbsd-current/games/sail/
H A Dpl_7.c48 static const char *sc_buf; variable
130 (void) wprintw(scroll_w, "%s%s", sc_prompt, sc_buf);
206 sc_buf = "";
243 sc_buf = buf;
/openbsd-current/sys/dev/
H A Dipmi.c350 bt_write(sc, _BT_DATAOUT_REG, sc->sc_buf[i]);
384 *(sc->sc_buf + j++) = v;
527 sts = smic_write_cmd_data(sc, SMS_CC_START_TRANSFER, &sc->sc_buf[0]);
531 &sc->sc_buf[idx]);
534 sts = smic_write_cmd_data(sc, SMS_CC_END_TRANSFER, &sc->sc_buf[idx]);
557 sts = smic_read_data(sc, &sc->sc_buf[idx++]);
697 dbg_dump(50, "kcs sendmsg", c->c_txlen, sc->sc_buf);
706 sts = kcs_write_data(sc, sc->sc_buf[idx]);
710 dbg_dump(1, "kcs_sendmsg", c->c_txlen, sc->sc_buf);
724 sts = kcs_read_data(sc, &sc->sc_buf[id
[all...]

Completed in 297 milliseconds

12