Lines Matching refs:i
56 for (int i = 0; i< NHW_IPC_TOTAL_INST; i++) { in nhw_ipc_init() local
57 nhw_ipc_st[i].NRF_IPC_regs = &NRF_IPC_regs[i]; in nhw_ipc_init()
58 nhw_ipc_st[i].n_ch = nhw_ipc_n_ch[i]; in nhw_ipc_init()
60 nhw_ipc_st[i].dppi_map = nhw_IPC_dppi_map[i]; in nhw_ipc_init()
61 …nhw_ipc_st[i].subscribed = (struct nhw_subsc_mem*)bs_calloc(nhw_ipc_n_ch[i], sizeof(struct nhw_sub… in nhw_ipc_init()
72 for (int i = 0; i < NHW_IPC_TOTAL_INST; i++) { in nhw_ipc_free() local
73 free(nhw_ipc_st[i].subscribed); in nhw_ipc_free()
74 nhw_ipc_st[i].subscribed = NULL; in nhw_ipc_free()
91 for (uint i = 0; i < this->n_ch; i++) { in nhw_IPC_eval_interrupt() local
92 if (IPC_regs->EVENTS_RECEIVE[i]) { in nhw_IPC_eval_interrupt()
93 event_m |= 1<<i; in nhw_IPC_eval_interrupt()
127 for (uint i = 0; i < nhw_ipc_st[inst].n_ch; i++) { in nhw_IPC_notify_ipc_ch() local
128 if (NRF_IPC_regs[inst].RECEIVE_CNF[i] & ch_mask) { in nhw_IPC_notify_ipc_ch()
129 nhw_IPC_signal_EVENT(inst, i); in nhw_IPC_notify_ipc_ch()
140 for (int i = __builtin_ffs(send_cnf) - 1; i >= 0; i = __builtin_ffs(send_cnf) - 1) { in nhw_IPC_TASKS_SEND() local
141 nhw_IPC_notify_ipc_ch(i); in nhw_IPC_TASKS_SEND()
142 send_cnf &= ~(1 << i); in nhw_IPC_TASKS_SEND()