Home
last modified time | relevance | path

Searched refs:dh (Results 1 – 25 of 72) sorted by relevance

123

/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 …]
Dnf_conntrack_proto_dccp.c385 const struct dccp_hdr *dh) in dccp_new() argument
392 state = dccp_state_table[CT_DCCP_ROLE_CLIENT][dh->dccph_type][CT_DCCP_NONE]; in dccp_new()
421 static u64 dccp_ack_seq(const struct dccp_hdr *dh) in dccp_ack_seq() argument
425 dhack = (void *)dh + __dccp_basic_hdr_len(dh); in dccp_ack_seq()
430 static bool dccp_error(const struct dccp_hdr *dh, in dccp_error() argument
438 if (dh->dccph_doff * 4 < sizeof(struct dccp_hdr) || in dccp_error()
439 dh->dccph_doff * 4 > dccp_len) { in dccp_error()
445 if (dh->dccph_cscov) { in dccp_error()
446 cscov = (dh->dccph_cscov - 1) * 4; in dccp_error()
461 if (dh->dccph_type >= DCCP_PKT_INVALID) { in dccp_error()
[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 …]
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 …]
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 …]
Ddccp.h202 const struct dccp_hdr* dh = dccp_hdr(skb); in dccp_csum_coverage() local
204 if (dh->dccph_cscov == 0) in dccp_csum_coverage()
206 return (dh->dccph_doff + dh->dccph_cscov - 1) * sizeof(u32); in dccp_csum_coverage()
282 struct dccp_hdr *dh, unsigned int len);
284 const struct dccp_hdr *dh, const unsigned int len);
389 static inline void dccp_hdr_set_seq(struct dccp_hdr *dh, const u64 gss) in dccp_hdr_set_seq() argument
391 struct dccp_hdr_ext *dhx = (struct dccp_hdr_ext *)((void *)dh + in dccp_hdr_set_seq()
392 sizeof(*dh)); in dccp_hdr_set_seq()
393 dh->dccph_seq2 = 0; in dccp_hdr_set_seq()
394 dh->dccph_seq = htons((gss >> 32) & 0xfffff); in dccp_hdr_set_seq()
Dipv6.c52 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v6_send_check() local
55 dh->dccph_checksum = dccp_v6_csum_finish(skb, &np->saddr, &sk->sk_v6_daddr); in dccp_v6_send_check()
71 const struct dccp_hdr *dh; in dccp_v6_err() local
85 dh = (struct dccp_hdr *)(skb->data + offset); in dccp_v6_err()
88 &hdr->daddr, dh->dccph_dport, in dccp_v6_err()
89 &hdr->saddr, ntohs(dh->dccph_sport), in dccp_v6_err()
102 seq = dccp_hdr_seq(dh); in dccp_v6_err()
222 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v6_send_response() local
225 dh->dccph_checksum = dccp_v6_csum_finish(skb, in dccp_v6_send_response()
689 const struct dccp_hdr *dh; in dccp_v6_rcv() local
[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-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()
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()
192 return 2 + p - (const char *)dh; in dmi_entry_length()
[all …]
/kernel/linux/linux-5.10/include/crypto/
Ddh.h34 struct dh { struct
55 unsigned int crypto_dh_key_len(const struct dh *params); argument
70 int crypto_dh_encode_key(char *buf, unsigned int len, const struct dh *params);
84 int crypto_dh_decode_key(const char *buf, unsigned int len, struct dh *params);
/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-5.10/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c117 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()
156 req->ctx.dh->p_size, DMA_TO_DEVICE); in qat_dh_cb()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/hpre/
Dhpre_crypto.c82 struct hpre_dh_ctx dh; member
93 struct kpp_request *dh; member
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()
591 &ctx->dh.dma_xa_p, GFP_KERNEL); in hpre_dh_set_params()
592 if (!ctx->dh.xa_p) in hpre_dh_set_params()
[all …]
/kernel/linux/linux-5.10/crypto/
Ddh.c53 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
265 return crypto_register_kpp(&dh); in dh_init()
270 crypto_unregister_kpp(&dh); in dh_exit()
Ddh_helper.c29 static inline unsigned int dh_data_size(const struct dh *p) in dh_data_size()
34 unsigned int crypto_dh_key_len(const struct dh *p) in crypto_dh_key_len()
40 int crypto_dh_encode_key(char *buf, unsigned int len, const struct dh *params) in crypto_dh_encode_key()
68 int crypto_dh_decode_key(const char *buf, unsigned int len, struct dh *params) in crypto_dh_decode_key()
/kernel/linux/linux-5.10/drivers/md/
Ddm-snap-persistent.c306 struct disk_header *dh; in read_header() local
336 dh = ps->header_area; in read_header()
338 if (le32_to_cpu(dh->magic) == 0) { in read_header()
343 if (le32_to_cpu(dh->magic) != SNAP_MAGIC) { in read_header()
350 ps->valid = le32_to_cpu(dh->valid); in read_header()
351 ps->version = le32_to_cpu(dh->version); in read_header()
352 chunk_size = le32_to_cpu(dh->chunk_size); in read_header()
383 struct disk_header *dh; in write_header() local
387 dh = ps->header_area; in write_header()
388 dh->magic = cpu_to_le32(SNAP_MAGIC); in write_header()
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/omap2/omapfb/dss/
Doverlay.c143 u16 dw, dh; in dss_ovl_check() local
146 dh = mgr_timings->y_res; in dss_ovl_check()
170 if (dh < info->pos_y + outh) { in dss_ovl_check()
173 ovl->id, info->pos_y, outh, dh); in dss_ovl_check()
/kernel/linux/linux-5.10/Documentation/crypto/
Dapi-kpp.rst34 .. kernel-doc:: include/crypto/dh.h
37 .. kernel-doc:: include/crypto/dh.h
38 :functions: dh crypto_dh_key_len crypto_dh_encode_key crypto_dh_decode_key
/kernel/linux/linux-5.10/security/
Dlsm_audit.c79 struct dccp_hdr *dh = dccp_hdr(skb); in ipv4_skb_to_auditdata() local
80 if (dh == NULL) in ipv4_skb_to_auditdata()
83 ad->u.net->sport = dh->dccph_sport; in ipv4_skb_to_auditdata()
84 ad->u.net->dport = dh->dccph_dport; in ipv4_skb_to_auditdata()
157 struct dccp_hdr _dccph, *dh; in ipv6_skb_to_auditdata() local
159 dh = skb_header_pointer(skb, offset, sizeof(_dccph), &_dccph); in ipv6_skb_to_auditdata()
160 if (dh == NULL) in ipv6_skb_to_auditdata()
163 ad->u.net->sport = dh->dccph_sport; in ipv6_skb_to_auditdata()
164 ad->u.net->dport = dh->dccph_dport; in ipv6_skb_to_auditdata()
/kernel/linux/linux-5.10/drivers/block/drbd/
Ddrbd_nl.c3298 struct drbd_genlmsghdr *dh; in drbd_adm_dump_resources() local
3323 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_resources()
3327 if (!dh) in drbd_adm_dump_resources()
3329 dh->minor = -1U; in drbd_adm_dump_resources()
3330 dh->ret_code = NO_ERROR; in drbd_adm_dump_resources()
3346 genlmsg_end(skb, dh); in drbd_adm_dump_resources()
3413 struct drbd_genlmsghdr *dh; in drbd_adm_dump_devices() local
3446 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_devices()
3450 if (!dh) in drbd_adm_dump_devices()
3452 dh->ret_code = retcode; in drbd_adm_dump_devices()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/
Dscsi_dh.c105 struct scsi_device_handler *dh; in scsi_dh_lookup() local
110 dh = __scsi_dh_lookup(name); in scsi_dh_lookup()
111 if (!dh) { in scsi_dh_lookup()
113 dh = __scsi_dh_lookup(name); in scsi_dh_lookup()
116 return dh; in scsi_dh_lookup()
/kernel/linux/linux-5.10/security/keys/
Ddh.c59 static void dh_free_data(struct dh *dh) in dh_free_data() argument
61 kfree_sensitive(dh->key); in dh_free_data()
62 kfree_sensitive(dh->p); in dh_free_data()
63 kfree_sensitive(dh->g); in dh_free_data()
236 struct dh dh_inputs; in __keyctl_dh_compute()
/kernel/linux/linux-5.10/include/drm/
Ddrm_rect.h103 static inline void drm_rect_adjust_size(struct drm_rect *r, int dw, int dh) in drm_rect_adjust_size() argument
106 r->y1 -= dh >> 1; in drm_rect_adjust_size()
108 r->y2 += (dh + 1) >> 1; in drm_rect_adjust_size()
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-driver-hid-wiimote7 Contact: David Herrmann <dh.herrmann@googlemail.com>
15 Contact: David Herrmann <dh.herrmann@gmail.com>
32 Contact: David Herrmann <dh.herrmann@gmail.com>
54 Contact: David Herrmann <dh.herrmann@gmail.com>
70 Contact: David Herrmann <dh.herrmann@gmail.com>

123