Lines Matching refs:ii

469     const unsigned ii = input_index;
470 const cpuperf_event_id_t id = icfg->events[ii];
471 bool uses_timebase0 = !!(icfg->flags[ii] & CPUPERF_CONFIG_FLAG_TIMEBASE0);
477 zxlogf(ERROR, "%s: Invalid fixed event [%u]\n", __func__, ii);
487 if ((uses_timebase0 && input_index != 0) || icfg->rate[ii] == 0) {
490 if (icfg->rate[ii] > ss->max_fixed_value) {
491 zxlogf(ERROR, "%s: Rate too large, event [%u]\n", __func__, ii);
495 ss->max_fixed_value - icfg->rate[ii] + 1;
499 if (!uses_timebase0 || ii == 0)
502 if (icfg->flags[ii] & CPUPERF_CONFIG_FLAG_OS)
504 if (icfg->flags[ii] & CPUPERF_CONFIG_FLAG_USER)
508 if (icfg->flags[ii] & CPUPERF_CONFIG_FLAG_TIMEBASE0)
510 if (icfg->flags[ii] & CPUPERF_CONFIG_FLAG_PC)
521 const unsigned ii = input_index;
522 cpuperf_event_id_t id = icfg->events[ii];
525 bool uses_timebase0 = !!(icfg->flags[ii] & CPUPERF_CONFIG_FLAG_TIMEBASE0);
534 if ((uses_timebase0 && input_index != 0) || icfg->rate[ii] == 0) {
537 if (icfg->rate[ii] > ss->max_programmable_value) {
538 zxlogf(ERROR, "%s: Rate too large, event [%u]\n", __func__, ii);
542 ss->max_programmable_value - icfg->rate[ii] + 1;
548 zxlogf(ERROR, "%s: Invalid event id, event [%u]\n", __func__, ii);
555 zxlogf(ERROR, "%s: Invalid event id, event [%u]\n", __func__, ii);
561 zxlogf(ERROR, "%s: Invalid event id, event [%u]\n", __func__, ii);
565 zxlogf(ERROR, "%s: Invalid event id, event [%u]\n", __func__, ii);
571 if (icfg->flags[ii] & CPUPERF_CONFIG_FLAG_OS)
573 if (icfg->flags[ii] & CPUPERF_CONFIG_FLAG_USER)
585 if (!uses_timebase0 || ii == 0)
590 if (icfg->flags[ii] & CPUPERF_CONFIG_FLAG_TIMEBASE0)
592 if (icfg->flags[ii] & CPUPERF_CONFIG_FLAG_PC)
603 const unsigned ii = input_index;
604 cpuperf_event_id_t id = icfg->events[ii];
608 zxlogf(ERROR, "%s: Invalid misc event [%u]\n", __func__, ii);
618 __func__, ii);
623 if (icfg->flags[ii] & CPUPERF_CONFIG_FLAG_TIMEBASE0) {
626 if (icfg->rate[ii] != 0) {
628 __func__, ii);
687 unsigned ii; // ii: input index
688 for (ii = 0; ii < countof(icfg->events); ++ii) {
689 cpuperf_event_id_t id = icfg->events[ii];
690 zxlogf(TRACE, "%s: processing [%u] = %u\n", __func__, ii, id);
695 if (icfg->flags[ii] & ~CPUPERF_CONFIG_FLAG_MASK) {
696 zxlogf(ERROR, "%s: reserved flag bits set [%u]\n", __func__, ii);
702 status = ipm_stage_fixed_config(icfg, ss, ii, ocfg);
708 status = ipm_stage_programmable_config(icfg, ss, ii, ocfg);
713 status = ipm_stage_misc_config(icfg, ss, ii, ocfg);
719 __func__, ii);
723 if (icfg->flags[ii] & CPUPERF_CONFIG_FLAG_TIMEBASE0)
726 if (ii == 0) {
732 for (; ii < countof(icfg->events); ++ii) {
733 if (icfg->events[ii] != 0) {
734 zxlogf(ERROR, "%s: Hole at event [%u]\n", __func__, ii);