/linux-master/include/crypto/ |
H A D | dh.h | 23 * struct dh - define a DH private key 32 struct dh { struct 51 unsigned int crypto_dh_key_len(const struct dh *params); 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-master/net/netfilter/ |
H A D | xt_dccp.c | 37 const struct dccp_hdr *dh, 42 unsigned int optoff = __dccp_hdr_len(dh); 43 unsigned int optlen = dh->dccph_doff*4 - __dccp_hdr_len(dh); 46 if (dh->dccph_doff * 4 < __dccp_hdr_len(dh)) 83 match_types(const struct dccp_hdr *dh, u_int16_t typemask) argument 85 return typemask & (1 << dh->dccph_type); 90 const struct dccp_hdr *dh, bool *hotdrop) 92 return dccp_find_option(option, skb, protoff, dh, hotdro 34 dccp_find_option(u_int8_t option, const struct sk_buff *skb, unsigned int protoff, const struct dccp_hdr *dh, bool *hotdrop) argument 89 match_option(u_int8_t option, const struct sk_buff *skb, unsigned int protoff, const struct dccp_hdr *dh, bool *hotdrop) argument 99 const struct dccp_hdr *dh; local [all...] |
H A D | xt_hashlimit.c | 366 struct dsthash_ent *dh; local 370 hlist_for_each_entry_safe(dh, n, &ht->hash[i], node) { 371 if (time_after_eq(jiffies, dh->expires) || select_all) 372 dsthash_free(ht, dh); 529 static void rateinfo_recalc(struct dsthash_ent *dh, unsigned long now, argument 532 unsigned long delta = now - dh->rateinfo.prev; 539 u64 interval = dh->rateinfo.interval * HZ; 544 dh->rateinfo.prev = now; 545 dh->rateinfo.prev_window = 546 ((dh 573 rateinfo_init(struct dsthash_ent *dh, struct xt_hashlimit_htable *hinfo, int revision) argument 709 hashlimit_byte_cost(unsigned int len, struct dsthash_ent *dh) argument 730 struct dsthash_ent *dh; local [all...] |
H A D | nf_conntrack_proto_dccp.c | 387 const struct dccp_hdr *dh, 395 state = dccp_state_table[CT_DCCP_ROLE_CLIENT][dh->dccph_type][CT_DCCP_NONE]; 424 static u64 dccp_ack_seq(const struct dccp_hdr *dh) argument 428 dhack = (void *)dh + __dccp_basic_hdr_len(dh); 433 static bool dccp_error(const struct dccp_hdr *dh, argument 451 if (dh->dccph_doff * 4 < sizeof(struct dccp_hdr) || 452 dh->dccph_doff * 4 > dccp_len) { 458 if (dh->dccph_cscov) { 459 cscov = (dh 386 dccp_new(struct nf_conn *ct, const struct sk_buff *skb, const struct dccp_hdr *dh, const struct nf_hook_state *hook_state) argument 492 struct dccp_hdr dh; /* generic header part */ member in struct:nf_conntrack_dccp_buf 503 dccp_header_pointer(const struct sk_buff *skb, int offset, const struct dccp_hdr *dh, struct nf_conntrack_dccp_buf *buf) argument 524 struct dccp_hdr *dh; local [all...] |
/linux-master/net/dccp/ |
H A D | input.c | 187 const struct dccp_hdr *dh = dccp_hdr(skb); local 204 if (dh->dccph_type == DCCP_PKT_SYNC || 205 dh->dccph_type == DCCP_PKT_SYNCACK) { 227 if (dh->dccph_type == DCCP_PKT_CLOSEREQ || 228 dh->dccph_type == DCCP_PKT_CLOSE || 229 dh->dccph_type == DCCP_PKT_RESET) { 239 if (dh->dccph_type != DCCP_PKT_SYNC && 264 "sending SYNC...\n", dccp_packet_name(dh->dccph_type), 274 if (dh->dccph_type == DCCP_PKT_RESET) 284 const struct dccp_hdr *dh, cons 283 __dccp_rcv_established(struct sock *sk, struct sk_buff *skb, const struct dccp_hdr *dh, const unsigned int len) argument 364 dccp_rcv_established(struct sock *sk, struct sk_buff *skb, const struct dccp_hdr *dh, const unsigned int len) argument 384 dccp_rcv_request_sent_state_process(struct sock *sk, struct sk_buff *skb, const struct dccp_hdr *dh, const unsigned int len) argument 517 dccp_rcv_respond_partopen_state_process(struct sock *sk, struct sk_buff *skb, const struct dccp_hdr *dh, const unsigned int len) argument 571 dccp_rcv_state_process(struct sock *sk, struct sk_buff *skb, struct dccp_hdr *dh, unsigned int len) argument [all...] |
H A D | output.c | 49 struct dccp_hdr *dh; local 51 const u32 dccp_header_size = sizeof(*dh) + 100 dh = dccp_zeroed_hdr(skb, dccp_header_size); 101 dh->dccph_type = dcb->dccpd_type; 102 dh->dccph_sport = inet->inet_sport; 103 dh->dccph_dport = inet->inet_dport; 104 dh->dccph_doff = (dccp_header_size + dcb->dccpd_opt_len) / 4; 105 dh->dccph_ccval = dcb->dccpd_ccval; 106 dh->dccph_cscov = dp->dccps_pcslen; 108 dh 402 struct dccp_hdr *dh; local 464 struct dccp_hdr *rxdh = dccp_hdr(rcv_skb), *dh; local [all...] |
H A D | ipv4.c | 248 const struct dccp_hdr *dh; local 257 if (!pskb_may_pull(skb, offset + sizeof(*dh))) 259 dh = (struct dccp_hdr *)(skb->data + offset); 260 if (!pskb_may_pull(skb, offset + __dccp_basic_hdr_len(dh))) 263 dh = (struct dccp_hdr *)(skb->data + offset); 266 iph->daddr, dh->dccph_dport, 267 iph->saddr, ntohs(dh->dccph_sport), 278 seq = dccp_hdr_seq(dh); 384 struct dccp_hdr *dh = dccp_hdr(skb); local 387 dh 506 struct dccp_hdr *dh = dccp_hdr(skb); local 672 struct dccp_hdr *dh = dccp_hdr(skb); local 724 const struct dccp_hdr *dh; local 794 const struct dccp_hdr *dh; local [all...] |
H A D | dccp.h | 197 const struct dccp_hdr* dh = dccp_hdr(skb); 199 if (dh->dccph_cscov == 0) 201 return (dh->dccph_doff + dh->dccph_cscov - 1) * sizeof(u32); 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) 387 struct dccp_hdr_ext *dhx = (struct dccp_hdr_ext *)((void *)dh + 388 sizeof(*dh)); 389 dh [all...] |
H A D | ipv6.c | 59 struct dccp_hdr *dh = dccp_hdr(skb); local 62 dh->dccph_checksum = dccp_v6_csum_finish(skb, &np->saddr, &sk->sk_v6_daddr); 78 const struct dccp_hdr *dh; local 86 if (!pskb_may_pull(skb, offset + sizeof(*dh))) 88 dh = (struct dccp_hdr *)(skb->data + offset); 89 if (!pskb_may_pull(skb, offset + __dccp_basic_hdr_len(dh))) 92 dh = (struct dccp_hdr *)(skb->data + offset); 95 &hdr->daddr, dh->dccph_dport, 96 &hdr->saddr, ntohs(dh->dccph_sport), 109 seq = dccp_hdr_seq(dh); 230 struct dccp_hdr *dh = dccp_hdr(skb); local 697 const struct dccp_hdr *dh; local [all...] |
/linux-master/include/linux/ |
H A D | dccp.h | 78 static inline struct dccp_hdr_ext *dccp_hdrx(const struct dccp_hdr *dh) argument 80 return (struct dccp_hdr_ext *)((unsigned char *)dh + sizeof(*dh)); 83 static inline unsigned int __dccp_basic_hdr_len(const struct dccp_hdr *dh) argument 85 return sizeof(*dh) + (dh->dccph_x ? sizeof(struct dccp_hdr_ext) : 0); 90 const struct dccp_hdr *dh = dccp_hdr(skb); local 91 return __dccp_basic_hdr_len(dh); 94 static inline __u64 dccp_hdr_seq(const struct dccp_hdr *dh) argument 96 __u64 seq_nr = ntohs(dh 136 __dccp_hdr_len(const struct dccp_hdr *dh) argument [all...] |
/linux-master/include/linux/platform_data/x86/ |
H A D | simatic-ipc.h | 69 simatic_ipc_find_dmi_entry_helper(const struct dmi_header *dh, void *_data) argument 73 if (dh->type != SIMATIC_IPC_DMI_ENTRY_OEM) 76 *id = simatic_ipc_get_station_id((u8 *)dh, dh->length);
|
/linux-master/drivers/firmware/ |
H A D | dmi-sysfs.c | 35 struct dmi_header dh; member in struct:dmi_sysfs_entry 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, argument 133 if (dh->type != entry->dh.type) 149 data->ret = data->callback(entry, dh, data->private); 180 * dh. This includes both the formatted portion as well as the 183 static size_t dmi_entry_length(const struct dmi_header *dh) argument 185 const char *p = (const char *)dh; 203 dmi_entry_attr_show_helper(struct dmi_sysfs_entry *entry, const struct dmi_header *dh, void *_data) argument 401 dmi_sel_raw_read_helper(struct dmi_sysfs_entry *entry, const struct dmi_header *dh, void *_state) argument 527 dmi_entry_raw_read_helper(struct dmi_sysfs_entry *entry, const struct dmi_header *dh, void *_state) argument 584 dmi_sysfs_register_handle(const struct dmi_header *dh, void *_ret) argument [all...] |
/linux-master/crypto/ |
H A D | dh_helper.c | 10 #include <crypto/dh.h> 29 static inline unsigned int dh_data_size(const struct dh *p) 34 unsigned int crypto_dh_key_len(const struct dh *p) 40 int crypto_dh_encode_key(char *buf, unsigned int len, const struct dh *params) 66 int __crypto_dh_decode_key(const char *buf, unsigned int len, struct dh *params) 94 int crypto_dh_decode_key(const char *buf, unsigned int len, struct dh *params)
|
/linux-master/fs/quota/ |
H A D | quota_tree.c | 93 struct qt_disk_dqdbheader *dh) 98 le32_to_cpu(dh->dqdh_next_free), 0, 103 le32_to_cpu(dh->dqdh_prev_free), 0, 108 le16_to_cpu(dh->dqdh_entries), 0, 118 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; local 128 ret = check_dquot_block_header(info, dh); 131 info->dqi_free_blk = le32_to_cpu(dh->dqdh_next_free); 151 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; local 154 dh->dqdh_next_free = cpu_to_le32(info->dqi_free_blk); 155 dh 92 check_dquot_block_header(struct qtree_mem_dqinfo *info, struct qt_disk_dqdbheader *dh) argument 170 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; local 217 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; local 263 struct qt_disk_dqdbheader *dh; local 482 struct qt_disk_dqdbheader *dh; local [all...] |
/linux-master/security/keys/ |
H A D | dh.c | 13 #include <crypto/dh.h> 60 static void dh_free_data(struct dh *dh) argument 62 kfree_sensitive(dh->key); 63 kfree_sensitive(dh->p); 64 kfree_sensitive(dh->g); 131 struct dh dh_inputs; 210 tfm = crypto_alloc_kpp("dh", 0, 0);
|
H A D | Makefile | 24 obj-$(CONFIG_KEY_DH_OPERATIONS) += dh.o
|
/linux-master/drivers/video/fbdev/omap2/omapfb/dss/ |
H A D | overlay.c | 143 u16 dw, dh; local 146 dh = mgr_timings->y_res; 170 if (dh < info->pos_y + outh) { 173 ovl->id, info->pos_y, outh, dh);
|
/linux-master/drivers/crypto/intel/qat/qat_common/ |
H A D | qat_asym_algs.c | 9 #include <crypto/dh.h> 118 struct qat_dh_input_params dh; member in union:qat_asym_request::__anon71 122 struct qat_dh_output_params dh; member in union:qat_asym_request::__anon72 131 struct qat_dh_ctx *dh; member in union:qat_asym_request::__anon73 135 struct kpp_request *dh; member in union:qat_asym_request::__anon74 159 struct kpp_request *areq = req->areq.dh; 160 struct device *dev = &GET_DEV(req->ctx.dh->inst->accel_dev); 167 dma_unmap_single(dev, req->in.dh.in.b, req->ctx.dh->p_size, 172 areq->dst_len = req->ctx.dh 1266 static struct kpp_alg dh = { variable in typeref:struct:kpp_alg [all...] |
/linux-master/drivers/md/ |
H A D | dm-snap-persistent.c | 309 struct disk_header *dh; local 339 dh = ps->header_area; 341 if (le32_to_cpu(dh->magic) == 0) { 346 if (le32_to_cpu(dh->magic) != SNAP_MAGIC) { 353 ps->valid = le32_to_cpu(dh->valid); 354 ps->version = le32_to_cpu(dh->version); 355 chunk_size = le32_to_cpu(dh->chunk_size); 385 struct disk_header *dh; local 389 dh = ps->header_area; 390 dh [all...] |
/linux-master/drivers/scsi/ |
H A D | scsi_dh.c | 105 struct scsi_device_handler *dh; local 110 dh = __scsi_dh_lookup(name); 111 if (!dh) { 113 dh = __scsi_dh_lookup(name); 116 return dh;
|
/linux-master/include/drm/ |
H A D | drm_rect.h | 114 * @dh: vertical adjustment 117 * and by @dh in the vertical direction, while keeping the center 120 * Positive @dw and @dh increase the size, negative values decrease it. 122 static inline void drm_rect_adjust_size(struct drm_rect *r, int dw, int dh) argument 125 r->y1 -= dh >> 1; 127 r->y2 += (dh + 1) >> 1;
|
/linux-master/security/ |
H A D | lsm_audit.c | 72 struct dccp_hdr *dh = dccp_hdr(skb); local 74 ad->u.net->sport = dh->dccph_sport; 75 ad->u.net->dport = dh->dccph_dport; 144 struct dccp_hdr _dccph, *dh; local 146 dh = skb_header_pointer(skb, offset, sizeof(_dccph), &_dccph); 147 if (dh == NULL) 150 ad->u.net->sport = dh->dccph_sport; 151 ad->u.net->dport = dh->dccph_dport;
|
/linux-master/arch/x86/boot/ |
H A D | tty.c | 80 return oreg.dh;
|
/linux-master/drivers/block/drbd/ |
H A D | drbd_nl.c | 1391 struct drbd_genlmsghdr *dh = genl_info_userhdr(info); local 1393 return 0 != (dh->flags & DRBD_GENL_F_SET_DEFAULTS); 3236 struct drbd_genlmsghdr *dh; local 3261 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, 3265 if (!dh) 3267 dh->minor = -1U; 3268 dh->ret_code = NO_ERROR; 3284 genlmsg_end(skb, dh); 3351 struct drbd_genlmsghdr *dh; local 3384 dh 3440 struct drbd_genlmsghdr *dh; local 3603 struct drbd_genlmsghdr *dh; local 3850 struct drbd_genlmsghdr *dh; local 4271 struct drbd_genlmsghdr *dh = genl_info_userhdr(info); local 4562 struct drbd_genlmsghdr *dh; local 4614 struct drbd_genlmsghdr *dh; local 4664 struct drbd_genlmsghdr *dh; local 4715 struct drbd_genlmsghdr *dh; local 4766 struct drbd_genlmsghdr *dh; local 4808 struct drbd_genlmsghdr *dh; local [all...] |
/linux-master/drivers/crypto/hisilicon/hpre/ |
H A D | hpre_crypto.c | 5 #include <crypto/dh.h> 128 struct hpre_dh_ctx dh; member in union:hpre_ctx::__anon172 143 struct kpp_request *dh; member in union:hpre_asym_request::__anon173 297 /* when the data is dh's source, we should format it */ 444 areq = req->areq.dh; 549 h_req->areq.dh = kreq; 552 msg->key = cpu_to_le64(ctx->dh.dma_xa_p); 611 msg->in = cpu_to_le64(ctx->dh.dma_g); 656 static int hpre_dh_set_params(struct hpre_ctx *ctx, struct dh *params) 669 ctx->dh 2025 static struct kpp_alg dh = { variable in typeref:struct:kpp_alg [all...] |