Home
last modified time | relevance | path

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

12345678910>>...53

/freebsd-12-stable/tools/test/iconv/gnu/
Dgnu.c55 iconv_t cd; in ctl_get_translit1() local
58 cd = iconv_open("ASCII//TRANSLIT", "UTF-8"); in ctl_get_translit1()
59 if (cd == (iconv_t)-1) in ctl_get_translit1()
61 if (iconvctl(cd, ICONV_GET_TRANSLITERATE, &arg) == 0) in ctl_get_translit1()
65 if (iconv_close(cd) == -1) in ctl_get_translit1()
73 iconv_t cd; in ctl_get_translit2() local
76 cd = iconv_open("ASCII", "UTF-8"); in ctl_get_translit2()
77 if (cd == (iconv_t)-1) in ctl_get_translit2()
79 if (iconvctl(cd, ICONV_GET_TRANSLITERATE, &arg) == 0) in ctl_get_translit2()
83 if (iconv_close(cd) == -1) in ctl_get_translit2()
[all …]
/freebsd-12-stable/contrib/binutils/opcodes/
Dmep-dis.c72 print_tpreg (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED, PTR dis_info, in print_tpreg()
82 print_spreg (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED, PTR dis_info, in print_spreg()
93 print_fmax_cr (CGEN_CPU_DESC cd, in print_fmax_cr() argument
99 print_keyword (cd, dis_info, & mep_cgen_opval_h_cr_fmax, value, attrs); in print_fmax_cr()
102 print_fmax_ccr (CGEN_CPU_DESC cd, in print_fmax_ccr() argument
108 print_keyword (cd, dis_info, & mep_cgen_opval_h_ccr_fmax, value, attrs); in print_fmax_ccr()
120 mep_print_vliw_insns (CGEN_CPU_DESC cd, bfd_vma pc, disassemble_info *info, in mep_print_vliw_insns() argument
138 cd->isas = & MEP_CORE_ISA; in mep_print_vliw_insns()
140 my_status = print_insn (cd, pc, info, insnbuf, corelength); in mep_print_vliw_insns()
172 cd->isas = & MEP_COP16_ISA; in mep_print_vliw_insns()
[all …]
Dmep-asm.c67 parse_csrn (CGEN_CPU_DESC cd, const char **strp, in parse_csrn() argument
73 err = cgen_parse_keyword (cd, strp, keyword_table, field); in parse_csrn()
77 err = cgen_parse_unsigned_integer (cd, strp, MEP_OPERAND_CSRN_IDX, & value); in parse_csrn()
86 parse_fmax_cr (CGEN_CPU_DESC cd, in parse_fmax_cr() argument
91 return cgen_parse_keyword (cd, strp, & mep_cgen_opval_h_cr_fmax, field); in parse_fmax_cr()
94 parse_fmax_ccr (CGEN_CPU_DESC cd, in parse_fmax_ccr() argument
99 return cgen_parse_keyword (cd, strp, & mep_cgen_opval_h_ccr_fmax, field); in parse_fmax_ccr()
104 parse_tpreg (CGEN_CPU_DESC cd, const char ** strp, in parse_tpreg() argument
109 err = cgen_parse_keyword (cd, strp, keyword_table, field); in parse_tpreg()
118 parse_spreg (CGEN_CPU_DESC cd, const char ** strp, in parse_spreg() argument
[all …]
Dcgen-asm.c39 cgen_set_parse_operand_fn (CGEN_CPU_DESC cd, cgen_parse_operand_fn fn) in cgen_set_parse_operand_fn() argument
41 cd->parse_operand_fn = fn; in cgen_set_parse_operand_fn()
47 cgen_init_parse_operand (CGEN_CPU_DESC cd) in cgen_init_parse_operand() argument
50 (void) (* cd->parse_operand_fn) in cgen_init_parse_operand()
51 (cd, CGEN_PARSE_OPERAND_INIT, NULL, 0, 0, NULL, NULL); in cgen_init_parse_operand()
67 hash_insn_array (CGEN_CPU_DESC cd, in hash_insn_array() argument
81 if (! (* cd->asm_hash_p) (insn)) in hash_insn_array()
83 hash = (* cd->asm_hash) (CGEN_INSN_MNEMONIC (insn)); in hash_insn_array()
97 hash_insn_list (CGEN_CPU_DESC cd, in hash_insn_list() argument
108 if (! (* cd->asm_hash_p) (ilist->insn)) in hash_insn_list()
[all …]
Dmep-ibld.c80 insert_1 (CGEN_CPU_DESC cd, in insert_1() argument
90 x = cgen_get_insn_value (cd, bufp, word_length); in insert_1()
100 cgen_put_insn_value (cd, bufp, word_length, (bfd_vma) x); in insert_1()
122 insert_normal (CGEN_CPU_DESC cd, in insert_normal() argument
145 if (cd->min_insn_bitsize < cd->base_insn_bitsize) in insert_normal()
191 if (! cgen_signed_overflow_ok_p (cd)) in insert_normal()
224 insert_1 (cd, value, start, length, word_length, bufp); in insert_normal()
240 insert_insn_normal (CGEN_CPU_DESC cd, in insert_insn_normal() argument
250 CGEN_INIT_INSERT (cd); in insert_insn_normal()
258 put_insn_int_value (cd, buffer, cd->base_insn_bitsize, in insert_insn_normal()
[all …]
Dcgen-opc.c268 cgen_hw_lookup_by_name (CGEN_CPU_DESC cd, const char *name) in cgen_hw_lookup_by_name() argument
271 const CGEN_HW_ENTRY **hw = cd->hw_table.entries; in cgen_hw_lookup_by_name()
273 for (i = 0; i < cd->hw_table.num_entries; ++i) in cgen_hw_lookup_by_name()
286 cgen_hw_lookup_by_num (CGEN_CPU_DESC cd, unsigned int hwnum) in cgen_hw_lookup_by_num() argument
289 const CGEN_HW_ENTRY **hw = cd->hw_table.entries; in cgen_hw_lookup_by_num()
292 for (i = 0; i < cd->hw_table.num_entries; ++i) in cgen_hw_lookup_by_num()
306 cgen_operand_lookup_by_name (CGEN_CPU_DESC cd, const char *name) in cgen_operand_lookup_by_name() argument
309 const CGEN_OPERAND **op = cd->operand_table.entries; in cgen_operand_lookup_by_name()
311 for (i = 0; i < cd->operand_table.num_entries; ++i) in cgen_operand_lookup_by_name()
325 cgen_operand_lookup_by_num (CGEN_CPU_DESC cd, int opnum) in cgen_operand_lookup_by_num() argument
[all …]
Dcgen-dis.c101 hash_insn_array (CGEN_CPU_DESC cd, in hash_insn_array() argument
108 int big_p = CGEN_CPU_ENDIAN (cd) == CGEN_ENDIAN_BIG; in hash_insn_array()
118 if (! (* cd->dis_hash_p) (insn)) in hash_insn_array()
129 hash = (* cd->dis_hash) (buf, value); in hash_insn_array()
141 hash_insn_list (CGEN_CPU_DESC cd, in hash_insn_list() argument
146 int big_p = CGEN_CPU_ENDIAN (cd) == CGEN_ENDIAN_BIG; in hash_insn_list()
155 if (! (* cd->dis_hash_p) (ilist->insn)) in hash_insn_list()
166 hash = (* cd->dis_hash) (buf, value); in hash_insn_list()
176 build_dis_hash_table (CGEN_CPU_DESC cd) in build_dis_hash_table() argument
178 int count = cgen_insn_count (cd) + cgen_macro_insn_count (cd); in build_dis_hash_table()
[all …]
Dcgen-dis.in64 print_normal (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
74 CGEN_PRINT_NORMAL (cd, info, value, attrs, pc, length);
89 print_address (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
99 CGEN_PRINT_ADDRESS (cd, info, value, attrs, pc, length);
118 print_keyword (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
140 print_insn_normal (CGEN_CPU_DESC cd,
151 CGEN_INIT_PRINT (cd);
167 @arch@_cgen_print_operand (cd, CGEN_SYNTAX_FIELD (*syn), info,
177 read_insn (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
208 print_insn (CGEN_CPU_DESC cd,
[all …]
Dmep-desc.c2419 build_hw_table (CGEN_CPU_TABLE *cd) in build_hw_table() argument
2422 int machs = cd->machs; in build_hw_table()
2430 cd->hw_table.init_entries = init; in build_hw_table()
2431 cd->hw_table.entry_size = sizeof (CGEN_HW_ENTRY); in build_hw_table()
2438 cd->hw_table.entries = selected; in build_hw_table()
2439 cd->hw_table.num_entries = MAX_HW; in build_hw_table()
2445 build_ifield_table (CGEN_CPU_TABLE *cd) in build_ifield_table() argument
2447 cd->ifld_table = & mep_cgen_ifld_table[0]; in build_ifield_table()
2453 build_operand_table (CGEN_CPU_TABLE *cd) in build_operand_table() argument
2456 int machs = cd->machs; in build_operand_table()
[all …]
/freebsd-12-stable/cddl/contrib/opensolaris/common/ctf/
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-12-stable/sys/rpc/
Dsvc_vc.c211 struct cf_conn *cd; in svc_vc_create_conn() local
241 cd = mem_alloc(sizeof(*cd)); in svc_vc_create_conn()
242 cd->strm_stat = XPRT_IDLE; in svc_vc_create_conn()
248 xprt->xp_p1 = cd; in svc_vc_create_conn()
288 mem_free(cd, sizeof(*cd)); in svc_vc_create_conn()
300 struct cf_conn *cd = NULL; in svc_vc_create_backchannel() local
302 cd = mem_alloc(sizeof(*cd)); in svc_vc_create_backchannel()
303 cd->strm_stat = XPRT_IDLE; in svc_vc_create_backchannel()
309 xprt->xp_p1 = cd; in svc_vc_create_backchannel()
476 struct cf_conn *cd = (struct cf_conn *)xprt->xp_p1; in svc_vc_destroy() local
[all …]
/freebsd-12-stable/cddl/contrib/opensolaris/tools/ctf/dump/
Ddump.c110 ref_to_str(uint_t name, const ctf_header_t *hp, const ctf_data_t *cd) in ref_to_str() argument
113 const char *s = cd->cd_ctfdata + hp->cth_stroff + offset; in ref_to_str()
121 if (hp->cth_stroff + offset >= cd->cd_ctflen) in ref_to_str()
181 print_header(const ctf_header_t *hp, const ctf_data_t *cd) in print_header() argument
189 ref_to_str(hp->cth_parlabel, hp, cd)); in print_header()
191 ref_to_str(hp->cth_parname, hp, cd)); in print_header()
203 print_labeltable(const ctf_header_t *hp, const ctf_data_t *cd) in print_labeltable() argument
205 void *v = (void *) (cd->cd_ctfdata + hp->cth_lbloff); in print_labeltable()
213 if (hp->cth_lbloff >= cd->cd_ctflen) in print_labeltable()
215 if (hp->cth_objtoff >= cd->cd_ctflen) in print_labeltable()
[all …]
/freebsd-12-stable/tools/test/iconv/posix/
Dposix.c47 iconv_t cd; in open_1() local
50 cd = iconv_open("nonexisting", "foobar"); in open_1()
52 if ((cd == (iconv_t)-1) && (errno == EINVAL)) in open_1()
55 iconv_close(cd); in open_1()
68 iconv_t cd[MAX_LIMIT]; in open_2() local
75 cd[i] = iconv_open("ASCII", "UTF8"); in open_2()
76 if (cd[i] == (iconv_t)-1) { in open_2()
79 cd[i] = NULL; in open_2()
84 for (i = MIN(i, nitems(cd) - 1); i > 0; i--) in open_2()
85 iconv_close(cd[i]); in open_2()
[all …]
/freebsd-12-stable/lib/libc/rpc/
Dsvc_vc.c244 struct cf_conn *cd; in makefd_xprt() local
255 cd = mem_alloc(sizeof(struct cf_conn)); in makefd_xprt()
256 if (cd == NULL) { in makefd_xprt()
262 cd->strm_stat = XPRT_IDLE; in makefd_xprt()
263 xdrrec_create(&(cd->xdrs), sendsize, recvsize, in makefd_xprt()
265 xprt->xp_p1 = cd; in makefd_xprt()
266 xprt->xp_verf.oa_base = cd->verf_body; in makefd_xprt()
284 struct cf_conn *cd; in rendezvous_request() local
333 cd = (struct cf_conn *)newxprt->xp_p1; in rendezvous_request()
335 cd->recvsize = r->recvsize; in rendezvous_request()
[all …]
/freebsd-12-stable/sys/dev/sge/
Dif_sge.c754 struct sge_chain_data *cd; in sge_dma_alloc() local
760 cd = &sc->sge_cdata; in sge_dma_alloc()
773 &cd->sge_tag); in sge_dma_alloc()
781 error = bus_dma_tag_create(cd->sge_tag, in sge_dma_alloc()
791 &cd->sge_rx_tag); in sge_dma_alloc()
798 error = bus_dmamem_alloc(cd->sge_rx_tag, (void **)&ld->sge_rx_ring, in sge_dma_alloc()
800 &cd->sge_rx_dmamap); in sge_dma_alloc()
806 error = bus_dmamap_load(cd->sge_rx_tag, cd->sge_rx_dmamap, in sge_dma_alloc()
815 error = bus_dma_tag_create(cd->sge_tag, in sge_dma_alloc()
825 &cd->sge_tx_tag); in sge_dma_alloc()
[all …]
/freebsd-12-stable/contrib/binutils/include/opcode/
Dcgen.h1173 #define CGEN_ASM_LOOKUP_INSN(cd, string) cgen_asm_lookup_insn ((cd), (string)) argument
1182 #define CGEN_DIS_LOOKUP_INSN(cd, buf, value) cgen_dis_lookup_insn ((cd), (buf), (value)) argument
1197 #define CGEN_CPU_ISAS(cd) ((cd)->isas) argument
1201 #define CGEN_CPU_ENDIAN(cd) ((cd)->endian) argument
1205 #define CGEN_CPU_INSN_ENDIAN(cd) ((cd)->insn_endian) argument
1253 #define CGEN_CPU_INSN_TABLE(cd) (& (cd)->insn_table) argument
1286 #define CGEN_CPU_PARSE_OPERAND(cd) ((cd)->parse_operand) argument
1287 #define CGEN_CPU_INSERT_OPERAND(cd) ((cd)->insert_operand) argument
1288 #define CGEN_CPU_EXTRACT_OPERAND(cd) ((cd)->extract_operand) argument
1289 #define CGEN_CPU_PRINT_OPERAND(cd) ((cd)->print_operand) argument
[all …]
/freebsd-12-stable/sys/dev/uart/
Duart_bus_acpi.c68 struct acpi_uart_compat_data **cd, *cd_it; in uart_acpi_find_device() local
74 SET_FOREACH(cd, uart_acpi_class_and_device_set) { in uart_acpi_find_device()
75 for (cd_it = *cd; cd_it->cd_hid != NULL; cd_it++) { in uart_acpi_find_device()
88 struct acpi_uart_compat_data *cd; in uart_acpi_probe() local
92 if ((cd = uart_acpi_find_device(dev)) != NULL) { in uart_acpi_probe()
93 sc->sc_class = cd->cd_class; in uart_acpi_probe()
94 if (cd->cd_desc != NULL) in uart_acpi_probe()
95 device_set_desc(dev, cd->cd_desc); in uart_acpi_probe()
96 return (uart_bus_probe(dev, cd->cd_regshft, cd->cd_regiowidth, in uart_acpi_probe()
97 cd->cd_rclk, 0, 0, cd->cd_quirks)); in uart_acpi_probe()
Duart_cpu_acpi.c51 struct acpi_uart_compat_data **cd, *curcd; in uart_cpu_acpi_scan() local
54 SET_FOREACH(cd, uart_acpi_class_and_device_set) { in uart_cpu_acpi_scan()
55 curcd = *cd; in uart_cpu_acpi_scan()
62 SET_FOREACH(cd, uart_acpi_class_set) { in uart_cpu_acpi_scan()
63 curcd = *cd; in uart_cpu_acpi_scan()
78 struct acpi_uart_compat_data *cd; in uart_cpu_acpi_spcr() local
97 cd = uart_cpu_acpi_scan(spcr->InterfaceType); in uart_cpu_acpi_spcr()
98 if (cd == NULL) in uart_cpu_acpi_spcr()
100 class = cd->cd_class; in uart_cpu_acpi_spcr()
187 if ((cd->cd_quirks & UART_F_IGNORE_SPCR_REGSHFT) == in uart_cpu_acpi_spcr()
[all …]
/freebsd-12-stable/sys/cddl/dev/fbt/
Dfbt.c725 ctf_decl_init(ctf_decl_t *cd, char *buf, size_t len) in ctf_decl_init() argument
729 bzero(cd, sizeof (ctf_decl_t)); in ctf_decl_init()
732 cd->cd_order[i] = CTF_PREC_BASE - 1; in ctf_decl_init()
734 cd->cd_qualp = CTF_PREC_BASE; in ctf_decl_init()
735 cd->cd_ordp = CTF_PREC_BASE; in ctf_decl_init()
737 cd->cd_buf = buf; in ctf_decl_init()
738 cd->cd_ptr = buf; in ctf_decl_init()
739 cd->cd_end = buf + len; in ctf_decl_init()
743 ctf_decl_fini(ctf_decl_t *cd) in ctf_decl_fini() argument
749 for (cdp = ctf_list_next(&cd->cd_nodes[i]); in ctf_decl_fini()
[all …]
/freebsd-12-stable/crypto/openssl/crypto/cms/
Dcms_cd.c27 CMS_CompressedData *cd; in cms_CompressedData_create() local
41 cd = M_ASN1_new_of(CMS_CompressedData); in cms_CompressedData_create()
43 if (cd == NULL) in cms_CompressedData_create()
47 cms->d.compressedData = cd; in cms_CompressedData_create()
49 cd->version = 0; in cms_CompressedData_create()
51 X509_ALGOR_set0(cd->compressionAlgorithm, in cms_CompressedData_create()
54 cd->encapContentInfo->eContentType = OBJ_nid2obj(NID_pkcs7_data); in cms_CompressedData_create()
65 CMS_CompressedData *cd; in cms_CompressedData_init_bio() local
72 cd = cms->d.compressedData; in cms_CompressedData_init_bio()
73 X509_ALGOR_get0(&compoid, NULL, NULL, cd->compressionAlgorithm); in cms_CompressedData_init_bio()
/freebsd-12-stable/sys/dev/usb/
Dusb_parse.c74 usb_desc_foreach(struct usb_config_descriptor *cd, in usb_desc_foreach() argument
83 if (cd == NULL) in usb_desc_foreach()
87 start = (uint8_t *)cd; in usb_desc_foreach()
88 end = start + UGETW(cd->wTotalLength); in usb_desc_foreach()
126 usb_idesc_foreach(struct usb_config_descriptor *cd, in usb_idesc_foreach() argument
139 usb_desc_foreach(cd, (struct usb_descriptor *)id); in usb_idesc_foreach()
199 usb_edesc_foreach(struct usb_config_descriptor *cd, in usb_edesc_foreach() argument
206 while ((desc = usb_desc_foreach(cd, desc))) { in usb_edesc_foreach()
234 usb_ed_comp_foreach(struct usb_config_descriptor *cd, in usb_ed_comp_foreach() argument
241 while ((desc = usb_desc_foreach(cd, desc))) { in usb_ed_comp_foreach()
[all …]
/freebsd-12-stable/sys/dev/ice/
Dice_common.h82 enum ice_adminq_opc opc, struct ice_sq_cd *cd);
86 struct ice_sq_cd *cd);
97 struct ice_sq_cd *cd);
142 struct ice_sq_cd *cd);
148 u8 *txqs_moved, struct ice_sq_cd *cd);
153 u16 buf_size, struct ice_sq_cd *cd);
165 void *buf, u16 buf_size, struct ice_sq_cd *cd);
166 enum ice_status ice_aq_get_fw_ver(struct ice_hw *hw, struct ice_sq_cd *cd);
170 struct ice_sq_cd *cd);
174 struct ice_sq_cd *cd);
[all …]
/freebsd-12-stable/bin/sh/tests/builtins/
Dcd1.05 cd $P
10 # Root can always cd, regardless of directory permissions.
11 cd -L $T 2>/dev/null && exit 1
14 cd -P $T 2>/dev/null && exit 1
20 cd $T
24 (cd -L 1/../1 && [ "$(pwd -L)" = "$P/$T/1" ])
25 (cd -L link1 && [ "$(pwd -L)" = "$P/$T/link1" ])
26 (cd -L link1 && [ "$(pwd -P)" = "$P/$T/1/2" ])
27 (cd -P link1 && [ "$(pwd -L)" = "$P/$T/1/2" ])
28 (cd -P link1 && [ "$(pwd -P)" = "$P/$T/1/2" ])
Dcd3.03 # If fully successful, cd -Pe must be like cd -P.
7 cd "${TMPDIR:-/tmp}"
8 cd -Pe /
11 cd "${TMPDIR:-/tmp}"
12 cd -eP /
18 # If cd -Pe cannot chdir, the exit status must be greater than 1.
20 v=$( (cd -Pe /var/empty/nonexistent) 2>&1 >/dev/null)
/freebsd-12-stable/tools/test/iconv/tablegen/
Dtablegen.c201 iconv_t cd; in main() local
243 if ((cd = iconv_open(tocode, argv[0])) == (iconv_t)-1) in main()
246 if (iconvctl(cd, ICONV_SET_FALLBACKS, &fbs) != 0) in main()
249 do_conv(cd, false); in main()
254 if ((cd = iconv_open(tocode, "UTF-32LE")) == (iconv_t)-1) in main()
256 if (dflag && iconvctl(cd, ICONV_SET_FALLBACKS, &fbs) != 0) in main()
264 do_conv(cd, true); in main()
266 if ((cd = iconv_open("UTF-32LE//TRANSLIT", argv[0])) == (iconv_t)-1) in main()
268 if (dflag && (iconvctl(cd, ICONV_SET_FALLBACKS, &fbs) != 0)) in main()
276 do_conv(cd, false); in main()
[all …]

12345678910>>...53