Lines Matching refs:descriptor

44 cy_en_axidmac_status_t Cy_AXIDMAC_Descriptor_Init(cy_stc_axidmac_descriptor_t * descriptor, const c…  in Cy_AXIDMAC_Descriptor_Init()  argument
48 if ((NULL != descriptor) && (NULL != config)) in Cy_AXIDMAC_Descriptor_Init()
57 descriptor->ctl = in Cy_AXIDMAC_Descriptor_Init()
66 descriptor->src = (uint32_t)config->srcAddress; in Cy_AXIDMAC_Descriptor_Init()
68 Cy_AXIDMAC_Descriptor_SetDstAddress(descriptor, config->dstAddress); in Cy_AXIDMAC_Descriptor_Init()
70 Cy_AXIDMAC_Descriptor_SetMloopDataCount(descriptor, config->mCount); in Cy_AXIDMAC_Descriptor_Init()
74 Cy_AXIDMAC_Descriptor_SetXloopDataCount(descriptor, config->xCount); in Cy_AXIDMAC_Descriptor_Init()
77 Cy_AXIDMAC_Descriptor_SetNextDescriptor(descriptor, config->nextDescriptor); in Cy_AXIDMAC_Descriptor_Init()
83 descriptor->xIncr = _VAL2FLD(AXI_DMAC_CH_DESCR_X_INCR_SRC_X, config->srcXincrement) | in Cy_AXIDMAC_Descriptor_Init()
89 Cy_AXIDMAC_Descriptor_SetYloopDataCount(descriptor, config->yCount); in Cy_AXIDMAC_Descriptor_Init()
91 descriptor->yIncr = _VAL2FLD(AXI_DMAC_CH_DESCR_Y_INCR_SRC_Y, config->srcYincrement) | in Cy_AXIDMAC_Descriptor_Init()
109 void Cy_AXIDMAC_Descriptor_DeInit(cy_stc_axidmac_descriptor_t * descriptor) in Cy_AXIDMAC_Descriptor_DeInit() argument
111 descriptor->ctl = 0UL; in Cy_AXIDMAC_Descriptor_DeInit()
112 descriptor->src = 0UL; in Cy_AXIDMAC_Descriptor_DeInit()
113 descriptor->dst = 0UL; in Cy_AXIDMAC_Descriptor_DeInit()
114 descriptor->mSize = 0UL; in Cy_AXIDMAC_Descriptor_DeInit()
115 descriptor->xSize = 0UL; in Cy_AXIDMAC_Descriptor_DeInit()
116 descriptor->xIncr = 0UL; in Cy_AXIDMAC_Descriptor_DeInit()
117 descriptor->ySize = 0UL; in Cy_AXIDMAC_Descriptor_DeInit()
118 descriptor->yIncr = 0UL; in Cy_AXIDMAC_Descriptor_DeInit()
119 descriptor->nextPtr = 0UL; in Cy_AXIDMAC_Descriptor_DeInit()
135 … base) && (CY_AXIDMAC_IS_CH_NR_VALID(channel)) && (NULL != config) && (NULL != config->descriptor)) in Cy_AXIDMAC_Channel_Init()
140 AXIDMAC_CH_CURR(base, channel) = (uint32_t)config->descriptor; in Cy_AXIDMAC_Channel_Init()
179 uint32_t Cy_AXIDMAC_Descriptor_GetXloopDataCount(cy_stc_axidmac_descriptor_t const * descriptor) in Cy_AXIDMAC_Descriptor_GetXloopDataCount() argument
183 CY_ASSERT_L1(CY_AXIDMAC_1D_MEMORY_COPY != Cy_AXIDMAC_Descriptor_GetDescriptorType(descriptor)); in Cy_AXIDMAC_Descriptor_GetXloopDataCount()
187 retVal = _FLD2VAL(AXI_DMAC_CH_DESCR_X_SIZE_X_COUNT, descriptor->xSize) + 1UL; in Cy_AXIDMAC_Descriptor_GetXloopDataCount()
201 void Cy_AXIDMAC_Descriptor_SetXloopDataCount(cy_stc_axidmac_descriptor_t * descriptor, uint32_t xCo… in Cy_AXIDMAC_Descriptor_SetXloopDataCount() argument
204 CY_ASSERT_L1(CY_AXIDMAC_1D_MEMORY_COPY != Cy_AXIDMAC_Descriptor_GetDescriptorType(descriptor)); in Cy_AXIDMAC_Descriptor_SetXloopDataCount()
208 descriptor->xSize = _VAL2FLD(AXI_DMAC_CH_DESCR_X_SIZE_X_COUNT, xCount - 1UL); in Cy_AXIDMAC_Descriptor_SetXloopDataCount()
225 void Cy_AXIDMAC_Descriptor_SetNextDescriptor(cy_stc_axidmac_descriptor_t * descriptor, cy_stc_axidm… in Cy_AXIDMAC_Descriptor_SetNextDescriptor() argument
227 CY_ASSERT_L1(NULL != descriptor); in Cy_AXIDMAC_Descriptor_SetNextDescriptor()
229 …switch((cy_en_axidmac_descriptor_type_t)_FLD2VAL(AXI_DMAC_CH_DESCR_CTL_DESCR_TYPE, descriptor->ctl… in Cy_AXIDMAC_Descriptor_SetNextDescriptor()
233 ((cy_stc_axidmac_dscr_1d_t*)descriptor)->nextPtr = (uint32_t)nextDescriptor; in Cy_AXIDMAC_Descriptor_SetNextDescriptor()
238 ((cy_stc_axidmac_dscr_2d_t*)descriptor)->nextPtr = (uint32_t)nextDescriptor; in Cy_AXIDMAC_Descriptor_SetNextDescriptor()
243 ((cy_stc_axidmac_dscr_3d_t*)descriptor)->nextPtr = (uint32_t)nextDescriptor; in Cy_AXIDMAC_Descriptor_SetNextDescriptor()
267 …criptor_t * Cy_AXIDMAC_Descriptor_GetNextDescriptor(cy_stc_axidmac_descriptor_t const * descriptor) in Cy_AXIDMAC_Descriptor_GetNextDescriptor() argument
271 …switch((cy_en_axidmac_descriptor_type_t)_FLD2VAL(AXI_DMAC_CH_DESCR_CTL_DESCR_TYPE, descriptor->ctl… in Cy_AXIDMAC_Descriptor_GetNextDescriptor()
276 retVal = ((cy_stc_axidmac_dscr_1d_t const*)descriptor)->nextPtr; in Cy_AXIDMAC_Descriptor_GetNextDescriptor()
281 retVal = ((cy_stc_axidmac_dscr_2d_t const*)descriptor)->nextPtr; in Cy_AXIDMAC_Descriptor_GetNextDescriptor()
286 retVal = ((cy_stc_axidmac_dscr_3d_t const*)descriptor)->nextPtr; in Cy_AXIDMAC_Descriptor_GetNextDescriptor()
313 void Cy_AXIDMAC_Descriptor_SetDescriptorType(cy_stc_axidmac_descriptor_t * descriptor, cy_en_axidma… in Cy_AXIDMAC_Descriptor_SetDescriptorType() argument
317 …if (descriptorType != Cy_AXIDMAC_Descriptor_GetDescriptorType(descriptor)) /* Do not perform if th… in Cy_AXIDMAC_Descriptor_SetDescriptorType()
320 …xidmac_descriptor_t const *locNextDescriptor = Cy_AXIDMAC_Descriptor_GetNextDescriptor(descriptor); in Cy_AXIDMAC_Descriptor_SetDescriptorType()
322 uint32_t locMcount = Cy_AXIDMAC_Descriptor_GetMloopDataCount(descriptor); in Cy_AXIDMAC_Descriptor_SetDescriptorType()
324 CY_REG32_CLR_SET(descriptor->ctl, AXI_DMAC_CH_DESCR_CTL_DESCR_TYPE, descriptorType); in Cy_AXIDMAC_Descriptor_SetDescriptorType()
326 Cy_AXIDMAC_Descriptor_SetMloopDataCount(descriptor, locMcount); in Cy_AXIDMAC_Descriptor_SetDescriptorType()
328 Cy_AXIDMAC_Descriptor_SetNextDescriptor(descriptor, locNextDescriptor); in Cy_AXIDMAC_Descriptor_SetDescriptorType()