| /dragonfly/contrib/cryptsetup/lib/ |
| HD | setup.c | 55 void crypt_log(struct crypt_device *cd, int level, const char *msg) in crypt_log() argument 57 if (cd && cd->log) in crypt_log() 58 cd->log(level, msg, cd->log_usrptr); in crypt_log() 63 void logger(struct crypt_device *cd, int level, const char *file, in logger() argument 73 crypt_log(cd, level, target); in logger() 93 static char *process_key(struct crypt_device *cd, const char *hash_name, in process_key() argument 103 log_err(cd, _("Cannot not read %d bytes from key file %s.\n"), in process_key() 115 log_err(cd, _("Key processing error (using hash algorithm %s).\n"), in process_key() 165 static int keyslot_verify_or_find_empty(struct crypt_device *cd, int *keyslot) in keyslot_verify_or_find_empty() argument 168 *keyslot = LUKS_keyslot_find_empty(&cd->hdr); in keyslot_verify_or_find_empty() [all …]
|
| HD | libcryptsetup.h | 22 int crypt_init(struct crypt_device **cd, const char *device); 33 int crypt_init_by_name(struct crypt_device **cd, const char *name); 47 void crypt_set_log_callback(struct crypt_device *cd, 58 void crypt_log(struct crypt_device *cd, int level, const char *msg); 72 void crypt_set_confirm_callback(struct crypt_device *cd, 94 void crypt_set_password_callback(struct crypt_device *cd, 107 void crypt_set_timeout(struct crypt_device *cd, uint64_t timeout_sec); 108 void crypt_set_password_retry(struct crypt_device *cd, int tries); 109 void crypt_set_iterarion_time(struct crypt_device *cd, uint64_t iteration_time_ms); 110 void crypt_set_password_verify(struct crypt_device *cd, int password_verify); [all …]
|
| HD | utils.c | 401 struct crypt_device *cd) in get_key() argument 422 log_err(cd, _("Failed to open key file %s.\n"), key_file ?: "-"); in get_key() 432 log_err(cd, _("Error reading passphrase from terminal.\n")); in get_key() 439 log_err(cd, _("Passphrases do not match.\n")); in get_key() 454 … log_err(cd, _("Can't do passphrase verification on non-tty inputs.\n")); in get_key() 466 log_err(cd, _("Failed to stat key file %s.\n"), key_file); in get_key() 470 … log_std(cd, _("Warning: exhausting read requested, but key file %s" in get_key() 482 … log_err(cd, _("Out of memory while reading passphrase.\n")); in get_key() 489 log_err(cd, _("Error reading passphrase.\n")); in get_key() 519 int device_ready(struct crypt_device *cd, const char *device, int mode) in device_ready() argument [all …]
|
| /dragonfly/contrib/binutils-2.34/libctf/ |
| HD | ctf-decl.c | 44 ctf_decl_init (ctf_decl_t *cd) in ctf_decl_init() argument 48 memset (cd, 0, sizeof (ctf_decl_t)); in ctf_decl_init() 51 cd->cd_order[i] = CTF_PREC_BASE - 1; in ctf_decl_init() 53 cd->cd_qualp = CTF_PREC_BASE; in ctf_decl_init() 54 cd->cd_ordp = CTF_PREC_BASE; in ctf_decl_init() 58 ctf_decl_fini (ctf_decl_t *cd) in ctf_decl_fini() argument 65 for (cdp = ctf_list_next (&cd->cd_nodes[i]); cdp != NULL; cdp = ndp) in ctf_decl_fini() 74 ctf_decl_push (ctf_decl_t *cd, ctf_file_t *fp, ctf_id_t type) in ctf_decl_push() argument 86 cd->cd_err = fp->ctf_errno; in ctf_decl_push() 94 ctf_decl_push (cd, fp, ar.ctr_contents); in ctf_decl_push() [all …]
|
| /dragonfly/contrib/cryptsetup/tests/ |
| HD | api-test.c | 535 struct crypt_device *cd; in AddDevicePlain() local 552 FAIL_(crypt_init(&cd, ""), "empty device string"); in AddDevicePlain() 555 OK_(crypt_init(&cd, DEVICE_1)); in AddDevicePlain() 556 OK_(crypt_format(cd, CRYPT_PLAIN, cipher, cipher_mode, NULL, NULL, key_size, NULL)); in AddDevicePlain() 557 OK_(crypt_activate_by_volume_key(cd, CDEVICE_1, key, key_size, 0)); in AddDevicePlain() 558 EQ_(crypt_status(cd, CDEVICE_1), CRYPT_ACTIVE); in AddDevicePlain() 562 OK_(crypt_deactivate(cd, CDEVICE_1)); in AddDevicePlain() 563 crypt_free(cd); in AddDevicePlain() 566 OK_(crypt_init(&cd, DEVICE_1)); in AddDevicePlain() 567 OK_(crypt_format(cd, CRYPT_PLAIN, cipher, cipher_mode, NULL, NULL, key_size, ¶ms)); in AddDevicePlain() [all …]
|
| /dragonfly/sys/dev/drm/amd/display/dc/gpio/ |
| HD | ddc_regs.h | 34 #define DDC_GPIO_REG_LIST_ENTRY(type,cd,id) \ argument 36 ….type ## _mask = DC_GPIO_DDC ## id ## _ ## type ## __DC_GPIO_DDC ## id ## cd ## _ ## type ## _MAS… 37 ….type ## _shift = DC_GPIO_DDC ## id ## _ ## type ## __DC_GPIO_DDC ## id ## cd ## _ ## type ## __SH… 39 #define DDC_GPIO_REG_LIST(cd,id) \ argument 41 DDC_GPIO_REG_LIST_ENTRY(MASK,cd,id),\ 42 DDC_GPIO_REG_LIST_ENTRY(A,cd,id),\ 43 DDC_GPIO_REG_LIST_ENTRY(EN,cd,id),\ 44 DDC_GPIO_REG_LIST_ENTRY(Y,cd,id)\ 47 #define DDC_REG_LIST(cd,id) \ argument 48 DDC_GPIO_REG_LIST(cd,id),\ [all …]
|
| HD | hpd_regs.h | 39 #define HPD_GPIO_REG_LIST_ENTRY(type,cd,id) \ argument 46 HPD_GPIO_REG_LIST_ENTRY(MASK,cd,id),\ 47 HPD_GPIO_REG_LIST_ENTRY(A,cd,id),\ 48 HPD_GPIO_REG_LIST_ENTRY(EN,cd,id),\ 49 HPD_GPIO_REG_LIST_ENTRY(Y,cd,id)\
|
| /dragonfly/lib/libc/rpc/ |
| HD | svc_vc.c | 242 struct cf_conn *cd; in makefd_xprt() local 254 cd = mem_alloc(sizeof(struct cf_conn)); in makefd_xprt() 255 if (cd == NULL) { in makefd_xprt() 261 cd->strm_stat = XPRT_IDLE; in makefd_xprt() 262 xdrrec_create(&(cd->xdrs), sendsize, recvsize, in makefd_xprt() 264 xprt->xp_p1 = cd; in makefd_xprt() 265 xprt->xp_verf.oa_base = cd->verf_body; in makefd_xprt() 283 struct cf_conn *cd; in rendezvous_request() local 332 cd = (struct cf_conn *)newxprt->xp_p1; in rendezvous_request() 334 cd->recvsize = r->recvsize; in rendezvous_request() [all …]
|
| /dragonfly/contrib/cryptsetup/src/ |
| HD | cryptsetup.c | 93 static void clogger(struct crypt_device *cd, int level, const char *file, in clogger() argument 103 crypt_log(cd, level, target); in clogger() 342 struct crypt_device *cd = NULL; in _action_luksFormat_useMK() local 359 if ((r = crypt_init(&cd, action_argv[0]))) in _action_luksFormat_useMK() 362 crypt_set_password_verify(cd, 1); in _action_luksFormat_useMK() 363 crypt_set_timeout(cd, opt_timeout); in _action_luksFormat_useMK() 365 crypt_set_iterarion_time(cd, opt_iteration_time); in _action_luksFormat_useMK() 367 if ((r = crypt_format(cd, CRYPT_LUKS1, cipher, cipher_mode, NULL, key, keysize, ¶ms))) in _action_luksFormat_useMK() 370 r = crypt_keyslot_add_by_volume_key(cd, opt_key_slot, key, keysize, NULL, 0); in _action_luksFormat_useMK() 373 crypt_free(cd); in _action_luksFormat_useMK() [all …]
|
| /dragonfly/sys/bus/u4b/ |
| HD | usb_parse.c | 65 usb_desc_foreach(struct usb_config_descriptor *cd, in usb_desc_foreach() argument 74 if (cd == NULL) in usb_desc_foreach() 78 start = (uint8_t *)cd; in usb_desc_foreach() 79 end = start + UGETW(cd->wTotalLength); in usb_desc_foreach() 117 usb_idesc_foreach(struct usb_config_descriptor *cd, in usb_idesc_foreach() argument 130 usb_desc_foreach(cd, (struct usb_descriptor *)id); in usb_idesc_foreach() 178 usb_edesc_foreach(struct usb_config_descriptor *cd, in usb_edesc_foreach() argument 185 while ((desc = usb_desc_foreach(cd, desc))) { in usb_edesc_foreach() 213 usb_ed_comp_foreach(struct usb_config_descriptor *cd, in usb_ed_comp_foreach() argument 220 while ((desc = usb_desc_foreach(cd, desc))) { in usb_ed_comp_foreach() [all …]
|
| HD | usbdi_util.h | 46 struct usb_descriptor *usb_desc_foreach(struct usb_config_descriptor *cd, 49 struct usb_config_descriptor *cd, 52 struct usb_config_descriptor *cd, 55 struct usb_config_descriptor *cd, 57 uint8_t usbd_get_no_descriptors(struct usb_config_descriptor *cd, 59 uint8_t usbd_get_no_alts(struct usb_config_descriptor *cd,
|
| /dragonfly/crypto/libressl/crypto/cms/ |
| HD | cms_cd.c | 73 CMS_CompressedData *cd; in cms_CompressedData_create() local 87 cd = (CMS_CompressedData *)ASN1_item_new(&CMS_CompressedData_it); in cms_CompressedData_create() 89 if (cd == NULL) in cms_CompressedData_create() 93 cms->d.compressedData = cd; in cms_CompressedData_create() 95 cd->version = 0; in cms_CompressedData_create() 97 X509_ALGOR_set0(cd->compressionAlgorithm, in cms_CompressedData_create() 100 cd->encapContentInfo->eContentType = OBJ_nid2obj(NID_pkcs7_data); in cms_CompressedData_create() 112 CMS_CompressedData *cd; in cms_CompressedData_init_bio() local 119 cd = cms->d.compressedData; in cms_CompressedData_init_bio() 120 X509_ALGOR_get0(&compoid, NULL, NULL, cd->compressionAlgorithm); in cms_CompressedData_init_bio()
|
| /dragonfly/tools/regression/bin/sh/builtins/ |
| HD | cd1.0 | 5 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" ])
|
| HD | cd3.0 | 3 # 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)
|
| HD | cd7.0 | 4 cd /usr/bin 7 cd . 9 cd ./ 11 cd .. 13 cd /usr/bin 14 cd ../
|
| HD | cd5.0 | 7 cd -P "$T" 14 cd 1 >/dev/null 17 cd "$D/b" 18 cd 1 >/dev/null 21 cd "$D/b" 22 cd 2
|
| HD | cd11.0 | 8 cd -P "$T/%?^&*" 15 cd 1 >/dev/null 18 cd "$D/b" 19 cd 1 >/dev/null 22 cd "$D/b" 23 cd 2
|
| HD | cd4.0 | 3 # This test assumes that whatever mechanism cd -P uses to determine the 14 cd -Pe $T 24 cd -Pe veryverylongdirectoryname 2>/dev/null 29 cd -Pe .. || exit 32 cd -P veryverylongdirectoryname 2>/dev/null || exit 37 echo "cd -Pe never returned 1"
|
| HD | command13.0 | 17 check "$(cd /bin && PATH=. command -v ls)" /bin/ls /bin/./ls 18 check "$(cd /bin && PATH=:/var/empty/nosuch command -v ls)" /bin/ls /bin/./ls 19 check "$(cd / && PATH=bin command -v ls)" /bin/ls 20 check "$(cd / && command -v bin/ls)" /bin/ls 21 check "$(cd /bin && command -v ./ls)" /bin/ls /bin/./ls
|
| /dragonfly/contrib/grep/lib/ |
| HD | striconv.c | 43 mem_cd_iconv (const char *src, size_t srclen, iconv_t cd, in mem_cd_iconv() argument 55 iconv (cd, NULL, NULL, NULL, NULL); in mem_cd_iconv() 72 size_t res = iconv (cd, in mem_cd_iconv() 105 size_t res = iconv (cd, NULL, NULL, &outptr, &outsize); in mem_cd_iconv() 138 iconv (cd, NULL, NULL, NULL, NULL); in mem_cd_iconv() 150 size_t res = iconv (cd, in mem_cd_iconv() 178 size_t res = iconv (cd, NULL, NULL, &outptr, &outsize); in mem_cd_iconv() 207 str_cd_iconv (const char *src, iconv_t cd) in str_cd_iconv() argument 224 int retval = mem_cd_iconv (src, strlen (src), cd, &result, &length); in str_cd_iconv() 281 iconv (cd, NULL, NULL, NULL, NULL); in str_cd_iconv() [all …]
|
| /dragonfly/sys/dev/netif/sk/ |
| HD | if_sk.c | 692 struct sk_chain_data *cd = &sc_if->sk_cdata; in sk_init_rx_ring() local 721 cd->sk_rx_prod = 0; in sk_init_rx_ring() 722 cd->sk_rx_cons = 0; in sk_init_rx_ring() 813 struct sk_chain_data *cd = &sc_if->sk_cdata; in sk_newbuf_std() local 834 error = bus_dmamap_load_mbuf_segment(cd->sk_rx_dtag, cd->sk_rx_dmap_tmp, in sk_newbuf_std() 846 if (cd->sk_rx_mbuf[idx] != NULL) { in sk_newbuf_std() 847 bus_dmamap_sync(cd->sk_rx_dtag, cd->sk_rx_dmap[idx], in sk_newbuf_std() 849 bus_dmamap_unload(cd->sk_rx_dtag, cd->sk_rx_dmap[idx]); in sk_newbuf_std() 853 map = cd->sk_rx_dmap_tmp; in sk_newbuf_std() 854 cd->sk_rx_dmap_tmp = cd->sk_rx_dmap[idx]; in sk_newbuf_std() [all …]
|
| /dragonfly/sys/dev/netif/sis/ |
| HD | if_sis.c | 1232 struct sis_chain_data *cd = &sc->sis_cdata; in sis_list_tx_init() local 1245 cd->sis_tx_prod = cd->sis_tx_cons = cd->sis_tx_cnt = 0; in sis_list_tx_init() 1259 struct sis_chain_data *cd = &sc->sis_cdata; in sis_list_rx_init() local 1277 cd->sis_rx_prod = 0; in sis_list_rx_init() 1288 struct sis_chain_data *cd = &sc->sis_cdata; in sis_newbuf() local 1289 struct sis_rx_data *rd = &cd->sis_rx_data[idx]; in sis_newbuf() 1304 error = bus_dmamap_load_mbuf_segment(cd->sis_rxbuf_tag, in sis_newbuf() 1305 cd->sis_rx_tmpmap, m, &seg, 1, &nseg, BUS_DMA_NOWAIT); in sis_newbuf() 1315 bus_dmamap_sync(cd->sis_rxbuf_tag, rd->sis_map, in sis_newbuf() 1317 bus_dmamap_unload(cd->sis_rxbuf_tag, rd->sis_map); in sis_newbuf() [all …]
|
| /dragonfly/contrib/mpfr/src/ |
| HD | set_q.c | 70 int cn, cd; in mpfr_set_q() local 102 cd = set_z (d, den, &sd); in mpfr_set_q() 119 shift = GMP_NUMB_BITS*sn+cn-cd; in mpfr_set_q() 120 MPFR_ASSERTD (shift == GMP_NUMB_BITS*sn+cn-cd); in mpfr_set_q() 121 cd = mpfr_mul_2si (f, f, shift, rnd); in mpfr_set_q() 123 if (MPFR_UNLIKELY (cd != 0)) in mpfr_set_q() 124 inexact = cd; in mpfr_set_q()
|
| /dragonfly/sys/bus/u4b/template/ |
| HD | usb_template.c | 368 struct usb_config_descriptor *cd; in usb_make_config_desc() local 375 temp->size += sizeof(*cd); in usb_make_config_desc() 396 cd = USB_ADD_BYTES(temp->buf, old_size); in usb_make_config_desc() 401 cd->bLength = sizeof(*cd); in usb_make_config_desc() 402 cd->bDescriptorType = UDESC_CONFIG; in usb_make_config_desc() 403 USETW(cd->wTotalLength, old_size); in usb_make_config_desc() 404 cd->bNumInterface = temp->bInterfaceNumber + 1; in usb_make_config_desc() 405 cd->bConfigurationValue = temp->bConfigurationValue; in usb_make_config_desc() 406 cd->iConfiguration = tcd->iConfiguration; in usb_make_config_desc() 407 cd->bmAttributes = tcd->bmAttributes; in usb_make_config_desc() [all …]
|
| /dragonfly/contrib/tcpdump/ |
| HD | print-ntp.c | 349 const struct ntp_control_data *cd, u_int length) in ntp_control_print() argument 357 control = GET_U_1(cd->control); in ntp_control_print() 366 sequence = GET_BE_U_2(cd->sequence); in ntp_control_print() 369 status = GET_BE_U_2(cd->status); in ntp_control_print() 372 assoc = GET_BE_U_2(cd->assoc); in ntp_control_print() 375 offset = GET_BE_U_2(cd->offset); in ntp_control_print() 378 count = GET_BE_U_2(cd->count); in ntp_control_print() 384 ND_TCHECK_LEN(cd->data, count); in ntp_control_print() 391 ND_TCHECK_LEN(cd, length); in ntp_control_print() 400 struct ntp_control_data cd; member [all …]
|