| /openbsd/src/lib/libcrypto/cms/ |
| D | cms_kari.c | 163 CMS_KeyAgreeRecipientIdentifier *rid = rek->rid; in CMS_RecipientEncryptedKey_get0_id() local 165 if (rid->type == CMS_REK_ISSUER_SERIAL) { in CMS_RecipientEncryptedKey_get0_id() 167 *issuer = rid->d.issuerAndSerialNumber->issuer; in CMS_RecipientEncryptedKey_get0_id() 169 *sno = rid->d.issuerAndSerialNumber->serialNumber; in CMS_RecipientEncryptedKey_get0_id() 176 } else if (rid->type == CMS_REK_KEYIDENTIFIER) { in CMS_RecipientEncryptedKey_get0_id() 178 *keyid = rid->d.rKeyId->subjectKeyIdentifier; in CMS_RecipientEncryptedKey_get0_id() 180 *tm = rid->d.rKeyId->date; in CMS_RecipientEncryptedKey_get0_id() 182 *other = rid->d.rKeyId->other; in CMS_RecipientEncryptedKey_get0_id() 197 CMS_KeyAgreeRecipientIdentifier *rid = rek->rid; in CMS_RecipientEncryptedKey_cert_cmp() local 199 if (rid->type == CMS_REK_ISSUER_SERIAL) in CMS_RecipientEncryptedKey_cert_cmp() [all …]
|
| /openbsd/src/usr.bin/ssh/ |
| D | mux.c | 76 u_int rid; member 81 u_int rid; member 87 u_int rid; /* request id */ member 253 mux_master_process_hello(struct ssh *ssh, u_int rid, in mux_master_process_hello() argument 297 reply_ok(struct sshbuf *reply, u_int rid) in reply_ok() argument 302 (r = sshbuf_put_u32(reply, rid)) != 0) in reply_ok() 308 reply_error(struct sshbuf *reply, u_int type, u_int rid, const char *msg) in reply_error() argument 313 (r = sshbuf_put_u32(reply, rid)) != 0 || in reply_error() 319 mux_master_process_new_session(struct ssh *ssh, u_int rid, in mux_master_process_new_session() argument 331 cctx->rid = rid; in mux_master_process_new_session() [all …]
|
| /openbsd/src/sys/arch/arm64/dev/ |
| D | acpiiort.c | 93 acpiiort_smmu_map(struct acpi_iort_node *node, uint32_t rid, in acpiiort_smmu_map() argument 100 return as->as_map(as->as_cookie, rid, dmat); in acpiiort_smmu_map() 107 acpiiort_smmu_reserve_region(struct acpi_iort_node *node, uint32_t rid, in acpiiort_smmu_reserve_region() argument 114 as->as_reserve(as->as_cookie, rid, addr, size); in acpiiort_smmu_reserve_region() 130 uint32_t rid, offset; in acpiiort_device_map() local 169 rid = map[i].output_base; in acpiiort_device_map() 181 rid = map[i].output_base; in acpiiort_device_map() 190 return acpiiort_smmu_map(node, rid, dmat); in acpiiort_device_map()
|
| D | acpipci.c | 386 uint32_t rid, offset; in acpipci_probe_device_hook() local 389 rid = pci_requester_id(pa->pa_pc, pa->pa_tag); in acpipci_probe_device_hook() 425 rid = map[i].output_base; in acpipci_probe_device_hook() 430 if (map[i].input_base <= rid && in acpipci_probe_device_hook() 431 rid <= map[i].input_base + map[i].number_of_ids) { in acpipci_probe_device_hook() 432 rid = map[i].output_base + (rid - map[i].input_base); in acpipci_probe_device_hook() 443 pa->pa_dmat = acpiiort_smmu_map(node, rid, pa->pa_dmat); in acpipci_probe_device_hook() 445 acpiiort_smmu_reserve_region(node, rid, in acpipci_probe_device_hook() 449 acpiiort_smmu_reserve_region(node, rid, in acpipci_probe_device_hook() 876 uint32_t rid, offset; in acpipci_iort_map_msi() local [all …]
|
| D | aplpcie.c | 796 aplpcie_map_rid(struct aplpcie_softc *sc, int port, uint16_t rid, uint32_t sid) in aplpcie_map_rid() argument 805 if ((reg & PCIE_PORT_RID2SID_RID_MASK) == rid) in aplpcie_map_rid() 813 reg = (sid << PCIE_PORT_RID2SID_SID_SHIFT) | rid | in aplpcie_map_rid() 827 aplpcie_t6020_map_rid(struct aplpcie_softc *sc, int port, uint16_t rid, in aplpcie_t6020_map_rid() argument 837 if ((reg & PCIE_PORT_RID2SID_RID_MASK) == rid) in aplpcie_t6020_map_rid() 845 reg = (sid << PCIE_PORT_RID2SID_SID_SHIFT) | rid | in aplpcie_t6020_map_rid() 863 uint16_t rid; in aplpcie_probe_device_hook() local 866 rid = pci_requester_id(pa->pa_pc, pa->pa_tag); in aplpcie_probe_device_hook() 867 pa->pa_dmat = iommu_device_map_pci(sc->sc_node, rid, pa->pa_dmat); in aplpcie_probe_device_hook() 868 if (iommu_device_lookup_pci(sc->sc_node, rid, &phandle, &sid)) in aplpcie_probe_device_hook() [all …]
|
| /openbsd/src/lib/libcrypto/ocsp/ |
| D | ocsp_srv.c | 235 OCSP_RESPID *rid; in OCSP_basic_sign() local 252 rid = brsp->tbsResponseData->responderId; in OCSP_basic_sign() 257 if (!(rid->value.byKey = ASN1_OCTET_STRING_new())) in OCSP_basic_sign() 259 if (!(ASN1_OCTET_STRING_set(rid->value.byKey, md, in OCSP_basic_sign() 262 rid->type = V_OCSP_RESPID_KEY; in OCSP_basic_sign() 264 if (!X509_NAME_set(&rid->value.byName, in OCSP_basic_sign() 267 rid->type = V_OCSP_RESPID_NAME; in OCSP_basic_sign()
|
| D | ocsp_prn.c | 211 OCSP_RESPID *rid = NULL; in OCSP_RESPONSE_print() local 245 rid = rd->responderId; in OCSP_RESPONSE_print() 246 switch (rid->type) { in OCSP_RESPONSE_print() 248 X509_NAME_print_ex(bp, rid->value.byName, 0, XN_FLAG_ONELINE); in OCSP_RESPONSE_print() 251 i2a_ASN1_STRING(bp, rid->value.byKey, V_ASN1_OCTET_STRING); in OCSP_RESPONSE_print()
|
| D | ocsp_cl.c | 266 const OCSP_RESPID *rid = bs->tbsResponseData->responderId; in OCSP_resp_get0_id() local 268 if (rid->type == V_OCSP_RESPID_NAME) { in OCSP_resp_get0_id() 269 *pname = rid->value.byName; in OCSP_resp_get0_id() 271 } else if (rid->type == V_OCSP_RESPID_KEY) { in OCSP_resp_get0_id() 272 *pid = rid->value.byKey; in OCSP_resp_get0_id()
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/ |
| D | 950719-1.c | 7 f (unsigned short rid, unsigned short record_length) in f() argument 10 g (rid, tnode.data + rid * record_length); in f()
|
| /openbsd/src/sys/dev/pci/drm/amd/amdgpu/ |
| D | amdgpu.h | 769 #define ASICID_IS_P20(did, rid) (((did == 0x67DF) && \ argument 770 ((rid == 0xE3) || \ 771 (rid == 0xE4) || \ 772 (rid == 0xE5) || \ 773 (rid == 0xE7) || \ 774 (rid == 0xEF))) || \ 776 ((rid == 0xE7) || \ 777 (rid == 0xEF) || \ 778 (rid == 0xFF)))) 780 #define ASICID_IS_P30(did, rid) ((did == 0x67DF) && \ argument [all …]
|
| /openbsd/src/usr.bin/id/ |
| D | id.c | 188 uid_t eid, rid; in pretty() local 199 pw = getpwuid(rid = getuid()); in pretty() 205 (void)printf("uid\t%u\n", rid); in pretty() 207 if ((eid = geteuid()) != rid) { in pretty() 213 if ((rid = getgid()) != (eid = getegid())) { in pretty() 214 if ((gr = getgrgid(rid))) in pretty() 217 (void)printf("rgid\t%u\n", rid); in pretty()
|
| /openbsd/src/regress/sys/net/rtable/ |
| D | util.c | 107 route_insert(unsigned int rid, sa_family_t af, char *string) in route_insert() argument 131 if ((error = rtable_insert(rid, ndst, mask, NULL, 0, rt)) != 0) { in route_insert() 135 nrt = rtable_lookup(rid, dst, mask, NULL, RTP_ANY); in route_insert() 148 route_delete(unsigned int rid, sa_family_t af, char *string) in route_delete() argument 194 route_lookup(unsigned int rid, sa_family_t af, char *string) in route_lookup() argument 219 do_from_file(unsigned int rid, sa_family_t af, char *filename, in do_from_file() argument 234 (*func)(rid, af, buf); in do_from_file() 243 rtentry_dump(struct rtentry *rt, void *w, unsigned int rid) in rtentry_dump() argument 255 rtentry_delete(struct rtentry *rt, void *w, unsigned int rid) in rtentry_delete() argument
|
| /openbsd/src/regress/sbin/ipsecctl/ |
| D | ikedeldel47.ok | 5 C rms [rid-0.0.0.0/0] 10 C rms [rid-::/0]
|
| /openbsd/src/sys/dev/usb/ |
| D | if_wi_usb.h | 57 u_int16_t rid; /* 0x04 */ member 63 u_int16_t rid; /* 0x04 */ member 70 u_int16_t rid; /* 0x04 */ member
|
| /openbsd/src/lib/libusbhid/ |
| D | parse.c | 45 int32_t rid; member 106 if (s->last_pos[i].rid == c->report_ID) in hid_switch_rid() 108 if (s->last_pos[i].rid == 0) in hid_switch_rid() 113 s->last_pos[i].rid = c->report_ID; in hid_switch_rid() 128 if (s->last_pos[i].rid == next_rID) in hid_switch_rid() 130 if (s->last_pos[i].rid == 0) in hid_switch_rid() 135 s->last_pos[i].rid = next_rID; in hid_switch_rid()
|
| /openbsd/src/gnu/gcc/gcc/ |
| D | c-common.h | 46 enum rid enum 114 #define OBJC_IS_AT_KEYWORD(rid) \ argument 115 ((unsigned int) (rid) >= (unsigned int) RID_FIRST_AT && \ 116 (unsigned int) (rid) <= (unsigned int) RID_LAST_AT) 118 #define OBJC_IS_PQ_KEYWORD(rid) \ argument 119 ((unsigned int) (rid) >= (unsigned int) RID_FIRST_PQ && \ 120 (unsigned int) (rid) <= (unsigned int) RID_LAST_PQ) 621 extern void record_builtin_type (enum rid, const char *, tree);
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/ |
| D | c-common.h | 51 enum rid enum 114 #define OBJC_IS_AT_KEYWORD(rid) \ argument 115 ((unsigned int)(rid) >= (unsigned int)RID_FIRST_AT && \ 116 (unsigned int)(rid) <= (unsigned int)RID_LAST_AT) 118 #define OBJC_IS_PQ_KEYWORD(rid) \ argument 119 ((unsigned int)(rid) >= (unsigned int)RID_FIRST_PQ && \ 120 (unsigned int)(rid) <= (unsigned int)RID_LAST_PQ) 856 extern void record_builtin_type PARAMS ((enum rid,
|
| /openbsd/src/sbin/isakmpd/ |
| D | ike_phase_1.c | 987 char header[80], *rs = 0, *rid = 0, *p; in ike_phase_1_recv_ID() local 1007 rid = malloc(sz); in ike_phase_1_recv_ID() 1008 if (!rid) { in ike_phase_1_recv_ID() 1028 free(rid); in ike_phase_1_recv_ID() 1034 free(rid); in ike_phase_1_recv_ID() 1043 free(rid); in ike_phase_1_recv_ID() 1047 memcpy(rid, sockaddr_addrdata(sa), in ike_phase_1_recv_ID() 1059 free(rid); in ike_phase_1_recv_ID() 1062 memcpy(rid, p, sz); in ike_phase_1_recv_ID() 1068 free(rid); in ike_phase_1_recv_ID() [all …]
|
| /openbsd/src/sys/dev/pv/ |
| D | hypervic.c | 296 uint64_t rid; in hv_heartbeat() local 300 rv = hv_channel_recv(ch, dv->dv_buf, PAGE_SIZE, &rlen, &rid, 0); in hv_heartbeat() 328 hv_channel_send(ch, dv->dv_buf, rlen, rid, VMBUS_CHANPKT_TYPE_INBAND, 0); in hv_heartbeat() 365 uint64_t rid; in hv_shutdown() local 369 rv = hv_channel_recv(ch, dv->dv_buf, PAGE_SIZE, &rlen, &rid, 0); in hv_shutdown() 402 hv_channel_send(ch, dv->dv_buf, rlen, rid, VMBUS_CHANPKT_TYPE_INBAND, 0); in hv_shutdown() 444 uint64_t rid; in hv_timesync() local 448 rv = hv_channel_recv(ch, dv->dv_buf, PAGE_SIZE, &rlen, &rid, 0); in hv_timesync() 487 hv_channel_send(ch, dv->dv_buf, rlen, rid, VMBUS_CHANPKT_TYPE_INBAND, 0); in hv_timesync() 1049 uint64_t rid; in hv_kvp() local [all …]
|
| /openbsd/src/sys/dev/hid/ |
| D | hid.c | 52 int32_t rid; member 107 if (s->last_pos[i].rid == c->report_ID) in hid_switch_rid() 109 if (s->last_pos[i].rid == 0) in hid_switch_rid() 114 s->last_pos[i].rid = c->report_ID; in hid_switch_rid() 126 if (s->last_pos[i].rid == nextid) in hid_switch_rid() 128 if (s->last_pos[i].rid == 0) in hid_switch_rid() 133 s->last_pos[i].rid = nextid; in hid_switch_rid()
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/cp/ |
| D | lex.c | 319 const ENUM_BITFIELD(rid) rid : 16; 575 C_RID_CODE (id) = reswords[i].rid; in init_reswords() 576 ridpointers [(int) reswords[i].rid] = id; in init_reswords() 1534 cp_type_qual_from_rid (rid) in cp_type_qual_from_rid() argument 1535 tree rid; in cp_type_qual_from_rid() 1537 if (rid == ridpointers[(int) RID_CONST]) 1539 else if (rid == ridpointers[(int) RID_VOLATILE]) 1541 else if (rid == ridpointers[(int) RID_RESTRICT])
|
| /openbsd/src/lib/libcrypto/x509/ |
| D | x509_genn.c | 416 result = OBJ_cmp(a->d.rid, b->d.rid); in GENERAL_NAME_cmp() 471 a->d.rid = value; in GENERAL_NAME_set0_value() 505 return a->d.rid; in GENERAL_NAME_get0_value()
|
| /openbsd/src/sys/dev/ofw/ |
| D | ofw_misc.c | 1118 iommu_device_lookup_pci(int node, uint32_t rid, uint32_t *phandle, in iommu_device_lookup_pci() argument 1136 rid = rid & mask; in iommu_device_lookup_pci() 1154 if (rid >= rid_base && rid < rid_base + length) { in iommu_device_lookup_pci() 1155 cells[0] = sid_base + (rid - rid_base); in iommu_device_lookup_pci() 1183 iommu_device_map_pci(int node, uint32_t rid, bus_dma_tag_t dmat) in iommu_device_map_pci() argument 1187 if (iommu_device_lookup_pci(node, rid, &phandle, &cells[0])) in iommu_device_map_pci() 1211 iommu_reserve_region_pci(int node, uint32_t rid, bus_addr_t addr, in iommu_reserve_region_pci() argument 1216 if (iommu_device_lookup_pci(node, rid, &phandle, &cells[0])) in iommu_reserve_region_pci()
|
| /openbsd/src/sys/arch/hppa/dev/ |
| D | astro.c | 36 u_int32_t rid; member 231 u_int32_t rid, ioc_ctrl; in astro_attach() local 247 rid = letoh32(r->rid); in astro_attach() 248 printf(": Astro rev %d.%d\n", (rid & 7) + 1, (rid >> 3) & 3); in astro_attach()
|
| /openbsd/src/sys/dev/ic/ |
| D | an.c | 179 int buflen, kid, rid; in an_attach() local 223 rid = AN_RID_WEP_VOLATILE; /* first persistent key */ in an_attach() 224 while (an_read_rid(sc, rid, akey, &buflen) == 0) { in an_attach() 230 rid, buflen, sizeof(*akey), kid, in an_attach() 241 rid = AN_RID_WEP_PERSISTENT; /* for next key */ in an_attach() 830 an_read_rid(struct an_softc *sc, int rid, void *buf, int *buflenp) in an_read_rid() argument 836 error = an_cmd(sc, AN_CMD_ACCESS | AN_ACCESS_READ, rid); in an_read_rid() 841 error = an_read_bap(sc, rid, 0, &len, sizeof(len), sizeof(len)); in an_read_rid() 846 return an_read_bap(sc, rid, sizeof(len), buf, len, *buflenp); in an_read_rid() 850 an_write_rid(struct an_softc *sc, int rid, void *buf, int buflen) in an_write_rid() argument [all …]
|