Lines Matching refs:wrcnt
871 ctx->wrcnt = ntx; in mec_hal_i2c_nl_cm_cfg_start()
948 uint16_t wrcnt = (uint16_t)((regs->EXTLEN & 0xffu) << 8); in mec_hal_i2c_nl_cm_event() local
951 wrcnt |= (uint16_t)((cm_cmd >> 16) & 0xffu); in mec_hal_i2c_nl_cm_event()
954 if (!cm_cmd && !(ctx->wrcnt || ctx->rdcnt)) { in mec_hal_i2c_nl_cm_event()
956 } else if (rdcnt && !wrcnt && ((cm_cmd & 0x03u) == 0x01)) { in mec_hal_i2c_nl_cm_event()
1023 state->wrcnt = (uint16_t)((r >> 8) & 0xffu); in mec_hal_i2c_nl_state_get()
1028 state->wrcnt = (uint16_t)((r >> 16) & 0xffu); in mec_hal_i2c_nl_state_get()
1033 state->wrcnt |= (uint16_t)((elen & 0xffu) << 8); in mec_hal_i2c_nl_state_get()
1180 ctx->wrcnt = ntx; in mec_hal_i2c_nl_tm_config()
1234 uint16_t wrcnt = (uint16_t)((elen >> 8) & 0xff00u); in mec_hal_i2c_nl_tm_event() local
1237 wrcnt |= (uint16_t)((tm_cmd >> 8) & 0xffu); in mec_hal_i2c_nl_tm_event()
1240 if (!tm_cmd && (ctx->wrcnt || ctx->rdcnt)) { in mec_hal_i2c_nl_tm_event()
1242 } else if (rdcnt && !wrcnt && ((tm_cmd & 0x03u) == 0x01)) { in mec_hal_i2c_nl_tm_event()
1328 if (ctx->wrcnt >= hwcnt) { in mec_hal_i2c_nl_tm_transfered()
1329 nxfr = ctx->wrcnt - hwcnt; in mec_hal_i2c_nl_tm_transfered()