Home
last modified time | relevance | path

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

12345

/openbmc/linux/net/netfilter/
H A 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 …]
H A 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 …]
H A Dnf_conntrack_proto_dccp.c387 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 …]
/openbmc/linux/net/dccp/
H A 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 …]
H A Dipv4.c248 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 …]
H A 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 …]
H A 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
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 …]
H A 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);
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()
/openbmc/linux/drivers/firmware/
H A 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 …]
/openbmc/linux/include/linux/
H A 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 …]
/openbmc/linux/include/crypto/
H A 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);
/openbmc/linux/fs/quota/
H A Dquota_tree.c93 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 …]
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A 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()
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 …]
/openbmc/linux/include/linux/platform_data/x86/
H A Dsimatic-ipc.h69 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()
/openbmc/qemu/hw/usb/
H A Dhost-libusb.c107 libusb_device_handle *dh; member
566 xfer->xfer->dev_handle = s->dh; in usb_host_iso_alloc()
960 if (s->dh != NULL) { in usb_host_open()
969 rc = libusb_open(dev, &s->dh); in usb_host_open()
977 rc = libusb_wrap_sys_device(ctx, hostfd, &s->dh); in usb_host_open()
982 dev = libusb_get_device(s->dh); in usb_host_open()
1042 libusb_get_string_descriptor_ascii(s->dh, s->ddesc.iProduct, in usb_host_open()
1061 if (s->dh != NULL) { in usb_host_open()
1063 libusb_reset_device(s->dh); in usb_host_open()
1065 libusb_close(s->dh); in usb_host_open()
[all …]
/openbmc/linux/crypto/
H A 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()
/openbmc/u-boot/lib/libavb/
H A Davb_descriptor.c72 const AvbDescriptor* dh = (const AvbDescriptor*)p; in avb_descriptor_foreach() local
73 avb_assert_aligned(dh); in avb_descriptor_foreach()
74 uint64_t nb_following = avb_be64toh(dh->num_bytes_following); in avb_descriptor_foreach()
87 if (foreach_func(dh, user_data) == 0) { in avb_descriptor_foreach()
/openbmc/linux/drivers/md/
H A Ddm-snap-persistent.c309 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 …]
/openbmc/linux/drivers/block/drbd/
H A Ddrbd_nl.c1399 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 …]
/openbmc/linux/security/keys/
H A 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()
131 struct dh dh_inputs; in __keyctl_dh_compute()
/openbmc/linux/drivers/video/fbdev/omap2/omapfb/dss/
H A 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()
/openbmc/linux/Documentation/crypto/
H A 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
/openbmc/linux/drivers/scsi/
H A 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()
/openbmc/linux/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c125 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 …]
/openbmc/qemu/dump/
H A Ddump.c967 DiskDumpHeader32 *dh = NULL; in create_header32() local
978 dh = g_malloc0(size); in create_header32()
980 memcpy(dh->signature, KDUMP_SIGNATURE, SIG_LEN); in create_header32()
981 dh->header_version = cpu_to_dump32(s, 6); in create_header32()
983 dh->block_size = cpu_to_dump32(s, block_size); in create_header32()
986 dh->sub_hdr_size = cpu_to_dump32(s, sub_hdr_size); in create_header32()
988 dh->max_mapnr = cpu_to_dump32(s, MIN(s->max_mapnr, UINT_MAX)); in create_header32()
989 dh->nr_cpus = cpu_to_dump32(s, s->nr_cpus); in create_header32()
991 dh->bitmap_blocks = cpu_to_dump32(s, bitmap_blocks); in create_header32()
992 strncpy(dh->utsname.machine, ELF_MACHINE_UNAME, sizeof(dh->utsname.machine)); in create_header32()
[all …]

12345