• Home
  • Raw
  • Download

Lines Matching refs:u_desc_ctrl

467 	} u_desc_ctrl;  in iop_desc_init_memcpy()  local
469 u_desc_ctrl.value = 0; in iop_desc_init_memcpy()
470 u_desc_ctrl.field.mem_to_mem_en = 1; in iop_desc_init_memcpy()
471 u_desc_ctrl.field.pci_transaction = 0xe; /* memory read block */ in iop_desc_init_memcpy()
472 u_desc_ctrl.field.int_en = flags & DMA_PREP_INTERRUPT; in iop_desc_init_memcpy()
473 hw_desc->desc_ctrl = u_desc_ctrl.value; in iop_desc_init_memcpy()
485 } u_desc_ctrl; in iop_desc_init_memset() local
487 u_desc_ctrl.value = 0; in iop_desc_init_memset()
488 u_desc_ctrl.field.blk1_cmd_ctrl = 0x2; /* memory block fill */ in iop_desc_init_memset()
489 u_desc_ctrl.field.dest_write_en = 1; in iop_desc_init_memset()
490 u_desc_ctrl.field.int_en = flags & DMA_PREP_INTERRUPT; in iop_desc_init_memset()
491 hw_desc->desc_ctrl = u_desc_ctrl.value; in iop_desc_init_memset()
503 } u_desc_ctrl; in iop3xx_desc_init_xor() local
505 u_desc_ctrl.value = 0; in iop3xx_desc_init_xor()
508 u_desc_ctrl.field.blk_ctrl = 0x3; /* use EDCR[2:0] */ in iop3xx_desc_init_xor()
519 if (!u_desc_ctrl.field.blk_ctrl) { in iop3xx_desc_init_xor()
521 u_desc_ctrl.field.blk_ctrl = 0x3; /* use EDCR[2:0] */ in iop3xx_desc_init_xor()
533 if (!u_desc_ctrl.field.blk_ctrl) in iop3xx_desc_init_xor()
534 u_desc_ctrl.field.blk_ctrl = 0x2; /* use EDCR0 */ in iop3xx_desc_init_xor()
547 u_desc_ctrl.value |= (1 << shift); in iop3xx_desc_init_xor()
551 if (!u_desc_ctrl.field.blk_ctrl && src_cnt > 4) in iop3xx_desc_init_xor()
552 u_desc_ctrl.field.blk_ctrl = 0x1; /* use mini-desc */ in iop3xx_desc_init_xor()
555 u_desc_ctrl.field.dest_write_en = 1; in iop3xx_desc_init_xor()
556 u_desc_ctrl.field.blk1_cmd_ctrl = 0x7; /* direct fill */ in iop3xx_desc_init_xor()
557 u_desc_ctrl.field.int_en = flags & DMA_PREP_INTERRUPT; in iop3xx_desc_init_xor()
558 hw_desc->desc_ctrl = u_desc_ctrl.value; in iop3xx_desc_init_xor()
560 return u_desc_ctrl.value; in iop3xx_desc_init_xor()
580 } u_desc_ctrl; in iop_desc_init_zero_sum() local
588 u_desc_ctrl.value = iop3xx_desc_init_xor(iter, src_cnt, flags); in iop_desc_init_zero_sum()
589 u_desc_ctrl.field.dest_write_en = 0; in iop_desc_init_zero_sum()
590 u_desc_ctrl.field.zero_result_en = 1; in iop_desc_init_zero_sum()
591 u_desc_ctrl.field.int_en = flags & DMA_PREP_INTERRUPT; in iop_desc_init_zero_sum()
592 iter->desc_ctrl = u_desc_ctrl.value; in iop_desc_init_zero_sum()
616 } u_desc_ctrl; in iop_desc_init_null_xor() local
618 u_desc_ctrl.value = 0; in iop_desc_init_null_xor()
621 u_desc_ctrl.field.blk_ctrl = 0x3; /* use EDCR[2:0] */ in iop_desc_init_null_xor()
625 if (!u_desc_ctrl.field.blk_ctrl) { in iop_desc_init_null_xor()
627 u_desc_ctrl.field.blk_ctrl = 0x3; /* use EDCR[2:0] */ in iop_desc_init_null_xor()
632 if (!u_desc_ctrl.field.blk_ctrl) in iop_desc_init_null_xor()
633 u_desc_ctrl.field.blk_ctrl = 0x2; /* use EDCR0 */ in iop_desc_init_null_xor()
637 if (!u_desc_ctrl.field.blk_ctrl && src_cnt > 4) in iop_desc_init_null_xor()
638 u_desc_ctrl.field.blk_ctrl = 0x1; /* use mini-desc */ in iop_desc_init_null_xor()
641 u_desc_ctrl.field.dest_write_en = 0; in iop_desc_init_null_xor()
642 u_desc_ctrl.field.int_en = flags & DMA_PREP_INTERRUPT; in iop_desc_init_null_xor()
643 hw_desc->desc_ctrl = u_desc_ctrl.value; in iop_desc_init_null_xor()