/linux-6.6.21/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 …]
|
/linux-6.6.21/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 …]
|
D | ipv6.c | 59 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 86 if (!pskb_may_pull(skb, offset + sizeof(*dh))) in dccp_v6_err() 88 dh = (struct dccp_hdr *)(skb->data + offset); in dccp_v6_err() 89 if (!pskb_may_pull(skb, offset + __dccp_basic_hdr_len(dh))) in dccp_v6_err() 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() [all …]
|
D | dccp.h | 197 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); 385 static inline void dccp_hdr_set_seq(struct dccp_hdr *dh, const u64 gss) in dccp_hdr_set_seq() argument 387 struct dccp_hdr_ext *dhx = (struct dccp_hdr_ext *)((void *)dh + in dccp_hdr_set_seq() 388 sizeof(*dh)); in dccp_hdr_set_seq() 389 dh->dccph_seq2 = 0; in dccp_hdr_set_seq() 390 dh->dccph_seq = htons((gss >> 32) & 0xfffff); in dccp_hdr_set_seq()
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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() 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.6.21/include/crypto/ |
D | dh.h | 32 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.6.21/fs/quota/ |
D | quota_tree.c | 87 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.6.21/Documentation/devicetree/bindings/arm/stm32/ |
D | stm32.yaml | 64 - const: dh,stm32mp151a-dhcor-testbench 65 - const: dh,stm32mp151a-dhcor-som 70 - const: dh,stm32mp153c-dhcom-drc02 71 - const: dh,stm32mp153c-dhcom-som 76 - const: dh,stm32mp153c-dhcor-drc-compact 77 - const: dh,stm32mp153c-dhcor-som 115 - const: dh,stm32mp157a-dhcor-som 121 - dh,stm32mp157c-dhcom-pdk2 122 - dh,stm32mp157c-dhcom-picoitx 123 - const: dh,stm32mp157c-dhcom-som
|
/linux-6.6.21/drivers/crypto/intel/qat/qat_common/ |
D | qat_asym_algs.c | 118 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() 173 dma_unmap_single(dev, req->out.dh.r, req->ctx.dh->p_size, in qat_dh_cb() 252 qat_req->ctx.dh = ctx; in qat_dh_compute_value() [all …]
|
/linux-6.6.21/include/linux/platform_data/x86/ |
D | simatic-ipc.h | 69 simatic_ipc_find_dmi_entry_helper(const struct dmi_header *dh, void *_data) in simatic_ipc_find_dmi_entry_helper() argument 73 if (dh->type != SIMATIC_IPC_DMI_ENTRY_OEM) in simatic_ipc_find_dmi_entry_helper() 76 *id = simatic_ipc_get_station_id((u8 *)dh, dh->length); in simatic_ipc_find_dmi_entry_helper()
|
/linux-6.6.21/crypto/ |
D | dh_helper.c | 29 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.6.21/drivers/md/ |
D | dm-snap-persistent.c | 309 struct disk_header *dh; in read_header() local 339 dh = ps->header_area; in read_header() 341 if (le32_to_cpu(dh->magic) == 0) { in read_header() 346 if (le32_to_cpu(dh->magic) != SNAP_MAGIC) { in read_header() 353 ps->valid = le32_to_cpu(dh->valid); in read_header() 354 ps->version = le32_to_cpu(dh->version); in read_header() 355 chunk_size = le32_to_cpu(dh->chunk_size); in read_header() 385 struct disk_header *dh; in write_header() local 389 dh = ps->header_area; in write_header() 390 dh->magic = cpu_to_le32(SNAP_MAGIC); in write_header() [all …]
|
/linux-6.6.21/drivers/block/drbd/ |
D | drbd_nl.c | 1399 struct drbd_genlmsghdr *dh = genl_info_userhdr(info); in should_set_defaults() local 1401 return 0 != (dh->flags & DRBD_GENL_F_SET_DEFAULTS); in should_set_defaults() 3245 struct drbd_genlmsghdr *dh; in drbd_adm_dump_resources() local 3270 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_resources() 3274 if (!dh) in drbd_adm_dump_resources() 3276 dh->minor = -1U; in drbd_adm_dump_resources() 3277 dh->ret_code = NO_ERROR; in drbd_adm_dump_resources() 3293 genlmsg_end(skb, dh); in drbd_adm_dump_resources() 3360 struct drbd_genlmsghdr *dh; in drbd_adm_dump_devices() local 3393 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_devices() [all …]
|
/linux-6.6.21/drivers/video/fbdev/omap2/omapfb/dss/ |
D | overlay.c | 143 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.6.21/security/keys/ |
D | dh.c | 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()
|
/linux-6.6.21/Documentation/crypto/ |
D | api-kpp.rst | 34 .. 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.6.21/drivers/scsi/ |
D | scsi_dh.c | 105 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.6.21/security/ |
D | lsm_audit.c | 72 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.6.21/drivers/crypto/hisilicon/hpre/ |
D | hpre_crypto.c | 125 struct hpre_dh_ctx dh; member 140 struct kpp_request *dh; member 441 areq = req->areq.dh; in hpre_dh_cb() 546 h_req->areq.dh = kreq; in hpre_msg_request_set() 549 msg->key = cpu_to_le64(ctx->dh.dma_xa_p); in hpre_msg_request_set() 608 msg->in = cpu_to_le64(ctx->dh.dma_g); in hpre_dh_compute_value() 653 static int hpre_dh_set_params(struct hpre_ctx *ctx, struct dh *params) in hpre_dh_set_params() 666 ctx->dh.xa_p = dma_alloc_coherent(dev, sz << 1, in hpre_dh_set_params() 667 &ctx->dh.dma_xa_p, GFP_KERNEL); in hpre_dh_set_params() 668 if (!ctx->dh.xa_p) in hpre_dh_set_params() [all …]
|
/linux-6.6.21/arch/arm/boot/dts/st/ |
D | stm32mp151a-dhcor-testbench.dts | 14 compatible = "dh,stm32mp151a-dhcor-testbench", 15 "dh,stm32mp151a-dhcor-som",
|