Home
last modified time | relevance | path

Searched full:dh (Results 1 – 25 of 331) sorted by relevance

12345678910>>...14

/kernel/linux/linux-5.10/include/crypto/
Ddh.h12 * 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-4.19/include/crypto/
Ddh.h17 * DOC: DH Helper Functions
19 * To use DH with the KPP cipher API, the following data structure and
22 * To use DH with KPP, the following functions should be used to operate on
23 * a DH private key. The packet private key that can be set with
28 * struct dh - define a DH private key
30 * @key: Private DH key
34 * @key_size: Size of the private DH key
35 * @p_size: Size of DH parameter P
36 * @q_size: Size of DH parameter Q
37 * @g_size: Size of DH generator G
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dxt_dccp.c37 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 …]
Dxt_hashlimit.c366 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-4.19/net/netfilter/
Dxt_dccp.c40 const struct dccp_hdr *dh, in dccp_find_option() argument
45 unsigned int optoff = __dccp_hdr_len(dh); in dccp_find_option()
46 unsigned int optlen = dh->dccph_doff*4 - __dccp_hdr_len(dh); in dccp_find_option()
49 if (dh->dccph_doff * 4 < __dccp_hdr_len(dh)) in dccp_find_option()
86 match_types(const struct dccp_hdr *dh, u_int16_t typemask) in match_types() argument
88 return typemask & (1 << dh->dccph_type); in match_types()
93 const struct dccp_hdr *dh, bool *hotdrop) in match_option() argument
95 return dccp_find_option(option, skb, protoff, dh, hotdrop); in match_option()
102 const struct dccp_hdr *dh; in dccp_mt() local
108 dh = skb_header_pointer(skb, par->thoff, sizeof(_dh), &_dh); in dccp_mt()
[all …]
Dxt_hashlimit.c373 struct dsthash_ent *dh; in htable_selective_cleanup() local
377 hlist_for_each_entry_safe(dh, n, &ht->hash[i], node) { in htable_selective_cleanup()
378 if ((*select)(ht, dh)) in htable_selective_cleanup()
379 dsthash_free(ht, dh); in htable_selective_cleanup()
541 static void rateinfo_recalc(struct dsthash_ent *dh, unsigned long now, in rateinfo_recalc() argument
544 unsigned long delta = now - dh->rateinfo.prev; in rateinfo_recalc()
551 u64 interval = dh->rateinfo.interval * HZ; in rateinfo_recalc()
556 dh->rateinfo.prev = now; in rateinfo_recalc()
557 dh->rateinfo.prev_window = in rateinfo_recalc()
558 ((dh->rateinfo.current_rate * interval) > in rateinfo_recalc()
[all …]
/kernel/linux/linux-5.10/drivers/firmware/
Ddmi-sysfs.c35 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-4.19/drivers/firmware/
Ddmi-sysfs.c34 struct dmi_header dh; member
69 const struct dmi_header *dh,
115 const struct dmi_header *dh, void *);
125 static void find_dmi_entry_helper(const struct dmi_header *dh, in find_dmi_entry_helper() argument
132 if (dh->type != entry->dh.type) in find_dmi_entry_helper()
148 data->ret = data->callback(entry, dh, data->private); in find_dmi_entry_helper()
179 * dh. This includes both the formatted portion as well as the
182 static size_t dmi_entry_length(const struct dmi_header *dh) in dmi_entry_length() argument
184 const char *p = (const char *)dh; in dmi_entry_length()
186 p += dh->length; in dmi_entry_length()
[all …]
/kernel/linux/linux-4.19/net/dccp/
Dinput.c191 const struct dccp_hdr *dh = dccp_hdr(skb); in dccp_check_seqno() local
208 if (dh->dccph_type == DCCP_PKT_SYNC || in dccp_check_seqno()
209 dh->dccph_type == DCCP_PKT_SYNCACK) { in dccp_check_seqno()
231 if (dh->dccph_type == DCCP_PKT_CLOSEREQ || in dccp_check_seqno()
232 dh->dccph_type == DCCP_PKT_CLOSE || in dccp_check_seqno()
233 dh->dccph_type == DCCP_PKT_RESET) { in dccp_check_seqno()
243 if (dh->dccph_type != DCCP_PKT_SYNC && in dccp_check_seqno()
268 "sending SYNC...\n", dccp_packet_name(dh->dccph_type), in dccp_check_seqno()
278 if (dh->dccph_type == DCCP_PKT_RESET) in dccp_check_seqno()
288 const struct dccp_hdr *dh, const unsigned int len) in __dccp_rcv_established() argument
[all …]
Dipv4.c238 const struct dccp_hdr *dh; in dccp_v4_err() local
254 dh = (struct dccp_hdr *)(skb->data + offset); in dccp_v4_err()
257 iph->daddr, dh->dccph_dport, in dccp_v4_err()
258 iph->saddr, ntohs(dh->dccph_sport), in dccp_v4_err()
269 seq = dccp_hdr_seq(dh); in dccp_v4_err()
371 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v4_send_check() local
374 dh->dccph_checksum = dccp_v4_csum_finish(skb, in dccp_v4_send_check()
492 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v4_send_response() local
494 dh->dccph_checksum = dccp_v4_csum_finish(skb, ireq->ir_loc_addr, in dccp_v4_send_response()
653 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v4_do_rcv() local
[all …]
Doutput.c53 struct dccp_hdr *dh; in dccp_transmit_skb() local
55 const u32 dccp_header_size = sizeof(*dh) + in dccp_transmit_skb()
104 dh = dccp_zeroed_hdr(skb, dccp_header_size); in dccp_transmit_skb()
105 dh->dccph_type = dcb->dccpd_type; in dccp_transmit_skb()
106 dh->dccph_sport = inet->inet_sport; in dccp_transmit_skb()
107 dh->dccph_dport = inet->inet_dport; in dccp_transmit_skb()
108 dh->dccph_doff = (dccp_header_size + dcb->dccpd_opt_len) / 4; in dccp_transmit_skb()
109 dh->dccph_ccval = dcb->dccpd_ccval; in dccp_transmit_skb()
110 dh->dccph_cscov = dp->dccps_pcslen; in dccp_transmit_skb()
112 dh->dccph_x = 1; in dccp_transmit_skb()
[all …]
/kernel/linux/linux-5.10/net/dccp/
Dinput.c187 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 …]
Dipv4.c234 const struct dccp_hdr *dh; in dccp_v4_err() local
250 dh = (struct dccp_hdr *)(skb->data + offset); in dccp_v4_err()
253 iph->daddr, dh->dccph_dport, in dccp_v4_err()
254 iph->saddr, ntohs(dh->dccph_sport), in dccp_v4_err()
265 seq = dccp_hdr_seq(dh); in dccp_v4_err()
370 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v4_send_check() local
373 dh->dccph_checksum = dccp_v4_csum_finish(skb, in dccp_v4_send_check()
491 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v4_send_response() local
493 dh->dccph_checksum = dccp_v4_csum_finish(skb, ireq->ir_loc_addr, in dccp_v4_send_response()
654 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v4_do_rcv() local
[all …]
Doutput.c49 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/
Ddccp.h78 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-4.19/include/linux/
Ddccp.h78 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/
Dqat_asym_algs.c9 #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-4.19/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c54 #include <crypto/dh.h>
162 struct qat_dh_input_params dh; member
166 struct qat_dh_output_params dh; member
175 struct qat_dh_ctx *dh; member
179 struct kpp_request *dh; member
188 struct kpp_request *areq = req->areq.dh; in qat_dh_cb()
189 struct device *dev = &GET_DEV(req->ctx.dh->inst->accel_dev); in qat_dh_cb()
197 dma_free_coherent(dev, req->ctx.dh->p_size, in qat_dh_cb()
198 req->src_align, req->in.dh.in.b); in qat_dh_cb()
200 dma_unmap_single(dev, req->in.dh.in.b, in qat_dh_cb()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/hpre/
Dhpre_crypto.c4 #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/
Dip_vs_dh.c14 * 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-4.19/net/netfilter/ipvs/
Dip_vs_dh.c19 * The dh algorithm is to select server by the hash key of destination IP
31 * array. If the dh scheduler is used in cache cluster, it is good to
52 * IPVS DH bucket
59 * for IPVS DH entry hash table
74 * Returns hash value for IPVS DH entry
161 /* allocate the DH table for this service */ in ip_vs_dh_init_svc()
167 IP_VS_DBG(6, "DH hash table (memory=%zdbytes) allocated for " in ip_vs_dh_init_svc()
187 IP_VS_DBG(6, "DH hash table (memory=%zdbytes) released\n", in ip_vs_dh_done_svc()
236 IP_VS_DBG_BUF(6, "DH: destination IP address %s --> server %s:%d\n", in ip_vs_dh_schedule()
246 * IPVS DH Scheduler structure
[all …]
/kernel/linux/linux-4.19/crypto/
Ddh.c15 #include <crypto/dh.h>
56 static int dh_set_params(struct dh_ctx *ctx, struct dh *params) in dh_set_params()
82 struct dh params; in dh_set_secret()
214 static struct kpp_alg dh = { variable
221 .cra_name = "dh",
222 .cra_driver_name = "dh-generic",
231 return crypto_register_kpp(&dh); in dh_init()
236 crypto_unregister_kpp(&dh); in dh_exit()
241 MODULE_ALIAS_CRYPTO("dh");
243 MODULE_DESCRIPTION("DH generic algorithm");
/kernel/linux/linux-5.10/fs/quota/
Dquota_tree.c87 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in get_free_dqblk() local
97 info->dqi_free_blk = le32_to_cpu(dh->dqdh_next_free); in get_free_dqblk()
117 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in put_free_dqblk() local
120 dh->dqdh_next_free = cpu_to_le32(info->dqi_free_blk); in put_free_dqblk()
121 dh->dqdh_prev_free = cpu_to_le32(0); in put_free_dqblk()
122 dh->dqdh_entries = cpu_to_le16(0); in put_free_dqblk()
136 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in remove_free_dqentry() local
137 uint nextblk = le32_to_cpu(dh->dqdh_next_free); in remove_free_dqentry()
138 uint prevblk = le32_to_cpu(dh->dqdh_prev_free); in remove_free_dqentry()
148 dh->dqdh_prev_free; in remove_free_dqentry()
[all …]
/kernel/linux/linux-4.19/fs/quota/
Dquota_tree.c86 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in get_free_dqblk() local
96 info->dqi_free_blk = le32_to_cpu(dh->dqdh_next_free); in get_free_dqblk()
116 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in put_free_dqblk() local
119 dh->dqdh_next_free = cpu_to_le32(info->dqi_free_blk); in put_free_dqblk()
120 dh->dqdh_prev_free = cpu_to_le32(0); in put_free_dqblk()
121 dh->dqdh_entries = cpu_to_le16(0); in put_free_dqblk()
135 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in remove_free_dqentry() local
136 uint nextblk = le32_to_cpu(dh->dqdh_next_free); in remove_free_dqentry()
137 uint prevblk = le32_to_cpu(dh->dqdh_prev_free); in remove_free_dqentry()
147 dh->dqdh_prev_free; in remove_free_dqentry()
[all …]
/kernel/linux/linux-5.10/crypto/
Ddh.c11 #include <crypto/dh.h>
53 static int dh_set_params(struct dh_ctx *ctx, struct dh *params) in dh_set_params()
79 struct dh params; in dh_set_secret()
248 static struct kpp_alg dh = { variable
255 .cra_name = "dh",
256 .cra_driver_name = "dh-generic",
265 return crypto_register_kpp(&dh); in dh_init()
270 crypto_unregister_kpp(&dh); in dh_exit()
275 MODULE_ALIAS_CRYPTO("dh");
277 MODULE_DESCRIPTION("DH generic algorithm");

12345678910>>...14