| /kernel/linux/linux-5.10/include/crypto/ |
| D | dh.h | 12 * DOC: DH Helper Functions 14 * To use DH with the KPP cipher API, the following data structure and 17 * To use DH with KPP, the following functions should be used to operate on 18 * a DH private key. The packet private key that can be set with 23 * struct dh - define a DH private key 25 * @key: Private DH key 29 * @key_size: Size of the private DH key 30 * @p_size: Size of DH parameter P 31 * @q_size: Size of DH parameter Q 32 * @g_size: Size of DH generator G [all …]
|
| /kernel/linux/linux-6.6/include/crypto/ |
| D | dh.h | 12 * DOC: DH Helper Functions 14 * To use DH with the KPP cipher API, the following data structure and 17 * To use DH with KPP, the following functions should be used to operate on 18 * a DH private key. The packet private key that can be set with 23 * struct dh - define a DH private key 25 * @key: Private DH key 28 * @key_size: Size of the private DH key 29 * @p_size: Size of DH parameter P 30 * @g_size: Size of DH generator G 32 struct dh { struct [all …]
|
| /kernel/linux/linux-5.10/net/netfilter/ |
| D | xt_dccp.c | 37 const struct dccp_hdr *dh, in dccp_find_option() argument 42 unsigned int optoff = __dccp_hdr_len(dh); in dccp_find_option() 43 unsigned int optlen = dh->dccph_doff*4 - __dccp_hdr_len(dh); in dccp_find_option() 46 if (dh->dccph_doff * 4 < __dccp_hdr_len(dh)) in dccp_find_option() 83 match_types(const struct dccp_hdr *dh, u_int16_t typemask) in match_types() argument 85 return typemask & (1 << dh->dccph_type); in match_types() 90 const struct dccp_hdr *dh, bool *hotdrop) in match_option() argument 92 return dccp_find_option(option, skb, protoff, dh, hotdrop); in match_option() 99 const struct dccp_hdr *dh; in dccp_mt() local 105 dh = skb_header_pointer(skb, par->thoff, sizeof(_dh), &_dh); in dccp_mt() [all …]
|
| D | xt_hashlimit.c | 366 struct dsthash_ent *dh; in htable_selective_cleanup() local 370 hlist_for_each_entry_safe(dh, n, &ht->hash[i], node) { in htable_selective_cleanup() 371 if (time_after_eq(jiffies, dh->expires) || select_all) in htable_selective_cleanup() 372 dsthash_free(ht, dh); in htable_selective_cleanup() 529 static void rateinfo_recalc(struct dsthash_ent *dh, unsigned long now, in rateinfo_recalc() argument 532 unsigned long delta = now - dh->rateinfo.prev; in rateinfo_recalc() 539 u64 interval = dh->rateinfo.interval * HZ; in rateinfo_recalc() 544 dh->rateinfo.prev = now; in rateinfo_recalc() 545 dh->rateinfo.prev_window = in rateinfo_recalc() 546 ((dh->rateinfo.current_rate * interval) > in rateinfo_recalc() [all …]
|
| /kernel/linux/linux-6.6/net/netfilter/ |
| D | xt_dccp.c | 37 const struct dccp_hdr *dh, in dccp_find_option() argument 42 unsigned int optoff = __dccp_hdr_len(dh); in dccp_find_option() 43 unsigned int optlen = dh->dccph_doff*4 - __dccp_hdr_len(dh); in dccp_find_option() 46 if (dh->dccph_doff * 4 < __dccp_hdr_len(dh)) in dccp_find_option() 83 match_types(const struct dccp_hdr *dh, u_int16_t typemask) in match_types() argument 85 return typemask & (1 << dh->dccph_type); in match_types() 90 const struct dccp_hdr *dh, bool *hotdrop) in match_option() argument 92 return dccp_find_option(option, skb, protoff, dh, hotdrop); in match_option() 99 const struct dccp_hdr *dh; in dccp_mt() local 105 dh = skb_header_pointer(skb, par->thoff, sizeof(_dh), &_dh); in dccp_mt() [all …]
|
| D | xt_hashlimit.c | 366 struct dsthash_ent *dh; in htable_selective_cleanup() local 370 hlist_for_each_entry_safe(dh, n, &ht->hash[i], node) { in htable_selective_cleanup() 371 if (time_after_eq(jiffies, dh->expires) || select_all) in htable_selective_cleanup() 372 dsthash_free(ht, dh); in htable_selective_cleanup() 529 static void rateinfo_recalc(struct dsthash_ent *dh, unsigned long now, in rateinfo_recalc() argument 532 unsigned long delta = now - dh->rateinfo.prev; in rateinfo_recalc() 539 u64 interval = dh->rateinfo.interval * HZ; in rateinfo_recalc() 544 dh->rateinfo.prev = now; in rateinfo_recalc() 545 dh->rateinfo.prev_window = in rateinfo_recalc() 546 ((dh->rateinfo.current_rate * interval) > in rateinfo_recalc() [all …]
|
| D | nf_conntrack_proto_dccp.c | 387 const struct dccp_hdr *dh, in dccp_new() argument 395 state = dccp_state_table[CT_DCCP_ROLE_CLIENT][dh->dccph_type][CT_DCCP_NONE]; in dccp_new() 424 static u64 dccp_ack_seq(const struct dccp_hdr *dh) in dccp_ack_seq() argument 428 dhack = (void *)dh + __dccp_basic_hdr_len(dh); in dccp_ack_seq() 433 static bool dccp_error(const struct dccp_hdr *dh, in dccp_error() argument 451 if (dh->dccph_doff * 4 < sizeof(struct dccp_hdr) || in dccp_error() 452 dh->dccph_doff * 4 > dccp_len) { in dccp_error() 458 if (dh->dccph_cscov) { in dccp_error() 459 cscov = (dh->dccph_cscov - 1) * 4; in dccp_error() 474 type = dh->dccph_type; in dccp_error() [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/arm/stm32/ |
| D | stm32.yaml | 62 - description: DH STM32MP151 DHCOR SoM based Boards 64 - const: dh,stm32mp151a-dhcor-testbench 65 - const: dh,stm32mp151a-dhcor-som 68 - description: DH STM32MP153 DHCOM SoM based Boards 70 - const: dh,stm32mp153c-dhcom-drc02 71 - const: dh,stm32mp153c-dhcom-som 74 - description: DH STM32MP153 DHCOR SoM based Boards 76 - const: dh,stm32mp153c-dhcor-drc-compact 77 - const: dh,stm32mp153c-dhcor-som 111 - description: DH STM32MP1 SoM based Boards [all …]
|
| /kernel/linux/linux-6.6/drivers/firmware/ |
| D | dmi-sysfs.c | 35 struct dmi_header dh; member 70 const struct dmi_header *dh, 116 const struct dmi_header *dh, void *); 126 static void find_dmi_entry_helper(const struct dmi_header *dh, in find_dmi_entry_helper() argument 133 if (dh->type != entry->dh.type) in find_dmi_entry_helper() 149 data->ret = data->callback(entry, dh, data->private); in find_dmi_entry_helper() 180 * dh. This includes both the formatted portion as well as the 183 static size_t dmi_entry_length(const struct dmi_header *dh) in dmi_entry_length() argument 185 const char *p = (const char *)dh; in dmi_entry_length() 187 p += dh->length; in dmi_entry_length() [all …]
|
| /kernel/linux/linux-5.10/drivers/firmware/ |
| D | dmi-sysfs.c | 35 struct dmi_header dh; member 70 const struct dmi_header *dh, 116 const struct dmi_header *dh, void *); 126 static void find_dmi_entry_helper(const struct dmi_header *dh, in find_dmi_entry_helper() argument 133 if (dh->type != entry->dh.type) in find_dmi_entry_helper() 149 data->ret = data->callback(entry, dh, data->private); in find_dmi_entry_helper() 180 * dh. This includes both the formatted portion as well as the 183 static size_t dmi_entry_length(const struct dmi_header *dh) in dmi_entry_length() argument 185 const char *p = (const char *)dh; in dmi_entry_length() 187 p += dh->length; in dmi_entry_length() [all …]
|
| /kernel/linux/linux-6.6/net/dccp/ |
| D | input.c | 187 const struct dccp_hdr *dh = dccp_hdr(skb); in dccp_check_seqno() local 204 if (dh->dccph_type == DCCP_PKT_SYNC || in dccp_check_seqno() 205 dh->dccph_type == DCCP_PKT_SYNCACK) { in dccp_check_seqno() 227 if (dh->dccph_type == DCCP_PKT_CLOSEREQ || in dccp_check_seqno() 228 dh->dccph_type == DCCP_PKT_CLOSE || in dccp_check_seqno() 229 dh->dccph_type == DCCP_PKT_RESET) { in dccp_check_seqno() 239 if (dh->dccph_type != DCCP_PKT_SYNC && in dccp_check_seqno() 264 "sending SYNC...\n", dccp_packet_name(dh->dccph_type), in dccp_check_seqno() 274 if (dh->dccph_type == DCCP_PKT_RESET) in dccp_check_seqno() 284 const struct dccp_hdr *dh, const unsigned int len) in __dccp_rcv_established() argument [all …]
|
| D | ipv4.c | 248 const struct dccp_hdr *dh; in dccp_v4_err() local 257 if (!pskb_may_pull(skb, offset + sizeof(*dh))) in dccp_v4_err() 259 dh = (struct dccp_hdr *)(skb->data + offset); in dccp_v4_err() 260 if (!pskb_may_pull(skb, offset + __dccp_basic_hdr_len(dh))) in dccp_v4_err() 263 dh = (struct dccp_hdr *)(skb->data + offset); in dccp_v4_err() 266 iph->daddr, dh->dccph_dport, in dccp_v4_err() 267 iph->saddr, ntohs(dh->dccph_sport), in dccp_v4_err() 278 seq = dccp_hdr_seq(dh); in dccp_v4_err() 384 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v4_send_check() local 387 dh->dccph_checksum = dccp_v4_csum_finish(skb, in dccp_v4_send_check() [all …]
|
| D | output.c | 49 struct dccp_hdr *dh; in dccp_transmit_skb() local 51 const u32 dccp_header_size = sizeof(*dh) + in dccp_transmit_skb() 100 dh = dccp_zeroed_hdr(skb, dccp_header_size); in dccp_transmit_skb() 101 dh->dccph_type = dcb->dccpd_type; in dccp_transmit_skb() 102 dh->dccph_sport = inet->inet_sport; in dccp_transmit_skb() 103 dh->dccph_dport = inet->inet_dport; in dccp_transmit_skb() 104 dh->dccph_doff = (dccp_header_size + dcb->dccpd_opt_len) / 4; in dccp_transmit_skb() 105 dh->dccph_ccval = dcb->dccpd_ccval; in dccp_transmit_skb() 106 dh->dccph_cscov = dp->dccps_pcslen; in dccp_transmit_skb() 108 dh->dccph_x = 1; in dccp_transmit_skb() [all …]
|
| /kernel/linux/linux-5.10/net/dccp/ |
| D | input.c | 187 const struct dccp_hdr *dh = dccp_hdr(skb); in dccp_check_seqno() local 204 if (dh->dccph_type == DCCP_PKT_SYNC || in dccp_check_seqno() 205 dh->dccph_type == DCCP_PKT_SYNCACK) { in dccp_check_seqno() 227 if (dh->dccph_type == DCCP_PKT_CLOSEREQ || in dccp_check_seqno() 228 dh->dccph_type == DCCP_PKT_CLOSE || in dccp_check_seqno() 229 dh->dccph_type == DCCP_PKT_RESET) { in dccp_check_seqno() 239 if (dh->dccph_type != DCCP_PKT_SYNC && in dccp_check_seqno() 264 "sending SYNC...\n", dccp_packet_name(dh->dccph_type), in dccp_check_seqno() 274 if (dh->dccph_type == DCCP_PKT_RESET) in dccp_check_seqno() 284 const struct dccp_hdr *dh, const unsigned int len) in __dccp_rcv_established() argument [all …]
|
| D | ipv4.c | 236 const struct dccp_hdr *dh; in dccp_v4_err() local 246 if (!pskb_may_pull(skb, offset + sizeof(*dh))) in dccp_v4_err() 248 dh = (struct dccp_hdr *)(skb->data + offset); in dccp_v4_err() 249 if (!pskb_may_pull(skb, offset + __dccp_basic_hdr_len(dh))) in dccp_v4_err() 252 dh = (struct dccp_hdr *)(skb->data + offset); in dccp_v4_err() 255 iph->daddr, dh->dccph_dport, in dccp_v4_err() 256 iph->saddr, ntohs(dh->dccph_sport), in dccp_v4_err() 267 seq = dccp_hdr_seq(dh); in dccp_v4_err() 372 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v4_send_check() local 375 dh->dccph_checksum = dccp_v4_csum_finish(skb, in dccp_v4_send_check() [all …]
|
| D | output.c | 49 struct dccp_hdr *dh; in dccp_transmit_skb() local 51 const u32 dccp_header_size = sizeof(*dh) + in dccp_transmit_skb() 100 dh = dccp_zeroed_hdr(skb, dccp_header_size); in dccp_transmit_skb() 101 dh->dccph_type = dcb->dccpd_type; in dccp_transmit_skb() 102 dh->dccph_sport = inet->inet_sport; in dccp_transmit_skb() 103 dh->dccph_dport = inet->inet_dport; in dccp_transmit_skb() 104 dh->dccph_doff = (dccp_header_size + dcb->dccpd_opt_len) / 4; in dccp_transmit_skb() 105 dh->dccph_ccval = dcb->dccpd_ccval; in dccp_transmit_skb() 106 dh->dccph_cscov = dp->dccps_pcslen; in dccp_transmit_skb() 108 dh->dccph_x = 1; in dccp_transmit_skb() [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | dccp.h | 78 static inline struct dccp_hdr_ext *dccp_hdrx(const struct dccp_hdr *dh) in dccp_hdrx() argument 80 return (struct dccp_hdr_ext *)((unsigned char *)dh + sizeof(*dh)); in dccp_hdrx() 83 static inline unsigned int __dccp_basic_hdr_len(const struct dccp_hdr *dh) in __dccp_basic_hdr_len() argument 85 return sizeof(*dh) + (dh->dccph_x ? sizeof(struct dccp_hdr_ext) : 0); in __dccp_basic_hdr_len() 90 const struct dccp_hdr *dh = dccp_hdr(skb); in dccp_basic_hdr_len() local 91 return __dccp_basic_hdr_len(dh); in dccp_basic_hdr_len() 94 static inline __u64 dccp_hdr_seq(const struct dccp_hdr *dh) in dccp_hdr_seq() argument 96 __u64 seq_nr = ntohs(dh->dccph_seq); in dccp_hdr_seq() 98 if (dh->dccph_x != 0) in dccp_hdr_seq() 99 seq_nr = (seq_nr << 32) + ntohl(dccp_hdrx(dh)->dccph_seq_low); in dccp_hdr_seq() [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | dccp.h | 78 static inline struct dccp_hdr_ext *dccp_hdrx(const struct dccp_hdr *dh) in dccp_hdrx() argument 80 return (struct dccp_hdr_ext *)((unsigned char *)dh + sizeof(*dh)); in dccp_hdrx() 83 static inline unsigned int __dccp_basic_hdr_len(const struct dccp_hdr *dh) in __dccp_basic_hdr_len() argument 85 return sizeof(*dh) + (dh->dccph_x ? sizeof(struct dccp_hdr_ext) : 0); in __dccp_basic_hdr_len() 90 const struct dccp_hdr *dh = dccp_hdr(skb); in dccp_basic_hdr_len() local 91 return __dccp_basic_hdr_len(dh); in dccp_basic_hdr_len() 94 static inline __u64 dccp_hdr_seq(const struct dccp_hdr *dh) in dccp_hdr_seq() argument 96 __u64 seq_nr = ntohs(dh->dccph_seq); in dccp_hdr_seq() 98 if (dh->dccph_x != 0) in dccp_hdr_seq() 99 seq_nr = (seq_nr << 32) + ntohl(dccp_hdrx(dh)->dccph_seq_low); in dccp_hdr_seq() [all …]
|
| /kernel/linux/linux-5.10/drivers/crypto/qat/qat_common/ |
| D | qat_asym_algs.c | 9 #include <crypto/dh.h> 117 struct qat_dh_input_params dh; member 121 struct qat_dh_output_params dh; member 130 struct qat_dh_ctx *dh; member 134 struct kpp_request *dh; member 143 struct kpp_request *areq = req->areq.dh; in qat_dh_cb() 144 struct device *dev = &GET_DEV(req->ctx.dh->inst->accel_dev); in qat_dh_cb() 152 dma_free_coherent(dev, req->ctx.dh->p_size, in qat_dh_cb() 153 req->src_align, req->in.dh.in.b); in qat_dh_cb() 155 dma_unmap_single(dev, req->in.dh.in.b, in qat_dh_cb() [all …]
|
| /kernel/linux/linux-5.10/fs/quota/ |
| D | quota_tree.c | 96 struct qt_disk_dqdbheader *dh) in check_dquot_block_header() argument 101 le32_to_cpu(dh->dqdh_next_free), 0, in check_dquot_block_header() 106 le32_to_cpu(dh->dqdh_prev_free), 0, in check_dquot_block_header() 116 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in get_free_dqblk() local 126 ret = check_dquot_block_header(info, dh); in get_free_dqblk() 129 info->dqi_free_blk = le32_to_cpu(dh->dqdh_next_free); in get_free_dqblk() 149 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in put_free_dqblk() local 152 dh->dqdh_next_free = cpu_to_le32(info->dqi_free_blk); in put_free_dqblk() 153 dh->dqdh_prev_free = cpu_to_le32(0); in put_free_dqblk() 154 dh->dqdh_entries = cpu_to_le16(0); in put_free_dqblk() [all …]
|
| /kernel/linux/linux-5.10/drivers/crypto/hisilicon/hpre/ |
| D | hpre_crypto.c | 4 #include <crypto/dh.h> 82 struct hpre_dh_ctx dh; member 93 struct kpp_request *dh; member 236 /* when the data is dh's source, we should format it */ in hpre_hw_data_init() 376 areq = req->areq.dh; in hpre_dh_cb() 471 h_req->areq.dh = kreq; in hpre_msg_request_set() 474 msg->key = cpu_to_le64(ctx->dh.dma_xa_p); in hpre_msg_request_set() 532 msg->in = cpu_to_le64(ctx->dh.dma_g); in hpre_dh_compute_value() 577 static int hpre_dh_set_params(struct hpre_ctx *ctx, struct dh *params) in hpre_dh_set_params() 590 ctx->dh.xa_p = dma_alloc_coherent(dev, sz << 1, in hpre_dh_set_params() [all …]
|
| /kernel/linux/linux-5.10/net/netfilter/ipvs/ |
| D | ip_vs_dh.c | 14 * The dh algorithm is to select server by the hash key of destination IP 26 * array. If the dh scheduler is used in cache cluster, it is good to 47 * IPVS DH bucket 54 * for IPVS DH entry hash table 69 * Returns hash value for IPVS DH entry 156 /* allocate the DH table for this service */ in ip_vs_dh_init_svc() 162 IP_VS_DBG(6, "DH hash table (memory=%zdbytes) allocated for " in ip_vs_dh_init_svc() 182 IP_VS_DBG(6, "DH hash table (memory=%zdbytes) released\n", in ip_vs_dh_done_svc() 231 IP_VS_DBG_BUF(6, "DH: destination IP address %s --> server %s:%d\n", in ip_vs_dh_schedule() 241 * IPVS DH Scheduler structure [all …]
|
| /kernel/linux/linux-6.6/net/netfilter/ipvs/ |
| D | ip_vs_dh.c | 14 * The dh algorithm is to select server by the hash key of destination IP 26 * array. If the dh scheduler is used in cache cluster, it is good to 47 * IPVS DH bucket 54 * for IPVS DH entry hash table 69 * Returns hash value for IPVS DH entry 156 /* allocate the DH table for this service */ in ip_vs_dh_init_svc() 162 IP_VS_DBG(6, "DH hash table (memory=%zdbytes) allocated for " in ip_vs_dh_init_svc() 182 IP_VS_DBG(6, "DH hash table (memory=%zdbytes) released\n", in ip_vs_dh_done_svc() 231 IP_VS_DBG_BUF(6, "DH: destination IP address %s --> server %s:%d\n", in ip_vs_dh_schedule() 241 * IPVS DH Scheduler structure [all …]
|
| /kernel/linux/linux-6.6/fs/quota/ |
| D | quota_tree.c | 93 struct qt_disk_dqdbheader *dh) in check_dquot_block_header() argument 98 le32_to_cpu(dh->dqdh_next_free), 0, in check_dquot_block_header() 103 le32_to_cpu(dh->dqdh_prev_free), 0, in check_dquot_block_header() 108 le16_to_cpu(dh->dqdh_entries), 0, in check_dquot_block_header() 118 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in get_free_dqblk() local 128 ret = check_dquot_block_header(info, dh); in get_free_dqblk() 131 info->dqi_free_blk = le32_to_cpu(dh->dqdh_next_free); in get_free_dqblk() 151 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in put_free_dqblk() local 154 dh->dqdh_next_free = cpu_to_le32(info->dqi_free_blk); in put_free_dqblk() 155 dh->dqdh_prev_free = cpu_to_le32(0); in put_free_dqblk() [all …]
|
| /kernel/linux/linux-6.6/security/keys/ |
| D | dh.c | 13 #include <crypto/dh.h> 60 static void dh_free_data(struct dh *dh) in dh_free_data() argument 62 kfree_sensitive(dh->key); in dh_free_data() 63 kfree_sensitive(dh->p); in dh_free_data() 64 kfree_sensitive(dh->g); in dh_free_data() 131 struct dh dh_inputs; in __keyctl_dh_compute() 210 tfm = crypto_alloc_kpp("dh", 0, 0); in __keyctl_dh_compute() 258 * For DH, generate_public_key and generate_shared_secret are in __keyctl_dh_compute() 268 * Concatenate SP800-56A otherinfo past DH shared secret -- the in __keyctl_dh_compute() 269 * input to the KDF is (DH shared secret || otherinfo) in __keyctl_dh_compute()
|