Home
last modified time | relevance | path

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

1234

/linux-6.1.9/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
393 state = dccp_state_table[CT_DCCP_ROLE_CLIENT][dh->dccph_type][CT_DCCP_NONE]; in dccp_new()
422 static u64 dccp_ack_seq(const struct dccp_hdr *dh) in dccp_ack_seq() argument
426 dhack = (void *)dh + __dccp_basic_hdr_len(dh); in dccp_ack_seq()
431 static bool dccp_error(const struct dccp_hdr *dh, in dccp_error() argument
439 if (dh->dccph_doff * 4 < sizeof(struct dccp_hdr) || in dccp_error()
440 dh->dccph_doff * 4 > dccp_len) { in dccp_error()
446 if (dh->dccph_cscov) { in dccp_error()
447 cscov = (dh->dccph_cscov - 1) * 4; in dccp_error()
462 if (dh->dccph_type >= DCCP_PKT_INVALID) { in dccp_error()
[all …]
/linux-6.1.9/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.c248 const struct dccp_hdr *dh; in dccp_v4_err() local
264 dh = (struct dccp_hdr *)(skb->data + offset); in dccp_v4_err()
267 iph->daddr, dh->dccph_dport, in dccp_v4_err()
268 iph->saddr, ntohs(dh->dccph_sport), in dccp_v4_err()
279 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()
505 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v4_send_response() local
507 dh->dccph_checksum = dccp_v4_csum_finish(skb, ireq->ir_loc_addr, in dccp_v4_send_response()
671 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v4_do_rcv() local
[all …]
Ddccp.h197 const struct dccp_hdr* dh = dccp_hdr(skb); in dccp_csum_coverage() local
199 if (dh->dccph_cscov == 0) in dccp_csum_coverage()
201 return (dh->dccph_doff + dh->dccph_cscov - 1) * sizeof(u32); in dccp_csum_coverage()
277 struct dccp_hdr *dh, unsigned int len);
279 const struct dccp_hdr *dh, const unsigned int len);
384 static inline void dccp_hdr_set_seq(struct dccp_hdr *dh, const u64 gss) in dccp_hdr_set_seq() argument
386 struct dccp_hdr_ext *dhx = (struct dccp_hdr_ext *)((void *)dh + in dccp_hdr_set_seq()
387 sizeof(*dh)); in dccp_hdr_set_seq()
388 dh->dccph_seq2 = 0; in dccp_hdr_set_seq()
389 dh->dccph_seq = htons((gss >> 32) & 0xfffff); in dccp_hdr_set_seq()
Dipv6.c59 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v6_send_check() local
62 dh->dccph_checksum = dccp_v6_csum_finish(skb, &np->saddr, &sk->sk_v6_daddr); in dccp_v6_send_check()
78 const struct dccp_hdr *dh; in dccp_v6_err() local
92 dh = (struct dccp_hdr *)(skb->data + offset); in dccp_v6_err()
95 &hdr->daddr, dh->dccph_dport, in dccp_v6_err()
96 &hdr->saddr, ntohs(dh->dccph_sport), in dccp_v6_err()
109 seq = dccp_hdr_seq(dh); in dccp_v6_err()
229 struct dccp_hdr *dh = dccp_hdr(skb); in dccp_v6_send_response() local
232 dh->dccph_checksum = dccp_v6_csum_finish(skb, in dccp_v6_send_response()
699 const struct dccp_hdr *dh; in dccp_v6_rcv() local
[all …]
/linux-6.1.9/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 …]
/linux-6.1.9/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 …]
/linux-6.1.9/include/crypto/
Ddh.h32 struct dh { struct
51 unsigned int crypto_dh_key_len(const struct dh *params); argument
66 int crypto_dh_encode_key(char *buf, unsigned int len, const struct dh *params);
80 int crypto_dh_decode_key(const char *buf, unsigned int len, struct dh *params);
96 struct dh *params);
/linux-6.1.9/fs/quota/
Dquota_tree.c87 struct qt_disk_dqdbheader *dh) in check_dquot_block_header() argument
92 le32_to_cpu(dh->dqdh_next_free), 0, in check_dquot_block_header()
97 le32_to_cpu(dh->dqdh_prev_free), 0, in check_dquot_block_header()
102 le16_to_cpu(dh->dqdh_entries), 0, in check_dquot_block_header()
112 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in get_free_dqblk() local
122 ret = check_dquot_block_header(info, dh); in get_free_dqblk()
125 info->dqi_free_blk = le32_to_cpu(dh->dqdh_next_free); in get_free_dqblk()
145 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in put_free_dqblk() local
148 dh->dqdh_next_free = cpu_to_le32(info->dqi_free_blk); in put_free_dqblk()
149 dh->dqdh_prev_free = cpu_to_le32(0); in put_free_dqblk()
[all …]
/linux-6.1.9/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c118 struct qat_dh_input_params dh; member
122 struct qat_dh_output_params dh; member
131 struct qat_dh_ctx *dh; member
135 struct kpp_request *dh; member
159 struct kpp_request *areq = req->areq.dh; in qat_dh_cb()
160 struct device *dev = &GET_DEV(req->ctx.dh->inst->accel_dev); in qat_dh_cb()
167 dma_unmap_single(dev, req->in.dh.in.b, req->ctx.dh->p_size, in qat_dh_cb()
172 areq->dst_len = req->ctx.dh->p_size; in qat_dh_cb()
179 dma_unmap_single(dev, req->out.dh.r, req->ctx.dh->p_size, in qat_dh_cb()
253 qat_req->ctx.dh = ctx; in qat_dh_compute_value()
[all …]
/linux-6.1.9/include/linux/platform_data/x86/
Dsimatic-ipc.h65 simatic_ipc_find_dmi_entry_helper(const struct dmi_header *dh, void *_data) in simatic_ipc_find_dmi_entry_helper() argument
69 if (dh->type != SIMATIC_IPC_DMI_ENTRY_OEM) in simatic_ipc_find_dmi_entry_helper()
72 *id = simatic_ipc_get_station_id((u8 *)dh, dh->length); in simatic_ipc_find_dmi_entry_helper()
/linux-6.1.9/Documentation/devicetree/bindings/arm/stm32/
Dstm32.yaml64 - const: dh,stm32mp153c-dhcom-drc02
65 - const: dh,stm32mp153c-dhcom-som
70 - const: dh,stm32mp153c-dhcor-drc-compact
71 - const: dh,stm32mp153c-dhcor-som
109 - const: dh,stm32mp157a-dhcor-som
115 - dh,stm32mp157c-dhcom-pdk2
116 - dh,stm32mp157c-dhcom-picoitx
117 - const: dh,stm32mp157c-dhcom-som
/linux-6.1.9/crypto/
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()
66 int __crypto_dh_decode_key(const char *buf, unsigned int len, struct dh *params) in __crypto_dh_decode_key()
94 int crypto_dh_decode_key(const char *buf, unsigned int len, struct dh *params) in crypto_dh_decode_key()
/linux-6.1.9/drivers/md/
Ddm-snap-persistent.c305 struct disk_header *dh; in read_header() local
335 dh = ps->header_area; in read_header()
337 if (le32_to_cpu(dh->magic) == 0) { in read_header()
342 if (le32_to_cpu(dh->magic) != SNAP_MAGIC) { in read_header()
349 ps->valid = le32_to_cpu(dh->valid); in read_header()
350 ps->version = le32_to_cpu(dh->version); in read_header()
351 chunk_size = le32_to_cpu(dh->chunk_size); in read_header()
382 struct disk_header *dh; in write_header() local
386 dh = ps->header_area; in write_header()
387 dh->magic = cpu_to_le32(SNAP_MAGIC); in write_header()
[all …]
/linux-6.1.9/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()
/linux-6.1.9/drivers/block/drbd/
Ddrbd_nl.c3222 struct drbd_genlmsghdr *dh; in drbd_adm_dump_resources() local
3247 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_resources()
3251 if (!dh) in drbd_adm_dump_resources()
3253 dh->minor = -1U; in drbd_adm_dump_resources()
3254 dh->ret_code = NO_ERROR; in drbd_adm_dump_resources()
3270 genlmsg_end(skb, dh); in drbd_adm_dump_resources()
3337 struct drbd_genlmsghdr *dh; in drbd_adm_dump_devices() local
3370 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_devices()
3374 if (!dh) in drbd_adm_dump_devices()
3376 dh->ret_code = retcode; in drbd_adm_dump_devices()
[all …]
/linux-6.1.9/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
/linux-6.1.9/security/keys/
Ddh.c60 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()
147 struct dh dh_inputs; in __keyctl_dh_compute()
/linux-6.1.9/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()
/linux-6.1.9/security/
Dlsm_audit.c72 struct dccp_hdr *dh = dccp_hdr(skb); in ipv4_skb_to_auditdata() local
74 ad->u.net->sport = dh->dccph_sport; in ipv4_skb_to_auditdata()
75 ad->u.net->dport = dh->dccph_dport; in ipv4_skb_to_auditdata()
144 struct dccp_hdr _dccph, *dh; in ipv6_skb_to_auditdata() local
146 dh = skb_header_pointer(skb, offset, sizeof(_dccph), &_dccph); in ipv6_skb_to_auditdata()
147 if (dh == NULL) in ipv6_skb_to_auditdata()
150 ad->u.net->sport = dh->dccph_sport; in ipv6_skb_to_auditdata()
151 ad->u.net->dport = dh->dccph_dport; in ipv6_skb_to_auditdata()
/linux-6.1.9/drivers/crypto/hisilicon/hpre/
Dhpre_crypto.c125 struct hpre_dh_ctx dh; member
140 struct kpp_request *dh; member
431 areq = req->areq.dh; in hpre_dh_cb()
536 h_req->areq.dh = kreq; in hpre_msg_request_set()
539 msg->key = cpu_to_le64(ctx->dh.dma_xa_p); in hpre_msg_request_set()
598 msg->in = cpu_to_le64(ctx->dh.dma_g); in hpre_dh_compute_value()
643 static int hpre_dh_set_params(struct hpre_ctx *ctx, struct dh *params) in hpre_dh_set_params()
656 ctx->dh.xa_p = dma_alloc_coherent(dev, sz << 1, in hpre_dh_set_params()
657 &ctx->dh.dma_xa_p, GFP_KERNEL); in hpre_dh_set_params()
658 if (!ctx->dh.xa_p) in hpre_dh_set_params()
[all …]
/linux-6.1.9/arch/arm/boot/dts/
Dimx6dl-dhcom-picoitx.dts18 compatible = "dh,imx6dl-dhcom-picoitx", "dh,imx6dl-dhcom-som",

1234