Lines Matching refs:i

137 	int i;  in hif_napi_create()  local
169 for (i = 0; i < hif->ce_count; i++) { in hif_napi_create()
170 ce_state = hif->ce_id_to_state[i]; in hif_napi_create()
172 i, ce_state->htt_rx_data, in hif_napi_create()
181 NAPI_DEBUG("Creating NAPI on pipe %d", i); in hif_napi_create()
183 napid->napis[i] = napii; in hif_napi_create()
190 for (i = 0; i < hif->ce_count; i++) { in hif_napi_create()
191 napii = napid->napis[i]; in hif_napi_create()
195 NAPI_DEBUG("initializing NAPI for pipe %d", i); in hif_napi_create()
198 napii->id = NAPI_PIPE2ID(i); in hif_napi_create()
200 napii->irq = pld_get_irq(hif->qdf_dev->dev, i); in hif_napi_create()
203 hif_warn("bad IRQ value for CE %d: %d", i, napii->irq); in hif_napi_create()
225 i, napii->id, napii->lro_ctx); in hif_napi_create()
230 napid->ce_map |= (0x01 << i); in hif_napi_create()
231 hif_debug("NAPI id %d created for pipe %d", napii->id, i); in hif_napi_create()
246 for (i = 0; i < hif->ce_count; i++) { in hif_napi_create()
247 napii = napid->napis[i]; in hif_napi_create()
248 napid->napis[i] = NULL; in hif_napi_create()
263 int i; in hif_napi_rx_offld_flush_cb_register() local
276 for (i = 0; i < scn->ce_count; i++) { in hif_napi_rx_offld_flush_cb_register()
277 ce_state = scn->ce_id_to_state[i]; in hif_napi_rx_offld_flush_cb_register()
279 napii = napid->napis[i]; in hif_napi_rx_offld_flush_cb_register()
282 i, napii->id, napii->offld_flush_cb); in hif_napi_rx_offld_flush_cb_register()
289 int i; in hif_napi_rx_offld_flush_cb_deregister() local
302 for (i = 0; i < scn->ce_count; i++) { in hif_napi_rx_offld_flush_cb_deregister()
303 ce_state = scn->ce_id_to_state[i]; in hif_napi_rx_offld_flush_cb_deregister()
305 napii = napid->napis[i]; in hif_napi_rx_offld_flush_cb_deregister()
307 i, napii->id, napii->offld_flush_cb); in hif_napi_rx_offld_flush_cb_deregister()
503 int i; in hif_napi_event() local
665 for (i = 0; i < CE_COUNT_MAX; i++) { in hif_napi_event()
666 struct qca_napi_info *napii = napid->napis[i]; in hif_napi_event()
670 __func__, i); in hif_napi_event()
676 for (i = 0; i < CE_COUNT_MAX; i++) { in hif_napi_event()
677 struct qca_napi_info *napii = napid->napis[i]; in hif_napi_event()
681 __func__, i); in hif_napi_event()
813 int i; in hif_print_napi_latency_stats() local
839 for (i = 0; i < HIF_SCHED_LATENCY_BUCKETS; i++) in hif_print_napi_latency_stats()
843 time_str[i], in hif_print_napi_latency_stats()
844 napii->sched_latency_stats[i]); in hif_print_napi_latency_stats()
925 int i; in hif_get_poll_times_hist_str() local
928 for (i = 0; i < QCA_NAPI_NUM_BUCKETS; i++) in hif_get_poll_times_hist_str()
930 "%u|", stats->poll_time_buckets[i]); in hif_get_poll_times_hist_str()
1386 int i; local
1398 for (i = 0; i < NR_CPUS; i++) {
1400 i,
1401 cpu[i].state, cpu[i].core_id, cpu[i].cluster_id,
1402 cpu[i].core_mask.bits[0],
1403 cpu[i].thread_mask.bits[0],
1404 cpu[i].max_freq, cpu[i].napis,
1405 cpu[i].cluster_nxt);
1449 int i; local
1465 for (i = 0; i < NR_CPUS; i++) {
1466 cl = cpus[i].cluster_id;
1468 i, cl);
1474 if (cpumask_weight(&(cpus[i].core_mask)) == 0) {
1485 curclhead = i; /* row */
1486 clfrq = cpus[i].max_freq;
1494 if (cpus[i].max_freq != clfrq)
1496 cpus[i].max_freq, clfrq);
1508 cpus[prev].cluster_nxt = i;
1510 prev = i;
1648 static inline void record_sibling_cpumask(struct qca_napi_cpu *cpus, int i) argument
1650 cpumask_copy(&(cpus[i].thread_mask),
1651 topology_sibling_cpumask(i));
1654 static inline void record_sibling_cpumask(struct qca_napi_cpu *cpus, int i) argument
1676 int i; local
1689 for_each_possible_cpu(i) {
1690 cpus[i].state = ((cpumask_test_cpu(i, cpu_online_mask)
1693 cpus[i].core_id = topology_core_id(i);
1694 cpus[i].cluster_id = topology_physical_package_id(i);
1695 cpumask_copy(&(cpus[i].core_mask),
1696 topology_core_cpumask(i));
1697 record_sibling_cpumask(cpus, i);
1698 cpus[i].max_freq = cpufreq_quick_get_max(i);
1699 cpus[i].napis = 0x0;
1700 cpus[i].cluster_nxt = -1; /* invalid */
1819 int head, i; local
1831 head = i = napid->lilcl_head;
1833 while (i >= 0) {
1834 if (napid->napi_cpu[i].state == QCA_NAPI_CPU_UP) {
1835 destidx = i;
1838 i = napid->napi_cpu[i].cluster_nxt;
1843 head = i = napid->bigcl_head;
1850 head = i = napid->bigcl_head;
1852 while (i >= 0) {
1853 if ((napid->napi_cpu[i].state == QCA_NAPI_CPU_UP) &&
1854 (hweight32(napid->napi_cpu[i].napis) <= smallest)) {
1855 smallest = napid->napi_cpu[i].napis;
1856 smallidx = i;
1858 i = napid->napi_cpu[i].cluster_nxt;
1867 head = i = napid->lilcl_head;
1897 int i, dind; local
1920 for (i = 0; i < NR_CPUS; i++)
1921 cpup[i].napis = 0;
1923 for (i = 0; i < CE_COUNT_MAX; i++)
1924 if (napis & (1 << i)) {
1929 i, dind);
1930 rc = hncm_migrate_to(napid, i, dind);
1932 NAPI_DEBUG("No dest for NAPI ce%d", i);
1964 int i; local
1967 for (i = 0; i < CE_COUNT_MAX; i++) {
1969 if (!(napid->ce_map & (0x01 << i)))
1973 napii = napid->napis[i];
1983 hif_debug("dl_flag %d CE %d", dl_flag, i);