/illumos-gate/usr/src/lib/libcryptoutil/common/ |
H A D | keyfile.c | 47 pkcs11_read_data(char *filename, void **dbuf, size_t *dlen) argument 56 if (filename == NULL || dbuf == NULL || dlen == NULL) 84 * make it ok here but also set dbuf = NULL and dlen = 0 89 *dbuf = NULL; 141 *dbuf = filebuf;
|
H A D | random.c | 84 readn_nointr(int fd, void *dbuf, size_t dlen) argument 86 char *marker = dbuf; 109 writen_nointr(int fd, void *dbuf, size_t dlen) argument 111 char *marker = dbuf; 214 pkcs11_read_common(int *fd, pthread_mutex_t *mtx, void *dbuf, size_t dlen) argument 219 n = readn_nointr(*fd, dbuf, dlen); 226 pkcs11_read_random(void *dbuf, size_t dlen) argument 228 return (pkcs11_read_common(&random_fd, &random_mutex, dbuf, dlen)); 232 pkcs11_read_urandom(void *dbuf, size_t dlen) argument 234 return (pkcs11_read_common(&urandom_fd, &urandom_mutex, dbuf, dle 241 pkcs11_write_common(int *fd, pthread_mutex_t *mtx, void *dbuf, size_t dlen) argument 253 pkcs11_write_random_seed(void *dbuf, size_t dlen) argument 260 pkcs11_write_urandom_seed(void *dbuf, size_t dlen) argument 317 pkcs11_get_random(void *dbuf, size_t dlen) argument 336 pkcs11_get_urandom(void *dbuf, size_t dlen) argument 354 pkcs11_get_nzero_urandom(void *dbuf, size_t dlen) argument [all...] |
/illumos-gate/usr/src/cmd/backup/dump/ |
H A D | unctime.c | 52 char dbuf[30]; local 55 (void) strncpy(dbuf, str, 24); 56 dbuf[24] = '\0'; 57 dbuf[E_MONTH+3] = '\0'; 58 then.tm_mon = lookup(&dbuf[E_MONTH]); 62 then.tm_mday = atoi(&dbuf[E_DAY]); 63 then.tm_hour = atoi(&dbuf[E_HOUR]); 64 then.tm_min = atoi(&dbuf[E_MINUTE]); 65 then.tm_sec = atoi(&dbuf[E_SECOND]); 66 then.tm_year = atoi(&dbuf[E_YEA [all...] |
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_buf.c | 66 oce_dma_buf_t *dbuf; local 78 dbuf = kmem_zalloc(sizeof (oce_dma_buf_t), KM_NOSLEEP); 79 if (dbuf == NULL) { 85 DDI_DMA_DONTWAIT, NULL, &dbuf->dma_handle); 92 ret = ddi_dma_mem_alloc(dbuf->dma_handle, size, &oce_dma_buf_accattr, 93 flags, DDI_DMA_DONTWAIT, NULL, &dbuf->base, 94 &actual_len, &dbuf->acc_handle); 102 ret = ddi_dma_addr_bind_handle(dbuf->dma_handle, 103 (struct as *)0, dbuf->base, actual_len, 111 bzero(dbuf 137 oce_free_dma_buffer(struct oce_dev *dev, oce_dma_buf_t *dbuf) argument [all...] |
H A D | oce_utils.c | 40 * dbuf - pointer to structure describing DMA-able memory 45 oce_page_list(oce_dma_buf_t *dbuf, argument 51 ASSERT(dbuf != NULL); 54 paddr = DBUF_PA(dbuf);
|
H A D | oce_rx.c | 166 oce_dma_buf_t *dbuf; local 170 dbuf = oce_alloc_dma_buffer(dev, size, &oce_rx_buf_attr, flags); 171 if (dbuf == NULL) { 178 rqbd->mp = desballoc((uchar_t *)(dbuf->base), 179 dbuf->size, 0, &rqbd->fr_rtn); 181 oce_free_dma_buffer(dev, dbuf); 184 rqbd->rqb = dbuf; 186 rqbd->frag_addr.dw.addr_lo = ADDR_LO(dbuf->addr + OCE_RQE_BUF_HEADROOM); 187 rqbd->frag_addr.dw.addr_hi = ADDR_HI(dbuf->addr + OCE_RQE_BUF_HEADROOM); 515 (void) DBUF_SYNC(cq->ring->dbuf, DDI_DMA_SYNC_FORKERNE [all...] |
/illumos-gate/usr/src/boot/sys/boot/i386/libfirewire/ |
H A D | dconsole.c | 89 char buf[16], *dbuf; local 97 dbuf = (char *)round_page((vm_offset_t)&dcons_buffer[0]); 98 dcons_paddr = VTOP(dbuf); 102 dcons_init((struct dcons_buf *)dbuf, size, sc);
|
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | eftread.c | 149 char *dbuf = alloca(hdr.dictlen); local 152 if ((cc = fread(dbuf, 1, hdr.dictlen, fp)) != hdr.dictlen) 157 for (dptr = &dbuf[hdr.dictlen - 2]; dptr > dbuf; dptr--)
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | lcl_nw.c | 224 char *bufp, *ndbuf, *dbuf = NULL; local 246 if (dbuf == NULL) { 250 ndbuf = realloc(dbuf, bufsiz + GROWBUF); 252 dbuf = ndbuf; 253 bufp = dbuf; 255 offset = strlen(dbuf); 311 if (dbuf) 312 free(dbuf);
|
H A D | lcl_pr.c | 88 char * dbuf; member in struct:pvt 145 if (pvt->dbuf) 146 free(pvt->dbuf); 201 char *bufp, *ndbuf, *dbuf = NULL; local 208 if (pvt->dbuf) { 209 free(pvt->dbuf); 210 pvt->dbuf = NULL; 217 if (dbuf) 218 free(dbuf); 224 if (dbuf [all...] |
/illumos-gate/usr/src/cmd/streams/log/ |
H A D | strace.c | 179 char dbuf[DATSIZE]; local 191 dat.buf = dbuf; 232 prlog(stdout, lp, dbuf);
|
H A D | strerr.c | 104 char dbuf[DATSIZE]; /* must start on word boundary */ local 118 dat.buf = dbuf; 156 prlog(log, lp, dbuf, 1); 165 prlog(pfile, lp, dbuf, 0);
|
/illumos-gate/usr/src/uts/common/io/comstar/lu/stmf_sbd/ |
H A D | sbd_zvol.c | 148 * Fill in the dbuf sglist from the dmu_buf_t array. 153 sbd_zvol_alloc_read_bufs(sbd_lu_t *sl, stmf_data_buf_t *dbuf) argument 155 sbd_zvol_io_t *zvio = dbuf->db_lu_private; 158 uint64_t len = dbuf->db_data_size; 192 if (dbuf->db_sglist_length != numbufs) { 193 cmn_err(CE_PANIC, "wrong size sglist: dbuf %d != %d\n", 194 dbuf->db_sglist_length, numbufs); 197 sgl = &dbuf->db_sglist[0]; 220 sbd_zvol_rele_read_bufs(sbd_lu_t *sl, stmf_data_buf_t *dbuf) argument 222 sbd_zvol_io_t *zvio = dbuf 238 sbd_zvol_alloc_write_bufs(sbd_lu_t *sl, stmf_data_buf_t *dbuf) argument 312 sbd_zvol_rele_write_bufs_abort(sbd_lu_t *sl, stmf_data_buf_t *dbuf) argument 333 sbd_zvol_rele_write_bufs(sbd_lu_t *sl, stmf_data_buf_t *dbuf) argument [all...] |
/illumos-gate/usr/src/cmd/vi/misc/ |
H A D | xstr.c | 212 char dbuf[BUFSIZ]; local 213 register char *dp = dbuf; 253 return (hashit(dbuf, 1));
|
/illumos-gate/usr/src/cmd/xstr/ |
H A D | xstr.c | 201 char dbuf[BUFSIZ]; local 202 char *dp = dbuf; 255 return (hashit(dbuf, 1));
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/ |
H A D | pppdump.c | 238 unsigned char dbuf[8192]; variable 313 d = dbuf; 333 p = dbuf;
|
/illumos-gate/usr/src/cmd/cpio/ |
H A D | utils.c | 233 char *digp, dbuf[ULL_MAX_SIZE + 1]; local 235 dbuf[ULL_MAX_SIZE] = '\0'; 236 digp = ulltostr((u_longlong_t)val, &dbuf[ULL_MAX_SIZE]); 237 len = &dbuf[ULL_MAX_SIZE] - digp;
|
/illumos-gate/usr/src/cmd/exstr/ |
H A D | exstr.c | 177 char dbuf[BUFSIZ]; local 178 register char *dp = dbuf; 196 prstr(dbuf, saved_lineno, saved_posno);
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmttydefs.c | 71 static char dbuf[BUFSIZ]; local 93 dbuf[len] = '-'; 94 dbuf[len] = '\0'; 152 dbuf[len] = '\0'; 153 log("\n%s", dbuf); 155 log("%s\n", dbuf); 156 dbuf[len] = '-';
|
/illumos-gate/usr/src/uts/common/io/comstar/port/fcoet/ |
H A D | fcoet_eth.c | 514 stmf_data_buf_t *dbuf; local 528 dbuf = xch->xch_dbufs[data_offset/FCOET_MAX_DBUF_LEN]; 529 ASSERT(dbuf); 534 ASSERT(((sge_idx < FCOET_GET_SEG_NUM(dbuf) - 1) && 536 ((sge_idx == FCOET_GET_SEG_NUM(dbuf) - 1) && 538 dbuf->db_data_size % ss->ss_fcp_data_payload_size))); 540 bcopy(frm->frm_payload, dbuf->db_sglist[sge_idx].seg_addr, 542 atomic_add_16(&dbuf->db_sglist_length, 1); 546 dbuf->db_sglist_length >= FCOET_GET_SEG_NUM(dbuf)) { 885 stmf_data_buf_t *dbuf; local [all...] |
H A D | fcoet_fc.c | 213 fcoet_xfer_scsi_data(fct_cmd_t *cmd, stmf_data_buf_t *dbuf, uint32_t ioflags) argument 223 ASSERT(!xch->xch_dbufs[dbuf->db_relative_offset/FCOET_MAX_DBUF_LEN]); 224 xch->xch_dbufs[dbuf->db_relative_offset/FCOET_MAX_DBUF_LEN] = dbuf; 226 left_size = (int)dbuf->db_data_size; 227 if (dbuf->db_relative_offset == 0) 231 if (dbuf->db_flags & DB_DIRECTION_FROM_RPORT) { 236 dbuf->db_sglist_length = 0; 256 FCOE_V2B_4(dbuf->db_relative_offset, frm->frm_payload); 257 FCOE_V2B_4(dbuf [all...] |
/illumos-gate/usr/src/lib/libast/common/include/ |
H A D | tar.h | 115 struct header dbuf; member in union:hblock
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | bpobj.c | 100 dmu_buf_t *dbuf = NULL; local 120 if (dbuf == NULL || dbuf->db_offset > offset) { 121 if (dbuf) 122 dmu_buf_rele(dbuf, FTAG); 124 bpo.bpo_phys->bpo_subobjs, offset, FTAG, &dbuf, 0)); 127 ASSERT3U(offset, >=, dbuf->db_offset); 128 ASSERT3U(offset, <, dbuf->db_offset + dbuf->db_size); 130 objarray = dbuf 211 dmu_buf_t *dbuf = NULL; local [all...] |
/illumos-gate/usr/src/lib/libipp/ |
H A D | libipp.c | 697 char *dbuf = NULL; local 775 dbuf = cbuf; 789 if ((dbuf = realloc(dbuf, nextbuflen)) == NULL) { 801 iioc.ii_buf = dbuf; 827 if ((rc = nvlist_unpack(dbuf, dbuflen, &dnvlp, 0)) != 0) { 858 free(dbuf); 877 free(dbuf); 905 if (dbuf != NULL) 906 free(dbuf); [all...] |
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | mdoc_argv.c | 601 char dbuf[DELIMSZ]; local 607 dbuf[j] = buf[i]; 612 dbuf[j] = '\0'; 613 if (DELIM_CLOSE != mdoc_isdelim(dbuf)) 624 dbuf[j++] = buf[i++]; 629 dbuf[j] = '\0'; 630 d = mdoc_isdelim(dbuf);
|