Home
last modified time | relevance | path

Searched refs:dbuf (Results 1 – 25 of 110) sorted by relevance

12345

/titanic_41/usr/src/uts/common/io/fibre-channel/fca/oce/
H A Doce_buf.c66 oce_dma_buf_t *dbuf; in oce_alloc_dma_buffer() local
78 dbuf = kmem_zalloc(sizeof (oce_dma_buf_t), KM_NOSLEEP); in oce_alloc_dma_buffer()
79 if (dbuf == NULL) { in oce_alloc_dma_buffer()
85 DDI_DMA_DONTWAIT, NULL, &dbuf->dma_handle); in oce_alloc_dma_buffer()
92 ret = ddi_dma_mem_alloc(dbuf->dma_handle, size, &oce_dma_buf_accattr, in oce_alloc_dma_buffer()
93 flags, DDI_DMA_DONTWAIT, NULL, &dbuf->base, in oce_alloc_dma_buffer()
94 &actual_len, &dbuf->acc_handle); in oce_alloc_dma_buffer()
102 ret = ddi_dma_addr_bind_handle(dbuf->dma_handle, in oce_alloc_dma_buffer()
103 (struct as *)0, dbuf->base, actual_len, in oce_alloc_dma_buffer()
111 bzero(dbuf->base, actual_len); in oce_alloc_dma_buffer()
[all …]
/titanic_41/usr/src/lib/libcryptoutil/common/
H A Drandom.c84 readn_nointr(int fd, void *dbuf, size_t dlen) in readn_nointr() argument
86 char *marker = dbuf; in readn_nointr()
109 writen_nointr(int fd, void *dbuf, size_t dlen) in writen_nointr() argument
111 char *marker = dbuf; in writen_nointr()
214 pkcs11_read_common(int *fd, pthread_mutex_t *mtx, void *dbuf, size_t dlen) in pkcs11_read_common() argument
219 n = readn_nointr(*fd, dbuf, dlen); in pkcs11_read_common()
226 pkcs11_read_random(void *dbuf, size_t dlen) in pkcs11_read_random() argument
228 return (pkcs11_read_common(&random_fd, &random_mutex, dbuf, dlen)); in pkcs11_read_random()
232 pkcs11_read_urandom(void *dbuf, size_t dlen) in pkcs11_read_urandom() argument
234 return (pkcs11_read_common(&urandom_fd, &urandom_mutex, dbuf, dlen)); in pkcs11_read_urandom()
[all …]
H A Dcryptoutil.h217 extern int pkcs11_get_random(void *dbuf, size_t dlen);
218 extern int pkcs11_get_urandom(void *dbuf, size_t dlen);
219 extern int pkcs11_get_nzero_urandom(void *dbuf, size_t dlen);
220 extern int pkcs11_read_data(char *filename, void **dbuf, size_t *dlen);
223 extern ssize_t readn_nointr(int fd, void *dbuf, size_t dlen);
224 extern ssize_t writen_nointr(int fd, void *dbuf, size_t dlen);
H A Dkeyfile.c47 pkcs11_read_data(char *filename, void **dbuf, size_t *dlen) in pkcs11_read_data() argument
56 if (filename == NULL || dbuf == NULL || dlen == NULL) in pkcs11_read_data()
89 *dbuf = NULL; in pkcs11_read_data()
141 *dbuf = filebuf; in pkcs11_read_data()
/titanic_41/usr/src/uts/common/io/comstar/lu/stmf_sbd/
H A Dsbd_scsi.c93 sbd_cmd_t *scmd, struct stmf_data_buf *dbuf);
95 stmf_data_buf_t *dbuf);
97 stmf_data_buf_t *dbuf, uint32_t cdb_xfer_size);
100 void sbd_handle_mode_select(scsi_task_t *task, stmf_data_buf_t *dbuf);
101 void sbd_handle_identifying_info(scsi_task_t *task, stmf_data_buf_t *dbuf);
105 static void sbd_handle_unmap(scsi_task_t *task, stmf_data_buf_t *dbuf);
119 struct stmf_data_buf *dbuf, uint8_t dbuf_reusable);
121 sbd_cmd_t *scmd, struct stmf_data_buf *dbuf, uint8_t dbuf_reusable);
133 struct stmf_data_buf *dbuf) in sbd_do_read_xfer() argument
146 len = scmd->len > dbuf->db_buf_size ? dbuf->db_buf_size : scmd->len; in sbd_do_read_xfer()
[all …]
H A Dsbd_zvol.c153 sbd_zvol_alloc_read_bufs(sbd_lu_t *sl, stmf_data_buf_t *dbuf) in sbd_zvol_alloc_read_bufs() argument
155 sbd_zvol_io_t *zvio = dbuf->db_lu_private; in sbd_zvol_alloc_read_bufs()
158 uint64_t len = dbuf->db_data_size; in sbd_zvol_alloc_read_bufs()
192 if (dbuf->db_sglist_length != numbufs) { in sbd_zvol_alloc_read_bufs()
194 dbuf->db_sglist_length, numbufs); in sbd_zvol_alloc_read_bufs()
197 sgl = &dbuf->db_sglist[0]; in sbd_zvol_alloc_read_bufs()
220 sbd_zvol_rele_read_bufs(sbd_lu_t *sl, stmf_data_buf_t *dbuf) in sbd_zvol_rele_read_bufs() argument
222 sbd_zvol_io_t *zvio = dbuf->db_lu_private; in sbd_zvol_rele_read_bufs()
225 ASSERT(dbuf->db_sglist_length); in sbd_zvol_rele_read_bufs()
227 dmu_buf_rele_array(zvio->zvio_dbp, (int)dbuf->db_sglist_length, RDTAG); in sbd_zvol_rele_read_bufs()
[all …]
H A Dsbd_impl.h288 int sbd_zvol_alloc_read_bufs(sbd_lu_t *sl, stmf_data_buf_t *dbuf);
289 void sbd_zvol_rele_read_bufs(sbd_lu_t *sl, stmf_data_buf_t *dbuf);
290 int sbd_zvol_alloc_write_bufs(sbd_lu_t *sl, stmf_data_buf_t *dbuf);
291 void sbd_zvol_rele_write_bufs_abort(sbd_lu_t *sl, stmf_data_buf_t *dbuf);
292 int sbd_zvol_rele_write_bufs(sbd_lu_t *sl, stmf_data_buf_t *dbuf);
298 void sbd_dbuf_xfer_done(struct scsi_task *task, struct stmf_data_buf *dbuf);
303 void sbd_dbuf_free(struct scsi_task *task, struct stmf_data_buf *dbuf);
/titanic_41/usr/src/cmd/backup/dump/
H A Dunctime.c52 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_YEAR]) - 1900;
/titanic_41/usr/src/lib/libresolv2/common/irs/
H A Dlcl_pr.c88 char * dbuf; member
145 if (pvt->dbuf) in pr_close()
146 free(pvt->dbuf); in pr_close()
201 char *bufp, *ndbuf, *dbuf = NULL; in pr_next() local
208 if (pvt->dbuf) { in pr_next()
209 free(pvt->dbuf); in pr_next()
210 pvt->dbuf = NULL; in pr_next()
217 if (dbuf) in pr_next()
218 free(dbuf); in pr_next()
224 if (dbuf == NULL) { in pr_next()
[all …]
H A Dlcl_nw.c224 char *bufp, *ndbuf, *dbuf = NULL; in nw_next() local
246 if (dbuf == NULL) { in nw_next()
250 ndbuf = realloc(dbuf, bufsiz + GROWBUF); in nw_next()
252 dbuf = ndbuf; in nw_next()
253 bufp = dbuf; in nw_next()
255 offset = strlen(dbuf); in nw_next()
311 if (dbuf) in nw_next()
312 free(dbuf); in nw_next()
H A Dlcl_ho.c327 char *bufp, *ndbuf, *dbuf = NULL; in ho_next() local
345 if (dbuf) in ho_next()
346 free(dbuf); in ho_next()
352 if (dbuf == NULL) { in ho_next()
356 ndbuf = realloc(dbuf, bufsiz + GROWBUF); in ho_next()
358 dbuf = ndbuf; in ho_next()
359 bufp = dbuf; in ho_next()
361 offset = strlen(dbuf); in ho_next()
421 if (dbuf) in ho_next()
422 free(dbuf); in ho_next()
/titanic_41/usr/src/uts/common/fs/zfs/
H A Dbpobj.c99 dmu_buf_t *dbuf = NULL; in bpobj_free() local
119 if (dbuf == NULL || dbuf->db_offset > offset) { in bpobj_free()
120 if (dbuf) in bpobj_free()
121 dmu_buf_rele(dbuf, FTAG); in bpobj_free()
123 bpo.bpo_phys->bpo_subobjs, offset, FTAG, &dbuf, 0)); in bpobj_free()
126 ASSERT3U(offset, >=, dbuf->db_offset); in bpobj_free()
127 ASSERT3U(offset, <, dbuf->db_offset + dbuf->db_size); in bpobj_free()
129 objarray = dbuf->db_data; in bpobj_free()
132 if (dbuf) { in bpobj_free()
133 dmu_buf_rele(dbuf, FTAG); in bpobj_free()
[all …]
/titanic_41/usr/src/uts/common/io/comstar/port/qlt/
H A Dqlt_dma.h122 void qlt_dmem_free(fct_dbuf_store_t *fds, stmf_data_buf_t *dbuf);
123 void qlt_i_dmem_free(qlt_state_t *qlt, stmf_data_buf_t *dbuf);
125 stmf_data_buf_t *dbuf, uint32_t flags);
126 void qlt_dma_teardown_dbuf(fct_dbuf_store_t *fds, stmf_data_buf_t *dbuf);
127 void qlt_dmem_dma_sync(stmf_data_buf_t *dbuf, uint_t sync_type);
133 uint16_t qlt_get_cookie_count(stmf_data_buf_t *dbuf);
134 void qlt_ddi_dma_nextcookie(stmf_data_buf_t *dbuf, ddi_dma_cookie_t *cookie_p);
135 ddi_dma_cookie_t *qlt_get_cookie_array(stmf_data_buf_t *dbuf);
H A Dqlt_dma.c388 qlt_i_dmem_free(qlt_state_t *qlt, stmf_data_buf_t *dbuf) in qlt_i_dmem_free() argument
390 qlt_dmem_free(0, dbuf); in qlt_i_dmem_free()
395 qlt_dmem_free(fct_dbuf_store_t *fds, stmf_data_buf_t *dbuf) in qlt_dmem_free() argument
400 ASSERT((dbuf->db_flags & DB_LU_DATA_BUF) == 0); in qlt_dmem_free()
402 bctl = (qlt_dmem_bctl_t *)dbuf->db_port_private; in qlt_dmem_free()
412 qlt_dmem_dma_sync(stmf_data_buf_t *dbuf, uint_t sync_type) in qlt_dmem_dma_sync() argument
420 if (dbuf->db_flags & DB_LU_DATA_BUF) { in qlt_dmem_dma_sync()
424 qsgl = (qlt_dma_sgl_t *)dbuf->db_port_private; in qlt_dmem_dma_sync()
435 bctl = (qlt_dmem_bctl_t *)dbuf->db_port_private; in qlt_dmem_dma_sync()
439 dbuf->db_data_size, sync_type); in qlt_dmem_dma_sync()
[all …]
/titanic_41/usr/src/cmd/tar/
H A Dtar.c379 } dbuf; member
1258 if ((dblock.dbuf.typeflag != 'A') && in dorep()
1433 if (dblock.dbuf.name[0] == '\0') { /* null header = EOT */ in endtape()
1459 if (dblock.dbuf.name[0] == '\0') in getdir()
1462 (void) sscanf(dblock.dbuf.mode, "%8lo", &Gen.g_mode); in getdir()
1463 (void) sscanf(dblock.dbuf.uid, "%8lo", (ulong_t *)&Gen.g_uid); in getdir()
1464 (void) sscanf(dblock.dbuf.gid, "%8lo", (ulong_t *)&Gen.g_gid); in getdir()
1465 (void) sscanf(dblock.dbuf.size, "%12" FMT_off_t_o, &Gen.g_filesz); in getdir()
1466 (void) sscanf(dblock.dbuf.mtime, "%12lo", (ulong_t *)&Gen.g_mtime); in getdir()
1467 (void) sscanf(dblock.dbuf.chksum, "%8o", &Gen.g_cksum); in getdir()
[all …]
/titanic_41/usr/src/uts/common/io/comstar/port/fcoet/
H A Dfcoet.c113 static void fcoet_dbuf_free(fct_dbuf_store_t *fds, stmf_data_buf_t *dbuf);
884 stmf_data_buf_t *dbuf; in fcoet_dbuf_alloc() local
906 dbuf = stmf_alloc(STMF_STRUCT_DATA_BUF, add_size, 0); in fcoet_dbuf_alloc()
907 if (dbuf == NULL) { in fcoet_dbuf_alloc()
910 dbuf->db_buf_size = size; in fcoet_dbuf_alloc()
911 dbuf->db_data_size = size; in fcoet_dbuf_alloc()
912 dbuf->db_sglist_length = 0; in fcoet_dbuf_alloc()
913 dbuf->db_flags |= DB_DONT_REUSE; in fcoet_dbuf_alloc()
914 FCOET_SET_SEG_NUM(dbuf, sge_num); in fcoet_dbuf_alloc()
927 FCOET_GET_NETB(dbuf, ii)); in fcoet_dbuf_alloc()
[all …]
H A Dfcoet_eth.c514 stmf_data_buf_t *dbuf; in fcoet_process_sol_fcp_data() local
528 dbuf = xch->xch_dbufs[data_offset/FCOET_MAX_DBUF_LEN]; in fcoet_process_sol_fcp_data()
529 ASSERT(dbuf); in fcoet_process_sol_fcp_data()
534 ASSERT(((sge_idx < FCOET_GET_SEG_NUM(dbuf) - 1) && in fcoet_process_sol_fcp_data()
536 ((sge_idx == FCOET_GET_SEG_NUM(dbuf) - 1) && in fcoet_process_sol_fcp_data()
538 dbuf->db_data_size % ss->ss_fcp_data_payload_size))); in fcoet_process_sol_fcp_data()
540 bcopy(frm->frm_payload, dbuf->db_sglist[sge_idx].seg_addr, in fcoet_process_sol_fcp_data()
542 atomic_add_16(&dbuf->db_sglist_length, 1); in fcoet_process_sol_fcp_data()
546 dbuf->db_sglist_length >= FCOET_GET_SEG_NUM(dbuf)) { in fcoet_process_sol_fcp_data()
549 dbuf->db_xfer_status = fc_st; in fcoet_process_sol_fcp_data()
[all …]
/titanic_41/usr/src/uts/common/sys/fibre-channel/fca/oce/
H A Doce_buf.h87 oce_dma_buf_t *dbuf; /* dma buffer */ member
162 (void*)(((type *)DBUF_VA(ring->dbuf)) + ring->cidx)
165 (uint64_t)(((type *)DBUF_PA(ring->dbuf)) + ring->cidx)
168 (void *)(((type *)DBUF_VA(ring->dbuf)) + ring->pidx)
171 (uint64_t)(((type *)DBUF_PA(ring->dbuf)) + ring->pidx)
187 void oce_page_list(oce_dma_buf_t *dbuf,
/titanic_41/usr/src/uts/common/io/comstar/stmf/
H A Dstmf.c97 task_audit_event_t te, uint32_t cmd_or_iof, stmf_data_buf_t *dbuf);
116 void stmf_xd_to_dbuf(stmf_data_buf_t *dbuf, int set_rel_off);
159 stmf_data_buf_t *dbuf);
161 stmf_data_buf_t *dbuf);
1791 stmf_data_buf_t *dbuf; in stmf_ic_rx_scsi_data() local
1824 dbuf = itask->itask_proxy_dbuf; in stmf_ic_rx_scsi_data()
1855 if (dbuf == NULL) in stmf_ic_rx_scsi_data()
1856 dbuf = stmf_alloc_dbuf(task, sz, &minsz, 0); in stmf_ic_rx_scsi_data()
1857 if (dbuf == NULL) { in stmf_ic_rx_scsi_data()
1863 dbuf->db_lu_private = xd; in stmf_ic_rx_scsi_data()
[all …]
/titanic_41/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_dtime.c145 char dbuf[26]; in unctime() local
151 (void) strlcpy(dbuf, str, sizeof (dbuf) - 1); in unctime()
152 dbuf[sizeof (dbuf) - 1] = '\0'; in unctime()
153 dbuf[E_MONTH+3] = '\0'; in unctime()
154 if ((then.tm_mon = lookup(&dbuf[E_MONTH])) < 0) in unctime()
157 then.tm_mday = atoi(&dbuf[E_DAY]); in unctime()
158 then.tm_hour = atoi(&dbuf[E_HOUR]); in unctime()
159 then.tm_min = atoi(&dbuf[E_MINUTE]); in unctime()
160 then.tm_sec = atoi(&dbuf[E_SECOND]); in unctime()
161 then.tm_year = atoi(&dbuf[E_YEAR]) - 1900; in unctime()
/titanic_41/usr/src/uts/common/sys/
H A Dportif.h45 struct stmf_dbuf_store *ds, stmf_data_buf_t *dbuf);
48 stmf_data_buf_t *dbuf, uint32_t flags);
51 struct stmf_dbuf_store *ds, stmf_data_buf_t *dbuf);
68 struct stmf_data_buf *dbuf, uint32_t ioflags);
H A Dstmf.h366 void stmf_post_task(scsi_task_t *task, stmf_data_buf_t *dbuf);
369 void stmf_free_dbuf(scsi_task_t *task, stmf_data_buf_t *dbuf);
370 stmf_status_t stmf_setup_dbuf(scsi_task_t *task, stmf_data_buf_t *dbuf,
372 void stmf_teardown_dbuf(scsi_task_t *task, stmf_data_buf_t *dbuf);
373 stmf_status_t stmf_xfer_data(scsi_task_t *task, stmf_data_buf_t *dbuf,
376 void stmf_data_xfer_done(scsi_task_t *task, stmf_data_buf_t *dbuf,
408 void stmf_scsilib_handle_report_tpgs(scsi_task_t *task, stmf_data_buf_t *dbuf);
/titanic_41/usr/src/cmd/ttymon/
H A Dtmttydefs.c71 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] = '-';
/titanic_41/usr/src/uts/common/io/comstar/port/pppt/
H A Dpppt.c127 static void pppt_dbuf_free(stmf_dbuf_store_t *ds, stmf_data_buf_t *dbuf);
635 pppt_dbuf_free(stmf_dbuf_store_t *ds, stmf_data_buf_t *dbuf) in pppt_dbuf_free() argument
637 pppt_buf_t *pbuf = dbuf->db_port_private; in pppt_dbuf_free()
642 kmem_free(dbuf->db_sglist[0].seg_addr, in pppt_dbuf_free()
643 dbuf->db_sglist[0].seg_length); in pppt_dbuf_free()
644 stmf_free(dbuf); in pppt_dbuf_free()
650 pppt_lport_xfer_data(scsi_task_t *task, stmf_data_buf_t *dbuf, in pppt_lport_xfer_data() argument
654 pppt_buf_t *pbuf = dbuf->db_port_private; in pppt_lport_xfer_data()
670 if (dbuf->db_flags & DB_DIRECTION_TO_RPORT) { in pppt_lport_xfer_data()
677 dbuf->db_sglist[0].seg_length, in pppt_lport_xfer_data()
[all …]
/titanic_41/usr/src/lib/libipp/
H A Dlibipp.c704 char *dbuf = NULL; in dispatch() local
782 dbuf = cbuf; in dispatch()
796 if ((dbuf = realloc(dbuf, nextbuflen)) == NULL) { in dispatch()
808 iioc.ii_buf = dbuf; in dispatch()
834 if ((rc = nvlist_unpack(dbuf, dbuflen, &dnvlp, 0)) != 0) { in dispatch()
865 free(dbuf); in dispatch()
884 free(dbuf); in dispatch()
912 if (dbuf != NULL) in dispatch()
913 free(dbuf); in dispatch()

12345