Lines Matching refs:node

128 	if (ctx && ctx->node[0]) {  in bdisp_hw_free_nodes()
134 ctx->node[0], ctx->node_paddr[0], &attrs); in bdisp_hw_free_nodes()
167 ctx->node[i] = base; in bdisp_hw_alloc_nodes()
169 dev_dbg(dev, "node[%d]=0x%p (paddr=%pad)\n", i, ctx->node[i], in bdisp_hw_alloc_nodes()
464 struct bdisp_node *node, in bdisp_hw_build_node() argument
479 memset(node, 0, sizeof(*node)); in bdisp_hw_build_node()
494 node->nip = 0; in bdisp_hw_build_node()
495 node->cic = BLT_CIC_ALL_GRP; in bdisp_hw_build_node()
496 node->ack = BLT_ACK_BYPASS_S2S3; in bdisp_hw_build_node()
501 node->ins = BLT_INS_S1_OFF | BLT_INS_S2_MEM | BLT_INS_S3_OFF; in bdisp_hw_build_node()
507 node->ins = BLT_INS_S1_OFF | BLT_INS_S3_MEM; in bdisp_hw_build_node()
509 node->ins |= BLT_INS_S2_CF; in bdisp_hw_build_node()
511 node->ins |= BLT_INS_S2_MEM; in bdisp_hw_build_node()
518 node->ins = BLT_INS_S3_MEM; in bdisp_hw_build_node()
520 node->ins |= BLT_INS_S2_CF | BLT_INS_S1_CF; in bdisp_hw_build_node()
522 node->ins |= BLT_INS_S2_MEM | BLT_INS_S1_MEM; in bdisp_hw_build_node()
527 node->ins |= cfg->cconv ? BLT_INS_IVMX : 0; in bdisp_hw_build_node()
529 node->ins |= (cfg->scale || cfg->src_420 || cfg->dst_420) ? in bdisp_hw_build_node()
533 node->tba = (t_plan == BDISP_CBCR) ? dst->paddr[1] : dst->paddr[0]; in bdisp_hw_build_node()
535 node->tty = dst->bytesperline; in bdisp_hw_build_node()
536 node->tty |= bdisp_hw_color_format(dst_fmt); in bdisp_hw_build_node()
537 node->tty |= BLT_TTY_DITHER; in bdisp_hw_build_node()
538 node->tty |= (t_plan == BDISP_CBCR) ? BLT_TTY_CHROMA : 0; in bdisp_hw_build_node()
539 node->tty |= cfg->hflip ? BLT_TTY_HSO : 0; in bdisp_hw_build_node()
540 node->tty |= cfg->vflip ? BLT_TTY_VSO : 0; in bdisp_hw_build_node()
552 node->txy = cfg->vflip ? (dst_rect.height - 1) : dst_rect.top; in bdisp_hw_build_node()
553 node->txy <<= 16; in bdisp_hw_build_node()
554 node->txy |= cfg->hflip ? (dst_width - dst_x_offset - 1) : in bdisp_hw_build_node()
557 node->tsz = dst_rect.height << 16 | dst_rect.width; in bdisp_hw_build_node()
567 node->s2ba = src->paddr[0]; in bdisp_hw_build_node()
569 node->s2ty = src->bytesperline; in bdisp_hw_build_node()
571 node->s2ty *= 2; in bdisp_hw_build_node()
573 node->s2ty |= bdisp_hw_color_format(src_fmt); in bdisp_hw_build_node()
575 node->s2xy = src_rect.top << 16 | src_rect.left; in bdisp_hw_build_node()
576 node->s2sz = src_rect.height << 16 | src_rect.width; in bdisp_hw_build_node()
587 node->s2ba = src->paddr[1]; in bdisp_hw_build_node()
589 node->s2ty = src->bytesperline; in bdisp_hw_build_node()
591 node->s2ty /= 2; in bdisp_hw_build_node()
593 node->s2ty *= 2; in bdisp_hw_build_node()
595 node->s2ty |= bdisp_hw_color_format(src_fmt); in bdisp_hw_build_node()
597 node->s2xy = src_rect.top << 16 | src_rect.left; in bdisp_hw_build_node()
598 node->s2sz = src_rect.height << 16 | src_rect.width; in bdisp_hw_build_node()
602 node->s1ba = src->paddr[2]; in bdisp_hw_build_node()
604 node->s1ty = node->s2ty; in bdisp_hw_build_node()
605 node->s1xy = node->s2xy; in bdisp_hw_build_node()
609 node->s3ba = src->paddr[0]; in bdisp_hw_build_node()
611 node->s3ty = src->bytesperline; in bdisp_hw_build_node()
613 node->s3ty *= 2; in bdisp_hw_build_node()
614 node->s3ty |= bdisp_hw_color_format(src_fmt); in bdisp_hw_build_node()
618 node->s3xy = node->s2xy * 2; in bdisp_hw_build_node()
619 node->s3sz = node->s2sz * 2; in bdisp_hw_build_node()
622 node->s3ty |= BLT_S3TY_BLANK_ACC; in bdisp_hw_build_node()
623 node->s3xy = node->s2xy; in bdisp_hw_build_node()
624 node->s3sz = node->s2sz; in bdisp_hw_build_node()
629 if (node->ins & BLT_INS_SCALE) { in bdisp_hw_build_node()
635 node->fctl = BLT_FCTL_HV_SCALE; in bdisp_hw_build_node()
637 node->fctl |= BLT_FCTL_Y_HV_SCALE; in bdisp_hw_build_node()
639 node->fctl = BLT_FCTL_HV_SAMPLE; in bdisp_hw_build_node()
641 node->fctl |= BLT_FCTL_Y_HV_SAMPLE; in bdisp_hw_build_node()
656 node->rsf = v_inc << 16 | h_inc; in bdisp_hw_build_node()
659 node->rzi = BLT_RZI_DEFAULT; in bdisp_hw_build_node()
662 node->hfp = bdisp_hw_get_hf_addr(h_inc); in bdisp_hw_build_node()
663 node->vfp = bdisp_hw_get_vf_addr(v_inc); in bdisp_hw_build_node()
670 node->y_rsf = yv_inc << 16 | yh_inc; in bdisp_hw_build_node()
671 node->y_rzi = BLT_RZI_DEFAULT; in bdisp_hw_build_node()
672 node->y_hfp = bdisp_hw_get_hf_addr(yh_inc); in bdisp_hw_build_node()
673 node->y_vfp = bdisp_hw_get_vf_addr(yv_inc); in bdisp_hw_build_node()
681 node->ivmx0 = ivmx[0]; in bdisp_hw_build_node()
682 node->ivmx1 = ivmx[1]; in bdisp_hw_build_node()
683 node->ivmx2 = ivmx[2]; in bdisp_hw_build_node()
684 node->ivmx3 = ivmx[3]; in bdisp_hw_build_node()
704 if (!ctx->node[i]) { in bdisp_hw_build_all_nodes()
716 bdisp_hw_build_node(ctx, &cfg, ctx->node[nid], in bdisp_hw_build_all_nodes()
720 ctx->node[nid - 1]->nip = ctx->node_paddr[nid]; in bdisp_hw_build_all_nodes()
725 bdisp_hw_build_node(ctx, &cfg, ctx->node[nid], in bdisp_hw_build_all_nodes()
727 ctx->node[nid - 1]->nip = ctx->node_paddr[nid]; in bdisp_hw_build_all_nodes()
738 ctx->node[nid - 1]->nip = 0; in bdisp_hw_build_all_nodes()
756 struct bdisp_node **node = ctx->node; in bdisp_hw_save_request() local
776 *copy_node[i] = *node[i]; in bdisp_hw_save_request()
817 if (!ctx->node[node_id]->nip) in bdisp_hw_update()