Lines Matching refs:descriptor

479 …cy_stc_dma_descriptor_t * descriptor;      /**< The DMA descriptor associated with the channel bei…  member
545 …tor (DW_Type * base, uint32_t channel, cy_stc_dma_descriptor_t const * descriptor);
574 …cy_en_dma_status_t Cy_DMA_Descriptor_Init (cy_stc_dma_descriptor_t * descriptor, cy_stc_dma_descr…
575 void Cy_DMA_Descriptor_DeInit(cy_stc_dma_descriptor_t * descriptor);
577 …void Cy_DMA_Descriptor_SetNextDescriptor (cy_stc_dma_descriptor_t * descriptor, cy_stc_dma_descr…
578 …void Cy_DMA_Descriptor_SetDescriptorType (cy_stc_dma_descriptor_t * descriptor, cy_en_dma_descri…
579 __STATIC_INLINE void Cy_DMA_Descriptor_SetSrcAddress (cy_stc_dma_descriptor_t * descriptor, v…
580 __STATIC_INLINE void Cy_DMA_Descriptor_SetDstAddress (cy_stc_dma_descriptor_t * descriptor, v…
581 __STATIC_INLINE void Cy_DMA_Descriptor_SetXloopDataCount (cy_stc_dma_descriptor_t * descriptor, u…
582 __STATIC_INLINE void Cy_DMA_Descriptor_SetYloopDataCount (cy_stc_dma_descriptor_t * descriptor, u…
583 __STATIC_INLINE void Cy_DMA_Descriptor_SetXloopSrcIncrement(cy_stc_dma_descriptor_t * descriptor, i…
584 __STATIC_INLINE void Cy_DMA_Descriptor_SetXloopDstIncrement(cy_stc_dma_descriptor_t * descriptor, i…
585 __STATIC_INLINE void Cy_DMA_Descriptor_SetYloopSrcIncrement(cy_stc_dma_descriptor_t * descriptor, i…
586 __STATIC_INLINE void Cy_DMA_Descriptor_SetYloopDstIncrement(cy_stc_dma_descriptor_t * descriptor, i…
587 __STATIC_INLINE void Cy_DMA_Descriptor_SetInterruptType (cy_stc_dma_descriptor_t * descriptor, c…
588 __STATIC_INLINE void Cy_DMA_Descriptor_SetTriggerInType (cy_stc_dma_descriptor_t * descriptor, c…
589 __STATIC_INLINE void Cy_DMA_Descriptor_SetTriggerOutType (cy_stc_dma_descriptor_t * descriptor, c…
590 __STATIC_INLINE void Cy_DMA_Descriptor_SetDataSize (cy_stc_dma_descriptor_t * descriptor, c…
591 __STATIC_INLINE void Cy_DMA_Descriptor_SetSrcTransferSize (cy_stc_dma_descriptor_t * descriptor, c…
592 __STATIC_INLINE void Cy_DMA_Descriptor_SetDstTransferSize (cy_stc_dma_descriptor_t * descriptor, c…
593 __STATIC_INLINE void Cy_DMA_Descriptor_SetRetrigger (cy_stc_dma_descriptor_t * descriptor, c…
594 __STATIC_INLINE void Cy_DMA_Descriptor_SetChannelState (cy_stc_dma_descriptor_t * descriptor, c…
596 …escriptor_t * Cy_DMA_Descriptor_GetNextDescriptor (cy_stc_dma_descriptor_t const * descriptor);
597 …scriptor_type_t Cy_DMA_Descriptor_GetDescriptorType (cy_stc_dma_descriptor_t const * descriptor);
598 … Cy_DMA_Descriptor_GetSrcAddress (cy_stc_dma_descriptor_t const * descriptor);
599 … Cy_DMA_Descriptor_GetDstAddress (cy_stc_dma_descriptor_t const * descriptor);
600 … Cy_DMA_Descriptor_GetXloopDataCount (cy_stc_dma_descriptor_t const * descriptor);
601 … Cy_DMA_Descriptor_GetYloopDataCount (cy_stc_dma_descriptor_t const * descriptor);
602 … Cy_DMA_Descriptor_GetXloopSrcIncrement(cy_stc_dma_descriptor_t const * descriptor);
603 … Cy_DMA_Descriptor_GetXloopDstIncrement(cy_stc_dma_descriptor_t const * descriptor);
604 … Cy_DMA_Descriptor_GetYloopSrcIncrement(cy_stc_dma_descriptor_t const * descriptor);
605 … Cy_DMA_Descriptor_GetYloopDstIncrement(cy_stc_dma_descriptor_t const * descriptor);
606 …igger_type_t Cy_DMA_Descriptor_GetInterruptType (cy_stc_dma_descriptor_t const * descriptor);
607 …igger_type_t Cy_DMA_Descriptor_GetTriggerInType (cy_stc_dma_descriptor_t const * descriptor);
608 …igger_type_t Cy_DMA_Descriptor_GetTriggerOutType (cy_stc_dma_descriptor_t const * descriptor);
609 …ta_size_t Cy_DMA_Descriptor_GetDataSize (cy_stc_dma_descriptor_t const * descriptor);
610 …ansfer_size_t Cy_DMA_Descriptor_GetSrcTransferSize (cy_stc_dma_descriptor_t const * descriptor);
611 …ansfer_size_t Cy_DMA_Descriptor_GetDstTransferSize (cy_stc_dma_descriptor_t const * descriptor);
612 …trigger_t Cy_DMA_Descriptor_GetRetrigger (cy_stc_dma_descriptor_t const * descriptor);
613 …annel_state_t Cy_DMA_Descriptor_GetChannelState (cy_stc_dma_descriptor_t const * descriptor);
810 __STATIC_INLINE void Cy_DMA_Descriptor_SetSrcAddress(cy_stc_dma_descriptor_t * descriptor, void con… in Cy_DMA_Descriptor_SetSrcAddress() argument
812 descriptor->src = (uint32_t) srcAddress; in Cy_DMA_Descriptor_SetSrcAddress()
832 __STATIC_INLINE void * Cy_DMA_Descriptor_GetSrcAddress(cy_stc_dma_descriptor_t const * descriptor) in Cy_DMA_Descriptor_GetSrcAddress() argument
834 return ((void *) descriptor->src); in Cy_DMA_Descriptor_GetSrcAddress()
855 __STATIC_INLINE void Cy_DMA_Descriptor_SetDstAddress(cy_stc_dma_descriptor_t * descriptor, void con… in Cy_DMA_Descriptor_SetDstAddress() argument
857 descriptor->dst = (uint32_t) dstAddress; in Cy_DMA_Descriptor_SetDstAddress()
877 __STATIC_INLINE void * Cy_DMA_Descriptor_GetDstAddress(cy_stc_dma_descriptor_t const * descriptor) in Cy_DMA_Descriptor_GetDstAddress() argument
879 return ((void *) descriptor->dst); in Cy_DMA_Descriptor_GetDstAddress()
899 __STATIC_INLINE void Cy_DMA_Descriptor_SetInterruptType(cy_stc_dma_descriptor_t * descriptor, cy_en… in Cy_DMA_Descriptor_SetInterruptType() argument
903 CY_REG32_CLR_SET(descriptor->ctl, CY_DMA_CTL_INTR_TYPE, interruptType); in Cy_DMA_Descriptor_SetInterruptType()
923 …n_dma_trigger_type_t Cy_DMA_Descriptor_GetInterruptType(cy_stc_dma_descriptor_t const * descriptor) in Cy_DMA_Descriptor_GetInterruptType() argument
925 return((cy_en_dma_trigger_type_t) _FLD2VAL(CY_DMA_CTL_INTR_TYPE, descriptor->ctl)); in Cy_DMA_Descriptor_GetInterruptType()
945 __STATIC_INLINE void Cy_DMA_Descriptor_SetTriggerInType(cy_stc_dma_descriptor_t * descriptor, cy_en… in Cy_DMA_Descriptor_SetTriggerInType() argument
949 CY_REG32_CLR_SET(descriptor->ctl, CY_DMA_CTL_TR_IN_TYPE, triggerInType); in Cy_DMA_Descriptor_SetTriggerInType()
969 …n_dma_trigger_type_t Cy_DMA_Descriptor_GetTriggerInType(cy_stc_dma_descriptor_t const * descriptor) in Cy_DMA_Descriptor_GetTriggerInType() argument
971 return((cy_en_dma_trigger_type_t) _FLD2VAL(CY_DMA_CTL_TR_IN_TYPE, descriptor->ctl)); in Cy_DMA_Descriptor_GetTriggerInType()
991 __STATIC_INLINE void Cy_DMA_Descriptor_SetTriggerOutType(cy_stc_dma_descriptor_t * descriptor, cy_e… in Cy_DMA_Descriptor_SetTriggerOutType() argument
995 CY_REG32_CLR_SET(descriptor->ctl, CY_DMA_CTL_TR_OUT_TYPE, triggerOutType); in Cy_DMA_Descriptor_SetTriggerOutType()
1015 …_dma_trigger_type_t Cy_DMA_Descriptor_GetTriggerOutType(cy_stc_dma_descriptor_t const * descriptor) in Cy_DMA_Descriptor_GetTriggerOutType() argument
1017 return((cy_en_dma_trigger_type_t) _FLD2VAL(CY_DMA_CTL_TR_OUT_TYPE, descriptor->ctl)); in Cy_DMA_Descriptor_GetTriggerOutType()
1037 __STATIC_INLINE void Cy_DMA_Descriptor_SetDataSize(cy_stc_dma_descriptor_t * descriptor, cy_en_dma_… in Cy_DMA_Descriptor_SetDataSize() argument
1041 CY_REG32_CLR_SET(descriptor->ctl, CY_DMA_CTL_DATA_SIZE, dataSize); in Cy_DMA_Descriptor_SetDataSize()
1061 …INE cy_en_dma_data_size_t Cy_DMA_Descriptor_GetDataSize(cy_stc_dma_descriptor_t const * descriptor) in Cy_DMA_Descriptor_GetDataSize() argument
1063 return((cy_en_dma_data_size_t) _FLD2VAL(CY_DMA_CTL_DATA_SIZE, descriptor->ctl)); in Cy_DMA_Descriptor_GetDataSize()
1083 __STATIC_INLINE void Cy_DMA_Descriptor_SetSrcTransferSize(cy_stc_dma_descriptor_t * descriptor, cy_… in Cy_DMA_Descriptor_SetSrcTransferSize() argument
1087 CY_REG32_CLR_SET(descriptor->ctl, CY_DMA_CTL_SRC_SIZE, srcTransferSize); in Cy_DMA_Descriptor_SetSrcTransferSize()
1107 …ma_transfer_size_t Cy_DMA_Descriptor_GetSrcTransferSize(cy_stc_dma_descriptor_t const * descriptor) in Cy_DMA_Descriptor_GetSrcTransferSize() argument
1109 return((cy_en_dma_transfer_size_t) _FLD2VAL(CY_DMA_CTL_SRC_SIZE, descriptor->ctl)); in Cy_DMA_Descriptor_GetSrcTransferSize()
1129 __STATIC_INLINE void Cy_DMA_Descriptor_SetDstTransferSize(cy_stc_dma_descriptor_t * descriptor, cy_… in Cy_DMA_Descriptor_SetDstTransferSize() argument
1133 CY_REG32_CLR_SET(descriptor->ctl, CY_DMA_CTL_DST_SIZE, dstTransferSize); in Cy_DMA_Descriptor_SetDstTransferSize()
1153 …ma_transfer_size_t Cy_DMA_Descriptor_GetDstTransferSize(cy_stc_dma_descriptor_t const * descriptor) in Cy_DMA_Descriptor_GetDstTransferSize() argument
1155 return((cy_en_dma_transfer_size_t) _FLD2VAL(CY_DMA_CTL_DST_SIZE, descriptor->ctl)); in Cy_DMA_Descriptor_GetDstTransferSize()
1177 __STATIC_INLINE void Cy_DMA_Descriptor_SetRetrigger(cy_stc_dma_descriptor_t * descriptor, cy_en_dma… in Cy_DMA_Descriptor_SetRetrigger() argument
1181 CY_REG32_CLR_SET(descriptor->ctl, CY_DMA_CTL_RETRIG, retrigger); in Cy_DMA_Descriptor_SetRetrigger()
1202 …NE cy_en_dma_retrigger_t Cy_DMA_Descriptor_GetRetrigger(cy_stc_dma_descriptor_t const * descriptor) in Cy_DMA_Descriptor_GetRetrigger() argument
1204 return((cy_en_dma_retrigger_t) _FLD2VAL(CY_DMA_CTL_RETRIG, descriptor->ctl)); in Cy_DMA_Descriptor_GetRetrigger()
1224 …a_descriptor_type_t Cy_DMA_Descriptor_GetDescriptorType(cy_stc_dma_descriptor_t const * descriptor) in Cy_DMA_Descriptor_GetDescriptorType() argument
1226 return((cy_en_dma_descriptor_type_t) _FLD2VAL(CY_DMA_CTL_TYPE, descriptor->ctl)); in Cy_DMA_Descriptor_GetDescriptorType()
1246 __STATIC_INLINE void Cy_DMA_Descriptor_SetChannelState(cy_stc_dma_descriptor_t * descriptor, cy_en_… in Cy_DMA_Descriptor_SetChannelState() argument
1250 CY_REG32_CLR_SET(descriptor->ctl, CY_DMA_CTL_CH_DISABLE, channelState); in Cy_DMA_Descriptor_SetChannelState()
1270 …n_dma_channel_state_t Cy_DMA_Descriptor_GetChannelState(cy_stc_dma_descriptor_t const * descriptor) in Cy_DMA_Descriptor_GetChannelState() argument
1272 return((cy_en_dma_channel_state_t) _FLD2VAL(CY_DMA_CTL_CH_DISABLE, descriptor->ctl)); in Cy_DMA_Descriptor_GetChannelState()
1293 __STATIC_INLINE void Cy_DMA_Descriptor_SetXloopDataCount(cy_stc_dma_descriptor_t * descriptor, uint… in Cy_DMA_Descriptor_SetXloopDataCount() argument
1295 CY_ASSERT_L1(CY_DMA_SINGLE_TRANSFER != Cy_DMA_Descriptor_GetDescriptorType(descriptor)); in Cy_DMA_Descriptor_SetXloopDataCount()
1298 CY_REG32_CLR_SET(descriptor->xCtl, CY_DMA_CTL_COUNT, xCount - 1UL); in Cy_DMA_Descriptor_SetXloopDataCount()
1319 …TIC_INLINE uint32_t Cy_DMA_Descriptor_GetXloopDataCount(cy_stc_dma_descriptor_t const * descriptor) in Cy_DMA_Descriptor_GetXloopDataCount() argument
1321 CY_ASSERT_L1(CY_DMA_SINGLE_TRANSFER != Cy_DMA_Descriptor_GetDescriptorType(descriptor)); in Cy_DMA_Descriptor_GetXloopDataCount()
1323 return (_FLD2VAL(CY_DMA_CTL_COUNT, descriptor->xCtl) + 1UL); in Cy_DMA_Descriptor_GetXloopDataCount()
1344 __STATIC_INLINE void Cy_DMA_Descriptor_SetXloopSrcIncrement(cy_stc_dma_descriptor_t * descriptor, i… in Cy_DMA_Descriptor_SetXloopSrcIncrement() argument
1346 CY_ASSERT_L1(CY_DMA_SINGLE_TRANSFER != Cy_DMA_Descriptor_GetDescriptorType(descriptor)); in Cy_DMA_Descriptor_SetXloopSrcIncrement()
1349 CY_REG32_CLR_SET(descriptor->xCtl, CY_DMA_CTL_SRC_INCR, srcXincrement); in Cy_DMA_Descriptor_SetXloopSrcIncrement()
1370 …C_INLINE int32_t Cy_DMA_Descriptor_GetXloopSrcIncrement(cy_stc_dma_descriptor_t const * descriptor) in Cy_DMA_Descriptor_GetXloopSrcIncrement() argument
1372 CY_ASSERT_L1(CY_DMA_SINGLE_TRANSFER != Cy_DMA_Descriptor_GetDescriptorType(descriptor)); in Cy_DMA_Descriptor_GetXloopSrcIncrement()
1374 return ((int32_t) _FLD2VAL(CY_DMA_CTL_SRC_INCR, descriptor->xCtl)); in Cy_DMA_Descriptor_GetXloopSrcIncrement()
1395 __STATIC_INLINE void Cy_DMA_Descriptor_SetXloopDstIncrement(cy_stc_dma_descriptor_t * descriptor, i… in Cy_DMA_Descriptor_SetXloopDstIncrement() argument
1397 CY_ASSERT_L1(CY_DMA_SINGLE_TRANSFER != Cy_DMA_Descriptor_GetDescriptorType(descriptor)); in Cy_DMA_Descriptor_SetXloopDstIncrement()
1400 CY_REG32_CLR_SET(descriptor->xCtl, CY_DMA_CTL_DST_INCR, dstXincrement); in Cy_DMA_Descriptor_SetXloopDstIncrement()
1421 …C_INLINE int32_t Cy_DMA_Descriptor_GetXloopDstIncrement(cy_stc_dma_descriptor_t const * descriptor) in Cy_DMA_Descriptor_GetXloopDstIncrement() argument
1423 CY_ASSERT_L1(CY_DMA_SINGLE_TRANSFER != Cy_DMA_Descriptor_GetDescriptorType(descriptor)); in Cy_DMA_Descriptor_GetXloopDstIncrement()
1425 return ((int32_t) _FLD2VAL(CY_DMA_CTL_DST_INCR, descriptor->xCtl)); in Cy_DMA_Descriptor_GetXloopDstIncrement()
1446 __STATIC_INLINE void Cy_DMA_Descriptor_SetYloopDataCount(cy_stc_dma_descriptor_t * descriptor, uint… in Cy_DMA_Descriptor_SetYloopDataCount() argument
1448 CY_ASSERT_L1(CY_DMA_2D_TRANSFER == Cy_DMA_Descriptor_GetDescriptorType(descriptor)); in Cy_DMA_Descriptor_SetYloopDataCount()
1451 CY_REG32_CLR_SET(descriptor->yCtl, CY_DMA_CTL_COUNT, yCount - 1UL); in Cy_DMA_Descriptor_SetYloopDataCount()
1472 …TIC_INLINE uint32_t Cy_DMA_Descriptor_GetYloopDataCount(cy_stc_dma_descriptor_t const * descriptor) in Cy_DMA_Descriptor_GetYloopDataCount() argument
1474 CY_ASSERT_L1(CY_DMA_2D_TRANSFER == Cy_DMA_Descriptor_GetDescriptorType(descriptor)); in Cy_DMA_Descriptor_GetYloopDataCount()
1476 return (_FLD2VAL(CY_DMA_CTL_COUNT, descriptor->yCtl) + 1UL); in Cy_DMA_Descriptor_GetYloopDataCount()
1497 __STATIC_INLINE void Cy_DMA_Descriptor_SetYloopSrcIncrement(cy_stc_dma_descriptor_t * descriptor, i… in Cy_DMA_Descriptor_SetYloopSrcIncrement() argument
1499 CY_ASSERT_L1(CY_DMA_2D_TRANSFER == Cy_DMA_Descriptor_GetDescriptorType(descriptor)); in Cy_DMA_Descriptor_SetYloopSrcIncrement()
1502 CY_REG32_CLR_SET(descriptor->yCtl, CY_DMA_CTL_SRC_INCR, srcYincrement); in Cy_DMA_Descriptor_SetYloopSrcIncrement()
1523 …C_INLINE int32_t Cy_DMA_Descriptor_GetYloopSrcIncrement(cy_stc_dma_descriptor_t const * descriptor) in Cy_DMA_Descriptor_GetYloopSrcIncrement() argument
1525 CY_ASSERT_L1(CY_DMA_2D_TRANSFER == Cy_DMA_Descriptor_GetDescriptorType(descriptor)); in Cy_DMA_Descriptor_GetYloopSrcIncrement()
1527 return ((int32_t) _FLD2VAL(CY_DMA_CTL_SRC_INCR, descriptor->yCtl)); in Cy_DMA_Descriptor_GetYloopSrcIncrement()
1548 __STATIC_INLINE void Cy_DMA_Descriptor_SetYloopDstIncrement(cy_stc_dma_descriptor_t * descriptor, i… in Cy_DMA_Descriptor_SetYloopDstIncrement() argument
1550 CY_ASSERT_L1(CY_DMA_2D_TRANSFER == Cy_DMA_Descriptor_GetDescriptorType(descriptor)); in Cy_DMA_Descriptor_SetYloopDstIncrement()
1553 CY_REG32_CLR_SET(descriptor->yCtl, CY_DMA_CTL_DST_INCR, dstYincrement); in Cy_DMA_Descriptor_SetYloopDstIncrement()
1574 …C_INLINE int32_t Cy_DMA_Descriptor_GetYloopDstIncrement(cy_stc_dma_descriptor_t const * descriptor) in Cy_DMA_Descriptor_GetYloopDstIncrement() argument
1576 CY_ASSERT_L1(CY_DMA_2D_TRANSFER == Cy_DMA_Descriptor_GetDescriptorType(descriptor)); in Cy_DMA_Descriptor_GetYloopDstIncrement()
1578 return ((int32_t) _FLD2VAL(CY_DMA_CTL_DST_INCR, descriptor->yCtl)); in Cy_DMA_Descriptor_GetYloopDstIncrement()
1611 …Channel_SetDescriptor(DW_Type * base, uint32_t channel, cy_stc_dma_descriptor_t const * descriptor) in Cy_DMA_Channel_SetDescriptor() argument
1615 DW_CH_CURR_PTR(base, channel) = (uint32_t)descriptor; in Cy_DMA_Channel_SetDescriptor()
2019 #define DMA_Descriptor descriptor
2145 __STATIC_INLINE void Cy_DMA_Descr_SetTxfrWidth(cy_stc_dma_descr_t * descriptor, in Cy_DMA_Descr_SetTxfrWidth() argument
2151 regValue = descriptor->ctl & ((uint32_t)(~(DW_DESCR_STRUCT_DESCR_CTL_DATA_SIZE_Msk | in Cy_DMA_Descr_SetTxfrWidth()
2155 descriptor->ctl = regValue | in Cy_DMA_Descr_SetTxfrWidth()