Home
last modified time | relevance | path

Searched refs:dr (Results 1 – 25 of 86) sorted by relevance

1234

/illumos-gate/usr/src/lib/libtecla/common/
H A Ddireader.c96 if(!dr) { in _new_DirReader()
116 if(!dr->err) in _new_DirReader()
118 return dr; in _new_DirReader()
131 if(dr) { in _del_DirReader()
136 dr->err = _del_ErrMsg(dr->err); in _del_DirReader()
137 free(dr); in _del_DirReader()
211 if(size > dr->buffer_dim || !dr->buffer) { in _dr_open_dir()
246 if(dr && dr->dir) { in _dr_close_dir()
268 if(dr->dir) { in _dr_next_file()
273 if(readdir_r(dr->dir, dr->buffer, &dr->file) == 0 && dr->file) in _dr_next_file()
[all …]
H A Ddireader.h40 DirReader *_del_DirReader(DirReader *dr);
42 int _dr_open_dir(DirReader *dr, const char *pathname, char **errmsg);
43 char *_dr_next_file(DirReader *dr);
44 void _dr_close_dir(DirReader *dr);
H A Dexpand.c68 DirReader *dr; /* The directory reader object */ member
122 static int ef_match_relative_pathname(ExpandFile *ef, DirReader *dr,
251 dnode->dr = _del_DirReader(dnode->dr); in del_ExpandFile()
450 if(ef_match_relative_pathname(ef, dnode->dr, path, 0)) { in ef_expand_file()
523 while((file=_dr_next_file(dr)) != NULL) { in ef_match_relative_pathname()
565 if(ef_match_relative_pathname(ef, subdnode->dr, in ef_match_relative_pathname()
706 node->dr = NULL; in ef_open_dir()
710 node->dr = _new_DirReader(); in ef_open_dir()
711 if(!node->dr) { in ef_open_dir()
734 if(_dr_open_dir(node->dr, pathname, &errmsg)) { in ef_open_dir()
[all …]
H A Dcplfile.c82 DirReader *dr; /* A directory reader */ member
144 cf->dr = NULL; in _new_CompleteFile()
159 cf->dr = _new_DirReader(); in _new_CompleteFile()
160 if(!cf->dr) in _new_CompleteFile()
195 cf->dr = _del_DirReader(cf->dr); in _del_CompleteFile()
662 if(_dr_open_dir(cf->dr, dirpath, NULL)) { in cf_complete_entry()
683 while((file_name = _dr_next_file(cf->dr)) != NULL && !waserr) { in cf_complete_entry()
747 _dr_close_dir(cf->dr); in cf_complete_entry()
H A Dpcache.c161 DirReader *dr; /* A portable directory reader */ member
291 pc->dr = NULL; in new_PathCache()
335 pc->dr = _new_DirReader(); in new_PathCache()
336 if(!pc->dr) in new_PathCache()
397 pc->dr = _del_DirReader(pc->dr); in del_PathCache()
896 if(_dr_open_dir(pc->dr, dirname, NULL)) in pca_scan_dir()
901 while((filename = _dr_next_file(pc->dr))) { in pca_scan_dir()
1398 if(_dr_open_dir(pc->dr, FS_PWD, NULL)) in CPL_MATCH_FN()
1404 while((filename = _dr_next_file(pc->dr))) { in CPL_MATCH_FN()
1425 _dr_close_dir(pc->dr); in CPL_MATCH_FN()
/illumos-gate/usr/src/lib/libc/port/fp/
H A Dfconvert.c38 decimal_record dr; in fconvert() local
56 *sign = dr.sign; in fconvert()
60 *decpt = dr.exponent + dr.ndigits; in fconvert()
62 buf[i] = dr.ds[i]; in fconvert()
68 while (i < dr.ndigits + dr.exponent + ndigits) in fconvert()
92 decimal_record dr; in sfconvert() local
110 *sign = dr.sign; in sfconvert()
114 *decpt = dr.exponent + dr.ndigits; in sfconvert()
122 while (i < dr.ndigits + dr.exponent + ndigits) in sfconvert()
170 *sign = dr.sign; in qfconvert()
[all …]
H A Deconvert.c59 decimal_record dr; in econvert() local
77 *sign = dr.sign; in econvert()
78 switch (dr.fpclass) { in econvert()
83 buf[i] = dr.ds[i]; in econvert()
104 decimal_record dr; in seconvert() local
122 *sign = dr.sign; in seconvert()
123 switch (dr.fpclass) { in seconvert()
128 buf[i] = dr.ds[i]; in seconvert()
149 decimal_record dr; in qeconvert() local
173 *sign = dr.sign; in qeconvert()
[all …]
H A Dgconvert.c131 decimal_record dr; in gconvert() local
149 double_to_decimal(&number, &dm, &dr, &fef); in gconvert()
150 __k_gconvert(ndigits, &dr, trailing, buf); in gconvert()
158 decimal_record dr; in sgconvert() local
176 single_to_decimal(number, &dm, &dr, &fef); in sgconvert()
177 __k_gconvert(ndigits, &dr, trailing, buf); in sgconvert()
185 decimal_record dr; in qgconvert() local
204 quadruple_to_decimal(number, &dm, &dr, &fef); in qgconvert()
206 extended_to_decimal((extended *)number, &dm, &dr, &fef); in qgconvert()
210 __k_gconvert(ndigits, &dr, trailing, buf); in qgconvert()
/illumos-gate/usr/src/uts/common/rpc/
H A Dsvc_cots.c730 #define DRHASH(dr) XIDHASH((dr)->dr_xid) argument
799 *drpp = dr; in svc_cots_kdup()
808 dr = dr->dr_chain; in svc_cots_kdup()
816 dr = kmem_alloc(sizeof (*dr), KM_NOSLEEP); in svc_cots_kdup()
829 dr->dr_next = dr; in svc_cots_kdup()
835 dr = dr->dr_next; in svc_cots_kdup()
842 unhash(dr); in svc_cots_kdup()
844 (*dr->dr_resfree)(dr->dr_resp.buf); in svc_cots_kdup()
856 kmem_free(dr->dr_addr.buf, dr->dr_addr.maxlen); in svc_cots_kdup()
870 kmem_free(dr->dr_resp.buf, dr->dr_resp.maxlen); in svc_cots_kdup()
[all …]
H A Dsvc_clts.c764 #define DRHASH(dr) XIDHASH((dr)->dr_xid) argument
836 dr = dr->dr_chain; in svc_clts_kdup()
844 dr = kmem_alloc(sizeof (*dr), KM_NOSLEEP); in svc_clts_kdup()
857 dr->dr_next = dr; in svc_clts_kdup()
863 dr = dr->dr_next; in svc_clts_kdup()
872 (*dr->dr_resfree)(dr->dr_resp.buf); in svc_clts_kdup()
876 drmru = dr; in svc_clts_kdup()
884 kmem_free(dr->dr_addr.buf, dr->dr_addr.maxlen); in svc_clts_kdup()
886 dr->dr_addr.buf = kmem_alloc(dr->dr_addr.maxlen, in svc_clts_kdup()
899 kmem_free(dr->dr_resp.buf, dr->dr_resp.maxlen); in svc_clts_kdup()
[all …]
H A Dsvc_rdma.c1156 #define DRHASH(dr) XIDHASH((dr)->dr_xid) argument
1211 *drpp = dr; in svc_rdma_kdup()
1217 dr = dr->dr_chain; in svc_rdma_kdup()
1225 dr = kmem_alloc(sizeof (*dr), KM_NOSLEEP); in svc_rdma_kdup()
1238 dr->dr_next = dr; in svc_rdma_kdup()
1244 dr = dr->dr_next; in svc_rdma_kdup()
1250 unhash(dr); in svc_rdma_kdup()
1252 (*dr->dr_resfree)(dr->dr_resp.buf); in svc_rdma_kdup()
1264 kmem_free(dr->dr_addr.buf, dr->dr_addr.maxlen); in svc_rdma_kdup()
1278 kmem_free(dr->dr_resp.buf, dr->dr_resp.maxlen); in svc_rdma_kdup()
[all …]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dsvc.c1874 dr = dr->dr_chain; in __svc_dupcache_check()
2111 dr->dr_next = dr; in __svc_dupcache_update()
2112 dr->dr_prev = dr; in __svc_dupcache_update()
2124 dr = dr->dr_chain; in __svc_dupcache_update()
2156 dr->dr_xid, dr->dr_status, dr->dr_time); in __svc_dupcache_debug()
2158 dr, dr->dr_chain, dr->dr_prevchain); in __svc_dupcache_debug()
2159 dr = dr->dr_chain; in __svc_dupcache_debug()
2170 dr, dr->dr_next, dr->dr_prev); in __svc_dupcache_debug()
2171 dr = dr->dr_next; in __svc_dupcache_debug()
2174 dr->dr_xid, dr->dr_status, dr->dr_time); in __svc_dupcache_debug()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dstrtod.c47 decimal_record dr; in strtod() local
67 __hex_to_double(&dr, mr.rd, &x, &fs); in strtod()
69 decimal_to_double(&x, &mr, &dr, &fs); in strtod()
80 decimal_record dr; in strtof() local
98 __hex_to_single(&dr, mr.rd, &x, &fs); in strtof()
100 decimal_to_single(&x, &mr, &dr, &fs); in strtof()
111 decimal_record dr; in strtold() local
124 __hex_to_quadruple(&dr, mr.rd, &x, &fs); in strtold()
126 decimal_to_quadruple(&x, &mr, &dr, &fs); in strtold()
130 __hex_to_extended(&dr, mr.rd, (extended *)&x, &fs); in strtold()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddbuf.c754 for (dr = db->db_data_pending; dr != NULL; dr = dr->dr_next) in dbuf_verify()
757 for (dr = db->db_last_dirty; dr != NULL; dr = dr->dr_next) in dbuf_verify()
1769 if (dr && dr->dr_txg == tx->tx_txg) { in dbuf_dirty()
1852 *drp = dr; in dbuf_dirty()
2009 if (dr == NULL || dr->dr_txg < txg) in dbuf_undirty()
2085 dr != NULL && dr->dr_txg >= tx->tx_txg; dr = dr->dr_next) { in dmu_buf_will_dirty_impl()
2167 while (dr != NULL && dr->dr_txg > tx->tx_txg) in dmu_buf_set_crypt_params()
2168 dr = dr->dr_next; in dmu_buf_set_crypt_params()
2286 if (dr != NULL && dr->dr_txg == tx->tx_txg) { in dbuf_assign_arcbuf()
3444 dr->dt.dl.dr_salt, dr->dt.dl.dr_iv, dr->dt.dl.dr_mac); in dbuf_prepare_encrypted_dnode_leaf()
[all …]
H A Ddnode_sync.c198 dbuf_dirty_record_t *dr; in free_verify() local
211 dr = child->db_last_dirty; in free_verify()
212 while (dr && dr->dr_txg > txg) in free_verify()
213 dr = dr->dr_next; in free_verify()
214 ASSERT(dr == NULL || dr->dr_txg == txg); in free_verify()
217 if (dr) { in free_verify()
528 dbuf_dirty_record_t *dr; in dnode_undirty_dbufs() local
530 while (dr = list_head(list)) { in dnode_undirty_dbufs()
532 uint64_t txg = dr->dr_txg; in dnode_undirty_dbufs()
539 list_remove(list, dr); in dnode_undirty_dbufs()
[all …]
/illumos-gate/usr/src/cmd/pcidr/plugins/default/
H A Dpcidr_plugin.c57 pcidr_attrs_t dr; in PCIDR_PLUGIN_PROTO() local
61 if (pcidr_get_attrs(attrlistp, &dr) != 0 || in PCIDR_PLUGIN_PROTO()
62 pcidr_check_attrs(&dr) != 0) { in PCIDR_PLUGIN_PROTO()
71 rv = config_list_ext(1, &dr.dr_ap_id, &cfga_listp, &cfga_list_len, in PCIDR_PLUGIN_PROTO()
78 "failed: rv = %d (%s)", fn, dr.dr_ap_id, rv, str); in PCIDR_PLUGIN_PROTO()
91 "found for the APID \"%s\"\n", fn, dr.dr_ap_id); in PCIDR_PLUGIN_PROTO()
100 "matching \"%s\"\n", fn, dr.dr_ap_id); in PCIDR_PLUGIN_PROTO()
107 if (strcmp(dr.dr_req_type, DR_REQ_OUTGOING_RES) == 0) { in PCIDR_PLUGIN_PROTO()
121 if (strcmp(dr.dr_req_type, DR_REQ_INCOMING_RES) == 0) { in PCIDR_PLUGIN_PROTO()
136 dprint(DWARN, "%s: invalid dr_req_type = %s\n", fn, dr.dr_req_type); in PCIDR_PLUGIN_PROTO()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dtables.c629 for (dr = pi->pi_router_list; dr != NULL; dr = dr->dr_next) in phyint_print()
2069 for (dr = pi->pi_router_list; dr != NULL; dr = dr->dr_next) { in router_lookup()
2072 return (dr); in router_lookup()
2103 return (dr); in router_create()
2143 dr->dr_prev->dr_next = dr->dr_next; in router_delete()
2146 dr->dr_next->dr_prev = dr->dr_prev; in router_delete()
2147 dr->dr_next = dr->dr_prev = NULL; in router_delete()
2148 free(dr); in router_delete()
2166 if (dr->dr_lifetime == 0 && dr->dr_inkernel) { in router_update_k()
2175 } else if (dr->dr_lifetime != 0 && !dr->dr_inkernel) in router_update_k()
[all …]
/illumos-gate/usr/src/lib/libidmap/common/
H A Ddirectory_client.c53 static void directory_results_free(directory_results_rpc *dr);
133 directory_results_rpc dr; in directory_get_v() local
156 (void) memset(&dr, 0, sizeof (dr)); in directory_get_v()
167 if (dr.failed) { in directory_get_v()
169 &dr.directory_results_rpc_u.err); in directory_get_v()
173 assert(dr.directory_results_rpc_u.entries.entries_len == nids); in directory_get_v()
175 users = dr.directory_results_rpc_u.entries.entries_val; in directory_get_v()
185 directory_results_free(&dr); in directory_get_v()
191 directory_results_free(&dr); in directory_get_v()
363 directory_results_free(directory_results_rpc *dr) in directory_results_free() argument
[all …]
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dwstod.c59 decimal_record dr; in wcstod() local
76 __hex_to_double(&dr, mr.rd, &x, &fs); in wcstod()
78 decimal_to_double(&x, &mr, &dr, &fs); in wcstod()
89 decimal_record dr; in wcstof() local
93 wstring_to_decimal(&cp, 1, &dr, &form); in wcstof()
106 __hex_to_single(&dr, mr.rd, &x, &fs); in wcstof()
108 decimal_to_single(&x, &mr, &dr, &fs); in wcstof()
119 decimal_record dr; in wcstold() local
123 wstring_to_decimal(&cp, 1, &dr, &form); in wcstold()
137 __hex_to_quadruple(&dr, mr.rd, &x, &fs); in wcstold()
[all …]
/illumos-gate/usr/src/lib/libm/common/complex/
H A Dcpowf.c57 double dx, dy, du, dv, dt, dc, ds, dp, dq, dr; in cpowf() local
113 dr = pow(dsqrt2 * dx, du); in cpowf()
115 F_RE(ans) = (float)(dr * dc); in cpowf()
116 F_IM(ans) = (float)(dr * ds); in cpowf()
159 dr = exp(du * dt); in cpowf()
162 dr = exp(du * dt - dv * dp * dpi); in cpowf()
166 F_RE(ans) = (float)(dr * dc); in cpowf()
167 F_IM(ans) = (float)(dr * ds); in cpowf()
/illumos-gate/usr/src/uts/common/io/iwi/
H A Dipw2200_hw.c371 struct dma_region dr[MAX_DR_NUM]; /* maximal, 64 * 4KB = 256KB */ in ipw2200_load_fw() local
385 err = ipw2200_dma_region_alloc(sc, &dr[cnt], MAX_DR_SIZE, DDI_DMA_READ, in ipw2200_load_fw()
390 src = dr[cnt].dr_pbase; in ipw2200_load_fw()
406 if (off == dr[cnt].dr_size) { in ipw2200_load_fw()
416 err = ipw2200_dma_region_alloc(sc, &dr[cnt], in ipw2200_load_fw()
424 src = dr[cnt].dr_pbase; in ipw2200_load_fw()
427 mlen = min(mlen, dr[cnt].dr_size - off); in ipw2200_load_fw()
429 (void) memcpy(dr[cnt].dr_base + off, v, mlen); in ipw2200_load_fw()
430 (void) ddi_dma_sync(dr[cnt].dr_hnd, off, mlen, in ipw2200_load_fw()
514 ipw2200_dma_region_free(&dr[i]); in ipw2200_load_fw()
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dcompat-solaris.c13 decimal_record dr; in string_to_ld() local
20 &dr, &form, &echar); in string_to_ld()
29 decimal_to_quadruple (&res, &dm, &dr, &excp); in string_to_ld()
/illumos-gate/usr/src/uts/common/io/ral/
H A Drt2560.c524 &dr->dr_hnd); in ral_dma_region_alloc()
530 &dr->dr_base, &dr->dr_size, &dr->dr_acc); in ral_dma_region_alloc()
535 dr->dr_base, dr->dr_size, in ral_dma_region_alloc()
536 bind_flags, DDI_DMA_SLEEP, NULL, &dr->dr_cookie, &dr->dr_ccnt); in ral_dma_region_alloc()
540 if (dr->dr_ccnt != 1) { in ral_dma_region_alloc()
545 dr->dr_pbase = dr->dr_cookie.dmac_address; in ral_dma_region_alloc()
1021 struct dma_region *dr; in rt2560_tx_intr() local
1024 dr = &sc->txq.dr_desc; in rt2560_tx_intr()
1107 struct dma_region *dr; in rt2560_prio_intr() local
1189 dr = &sc->rxq.dr_desc; in rt2560_rx_intr()
[all …]
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_diff.c352 for (o = dr->ddr_first; o <= dr->ddr_last; o++) { in write_inuse_diffs()
387 zc.zc_obj = dr->ddr_first - 1; in write_free_diffs()
391 while (zc.zc_obj < dr->ddr_last) { in write_free_diffs()
400 if (zc.zc_obj > dr->ddr_last) { in write_free_diffs()
427 dmu_diff_record_t dr; in differ() local
439 char *cp = (char *)&dr; in differ()
440 int len = sizeof (dr); in differ()
449 if (rv < 0 || (rv == 0 && len != sizeof (dr))) { in differ()
457 switch (dr.ddr_type) { in differ()
459 err = write_free_diffs(ofp, di, &dr); in differ()
[all …]
/illumos-gate/usr/src/uts/common/io/ipw/
H A Dipw2100.c1388 dr->dr_name, size)); in ipw2100_dma_region_alloc()
1391 &dr->dr_hnd); in ipw2100_dma_region_alloc()
1401 &dr->dr_size, &dr->dr_acc); in ipw2100_dma_region_alloc()
1410 dr->dr_base, dr->dr_size, dir | flags, DDI_DMA_SLEEP, NULL, in ipw2100_dma_region_alloc()
1411 &dr->dr_cookie, &dr->dr_ccnt); in ipw2100_dma_region_alloc()
1419 if (dr->dr_ccnt != 1) { in ipw2100_dma_region_alloc()
1423 dr->dr_pbase = dr->dr_cookie.dmac_address; in ipw2100_dma_region_alloc()
1427 dr->dr_pbase)); in ipw2100_dma_region_alloc()
2031 struct dma_region *dr; in ipw2100_send() local
2673 struct dma_region *dr; in ipw2100_intr() local
[all …]

1234