dh 261 arch/x86/boot/boot.h u8 dl, dh, edx2, edx3; dh 113 arch/x86/boot/edd.c ei->legacy_max_head = oreg.dh; dh 80 arch/x86/boot/tty.c return oreg.dh; dh 31 arch/x86/boot/video.c boot_params.screen_info.orig_y = oreg.dh; dh 310 arch/x86/boot/video.c ireg.dh = saved.cury; dh 52 crypto/dh.c static int dh_set_params(struct dh_ctx *ctx, struct dh *params) dh 78 crypto/dh.c struct dh params; dh 210 crypto/dh.c static struct kpp_alg dh = { dh 227 crypto/dh.c return crypto_register_kpp(&dh); dh 232 crypto/dh.c crypto_unregister_kpp(&dh); dh 29 crypto/dh_helper.c static inline unsigned int dh_data_size(const struct dh *p) dh 34 crypto/dh_helper.c unsigned int crypto_dh_key_len(const struct dh *p) dh 40 crypto/dh_helper.c int crypto_dh_encode_key(char *buf, unsigned int len, const struct dh *params) dh 68 crypto/dh_helper.c int crypto_dh_decode_key(const char *buf, unsigned int len, struct dh *params) dh 3307 drivers/block/drbd/drbd_nl.c struct drbd_genlmsghdr *dh; dh 3332 drivers/block/drbd/drbd_nl.c dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, dh 3336 drivers/block/drbd/drbd_nl.c if (!dh) dh 3338 drivers/block/drbd/drbd_nl.c dh->minor = -1U; dh 3339 drivers/block/drbd/drbd_nl.c dh->ret_code = NO_ERROR; dh 3355 drivers/block/drbd/drbd_nl.c genlmsg_end(skb, dh); dh 3428 drivers/block/drbd/drbd_nl.c struct drbd_genlmsghdr *dh; dh 3461 drivers/block/drbd/drbd_nl.c dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, dh 3465 drivers/block/drbd/drbd_nl.c if (!dh) dh 3467 drivers/block/drbd/drbd_nl.c dh->ret_code = retcode; dh 3468 drivers/block/drbd/drbd_nl.c dh->minor = -1U; dh 3470 drivers/block/drbd/drbd_nl.c dh->minor = device->minor; dh 3494 drivers/block/drbd/drbd_nl.c genlmsg_end(skb, dh); dh 3517 drivers/block/drbd/drbd_nl.c struct drbd_genlmsghdr *dh; dh 3587 drivers/block/drbd/drbd_nl.c dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, dh 3591 drivers/block/drbd/drbd_nl.c if (!dh) dh 3593 drivers/block/drbd/drbd_nl.c dh->ret_code = retcode; dh 3594 drivers/block/drbd/drbd_nl.c dh->minor = -1U; dh 3617 drivers/block/drbd/drbd_nl.c genlmsg_end(skb, dh); dh 3680 drivers/block/drbd/drbd_nl.c struct drbd_genlmsghdr *dh; dh 3729 drivers/block/drbd/drbd_nl.c dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, dh 3733 drivers/block/drbd/drbd_nl.c if (!dh) dh 3735 drivers/block/drbd/drbd_nl.c dh->ret_code = retcode; dh 3736 drivers/block/drbd/drbd_nl.c dh->minor = -1U; dh 3741 drivers/block/drbd/drbd_nl.c dh->minor = minor; dh 3756 drivers/block/drbd/drbd_nl.c genlmsg_end(skb, dh); dh 3928 drivers/block/drbd/drbd_nl.c struct drbd_genlmsghdr *dh; dh 3991 drivers/block/drbd/drbd_nl.c dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, dh 3994 drivers/block/drbd/drbd_nl.c if (!dh) dh 4003 drivers/block/drbd/drbd_nl.c dh->minor = -1U; dh 4004 drivers/block/drbd/drbd_nl.c dh->ret_code = NO_ERROR; dh 4021 drivers/block/drbd/drbd_nl.c dh->minor = device_to_minor(device); dh 4022 drivers/block/drbd/drbd_nl.c dh->ret_code = NO_ERROR; dh 4026 drivers/block/drbd/drbd_nl.c genlmsg_cancel(skb, dh); dh 4030 drivers/block/drbd/drbd_nl.c genlmsg_end(skb, dh); dh 4349 drivers/block/drbd/drbd_nl.c struct drbd_genlmsghdr *dh = info->userhdr; dh 4358 drivers/block/drbd/drbd_nl.c if (dh->minor > MINORMASK) { dh 4379 drivers/block/drbd/drbd_nl.c retcode = drbd_create_device(&adm_ctx, dh->minor); dh 4387 drivers/block/drbd/drbd_nl.c device = minor_to_device(dh->minor); dh 4640 drivers/block/drbd/drbd_nl.c struct drbd_genlmsghdr *dh; dh 4654 drivers/block/drbd/drbd_nl.c dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_RESOURCE_STATE); dh 4655 drivers/block/drbd/drbd_nl.c if (!dh) dh 4657 drivers/block/drbd/drbd_nl.c dh->minor = -1U; dh 4658 drivers/block/drbd/drbd_nl.c dh->ret_code = NO_ERROR; dh 4668 drivers/block/drbd/drbd_nl.c genlmsg_end(skb, dh); dh 4691 drivers/block/drbd/drbd_nl.c struct drbd_genlmsghdr *dh; dh 4705 drivers/block/drbd/drbd_nl.c dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_DEVICE_STATE); dh 4706 drivers/block/drbd/drbd_nl.c if (!dh) dh 4708 drivers/block/drbd/drbd_nl.c dh->minor = device->minor; dh 4709 drivers/block/drbd/drbd_nl.c dh->ret_code = NO_ERROR; dh 4717 drivers/block/drbd/drbd_nl.c genlmsg_end(skb, dh); dh 4740 drivers/block/drbd/drbd_nl.c struct drbd_genlmsghdr *dh; dh 4754 drivers/block/drbd/drbd_nl.c dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_CONNECTION_STATE); dh 4755 drivers/block/drbd/drbd_nl.c if (!dh) dh 4757 drivers/block/drbd/drbd_nl.c dh->minor = -1U; dh 4758 drivers/block/drbd/drbd_nl.c dh->ret_code = NO_ERROR; dh 4766 drivers/block/drbd/drbd_nl.c genlmsg_end(skb, dh); dh 4790 drivers/block/drbd/drbd_nl.c struct drbd_genlmsghdr *dh; dh 4804 drivers/block/drbd/drbd_nl.c dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_PEER_DEVICE_STATE); dh 4805 drivers/block/drbd/drbd_nl.c if (!dh) dh 4807 drivers/block/drbd/drbd_nl.c dh->minor = -1U; dh 4808 drivers/block/drbd/drbd_nl.c dh->ret_code = NO_ERROR; dh 4816 drivers/block/drbd/drbd_nl.c genlmsg_end(skb, dh); dh 4840 drivers/block/drbd/drbd_nl.c struct drbd_genlmsghdr *dh; dh 4853 drivers/block/drbd/drbd_nl.c dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_HELPER); dh 4854 drivers/block/drbd/drbd_nl.c if (!dh) dh 4856 drivers/block/drbd/drbd_nl.c dh->minor = device ? device->minor : -1; dh 4857 drivers/block/drbd/drbd_nl.c dh->ret_code = NO_ERROR; dh 4863 drivers/block/drbd/drbd_nl.c genlmsg_end(skb, dh); dh 4882 drivers/block/drbd/drbd_nl.c struct drbd_genlmsghdr *dh; dh 4886 drivers/block/drbd/drbd_nl.c dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_INITIAL_STATE_DONE); dh 4887 drivers/block/drbd/drbd_nl.c if (!dh) dh 4889 drivers/block/drbd/drbd_nl.c dh->minor = -1U; dh 4890 drivers/block/drbd/drbd_nl.c dh->ret_code = NO_ERROR; dh 4893 drivers/block/drbd/drbd_nl.c genlmsg_end(skb, dh); dh 162 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_dh_input_params dh; dh 166 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_dh_output_params dh; dh 175 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_dh_ctx *dh; dh 179 drivers/crypto/qat/qat_common/qat_asym_algs.c struct kpp_request *dh; dh 188 drivers/crypto/qat/qat_common/qat_asym_algs.c struct kpp_request *areq = req->areq.dh; dh 189 drivers/crypto/qat/qat_common/qat_asym_algs.c struct device *dev = &GET_DEV(req->ctx.dh->inst->accel_dev); dh 197 drivers/crypto/qat/qat_common/qat_asym_algs.c dma_free_coherent(dev, req->ctx.dh->p_size, dh 198 drivers/crypto/qat/qat_common/qat_asym_algs.c req->src_align, req->in.dh.in.b); dh 200 drivers/crypto/qat/qat_common/qat_asym_algs.c dma_unmap_single(dev, req->in.dh.in.b, dh 201 drivers/crypto/qat/qat_common/qat_asym_algs.c req->ctx.dh->p_size, DMA_TO_DEVICE); dh 204 drivers/crypto/qat/qat_common/qat_asym_algs.c areq->dst_len = req->ctx.dh->p_size; dh 209 drivers/crypto/qat/qat_common/qat_asym_algs.c dma_free_coherent(dev, req->ctx.dh->p_size, req->dst_align, dh 210 drivers/crypto/qat/qat_common/qat_asym_algs.c req->out.dh.r); dh 212 drivers/crypto/qat/qat_common/qat_asym_algs.c dma_unmap_single(dev, req->out.dh.r, req->ctx.dh->p_size, dh 286 drivers/crypto/qat/qat_common/qat_asym_algs.c qat_req->ctx.dh = ctx; dh 287 drivers/crypto/qat/qat_common/qat_asym_algs.c qat_req->areq.dh = req; dh 297 drivers/crypto/qat/qat_common/qat_asym_algs.c qat_req->in.dh.in.xa = ctx->dma_xa; dh 298 drivers/crypto/qat/qat_common/qat_asym_algs.c qat_req->in.dh.in.p = ctx->dma_p; dh 302 drivers/crypto/qat/qat_common/qat_asym_algs.c qat_req->in.dh.in_g2.xa = ctx->dma_xa; dh 303 drivers/crypto/qat/qat_common/qat_asym_algs.c qat_req->in.dh.in_g2.p = ctx->dma_p; dh 306 drivers/crypto/qat/qat_common/qat_asym_algs.c qat_req->in.dh.in.b = ctx->dma_g; dh 307 drivers/crypto/qat/qat_common/qat_asym_algs.c qat_req->in.dh.in.xa = ctx->dma_xa; dh 308 drivers/crypto/qat/qat_common/qat_asym_algs.c qat_req->in.dh.in.p = ctx->dma_p; dh 324 drivers/crypto/qat/qat_common/qat_asym_algs.c qat_req->in.dh.in.b = dma_map_single(dev, dh 329 drivers/crypto/qat/qat_common/qat_asym_algs.c qat_req->in.dh.in.b))) dh 337 drivers/crypto/qat/qat_common/qat_asym_algs.c &qat_req->in.dh.in.b, dh 355 drivers/crypto/qat/qat_common/qat_asym_algs.c qat_req->out.dh.r = dma_map_single(dev, sg_virt(req->dst), dh 359 drivers/crypto/qat/qat_common/qat_asym_algs.c if (unlikely(dma_mapping_error(dev, qat_req->out.dh.r))) dh 364 drivers/crypto/qat/qat_common/qat_asym_algs.c &qat_req->out.dh.r, dh 370 drivers/crypto/qat/qat_common/qat_asym_algs.c qat_req->in.dh.in_tab[n_input_params] = 0; dh 371 drivers/crypto/qat/qat_common/qat_asym_algs.c qat_req->out.dh.out_tab[1] = 0; dh 373 drivers/crypto/qat/qat_common/qat_asym_algs.c qat_req->phy_in = dma_map_single(dev, &qat_req->in.dh.in.b, dh 379 drivers/crypto/qat/qat_common/qat_asym_algs.c qat_req->phy_out = dma_map_single(dev, &qat_req->out.dh.r, dh 410 drivers/crypto/qat/qat_common/qat_asym_algs.c qat_req->out.dh.r); dh 412 drivers/crypto/qat/qat_common/qat_asym_algs.c if (!dma_mapping_error(dev, qat_req->out.dh.r)) dh 413 drivers/crypto/qat/qat_common/qat_asym_algs.c dma_unmap_single(dev, qat_req->out.dh.r, ctx->p_size, dh 419 drivers/crypto/qat/qat_common/qat_asym_algs.c qat_req->in.dh.in.b); dh 421 drivers/crypto/qat/qat_common/qat_asym_algs.c if (!dma_mapping_error(dev, qat_req->in.dh.in.b)) dh 422 drivers/crypto/qat/qat_common/qat_asym_algs.c dma_unmap_single(dev, qat_req->in.dh.in.b, dh 441 drivers/crypto/qat/qat_common/qat_asym_algs.c static int qat_dh_set_params(struct qat_dh_ctx *ctx, struct dh *params) dh 493 drivers/crypto/qat/qat_common/qat_asym_algs.c struct dh params; dh 1318 drivers/crypto/qat/qat_common/qat_asym_algs.c static struct kpp_alg dh = { dh 1345 drivers/crypto/qat/qat_common/qat_asym_algs.c ret = crypto_register_kpp(&dh); dh 1357 drivers/crypto/qat/qat_common/qat_asym_algs.c crypto_unregister_kpp(&dh); dh 83 drivers/edac/ghes_edac.c static void ghes_edac_count_dimms(const struct dmi_header *dh, void *arg) dh 87 drivers/edac/ghes_edac.c if (dh->type == DMI_ENTRY_MEM_DEVICE) dh 102 drivers/edac/ghes_edac.c static void ghes_edac_dmidecode(const struct dmi_header *dh, void *arg) dh 107 drivers/edac/ghes_edac.c if (dh->type == DMI_ENTRY_MEM_DEVICE) { dh 108 drivers/edac/ghes_edac.c struct memdev_dmi_entry *entry = (struct memdev_dmi_entry *)dh; dh 1877 drivers/edac/i7core_edac.c static void decode_dclk(const struct dmi_header *dh, void *_dclk_freq) dh 1885 drivers/edac/i7core_edac.c if (dh->type == DMI_ENTRY_MEM_DEVICE) { dh 1887 drivers/edac/i7core_edac.c (struct memdev_dmi_entry *)dh; dh 35 drivers/firmware/dmi-sysfs.c struct dmi_header dh; dh 70 drivers/firmware/dmi-sysfs.c const struct dmi_header *dh, dh 116 drivers/firmware/dmi-sysfs.c const struct dmi_header *dh, void *); dh 126 drivers/firmware/dmi-sysfs.c static void find_dmi_entry_helper(const struct dmi_header *dh, dh 133 drivers/firmware/dmi-sysfs.c if (dh->type != entry->dh.type) dh 149 drivers/firmware/dmi-sysfs.c data->ret = data->callback(entry, dh, data->private); dh 183 drivers/firmware/dmi-sysfs.c static size_t dmi_entry_length(const struct dmi_header *dh) dh 185 drivers/firmware/dmi-sysfs.c const char *p = (const char *)dh; dh 187 drivers/firmware/dmi-sysfs.c p += dh->length; dh 192 drivers/firmware/dmi-sysfs.c return 2 + p - (const char *)dh; dh 204 drivers/firmware/dmi-sysfs.c const struct dmi_header *dh, dh 212 drivers/firmware/dmi-sysfs.c return attr->show(entry, dh, data->buf); dh 270 drivers/firmware/dmi-sysfs.c const struct dmi_header *dh, \ dh 274 drivers/firmware/dmi-sysfs.c if (sizeof(sel) > dmi_entry_length(dh)) \ dh 276 drivers/firmware/dmi-sysfs.c memcpy(&sel, dh, sizeof(sel)); \ dh 400 drivers/firmware/dmi-sysfs.c const struct dmi_header *dh, dh 406 drivers/firmware/dmi-sysfs.c if (sizeof(sel) > dmi_entry_length(dh)) dh 409 drivers/firmware/dmi-sysfs.c memcpy(&sel, dh, sizeof(sel)); dh 482 drivers/firmware/dmi-sysfs.c return sprintf(buf, "%d\n", entry->dh.length); dh 487 drivers/firmware/dmi-sysfs.c return sprintf(buf, "%d\n", entry->dh.handle); dh 492 drivers/firmware/dmi-sysfs.c return sprintf(buf, "%d\n", entry->dh.type); dh 523 drivers/firmware/dmi-sysfs.c const struct dmi_header *dh, dh 529 drivers/firmware/dmi-sysfs.c entry_length = dmi_entry_length(dh); dh 532 drivers/firmware/dmi-sysfs.c &state->pos, dh, entry_length); dh 579 drivers/firmware/dmi-sysfs.c static void __init dmi_sysfs_register_handle(const struct dmi_header *dh, dh 597 drivers/firmware/dmi-sysfs.c memcpy(&entry->dh, dh, sizeof(*dh)); dh 598 drivers/firmware/dmi-sysfs.c entry->instance = instance_counts[dh->type]++; dh 603 drivers/firmware/dmi-sysfs.c "%d-%d", dh->type, entry->instance); dh 616 drivers/firmware/dmi-sysfs.c switch (dh->type) { dh 209 drivers/fsi/fsi-sbefifo.c u32 dh, s0, s1; dh 217 drivers/fsi/fsi-sbefifo.c dh = be32_to_cpu(response[resp_len - 1]); dh 218 drivers/fsi/fsi-sbefifo.c if (dh > resp_len || dh < 3) { dh 220 drivers/fsi/fsi-sbefifo.c cmd >> 8, cmd & 0xff, dh, resp_len); dh 223 drivers/fsi/fsi-sbefifo.c s0 = be32_to_cpu(response[resp_len - dh]); dh 224 drivers/fsi/fsi-sbefifo.c s1 = be32_to_cpu(response[resp_len - dh + 1]); dh 231 drivers/fsi/fsi-sbefifo.c ffdc_sz = dh - 3; dh 235 drivers/fsi/fsi-sbefifo.c sbefifo_dump_ffdc(dev, &response[resp_len - dh + 2], dh 239 drivers/fsi/fsi-sbefifo.c *data_len = resp_len - dh; dh 526 drivers/gpu/drm/exynos/exynos_drm_ipp.c int dw, dh; dh 538 drivers/gpu/drm/exynos/exynos_drm_ipp.c dh = (!swap) ? dst->h : dst->w; dh 541 drivers/gpu/drm/exynos/exynos_drm_ipp.c !__scale_limit_check(src->h, dh, lv->min, lv->max)) dh 217 drivers/gpu/drm/nouveau/dispnv50/atom.h u16 dh; dh 284 drivers/gpu/drm/nouveau/dispnv50/wndw.c asyw->scale.dh = asyw->state.crtc_h; dh 3944 drivers/gpu/drm/omapdrm/dss/dsi.c u16 dw, dh; dh 3954 drivers/gpu/drm/omapdrm/dss/dsi.c dh = dsi->vm.vactive; dh 3957 drivers/gpu/drm/omapdrm/dss/dsi.c dsi->update_bytes = dw * dh * dh 313 drivers/md/dm-snap-persistent.c struct disk_header *dh; dh 343 drivers/md/dm-snap-persistent.c dh = ps->header_area; dh 345 drivers/md/dm-snap-persistent.c if (le32_to_cpu(dh->magic) == 0) { dh 350 drivers/md/dm-snap-persistent.c if (le32_to_cpu(dh->magic) != SNAP_MAGIC) { dh 357 drivers/md/dm-snap-persistent.c ps->valid = le32_to_cpu(dh->valid); dh 358 drivers/md/dm-snap-persistent.c ps->version = le32_to_cpu(dh->version); dh 359 drivers/md/dm-snap-persistent.c chunk_size = le32_to_cpu(dh->chunk_size); dh 390 drivers/md/dm-snap-persistent.c struct disk_header *dh; dh 394 drivers/md/dm-snap-persistent.c dh = ps->header_area; dh 395 drivers/md/dm-snap-persistent.c dh->magic = cpu_to_le32(SNAP_MAGIC); dh 396 drivers/md/dm-snap-persistent.c dh->valid = cpu_to_le32(ps->valid); dh 397 drivers/md/dm-snap-persistent.c dh->version = cpu_to_le32(ps->version); dh 398 drivers/md/dm-snap-persistent.c dh->chunk_size = cpu_to_le32(ps->store->chunk_size); dh 608 drivers/media/platform/exynos-gsc/gsc-core.c int dh, int rot, int out_path) dh 618 drivers/media/platform/exynos-gsc/gsc-core.c tmp_w = dh; dh 622 drivers/media/platform/exynos-gsc/gsc-core.c tmp_h = dh; dh 399 drivers/media/platform/exynos-gsc/gsc-core.h int dh, int rot, int out_path); dh 193 drivers/media/platform/exynos4-is/fimc-core.c int dw, int dh, int rotation) dh 196 drivers/media/platform/exynos4-is/fimc-core.c swap(dw, dh); dh 199 drivers/media/platform/exynos4-is/fimc-core.c return (sw == dw && sh == dh) ? 0 : -EINVAL; dh 201 drivers/media/platform/exynos4-is/fimc-core.c if ((sw >= SCALER_MAX_HRATIO * dw) || (sh >= SCALER_MAX_VRATIO * dh)) dh 630 drivers/media/platform/exynos4-is/fimc-core.h int dw, int dh, int rotation); dh 9566 drivers/net/ethernet/sun/niu.c dma_addr_t dh; dh 9569 drivers/net/ethernet/sun/niu.c ret = dma_alloc_coherent(dev, size, &dh, flag); dh 9571 drivers/net/ethernet/sun/niu.c *handle = dh; dh 104 drivers/scsi/scsi_dh.c struct scsi_device_handler *dh; dh 109 drivers/scsi/scsi_dh.c dh = __scsi_dh_lookup(name); dh 110 drivers/scsi/scsi_dh.c if (!dh) { dh 112 drivers/scsi/scsi_dh.c dh = __scsi_dh_lookup(name); dh 115 drivers/scsi/scsi_dh.c return dh; dh 737 drivers/usb/misc/sisusbvga/sisusb_init.c unsigned short al, unsigned short dh) dh 743 drivers/usb/misc/sisusbvga/sisusb_init.c d1 = dh; dh 750 drivers/usb/misc/sisusbvga/sisusb_init.c d3 = dh; dh 754 drivers/usb/misc/sisusbvga/sisusb_init.c d2 = dh; dh 13 drivers/video/fbdev/mb862xx/mb862xxfb.h unsigned short dh; dh 327 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c if (l1_cfg->dh == 0 || l1_cfg->dw == 0) dh 329 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c if ((l1_cfg->sw >= l1_cfg->dw) && (l1_cfg->sh >= l1_cfg->dh)) { dh 332 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c pack((l1_cfg->sh << 11) / l1_cfg->dh, dh 337 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c (l1_cfg->sh <= l1_cfg->dh)) { dh 340 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c pack((l1_cfg->sh << 11) / l1_cfg->dh, dh 345 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c pack(l1_cfg->dw >> 1, l1_cfg->dh)); dh 374 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c pack(l1_cfg->dh - 1, l1_cfg->dw)); dh 530 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c par->l1_cfg.dh = 576; dh 4040 drivers/video/fbdev/omap2/omapfb/dss/dsi.c u16 dw, dh; dh 4050 drivers/video/fbdev/omap2/omapfb/dss/dsi.c dh = dsi->timings.y_res; dh 4053 drivers/video/fbdev/omap2/omapfb/dss/dsi.c dsi->update_bytes = dw * dh * dh 143 drivers/video/fbdev/omap2/omapfb/dss/overlay.c u16 dw, dh; dh 146 drivers/video/fbdev/omap2/omapfb/dss/overlay.c dh = mgr_timings->y_res; dh 170 drivers/video/fbdev/omap2/omapfb/dss/overlay.c if (dh < info->pos_y + outh) { dh 173 drivers/video/fbdev/omap2/omapfb/dss/overlay.c ovl->id, info->pos_y, outh, dh); dh 282 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c u16 dw, dh; dh 290 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c display->driver->get_resolution(display, &dw, &dh); dh 292 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c if (x + w > dw || y + h > dh) dh 2859 drivers/video/fbdev/sis/init.c unsigned short dl, unsigned short ah, unsigned short al, unsigned short dh) dh 2864 drivers/video/fbdev/sis/init.c case 0: d1 = dh; d2 = ah; d3 = al; break; dh 2865 drivers/video/fbdev/sis/init.c case 1: d1 = ah; d2 = al; d3 = dh; break; dh 2866 drivers/video/fbdev/sis/init.c default: d1 = al; d2 = dh; d3 = ah; dh 87 fs/quota/quota_tree.c struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; dh 97 fs/quota/quota_tree.c info->dqi_free_blk = le32_to_cpu(dh->dqdh_next_free); dh 117 fs/quota/quota_tree.c struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; dh 120 fs/quota/quota_tree.c dh->dqdh_next_free = cpu_to_le32(info->dqi_free_blk); dh 121 fs/quota/quota_tree.c dh->dqdh_prev_free = cpu_to_le32(0); dh 122 fs/quota/quota_tree.c dh->dqdh_entries = cpu_to_le16(0); dh 136 fs/quota/quota_tree.c struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; dh 137 fs/quota/quota_tree.c uint nextblk = le32_to_cpu(dh->dqdh_next_free); dh 138 fs/quota/quota_tree.c uint prevblk = le32_to_cpu(dh->dqdh_prev_free); dh 148 fs/quota/quota_tree.c dh->dqdh_prev_free; dh 158 fs/quota/quota_tree.c dh->dqdh_next_free; dh 167 fs/quota/quota_tree.c dh->dqdh_next_free = dh->dqdh_prev_free = cpu_to_le32(0); dh 183 fs/quota/quota_tree.c struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; dh 188 fs/quota/quota_tree.c dh->dqdh_next_free = cpu_to_le32(info->dqi_free_entry); dh 189 fs/quota/quota_tree.c dh->dqdh_prev_free = cpu_to_le32(0); dh 229 fs/quota/quota_tree.c struct qt_disk_dqdbheader *dh; dh 238 fs/quota/quota_tree.c dh = (struct qt_disk_dqdbheader *)buf; dh 258 fs/quota/quota_tree.c if (le16_to_cpu(dh->dqdh_entries) + 1 >= qtree_dqstr_in_blk(info)) { dh 266 fs/quota/quota_tree.c le16_add_cpu(&dh->dqdh_entries, 1); dh 416 fs/quota/quota_tree.c struct qt_disk_dqdbheader *dh; dh 434 fs/quota/quota_tree.c dh = (struct qt_disk_dqdbheader *)buf; dh 435 fs/quota/quota_tree.c le16_add_cpu(&dh->dqdh_entries, -1); dh 436 fs/quota/quota_tree.c if (!le16_to_cpu(dh->dqdh_entries)) { /* Block got free? */ dh 449 fs/quota/quota_tree.c if (le16_to_cpu(dh->dqdh_entries) == dh 55 include/crypto/dh.h unsigned int crypto_dh_key_len(const struct dh *params); dh 70 include/crypto/dh.h int crypto_dh_encode_key(char *buf, unsigned int len, const struct dh *params); dh 84 include/crypto/dh.h int crypto_dh_decode_key(const char *buf, unsigned int len, struct dh *params); dh 84 include/drm/drm_rect.h static inline void drm_rect_adjust_size(struct drm_rect *r, int dw, int dh) dh 87 include/drm/drm_rect.h r->y1 -= dh >> 1; dh 89 include/drm/drm_rect.h r->y2 += (dh + 1) >> 1; dh 78 include/linux/dccp.h static inline struct dccp_hdr_ext *dccp_hdrx(const struct dccp_hdr *dh) dh 80 include/linux/dccp.h return (struct dccp_hdr_ext *)((unsigned char *)dh + sizeof(*dh)); dh 83 include/linux/dccp.h static inline unsigned int __dccp_basic_hdr_len(const struct dccp_hdr *dh) dh 85 include/linux/dccp.h return sizeof(*dh) + (dh->dccph_x ? sizeof(struct dccp_hdr_ext) : 0); dh 90 include/linux/dccp.h const struct dccp_hdr *dh = dccp_hdr(skb); dh 91 include/linux/dccp.h return __dccp_basic_hdr_len(dh); dh 94 include/linux/dccp.h static inline __u64 dccp_hdr_seq(const struct dccp_hdr *dh) dh 96 include/linux/dccp.h __u64 seq_nr = ntohs(dh->dccph_seq); dh 98 include/linux/dccp.h if (dh->dccph_x != 0) dh 99 include/linux/dccp.h seq_nr = (seq_nr << 32) + ntohl(dccp_hdrx(dh)->dccph_seq_low); dh 101 include/linux/dccp.h seq_nr += (u32)dh->dccph_seq2 << 16; dh 136 include/linux/dccp.h static inline unsigned int __dccp_hdr_len(const struct dccp_hdr *dh) dh 138 include/linux/dccp.h return __dccp_basic_hdr_len(dh) + dh 139 include/linux/dccp.h dccp_packet_hdr_len(dh->dccph_type); dh 101 net/dccp/ccids/lib/packet_history.c const struct dccp_hdr *dh = dccp_hdr(skb); dh 104 net/dccp/ccids/lib/packet_history.c entry->tfrchrx_ccval = dh->dccph_ccval; dh 105 net/dccp/ccids/lib/packet_history.c entry->tfrchrx_type = dh->dccph_type; dh 207 net/dccp/dccp.h const struct dccp_hdr* dh = dccp_hdr(skb); dh 209 net/dccp/dccp.h if (dh->dccph_cscov == 0) dh 211 net/dccp/dccp.h return (dh->dccph_doff + dh->dccph_cscov - 1) * sizeof(u32); dh 287 net/dccp/dccp.h struct dccp_hdr *dh, unsigned int len); dh 289 net/dccp/dccp.h const struct dccp_hdr *dh, const unsigned int len); dh 400 net/dccp/dccp.h static inline void dccp_hdr_set_seq(struct dccp_hdr *dh, const u64 gss) dh 402 net/dccp/dccp.h struct dccp_hdr_ext *dhx = (struct dccp_hdr_ext *)((void *)dh + dh 403 net/dccp/dccp.h sizeof(*dh)); dh 404 net/dccp/dccp.h dh->dccph_seq2 = 0; dh 405 net/dccp/dccp.h dh->dccph_seq = htons((gss >> 32) & 0xfffff); dh 187 net/dccp/input.c const struct dccp_hdr *dh = dccp_hdr(skb); dh 204 net/dccp/input.c if (dh->dccph_type == DCCP_PKT_SYNC || dh 205 net/dccp/input.c dh->dccph_type == DCCP_PKT_SYNCACK) { dh 227 net/dccp/input.c if (dh->dccph_type == DCCP_PKT_CLOSEREQ || dh 228 net/dccp/input.c dh->dccph_type == DCCP_PKT_CLOSE || dh 229 net/dccp/input.c dh->dccph_type == DCCP_PKT_RESET) { dh 239 net/dccp/input.c if (dh->dccph_type != DCCP_PKT_SYNC && dh 264 net/dccp/input.c "sending SYNC...\n", dccp_packet_name(dh->dccph_type), dh 274 net/dccp/input.c if (dh->dccph_type == DCCP_PKT_RESET) dh 284 net/dccp/input.c const struct dccp_hdr *dh, const unsigned int len) dh 365 net/dccp/input.c const struct dccp_hdr *dh, const unsigned int len) dh 376 net/dccp/input.c return __dccp_rcv_established(sk, skb, dh, len); dh 386 net/dccp/input.c const struct dccp_hdr *dh, dh 400 net/dccp/input.c if (dh->dccph_type == DCCP_PKT_RESPONSE) { dh 519 net/dccp/input.c const struct dccp_hdr *dh, dh 526 net/dccp/input.c switch (dh->dccph_type) { dh 559 net/dccp/input.c if (dh->dccph_type == DCCP_PKT_DATAACK || dh 560 net/dccp/input.c dh->dccph_type == DCCP_PKT_DATA) { dh 561 net/dccp/input.c __dccp_rcv_established(sk, skb, dh, len); dh 572 net/dccp/input.c struct dccp_hdr *dh, unsigned int len) dh 603 net/dccp/input.c if (dh->dccph_type == DCCP_PKT_REQUEST) { dh 617 net/dccp/input.c if (dh->dccph_type == DCCP_PKT_RESET) dh 641 net/dccp/input.c dh->dccph_type == DCCP_PKT_RESPONSE) || dh 643 net/dccp/input.c dh->dccph_type == DCCP_PKT_REQUEST) || dh 644 net/dccp/input.c (sk->sk_state == DCCP_RESPOND && dh->dccph_type == DCCP_PKT_DATA)) { dh 661 net/dccp/input.c if (dh->dccph_type == DCCP_PKT_RESET) { dh 664 net/dccp/input.c } else if (dh->dccph_type == DCCP_PKT_CLOSEREQ) { /* Step 13 */ dh 668 net/dccp/input.c } else if (dh->dccph_type == DCCP_PKT_CLOSE) { /* Step 14 */ dh 676 net/dccp/input.c queued = dccp_rcv_request_sent_state_process(sk, skb, dh, len); dh 690 net/dccp/input.c dh, len); dh 694 net/dccp/input.c if (dh->dccph_type == DCCP_PKT_ACK || dh 695 net/dccp/input.c dh->dccph_type == DCCP_PKT_DATAACK) { dh 702 net/dccp/input.c } else if (unlikely(dh->dccph_type == DCCP_PKT_SYNC)) { dh 234 net/dccp/ipv4.c const struct dccp_hdr *dh; dh 250 net/dccp/ipv4.c dh = (struct dccp_hdr *)(skb->data + offset); dh 253 net/dccp/ipv4.c iph->daddr, dh->dccph_dport, dh 254 net/dccp/ipv4.c iph->saddr, ntohs(dh->dccph_sport), dh 265 net/dccp/ipv4.c seq = dccp_hdr_seq(dh); dh 370 net/dccp/ipv4.c struct dccp_hdr *dh = dccp_hdr(skb); dh 373 net/dccp/ipv4.c dh->dccph_checksum = dccp_v4_csum_finish(skb, dh 491 net/dccp/ipv4.c struct dccp_hdr *dh = dccp_hdr(skb); dh 493 net/dccp/ipv4.c dh->dccph_checksum = dccp_v4_csum_finish(skb, ireq->ir_loc_addr, dh 652 net/dccp/ipv4.c struct dccp_hdr *dh = dccp_hdr(skb); dh 655 net/dccp/ipv4.c if (dccp_rcv_established(sk, skb, dh, skb->len)) dh 684 net/dccp/ipv4.c if (dccp_rcv_state_process(sk, skb, dh, skb->len)) dh 702 net/dccp/ipv4.c const struct dccp_hdr *dh; dh 715 net/dccp/ipv4.c dh = dccp_hdr(skb); dh 718 net/dccp/ipv4.c if (dh->dccph_type >= DCCP_PKT_INVALID) { dh 726 net/dccp/ipv4.c dccph_doff = dh->dccph_doff; dh 738 net/dccp/ipv4.c dh = dccp_hdr(skb); dh 743 net/dccp/ipv4.c if ((dh->dccph_type < DCCP_PKT_DATA || dh 744 net/dccp/ipv4.c dh->dccph_type > DCCP_PKT_DATAACK) && dh->dccph_x == 0) { dh 746 net/dccp/ipv4.c dccp_packet_name(dh->dccph_type)); dh 757 net/dccp/ipv4.c dh->dccph_cscov, skb->len); dh 772 net/dccp/ipv4.c const struct dccp_hdr *dh; dh 790 net/dccp/ipv4.c dh = dccp_hdr(skb); dh 792 net/dccp/ipv4.c DCCP_SKB_CB(skb)->dccpd_seq = dccp_hdr_seq(dh); dh 793 net/dccp/ipv4.c DCCP_SKB_CB(skb)->dccpd_type = dh->dccph_type; dh 796 net/dccp/ipv4.c dccp_packet_name(dh->dccph_type), dh 797 net/dccp/ipv4.c &iph->saddr, ntohs(dh->dccph_sport), dh 798 net/dccp/ipv4.c &iph->daddr, ntohs(dh->dccph_dport), dh 811 net/dccp/ipv4.c sk = __inet_lookup_skb(&dccp_hashinfo, skb, __dccp_hdr_len(dh), dh 812 net/dccp/ipv4.c dh->dccph_sport, dh->dccph_dport, 0, &refcounted); dh 863 net/dccp/ipv4.c if (dh->dccph_cscov && (min_cov == 0 || dh->dccph_cscov < min_cov)) { dh 865 net/dccp/ipv4.c dh->dccph_cscov, min_cov); dh 876 net/dccp/ipv4.c return __sk_receive_skb(sk, skb, 1, dh->dccph_doff * 4, refcounted); dh 887 net/dccp/ipv4.c if (dh->dccph_type != DCCP_PKT_RESET) { dh 52 net/dccp/ipv6.c struct dccp_hdr *dh = dccp_hdr(skb); dh 55 net/dccp/ipv6.c dh->dccph_checksum = dccp_v6_csum_finish(skb, &np->saddr, &sk->sk_v6_daddr); dh 71 net/dccp/ipv6.c const struct dccp_hdr *dh; dh 85 net/dccp/ipv6.c dh = (struct dccp_hdr *)(skb->data + offset); dh 88 net/dccp/ipv6.c &hdr->daddr, dh->dccph_dport, dh 89 net/dccp/ipv6.c &hdr->saddr, ntohs(dh->dccph_sport), dh 102 net/dccp/ipv6.c seq = dccp_hdr_seq(dh); dh 222 net/dccp/ipv6.c struct dccp_hdr *dh = dccp_hdr(skb); dh 225 net/dccp/ipv6.c dh->dccph_checksum = dccp_v6_csum_finish(skb, dh 684 net/dccp/ipv6.c const struct dccp_hdr *dh; dh 701 net/dccp/ipv6.c dh = dccp_hdr(skb); dh 703 net/dccp/ipv6.c DCCP_SKB_CB(skb)->dccpd_seq = dccp_hdr_seq(dh); dh 704 net/dccp/ipv6.c DCCP_SKB_CB(skb)->dccpd_type = dh->dccph_type; dh 712 net/dccp/ipv6.c sk = __inet6_lookup_skb(&dccp_hashinfo, skb, __dccp_hdr_len(dh), dh 713 net/dccp/ipv6.c dh->dccph_sport, dh->dccph_dport, dh 765 net/dccp/ipv6.c if (dh->dccph_cscov && (min_cov == 0 || dh->dccph_cscov < min_cov)) { dh 767 net/dccp/ipv6.c dh->dccph_cscov, min_cov); dh 775 net/dccp/ipv6.c return __sk_receive_skb(sk, skb, 1, dh->dccph_doff * 4, dh 787 net/dccp/ipv6.c if (dh->dccph_type != DCCP_PKT_RESET) { dh 51 net/dccp/options.c const struct dccp_hdr *dh = dccp_hdr(skb); dh 53 net/dccp/options.c unsigned char *options = (unsigned char *)dh + dccp_hdr_len(skb); dh 55 net/dccp/options.c const unsigned char *opt_end = (unsigned char *)dh + dh 56 net/dccp/options.c (dh->dccph_doff * 4); dh 49 net/dccp/output.c struct dccp_hdr *dh; dh 51 net/dccp/output.c const u32 dccp_header_size = sizeof(*dh) + dh 100 net/dccp/output.c dh = dccp_zeroed_hdr(skb, dccp_header_size); dh 101 net/dccp/output.c dh->dccph_type = dcb->dccpd_type; dh 102 net/dccp/output.c dh->dccph_sport = inet->inet_sport; dh 103 net/dccp/output.c dh->dccph_dport = inet->inet_dport; dh 104 net/dccp/output.c dh->dccph_doff = (dccp_header_size + dcb->dccpd_opt_len) / 4; dh 105 net/dccp/output.c dh->dccph_ccval = dcb->dccpd_ccval; dh 106 net/dccp/output.c dh->dccph_cscov = dp->dccps_pcslen; dh 108 net/dccp/output.c dh->dccph_x = 1; dh 111 net/dccp/output.c dccp_hdr_set_seq(dh, dp->dccps_gss); dh 393 net/dccp/output.c struct dccp_hdr *dh; dh 427 net/dccp/output.c dh = dccp_zeroed_hdr(skb, dccp_header_size); dh 429 net/dccp/output.c dh->dccph_sport = htons(inet_rsk(req)->ir_num); dh 430 net/dccp/output.c dh->dccph_dport = inet_rsk(req)->ir_rmt_port; dh 431 net/dccp/output.c dh->dccph_doff = (dccp_header_size + dh 433 net/dccp/output.c dh->dccph_type = DCCP_PKT_RESPONSE; dh 434 net/dccp/output.c dh->dccph_x = 1; dh 435 net/dccp/output.c dccp_hdr_set_seq(dh, dreq->dreq_gss); dh 455 net/dccp/output.c struct dccp_hdr *rxdh = dccp_hdr(rcv_skb), *dh; dh 470 net/dccp/output.c dh = dccp_zeroed_hdr(skb, dccp_hdr_reset_len); dh 471 net/dccp/output.c dh->dccph_type = DCCP_PKT_RESET; dh 472 net/dccp/output.c dh->dccph_sport = rxdh->dccph_dport; dh 473 net/dccp/output.c dh->dccph_dport = rxdh->dccph_sport; dh 474 net/dccp/output.c dh->dccph_doff = dccp_hdr_reset_len / 4; dh 475 net/dccp/output.c dh->dccph_x = 1; dh 495 net/dccp/output.c dccp_hdr_set_seq(dh, ADD48(dcb->dccpd_ack_seq, 1)); dh 826 net/dccp/proto.c const struct dccp_hdr *dh; dh 844 net/dccp/proto.c dh = dccp_hdr(skb); dh 846 net/dccp/proto.c switch (dh->dccph_type) { dh 858 net/dccp/proto.c dccp_packet_name(dh->dccph_type)); dh 863 net/dccp/proto.c dccp_packet_name(dh->dccph_type)); dh 385 net/netfilter/nf_conntrack_proto_dccp.c const struct dccp_hdr *dh) dh 392 net/netfilter/nf_conntrack_proto_dccp.c state = dccp_state_table[CT_DCCP_ROLE_CLIENT][dh->dccph_type][CT_DCCP_NONE]; dh 420 net/netfilter/nf_conntrack_proto_dccp.c static u64 dccp_ack_seq(const struct dccp_hdr *dh) dh 424 net/netfilter/nf_conntrack_proto_dccp.c dhack = (void *)dh + __dccp_basic_hdr_len(dh); dh 429 net/netfilter/nf_conntrack_proto_dccp.c static bool dccp_error(const struct dccp_hdr *dh, dh 437 net/netfilter/nf_conntrack_proto_dccp.c if (dh->dccph_doff * 4 < sizeof(struct dccp_hdr) || dh 438 net/netfilter/nf_conntrack_proto_dccp.c dh->dccph_doff * 4 > dccp_len) { dh 444 net/netfilter/nf_conntrack_proto_dccp.c if (dh->dccph_cscov) { dh 445 net/netfilter/nf_conntrack_proto_dccp.c cscov = (dh->dccph_cscov - 1) * 4; dh 460 net/netfilter/nf_conntrack_proto_dccp.c if (dh->dccph_type >= DCCP_PKT_INVALID) { dh 477 net/netfilter/nf_conntrack_proto_dccp.c struct dccp_hdr _dh, *dh; dh 482 net/netfilter/nf_conntrack_proto_dccp.c dh = skb_header_pointer(skb, dataoff, sizeof(_dh), &_dh); dh 483 net/netfilter/nf_conntrack_proto_dccp.c if (!dh) dh 486 net/netfilter/nf_conntrack_proto_dccp.c if (dccp_error(dh, skb, dataoff, state)) dh 489 net/netfilter/nf_conntrack_proto_dccp.c type = dh->dccph_type; dh 490 net/netfilter/nf_conntrack_proto_dccp.c if (!nf_ct_is_confirmed(ct) && !dccp_new(ct, skb, dh)) dh 518 net/netfilter/nf_conntrack_proto_dccp.c ct->proto.dccp.handshake_seq = dccp_hdr_seq(dh); dh 523 net/netfilter/nf_conntrack_proto_dccp.c dccp_ack_seq(dh) == ct->proto.dccp.handshake_seq) dh 537 net/netfilter/nf_conntrack_proto_dccp.c ct->proto.dccp.handshake_seq = dccp_hdr_seq(dh); dh 37 net/netfilter/xt_dccp.c const struct dccp_hdr *dh, dh 42 net/netfilter/xt_dccp.c unsigned int optoff = __dccp_hdr_len(dh); dh 43 net/netfilter/xt_dccp.c unsigned int optlen = dh->dccph_doff*4 - __dccp_hdr_len(dh); dh 46 net/netfilter/xt_dccp.c if (dh->dccph_doff * 4 < __dccp_hdr_len(dh)) dh 83 net/netfilter/xt_dccp.c match_types(const struct dccp_hdr *dh, u_int16_t typemask) dh 85 net/netfilter/xt_dccp.c return typemask & (1 << dh->dccph_type); dh 90 net/netfilter/xt_dccp.c const struct dccp_hdr *dh, bool *hotdrop) dh 92 net/netfilter/xt_dccp.c return dccp_find_option(option, skb, protoff, dh, hotdrop); dh 99 net/netfilter/xt_dccp.c const struct dccp_hdr *dh; dh 105 net/netfilter/xt_dccp.c dh = skb_header_pointer(skb, par->thoff, sizeof(_dh), &_dh); dh 106 net/netfilter/xt_dccp.c if (dh == NULL) { dh 111 net/netfilter/xt_dccp.c return DCCHECK(ntohs(dh->dccph_sport) >= info->spts[0] dh 112 net/netfilter/xt_dccp.c && ntohs(dh->dccph_sport) <= info->spts[1], dh 114 net/netfilter/xt_dccp.c && DCCHECK(ntohs(dh->dccph_dport) >= info->dpts[0] dh 115 net/netfilter/xt_dccp.c && ntohs(dh->dccph_dport) <= info->dpts[1], dh 117 net/netfilter/xt_dccp.c && DCCHECK(match_types(dh, info->typemask), dh 119 net/netfilter/xt_dccp.c && DCCHECK(match_option(info->option, skb, par->thoff, dh, dh 366 net/netfilter/xt_hashlimit.c struct dsthash_ent *dh; dh 370 net/netfilter/xt_hashlimit.c hlist_for_each_entry_safe(dh, n, &ht->hash[i], node) { dh 371 net/netfilter/xt_hashlimit.c if (time_after_eq(jiffies, dh->expires) || select_all) dh 372 net/netfilter/xt_hashlimit.c dsthash_free(ht, dh); dh 529 net/netfilter/xt_hashlimit.c static void rateinfo_recalc(struct dsthash_ent *dh, unsigned long now, dh 532 net/netfilter/xt_hashlimit.c unsigned long delta = now - dh->rateinfo.prev; dh 539 net/netfilter/xt_hashlimit.c u64 interval = dh->rateinfo.interval * HZ; dh 544 net/netfilter/xt_hashlimit.c dh->rateinfo.prev = now; dh 545 net/netfilter/xt_hashlimit.c dh->rateinfo.prev_window = dh 546 net/netfilter/xt_hashlimit.c ((dh->rateinfo.current_rate * interval) > dh 547 net/netfilter/xt_hashlimit.c (delta * dh->rateinfo.rate)); dh 548 net/netfilter/xt_hashlimit.c dh->rateinfo.current_rate = 0; dh 553 net/netfilter/xt_hashlimit.c dh->rateinfo.prev = now; dh 556 net/netfilter/xt_hashlimit.c u64 tmp = dh->rateinfo.credit; dh 557 net/netfilter/xt_hashlimit.c dh->rateinfo.credit += CREDITS_PER_JIFFY_BYTES * delta; dh 559 net/netfilter/xt_hashlimit.c if (tmp >= dh->rateinfo.credit) {/* overflow */ dh 560 net/netfilter/xt_hashlimit.c dh->rateinfo.credit = cap; dh 566 net/netfilter/xt_hashlimit.c dh->rateinfo.credit += delta * cpj; dh 567 net/netfilter/xt_hashlimit.c cap = dh->rateinfo.credit_cap; dh 569 net/netfilter/xt_hashlimit.c if (dh->rateinfo.credit > cap) dh 570 net/netfilter/xt_hashlimit.c dh->rateinfo.credit = cap; dh 573 net/netfilter/xt_hashlimit.c static void rateinfo_init(struct dsthash_ent *dh, dh 576 net/netfilter/xt_hashlimit.c dh->rateinfo.prev = jiffies; dh 578 net/netfilter/xt_hashlimit.c dh->rateinfo.prev_window = 0; dh 579 net/netfilter/xt_hashlimit.c dh->rateinfo.current_rate = 0; dh 581 net/netfilter/xt_hashlimit.c dh->rateinfo.rate = dh 584 net/netfilter/xt_hashlimit.c dh->rateinfo.burst = dh 585 net/netfilter/xt_hashlimit.c hinfo->cfg.burst * dh->rateinfo.rate; dh 587 net/netfilter/xt_hashlimit.c dh->rateinfo.burst = dh->rateinfo.rate; dh 589 net/netfilter/xt_hashlimit.c dh->rateinfo.rate = user2rate(hinfo->cfg.avg); dh 590 net/netfilter/xt_hashlimit.c dh->rateinfo.burst = dh 591 net/netfilter/xt_hashlimit.c hinfo->cfg.burst + dh->rateinfo.rate; dh 593 net/netfilter/xt_hashlimit.c dh->rateinfo.interval = hinfo->cfg.interval; dh 595 net/netfilter/xt_hashlimit.c dh->rateinfo.credit = CREDITS_PER_JIFFY_BYTES * HZ; dh 596 net/netfilter/xt_hashlimit.c dh->rateinfo.cost = user2credits_byte(hinfo->cfg.avg); dh 597 net/netfilter/xt_hashlimit.c dh->rateinfo.credit_cap = hinfo->cfg.burst; dh 599 net/netfilter/xt_hashlimit.c dh->rateinfo.credit = user2credits(hinfo->cfg.avg * dh 601 net/netfilter/xt_hashlimit.c dh->rateinfo.cost = user2credits(hinfo->cfg.avg, revision); dh 602 net/netfilter/xt_hashlimit.c dh->rateinfo.credit_cap = dh->rateinfo.credit; dh 709 net/netfilter/xt_hashlimit.c static u32 hashlimit_byte_cost(unsigned int len, struct dsthash_ent *dh) dh 712 net/netfilter/xt_hashlimit.c tmp = tmp * dh->rateinfo.cost; dh 717 net/netfilter/xt_hashlimit.c if (dh->rateinfo.credit < tmp && dh->rateinfo.credit_cap) { dh 718 net/netfilter/xt_hashlimit.c dh->rateinfo.credit_cap--; dh 719 net/netfilter/xt_hashlimit.c dh->rateinfo.credit = CREDITS_PER_JIFFY_BYTES * HZ; dh 730 net/netfilter/xt_hashlimit.c struct dsthash_ent *dh; dh 739 net/netfilter/xt_hashlimit.c dh = dsthash_find(hinfo, &dst); dh 740 net/netfilter/xt_hashlimit.c if (dh == NULL) { dh 741 net/netfilter/xt_hashlimit.c dh = dsthash_alloc_init(hinfo, &dst, &race); dh 742 net/netfilter/xt_hashlimit.c if (dh == NULL) { dh 747 net/netfilter/xt_hashlimit.c dh->expires = now + msecs_to_jiffies(hinfo->cfg.expire); dh 748 net/netfilter/xt_hashlimit.c rateinfo_recalc(dh, now, hinfo->cfg.mode, revision); dh 750 net/netfilter/xt_hashlimit.c dh->expires = jiffies + msecs_to_jiffies(hinfo->cfg.expire); dh 751 net/netfilter/xt_hashlimit.c rateinfo_init(dh, hinfo, revision); dh 755 net/netfilter/xt_hashlimit.c dh->expires = now + msecs_to_jiffies(hinfo->cfg.expire); dh 756 net/netfilter/xt_hashlimit.c rateinfo_recalc(dh, now, hinfo->cfg.mode, revision); dh 761 net/netfilter/xt_hashlimit.c dh->rateinfo.current_rate += cost; dh 763 net/netfilter/xt_hashlimit.c if (!dh->rateinfo.prev_window && dh 764 net/netfilter/xt_hashlimit.c (dh->rateinfo.current_rate <= dh->rateinfo.burst)) { dh 765 net/netfilter/xt_hashlimit.c spin_unlock(&dh->lock); dh 774 net/netfilter/xt_hashlimit.c cost = hashlimit_byte_cost(skb->len, dh); dh 776 net/netfilter/xt_hashlimit.c cost = dh->rateinfo.cost; dh 778 net/netfilter/xt_hashlimit.c if (dh->rateinfo.credit >= cost) { dh 780 net/netfilter/xt_hashlimit.c dh->rateinfo.credit -= cost; dh 781 net/netfilter/xt_hashlimit.c spin_unlock(&dh->lock); dh 787 net/netfilter/xt_hashlimit.c spin_unlock(&dh->lock); dh 59 security/keys/dh.c static void dh_free_data(struct dh *dh) dh 61 security/keys/dh.c kzfree(dh->key); dh 62 security/keys/dh.c kzfree(dh->p); dh 63 security/keys/dh.c kzfree(dh->g); dh 236 security/keys/dh.c struct dh dh_inputs; dh 78 security/lsm_audit.c struct dccp_hdr *dh = dccp_hdr(skb); dh 79 security/lsm_audit.c if (dh == NULL) dh 82 security/lsm_audit.c ad->u.net->sport = dh->dccph_sport; dh 83 security/lsm_audit.c ad->u.net->dport = dh->dccph_dport; dh 156 security/lsm_audit.c struct dccp_hdr _dccph, *dh; dh 158 security/lsm_audit.c dh = skb_header_pointer(skb, offset, sizeof(_dccph), &_dccph); dh 159 security/lsm_audit.c if (dh == NULL) dh 162 security/lsm_audit.c ad->u.net->sport = dh->dccph_sport; dh 163 security/lsm_audit.c ad->u.net->dport = dh->dccph_dport; dh 4231 security/selinux/hooks.c struct dccp_hdr _dccph, *dh; dh 4237 security/selinux/hooks.c dh = skb_header_pointer(skb, offset, sizeof(_dccph), &_dccph); dh 4238 security/selinux/hooks.c if (dh == NULL) dh 4241 security/selinux/hooks.c ad->u.net->sport = dh->dccph_sport; dh 4242 security/selinux/hooks.c ad->u.net->dport = dh->dccph_dport; dh 4325 security/selinux/hooks.c struct dccp_hdr _dccph, *dh; dh 4327 security/selinux/hooks.c dh = skb_header_pointer(skb, offset, sizeof(_dccph), &_dccph); dh 4328 security/selinux/hooks.c if (dh == NULL) dh 4331 security/selinux/hooks.c ad->u.net->sport = dh->dccph_sport; dh 4332 security/selinux/hooks.c ad->u.net->dport = dh->dccph_dport; dh 3787 security/smack/smack_lsm.c struct dccp_hdr _dccph, *dh; dh 3817 security/smack/smack_lsm.c dh = skb_header_pointer(skb, offset, sizeof(_dccph), &_dccph); dh 3818 security/smack/smack_lsm.c if (dh != NULL) dh 3819 security/smack/smack_lsm.c sip->sin6_port = dh->dccph_sport; dh 78 tools/perf/arch/x86/util/perf_regs.c SDT_NAME_REG(dh, dx),