Home
last modified time | relevance | path

Searched refs:cd (Results 1 – 25 of 1542) sorted by relevance

12345678910>>...62

/freebsd/sys/dev/dpaa2/
H A Ddpaa2_console.c159 dpaa2_cons_read_bs(struct dpaa2_cons_dev *cd, size_t offset, void *dst, size_t len) in dpaa2_cons_read_bs() argument
168 bus_space_read_region_1(cd->bst, cd->bsh, offset + count, p + count, l); in dpaa2_cons_read_bs()
175 bus_space_read_region_8(cd->bst, cd->bsh, offset + count, (uint64_t *)(p + count), l); in dpaa2_cons_read_bs()
182 bus_space_read_region_4(cd->bst, cd->bsh, offset + count, (uint32_t *)(p + count), l); in dpaa2_cons_read_bs()
189 bus_space_read_region_2(cd->bst, cd->bsh, offset + count, (uint16_t *)(p + count), l); in dpaa2_cons_read_bs()
195 bus_space_read_region_1(cd->bst, cd->bsh, offset + count, p + count, len); in dpaa2_cons_read_bs()
205 struct dpaa2_cons_dev *cd; in dpaa2_cons_open() local
213 cd = cdev->si_drv1; in dpaa2_cons_open()
214 if (cd->size == 0) in dpaa2_cons_open()
217 mtx_lock(&cd->mtx); in dpaa2_cons_open()
[all …]
/freebsd/tools/test/iconv/gnu/
H A Dgnu.c53 iconv_t cd; in ctl_get_translit1() local
56 cd = iconv_open("ASCII//TRANSLIT", "UTF-8"); in ctl_get_translit1()
57 if (cd == (iconv_t)-1) in ctl_get_translit1()
59 if (iconvctl(cd, ICONV_GET_TRANSLITERATE, &arg) == 0) in ctl_get_translit1()
63 if (iconv_close(cd) == -1) in ctl_get_translit1()
71 iconv_t cd; in ctl_get_translit2() local
74 cd = iconv_open("ASCII", "UTF-8"); in ctl_get_translit2()
75 if (cd == (iconv_t)-1) in ctl_get_translit2()
77 if (iconvctl(cd, ICONV_GET_TRANSLITERATE, &arg) == 0) in ctl_get_translit2()
81 if (iconv_close(cd) == -1) in ctl_get_translit2()
[all …]
/freebsd/cddl/contrib/opensolaris/common/ctf/
H A Dctf_decl.c54 ctf_decl_init(ctf_decl_t *cd, char *buf, size_t len) in ctf_decl_init() argument
58 bzero(cd, sizeof (ctf_decl_t)); in ctf_decl_init()
61 cd->cd_order[i] = CTF_PREC_BASE - 1; in ctf_decl_init()
63 cd->cd_qualp = CTF_PREC_BASE; in ctf_decl_init()
64 cd->cd_ordp = CTF_PREC_BASE; in ctf_decl_init()
66 cd->cd_buf = buf; in ctf_decl_init()
67 cd->cd_ptr = buf; in ctf_decl_init()
68 cd->cd_end = buf + len; in ctf_decl_init()
72 ctf_decl_fini(ctf_decl_t *cd) in ctf_decl_fini() argument
78 for (cdp = ctf_list_next(&cd->cd_nodes[i]); in ctf_decl_fini()
[all …]
/freebsd/cddl/contrib/opensolaris/tools/ctf/dump/
H A Ddump.c112 ref_to_str(uint_t name, const ctf_header_t *hp, const ctf_data_t *cd) in ref_to_str() argument
115 const char *s = cd->cd_ctfdata + hp->cth_stroff + offset; in ref_to_str()
123 if (hp->cth_stroff + offset >= cd->cd_ctflen) in ref_to_str()
183 print_header(const ctf_header_t *hp, const ctf_data_t *cd) in print_header() argument
191 ref_to_str(hp->cth_parlabel, hp, cd)); in print_header()
193 ref_to_str(hp->cth_parname, hp, cd)); in print_header()
205 print_labeltable(const ctf_header_t *hp, const ctf_data_t *cd) in print_labeltable() argument
207 void *v = (void *) (cd->cd_ctfdata + hp->cth_lbloff); in print_labeltable()
215 if (hp->cth_lbloff >= cd->cd_ctflen) in print_labeltable()
217 if (hp->cth_objtoff >= cd->cd_ctflen) in print_labeltable()
[all …]
/freebsd/sys/contrib/dev/athk/
H A Ddfs_pattern_detector.c169 struct channel_detector *cd) in channel_detector_reset() argument
172 if (cd == NULL) in channel_detector_reset()
175 cd->detectors[i]->reset(cd->detectors[i], dpd->last_pulse_ts); in channel_detector_reset()
180 struct channel_detector *cd) in channel_detector_exit() argument
183 if (cd == NULL) in channel_detector_exit()
185 list_del(&cd->head); in channel_detector_exit()
186 if (cd->detectors) { in channel_detector_exit()
188 struct pri_detector *de = cd->detectors[i]; in channel_detector_exit()
193 kfree(cd->detectors); in channel_detector_exit()
194 kfree(cd); in channel_detector_exit()
[all …]
/freebsd/tools/test/iconv/posix/
H A Dposix.c44 iconv_t cd; in open_1() local
47 cd = iconv_open("nonexisting", "foobar"); in open_1()
49 if ((cd == (iconv_t)-1) && (errno == EINVAL)) in open_1()
52 iconv_close(cd); in open_1()
65 iconv_t cd[MAX_LIMIT]; in open_2() local
72 cd[i] = iconv_open("ASCII", "UTF8"); in open_2()
73 if (cd[i] == (iconv_t)-1) { in open_2()
76 cd[i] = NULL; in open_2()
81 for (i = MIN(i, nitems(cd) - 1); i > 0; i--) in open_2()
82 iconv_close(cd[i]); in open_2()
[all …]
/freebsd/sys/rpc/
H A Dsvc_vc.c263 struct cf_conn *cd; in svc_vc_create_conn() local
292 cd = mem_alloc(sizeof(*cd)); in svc_vc_create_conn()
293 cd->strm_stat = XPRT_IDLE; in svc_vc_create_conn()
299 xprt->xp_p1 = cd; in svc_vc_create_conn()
335 mem_free(cd, sizeof(*cd)); in svc_vc_create_conn()
347 struct cf_conn *cd = NULL; in svc_vc_create_backchannel() local
349 cd = mem_alloc(sizeof(*cd)); in svc_vc_create_backchannel()
350 cd->strm_stat = XPRT_IDLE; in svc_vc_create_backchannel()
356 xprt->xp_p1 = cd; in svc_vc_create_backchannel()
537 struct cf_conn *cd = (struct cf_conn *)xprt->xp_p1; in svc_vc_destroy() local
[all …]
/freebsd/sys/dev/uart/
H A Duart_bus_acpi.c64 struct acpi_uart_compat_data **cd, *cd_it; in uart_acpi_find_device() local
70 SET_FOREACH(cd, uart_acpi_class_and_device_set) { in uart_acpi_find_device()
71 for (cd_it = *cd; cd_it->cd_hid != NULL; cd_it++) { in uart_acpi_find_device()
83 struct acpi_uart_compat_data *cd; in uart_acpi_probe() local
91 cd = uart_acpi_find_device(dev); in uart_acpi_probe()
92 if (cd == NULL) in uart_acpi_probe()
95 sc->sc_class = cd->cd_class; in uart_acpi_probe()
96 if (cd->cd_desc != NULL) in uart_acpi_probe()
97 device_set_desc(dev, cd->cd_desc); in uart_acpi_probe()
102 rclk = cd->cd_rclk; in uart_acpi_probe()
[all …]
H A Duart_cpu_acpi.c50 struct acpi_uart_compat_data **cd, *curcd; in uart_cpu_acpi_scan() local
53 SET_FOREACH(cd, uart_acpi_class_and_device_set) { in uart_cpu_acpi_scan()
54 curcd = *cd; in uart_cpu_acpi_scan()
61 SET_FOREACH(cd, uart_acpi_class_set) { in uart_cpu_acpi_scan()
62 curcd = *cd; in uart_cpu_acpi_scan()
146 struct acpi_uart_compat_data *cd; in uart_cpu_acpi_spcr() local
161 cd = uart_cpu_acpi_scan(spcr->InterfaceType); in uart_cpu_acpi_spcr()
162 if (cd == NULL) in uart_cpu_acpi_spcr()
164 class = cd->cd_class; in uart_cpu_acpi_spcr()
225 if ((cd->cd_quirks & UART_F_IGNORE_SPCR_REGSHFT) == in uart_cpu_acpi_spcr()
[all …]
/freebsd/lib/libc/rpc/
H A Dsvc_vc.c237 struct cf_conn *cd; in makefd_xprt() local
248 cd = mem_alloc(sizeof(struct cf_conn)); in makefd_xprt()
249 if (cd == NULL) { in makefd_xprt()
255 cd->strm_stat = XPRT_IDLE; in makefd_xprt()
256 xdrrec_create(&(cd->xdrs), sendsize, recvsize, in makefd_xprt()
258 xprt->xp_p1 = cd; in makefd_xprt()
259 xprt->xp_verf.oa_base = cd->verf_body; in makefd_xprt()
277 struct cf_conn *cd; in rendezvous_request() local
326 cd = (struct cf_conn *)newxprt->xp_p1; in rendezvous_request()
328 cd->recvsize = r->recvsize; in rendezvous_request()
[all …]
/freebsd/sys/dev/sge/
H A Dif_sge.c746 struct sge_chain_data *cd; in sge_dma_alloc() local
752 cd = &sc->sge_cdata; in sge_dma_alloc()
765 &cd->sge_tag); in sge_dma_alloc()
773 error = bus_dma_tag_create(cd->sge_tag, in sge_dma_alloc()
783 &cd->sge_rx_tag); in sge_dma_alloc()
790 error = bus_dmamem_alloc(cd->sge_rx_tag, (void **)&ld->sge_rx_ring, in sge_dma_alloc()
792 &cd->sge_rx_dmamap); in sge_dma_alloc()
798 error = bus_dmamap_load(cd->sge_rx_tag, cd->sge_rx_dmamap, in sge_dma_alloc()
807 error = bus_dma_tag_create(cd->sge_tag, in sge_dma_alloc()
817 &cd->sge_tx_tag); in sge_dma_alloc()
[all …]
/freebsd/crypto/openssl/crypto/cms/
H A Dcms_cd.c29 CMS_CompressedData *cd; in ossl_cms_CompressedData_create() local
43 cd = M_ASN1_new_of(CMS_CompressedData); in ossl_cms_CompressedData_create()
45 if (cd == NULL) in ossl_cms_CompressedData_create()
49 cms->d.compressedData = cd; in ossl_cms_CompressedData_create()
51 cd->version = 0; in ossl_cms_CompressedData_create()
53 X509_ALGOR_set0(cd->compressionAlgorithm, in ossl_cms_CompressedData_create()
56 cd->encapContentInfo->eContentType = OBJ_nid2obj(NID_pkcs7_data); in ossl_cms_CompressedData_create()
67 CMS_CompressedData *cd; in ossl_cms_CompressedData_init_bio() local
74 cd = cms->d.compressedData; in ossl_cms_CompressedData_init_bio()
75 X509_ALGOR_get0(&compoid, NULL, NULL, cd->compressionAlgorithm); in ossl_cms_CompressedData_init_bio()
/freebsd/sys/dev/usb/
H A Dusb_parse.c73 usb_desc_foreach(struct usb_config_descriptor *cd, in usb_desc_foreach() argument
82 if (cd == NULL) in usb_desc_foreach()
86 start = (uint8_t *)cd; in usb_desc_foreach()
87 end = start + UGETW(cd->wTotalLength); in usb_desc_foreach()
125 usb_idesc_foreach(struct usb_config_descriptor *cd, in usb_idesc_foreach() argument
138 usb_desc_foreach(cd, (struct usb_descriptor *)id); in usb_idesc_foreach()
198 usb_edesc_foreach(struct usb_config_descriptor *cd, in usb_edesc_foreach() argument
205 while ((desc = usb_desc_foreach(cd, desc))) { in usb_edesc_foreach()
233 usb_ed_comp_foreach(struct usb_config_descriptor *cd, in usb_ed_comp_foreach() argument
240 while ((desc = usb_desc_foreach(cd, desc))) { in usb_ed_comp_foreach()
[all …]
/freebsd/bin/sh/tests/builtins/
H A Dcd1.04 cd $P
9 # Root can always cd, regardless of directory permissions.
10 cd -L $T 2>/dev/null && exit 1
13 cd -P $T 2>/dev/null && exit 1
19 cd $T
23 (cd -L 1/../1 && [ "$(pwd -L)" = "$P/$T/1" ])
24 (cd -L link1 && [ "$(pwd -L)" = "$P/$T/link1" ])
25 (cd -L link1 && [ "$(pwd -P)" = "$P/$T/1/2" ])
26 (cd -P link1 && [ "$(pwd -L)" = "$P/$T/1/2" ])
27 (cd -P link1 && [ "$(pwd -P)" = "$P/$T/1/2" ])
H A Dcd3.02 # If fully successful, cd -Pe must be like cd -P.
6 cd "${TMPDIR:-/tmp}"
7 cd -Pe /
10 cd "${TMPDIR:-/tmp}"
11 cd -eP /
17 # If cd -Pe cannot chdir, the exit status must be greater than 1.
19 v=$( (cd -Pe /var/empty/nonexistent) 2>&1 >/dev/null)
H A Dcd7.03 cd /usr/bin
6 cd .
8 cd ./
10 cd ..
12 cd /usr/bin
13 cd ../
/freebsd/sys/dev/ice/
H A Dice_common.h85 enum ice_adminq_opc opc, struct ice_sq_cd *cd);
89 struct ice_sq_cd *cd);
93 struct ice_sq_cd *cd);
103 u32 *ret_next_index, struct ice_sq_cd *cd);
154 struct ice_sq_cd *cd);
160 u8 *txqs_moved, struct ice_sq_cd *cd);
165 u16 buf_size, struct ice_sq_cd *cd);
179 void *buf, u16 buf_size, struct ice_sq_cd *cd);
180 int ice_aq_get_fw_ver(struct ice_hw *hw, struct ice_sq_cd *cd);
184 struct ice_sq_cd *cd);
[all...]
H A Dice_dcb.h221 struct ice_sq_cd *cd);
225 struct ice_sq_cd *cd);
229 u16 *mib_len, struct ice_sq_cd *cd);
232 struct ice_sq_cd *cd);
236 struct ice_sq_cd *cd);
238 ice_aq_query_pfc_mode(struct ice_hw *hw, u8 *pfcmode_ret, struct ice_sq_cd *cd);
241 struct ice_sq_cd *cd);
243 ice_aq_set_pfc_mode(struct ice_hw *hw, u8 pfc_mode, struct ice_sq_cd *cd);
262 struct ice_sq_cd *cd);
268 struct ice_sq_cd *cd);
[all...]
/freebsd/sys/cddl/dev/fbt/
H A Dfbt.c815 ctf_decl_init(ctf_decl_t *cd, char *buf, size_t len) in ctf_decl_init() argument
819 bzero(cd, sizeof (ctf_decl_t)); in ctf_decl_init()
822 cd->cd_order[i] = CTF_PREC_BASE - 1; in ctf_decl_init()
824 cd->cd_qualp = CTF_PREC_BASE; in ctf_decl_init()
825 cd->cd_ordp = CTF_PREC_BASE; in ctf_decl_init()
827 cd->cd_buf = buf; in ctf_decl_init()
828 cd->cd_ptr = buf; in ctf_decl_init()
829 cd->cd_end = buf + len; in ctf_decl_init()
833 ctf_decl_fini(ctf_decl_t *cd) in ctf_decl_fini() argument
839 for (cdp = ctf_list_next(&cd->cd_nodes[i]); in ctf_decl_fini()
[all …]
/freebsd/contrib/bearssl/src/ec/
H A Decdsa_i31_vrfy_raw.c42 const br_ec_curve_def *cd; in br_ecdsa_i31_vrfy_raw() local
62 cd = &br_secp256r1; in br_ecdsa_i31_vrfy_raw()
65 cd = &br_secp384r1; in br_ecdsa_i31_vrfy_raw()
68 cd = &br_secp521r1; in br_ecdsa_i31_vrfy_raw()
85 if (pk->qlen != cd->generator_len) { in br_ecdsa_i31_vrfy_raw()
93 nlen = cd->order_len; in br_ecdsa_i31_vrfy_raw()
94 br_i31_decode(n, cd->order, nlen); in br_ecdsa_i31_vrfy_raw()
116 memcpy(tx, cd->order, nlen); in br_ecdsa_i31_vrfy_raw()
145 ulen = cd->generator_len; in br_ecdsa_i31_vrfy_raw()
148 tx, nlen, ty, nlen, cd->curve); in br_ecdsa_i31_vrfy_raw()
H A Decdsa_i15_vrfy_raw.c42 const br_ec_curve_def *cd; in br_ecdsa_i15_vrfy_raw() local
63 cd = &br_secp256r1; in br_ecdsa_i15_vrfy_raw()
66 cd = &br_secp384r1; in br_ecdsa_i15_vrfy_raw()
69 cd = &br_secp521r1; in br_ecdsa_i15_vrfy_raw()
86 if (pk->qlen != cd->generator_len) { in br_ecdsa_i15_vrfy_raw()
94 nlen = cd->order_len; in br_ecdsa_i15_vrfy_raw()
95 br_i15_decode(n, cd->order, nlen); in br_ecdsa_i15_vrfy_raw()
117 memcpy(tx, cd->order, nlen); in br_ecdsa_i15_vrfy_raw()
146 ulen = cd->generator_len; in br_ecdsa_i15_vrfy_raw()
149 tx, nlen, ty, nlen, cd->curve); in br_ecdsa_i15_vrfy_raw()
/freebsd/tools/test/iconv/tablegen/
H A Dtablegen.c199 iconv_t cd; in main() local
241 if ((cd = iconv_open(tocode, argv[0])) == (iconv_t)-1) in main()
244 if (iconvctl(cd, ICONV_SET_FALLBACKS, &fbs) != 0) in main()
247 do_conv(cd, false); in main()
252 if ((cd = iconv_open(tocode, "UTF-32LE")) == (iconv_t)-1) in main()
254 if (dflag && iconvctl(cd, ICONV_SET_FALLBACKS, &fbs) != 0) in main()
261 do_conv(cd, true); in main()
263 if ((cd = iconv_open("UTF-32LE//TRANSLIT", argv[0])) == (iconv_t)-1) in main()
265 if (dflag && (iconvctl(cd, ICONV_SET_FALLBACKS, &fbs) != 0)) in main()
272 do_conv(cd, false); in main()
[all …]
/freebsd/usr.bin/iconv/
H A Diconv.c72 do_conv(FILE *fp, iconv_t cd, bool silent, bool hide_invalid) in do_conv() argument
85 if (iconvctl(cd, ICONV_SET_DISCARD_ILSEQ, (void *)&arg) == -1) in do_conv()
97 ret = __iconv(cd, &in, &inbytes, &out, &outbytes, in do_conv()
129 ret = iconv(cd, NULL, NULL, &out, &outbytes); in do_conv()
159 iconv_t cd; in main() local
219 cd = iconv_open(opt_t, opt_f); in main()
220 if (cd == (iconv_t)-1) in main()
226 res = do_conv(stdin, cd, opt_s, opt_c); in main()
239 res |= do_conv(fp, cd, opt_s, opt_c); in main()
243 (void)iconv(cd, NULL, NULL, NULL, NULL); in main()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DZipFile.cpp135 auto cd = reinterpret_cast<const CdRecord *>(zip_data->GetBytes() + in FindFile() local
140 if (::memcmp(cd->signature, CdRecord::kSignature, in FindFile()
145 auto file_name = reinterpret_cast<const char *>(cd + 1); in FindFile()
146 size_t file_name_length = cd->file_name_length; in FindFile()
154 return GetFile(zip_data, cd->local_file_header_offset, file_offset, in FindFile()
158 cd = reinterpret_cast<const CdRecord *>( in FindFile()
159 reinterpret_cast<const char *>(cd) + sizeof(CdRecord) + in FindFile()
160 cd->file_name_length + cd->extra_field_length + cd->comment_length); in FindFile()
162 if (reinterpret_cast<const char *>(cd) >= in FindFile()
/freebsd/crypto/heimdal/lib/wind/
H A DNTMakefile67 cd $(OBJ)
69 cd $(SRCDIR)
72 cd $(OBJ)
74 cd $(SRCDIR)
77 cd $(OBJ)
79 cd $(SRCDIR)
82 cd $(OBJ)
84 cd $(SRCDIR)
87 cd $(OBJ)
89 cd $(SRCDIR)
[all …]

12345678910>>...62