Lines Matching refs:dtd
553 static void dump_dtd(struct vpdma_dtd *dtd);
559 struct vpdma_dtd *dtd = list->buf.addr; in vpdma_update_dma_addr() local
563 dtd += idx; in vpdma_update_dma_addr()
566 dtd->start_addr = dma_addr; in vpdma_update_dma_addr()
575 dtd->desc_write_addr = dtd_desc_write_addr(write_desc_addr, in vpdma_update_dma_addr()
578 dtd->desc_write_addr = dtd_desc_write_addr(write_desc_addr, in vpdma_update_dma_addr()
583 dump_dtd(dtd); in vpdma_update_dma_addr()
748 static void dump_dtd(struct vpdma_dtd *dtd) in dump_dtd() argument
752 dir = dtd_get_dir(dtd); in dump_dtd()
753 chan = dtd_get_chan(dtd); in dump_dtd()
759 dtd_get_data_type(dtd), dtd_get_notify(dtd), dtd_get_field(dtd), in dump_dtd()
760 dtd_get_1d(dtd), dtd_get_even_line_skip(dtd), in dump_dtd()
761 dtd_get_odd_line_skip(dtd), dtd_get_line_stride(dtd)); in dump_dtd()
765 dtd_get_line_length(dtd), dtd_get_xfer_height(dtd)); in dump_dtd()
767 pr_debug("word2: start_addr = %x\n", dtd->start_addr); in dump_dtd()
770 dtd_get_pkt_type(dtd), in dump_dtd()
771 dtd_get_mode(dtd), dir, chan, dtd_get_priority(dtd), in dump_dtd()
772 dtd_get_next_chan(dtd)); in dump_dtd()
776 dtd_get_frame_width(dtd), dtd_get_frame_height(dtd)); in dump_dtd()
779 dtd_get_desc_write_addr(dtd), dtd_get_write_desc(dtd), in dump_dtd()
780 dtd_get_drop_data(dtd), dtd_get_use_desc(dtd)); in dump_dtd()
784 dtd_get_h_start(dtd), dtd_get_v_start(dtd)); in dump_dtd()
787 dtd_get_max_width(dtd), dtd_get_max_height(dtd)); in dump_dtd()
789 pr_debug("word6: client specific attr0 = 0x%08x\n", dtd->client_attr0); in dump_dtd()
790 pr_debug("word7: client specific attr1 = 0x%08x\n", dtd->client_attr1); in dump_dtd()
828 struct vpdma_dtd *dtd; in vpdma_rawchan_add_out_dtd() local
842 dtd = list->next; in vpdma_rawchan_add_out_dtd()
843 WARN_ON((void *)(dtd + 1) > (list->buf.addr + list->buf.size)); in vpdma_rawchan_add_out_dtd()
845 dtd->type_ctl_stride = dtd_type_ctl_stride(fmt->data_type, in vpdma_rawchan_add_out_dtd()
852 dtd->w1 = 0; in vpdma_rawchan_add_out_dtd()
853 dtd->start_addr = (u32) dma_addr; in vpdma_rawchan_add_out_dtd()
854 dtd->pkt_ctl = dtd_pkt_ctl(!!(flags & VPDMA_DATA_MODE_TILED), in vpdma_rawchan_add_out_dtd()
856 dtd->desc_write_addr = dtd_desc_write_addr(0, 0, 0, 0); in vpdma_rawchan_add_out_dtd()
857 dtd->max_width_height = dtd_max_width_height(max_w, max_h); in vpdma_rawchan_add_out_dtd()
858 dtd->client_attr0 = 0; in vpdma_rawchan_add_out_dtd()
859 dtd->client_attr1 = 0; in vpdma_rawchan_add_out_dtd()
861 list->next = dtd + 1; in vpdma_rawchan_add_out_dtd()
863 dump_dtd(dtd); in vpdma_rawchan_add_out_dtd()
897 struct vpdma_dtd *dtd; in vpdma_add_in_dtd() local
911 dtd = list->next; in vpdma_add_in_dtd()
912 WARN_ON((void *)(dtd + 1) > (list->buf.addr + list->buf.size)); in vpdma_add_in_dtd()
914 dtd->type_ctl_stride = dtd_type_ctl_stride(fmt->data_type, in vpdma_add_in_dtd()
922 dtd->xfer_length_height = dtd_xfer_length_height(rect.width, in vpdma_add_in_dtd()
924 dtd->start_addr = (u32) dma_addr; in vpdma_add_in_dtd()
925 dtd->pkt_ctl = dtd_pkt_ctl(!!(flags & VPDMA_DATA_MODE_TILED), in vpdma_add_in_dtd()
927 dtd->frame_width_height = dtd_frame_width_height(frame_width, in vpdma_add_in_dtd()
929 dtd->start_h_v = dtd_start_h_v(start_h, start_v); in vpdma_add_in_dtd()
930 dtd->client_attr0 = 0; in vpdma_add_in_dtd()
931 dtd->client_attr1 = 0; in vpdma_add_in_dtd()
933 list->next = dtd + 1; in vpdma_add_in_dtd()
935 dump_dtd(dtd); in vpdma_add_in_dtd()