Home
last modified time | relevance | path

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

12345678910>>...50

/freebsd/sys/dev/dpaa2/
H A Ddpaa2_console.c232 cd->start = cd->hdr_start - cd->offset; in dpaa2_cons_open()
233 cd->end = cd->start + cd->hdr_len; in dpaa2_cons_open()
241 cd->cur = cd->start; in dpaa2_cons_open()
254 cd->hdr_magic = cd->hdr_eobyte = cd->hdr_start = cd->hdr_len = 0; in dpaa2_cons_close()
276 len = (cd->end - cd->cur) + (cd->eod - cd->start); in dpaa2_cons_read()
303 cd->cur = cd->start; in dpaa2_cons_read()
355 bus_space_unmap(cd->bst, cd->bsh, cd->size); in dpaa2_cons_create_dev()
366 bus_space_unmap(cd->bst, cd->bsh, cd->size); in dpaa2_cons_create_dev()
374 bus_space_unmap(cd->bst, cd->bsh, cd->size); in dpaa2_cons_create_dev()
395 bus_space_unmap(cd->bst, cd->bsh, cd->size); in dpaa2_cons_create_dev()
[all …]
/freebsd/tools/test/iconv/gnu/
H A Dgnu.c53 iconv_t cd; in ctl_get_translit1() local
71 iconv_t cd; in ctl_get_translit2() local
89 iconv_t cd; in ctl_set_translit1() local
104 iconv_t cd; in ctl_set_translit2() local
119 iconv_t cd; in ctl_get_discard_ilseq1() local
137 iconv_t cd; in ctl_get_discard_ilseq2() local
155 iconv_t cd; in ctl_set_discard_ilseq1() local
170 iconv_t cd; in ctl_set_discard_ilseq2() local
185 iconv_t cd; in ctl_trivialp1() local
203 iconv_t cd; in ctl_trivialp2() local
[all …]
/freebsd/cddl/contrib/opensolaris/common/ctf/
H A Dctf_decl.c64 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()
135 prec = cd->cd_qualp; in ctf_decl_push()
144 cd->cd_err = EAGAIN; in ctf_decl_push()
153 cd->cd_order[prec] = cd->cd_ordp++; in ctf_decl_push()
160 cd->cd_qualp = prec; in ctf_decl_push()
177 size_t len = (size_t)(cd->cd_end - cd->cd_ptr); in ctf_decl_sprintf()
185 cd->cd_ptr += MIN(n, len); in ctf_decl_sprintf()
[all …]
/freebsd/sys/contrib/dev/athk/
H A Ddfs_pattern_detector.c172 if (cd == NULL) in channel_detector_reset()
175 cd->detectors[i]->reset(cd->detectors[i], dpd->last_pulse_ts); in channel_detector_reset()
183 if (cd == NULL) in channel_detector_exit()
185 list_del(&cd->head); in channel_detector_exit()
194 kfree(cd); in channel_detector_exit()
203 cd = kmalloc(sizeof(*cd), GFP_ATOMIC); in channel_detector_create()
204 if (cd == NULL) in channel_detector_create()
208 cd->freq = freq; in channel_detector_create()
222 return cd; in channel_detector_create()
247 return cd; in channel_detector_get()
[all …]
/freebsd/cddl/contrib/opensolaris/tools/ctf/dump/
H A Ddump.c293 if (cd->cd_symdata == NULL || (nextsym = next_sym(cd, in read_data()
300 v += cd->cd_idwidth; in read_data()
339 v += cd->cd_idwidth; in read_funcs()
348 if (cd->cd_symdata == NULL || (nextsym = next_sym(cd, symidx, in read_funcs()
374 v += cd->cd_idwidth; in read_funcs()
379 v += cd->cd_idwidth; in read_funcs()
901 ctf_data_t cd; in main() local
1007 cd.cd_ctfdata = mmap(NULL, cd.cd_ctflen, PROT_READ, in main()
1030 cd.cd_ctfdata = (caddr_t)cd.cd_ctfdata + sizeof (ctf_header_t); in main()
1074 cd.cd_ctfdata = buf; in main()
[all …]
/freebsd/tools/test/iconv/posix/
H A Dposix.c44 iconv_t cd; in open_1() local
52 iconv_close(cd); in open_1()
65 iconv_t cd[MAX_LIMIT]; in open_2() local
76 cd[i] = NULL; in open_2()
82 iconv_close(cd[i]); in open_2()
93 iconv_t cd = (iconv_t)-1; in close_1() local
101 iconv_t cd = (iconv_t)-1; in conv_ebadf() local
110 iconv_t cd; in conv_ret() local
131 iconv_t cd; in conv_2big() local
170 iconv_t cd; in conv_einval() local
[all …]
/freebsd/sys/rpc/
H A Dsvc_vc.c292 cd = mem_alloc(sizeof(*cd)); in svc_vc_create_conn()
335 mem_free(cd, sizeof(*cd)); in svc_vc_create_conn()
349 cd = mem_alloc(sizeof(*cd)); in svc_vc_create_backchannel()
557 mem_free(cd, sizeof(*cd)); in svc_vc_destroy()
573 mem_free(cd, sizeof(*cd)); in svc_vc_backchannel_destroy()
607 if (cd->mreq != NULL && cd->resid == 0 && cd->eor) in svc_vc_stat()
655 if (!cd->resid && cd->mpending) { in svc_vc_process_pending()
689 while (cd->mpending && cd->resid) { in svc_vc_process_pending()
693 cd->mpending = m_split(cd->mpending, in svc_vc_process_pending()
743 (cd->mreq == NULL || cd->resid != 0 || !cd->eor)) { in svc_vc_recv()
[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()
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()
104 return (uart_bus_probe(dev, cd->cd_regshft, cd->cd_regiowidth, 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()
199 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
249 if (cd == NULL) { in makefd_xprt()
258 xprt->xp_p1 = cd; in makefd_xprt()
277 struct cf_conn *cd; in rendezvous_request() local
338 if (cd->recvsize > cd->maxrec) in rendezvous_request()
339 cd->recvsize = cd->maxrec; in rendezvous_request()
341 __xdrrec_setnonblock(&cd->xdrs, cd->maxrec); in rendezvous_request()
384 struct cf_conn *cd; in __svc_vc_dodestroy() local
510 struct cf_conn *cd; in write_vc() local
518 if (cd->nonblock) in write_vc()
[all …]
/freebsd/sys/dev/sge/
H A Dif_sge.c770 &cd->sge_tag); in sge_dma_alloc()
803 error = bus_dmamap_load(cd->sge_rx_tag, cd->sge_rx_dmamap, in sge_dma_alloc()
837 error = bus_dmamap_load(cd->sge_tx_tag, cd->sge_tx_dmamap, in sge_dma_alloc()
918 bus_dmamap_unload(cd->sge_rx_tag, cd->sge_rx_dmamap); in sge_dma_free()
930 bus_dmamap_unload(cd->sge_tx_tag, cd->sge_tx_dmamap); in sge_dma_free()
972 cd->sge_tag = NULL; in sge_dma_free()
989 bus_dmamap_sync(cd->sge_tx_tag, cd->sge_tx_dmamap, in sge_list_tx_init()
1040 bus_dmamap_sync(cd->sge_rx_tag, cd->sge_rx_dmamap, in sge_list_rx_init()
1152 bus_dmamap_sync(cd->sge_rx_tag, cd->sge_rx_dmamap, in sge_rxeof()
1218 bus_dmamap_sync(cd->sge_rx_tag, cd->sge_rx_dmamap, in sge_rxeof()
[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/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 ../
H A Dcd11.07 cd -P "$T/%?^&*"
14 cd 1 >/dev/null
17 cd "$D/b"
18 cd 1 >/dev/null
21 cd "$D/b"
22 cd 2
/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
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()
240 while ((desc = usb_desc_foreach(cd, desc))) { in usb_ed_comp_foreach()
268 while ((desc = usb_desc_foreach(cd, desc))) { in usbd_get_no_descriptors()
287 usbd_get_no_alts(struct usb_config_descriptor *cd, in usbd_get_no_alts() argument
[all …]
/freebsd/sys/dev/ice/
H A Dice_common.h84 struct ice_sq_cd *cd);
145 struct ice_sq_cd *cd);
198 struct ice_sq_cd *cd);
252 struct ice_sq_cd *cd);
257 struct ice_sq_cd *cd);
285 struct ice_sq_cd *cd);
292 struct ice_sq_cd *cd);
336 struct ice_sq_cd *cd);
352 struct ice_sq_cd *cd);
356 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);
241 struct ice_sq_cd *cd);
262 struct ice_sq_cd *cd);
268 struct ice_sq_cd *cd);
270 ice_aq_start_lldp(struct ice_hw *hw, bool persist, struct ice_sq_cd *cd);
273 bool *dcbx_agent_status, struct ice_sq_cd *cd);
[all …]
/freebsd/sys/cddl/dev/fbt/
H A Dfbt.c827 cd->cd_buf = buf; in ctf_decl_init()
828 cd->cd_ptr = buf; in ctf_decl_init()
952 cd->cd_err = ENOENT; in ctf_decl_push()
989 prec = cd->cd_qualp; in ctf_decl_push()
1003 cd->cd_order[prec] = cd->cd_ordp++; in ctf_decl_push()
1026 size_t len = (size_t)(cd->cd_end - cd->cd_ptr); in ctf_decl_sprintf()
1035 cd->cd_len += n; in ctf_decl_sprintf()
1041 ctf_decl_t cd; in fbt_type_name() local
1054 ctf_decl_fini(&cd); in fbt_type_name()
1131 ctf_decl_fini(&cd); in fbt_type_name()
[all …]
/freebsd/contrib/bearssl/src/ec/
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()
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()
/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()
272 do_conv(cd, false); in main()
275 if (iconv_close(cd) != 0) in main()
282 do_conv(iconv_t cd, bool uniinput) { in do_conv() argument
[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()

12345678910>>...50