Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 125) sorted by relevance

12345

/hal_nxp-latest/mcux/middleware/mcux-sdk-middleware-multicore/rpmsg_lite/lib/rpmsg_lite/
Drpmsg_lite.c43 void (*vq_tx)(struct virtqueue *vq, void *buffer, uint32_t len, uint16_t idx);
44 void *(*vq_tx_alloc)(struct virtqueue *vq, uint32_t *len, uint16_t *idx);
45 void *(*vq_rx)(struct virtqueue *vq, uint32_t *len, uint16_t *idx);
46 void (*vq_rx_free)(struct virtqueue *vq, void *buffer, uint32_t len, uint16_t idx);
117 uint16_t idx; in rpmsg_lite_rx_callback() local
133 …rpmsg_msg = (struct rpmsg_std_msg *)rpmsg_lite_dev->vq_ops->vq_rx(rpmsg_lite_dev->rvq, &len, &idx); in rpmsg_lite_rx_callback()
148 rpmsg_msg->hdr.reserved.idx = idx; in rpmsg_lite_rx_callback()
152 rpmsg_lite_dev->vq_ops->vq_rx_free(rpmsg_lite_dev->rvq, rpmsg_msg, len, idx); in rpmsg_lite_rx_callback()
157 …rpmsg_msg = (struct rpmsg_std_msg *)rpmsg_lite_dev->vq_ops->vq_rx(rpmsg_lite_dev->rvq, &len, &idx); in rpmsg_lite_rx_callback()
211 static void vq_tx_remote(struct virtqueue *tvq, void *buffer, uint32_t len, uint16_t idx) in vq_tx_remote() argument
[all …]
/hal_nxp-latest/s32/drivers/s32ze/Can_CANEXCEL/src/
DCanEXCEL_Ip_HwAccess.c261 uint16 idx; in CanXL_ClearRAM() local
263 for (idx=0u; idx < CANXL_MSG_DESCRIPTORS_MSGDSC_COUNT; idx++) in CanXL_ClearRAM()
267 base_Msg_Desc->MSGDSC[idx].CTRL.RXCTRL = CANXL_MSG_DESCRIPTORS_RXCTRL_MODE_MASK; in CanXL_ClearRAM()
269 base_Msg_Desc->MSGDSC[idx].CFG1.MDFLT1FD = 0U; in CanXL_ClearRAM()
270 base_Msg_Desc->MSGDSC[idx].CFG2.MDFLT2FD = 0U; in CanXL_ClearRAM()
271 base_Msg_Desc->MSGDSC[idx].LSTPNT.RXLSTPTR = 0U; in CanXL_ClearRAM()
275 base_Msg_Desc->MSGDSC[idx].RESERVED_0[i] = 0U; in CanXL_ClearRAM()
280 for (idx = 0u; idx <= (uint16)(CANXL_IP_FILTER_BANK_SIZE/4U); idx++) in CanXL_ClearRAM()
282 ptr[idx] = 0U; in CanXL_ClearRAM()
287 for (idx = 0u; idx < CANXL_RXFIFO_RXFFPOINTERAR_COUNT; idx++) in CanXL_ClearRAM()
[all …]
DCanEXCEL_Ip.c359 for (uint8 idx = 0; idx < Config->pRxFifoConfig.Rx_Fifo_Depth; idx++) in Canexcel_InitRxFIFO() local
361 CANEXCEL.EXL_RXFIFO[instance]->RXFMBP[idx] = (uint32)&RxFifoMsgBuff[idx]; in Canexcel_InitRxFIFO()
369 for (uint8 idx = 0; idx < Config->pRxFifoConfig.Rx_Fifo_Depth; idx++) in Canexcel_InitRxFIFO() local
371 CANEXCEL.EXL_RXFIFO[instance]->RXFMBP[idx] = (uint32)&RxFifoMsgBuff[idx]; in Canexcel_InitRxFIFO()
1549 uint8 idx; in Canexcel_Ip_ConfigRxFifo() local
1562 for (idx = 0U; idx < filterConfig->noIdFilters; idx++) in Canexcel_Ip_ConfigRxFifo()
1564 CanXL_ConfigIDFilter(base, &filterConfig->IdFilterPtr[idx], idx); in Canexcel_Ip_ConfigRxFifo()
1569 for (idx = 0U; idx < filterConfig->noActAddrFilters; idx++) in Canexcel_Ip_ConfigRxFifo()
1571 CanXL_ConfigAccAddr(base, &filterConfig->AddrFilterPtr[idx], idx); in Canexcel_Ip_ConfigRxFifo()
1577 for (idx = 0U; idx < filterConfig->noSduFilters; idx++) in Canexcel_Ip_ConfigRxFifo()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/drivers/mcan/
Dfsl_mcan.h795 uint8_t idx);
808 uint8_t idx);
852 static inline bool MCAN_GetRxBufferStatusFlag(CAN_Type *base, uint8_t idx) in MCAN_GetRxBufferStatusFlag() argument
854 assert(idx <= 63U); in MCAN_GetRxBufferStatusFlag()
858 if (idx <= 31U) in MCAN_GetRxBufferStatusFlag()
860 fgRet = (0U != (base->NDAT1 & ((uint32_t)1U << idx))); in MCAN_GetRxBufferStatusFlag()
864 fgRet = (0U != (base->NDAT2 & ((uint32_t)1U << (idx - 32U)))); in MCAN_GetRxBufferStatusFlag()
878 static inline void MCAN_ClearRxBufferStatusFlag(CAN_Type *base, uint8_t idx) in MCAN_ClearRxBufferStatusFlag() argument
880 assert(idx <= 63U); in MCAN_ClearRxBufferStatusFlag()
882 if (idx <= 31U) in MCAN_ClearRxBufferStatusFlag()
[all …]
Dfsl_mcan.c166 static uint32_t MCAN_GetRxBufferElementAddress(CAN_Type *base, uint8_t idx);
175 static uint32_t MCAN_GetTxBufferElementAddress(CAN_Type *base, uint8_t idx);
1492 uint8_t idx) in MCAN_SetSTDFilterElement() argument
1495 elementAddress = (uint32_t *)(MCAN_GetMsgRAMBase(base) + config->address + idx * 4U); in MCAN_SetSTDFilterElement()
1510 uint8_t idx) in MCAN_SetEXTFilterElement() argument
1513 elementAddress = (uint32_t *)(MCAN_GetMsgRAMBase(base) + config->address + idx * 8U); in MCAN_SetEXTFilterElement()
1553 static uint32_t MCAN_GetRxBufferElementAddress(CAN_Type *base, uint8_t idx) in MCAN_GetRxBufferElementAddress() argument
1555 assert(idx <= 63U); in MCAN_GetRxBufferElementAddress()
1566 return (base->RXBC & CAN_RXBC_RBSA_MASK) + idx * eSize * 4U; in MCAN_GetRxBufferElementAddress()
1569 static uint32_t MCAN_GetTxBufferElementAddress(CAN_Type *base, uint8_t idx) in MCAN_GetTxBufferElementAddress() argument
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/codec/tfa9xxx/vas_tfa_drv/
Dtfa2_haptic.c33 static struct haptic_tone_object *get_obj_cache_ptr(struct haptic_data *data, int idx) in get_obj_cache_ptr() argument
37 if (idx >= (FW_XMEM_NR_OBJECTS1 + FW_XMEM_NR_OBJECTS2)) in get_obj_cache_ptr()
39 else if (idx >= FW_XMEM_NR_OBJECTS1) in get_obj_cache_ptr()
40 obj = (struct haptic_tone_object *)&data->object_table2_cache[idx - FW_XMEM_NR_OBJECTS1][0]; in get_obj_cache_ptr()
42 obj = (struct haptic_tone_object *)&data->object_table1_cache[idx][0]; in get_obj_cache_ptr()
48 static int get_obj_xmem_addr(int idx) in get_obj_xmem_addr() argument
52 if (idx >= (FW_XMEM_NR_OBJECTS1 + FW_XMEM_NR_OBJECTS2)) in get_obj_xmem_addr()
54 else if (idx >= FW_XMEM_NR_OBJECTS1) in get_obj_xmem_addr()
55 addr = FW_XMEM_GENOBJECTS2 + (idx - FW_XMEM_NR_OBJECTS1) * FW_XMEM_OBJECTSIZE; in get_obj_xmem_addr()
57 addr = FW_XMEM_GENOBJECTS1 + idx * FW_XMEM_OBJECTSIZE; in get_obj_xmem_addr()
[all …]
Dtfa2_container.c343 int idx, hit; in tfa2_cnt_get_dev_prof_list() local
349 for (idx = 0, hit = 0; idx < dev->length; idx++) in tfa2_cnt_get_dev_prof_list()
351 if (dev->list[idx].type == dscProfile) in tfa2_cnt_get_dev_prof_list()
354 return (nxpTfaProfileList_t *)(dev->list[idx].offset + base); in tfa2_cnt_get_dev_prof_list()
368 int idx, nprof = 0; in tfa2_dev_get_dev_nprof() local
379 for (idx = 0; idx < dev->length; idx++) in tfa2_dev_get_dev_nprof()
381 if (dev->list[idx].type == dscProfile) in tfa2_dev_get_dev_nprof()
397 int idx, nprof = 0; in tfa2_cnt_get_dev_nprof() local
408 for (idx = 0; idx < dev->length; idx++) in tfa2_cnt_get_dev_nprof()
410 if (dev->list[idx].type == dscProfile) in tfa2_cnt_get_dev_nprof()
Dtfa2_dev.c1414 int i, idx = 0; in tfa2_24_to_32() local
1420 data32[idx++] = ((int32_t)tmp << 8) >> 8; in tfa2_24_to_32()
1422 return idx; in tfa2_24_to_32()
1436 int i, idx = 0; in tfa2_32_to_24() local
1441 data24[idx++] = buf8[2]; in tfa2_32_to_24()
1442 data24[idx++] = buf8[1]; in tfa2_32_to_24()
1443 data24[idx++] = buf8[0]; in tfa2_32_to_24()
1445 return idx; in tfa2_32_to_24()
1462 int idx = 0; in write_cf_mem() local
1470 output[idx++] = 0x90; /* CF_CONTROLS */ in write_cf_mem()
[all …]
/hal_nxp-latest/mcux/middleware/mcux-sdk-middleware-multicore/rpmsg_lite/lib/virtio/
Dvirtqueue.c248 void *virtqueue_get_buffer(struct virtqueue *vq, uint32_t *len, uint16_t *idx) in virtqueue_get_buffer() argument
253 if ((vq == VQ_NULL) || (vq->vq_used_cons_idx == vq->vq_ring.used->idx)) in virtqueue_get_buffer()
270 if (idx != VQ_NULL) in virtqueue_get_buffer()
272 *idx = desc_idx; in virtqueue_get_buffer()
294 uint32_t virtqueue_get_buffer_length(struct virtqueue *vq, uint16_t idx) in virtqueue_get_buffer_length() argument
296 return vq->vq_ring.desc[idx].len; in virtqueue_get_buffer_length()
354 if (vq->vq_available_idx == vq->vq_ring.avail->idx) in virtqueue_get_available_buffer()
412 uint16_t idx; in virtqueue_fill_used_buffers() local
420 idx = vq_ring_add_buffer(vq, vq->vq_ring.desc, head_idx, buffer, len); in virtqueue_fill_used_buffers()
422 vq->vq_desc_head_idx = idx; in virtqueue_fill_used_buffers()
[all …]
/hal_nxp-latest/mcux/middleware/wifi_nxp/wls/
Dwls_processing.c104 int idx, zerosI, zerosQ; in myAtan2() local
165 idx = (y_old*MAX_FFT_SIZE)>>(MPY_BIPT-1); in myAtan2()
167 tempVal = cosTablePtr[idx&(MAX_FFT_SIZE/2-1)]; in myAtan2()
168 if(idx&(MAX_FFT_SIZE/2)){ // [-pi,0) in myAtan2()
177 tempVal = cosTablePtr[idx&(MAX_FFT_SIZE-1)]; // apply modulo in myAtan2()
207 int zerosX, shift, shiftBack, idx, offset; in mySqrtLut() local
215 idx = x>>(2*shiftBack); in mySqrtLut()
216 offset = x-(idx<<(2*shiftBack)); in mySqrtLut()
217 y = sqrtLUT[idx-1]+1; in mySqrtLut()
219 y1 = sqrtLUT[idx]+1; in mySqrtLut()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/CMSIS/Include/
Dmpu_armv8.h182 __STATIC_INLINE void ARM_MPU_SetMemAttrEx(MPU_Type* mpu, uint8_t idx, uint8_t attr) in ARM_MPU_SetMemAttrEx() argument
184 const uint8_t reg = idx / 4U; in ARM_MPU_SetMemAttrEx()
185 const uint32_t pos = ((idx % 4U) * 8U); in ARM_MPU_SetMemAttrEx()
199 __STATIC_INLINE void ARM_MPU_SetMemAttr(uint8_t idx, uint8_t attr) in ARM_MPU_SetMemAttr() argument
201 ARM_MPU_SetMemAttrEx(MPU, idx, attr); in ARM_MPU_SetMemAttr()
209 __STATIC_INLINE void ARM_MPU_SetMemAttr_NS(uint8_t idx, uint8_t attr) in ARM_MPU_SetMemAttr_NS() argument
211 ARM_MPU_SetMemAttrEx(MPU_NS, idx, attr); in ARM_MPU_SetMemAttr_NS()
/hal_nxp-latest/mcux/mcux-sdk/CMSIS/Core/Include/
Dmpu_armv8.h188 __STATIC_INLINE void ARM_MPU_SetMemAttrEx(MPU_Type* mpu, uint8_t idx, uint8_t attr) in ARM_MPU_SetMemAttrEx() argument
190 const uint8_t reg = idx / 4U; in ARM_MPU_SetMemAttrEx()
191 const uint32_t pos = ((idx % 4U) * 8U); in ARM_MPU_SetMemAttrEx()
205 __STATIC_INLINE void ARM_MPU_SetMemAttr(uint8_t idx, uint8_t attr) in ARM_MPU_SetMemAttr() argument
207 ARM_MPU_SetMemAttrEx(MPU, idx, attr); in ARM_MPU_SetMemAttr()
215 __STATIC_INLINE void ARM_MPU_SetMemAttr_NS(uint8_t idx, uint8_t attr) in ARM_MPU_SetMemAttr_NS() argument
217 ARM_MPU_SetMemAttrEx(MPU_NS, idx, attr); in ARM_MPU_SetMemAttr_NS()
/hal_nxp-latest/mcux/mcux-sdk/CMSIS/NN/Source/SoftmaxFunctions/
Darm_softmax_s8.c116 int32_t idx = 0; in arm_softmax_s8() local
121 int32x4_t ip = vldrbq_s32(&input[idx * 4]); in arm_softmax_s8()
137 idx++; in arm_softmax_s8()
155 idx = 0; in arm_softmax_s8()
159 int32x4_t ip = vldrbq_s32(&input[idx]); in arm_softmax_s8()
184 vstrbq_s32(&output[idx], tmp_res); in arm_softmax_s8()
186 idx += 4; in arm_softmax_s8()
/hal_nxp-latest/mcux/mcux-sdk/CMSIS/DSP/Source/StatisticsFunctions/
Darm_max_f16.c68 uint32_t idx = blockSize; in arm_max_f16() local
112 idx = vminvq(idx, indexVec); in arm_max_f16()
127 idx = blockSize - blkCnt; in arm_max_f16()
137 *pIndex = idx; in arm_max_f16()
Darm_min_q7.c63 uint32_t idx = blockSize; in arm_small_blk_min_q7() local
104 idx = vminvq(idx, indexVec); in arm_small_blk_min_q7()
117 idx = blockSize - blkCnt; in arm_small_blk_min_q7()
126 *pIndex = idx; in arm_small_blk_min_q7()
Darm_max_f32.c71 uint32_t idx = blockSize; in arm_max_f32() local
115 idx = vminvq(idx, indexVec); in arm_max_f32()
130 idx = blockSize - blkCnt; in arm_max_f32()
140 *pIndex = idx; in arm_max_f32()
Darm_min_f32.c75 uint32_t idx = blockSize; in arm_min_f32() local
118 idx = vminvq(idx, indexVec); in arm_min_f32()
135 idx = blockSize - blkCnt; in arm_min_f32()
142 *pIndex = idx; in arm_min_f32()
Darm_min_f16.c70 uint32_t idx = blockSize; in arm_min_f16() local
126 idx = vminvq(idx, indexVec); in arm_min_f16()
130 *pIndex = idx; in arm_min_f16()
Darm_absmax_f32.c73 uint32_t idx = blockSize; in arm_absmax_f32() local
116 idx = vminvq(idx, indexVec); in arm_absmax_f32()
120 *pIndex = idx; in arm_absmax_f32()
Darm_absmax_f16.c70 uint16_t idx = blockSize; in arm_absmax_f16() local
132 idx = vminvq(idx, indexVec); in arm_absmax_f16()
136 *pIndex = idx; in arm_absmax_f16()
Darm_absmin_f16.c71 uint16_t idx = blockSize; in arm_absmin_f16() local
133 idx = vminvq(idx, indexVec); in arm_absmin_f16()
137 *pIndex = idx; in arm_absmin_f16()
Darm_absmin_f32.c76 uint32_t idx = blockSize; in arm_absmin_f32() local
138 idx = vminvq(idx, indexVec); in arm_absmin_f32()
142 *pIndex = idx; in arm_absmin_f32()
Darm_absmin_q15.c64 uint16_t idx = blockSize; in arm_absmin_q15() local
127 idx = vminvq(idx, indexVec); in arm_absmin_q15()
131 *pIndex = idx; in arm_absmin_q15()
/hal_nxp-latest/mcux/middleware/wifi_nxp/wifidriver/
Dmlan_11d.c990 t_u8 idx = 0; in wlan_11d_parse_domain_info() local
1030 while (idx < MAX_NO_OF_CHAN && i < no_of_chan) in wlan_11d_parse_domain_info()
1044 parsed_region_chan->chan_pwr[idx].chan = cur_chan; in wlan_11d_parse_domain_info()
1045 parsed_region_chan->chan_pwr[idx].band = (t_u8)band; in wlan_11d_parse_domain_info()
1046 parsed_region_chan->chan_pwr[idx].pwr = country_info->sub_band[j].max_tx_pwr; in wlan_11d_parse_domain_info()
1047 idx++; in wlan_11d_parse_domain_info()
1054 parsed_region_chan->no_of_chan = idx; in wlan_11d_parse_domain_info()
1057 …P("11D: parsed_region_chan", (t_u8 *)parsed_region_chan->chan_pwr, sizeof(chan_power_11d_t) * idx); in wlan_11d_parse_domain_info()
1487 t_u32 idx; local
1494 for (idx = 0; idx < pmadapter->num_in_scan_table; idx++)
[all …]
/hal_nxp-latest/mcux/mcux-sdk/drivers/puf_v3/
Dfsl_puf_v3.c402 uint8_t idx = 0; in PUF_GetKey() local
465 if ((0U != (PUF_SR_DI_REQUEST_MASK & base->SR)) && (idx < 4u)) in PUF_GetKey()
467 base->DIR = context[idx]; in PUF_GetKey()
468 idx++; in PUF_GetKey()
503 uint8_t idx = 0; in PUF_WrapGeneratedRandom() local
563 if ((0u != (PUF_SR_DI_REQUEST_MASK & base->SR)) && (idx < 4u)) in PUF_WrapGeneratedRandom()
565 base->DIR = context[idx]; in PUF_WrapGeneratedRandom()
566 idx++; in PUF_WrapGeneratedRandom()

12345