Lines Matching refs:node
433 if (ctx && ctx->node[0]) in bdisp_hw_free_nodes()
436 ctx->node[0], ctx->node_paddr[0], in bdisp_hw_free_nodes()
467 ctx->node[i] = base; in bdisp_hw_alloc_nodes()
469 dev_dbg(dev, "node[%d]=0x%p (paddr=%pad)\n", i, ctx->node[i], in bdisp_hw_alloc_nodes()
759 struct bdisp_node *node, in bdisp_hw_build_node() argument
774 memset(node, 0, sizeof(*node)); in bdisp_hw_build_node()
789 node->nip = 0; in bdisp_hw_build_node()
790 node->cic = BLT_CIC_ALL_GRP; in bdisp_hw_build_node()
791 node->ack = BLT_ACK_BYPASS_S2S3; in bdisp_hw_build_node()
796 node->ins = BLT_INS_S1_OFF | BLT_INS_S2_MEM | BLT_INS_S3_OFF; in bdisp_hw_build_node()
802 node->ins = BLT_INS_S1_OFF | BLT_INS_S3_MEM; in bdisp_hw_build_node()
804 node->ins |= BLT_INS_S2_CF; in bdisp_hw_build_node()
806 node->ins |= BLT_INS_S2_MEM; in bdisp_hw_build_node()
813 node->ins = BLT_INS_S3_MEM; in bdisp_hw_build_node()
815 node->ins |= BLT_INS_S2_CF | BLT_INS_S1_CF; in bdisp_hw_build_node()
817 node->ins |= BLT_INS_S2_MEM | BLT_INS_S1_MEM; in bdisp_hw_build_node()
822 node->ins |= cfg->cconv ? BLT_INS_IVMX : 0; in bdisp_hw_build_node()
824 node->ins |= (cfg->scale || cfg->src_420 || cfg->dst_420) ? in bdisp_hw_build_node()
828 node->tba = (t_plan == BDISP_CBCR) ? dst->paddr[1] : dst->paddr[0]; in bdisp_hw_build_node()
830 node->tty = dst->bytesperline; in bdisp_hw_build_node()
831 node->tty |= bdisp_hw_color_format(dst_fmt); in bdisp_hw_build_node()
832 node->tty |= BLT_TTY_DITHER; in bdisp_hw_build_node()
833 node->tty |= (t_plan == BDISP_CBCR) ? BLT_TTY_CHROMA : 0; in bdisp_hw_build_node()
834 node->tty |= cfg->hflip ? BLT_TTY_HSO : 0; in bdisp_hw_build_node()
835 node->tty |= cfg->vflip ? BLT_TTY_VSO : 0; in bdisp_hw_build_node()
847 node->txy = cfg->vflip ? (dst_rect.height - 1) : dst_rect.top; in bdisp_hw_build_node()
848 node->txy <<= 16; in bdisp_hw_build_node()
849 node->txy |= cfg->hflip ? (dst_width - dst_x_offset - 1) : in bdisp_hw_build_node()
852 node->tsz = dst_rect.height << 16 | dst_rect.width; in bdisp_hw_build_node()
862 node->s2ba = src->paddr[0]; in bdisp_hw_build_node()
864 node->s2ty = src->bytesperline; in bdisp_hw_build_node()
866 node->s2ty *= 2; in bdisp_hw_build_node()
868 node->s2ty |= bdisp_hw_color_format(src_fmt); in bdisp_hw_build_node()
870 node->s2xy = src_rect.top << 16 | src_rect.left; in bdisp_hw_build_node()
871 node->s2sz = src_rect.height << 16 | src_rect.width; in bdisp_hw_build_node()
882 node->s2ba = src->paddr[1]; in bdisp_hw_build_node()
884 node->s2ty = src->bytesperline; in bdisp_hw_build_node()
886 node->s2ty /= 2; in bdisp_hw_build_node()
888 node->s2ty *= 2; in bdisp_hw_build_node()
890 node->s2ty |= bdisp_hw_color_format(src_fmt); in bdisp_hw_build_node()
892 node->s2xy = src_rect.top << 16 | src_rect.left; in bdisp_hw_build_node()
893 node->s2sz = src_rect.height << 16 | src_rect.width; in bdisp_hw_build_node()
897 node->s1ba = src->paddr[2]; in bdisp_hw_build_node()
899 node->s1ty = node->s2ty; in bdisp_hw_build_node()
900 node->s1xy = node->s2xy; in bdisp_hw_build_node()
904 node->s3ba = src->paddr[0]; in bdisp_hw_build_node()
906 node->s3ty = src->bytesperline; in bdisp_hw_build_node()
908 node->s3ty *= 2; in bdisp_hw_build_node()
909 node->s3ty |= bdisp_hw_color_format(src_fmt); in bdisp_hw_build_node()
913 node->s3xy = node->s2xy * 2; in bdisp_hw_build_node()
914 node->s3sz = node->s2sz * 2; in bdisp_hw_build_node()
917 node->s3ty |= BLT_S3TY_BLANK_ACC; in bdisp_hw_build_node()
918 node->s3xy = node->s2xy; in bdisp_hw_build_node()
919 node->s3sz = node->s2sz; in bdisp_hw_build_node()
924 if (node->ins & BLT_INS_SCALE) { in bdisp_hw_build_node()
930 node->fctl = BLT_FCTL_HV_SCALE; in bdisp_hw_build_node()
932 node->fctl |= BLT_FCTL_Y_HV_SCALE; in bdisp_hw_build_node()
934 node->fctl = BLT_FCTL_HV_SAMPLE; in bdisp_hw_build_node()
936 node->fctl |= BLT_FCTL_Y_HV_SAMPLE; in bdisp_hw_build_node()
951 node->rsf = v_inc << 16 | h_inc; in bdisp_hw_build_node()
954 node->rzi = BLT_RZI_DEFAULT; in bdisp_hw_build_node()
957 node->hfp = bdisp_hw_get_hf_addr(h_inc); in bdisp_hw_build_node()
958 node->vfp = bdisp_hw_get_vf_addr(v_inc); in bdisp_hw_build_node()
965 node->y_rsf = yv_inc << 16 | yh_inc; in bdisp_hw_build_node()
966 node->y_rzi = BLT_RZI_DEFAULT; in bdisp_hw_build_node()
967 node->y_hfp = bdisp_hw_get_hf_addr(yh_inc); in bdisp_hw_build_node()
968 node->y_vfp = bdisp_hw_get_vf_addr(yv_inc); in bdisp_hw_build_node()
976 node->ivmx0 = ivmx[0]; in bdisp_hw_build_node()
977 node->ivmx1 = ivmx[1]; in bdisp_hw_build_node()
978 node->ivmx2 = ivmx[2]; in bdisp_hw_build_node()
979 node->ivmx3 = ivmx[3]; in bdisp_hw_build_node()
999 if (!ctx->node[i]) { in bdisp_hw_build_all_nodes()
1011 bdisp_hw_build_node(ctx, &cfg, ctx->node[nid], in bdisp_hw_build_all_nodes()
1015 ctx->node[nid - 1]->nip = ctx->node_paddr[nid]; in bdisp_hw_build_all_nodes()
1020 bdisp_hw_build_node(ctx, &cfg, ctx->node[nid], in bdisp_hw_build_all_nodes()
1022 ctx->node[nid - 1]->nip = ctx->node_paddr[nid]; in bdisp_hw_build_all_nodes()
1033 ctx->node[nid - 1]->nip = 0; in bdisp_hw_build_all_nodes()
1051 struct bdisp_node **node = ctx->node; in bdisp_hw_save_request() local
1071 *copy_node[i] = *node[i]; in bdisp_hw_save_request()
1112 if (!ctx->node[node_id]->nip) in bdisp_hw_update()