arch/x86/boot/boot.h
238
u8 dl, dh, edx2, edx3;
arch/x86/boot/edd.c
113
ei->legacy_max_head = oreg.dh;
arch/x86/boot/tty.c
80
return oreg.dh;
arch/x86/boot/video.c
31
boot_params.screen_info.orig_y = oreg.dh;
arch/x86/boot/video.c
310
ireg.dh = saved.cury;
crypto/dh.c
265
static struct kpp_alg dh = {
crypto/dh.c
463
struct dh params = {};
crypto/dh.c
55
static int dh_set_params(struct dh_ctx *ctx, struct dh *params)
crypto/dh.c
75
struct dh params;
crypto/dh.c
902
err = crypto_register_kpp(&dh);
crypto/dh.c
909
crypto_unregister_kpp(&dh);
crypto/dh.c
920
crypto_unregister_kpp(&dh);
crypto/dh_helper.c
29
static inline unsigned int dh_data_size(const struct dh *p)
crypto/dh_helper.c
34
unsigned int crypto_dh_key_len(const struct dh *p)
crypto/dh_helper.c
40
int crypto_dh_encode_key(char *buf, unsigned int len, const struct dh *params)
crypto/dh_helper.c
66
int __crypto_dh_decode_key(const char *buf, unsigned int len, struct dh *params)
crypto/dh_helper.c
94
int crypto_dh_decode_key(const char *buf, unsigned int len, struct dh *params)
drivers/block/drbd/drbd_nl.c
1410
struct drbd_genlmsghdr *dh = genl_info_userhdr(info);
drivers/block/drbd/drbd_nl.c
1412
return 0 != (dh->flags & DRBD_GENL_F_SET_DEFAULTS);
drivers/block/drbd/drbd_nl.c
3255
struct drbd_genlmsghdr *dh;
drivers/block/drbd/drbd_nl.c
3280
dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid,
drivers/block/drbd/drbd_nl.c
3284
if (!dh)
drivers/block/drbd/drbd_nl.c
3286
dh->minor = -1U;
drivers/block/drbd/drbd_nl.c
3287
dh->ret_code = NO_ERROR;
drivers/block/drbd/drbd_nl.c
3303
genlmsg_end(skb, dh);
drivers/block/drbd/drbd_nl.c
3370
struct drbd_genlmsghdr *dh;
drivers/block/drbd/drbd_nl.c
3403
dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid,
drivers/block/drbd/drbd_nl.c
3407
if (!dh)
drivers/block/drbd/drbd_nl.c
3409
dh->ret_code = retcode;
drivers/block/drbd/drbd_nl.c
3410
dh->minor = -1U;
drivers/block/drbd/drbd_nl.c
3412
dh->minor = device->minor;
drivers/block/drbd/drbd_nl.c
3436
genlmsg_end(skb, dh);
drivers/block/drbd/drbd_nl.c
3459
struct drbd_genlmsghdr *dh;
drivers/block/drbd/drbd_nl.c
3529
dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid,
drivers/block/drbd/drbd_nl.c
3533
if (!dh)
drivers/block/drbd/drbd_nl.c
3535
dh->ret_code = retcode;
drivers/block/drbd/drbd_nl.c
3536
dh->minor = -1U;
drivers/block/drbd/drbd_nl.c
3559
genlmsg_end(skb, dh);
drivers/block/drbd/drbd_nl.c
3622
struct drbd_genlmsghdr *dh;
drivers/block/drbd/drbd_nl.c
3671
dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid,
drivers/block/drbd/drbd_nl.c
3675
if (!dh)
drivers/block/drbd/drbd_nl.c
3677
dh->ret_code = retcode;
drivers/block/drbd/drbd_nl.c
3678
dh->minor = -1U;
drivers/block/drbd/drbd_nl.c
3683
dh->minor = minor;
drivers/block/drbd/drbd_nl.c
3698
genlmsg_end(skb, dh);
drivers/block/drbd/drbd_nl.c
3869
struct drbd_genlmsghdr *dh;
drivers/block/drbd/drbd_nl.c
3932
dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid,
drivers/block/drbd/drbd_nl.c
3935
if (!dh)
drivers/block/drbd/drbd_nl.c
3944
dh->minor = -1U;
drivers/block/drbd/drbd_nl.c
3945
dh->ret_code = NO_ERROR;
drivers/block/drbd/drbd_nl.c
3962
dh->minor = device_to_minor(device);
drivers/block/drbd/drbd_nl.c
3963
dh->ret_code = NO_ERROR;
drivers/block/drbd/drbd_nl.c
3967
genlmsg_cancel(skb, dh);
drivers/block/drbd/drbd_nl.c
3971
genlmsg_end(skb, dh);
drivers/block/drbd/drbd_nl.c
4290
struct drbd_genlmsghdr *dh = genl_info_userhdr(info);
drivers/block/drbd/drbd_nl.c
4299
if (dh->minor > MINORMASK) {
drivers/block/drbd/drbd_nl.c
4320
retcode = drbd_create_device(&adm_ctx, dh->minor);
drivers/block/drbd/drbd_nl.c
4328
device = minor_to_device(dh->minor);
drivers/block/drbd/drbd_nl.c
4581
struct drbd_genlmsghdr *dh;
drivers/block/drbd/drbd_nl.c
4595
dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_RESOURCE_STATE);
drivers/block/drbd/drbd_nl.c
4596
if (!dh)
drivers/block/drbd/drbd_nl.c
4598
dh->minor = -1U;
drivers/block/drbd/drbd_nl.c
4599
dh->ret_code = NO_ERROR;
drivers/block/drbd/drbd_nl.c
4609
genlmsg_end(skb, dh);
drivers/block/drbd/drbd_nl.c
4633
struct drbd_genlmsghdr *dh;
drivers/block/drbd/drbd_nl.c
4647
dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_DEVICE_STATE);
drivers/block/drbd/drbd_nl.c
4648
if (!dh)
drivers/block/drbd/drbd_nl.c
4650
dh->minor = device->minor;
drivers/block/drbd/drbd_nl.c
4651
dh->ret_code = NO_ERROR;
drivers/block/drbd/drbd_nl.c
4659
genlmsg_end(skb, dh);
drivers/block/drbd/drbd_nl.c
4683
struct drbd_genlmsghdr *dh;
drivers/block/drbd/drbd_nl.c
4697
dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_CONNECTION_STATE);
drivers/block/drbd/drbd_nl.c
4698
if (!dh)
drivers/block/drbd/drbd_nl.c
4700
dh->minor = -1U;
drivers/block/drbd/drbd_nl.c
4701
dh->ret_code = NO_ERROR;
drivers/block/drbd/drbd_nl.c
4709
genlmsg_end(skb, dh);
drivers/block/drbd/drbd_nl.c
4734
struct drbd_genlmsghdr *dh;
drivers/block/drbd/drbd_nl.c
4748
dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_PEER_DEVICE_STATE);
drivers/block/drbd/drbd_nl.c
4749
if (!dh)
drivers/block/drbd/drbd_nl.c
4751
dh->minor = -1U;
drivers/block/drbd/drbd_nl.c
4752
dh->ret_code = NO_ERROR;
drivers/block/drbd/drbd_nl.c
4760
genlmsg_end(skb, dh);
drivers/block/drbd/drbd_nl.c
4785
struct drbd_genlmsghdr *dh;
drivers/block/drbd/drbd_nl.c
4798
dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_HELPER);
drivers/block/drbd/drbd_nl.c
4799
if (!dh)
drivers/block/drbd/drbd_nl.c
4801
dh->minor = device ? device->minor : -1;
drivers/block/drbd/drbd_nl.c
4802
dh->ret_code = NO_ERROR;
drivers/block/drbd/drbd_nl.c
4808
genlmsg_end(skb, dh);
drivers/block/drbd/drbd_nl.c
4827
struct drbd_genlmsghdr *dh;
drivers/block/drbd/drbd_nl.c
4831
dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_INITIAL_STATE_DONE);
drivers/block/drbd/drbd_nl.c
4832
if (!dh)
drivers/block/drbd/drbd_nl.c
4834
dh->minor = -1U;
drivers/block/drbd/drbd_nl.c
4835
dh->ret_code = NO_ERROR;
drivers/block/drbd/drbd_nl.c
4838
genlmsg_end(skb, dh);
drivers/crypto/hisilicon/hpre/hpre_crypto.c
118
struct hpre_dh_ctx dh;
drivers/crypto/hisilicon/hpre/hpre_crypto.c
135
struct kpp_request *dh;
drivers/crypto/hisilicon/hpre/hpre_crypto.c
1710
static struct kpp_alg dh = {
drivers/crypto/hisilicon/hpre/hpre_crypto.c
1806
ret = crypto_register_kpp(&dh);
drivers/crypto/hisilicon/hpre/hpre_crypto.c
1818
crypto_unregister_kpp(&dh);
drivers/crypto/hisilicon/hpre/hpre_crypto.c
335
areq = req->areq.dh;
drivers/crypto/hisilicon/hpre/hpre_crypto.c
435
h_req->areq.dh = kreq;
drivers/crypto/hisilicon/hpre/hpre_crypto.c
438
msg->key = cpu_to_le64(ctx->dh.dma_xa_p);
drivers/crypto/hisilicon/hpre/hpre_crypto.c
494
msg->in = cpu_to_le64(ctx->dh.dma_g);
drivers/crypto/hisilicon/hpre/hpre_crypto.c
523
kpp_request_set_tfm(fb_req, ctx->dh.soft_tfm);
drivers/crypto/hisilicon/hpre/hpre_crypto.c
580
static int hpre_dh_set_params(struct hpre_ctx *ctx, struct dh *params)
drivers/crypto/hisilicon/hpre/hpre_crypto.c
586
ctx->dh.xa_p = dma_alloc_coherent(dev, sz << 1,
drivers/crypto/hisilicon/hpre/hpre_crypto.c
587
&ctx->dh.dma_xa_p, GFP_KERNEL);
drivers/crypto/hisilicon/hpre/hpre_crypto.c
588
if (!ctx->dh.xa_p)
drivers/crypto/hisilicon/hpre/hpre_crypto.c
591
memcpy(ctx->dh.xa_p + sz, params->p, sz);
drivers/crypto/hisilicon/hpre/hpre_crypto.c
599
ctx->dh.g = dma_alloc_coherent(dev, sz, &ctx->dh.dma_g, GFP_KERNEL);
drivers/crypto/hisilicon/hpre/hpre_crypto.c
600
if (!ctx->dh.g) {
drivers/crypto/hisilicon/hpre/hpre_crypto.c
601
dma_free_coherent(dev, sz << 1, ctx->dh.xa_p,
drivers/crypto/hisilicon/hpre/hpre_crypto.c
602
ctx->dh.dma_xa_p);
drivers/crypto/hisilicon/hpre/hpre_crypto.c
603
ctx->dh.xa_p = NULL;
drivers/crypto/hisilicon/hpre/hpre_crypto.c
607
memcpy(ctx->dh.g + (sz - params->g_size), params->g, params->g_size);
drivers/crypto/hisilicon/hpre/hpre_crypto.c
620
if (ctx->dh.g) {
drivers/crypto/hisilicon/hpre/hpre_crypto.c
621
dma_free_coherent(dev, sz, ctx->dh.g, ctx->dh.dma_g);
drivers/crypto/hisilicon/hpre/hpre_crypto.c
622
ctx->dh.g = NULL;
drivers/crypto/hisilicon/hpre/hpre_crypto.c
625
if (ctx->dh.xa_p) {
drivers/crypto/hisilicon/hpre/hpre_crypto.c
626
memzero_explicit(ctx->dh.xa_p, sz);
drivers/crypto/hisilicon/hpre/hpre_crypto.c
627
dma_free_coherent(dev, sz << 1, ctx->dh.xa_p,
drivers/crypto/hisilicon/hpre/hpre_crypto.c
628
ctx->dh.dma_xa_p);
drivers/crypto/hisilicon/hpre/hpre_crypto.c
629
ctx->dh.xa_p = NULL;
drivers/crypto/hisilicon/hpre/hpre_crypto.c
639
struct dh params;
drivers/crypto/hisilicon/hpre/hpre_crypto.c
659
memcpy(ctx->dh.xa_p + (ctx->key_sz - params.key_size), params.key,
drivers/crypto/hisilicon/hpre/hpre_crypto.c
670
return crypto_kpp_set_secret(ctx->dh.soft_tfm, buf, len);
drivers/crypto/hisilicon/hpre/hpre_crypto.c
678
return crypto_kpp_maxsize(ctx->dh.soft_tfm);
drivers/crypto/hisilicon/hpre/hpre_crypto.c
690
ctx->dh.soft_tfm = crypto_alloc_kpp(alg, 0, CRYPTO_ALG_NEED_FALLBACK);
drivers/crypto/hisilicon/hpre/hpre_crypto.c
691
if (IS_ERR(ctx->dh.soft_tfm)) {
drivers/crypto/hisilicon/hpre/hpre_crypto.c
693
return PTR_ERR(ctx->dh.soft_tfm);
drivers/crypto/hisilicon/hpre/hpre_crypto.c
696
crypto_kpp_set_flags(ctx->dh.soft_tfm, crypto_kpp_get_flags(tfm));
drivers/crypto/hisilicon/hpre/hpre_crypto.c
699
sizeof(struct kpp_request) + crypto_kpp_reqsize(ctx->dh.soft_tfm));
drivers/crypto/hisilicon/hpre/hpre_crypto.c
704
crypto_free_kpp(ctx->dh.soft_tfm);
drivers/crypto/hisilicon/hpre/hpre_crypto.c
718
crypto_free_kpp(ctx->dh.soft_tfm);
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
120
struct qat_dh_input_params dh;
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
124
struct qat_dh_output_params dh;
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
1319
static struct kpp_alg dh = {
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
133
struct qat_dh_ctx *dh;
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
1346
ret = crypto_register_kpp(&dh);
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
1358
crypto_unregister_kpp(&dh);
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
137
struct kpp_request *dh;
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
161
struct kpp_request *areq = req->areq.dh;
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
162
struct device *dev = &GET_DEV(req->ctx.dh->inst->accel_dev);
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
169
dma_unmap_single(dev, req->in.dh.in.b, req->ctx.dh->p_size,
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
174
areq->dst_len = req->ctx.dh->p_size;
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
175
dma_unmap_single(dev, req->out.dh.r, req->ctx.dh->p_size,
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
254
qat_req->ctx.dh = ctx;
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
255
qat_req->areq.dh = req;
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
265
qat_req->in.dh.in.xa = ctx->dma_xa;
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
266
qat_req->in.dh.in.p = ctx->dma_p;
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
270
qat_req->in.dh.in_g2.xa = ctx->dma_xa;
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
271
qat_req->in.dh.in_g2.p = ctx->dma_p;
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
274
qat_req->in.dh.in.b = ctx->dma_g;
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
275
qat_req->in.dh.in.xa = ctx->dma_xa;
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
276
qat_req->in.dh.in.p = ctx->dma_p;
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
306
qat_req->in.dh.in.b = dma_map_single(dev, vaddr, ctx->p_size,
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
308
if (unlikely(dma_mapping_error(dev, qat_req->in.dh.in.b)))
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
328
qat_req->out.dh.r = dma_map_single(dev, vaddr, ctx->p_size,
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
330
if (unlikely(dma_mapping_error(dev, qat_req->out.dh.r)))
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
333
qat_req->in.dh.in_tab[n_input_params] = 0;
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
334
qat_req->out.dh.out_tab[1] = 0;
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
336
qat_req->phy_in = dma_map_single(dev, &qat_req->in.dh,
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
342
qat_req->phy_out = dma_map_single(dev, &qat_req->out.dh,
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
371
if (!dma_mapping_error(dev, qat_req->out.dh.r))
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
372
dma_unmap_single(dev, qat_req->out.dh.r, ctx->p_size,
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
377
if (!dma_mapping_error(dev, qat_req->in.dh.in.b))
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
378
dma_unmap_single(dev, qat_req->in.dh.in.b,
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
428
static int qat_dh_set_params(struct qat_dh_ctx *ctx, struct dh *params)
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
480
struct dh params;
drivers/edac/ghes_edac.c
204
static void enumerate_dimms(const struct dmi_header *dh, void *arg)
drivers/edac/ghes_edac.c
206
struct memdev_dmi_entry *entry = (struct memdev_dmi_entry *)dh;
drivers/edac/ghes_edac.c
210
if (dh->type != DMI_ENTRY_MEM_DEVICE)
drivers/edac/i7core_edac.c
1875
static void decode_dclk(const struct dmi_header *dh, void *_dclk_freq)
drivers/edac/i7core_edac.c
1883
if (dh->type == DMI_ENTRY_MEM_DEVICE) {
drivers/edac/i7core_edac.c
1885
(struct memdev_dmi_entry *)dh;
drivers/firmware/dmi-sysfs.c
116
const struct dmi_header *dh, void *);
drivers/firmware/dmi-sysfs.c
126
static void find_dmi_entry_helper(const struct dmi_header *dh,
drivers/firmware/dmi-sysfs.c
133
if (dh->type != entry->dh.type)
drivers/firmware/dmi-sysfs.c
149
data->ret = data->callback(entry, dh, data->private);
drivers/firmware/dmi-sysfs.c
183
static size_t dmi_entry_length(const struct dmi_header *dh)
drivers/firmware/dmi-sysfs.c
185
const char *p = (const char *)dh;
drivers/firmware/dmi-sysfs.c
187
p += dh->length;
drivers/firmware/dmi-sysfs.c
192
return 2 + p - (const char *)dh;
drivers/firmware/dmi-sysfs.c
204
const struct dmi_header *dh,
drivers/firmware/dmi-sysfs.c
212
return attr->show(entry, dh, data->buf);
drivers/firmware/dmi-sysfs.c
270
const struct dmi_header *dh, \
drivers/firmware/dmi-sysfs.c
274
if (sizeof(sel) > dmi_entry_length(dh)) \
drivers/firmware/dmi-sysfs.c
276
memcpy(&sel, dh, sizeof(sel)); \
drivers/firmware/dmi-sysfs.c
35
struct dmi_header dh;
drivers/firmware/dmi-sysfs.c
402
const struct dmi_header *dh,
drivers/firmware/dmi-sysfs.c
408
if (sizeof(sel) > dmi_entry_length(dh))
drivers/firmware/dmi-sysfs.c
411
memcpy(&sel, dh, sizeof(sel));
drivers/firmware/dmi-sysfs.c
483
return sprintf(buf, "%d\n", entry->dh.length);
drivers/firmware/dmi-sysfs.c
488
return sprintf(buf, "%d\n", entry->dh.handle);
drivers/firmware/dmi-sysfs.c
493
return sprintf(buf, "%d\n", entry->dh.type);
drivers/firmware/dmi-sysfs.c
525
const struct dmi_header *dh,
drivers/firmware/dmi-sysfs.c
531
entry_length = dmi_entry_length(dh);
drivers/firmware/dmi-sysfs.c
534
&state->pos, dh, entry_length);
drivers/firmware/dmi-sysfs.c
578
static void __init dmi_sysfs_register_handle(const struct dmi_header *dh,
drivers/firmware/dmi-sysfs.c
596
memcpy(&entry->dh, dh, sizeof(*dh));
drivers/firmware/dmi-sysfs.c
597
entry->instance = instance_counts[dh->type]++;
drivers/firmware/dmi-sysfs.c
602
"%d-%d", dh->type, entry->instance);
drivers/firmware/dmi-sysfs.c
615
switch (dh->type) {
drivers/firmware/dmi-sysfs.c
70
const struct dmi_header *dh,
drivers/fsi/fsi-occ.c
217
size_t dh = resp_len - parsed_len;
drivers/fsi/fsi-occ.c
218
size_t ffdc_len = (dh - 1) * 4; /* SBE words are four bytes */
drivers/fsi/fsi-sbefifo.c
224
u32 dh, s0, s1;
drivers/fsi/fsi-sbefifo.c
232
dh = be32_to_cpu(response[resp_len - 1]);
drivers/fsi/fsi-sbefifo.c
233
if (dh > resp_len || dh < 3) {
drivers/fsi/fsi-sbefifo.c
235
cmd >> 8, cmd & 0xff, dh, resp_len);
drivers/fsi/fsi-sbefifo.c
238
s0 = be32_to_cpu(response[resp_len - dh]);
drivers/fsi/fsi-sbefifo.c
239
s1 = be32_to_cpu(response[resp_len - dh + 1]);
drivers/fsi/fsi-sbefifo.c
246
ffdc_sz = dh - 3;
drivers/fsi/fsi-sbefifo.c
250
sbefifo_dump_ffdc(dev, &response[resp_len - dh + 2],
drivers/fsi/fsi-sbefifo.c
254
*data_len = resp_len - dh;
drivers/gpu/drm/exynos/exynos_drm_ipp.c
528
int dw, dh;
drivers/gpu/drm/exynos/exynos_drm_ipp.c
540
dh = (!swap) ? dst->h : dst->w;
drivers/gpu/drm/exynos/exynos_drm_ipp.c
543
!__scale_limit_check(src->h, dh, lv->min, lv->max))
drivers/gpu/drm/nouveau/dispnv50/atom.h
251
u16 dh;
drivers/gpu/drm/nouveau/dispnv50/wndw.c
336
asyw->scale.dh = asyw->state.crtc_h;
drivers/md/dm-snap-persistent.c
309
struct disk_header *dh;
drivers/md/dm-snap-persistent.c
339
dh = ps->header_area;
drivers/md/dm-snap-persistent.c
341
if (le32_to_cpu(dh->magic) == 0) {
drivers/md/dm-snap-persistent.c
346
if (le32_to_cpu(dh->magic) != SNAP_MAGIC) {
drivers/md/dm-snap-persistent.c
353
ps->valid = le32_to_cpu(dh->valid);
drivers/md/dm-snap-persistent.c
354
ps->version = le32_to_cpu(dh->version);
drivers/md/dm-snap-persistent.c
355
chunk_size = le32_to_cpu(dh->chunk_size);
drivers/md/dm-snap-persistent.c
385
struct disk_header *dh;
drivers/md/dm-snap-persistent.c
389
dh = ps->header_area;
drivers/md/dm-snap-persistent.c
390
dh->magic = cpu_to_le32(SNAP_MAGIC);
drivers/md/dm-snap-persistent.c
391
dh->valid = cpu_to_le32(ps->valid);
drivers/md/dm-snap-persistent.c
392
dh->version = cpu_to_le32(ps->version);
drivers/md/dm-snap-persistent.c
393
dh->chunk_size = cpu_to_le32(ps->store->chunk_size);
drivers/media/platform/samsung/exynos-gsc/gsc-core.c
606
int dh, int rot, int out_path)
drivers/media/platform/samsung/exynos-gsc/gsc-core.c
616
tmp_w = dh;
drivers/media/platform/samsung/exynos-gsc/gsc-core.c
620
tmp_h = dh;
drivers/media/platform/samsung/exynos-gsc/gsc-core.h
409
int dh, int rot, int out_path);
drivers/media/platform/samsung/exynos4-is/fimc-core.c
192
int dw, int dh, int rotation)
drivers/media/platform/samsung/exynos4-is/fimc-core.c
195
swap(dw, dh);
drivers/media/platform/samsung/exynos4-is/fimc-core.c
198
return (sw == dw && sh == dh) ? 0 : -EINVAL;
drivers/media/platform/samsung/exynos4-is/fimc-core.c
200
if ((sw >= SCALER_MAX_HRATIO * dw) || (sh >= SCALER_MAX_VRATIO * dh))
drivers/media/platform/samsung/exynos4-is/fimc-core.h
629
int dw, int dh, int rotation);
drivers/net/ethernet/sun/niu.c
9625
dma_addr_t dh;
drivers/net/ethernet/sun/niu.c
9628
ret = dma_alloc_coherent(dev, size, &dh, flag);
drivers/net/ethernet/sun/niu.c
9630
*handle = dh;
drivers/scsi/scsi_dh.c
105
struct scsi_device_handler *dh;
drivers/scsi/scsi_dh.c
110
dh = __scsi_dh_lookup(name);
drivers/scsi/scsi_dh.c
111
if (!dh) {
drivers/scsi/scsi_dh.c
113
dh = __scsi_dh_lookup(name);
drivers/scsi/scsi_dh.c
116
return dh;
drivers/video/fbdev/mb862xx/mb862xxfb.h
13
unsigned short dh;
drivers/video/fbdev/mb862xx/mb862xxfbdrv.c
322
if (l1_cfg->dh == 0 || l1_cfg->dw == 0)
drivers/video/fbdev/mb862xx/mb862xxfbdrv.c
324
if ((l1_cfg->sw >= l1_cfg->dw) && (l1_cfg->sh >= l1_cfg->dh)) {
drivers/video/fbdev/mb862xx/mb862xxfbdrv.c
327
pack((l1_cfg->sh << 11) / l1_cfg->dh,
drivers/video/fbdev/mb862xx/mb862xxfbdrv.c
332
(l1_cfg->sh <= l1_cfg->dh)) {
drivers/video/fbdev/mb862xx/mb862xxfbdrv.c
335
pack((l1_cfg->sh << 11) / l1_cfg->dh,
drivers/video/fbdev/mb862xx/mb862xxfbdrv.c
340
pack(l1_cfg->dw >> 1, l1_cfg->dh));
drivers/video/fbdev/mb862xx/mb862xxfbdrv.c
369
pack(l1_cfg->dh - 1, l1_cfg->dw));
drivers/video/fbdev/mb862xx/mb862xxfbdrv.c
523
par->l1_cfg.dh = 576;
drivers/video/fbdev/omap2/omapfb/dss/overlay.c
143
u16 dw, dh;
drivers/video/fbdev/omap2/omapfb/dss/overlay.c
146
dh = mgr_timings->y_res;
drivers/video/fbdev/omap2/omapfb/dss/overlay.c
170
if (dh < info->pos_y + outh) {
drivers/video/fbdev/omap2/omapfb/dss/overlay.c
173
ovl->id, info->pos_y, outh, dh);
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c
281
u16 dw, dh;
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c
289
display->driver->get_resolution(display, &dw, &dh);
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c
291
if (x + w > dw || y + h > dh)
drivers/video/fbdev/sis/init.c
2857
unsigned short dl, unsigned short ah, unsigned short al, unsigned short dh)
drivers/video/fbdev/sis/init.c
2862
case 0: d1 = dh; d2 = ah; d3 = al; break;
drivers/video/fbdev/sis/init.c
2863
case 1: d1 = ah; d2 = al; d3 = dh; break;
drivers/video/fbdev/sis/init.c
2864
default: d1 = al; d2 = dh; d3 = ah;
fs/quota/quota_tree.c
103
le32_to_cpu(dh->dqdh_prev_free), 0,
fs/quota/quota_tree.c
108
le16_to_cpu(dh->dqdh_entries), 0,
fs/quota/quota_tree.c
118
struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf;
fs/quota/quota_tree.c
128
ret = check_dquot_block_header(info, dh);
fs/quota/quota_tree.c
131
info->dqi_free_blk = le32_to_cpu(dh->dqdh_next_free);
fs/quota/quota_tree.c
151
struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf;
fs/quota/quota_tree.c
154
dh->dqdh_next_free = cpu_to_le32(info->dqi_free_blk);
fs/quota/quota_tree.c
155
dh->dqdh_prev_free = cpu_to_le32(0);
fs/quota/quota_tree.c
156
dh->dqdh_entries = cpu_to_le16(0);
fs/quota/quota_tree.c
170
struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf;
fs/quota/quota_tree.c
171
uint nextblk = le32_to_cpu(dh->dqdh_next_free);
fs/quota/quota_tree.c
172
uint prevblk = le32_to_cpu(dh->dqdh_prev_free);
fs/quota/quota_tree.c
182
dh->dqdh_prev_free;
fs/quota/quota_tree.c
192
dh->dqdh_next_free;
fs/quota/quota_tree.c
201
dh->dqdh_next_free = dh->dqdh_prev_free = cpu_to_le32(0);
fs/quota/quota_tree.c
217
struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf;
fs/quota/quota_tree.c
222
dh->dqdh_next_free = cpu_to_le32(info->dqi_free_entry);
fs/quota/quota_tree.c
223
dh->dqdh_prev_free = cpu_to_le32(0);
fs/quota/quota_tree.c
263
struct qt_disk_dqdbheader *dh;
fs/quota/quota_tree.c
272
dh = (struct qt_disk_dqdbheader *)buf;
fs/quota/quota_tree.c
278
*err = check_dquot_block_header(info, dh);
fs/quota/quota_tree.c
295
if (le16_to_cpu(dh->dqdh_entries) + 1 >= qtree_dqstr_in_blk(info)) {
fs/quota/quota_tree.c
303
le16_add_cpu(&dh->dqdh_entries, 1);
fs/quota/quota_tree.c
482
struct qt_disk_dqdbheader *dh;
fs/quota/quota_tree.c
501
dh = (struct qt_disk_dqdbheader *)buf;
fs/quota/quota_tree.c
502
ret = check_dquot_block_header(info, dh);
fs/quota/quota_tree.c
505
le16_add_cpu(&dh->dqdh_entries, -1);
fs/quota/quota_tree.c
506
if (!le16_to_cpu(dh->dqdh_entries)) { /* Block got free? */
fs/quota/quota_tree.c
519
if (le16_to_cpu(dh->dqdh_entries) ==
fs/quota/quota_tree.c
93
struct qt_disk_dqdbheader *dh)
fs/quota/quota_tree.c
98
le32_to_cpu(dh->dqdh_next_free), 0,
include/crypto/dh.h
51
unsigned int crypto_dh_key_len(const struct dh *params);
include/crypto/dh.h
66
int crypto_dh_encode_key(char *buf, unsigned int len, const struct dh *params);
include/crypto/dh.h
80
int crypto_dh_decode_key(const char *buf, unsigned int len, struct dh *params);
include/crypto/dh.h
96
struct dh *params);
include/drm/drm_rect.h
122
static inline void drm_rect_adjust_size(struct drm_rect *r, int dw, int dh)
include/drm/drm_rect.h
125
r->y1 -= dh >> 1;
include/drm/drm_rect.h
127
r->y2 += (dh + 1) >> 1;
include/linux/dccp.h
12
static inline unsigned int __dccp_basic_hdr_len(const struct dccp_hdr *dh)
include/linux/dccp.h
14
return sizeof(*dh) + (dh->dccph_x ? sizeof(struct dccp_hdr_ext) : 0);
include/linux/dccp.h
17
static inline __u64 dccp_hdr_seq(const struct dccp_hdr *dh)
include/linux/dccp.h
19
__u64 seq_nr = ntohs(dh->dccph_seq);
include/linux/dccp.h
21
if (dh->dccph_x != 0)
include/linux/dccp.h
22
seq_nr = (seq_nr << 32) + ntohl(dccp_hdrx(dh)->dccph_seq_low);
include/linux/dccp.h
24
seq_nr += (u32)dh->dccph_seq2 << 16;
include/linux/dccp.h
29
static inline unsigned int __dccp_hdr_len(const struct dccp_hdr *dh)
include/linux/dccp.h
31
return __dccp_basic_hdr_len(dh) +
include/linux/dccp.h
32
dccp_packet_hdr_len(dh->dccph_type);
include/linux/dccp.h
7
static inline struct dccp_hdr_ext *dccp_hdrx(const struct dccp_hdr *dh)
include/linux/dccp.h
9
return (struct dccp_hdr_ext *)((unsigned char *)dh + sizeof(*dh));
include/linux/platform_data/x86/simatic-ipc.h
69
simatic_ipc_find_dmi_entry_helper(const struct dmi_header *dh, void *_data)
include/linux/platform_data/x86/simatic-ipc.h
73
if (dh->type != SIMATIC_IPC_DMI_ENTRY_OEM)
include/linux/platform_data/x86/simatic-ipc.h
76
*id = simatic_ipc_get_station_id((u8 *)dh, dh->length);
net/netfilter/nft_exthdr.c
418
const struct dccp_hdr *dh;
net/netfilter/nft_exthdr.c
426
dh = skb_header_pointer(pkt->skb, thoff, sizeof(_dh), &_dh);
net/netfilter/nft_exthdr.c
427
if (!dh)
net/netfilter/nft_exthdr.c
430
dataoff = dh->dccph_doff * sizeof(u32);
net/netfilter/nft_exthdr.c
431
optoff = __dccp_hdr_len(dh);
net/netfilter/xt_dccp.c
105
dh = skb_header_pointer(skb, par->thoff, sizeof(_dh), &_dh);
net/netfilter/xt_dccp.c
106
if (dh == NULL) {
net/netfilter/xt_dccp.c
111
return DCCHECK(ntohs(dh->dccph_sport) >= info->spts[0]
net/netfilter/xt_dccp.c
112
&& ntohs(dh->dccph_sport) <= info->spts[1],
net/netfilter/xt_dccp.c
114
&& DCCHECK(ntohs(dh->dccph_dport) >= info->dpts[0]
net/netfilter/xt_dccp.c
115
&& ntohs(dh->dccph_dport) <= info->dpts[1],
net/netfilter/xt_dccp.c
117
&& DCCHECK(match_types(dh, info->typemask),
net/netfilter/xt_dccp.c
119
&& DCCHECK(match_option(info->option, skb, par->thoff, dh,
net/netfilter/xt_dccp.c
37
const struct dccp_hdr *dh,
net/netfilter/xt_dccp.c
42
unsigned int optoff = __dccp_hdr_len(dh);
net/netfilter/xt_dccp.c
43
unsigned int optlen = dh->dccph_doff*4 - __dccp_hdr_len(dh);
net/netfilter/xt_dccp.c
46
if (dh->dccph_doff * 4 < __dccp_hdr_len(dh))
net/netfilter/xt_dccp.c
83
match_types(const struct dccp_hdr *dh, u_int16_t typemask)
net/netfilter/xt_dccp.c
85
return typemask & (1 << dh->dccph_type);
net/netfilter/xt_dccp.c
90
const struct dccp_hdr *dh, bool *hotdrop)
net/netfilter/xt_dccp.c
92
return dccp_find_option(option, skb, protoff, dh, hotdrop);
net/netfilter/xt_dccp.c
99
const struct dccp_hdr *dh;
net/netfilter/xt_hashlimit.c
365
struct dsthash_ent *dh;
net/netfilter/xt_hashlimit.c
372
hlist_for_each_entry_safe(dh, n, head, node) {
net/netfilter/xt_hashlimit.c
373
if (time_after_eq(jiffies, dh->expires) || select_all)
net/netfilter/xt_hashlimit.c
374
dsthash_free(ht, dh);
net/netfilter/xt_hashlimit.c
531
static void rateinfo_recalc(struct dsthash_ent *dh, unsigned long now,
net/netfilter/xt_hashlimit.c
534
unsigned long delta = now - dh->rateinfo.prev;
net/netfilter/xt_hashlimit.c
541
u64 interval = dh->rateinfo.interval * HZ;
net/netfilter/xt_hashlimit.c
546
dh->rateinfo.prev = now;
net/netfilter/xt_hashlimit.c
547
dh->rateinfo.prev_window =
net/netfilter/xt_hashlimit.c
548
((dh->rateinfo.current_rate * interval) >
net/netfilter/xt_hashlimit.c
549
(delta * dh->rateinfo.rate));
net/netfilter/xt_hashlimit.c
550
dh->rateinfo.current_rate = 0;
net/netfilter/xt_hashlimit.c
555
dh->rateinfo.prev = now;
net/netfilter/xt_hashlimit.c
558
u64 tmp = dh->rateinfo.credit;
net/netfilter/xt_hashlimit.c
559
dh->rateinfo.credit += CREDITS_PER_JIFFY_BYTES * delta;
net/netfilter/xt_hashlimit.c
561
if (tmp >= dh->rateinfo.credit) {/* overflow */
net/netfilter/xt_hashlimit.c
562
dh->rateinfo.credit = cap;
net/netfilter/xt_hashlimit.c
568
dh->rateinfo.credit += delta * cpj;
net/netfilter/xt_hashlimit.c
569
cap = dh->rateinfo.credit_cap;
net/netfilter/xt_hashlimit.c
571
if (dh->rateinfo.credit > cap)
net/netfilter/xt_hashlimit.c
572
dh->rateinfo.credit = cap;
net/netfilter/xt_hashlimit.c
575
static void rateinfo_init(struct dsthash_ent *dh,
net/netfilter/xt_hashlimit.c
578
dh->rateinfo.prev = jiffies;
net/netfilter/xt_hashlimit.c
580
dh->rateinfo.prev_window = 0;
net/netfilter/xt_hashlimit.c
581
dh->rateinfo.current_rate = 0;
net/netfilter/xt_hashlimit.c
583
dh->rateinfo.rate =
net/netfilter/xt_hashlimit.c
586
dh->rateinfo.burst =
net/netfilter/xt_hashlimit.c
587
hinfo->cfg.burst * dh->rateinfo.rate;
net/netfilter/xt_hashlimit.c
589
dh->rateinfo.burst = dh->rateinfo.rate;
net/netfilter/xt_hashlimit.c
591
dh->rateinfo.rate = user2rate(hinfo->cfg.avg);
net/netfilter/xt_hashlimit.c
592
dh->rateinfo.burst =
net/netfilter/xt_hashlimit.c
593
hinfo->cfg.burst + dh->rateinfo.rate;
net/netfilter/xt_hashlimit.c
595
dh->rateinfo.interval = hinfo->cfg.interval;
net/netfilter/xt_hashlimit.c
597
dh->rateinfo.credit = CREDITS_PER_JIFFY_BYTES * HZ;
net/netfilter/xt_hashlimit.c
598
dh->rateinfo.cost = user2credits_byte(hinfo->cfg.avg);
net/netfilter/xt_hashlimit.c
599
dh->rateinfo.credit_cap = hinfo->cfg.burst;
net/netfilter/xt_hashlimit.c
601
dh->rateinfo.credit = user2credits(hinfo->cfg.avg *
net/netfilter/xt_hashlimit.c
603
dh->rateinfo.cost = user2credits(hinfo->cfg.avg, revision);
net/netfilter/xt_hashlimit.c
604
dh->rateinfo.credit_cap = dh->rateinfo.credit;
net/netfilter/xt_hashlimit.c
711
static u32 hashlimit_byte_cost(unsigned int len, struct dsthash_ent *dh)
net/netfilter/xt_hashlimit.c
714
tmp = tmp * dh->rateinfo.cost;
net/netfilter/xt_hashlimit.c
719
if (dh->rateinfo.credit < tmp && dh->rateinfo.credit_cap) {
net/netfilter/xt_hashlimit.c
720
dh->rateinfo.credit_cap--;
net/netfilter/xt_hashlimit.c
721
dh->rateinfo.credit = CREDITS_PER_JIFFY_BYTES * HZ;
net/netfilter/xt_hashlimit.c
732
struct dsthash_ent *dh;
net/netfilter/xt_hashlimit.c
741
dh = dsthash_find(hinfo, &dst);
net/netfilter/xt_hashlimit.c
742
if (dh == NULL) {
net/netfilter/xt_hashlimit.c
743
dh = dsthash_alloc_init(hinfo, &dst, &race);
net/netfilter/xt_hashlimit.c
744
if (dh == NULL) {
net/netfilter/xt_hashlimit.c
749
dh->expires = now + msecs_to_jiffies(hinfo->cfg.expire);
net/netfilter/xt_hashlimit.c
750
rateinfo_recalc(dh, now, hinfo->cfg.mode, revision);
net/netfilter/xt_hashlimit.c
752
dh->expires = jiffies + msecs_to_jiffies(hinfo->cfg.expire);
net/netfilter/xt_hashlimit.c
753
rateinfo_init(dh, hinfo, revision);
net/netfilter/xt_hashlimit.c
757
dh->expires = now + msecs_to_jiffies(hinfo->cfg.expire);
net/netfilter/xt_hashlimit.c
758
rateinfo_recalc(dh, now, hinfo->cfg.mode, revision);
net/netfilter/xt_hashlimit.c
763
dh->rateinfo.current_rate += cost;
net/netfilter/xt_hashlimit.c
765
if (!dh->rateinfo.prev_window &&
net/netfilter/xt_hashlimit.c
766
(dh->rateinfo.current_rate <= dh->rateinfo.burst)) {
net/netfilter/xt_hashlimit.c
767
spin_unlock(&dh->lock);
net/netfilter/xt_hashlimit.c
776
cost = hashlimit_byte_cost(skb->len, dh);
net/netfilter/xt_hashlimit.c
778
cost = dh->rateinfo.cost;
net/netfilter/xt_hashlimit.c
780
if (dh->rateinfo.credit >= cost) {
net/netfilter/xt_hashlimit.c
782
dh->rateinfo.credit -= cost;
net/netfilter/xt_hashlimit.c
783
spin_unlock(&dh->lock);
net/netfilter/xt_hashlimit.c
789
spin_unlock(&dh->lock);
security/keys/dh.c
131
struct dh dh_inputs;
security/keys/dh.c
60
static void dh_free_data(struct dh *dh)
security/keys/dh.c
62
kfree_sensitive(dh->key);
security/keys/dh.c
63
kfree_sensitive(dh->p);
security/keys/dh.c
64
kfree_sensitive(dh->g);
tools/perf/util/perf-regs-arch/perf_regs_x86.c
40
SDT_NAME_REG(dh, dx),