Lines Matching refs:dsp
194 char *sbuf, *dsp, *dp, ta; in ddi_devid_str_encode() local
244 dsp = sbuf; in ddi_devid_str_encode()
245 *dsp++ = id->did_magic_hi; in ddi_devid_str_encode()
246 *dsp++ = id->did_magic_lo; in ddi_devid_str_encode()
247 *dsp++ = DEVID_REV_BINTOASCII(id->did_rev_lo); in ddi_devid_str_encode()
248 *dsp++ = ','; in ddi_devid_str_encode()
250 *dsp++ = id->did_driver[i]; in ddi_devid_str_encode()
251 *dsp++ = '@'; in ddi_devid_str_encode()
255 *dsp++ = ta; in ddi_devid_str_encode()
259 *dsp++ = '_'; in ddi_devid_str_encode()
261 *dsp++ = '~'; in ddi_devid_str_encode()
263 *dsp++ = *dp; in ddi_devid_str_encode()
266 *dsp++ = (n < 10) ? (n + '0') : (n + ('a' - 10)); in ddi_devid_str_encode()
268 *dsp++ = (n < 10) ? (n + '0') : (n + ('a' - 10)); in ddi_devid_str_encode()
273 *dsp++ = '/'; in ddi_devid_str_encode()
274 (void) strcpy(dsp, minor_name); in ddi_devid_str_encode()
276 *dsp++ = 0; in ddi_devid_str_encode()
320 char *str, *msp, *dsp, *dp, ta; in devid_str_decode_id() local
394 dsp = devidstr; in devid_str_decode_id()
395 id->did_magic_hi = *dsp++; /* <magic> "id" */ in devid_str_decode_id()
396 id->did_magic_lo = *dsp++; in devid_str_decode_id()
399 DEVID_REV_ASCIITOBIN(*dsp); /* <rev> "1" */ in devid_str_decode_id()
400 dsp++; /* skip "1" */ in devid_str_decode_id()
401 dsp++; /* skip "," */ in devid_str_decode_id()
403 if (*dsp == '@') in devid_str_decode_id()
405 id->did_driver[i] = *dsp++; in devid_str_decode_id()
411 if (*dsp != '@') in devid_str_decode_id()
419 for (i = 0, dsp = str, dp = &id->did_id[0]; in devid_str_decode_id()
422 if (*dsp == '_') in devid_str_decode_id()
424 else if (*dsp == '~') in devid_str_decode_id()
427 *dp = *dsp; in devid_str_decode_id()
428 dsp++; in devid_str_decode_id()
430 c = *dsp++; in devid_str_decode_id()
438 c = *dsp++; in devid_str_decode_id()