dtd 668 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct psb_intel_sdvo_dtd *dtd) dtd 670 drivers/gpu/drm/gma500/psb_intel_sdvo.c return psb_intel_sdvo_set_value(psb_intel_sdvo, cmd, &dtd->part1, sizeof(dtd->part1)) && dtd 671 drivers/gpu/drm/gma500/psb_intel_sdvo.c psb_intel_sdvo_set_value(psb_intel_sdvo, cmd + 1, &dtd->part2, sizeof(dtd->part2)); dtd 675 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct psb_intel_sdvo_dtd *dtd) dtd 678 drivers/gpu/drm/gma500/psb_intel_sdvo.c SDVO_CMD_SET_INPUT_TIMINGS_PART1, dtd); dtd 682 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct psb_intel_sdvo_dtd *dtd) dtd 685 drivers/gpu/drm/gma500/psb_intel_sdvo.c SDVO_CMD_SET_OUTPUT_TIMINGS_PART1, dtd); dtd 713 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct psb_intel_sdvo_dtd *dtd) dtd 715 drivers/gpu/drm/gma500/psb_intel_sdvo.c BUILD_BUG_ON(sizeof(dtd->part1) != 8); dtd 716 drivers/gpu/drm/gma500/psb_intel_sdvo.c BUILD_BUG_ON(sizeof(dtd->part2) != 8); dtd 718 drivers/gpu/drm/gma500/psb_intel_sdvo.c &dtd->part1, sizeof(dtd->part1)) && dtd 720 drivers/gpu/drm/gma500/psb_intel_sdvo.c &dtd->part2, sizeof(dtd->part2)); dtd 728 drivers/gpu/drm/gma500/psb_intel_sdvo.c static void psb_intel_sdvo_get_dtd_from_mode(struct psb_intel_sdvo_dtd *dtd, dtd 748 drivers/gpu/drm/gma500/psb_intel_sdvo.c dtd->part1.clock = mode->clock / 10; dtd 749 drivers/gpu/drm/gma500/psb_intel_sdvo.c dtd->part1.h_active = width & 0xff; dtd 750 drivers/gpu/drm/gma500/psb_intel_sdvo.c dtd->part1.h_blank = h_blank_len & 0xff; dtd 751 drivers/gpu/drm/gma500/psb_intel_sdvo.c dtd->part1.h_high = (((width >> 8) & 0xf) << 4) | dtd 753 drivers/gpu/drm/gma500/psb_intel_sdvo.c dtd->part1.v_active = height & 0xff; dtd 754 drivers/gpu/drm/gma500/psb_intel_sdvo.c dtd->part1.v_blank = v_blank_len & 0xff; dtd 755 drivers/gpu/drm/gma500/psb_intel_sdvo.c dtd->part1.v_high = (((height >> 8) & 0xf) << 4) | dtd 758 drivers/gpu/drm/gma500/psb_intel_sdvo.c dtd->part2.h_sync_off = h_sync_offset & 0xff; dtd 759 drivers/gpu/drm/gma500/psb_intel_sdvo.c dtd->part2.h_sync_width = h_sync_len & 0xff; dtd 760 drivers/gpu/drm/gma500/psb_intel_sdvo.c dtd->part2.v_sync_off_width = (v_sync_offset & 0xf) << 4 | dtd 762 drivers/gpu/drm/gma500/psb_intel_sdvo.c dtd->part2.sync_off_width_high = ((h_sync_offset & 0x300) >> 2) | dtd 766 drivers/gpu/drm/gma500/psb_intel_sdvo.c dtd->part2.dtd_flags = 0x18; dtd 768 drivers/gpu/drm/gma500/psb_intel_sdvo.c dtd->part2.dtd_flags |= 0x2; dtd 770 drivers/gpu/drm/gma500/psb_intel_sdvo.c dtd->part2.dtd_flags |= 0x4; dtd 772 drivers/gpu/drm/gma500/psb_intel_sdvo.c dtd->part2.sdvo_flags = 0; dtd 773 drivers/gpu/drm/gma500/psb_intel_sdvo.c dtd->part2.v_sync_off_high = v_sync_offset & 0xc0; dtd 774 drivers/gpu/drm/gma500/psb_intel_sdvo.c dtd->part2.reserved = 0; dtd 778 drivers/gpu/drm/gma500/psb_intel_sdvo.c const struct psb_intel_sdvo_dtd *dtd) dtd 780 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->hdisplay = dtd->part1.h_active; dtd 781 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->hdisplay += ((dtd->part1.h_high >> 4) & 0x0f) << 8; dtd 782 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->hsync_start = mode->hdisplay + dtd->part2.h_sync_off; dtd 783 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->hsync_start += (dtd->part2.sync_off_width_high & 0xc0) << 2; dtd 784 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->hsync_end = mode->hsync_start + dtd->part2.h_sync_width; dtd 785 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->hsync_end += (dtd->part2.sync_off_width_high & 0x30) << 4; dtd 786 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->htotal = mode->hdisplay + dtd->part1.h_blank; dtd 787 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->htotal += (dtd->part1.h_high & 0xf) << 8; dtd 789 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->vdisplay = dtd->part1.v_active; dtd 790 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->vdisplay += ((dtd->part1.v_high >> 4) & 0x0f) << 8; dtd 792 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->vsync_start += (dtd->part2.v_sync_off_width >> 4) & 0xf; dtd 793 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->vsync_start += (dtd->part2.sync_off_width_high & 0x0c) << 2; dtd 794 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->vsync_start += dtd->part2.v_sync_off_high & 0xc0; dtd 796 drivers/gpu/drm/gma500/psb_intel_sdvo.c (dtd->part2.v_sync_off_width & 0xf); dtd 797 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->vsync_end += (dtd->part2.sync_off_width_high & 0x3) << 4; dtd 798 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->vtotal = mode->vdisplay + dtd->part1.v_blank; dtd 799 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->vtotal += (dtd->part1.v_high & 0xf) << 8; dtd 801 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->clock = dtd->part1.clock * 10; dtd 804 drivers/gpu/drm/gma500/psb_intel_sdvo.c if (dtd->part2.dtd_flags & 0x2) dtd 806 drivers/gpu/drm/gma500/psb_intel_sdvo.c if (dtd->part2.dtd_flags & 0x4) dtd 747 drivers/gpu/drm/i915/display/intel_sdvo.c struct intel_sdvo_dtd *dtd) dtd 749 drivers/gpu/drm/i915/display/intel_sdvo.c return intel_sdvo_set_value(intel_sdvo, cmd, &dtd->part1, sizeof(dtd->part1)) && dtd 750 drivers/gpu/drm/i915/display/intel_sdvo.c intel_sdvo_set_value(intel_sdvo, cmd + 1, &dtd->part2, sizeof(dtd->part2)); dtd 754 drivers/gpu/drm/i915/display/intel_sdvo.c struct intel_sdvo_dtd *dtd) dtd 756 drivers/gpu/drm/i915/display/intel_sdvo.c return intel_sdvo_get_value(intel_sdvo, cmd, &dtd->part1, sizeof(dtd->part1)) && dtd 757 drivers/gpu/drm/i915/display/intel_sdvo.c intel_sdvo_get_value(intel_sdvo, cmd + 1, &dtd->part2, sizeof(dtd->part2)); dtd 761 drivers/gpu/drm/i915/display/intel_sdvo.c struct intel_sdvo_dtd *dtd) dtd 764 drivers/gpu/drm/i915/display/intel_sdvo.c SDVO_CMD_SET_INPUT_TIMINGS_PART1, dtd); dtd 768 drivers/gpu/drm/i915/display/intel_sdvo.c struct intel_sdvo_dtd *dtd) dtd 771 drivers/gpu/drm/i915/display/intel_sdvo.c SDVO_CMD_SET_OUTPUT_TIMINGS_PART1, dtd); dtd 775 drivers/gpu/drm/i915/display/intel_sdvo.c struct intel_sdvo_dtd *dtd) dtd 778 drivers/gpu/drm/i915/display/intel_sdvo.c SDVO_CMD_GET_INPUT_TIMINGS_PART1, dtd); dtd 811 drivers/gpu/drm/i915/display/intel_sdvo.c struct intel_sdvo_dtd *dtd) dtd 813 drivers/gpu/drm/i915/display/intel_sdvo.c BUILD_BUG_ON(sizeof(dtd->part1) != 8); dtd 814 drivers/gpu/drm/i915/display/intel_sdvo.c BUILD_BUG_ON(sizeof(dtd->part2) != 8); dtd 816 drivers/gpu/drm/i915/display/intel_sdvo.c &dtd->part1, sizeof(dtd->part1)) && dtd 818 drivers/gpu/drm/i915/display/intel_sdvo.c &dtd->part2, sizeof(dtd->part2)); dtd 826 drivers/gpu/drm/i915/display/intel_sdvo.c static void intel_sdvo_get_dtd_from_mode(struct intel_sdvo_dtd *dtd, dtd 834 drivers/gpu/drm/i915/display/intel_sdvo.c memset(dtd, 0, sizeof(*dtd)); dtd 851 drivers/gpu/drm/i915/display/intel_sdvo.c dtd->part1.clock = mode_clock; dtd 853 drivers/gpu/drm/i915/display/intel_sdvo.c dtd->part1.h_active = width & 0xff; dtd 854 drivers/gpu/drm/i915/display/intel_sdvo.c dtd->part1.h_blank = h_blank_len & 0xff; dtd 855 drivers/gpu/drm/i915/display/intel_sdvo.c dtd->part1.h_high = (((width >> 8) & 0xf) << 4) | dtd 857 drivers/gpu/drm/i915/display/intel_sdvo.c dtd->part1.v_active = height & 0xff; dtd 858 drivers/gpu/drm/i915/display/intel_sdvo.c dtd->part1.v_blank = v_blank_len & 0xff; dtd 859 drivers/gpu/drm/i915/display/intel_sdvo.c dtd->part1.v_high = (((height >> 8) & 0xf) << 4) | dtd 862 drivers/gpu/drm/i915/display/intel_sdvo.c dtd->part2.h_sync_off = h_sync_offset & 0xff; dtd 863 drivers/gpu/drm/i915/display/intel_sdvo.c dtd->part2.h_sync_width = h_sync_len & 0xff; dtd 864 drivers/gpu/drm/i915/display/intel_sdvo.c dtd->part2.v_sync_off_width = (v_sync_offset & 0xf) << 4 | dtd 866 drivers/gpu/drm/i915/display/intel_sdvo.c dtd->part2.sync_off_width_high = ((h_sync_offset & 0x300) >> 2) | dtd 870 drivers/gpu/drm/i915/display/intel_sdvo.c dtd->part2.dtd_flags = 0x18; dtd 872 drivers/gpu/drm/i915/display/intel_sdvo.c dtd->part2.dtd_flags |= DTD_FLAG_INTERLACE; dtd 874 drivers/gpu/drm/i915/display/intel_sdvo.c dtd->part2.dtd_flags |= DTD_FLAG_HSYNC_POSITIVE; dtd 876 drivers/gpu/drm/i915/display/intel_sdvo.c dtd->part2.dtd_flags |= DTD_FLAG_VSYNC_POSITIVE; dtd 878 drivers/gpu/drm/i915/display/intel_sdvo.c dtd->part2.v_sync_off_high = v_sync_offset & 0xc0; dtd 882 drivers/gpu/drm/i915/display/intel_sdvo.c const struct intel_sdvo_dtd *dtd) dtd 886 drivers/gpu/drm/i915/display/intel_sdvo.c mode.hdisplay = dtd->part1.h_active; dtd 887 drivers/gpu/drm/i915/display/intel_sdvo.c mode.hdisplay += ((dtd->part1.h_high >> 4) & 0x0f) << 8; dtd 888 drivers/gpu/drm/i915/display/intel_sdvo.c mode.hsync_start = mode.hdisplay + dtd->part2.h_sync_off; dtd 889 drivers/gpu/drm/i915/display/intel_sdvo.c mode.hsync_start += (dtd->part2.sync_off_width_high & 0xc0) << 2; dtd 890 drivers/gpu/drm/i915/display/intel_sdvo.c mode.hsync_end = mode.hsync_start + dtd->part2.h_sync_width; dtd 891 drivers/gpu/drm/i915/display/intel_sdvo.c mode.hsync_end += (dtd->part2.sync_off_width_high & 0x30) << 4; dtd 892 drivers/gpu/drm/i915/display/intel_sdvo.c mode.htotal = mode.hdisplay + dtd->part1.h_blank; dtd 893 drivers/gpu/drm/i915/display/intel_sdvo.c mode.htotal += (dtd->part1.h_high & 0xf) << 8; dtd 895 drivers/gpu/drm/i915/display/intel_sdvo.c mode.vdisplay = dtd->part1.v_active; dtd 896 drivers/gpu/drm/i915/display/intel_sdvo.c mode.vdisplay += ((dtd->part1.v_high >> 4) & 0x0f) << 8; dtd 898 drivers/gpu/drm/i915/display/intel_sdvo.c mode.vsync_start += (dtd->part2.v_sync_off_width >> 4) & 0xf; dtd 899 drivers/gpu/drm/i915/display/intel_sdvo.c mode.vsync_start += (dtd->part2.sync_off_width_high & 0x0c) << 2; dtd 900 drivers/gpu/drm/i915/display/intel_sdvo.c mode.vsync_start += dtd->part2.v_sync_off_high & 0xc0; dtd 902 drivers/gpu/drm/i915/display/intel_sdvo.c (dtd->part2.v_sync_off_width & 0xf); dtd 903 drivers/gpu/drm/i915/display/intel_sdvo.c mode.vsync_end += (dtd->part2.sync_off_width_high & 0x3) << 4; dtd 904 drivers/gpu/drm/i915/display/intel_sdvo.c mode.vtotal = mode.vdisplay + dtd->part1.v_blank; dtd 905 drivers/gpu/drm/i915/display/intel_sdvo.c mode.vtotal += (dtd->part1.v_high & 0xf) << 8; dtd 907 drivers/gpu/drm/i915/display/intel_sdvo.c mode.clock = dtd->part1.clock * 10; dtd 909 drivers/gpu/drm/i915/display/intel_sdvo.c if (dtd->part2.dtd_flags & DTD_FLAG_INTERLACE) dtd 911 drivers/gpu/drm/i915/display/intel_sdvo.c if (dtd->part2.dtd_flags & DTD_FLAG_HSYNC_POSITIVE) dtd 915 drivers/gpu/drm/i915/display/intel_sdvo.c if (dtd->part2.dtd_flags & DTD_FLAG_VSYNC_POSITIVE) dtd 1601 drivers/gpu/drm/i915/display/intel_sdvo.c struct intel_sdvo_dtd dtd; dtd 1612 drivers/gpu/drm/i915/display/intel_sdvo.c ret = intel_sdvo_get_input_timing(intel_sdvo, &dtd); dtd 1621 drivers/gpu/drm/i915/display/intel_sdvo.c if (dtd.part2.dtd_flags & DTD_FLAG_HSYNC_POSITIVE) dtd 1626 drivers/gpu/drm/i915/display/intel_sdvo.c if (dtd.part2.dtd_flags & DTD_FLAG_VSYNC_POSITIVE) dtd 548 drivers/media/platform/ti-vpe/vpdma.c static void dump_dtd(struct vpdma_dtd *dtd); dtd 554 drivers/media/platform/ti-vpe/vpdma.c struct vpdma_dtd *dtd = list->buf.addr; dtd 558 drivers/media/platform/ti-vpe/vpdma.c dtd += idx; dtd 561 drivers/media/platform/ti-vpe/vpdma.c dtd->start_addr = dma_addr; dtd 570 drivers/media/platform/ti-vpe/vpdma.c dtd->desc_write_addr = dtd_desc_write_addr(write_desc_addr, dtd 573 drivers/media/platform/ti-vpe/vpdma.c dtd->desc_write_addr = dtd_desc_write_addr(write_desc_addr, dtd 578 drivers/media/platform/ti-vpe/vpdma.c dump_dtd(dtd); dtd 743 drivers/media/platform/ti-vpe/vpdma.c static void dump_dtd(struct vpdma_dtd *dtd) dtd 747 drivers/media/platform/ti-vpe/vpdma.c dir = dtd_get_dir(dtd); dtd 748 drivers/media/platform/ti-vpe/vpdma.c chan = dtd_get_chan(dtd); dtd 754 drivers/media/platform/ti-vpe/vpdma.c dtd_get_data_type(dtd), dtd_get_notify(dtd), dtd_get_field(dtd), dtd 755 drivers/media/platform/ti-vpe/vpdma.c dtd_get_1d(dtd), dtd_get_even_line_skip(dtd), dtd 756 drivers/media/platform/ti-vpe/vpdma.c dtd_get_odd_line_skip(dtd), dtd_get_line_stride(dtd)); dtd 760 drivers/media/platform/ti-vpe/vpdma.c dtd_get_line_length(dtd), dtd_get_xfer_height(dtd)); dtd 762 drivers/media/platform/ti-vpe/vpdma.c pr_debug("word2: start_addr = %pad\n", &dtd->start_addr); dtd 765 drivers/media/platform/ti-vpe/vpdma.c dtd_get_pkt_type(dtd), dtd 766 drivers/media/platform/ti-vpe/vpdma.c dtd_get_mode(dtd), dir, chan, dtd_get_priority(dtd), dtd 767 drivers/media/platform/ti-vpe/vpdma.c dtd_get_next_chan(dtd)); dtd 771 drivers/media/platform/ti-vpe/vpdma.c dtd_get_frame_width(dtd), dtd_get_frame_height(dtd)); dtd 774 drivers/media/platform/ti-vpe/vpdma.c dtd_get_desc_write_addr(dtd), dtd_get_write_desc(dtd), dtd 775 drivers/media/platform/ti-vpe/vpdma.c dtd_get_drop_data(dtd), dtd_get_use_desc(dtd)); dtd 779 drivers/media/platform/ti-vpe/vpdma.c dtd_get_h_start(dtd), dtd_get_v_start(dtd)); dtd 782 drivers/media/platform/ti-vpe/vpdma.c dtd_get_max_width(dtd), dtd_get_max_height(dtd)); dtd 784 drivers/media/platform/ti-vpe/vpdma.c pr_debug("word6: client specific attr0 = 0x%08x\n", dtd->client_attr0); dtd 785 drivers/media/platform/ti-vpe/vpdma.c pr_debug("word7: client specific attr1 = 0x%08x\n", dtd->client_attr1); dtd 823 drivers/media/platform/ti-vpe/vpdma.c struct vpdma_dtd *dtd; dtd 836 drivers/media/platform/ti-vpe/vpdma.c dtd = list->next; dtd 837 drivers/media/platform/ti-vpe/vpdma.c WARN_ON((void *)(dtd + 1) > (list->buf.addr + list->buf.size)); dtd 839 drivers/media/platform/ti-vpe/vpdma.c dtd->type_ctl_stride = dtd_type_ctl_stride(fmt->data_type, dtd 846 drivers/media/platform/ti-vpe/vpdma.c dtd->w1 = 0; dtd 847 drivers/media/platform/ti-vpe/vpdma.c dtd->start_addr = (u32) dma_addr; dtd 848 drivers/media/platform/ti-vpe/vpdma.c dtd->pkt_ctl = dtd_pkt_ctl(!!(flags & VPDMA_DATA_MODE_TILED), dtd 850 drivers/media/platform/ti-vpe/vpdma.c dtd->desc_write_addr = dtd_desc_write_addr(0, 0, 0, 0); dtd 851 drivers/media/platform/ti-vpe/vpdma.c dtd->max_width_height = dtd_max_width_height(max_w, max_h); dtd 852 drivers/media/platform/ti-vpe/vpdma.c dtd->client_attr0 = 0; dtd 853 drivers/media/platform/ti-vpe/vpdma.c dtd->client_attr1 = 0; dtd 855 drivers/media/platform/ti-vpe/vpdma.c list->next = dtd + 1; dtd 857 drivers/media/platform/ti-vpe/vpdma.c dump_dtd(dtd); dtd 891 drivers/media/platform/ti-vpe/vpdma.c struct vpdma_dtd *dtd; dtd 904 drivers/media/platform/ti-vpe/vpdma.c dtd = list->next; dtd 905 drivers/media/platform/ti-vpe/vpdma.c WARN_ON((void *)(dtd + 1) > (list->buf.addr + list->buf.size)); dtd 907 drivers/media/platform/ti-vpe/vpdma.c dtd->type_ctl_stride = dtd_type_ctl_stride(fmt->data_type, dtd 915 drivers/media/platform/ti-vpe/vpdma.c dtd->xfer_length_height = dtd_xfer_length_height(rect.width, dtd 917 drivers/media/platform/ti-vpe/vpdma.c dtd->start_addr = (u32) dma_addr; dtd 918 drivers/media/platform/ti-vpe/vpdma.c dtd->pkt_ctl = dtd_pkt_ctl(!!(flags & VPDMA_DATA_MODE_TILED), dtd 920 drivers/media/platform/ti-vpe/vpdma.c dtd->frame_width_height = dtd_frame_width_height(frame_width, dtd 922 drivers/media/platform/ti-vpe/vpdma.c dtd->start_h_v = dtd_start_h_v(start_h, start_v); dtd 923 drivers/media/platform/ti-vpe/vpdma.c dtd->client_attr0 = 0; dtd 924 drivers/media/platform/ti-vpe/vpdma.c dtd->client_attr1 = 0; dtd 926 drivers/media/platform/ti-vpe/vpdma.c list->next = dtd + 1; dtd 928 drivers/media/platform/ti-vpe/vpdma.c dump_dtd(dtd); dtd 301 drivers/media/platform/ti-vpe/vpdma_priv.h static inline int dtd_get_data_type(struct vpdma_dtd *dtd) dtd 303 drivers/media/platform/ti-vpe/vpdma_priv.h return dtd->type_ctl_stride >> DTD_DATA_TYPE_SHFT; dtd 306 drivers/media/platform/ti-vpe/vpdma_priv.h static inline bool dtd_get_notify(struct vpdma_dtd *dtd) dtd 308 drivers/media/platform/ti-vpe/vpdma_priv.h return (dtd->type_ctl_stride >> DTD_NOTIFY_SHFT) & DTD_NOTIFY_MASK; dtd 311 drivers/media/platform/ti-vpe/vpdma_priv.h static inline int dtd_get_field(struct vpdma_dtd *dtd) dtd 313 drivers/media/platform/ti-vpe/vpdma_priv.h return (dtd->type_ctl_stride >> DTD_FIELD_SHFT) & DTD_FIELD_MASK; dtd 316 drivers/media/platform/ti-vpe/vpdma_priv.h static inline bool dtd_get_1d(struct vpdma_dtd *dtd) dtd 318 drivers/media/platform/ti-vpe/vpdma_priv.h return (dtd->type_ctl_stride >> DTD_1D_SHFT) & DTD_1D_MASK; dtd 321 drivers/media/platform/ti-vpe/vpdma_priv.h static inline bool dtd_get_even_line_skip(struct vpdma_dtd *dtd) dtd 323 drivers/media/platform/ti-vpe/vpdma_priv.h return (dtd->type_ctl_stride >> DTD_EVEN_LINE_SKIP_SHFT) dtd 327 drivers/media/platform/ti-vpe/vpdma_priv.h static inline bool dtd_get_odd_line_skip(struct vpdma_dtd *dtd) dtd 329 drivers/media/platform/ti-vpe/vpdma_priv.h return (dtd->type_ctl_stride >> DTD_ODD_LINE_SKIP_SHFT) dtd 333 drivers/media/platform/ti-vpe/vpdma_priv.h static inline int dtd_get_line_stride(struct vpdma_dtd *dtd) dtd 335 drivers/media/platform/ti-vpe/vpdma_priv.h return dtd->type_ctl_stride & DTD_LINE_STRIDE_MASK; dtd 338 drivers/media/platform/ti-vpe/vpdma_priv.h static inline int dtd_get_line_length(struct vpdma_dtd *dtd) dtd 340 drivers/media/platform/ti-vpe/vpdma_priv.h return dtd->xfer_length_height >> DTD_LINE_LENGTH_SHFT; dtd 343 drivers/media/platform/ti-vpe/vpdma_priv.h static inline int dtd_get_xfer_height(struct vpdma_dtd *dtd) dtd 345 drivers/media/platform/ti-vpe/vpdma_priv.h return dtd->xfer_length_height & DTD_XFER_HEIGHT_MASK; dtd 348 drivers/media/platform/ti-vpe/vpdma_priv.h static inline int dtd_get_pkt_type(struct vpdma_dtd *dtd) dtd 350 drivers/media/platform/ti-vpe/vpdma_priv.h return dtd->pkt_ctl >> DTD_PKT_TYPE_SHFT; dtd 353 drivers/media/platform/ti-vpe/vpdma_priv.h static inline bool dtd_get_mode(struct vpdma_dtd *dtd) dtd 355 drivers/media/platform/ti-vpe/vpdma_priv.h return (dtd->pkt_ctl >> DTD_MODE_SHFT) & DTD_MODE_MASK; dtd 358 drivers/media/platform/ti-vpe/vpdma_priv.h static inline bool dtd_get_dir(struct vpdma_dtd *dtd) dtd 360 drivers/media/platform/ti-vpe/vpdma_priv.h return (dtd->pkt_ctl >> DTD_DIR_SHFT) & DTD_DIR_MASK; dtd 363 drivers/media/platform/ti-vpe/vpdma_priv.h static inline int dtd_get_chan(struct vpdma_dtd *dtd) dtd 365 drivers/media/platform/ti-vpe/vpdma_priv.h return (dtd->pkt_ctl >> DTD_CHAN_SHFT) & DTD_CHAN_MASK; dtd 368 drivers/media/platform/ti-vpe/vpdma_priv.h static inline int dtd_get_priority(struct vpdma_dtd *dtd) dtd 370 drivers/media/platform/ti-vpe/vpdma_priv.h return (dtd->pkt_ctl >> DTD_PRI_SHFT) & DTD_PRI_MASK; dtd 373 drivers/media/platform/ti-vpe/vpdma_priv.h static inline int dtd_get_next_chan(struct vpdma_dtd *dtd) dtd 375 drivers/media/platform/ti-vpe/vpdma_priv.h return (dtd->pkt_ctl >> DTD_NEXT_CHAN_SHFT) & DTD_NEXT_CHAN_MASK; dtd 378 drivers/media/platform/ti-vpe/vpdma_priv.h static inline int dtd_get_frame_width(struct vpdma_dtd *dtd) dtd 380 drivers/media/platform/ti-vpe/vpdma_priv.h return dtd->frame_width_height >> DTD_FRAME_WIDTH_SHFT; dtd 383 drivers/media/platform/ti-vpe/vpdma_priv.h static inline int dtd_get_frame_height(struct vpdma_dtd *dtd) dtd 385 drivers/media/platform/ti-vpe/vpdma_priv.h return dtd->frame_width_height & DTD_FRAME_HEIGHT_MASK; dtd 388 drivers/media/platform/ti-vpe/vpdma_priv.h static inline int dtd_get_desc_write_addr(struct vpdma_dtd *dtd) dtd 390 drivers/media/platform/ti-vpe/vpdma_priv.h return dtd->desc_write_addr & DTD_DESC_START_MASK; dtd 393 drivers/media/platform/ti-vpe/vpdma_priv.h static inline bool dtd_get_write_desc(struct vpdma_dtd *dtd) dtd 395 drivers/media/platform/ti-vpe/vpdma_priv.h return (dtd->desc_write_addr >> DTD_WRITE_DESC_SHIFT) & dtd 399 drivers/media/platform/ti-vpe/vpdma_priv.h static inline bool dtd_get_drop_data(struct vpdma_dtd *dtd) dtd 401 drivers/media/platform/ti-vpe/vpdma_priv.h return (dtd->desc_write_addr >> DTD_DROP_DATA_SHIFT) & dtd 405 drivers/media/platform/ti-vpe/vpdma_priv.h static inline bool dtd_get_use_desc(struct vpdma_dtd *dtd) dtd 407 drivers/media/platform/ti-vpe/vpdma_priv.h return dtd->desc_write_addr & DTD_USE_DESC_MASK; dtd 410 drivers/media/platform/ti-vpe/vpdma_priv.h static inline int dtd_get_h_start(struct vpdma_dtd *dtd) dtd 412 drivers/media/platform/ti-vpe/vpdma_priv.h return dtd->start_h_v >> DTD_H_START_SHFT; dtd 415 drivers/media/platform/ti-vpe/vpdma_priv.h static inline int dtd_get_v_start(struct vpdma_dtd *dtd) dtd 417 drivers/media/platform/ti-vpe/vpdma_priv.h return dtd->start_h_v & DTD_V_START_MASK; dtd 420 drivers/media/platform/ti-vpe/vpdma_priv.h static inline int dtd_get_max_width(struct vpdma_dtd *dtd) dtd 422 drivers/media/platform/ti-vpe/vpdma_priv.h return (dtd->max_width_height >> DTD_MAX_WIDTH_SHFT) & dtd 426 drivers/media/platform/ti-vpe/vpdma_priv.h static inline int dtd_get_max_height(struct vpdma_dtd *dtd) dtd 428 drivers/media/platform/ti-vpe/vpdma_priv.h return (dtd->max_width_height >> DTD_MAX_HEIGHT_SHFT) & dtd 2066 drivers/pinctrl/tegra/pinctrl-tegra20.c MUX_PG(dtd, RSVD1, SDIO2, VI, RSVD4, 0x14, 14, 0x84, 28, 0xa0, 24), dtd 778 drivers/usb/gadget/udc/fsl_udc_core.c struct ep_td_struct *dtd; dtd 784 drivers/usb/gadget/udc/fsl_udc_core.c dtd = dma_pool_alloc(udc_controller->td_pool, gfp_flags, dma); dtd 785 drivers/usb/gadget/udc/fsl_udc_core.c if (dtd == NULL) dtd 786 drivers/usb/gadget/udc/fsl_udc_core.c return dtd; dtd 788 drivers/usb/gadget/udc/fsl_udc_core.c dtd->td_dma = *dma; dtd 790 drivers/usb/gadget/udc/fsl_udc_core.c swap_temp = hc32_to_cpu(dtd->size_ioc_sts); dtd 792 drivers/usb/gadget/udc/fsl_udc_core.c dtd->size_ioc_sts = cpu_to_hc32(swap_temp); dtd 796 drivers/usb/gadget/udc/fsl_udc_core.c dtd->buff_ptr0 = cpu_to_hc32(swap_temp); dtd 797 drivers/usb/gadget/udc/fsl_udc_core.c dtd->buff_ptr1 = cpu_to_hc32(swap_temp + 0x1000); dtd 798 drivers/usb/gadget/udc/fsl_udc_core.c dtd->buff_ptr2 = cpu_to_hc32(swap_temp + 0x2000); dtd 799 drivers/usb/gadget/udc/fsl_udc_core.c dtd->buff_ptr3 = cpu_to_hc32(swap_temp + 0x3000); dtd 800 drivers/usb/gadget/udc/fsl_udc_core.c dtd->buff_ptr4 = cpu_to_hc32(swap_temp + 0x4000); dtd 824 drivers/usb/gadget/udc/fsl_udc_core.c dtd->size_ioc_sts = cpu_to_hc32(swap_temp); dtd 830 drivers/usb/gadget/udc/fsl_udc_core.c return dtd; dtd 839 drivers/usb/gadget/udc/fsl_udc_core.c struct ep_td_struct *last_dtd = NULL, *dtd; dtd 843 drivers/usb/gadget/udc/fsl_udc_core.c dtd = fsl_build_dtd(req, &count, &dma, &is_last, gfp_flags); dtd 844 drivers/usb/gadget/udc/fsl_udc_core.c if (dtd == NULL) dtd 849 drivers/usb/gadget/udc/fsl_udc_core.c req->head = dtd; dtd 852 drivers/usb/gadget/udc/fsl_udc_core.c last_dtd->next_td_virt = dtd; dtd 854 drivers/usb/gadget/udc/fsl_udc_core.c last_dtd = dtd; dtd 859 drivers/usb/gadget/udc/fsl_udc_core.c dtd->next_td_ptr = cpu_to_hc32(DTD_NEXT_TERMINATE); dtd 861 drivers/usb/gadget/udc/fsl_udc_core.c req->tail = dtd; dtd 241 drivers/usb/gadget/udc/mv_udc.h struct mv_dtd *dtd, *head, *tail; dtd 338 drivers/usb/gadget/udc/mv_udc_core.c struct mv_dtd *dtd; dtd 360 drivers/usb/gadget/udc/mv_udc_core.c dtd = dma_pool_alloc(udc->dtd_pool, GFP_ATOMIC, dma); dtd 361 drivers/usb/gadget/udc/mv_udc_core.c if (dtd == NULL) dtd 362 drivers/usb/gadget/udc/mv_udc_core.c return dtd; dtd 364 drivers/usb/gadget/udc/mv_udc_core.c dtd->td_dma = *dma; dtd 367 drivers/usb/gadget/udc/mv_udc_core.c dtd->buff_ptr0 = cpu_to_le32(temp); dtd 369 drivers/usb/gadget/udc/mv_udc_core.c dtd->buff_ptr1 = cpu_to_le32(temp + 0x1000); dtd 370 drivers/usb/gadget/udc/mv_udc_core.c dtd->buff_ptr2 = cpu_to_le32(temp + 0x2000); dtd 371 drivers/usb/gadget/udc/mv_udc_core.c dtd->buff_ptr3 = cpu_to_le32(temp + 0x3000); dtd 372 drivers/usb/gadget/udc/mv_udc_core.c dtd->buff_ptr4 = cpu_to_le32(temp + 0x4000); dtd 396 drivers/usb/gadget/udc/mv_udc_core.c dtd->size_ioc_sts = temp; dtd 400 drivers/usb/gadget/udc/mv_udc_core.c return dtd; dtd 408 drivers/usb/gadget/udc/mv_udc_core.c struct mv_dtd *dtd, *last_dtd = NULL; dtd 412 drivers/usb/gadget/udc/mv_udc_core.c dtd = build_dtd(req, &count, &dma, &is_last); dtd 413 drivers/usb/gadget/udc/mv_udc_core.c if (dtd == NULL) dtd 418 drivers/usb/gadget/udc/mv_udc_core.c req->head = dtd; dtd 421 drivers/usb/gadget/udc/mv_udc_core.c last_dtd->next_dtd_virt = dtd; dtd 423 drivers/usb/gadget/udc/mv_udc_core.c last_dtd = dtd; dtd 428 drivers/usb/gadget/udc/mv_udc_core.c dtd->dtd_next = DTD_NEXT_TERMINATE; dtd 430 drivers/usb/gadget/udc/mv_udc_core.c req->tail = dtd; dtd 76 lib/zstd/huf_decompress.c DTableDesc dtd; dtd 77 lib/zstd/huf_decompress.c memcpy(&dtd, table, sizeof(dtd)); dtd 78 lib/zstd/huf_decompress.c return dtd; dtd 121 lib/zstd/huf_decompress.c DTableDesc dtd = HUF_getDTableDesc(DTable); dtd 122 lib/zstd/huf_decompress.c if (tableLog > (U32)(dtd.maxTableLog + 1)) dtd 124 lib/zstd/huf_decompress.c dtd.tableType = 0; dtd 125 lib/zstd/huf_decompress.c dtd.tableLog = (BYTE)tableLog; dtd 126 lib/zstd/huf_decompress.c memcpy(DTable, &dtd, sizeof(dtd)); dtd 206 lib/zstd/huf_decompress.c DTableDesc const dtd = HUF_getDTableDesc(DTable); dtd 207 lib/zstd/huf_decompress.c U32 const dtLog = dtd.tableLog; dtd 226 lib/zstd/huf_decompress.c DTableDesc dtd = HUF_getDTableDesc(DTable); dtd 227 lib/zstd/huf_decompress.c if (dtd.tableType != 0) dtd 282 lib/zstd/huf_decompress.c DTableDesc const dtd = HUF_getDTableDesc(DTable); dtd 283 lib/zstd/huf_decompress.c U32 const dtLog = dtd.tableLog; dtd 357 lib/zstd/huf_decompress.c DTableDesc dtd = HUF_getDTableDesc(DTable); dtd 358 lib/zstd/huf_decompress.c if (dtd.tableType != 0) dtd 485 lib/zstd/huf_decompress.c DTableDesc dtd = HUF_getDTableDesc(DTable); dtd 486 lib/zstd/huf_decompress.c U32 const maxTableLog = dtd.maxTableLog; dtd 589 lib/zstd/huf_decompress.c dtd.tableLog = (BYTE)maxTableLog; dtd 590 lib/zstd/huf_decompress.c dtd.tableType = 1; dtd 591 lib/zstd/huf_decompress.c memcpy(DTable, &dtd, sizeof(dtd)); dtd 672 lib/zstd/huf_decompress.c DTableDesc const dtd = HUF_getDTableDesc(DTable); dtd 673 lib/zstd/huf_decompress.c HUF_decodeStreamX4(ostart, &bitD, oend, dt, dtd.tableLog); dtd 686 lib/zstd/huf_decompress.c DTableDesc dtd = HUF_getDTableDesc(DTable); dtd 687 lib/zstd/huf_decompress.c if (dtd.tableType != 1) dtd 741 lib/zstd/huf_decompress.c DTableDesc const dtd = HUF_getDTableDesc(DTable); dtd 742 lib/zstd/huf_decompress.c U32 const dtLog = dtd.tableLog; dtd 819 lib/zstd/huf_decompress.c DTableDesc dtd = HUF_getDTableDesc(DTable); dtd 820 lib/zstd/huf_decompress.c if (dtd.tableType != 1) dtd 846 lib/zstd/huf_decompress.c DTableDesc const dtd = HUF_getDTableDesc(DTable); dtd 847 lib/zstd/huf_decompress.c return dtd.tableType ? HUF_decompress1X4_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable) dtd 853 lib/zstd/huf_decompress.c DTableDesc const dtd = HUF_getDTableDesc(DTable); dtd 854 lib/zstd/huf_decompress.c return dtd.tableType ? HUF_decompress4X4_usingDTable_internal(dst, maxDstSize, cSrc, cSrcSize, DTable)