j 56 arch/alpha/boot/tools/objstrip.c int fd, ofd, i, j, verbose = 0, primary = 0; j 69 arch/alpha/boot/tools/objstrip.c for (j = 1; argv[i][j]; ++j) { j 70 arch/alpha/boot/tools/objstrip.c switch (argv[i][j]) { j 71 arch/alpha/kernel/irq.c int j; j 75 arch/alpha/kernel/irq.c for_each_online_cpu(j) j 76 arch/alpha/kernel/irq.c seq_printf(p, "%10lu ", cpu_data[j].ipi_count); j 80 arch/alpha/kernel/irq.c for_each_online_cpu(j) j 81 arch/alpha/kernel/irq.c seq_printf(p, "%10lu ", per_cpu(irq_pmi_count, j)); j 133 arch/alpha/kernel/irq_i8259.c int j = *(vuip) IACK_SC; j 134 arch/alpha/kernel/irq_i8259.c j &= 0xff; j 135 arch/alpha/kernel/irq_i8259.c handle_irq(j); j 162 arch/alpha/kernel/irq_i8259.c int j = ffz(~pic); j 164 arch/alpha/kernel/irq_i8259.c handle_irq(j); j 912 arch/alpha/kernel/pci_iommu.c long i, j; j 920 arch/alpha/kernel/pci_iommu.c for(j = pg_start; j < pg_start + pg_count; j++) { j 921 arch/alpha/kernel/pci_iommu.c if (ptes[j] != IOMMU_RESERVED_PTE) { j 927 arch/alpha/kernel/pci_iommu.c for(i = 0, j = pg_start; i < pg_count; i++, j++) j 928 arch/alpha/kernel/pci_iommu.c ptes[j] = mk_iommu_pte(page_to_phys(pages[i])); j 393 arch/alpha/kernel/perf_event.c int j; j 399 arch/alpha/kernel/perf_event.c for (j = 0; j < cpuc->n_events; j++) { j 400 arch/alpha/kernel/perf_event.c struct perf_event *pe = cpuc->event[j]; j 402 arch/alpha/kernel/perf_event.c if (cpuc->current_idx[j] != PMC_NO_INDEX && j 403 arch/alpha/kernel/perf_event.c cpuc->current_idx[j] != pe->hw.idx) { j 404 arch/alpha/kernel/perf_event.c alpha_perf_event_update(pe, &pe->hw, cpuc->current_idx[j], 0); j 405 arch/alpha/kernel/perf_event.c cpuc->current_idx[j] = PMC_NO_INDEX; j 411 arch/alpha/kernel/perf_event.c for (j = 0; j < cpuc->n_events; j++) { j 412 arch/alpha/kernel/perf_event.c struct perf_event *pe = cpuc->event[j]; j 416 arch/alpha/kernel/perf_event.c if (cpuc->current_idx[j] == PMC_NO_INDEX) { j 418 arch/alpha/kernel/perf_event.c cpuc->current_idx[j] = idx; j 422 arch/alpha/kernel/perf_event.c cpuc->idx_mask |= (1<<cpuc->current_idx[j]); j 490 arch/alpha/kernel/perf_event.c int j; j 495 arch/alpha/kernel/perf_event.c for (j = 0; j < cpuc->n_events; j++) { j 496 arch/alpha/kernel/perf_event.c if (event == cpuc->event[j]) { j 497 arch/alpha/kernel/perf_event.c int idx = cpuc->current_idx[j]; j 502 arch/alpha/kernel/perf_event.c while (++j < cpuc->n_events) { j 503 arch/alpha/kernel/perf_event.c cpuc->event[j - 1] = cpuc->event[j]; j 504 arch/alpha/kernel/perf_event.c cpuc->evtype[j - 1] = cpuc->evtype[j]; j 505 arch/alpha/kernel/perf_event.c cpuc->current_idx[j - 1] = j 506 arch/alpha/kernel/perf_event.c cpuc->current_idx[j]; j 811 arch/alpha/kernel/perf_event.c int idx, j; j 834 arch/alpha/kernel/perf_event.c for (j = 0; j < cpuc->n_events; j++) { j 835 arch/alpha/kernel/perf_event.c if (cpuc->current_idx[j] == idx) j 839 arch/alpha/kernel/perf_event.c if (unlikely(j == cpuc->n_events)) { j 845 arch/alpha/kernel/perf_event.c event = cpuc->event[j]; j 195 arch/alpha/mm/init.c unsigned long i, j; j 213 arch/alpha/mm/init.c for (j = 0; j < crb->map[i].count; ++j) { j 503 arch/arc/kernel/perf_event.c static void arc_pmu_add_raw_event_attr(int j, char *str) j 505 arch/arc/kernel/perf_event.c memmove(arc_pmu->raw_entry[j].name, str, ARCPMU_EVENT_NAME_LEN - 1); j 506 arch/arc/kernel/perf_event.c arc_pmu->attr[j].attr.attr.name = arc_pmu->raw_entry[j].name; j 507 arch/arc/kernel/perf_event.c arc_pmu->attr[j].attr.attr.mode = VERIFY_OCTAL_PERMISSIONS(0444); j 508 arch/arc/kernel/perf_event.c arc_pmu->attr[j].attr.show = arc_pmu_events_sysfs_show; j 509 arch/arc/kernel/perf_event.c arc_pmu->attr[j].id = j; j 510 arch/arc/kernel/perf_event.c arc_pmu->attrs[j] = &(arc_pmu->attr[j].attr.attr); j 547 arch/arc/kernel/perf_event.c static void arc_pmu_map_hw_event(int j, char *str) j 555 arch/arc/kernel/perf_event.c i, str, j); j 556 arch/arc/kernel/perf_event.c arc_pmu->ev_hw_idx[i] = j; j 422 arch/arm/common/bL_switcher.c int i, j, cluster_0, gic_id, ret; j 461 arch/arm/common/bL_switcher.c for_each_cpu(j, &available_cpus) { j 462 arch/arm/common/bL_switcher.c cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(j), 1); j 470 arch/arm/common/bL_switcher.c match = j; j 426 arch/arm/common/mcpm_entry.c unsigned int i, j, mpidr, this_cluster; j 438 arch/arm/common/mcpm_entry.c for (j = 0; j < MAX_CPUS_PER_CLUSTER; j++) j 439 arch/arm/common/mcpm_entry.c mcpm_sync.clusters[i].cpus[j].cpu = CPU_DOWN; j 81 arch/arm/crypto/aes-ce-glue.c int i, j; j 126 arch/arm/crypto/aes-ce-glue.c j = num_rounds(ctx); j 128 arch/arm/crypto/aes-ce-glue.c key_dec[0] = key_enc[j]; j 129 arch/arm/crypto/aes-ce-glue.c for (i = 1, j--; j > 0; i++, j--) j 130 arch/arm/crypto/aes-ce-glue.c ce_aes_invert(key_dec + i, key_enc + j); j 40 arch/arm/include/asm/user.h unsigned int j:1; j 76 arch/arm/kernel/devtree.c u32 i, j, cpuidx = 1; j 125 arch/arm/kernel/devtree.c for (j = 0; j < cpuidx; j++) j 126 arch/arm/kernel/devtree.c if (WARN(tmp_map[j] == hwid, j 1241 arch/arm/kernel/setup.c int i, j; j 1267 arch/arm/kernel/setup.c for (j = 0; hwcap_str[j]; j++) j 1268 arch/arm/kernel/setup.c if (elf_hwcap & (1 << j)) j 1269 arch/arm/kernel/setup.c seq_printf(m, "%s ", hwcap_str[j]); j 1271 arch/arm/kernel/setup.c for (j = 0; hwcap2_str[j]; j++) j 1272 arch/arm/kernel/setup.c if (elf_hwcap2 & (1 << j)) j 1273 arch/arm/kernel/setup.c seq_printf(m, "%s ", hwcap2_str[j]); j 423 arch/arm/mach-footbridge/netwinder-hw.c int i, j; j 435 arch/arm/mach-footbridge/netwinder-hw.c for (j = 0; j < 8; j++) { j 443 arch/arm/mach-footbridge/netwinder-hw.c si[i] |= bit << j; j 97 arch/arm/mach-lpc32xx/serial.c int i, j; j 118 arch/arm/mach-lpc32xx/serial.c j = LPC32XX_SUART_FIFO_SIZE; j 119 arch/arm/mach-lpc32xx/serial.c while (j--) j 132 arch/arm/mach-lpc32xx/serial.c j = LPC32XX_SUART_FIFO_SIZE; j 133 arch/arm/mach-lpc32xx/serial.c while (j--) j 196 arch/arm/mach-omap1/irq.c int i, j, irq_base; j 260 arch/arm/mach-omap1/irq.c for (j = i * 32; j < (i + 1) * 32; j++) { j 263 arch/arm/mach-omap1/irq.c irq_trigger = irq_banks[i].trigger_map >> IRQ_BIT(j); j 264 arch/arm/mach-omap1/irq.c omap_irq_set_cfg(j, 0, 0, irq_trigger); j 265 arch/arm/mach-omap1/irq.c irq_clear_status_flags(j, IRQ_NOREQUEST); j 149 arch/arm/mach-omap2/id.c int i, j; j 183 arch/arm/mach-omap2/id.c for (j = i; j < ARRAY_SIZE(omap_ids); j++) { j 184 arch/arm/mach-omap2/id.c if (dev_type == omap_ids[j].dev) j 188 arch/arm/mach-omap2/id.c if (j == ARRAY_SIZE(omap_ids)) { j 191 arch/arm/mach-omap2/id.c j = i; j 36 arch/arm/mach-omap2/sr_device.c int i, j, count = 0; j 48 arch/arm/mach-omap2/sr_device.c for (i = 0, j = 0; i < count; i++) { j 77 arch/arm/mach-omap2/sr_device.c nvalue_table[j].nvalue = v; j 78 arch/arm/mach-omap2/sr_device.c nvalue_table[j].efuse_offs = volt_data[i].sr_efuse_offs; j 79 arch/arm/mach-omap2/sr_device.c nvalue_table[j].errminlimit = volt_data[i].sr_errminlimit; j 80 arch/arm/mach-omap2/sr_device.c nvalue_table[j].volt_nominal = volt_data[i].volt_nominal; j 82 arch/arm/mach-omap2/sr_device.c j++; j 86 arch/arm/mach-omap2/sr_device.c sr_data->nvalue_count = j; j 464 arch/arm/mach-pxa/sharpsl_pm.c int i, j, k, temp, sum = 0; j 468 arch/arm/mach-pxa/sharpsl_pm.c j = 0; j 472 arch/arm/mach-pxa/sharpsl_pm.c j = i; j 487 arch/arm/mach-pxa/sharpsl_pm.c if (i != j && i != k) j 384 arch/arm/mach-s3c64xx/mach-crag6410-module.c int ret, i, j, id, rev; j 407 arch/arm/mach-s3c64xx/mach-crag6410-module.c for (j = 0; j < gf_mods[i].num_i2c_devs; j++) { j 409 arch/arm/mach-s3c64xx/mach-crag6410-module.c &(gf_mods[i].i2c_devs[j]))) j 1011 arch/arm/mm/dma-mapping.c int i, j; j 1025 arch/arm/mm/dma-mapping.c for_each_sg(sg, s, i, j) j 1281 arch/arm/mm/dma-mapping.c int j, order; j 1308 arch/arm/mm/dma-mapping.c j = 1 << order; j 1309 arch/arm/mm/dma-mapping.c while (--j) j 1310 arch/arm/mm/dma-mapping.c pages[i + j] = pages[i] + j; j 1367 arch/arm/mm/dma-mapping.c unsigned int len, j; j 1369 arch/arm/mm/dma-mapping.c for (j = i + 1; j < count; j++, next_pfn++) j 1370 arch/arm/mm/dma-mapping.c if (page_to_pfn(pages[j]) != next_pfn) j 1373 arch/arm/mm/dma-mapping.c len = (j - i) << PAGE_SHIFT; j 1379 arch/arm/mm/dma-mapping.c i = j; j 405 arch/arm/mm/dump.c unsigned i, j; j 409 arch/arm/mm/dump.c for (j = 0; j < pg_level[i].num; j++) { j 410 arch/arm/mm/dump.c pg_level[i].mask |= pg_level[i].bits[j].mask; j 411 arch/arm/mm/dump.c if (pg_level[i].bits[j].ro_bit) j 412 arch/arm/mm/dump.c pg_level[i].ro_bit = &pg_level[i].bits[j]; j 413 arch/arm/mm/dump.c if (pg_level[i].bits[j].nx_bit) j 414 arch/arm/mm/dump.c pg_level[i].nx_bit = &pg_level[i].bits[j]; j 86 arch/arm64/crypto/aes-ce-glue.c int i, j; j 130 arch/arm64/crypto/aes-ce-glue.c j = num_rounds(ctx); j 132 arch/arm64/crypto/aes-ce-glue.c key_dec[0] = key_enc[j]; j 133 arch/arm64/crypto/aes-ce-glue.c for (i = 1, j--; j > 0; i++, j--) j 134 arch/arm64/crypto/aes-ce-glue.c __aes_ce_invert(key_dec + i, key_enc + j); j 129 arch/arm64/kernel/cpuinfo.c int i, j; j 159 arch/arm64/kernel/cpuinfo.c for (j = 0; compat_hwcap_str[j]; j++) j 160 arch/arm64/kernel/cpuinfo.c if (compat_elf_hwcap & (1 << j)) j 161 arch/arm64/kernel/cpuinfo.c seq_printf(m, " %s", compat_hwcap_str[j]); j 163 arch/arm64/kernel/cpuinfo.c for (j = 0; compat_hwcap2_str[j]; j++) j 164 arch/arm64/kernel/cpuinfo.c if (compat_elf_hwcap2 & (1 << j)) j 165 arch/arm64/kernel/cpuinfo.c seq_printf(m, " %s", compat_hwcap2_str[j]); j 168 arch/arm64/kernel/cpuinfo.c for (j = 0; hwcap_str[j]; j++) j 169 arch/arm64/kernel/cpuinfo.c if (cpu_have_feature(j)) j 170 arch/arm64/kernel/cpuinfo.c seq_printf(m, " %s", hwcap_str[j]); j 79 arch/arm64/kernel/module-plts.c int j = i - 1; j 92 arch/arm64/kernel/module-plts.c if (j >= 0 && plt_entries_equal(plt + i, plt + j)) j 93 arch/arm64/kernel/module-plts.c return (u64)&plt[j]; j 95 arch/arm64/kernel/module-plts.c pltsec->plt_num_entries += i - j; j 251 arch/arm64/kernel/setup.c u64 i, j; j 260 arch/arm64/kernel/setup.c for_each_reserved_mem_region(j, &r_start, &r_end) { j 378 arch/arm64/mm/dump.c unsigned i, j; j 382 arch/arm64/mm/dump.c for (j = 0; j < pg_level[i].num; j++) j 383 arch/arm64/mm/dump.c pg_level[i].mask |= pg_level[i].bits[j].mask; j 276 arch/arm64/mm/numa.c int i, j; j 291 arch/arm64/mm/numa.c for (j = 0; j < numa_distance_cnt; j++) j 292 arch/arm64/mm/numa.c numa_distance[i * numa_distance_cnt + j] = i == j ? j 328 arch/c6x/platforms/dscr.c int f, i, j, err; j 337 arch/c6x/platforms/dscr.c for (j = (f * 5) + 1, i = 24; i >= 0; i -= 8, j++) j 338 arch/c6x/platforms/dscr.c if (vals[j] && vals[j] <= 6) j 339 arch/c6x/platforms/dscr.c c6x_fuse_mac[vals[j] - 1] = fuse >> i; j 471 arch/c6x/platforms/dscr.c int i, j, size; j 493 arch/c6x/platforms/dscr.c for (j = r->start_id; j 494 arch/c6x/platforms/dscr.c j < (r->start_id + r->num_ids); j 495 arch/c6x/platforms/dscr.c j++) j 496 arch/c6x/platforms/dscr.c dscr.devstate_info[j].ctl = r; j 527 arch/c6x/platforms/dscr.c int i, j, size; j 547 arch/c6x/platforms/dscr.c for (j = r->start_id; j 548 arch/c6x/platforms/dscr.c j < (r->start_id + r->num_ids); j 549 arch/c6x/platforms/dscr.c j++) j 550 arch/c6x/platforms/dscr.c dscr.devstate_info[j].stat = r; j 128 arch/csky/mm/highmem.c int i, j, k; j 133 arch/csky/mm/highmem.c j = __pud_offset(vaddr); j 139 arch/csky/mm/highmem.c for ( ; (j < PTRS_PER_PUD) && (vaddr != end); pud++, j++) { j 156 arch/csky/mm/highmem.c j = 0; j 445 arch/ia64/kernel/acpi.c int i, j, node_from, node_to; j 475 arch/ia64/kernel/acpi.c for (j = 0; j < num_node_memblks; j++) j 476 arch/ia64/kernel/acpi.c if (node_memblk[j].nid == i) j 477 arch/ia64/kernel/acpi.c node_memblk[j].bank = bank++; j 491 arch/ia64/kernel/acpi.c for (j = 0; j < MAX_NUMNODES; j++) j 492 arch/ia64/kernel/acpi.c slit_distance(i, j) = i == j ? j 502 arch/ia64/kernel/acpi.c for (j = 0; j < slit_table->locality_count; j++) { j 503 arch/ia64/kernel/acpi.c if (!pxm_bit_test(j)) j 505 arch/ia64/kernel/acpi.c node_to = pxm_to_node(j); j 507 arch/ia64/kernel/acpi.c slit_table->entry[i * slit_table->locality_count + j]; j 514 arch/ia64/kernel/acpi.c for_each_online_node(j) j 515 arch/ia64/kernel/acpi.c printk("%03d ", node_distance(i, j)); j 129 arch/ia64/kernel/palinfo.c int i,j; j 132 arch/ia64/kernel/palinfo.c for (i=0, j=0; i < 64; i++ , j=i/10) { j 134 arch/ia64/kernel/palinfo.c seq_printf(m, "%d%s ", 1 << (i-j*10), units[j]); j 216 arch/ia64/kernel/palinfo.c int j, k; j 228 arch/ia64/kernel/palinfo.c for (j=2; j >0 ; j--) { j 230 arch/ia64/kernel/palinfo.c if ((status=ia64_pal_cache_config_info(i,j, &cci)) != 0) j 237 arch/ia64/kernel/palinfo.c cache_types[j+cci.pcci_unified], i+1, j 252 arch/ia64/kernel/palinfo.c if (j == 1) j 299 arch/ia64/kernel/palinfo.c int i, j; j 379 arch/ia64/kernel/palinfo.c for (j=2; j>0 ; j--) { j 383 arch/ia64/kernel/palinfo.c if ((status=ia64_pal_vm_info(i,j, &tc_info, &tc_pages)) != 0) j 392 arch/ia64/kernel/palinfo.c cache_types[j+tc_info.tc_unified], i+1, j 718 arch/ia64/kernel/palinfo.c unsigned long i, j; j 760 arch/ia64/kernel/palinfo.c for (j=0; j < max[i]; j++) { j 762 arch/ia64/kernel/palinfo.c status = ia64_pal_tr_read(j, i, tr_buffer, &tr_valid); j 765 arch/ia64/kernel/palinfo.c i, j, status); j 784 arch/ia64/kernel/palinfo.c "ID"[i], j, j 928 arch/ia64/kernel/palinfo.c int j; j 938 arch/ia64/kernel/palinfo.c for (j=0; j < NR_PALINFO_ENTRIES; j++) { j 939 arch/ia64/kernel/palinfo.c f.func_id = j; j 940 arch/ia64/kernel/palinfo.c proc_create_single_data(palinfo_entries[j].name, 0, cpu_dir, j 5207 arch/ia64/kernel/perfmon.c int j, k, ret = 0; j 5236 arch/ia64/kernel/perfmon.c for(j=0, k=0; smpl_pmds; j++, smpl_pmds >>=1) { j 5238 arch/ia64/kernel/perfmon.c ovfl_arg->smpl_pmds_values[k++] = PMD_IS_COUNTING(j) ? pfm_read_soft_counter(ctx, j) : ia64_get_pmd(j); j 5239 arch/ia64/kernel/perfmon.c DPRINT_ovfl(("smpl_pmd[%d]=pmd%u=0x%lx\n", k-1, j, ovfl_arg->smpl_pmds_values[k-1])); j 567 arch/ia64/kernel/salinfo.c int j = ARRAY_SIZE(data->data_saved) - 1; j 569 arch/ia64/kernel/salinfo.c for (data_saved = data->data_saved + j; j >= 0; j 570 arch/ia64/kernel/salinfo.c --j, --data_saved) { j 572 arch/ia64/kernel/salinfo.c shift1_data_saved(data, j); j 204 arch/ia64/kernel/setup.c int j; j 208 arch/ia64/kernel/setup.c for (j = 0; j < max; ++j) { j 209 arch/ia64/kernel/setup.c if (rsvd_region[j].start > rsvd_region[j+1].start) { j 211 arch/ia64/kernel/setup.c tmp = rsvd_region[j]; j 212 arch/ia64/kernel/setup.c rsvd_region[j] = rsvd_region[j + 1]; j 213 arch/ia64/kernel/setup.c rsvd_region[j + 1] = tmp; j 839 arch/ia64/kernel/smpboot.c int i, j; j 842 arch/ia64/kernel/smpboot.c for_each_present_cpu(j) { j 843 arch/ia64/kernel/smpboot.c if (j == i) j 845 arch/ia64/kernel/smpboot.c if ((cpu_data(j)->socket_id == cpu_data(i)->socket_id)) { j 846 arch/ia64/kernel/smpboot.c if (cpu_data(j)->core_id == cpu_data(i)->core_id) j 143 arch/ia64/kernel/topology.c unsigned int j; j 159 arch/ia64/kernel/topology.c for_each_possible_cpu(j) j 160 arch/ia64/kernel/topology.c if (cpu_data(cpu)->socket_id == cpu_data(j)->socket_id j 161 arch/ia64/kernel/topology.c && cpu_data(j)->core_id == csi.log1_cid j 162 arch/ia64/kernel/topology.c && cpu_data(j)->thread_id == csi.log1_tid) j 163 arch/ia64/kernel/topology.c cpumask_set_cpu(j, &this_leaf->shared_cpu_map); j 308 arch/ia64/kernel/topology.c int j; j 324 arch/ia64/kernel/topology.c for (j=2; j >0 ; j--) { j 325 arch/ia64/kernel/topology.c if ((status=ia64_pal_cache_config_info(i,j, &cci)) != j 331 arch/ia64/kernel/topology.c this_cache[num_cache_leaves].type = j; j 351 arch/ia64/kernel/topology.c unsigned long i, j; j 378 arch/ia64/kernel/topology.c for (j = 0; j < i; j++) { j 379 arch/ia64/kernel/topology.c kobject_put(&(LEAF_KOBJECT_PTR(cpu,j)->kobj)); j 291 arch/ia64/mm/tlb.c unsigned long i, j, flags, count0, count1, stride0, stride1, addr; j 301 arch/ia64/mm/tlb.c for (j = 0; j < count1; ++j) { j 417 arch/m68k/amiga/config.c int i, j; j 429 arch/m68k/amiga/config.c for (j = i; j < m68k_num_memory; j++) j 430 arch/m68k/amiga/config.c m68k_memory[j] = m68k_memory[j+1]; j 157 arch/m68k/q40/config.c unsigned i, j; j 159 arch/m68k/q40/config.c j = 0; j 160 arch/m68k/q40/config.c while ((i = serports[j++])) j 27 arch/m68k/sun3/dvma.c unsigned long j; j 30 arch/m68k/sun3/dvma.c j = *(volatile unsigned long *)kaddr; j 31 arch/m68k/sun3/dvma.c *(volatile unsigned long *)kaddr = j; j 131 arch/m68k/sun3/mmu_emu.c int i,j; j 165 arch/m68k/sun3/mmu_emu.c j = 0; j 198 arch/m68k/sun3/mmu_emu.c for(j = 1; j < CONTEXTS_NUM; j++) j 199 arch/m68k/sun3/mmu_emu.c (*(romvec->pv_setctxt))(j, (void *)seg, i); j 64 arch/m68k/sun3/sun3dvma.c int j = 0; j 72 arch/m68k/sun3/sun3dvma.c j++; j 78 arch/m68k/sun3/sun3dvma.c pr_info("%d entries in use total\n", j); j 400 arch/mips/alchemy/common/clock.c int j; j 411 arch/mips/alchemy/common/clock.c for (j = 0; j < 7; j++) { j 412 arch/mips/alchemy/common/clock.c pc = clk_hw_get_parent_by_index(hw, j); j 451 arch/mips/alchemy/common/clock.c for (j = (maxdiv == 4) ? 1 : scale; j <= maxdiv; j += scale) { j 452 arch/mips/alchemy/common/clock.c tpr = req->rate * j; j 32 arch/mips/alchemy/devboards/pm.c int i, j, hasint; j 37 arch/mips/alchemy/devboards/pm.c j = (hasint) ? BCSR_MASKSET : BCSR_SYSTEM; j 39 arch/mips/alchemy/devboards/pm.c for (i = BCSR_STATUS; i <= j; i++) j 101 arch/mips/ar7/clock.c int i, j, k, freq, res = target; j 103 arch/mips/ar7/clock.c for (j = 1; j <= 32; j++) j 105 arch/mips/ar7/clock.c freq = abs(base / j * i / k - target); j 109 arch/mips/ar7/clock.c *prediv = j; j 321 arch/mips/boot/tools/relocs.c int i, j; j 341 arch/mips/boot/tools/relocs.c for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Sym); j++) { j 342 arch/mips/boot/tools/relocs.c Elf_Sym *sym = &sec->symtab[j]; j 355 arch/mips/boot/tools/relocs.c int i, j; j 385 arch/mips/boot/tools/relocs.c for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Rel); j++) { j 386 arch/mips/boot/tools/relocs.c Elf_Rel *rel = &sec->reltab[j]; j 477 arch/mips/boot/tools/relocs.c int j; j 490 arch/mips/boot/tools/relocs.c for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Rel); j++) { j 491 arch/mips/boot/tools/relocs.c Elf_Rel *rel = &sec->reltab[j]; j 136 arch/mips/include/asm/mach-cavium-octeon/kernel-entry-init.h j smp_bootstrap j 19 arch/mips/include/asm/mach-paravirt/kernel-entry-init.h j smp_bootstrap j 50 arch/mips/kernel/cevt-r4k.c unsigned int cnt, i, j, k, l; j 59 arch/mips/kernel/cevt-r4k.c for (j = 0; j < 5; ++j) { j 69 arch/mips/kernel/cevt-r4k.c for (k = 0; k < j; ++k) { j 72 arch/mips/kernel/cevt-r4k.c j, ARRAY_SIZE(buf1) - 1); j 640 arch/mips/kernel/ptrace.c int i, j, start, start_pad, err; j 655 arch/mips/kernel/ptrace.c for (j = 0; j < (pad_sz / sizeof(fill)); j++) { j 52 arch/mips/kvm/stats.c int i, j; j 56 arch/mips/kvm/stats.c for (j = 0; j < N_MIPS_COPROC_SEL; j++) { j 57 arch/mips/kvm/stats.c if (vcpu->arch.cop0->stat[i][j]) j 58 arch/mips/kvm/stats.c kvm_info("%s[%d]: %lu\n", kvm_cop0_str[i], j, j 59 arch/mips/kvm/stats.c vcpu->arch.cop0->stat[i][j]); j 570 arch/mips/kvm/trap_emul.c int i, j, k; j 580 arch/mips/kvm/trap_emul.c for (j = 0; j < PTRS_PER_PUD; j++) { j 581 arch/mips/kvm/trap_emul.c if (pud_none(pud[j])) j 584 arch/mips/kvm/trap_emul.c pud_va = pgd_va | ((unsigned long)j << PUD_SHIFT); j 587 arch/mips/kvm/trap_emul.c pmd = pmd_offset(pud + j, 0); j 304 arch/mips/mm/cerr-sb1.c int i, j; j 306 arch/mips/mm/cerr-sb1.c for (j=0; j<4; j++) { j 238 arch/mips/mm/init.c int i, j, k; j 243 arch/mips/mm/init.c j = __pud_offset(vaddr); j 249 arch/mips/mm/init.c for ( ; (j < PTRS_PER_PUD) && (vaddr < end); pud++, j++) { j 267 arch/mips/mm/init.c j = 0; j 1123 arch/mips/net/ebpf_jit.c emit_instr(ctx, j, target); j 1147 arch/mips/net/ebpf_jit.c emit_instr(ctx, j, target); j 1292 arch/mips/net/ebpf_jit.c emit_instr(ctx, j, target); j 218 arch/mips/netlogic/common/smp.c int threadmode, i, j; j 244 arch/mips/netlogic/common/smp.c for (j = 0; j < NLM_THREADS_PER_CORE; j++) j 245 arch/mips/netlogic/common/smp.c if (cpumask_test_cpu(i + j, wakeup_mask)) j 246 arch/mips/netlogic/common/smp.c core_thr_mask |= (1 << j); j 122 arch/mips/netlogic/xlr/fmn-config.c int i, j, num_core, n, credits_per_cpu; j 139 arch/mips/netlogic/xlr/fmn-config.c for (j = 0; j < num_core; j++) j 140 arch/mips/netlogic/xlr/fmn-config.c cpu[j].credit_config[i] = credits_per_cpu; j 146 arch/mips/netlogic/xlr/fmn-config.c for (j = 0; (j < num_core) && (credits_per_cpu >= 4); j++) { j 147 arch/mips/netlogic/xlr/fmn-config.c cpu[j].credit_config[i] += 4; j 154 arch/mips/netlogic/xlr/fmn-config.c for (j = 0; j < FMN_CORE_NBUCKETS; j++) j 155 arch/mips/netlogic/xlr/fmn-config.c dev_info->credit_config[(i * 8) + j] = cpu_credits; j 165 arch/mips/netlogic/xlr/fmn-config.c int i, j; j 171 arch/mips/netlogic/xlr/fmn-config.c for (j = cpu[i].start_stn_id; j < cpu[i].end_stn_id; j++) j 172 arch/mips/netlogic/xlr/fmn-config.c xlr_board_fmn_config.bucket_size[j] = 32; j 54 arch/mips/netlogic/xlr/wakeup.c unsigned int i, j, boot_cpu; j 73 arch/mips/netlogic/xlr/wakeup.c for (j = 1000000; j > 0; j--) { j 78 arch/mips/netlogic/xlr/wakeup.c if (j != 0) j 53 arch/mips/sgi-ip22/ip22-mc.c int i, j, found, cnt = 0; j 90 arch/mips/sgi-ip22/ip22-mc.c for (j = 0; j < ARRAY_SIZE(space) && !found; j++) j 91 arch/mips/sgi-ip22/ip22-mc.c if (space[j].addr + space[j].size == bank[i].addr) { j 92 arch/mips/sgi-ip22/ip22-mc.c space[j].size += bank[i].size; j 20 arch/mips/sgi-ip27/ip27-klconfig.c int index, j; j 25 arch/mips/sgi-ip27/ip27-klconfig.c for (j = 0; j < KLCF_NUM_COMPS(brd); j++) j 26 arch/mips/sgi-ip27/ip27-klconfig.c if (kli == KLCF_COMP(brd, j)) j 28 arch/mips/sgi-ip27/ip27-klconfig.c index = j; j 465 arch/mips/txx9/rbtx4939/setup.c int i, j; j 479 arch/mips/txx9/rbtx4939/setup.c for (j = 0; j < 3; j++) j 480 arch/mips/txx9/rbtx4939/setup.c buf[j] = le16_to_cpup((u16 *)(area + j * 2)); j 65 arch/mips/vdso/genvdso.h uint16_t sh_count, sh_entsize, st_count, st_entsize, i, j; j 109 arch/mips/vdso/genvdso.h for (j = 0; j < st_count; j++) { j 110 arch/mips/vdso/genvdso.h sym = symtab + (j * st_entsize); j 123 arch/mips/vdso/genvdso.h if (j == st_count) { j 71 arch/nds32/mm/init.c int j; j 88 arch/nds32/mm/init.c for (j = 0; p < e && j < PTRS_PER_PTE; j 89 arch/nds32/mm/init.c v += PAGE_SIZE, p += PAGE_SIZE, j++, pte++) { j 92 arch/openrisc/mm/init.c int j; j 110 arch/openrisc/mm/init.c for (j = 0; p < e && j < PTRS_PER_PTE; j 111 arch/openrisc/mm/init.c v += PAGE_SIZE, p += PAGE_SIZE, j++, pte++) { j 153 arch/parisc/kernel/irq.c int j; j 157 arch/parisc/kernel/irq.c for_each_online_cpu(j) j 158 arch/parisc/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->kernel_stack_usage); j 162 arch/parisc/kernel/irq.c for_each_online_cpu(j) j 163 arch/parisc/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->irq_stack_usage); j 170 arch/parisc/kernel/irq.c for_each_online_cpu(j) j 171 arch/parisc/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->irq_resched_count); j 174 arch/parisc/kernel/irq.c for_each_online_cpu(j) j 175 arch/parisc/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->irq_call_count); j 180 arch/parisc/kernel/irq.c for_each_online_cpu(j) j 181 arch/parisc/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->irq_unaligned_count); j 184 arch/parisc/kernel/irq.c for_each_online_cpu(j) j 185 arch/parisc/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->irq_fpassist_count); j 188 arch/parisc/kernel/irq.c for_each_online_cpu(j) j 189 arch/parisc/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->irq_tlb_count); j 196 arch/parisc/kernel/irq.c int i = *(loff_t *) v, j; j 201 arch/parisc/kernel/irq.c for_each_online_cpu(j) j 202 arch/parisc/kernel/irq.c seq_printf(p, " CPU%d", j); j 220 arch/parisc/kernel/irq.c for_each_online_cpu(j) j 221 arch/parisc/kernel/irq.c seq_printf(p, "%10u ", kstat_irqs_cpu(i, j)); j 133 arch/parisc/mm/init.c int j; j 135 arch/parisc/mm/init.c for (j = i; j > 0; j--) { j 138 arch/parisc/mm/init.c if (pmem_ranges[j-1].start_pfn < j 139 arch/parisc/mm/init.c pmem_ranges[j].start_pfn) { j 143 arch/parisc/mm/init.c tmp = pmem_ranges[j-1]; j 144 arch/parisc/mm/init.c pmem_ranges[j-1] = pmem_ranges[j]; j 145 arch/parisc/mm/init.c pmem_ranges[j] = tmp; j 84 arch/powerpc/boot/planetcore.c int j; j 93 arch/powerpc/boot/planetcore.c for (j = 5; j >= 0; j--) { j 94 arch/powerpc/boot/planetcore.c addr[i][j] = this_dev_addr & 0xff; j 832 arch/powerpc/include/asm/kvm_host.h #define VCPU_VSX_FPR(vcpu, i, j) ((vcpu)->arch.fp.fpr[i][j]) j 307 arch/powerpc/kernel/btext.c int i,j; j 313 arch/powerpc/kernel/btext.c for(j=width; j; --j) j 325 arch/powerpc/kernel/btext.c int i,j; j 330 arch/powerpc/kernel/btext.c for(j = width; j > 0; j -= 8) { j 344 arch/powerpc/kernel/btext.c int i,j; j 349 arch/powerpc/kernel/btext.c for(j = width; j > 0; j -= 8) { j 366 arch/powerpc/kernel/btext.c int i,j; j 374 arch/powerpc/kernel/btext.c for(j=width; j; --j) j 382 arch/powerpc/kernel/btext.c for(j=width; j; --j) j 969 arch/powerpc/kernel/dt_cpu_ftrs.c int j; j 971 arch/powerpc/kernel/dt_cpu_ftrs.c for (j = 0; j < nr_dt_cpu_features; j++) { j 972 arch/powerpc/kernel/dt_cpu_ftrs.c struct dt_cpu_feature *d = &dt_cpu_features[j]; j 957 arch/powerpc/kernel/fadump.c int i, j; j 1000 arch/powerpc/kernel/fadump.c j = 0; j 1024 arch/powerpc/kernel/fadump.c if (j < (fw_dump.boot_mem_regs_cnt - 1)) { j 1025 arch/powerpc/kernel/fadump.c offset += fw_dump.boot_mem_sz[j]; j 1026 arch/powerpc/kernel/fadump.c raddr = fw_dump.boot_mem_addr[++j]; j 1163 arch/powerpc/kernel/fadump.c int i, j, idx; j 1172 arch/powerpc/kernel/fadump.c for (j = (i + 1); j < mrange_info->mem_range_cnt; j++) { j 1173 arch/powerpc/kernel/fadump.c if (mem_ranges[idx].base > mem_ranges[j].base) j 1174 arch/powerpc/kernel/fadump.c idx = j; j 29 arch/powerpc/kernel/io-workarounds.c int i, j; j 45 arch/powerpc/kernel/io-workarounds.c for (j = 0; j < 3; j++) { j 46 arch/powerpc/kernel/io-workarounds.c res = &phb->mem_resources[j]; j 502 arch/powerpc/kernel/irq.c int j; j 507 arch/powerpc/kernel/irq.c for_each_online_cpu(j) j 508 arch/powerpc/kernel/irq.c seq_printf(p, "%10u ", tau_interrupts(j)); j 514 arch/powerpc/kernel/irq.c for_each_online_cpu(j) j 515 arch/powerpc/kernel/irq.c seq_printf(p, "%10u ", per_cpu(irq_stat, j).timer_irqs_event); j 519 arch/powerpc/kernel/irq.c for_each_online_cpu(j) j 520 arch/powerpc/kernel/irq.c seq_printf(p, "%10u ", per_cpu(irq_stat, j).broadcast_irqs_event); j 524 arch/powerpc/kernel/irq.c for_each_online_cpu(j) j 525 arch/powerpc/kernel/irq.c seq_printf(p, "%10u ", per_cpu(irq_stat, j).timer_irqs_others); j 529 arch/powerpc/kernel/irq.c for_each_online_cpu(j) j 530 arch/powerpc/kernel/irq.c seq_printf(p, "%10u ", per_cpu(irq_stat, j).spurious_irqs); j 534 arch/powerpc/kernel/irq.c for_each_online_cpu(j) j 535 arch/powerpc/kernel/irq.c seq_printf(p, "%10u ", per_cpu(irq_stat, j).pmu_irqs); j 539 arch/powerpc/kernel/irq.c for_each_online_cpu(j) j 540 arch/powerpc/kernel/irq.c seq_printf(p, "%10u ", per_cpu(irq_stat, j).mce_exceptions); j 545 arch/powerpc/kernel/irq.c for_each_online_cpu(j) j 547 arch/powerpc/kernel/irq.c per_cpu(irq_stat, j).hmi_exceptions); j 552 arch/powerpc/kernel/irq.c for_each_online_cpu(j) j 553 arch/powerpc/kernel/irq.c seq_printf(p, "%10u ", per_cpu(irq_stat, j).sreset_irqs); j 558 arch/powerpc/kernel/irq.c for_each_online_cpu(j) j 559 arch/powerpc/kernel/irq.c seq_printf(p, "%10u ", per_cpu(irq_stat, j).soft_nmi_irqs); j 566 arch/powerpc/kernel/irq.c for_each_online_cpu(j) j 567 arch/powerpc/kernel/irq.c seq_printf(p, "%10u ", per_cpu(irq_stat, j).doorbell_irqs); j 391 arch/powerpc/kernel/rtas-proc.c int i,j; j 414 arch/powerpc/kernel/rtas-proc.c for (j = 0, offs = 0; j <= p->quant; j++) { j 416 arch/powerpc/kernel/rtas-proc.c p->token, j); j 113 arch/powerpc/kernel/rtasd.c int i,j,n = 0; j 129 arch/powerpc/kernel/rtasd.c j = i % perline; j 130 arch/powerpc/kernel/rtasd.c if (j == 0) { j 140 arch/powerpc/kernel/rtasd.c if (j == (perline-1)) j 463 arch/powerpc/kernel/setup-common.c int j, len; j 485 arch/powerpc/kernel/setup-common.c for (j = 0; j < nthreads && cpu < nr_cpu_ids; j++) { j 489 arch/powerpc/kernel/setup-common.c j, cpu, be32_to_cpu(intserv[j])); j 498 arch/powerpc/kernel/setup-common.c cpu_to_phys_id[cpu] = be32_to_cpu(intserv[j]); j 646 arch/powerpc/kernel/smp.c static void set_cpus_related(int i, int j, struct cpumask *(*get_cpumask)(int)) j 648 arch/powerpc/kernel/smp.c cpumask_set_cpu(i, get_cpumask(j)); j 649 arch/powerpc/kernel/smp.c cpumask_set_cpu(j, get_cpumask(i)); j 653 arch/powerpc/kernel/smp.c static void set_cpus_unrelated(int i, int j, j 656 arch/powerpc/kernel/smp.c cpumask_clear_cpu(i, get_cpumask(j)); j 657 arch/powerpc/kernel/smp.c cpumask_clear_cpu(j, get_cpumask(i)); j 758 arch/powerpc/kernel/smp.c int i, j; j 763 arch/powerpc/kernel/smp.c for (j = 0; j < tg->threads_per_group; j++) { j 764 arch/powerpc/kernel/smp.c int idx = group_start + j; j 365 arch/powerpc/kvm/book3s_32_mmu_host.c int j; j 374 arch/powerpc/kvm/book3s_32_mmu_host.c for (j = 0; j < 16; j++) j 375 arch/powerpc/kvm/book3s_32_mmu_host.c vcpu3s->vsid_pool[(i * 16) + j] = CTX_TO_VSID(err, j); j 390 arch/powerpc/kvm/book3s_32_mmu_host.c for (j = 0; j < i; j++) { j 391 arch/powerpc/kvm/book3s_32_mmu_host.c if (!vcpu3s->context_id[j]) j 394 arch/powerpc/kvm/book3s_32_mmu_host.c __destroy_context(to_book3s(vcpu)->context_id[j]); j 818 arch/powerpc/kvm/book3s_64_mmu_hv.c unsigned long j, h; j 821 arch/powerpc/kvm/book3s_64_mmu_hv.c j = rev[i].forw; j 822 arch/powerpc/kvm/book3s_64_mmu_hv.c if (j == i) { j 828 arch/powerpc/kvm/book3s_64_mmu_hv.c rev[h].forw = j; j 829 arch/powerpc/kvm/book3s_64_mmu_hv.c rev[j].back = h; j 831 arch/powerpc/kvm/book3s_64_mmu_hv.c *rmapp = (*rmapp & ~KVMPPC_RMAP_INDEX) | j; j 931 arch/powerpc/kvm/book3s_64_mmu_hv.c unsigned long head, i, j; j 951 arch/powerpc/kvm/book3s_64_mmu_hv.c j = rev[i].forw; j 976 arch/powerpc/kvm/book3s_64_mmu_hv.c } while ((i = j) != head); j 994 arch/powerpc/kvm/book3s_64_mmu_hv.c unsigned long head, i, j; j 1011 arch/powerpc/kvm/book3s_64_mmu_hv.c j = rev[i].forw; j 1014 arch/powerpc/kvm/book3s_64_mmu_hv.c } while ((i = j) != head); j 1051 arch/powerpc/kvm/book3s_64_mmu_hv.c unsigned long head, i, j; j 1068 arch/powerpc/kvm/book3s_64_mmu_hv.c j = rev[i].forw; j 1123 arch/powerpc/kvm/book3s_64_mmu_hv.c } while ((i = j) != head); j 1844 arch/powerpc/kvm/book3s_64_mmu_hv.c unsigned long i, j; j 1894 arch/powerpc/kvm/book3s_64_mmu_hv.c for (j = 0; j < hdr.n_valid; ++j) { j 1942 arch/powerpc/kvm/book3s_64_mmu_hv.c for (j = 0; j < hdr.n_invalid; ++j) { j 1055 arch/powerpc/kvm/book3s_64_mmu_radix.c unsigned long i, j; j 1058 arch/powerpc/kvm/book3s_64_mmu_radix.c for (i = 0; i < memslot->npages; i = j) { j 1068 arch/powerpc/kvm/book3s_64_mmu_radix.c j = i + 1; j 1071 arch/powerpc/kvm/book3s_64_mmu_radix.c j = i + npages; j 1555 arch/powerpc/kvm/book3s_hv.c int i, j; j 1561 arch/powerpc/kvm/book3s_hv.c j = 0; j 1564 arch/powerpc/kvm/book3s_hv.c vcpu->arch.slb[j].orige = sregs->u.s.ppc64.slb[i].slbe; j 1565 arch/powerpc/kvm/book3s_hv.c vcpu->arch.slb[j].origv = sregs->u.s.ppc64.slb[i].slbv; j 1566 arch/powerpc/kvm/book3s_hv.c ++j; j 1569 arch/powerpc/kvm/book3s_hv.c vcpu->arch.slb_max = j; j 1772 arch/powerpc/kvm/book3s_hv.c int j; j 1775 arch/powerpc/kvm/book3s_hv.c for (j = 0; j < TS_FPRWIDTH; j++) j 1776 arch/powerpc/kvm/book3s_hv.c val->vsxval[j] = vcpu->arch.fp_tm.fpr[i][j]; j 2002 arch/powerpc/kvm/book3s_hv.c int j; j 2005 arch/powerpc/kvm/book3s_hv.c for (j = 0; j < TS_FPRWIDTH; j++) j 2006 arch/powerpc/kvm/book3s_hv.c vcpu->arch.fp_tm.fpr[i][j] = val->vsxval[j]; j 5446 arch/powerpc/kvm/book3s_hv.c int i, j; j 5465 arch/powerpc/kvm/book3s_hv.c for (j = 0; j < threads_per_core; j++) { j 5466 arch/powerpc/kvm/book3s_hv.c int cpu = first_cpu + j; j 573 arch/powerpc/kvm/book3s_hv_rm_mmu.c long int i, j, k, n, found, indexes[4]; j 586 arch/powerpc/kvm/book3s_hv_rm_mmu.c j = i * 2; j 587 arch/powerpc/kvm/book3s_hv_rm_mmu.c pte_index = args[j]; j 599 arch/powerpc/kvm/book3s_hv_rm_mmu.c args[j] = ((0xa0 | flags) << 56) + pte_index; j 624 arch/powerpc/kvm/book3s_hv_rm_mmu.c if (!(hp0 & args[j + 1])) j 628 arch/powerpc/kvm/book3s_hv_rm_mmu.c if ((hp0 & ~0x7fUL) == args[j + 1]) j 635 arch/powerpc/kvm/book3s_hv_rm_mmu.c args[j] = ((0x90 | flags) << 56) + pte_index; j 639 arch/powerpc/kvm/book3s_hv_rm_mmu.c args[j] = ((0x80 | flags) << 56) + pte_index; j 646 arch/powerpc/kvm/book3s_hv_rm_mmu.c args[j] |= rcbits << (56 - 5); j 656 arch/powerpc/kvm/book3s_hv_rm_mmu.c indexes[n] = j; j 670 arch/powerpc/kvm/book3s_hv_rm_mmu.c j = indexes[k]; j 671 arch/powerpc/kvm/book3s_hv_rm_mmu.c pte_index = args[j] & ((1ul << 56) - 1); j 677 arch/powerpc/kvm/book3s_hv_rm_mmu.c args[j] |= rcbits << (56 - 5); j 1553 arch/powerpc/kvm/book3s_pr.c int i, j; j 1557 arch/powerpc/kvm/book3s_pr.c for (j = 0; j < TS_FPRWIDTH; j++) j 1558 arch/powerpc/kvm/book3s_pr.c val->vsxval[j] = vcpu->arch.fp_tm.fpr[i][j]; j 1653 arch/powerpc/kvm/book3s_pr.c int i, j; j 1657 arch/powerpc/kvm/book3s_pr.c for (j = 0; j < TS_FPRWIDTH; j++) j 1658 arch/powerpc/kvm/book3s_pr.c vcpu->arch.fp_tm.fpr[i][j] = val->vsxval[j]; j 1079 arch/powerpc/kvm/book3s_xive.c int i, j; j 1086 arch/powerpc/kvm/book3s_xive.c for (j = 0; j < KVMPPC_XICS_IRQ_PER_ICS; j++) { j 1087 arch/powerpc/kvm/book3s_xive.c struct kvmppc_xive_irq_state *state = &sb->irq_state[j]; j 1439 arch/powerpc/kvm/book3s_xive.c int i, j; j 1449 arch/powerpc/kvm/book3s_xive.c for (j = 0; j < KVMPPC_XICS_IRQ_PER_ICS; j++) j 1450 arch/powerpc/kvm/book3s_xive.c xive_pre_save_mask_irq(xive, sb, j); j 1458 arch/powerpc/kvm/book3s_xive.c for (j = 0; j < KVMPPC_XIVE_Q_COUNT; j++) { j 1459 arch/powerpc/kvm/book3s_xive.c if (xc->queues[j].qpage) j 1460 arch/powerpc/kvm/book3s_xive.c xive_pre_save_queue(xive, &xc->queues[j]); j 1469 arch/powerpc/kvm/book3s_xive.c for (j = 0; j < KVMPPC_XICS_IRQ_PER_ICS; j++) j 1470 arch/powerpc/kvm/book3s_xive.c xive_pre_save_unmask_irq(xive, sb, j); j 1476 arch/powerpc/kvm/book3s_xive.c u32 i, j; j 1483 arch/powerpc/kvm/book3s_xive.c for (j = 0; j < KVMPPC_XICS_IRQ_PER_ICS; j++) j 1484 arch/powerpc/kvm/book3s_xive.c sb->irq_state[j].in_queue = false; j 850 arch/powerpc/kvm/book3s_xive_native.c int j; j 852 arch/powerpc/kvm/book3s_xive_native.c for (j = 0; j < KVMPPC_XICS_IRQ_PER_ICS; j++) { j 853 arch/powerpc/kvm/book3s_xive_native.c struct kvmppc_xive_irq_state *state = &sb->irq_state[j]; j 660 arch/powerpc/lib/sstep.c int i, j; j 707 arch/powerpc/lib/sstep.c for (j = 0; j < size / 4; ++j) { j 708 arch/powerpc/lib/sstep.c i = IS_LE ? 3 - j : j; j 713 arch/powerpc/lib/sstep.c for (; j < 4; ++j) { j 714 arch/powerpc/lib/sstep.c i = IS_LE ? 3 - j : j; j 722 arch/powerpc/lib/sstep.c for (j = 0; j < size / 2; ++j) { j 723 arch/powerpc/lib/sstep.c i = IS_LE ? 7 - j : j; j 730 arch/powerpc/lib/sstep.c for (j = 0; j < size; ++j) { j 731 arch/powerpc/lib/sstep.c i = IS_LE ? 15 - j : j; j 744 arch/powerpc/lib/sstep.c int i, j; j 790 arch/powerpc/lib/sstep.c for (j = 0; j < size / 4; ++j) { j 791 arch/powerpc/lib/sstep.c i = IS_LE ? 3 - j : j; j 798 arch/powerpc/lib/sstep.c for (j = 0; j < size / 2; ++j) { j 799 arch/powerpc/lib/sstep.c i = IS_LE ? 7 - j : j; j 806 arch/powerpc/lib/sstep.c for (j = 0; j < size; ++j) { j 807 arch/powerpc/lib/sstep.c i = IS_LE ? 15 - j : j; j 893 arch/powerpc/lib/test_emulate_step.c unsigned int i, j, k, instr; j 899 arch/powerpc/lib/test_emulate_step.c for (j = 0; j < MAX_SUBTESTS && test->subtests[j].descr; j++) { j 900 arch/powerpc/lib/test_emulate_step.c instr = test->subtests[j].instr; j 901 arch/powerpc/lib/test_emulate_step.c flags = test->subtests[j].flags; j 902 arch/powerpc/lib/test_emulate_step.c regs = &test->subtests[j].regs; j 952 arch/powerpc/lib/test_emulate_step.c test->subtests[j].descr, j 25 arch/powerpc/mm/book3s64/subpage_prot.c unsigned long i, j, addr; j 43 arch/powerpc/mm/book3s64/subpage_prot.c for (j = 0; j < SBP_L2_COUNT && addr < spt->maxaddr; j 44 arch/powerpc/mm/book3s64/subpage_prot.c ++j, addr += PAGE_SIZE) j 45 arch/powerpc/mm/book3s64/subpage_prot.c if (p[j]) j 46 arch/powerpc/mm/book3s64/subpage_prot.c free_page((unsigned long)p[j]); j 243 arch/powerpc/mm/drmem.c u32 i, j, lmb_sets; j 252 arch/powerpc/mm/drmem.c for (j = 0; j < dr_cell.seq_lmbs; j++) { j 376 arch/powerpc/mm/drmem.c u32 i, j, lmb_sets; j 402 arch/powerpc/mm/drmem.c for (j = 0; j < dr_cell.seq_lmbs; j++) { j 1297 arch/powerpc/mm/numa.c int nid, base, j; j 1302 arch/powerpc/mm/numa.c for (j = 0; j < threads_per_core; j++) { j 1303 arch/powerpc/mm/numa.c update_numa_cpu_lookup_table(base + j, nid); j 244 arch/powerpc/mm/ptdump/hashpagetable.c int i, j, ssize = mmu_kernel_ssize; j 264 arch/powerpc/mm/ptdump/hashpagetable.c for (j = 0; j < 4; j++) { j 265 arch/powerpc/mm/ptdump/hashpagetable.c if (HPTE_V_COMPARE(ptes[j].v, want_v) && j 266 arch/powerpc/mm/ptdump/hashpagetable.c (ptes[j].v & HPTE_V_VALID)) { j 268 arch/powerpc/mm/ptdump/hashpagetable.c *v = ptes[j].v; j 269 arch/powerpc/mm/ptdump/hashpagetable.c *r = ptes[j].r; j 386 arch/powerpc/mm/ptdump/ptdump.c unsigned int i, j; j 390 arch/powerpc/mm/ptdump/ptdump.c for (j = 0; j < pg_level[i].num; j++) j 391 arch/powerpc/mm/ptdump/ptdump.c pg_level[i].mask |= pg_level[i].flag[j].mask; j 116 arch/powerpc/oprofile/cell/vma_map.c int i, j; j 187 arch/powerpc/oprofile/cell/vma_map.c for (j = 0; j < shdr.sh_size / sizeof (sym); j++) { j 190 arch/powerpc/oprofile/cell/vma_map.c j * sizeof (sym), j 238 arch/powerpc/oprofile/op_model_cell.c int i, j; j 250 arch/powerpc/oprofile/op_model_cell.c for (j = 0; j < count; j++) { j 251 arch/powerpc/oprofile/op_model_cell.c if (pm_signal[j].signal_group != PPU_CYCLES_GRP_NUM) { j 256 arch/powerpc/oprofile/op_model_cell.c = pm_signal[j].signal_group; j 257 arch/powerpc/oprofile/op_model_cell.c pm_signal_local[i].bus_word = pm_signal[j].bus_word; j 258 arch/powerpc/oprofile/op_model_cell.c pm_signal_local[i].sub_unit = pm_signal[j].sub_unit; j 259 arch/powerpc/oprofile/op_model_cell.c pm_signal_local[i].bit = pm_signal[j].bit; j 287 arch/powerpc/oprofile/op_model_cell.c int j, i; j 354 arch/powerpc/oprofile/op_model_cell.c for (j = 0; j < NUM_INPUT_BUS_WORDS; j++) { j 355 arch/powerpc/oprofile/op_model_cell.c if (input_bus[j] == 0xff) { j 356 arch/powerpc/oprofile/op_model_cell.c input_bus[j] = i; j 358 arch/powerpc/oprofile/op_model_cell.c (i << (30 - (2 * j))); j 754 arch/powerpc/oprofile/op_model_cell.c int i, j, cpu; j 776 arch/powerpc/oprofile/op_model_cell.c for_each_possible_cpu(j) j 777 arch/powerpc/oprofile/op_model_cell.c per_cpu(pmc_values, j)[i] = 0; j 873 arch/powerpc/perf/core-book3s.c int i, j; j 923 arch/powerpc/perf/core-book3s.c for (j = 1; j < n_alt[i]; ++j) j 924 arch/powerpc/perf/core-book3s.c ppmu->get_constraint(cpuhw->alternatives[i][j], j 925 arch/powerpc/perf/core-book3s.c &cpuhw->amasks[i][j], j 926 arch/powerpc/perf/core-book3s.c &cpuhw->avalues[i][j]); j 931 arch/powerpc/perf/core-book3s.c j = -1; j 934 arch/powerpc/perf/core-book3s.c if (j >= 0) { j 938 arch/powerpc/perf/core-book3s.c j = choice[i]; j 944 arch/powerpc/perf/core-book3s.c while (++j < n_alt[i]) { j 945 arch/powerpc/perf/core-book3s.c nv = (value | cpuhw->avalues[i][j]) + j 946 arch/powerpc/perf/core-book3s.c (value & cpuhw->avalues[i][j] & addf); j 948 arch/powerpc/perf/core-book3s.c (((nv + tadd) ^ cpuhw->avalues[i][j]) j 949 arch/powerpc/perf/core-book3s.c & cpuhw->amasks[i][j]) == 0) j 952 arch/powerpc/perf/core-book3s.c if (j >= n_alt[i]) { j 967 arch/powerpc/perf/core-book3s.c choice[i] = j; j 971 arch/powerpc/perf/core-book3s.c mask |= cpuhw->amasks[i][j]; j 973 arch/powerpc/perf/core-book3s.c j = -1; j 2174 arch/powerpc/perf/core-book3s.c int i, j; j 2211 arch/powerpc/perf/core-book3s.c for (j = 0; j < cpuhw->n_events; ++j) { j 2212 arch/powerpc/perf/core-book3s.c event = cpuhw->event[j]; j 215 arch/powerpc/perf/imc-pmu.c int i = 0, j = 0, ct, ret; j 288 arch/powerpc/perf/imc-pmu.c attrs[j++] = dev_str; j 295 arch/powerpc/perf/imc-pmu.c attrs[j++] = dev_str; j 304 arch/powerpc/perf/imc-pmu.c attrs[j++] = dev_str; j 495 arch/powerpc/perf/isa207-common.c int i, j; j 501 arch/powerpc/perf/isa207-common.c for (j = 0; j < MAX_ALT && ev_alt[i][j]; ++j) j 502 arch/powerpc/perf/isa207-common.c if (event == ev_alt[i][j]) j 512 arch/powerpc/perf/isa207-common.c int i, j, num_alt = 0; j 519 arch/powerpc/perf/isa207-common.c for (j = 0; j < MAX_ALT; ++j) { j 520 arch/powerpc/perf/isa207-common.c alt_event = ev_alt[i][j]; j 531 arch/powerpc/perf/isa207-common.c j = num_alt; j 535 arch/powerpc/perf/isa207-common.c alt[j++] = 0x600f4; /* PM_RUN_CYC */ j 538 arch/powerpc/perf/isa207-common.c alt[j++] = 0x1e; j 541 arch/powerpc/perf/isa207-common.c alt[j++] = 0x500fa; /* PM_RUN_INST_CMPL */ j 544 arch/powerpc/perf/isa207-common.c alt[j++] = 0x2; j 548 arch/powerpc/perf/isa207-common.c num_alt = j; j 210 arch/powerpc/perf/mpc7450-pmu.c int i, j; j 215 arch/powerpc/perf/mpc7450-pmu.c for (j = 0; j < MAX_ALT && event_alternatives[i][j]; ++j) j 216 arch/powerpc/perf/mpc7450-pmu.c if (event == event_alternatives[i][j]) j 224 arch/powerpc/perf/mpc7450-pmu.c int i, j, nalt = 1; j 231 arch/powerpc/perf/mpc7450-pmu.c for (j = 0; j < MAX_ALT; ++j) { j 232 arch/powerpc/perf/mpc7450-pmu.c ae = event_alternatives[i][j]; j 265 arch/powerpc/perf/mpc7450-pmu.c int i, j, class, tuse; j 280 arch/powerpc/perf/mpc7450-pmu.c j = n_classevent[class]++; j 281 arch/powerpc/perf/mpc7450-pmu.c event_index[class][j] = i; j 216 arch/powerpc/perf/power5+-pmu.c int i, j; j 221 arch/powerpc/perf/power5+-pmu.c for (j = 0; j < MAX_ALT && event_alternatives[i][j]; ++j) j 222 arch/powerpc/perf/power5+-pmu.c if (event == event_alternatives[i][j]) j 243 arch/powerpc/perf/power5+-pmu.c int pmc, altpmc, pp, j; j 250 arch/powerpc/perf/power5+-pmu.c for (j = 0; j < 4; ++j) { j 251 arch/powerpc/perf/power5+-pmu.c if (bytedecode_alternatives[pmc - 1][j] == pp) { j 254 arch/powerpc/perf/power5+-pmu.c bytedecode_alternatives[altpmc - 1][j]; j 274 arch/powerpc/perf/power5+-pmu.c int i, j, nalt = 1; j 283 arch/powerpc/perf/power5+-pmu.c for (j = 0; j < MAX_ALT; ++j) { j 284 arch/powerpc/perf/power5+-pmu.c ae = event_alternatives[i][j]; j 306 arch/powerpc/perf/power5+-pmu.c j = nalt; j 310 arch/powerpc/perf/power5+-pmu.c alt[j++] = 0x600005; /* PM_RUN_CYC */ j 314 arch/powerpc/perf/power5+-pmu.c alt[j++] = 0xf; j 317 arch/powerpc/perf/power5+-pmu.c alt[j++] = 0x500009; /* PM_RUN_INST_CMPL */ j 321 arch/powerpc/perf/power5+-pmu.c alt[j++] = 0x100009; /* PM_INST_CMPL */ j 322 arch/powerpc/perf/power5+-pmu.c alt[j++] = 0x200009; j 326 arch/powerpc/perf/power5+-pmu.c nalt = j; j 331 arch/powerpc/perf/power5+-pmu.c j = 0; j 334 arch/powerpc/perf/power5+-pmu.c alt[j] = alt[i]; j 335 arch/powerpc/perf/power5+-pmu.c ++j; j 338 arch/powerpc/perf/power5+-pmu.c nalt = j; j 341 arch/powerpc/perf/power5+-pmu.c j = 0; j 344 arch/powerpc/perf/power5+-pmu.c alt[j] = alt[i]; j 345 arch/powerpc/perf/power5+-pmu.c ++j; j 348 arch/powerpc/perf/power5+-pmu.c nalt = j; j 225 arch/powerpc/perf/power5-pmu.c int i, j; j 230 arch/powerpc/perf/power5-pmu.c for (j = 0; j < MAX_ALT && event_alternatives[i][j]; ++j) j 231 arch/powerpc/perf/power5-pmu.c if (event == event_alternatives[i][j]) j 251 arch/powerpc/perf/power5-pmu.c int pmc, altpmc, pp, j; j 258 arch/powerpc/perf/power5-pmu.c for (j = 0; j < 4; ++j) { j 259 arch/powerpc/perf/power5-pmu.c if (bytedecode_alternatives[pmc - 1][j] == pp) { j 262 arch/powerpc/perf/power5-pmu.c bytedecode_alternatives[altpmc - 1][j]; j 270 arch/powerpc/perf/power5-pmu.c int i, j, nalt = 1; j 277 arch/powerpc/perf/power5-pmu.c for (j = 0; j < MAX_ALT; ++j) { j 278 arch/powerpc/perf/power5-pmu.c ae = event_alternatives[i][j]; j 341 arch/powerpc/perf/power6-pmu.c int i, j; j 347 arch/powerpc/perf/power6-pmu.c for (j = 0; j < MAX_ALT; ++j) { j 348 arch/powerpc/perf/power6-pmu.c alt = event_alternatives[i][j]; j 360 arch/powerpc/perf/power6-pmu.c int i, j, nlim; j 372 arch/powerpc/perf/power6-pmu.c for (j = 0; j < MAX_ALT; ++j) { j 373 arch/powerpc/perf/power6-pmu.c aevent = event_alternatives[i][j]; j 407 arch/powerpc/perf/power6-pmu.c j = nalt; j 411 arch/powerpc/perf/power6-pmu.c alt[j++] = 0x600005; /* PM_RUN_CYC */ j 415 arch/powerpc/perf/power6-pmu.c alt[j++] = 0x1e; /* PM_CYC */ j 418 arch/powerpc/perf/power6-pmu.c alt[j++] = 0x500009; /* PM_RUN_INST_CMPL */ j 422 arch/powerpc/perf/power6-pmu.c alt[j++] = 2; /* PM_INST_CMPL */ j 425 arch/powerpc/perf/power6-pmu.c alt[j++] = 0x4000f4; /* PM_RUN_PURR */ j 428 arch/powerpc/perf/power6-pmu.c alt[j++] = 0x10000e; /* PM_PURR */ j 432 arch/powerpc/perf/power6-pmu.c nalt = j; j 437 arch/powerpc/perf/power6-pmu.c j = 0; j 440 arch/powerpc/perf/power6-pmu.c alt[j] = alt[i]; j 441 arch/powerpc/perf/power6-pmu.c ++j; j 444 arch/powerpc/perf/power6-pmu.c nalt = j; j 447 arch/powerpc/perf/power6-pmu.c j = 0; j 450 arch/powerpc/perf/power6-pmu.c alt[j] = alt[i]; j 451 arch/powerpc/perf/power6-pmu.c ++j; j 454 arch/powerpc/perf/power6-pmu.c nalt = j; j 130 arch/powerpc/perf/power7-pmu.c int i, j; j 135 arch/powerpc/perf/power7-pmu.c for (j = 0; j < MAX_ALT && event_alternatives[i][j]; ++j) j 136 arch/powerpc/perf/power7-pmu.c if (event == event_alternatives[i][j]) j 158 arch/powerpc/perf/power7-pmu.c int i, j, nalt = 1; j 165 arch/powerpc/perf/power7-pmu.c for (j = 0; j < MAX_ALT; ++j) { j 166 arch/powerpc/perf/power7-pmu.c ae = event_alternatives[i][j]; j 184 arch/powerpc/perf/power7-pmu.c j = nalt; j 188 arch/powerpc/perf/power7-pmu.c alt[j++] = 0x600f4; /* PM_RUN_CYC */ j 191 arch/powerpc/perf/power7-pmu.c alt[j++] = 0x1e; j 194 arch/powerpc/perf/power7-pmu.c alt[j++] = 0x500fa; /* PM_RUN_INST_CMPL */ j 197 arch/powerpc/perf/power7-pmu.c alt[j++] = 0x2; /* PM_PPC_CMPL */ j 201 arch/powerpc/perf/power7-pmu.c nalt = j; j 255 arch/powerpc/platforms/4xx/pci.c int i, j, found_isa_hole = 0; j 258 arch/powerpc/platforms/4xx/pci.c for (i = j = 0; i < 3; i++) { j 265 arch/powerpc/platforms/4xx/pci.c if (j > 2) { j 276 arch/powerpc/platforms/4xx/pci.c j) == 0) { j 277 arch/powerpc/platforms/4xx/pci.c j++; j 288 arch/powerpc/platforms/4xx/pci.c if (j <= 2 && !found_isa_hole && hose->isa_mem_size) j 290 arch/powerpc/platforms/4xx/pci.c hose->isa_mem_size, 0, j) == 0) j 454 arch/powerpc/platforms/4xx/pci.c int i, j, found_isa_hole = 0; j 457 arch/powerpc/platforms/4xx/pci.c for (i = j = 0; i < 3; i++) { j 464 arch/powerpc/platforms/4xx/pci.c if (j > 1) { j 475 arch/powerpc/platforms/4xx/pci.c j) == 0) { j 476 arch/powerpc/platforms/4xx/pci.c j++; j 487 arch/powerpc/platforms/4xx/pci.c if (j <= 1 && !found_isa_hole && hose->isa_mem_size) j 489 arch/powerpc/platforms/4xx/pci.c hose->isa_mem_size, 0, j) == 0) j 1790 arch/powerpc/platforms/4xx/pci.c int i, j, found_isa_hole = 0; j 1793 arch/powerpc/platforms/4xx/pci.c for (i = j = 0; i < 3; i++) { j 1800 arch/powerpc/platforms/4xx/pci.c if (j > 1) { j 1812 arch/powerpc/platforms/4xx/pci.c j) == 0) { j 1813 arch/powerpc/platforms/4xx/pci.c j++; j 1824 arch/powerpc/platforms/4xx/pci.c if (j <= 1 && !found_isa_hole && hose->isa_mem_size) j 1827 arch/powerpc/platforms/4xx/pci.c hose->isa_mem_size, 0, j) == 0) j 50 arch/powerpc/platforms/83xx/mpc832x_rdb.c unsigned int j; j 75 arch/powerpc/platforms/83xx/mpc832x_rdb.c for (j = 0; j < num_board_infos; j++) { j 76 arch/powerpc/platforms/83xx/mpc832x_rdb.c if (board_infos[j].bus_num == pdata.bus_num) j 648 arch/powerpc/platforms/8xx/cpm1.c int i, j; j 650 arch/powerpc/platforms/8xx/cpm1.c for (i = 0, j = 0; i < 16; i++) j 652 arch/powerpc/platforms/8xx/cpm1.c cpm1_gc->irq[i] = irq_of_parse_and_map(np, j++); j 178 arch/powerpc/platforms/cell/spufs/coredump.c int fd, j, rc; j 186 arch/powerpc/platforms/cell/spufs/coredump.c for (j = 0; spufs_coredump_read[j].name != NULL; j++) { j 187 arch/powerpc/platforms/cell/spufs/coredump.c rc = spufs_arch_write_note(ctx, j, cprm, fd); j 378 arch/powerpc/platforms/chrp/setup.c int len, i, j; j 437 arch/powerpc/platforms/chrp/setup.c j = na - 1; j 440 arch/powerpc/platforms/chrp/setup.c j += na; j 443 arch/powerpc/platforms/chrp/setup.c opprop[j]); j 444 arch/powerpc/platforms/chrp/setup.c mpic_assign_isu(chrp_mpic, i - 1, opprop[j]); j 35 arch/powerpc/platforms/embedded6xx/ls_uart.c int j; j 39 arch/powerpc/platforms/embedded6xx/ls_uart.c for (j = 0; j < 16 && i < len; j++, i++) j 211 arch/powerpc/platforms/powermac/low_i2c.c int i, j; j 224 arch/powerpc/platforms/powermac/low_i2c.c for (j = 1; j < 100000; j++) j 337 arch/powerpc/platforms/powermac/smp.c int i, j; j 373 arch/powerpc/platforms/powermac/smp.c for (j = 1; j < 10000; j++) j 295 arch/powerpc/platforms/powernv/npu-dma.c int i, j; j 313 arch/powerpc/platforms/powernv/npu-dma.c for (j = 0; j < i; ++j) { j 314 arch/powerpc/platforms/powernv/npu-dma.c struct pnv_ioda_pe *pe = npucomp->pe[j]; j 334 arch/powerpc/platforms/powernv/npu-dma.c int i, j; j 356 arch/powerpc/platforms/powernv/npu-dma.c for (j = 0; j < i; ++j) { j 357 arch/powerpc/platforms/powernv/npu-dma.c struct pnv_ioda_pe *pe = npucomp->pe[j]; j 401 arch/powerpc/platforms/powernv/ocxl.c int i, j, rc = 0; j 422 arch/powerpc/platforms/powernv/ocxl.c for (j = i - 1; j >= 0; j--) j 423 arch/powerpc/platforms/powernv/ocxl.c iounmap(regs[j]); j 167 arch/powerpc/platforms/powernv/opal-powercap.c int j = 0; j 171 arch/powerpc/platforms/powernv/opal-powercap.c j++; j 176 arch/powerpc/platforms/powernv/opal-powercap.c j++; j 181 arch/powerpc/platforms/powernv/opal-powercap.c j++; j 185 arch/powerpc/platforms/powernv/opal-powercap.c pcaps[i].pattrs = kcalloc(j, sizeof(struct powercap_attr), j 190 arch/powerpc/platforms/powernv/opal-powercap.c pcaps[i].pg.attrs = kcalloc(j + 1, sizeof(struct attribute *), j 197 arch/powerpc/platforms/powernv/opal-powercap.c j = 0; j 201 arch/powerpc/platforms/powernv/opal-powercap.c &pcaps[i].pattrs[j]); j 202 arch/powerpc/platforms/powernv/opal-powercap.c pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; j 203 arch/powerpc/platforms/powernv/opal-powercap.c j++; j 208 arch/powerpc/platforms/powernv/opal-powercap.c &pcaps[i].pattrs[j]); j 209 arch/powerpc/platforms/powernv/opal-powercap.c pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; j 210 arch/powerpc/platforms/powernv/opal-powercap.c j++; j 215 arch/powerpc/platforms/powernv/opal-powercap.c &pcaps[i].pattrs[j]); j 216 arch/powerpc/platforms/powernv/opal-powercap.c pcaps[i].pattrs[j].attr.attr.mode |= 0220; j 217 arch/powerpc/platforms/powernv/opal-powercap.c pcaps[i].pattrs[j].attr.store = powercap_store; j 218 arch/powerpc/platforms/powernv/opal-powercap.c pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; j 219 arch/powerpc/platforms/powernv/opal-powercap.c j++; j 132 arch/powerpc/platforms/powernv/opal-sensor-groups.c int i, j; j 136 arch/powerpc/platforms/powernv/opal-sensor-groups.c for (j = 0; j < ARRAY_SIZE(ops_info); j++) j 137 arch/powerpc/platforms/powernv/opal-sensor-groups.c if (be32_to_cpu(ops[i]) == ops_info[j].opal_no) { j 138 arch/powerpc/platforms/powernv/opal-sensor-groups.c add_attr(handle, &sg->sgattrs[count], j); j 149 arch/powerpc/platforms/powernv/opal-sensor-groups.c int i, j; j 153 arch/powerpc/platforms/powernv/opal-sensor-groups.c for (j = 0; j < ARRAY_SIZE(ops_info); j++) j 154 arch/powerpc/platforms/powernv/opal-sensor-groups.c if (be32_to_cpu(ops[i]) == ops_info[j].opal_no) j 1307 arch/powerpc/platforms/powernv/pci-ioda.c int i, j; j 1321 arch/powerpc/platforms/powernv/pci-ioda.c for (j = 0; j < m64_bars; j++) { j 1322 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->m64_map[j][i] == IODA_INVALID_M64) j 1325 arch/powerpc/platforms/powernv/pci-ioda.c OPAL_M64_WINDOW_TYPE, pdn->m64_map[j][i], 0); j 1326 arch/powerpc/platforms/powernv/pci-ioda.c clear_bit(pdn->m64_map[j][i], &phb->ioda.m64_bar_alloc); j 1327 arch/powerpc/platforms/powernv/pci-ioda.c pdn->m64_map[j][i] = IODA_INVALID_M64; j 1342 arch/powerpc/platforms/powernv/pci-ioda.c int i, j; j 1367 arch/powerpc/platforms/powernv/pci-ioda.c for (j = 0; j < PCI_SRIOV_NUM_BARS; j++) j 1368 arch/powerpc/platforms/powernv/pci-ioda.c pdn->m64_map[i][j] = IODA_INVALID_M64; j 1376 arch/powerpc/platforms/powernv/pci-ioda.c for (j = 0; j < m64_bars; j++) { j 1385 arch/powerpc/platforms/powernv/pci-ioda.c pdn->m64_map[j][i] = win; j 1390 arch/powerpc/platforms/powernv/pci-ioda.c start = res->start + size * j; j 1398 arch/powerpc/platforms/powernv/pci-ioda.c pe_num = pdn->pe_num_map[j]; j 1401 arch/powerpc/platforms/powernv/pci-ioda.c pdn->m64_map[j][i], 0); j 1406 arch/powerpc/platforms/powernv/pci-ioda.c pdn->m64_map[j][i], j 1420 arch/powerpc/platforms/powernv/pci-ioda.c OPAL_M64_WINDOW_TYPE, pdn->m64_map[j][i], 2); j 1423 arch/powerpc/platforms/powernv/pci-ioda.c OPAL_M64_WINDOW_TYPE, pdn->m64_map[j][i], 1); j 804 arch/powerpc/platforms/pseries/lpar.c unsigned long i, j; j 817 arch/powerpc/platforms/pseries/lpar.c for (j = 0; j < 4; j++){ j 818 arch/powerpc/platforms/pseries/lpar.c if ((ptes[j].pteh & HPTE_V_VRMA_MASK) == j 821 arch/powerpc/platforms/pseries/lpar.c if (ptes[j].pteh & HPTE_V_VALID) j 822 arch/powerpc/platforms/pseries/lpar.c plpar_pte_remove_raw(0, i + j, 0, j 823 arch/powerpc/platforms/pseries/lpar.c &(ptes[j].pteh), &(ptes[j].ptel)); j 906 arch/powerpc/platforms/pseries/lpar.c unsigned long i, j; j 921 arch/powerpc/platforms/pseries/lpar.c for (j = 0; j < 4; j++) { j 922 arch/powerpc/platforms/pseries/lpar.c if (HPTE_V_COMPARE(ptes[j].pteh, want_v) && j 923 arch/powerpc/platforms/pseries/lpar.c (ptes[j].pteh & HPTE_V_VALID)) j 924 arch/powerpc/platforms/pseries/lpar.c return i + j; j 1745 arch/powerpc/platforms/pseries/lpar.c int i, j; j 1752 arch/powerpc/platforms/pseries/lpar.c for (j = 0; j < PAGE_SIZE; j += cmo_page_sz) j 1753 arch/powerpc/platforms/pseries/lpar.c plpar_hcall_norets(H_PAGE_INIT, state, addr + j, 0); j 53 arch/powerpc/platforms/pseries/pseries_energy.c int j; j 65 arch/powerpc/platforms/pseries/pseries_energy.c for (j = 0; j < num_set_entries; j++) { j 124 arch/powerpc/platforms/pseries/pseries_energy.c int j; j 136 arch/powerpc/platforms/pseries/pseries_energy.c for (j = 0; j < num_set_entries; j++) { j 401 arch/powerpc/sysdev/fsl_msi.c int err, i, j, irq_index, count; j 532 arch/powerpc/sysdev/fsl_msi.c for (j = 0; j < count; j++, irq_index++) { j 533 arch/powerpc/sysdev/fsl_msi.c err = fsl_msi_setup_hwirq(msi, dev, offset + j, j 196 arch/powerpc/sysdev/fsl_pci.c int i, j, n, mem_log, win_idx = 3, start_idx = 1, end_idx = 4; j 246 arch/powerpc/sysdev/fsl_pci.c for(i = 0, j = 1; i < 3; i++) { j 255 arch/powerpc/sysdev/fsl_pci.c n = setup_one_atmu(pci, j, &hose->mem_resources[i], offset); j 257 arch/powerpc/sysdev/fsl_pci.c if (n < 0 || j >= 5) { j 261 arch/powerpc/sysdev/fsl_pci.c j += n; j 266 arch/powerpc/sysdev/fsl_pci.c if (j >= 5) { j 274 arch/powerpc/sysdev/fsl_pci.c out_be32(&pci->pow[j].potar, (hose->io_resource.start >> 12)); j 275 arch/powerpc/sysdev/fsl_pci.c out_be32(&pci->pow[j].potear, 0); j 276 arch/powerpc/sysdev/fsl_pci.c out_be32(&pci->pow[j].powbar, (hose->io_base_phys >> 12)); j 278 arch/powerpc/sysdev/fsl_pci.c out_be32(&pci->pow[j].powar, 0x80088000 j 722 arch/powerpc/sysdev/fsl_rmu.c int i, j, rc = 0; j 742 arch/powerpc/sysdev/fsl_rmu.c for (j = 0; j < rmu->msg_tx_ring.size; j++) j 743 arch/powerpc/sysdev/fsl_rmu.c if (rmu->msg_tx_ring.virt_buffer[j]) j 747 arch/powerpc/sysdev/fsl_rmu.c virt_buffer[j], j 749 arch/powerpc/sysdev/fsl_rmu.c phys_buffer[j]); j 423 arch/powerpc/sysdev/mpic_timer.c unsigned int j; j 444 arch/powerpc/sysdev/mpic_timer.c for (j = 0; j < count; j++) { j 452 arch/powerpc/sysdev/mpic_timer.c priv->idle |= TIMER_OFFSET((offset + j)); j 453 arch/powerpc/sysdev/mpic_timer.c priv->timer[offset + j].irq = irq; j 454 arch/powerpc/sysdev/mpic_timer.c priv->timer[offset + j].num = offset + j; j 76 arch/powerpc/sysdev/msi_bitmap.c int i, j, len; j 102 arch/powerpc/sysdev/msi_bitmap.c for (j = 0; j < *(p + 1); j++) j 103 arch/powerpc/sysdev/msi_bitmap.c bitmap_release_region(bmp->bitmap, *p + j, 0); j 45 arch/powerpc/sysdev/xics/xics-common.c int i, j; j 73 arch/powerpc/sysdev/xics/xics-common.c for (j = 0; j < i; j += 2) { j 74 arch/powerpc/sysdev/xics/xics-common.c if (be32_to_cpu(ireg[j]) == hcpuid) { j 75 arch/powerpc/sysdev/xics/xics-common.c xics_default_distrib_server = be32_to_cpu(ireg[j+1]); j 2681 arch/powerpc/xmon/xmon.c int i, j; j 2694 arch/powerpc/xmon/xmon.c for (j = 0; j < 16; j += size) { j 2697 arch/powerpc/xmon/xmon.c case 1: val = temp[j]; break; j 2698 arch/powerpc/xmon/xmon.c case 2: val = *(u16 *)&temp[j]; break; j 2699 arch/powerpc/xmon/xmon.c case 4: val = *(u32 *)&temp[j]; break; j 2700 arch/powerpc/xmon/xmon.c case 8: val = *(u64 *)&temp[j]; break; j 343 arch/riscv/kernel/module.c unsigned int j; j 345 arch/riscv/kernel/module.c for (j = 0; j < sechdrs[relsec].sh_size / sizeof(*rel); j++) { j 348 arch/riscv/kernel/module.c + rel[j].r_offset; j 349 arch/riscv/kernel/module.c u32 hi20_type = ELF_RISCV_R_TYPE(rel[j].r_info); j 358 arch/riscv/kernel/module.c + ELF_RISCV_R_SYM(rel[j].r_info); j 361 arch/riscv/kernel/module.c + rel[j].r_addend; j 378 arch/riscv/kernel/module.c if (j == sechdrs[relsec].sh_size / sizeof(*rel)) { j 98 arch/s390/appldata/appldata_os.c int i, j, rc; j 112 arch/s390/appldata/appldata_os.c j = 0; j 114 arch/s390/appldata/appldata_os.c os_data->os_cpu[j].per_cpu_user = j 116 arch/s390/appldata/appldata_os.c os_data->os_cpu[j].per_cpu_nice = j 118 arch/s390/appldata/appldata_os.c os_data->os_cpu[j].per_cpu_system = j 120 arch/s390/appldata/appldata_os.c os_data->os_cpu[j].per_cpu_idle = j 122 arch/s390/appldata/appldata_os.c os_data->os_cpu[j].per_cpu_irq = j 124 arch/s390/appldata/appldata_os.c os_data->os_cpu[j].per_cpu_softirq = j 126 arch/s390/appldata/appldata_os.c os_data->os_cpu[j].per_cpu_iowait = j 128 arch/s390/appldata/appldata_os.c os_data->os_cpu[j].per_cpu_steal = j 130 arch/s390/appldata/appldata_os.c os_data->os_cpu[j].cpu_id = i; j 131 arch/s390/appldata/appldata_os.c j++; j 134 arch/s390/appldata/appldata_os.c os_data->nr_cpus = j; j 67 arch/s390/boot/als.c int i, j, first; j 72 arch/s390/boot/als.c for (j = 0; j < BITS_PER_LONG; j++) { j 73 arch/s390/boot/als.c if (!(val & (1UL << (BITS_PER_LONG - 1 - j)))) j 87 arch/s390/boot/als.c u16_to_decimal(val_str, i * BITS_PER_LONG + j); j 115 arch/s390/include/asm/nospec-insn.h j . j 119 arch/s390/include/asm/nospec-insn.h j . j 123 arch/s390/include/asm/nospec-insn.h j . j 132 arch/s390/include/asm/nospec-insn.h j . j 136 arch/s390/include/asm/nospec-insn.h j . j 41 arch/s390/include/uapi/asm/runtime_instr.h __u32 j : 1; j 195 arch/s390/kernel/debug.c int i, j; j 206 arch/s390/kernel/debug.c for (j = 0; j < pages_per_area; j++) { j 207 arch/s390/kernel/debug.c areas[i][j] = kzalloc(PAGE_SIZE, GFP_KERNEL); j 208 arch/s390/kernel/debug.c if (!areas[i][j]) { j 209 arch/s390/kernel/debug.c for (j--; j >= 0 ; j--) j 210 arch/s390/kernel/debug.c kfree(areas[i][j]); j 220 arch/s390/kernel/debug.c for (j = 0; j < pages_per_area; j++) j 221 arch/s390/kernel/debug.c kfree(areas[i][j]); j 288 arch/s390/kernel/debug.c int i, j; j 293 arch/s390/kernel/debug.c for (j = 0; j < db_info->pages_per_area; j++) j 294 arch/s390/kernel/debug.c kfree(db_info->areas[i][j]); j 360 arch/s390/kernel/debug.c int i, j; j 382 arch/s390/kernel/debug.c for (j = 0; j < in->pages_per_area; j++) j 383 arch/s390/kernel/debug.c memcpy(rc->areas[i][j], in->areas[i][j], PAGE_SIZE); j 1326 arch/s390/kernel/debug.c int i, j; j 1336 arch/s390/kernel/debug.c for (j = 0; j < id->pages_per_area; j++) j 1337 arch/s390/kernel/debug.c memset(id->areas[i][j], 0, PAGE_SIZE); j 116 arch/s390/kernel/module.c int nrela, i, j; j 158 arch/s390/kernel/module.c for (j = 0; j < nrela; j++) j 159 arch/s390/kernel/module.c check_rela(rela + j, me); j 549 arch/s390/kernel/perf_cpum_cf_events.c int j, i; j 551 arch/s390/kernel/perf_cpum_cf_events.c for (j = 0; a[j]; j++) j 554 arch/s390/kernel/perf_cpum_cf_events.c j++; j 556 arch/s390/kernel/perf_cpum_cf_events.c j++; j 557 arch/s390/kernel/perf_cpum_cf_events.c j++; j 559 arch/s390/kernel/perf_cpum_cf_events.c new = kmalloc_array(j, sizeof(struct attribute *), GFP_KERNEL); j 562 arch/s390/kernel/perf_cpum_cf_events.c j = 0; j 564 arch/s390/kernel/perf_cpum_cf_events.c new[j++] = a[i]; j 566 arch/s390/kernel/perf_cpum_cf_events.c new[j++] = b[i]; j 568 arch/s390/kernel/perf_cpum_cf_events.c new[j++] = c[i]; j 569 arch/s390/kernel/perf_cpum_cf_events.c new[j] = NULL; j 503 arch/s390/kernel/setup.c int j; j 524 arch/s390/kernel/setup.c for (j = 0; j < ARRAY_SIZE(standard_resources); j++) { j 525 arch/s390/kernel/setup.c std_res = standard_resources[j]; j 340 arch/s390/mm/pageattr.c int nr, i, j; j 358 arch/s390/mm/pageattr.c for (j = 0; j < nr; j++) { j 108 arch/sh/boards/mach-dreamcast/irq.c __u32 j, bit; j 131 arch/sh/boards/mach-dreamcast/irq.c for (bit = 1, j = 0; j < 32; bit <<= 1, j++) { j 133 arch/sh/boards/mach-dreamcast/irq.c irq = HW_EVENT_IRQ_BASE + j + (level << 5); j 43 arch/sh/kernel/irq.c int j; j 46 arch/sh/kernel/irq.c for_each_online_cpu(j) j 47 arch/sh/kernel/irq.c seq_printf(p, "%10u ", nmi_count(j)); j 36 arch/sh/mm/cache-sh3.c unsigned long v, j; j 46 arch/sh/mm/cache-sh3.c for (j = 0; j < current_cpu_data.dcache.ways; j++) { j 69 arch/sh/mm/cache-sh4.c int j, n; j 79 arch/sh/mm/cache-sh4.c for (j = 0; j < n; j++) j 80 arch/sh/mm/cache-sh4.c __raw_writel(0, icacheaddr + (j * PAGE_SIZE)); j 245 arch/sh/mm/cache-sh5.c int j; j 253 arch/sh/mm/cache-sh5.c for (j = 0; j < n_sets; j++, set_offset++) { j 171 arch/sh/mm/init.c int i, j, k; j 176 arch/sh/mm/init.c j = __pud_offset(vaddr); j 182 arch/sh/mm/init.c for ( ; (j < PTRS_PER_PUD) && (vaddr != end); pud++, j++) { j 194 arch/sh/mm/init.c j = 0; j 558 arch/sh/mm/pmb.c int i, j; j 632 arch/sh/mm/pmb.c for (j = 0; j < ARRAY_SIZE(pmb_sizes); j++) j 633 arch/sh/mm/pmb.c if (pmb_sizes[j].flag == size) j 634 arch/sh/mm/pmb.c pmbe->size = pmb_sizes[j].size; j 102 arch/sparc/include/asm/syscall.h unsigned int j; j 110 arch/sparc/include/asm/syscall.h for (j = 0; j < n; j++) { j 111 arch/sparc/include/asm/syscall.h unsigned long val = regs->u_regs[UREG_I0 + j]; j 114 arch/sparc/include/asm/syscall.h args[j] = (u32) val; j 116 arch/sparc/include/asm/syscall.h args[j] = val; j 102 arch/sparc/kernel/btext.c int i,j; j 107 arch/sparc/kernel/btext.c for(j=width; j; --j) j 120 arch/sparc/kernel/btext.c int i,j; j 126 arch/sparc/kernel/btext.c for(j=width; j; --j) j 134 arch/sparc/kernel/btext.c for(j=width; j; --j) j 467 arch/sparc/kernel/ds.c unsigned int j; j 472 arch/sparc/kernel/ds.c for (j = i + 1; j < num_ents; j++) { j 473 arch/sparc/kernel/ds.c if (list[j] == cpu) j 474 arch/sparc/kernel/ds.c list[j] = CPU_SENTINEL; j 559 arch/sparc/kernel/iommu.c unsigned long vaddr, npages, entry, j; j 570 arch/sparc/kernel/iommu.c for (j = 0; j < npages; j++) j 571 arch/sparc/kernel/iommu.c iopte_make_dummy(iommu, base + j); j 199 arch/sparc/kernel/irq_32.c int j; j 203 arch/sparc/kernel/irq_32.c for_each_online_cpu(j) j 204 arch/sparc/kernel/irq_32.c seq_printf(p, "%10u ", cpu_data(j).irq_resched_count); j 207 arch/sparc/kernel/irq_32.c for_each_online_cpu(j) j 208 arch/sparc/kernel/irq_32.c seq_printf(p, "%10u ", cpu_data(j).irq_call_count); j 212 arch/sparc/kernel/irq_32.c for_each_online_cpu(j) j 213 arch/sparc/kernel/irq_32.c seq_printf(p, "%10u ", cpu_data(j).counter); j 304 arch/sparc/kernel/irq_64.c int j; j 307 arch/sparc/kernel/irq_64.c for_each_online_cpu(j) j 308 arch/sparc/kernel/irq_64.c seq_printf(p, "%10u ", cpu_data(j).__nmi_count); j 1204 arch/sparc/kernel/mdesc.c u64 j, t = mdesc_arc_target(hp, a); j 1213 arch/sparc/kernel/mdesc.c mdesc_for_each_arc(j, hp, t, MDESC_ARC_TYPE_FWD) { j 1214 arch/sparc/kernel/mdesc.c u64 n = mdesc_arc_target(hp, j); j 442 arch/sparc/kernel/of_device_64.c int j; j 444 arch/sparc/kernel/of_device_64.c for (j = 0; j < na; j++) { j 445 arch/sparc/kernel/of_device_64.c if ((reg[j] & imask[j]) != imap[j]) j 173 arch/sparc/kernel/pci_schizo.c int j, saw_error, first, last; j 178 arch/sparc/kernel/pci_schizo.c for (j = first; j < last; j++) { j 179 arch/sparc/kernel/pci_schizo.c unsigned long errval = stc_error_buf[j]; j 184 arch/sparc/kernel/pci_schizo.c j, j 477 arch/sparc/kernel/pcic.c int j; j 485 arch/sparc/kernel/pcic.c for (j = 0; j < 6; j++) { j 486 arch/sparc/kernel/pcic.c address = dev->resource[j].start; j 488 arch/sparc/kernel/pcic.c flags = dev->resource[j].flags; j 508 arch/sparc/kernel/pcic.c dev->resource[j].start = j 510 arch/sparc/kernel/pcic.c dev->resource[j].end = 1; /* XXX */ j 511 arch/sparc/kernel/pcic.c dev->resource[j].flags = j 79 arch/sparc/kernel/psycho_common.c int j, saw_error, first, last; j 84 arch/sparc/kernel/psycho_common.c for (j = first; j < last; j++) { j 85 arch/sparc/kernel/psycho_common.c u64 errval = stc_error_buf[j]; j 91 arch/sparc/kernel/psycho_common.c j, j 1272 arch/sparc/kernel/smp_64.c unsigned int j; j 1280 arch/sparc/kernel/smp_64.c for_each_present_cpu(j) { j 1282 arch/sparc/kernel/smp_64.c cpu_data(j).core_id) j 1283 arch/sparc/kernel/smp_64.c cpumask_set_cpu(j, &cpu_core_map[i]); j 1288 arch/sparc/kernel/smp_64.c unsigned int j; j 1290 arch/sparc/kernel/smp_64.c for_each_present_cpu(j) { j 1292 arch/sparc/kernel/smp_64.c cpu_data(j).max_cache_id) j 1293 arch/sparc/kernel/smp_64.c cpumask_set_cpu(j, &cpu_core_sib_cache_map[i]); j 1295 arch/sparc/kernel/smp_64.c if (cpu_data(i).sock_id == cpu_data(j).sock_id) j 1296 arch/sparc/kernel/smp_64.c cpumask_set_cpu(j, &cpu_core_sib_map[i]); j 1301 arch/sparc/kernel/smp_64.c unsigned int j; j 1309 arch/sparc/kernel/smp_64.c for_each_present_cpu(j) { j 1311 arch/sparc/kernel/smp_64.c cpu_data(j).proc_id) j 1312 arch/sparc/kernel/smp_64.c cpumask_set_cpu(j, &per_cpu(cpu_sibling_map, i)); j 1480 arch/sparc/mm/init_64.c int i, j, err, count; j 1515 arch/sparc/mm/init_64.c for (j = 0; j < MAX_NUMNODES; j++) { j 1516 arch/sparc/mm/init_64.c numa_latency[i][j] = j 1517 arch/sparc/mm/init_64.c (numa_latency[i][j] * LOCAL_DISTANCE) / j 1578 arch/sparc/mm/init_64.c int i, j; j 1585 arch/sparc/mm/init_64.c for (j = 0; j < MAX_NUMNODES; j++) j 1586 arch/sparc/mm/init_64.c numa_latency[i][j] = (i == j) ? j 97 arch/sparc/mm/io-unit.c int i, j, k, npages; j 112 arch/sparc/mm/io-unit.c next: j = (i & 15); j 113 arch/sparc/mm/io-unit.c rotor = iounit->rotor[j - 1]; j 114 arch/sparc/mm/io-unit.c limit = iounit->limit[j]; j 120 arch/sparc/mm/io-unit.c scan = iounit->limit[j - 1]; j 131 arch/sparc/mm/io-unit.c iounit->rotor[j - 1] = (scan < limit) ? scan : iounit->limit[j - 1]; j 248 arch/sparc/mm/iommu.c int j; j 250 arch/sparc/mm/iommu.c for_each_sg(sgl, sg, nents, j) { j 19 arch/sparc/vdso/vdso2c.h unsigned long j; j 125 arch/sparc/vdso/vdso2c.h for (j = 0; j < stripped_len; j++) { j 126 arch/sparc/vdso/vdso2c.h if (j % 10 == 0) j 129 arch/sparc/vdso/vdso2c.h (int)((unsigned char *)stripped_addr)[j]); j 68 arch/um/kernel/irq.c int n, i, j; j 92 arch/um/kernel/irq.c for (j = 0; j < MAX_IRQ_TYPE ; j++) { j 93 arch/um/kernel/irq.c irq = irq_entry->irq_array[j]; j 99 arch/um/kernel/irq.c irq_entry->irq_array[j] = NULL; j 101 arch/um/kernel/mem.c int i, j; j 106 arch/um/kernel/mem.c j = pmd_index(vaddr); j 114 arch/um/kernel/mem.c for (; (j < PTRS_PER_PMD) && (vaddr < end); pmd++, j++) { j 118 arch/um/kernel/mem.c j = 0; j 282 arch/unicore32/mm/mmu.c int i, j; j 287 arch/unicore32/mm/mmu.c for (i = 0, j = 0; i < meminfo.nr_banks; i++) { j 288 arch/unicore32/mm/mmu.c struct membank *bank = &meminfo.bank[j]; j 290 arch/unicore32/mm/mmu.c j++; j 292 arch/unicore32/mm/mmu.c meminfo.nr_banks = j; j 37 arch/x86/boot/cpu.c int i, j; j 42 arch/x86/boot/cpu.c for (j = 0; j < 32; j++) { j 44 arch/x86/boot/cpu.c (msg_strs[0] == i && msg_strs[1] < j)) { j 52 arch/x86/boot/cpu.c msg_strs[1] == j && j 56 arch/x86/boot/cpu.c printf("%d:%d ", i, j); j 64 arch/x86/boot/cpu.c for (j = 0; j < 32; j++) { j 66 arch/x86/boot/cpu.c printf("%d:%d ", i, j); j 22 arch/x86/boot/mkcpustr.c int i, j; j 28 arch/x86/boot/mkcpustr.c for (j = 0; j < 32; j++) { j 29 arch/x86/boot/mkcpustr.c str = x86_cap_flags[i*32+j]; j 31 arch/x86/boot/mkcpustr.c if (i == NCAPINTS-1 && j == 31) { j 38 arch/x86/boot/mkcpustr.c i, j, str); j 43 arch/x86/boot/mkcpustr.c i, j, i, j, str); j 348 arch/x86/crypto/des3_ede_glue.c u32 i, j, tmp; j 366 arch/x86/crypto/des3_ede_glue.c j = DES3_EDE_EXPKEY_WORDS - 2; j 367 arch/x86/crypto/des3_ede_glue.c for (i = 0; i < DES3_EDE_EXPKEY_WORDS; i += 2, j -= 2) { j 371 arch/x86/crypto/des3_ede_glue.c ctx->dec.expkey[j + 0] = ctx->enc.expkey[i + 0]; j 372 arch/x86/crypto/des3_ede_glue.c ctx->dec.expkey[j + 1] = tmp; j 37 arch/x86/crypto/serpent_sse2_glue.c unsigned int j; j 39 arch/x86/crypto/serpent_sse2_glue.c for (j = 0; j < SERPENT_PARALLEL_BLOCKS - 1; j++) j 40 arch/x86/crypto/serpent_sse2_glue.c ivs[j] = src[j]; j 44 arch/x86/crypto/serpent_sse2_glue.c for (j = 0; j < SERPENT_PARALLEL_BLOCKS - 1; j++) j 45 arch/x86/crypto/serpent_sse2_glue.c u128_xor(dst + (j + 1), dst + (j + 1), ivs + j); j 17 arch/x86/entry/vdso/vdso2c.h unsigned long j; j 153 arch/x86/entry/vdso/vdso2c.h for (j = 0; j < stripped_len; j++) { j 154 arch/x86/entry/vdso/vdso2c.h if (j % 10 == 0) j 157 arch/x86/entry/vdso/vdso2c.h (int)((unsigned char *)stripped_addr)[j]); j 376 arch/x86/events/amd/iommu.c int i = 0, j; j 386 arch/x86/events/amd/iommu.c for (j = 0; j < i; j++) j 387 arch/x86/events/amd/iommu.c attrs[j] = &amd_iommu_v2_event_descs[j].attr.attr; j 1046 arch/x86/events/intel/lbr.c int i, j, type; j 1083 arch/x86/events/intel/lbr.c j = i; j 1084 arch/x86/events/intel/lbr.c while (++j < cpuc->lbr_stack.nr) j 1085 arch/x86/events/intel/lbr.c cpuc->lbr_entries[j-1] = cpuc->lbr_entries[j]; j 1195 arch/x86/events/intel/p4.c int i, j; j 1198 arch/x86/events/intel/p4.c j = bind->cntr[thread][i]; j 1199 arch/x86/events/intel/p4.c if (j != -1 && !test_bit(j, used_mask)) j 1200 arch/x86/events/intel/p4.c return j; j 912 arch/x86/events/intel/uncore.c int i, j; j 949 arch/x86/events/intel/uncore.c for (j = 0; j < i; j++) j 950 arch/x86/events/intel/uncore.c attr_group->attrs[j] = &type->event_descs[j].attr.attr; j 62 arch/x86/kernel/alternative.c int j; \ j 68 arch/x86/kernel/alternative.c for (j = 0; j < (len) - 1; j++) \ j 69 arch/x86/kernel/alternative.c printk(KERN_CONT "%02hhx ", buf[j]); \ j 70 arch/x86/kernel/alternative.c printk(KERN_CONT "%02hhx\n", buf[j]); \ j 229 arch/x86/kernel/amd_nb.c u16 i, j; j 289 arch/x86/kernel/amd_nb.c for (j = 1; j < roots_per_misc; j++) j 783 arch/x86/kernel/cpu/cacheinfo.c int j, n; j 798 arch/x86/kernel/cpu/cacheinfo.c for (j = 0 ; j < 3 ; j++) j 799 arch/x86/kernel/cpu/cacheinfo.c if (regs[j] & (1 << 31)) j 800 arch/x86/kernel/cpu/cacheinfo.c regs[j] = 0; j 803 arch/x86/kernel/cpu/cacheinfo.c for (j = 1 ; j < 16 ; j++) { j 804 arch/x86/kernel/cpu/cacheinfo.c unsigned char des = dp[j]; j 1325 arch/x86/kernel/cpu/common.c unsigned int j; j 1327 arch/x86/kernel/cpu/common.c for (j = 0; j < 2; j++) { j 1328 arch/x86/kernel/cpu/common.c if (!cpudev->c_ident[j]) j 1331 arch/x86/kernel/cpu/common.c cpudev->c_ident[j]); j 944 arch/x86/kernel/cpu/intel.c int i, j, n; j 958 arch/x86/kernel/cpu/intel.c for (j = 0 ; j < 3 ; j++) j 959 arch/x86/kernel/cpu/intel.c if (regs[j] & (1 << 31)) j 960 arch/x86/kernel/cpu/intel.c regs[j] = 0; j 963 arch/x86/kernel/cpu/intel.c for (j = 1 ; j < 16 ; j++) j 964 arch/x86/kernel/cpu/intel.c intel_tlb_lookup(desc[j]); j 2272 arch/x86/kernel/cpu/mce/core.c int i, j; j 2299 arch/x86/kernel/cpu/mce/core.c for (j = 0; j < per_cpu(mce_num_banks, cpu); j++) { j 2300 arch/x86/kernel/cpu/mce/core.c err = device_create_file(dev, &mce_bank_devs[j].attr); j 2309 arch/x86/kernel/cpu/mce/core.c while (--j >= 0) j 2310 arch/x86/kernel/cpu/mce/core.c device_remove_file(dev, &mce_bank_devs[j].attr); j 422 arch/x86/kernel/cpu/microcode/intel.c int i = 0, j; j 469 arch/x86/kernel/cpu/microcode/intel.c for (j = 0; j < ext_sigcount; j++) { j 474 arch/x86/kernel/cpu/microcode/intel.c j, sig, pf); j 35 arch/x86/kernel/early_printk.c int i, k, j; j 40 arch/x86/kernel/early_printk.c for (k = 1, j = 0; k < max_ypos; k++, j++) { j 43 arch/x86/kernel/early_printk.c VGABASE + 2*(max_xpos*j + i)); j 47 arch/x86/kernel/early_printk.c writew(0x720, VGABASE + 2*(max_xpos*j + i)); j 61 arch/x86/kernel/irq.c int j; j 64 arch/x86/kernel/irq.c for_each_online_cpu(j) j 65 arch/x86/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->__nmi_count); j 69 arch/x86/kernel/irq.c for_each_online_cpu(j) j 70 arch/x86/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->apic_timer_irqs); j 74 arch/x86/kernel/irq.c for_each_online_cpu(j) j 75 arch/x86/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->irq_spurious_count); j 78 arch/x86/kernel/irq.c for_each_online_cpu(j) j 79 arch/x86/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->apic_perf_irqs); j 82 arch/x86/kernel/irq.c for_each_online_cpu(j) j 83 arch/x86/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->apic_irq_work_irqs); j 86 arch/x86/kernel/irq.c for_each_online_cpu(j) j 87 arch/x86/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->icr_read_retry_count); j 91 arch/x86/kernel/irq.c for_each_online_cpu(j) j 92 arch/x86/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->x86_platform_ipis); j 98 arch/x86/kernel/irq.c for_each_online_cpu(j) j 99 arch/x86/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->irq_resched_count); j 102 arch/x86/kernel/irq.c for_each_online_cpu(j) j 103 arch/x86/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->irq_call_count); j 106 arch/x86/kernel/irq.c for_each_online_cpu(j) j 107 arch/x86/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->irq_tlb_count); j 112 arch/x86/kernel/irq.c for_each_online_cpu(j) j 113 arch/x86/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->irq_thermal_count); j 118 arch/x86/kernel/irq.c for_each_online_cpu(j) j 119 arch/x86/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->irq_threshold_count); j 124 arch/x86/kernel/irq.c for_each_online_cpu(j) j 125 arch/x86/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->irq_deferred_error_count); j 130 arch/x86/kernel/irq.c for_each_online_cpu(j) j 131 arch/x86/kernel/irq.c seq_printf(p, "%10u ", per_cpu(mce_exception_count, j)); j 134 arch/x86/kernel/irq.c for_each_online_cpu(j) j 135 arch/x86/kernel/irq.c seq_printf(p, "%10u ", per_cpu(mce_poll_count, j)); j 141 arch/x86/kernel/irq.c for_each_online_cpu(j) j 143 arch/x86/kernel/irq.c irq_stats(j)->irq_hv_callback_count); j 150 arch/x86/kernel/irq.c for_each_online_cpu(j) j 152 arch/x86/kernel/irq.c irq_stats(j)->irq_hv_reenlightenment_count); j 157 arch/x86/kernel/irq.c for_each_online_cpu(j) j 159 arch/x86/kernel/irq.c irq_stats(j)->hyperv_stimer0_count); j 169 arch/x86/kernel/irq.c for_each_online_cpu(j) j 170 arch/x86/kernel/irq.c seq_printf(p, "%10u ", irq_stats(j)->kvm_posted_intr_ipis); j 174 arch/x86/kernel/irq.c for_each_online_cpu(j) j 176 arch/x86/kernel/irq.c irq_stats(j)->kvm_posted_intr_nested_ipis); j 180 arch/x86/kernel/irq.c for_each_online_cpu(j) j 182 arch/x86/kernel/irq.c irq_stats(j)->kvm_posted_intr_wakeup_ipis); j 269 arch/x86/kernel/ksysfs.c int i, j, nr, ret = 0; j 301 arch/x86/kernel/ksysfs.c for (j = i - 1; j >= 0; j--) j 302 arch/x86/kernel/ksysfs.c cleanup_setup_data_node(*(kobjp + j)); j 791 arch/x86/kernel/smpboot.c int maxlvt, num_starts, j; j 847 arch/x86/kernel/smpboot.c for (j = 1; j <= num_starts; j++) { j 848 arch/x86/kernel/smpboot.c pr_debug("Sending STARTUP #%d\n", j); j 932 arch/x86/kvm/cpuid.c int j = i; j 938 arch/x86/kvm/cpuid.c j = (j + 1) % nent; j 939 arch/x86/kvm/cpuid.c ej = &vcpu->arch.cpuid_entries[j]; j 944 arch/x86/kvm/cpuid.c return j; j 1409 arch/x86/kvm/mmu.c int j; j 1411 arch/x86/kvm/mmu.c for (j = PTE_LIST_EXT - 1; !desc->sptes[j] && j > i; --j) j 1413 arch/x86/kvm/mmu.c desc->sptes[i] = desc->sptes[j]; j 1414 arch/x86/kvm/mmu.c desc->sptes[j] = NULL; j 1415 arch/x86/kvm/mmu.c if (j != 0) j 72 arch/x86/kvm/vmx/nested.c int i, j; j 77 arch/x86/kvm/vmx/nested.c for (i = j = 0; i < max_shadow_read_only_fields; i++) { j 94 arch/x86/kvm/vmx/nested.c shadow_read_only_fields[j++] = entry; j 96 arch/x86/kvm/vmx/nested.c max_shadow_read_only_fields = j; j 98 arch/x86/kvm/vmx/nested.c for (i = j = 0; i < max_shadow_read_write_fields; i++) { j 142 arch/x86/kvm/vmx/nested.c shadow_read_write_fields[j++] = entry; j 144 arch/x86/kvm/vmx/nested.c max_shadow_read_write_fields = j; j 3966 arch/x86/kvm/vmx/nested.c u32 i, j; j 4033 arch/x86/kvm/vmx/nested.c for (j = 0; j < vmcs12->vm_exit_msr_load_count; j++) { j 4034 arch/x86/kvm/vmx/nested.c gpa = vmcs12->vm_exit_msr_load_addr + (j * sizeof(h)); j 4038 arch/x86/kvm/vmx/nested.c __func__, j, gpa); j 4049 arch/x86/kvm/vmx/nested.c __func__, j, h.index, h.reserved); j 4056 arch/x86/kvm/vmx/nested.c __func__, j, h.index, h.value); j 881 arch/x86/kvm/vmx/vmx.c int i, j = 0; j 918 arch/x86/kvm/vmx/vmx.c j = find_msr(&m->host, msr); j 921 arch/x86/kvm/vmx/vmx.c (j < 0 && m->host.nr == NR_AUTOLOAD_MSRS)) { j 936 arch/x86/kvm/vmx/vmx.c if (j < 0) { j 937 arch/x86/kvm/vmx/vmx.c j = m->host.nr++; j 940 arch/x86/kvm/vmx/vmx.c m->host.val[j].index = msr; j 941 arch/x86/kvm/vmx/vmx.c m->host.val[j].value = host_val; j 4213 arch/x86/kvm/vmx/vmx.c int j = vmx->nmsrs; j 4219 arch/x86/kvm/vmx/vmx.c vmx->guest_msrs[j].index = i; j 4220 arch/x86/kvm/vmx/vmx.c vmx->guest_msrs[j].data = 0; j 4221 arch/x86/kvm/vmx/vmx.c vmx->guest_msrs[j].mask = -1ull; j 9785 arch/x86/kvm/x86.c unsigned long j; j 9787 arch/x86/kvm/x86.c for (j = 0; j < lpages; ++j) j 9788 arch/x86/kvm/x86.c linfo[j].disallow_lpage = 1; j 10122 arch/x86/kvm/x86.c u32 i, j, k; j 10124 arch/x86/kvm/x86.c i = j = kvm_async_pf_gfn_slot(vcpu, gfn); j 10128 arch/x86/kvm/x86.c j = kvm_async_pf_next_probe(j); j 10129 arch/x86/kvm/x86.c if (vcpu->arch.apf.gfns[j] == ~0) j 10131 arch/x86/kvm/x86.c k = kvm_async_pf_hash_fn(vcpu->arch.apf.gfns[j]); j 10137 arch/x86/kvm/x86.c } while ((i <= j) ? (i < k && k <= j) : (i < k || k <= j)); j 10138 arch/x86/kvm/x86.c vcpu->arch.apf.gfns[i] = vcpu->arch.apf.gfns[j]; j 10139 arch/x86/kvm/x86.c i = j; j 61 arch/x86/mm/amdtopology.c int i, j, nb; j 179 arch/x86/mm/amdtopology.c for (j = apicid_base; j < cores + apicid_base; j++) j 180 arch/x86/mm/amdtopology.c set_apicid_to_node((i << bits) + j, i); j 234 arch/x86/mm/numa.c int i, j, k; j 255 arch/x86/mm/numa.c for (j = i + 1; j < mi->nr_blks; j++) { j 256 arch/x86/mm/numa.c struct numa_memblk *bj = &mi->blk[j]; j 300 arch/x86/mm/numa.c numa_remove_memblk_from(j--, mi); j 348 arch/x86/mm/numa.c int i, j, cnt = 0; j 375 arch/x86/mm/numa.c for (j = 0; j < cnt; j++) j 376 arch/x86/mm/numa.c numa_distance[i * cnt + j] = i == j ? j 378 arch/x86/mm/numa_emulation.c int i, j, ret; j 459 arch/x86/mm/numa_emulation.c for (j = 0; j < numa_dist_cnt; j++) j 460 arch/x86/mm/numa_emulation.c phys_dist[i * numa_dist_cnt + j] = j 461 arch/x86/mm/numa_emulation.c node_distance(i, j); j 488 arch/x86/mm/numa_emulation.c for (j = 0; j < ARRAY_SIZE(emu_nid_to_phys); j++) j 489 arch/x86/mm/numa_emulation.c if (__apicid_to_node[i] == emu_nid_to_phys[j]) j 491 arch/x86/mm/numa_emulation.c __apicid_to_node[i] = j < ARRAY_SIZE(emu_nid_to_phys) ? j : 0; j 502 arch/x86/mm/numa_emulation.c for (j = 0; j < max_emu_nid + 1; j++) { j 504 arch/x86/mm/numa_emulation.c int physj = emu_nid_to_phys[j]; j 515 arch/x86/mm/numa_emulation.c numa_set_distance(i, j, dist); j 131 arch/x86/pci/irq.c int j; j 133 arch/x86/pci/irq.c for (j = 0; j < 4; j++) j 134 arch/x86/pci/irq.c DBG(" %d:%02x/%04x", j, e->irq[j].link, e->irq[j].bitmap); j 83 arch/x86/platform/efi/efi_64.c int n_pgds, i, j; j 127 arch/x86/platform/efi/efi_64.c for (j = 0; j < PTRS_PER_PUD; j++) { j 128 arch/x86/platform/efi/efi_64.c addr_pud = addr_p4d + j * PUD_SIZE; j 137 arch/x86/platform/efi/efi_64.c pud[j] = *pud_offset(p4d_k, vaddr); j 187 arch/x86/platform/intel-mid/pwr.c unsigned int j; j 190 arch/x86/platform/intel-mid/pwr.c for (j = 0; j < LSS_MAX_SHARED_DEVS; j++) { j 191 arch/x86/platform/intel-mid/pwr.c if (lss[j].pdev == pdev || !lss[j].pdev) j 196 arch/x86/platform/intel-mid/pwr.c if (j < LSS_MAX_SHARED_DEVS) { j 197 arch/x86/platform/intel-mid/pwr.c lss[j].pdev = pdev; j 198 arch/x86/platform/intel-mid/pwr.c lss[j].state = state; j 205 arch/x86/platform/intel-mid/pwr.c for (j = 0; j < LSS_MAX_SHARED_DEVS; j++) { j 206 arch/x86/platform/intel-mid/pwr.c if (lss[j].state < weakest) j 207 arch/x86/platform/intel-mid/pwr.c weakest = lss[j].state; j 400 arch/x86/platform/intel-mid/pwr.c unsigned int i, j; j 434 arch/x86/platform/intel-mid/pwr.c for (j = 0; j < LSS_MAX_SHARED_DEVS; j++) j 435 arch/x86/platform/intel-mid/pwr.c pwr->lss[i][j].state = PCI_D3hot; j 576 arch/x86/platform/uv/uv_nmi.c int i, j, k, n = num_online_cpus(); j 597 arch/x86/platform/uv/uv_nmi.c for_each_cpu(j, uv_nmi_cpu_mask) { j 598 arch/x86/platform/uv/uv_nmi.c if (uv_cpu_nmi_per(j).state) { j 599 arch/x86/platform/uv/uv_nmi.c cpumask_clear_cpu(j, uv_nmi_cpu_mask); j 402 arch/x86/power/cpu.c int i, j; j 423 arch/x86/power/cpu.c for (i = saved_msrs->num, j = 0; i < total_num; i++, j++) { j 424 arch/x86/power/cpu.c msr_array[i].info.msr_no = msr_id[j]; j 470 arch/x86/tools/relocs.c int i,j; j 490 arch/x86/tools/relocs.c for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Sym); j++) { j 491 arch/x86/tools/relocs.c Elf_Sym *sym = &sec->symtab[j]; j 503 arch/x86/tools/relocs.c int i,j; j 523 arch/x86/tools/relocs.c for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Rel); j++) { j 524 arch/x86/tools/relocs.c Elf_Rel *rel = &sec->reltab[j]; j 550 arch/x86/tools/relocs.c int j; j 556 arch/x86/tools/relocs.c for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Sym); j++) { j 559 arch/x86/tools/relocs.c sym = &sec->symtab[j]; j 565 arch/x86/tools/relocs.c j, sym->st_value, sym->st_size, j 590 arch/x86/tools/relocs.c int j; j 601 arch/x86/tools/relocs.c for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Rel); j++) { j 605 arch/x86/tools/relocs.c rel = &sec->reltab[j]; j 673 arch/x86/tools/relocs.c int j; j 686 arch/x86/tools/relocs.c for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Rel); j++) { j 687 arch/x86/tools/relocs.c Elf_Rel *rel = &sec->reltab[j]; j 42 arch/xtensa/mm/kasan_init.c unsigned long i, j; j 54 arch/xtensa/mm/kasan_init.c for (i = j = 0; i < n_pmds; ++i) { j 57 arch/xtensa/mm/kasan_init.c for (k = 0; k < PTRS_PER_PTE; ++k, ++j) { j 66 arch/xtensa/mm/kasan_init.c set_pte(pte + j, pfn_pte(PHYS_PFN(phys), PAGE_KERNEL)); j 2370 block/bfq-iosched.c int i, j; j 2373 block/bfq-iosched.c for (j = 0; j < IOPRIO_BE_NR; j++) j 2374 block/bfq-iosched.c if (bfqg->async_bfqq[i][j]) j 2375 block/bfq-iosched.c bfq_bfqq_end_wr(bfqg->async_bfqq[i][j]); j 6306 block/bfq-iosched.c int i, j; j 6309 block/bfq-iosched.c for (j = 0; j < IOPRIO_BE_NR; j++) j 6310 block/bfq-iosched.c __bfq_put_async_bfqq(bfqd, &bfqg->async_bfqq[i][j]); j 6322 block/bfq-iosched.c unsigned int i, j, min_shallow = UINT_MAX; j 6356 block/bfq-iosched.c for (j = 0; j < 2; j++) j 6357 block/bfq-iosched.c min_shallow = min(min_shallow, bfqd->word_depths[i][j]); j 1394 block/bio.c int j; j 1421 block/bio.c j = 0; j 1423 block/bio.c for (j = 0; j < npages; j++) { j 1424 block/bio.c struct page *page = pages[j]; j 1447 block/bio.c while (j < npages) j 1448 block/bio.c put_page(pages[j++]); j 2160 block/blk-mq.c unsigned int i, j, entries_per_page, max_order = 4; j 2214 block/blk-mq.c for (j = 0; j < to_do; j++) { j 2422 block/blk-mq.c unsigned int i, j; j 2440 block/blk-mq.c for (j = 0; j < set->nr_maps; j++) { j 2441 block/blk-mq.c hctx = blk_mq_map_queue_type(q, j, i); j 2479 block/blk-mq.c unsigned int i, j, hctx_idx; j 2510 block/blk-mq.c for (j = 0; j < set->nr_maps; j++) { j 2511 block/blk-mq.c if (!set->map[j].nr_queues) { j 2512 block/blk-mq.c ctx->hctxs[j] = blk_mq_map_queue_type(q, j 2517 block/blk-mq.c hctx = blk_mq_map_queue_type(q, j, i); j 2518 block/blk-mq.c ctx->hctxs[j] = hctx; j 2528 block/blk-mq.c hctx->type = j; j 2539 block/blk-mq.c for (; j < HCTX_MAX_TYPES; j++) j 2540 block/blk-mq.c ctx->hctxs[j] = blk_mq_map_queue_type(q, j 2795 block/blk-mq.c int i, j, end; j 2832 block/blk-mq.c j = q->nr_hw_queues; j 2835 block/blk-mq.c j = i; j 2840 block/blk-mq.c for (; j < end; j++) { j 2841 block/blk-mq.c struct blk_mq_hw_ctx *hctx = hctxs[j]; j 2845 block/blk-mq.c blk_mq_free_map_and_requests(set, j); j 2846 block/blk-mq.c blk_mq_exit_hctx(q, set, hctx, j); j 2847 block/blk-mq.c hctxs[j] = NULL; j 3141 block/blk-mq.c int i, j; j 3146 block/blk-mq.c for (j = 0; j < set->nr_maps; j++) { j 3147 block/blk-mq.c kfree(set->map[j].mq_map); j 3148 block/blk-mq.c set->map[j].mq_map = NULL; j 150 block/t10-pi.c unsigned int j; j 154 block/t10-pi.c for (j = 0; j < iv.bv_len; j += tuple_sz) { j 198 block/t10-pi.c unsigned int j; j 202 block/t10-pi.c for (j = 0; j < iv.bv_len && intervals; j += tuple_sz) { j 590 crypto/af_alg.c unsigned int i, j = 0; j 615 crypto/af_alg.c sg_set_page(dst + j, page, j 619 crypto/af_alg.c j++; j 535 crypto/anubis.c int j = i; j 536 crypto/anubis.c inter[i] = T0[(kappa[j--] >> 24) ]; j 537 crypto/anubis.c if (j < 0) j 538 crypto/anubis.c j = N - 1; j 539 crypto/anubis.c inter[i] ^= T1[(kappa[j--] >> 16) & 0xff]; j 540 crypto/anubis.c if (j < 0) j 541 crypto/anubis.c j = N - 1; j 542 crypto/anubis.c inter[i] ^= T2[(kappa[j--] >> 8) & 0xff]; j 543 crypto/anubis.c if (j < 0) j 544 crypto/anubis.c j = N - 1; j 545 crypto/anubis.c inter[i] ^= T3[(kappa[j ] ) & 0xff]; j 186 crypto/async_tx/async_pq.c int i, j; j 196 crypto/async_tx/async_pq.c for (i = 0, j = 0; i < src_cnt; i++) { j 199 crypto/async_tx/async_pq.c unmap->addr[j] = dma_map_page(device->dev, blocks[i], offset, j 201 crypto/async_tx/async_pq.c coefs[j] = raid6_gfexp[i]; j 203 crypto/async_tx/async_pq.c j++; j 212 crypto/async_tx/async_pq.c unmap->addr[j++] = dma_map_page(device->dev, P(blocks, disks), j 215 crypto/async_tx/async_pq.c unmap->addr[j++] = 0; j 221 crypto/async_tx/async_pq.c unmap->addr[j++] = dma_map_page(device->dev, Q(blocks, disks), j 224 crypto/async_tx/async_pq.c unmap->addr[j++] = 0; j 228 crypto/async_tx/async_pq.c tx = do_async_gen_syndrome(chan, coefs, j, unmap, dma_flags, submit); j 301 crypto/async_tx/async_pq.c int i, j = 0, src_cnt = 0; j 309 crypto/async_tx/async_pq.c unmap->addr[j] = dma_map_page(dev, blocks[i], j 312 crypto/async_tx/async_pq.c coefs[j] = raid6_gfexp[i]; j 315 crypto/async_tx/async_pq.c j++; j 325 crypto/async_tx/async_pq.c unmap->addr[j++] = pq[0]; j 335 crypto/async_tx/async_pq.c unmap->addr[j++] = pq[1]; j 176 crypto/async_tx/async_xor.c int i, j; j 182 crypto/async_tx/async_xor.c for (i = 0, j = 0; i < src_cnt; i++) { j 186 crypto/async_tx/async_xor.c unmap->addr[j++] = dma_map_page(device->dev, src_list[i], j 191 crypto/async_tx/async_xor.c unmap->addr[j] = dma_map_page(device->dev, dest, offset, len, j 119 crypto/async_tx/raid6test.c static int test_disks(int i, int j, int disks) j 127 crypto/async_tx/raid6test.c dataptrs[j] = recovj; j 129 crypto/async_tx/raid6test.c raid6_dual_recov(disks, PAGE_SIZE, i, j, dataptrs); j 132 crypto/async_tx/raid6test.c errb = memcmp(page_address(data[j]), page_address(recovj), PAGE_SIZE); j 135 crypto/async_tx/raid6test.c __func__, i, j, i, disk_type(i, disks), j, disk_type(j, disks), j 139 crypto/async_tx/raid6test.c dataptrs[j] = data[j]; j 150 crypto/async_tx/raid6test.c int i, j; j 175 crypto/async_tx/raid6test.c for (j = i+1; j < disks; j++) { j 177 crypto/async_tx/raid6test.c err += test_disks(i, j, disks); j 349 crypto/blowfish_common.c short i, j, count; j 354 crypto/blowfish_common.c for (j = 0; j < 4; j++, count++) j 362 crypto/blowfish_common.c for (j = 0, i = 0; i < 16 + 2; i++) { j 363 crypto/blowfish_common.c temp = (((u32)key[j] << 24) | j 364 crypto/blowfish_common.c ((u32)key[(j + 1) % keylen] << 16) | j 365 crypto/blowfish_common.c ((u32)key[(j + 2) % keylen] << 8) | j 366 crypto/blowfish_common.c ((u32)key[(j + 3) % keylen])); j 369 crypto/blowfish_common.c j = (j + 4) % keylen; j 383 crypto/blowfish_common.c for (j = 0, count = i * 256; j < 256; j += 2, count += 2) { j 2096 crypto/drbg.c unsigned int j = 0; /* pointer to drbg_cores */ j 2119 crypto/drbg.c for (j = 0; ARRAY_SIZE(drbg_cores) > j; j++, i++) j 2120 crypto/drbg.c drbg_fill_array(&drbg_algs[i], &drbg_cores[j], 1); j 2121 crypto/drbg.c for (j = 0; ARRAY_SIZE(drbg_cores) > j; j++, i++) j 2122 crypto/drbg.c drbg_fill_array(&drbg_algs[i], &drbg_cores[j], 0); j 623 crypto/ecc.c unsigned int j; j 625 crypto/ecc.c for (j = 0; j < ndigits * 2; ++j) { j 626 crypto/ecc.c u64 diff = v[i][j] - mod_m[j] - borrow; j 628 crypto/ecc.c if (diff != v[i][j]) j 629 crypto/ecc.c borrow = (diff > v[i][j]); j 630 crypto/ecc.c v[1 - i][j] = diff; j 263 crypto/gf128mul.c int i, j, k; j 279 crypto/gf128mul.c for (j = 1; j <= 64; j <<= 1) j 280 crypto/gf128mul.c gf128mul_x_bbe(&t->t[0]->t[j + j], &t->t[0]->t[j]); j 283 crypto/gf128mul.c for (j = 2; j < 256; j += j) j 284 crypto/gf128mul.c for (k = 1; k < j; ++k) j 285 crypto/gf128mul.c be128_xor(&t->t[i]->t[j + k], j 286 crypto/gf128mul.c &t->t[i]->t[j], &t->t[i]->t[k]); j 291 crypto/gf128mul.c for (j = 128; j > 0; j >>= 1) { j 292 crypto/gf128mul.c t->t[i]->t[j] = t->t[i - 1]->t[j]; j 293 crypto/gf128mul.c gf128mul_x8_bbe(&t->t[i]->t[j]); j 344 crypto/gf128mul.c int j, k; j 351 crypto/gf128mul.c for (j = 64; j > 0; j >>= 1) j 352 crypto/gf128mul.c gf128mul_x_lle(&t->t[j], &t->t[j+j]); j 354 crypto/gf128mul.c for (j = 2; j < 256; j += j) j 355 crypto/gf128mul.c for (k = 1; k < j; ++k) j 356 crypto/gf128mul.c be128_xor(&t->t[j + k], &t->t[j], &t->t[k]); j 366 crypto/gf128mul.c int j, k; j 373 crypto/gf128mul.c for (j = 1; j <= 64; j <<= 1) j 374 crypto/gf128mul.c gf128mul_x_bbe(&t->t[j + j], &t->t[j]); j 376 crypto/gf128mul.c for (j = 2; j < 256; j += j) j 377 crypto/gf128mul.c for (k = 1; k < j; ++k) j 378 crypto/gf128mul.c be128_xor(&t->t[j + k], &t->t[j], &t->t[k]); j 188 crypto/jitterentropy.c __u64 j = 0; j 201 crypto/jitterentropy.c for (j = 0; j < fold_loop_cnt; j++) { j 29 crypto/serpent_generic.c #define keyiter(a, b, c, d, i, j) \ j 30 crypto/serpent_generic.c ({ b ^= d; b ^= c; b ^= a; b ^= PHI ^ i; b = rol32(b, 11); k[j] = b; }) j 113 crypto/sha512_generic.c int j; j 117 crypto/sha512_generic.c for (j = 0; j < 16; j++) j 118 crypto/sha512_generic.c LOAD_OP(i + j, W, input); j 120 crypto/sha512_generic.c for (j = 0; j < 16; j++) { j 121 crypto/sha512_generic.c BLEND_OP(i + j, W); j 257 crypto/tcrypt.c unsigned int i, j, iv_len; j 353 crypto/tcrypt.c for (j = 0; j < tcount; j++) { j 354 crypto/tcrypt.c if (template[j].klen == *keysize) { j 355 crypto/tcrypt.c key = template[j].key; j 375 crypto/tcrypt.c for (j = 0; j < num_mb; ++j) { j 376 crypto/tcrypt.c struct test_mb_aead_data *cur = &data[j]; j 523 crypto/tcrypt.c unsigned int i, j; j 603 crypto/tcrypt.c for (j = 0; j < tcount; j++) { j 604 crypto/tcrypt.c if (template[j].klen == *keysize) { j 605 crypto/tcrypt.c key = template[j].key; j 816 crypto/tcrypt.c unsigned int i, j, k; j 847 crypto/tcrypt.c for (j = 0; j < XBUFSIZE; j++) { j 848 crypto/tcrypt.c sg_set_buf(data[i].sg + j, data[i].xbuf[j], PAGE_SIZE); j 849 crypto/tcrypt.c memset(data[i].xbuf[j], 0xff, PAGE_SIZE); j 1254 crypto/tcrypt.c unsigned int i, j, iv_len; j 1331 crypto/tcrypt.c for (j = 0; j < tcount; j++) { j 1332 crypto/tcrypt.c if (template[j].klen == *keysize) { j 1333 crypto/tcrypt.c key = template[j].key; j 1353 crypto/tcrypt.c for (j = 0; j < num_mb; ++j) { j 1354 crypto/tcrypt.c struct test_mb_skcipher_data *cur = &data[j]; j 1493 crypto/tcrypt.c unsigned int ret, i, j, k, iv_len; j 1551 crypto/tcrypt.c for (j = 0; j < tcount; j++) { j 1552 crypto/tcrypt.c if (template[j].klen == *keysize) { j 1553 crypto/tcrypt.c key = template[j].key; j 1574 crypto/tcrypt.c j = 1; j 1576 crypto/tcrypt.c sg_set_buf(sg + j, tvmem[j], PAGE_SIZE); j 1577 crypto/tcrypt.c memset(tvmem[j], 0xff, PAGE_SIZE); j 1578 crypto/tcrypt.c j++; j 1581 crypto/tcrypt.c sg_set_buf(sg + j, tvmem[j], k); j 1582 crypto/tcrypt.c memset(tvmem[j], 0xff, k); j 2355 crypto/testmgr.c unsigned int i, j, k; j 2371 crypto/testmgr.c j = 0; j 2379 crypto/testmgr.c j++; j 2398 crypto/testmgr.c algo, j, template[i].setkey_error, ret, j 2404 crypto/testmgr.c algo, j, template[i].setkey_error); j 2422 crypto/testmgr.c "on %s for %s\n", j, e, algo); j 3190 crypto/testmgr.c int err = 0, i, j, seedsize; j 3219 crypto/testmgr.c for (j = 0; j < template[i].loops; j++) { j 5209 crypto/testmgr.c int j; j 5238 crypto/testmgr.c j = alg_find_test(driver); j 5239 crypto/testmgr.c if (i < 0 && j < 0) j 5243 crypto/testmgr.c (j >= 0 && !alg_test_descs[j].fips_allowed))) j 5250 crypto/testmgr.c if (j >= 0 && j != i) j 5251 crypto/testmgr.c rc |= alg_test_descs[j].test(alg_test_descs + j, driver, j 529 crypto/twofish_common.c #define CALC_K_2(a, b, c, d, j) \ j 530 crypto/twofish_common.c mds[0][q0[a ^ key[(j) + 8]] ^ key[j]] \ j 531 crypto/twofish_common.c ^ mds[1][q0[b ^ key[(j) + 9]] ^ key[(j) + 1]] \ j 532 crypto/twofish_common.c ^ mds[2][q1[c ^ key[(j) + 10]] ^ key[(j) + 2]] \ j 533 crypto/twofish_common.c ^ mds[3][q1[d ^ key[(j) + 11]] ^ key[(j) + 3]] j 535 crypto/twofish_common.c #define CALC_K(a, j, k, l, m, n) \ j 539 crypto/twofish_common.c x += y; y += x; ctx->a[j] = x; \ j 540 crypto/twofish_common.c ctx->a[(j) + 1] = rol32(y, 9) j 542 crypto/twofish_common.c #define CALC_K192_2(a, b, c, d, j) \ j 543 crypto/twofish_common.c CALC_K_2 (q0[a ^ key[(j) + 16]], \ j 544 crypto/twofish_common.c q1[b ^ key[(j) + 17]], \ j 545 crypto/twofish_common.c q0[c ^ key[(j) + 18]], \ j 546 crypto/twofish_common.c q1[d ^ key[(j) + 19]], j) j 548 crypto/twofish_common.c #define CALC_K192(a, j, k, l, m, n) \ j 552 crypto/twofish_common.c x += y; y += x; ctx->a[j] = x; \ j 553 crypto/twofish_common.c ctx->a[(j) + 1] = rol32(y, 9) j 555 crypto/twofish_common.c #define CALC_K256_2(a, b, j) \ j 556 crypto/twofish_common.c CALC_K192_2 (q1[b ^ key[(j) + 24]], \ j 557 crypto/twofish_common.c q1[a ^ key[(j) + 25]], \ j 558 crypto/twofish_common.c q0[a ^ key[(j) + 26]], \ j 559 crypto/twofish_common.c q0[b ^ key[(j) + 27]], j) j 561 crypto/twofish_common.c #define CALC_K256(a, j, k, l, m, n) \ j 565 crypto/twofish_common.c x += y; y += x; ctx->a[j] = x; \ j 566 crypto/twofish_common.c ctx->a[(j) + 1] = rol32(y, 9) j 572 crypto/twofish_common.c int i, j, k; j 637 crypto/twofish_common.c for ( i = j = 0, k = 1; i < 256; i++, j += 2, k += 2 ) { j 638 crypto/twofish_common.c CALC_SB256_2( i, calc_sb_tbl[j], calc_sb_tbl[k] ); j 659 crypto/twofish_common.c for ( i = j = 0, k = 1; i < 256; i++, j += 2, k += 2 ) { j 660 crypto/twofish_common.c CALC_SB192_2( i, calc_sb_tbl[j], calc_sb_tbl[k] ); j 672 crypto/twofish_common.c for ( i = j = 0, k = 1; i < 256; i++, j += 2, k += 2 ) { j 673 crypto/twofish_common.c CALC_SB_2( i, calc_sb_tbl[j], calc_sb_tbl[k] ); j 63 crypto/xor.c unsigned long now, j; j 78 crypto/xor.c j = jiffies; j 80 crypto/xor.c while ((now = jiffies) == j) j 104 drivers/acpi/acpica/dbconvert.c u32 j; j 127 drivers/acpi/acpica/dbconvert.c for (i = 0, j = 0; string[i];) { j 128 drivers/acpi/acpica/dbconvert.c status = acpi_db_hex_byte_to_binary(&string[i], &buffer[j]); j 134 drivers/acpi/acpica/dbconvert.c j++; j 734 drivers/acpi/acpica/dbdisply.c u32 j; j 820 drivers/acpi/acpica/dbdisply.c for (j = 0; j < ACPI_GPE_REGISTER_WIDTH; j++) { j 822 drivers/acpi/acpica/dbdisply.c (i * ACPI_GPE_REGISTER_WIDTH) + j; j 357 drivers/acpi/acpica/evgpe.c u32 j; j 413 drivers/acpi/acpica/evgpe.c for (j = 0; j < ACPI_GPE_REGISTER_WIDTH; j++) { j 420 drivers/acpi/acpica/evgpe.c ACPI_GPE_REGISTER_WIDTH) + j]; j 422 drivers/acpi/acpica/evgpe.c j + gpe_register_info->base_gpe_number; j 173 drivers/acpi/acpica/evgpeblk.c u32 j; j 242 drivers/acpi/acpica/evgpeblk.c for (j = 0; j < ACPI_GPE_REGISTER_WIDTH; j++) { j 244 drivers/acpi/acpica/evgpeblk.c (u8) (this_register->base_gpe_number + j); j 413 drivers/acpi/acpica/evgpeblk.c u32 j; j 435 drivers/acpi/acpica/evgpeblk.c for (j = 0; j < ACPI_GPE_REGISTER_WIDTH; j++) { j 439 drivers/acpi/acpica/evgpeblk.c gpe_index = (i * ACPI_GPE_REGISTER_WIDTH) + j; j 278 drivers/acpi/acpica/evgpeutil.c u32 j; j 288 drivers/acpi/acpica/evgpeutil.c for (j = 0; j < ACPI_GPE_REGISTER_WIDTH; j++) { j 291 drivers/acpi/acpica/evgpeutil.c + j]; j 264 drivers/acpi/acpica/exconvrt.c u32 j; j 304 drivers/acpi/acpica/exconvrt.c for (j = 0; j < i; j++) { j 327 drivers/acpi/acpica/exconvrt.c for (i = 0, j = (hex_length - 1); i < hex_length; i++, j--) { j 332 drivers/acpi/acpica/exconvrt.c acpi_ut_hex_to_ascii_char(integer, ACPI_MUL_4(j)); j 395 drivers/acpi/acpica/nsprepkg.c u32 j; j 493 drivers/acpi/acpica/nsprepkg.c for (j = 0; j < expected_count; j++) { j 496 drivers/acpi/acpica/nsprepkg.c &sub_elements[j], j 499 drivers/acpi/acpica/nsprepkg.c object_type[j], j 500 drivers/acpi/acpica/nsprepkg.c j); j 876 drivers/acpi/acpica/nsrepair2.c u32 j; j 881 drivers/acpi/acpica/nsrepair2.c for (j = (count - 1); j >= i; j--) { j 882 drivers/acpi/acpica/nsrepair2.c obj_desc1 = elements[j - 1]->package.elements[index]; j 883 drivers/acpi/acpica/nsrepair2.c obj_desc2 = elements[j]->package.elements[index]; j 891 drivers/acpi/acpica/nsrepair2.c temp_obj = elements[j - 1]; j 892 drivers/acpi/acpica/nsrepair2.c elements[j - 1] = elements[j]; j 893 drivers/acpi/acpica/nsrepair2.c elements[j] = temp_obj; j 376 drivers/acpi/acpica/nsutils.c u32 j = 0; j 478 drivers/acpi/acpica/nsutils.c j = 0; j 481 drivers/acpi/acpica/nsutils.c (*converted_name)[j++] = internal_name[i]; j 487 drivers/acpi/acpica/nsutils.c (*converted_name)[j++] = '.'; j 492 drivers/acpi/acpica/nsutils.c ACPI_COPY_NAMESEG(&(*converted_name)[j], j 494 drivers/acpi/acpica/nsutils.c acpi_ut_repair_name(&(*converted_name)[j]); j 496 drivers/acpi/acpica/nsutils.c j += ACPI_NAMESEG_SIZE; j 137 drivers/acpi/acpica/tbxface.c u32 i, j; j 181 drivers/acpi/acpica/tbxface.c &j); j 220 drivers/acpi/acpica/tbxface.c u32 j; j 231 drivers/acpi/acpica/tbxface.c for (i = 0, j = 0; i < acpi_gbl_root_table_list.current_table_count; j 239 drivers/acpi/acpica/tbxface.c if (++j < instance) { j 301 drivers/acpi/acpica/tbxface.c u32 j; j 322 drivers/acpi/acpica/tbxface.c for (i = 0, j = 0; i < acpi_gbl_root_table_list.current_table_count; j 330 drivers/acpi/acpica/tbxface.c if (++j < instance) { j 37 drivers/acpi/acpica/utbuffer.c u32 j; j 60 drivers/acpi/acpica/utbuffer.c for (j = 0; j < 16;) { j 61 drivers/acpi/acpica/utbuffer.c if (i + j >= count) { j 66 drivers/acpi/acpica/utbuffer.c j += display; j 75 drivers/acpi/acpica/utbuffer.c buffer[(acpi_size)i + j]); j 81 drivers/acpi/acpica/utbuffer.c &buffer[(acpi_size)i + j]); j 88 drivers/acpi/acpica/utbuffer.c &buffer[(acpi_size)i + j]); j 95 drivers/acpi/acpica/utbuffer.c &buffer[(acpi_size)i + j]); j 99 drivers/acpi/acpica/utbuffer.c &buffer[(acpi_size)i + j + j 105 drivers/acpi/acpica/utbuffer.c j += display; j 113 drivers/acpi/acpica/utbuffer.c for (j = 0; j < 16; j++) { j 114 drivers/acpi/acpica/utbuffer.c if (i + j >= count) { j 123 drivers/acpi/acpica/utbuffer.c if (j == 0) { j 127 drivers/acpi/acpica/utbuffer.c buf_char = buffer[(acpi_size)i + j]; j 203 drivers/acpi/acpica/utbuffer.c u32 j; j 226 drivers/acpi/acpica/utbuffer.c for (j = 0; j < 16;) { j 227 drivers/acpi/acpica/utbuffer.c if (i + j >= count) { j 232 drivers/acpi/acpica/utbuffer.c j += display; j 241 drivers/acpi/acpica/utbuffer.c buffer[(acpi_size)i + j]); j 247 drivers/acpi/acpica/utbuffer.c &buffer[(acpi_size)i + j]); j 254 drivers/acpi/acpica/utbuffer.c &buffer[(acpi_size)i + j]); j 261 drivers/acpi/acpica/utbuffer.c &buffer[(acpi_size)i + j]); j 265 drivers/acpi/acpica/utbuffer.c &buffer[(acpi_size)i + j + j 271 drivers/acpi/acpica/utbuffer.c j += display; j 279 drivers/acpi/acpica/utbuffer.c for (j = 0; j < 16; j++) { j 280 drivers/acpi/acpica/utbuffer.c if (i + j >= count) { j 285 drivers/acpi/acpica/utbuffer.c buf_char = buffer[(acpi_size)i + j]; j 31 drivers/acpi/acpica/utownerid.c u32 j; j 57 drivers/acpi/acpica/utownerid.c for (i = 0, j = acpi_gbl_last_owner_id_index; j 58 drivers/acpi/acpica/utownerid.c i < (ACPI_NUM_OWNERID_MASKS + 1); i++, j++) { j 59 drivers/acpi/acpica/utownerid.c if (j >= ACPI_NUM_OWNERID_MASKS) { j 60 drivers/acpi/acpica/utownerid.c j = 0; /* Wraparound to start of mask array */ j 64 drivers/acpi/acpica/utownerid.c if (acpi_gbl_owner_id_mask[j] == ACPI_UINT32_MAX) { j 77 drivers/acpi/acpica/utownerid.c if (!(acpi_gbl_owner_id_mask[j] & ((u32)1 << k))) { j 83 drivers/acpi/acpica/utownerid.c acpi_gbl_owner_id_mask[j] |= ((u32)1 << k); j 85 drivers/acpi/acpica/utownerid.c acpi_gbl_last_owner_id_index = (u8)j; j 95 drivers/acpi/acpica/utownerid.c (acpi_owner_id)((k + 1) + ACPI_MUL_32(j)); j 114 drivers/acpi/acpica/utpredef.c u32 j; j 121 drivers/acpi/acpica/utpredef.c j = 1; j 130 drivers/acpi/acpica/utpredef.c strcat(buffer, &ut_rtype_names[i][j]); j 131 drivers/acpi/acpica/utpredef.c j = 0; /* Use name separator from now on */ j 426 drivers/acpi/cppc_acpi.c unsigned int i, j; j 469 drivers/acpi/cppc_acpi.c for_each_possible_cpu(j) { j 470 drivers/acpi/cppc_acpi.c if (i == j) j 473 drivers/acpi/cppc_acpi.c match_cpc_ptr = per_cpu(cpc_desc_ptr, j); j 494 drivers/acpi/cppc_acpi.c cpumask_set_cpu(j, covered_cpus); j 495 drivers/acpi/cppc_acpi.c cpumask_set_cpu(j, pr->shared_cpu_map); j 498 drivers/acpi/cppc_acpi.c for_each_possible_cpu(j) { j 499 drivers/acpi/cppc_acpi.c if (i == j) j 502 drivers/acpi/cppc_acpi.c match_pr = all_cpu_data[j]; j 506 drivers/acpi/cppc_acpi.c match_cpc_ptr = per_cpu(cpc_desc_ptr, j); j 2354 drivers/acpi/nfit/core.c int j; j 2356 drivers/acpi/nfit/core.c for (j = 0; j < nr; j++) { j 2357 drivers/acpi/nfit/core.c struct nd_mapping_desc *mapping = &ndr_desc->mapping[j]; j 188 drivers/acpi/numa.c int i, j; j 191 drivers/acpi/numa.c for (j = 0; j < d; j++) { j 192 drivers/acpi/numa.c u8 val = slit->entry[d*i + j]; j 193 drivers/acpi/numa.c if (i == j) { j 222 drivers/acpi/numa.c int i, j; j 230 drivers/acpi/numa.c for (j = 0; j < slit->locality_count; j++) { j 231 drivers/acpi/numa.c const int to_node = pxm_to_node(j); j 237 drivers/acpi/numa.c slit->entry[slit->locality_count * i + j]); j 131 drivers/acpi/power.c unsigned int j; j 135 drivers/acpi/power.c for (j = start; j < i; j++) { j 136 drivers/acpi/power.c dup = package->package.elements[j].reference.handle; j 1123 drivers/acpi/processor_idle.c int i, j, state_count = curr_level->size; j 1127 drivers/acpi/processor_idle.c for (j = 0; j < state_count; j++, t++) { j 578 drivers/acpi/processor_perflib.c unsigned int i, j; j 656 drivers/acpi/processor_perflib.c for_each_possible_cpu(j) { j 657 drivers/acpi/processor_perflib.c if (i == j) j 660 drivers/acpi/processor_perflib.c match_pr = per_cpu(processors, j); j 680 drivers/acpi/processor_perflib.c cpumask_set_cpu(j, covered_cpus); j 681 drivers/acpi/processor_perflib.c cpumask_set_cpu(j, pr->performance->shared_cpu_map); j 684 drivers/acpi/processor_perflib.c for_each_possible_cpu(j) { j 685 drivers/acpi/processor_perflib.c if (i == j) j 688 drivers/acpi/processor_perflib.c match_pr = per_cpu(processors, j); j 59 drivers/acpi/processor_throttling.c unsigned int i, j; j 116 drivers/acpi/processor_throttling.c for_each_possible_cpu(j) { j 117 drivers/acpi/processor_throttling.c if (i == j) j 120 drivers/acpi/processor_throttling.c match_pr = per_cpu(processors, j); j 145 drivers/acpi/processor_throttling.c cpumask_set_cpu(j, covered_cpus); j 146 drivers/acpi/processor_throttling.c cpumask_set_cpu(j, pthrottling->shared_cpu_map); j 149 drivers/acpi/processor_throttling.c for_each_possible_cpu(j) { j 150 drivers/acpi/processor_throttling.c if (i == j) j 153 drivers/acpi/processor_throttling.c match_pr = per_cpu(processors, j); j 238 drivers/acpi/property.c int j; j 251 drivers/acpi/property.c for (j = 0; j < value->package.count; j++) j 252 drivers/acpi/property.c switch (value->package.elements[j].type) { j 764 drivers/acpi/sleep.c int package_count = 0, j; j 769 drivers/acpi/sleep.c for (j = 0; j < package->package.count; ++j) { j 771 drivers/acpi/sleep.c &(package->package.elements[j]); j 801 drivers/acpi/sleep.c for (j = 0; j < package_count; ++j) { j 802 drivers/acpi/sleep.c union acpi_object *info_obj = &info.package[j]; j 759 drivers/acpi/thermal.c int j; j 796 drivers/acpi/thermal.c for (j = 0; j 797 drivers/acpi/thermal.c j < tz->trips.active[i].devices.count; j 798 drivers/acpi/thermal.c j++) { j 799 drivers/acpi/thermal.c handle = tz->trips.active[i].devices.handles[j]; j 1125 drivers/acpi/thermal.c int i, j, power_state, result; j 1140 drivers/acpi/thermal.c for (j = 0; j < tz->trips.active[i].devices.count; j++) { j 1142 drivers/acpi/thermal.c tz->trips.active[i].devices.handles[j], j 29 drivers/acpi/x86/apple.c unsigned int i, j = 0, newsize = 0, numprops, numvalid; j 105 drivers/acpi/x86/apple.c unsigned int k = 1 + numvalid + j * 2; /* index into newprops */ j 108 drivers/acpi/x86/apple.c newprops[1 + j].type = ACPI_TYPE_PACKAGE; j 109 drivers/acpi/x86/apple.c newprops[1 + j].package.count = 2; j 110 drivers/acpi/x86/apple.c newprops[1 + j].package.elements = &newprops[k]; j 128 drivers/acpi/x86/apple.c j++; /* count valid properties */ j 938 drivers/ata/ahci_imx.c int i, j; j 958 drivers/ata/ahci_imx.c for (j = 0; j < prop->num_values; j++) { j 959 drivers/ata/ahci_imx.c if (prop->values[j].of_value == of_val) { j 961 drivers/ata/ahci_imx.c prop->name, of_val, prop->values[j].reg_value); j 962 drivers/ata/ahci_imx.c reg_value |= prop->values[j].reg_value; j 967 drivers/ata/ahci_imx.c if (j == prop->num_values) { j 2625 drivers/ata/libata-core.c int i, j; j 2639 drivers/ata/libata-core.c j = ATA_LOG_DEVSLP_OFFSET + i; j 2640 drivers/ata/libata-core.c dev->devslp_timing[i] = sata_setting[j]; j 6199 drivers/ata/libata-core.c int i, j; j 6205 drivers/ata/libata-core.c for (i = 0, j = 0, pi = NULL; i < host->n_ports; i++) { j 6208 drivers/ata/libata-core.c if (ppi[j]) j 6209 drivers/ata/libata-core.c pi = ppi[j++]; j 361 drivers/ata/pdc_adma.c int j, len = 0; j 363 drivers/ata/pdc_adma.c for (j = 0; j < i; ++j) { j 364 drivers/ata/pdc_adma.c len += sprintf(obuf+len, "%02x ", buf[j]); j 365 drivers/ata/pdc_adma.c if ((j & 7) == 7) { j 353 drivers/atm/eni.c int i,j; j 372 drivers/atm/eni.c j = 0; j 375 drivers/atm/eni.c dma[j++] = (here << MID_DMA_COUNT_SHIFT) | (vcc->vci j 377 drivers/atm/eni.c dma[j++] = 0; j 395 drivers/atm/eni.c dma[j++] = MID_DT_WORD | (init << MID_DMA_COUNT_SHIFT) | j 397 drivers/atm/eni.c dma[j++] = paddr; j 403 drivers/atm/eni.c dma[j++] = MID_DT_16W | ((words >> 4) << j 406 drivers/atm/eni.c dma[j++] = paddr; j 413 drivers/atm/eni.c dma[j++] = MID_DT_8W | ((words >> 3) << j 416 drivers/atm/eni.c dma[j++] = paddr; j 423 drivers/atm/eni.c dma[j++] = MID_DT_4W | ((words >> 2) << j 426 drivers/atm/eni.c dma[j++] = paddr; j 433 drivers/atm/eni.c dma[j++] = MID_DT_2W | ((words >> 1) << j 436 drivers/atm/eni.c dma[j++] = paddr; j 442 drivers/atm/eni.c dma[j++] = MID_DT_WORD | (words << MID_DMA_COUNT_SHIFT) j 444 drivers/atm/eni.c dma[j++] = paddr; j 448 drivers/atm/eni.c dma[j++] = (here << MID_DMA_COUNT_SHIFT) | j 450 drivers/atm/eni.c dma[j++] = 0; j 452 drivers/atm/eni.c if (!j || j > 2*RX_DMA_BUF) { j 456 drivers/atm/eni.c dma[j-2] |= MID_DMA_END; j 457 drivers/atm/eni.c j = j >> 1; j 464 drivers/atm/eni.c if (!NEPMOK(dma_wr,j+j+1,dma_rd,NR_DMA_RX)) { /* @@@ +1 is ugly */ j 469 drivers/atm/eni.c for (i = 0; i < j; i++) { j 934 drivers/atm/eni.c static inline void put_dma(int chan,u32 *dma,int *j,dma_addr_t paddr, j 952 drivers/atm/eni.c dma[(*j)++] = MID_DT_BYTE | (init << MID_DMA_COUNT_SHIFT) | j 954 drivers/atm/eni.c dma[(*j)++] = paddr; j 965 drivers/atm/eni.c dma[(*j)++] = MID_DT_WORD | (init << MID_DMA_COUNT_SHIFT) | j 967 drivers/atm/eni.c dma[(*j)++] = paddr; j 975 drivers/atm/eni.c dma[(*j)++] = MID_DT_16W | ((words >> 4) << MID_DMA_COUNT_SHIFT) j 977 drivers/atm/eni.c dma[(*j)++] = paddr; j 986 drivers/atm/eni.c dma[(*j)++] = MID_DT_8W | ((words >> 3) << MID_DMA_COUNT_SHIFT) j 988 drivers/atm/eni.c dma[(*j)++] = paddr; j 997 drivers/atm/eni.c dma[(*j)++] = MID_DT_4W | ((words >> 2) << MID_DMA_COUNT_SHIFT) j 999 drivers/atm/eni.c dma[(*j)++] = paddr; j 1008 drivers/atm/eni.c dma[(*j)++] = MID_DT_2W | ((words >> 1) << MID_DMA_COUNT_SHIFT) j 1010 drivers/atm/eni.c dma[(*j)++] = paddr; j 1018 drivers/atm/eni.c dma[(*j)++] = MID_DT_WORD | (words << MID_DMA_COUNT_SHIFT) | j 1020 drivers/atm/eni.c dma[(*j)++] = paddr; j 1026 drivers/atm/eni.c dma[(*j)++] = MID_DT_BYTE | (size << MID_DMA_COUNT_SHIFT) | j 1028 drivers/atm/eni.c dma[(*j)++] = paddr; j 1042 drivers/atm/eni.c int aal5,dma_size,i,j; j 1121 drivers/atm/eni.c j = 0; j 1122 drivers/atm/eni.c eni_dev->dma[j++] = (((tx->tx_pos+TX_DESCR_SIZE) & (tx->words-1)) << j 1125 drivers/atm/eni.c j++; j 1127 drivers/atm/eni.c if (aal5) put_dma(tx->index,eni_dev->dma,&j,paddr,skb->len); j 1128 drivers/atm/eni.c else put_dma(tx->index,eni_dev->dma,&j,paddr+4,skb->len-4); j 1133 drivers/atm/eni.c put_dma(tx->index,eni_dev->dma,&j,(unsigned long) j 1137 drivers/atm/eni.c put_dma(tx->index,eni_dev->dma,&j,(unsigned long) j 1143 drivers/atm/eni.c put_dma(tx->index, eni_dev->dma, &j, eni_dev->zero.dma, j 1147 drivers/atm/eni.c eni_dev->dma[j++] = (((tx->tx_pos+size) & (tx->words-1)) << j 1150 drivers/atm/eni.c j++; j 1151 drivers/atm/eni.c DPRINTK("DMA at end: %d\n",j); j 1166 drivers/atm/eni.c j = j >> 1; j 1167 drivers/atm/eni.c for (i = 0; i < j; i++) { j 1604 drivers/atm/eni.c int address,i,j; j 1622 drivers/atm/eni.c for (j = 7; j >= 0; j--) { j 1623 drivers/atm/eni.c tonga = (address >> j) & 1 ? tonga | SEPROM_DATA : j 1645 drivers/atm/eni.c for (j = 7; j >= 0; j--) { j 334 drivers/atm/firestream.c int j, ch; j 339 drivers/atm/firestream.c for (j=0;j < ((len < 16)?len:16);j++) { j 340 drivers/atm/firestream.c printk ("%02x %s", ptr[j], (j==7)?" ":""); j 342 drivers/atm/firestream.c for ( ;j < 16;j++) { j 343 drivers/atm/firestream.c printk (" %s", (j==7)?" ":""); j 345 drivers/atm/firestream.c for (j=0;j < ((len < 16)?len:16);j++) { j 346 drivers/atm/firestream.c ch = ptr[j]; j 654 drivers/atm/he.c int i, j, reg; j 692 drivers/atm/he.c for (j = 0; j < 16; j++) { j 693 drivers/atm/he.c (*rategrid)[0][j] = rate; j 698 drivers/atm/he.c for (j = 0; j < 16; j++) j 700 drivers/atm/he.c (*rategrid)[i][j] = (*rategrid)[i - 1][j] / 4; j 702 drivers/atm/he.c (*rategrid)[i][j] = (*rategrid)[i - 1][j] / 2; j 2790 drivers/atm/he.c int i, j = 0; j 2808 drivers/atm/he.c he_writel(he_dev, val | clocktab[j++] | (((addr >> i) & 1) << 9), HOST_CNTL); j 2810 drivers/atm/he.c he_writel(he_dev, val | clocktab[j++] | (((addr >> i) & 1) << 9), HOST_CNTL); j 2814 drivers/atm/he.c j = 0; j 2821 drivers/atm/he.c he_writel(he_dev, val | clocktab[j++], HOST_CNTL); j 2826 drivers/atm/he.c he_writel(he_dev, val | clocktab[j++], HOST_CNTL); j 383 drivers/atm/idt77252.c int i, j; j 395 drivers/atm/idt77252.c for (i = 0, j = 0; i < 8; i++) { j 398 drivers/atm/idt77252.c idt77252_write_gp(card, gp | clktab[j++]); j 403 drivers/atm/idt77252.c idt77252_write_gp(card, gp | clktab[j++]); j 417 drivers/atm/idt77252.c int i, j; j 428 drivers/atm/idt77252.c for (i = 0, j = 0; i < 8; i++) { j 429 drivers/atm/idt77252.c idt77252_write_gp(card, gp | clktab[j++] | j 433 drivers/atm/idt77252.c idt77252_write_gp(card, gp | clktab[j++] | j 443 drivers/atm/idt77252.c for (i = 0, j = 0; i < 8; i++) { j 446 drivers/atm/idt77252.c idt77252_write_gp(card, gp | clktab[j++]); j 451 drivers/atm/idt77252.c idt77252_write_gp(card, gp | clktab[j++]); j 464 drivers/atm/idt77252.c int i, j; j 482 drivers/atm/idt77252.c for (i = 0, j = 0; i < 8; i++) { j 483 drivers/atm/idt77252.c idt77252_write_gp(card, gp | clktab[j++] | j 487 drivers/atm/idt77252.c idt77252_write_gp(card, gp | clktab[j++] | j 496 drivers/atm/idt77252.c for (i = 0, j = 0; i < 8; i++) { j 497 drivers/atm/idt77252.c idt77252_write_gp(card, gp | clktab[j++] | j 501 drivers/atm/idt77252.c idt77252_write_gp(card, gp | clktab[j++] | j 3040 drivers/atm/idt77252.c int i, j; j 3054 drivers/atm/idt77252.c for (j = 0; j < FBQ_SIZE; j++) { j 3055 drivers/atm/idt77252.c skb = card->sbpool[i].skb[j]; j 3062 drivers/atm/idt77252.c card->sbpool[i].skb[j] = NULL; j 1427 drivers/atm/iphase.c int i,j, vcsize_sel; j 1554 drivers/atm/iphase.c j = REASS_TABLE_SZ * iadev->memSize; j 1555 drivers/atm/iphase.c for(i=0; i < j; i++) j 1566 drivers/atm/iphase.c j = RX_VC_TABLE_SZ * iadev->memSize; j 1567 drivers/atm/iphase.c for(i = 0; i < j; i++) j 1583 drivers/atm/iphase.c j = REASS_TABLE_SZ * iadev->memSize; j 1584 drivers/atm/iphase.c memset ((char*)abr_vc_table, 0, j * sizeof(*abr_vc_table)); j 1585 drivers/atm/iphase.c for(i = 0; i < j; i++) { j 1604 drivers/atm/iphase.c i = (j >> 6) & 0xFF; j 1605 drivers/atm/iphase.c j += 2 * (j - 1); j 1606 drivers/atm/iphase.c i |= ((j << 2) & 0xFF00); j 198 drivers/atm/nicstar.c int i, j; j 223 drivers/atm/nicstar.c j = 0; j 227 drivers/atm/nicstar.c j++; j 229 drivers/atm/nicstar.c PRINTK("nicstar%d: %d huge buffers freed.\n", i, j); j 230 drivers/atm/nicstar.c j = 0; j 235 drivers/atm/nicstar.c j++; j 237 drivers/atm/nicstar.c PRINTK("nicstar%d: %d iovec buffers freed.\n", i, j); j 243 drivers/atm/nicstar.c for (j = 0; j < NS_FRSCD_NUM; j++) { j 244 drivers/atm/nicstar.c if (card->scd2vc[j] != NULL) j 245 drivers/atm/nicstar.c free_scq(card, card->scd2vc[j]->scq, card->scd2vc[j]->tx_vcc); j 346 drivers/atm/nicstar.c int j; j 412 drivers/atm/nicstar.c for (j = 1; j < 4; j++) { j 417 drivers/atm/nicstar.c if (j == 4) { j 541 drivers/atm/nicstar.c for (j = 0; j < NS_TSQ_NUM_ENTRIES; j++) j 542 drivers/atm/nicstar.c ns_tsi_init(card->tsq.base + j); j 560 drivers/atm/nicstar.c for (j = 0; j < NS_RSQ_NUM_ENTRIES; j++) j 561 drivers/atm/nicstar.c ns_rsqe_init(card->rsq.base + j); j 590 drivers/atm/nicstar.c for (j = 0; j < NS_TST_NUM_ENTRIES; j++) j 591 drivers/atm/nicstar.c ns_write_sram(card, NS_TST0 + j, &data, 1); j 594 drivers/atm/nicstar.c for (j = 0; j < NS_TST_NUM_ENTRIES; j++) j 595 drivers/atm/nicstar.c ns_write_sram(card, NS_TST1 + j, &data, 1); j 598 drivers/atm/nicstar.c for (j = 0; j < NS_TST_NUM_ENTRIES; j++) j 599 drivers/atm/nicstar.c card->tste2vc[j] = NULL; j 611 drivers/atm/nicstar.c for (j = 0; j < card->rct_size; j++) j 612 drivers/atm/nicstar.c ns_write_sram(card, j * 4, u32d, 4); j 616 drivers/atm/nicstar.c for (j = 0; j < NS_FRSCD_NUM; j++) j 617 drivers/atm/nicstar.c card->scd2vc[j] = NULL; j 645 drivers/atm/nicstar.c for (j = 0; j < NUM_HB; j++) { j 651 drivers/atm/nicstar.c i, j, NUM_HB); j 664 drivers/atm/nicstar.c for (j = 0; j < NUM_LB; j++) { j 670 drivers/atm/nicstar.c i, j, NUM_LB); j 680 drivers/atm/nicstar.c if (j == 1) { j 691 drivers/atm/nicstar.c i, j, bcount); j 700 drivers/atm/nicstar.c for (j = 0; j < NUM_SB; j++) { j 706 drivers/atm/nicstar.c i, j, NUM_SB); j 721 drivers/atm/nicstar.c i, j, bcount); j 730 drivers/atm/nicstar.c for (j = 0; j < NUM_IOVB; j++) { j 736 drivers/atm/nicstar.c i, j, NUM_IOVB); j 2217 drivers/atm/nicstar.c int j; j 2291 drivers/atm/nicstar.c for (j = 1; j < NS_PRV_IOVCNT(iovb); j++) { j 126 drivers/atm/nicstarmac.c int32_t i, j; j 141 drivers/atm/nicstarmac.c for (i = 7, j = 0; i >= 0; i--) { j 143 drivers/atm/nicstarmac.c (val | clocktab[j++])); j 147 drivers/atm/nicstarmac.c (val | clocktab[j++])); j 165 drivers/atm/nicstarmac.c int i, j = 0; j 180 drivers/atm/nicstarmac.c (val | clocktab[j++] | ((offset >> i) & 1))); j 183 drivers/atm/nicstarmac.c (val | clocktab[j++] | ((offset >> i) & 1))); j 187 drivers/atm/nicstarmac.c j = 0; j 192 drivers/atm/nicstarmac.c (val | clocktab[j++])); j 198 drivers/atm/nicstarmac.c (val | clocktab[j++])); j 192 drivers/auxdisplay/cfag12864b.c unsigned char i, j; j 198 drivers/auxdisplay/cfag12864b.c for (j = 0; j < CFAG12864B_ADDRESSES; j++) j 260 drivers/auxdisplay/cfag12864b.c unsigned short i, j, k, b; j 266 drivers/auxdisplay/cfag12864b.c for (j = 0; j < CFAG12864B_PAGES; j++) { j 267 drivers/auxdisplay/cfag12864b.c cfag12864b_page(j); j 275 drivers/auxdisplay/cfag12864b.c + k / 8 + (j * 8 + b) * j 28 drivers/base/regmap/regcache.c int i, j; j 78 drivers/base/regmap/regcache.c for (i = 0, j = 0; i < map->num_reg_defaults_raw; i++) { j 102 drivers/base/regmap/regcache.c map->reg_defaults[j].reg = reg; j 103 drivers/base/regmap/regcache.c map->reg_defaults[j].def = val; j 104 drivers/base/regmap/regcache.c j++; j 692 drivers/base/regmap/regmap.c int i, j; j 1084 drivers/base/regmap/regmap.c for (j = 0; j < config->num_ranges; j++) { j 1085 drivers/base/regmap/regmap.c unsigned sel_reg = config->ranges[j].selector_reg; j 1086 drivers/base/regmap/regmap.c unsigned win_min = config->ranges[j].window_start; j 1088 drivers/base/regmap/regmap.c config->ranges[j].window_len - 1; j 1091 drivers/base/regmap/regmap.c if (j == i) j 1098 drivers/base/regmap/regmap.c i, j); j 1106 drivers/base/regmap/regmap.c i, j); j 282 drivers/bcma/scan.c u8 i, j, k; j 378 drivers/bcma/scan.c for (j = 0; ; j++) { j 395 drivers/bcma/scan.c for (j = 0; ; j++) { j 404 drivers/bcma/scan.c if (i == 0 && j == 0) j 413 drivers/bcma/scan.c for (j = 0; ; j++) { j 422 drivers/bcma/scan.c if (wrappers[0] == 0 && !i && !j) j 3273 drivers/block/drbd/drbd_receiver.c int i, j; j 3473 drivers/block/drbd/drbd_receiver.c for (j = UI_HISTORY_START; j <= UI_HISTORY_END; j++) { j 3474 drivers/block/drbd/drbd_receiver.c peer = device->p_uuid[j] & ~((u64)1); j 4003 drivers/block/mtip32xx/mtip32xx.c int cpu, i = 0, j = 0; j 4074 drivers/block/mtip32xx/mtip32xx.c snprintf(&cpu_list[j], 256 - j, "%d ", cpu); j 4075 drivers/block/mtip32xx/mtip32xx.c j = strlen(cpu_list); j 4103 drivers/block/mtip32xx/mtip32xx.c for (i = 0, j = 0; i < MTIP_MAX_SLOT_GROUPS; i++) { j 4105 drivers/block/mtip32xx/mtip32xx.c snprintf(&cpu_list[j], 256 - j, "%d ", i); j 4106 drivers/block/mtip32xx/mtip32xx.c j = strlen(cpu_list); j 4109 drivers/block/mtip32xx/mtip32xx.c if (j) j 350 drivers/block/paride/bpck.c { int i, j, k, p, v, f, om, od; j 371 drivers/block/paride/bpck.c for (j=0;j<2;j++) { j 380 drivers/block/paride/bpck.c buf[2*i+1-j] = v; j 253 drivers/block/paride/epat.c { int k, j, f, cc; j 261 drivers/block/paride/epat.c for (j=0;j<2;j++) { j 262 drivers/block/paride/epat.c WRi(6,0xa0+j*0x10); j 266 drivers/block/paride/epat.c if (RRi(2) != (k^0xaa)) e[j]++; j 239 drivers/block/paride/epia.c { int j, k, f; j 243 drivers/block/paride/epia.c for (j=0;j<2;j++) { j 244 drivers/block/paride/epia.c WR(6,0xa0+j*0x10); j 248 drivers/block/paride/epia.c if (RR(2) != (k^0xaa)) e[j]++; j 185 drivers/block/paride/friq.c { int j, k, r; j 194 drivers/block/paride/friq.c for (j=0;j<2;j++) { j 195 drivers/block/paride/friq.c friq_write_regr(pi,0,6,0xa0+j*0x10); j 199 drivers/block/paride/friq.c if (friq_read_regr(pi,0,2) != (k^0xaa)) e[j]++; j 226 drivers/block/paride/frpw.c { int j, k, r; j 247 drivers/block/paride/frpw.c for (j=0;j<2;j++) { j 248 drivers/block/paride/frpw.c frpw_write_regr(pi,0,6,0xa0+j*0x10); j 252 drivers/block/paride/frpw.c if (frpw_read_regr(pi,0,2) != (k^0xaa)) e[j]++; j 172 drivers/block/paride/paride.c int j, k; j 177 drivers/block/paride/paride.c for (j = 0; j < 2; j++) { j 178 drivers/block/paride/paride.c pi_write_regr(pi, 0, 6, 0xa0 + j * 0x10); j 183 drivers/block/paride/paride.c e[j]++; j 379 drivers/block/paride/pcd.c int j, r, e, s, p; j 381 drivers/block/paride/pcd.c j = 0; j 383 drivers/block/paride/pcd.c && (j++ < PCD_SPIN)) j 386 drivers/block/paride/pcd.c if ((r & (IDE_ERR & stop)) || (j > PCD_SPIN)) { j 390 drivers/block/paride/pcd.c if (j > PCD_SPIN) j 395 drivers/block/paride/pcd.c cd->name, fun, msg, r, s, e, j, p); j 434 drivers/block/paride/pcd.c int r, d, p, n, k, j; j 438 drivers/block/paride/pcd.c j = 0; j 448 drivers/block/paride/pcd.c if ((p == 2) && (n > 0) && (j == 0)) { j 454 drivers/block/paride/pcd.c j++; j 700 drivers/block/paride/pd.c int j; j 728 drivers/block/paride/pd.c for (j = 0; j < PD_ID_LEN; j++) j 729 drivers/block/paride/pd.c id[j ^ 1] = pd_scratch[j + PD_ID_OFF]; j 730 drivers/block/paride/pd.c j = PD_ID_LEN - 1; j 731 drivers/block/paride/pd.c while ((j >= 0) && (id[j] <= 0x20)) j 732 drivers/block/paride/pd.c j--; j 733 drivers/block/paride/pd.c j++; j 734 drivers/block/paride/pd.c id[j] = 0; j 428 drivers/block/paride/pf.c int j, r, e, s, p; j 430 drivers/block/paride/pf.c j = 0; j 432 drivers/block/paride/pf.c && (j++ < PF_SPIN)) j 435 drivers/block/paride/pf.c if ((r & (STAT_ERR & stop)) || (j > PF_SPIN)) { j 439 drivers/block/paride/pf.c if (j > PF_SPIN) j 444 drivers/block/paride/pf.c pf->name, fun, msg, r, s, e, j, p); j 605 drivers/block/paride/pf.c int j, k, l; j 607 drivers/block/paride/pf.c j = 0; j 611 drivers/block/paride/pf.c l = targ[j++] = buf[k + offs]; j 613 drivers/block/paride/pf.c j--; j 614 drivers/block/paride/pf.c targ[j] = 0; j 290 drivers/block/paride/pg.c int j, r, e, s, p, to; j 294 drivers/block/paride/pg.c j = 0; j 297 drivers/block/paride/pg.c if (j++ < PG_SPIN) j 124 drivers/block/paride/ppc6lnx.c u8 i, j, k; j 174 drivers/block/paride/ppc6lnx.c j = ((i & 0x08) << 4) | ((i & 0x07) << 3); j 178 drivers/block/paride/ppc6lnx.c if (j == k) j 186 drivers/block/paride/ppc6lnx.c if (j == k) j 274 drivers/block/paride/pt.c int j, r, e, s, p; j 277 drivers/block/paride/pt.c j = 0; j 279 drivers/block/paride/pt.c && (j++ < PT_SPIN)) j 282 drivers/block/paride/pt.c if ((r & (STAT_ERR & stop)) || (j > PT_SPIN)) { j 286 drivers/block/paride/pt.c if (j > PT_SPIN) j 291 drivers/block/paride/pt.c tape->name, fun, msg, r, s, e, j, p); j 506 drivers/block/paride/pt.c int j, k, l; j 508 drivers/block/paride/pt.c j = 0; j 512 drivers/block/paride/pt.c l = targ[j++] = buf[k + offs]; j 514 drivers/block/paride/pt.c j--; j 515 drivers/block/paride/pt.c targ[j] = 0; j 1022 drivers/block/rsxx/dma.c int j; j 1035 drivers/block/rsxx/dma.c for (j = 0; j < RSXX_MAX_OUTSTANDING_CMDS; j++) { j 1036 drivers/block/rsxx/dma.c dma = get_tracker_dma(card->ctrl[i].trackers, j); j 1056 drivers/block/rsxx/dma.c push_tracker(card->ctrl[i].trackers, j); j 398 drivers/block/xen-blkback/common.h int i, n = BLKIF_MAX_SEGMENTS_PER_REQUEST, j; j 428 drivers/block/xen-blkback/common.h j = min(MAX_INDIRECT_PAGES, INDIRECT_PAGES(dst->u.indirect.nr_segments)); j 429 drivers/block/xen-blkback/common.h for (i = 0; i < j; i++) j 446 drivers/block/xen-blkback/common.h int i, n = BLKIF_MAX_SEGMENTS_PER_REQUEST, j; j 476 drivers/block/xen-blkback/common.h j = min(MAX_INDIRECT_PAGES, INDIRECT_PAGES(dst->u.indirect.nr_segments)); j 477 drivers/block/xen-blkback/common.h for (i = 0; i < j; i++) j 248 drivers/block/xen-blkback/xenbus.c unsigned int j, r; j 289 drivers/block/xen-blkback/xenbus.c for (j = 0; j < MAX_INDIRECT_SEGMENTS; j++) j 290 drivers/block/xen-blkback/xenbus.c kfree(req->segments[j]); j 292 drivers/block/xen-blkback/xenbus.c for (j = 0; j < MAX_INDIRECT_PAGES; j++) j 293 drivers/block/xen-blkback/xenbus.c kfree(req->indirect_pages[j]); j 928 drivers/block/xen-blkback/xenbus.c int err, i, j; j 984 drivers/block/xen-blkback/xenbus.c for (j = 0; j < MAX_INDIRECT_SEGMENTS; j++) { j 985 drivers/block/xen-blkback/xenbus.c req->segments[j] = kzalloc(sizeof(*req->segments[0]), GFP_KERNEL); j 986 drivers/block/xen-blkback/xenbus.c if (!req->segments[j]) j 989 drivers/block/xen-blkback/xenbus.c for (j = 0; j < MAX_INDIRECT_PAGES; j++) { j 990 drivers/block/xen-blkback/xenbus.c req->indirect_pages[j] = kzalloc(sizeof(*req->indirect_pages[0]), j 992 drivers/block/xen-blkback/xenbus.c if (!req->indirect_pages[j]) j 1009 drivers/block/xen-blkback/xenbus.c for (j = 0; j < MAX_INDIRECT_SEGMENTS; j++) { j 1010 drivers/block/xen-blkback/xenbus.c if (!req->segments[j]) j 1012 drivers/block/xen-blkback/xenbus.c kfree(req->segments[j]); j 1014 drivers/block/xen-blkback/xenbus.c for (j = 0; j < MAX_INDIRECT_PAGES; j++) { j 1015 drivers/block/xen-blkback/xenbus.c if (!req->indirect_pages[j]) j 1017 drivers/block/xen-blkback/xenbus.c kfree(req->indirect_pages[j]); j 1247 drivers/block/xen-blkfront.c int i, j, segs; j 1291 drivers/block/xen-blkfront.c for (j = 0; j < segs; j++) { j 1292 drivers/block/xen-blkfront.c persistent_gnt = rinfo->shadow[i].grants_used[j]; j 1306 drivers/block/xen-blkfront.c for (j = 0; j < INDIRECT_GREFS(segs); j++) { j 1307 drivers/block/xen-blkfront.c persistent_gnt = rinfo->shadow[i].indirect_grants[j]; j 1876 drivers/block/xen-blkfront.c unsigned int j; j 1879 drivers/block/xen-blkfront.c for (j = 0; j < BLK_RING_SIZE(info); j++) j 1880 drivers/block/xen-blkfront.c rinfo->shadow[j].req.u.rw.id = j + 1; j 2077 drivers/block/xen-blkfront.c unsigned int i, j; j 2088 drivers/block/xen-blkfront.c for (j = 0; j < BLK_RING_SIZE(info); j++) { j 2090 drivers/block/xen-blkfront.c if (!shadow[j].request) j 2096 drivers/block/xen-blkfront.c if (req_op(shadow[j].request) == REQ_OP_FLUSH || j 2097 drivers/block/xen-blkfront.c req_op(shadow[j].request) == REQ_OP_DISCARD || j 2098 drivers/block/xen-blkfront.c req_op(shadow[j].request) == REQ_OP_SECURE_ERASE || j 2099 drivers/block/xen-blkfront.c shadow[j].request->cmd_flags & REQ_FUA) { j 2107 drivers/block/xen-blkfront.c list_add(&shadow[j].request->queuelist, &info->requests); j 2110 drivers/block/xen-blkfront.c merge_bio.head = shadow[j].request->bio; j 2111 drivers/block/xen-blkfront.c merge_bio.tail = shadow[j].request->biotail; j 2113 drivers/block/xen-blkfront.c shadow[j].request->bio = NULL; j 2114 drivers/block/xen-blkfront.c blk_mq_end_request(shadow[j].request, BLK_STS_OK); j 372 drivers/block/xsysace.c int i, j; j 376 drivers/block/xsysace.c for (j = 0; j < 16; j++) { j 377 drivers/block/xsysace.c if (!(j % 4)) j 379 drivers/block/xsysace.c printk("%.2x", ptr[i + j]); j 382 drivers/block/xsysace.c for (j = 0; j < 16; j++) j 383 drivers/block/xsysace.c printk("%c", isprint(ptr[i + j]) ? ptr[i + j] : '.'); j 393 drivers/block/z2ram.c int i, j; j 405 drivers/block/z2ram.c for ( j = 0 ; j < z2_count; j++ ) j 410 drivers/block/z2ram.c for ( j = 0 ; j < chip_count; j++ ) j 665 drivers/bluetooth/bt3c_cs.c int j; j 674 drivers/bluetooth/bt3c_cs.c for (j = 0; j < 5; j++) { j 675 drivers/bluetooth/bt3c_cs.c p_dev->resource[0]->start = base[j]; j 676 drivers/bluetooth/bt3c_cs.c p_dev->io_lines = base[j] ? 16 : 3; j 321 drivers/bus/brcmstb_gisb.c unsigned int num_masters, j = 0; j 378 drivers/bus/brcmstb_gisb.c "brcm,gisb-arb-master-names", j, j 380 drivers/bus/brcmstb_gisb.c j++; j 710 drivers/bus/ti-sysc.c int i, j, nr_regs = 0, nr_matches = 0; j 722 drivers/bus/ti-sysc.c for (j = 0; j < SYSC_MAX_REGS; j++) { j 723 drivers/bus/ti-sysc.c if (ddata->offsets[j] < 0) j 726 drivers/bus/ti-sysc.c if (ddata->offsets[i] == ddata->offsets[j]) j 98 drivers/bus/uniphier-system-bus.c int i, j; j 101 drivers/bus/uniphier-system-bus.c for (j = i + 1; j < ARRAY_SIZE(priv->bank); j++) { j 102 drivers/bus/uniphier-system-bus.c if (priv->bank[i].end > priv->bank[j].base && j 103 drivers/bus/uniphier-system-bus.c priv->bank[i].base < priv->bank[j].end) { j 106 drivers/bus/uniphier-system-bus.c i, j); j 307 drivers/char/agp/ali-agp.c int j; j 314 drivers/char/agp/ali-agp.c for (j = 0; devs[j].chipset_name; j++) { j 315 drivers/char/agp/ali-agp.c if (pdev->device == devs[j].device_id) j 340 drivers/char/agp/ali-agp.c devs[j].chipset_name = "M1631"; j 343 drivers/char/agp/ali-agp.c devs[j].chipset_name = "M1632"; j 346 drivers/char/agp/ali-agp.c devs[j].chipset_name = "M1641"; j 349 drivers/char/agp/ali-agp.c devs[j].chipset_name = "M1621"; j 352 drivers/char/agp/ali-agp.c devs[j].chipset_name = "M1647"; j 355 drivers/char/agp/ali-agp.c devs[j].chipset_name = "M1651"; j 365 drivers/char/agp/ali-agp.c dev_info(&pdev->dev, "ALi %s chipset\n", devs[j].chipset_name); j 287 drivers/char/agp/amd-k7-agp.c int i, j, num_entries; j 300 drivers/char/agp/amd-k7-agp.c j = pg_start; j 301 drivers/char/agp/amd-k7-agp.c while (j < (pg_start + mem->page_count)) { j 302 drivers/char/agp/amd-k7-agp.c addr = (j * PAGE_SIZE) + agp_bridge->gart_bus_addr; j 306 drivers/char/agp/amd-k7-agp.c j++; j 314 drivers/char/agp/amd-k7-agp.c for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { j 315 drivers/char/agp/amd-k7-agp.c addr = (j * PAGE_SIZE) + agp_bridge->gart_bus_addr; j 413 drivers/char/agp/amd-k7-agp.c int j; j 419 drivers/char/agp/amd-k7-agp.c j = ent - agp_amdk7_pci_table; j 421 drivers/char/agp/amd-k7-agp.c amd_agp_device_ids[j].chipset_name); j 47 drivers/char/agp/amd64-agp.c int i, j, num_entries; j 67 drivers/char/agp/amd64-agp.c j = pg_start; j 70 drivers/char/agp/amd64-agp.c while (j < (pg_start + mem->page_count)) { j 71 drivers/char/agp/amd64-agp.c if (!PGE_EMPTY(agp_bridge, readl(agp_bridge->gatt_table+j))) j 73 drivers/char/agp/amd64-agp.c j++; j 81 drivers/char/agp/amd64-agp.c for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { j 91 drivers/char/agp/amd64-agp.c writel(pte, agp_bridge->gatt_table+j); j 92 drivers/char/agp/amd64-agp.c readl(agp_bridge->gatt_table+j); /* PCI Posting. */ j 271 drivers/char/agp/ati-agp.c int i, j, num_entries; j 288 drivers/char/agp/ati-agp.c j = pg_start; j 289 drivers/char/agp/ati-agp.c while (j < (pg_start + mem->page_count)) { j 290 drivers/char/agp/ati-agp.c addr = (j * PAGE_SIZE) + agp_bridge->gart_bus_addr; j 294 drivers/char/agp/ati-agp.c j++; j 303 drivers/char/agp/ati-agp.c for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { j 304 drivers/char/agp/ati-agp.c addr = (j * PAGE_SIZE) + agp_bridge->gart_bus_addr; j 499 drivers/char/agp/ati-agp.c int j; j 506 drivers/char/agp/ati-agp.c for (j = 0; devs[j].chipset_name; j++) { j 507 drivers/char/agp/ati-agp.c if (pdev->device == devs[j].device_id) j 525 drivers/char/agp/ati-agp.c dev_info(&pdev->dev, "Ati %s chipset\n", devs[j].chipset_name); j 1033 drivers/char/agp/generic.c off_t j; j 1084 drivers/char/agp/generic.c j = pg_start; j 1086 drivers/char/agp/generic.c while (j < (pg_start + mem->page_count)) { j 1087 drivers/char/agp/generic.c if (!PGE_EMPTY(bridge, readl(bridge->gatt_table+j))) j 1089 drivers/char/agp/generic.c j++; j 1097 drivers/char/agp/generic.c for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { j 1101 drivers/char/agp/generic.c bridge->gatt_table+j); j 1103 drivers/char/agp/generic.c readl(bridge->gatt_table+j-1); /* PCI Posting. */ j 333 drivers/char/agp/hp-agp.c off_t j, io_pg_start; j 347 drivers/char/agp/hp-agp.c j = io_pg_start; j 348 drivers/char/agp/hp-agp.c while (j < (io_pg_start + io_pg_count)) { j 349 drivers/char/agp/hp-agp.c if (hp->gatt[j]) { j 352 drivers/char/agp/hp-agp.c j++; j 360 drivers/char/agp/hp-agp.c for (i = 0, j = io_pg_start; i < mem->page_count; i++) { j 366 drivers/char/agp/hp-agp.c k++, j++, paddr += hp->io_page_size) { j 367 drivers/char/agp/hp-agp.c hp->gatt[j] = HP_ZX1_PDIR_VALID_BIT | paddr; j 297 drivers/char/agp/i460-agp.c int i, j, k, num_entries; j 316 drivers/char/agp/i460-agp.c j = io_pg_start; j 317 drivers/char/agp/i460-agp.c while (j < (io_pg_start + I460_IOPAGES_PER_KPAGE * mem->page_count)) { j 318 drivers/char/agp/i460-agp.c if (!PGE_EMPTY(agp_bridge, RD_GATT(j))) { j 320 drivers/char/agp/i460-agp.c j, RD_GATT(j)); j 323 drivers/char/agp/i460-agp.c j++; j 327 drivers/char/agp/i460-agp.c for (i = 0, j = io_pg_start; i < mem->page_count; i++) { j 329 drivers/char/agp/i460-agp.c for (k = 0; k < I460_IOPAGES_PER_KPAGE; k++, j++, paddr += io_page_size) j 330 drivers/char/agp/i460-agp.c WR_GATT(j, i460_mask_memory(agp_bridge, paddr, mem->type)); j 332 drivers/char/agp/i460-agp.c WR_FLUSH_GATT(j - 1); j 861 drivers/char/agp/intel-gtt.c int i, j; j 863 drivers/char/agp/intel-gtt.c j = pg_start; j 871 drivers/char/agp/intel-gtt.c intel_private.driver->write_entry(addr, j, flags); j 872 drivers/char/agp/intel-gtt.c j++; j 875 drivers/char/agp/intel-gtt.c readl(intel_private.gtt + j - 1); j 887 drivers/char/agp/intel-gtt.c int i, j; j 889 drivers/char/agp/intel-gtt.c for (i = 0, j = first_entry; i < num_entries; i++, j++) { j 892 drivers/char/agp/intel-gtt.c j, flags); j 203 drivers/char/agp/nvidia-agp.c int i, j; j 217 drivers/char/agp/nvidia-agp.c for (j = pg_start; j < (pg_start + mem->page_count); j++) { j 218 drivers/char/agp/nvidia-agp.c if (!PGE_EMPTY(agp_bridge, readl(agp_bridge->gatt_table+nvidia_private.pg_offset+j))) j 226 drivers/char/agp/nvidia-agp.c for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { j 229 drivers/char/agp/nvidia-agp.c agp_bridge->gatt_table+nvidia_private.pg_offset+j); j 233 drivers/char/agp/nvidia-agp.c readl(agp_bridge->gatt_table+nvidia_private.pg_offset+j - 1); j 125 drivers/char/agp/parisc-agp.c off_t j, io_pg_start; j 139 drivers/char/agp/parisc-agp.c j = io_pg_start; j 140 drivers/char/agp/parisc-agp.c while (j < (io_pg_start + io_pg_count)) { j 141 drivers/char/agp/parisc-agp.c if (info->gatt[j]) j 143 drivers/char/agp/parisc-agp.c j++; j 151 drivers/char/agp/parisc-agp.c for (i = 0, j = io_pg_start; i < mem->page_count; i++) { j 157 drivers/char/agp/parisc-agp.c k++, j++, paddr += info->io_page_size) { j 158 drivers/char/agp/parisc-agp.c info->gatt[j] = j 323 drivers/char/agp/sworks-agp.c int i, j, num_entries; j 336 drivers/char/agp/sworks-agp.c j = pg_start; j 337 drivers/char/agp/sworks-agp.c while (j < (pg_start + mem->page_count)) { j 338 drivers/char/agp/sworks-agp.c addr = (j * PAGE_SIZE) + agp_bridge->gart_bus_addr; j 342 drivers/char/agp/sworks-agp.c j++; j 350 drivers/char/agp/sworks-agp.c for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { j 351 drivers/char/agp/sworks-agp.c addr = (j * PAGE_SIZE) + agp_bridge->gart_bus_addr; j 608 drivers/char/agp/uninorth-agp.c int j; j 615 drivers/char/agp/uninorth-agp.c for (j = 0; devs[j].chipset_name != NULL; ++j) { j 616 drivers/char/agp/uninorth-agp.c if (pdev->device == devs[j].device_id) { j 618 drivers/char/agp/uninorth-agp.c devs[j].chipset_name); j 445 drivers/char/agp/via-agp.c int j = 0; j 452 drivers/char/agp/via-agp.c j = ent - agp_via_pci_table; j 453 drivers/char/agp/via-agp.c printk (KERN_INFO PFX "Detected VIA %s chipset\n", devs[j].chipset_name); j 444 drivers/char/dtlk.c int b = 0, i, j; j 458 drivers/char/dtlk.c for (j = 0; j < b; j++) j 459 drivers/char/dtlk.c printk(" %02x", buffer[j]); j 474 drivers/char/dtlk.c int b = 0, i, j; j 484 drivers/char/dtlk.c for (j = 0; j < b; j++) j 485 drivers/char/dtlk.c printk(" %02x", buffer[j]); j 783 drivers/char/hpet.c int j; j 786 drivers/char/hpet.c for (j = 0, devp = hpetp->hp_dev; j < hpetp->hp_ntimer; j++, devp++) j 157 drivers/char/hw_random/ks-sa-rng.c int j; j 159 drivers/char/hw_random/ks-sa-rng.c for (j = 0; j < SA_MAX_RNG_DATA_RETRIES; j++) { j 3397 drivers/char/ipmi/ipmi_msghandler.c int i, j; j 3431 drivers/char/ipmi/ipmi_msghandler.c for (j = 0; j < IPMI_MAX_CHANNELS; j++) { j 3432 drivers/char/ipmi/ipmi_msghandler.c intf->addrinfo[j].address = IPMI_BMC_SLAVE_ADDR; j 3433 drivers/char/ipmi/ipmi_msghandler.c intf->addrinfo[j].lun = 2; j 3441 drivers/char/ipmi/ipmi_msghandler.c for (j = 0; j < IPMI_IPMB_NUM_SEQ; j++) { j 3442 drivers/char/ipmi/ipmi_msghandler.c intf->seq_table[j].inuse = 0; j 3443 drivers/char/ipmi/ipmi_msghandler.c intf->seq_table[j].seqid = 0; j 4925 drivers/char/ipmi/ipmi_msghandler.c int j; j 5041 drivers/char/ipmi/ipmi_msghandler.c j = 0; j 5051 drivers/char/ipmi/ipmi_msghandler.c data[4] = j++; /* sequence # */ j 2037 drivers/char/ipmi/ipmi_ssif.c int j; j 2039 drivers/char/ipmi/ipmi_ssif.c for (j = 0; j < i; j++) { j 2040 drivers/char/ipmi/ipmi_ssif.c if (address_list[j] == addr) j 2044 drivers/char/ipmi/ipmi_ssif.c if (j == i) /* Didn't find it in the list. */ j 150 drivers/char/nwflash.c int i, j; j 207 drivers/char/nwflash.c j = 0; j 227 drivers/char/nwflash.c j++; j 236 drivers/char/nwflash.c if (j < 10) j 927 drivers/char/pcmcia/cm4000_cs.c int i, j, k; j 988 drivers/char/pcmcia/cm4000_cs.c j = min(count, (size_t)(dev->rlen - dev->rpos)); j 990 drivers/char/pcmcia/cm4000_cs.c if (k + j > 255) j 991 drivers/char/pcmcia/cm4000_cs.c j = 256 - k; j 992 drivers/char/pcmcia/cm4000_cs.c DEBUGP(4, dev, "read1 j=%d\n", j); j 993 drivers/char/pcmcia/cm4000_cs.c for (i = 0; i < j; i++) { j 997 drivers/char/pcmcia/cm4000_cs.c j = min(count, (size_t)(dev->rlen - dev->rpos)); j 998 drivers/char/pcmcia/cm4000_cs.c if (k + j > 255) { j 999 drivers/char/pcmcia/cm4000_cs.c DEBUGP(4, dev, "read2 j=%d\n", j); j 1002 drivers/char/pcmcia/cm4000_cs.c for (; i < j; i++) { j 1012 drivers/char/pcmcia/cm4000_cs.c j++; j 1014 drivers/char/pcmcia/cm4000_cs.c count = j; j 719 drivers/char/sonypi.c int i, j; j 724 drivers/char/sonypi.c for (j = 5; j > 0; j--) { j 739 drivers/char/sonypi.c if (j == 0) { j 827 drivers/char/sonypi.c int i, j; j 840 drivers/char/sonypi.c for (j = 0; sonypi_eventtypes[i].events[j].event; j++) { j 841 drivers/char/sonypi.c if (v1 == sonypi_eventtypes[i].events[j].data) { j 842 drivers/char/sonypi.c event = sonypi_eventtypes[i].events[j].event; j 98 drivers/char/tpm/tpm-sysfs.c u32 i, j, num_pcrs; j 119 drivers/char/tpm/tpm-sysfs.c for (j = 0; j < TPM_DIGEST_SIZE; j++) j 120 drivers/char/tpm/tpm-sysfs.c str += sprintf(str, "%02X ", digest[j]); j 439 drivers/char/tpm/tpm2-space.c int j; j 456 drivers/char/tpm/tpm2-space.c for (i = 0, j = 0; i < be32_to_cpu(data->count); i++) { j 466 drivers/char/tpm/tpm2-space.c data->handles[j] = cpu_to_be32(vhandle); j 467 drivers/char/tpm/tpm2-space.c j++; j 471 drivers/char/tpm/tpm2-space.c data->handles[j] = cpu_to_be32(phandle); j 472 drivers/char/tpm/tpm2-space.c j++; j 478 drivers/char/tpm/tpm2-space.c header->length = cpu_to_be32(TPM_HEADER_SIZE + 9 + 4 * j); j 479 drivers/char/tpm/tpm2-space.c data->count = cpu_to_be32(j); j 1850 drivers/char/virtio_console.c u32 i, j, nr_ports, nr_queues; j 1875 drivers/char/virtio_console.c j = 0; j 1876 drivers/char/virtio_console.c io_callbacks[j] = in_intr; j 1877 drivers/char/virtio_console.c io_callbacks[j + 1] = out_intr; j 1878 drivers/char/virtio_console.c io_names[j] = "input"; j 1879 drivers/char/virtio_console.c io_names[j + 1] = "output"; j 1880 drivers/char/virtio_console.c j += 2; j 1883 drivers/char/virtio_console.c io_callbacks[j] = control_intr; j 1884 drivers/char/virtio_console.c io_callbacks[j + 1] = NULL; j 1885 drivers/char/virtio_console.c io_names[j] = "control-i"; j 1886 drivers/char/virtio_console.c io_names[j + 1] = "control-o"; j 1889 drivers/char/virtio_console.c j += 2; j 1890 drivers/char/virtio_console.c io_callbacks[j] = in_intr; j 1891 drivers/char/virtio_console.c io_callbacks[j + 1] = out_intr; j 1892 drivers/char/virtio_console.c io_names[j] = "input"; j 1893 drivers/char/virtio_console.c io_names[j + 1] = "output"; j 1903 drivers/char/virtio_console.c j = 0; j 1906 drivers/char/virtio_console.c j += 2; j 1908 drivers/char/virtio_console.c portdev->c_ivq = vqs[j]; j 1909 drivers/char/virtio_console.c portdev->c_ovq = vqs[j + 1]; j 1912 drivers/char/virtio_console.c j += 2; j 1913 drivers/char/virtio_console.c portdev->in_vqs[i] = vqs[j]; j 1914 drivers/char/virtio_console.c portdev->out_vqs[i] = vqs[j + 1]; j 545 drivers/clk/bcm/clk-kona-setup.c u32 j; j 595 drivers/clk/bcm/clk-kona-setup.c for (i = 0, j = 0; i < orig_count; i++) { j 597 drivers/clk/bcm/clk-kona-setup.c parent_names[j] = clocks[i]; j 598 drivers/clk/bcm/clk-kona-setup.c parent_sel[j] = i; j 599 drivers/clk/bcm/clk-kona-setup.c j++; j 858 drivers/clk/clk-qoriq.c int i, j; j 862 drivers/clk/clk-qoriq.c for (i = 0, j = 0; i < NUM_MUX_PARENTS; i++) { j 881 drivers/clk/clk-qoriq.c parent_names[j] = div->name; j 882 drivers/clk/clk-qoriq.c hwc->parent_to_clksel[j] = i; j 883 drivers/clk/clk-qoriq.c hwc->clksel_to_parent[i] = j; j 884 drivers/clk/clk-qoriq.c j++; j 890 drivers/clk/clk-qoriq.c init.num_parents = hwc->num_parents = j; j 214 drivers/clk/mmp/clk-mix.c int i, j; j 246 drivers/clk/mmp/clk-mix.c for (j = 0; j < div_val_max; j++) { j 247 drivers/clk/mmp/clk-mix.c div = _get_div(mix, j); j 120 drivers/clk/nxp/clk-lpc18xx-ccu.c int i, j; j 126 drivers/clk/nxp/clk-lpc18xx-ccu.c for (j = 0; j < clk_data->num; j++) { j 127 drivers/clk/nxp/clk-lpc18xx-ccu.c if (!strcmp(clk_branches[i].base_name, clk_data->name[j])) j 1033 drivers/clk/renesas/renesas-cpg-mssr.c unsigned int i, j; j 1035 drivers/clk/renesas/renesas-cpg-mssr.c for (i = 0, j = 0; i < num_mod_clks && j < n; i++) j 1036 drivers/clk/renesas/renesas-cpg-mssr.c if (mod_clks[i].id == clks[j]) { j 1038 drivers/clk/renesas/renesas-cpg-mssr.c j++; j 1047 drivers/clk/renesas/renesas-cpg-mssr.c unsigned int i, j; j 1049 drivers/clk/renesas/renesas-cpg-mssr.c for (i = 0, j = 0; i < num_mod_clks && j < n; i++) j 1050 drivers/clk/renesas/renesas-cpg-mssr.c if (mod_clks[i].id == clks[j].clk) { j 1051 drivers/clk/renesas/renesas-cpg-mssr.c mod_clks[i].parent = clks[j].parent; j 1052 drivers/clk/renesas/renesas-cpg-mssr.c j++; j 29 drivers/clk/sunxi/clk-simple-gates.c int number, i = 0, j; j 69 drivers/clk/sunxi/clk-simple-gates.c for (j = 0; j < nprotected; j++) j 70 drivers/clk/sunxi/clk-simple-gates.c if (protected[j] == index) j 48 drivers/clk/sunxi/clk-sun6i-apb0-gates.c int j = 0; j 81 drivers/clk/sunxi/clk-sun6i-apb0-gates.c j, &clk_name); j 88 drivers/clk/sunxi/clk-sun6i-apb0-gates.c j++; j 99 drivers/clk/sunxi/clk-usb.c int j = 0; j 126 drivers/clk/sunxi/clk-usb.c j, &clk_name); j 132 drivers/clk/sunxi/clk-usb.c j++; j 1644 drivers/clk/tegra/clk-dfll.c int j, selector, lut; j 1653 drivers/clk/tegra/clk-dfll.c for (j = 1, rate = 0; ; rate++) { j 1667 drivers/clk/tegra/clk-dfll.c v += max(1UL, (v_max - v) / (MAX_DFLL_VOLTAGES - j)); j 1674 drivers/clk/tegra/clk-dfll.c if (selector != td->lut[j - 1]) j 1675 drivers/clk/tegra/clk-dfll.c td->lut[j++] = selector; j 1678 drivers/clk/tegra/clk-dfll.c v = (j == MAX_DFLL_VOLTAGES - 1) ? v_max : v_opp; j 1682 drivers/clk/tegra/clk-dfll.c if (selector != td->lut[j - 1]) j 1683 drivers/clk/tegra/clk-dfll.c td->lut[j++] = selector; j 1688 drivers/clk/tegra/clk-dfll.c td->lut_size = j; j 1695 drivers/clk/tegra/clk-dfll.c for (j = 0; j < td->lut_size; j++) j 1696 drivers/clk/tegra/clk-dfll.c td->lut_uv[j] = j 1698 drivers/clk/tegra/clk-dfll.c td->lut[j]); j 3469 drivers/clk/tegra/clk-tegra210.c unsigned int i, j; j 3484 drivers/clk/tegra/clk-tegra210.c for (j = 0; j < num_clks; j++) { j 3485 drivers/clk/tegra/clk-tegra210.c int clk_id = tegra210_pg_mbist_war[i].clk_init_data[j]; j 3493 drivers/clk/tegra/clk-tegra210.c clk_data[j].clk = clk; j 418 drivers/clk/zynqmp/clkc.c int j, ret; j 422 drivers/clk/zynqmp/clkc.c for (j = 0; j <= MAX_NODES; j += ARRAY_SIZE(response.topology)) { j 423 drivers/clk/zynqmp/clkc.c ret = zynqmp_pm_clock_get_topology(clock[clk_id].clk_id, j, j 484 drivers/clk/zynqmp/clkc.c int j = 0, ret; j 490 drivers/clk/zynqmp/clkc.c ret = zynqmp_pm_clock_get_parents(clock[clk_id].clk_id, j, j 495 drivers/clk/zynqmp/clkc.c ret = __zynqmp_clock_get_parents(&parents[j], &response, j 499 drivers/clk/zynqmp/clkc.c j += ARRAY_SIZE(response.parents); j 559 drivers/clk/zynqmp/clkc.c int j; j 569 drivers/clk/zynqmp/clkc.c for (j = 0; j < num_nodes; j++) { j 574 drivers/clk/zynqmp/clkc.c if (j != (num_nodes - 1)) { j 576 drivers/clk/zynqmp/clkc.c clk_type_postfix[nodes[j].type]); j 581 drivers/clk/zynqmp/clkc.c if (!clk_topology[nodes[j].type]) j 584 drivers/clk/zynqmp/clkc.c hw = (*clk_topology[nodes[j].type])(clk_out, clk_dev_id, j 587 drivers/clk/zynqmp/clkc.c &nodes[j]); j 178 drivers/clocksource/acpi_pm.c unsigned int i, j = 0; j 184 drivers/clocksource/acpi_pm.c for (j = 0; j < ACPI_PM_MONOTONICITY_CHECKS; j++) { j 185 drivers/clocksource/acpi_pm.c udelay(100 * j); j 1411 drivers/counter/104-quad-8.c int i, j; j 1457 drivers/counter/104-quad-8.c for (j = 0; j < 3; j++) j 1329 drivers/counter/counter.c size_t i, j; j 1354 drivers/counter/counter.c j = 0; j 1356 drivers/counter/counter.c group->attr_group.attrs[j++] = &p->dev_attr.attr; j 86 drivers/cpufreq/arm_big_little.c int j; j 89 drivers/cpufreq/arm_big_little.c for_each_online_cpu(j) { j 90 drivers/cpufreq/arm_big_little.c cpu_freq = per_cpu(cpu_last_req_freq, j); j 92 drivers/cpufreq/arm_big_little.c if ((cluster == per_cpu(physical_cluster, j)) && j 277 drivers/cpufreq/arm_big_little.c int i, j, k = 0, count = 1; j 291 drivers/cpufreq/arm_big_little.c for (j = 0; freq_table[i][j].frequency != CPUFREQ_TABLE_END; j 292 drivers/cpufreq/arm_big_little.c j++) { j 294 drivers/cpufreq/arm_big_little.c freq_table[i][j].frequency); j 1303 drivers/cpufreq/cpufreq.c unsigned int j; j 1368 drivers/cpufreq/cpufreq.c for_each_cpu(j, policy->related_cpus) { j 1369 drivers/cpufreq/cpufreq.c per_cpu(cpufreq_cpu_data, j) = policy; j 1370 drivers/cpufreq/cpufreq.c add_cpu_dev_symlink(policy, j); j 1493 drivers/cpufreq/cpufreq.c for_each_cpu(j, policy->real_cpus) j 1494 drivers/cpufreq/cpufreq.c remove_cpu_dev_symlink(policy, get_cpu_device(j)); j 100 drivers/cpufreq/cpufreq_governor.c unsigned int j; j 102 drivers/cpufreq/cpufreq_governor.c for_each_cpu(j, policy_dbs->policy->cpus) { j 103 drivers/cpufreq/cpufreq_governor.c struct cpu_dbs_info *j_cdbs = &per_cpu(cpu_dbs, j); j 105 drivers/cpufreq/cpufreq_governor.c j_cdbs->prev_cpu_idle = get_cpu_idle_time(j, &j_cdbs->prev_update_time, j 108 drivers/cpufreq/cpufreq_governor.c j_cdbs->prev_cpu_nice = kcpustat_cpu(j).cpustat[CPUTIME_NICE]; j 120 drivers/cpufreq/cpufreq_governor.c unsigned int sampling_rate, io_busy, j; j 137 drivers/cpufreq/cpufreq_governor.c for_each_cpu(j, policy->cpus) { j 138 drivers/cpufreq/cpufreq_governor.c struct cpu_dbs_info *j_cdbs = &per_cpu(cpu_dbs, j); j 143 drivers/cpufreq/cpufreq_governor.c cur_idle_time = get_cpu_idle_time(j, &update_time, io_busy); j 152 drivers/cpufreq/cpufreq_governor.c u64 cur_nice = kcpustat_cpu(j).cpustat[CPUTIME_NICE]; j 353 drivers/cpufreq/cpufreq_governor.c int j; j 367 drivers/cpufreq/cpufreq_governor.c for_each_cpu(j, policy->related_cpus) { j 368 drivers/cpufreq/cpufreq_governor.c struct cpu_dbs_info *j_cdbs = &per_cpu(cpu_dbs, j); j 378 drivers/cpufreq/cpufreq_governor.c int j; j 382 drivers/cpufreq/cpufreq_governor.c for_each_cpu(j, policy_dbs->policy->related_cpus) { j 383 drivers/cpufreq/cpufreq_governor.c struct cpu_dbs_info *j_cdbs = &per_cpu(cpu_dbs, j); j 510 drivers/cpufreq/cpufreq_governor.c unsigned int sampling_rate, ignore_nice, j; j 523 drivers/cpufreq/cpufreq_governor.c for_each_cpu(j, policy->cpus) { j 524 drivers/cpufreq/cpufreq_governor.c struct cpu_dbs_info *j_cdbs = &per_cpu(cpu_dbs, j); j 526 drivers/cpufreq/cpufreq_governor.c j_cdbs->prev_cpu_idle = get_cpu_idle_time(j, &j_cdbs->prev_update_time, io_busy); j 533 drivers/cpufreq/cpufreq_governor.c j_cdbs->prev_cpu_nice = kcpustat_cpu(j).cpustat[CPUTIME_NICE]; j 88 drivers/cpufreq/cpufreq_stats.c int i, j; j 113 drivers/cpufreq/cpufreq_stats.c for (j = 0; j < stats->state_num; j++) { j 117 drivers/cpufreq/cpufreq_stats.c stats->trans_table[i*stats->max_state+j]); j 338 drivers/cpufreq/imx6q-cpufreq.c u32 nr, i, j; j 435 drivers/cpufreq/imx6q-cpufreq.c for (j = 0; j < num; j++) { j 440 drivers/cpufreq/imx6q-cpufreq.c if (freq_table[j].frequency == freq) { j 451 drivers/cpufreq/imx6q-cpufreq.c for (j = 0; j < num; j++) j 452 drivers/cpufreq/imx6q-cpufreq.c imx6_soc_volt[j] = PU_SOC_VOLTAGE_NORMAL; j 426 drivers/cpufreq/longhaul.c unsigned int i, j, k = 0; j 482 drivers/cpufreq/longhaul.c for (j = 0; j < numscales; j++) { j 483 drivers/cpufreq/longhaul.c ratio = mults[j]; j 489 drivers/cpufreq/longhaul.c longhaul_table[k].driver_data = j; j 497 drivers/cpufreq/longhaul.c for (j = 0; j < k - 1; j++) { j 499 drivers/cpufreq/longhaul.c min_f = longhaul_table[j].frequency; j 500 drivers/cpufreq/longhaul.c min_i = j; j 501 drivers/cpufreq/longhaul.c for (i = j + 1; i < k; i++) { j 507 drivers/cpufreq/longhaul.c if (min_i != j) { j 508 drivers/cpufreq/longhaul.c swap(longhaul_table[j].frequency, j 510 drivers/cpufreq/longhaul.c swap(longhaul_table[j].driver_data, j 518 drivers/cpufreq/longhaul.c for (j = 0; j < k; j++) { j 519 drivers/cpufreq/longhaul.c if (mults[longhaul_table[j].driver_data & 0x1f] == mult) { j 520 drivers/cpufreq/longhaul.c longhaul_index = j; j 533 drivers/cpufreq/longhaul.c unsigned int j, speed, pos, kHz_step, numvscales; j 578 drivers/cpufreq/longhaul.c j = longhaul.bits.MinMHzBR; j 580 drivers/cpufreq/longhaul.c j += 16; j 581 drivers/cpufreq/longhaul.c min_vid_speed = eblcr[j]; j 603 drivers/cpufreq/longhaul.c cpufreq_for_each_entry_idx(freq_pos, longhaul_table, j) { j 612 drivers/cpufreq/longhaul.c speed, j, vid.mV); j 173 drivers/cpufreq/powernow-k7.c unsigned int j; j 182 drivers/cpufreq/powernow-k7.c for (j = 0 ; j < number_scales; j++) { j 185 drivers/cpufreq/powernow-k7.c powernow_table[j].frequency = (fsb * fid_codes[fid]) / 10; j 186 drivers/cpufreq/powernow-k7.c powernow_table[j].driver_data = fid; /* lower 8 bits */ j 188 drivers/cpufreq/powernow-k7.c speed = powernow_table[j].frequency; j 193 drivers/cpufreq/powernow-k7.c invalidate_entry(j); j 203 drivers/cpufreq/powernow-k7.c powernow_table[j].driver_data |= (vid << 8); /* upper 8 bits */ j 440 drivers/cpufreq/powernow-k7.c static void print_pst_entry(struct pst_s *pst, unsigned int j) j 442 drivers/cpufreq/powernow-k7.c pr_debug("PST:%d (@%p)\n", j, pst); j 451 drivers/cpufreq/powernow-k7.c unsigned int i, j; j 493 drivers/cpufreq/powernow-k7.c for (j = 0; j < psb->numpst; j++) { j 501 drivers/cpufreq/powernow-k7.c print_pst_entry(pst, j); j 495 drivers/cpufreq/powernow-k8.c unsigned int j; j 498 drivers/cpufreq/powernow-k8.c for (j = 0; j < data->numps; j++) { j 499 drivers/cpufreq/powernow-k8.c if (pst[j].vid > LEAST_VID) { j 500 drivers/cpufreq/powernow-k8.c pr_err(FW_BUG "vid %d invalid : 0x%x\n", j, j 501 drivers/cpufreq/powernow-k8.c pst[j].vid); j 504 drivers/cpufreq/powernow-k8.c if (pst[j].vid < data->rvo) { j 506 drivers/cpufreq/powernow-k8.c pr_err(FW_BUG "0 vid exceeded with pstate %d\n", j); j 509 drivers/cpufreq/powernow-k8.c if (pst[j].vid < maxvid + data->rvo) { j 511 drivers/cpufreq/powernow-k8.c pr_err(FW_BUG "maxvid exceeded with pstate %d\n", j); j 514 drivers/cpufreq/powernow-k8.c if (pst[j].fid > MAX_FID) { j 515 drivers/cpufreq/powernow-k8.c pr_err(FW_BUG "maxfid exceeded with pstate %d\n", j); j 518 drivers/cpufreq/powernow-k8.c if (j && (pst[j].fid < HI_FID_TABLE_BOTTOM)) { j 520 drivers/cpufreq/powernow-k8.c pr_err(FW_BUG "two low fids - %d : 0x%x\n", j, j 521 drivers/cpufreq/powernow-k8.c pst[j].fid); j 524 drivers/cpufreq/powernow-k8.c if (pst[j].fid < lastfid) j 525 drivers/cpufreq/powernow-k8.c lastfid = pst[j].fid; j 545 drivers/cpufreq/powernow-k8.c int j; j 546 drivers/cpufreq/powernow-k8.c for (j = 0; j < data->numps; j++) { j 547 drivers/cpufreq/powernow-k8.c if (data->powernow_table[j].frequency != j 550 drivers/cpufreq/powernow-k8.c data->powernow_table[j].driver_data & 0xff, j 551 drivers/cpufreq/powernow-k8.c data->powernow_table[j].frequency/1000, j 552 drivers/cpufreq/powernow-k8.c data->powernow_table[j].driver_data >> 8); j 563 drivers/cpufreq/powernow-k8.c unsigned int j; j 572 drivers/cpufreq/powernow-k8.c for (j = 1; j < data->numps; j++) { j 573 drivers/cpufreq/powernow-k8.c if (pst[j-1].fid >= pst[j].fid) { j 592 drivers/cpufreq/powernow-k8.c for (j = 0; j < data->numps; j++) { j 594 drivers/cpufreq/powernow-k8.c powernow_table[j].driver_data = pst[j].fid; /* lower 8 bits */ j 595 drivers/cpufreq/powernow-k8.c powernow_table[j].driver_data |= (pst[j].vid << 8); /* upper 8 bits */ j 596 drivers/cpufreq/powernow-k8.c freq = find_khz_freq_from_fid(pst[j].fid); j 597 drivers/cpufreq/powernow-k8.c powernow_table[j].frequency = freq; j 612 drivers/cpufreq/powernow-k8.c for (j = 0; j < data->numps; j++) j 613 drivers/cpufreq/powernow-k8.c if ((pst[j].fid == data->currfid) && j 614 drivers/cpufreq/powernow-k8.c (pst[j].vid == data->currvid)) j 340 drivers/cpufreq/powernv-cpufreq.c int j; j 342 drivers/cpufreq/powernv-cpufreq.c for (j = i - 1; j >= (int)powernv_pstate_info.max; j--) j 343 drivers/cpufreq/powernv-cpufreq.c powernv_freqs[j].flags = CPUFREQ_BOOST_FREQ; j 113 drivers/cpufreq/qoriq-cpufreq.c int i, j; j 116 drivers/cpufreq/qoriq-cpufreq.c for (j = 0; j < i; j++) { j 117 drivers/cpufreq/qoriq-cpufreq.c if (freq_table[j].frequency == CPUFREQ_ENTRY_INVALID || j 118 drivers/cpufreq/qoriq-cpufreq.c freq_table[j].frequency != j 132 drivers/cpufreq/qoriq-cpufreq.c int i, j, ind; j 139 drivers/cpufreq/qoriq-cpufreq.c for (j = i + 1; j < count; j++) { j 140 drivers/cpufreq/qoriq-cpufreq.c freq = freq_table[j].frequency; j 144 drivers/cpufreq/qoriq-cpufreq.c ind = j; j 426 drivers/cpufreq/speedstep-centrino.c unsigned int j, first_cpu; j 440 drivers/cpufreq/speedstep-centrino.c for_each_cpu(j, policy->cpus) { j 451 drivers/cpufreq/speedstep-centrino.c good_cpu = j; j 485 drivers/cpufreq/speedstep-centrino.c cpumask_set_cpu(j, covered_cpus); j 496 drivers/cpufreq/speedstep-centrino.c for_each_cpu(j, covered_cpus) j 497 drivers/cpufreq/speedstep-centrino.c wrmsr_on_cpu(j, MSR_IA32_PERF_CTL, oldmsr, h); j 72 drivers/cpufreq/speedstep-lib.c int i = 0, j = 0; j 95 drivers/cpufreq/speedstep-lib.c while (msr_lo != msr_decode_mult[j].bitmap) { j 96 drivers/cpufreq/speedstep-lib.c if (msr_decode_mult[j].bitmap == 0xff) j 98 drivers/cpufreq/speedstep-lib.c j++; j 102 drivers/cpufreq/speedstep-lib.c (msr_decode_mult[j].ratio * msr_decode_fsb[i].value * 100)); j 104 drivers/cpufreq/speedstep-lib.c return msr_decode_mult[j].ratio * msr_decode_fsb[i].value * 100; j 111 drivers/cpufreq/tegra186-cpufreq.c int err, i, j, num_rates = 0; j 157 drivers/cpufreq/tegra186-cpufreq.c for (i = data->vfloor, j = 0; i <= data->vceil; i++) { j 172 drivers/cpufreq/tegra186-cpufreq.c point = &table[j++]; j 178 drivers/cpufreq/tegra186-cpufreq.c table[j].frequency = CPUFREQ_TABLE_END; j 2481 drivers/crypto/atmel-aes.c int err, i, j; j 2522 drivers/crypto/atmel-aes.c for (j = 0; j < i; j++) j 2523 drivers/crypto/atmel-aes.c crypto_unregister_aead(&aes_authenc_algs[j]); j 2533 drivers/crypto/atmel-aes.c for (j = 0; j < i; j++) j 2534 drivers/crypto/atmel-aes.c crypto_unregister_alg(&aes_algs[j]); j 2556 drivers/crypto/atmel-sha.c int err, i, j; j 2590 drivers/crypto/atmel-sha.c for (j = 0; j < i; j++) j 2591 drivers/crypto/atmel-sha.c crypto_unregister_ahash(&sha_hmac_algs[j]); j 2594 drivers/crypto/atmel-sha.c for (j = 0; j < i; j++) j 2595 drivers/crypto/atmel-sha.c crypto_unregister_ahash(&sha_384_512_algs[j]); j 2600 drivers/crypto/atmel-sha.c for (j = 0; j < i; j++) j 2601 drivers/crypto/atmel-sha.c crypto_unregister_ahash(&sha_1_256_algs[j]); j 1156 drivers/crypto/atmel-tdes.c int err, i, j; j 1167 drivers/crypto/atmel-tdes.c for (j = 0; j < i; j++) j 1168 drivers/crypto/atmel-tdes.c crypto_unregister_alg(&tdes_algs[j]); j 4500 drivers/crypto/bcm/cipher.c int j; j 4512 drivers/crypto/bcm/cipher.c for (j = 0; j < CIPHER_MODE_LAST; j++) j 4513 drivers/crypto/bcm/cipher.c atomic_set(&iproc_priv.cipher_cnt[i][j], 0); j 4647 drivers/crypto/bcm/cipher.c int i, j; j 4678 drivers/crypto/bcm/cipher.c for (j = 0; j < i; j++) { j 4680 drivers/crypto/bcm/cipher.c if (!driver_algs[j].registered) j 4682 drivers/crypto/bcm/cipher.c switch (driver_algs[j].type) { j 4684 drivers/crypto/bcm/cipher.c crypto_unregister_alg(&driver_algs[j].alg.crypto); j 4685 drivers/crypto/bcm/cipher.c driver_algs[j].registered = false; j 4688 drivers/crypto/bcm/cipher.c crypto_unregister_ahash(&driver_algs[j].alg.hash); j 4689 drivers/crypto/bcm/cipher.c driver_algs[j].registered = false; j 4692 drivers/crypto/bcm/cipher.c crypto_unregister_aead(&driver_algs[j].alg.aead); j 4693 drivers/crypto/bcm/cipher.c driver_algs[j].registered = false; j 5013 drivers/crypto/caam/caamalg_qi2.c u8 j; j 5015 drivers/crypto/caam/caamalg_qi2.c j = i % priv->num_pairs; j 5018 drivers/crypto/caam/caamalg_qi2.c ppriv->req_fqid = priv->tx_queue_attr[j].fqid; j 5027 drivers/crypto/caam/caamalg_qi2.c ppriv->rsp_fqid = priv->rx_queue_attr[j].fqid; j 5028 drivers/crypto/caam/caamalg_qi2.c ppriv->prio = j; j 5030 drivers/crypto/caam/caamalg_qi2.c dev_dbg(dev, "pair %d: rx queue %d, tx queue %d\n", j, j 5031 drivers/crypto/caam/caamalg_qi2.c priv->rx_queue_attr[j].fqid, j 5032 drivers/crypto/caam/caamalg_qi2.c priv->tx_queue_attr[j].fqid); j 356 drivers/crypto/caam/pdb.h u8 j; j 381 drivers/crypto/caam/pdb.h u8 j; j 258 drivers/crypto/cavium/cpt/cptpf_main.c int j, ret = 0; j 290 drivers/crypto/cavium/cpt/cptpf_main.c for (j = 0; j < (mcode->code_size / 8); j++) j 291 drivers/crypto/cavium/cpt/cptpf_main.c ((u64 *)mcode->code)[j] = cpu_to_be64(((u64 *)mcode->code)[j]); j 293 drivers/crypto/cavium/cpt/cptpf_main.c for (j = 0; j < (mcode->code_size / 2); j++) j 294 drivers/crypto/cavium/cpt/cptpf_main.c ((u16 *)mcode->code)[j] = cpu_to_be16(((u16 *)mcode->code)[j]); j 46 drivers/crypto/cavium/cpt/cptvf_reqmanager.c int ret = 0, i, j; j 108 drivers/crypto/cavium/cpt/cptvf_reqmanager.c for (j = 0; j < i; j++) { j 109 drivers/crypto/cavium/cpt/cptvf_reqmanager.c if (list[j].dma_addr) { j 114 drivers/crypto/cavium/cpt/cptvf_reqmanager.c list[j].dma_addr = 0; j 113 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c int i, j, nr_sgcomp; j 128 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c for (j = 0; j < 4 && sg; j++) { j 129 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c sgcomp[i].len[j] = cpu_to_be16(sg_dma_len(sg)); j 130 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c sgcomp[i].dma[j] = cpu_to_be64(sg_dma_address(sg)); j 591 drivers/crypto/ccp/ccp-dev-v5.c int j; j 596 drivers/crypto/ccp/ccp-dev-v5.c for (j = 1; j < MAX_LSB_CNT; j++) { j 598 drivers/crypto/ccp/ccp-dev-v5.c bitmap_set(cmd_q->lsbmask, j, 1); j 239 drivers/crypto/chelsio/chcr_algo.c int i, j, k; j 277 drivers/crypto/chelsio/chcr_algo.c for (k = 0, j = i % nk; k < nk; k++) { j 278 drivers/crypto/chelsio/chcr_algo.c *((u32 *)dec_key + k) = htonl(w_ring[j]); j 279 drivers/crypto/chelsio/chcr_algo.c j--; j 280 drivers/crypto/chelsio/chcr_algo.c if (j < 0) j 281 drivers/crypto/chelsio/chcr_algo.c j += nk; j 414 drivers/crypto/chelsio/chcr_algo.c int j; j 418 drivers/crypto/chelsio/chcr_algo.c j = walk->nents; j 419 drivers/crypto/chelsio/chcr_algo.c walk->to->len[j % 8] = htons(size); j 420 drivers/crypto/chelsio/chcr_algo.c walk->to->addr[j % 8] = cpu_to_be64(addr); j 421 drivers/crypto/chelsio/chcr_algo.c j++; j 422 drivers/crypto/chelsio/chcr_algo.c if ((j % 8) == 0) j 424 drivers/crypto/chelsio/chcr_algo.c walk->nents = j; j 434 drivers/crypto/chelsio/chcr_algo.c unsigned int j = walk->nents; j 455 drivers/crypto/chelsio/chcr_algo.c walk->to->len[j % 8] = htons(ent_len); j 456 drivers/crypto/chelsio/chcr_algo.c walk->to->addr[j % 8] = cpu_to_be64(sg_dma_address(sg) + j 460 drivers/crypto/chelsio/chcr_algo.c j++; j 461 drivers/crypto/chelsio/chcr_algo.c if ((j % 8) == 0) j 471 drivers/crypto/chelsio/chcr_algo.c walk->nents = j; j 231 drivers/crypto/chelsio/chtls/chtls_main.c int i, j; j 283 drivers/crypto/chelsio/chtls/chtls_main.c for (j = 0; j < i; j++) j 284 drivers/crypto/chelsio/chtls/chtls_main.c kfree_skb(cdev->rspq_skb_cache[j]); j 1205 drivers/crypto/hisilicon/sec/sec_drv.c int i, j; j 1264 drivers/crypto/hisilicon/sec/sec_drv.c for (j = i - 1; j >= 0; j--) { j 1265 drivers/crypto/hisilicon/sec/sec_drv.c sec_queue_irq_uninit(&info->queues[j]); j 1266 drivers/crypto/hisilicon/sec/sec_drv.c sec_queue_unconfig(info, &info->queues[j]); j 145 drivers/crypto/hisilicon/zip/zip_crypto.c int ret, i, j; j 167 drivers/crypto/hisilicon/zip/zip_crypto.c for (j = i - 1; j >= 0; j--) j 168 drivers/crypto/hisilicon/zip/zip_crypto.c hisi_zip_release_qp(&hisi_zip_ctx->qp_ctx[j]); j 391 drivers/crypto/inside-secure/safexcel.c int i, j, ret = 0, pe; j 439 drivers/crypto/inside-secure/safexcel.c for (j = 0; j < i; j++) j 440 drivers/crypto/inside-secure/safexcel.c release_firmware(fw[j]); j 1178 drivers/crypto/inside-secure/safexcel.c int i, j, ret = 0; j 1203 drivers/crypto/inside-secure/safexcel.c for (j = 0; j < i; j++) { j 1205 drivers/crypto/inside-secure/safexcel.c if ((safexcel_algs[j]->algo_mask & priv->hwconfig.algo_flags) != j 1206 drivers/crypto/inside-secure/safexcel.c safexcel_algs[j]->algo_mask) j 1210 drivers/crypto/inside-secure/safexcel.c if (safexcel_algs[j]->type == SAFEXCEL_ALG_TYPE_SKCIPHER) j 1211 drivers/crypto/inside-secure/safexcel.c crypto_unregister_skcipher(&safexcel_algs[j]->alg.skcipher); j 1212 drivers/crypto/inside-secure/safexcel.c else if (safexcel_algs[j]->type == SAFEXCEL_ALG_TYPE_AEAD) j 1213 drivers/crypto/inside-secure/safexcel.c crypto_unregister_aead(&safexcel_algs[j]->alg.aead); j 1215 drivers/crypto/inside-secure/safexcel.c crypto_unregister_ahash(&safexcel_algs[j]->alg.ahash); j 193 drivers/crypto/marvell/cesa.c int i, j; j 210 drivers/crypto/marvell/cesa.c for (j = 0; j < i; j++) j 211 drivers/crypto/marvell/cesa.c crypto_unregister_ahash(cesa->caps->ahash_algs[j]); j 215 drivers/crypto/marvell/cesa.c for (j = 0; j < i; j++) j 216 drivers/crypto/marvell/cesa.c crypto_unregister_skcipher(cesa->caps->cipher_algs[j]); j 804 drivers/crypto/n2_core.c int i, j, k; j 808 drivers/crypto/n2_core.c j = k = 0; j 815 drivers/crypto/n2_core.c j = (j + key[k] + a) & 0xff; j 816 drivers/crypto/n2_core.c s[i] = s[j]; j 817 drivers/crypto/n2_core.c s[j] = a; j 1127 drivers/crypto/omap-aes.c int err = -ENOMEM, i, j, irq = -1; j 1215 drivers/crypto/omap-aes.c for (j = 0; j < dd->pdata->algs_info[i].size; j++) { j 1216 drivers/crypto/omap-aes.c algp = &dd->pdata->algs_info[i].algs_list[j]; j 1259 drivers/crypto/omap-aes.c for (j = dd->pdata->algs_info[i].registered - 1; j >= 0; j--) j 1261 drivers/crypto/omap-aes.c &dd->pdata->algs_info[i].algs_list[j]); j 1282 drivers/crypto/omap-aes.c int i, j; j 1292 drivers/crypto/omap-aes.c for (j = dd->pdata->algs_info[i].registered - 1; j >= 0; j--) j 1294 drivers/crypto/omap-aes.c &dd->pdata->algs_info[i].algs_list[j]); j 981 drivers/crypto/omap-des.c int err = -ENOMEM, i, j, irq = -1; j 1071 drivers/crypto/omap-des.c for (j = 0; j < dd->pdata->algs_info[i].size; j++) { j 1072 drivers/crypto/omap-des.c algp = &dd->pdata->algs_info[i].algs_list[j]; j 1088 drivers/crypto/omap-des.c for (j = dd->pdata->algs_info[i].registered - 1; j >= 0; j--) j 1090 drivers/crypto/omap-des.c &dd->pdata->algs_info[i].algs_list[j]); j 1111 drivers/crypto/omap-des.c int i, j; j 1121 drivers/crypto/omap-des.c for (j = dd->pdata->algs_info[i].registered - 1; j >= 0; j--) j 1123 drivers/crypto/omap-des.c &dd->pdata->algs_info[i].algs_list[j]); j 2088 drivers/crypto/omap-sham.c int err, i, j; j 2166 drivers/crypto/omap-sham.c for (j = 0; j < dd->pdata->algs_info[i].size; j++) { j 2169 drivers/crypto/omap-sham.c alg = &dd->pdata->algs_info[i].algs_list[j]; j 2192 drivers/crypto/omap-sham.c for (j = dd->pdata->algs_info[i].registered - 1; j >= 0; j--) j 2194 drivers/crypto/omap-sham.c &dd->pdata->algs_info[i].algs_list[j]); j 2208 drivers/crypto/omap-sham.c int i, j; j 2217 drivers/crypto/omap-sham.c for (j = dd->pdata->algs_info[i].registered - 1; j >= 0; j--) j 2219 drivers/crypto/omap-sham.c &dd->pdata->algs_info[i].algs_list[j]); j 631 drivers/crypto/qat/qat_common/qat_uclo.c int i, j; j 640 drivers/crypto/qat/qat_common/qat_uclo.c for (j = 0; j < max_image; j++) { j 650 drivers/crypto/qat/qat_common/qat_uclo.c ae_uimage[j].ae_reg_num = ae_regtab->entry_num; j 651 drivers/crypto/qat/qat_common/qat_uclo.c ae_uimage[j].ae_reg = (struct icp_qat_uof_ae_reg *) j 657 drivers/crypto/qat/qat_common/qat_uclo.c ae_uimage[j].init_regsym_num = init_reg_sym_tab->entry_num; j 658 drivers/crypto/qat/qat_common/qat_uclo.c ae_uimage[j].init_regsym = (struct icp_qat_uof_init_regsym *) j 663 drivers/crypto/qat/qat_common/qat_uclo.c ae_uimage[j].sbreak_num = sbreak_tab->entry_num; j 664 drivers/crypto/qat/qat_common/qat_uclo.c ae_uimage[j].sbreak = (struct icp_qat_uof_sbreak *) j 667 drivers/crypto/qat/qat_common/qat_uclo.c ae_uimage[j].img_ptr = image; j 670 drivers/crypto/qat/qat_common/qat_uclo.c ae_uimage[j].page = j 673 drivers/crypto/qat/qat_common/qat_uclo.c if (!ae_uimage[j].page) j 676 drivers/crypto/qat/qat_common/qat_uclo.c ae_uimage[j].page); j 678 drivers/crypto/qat/qat_common/qat_uclo.c return j; j 680 drivers/crypto/qat/qat_common/qat_uclo.c for (i = 0; i < j; i++) j 175 drivers/crypto/qce/common.c u32 i, j; j 182 drivers/crypto/qce/common.c for (i = (QCE_AES_IV_LENGTH - ivsize), j = ivsize - 1; j 183 drivers/crypto/qce/common.c i < QCE_AES_IV_LENGTH; i++, j--) j 184 drivers/crypto/qce/common.c swap[i] = src[j]; j 2196 drivers/crypto/s5p-sss.c int i, j, err = -ENODEV; j 2329 drivers/crypto/s5p-sss.c for (j = hash_i - 1; j >= 0; j--) j 2330 drivers/crypto/s5p-sss.c crypto_unregister_ahash(&algs_sha1_md5_sha256[j]); j 2340 drivers/crypto/s5p-sss.c for (j = 0; j < i; j++) j 2341 drivers/crypto/s5p-sss.c crypto_unregister_alg(&algs[j]); j 446 drivers/crypto/sahara.c int i, j; j 516 drivers/crypto/sahara.c for (j = i; j < dev->nb_out_sg + i; j++) { j 517 drivers/crypto/sahara.c dev->hw_link[j]->len = sg->length; j 518 drivers/crypto/sahara.c dev->hw_link[j]->p = sg->dma_address; j 519 drivers/crypto/sahara.c if (j == (dev->nb_out_sg + i - 1)) { j 520 drivers/crypto/sahara.c dev->hw_link[j]->next = 0; j 522 drivers/crypto/sahara.c dev->hw_link[j]->next = dev->hw_phys_link[j + 1]; j 1318 drivers/crypto/sahara.c unsigned int i, j, k, l; j 1342 drivers/crypto/sahara.c for (j = 0; j < l; j++) j 1343 drivers/crypto/sahara.c crypto_unregister_ahash(&sha_v4_algs[j]); j 1346 drivers/crypto/sahara.c for (j = 0; j < k; j++) j 1347 drivers/crypto/sahara.c crypto_unregister_ahash(&sha_v3_algs[j]); j 1350 drivers/crypto/sahara.c for (j = 0; j < i; j++) j 1351 drivers/crypto/sahara.c crypto_unregister_alg(&aes_algs[j]); j 1105 drivers/crypto/stm32/stm32-cryp.c unsigned int i, j; j 1177 drivers/crypto/stm32/stm32-cryp.c for (j = 0; j < cryp->total_out; j++) { j 1235 drivers/crypto/stm32/stm32-cryp.c unsigned int i, j; j 1263 drivers/crypto/stm32/stm32-cryp.c for (j = 0; j < cryp->total_out - tag_size; j++) { j 1276 drivers/crypto/stm32/stm32-cryp.c unsigned int i, j; j 1302 drivers/crypto/stm32/stm32-cryp.c for (j = 0; j < cryp->total_in - tag_size; j++) { j 1303 drivers/crypto/stm32/stm32-cryp.c d8[j] = *((u8 *)src); j 1532 drivers/crypto/stm32/stm32-cryp.c unsigned int i, j; j 1547 drivers/crypto/stm32/stm32-cryp.c for (j = i + 1; j < AES_BLOCK_32; j++) j 1584 drivers/crypto/stm32/stm32-cryp.c unsigned int i = 0, j, k; j 1646 drivers/crypto/stm32/stm32-cryp.c for (j = i + 1; j < AES_BLOCK_32; j++) j 1333 drivers/crypto/stm32/stm32-hash.c unsigned int i, j; j 1337 drivers/crypto/stm32/stm32-hash.c for (j = 0; j < hdev->pdata->algs_info[i].size; j++) { j 1339 drivers/crypto/stm32/stm32-hash.c &hdev->pdata->algs_info[i].algs_list[j]); j 1347 drivers/crypto/stm32/stm32-hash.c dev_err(hdev->dev, "Algo %d : %d failed\n", i, j); j 1349 drivers/crypto/stm32/stm32-hash.c for (; j--;) j 1351 drivers/crypto/stm32/stm32-hash.c &hdev->pdata->algs_info[i].algs_list[j]); j 1359 drivers/crypto/stm32/stm32-hash.c unsigned int i, j; j 1362 drivers/crypto/stm32/stm32-hash.c for (j = 0; j < hdev->pdata->algs_info[i].size; j++) j 1364 drivers/crypto/stm32/stm32-hash.c &hdev->pdata->algs_info[i].algs_list[j]); j 176 drivers/crypto/sunxi-ss/sun4i-ss-hash.c unsigned int i = 0, end, fill, min_fill, nwait, nbw = 0, j = 0, todo; j 408 drivers/crypto/sunxi-ss/sun4i-ss-hash.c bf[j++] = le32_to_cpu(wb); j 423 drivers/crypto/sunxi-ss/sun4i-ss-hash.c j += (fill - min_fill) / sizeof(u32); j 427 drivers/crypto/sunxi-ss/sun4i-ss-hash.c __be64 *bits = (__be64 *)&bf[j]; j 429 drivers/crypto/sunxi-ss/sun4i-ss-hash.c j += 2; j 431 drivers/crypto/sunxi-ss/sun4i-ss-hash.c __le64 *bits = (__le64 *)&bf[j]; j 433 drivers/crypto/sunxi-ss/sun4i-ss-hash.c j += 2; j 435 drivers/crypto/sunxi-ss/sun4i-ss-hash.c writesl(ss->base + SS_RXFIFO, bf, j); j 165 drivers/crypto/ux500/cryp/cryp_core.c int j; j 168 drivers/crypto/ux500/cryp/cryp_core.c j = len - BYTES_PER_WORD; j 169 drivers/crypto/ux500/cryp/cryp_core.c while (j >= 0) { j 171 drivers/crypto/ux500/cryp/cryp_core.c index = len - j - BYTES_PER_WORD + i; j 172 drivers/crypto/ux500/cryp/cryp_core.c out[j + i] = j 175 drivers/crypto/ux500/cryp/cryp_core.c j -= BYTES_PER_WORD; j 1408 drivers/devfreq/devfreq.c int i, j; j 1439 drivers/devfreq/devfreq.c for (j = 0; j < max_state; j++) j 1441 drivers/devfreq/devfreq.c devfreq->trans_table[(i * max_state) + j]); j 504 drivers/devfreq/event/exynos-ppmu.c int i, j, count; j 527 drivers/devfreq/event/exynos-ppmu.c j = 0; j 546 drivers/devfreq/event/exynos-ppmu.c desc[j].ops = &exynos_ppmu_ops; j 549 drivers/devfreq/event/exynos-ppmu.c desc[j].ops = &exynos_ppmu_v2_ops; j 553 drivers/devfreq/event/exynos-ppmu.c desc[j].driver_data = info; j 555 drivers/devfreq/event/exynos-ppmu.c of_property_read_string(node, "event-name", &desc[j].name); j 557 drivers/devfreq/event/exynos-ppmu.c &desc[j].event_type); j 568 drivers/devfreq/event/exynos-ppmu.c id = __exynos_ppmu_find_ppmu_id(desc[j].name); j 574 drivers/devfreq/event/exynos-ppmu.c desc[j].event_type = PPMU_V2_RO_DATA_CNT j 578 drivers/devfreq/event/exynos-ppmu.c desc[j].event_type = j 583 drivers/devfreq/event/exynos-ppmu.c desc[j].event_type = PPMU_RO_DATA_CNT | j 588 drivers/devfreq/event/exynos-ppmu.c j++; j 151 drivers/dma-buf/dma-resv.c unsigned int i, j, k, max; j 177 drivers/dma-buf/dma-resv.c for (i = 0, j = 0, k = max; i < (old ? old->shared_count : 0); ++i) { j 185 drivers/dma-buf/dma-resv.c RCU_INIT_POINTER(new->shared[j++], fence); j 187 drivers/dma-buf/dma-resv.c new->shared_count = j; j 1473 drivers/dma/bcm-sba-raid.c int i, j, ret = 0; j 1511 drivers/dma/bcm-sba-raid.c for (j = 0; j < sba->max_cmd_per_req; j++) { j 1512 drivers/dma/bcm-sba-raid.c req->cmds[j].cmd = 0; j 1513 drivers/dma/bcm-sba-raid.c req->cmds[j].cmd_dma = sba->cmds_base + j 1514 drivers/dma/bcm-sba-raid.c (i * sba->max_cmd_per_req + j) * sizeof(u64); j 1515 drivers/dma/bcm-sba-raid.c req->cmds[j].cmd_dma_addr = sba->cmds_dma_base + j 1516 drivers/dma/bcm-sba-raid.c (i * sba->max_cmd_per_req + j) * sizeof(u64); j 1517 drivers/dma/bcm-sba-raid.c req->cmds[j].flags = 0; j 889 drivers/dma/bcm2835-dma.c int i, j; j 992 drivers/dma/bcm2835-dma.c for (j = 0; j <= BCM2835_DMA_MAX_DMA_CHAN_SUPPORTED; j++) j 993 drivers/dma/bcm2835-dma.c if ((i != j) && (irq[j] == irq[i])) { j 633 drivers/dma/dw-edma/dw-edma-core.c u32 i, j, cnt, ch_cnt; j 663 drivers/dma/dw-edma/dw-edma-core.c for (j = 0; (alloc || dw->nr_irqs == 1) && j < cnt; j++, i++) { j 673 drivers/dma/dw-edma/dw-edma-core.c chan->id = j; j 685 drivers/dma/dw-edma/dw-edma-core.c write ? "write" : "read", j, j 691 drivers/dma/dw-edma/dw-edma-core.c pos = off_alloc + (j % alloc); j 696 drivers/dma/dw-edma/dw-edma-core.c irq->wr_mask |= BIT(j); j 698 drivers/dma/dw-edma/dw-edma-core.c irq->rd_mask |= BIT(j); j 704 drivers/dma/dw-edma/dw-edma-core.c write ? "write" : "read", j, j 716 drivers/dma/dw-edma/dw-edma-core.c write ? "write" : "read", j, chan->dt_off); j 198 drivers/dma/dw-edma/dw-edma-v0-core.c int j; j 205 drivers/dma/dw-edma/dw-edma-v0-core.c j = chunk->bursts_alloc; j 207 drivers/dma/dw-edma/dw-edma-v0-core.c j--; j 208 drivers/dma/dw-edma/dw-edma-v0-core.c if (!j) j 473 drivers/dma/fsl-qdma.c int ret, len, i, j; j 494 drivers/dma/fsl-qdma.c for (j = 0; j < block_number; j++) { j 502 drivers/dma/fsl-qdma.c queue_temp = queue_head + i + (j * queue_num); j 513 drivers/dma/fsl-qdma.c FSL_QDMA_BLOCK_BASE_OFFSET(fsl_qdma, j); j 574 drivers/dma/fsl-qdma.c int i, j, count = FSL_QDMA_HALT_COUNT; j 581 drivers/dma/fsl-qdma.c for (j = 0; j < fsl_qdma->block_number; j++) { j 583 drivers/dma/fsl-qdma.c FSL_QDMA_BLOCK_BASE_OFFSET(fsl_qdma, j); j 596 drivers/dma/fsl-qdma.c for (j = 0; j < fsl_qdma->block_number; j++) { j 598 drivers/dma/fsl-qdma.c FSL_QDMA_BLOCK_BASE_OFFSET(fsl_qdma, j); j 820 drivers/dma/fsl-qdma.c int i, j, ret; j 845 drivers/dma/fsl-qdma.c for (j = 0; j < fsl_qdma->block_number; j++) { j 847 drivers/dma/fsl-qdma.c FSL_QDMA_BLOCK_BASE_OFFSET(fsl_qdma, j); j 849 drivers/dma/fsl-qdma.c temp = fsl_queue + i + (j * fsl_qdma->n_queues); j 886 drivers/dma/fsl-qdma.c qdma_writel(fsl_qdma, fsl_qdma->status[j]->bus_addr, j 888 drivers/dma/fsl-qdma.c qdma_writel(fsl_qdma, fsl_qdma->status[j]->bus_addr, j 903 drivers/dma/fsl-qdma.c (fsl_qdma->status[j]->n_cq) - 6); j 326 drivers/dma/fsl_raid.c unsigned int i, j; j 375 drivers/dma/fsl_raid.c for (i = 2, j = 0; j < save_src_cnt; i++, j++) j 376 drivers/dma/fsl_raid.c fill_cfd_frame(cf, i, len, src[j], 0); j 414 drivers/dma/fsl_raid.c int gfmq_len, i, j; j 493 drivers/dma/fsl_raid.c for (i = 1, j = 0; i < 3; i++, j++) j 494 drivers/dma/fsl_raid.c fill_cfd_frame(cf, i, len, dest[j], 0); j 497 drivers/dma/fsl_raid.c for (i = 3, j = 0; j < save_src_cnt; i++, j++) j 498 drivers/dma/fsl_raid.c fill_cfd_frame(cf, i, len, src[j], 0); j 409 drivers/dma/ioat/init.c int i, j, msixcnt; j 439 drivers/dma/ioat/init.c for (j = 0; j < i; j++) { j 440 drivers/dma/ioat/init.c msix = &ioat_dma->msix_entries[j]; j 441 drivers/dma/ioat/init.c ioat_chan = ioat_chan_by_index(ioat_dma, j); j 563 drivers/dma/iop-adma.h int i, j; j 567 drivers/dma/iop-adma.h for (i = 0, j = 0; (slot_cnt -= slots_per_op) >= 0; j 568 drivers/dma/iop-adma.h i += slots_per_op, j++) { j 587 drivers/dma/iop-adma.h return j; j 1312 drivers/dma/ipu/ipu_idmac.c int j, k; j 1314 drivers/dma/ipu/ipu_idmac.c for (j = 0; j < ichan->n_tx_desc; j++) { j 1315 drivers/dma/ipu/ipu_idmac.c desc = ichan->desc + j; j 503 drivers/dma/mxs-dma.c u32 i, j; j 539 drivers/dma/mxs-dma.c for (j = 0; j < sg_len;) j 540 drivers/dma/mxs-dma.c ccw->pio_words[j++] = *pio++; j 981 drivers/dma/pxa_dma.c unsigned int nb_desc = 0, i, j = 0; j 1006 drivers/dma/pxa_dma.c sw_desc->hw_desc[j]->dcmd = j 1008 drivers/dma/pxa_dma.c sw_desc->hw_desc[j]->dsadr = dsadr ? dsadr : dma; j 1009 drivers/dma/pxa_dma.c sw_desc->hw_desc[j++]->dtadr = dtadr ? dtadr : dma; j 529 drivers/dma/sa11x0-dma.c unsigned i, j = sglen; j 548 drivers/dma/sa11x0-dma.c j += DIV_ROUND_UP(len, DMA_MAX_SIZE & ~DMA_ALIGN) - 1; j 556 drivers/dma/sa11x0-dma.c txd = kzalloc(struct_size(txd, sg, j), GFP_ATOMIC); j 562 drivers/dma/sa11x0-dma.c j = 0; j 585 drivers/dma/sa11x0-dma.c txd->sg[j].addr = addr; j 586 drivers/dma/sa11x0-dma.c txd->sg[j].len = tlen; j 590 drivers/dma/sa11x0-dma.c j++; j 596 drivers/dma/sa11x0-dma.c txd->sglen = j; j 610 drivers/dma/sa11x0-dma.c unsigned i, j, k, sglen, sgperiod; j 635 drivers/dma/sa11x0-dma.c for (j = 0; j < sgperiod; j++, k++) { j 1839 drivers/dma/ste_dma40.c int j; j 1880 drivers/dma/ste_dma40.c for (j = 0; j < d40c->base->num_phy_chans; j += 8) { j 1881 drivers/dma/ste_dma40.c int phy_num = j + event_group * 2; j 1901 drivers/dma/ste_dma40.c for (j = 0; j < d40c->base->num_phy_chans; j += 8) { j 1902 drivers/dma/ste_dma40.c int phy_num = j + event_group * 2; j 3377 drivers/dma/ste_dma40.c int i, j; j 3403 drivers/dma/ste_dma40.c for (j = 0; j < i; j++) j 3404 drivers/dma/ste_dma40.c free_pages(page_list[j], base->lcla_pool.pages); j 3413 drivers/dma/ste_dma40.c for (j = 0; j < i; j++) j 3414 drivers/dma/ste_dma40.c free_pages(page_list[j], base->lcla_pool.pages); j 1123 drivers/dma/sun4i-dma.c int i, j, ret; j 1191 drivers/dma/sun4i-dma.c for (j = 0; i < SUN4I_DMA_NR_MAX_CHANNELS; i++, j++) { j 1193 drivers/dma/sun4i-dma.c SUN4I_DDMA_CHANNEL_REG_BASE(j); j 540 drivers/dma/sun6i-dma.c int i, j, ret = IRQ_NONE; j 553 drivers/dma/sun6i-dma.c for (j = 0; (j < DMA_IRQ_CHAN_NR) && status; j++) { j 554 drivers/dma/sun6i-dma.c pchan = sdev->pchans + j; j 362 drivers/dma/ti/edma.c static inline void edma_or_array2(struct edma_cc *ecc, int offset, int i, int j, j 365 drivers/dma/ti/edma.c edma_or(ecc, offset + ((i * 2 + j) << 2), or); j 369 drivers/dma/ti/edma.c int j, unsigned val) j 371 drivers/dma/ti/edma.c edma_write(ecc, offset + ((i * 2 + j) << 2), val); j 768 drivers/dma/ti/edma.c int i, j, left, nslots; j 788 drivers/dma/ti/edma.c j = i + edesc->processed; j 789 drivers/dma/ti/edma.c edma_write_slot(ecc, echan->slot[i], &edesc->pset[j].param); j 790 drivers/dma/ti/edma.c edesc->sg_len += edesc->pset[j].len; j 803 drivers/dma/ti/edma.c j, echan->ch_num, echan->slot[i], j 804 drivers/dma/ti/edma.c edesc->pset[j].param.opt, j 805 drivers/dma/ti/edma.c edesc->pset[j].param.src, j 806 drivers/dma/ti/edma.c edesc->pset[j].param.dst, j 807 drivers/dma/ti/edma.c edesc->pset[j].param.a_b_cnt, j 808 drivers/dma/ti/edma.c edesc->pset[j].param.ccnt, j 809 drivers/dma/ti/edma.c edesc->pset[j].param.src_dst_bidx, j 810 drivers/dma/ti/edma.c edesc->pset[j].param.src_dst_cidx, j 811 drivers/dma/ti/edma.c edesc->pset[j].param.link_bcntrld); j 1562 drivers/dma/ti/edma.c int i, j; j 1587 drivers/dma/ti/edma.c for (j = 0; j < 2; j++) { j 1590 drivers/dma/ti/edma.c val = edma_read_array(ecc, EDMA_EMR, j); j 1594 drivers/dma/ti/edma.c dev_dbg(ecc->dev, "EMR%d 0x%08x\n", j, val); j 1598 drivers/dma/ti/edma.c int k = (j << 5) + i; j 1601 drivers/dma/ti/edma.c edma_write_array(ecc, EDMA_EMCR, j, BIT(i)); j 1603 drivers/dma/ti/edma.c edma_shadow0_write_array(ecc, SH_SECR, j, j 1897 drivers/dma/ti/edma.c int i, j; j 1979 drivers/dma/ti/edma.c for (j = 0; j < EDMA_MAX_SLOTS; j++) j 1980 drivers/dma/ti/edma.c echan->slot[j] = -1; j 1256 drivers/dma/xgene-dma.c int ret, i, j; j 1261 drivers/dma/xgene-dma.c for (j = 0; j < i; j++) j 1262 drivers/dma/xgene-dma.c xgene_dma_delete_chan_rings(&pdma->chan[j]); j 1431 drivers/dma/xgene-dma.c int ret, i, j; j 1454 drivers/dma/xgene-dma.c for (j = 0; j < i; j++) { j 1574 drivers/dma/xgene-dma.c int ret, i, j; j 1579 drivers/dma/xgene-dma.c for (j = 0; j < i; j++) { j 1580 drivers/dma/xgene-dma.c dma_async_device_unregister(&pdma->dma_dev[j]); j 1581 drivers/dma/xgene-dma.c tasklet_kill(&pdma->chan[j].tasklet); j 1102 drivers/dma/xilinx/xilinx_dma.c u32 reg, j; j 1143 drivers/dma/xilinx/xilinx_dma.c j = chan->desc_submitcount; j 1147 drivers/dma/xilinx/xilinx_dma.c reg |= j << XILINX_DMA_PARK_PTR_RD_REF_SHIFT; j 1150 drivers/dma/xilinx/xilinx_dma.c reg |= j << XILINX_DMA_PARK_PTR_WR_REF_SHIFT; j 1403 drivers/edac/amd64_edac.c int i, j, channels = 0; j 1427 drivers/edac/amd64_edac.c for (j = 0; j < 4; j++) { j 1428 drivers/edac/amd64_edac.c if (DBAM_DIMM(j, dbam) > 0) { j 2956 drivers/edac/amd64_edac.c int i, j, empty = 1; j 3012 drivers/edac/amd64_edac.c for (j = 0; j < pvt->channel_count; j++) { j 3013 drivers/edac/amd64_edac.c dimm = csrow->channels[j]->dimm; j 134 drivers/edac/cell_edac.c int j; j 152 drivers/edac/cell_edac.c for (j = 0; j < csrow->nr_channels; j++) { j 153 drivers/edac/cell_edac.c dimm = csrow->channels[j]->dimm; j 320 drivers/edac/cpc925_edac.c int index, j; j 368 drivers/edac/cpc925_edac.c for (j = 0; j < csrow->nr_channels; j++) { j 369 drivers/edac/cpc925_edac.c dimm = csrow->channels[j]->dimm; j 358 drivers/edac/e7xxx_edac.c int index, j; j 409 drivers/edac/e7xxx_edac.c for (j = 0; j < drc_chan + 1; j++) { j 410 drivers/edac/e7xxx_edac.c dimm = csrow->channels[j]->dimm; j 611 drivers/edac/edac_device_sysfs.c int i, j; j 651 drivers/edac/edac_device_sysfs.c for (j = 0; j < i; j++) j 653 drivers/edac/edac_device_sysfs.c &instance->blocks[j]); j 701 drivers/edac/edac_device_sysfs.c int i, j; j 711 drivers/edac/edac_device_sysfs.c for (j = 0; j < i; j++) j 712 drivers/edac/edac_device_sysfs.c edac_device_delete_instance(edac_dev, j); j 320 drivers/edac/edac_mc.c int i, j, row, chn, n, len, off; j 450 drivers/edac/edac_mc.c for (j = 0; j < n_layers; j++) { j 452 drivers/edac/edac_mc.c edac_layer_name[layers[j].type], j 453 drivers/edac/edac_mc.c pos[j]); j 456 drivers/edac/edac_mc.c dimm->location[j] = pos[j]; j 483 drivers/edac/edac_mc.c for (j = n_layers - 1; j >= 0; j--) { j 484 drivers/edac/edac_mc.c pos[j]++; j 485 drivers/edac/edac_mc.c if (pos[j] < layers[j].size) j 487 drivers/edac/edac_mc.c pos[j] = 0; j 716 drivers/edac/edac_mc.c int j; j 718 drivers/edac/edac_mc.c for (j = 0; j < csrow->nr_channels; j++) j 719 drivers/edac/edac_mc.c nr_pages += csrow->channels[j]->dimm->nr_pages; j 723 drivers/edac/edac_mc.c for (j = 0; j < csrow->nr_channels; j++) j 724 drivers/edac/edac_mc.c if (csrow->channels[j]->dimm->nr_pages) j 725 drivers/edac/edac_mc.c edac_mc_dump_channel(csrow->channels[j]); j 855 drivers/edac/edac_mc.c int row, i, j, n; j 863 drivers/edac/edac_mc.c for (j = 0; j < csrow->nr_channels; j++) { j 864 drivers/edac/edac_mc.c struct dimm_info *dimm = csrow->channels[j]->dimm; j 811 drivers/edac/edac_mc_sysfs.c int total_pages = 0, csrow_idx, j; j 816 drivers/edac/edac_mc_sysfs.c for (j = 0; j < csrow->nr_channels; j++) { j 817 drivers/edac/edac_mc_sysfs.c struct dimm_info *dimm = csrow->channels[j]->dimm; j 199 drivers/edac/fsl_ddr_edac.c int j; j 206 drivers/edac/fsl_ddr_edac.c for (j = 0; j < 32; j++) { j 207 drivers/edac/fsl_ddr_edac.c if ((mask_high >> j) & 1) j 208 drivers/edac/fsl_ddr_edac.c bit_cnt ^= (high >> j) & 1; j 209 drivers/edac/fsl_ddr_edac.c if ((mask_low >> j) & 1) j 210 drivers/edac/fsl_ddr_edac.c bit_cnt ^= (low >> j) & 1; j 26 drivers/edac/i10nm_base.c #define I10NM_GET_DIMMMTR(m, i, j) \ j 27 drivers/edac/i10nm_base.c (*(u32 *)((m)->mbase + 0x2080c + (i) * 0x4000 + (j) * 4)) j 28 drivers/edac/i10nm_base.c #define I10NM_GET_MCDDRTCFG(m, i, j) \ j 29 drivers/edac/i10nm_base.c (*(u32 *)((m)->mbase + 0x20970 + (i) * 0x4000 + (j) * 4)) j 67 drivers/edac/i10nm_base.c int i, j = 0; j 87 drivers/edac/i10nm_base.c j++, base, reg); j 149 drivers/edac/i10nm_base.c int i, j, ndimms; j 156 drivers/edac/i10nm_base.c for (j = 0; j < I10NM_NUM_DIMMS; j++) { j 158 drivers/edac/i10nm_base.c mci->n_layers, i, j, 0); j 159 drivers/edac/i10nm_base.c mtr = I10NM_GET_DIMMMTR(imc, i, j); j 160 drivers/edac/i10nm_base.c mcddrtcfg = I10NM_GET_MCDDRTCFG(imc, i, j); j 162 drivers/edac/i10nm_base.c mtr, mcddrtcfg, imc->mc, i, j); j 166 drivers/edac/i10nm_base.c imc, i, j); j 167 drivers/edac/i10nm_base.c else if (IS_NVDIMM_PRESENT(mcddrtcfg, j)) j 168 drivers/edac/i10nm_base.c ndimms += skx_get_nvdimm_info(dimm, imc, i, j, j 312 drivers/edac/i3000_edac.c int i, j; j 408 drivers/edac/i3000_edac.c for (j = 0; j < nr_channels; j++) { j 409 drivers/edac/i3000_edac.c struct dimm_info *dimm = csrow->channels[j]->dimm; j 339 drivers/edac/i3200_edac.c int i, j; j 394 drivers/edac/i3200_edac.c for (j = 0; j < nr_channels; j++) { j 396 drivers/edac/i3200_edac.c mci->n_layers, i, j, 0); j 398 drivers/edac/i3200_edac.c nr_pages = drb_to_nr_pages(drbs, stacked, j, i); j 402 drivers/edac/i3200_edac.c edac_dbg(0, "csrow %d, channel %d%s, size = %ld MiB\n", i, j, j 373 drivers/edac/i5100_edac.c int j; j 376 drivers/edac/i5100_edac.c for (j = 0; j < numrank; j++) j 377 drivers/edac/i5100_edac.c if (priv->dimm_csmap[i][j] == rank) j 686 drivers/edac/i5100_edac.c int j; j 689 drivers/edac/i5100_edac.c for (j = 0; j < I5100_MAX_RANKS_PER_CHAN; j++) { j 691 drivers/edac/i5100_edac.c (j < 4) ? I5100_MTR_0 + j * 2 : j 692 drivers/edac/i5100_edac.c I5100_MTR_4 + (j - 4) * 2; j 697 drivers/edac/i5100_edac.c priv->mtr[i][j].present = i5100_mtr_present(w); j 698 drivers/edac/i5100_edac.c priv->mtr[i][j].ethrottle = i5100_mtr_ethrottle(w); j 699 drivers/edac/i5100_edac.c priv->mtr[i][j].width = 4 + 4 * i5100_mtr_width(w); j 700 drivers/edac/i5100_edac.c priv->mtr[i][j].numbank = 2 + i5100_mtr_numbank(w); j 701 drivers/edac/i5100_edac.c priv->mtr[i][j].numrow = 13 + i5100_mtr_numrow(w); j 702 drivers/edac/i5100_edac.c priv->mtr[i][j].numcol = 10 + i5100_mtr_numcol(w); j 757 drivers/edac/i5100_edac.c int j; j 759 drivers/edac/i5100_edac.c for (j = 0; j < I5100_MAX_RANKS_PER_DIMM; j++) j 760 drivers/edac/i5100_edac.c priv->dimm_csmap[i][j] = -1; /* default NC */ j 788 drivers/edac/i5100_edac.c int j; j 790 drivers/edac/i5100_edac.c for (j = 0; j < I5100_MAX_DIMM_SLOTS_PER_CHAN; j++) { j 793 drivers/edac/i5100_edac.c if (i5100_read_spd_byte(mci, i, j, 5, &rank) < 0) j 794 drivers/edac/i5100_edac.c priv->dimm_numrank[i][j] = 0; j 796 drivers/edac/i5100_edac.c priv->dimm_numrank[i][j] = (rank & 3) + 1; j 831 drivers/edac/i5100_edac.c int j; j 833 drivers/edac/i5100_edac.c for (j = 0; j < 5; j++) { j 836 drivers/edac/i5100_edac.c pci_read_config_dword(mms[i], I5100_DMIR + j * 4, &dw); j 838 drivers/edac/i5100_edac.c priv->dmir[i][j].limit = j 841 drivers/edac/i5100_edac.c priv->dmir[i][j].rank[k] = j 491 drivers/edac/i7core_edac.c int i, j; j 581 drivers/edac/i7core_edac.c for (j = 0; j < 3; j++) { j 585 drivers/edac/i7core_edac.c if (!DIMM_PRESENT(dimm_dod[j])) j 589 drivers/edac/i7core_edac.c i, j, 0); j 590 drivers/edac/i7core_edac.c banks = numbank(MC_DOD_NUMBANK(dimm_dod[j])); j 591 drivers/edac/i7core_edac.c ranks = numrank(MC_DOD_NUMRANK(dimm_dod[j])); j 592 drivers/edac/i7core_edac.c rows = numrow(MC_DOD_NUMROW(dimm_dod[j])); j 593 drivers/edac/i7core_edac.c cols = numcol(MC_DOD_NUMCOL(dimm_dod[j])); j 599 drivers/edac/i7core_edac.c j, size, j 600 drivers/edac/i7core_edac.c RANKOFFSET(dimm_dod[j]), j 623 drivers/edac/i7core_edac.c pvt->i7core_dev->socket, i, j); j 638 drivers/edac/i7core_edac.c for (j = 0; j < 8; j++) j 640 drivers/edac/i7core_edac.c (value[j] >> 27) & 0x1, j 641 drivers/edac/i7core_edac.c (value[j] >> 24) & 0x7, j 642 drivers/edac/i7core_edac.c (value[j] & ((1 << 24) - 1))); j 351 drivers/edac/i82875p_edac.c int index, j; j 376 drivers/edac/i82875p_edac.c for (j = 0; j < nr_chans; j++) { j 377 drivers/edac/i82875p_edac.c dimm = csrow->channels[j]->dimm; j 397 drivers/edac/ie31200_edac.c int i, j, ret; j 466 drivers/edac/ie31200_edac.c for (j = 0; j < IE31200_DIMMS_PER_CHANNEL; j++) { j 467 drivers/edac/ie31200_edac.c populate_dimm_info(&dimm_info[i][j], addr_decode, j, j 470 drivers/edac/ie31200_edac.c dimm_info[i][j].size, j 471 drivers/edac/ie31200_edac.c dimm_info[i][j].dual_rank, j 472 drivers/edac/ie31200_edac.c dimm_info[i][j].x16_width); j 483 drivers/edac/ie31200_edac.c for (j = 0; j < IE31200_CHANNELS; j++) { j 487 drivers/edac/ie31200_edac.c nr_pages = IE31200_PAGES(dimm_info[j][i].size, skl); j 491 drivers/edac/ie31200_edac.c if (dimm_info[j][i].dual_rank) { j 495 drivers/edac/ie31200_edac.c j, 0); j 507 drivers/edac/ie31200_edac.c mci->n_layers, i * 2, j, 0); j 1271 drivers/edac/pnd2_edac.c int i, j, ranks_of_dimm[DNV_MAX_DIMMS], banks, rowbits, colbits, memtype; j 1310 drivers/edac/pnd2_edac.c for (j = 0; j < DNV_MAX_DIMMS; j++) { j 1311 drivers/edac/pnd2_edac.c if (!ranks_of_dimm[j]) j 1314 drivers/edac/pnd2_edac.c dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, mci->n_layers, i, j, 0); j 1316 drivers/edac/pnd2_edac.c edac_dbg(0, "No allocated DIMM for channel %d DIMM %d\n", i, j); j 1320 drivers/edac/pnd2_edac.c capacity = ranks_of_dimm[j] * banks * (1ul << rowbits) * (1ul << colbits); j 1321 drivers/edac/pnd2_edac.c edac_dbg(0, "Channel %d DIMM %d: %lld MByte DIMM\n", i, j, capacity >> (20 - 3)); j 1324 drivers/edac/pnd2_edac.c dimm->dtype = dnv_dtypes[j ? d->dimmdwid0 : d->dimmdwid1]; j 1327 drivers/edac/pnd2_edac.c snprintf(dimm->label, sizeof(dimm->label), "Chan#%d_DIMM#%d", i, j); j 896 drivers/edac/ppc4xx_edac.c int row, j; j 971 drivers/edac/ppc4xx_edac.c for (j = 0; j < csi->nr_channels; j++) { j 972 drivers/edac/ppc4xx_edac.c struct dimm_info *dimm = csi->channels[j]->dimm; j 1589 drivers/edac/sb_edac.c unsigned int i, j, banks, ranks, rows, cols, npages; j 1622 drivers/edac/sb_edac.c for (j = 0; j < max_dimms_per_channel; j++) { j 1623 drivers/edac/sb_edac.c dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms, mci->n_layers, i, j, 0); j 1629 drivers/edac/sb_edac.c mtr_regs[j], &mtr); j 1631 drivers/edac/sb_edac.c edac_dbg(4, "Channel #%d MTR%d = %x\n", i, j, mtr); j 1657 drivers/edac/sb_edac.c pvt->sbridge_dev->mc, pvt->sbridge_dev->dom, i, j, j 1668 drivers/edac/sb_edac.c pvt->sbridge_dev->source_id, pvt->sbridge_dev->dom, i, j); j 1757 drivers/edac/sb_edac.c int i, j, k, n_sads, n_tads, sad_interl; j 1816 drivers/edac/sb_edac.c for (j = 0; j < 8; j++) { j 1817 drivers/edac/sb_edac.c u32 pkg = sad_pkg(pvt->info.interleave_pkg, reg, j); j 1818 drivers/edac/sb_edac.c if (j > 0 && sad_interl == pkg) j 1822 drivers/edac/sb_edac.c n_sads, j, pkg); j 1860 drivers/edac/sb_edac.c for (j = 0; j < n_tads; j++) { j 1862 drivers/edac/sb_edac.c tad_ch_nilv_offset[j], j 1867 drivers/edac/sb_edac.c i, j, j 1880 drivers/edac/sb_edac.c for (j = 0; j < MAX_RIR_RANGES; j++) { j 1882 drivers/edac/sb_edac.c rir_way_limit[j], j 1892 drivers/edac/sb_edac.c i, j, j 1900 drivers/edac/sb_edac.c rir_offset[j][k], j 1906 drivers/edac/sb_edac.c i, j, k, j 165 drivers/edac/skx_base.c int i, j; j 175 drivers/edac/skx_base.c for (j = 0; j < SKX_NUM_DIMMS; j++) { j 177 drivers/edac/skx_base.c mci->n_layers, i, j, 0); j 179 drivers/edac/skx_base.c 0x80 + 4 * j, &mtr); j 181 drivers/edac/skx_base.c ndimms += skx_get_dimm_info(mtr, mcmtr, amap, dimm, imc, i, j); j 182 drivers/edac/skx_base.c } else if (IS_NVDIMM_PRESENT(mcddrtcfg, j)) { j 183 drivers/edac/skx_base.c ndimms += skx_get_nvdimm_info(dimm, imc, i, j, j 46 drivers/edac/skx_common.c int i, j; j 55 drivers/edac/skx_common.c for (j = 0; names[j]; j++) { j 56 drivers/edac/skx_common.c if (!strcmp(component_names[i], names[j])) { j 57 drivers/edac/skx_common.c component_indices[i] = j; j 62 drivers/edac/skx_common.c if (!names[j]) j 88 drivers/edac/skx_common.c for (j = 0; names[j]; j++) j 89 drivers/edac/skx_common.c skx_printk(KERN_CONT, "%s ", names[j]); j 623 drivers/edac/skx_common.c int i, j; j 640 drivers/edac/skx_common.c for (j = 0; j < NUM_CHANNELS; j++) { j 641 drivers/edac/skx_common.c if (d->imc[i].chan[j].cdev) j 642 drivers/edac/skx_common.c pci_dev_put(d->imc[i].chan[j].cdev); j 775 drivers/edac/synopsys_edac.c int j; j 783 drivers/edac/synopsys_edac.c for (j = 0; j < csi->nr_channels; j++) { j 784 drivers/edac/synopsys_edac.c dimm = csi->channels[j]->dimm; j 321 drivers/edac/x38_edac.c int i, j; j 383 drivers/edac/x38_edac.c for (j = 0; j < x38_channel_num; j++) { j 384 drivers/edac/x38_edac.c struct dimm_info *dimm = csrow->channels[j]->dimm; j 1253 drivers/extcon/extcon-arizona.c int i, j; j 1276 drivers/extcon/extcon-arizona.c for (i = 0, j = 0; i < nconfs; ++i) { j 1277 drivers/extcon/extcon-arizona.c micd_configs[i].src = vals[j++] ? ARIZONA_ACCDET_SRC : 0; j 1278 drivers/extcon/extcon-arizona.c micd_configs[i].bias = vals[j++]; j 1279 drivers/extcon/extcon-arizona.c micd_configs[i].gpio = vals[j++]; j 1355 drivers/extcon/extcon-arizona.c int ret, mode, i, j; j 1560 drivers/extcon/extcon-arizona.c for (j = 0; j < ARIZONA_NUM_MICD_BUTTON_LEVELS; j++) j 1561 drivers/extcon/extcon-arizona.c if (arizona_micd_levels[j] >= info->micd_ranges[i].max) j 1564 drivers/extcon/extcon-arizona.c if (j == ARIZONA_NUM_MICD_BUTTON_LEVELS) { j 1572 drivers/extcon/extcon-arizona.c arizona_micd_levels[j], i); j 1574 drivers/extcon/extcon-arizona.c arizona_micd_set_level(arizona, i, j); j 93 drivers/firewire/core-card.c int i, j, k, length; j 119 drivers/firewire/core-card.c j = 7 + descriptor_count; j 125 drivers/firewire/core-card.c config_rom[i] = cpu_to_be32(desc->key | (j - i)); j 127 drivers/firewire/core-card.c j += desc->length; j 144 drivers/firewire/core-card.c for (i = 0; i < j; i += length + 1) j 147 drivers/firewire/core-card.c WARN_ON(j != config_rom_length); j 338 drivers/firewire/core-device.c int i, j; j 340 drivers/firewire/core-device.c for (j = 0; attrs[j].attr.name != NULL; j++) j 341 drivers/firewire/core-device.c group->attrs[j] = &attrs[j].attr; j 347 drivers/firewire/core-device.c group->attrs[j++] = &attr->attr; j 350 drivers/firewire/core-device.c group->attrs[j] = NULL; j 937 drivers/firewire/net.c static unsigned long j; j 943 drivers/firewire/net.c if (printk_timed_ratelimit(&j, 1000) || rcode != last_rcode) { j 1881 drivers/firewire/ohci.c int self_id_count, generation, new_generation, i, j; j 1927 drivers/firewire/ohci.c for (i = 1, j = 0; j < self_id_count; i += 2, j++) { j 1941 drivers/firewire/ohci.c self_id_count = j; j 1946 drivers/firewire/ohci.c j, self_id_count, id, id2); j 1949 drivers/firewire/ohci.c ohci->self_id_buffer[j] = id; j 3305 drivers/firewire/ohci.c int i, j, length; j 3340 drivers/firewire/ohci.c for (j = 1; j < z; j++) { j 223 drivers/firmware/efi/capsule.c int i, j; j 249 drivers/firmware/efi/capsule.c for (j = 0; j < SGLIST_PER_PAGE && count > 0; j++) { j 253 drivers/firmware/efi/capsule.c sglist[j].length = sz; j 254 drivers/firmware/efi/capsule.c sglist[j].data = *pages++; j 261 drivers/firmware/efi/capsule.c sglist[j].length = 0; j 264 drivers/firmware/efi/capsule.c sglist[j].data = 0; j 266 drivers/firmware/efi/capsule.c sglist[j].data = page_to_phys(sg_pages[i + 1]); j 518 drivers/firmware/efi/libstub/efi-stub-helper.c int i, j, k; j 525 drivers/firmware/efi/libstub/efi-stub-helper.c j = 0; /* See close_handles */ j 632 drivers/firmware/efi/libstub/efi-stub-helper.c for (j = 0; j < nr_files; j++) { j 635 drivers/firmware/efi/libstub/efi-stub-helper.c size = files[j].size; j 644 drivers/firmware/efi/libstub/efi-stub-helper.c status = efi_file_read(files[j].handle, j 655 drivers/firmware/efi/libstub/efi-stub-helper.c efi_file_close(files[j].handle); j 671 drivers/firmware/efi/libstub/efi-stub-helper.c for (k = j; k < i; k++) j 161 drivers/firmware/efi/runtime-map.c int i, j, ret = 0; j 186 drivers/firmware/efi/runtime-map.c for (j = i - 1; j >= 0; j--) { j 187 drivers/firmware/efi/runtime-map.c entry = *(map_entries + j); j 71 drivers/firmware/imx/imx-dsp.c int i, j; j 120 drivers/firmware/imx/imx-dsp.c for (j = 0; j < i; j++) { j 121 drivers/firmware/imx/imx-dsp.c dsp_chan = &dsp_ipc->chans[j]; j 282 drivers/firmware/imx/scu-pd.c int i, j; j 297 drivers/firmware/imx/scu-pd.c for (j = 0; j < pd_ranges[i].num; j++) { j 298 drivers/firmware/imx/scu-pd.c sc_pd = imx_scu_add_pm_domain(dev, j, &pd_ranges[i]); j 29 drivers/firmware/qcom_scm-64.c #define QCOM_SCM_ARGS_IMPL(num, a, b, c, d, e, f, g, h, i, j, ...) (\ j 39 drivers/firmware/qcom_scm-64.c (((j) & 0x3) << 22) | \ j 185 drivers/gpio/gpio-adnp.c unsigned int num_regs = 1 << adnp->reg_shift, i, j; j 211 drivers/gpio/gpio-adnp.c for (j = 0; j < 8; j++) { j 212 drivers/gpio/gpio-adnp.c unsigned int bit = (i << adnp->reg_shift) + j; j 218 drivers/gpio/gpio-adnp.c if (ddr & BIT(j)) j 221 drivers/gpio/gpio-adnp.c if (plr & BIT(j)) j 224 drivers/gpio/gpio-adnp.c if (ier & BIT(j)) j 227 drivers/gpio/gpio-adnp.c if (isr & BIT(j)) j 881 drivers/gpio/gpio-aspeed.c int j; j 887 drivers/gpio/gpio-aspeed.c for (j = 1; j < ARRAY_SIZE(gpio->timer_users); j++) { j 888 drivers/gpio/gpio-aspeed.c if (gpio->timer_users[j] == 0) j 892 drivers/gpio/gpio-aspeed.c if (j == ARRAY_SIZE(gpio->timer_users)) { j 909 drivers/gpio/gpio-aspeed.c i = j; j 565 drivers/gpio/gpio-dwapb.c int i, j; j 619 drivers/gpio/gpio-dwapb.c for (j = 0; j < pp->ngpio; j++) { j 620 drivers/gpio/gpio-dwapb.c pp->irq[j] = -ENXIO; j 623 drivers/gpio/gpio-dwapb.c pp->irq[j] = of_irq_get(np, j); j 625 drivers/gpio/gpio-dwapb.c pp->irq[j] = platform_get_irq(to_platform_device(dev), j); j 627 drivers/gpio/gpio-dwapb.c if (pp->irq[j] >= 0) j 201 drivers/gpio/gpio-max730x.c int j; j 209 drivers/gpio/gpio-max730x.c for (j = 0; j < 4; j++) { j 210 drivers/gpio/gpio-max730x.c int offset = (i - 1) * 4 + j; j 354 drivers/gpio/gpio-ml-ioh.c int i, j; j 359 drivers/gpio/gpio-ml-ioh.c for (j = 0; j < num_ports[i]; j++) { j 360 drivers/gpio/gpio-ml-ioh.c if (reg_val & BIT(j)) { j 363 drivers/gpio/gpio-ml-ioh.c __func__, j, irq, reg_val); j 364 drivers/gpio/gpio-ml-ioh.c iowrite32(BIT(j), j 366 drivers/gpio/gpio-ml-ioh.c generic_handle_irq(chip->irq_base + j); j 407 drivers/gpio/gpio-ml-ioh.c int i, j; j 454 drivers/gpio/gpio-ml-ioh.c for (j = 0; j < 8; j++, chip++) { j 456 drivers/gpio/gpio-ml-ioh.c num_ports[j], NUMA_NO_NODE); j 466 drivers/gpio/gpio-ml-ioh.c irq_base, num_ports[j]); j 100 drivers/gpio/gpio-pisosr.c unsigned int i, j; j 106 drivers/gpio/gpio-pisosr.c j = i / sizeof(unsigned long); j 107 drivers/gpio/gpio-pisosr.c bits[j] |= ((unsigned long) gpio->buffer[i]) j 330 drivers/gpio/gpio-sta2x11.c int i, j; j 331 drivers/gpio/gpio-sta2x11.c for (j = 0; j < GSTA_NR_GPIO; j++) { j 332 drivers/gpio/gpio-sta2x11.c i = chip->irq_base + j; j 191 drivers/gpio/gpio-stmpe.c int i, j; j 210 drivers/gpio/gpio-stmpe.c for (j = 0; j < num_banks; j++) { j 211 drivers/gpio/gpio-stmpe.c u8 old = stmpe_gpio->oldregs[i][j]; j 212 drivers/gpio/gpio-stmpe.c u8 new = stmpe_gpio->regs[i][j]; j 217 drivers/gpio/gpio-stmpe.c stmpe_gpio->oldregs[i][j] = new; j 218 drivers/gpio/gpio-stmpe.c stmpe_reg_write(stmpe, stmpe->regs[regmap[i][j]], new); j 201 drivers/gpio/gpio-tc3589x.c int i, j; j 204 drivers/gpio/gpio-tc3589x.c for (j = 0; j < CACHE_NR_BANKS; j++) { j 205 drivers/gpio/gpio-tc3589x.c u8 old = tc3589x_gpio->oldregs[i][j]; j 206 drivers/gpio/gpio-tc3589x.c u8 new = tc3589x_gpio->regs[i][j]; j 211 drivers/gpio/gpio-tc3589x.c tc3589x_gpio->oldregs[i][j] = new; j 212 drivers/gpio/gpio-tc3589x.c tc3589x_reg_write(tc3589x, regmap[i] + j * 8, new); j 520 drivers/gpio/gpio-tegra.c unsigned int i, j; j 523 drivers/gpio/gpio-tegra.c for (j = 0; j < 4; j++) { j 524 drivers/gpio/gpio-tegra.c unsigned int gpio = tegra_gpio_compose(i, j, 0); j 528 drivers/gpio/gpio-tegra.c i, j, j 565 drivers/gpio/gpio-tegra.c unsigned int gpio, i, j; j 642 drivers/gpio/gpio-tegra.c for (j = 0; j < 4; j++) { j 643 drivers/gpio/gpio-tegra.c int gpio = tegra_gpio_compose(i, j, 0); j 671 drivers/gpio/gpio-tegra.c for (j = 0; j < 4; j++) { j 672 drivers/gpio/gpio-tegra.c spin_lock_init(&bank->lvl_lock[j]); j 673 drivers/gpio/gpio-tegra.c spin_lock_init(&bank->dbc_lock[j]); j 407 drivers/gpio/gpio-tegra186.c unsigned int i, j, offset; j 467 drivers/gpio/gpio-tegra186.c for (j = 0; j < port->pins; j++) { j 469 drivers/gpio/gpio-tegra186.c "P%s.%02x", port->name, j); j 473 drivers/gpio/gpio-tegra186.c names[offset + j] = name; j 509 drivers/gpio/gpio-tegra186.c for (j = 0; j < port->pins; j++) j 510 drivers/gpio/gpio-tegra186.c irq->map[offset + j] = irq->parents[port->irq]; j 436 drivers/gpio/gpio-twl4030.c unsigned j; j 438 drivers/gpio/gpio-twl4030.c for (bit_mask = 0, j = 0; j < 8; j += 2, gpio_bit <<= 1) { j 440 drivers/gpio/gpio-twl4030.c bit_mask |= 1 << (j + 1); j 442 drivers/gpio/gpio-twl4030.c bit_mask |= 1 << (j + 0); j 3338 drivers/gpio/gpiolib.c int first, j, ret; j 3378 drivers/gpio/gpiolib.c for (j = first; j < i; ) { j 3379 drivers/gpio/gpiolib.c const struct gpio_desc *desc = desc_array[j]; j 3385 drivers/gpio/gpiolib.c __assign_bit(j, value_bitmap, value); j 3387 drivers/gpio/gpiolib.c j++; j 3390 drivers/gpio/gpiolib.c j = find_next_zero_bit(array_info->get_mask, i, j 3391 drivers/gpio/gpiolib.c j); j 223 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c unsigned int i, j, k; j 240 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c for (i = 0, j = old->shared_count, k = 0; i < old->shared_count; ++i) { j 247 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c RCU_INIT_POINTER(new->shared[--j], f); j 262 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c for (i = j, k = 0; i < old->shared_count; ++i) { j 303 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c int i, j, k, path_size, device_support; j 367 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c for (j = 0; j < ((le16_to_cpu(path->usSize) - 8) / 2); j++) { j 369 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (le16_to_cpu(path->usGraphicObjIds[j]) & j 375 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c if (le16_to_cpu(path->usGraphicObjIds[j]) == encoder_obj) { j 403 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c if (le16_to_cpu(path->usGraphicObjIds[j]) == router_obj_id) { j 475 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c for (j = 0; j < con_obj->ucNumberOfObjects; j++) { j 477 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c le16_to_cpu(con_obj->asObjects[j]. j 485 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c asObjects[j]. j 1272 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c int i, j; j 1313 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c for (j = 0; j < profile->ucLeakageBinNum; j++) { j 1314 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c if (vbios_voltage_id <= leakage_bin[j]) { j 1315 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c *vddc = vddc_buf[j * profile->ucElbVDDC_Num + i]; j 1326 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c for (j = 0; j < profile->ucLeakageBinNum; j++) { j 1327 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c if (vbios_voltage_id <= leakage_bin[j]) { j 1328 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c *vddci = vddci_buf[j * profile->ucElbVDDCI_Num + i]; j 1573 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c u32 i = 0, j; j 1623 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c for (i = 0, j = 1; i < reg_table->last; i++) { j 1626 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (u32)le32_to_cpu(*((u32 *)reg_data + j)); j 1627 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c j++; j 797 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c unsigned i, j; j 799 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c for (i = 0, j = 0; i < p->nchunks && j < p->job->num_ibs; i++) { j 809 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c ib = &p->job->ibs[j]; j 841 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c r = amdgpu_ring_parse_cs(ring, p, j); j 846 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c r = amdgpu_ring_patch_cs_in_place(ring, p, j); j 852 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c j++; j 947 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c int i, j; j 949 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c for (i = 0, j = 0; i < parser->nchunks && j < parser->job->num_ibs; i++) { j 956 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c ib = &parser->job->ibs[j]; j 1003 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c j++; j 77 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c unsigned i, j, k; j 135 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c for (j = 0; j < adev->gfx.num_compute_rings; ++j) j 136 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c rings[j] = &adev->gfx.compute_ring[j]; j 140 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c for (j = 0; j < adev->sdma.num_instances; ++j) j 141 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c rings[j] = &adev->sdma.instance[j].ring; j 157 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c for (j = 0; j < adev->vcn.num_vcn_inst; ++j) { j 158 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c if (adev->vcn.harvest_config & (1 << j)) j 160 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c rings[num_rings++] = &adev->vcn.inst[j].ring_dec; j 164 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c for (j = 0; j < adev->vcn.num_vcn_inst; ++j) { j 165 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c if (adev->vcn.harvest_config & (1 << j)) j 168 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c rings[num_rings++] = &adev->vcn.inst[j].ring_enc[k]; j 172 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c for (j = 0; j < adev->vcn.num_vcn_inst; ++j) { j 173 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c if (adev->vcn.harvest_config & (1 << j)) j 175 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c rings[num_rings++] = &adev->vcn.inst[j].ring_jpeg; j 180 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c for (j = 0; j < num_rings; ++j) { j 181 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c if (!rings[j]->adev) j 184 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c rqs[num_rqs++] = &rings[j]->sched.sched_rq[priority]; j 187 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c for (j = 0; j < amdgpu_ctx_num_entities[i]; ++j) j 188 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c r = drm_sched_entity_init(&ctx->entities[i][j].entity, j 212 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c unsigned i, j; j 218 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c for (j = 0; j < amdgpu_sched_jobs; ++j) j 219 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c dma_fence_put(ctx->entities[0][i].fences[j]); j 1901 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c int i, j, r; j 1906 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c for (j = 0; j < adev->num_ip_blocks; j++) { j 1907 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c i = state == AMD_CG_STATE_GATE ? j : adev->num_ip_blocks - j - 1; j 1931 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c int i, j, r; j 1936 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c for (j = 0; j < adev->num_ip_blocks; j++) { j 1937 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c i = state == AMD_PG_STATE_GATE ? j : adev->num_ip_blocks - j - 1; j 2295 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c int j; j 2298 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c for (j = 0; j < adev->num_ip_blocks; j++) { j 2299 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c block = &adev->ip_blocks[j]; j 2331 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c int j; j 2334 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c for (j = 0; j < adev->num_ip_blocks; j++) { j 2335 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c block = &adev->ip_blocks[j]; j 269 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c int i, j, k; j 298 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c for (j = 0; j < num_ips; j++) { j 346 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c int i, j; j 364 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c for (j = 0; j < num_ips; j++) { j 529 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c unsigned i, j; j 546 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c for (j = 0; j <= ring->fence_drv.num_fences_mask; ++j) j 547 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c dma_fence_put(ring->fence_drv.fences[j]); j 226 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c int i, j; j 246 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c for (j = 0; j < AMDGPU_GPU_PAGES_IN_CPU_PAGE; j++, t++) { j 278 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c unsigned i, j, t; j 289 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c for (j = 0; j < AMDGPU_GPU_PAGES_IN_CPU_PAGE; j++, t++) { j 229 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c unsigned j; j 232 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c for (j = 0; j < i; ++j) j 233 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c dma_fence_get(fences[j]); j 238 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c for (j = 0; j < i; ++j) j 239 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c dma_fence_put(fences[j]); j 548 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c unsigned i, j; j 554 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c for (j = 1; j < id_mgr->num_ids; ++j) j 555 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c amdgpu_vmid_reset(adev, i, j); j 568 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c unsigned i, j; j 579 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c for (j = 1; j < id_mgr->num_ids; ++j) { j 580 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c amdgpu_vmid_reset(adev, i, j); j 581 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c amdgpu_sync_create(&id_mgr->ids[j].active); j 582 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c list_add_tail(&id_mgr->ids[j].list, &id_mgr->ids_lru); j 596 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c unsigned i, j; j 603 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c for (j = 0; j < AMDGPU_NUM_VMID; ++j) { j 604 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c struct amdgpu_vmid *id = &id_mgr->ids[j]; j 109 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c unsigned i, j, k; j 117 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c for (j = 0; j < AMDGPU_MAX_IRQ_SRC_ID; ++j) { j 118 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c struct amdgpu_irq_src *src = adev->irq.client[i].sources[j]; j 281 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c unsigned i, j; j 296 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c for (j = 0; j < AMDGPU_MAX_IRQ_SRC_ID; ++j) { j 297 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c struct amdgpu_irq_src *src = adev->irq.client[i].sources[j]; j 307 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c adev->irq.client[i].sources[j] = NULL; j 463 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c int i, j, k; j 469 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c for (j = 0; j < AMDGPU_MAX_IRQ_SRC_ID; ++j) { j 470 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c struct amdgpu_irq_src *src = adev->irq.client[i].sources[j]; j 310 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c unsigned int i, j; j 366 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c for (j = 0; j < adev->uvd.num_enc_rings; j++) j 367 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c if (adev->uvd.inst[i].ring_enc[j].sched.ready) j 391 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c for (j = 0; j < adev->vcn.num_enc_rings; j++) j 392 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c if (adev->vcn.inst[i].ring_enc[j].sched.ready) j 285 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c int i, j; j 292 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c for (j = 0; j < sizeof(*record); j++) { j 293 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c tbl_sum += *(((unsigned char *)record) + j); j 129 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c int i, j, r; j 255 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c for (j = 0; j < adev->uvd.num_uvd_inst; j++) { j 256 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c if (adev->uvd.harvest_config & (1 << j)) j 259 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c AMDGPU_GEM_DOMAIN_VRAM, &adev->uvd.inst[j].vcpu_bo, j 260 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c &adev->uvd.inst[j].gpu_addr, &adev->uvd.inst[j].cpu_addr); j 298 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c int i, j; j 302 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c for (j = 0; j < adev->uvd.num_uvd_inst; ++j) { j 303 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c if (adev->uvd.harvest_config & (1 << j)) j 305 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c kvfree(adev->uvd.inst[j].saved_bo); j 307 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c amdgpu_bo_free_kernel(&adev->uvd.inst[j].vcpu_bo, j 308 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c &adev->uvd.inst[j].gpu_addr, j 309 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c (void **)&adev->uvd.inst[j].cpu_addr); j 311 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c amdgpu_ring_fini(&adev->uvd.inst[j].ring); j 314 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c amdgpu_ring_fini(&adev->uvd.inst[j].ring_enc[i]); j 348 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c int i, j; j 362 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c for (j = 0; j < adev->uvd.num_uvd_inst; ++j) { j 363 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c if (adev->uvd.harvest_config & (1 << j)) j 365 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c if (adev->uvd.inst[j].vcpu_bo == NULL) j 368 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c size = amdgpu_bo_size(adev->uvd.inst[j].vcpu_bo); j 369 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c ptr = adev->uvd.inst[j].cpu_addr; j 371 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c adev->uvd.inst[j].saved_bo = kvmalloc(size, GFP_KERNEL); j 372 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c if (!adev->uvd.inst[j].saved_bo) j 375 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c memcpy_fromio(adev->uvd.inst[j].saved_bo, ptr, size); j 1182 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c unsigned fences = 0, i, j; j 1188 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c for (j = 0; j < adev->uvd.num_enc_rings; ++j) { j 1189 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c fences += amdgpu_fence_count_emitted(&adev->uvd.inst[i].ring_enc[j]); j 194 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c int i, j; j 202 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c for (j = 0; j < adev->vcn.num_vcn_inst; ++j) { j 203 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c if (adev->vcn.harvest_config & (1 << j)) j 205 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c kvfree(adev->vcn.inst[j].saved_bo); j 207 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c amdgpu_bo_free_kernel(&adev->vcn.inst[j].vcpu_bo, j 208 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c &adev->vcn.inst[j].gpu_addr, j 209 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c (void **)&adev->vcn.inst[j].cpu_addr); j 211 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c amdgpu_ring_fini(&adev->vcn.inst[j].ring_dec); j 214 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c amdgpu_ring_fini(&adev->vcn.inst[j].ring_enc[i]); j 216 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c amdgpu_ring_fini(&adev->vcn.inst[j].ring_jpeg); j 292 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c unsigned int i, j; j 294 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c for (j = 0; j < adev->vcn.num_vcn_inst; ++j) { j 295 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c if (adev->vcn.harvest_config & (1 << j)) j 298 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c fence[j] += amdgpu_fence_count_emitted(&adev->vcn.inst[j].ring_enc[i]); j 304 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c if (fence[j]) j 309 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c if (amdgpu_fence_count_emitted(&adev->vcn.inst[j].ring_jpeg)) j 317 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c fence[j] += amdgpu_fence_count_emitted(&adev->vcn.inst[j].ring_jpeg); j 318 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c fence[j] += amdgpu_fence_count_emitted(&adev->vcn.inst[j].ring_dec); j 319 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c fences += fence[j]; j 438 drivers/gpu/drm/amd/amdgpu/cik_sdma.c int i, j, r; j 445 drivers/gpu/drm/amd/amdgpu/cik_sdma.c for (j = 0; j < 16; j++) { j 446 drivers/gpu/drm/amd/amdgpu/cik_sdma.c cik_srbm_select(adev, 0, 0, 0, j); j 546 drivers/gpu/drm/amd/amdgpu/cik_sdma.c int i, j; j 564 drivers/gpu/drm/amd/amdgpu/cik_sdma.c for (j = 0; j < fw_size; j++) j 411 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c u32 i, j, tmp; j 421 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c for (j = 0; j < 10; j++) { j 1365 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c int j; j 1367 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c for (j = 0; j < sad_count; j++) { j 1368 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct cea_sad *sad = &sads[j]; j 1772 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c int j; j 1773 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c for (j = 0; j < i; j++) { j 1774 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c kfree(adev->mode_info.afmt[j]); j 1775 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c adev->mode_info.afmt[j] = NULL; j 427 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c u32 i, j, tmp; j 437 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c for (j = 0; j < 10; j++) { j 1391 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c int j; j 1393 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c for (j = 0; j < sad_count; j++) { j 1394 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct cea_sad *sad = &sads[j]; j 1814 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c int j; j 1815 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c for (j = 0; j < i; j++) { j 1816 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c kfree(adev->mode_info.afmt[j]); j 1817 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c adev->mode_info.afmt[j] = NULL; j 1269 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c int j; j 1271 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c for (j = 0; j < sad_count; j++) { j 1272 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct cea_sad *sad = &sads[j]; j 1724 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c int i, j; j 1736 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c for (j = 0; j < i; j++) { j 1737 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c kfree(adev->mode_info.afmt[j]); j 1738 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c adev->mode_info.afmt[j] = NULL; j 345 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c u32 i, j, tmp; j 354 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c for (j = 0; j < 10; j++) { j 1318 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c int j; j 1320 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c for (j = 0; j < sad_count; j++) { j 1321 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct cea_sad *sad = &sads[j]; j 1701 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c int j; j 1702 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c for (j = 0; j < i; j++) { j 1703 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c kfree(adev->mode_info.afmt[j]); j 1704 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c adev->mode_info.afmt[j] = NULL; j 1305 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c int i, j, k, r, ring_id = 0; j 1378 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c for (j = 0; j < adev->gfx.me.num_queue_per_pipe; j++) { j 1380 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c if (!amdgpu_gfx_is_me_queue_enabled(adev, i, k, j)) j 1384 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c i, k, j); j 1395 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c for (j = 0; j < adev->gfx.mec.num_queue_per_pipe; j++) { j 1398 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c j)) j 1402 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c i, k, j); j 1540 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c int i, j; j 1548 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { j 1549 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c gfx_v10_0_select_se_sh(adev, i, j, 0xffffffff); j 1551 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c active_rbs |= data << ((i * adev->gfx.config.max_sh_per_se + j) * j 1653 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c int i, j, k; j 1683 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { j 1684 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c gfx_v10_0_select_se_sh(adev, i, j, 0xffffffff); j 3395 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c int j; j 3417 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c for (j = 0; j < adev->usec_timeout; j++) { j 5437 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c int i, j, k, counter, active_cu_number = 0; j 5448 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { j 5452 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c gfx_v10_0_select_se_sh(adev, i, j, 0xffffffff); j 5453 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c if (i < 4 && j < 2) j 5455 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c adev, disable_masks[i * 2 + j]); j 5457 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c cu_info->bitmap[i][j] = bitmap; j 5468 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c if (i < 2 && j < 2) j 5469 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c ao_cu_mask |= (ao_bitmap << (i * 16 + j * 8)); j 5470 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c cu_info->ao_cu_bitmap[i][j] = ao_bitmap; j 1465 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c int i, j; j 1475 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { j 1476 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c gfx_v6_0_select_se_sh(adev, i, j, 0xffffffff); j 1479 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c ((i * adev->gfx.config.max_sh_per_se + j) * j 1503 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { j 1504 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c gfx_v6_0_select_se_sh(adev, i, j, 0xffffffff); j 1505 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c adev->gfx.config.rb_config[i][j].rb_backend_disable = j 1507 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c adev->gfx.config.rb_config[i][j].user_rb_backend_disable = j 1509 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c adev->gfx.config.rb_config[i][j].raster_config = j 1545 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c int i, j, k; j 1551 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { j 1552 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c gfx_v6_0_select_se_sh(adev, i, j, 0xffffffff); j 3575 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c int i, j, k, counter, active_cu_number = 0; j 3592 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { j 3596 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c gfx_v6_0_select_se_sh(adev, i, j, 0xffffffff); j 3597 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c if (i < 4 && j < 2) j 3599 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c adev, disable_masks[i * 2 + j]); j 3601 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c cu_info->bitmap[i][j] = bitmap; j 3612 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c if (i < 2 && j < 2) j 3613 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c ao_cu_mask |= (ao_bitmap << (i * 16 + j * 8)); j 3614 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c cu_info->ao_cu_bitmap[i][j] = ao_bitmap; j 1789 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c int i, j; j 1799 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { j 1800 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c gfx_v7_0_select_se_sh(adev, i, j, 0xffffffff); j 1802 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c active_rbs |= data << ((i * adev->gfx.config.max_sh_per_se + j) * j 1828 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { j 1829 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c gfx_v7_0_select_se_sh(adev, i, j, 0xffffffff); j 1830 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c adev->gfx.config.rb_config[i][j].rb_backend_disable = j 1832 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c adev->gfx.config.rb_config[i][j].user_rb_backend_disable = j 1834 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c adev->gfx.config.rb_config[i][j].raster_config = j 1836 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c adev->gfx.config.rb_config[i][j].raster_config_1 = j 3114 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c int r, i, j; j 3125 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c for (j = 0; j < adev->gfx.mec.num_pipe_per_mec; j++) j 3126 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c gfx_v7_0_compute_pipe_init(adev, i, j); j 3366 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c u32 i, j, k; j 3371 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { j 3372 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c gfx_v7_0_select_se_sh(adev, i, j, 0xffffffff); j 4433 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c int i, j, k, r, ring_id; j 4501 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c for (j = 0; j < adev->gfx.mec.num_queue_per_pipe; j++) { j 4503 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c if (!amdgpu_gfx_is_mec_queue_enabled(adev, i, k, j)) j 4508 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c i, k, j); j 5108 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c int i, j, k, counter, active_cu_number = 0; j 5125 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { j 5129 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c gfx_v7_0_select_se_sh(adev, i, j, 0xffffffff); j 5130 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c if (i < 4 && j < 2) j 5132 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c adev, disable_masks[i * 2 + j]); j 5134 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c cu_info->bitmap[i][j] = bitmap; j 5145 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c if (i < 2 && j < 2) j 5146 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c ao_cu_mask |= (ao_bitmap << (i * 16 + j * 8)); j 5147 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c cu_info->ao_cu_bitmap[i][j] = ao_bitmap; j 1953 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c int i, j, k, r, ring_id; j 2054 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c for (j = 0; j < adev->gfx.mec.num_queue_per_pipe; j++) { j 2056 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c if (!amdgpu_gfx_is_mec_queue_enabled(adev, i, k, j)) j 2061 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c i, k, j); j 3644 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c int i, j; j 3654 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { j 3655 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c gfx_v8_0_select_se_sh(adev, i, j, 0xffffffff); j 3657 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c active_rbs |= data << ((i * adev->gfx.config.max_sh_per_se + j) * j 3683 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { j 3684 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c gfx_v8_0_select_se_sh(adev, i, j, 0xffffffff); j 3685 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c adev->gfx.config.rb_config[i][j].rb_backend_disable = j 3687 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c adev->gfx.config.rb_config[i][j].user_rb_backend_disable = j 3689 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c adev->gfx.config.rb_config[i][j].raster_config = j 3691 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c adev->gfx.config.rb_config[i][j].raster_config_1 = j 3869 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c u32 i, j, k; j 3874 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { j 3875 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c gfx_v8_0_select_se_sh(adev, i, j, 0xffffffff); j 3886 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c i, j); j 7130 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c int i, j, k, counter, active_cu_number = 0; j 7147 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { j 7151 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c gfx_v8_0_select_se_sh(adev, i, j, 0xffffffff); j 7152 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c if (i < 4 && j < 2) j 7154 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c adev, disable_masks[i * 2 + j]); j 7156 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c cu_info->bitmap[i][j] = bitmap; j 7167 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c if (i < 2 && j < 2) j 7168 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c ao_cu_mask |= (ao_bitmap << (i * 16 + j * 8)); j 7169 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c cu_info->ao_cu_bitmap[i][j] = ao_bitmap; j 1493 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c uint32_t i, j, k; j 1505 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { j 1509 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c gfx_v9_0_select_se_sh(adev, i, j, 0xffffffff); j 1512 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c if (cu_info->bitmap[i][j] & mask) { j 1525 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c cu_info->ao_cu_bitmap[i][j] = cu_bitmap; j 2193 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c int i, j, k, r, ring_id; j 2285 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c for (j = 0; j < adev->gfx.mec.num_queue_per_pipe; j++) { j 2287 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c if (!amdgpu_gfx_is_mec_queue_enabled(adev, i, k, j)) j 2292 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c i, k, j); j 2418 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c int i, j; j 2426 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { j 2427 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c gfx_v9_0_select_se_sh(adev, i, j, 0xffffffff); j 2429 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c active_rbs |= data << ((i * adev->gfx.config.max_sh_per_se + j) * j 2548 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c u32 i, j, k; j 2553 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { j 2554 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c gfx_v9_0_select_se_sh(adev, i, j, 0xffffffff); j 2565 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c i, j); j 2654 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c int i = 0, j = 0; j 2705 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c for (j = 0; j < unique_indirect_reg_count; j++) { j 2706 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c if (register_list_format[i] == unique_indirect_regs[j]) { j 2707 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c WREG32_SOC15(GC, 0, mmRLC_GPM_SCRATCH_DATA, j); j 2712 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c BUG_ON(j >= unique_indirect_reg_count); j 3556 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c int j; j 3577 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c for (j = 0; j < adev->usec_timeout; j++) { j 3660 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c int j; j 3667 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c for (j = 0; j < adev->usec_timeout; j++) { j 3673 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c if (j == AMDGPU_MAX_USEC_TIMEOUT) { j 4268 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c int r, i, j, k; j 4381 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c for (j = 0; j < sec_ded_counter_registers[i].se_num; j++) { j 4383 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c gfx_v9_0_select_se_sh(adev, j, 0x0, k); j 6453 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c int i, j, k, counter, active_cu_number = 0; j 6473 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) { j 6477 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c gfx_v9_0_select_se_sh(adev, i, j, 0xffffffff); j 6479 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c adev, disable_masks[i * adev->gfx.config.max_sh_per_se + j]); j 6494 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c cu_info->bitmap[i % 4][j + i / 4] = bitmap; j 6505 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c if (i < 2 && j < 2) j 6506 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c ao_cu_mask |= (ao_bitmap << (i * 16 + j * 8)); j 6507 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c cu_info->ao_cu_bitmap[i % 4][j + i / 4] = ao_bitmap; j 237 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c int i, j; j 240 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c for (i = 0, j = 0; i < 32; i++, j += 0x6) { j 241 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c WREG32((0xb05 + j), 0x00000000); j 242 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c WREG32((0xb06 + j), 0x00000000); j 243 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c WREG32((0xb07 + j), 0x00000000); j 244 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c WREG32((0xb08 + j), 0x00000000); j 245 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c WREG32((0xb09 + j), 0x00000000); j 263 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c int i, j; j 266 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c for (i = 0, j = 0; i < 32; i++, j += 0x6) { j 267 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c WREG32((0xb05 + j), 0x00000000); j 268 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c WREG32((0xb06 + j), 0x00000000); j 269 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c WREG32((0xb07 + j), 0x00000000); j 270 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c WREG32((0xb08 + j), 0x00000000); j 271 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c WREG32((0xb09 + j), 0x00000000); j 454 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c int i, j; j 457 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c for (i = 0, j = 0; i < 32; i++, j += 0x6) { j 458 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c WREG32((0xb05 + j), 0x00000000); j 459 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c WREG32((0xb06 + j), 0x00000000); j 460 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c WREG32((0xb07 + j), 0x00000000); j 461 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c WREG32((0xb08 + j), 0x00000000); j 462 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c WREG32((0xb09 + j), 0x00000000); j 290 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c u32 tmp, reg, bits, i, j; j 302 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c for (j = 0; j < adev->num_vmhubs; j++) { j 303 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c hub = &adev->vmhub[j]; j 313 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c for (j = 0; j < adev->num_vmhubs; j++) { j 314 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c hub = &adev->vmhub[j]; j 490 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c u32 j, inv_req, tmp; j 523 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c for (j = 0; j < adev->usec_timeout; j++) { j 531 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c if (j >= adev->usec_timeout) j 544 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c for (j = 0; j < adev->usec_timeout; j++) { j 561 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c if (j < adev->usec_timeout) j 162 drivers/gpu/drm/amd/amdgpu/kv_dpm.c u32 i, j; j 175 drivers/gpu/drm/amd/amdgpu/kv_dpm.c for (j = i + 1; j < SUMO_MAX_NUMBER_VOLTAGES; j++) { j 176 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (vid_mapping_table->entries[j].vid_7bit != 0) { j 178 drivers/gpu/drm/amd/amdgpu/kv_dpm.c vid_mapping_table->entries[j]; j 179 drivers/gpu/drm/amd/amdgpu/kv_dpm.c vid_mapping_table->entries[j].vid_7bit = 0; j 184 drivers/gpu/drm/amd/amdgpu/kv_dpm.c if (j == SUMO_MAX_NUMBER_VOLTAGES) j 2706 drivers/gpu/drm/amd/amdgpu/kv_dpm.c int i, j, k, non_clock_array_index, clock_array_index; j 2755 drivers/gpu/drm/amd/amdgpu/kv_dpm.c for (j = 0; j < power_state->v2.ucNumDPMLevels; j++) { j 2756 drivers/gpu/drm/amd/amdgpu/kv_dpm.c clock_array_index = idx[j]; j 391 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c u32 i, j; j 393 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c for (j = 0; j < MMHUB_NUM_INSTANCES; j++) { j 398 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c j * MMHUB_INSTANCE_REGISTER_OFFSET + j 404 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c j * MMHUB_INSTANCE_REGISTER_OFFSET); j 412 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c j * MMHUB_INSTANCE_REGISTER_OFFSET, tmp); j 416 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c j * MMHUB_INSTANCE_REGISTER_OFFSET); j 420 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c j * MMHUB_INSTANCE_REGISTER_OFFSET, tmp); j 422 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c j * MMHUB_INSTANCE_REGISTER_OFFSET, 0); j 536 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c int i, j; j 553 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c for (j = 0; j < 5; j++) { j 557 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c j * dist); j 581 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c j * dist, data1); j 583 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c if (i == 1 && j == 3) j 416 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c int i, j, r; j 423 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c for (j = 0; j < 16; j++) { j 424 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c vi_srbm_select(adev, 0, 0, 0, j); j 653 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c int i, j, r; j 661 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c for (j = 0; j < 16; j++) { j 662 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c vi_srbm_select(adev, 0, 0, 0, j); j 1247 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c int i, j; j 1266 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c for (j = 0; j < fw_size; j++) j 1961 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c unsigned i, j; j 1966 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c for (j = 0; j < adev->sdma.num_instances; j++) { j 1967 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c sdma[j] = RREG32_SDMA(j, mmSDMA0_STATUS_REG); j 1968 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c if (!(sdma[j] & SDMA0_STATUS_REG__IDLE_MASK)) j 1971 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c if (j == adev->sdma.num_instances) j 800 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c int i, j; j 819 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c for (j = 0; j < fw_size; j++) { j 820 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c if (amdgpu_emu_mode == 1 && j % 500 == 0) j 2683 drivers/gpu/drm/amd/amdgpu/si_dpm.c unsigned int i, j; j 2694 drivers/gpu/drm/amd/amdgpu/si_dpm.c for (j = 0; j < SMC_SISLANDS_LKGE_LUT_NUM_OF_VOLT_ENTRIES; j++) { j 2695 drivers/gpu/drm/amd/amdgpu/si_dpm.c voltage = vddc_max - (vddc_step * j); j 2709 drivers/gpu/drm/amd/amdgpu/si_dpm.c cac_tables->cac_lkge_lut[i][SMC_SISLANDS_LKGE_LUT_NUM_OF_VOLT_ENTRIES-1-j] = j 2722 drivers/gpu/drm/amd/amdgpu/si_dpm.c unsigned int i, j; j 2729 drivers/gpu/drm/amd/amdgpu/si_dpm.c for (j = 0; j < SMC_SISLANDS_LKGE_LUT_NUM_OF_VOLT_ENTRIES; j++) { j 2730 drivers/gpu/drm/amd/amdgpu/si_dpm.c voltage = vddc_max - (vddc_step * j); j 2745 drivers/gpu/drm/amd/amdgpu/si_dpm.c cac_tables->cac_lkge_lut[i][SMC_SISLANDS_LKGE_LUT_NUM_OF_VOLT_ENTRIES-1-j] = j 5819 drivers/gpu/drm/amd/amdgpu/si_dpm.c u8 i, j, k; j 5822 drivers/gpu/drm/amd/amdgpu/si_dpm.c for (i = 0, j = table->last; i < table->last; i++) { j 5823 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (j >= SMC_SISLANDS_MC_REGISTER_ARRAY_SIZE) j 5828 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->mc_reg_address[j].s1 = MC_PMG_CMD_EMRS; j 5829 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->mc_reg_address[j].s0 = MC_SEQ_PMG_CMD_EMRS_LP; j 5831 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->mc_reg_table_entry[k].mc_data[j] = j 5834 drivers/gpu/drm/amd/amdgpu/si_dpm.c j++; j 5836 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (j >= SMC_SISLANDS_MC_REGISTER_ARRAY_SIZE) j 5839 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->mc_reg_address[j].s1 = MC_PMG_CMD_MRS; j 5840 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->mc_reg_address[j].s0 = MC_SEQ_PMG_CMD_MRS_LP; j 5842 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->mc_reg_table_entry[k].mc_data[j] = j 5846 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->mc_reg_table_entry[k].mc_data[j] |= 0x100; j 5848 drivers/gpu/drm/amd/amdgpu/si_dpm.c j++; j 5851 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (j >= SMC_SISLANDS_MC_REGISTER_ARRAY_SIZE) j 5853 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->mc_reg_address[j].s1 = MC_PMG_AUTO_CMD; j 5854 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->mc_reg_address[j].s0 = MC_PMG_AUTO_CMD; j 5856 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->mc_reg_table_entry[k].mc_data[j] = j 5858 drivers/gpu/drm/amd/amdgpu/si_dpm.c j++; j 5863 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->mc_reg_address[j].s1 = MC_PMG_CMD_MRS1; j 5864 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->mc_reg_address[j].s0 = MC_SEQ_PMG_CMD_MRS1_LP; j 5866 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->mc_reg_table_entry[k].mc_data[j] = j 5869 drivers/gpu/drm/amd/amdgpu/si_dpm.c j++; j 5876 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->last = j; j 5937 drivers/gpu/drm/amd/amdgpu/si_dpm.c u8 i, j; j 5940 drivers/gpu/drm/amd/amdgpu/si_dpm.c for (j = 1; j < table->num_entries; j++) { j 5941 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (table->mc_reg_table_entry[j-1].mc_data[i] != table->mc_reg_table_entry[j].mc_data[i]) { j 5963 drivers/gpu/drm/amd/amdgpu/si_dpm.c u8 i, j; j 5977 drivers/gpu/drm/amd/amdgpu/si_dpm.c for (j = 0; j < table->last; j++) { j 5978 drivers/gpu/drm/amd/amdgpu/si_dpm.c si_table->mc_reg_table_entry[i].mc_data[j] = j 5979 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->mc_reg_table_entry[i].mc_data[j]; j 6041 drivers/gpu/drm/amd/amdgpu/si_dpm.c u32 i, j; j 6043 drivers/gpu/drm/amd/amdgpu/si_dpm.c for (i = 0, j = 0; j < si_pi->mc_reg_table.last; j++) { j 6044 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (si_pi->mc_reg_table.valid_flag & (1 << j)) { j 6048 drivers/gpu/drm/amd/amdgpu/si_dpm.c cpu_to_be16(si_pi->mc_reg_table.mc_reg_address[j].s0); j 6050 drivers/gpu/drm/amd/amdgpu/si_dpm.c cpu_to_be16(si_pi->mc_reg_table.mc_reg_address[j].s1); j 6061 drivers/gpu/drm/amd/amdgpu/si_dpm.c u32 i, j; j 6063 drivers/gpu/drm/amd/amdgpu/si_dpm.c for(i = 0, j = 0; j < num_entries; j++) { j 6064 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (valid_flag & (1 << j)) { j 6065 drivers/gpu/drm/amd/amdgpu/si_dpm.c data->value[i] = cpu_to_be32(entry->mc_data[j]); j 6326 drivers/gpu/drm/amd/amdgpu/si_dpm.c int j; j 6345 drivers/gpu/drm/amd/amdgpu/si_dpm.c for (j = (table->count - 2); j >= 0; j--) { j 6346 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->entries[j].v = (table->entries[j].v <= table->entries[j + 1].v) ? j 6347 drivers/gpu/drm/amd/amdgpu/si_dpm.c table->entries[j].v : table->entries[j + 1].v; j 7218 drivers/gpu/drm/amd/amdgpu/si_dpm.c int i, j, k, non_clock_array_index, clock_array_index; j 7270 drivers/gpu/drm/amd/amdgpu/si_dpm.c for (j = 0; j < power_state->v2.ucNumDPMLevels; j++) { j 7271 drivers/gpu/drm/amd/amdgpu/si_dpm.c clock_array_index = idx[j]; j 258 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c int i, j, r; j 318 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c for (j = 0; j < 100; ++j) { j 383 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c uint32_t i, j; j 389 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c for (j = 0; j < 100; ++j) { j 400 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c for (j = 0; j < 100; ++j) { j 414 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c for (j = 0; j < 100; ++j) { j 298 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c int i, j, r; j 363 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c for (j = 0; j < 100; ++j) { j 705 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c int i, j, r; j 780 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c for (j = 0; j < 100; ++j) { j 407 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c int i, j, r; j 410 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c for (j = 0; j < adev->uvd.num_uvd_inst; j++) { j 411 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c if (adev->uvd.harvest_config & (1 << j)) j 414 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c r = amdgpu_irq_add_id(adev, amdgpu_ih_clientid_uvds[j], UVD_7_0__SRCID__UVD_SYSTEM_MESSAGE_INTERRUPT, &adev->uvd.inst[j].irq); j 420 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c r = amdgpu_irq_add_id(adev, amdgpu_ih_clientid_uvds[j], i + UVD_7_0__SRCID__UVD_ENC_GEN_PURP, &adev->uvd.inst[j].irq); j 447 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c for (j = 0; j < adev->uvd.num_uvd_inst; j++) { j 448 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c if (adev->uvd.harvest_config & (1 << j)) j 451 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c ring = &adev->uvd.inst[j].ring; j 453 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c r = amdgpu_ring_init(adev, ring, 512, &adev->uvd.inst[j].irq, 0); j 459 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c ring = &adev->uvd.inst[j].ring_enc[i]; j 472 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c r = amdgpu_ring_init(adev, ring, 512, &adev->uvd.inst[j].irq, 0); j 495 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c int i, j, r; j 504 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c for (j = 0; j < adev->uvd.num_uvd_inst; ++j) { j 505 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c if (adev->uvd.harvest_config & (1 << j)) j 508 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c amdgpu_ring_fini(&adev->uvd.inst[j].ring_enc[i]); j 525 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c int i, j, r; j 534 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c for (j = 0; j < adev->uvd.num_uvd_inst; ++j) { j 535 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c if (adev->uvd.harvest_config & (1 << j)) j 537 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c ring = &adev->uvd.inst[j].ring; j 546 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c DRM_ERROR("amdgpu: (%d)ring failed to lock UVD ring (%d).\n", j, r); j 550 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c tmp = PACKET0(SOC15_REG_OFFSET(UVD, j, j 555 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c tmp = PACKET0(SOC15_REG_OFFSET(UVD, j, j 560 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c tmp = PACKET0(SOC15_REG_OFFSET(UVD, j, j 566 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c amdgpu_ring_write(ring, PACKET0(SOC15_REG_OFFSET(UVD, j, j 570 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c amdgpu_ring_write(ring, PACKET0(SOC15_REG_OFFSET(UVD, j, j 578 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c ring = &adev->uvd.inst[j].ring_enc[i]; j 936 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c int i, j, k, r; j 1026 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c for (j = 0; j < 100; ++j) { j 1852 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c int i, j; j 1854 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c for (j = 0; j < adev->uvd.num_uvd_inst; j++) { j 1855 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c if (adev->uvd.harvest_config & (1 << j)) j 1858 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c adev->uvd.inst[j].ring_enc[i].funcs = &uvd_v7_0_enc_ring_vm_funcs; j 1859 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c adev->uvd.inst[j].ring_enc[i].me = j; j 1862 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c DRM_INFO("UVD(%d) ENC is enabled in VM mode\n", j); j 101 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c int i, j; j 104 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c for (j = 0; j < 100; ++j) { j 118 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c int i, j; j 121 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c for (j = 0; j < 100; ++j) { j 237 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c int i, j; j 240 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c for (j = 0; j < 100; ++j) { j 126 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c int i, j; j 129 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c for (j = 0; j < 100; ++j) { j 787 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c int i, j, r; j 865 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c for (j = 0; j < 100; ++j) { j 1059 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c int i, j, r; j 1148 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c for (j = 0; j < 100; ++j) { j 113 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c int i, j, r; j 116 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c for (j = 0; j < adev->vcn.num_vcn_inst; j++) { j 117 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c if (adev->vcn.harvest_config & (1 << j)) j 120 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c r = amdgpu_irq_add_id(adev, amdgpu_ih_clientid_vcns[j], j 121 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c VCN_2_0__SRCID__UVD_SYSTEM_MESSAGE_INTERRUPT, &adev->vcn.inst[j].irq); j 127 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c r = amdgpu_irq_add_id(adev, amdgpu_ih_clientid_vcns[j], j 128 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c i + VCN_2_0__SRCID__UVD_ENC_GENERAL_PURPOSE, &adev->vcn.inst[j].irq); j 134 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c r = amdgpu_irq_add_id(adev, amdgpu_ih_clientid_vcns[j], j 135 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c VCN_2_0__SRCID__JPEG_DECODE, &adev->vcn.inst[j].irq); j 165 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c for (j = 0; j < adev->vcn.num_vcn_inst; j++) { j 166 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c if (adev->vcn.harvest_config & (1 << j)) j 176 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[j].external.scratch9 = SOC15_REG_OFFSET(UVD, j, mmUVD_SCRATCH9); j 178 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[j].external.data0 = SOC15_REG_OFFSET(UVD, j, mmUVD_GPCOM_VCPU_DATA0); j 180 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[j].external.data1 = SOC15_REG_OFFSET(UVD, j, mmUVD_GPCOM_VCPU_DATA1); j 182 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[j].external.cmd = SOC15_REG_OFFSET(UVD, j, mmUVD_GPCOM_VCPU_CMD); j 184 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[j].external.nop = SOC15_REG_OFFSET(UVD, j, mmUVD_NO_OP); j 187 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[j].external.jpeg_pitch = SOC15_REG_OFFSET(UVD, j, mmUVD_JPEG_PITCH); j 189 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring = &adev->vcn.inst[j].ring_dec; j 191 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring->doorbell_index = (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + 8*j; j 192 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c sprintf(ring->name, "vcn_dec_%d", j); j 193 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst[j].irq, 0); j 198 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring = &adev->vcn.inst[j].ring_enc[i]; j 200 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring->doorbell_index = (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + 2 + i + 8*j; j 201 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c sprintf(ring->name, "vcn_enc_%d.%d", j, i); j 202 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst[j].irq, 0); j 207 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring = &adev->vcn.inst[j].ring_jpeg; j 209 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring->doorbell_index = (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + 1 + 8*j; j 210 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c sprintf(ring->name, "vcn_jpeg_%d", j); j 211 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst[j].irq, 0); j 251 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c int i, j, r; j 253 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c for (j = 0; j < adev->vcn.num_vcn_inst; ++j) { j 254 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c if (adev->vcn.harvest_config & (1 << j)) j 256 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring = &adev->vcn.inst[j].ring_dec; j 259 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring->doorbell_index, j); j 268 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring = &adev->vcn.inst[j].ring_enc[i]; j 278 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring = &adev->vcn.inst[j].ring_jpeg; j 715 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c int i, j, k, r; j 804 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c for (j = 0; j < 100; ++j) { j 1224 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c int i, j; j 1226 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c for (j = 0; j < adev->vcn.num_vcn_inst; ++j) { j 1227 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c if (adev->vcn.harvest_config & (1 << j)) j 1230 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[j].ring_enc[i].funcs = &vcn_v2_5_enc_ring_vm_funcs; j 1231 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[j].ring_enc[i].me = j; j 1233 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c DRM_INFO("VCN(%d) encode is enabled in VM mode\n", j); j 619 drivers/gpu/drm/amd/amdkfd/kfd_crat.c int i, j, k; j 697 drivers/gpu/drm/amd/amdkfd/kfd_crat.c for (j = 0; j < cu_info->num_shader_arrays_per_engine; j 698 drivers/gpu/drm/amd/amdkfd/kfd_crat.c j++) { j 706 drivers/gpu/drm/amd/amdkfd/kfd_crat.c cu_info->cu_bitmap[i][j], j 1651 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c int i, j; j 1666 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c for (j = 0; j < i; j++) { j 1667 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c kfree(dqm->mqd_mgrs[j]); j 1668 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c dqm->mqd_mgrs[j] = NULL; j 330 drivers/gpu/drm/amd/amdkfd/kfd_topology.c uint32_t i, j; j 349 drivers/gpu/drm/amd/amdkfd/kfd_topology.c for (j = 0; j < sizeof(cache->sibling_map[0])*8; j++) { j 351 drivers/gpu/drm/amd/amdkfd/kfd_topology.c if (cache->sibling_map[i] & (1 << j)) j 3505 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c int j, highest_rfr = 0, master_stream = 0; j 3507 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c for (j = 0; j < stream_count; j++) { j 3508 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (stream_set[j] && stream_set[j]->triggered_crtc_reset.enabled) { j 3511 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c refresh_rate = (stream_set[j]->timing.pix_clk_100hz*100)/ j 3512 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c (stream_set[j]->timing.h_total*stream_set[j]->timing.v_total); j 3515 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c master_stream = j; j 3519 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c for (j = 0; j < stream_count; j++) { j 3520 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (stream_set[j]) j 3521 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c stream_set[j]->triggered_crtc_reset.event_source = stream_set[master_stream]; j 6161 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c uint32_t i, j; j 6348 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c for (j = 0; j < status->plane_count; j++) j 6349 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dummy_updates[j].surface = status->plane_states[0]; j 6382 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c for_each_new_crtc_in_state(state, crtc, new_crtc_state, j) j 6387 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c for_each_new_crtc_in_state(state, crtc, new_crtc_state, j) { j 7079 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c int i, j, num_plane, ret = 0; j 7120 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, j) { j 62 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c int j = 0; j 85 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c while (j < 13 && edid_buf->detailed_timings[i].data.other_data.data.str.str[j]) { j 86 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c if (edid_buf->detailed_timings[i].data.other_data.data.str.str[j] == '\n') j 89 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c edid_caps->display_name[j] = j 90 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c edid_buf->detailed_timings[i].data.other_data.data.str.str[j]; j 91 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c j++; j 2548 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c uint32_t j; j 2551 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c for (j = i; j > 0; --j) { j 2553 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c info->disp_clk_voltage[j].max_supported_clk < j 2554 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c info->disp_clk_voltage[j-1].max_supported_clk) { j 2556 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c temp = info->disp_clk_voltage[j-1]; j 2557 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c info->disp_clk_voltage[j-1] = j 2558 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c info->disp_clk_voltage[j]; j 2559 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c info->disp_clk_voltage[j] = temp; j 2596 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c unsigned int j; j 2644 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c for (j = 0; j < slot_layout_info->num_of_connectors; ++j) { j 2645 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c slot_layout_info->connectors[j].connector_type = j 2647 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c (record->asConnInfo[j].ucConnectorType); j 2648 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c switch (record->asConnInfo[j].ucConnectorType) { j 2650 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c slot_layout_info->connectors[j].connector_type = j 2652 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c slot_layout_info->connectors[j].length = j 2657 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c slot_layout_info->connectors[j].connector_type = j 2659 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c slot_layout_info->connectors[j].length = j 2664 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c slot_layout_info->connectors[j].connector_type = j 2666 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c slot_layout_info->connectors[j].length = j 2671 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c slot_layout_info->connectors[j].connector_type = j 2673 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c slot_layout_info->connectors[j].length = j 2678 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c slot_layout_info->connectors[j].connector_type = j 2680 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c slot_layout_info->connectors[j].length = j 2684 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c slot_layout_info->connectors[j].position = j 2685 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c record->asConnInfo[j].ucPosition; j 2686 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c slot_layout_info->connectors[j].connector_id = j 2688 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c record->asConnInfo[j].usConnectorObjectId); j 1619 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c uint32_t j; j 1642 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c for (j = i; j > 0; --j) { j 1643 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c if (info->disp_clk_voltage[j].max_supported_clk < j 1644 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c info->disp_clk_voltage[j-1].max_supported_clk j 1647 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c temp = info->disp_clk_voltage[j-1]; j 1648 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c info->disp_clk_voltage[j-1] = j 1649 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c info->disp_clk_voltage[j]; j 1650 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c info->disp_clk_voltage[j] = temp; j 1685 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c unsigned int j; j 1746 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c for (j = 0; j < slot_layout_info->num_of_connectors; ++j) { j 1747 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c slot_layout_info->connectors[j].connector_type = j 1749 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c (record->conn_info[j].connector_type); j 1750 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c switch (record->conn_info[j].connector_type) { j 1752 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c slot_layout_info->connectors[j].connector_type = j 1754 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c slot_layout_info->connectors[j].length = j 1759 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c slot_layout_info->connectors[j].connector_type = j 1761 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c slot_layout_info->connectors[j].length = j 1766 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c slot_layout_info->connectors[j].connector_type = j 1768 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c slot_layout_info->connectors[j].length = j 1773 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c slot_layout_info->connectors[j].connector_type = j 1775 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c slot_layout_info->connectors[j].length = j 1780 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c slot_layout_info->connectors[j].connector_type = j 1782 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c slot_layout_info->connectors[j].length = j 1786 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c slot_layout_info->connectors[j].position = j 1787 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c record->conn_info[j].position; j 1788 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c slot_layout_info->connectors[j].connector_id = j 1790 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c record->conn_info[j].connectorobjid); j 186 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h int i, j, k; j 537 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h for (j = 0; j < 3; j++) { j 541 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h i, j, k, bw_fixed_to_int(data->line_source_transfer_time[i][j][k])); j 543 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h i, j, k, j 544 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h bw_fixed_to_int(data->dram_speed_change_line_source_transfer_time[i][j][k])); j 550 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h for (j = 0; j < 8; j++) { j 553 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h i, j, data->num_displays_with_margin[i][j]); j 555 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h i, j, bw_fixed_to_int(data->dmif_burst_time[i][j])); j 557 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h i, j, bw_fixed_to_int(data->mcifwr_burst_time[i][j])); j 559 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h i, j, bw_fixed_to_int(data->min_dram_speed_change_margin[i][j])); j 561 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h i, j, bw_fixed_to_int(data->dispclk_required_for_dram_speed_change[i][j])); j 563 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h i, j, bw_fixed_to_int(data->blackout_duration_margin[i][j])); j 565 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h i, j, bw_fixed_to_int(data->dispclk_required_for_blackout_duration[i][j])); j 567 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h i, j, bw_fixed_to_int(data->dispclk_required_for_blackout_recovery[i][j])); j 130 drivers/gpu/drm/amd/display/dc/calcs/custom_float.c uint32_t j = 0; j 165 drivers/gpu/drm/amd/display/dc/calcs/custom_float.c while (j < format->exponenta_bits) { j 166 drivers/gpu/drm/amd/display/dc/calcs/custom_float.c uint32_t mask = 1 << j; j 171 drivers/gpu/drm/amd/display/dc/calcs/custom_float.c ++j; j 175 drivers/gpu/drm/amd/display/dc/calcs/custom_float.c value |= 1 << (i + j); j 100 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c int32_t i, j, k; j 1187 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c for (j = 0; j <= 7; j++) { j 1188 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dmif_burst_time[i][j] = bw_max3(data->dmif_total_page_close_open_time, bw_div(data->total_display_reads_required_dram_access_data, (bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[i]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels)))), bw_div(data->total_display_reads_required_data, (bw_mul(bw_mul(sclk[j], vbios->data_return_bus_width), bw_frc_to_fixed(dceip->percent_of_ideal_port_bw_received_after_urgent_latency, 100))))); j 1190 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->mcifwr_burst_time[i][j] = bw_max3(data->mcifwr_total_page_close_open_time, bw_div(data->total_display_writes_required_dram_access_data, (bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[i]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_wrchannels)))), bw_div(data->total_display_writes_required_data, (bw_mul(sclk[j], vbios->data_return_bus_width)))); j 1195 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c for (j = 0; j <= 2; j++) { j 1202 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->line_source_transfer_time[i][j][k] = bw_max2(bw_mul((bw_add(data->total_dmifmc_urgent_latency, data->dmif_burst_time[j][k])), bw_floor2(bw_div(data->src_data_for_first_output_pixel[i], data->adjusted_data_buffer_size_in_memory[i]), bw_int_to_fixed(1))), bw_sub(bw_add(bw_mul((bw_add(data->total_dmifmc_urgent_latency, data->dmif_burst_time[j][k])), bw_floor2(bw_div(data->src_data_for_last_output_pixel[i], data->adjusted_data_buffer_size_in_memory[i]), bw_int_to_fixed(1))), data->dmif_buffer_transfer_time[i]), data->active_time[i])); j 1249 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_speed_change_line_source_transfer_time[i][j][k] = bw_mul(bw_int_to_fixed(2), bw_max2((bw_add((bw_div(data->src_data_for_first_output_pixel[i], bw_min2(bw_mul(data->bytes_per_request[i], sclk[k]), bw_div(bw_mul(bw_mul(data->bytes_per_request[i], data->pixel_rate[i]), data->scaler_limits_factor), bw_int_to_fixed(2))))), (bw_mul(data->dmif_burst_time[j][k], bw_floor2(bw_div(data->src_data_for_first_output_pixel[i], data->adjusted_data_buffer_size_in_memory[i]), bw_int_to_fixed(1)))))), (bw_add((bw_div(data->src_data_for_last_output_pixel[i], bw_min2(bw_mul(data->bytes_per_request[i], sclk[k]), bw_div(bw_mul(bw_mul(data->bytes_per_request[i], data->pixel_rate[i]), data->scaler_limits_factor), bw_int_to_fixed(2))))), (bw_sub(bw_mul(data->dmif_burst_time[j][k], bw_floor2(bw_div(data->src_data_for_last_output_pixel[i], data->adjusted_data_buffer_size_in_memory[i]), bw_int_to_fixed(1))), data->active_time[i])))))); j 1252 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->line_source_transfer_time[i][j][k] = bw_max2(bw_mul((bw_add(vbios->mcifwrmc_urgent_latency, data->mcifwr_burst_time[j][k])), bw_floor2(bw_div(data->src_data_for_first_output_pixel[i], data->adjusted_data_buffer_size_in_memory[i]), bw_int_to_fixed(1))), bw_sub(bw_mul((bw_add(vbios->mcifwrmc_urgent_latency, data->mcifwr_burst_time[j][k])), bw_floor2(bw_div(data->src_data_for_last_output_pixel[i], data->adjusted_data_buffer_size_in_memory[i]), bw_int_to_fixed(1))), data->active_time[i])); j 1258 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_speed_change_line_source_transfer_time[i][j][k] = bw_max2((bw_add((bw_div(data->src_data_for_first_output_pixel[i], bw_min2(bw_mul(data->bytes_per_request[i], sclk[k]), bw_div(bw_mul(data->bytes_per_request[i], vbios->low_voltage_max_dispclk), bw_int_to_fixed(2))))), (bw_mul(data->mcifwr_burst_time[j][k], bw_floor2(bw_div(data->src_data_for_first_output_pixel[i], data->adjusted_data_buffer_size_in_memory[i]), bw_int_to_fixed(1)))))), (bw_add((bw_div(data->src_data_for_last_output_pixel[i], bw_min2(bw_mul(data->bytes_per_request[i], sclk[k]), bw_div(bw_mul(data->bytes_per_request[i], vbios->low_voltage_max_dispclk), bw_int_to_fixed(2))))), (bw_sub(bw_mul(data->mcifwr_burst_time[j][k], bw_floor2(bw_div(data->src_data_for_last_output_pixel[i], data->adjusted_data_buffer_size_in_memory[i]), bw_int_to_fixed(1))), data->active_time[i]))))); j 1315 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c for (j = 0; j <= 7; j++) { j 1316 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->blackout_duration_margin[i][j] = bw_int_to_fixed(9999); j 1317 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dispclk_required_for_blackout_duration[i][j] = bw_int_to_fixed(0); j 1318 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dispclk_required_for_blackout_recovery[i][j] = bw_int_to_fixed(0); j 1322 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->blackout_duration_margin[i][j] = bw_min2(data->blackout_duration_margin[i][j], bw_sub(bw_sub(bw_sub(data->minimum_latency_hiding_with_cursor[k], vbios->blackout_duration), data->dmif_burst_time[i][j]), data->line_source_transfer_time[k][i][j])); j 1323 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dispclk_required_for_blackout_duration[i][j] = bw_max3(data->dispclk_required_for_blackout_duration[i][j], bw_div(bw_div(bw_mul(data->src_pixels_for_first_output_pixel[k], dceip->display_pipe_throughput_factor), dceip->lb_write_pixels_per_dispclk), (bw_sub(bw_sub(data->minimum_latency_hiding_with_cursor[k], vbios->blackout_duration), data->dmif_burst_time[i][j]))), bw_div(bw_div(bw_mul(data->src_pixels_for_last_output_pixel[k], dceip->display_pipe_throughput_factor), dceip->lb_write_pixels_per_dispclk), (bw_add(bw_sub(bw_sub(data->minimum_latency_hiding_with_cursor[k], vbios->blackout_duration), data->dmif_burst_time[i][j]), data->active_time[k])))); j 1324 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (bw_leq(vbios->maximum_blackout_recovery_time, bw_add(bw_mul(bw_int_to_fixed(2), data->total_dmifmc_urgent_latency), data->dmif_burst_time[i][j]))) { j 1325 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dispclk_required_for_blackout_recovery[i][j] = bw_int_to_fixed(9999); j 1327 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c else if (bw_ltn(data->adjusted_data_buffer_size[k], bw_mul(bw_div(bw_mul(data->display_bandwidth[k], data->useful_bytes_per_request[k]), data->bytes_per_request[k]), (bw_add(vbios->blackout_duration, bw_add(bw_mul(bw_int_to_fixed(2), data->total_dmifmc_urgent_latency), data->dmif_burst_time[i][j])))))) { j 1328 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dispclk_required_for_blackout_recovery[i][j] = bw_max2(data->dispclk_required_for_blackout_recovery[i][j], bw_div(bw_mul(bw_div(bw_div((bw_sub(bw_mul(bw_div(bw_mul(data->display_bandwidth[k], data->useful_bytes_per_request[k]), data->bytes_per_request[k]), (bw_add(vbios->blackout_duration, vbios->maximum_blackout_recovery_time))), data->adjusted_data_buffer_size[k])), bw_int_to_fixed(data->bytes_per_pixel[k])), (bw_sub(vbios->maximum_blackout_recovery_time, bw_sub(bw_mul(bw_int_to_fixed(2), data->total_dmifmc_urgent_latency), data->dmif_burst_time[i][j])))), data->latency_hiding_lines[k]), data->lines_interleaved_in_mem_access[k])); j 1332 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->blackout_duration_margin[i][j] = bw_min2(data->blackout_duration_margin[i][j], bw_sub(bw_sub(bw_sub(bw_sub(data->minimum_latency_hiding_with_cursor[k], vbios->blackout_duration), data->dmif_burst_time[i][j]), data->mcifwr_burst_time[i][j]), data->line_source_transfer_time[k][i][j])); j 1333 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dispclk_required_for_blackout_duration[i][j] = bw_max3(data->dispclk_required_for_blackout_duration[i][j], bw_div(bw_div(bw_mul(data->src_pixels_for_first_output_pixel[k], dceip->display_pipe_throughput_factor), dceip->lb_write_pixels_per_dispclk), (bw_sub(bw_sub(bw_sub(data->minimum_latency_hiding_with_cursor[k], vbios->blackout_duration), data->dmif_burst_time[i][j]), data->mcifwr_burst_time[i][j]))), bw_div(bw_div(bw_mul(data->src_pixels_for_last_output_pixel[k], dceip->display_pipe_throughput_factor), dceip->lb_write_pixels_per_dispclk), (bw_add(bw_sub(bw_sub(bw_sub(data->minimum_latency_hiding_with_cursor[k], vbios->blackout_duration), data->dmif_burst_time[i][j]), data->mcifwr_burst_time[i][j]), data->active_time[k])))); j 1334 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (bw_ltn(vbios->maximum_blackout_recovery_time, bw_add(bw_add(bw_mul(bw_int_to_fixed(2), vbios->mcifwrmc_urgent_latency), data->dmif_burst_time[i][j]), data->mcifwr_burst_time[i][j]))) { j 1335 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dispclk_required_for_blackout_recovery[i][j] = bw_int_to_fixed(9999); j 1337 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c else if (bw_ltn(data->adjusted_data_buffer_size[k], bw_mul(bw_div(bw_mul(data->display_bandwidth[k], data->useful_bytes_per_request[k]), data->bytes_per_request[k]), (bw_add(vbios->blackout_duration, bw_add(bw_mul(bw_int_to_fixed(2), data->total_dmifmc_urgent_latency), data->dmif_burst_time[i][j])))))) { j 1338 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dispclk_required_for_blackout_recovery[i][j] = bw_max2(data->dispclk_required_for_blackout_recovery[i][j], bw_div(bw_mul(bw_div(bw_div((bw_sub(bw_mul(bw_div(bw_mul(data->display_bandwidth[k], data->useful_bytes_per_request[k]), data->bytes_per_request[k]), (bw_add(vbios->blackout_duration, vbios->maximum_blackout_recovery_time))), data->adjusted_data_buffer_size[k])), bw_int_to_fixed(data->bytes_per_pixel[k])), (bw_sub(vbios->maximum_blackout_recovery_time, (bw_add(bw_mul(bw_int_to_fixed(2), data->total_dmifmc_urgent_latency), data->dmif_burst_time[i][j]))))), data->latency_hiding_lines[k]), data->lines_interleaved_in_mem_access[k])); j 1378 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c for (j = 0; j <= 7; j++) { j 1379 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->min_dram_speed_change_margin[i][j] = bw_int_to_fixed(9999); j 1381 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dispclk_required_for_dram_speed_change[i][j] = bw_int_to_fixed(0); j 1382 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->num_displays_with_margin[i][j] = 0; j 1386 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_speed_change_margin = bw_sub(bw_sub(bw_sub(data->maximum_latency_hiding_with_cursor[k], vbios->nbp_state_change_latency), data->dmif_burst_time[i][j]), data->dram_speed_change_line_source_transfer_time[k][i][j]); j 1389 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->min_dram_speed_change_margin[i][j] = bw_min2(data->min_dram_speed_change_margin[i][j], data->dram_speed_change_margin); j 1391 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dispclk_required_for_dram_speed_change_pipe[i][j] = bw_max2(bw_div(bw_div(bw_mul(data->src_pixels_for_first_output_pixel[k], dceip->display_pipe_throughput_factor), dceip->lb_write_pixels_per_dispclk), (bw_sub(bw_sub(bw_sub(data->maximum_latency_hiding_with_cursor[k], vbios->nbp_state_change_latency), data->dmif_burst_time[i][j]), data->dram_speed_change_line_source_transfer_time[k][i][j]))), bw_div(bw_div(bw_mul(data->src_pixels_for_last_output_pixel[k], dceip->display_pipe_throughput_factor), dceip->lb_write_pixels_per_dispclk), (bw_add(bw_sub(bw_sub(bw_sub(data->maximum_latency_hiding_with_cursor[k], vbios->nbp_state_change_latency), data->dmif_burst_time[i][j]), data->dram_speed_change_line_source_transfer_time[k][i][j]), data->active_time[k])))); j 1392 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if ((bw_ltn(data->dispclk_required_for_dram_speed_change_pipe[i][j], vbios->high_voltage_max_dispclk))) { j 1394 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->num_displays_with_margin[i][j] = data->num_displays_with_margin[i][j] + 1; j 1395 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dispclk_required_for_dram_speed_change[i][j] = bw_max2(data->dispclk_required_for_dram_speed_change[i][j], data->dispclk_required_for_dram_speed_change_pipe[i][j]); j 1400 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_speed_change_margin = bw_sub(bw_sub(bw_sub(bw_sub(data->maximum_latency_hiding_with_cursor[k], vbios->nbp_state_change_latency), data->dmif_burst_time[i][j]), data->mcifwr_burst_time[i][j]), data->dram_speed_change_line_source_transfer_time[k][i][j]); j 1403 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->min_dram_speed_change_margin[i][j] = bw_min2(data->min_dram_speed_change_margin[i][j], data->dram_speed_change_margin); j 1405 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dispclk_required_for_dram_speed_change_pipe[i][j] = bw_max2(bw_div(bw_div(bw_mul(data->src_pixels_for_first_output_pixel[k], dceip->display_pipe_throughput_factor), dceip->lb_write_pixels_per_dispclk), (bw_sub(bw_sub(bw_sub(bw_sub(data->maximum_latency_hiding_with_cursor[k], vbios->nbp_state_change_latency), data->dmif_burst_time[i][j]), data->dram_speed_change_line_source_transfer_time[k][i][j]), data->mcifwr_burst_time[i][j]))), bw_div(bw_div(bw_mul(data->src_pixels_for_last_output_pixel[k], dceip->display_pipe_throughput_factor), dceip->lb_write_pixels_per_dispclk), (bw_add(bw_sub(bw_sub(bw_sub(bw_sub(data->maximum_latency_hiding_with_cursor[k], vbios->nbp_state_change_latency), data->dmif_burst_time[i][j]), data->dram_speed_change_line_source_transfer_time[k][i][j]), data->mcifwr_burst_time[i][j]), data->active_time[k])))); j 1406 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if ((bw_ltn(data->dispclk_required_for_dram_speed_change_pipe[i][j], vbios->high_voltage_max_dispclk))) { j 1408 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->num_displays_with_margin[i][j] = data->num_displays_with_margin[i][j] + 1; j 1409 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dispclk_required_for_dram_speed_change[i][j] = bw_max2(data->dispclk_required_for_dram_speed_change[i][j], data->dispclk_required_for_dram_speed_change_pipe[i][j]); j 1442 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c for (j = 0; j <= maximum_number_of_surfaces - 1; j++) { j 1443 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if ((i == j || data->display_synchronization_enabled) && (data->enable[j] == 1 && bw_equ(data->source_width_rounded_up_to_chunks[i], data->source_width_rounded_up_to_chunks[j]) && bw_equ(data->source_height_rounded_up_to_chunks[i], data->source_height_rounded_up_to_chunks[j]) && bw_equ(data->vsr[i], data->vsr[j]) && bw_equ(data->hsr[i], data->hsr[j]) && bw_equ(data->pixel_rate[i], data->pixel_rate[j]))) { j 2762 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c int i, j; j 2849 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c for (j = 0; j < 2; j++) { j 2850 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->fbc_en[num_displays * 2 + j] = false; j 2851 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->lpt_en[num_displays * 2 + j] = false; j 2853 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->src_height[num_displays * 2 + j] = bw_int_to_fixed(pipe[i].bottom_pipe->plane_res.scl_data.viewport.height); j 2854 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->src_width[num_displays * 2 + j] = bw_int_to_fixed(pipe[i].bottom_pipe->plane_res.scl_data.viewport.width); j 2855 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->pitch_in_pixels[num_displays * 2 + j] = bw_int_to_fixed( j 2857 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->h_taps[num_displays * 2 + j] = bw_int_to_fixed(pipe[i].bottom_pipe->plane_res.scl_data.taps.h_taps); j 2858 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->v_taps[num_displays * 2 + j] = bw_int_to_fixed(pipe[i].bottom_pipe->plane_res.scl_data.taps.v_taps); j 2859 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->h_scale_ratio[num_displays * 2 + j] = fixed31_32_to_bw_fixed( j 2861 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->v_scale_ratio[num_displays * 2 + j] = fixed31_32_to_bw_fixed( j 2865 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->rotation_angle[num_displays * 2 + j] = bw_int_to_fixed(0); j 2868 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->rotation_angle[num_displays * 2 + j] = bw_int_to_fixed(90); j 2871 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->rotation_angle[num_displays * 2 + j] = bw_int_to_fixed(180); j 2874 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->rotation_angle[num_displays * 2 + j] = bw_int_to_fixed(270); j 2879 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->stereo_mode[num_displays * 2 + j] = bw_def_mono; j 124 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c int j; j 435 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c for (j = 0; j <= 1; j++) { j 436 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->total_number_of_active_dpp[i][j] = 0.0; j 437 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->required_dispclk[i][j] = 0.0; j 438 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->dispclk_dppclk_support[i][j] = dcn_bw_yes; j 440 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->min_dispclk_using_single_dpp =dcn_bw_max2(v->pixel_clock[k], v->min_dppclk_using_single_dpp[k] * (j + 1)) * (1.0 + v->downspreading / 100.0); j 442 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->min_dispclk_using_dual_dpp =dcn_bw_max2(v->pixel_clock[k] / 2.0, v->min_dppclk_using_single_dpp[k] / 2.0 * (j + 1)) * (1.0 + v->downspreading / 100.0); j 445 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->min_dispclk_using_dual_dpp =dcn_bw_max2(v->pixel_clock[k], v->min_dppclk_using_single_dpp[k] / 2.0 * (j + 1)) * (1.0 + v->downspreading / 100.0); j 451 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c if (v->min_dispclk_using_single_dpp <=dcn_bw_min2(v->max_dispclk[i], (j + 1) * v->max_dppclk[i]) && v->number_of_dpp_required_for_det_and_lb_size[k] <= 1.0) { j 452 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->no_of_dpp[i][j][k] = 1.0; j 453 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->required_dispclk[i][j] =dcn_bw_max2(v->required_dispclk[i][j], v->min_dispclk_using_single_dpp); j 455 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c else if (v->min_dispclk_using_dual_dpp <=dcn_bw_min2(v->max_dispclk[i], (j + 1) * v->max_dppclk[i])) { j 456 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->no_of_dpp[i][j][k] = 2.0; j 457 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->required_dispclk[i][j] =dcn_bw_max2(v->required_dispclk[i][j], v->min_dispclk_using_dual_dpp); j 460 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->no_of_dpp[i][j][k] = 2.0; j 461 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->required_dispclk[i][j] =dcn_bw_max2(v->required_dispclk[i][j], v->min_dispclk_using_dual_dpp); j 462 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->dispclk_dppclk_support[i][j] = dcn_bw_no; j 464 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->total_number_of_active_dpp[i][j] = v->total_number_of_active_dpp[i][j] + v->no_of_dpp[i][j][k]; j 466 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c if (v->total_number_of_active_dpp[i][j] > v->max_num_dpp) { j 467 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->total_number_of_active_dpp[i][j] = 0.0; j 468 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->required_dispclk[i][j] = 0.0; j 469 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->dispclk_dppclk_support[i][j] = dcn_bw_yes; j 471 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->min_dispclk_using_single_dpp =dcn_bw_max2(v->pixel_clock[k], v->min_dppclk_using_single_dpp[k] * (j + 1)) * (1.0 + v->downspreading / 100.0); j 472 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->min_dispclk_using_dual_dpp =dcn_bw_max2(v->pixel_clock[k], v->min_dppclk_using_single_dpp[k] / 2.0 * (j + 1)) * (1.0 + v->downspreading / 100.0); j 478 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->no_of_dpp[i][j][k] = 1.0; j 479 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->required_dispclk[i][j] =dcn_bw_max2(v->required_dispclk[i][j], v->min_dispclk_using_single_dpp); j 480 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c if (v->min_dispclk_using_single_dpp >dcn_bw_min2(v->max_dispclk[i], (j + 1) * v->max_dppclk[i])) { j 481 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->dispclk_dppclk_support[i][j] = dcn_bw_no; j 485 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->no_of_dpp[i][j][k] = 2.0; j 486 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->required_dispclk[i][j] =dcn_bw_max2(v->required_dispclk[i][j], v->min_dispclk_using_dual_dpp); j 487 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c if (v->min_dispclk_using_dual_dpp >dcn_bw_min2(v->max_dispclk[i], (j + 1) * v->max_dppclk[i])) { j 488 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->dispclk_dppclk_support[i][j] = dcn_bw_no; j 491 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->total_number_of_active_dpp[i][j] = v->total_number_of_active_dpp[i][j] + v->no_of_dpp[i][j][k]; j 507 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c for (j = 0; j <= 1; j++) { j 508 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c if (v->total_number_of_active_dpp[i][j] <= v->max_num_dpp) { j 509 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->total_available_pipes_support[i][j] = dcn_bw_yes; j 512 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->total_available_pipes_support[i][j] = dcn_bw_no; j 520 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c for (j = 0; j <= 1; j++) { j 521 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->swath_width_yper_state[i][j][k] = v->swath_width_ysingle_dpp[k] / v->no_of_dpp[i][j][k]; j 523 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->rounded_up_max_swath_size_bytes_y = (dcn_bw_ceil2(v->swath_width_yper_state[i][j][k] - 1.0, v->swath_width_granularity_y) + v->swath_width_granularity_y) * v->byte_per_pixel_in_dety[k] * v->max_swath_height_y[k]; j 530 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->rounded_up_max_swath_size_bytes_c = (dcn_bw_ceil2(v->swath_width_yper_state[i][j][k] / 2.0 - 1.0, v->swath_width_granularity_c) + v->swath_width_granularity_c) * v->byte_per_pixel_in_detc[k] * v->max_swath_height_c[k]; j 535 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->swath_height_yper_state[i][j][k] = v->max_swath_height_y[k]; j 536 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->swath_height_cper_state[i][j][k] = v->max_swath_height_c[k]; j 539 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->swath_height_yper_state[i][j][k] = v->min_swath_height_y[k]; j 540 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->swath_height_cper_state[i][j][k] = v->min_swath_height_c[k]; j 543 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->lines_in_det_luma = v->det_buffer_size_in_kbyte * 1024.0 / v->byte_per_pixel_in_dety[k] / v->swath_width_yper_state[i][j][k]; j 546 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c else if (v->swath_height_yper_state[i][j][k] <= v->swath_height_cper_state[i][j][k]) { j 547 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->lines_in_det_luma = v->det_buffer_size_in_kbyte * 1024.0 / 2.0 / v->byte_per_pixel_in_dety[k] / v->swath_width_yper_state[i][j][k]; j 548 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->lines_in_det_chroma = v->det_buffer_size_in_kbyte * 1024.0 / 2.0 / v->byte_per_pixel_in_detc[k] / (v->swath_width_yper_state[i][j][k] / 2.0); j 551 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->lines_in_det_luma = v->det_buffer_size_in_kbyte * 1024.0 * 2.0 / 3.0 / v->byte_per_pixel_in_dety[k] / v->swath_width_yper_state[i][j][k]; j 552 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->lines_in_det_chroma = v->det_buffer_size_in_kbyte * 1024.0 / 3.0 / v->byte_per_pixel_in_dety[k] / (v->swath_width_yper_state[i][j][k] / 2.0); j 554 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->effective_lb_latency_hiding_source_lines_luma =dcn_bw_min2(v->max_line_buffer_lines,dcn_bw_floor2(v->line_buffer_size / v->lb_bit_per_pixel[k] / (v->swath_width_yper_state[i][j][k] /dcn_bw_max2(v->h_ratio[k], 1.0)), 1.0)) - (v->vtaps[k] - 1.0); j 555 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->effective_lb_latency_hiding_source_lines_chroma =dcn_bw_min2(v->max_line_buffer_lines,dcn_bw_floor2(v->line_buffer_size / v->lb_bit_per_pixel[k] / (v->swath_width_yper_state[i][j][k] / 2.0 /dcn_bw_max2(v->h_ratio[k] / 2.0, 1.0)), 1.0)) - (v->vta_pschroma[k] - 1.0); j 556 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->effective_detlb_lines_luma =dcn_bw_floor2(v->lines_in_det_luma +dcn_bw_min2(v->lines_in_det_luma * v->required_dispclk[i][j] * v->byte_per_pixel_in_dety[k] * v->pscl_factor[k] / v->return_bw_per_state[i], v->effective_lb_latency_hiding_source_lines_luma), v->swath_height_yper_state[i][j][k]); j 557 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->effective_detlb_lines_chroma =dcn_bw_floor2(v->lines_in_det_chroma +dcn_bw_min2(v->lines_in_det_chroma * v->required_dispclk[i][j] * v->byte_per_pixel_in_detc[k] * v->pscl_factor_chroma[k] / v->return_bw_per_state[i], v->effective_lb_latency_hiding_source_lines_chroma), v->swath_height_cper_state[i][j][k]); j 559 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->urgent_latency_support_us_per_state[i][j][k] = v->effective_detlb_lines_luma * (v->htotal[k] / v->pixel_clock[k]) / v->v_ratio[k] - v->effective_detlb_lines_luma * v->swath_width_yper_state[i][j][k] *dcn_bw_ceil2(v->byte_per_pixel_in_dety[k], 1.0) / (v->return_bw_per_state[i] / v->no_of_dpp[i][j][k]); j 562 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->urgent_latency_support_us_per_state[i][j][k] =dcn_bw_min2(v->effective_detlb_lines_luma * (v->htotal[k] / v->pixel_clock[k]) / v->v_ratio[k] - v->effective_detlb_lines_luma * v->swath_width_yper_state[i][j][k] *dcn_bw_ceil2(v->byte_per_pixel_in_dety[k], 1.0) / (v->return_bw_per_state[i] / v->no_of_dpp[i][j][k]), v->effective_detlb_lines_chroma * (v->htotal[k] / v->pixel_clock[k]) / (v->v_ratio[k] / 2.0) - v->effective_detlb_lines_chroma * v->swath_width_yper_state[i][j][k] / 2.0 *dcn_bw_ceil2(v->byte_per_pixel_in_detc[k], 2.0) / (v->return_bw_per_state[i] / v->no_of_dpp[i][j][k])); j 568 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c for (j = 0; j <= 1; j++) { j 569 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->urgent_latency_support[i][j] = dcn_bw_yes; j 571 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c if (v->urgent_latency_support_us_per_state[i][j][k] < v->urgent_latency / 1.0) { j 572 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->urgent_latency_support[i][j] = dcn_bw_no; j 580 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c for (j = 0; j <= 1; j++) { j 581 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->total_number_of_dcc_active_dpp[i][j] = 0.0; j 584 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->total_number_of_dcc_active_dpp[i][j] = v->total_number_of_dcc_active_dpp[i][j] + v->no_of_dpp[i][j][k]; j 590 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c for (j = 0; j <= 1; j++) { j 596 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->projected_dcfclk_deep_sleep =dcn_bw_max2(v->projected_dcfclk_deep_sleep, 1.1 *dcn_bw_ceil2(v->byte_per_pixel_in_dety[k], 1.0) / 64.0 * v->h_ratio[k] * v->pixel_clock[k] / v->no_of_dpp[i][j][k]); j 599 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->projected_dcfclk_deep_sleep =dcn_bw_max2(v->projected_dcfclk_deep_sleep, 1.1 *dcn_bw_ceil2(v->byte_per_pixel_in_dety[k], 1.0) / 64.0 * v->pscl_factor[k] * v->required_dispclk[i][j] / (1 + j)); j 604 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->projected_dcfclk_deep_sleep =dcn_bw_max2(v->projected_dcfclk_deep_sleep, 1.1 *dcn_bw_ceil2(v->byte_per_pixel_in_dety[k], 1.0) / 32.0 * v->h_ratio[k] * v->pixel_clock[k] / v->no_of_dpp[i][j][k]); j 607 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->projected_dcfclk_deep_sleep =dcn_bw_max2(v->projected_dcfclk_deep_sleep, 1.1 *dcn_bw_ceil2(v->byte_per_pixel_in_dety[k], 1.0) / 32.0 * v->pscl_factor[k] * v->required_dispclk[i][j] / (1 + j)); j 610 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->projected_dcfclk_deep_sleep =dcn_bw_max2(v->projected_dcfclk_deep_sleep, 1.1 *dcn_bw_ceil2(v->byte_per_pixel_in_detc[k], 2.0) / 32.0 * v->h_ratio[k] / 2.0 * v->pixel_clock[k] / v->no_of_dpp[i][j][k]); j 613 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->projected_dcfclk_deep_sleep =dcn_bw_max2(v->projected_dcfclk_deep_sleep, 1.1 *dcn_bw_ceil2(v->byte_per_pixel_in_detc[k], 2.0) / 32.0 * v->pscl_factor_chroma[k] * v->required_dispclk[i][j] / (1 + j)); j 621 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->meta_surface_width_y =dcn_bw_ceil2(v->viewport_width[k] / v->no_of_dpp[i][j][k] - 1.0, v->meta_req_width_y) + v->meta_req_width_y; j 665 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->dpte_bytes_per_row_y = 64.0 * (dcn_bw_ceil2((v->viewport_width[k] / v->no_of_dpp[i][j][k] *dcn_bw_min2(128.0, dcn_bw_pow(2.0,dcn_bw_floor2(dcn_bw_log(v->pte_buffer_size_in_requests * v->data_pte_req_width_y / (v->viewport_width[k] / v->no_of_dpp[i][j][k]), 2.0), 1.0))) - 1.0) / v->data_pte_req_width_y, 1.0) + 1); j 668 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->dpte_bytes_per_row_y = 64.0 * (dcn_bw_ceil2((v->viewport_width[k] / v->no_of_dpp[i][j][k] - 1.0) / v->data_pte_req_width_y, 1.0) + 1); j 681 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->meta_surface_width_c =dcn_bw_ceil2(v->viewport_width[k] / v->no_of_dpp[i][j][k] / 2.0 - 1.0, v->meta_req_width_c) + v->meta_req_width_c; j 726 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->dpte_bytes_per_row_c = 64.0 * (dcn_bw_ceil2((v->viewport_width[k] / v->no_of_dpp[i][j][k] / 2.0 * dcn_bw_min2(128.0, dcn_bw_pow(2.0,dcn_bw_floor2(dcn_bw_log(v->pte_buffer_size_in_requests * v->data_pte_req_width_c / (v->viewport_width[k] / v->no_of_dpp[i][j][k] / 2.0), 2.0), 1.0))) - 1.0) / v->data_pte_req_width_c, 1.0) + 1); j 729 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->dpte_bytes_per_row_c = 64.0 * (dcn_bw_ceil2((v->viewport_width[k] / v->no_of_dpp[i][j][k] / 2.0 - 1.0) / v->data_pte_req_width_c, 1.0) + 1); j 749 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->max_num_sw_y[k] =dcn_bw_ceil2((v->prefill_y[k] - 1.0) / v->swath_height_yper_state[i][j][k], 1.0) + 1; j 751 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->max_partial_sw_y =dcn_bw_mod((v->prefill_y[k] - 2.0), v->swath_height_yper_state[i][j][k]); j 754 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->max_partial_sw_y =dcn_bw_mod((v->prefill_y[k] + v->swath_height_yper_state[i][j][k] - 2.0), v->swath_height_yper_state[i][j][k]); j 757 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->prefetch_lines_y[k] = v->max_num_sw_y[k] * v->swath_height_yper_state[i][j][k] + v->max_partial_sw_y; j 761 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->max_num_sw_c[k] =dcn_bw_ceil2((v->prefill_c[k] - 1.0) / v->swath_height_cper_state[i][j][k], 1.0) + 1; j 763 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->max_partial_sw_c =dcn_bw_mod((v->prefill_c[k] - 2.0), v->swath_height_cper_state[i][j][k]); j 766 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->max_partial_sw_c =dcn_bw_mod((v->prefill_c[k] + v->swath_height_cper_state[i][j][k] - 2.0), v->swath_height_cper_state[i][j][k]); j 769 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->prefetch_lines_c[k] = v->max_num_sw_c[k] * v->swath_height_cper_state[i][j][k] + v->max_partial_sw_c; j 774 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->dst_x_after_scaler = 90.0 * v->pixel_clock[k] / (v->required_dispclk[i][j] / (j + 1)) + 42.0 * v->pixel_clock[k] / v->required_dispclk[i][j]; j 775 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c if (v->no_of_dpp[i][j][k] > 1.0) { j 785 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_update_offset[k][j] = dcn_bw_ceil2(v->htotal[k] / 4.0, 1.0); j 786 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->total_repeater_delay = v->max_inter_dcn_tile_repeaters * (2.0 / (v->required_dispclk[i][j] / (j + 1)) + 3.0 / v->required_dispclk[i][j]); j 787 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_update_width[k][j] = (14.0 / v->projected_dcfclk_deep_sleep + 12.0 / (v->required_dispclk[i][j] / (j + 1)) + v->total_repeater_delay) * v->pixel_clock[k]; j 788 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ready_offset[k][j] = dcn_bw_max2(150.0 / (v->required_dispclk[i][j] / (j + 1)), v->total_repeater_delay + 20.0 / v->projected_dcfclk_deep_sleep + 10.0 / (v->required_dispclk[i][j] / (j + 1))) * v->pixel_clock[k]; j 789 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->time_setup = (v->v_update_offset[k][j] + v->v_update_width[k][j] + v->v_ready_offset[k][j]) / v->pixel_clock[k]; j 790 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->extra_latency = v->urgent_round_trip_and_out_of_order_latency_per_state[i] + (v->total_number_of_active_dpp[i][j] * v->pixel_chunk_size_in_kbyte + v->total_number_of_dcc_active_dpp[i][j] * v->meta_chunk_size) * 1024.0 / v->return_bw_per_state[i]; j 792 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->extra_latency = v->extra_latency + v->total_number_of_active_dpp[i][j] * v->pte_chunk_size * 1024.0 / v->return_bw_per_state[i]; j 804 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->prefetch_bw[k] = (v->meta_pte_bytes_per_frame[k] + 2.0 * v->meta_row_bytes[k] + 2.0 * v->dpte_bytes_per_row[k] + v->prefetch_lines_y[k] * v->swath_width_yper_state[i][j][k] *dcn_bw_ceil2(v->byte_per_pixel_in_dety[k], 1.0) + v->prefetch_lines_c[k] * v->swath_width_yper_state[i][j][k] / 2.0 *dcn_bw_ceil2(v->byte_per_pixel_in_detc[k], 2.0)) / (v->line_times_for_prefetch[k] * v->htotal[k] / v->pixel_clock[k]); j 863 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ratio_pre_ywith_immediate_flip[i][j][k] = v->prefetch_lines_y[k] / v->line_times_to_request_prefetch_pixel_data_with_immediate_flip; j 864 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c if ((v->swath_height_yper_state[i][j][k] > 4.0)) { j 866 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ratio_pre_ywith_immediate_flip[i][j][k] =dcn_bw_max2(v->v_ratio_pre_ywith_immediate_flip[i][j][k], (v->max_num_sw_y[k] * v->swath_height_yper_state[i][j][k]) / (v->line_times_to_request_prefetch_pixel_data_with_immediate_flip - (v->prefill_y[k] - 3.0) / 2.0)); j 869 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ratio_pre_ywith_immediate_flip[i][j][k] = 999999.0; j 872 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ratio_pre_cwith_immediate_flip[i][j][k] = v->prefetch_lines_c[k] / v->line_times_to_request_prefetch_pixel_data_with_immediate_flip; j 873 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c if ((v->swath_height_cper_state[i][j][k] > 4.0)) { j 875 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ratio_pre_cwith_immediate_flip[i][j][k] =dcn_bw_max2(v->v_ratio_pre_cwith_immediate_flip[i][j][k], (v->max_num_sw_c[k] * v->swath_height_cper_state[i][j][k]) / (v->line_times_to_request_prefetch_pixel_data_with_immediate_flip - (v->prefill_c[k] - 3.0) / 2.0)); j 878 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ratio_pre_cwith_immediate_flip[i][j][k] = 999999.0; j 881 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->required_prefetch_pixel_data_bw_with_immediate_flip[i][j][k] = v->no_of_dpp[i][j][k] * (v->prefetch_lines_y[k] / v->line_times_to_request_prefetch_pixel_data_with_immediate_flip *dcn_bw_ceil2(v->byte_per_pixel_in_dety[k], 1.0) + v->prefetch_lines_c[k] / v->line_times_to_request_prefetch_pixel_data_with_immediate_flip *dcn_bw_ceil2(v->byte_per_pixel_in_detc[k], 2.0) / 2.0) * v->swath_width_yper_state[i][j][k] / (v->htotal[k] / v->pixel_clock[k]); j 884 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ratio_pre_ywith_immediate_flip[i][j][k] = 999999.0; j 885 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ratio_pre_cwith_immediate_flip[i][j][k] = 999999.0; j 886 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->required_prefetch_pixel_data_bw_with_immediate_flip[i][j][k] = 999999.0; j 889 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ratio_pre_ywithout_immediate_flip[i][j][k] = v->prefetch_lines_y[k] / v->line_times_to_request_prefetch_pixel_data_without_immediate_flip; j 890 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c if ((v->swath_height_yper_state[i][j][k] > 4.0)) { j 892 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ratio_pre_ywithout_immediate_flip[i][j][k] =dcn_bw_max2(v->v_ratio_pre_ywithout_immediate_flip[i][j][k], (v->max_num_sw_y[k] * v->swath_height_yper_state[i][j][k]) / (v->line_times_to_request_prefetch_pixel_data_without_immediate_flip - (v->prefill_y[k] - 3.0) / 2.0)); j 895 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ratio_pre_ywithout_immediate_flip[i][j][k] = 999999.0; j 898 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ratio_pre_cwithout_immediate_flip[i][j][k] = v->prefetch_lines_c[k] / v->line_times_to_request_prefetch_pixel_data_without_immediate_flip; j 899 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c if ((v->swath_height_cper_state[i][j][k] > 4.0)) { j 901 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ratio_pre_cwithout_immediate_flip[i][j][k] =dcn_bw_max2(v->v_ratio_pre_cwithout_immediate_flip[i][j][k], (v->max_num_sw_c[k] * v->swath_height_cper_state[i][j][k]) / (v->line_times_to_request_prefetch_pixel_data_without_immediate_flip - (v->prefill_c[k] - 3.0) / 2.0)); j 904 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ratio_pre_cwithout_immediate_flip[i][j][k] = 999999.0; j 907 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->required_prefetch_pixel_data_bw_without_immediate_flip[i][j][k] = v->no_of_dpp[i][j][k] * (v->prefetch_lines_y[k] / v->line_times_to_request_prefetch_pixel_data_without_immediate_flip *dcn_bw_ceil2(v->byte_per_pixel_in_dety[k], 1.0) + v->prefetch_lines_c[k] / v->line_times_to_request_prefetch_pixel_data_without_immediate_flip *dcn_bw_ceil2(v->byte_per_pixel_in_detc[k], 2.0) / 2.0) * v->swath_width_yper_state[i][j][k] / (v->htotal[k] / v->pixel_clock[k]); j 910 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ratio_pre_ywithout_immediate_flip[i][j][k] = 999999.0; j 911 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ratio_pre_cwithout_immediate_flip[i][j][k] = 999999.0; j 912 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->required_prefetch_pixel_data_bw_without_immediate_flip[i][j][k] = 999999.0; j 918 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->maximum_read_bandwidth_with_prefetch_with_immediate_flip = v->maximum_read_bandwidth_with_prefetch_with_immediate_flip +dcn_bw_max2(v->read_bandwidth[k], v->required_prefetch_pixel_data_bw_with_immediate_flip[i][j][k]) +dcn_bw_max2(v->meta_pte_bytes_per_frame[k] / (v->lines_for_meta_pte_with_immediate_flip[k] * v->htotal[k] / v->pixel_clock[k]), (v->meta_row_bytes[k] + v->dpte_bytes_per_row[k]) / (v->lines_for_meta_and_dpte_row_with_immediate_flip[k] * v->htotal[k] / v->pixel_clock[k])); j 921 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->maximum_read_bandwidth_with_prefetch_with_immediate_flip = v->maximum_read_bandwidth_with_prefetch_with_immediate_flip +dcn_bw_max2(v->read_bandwidth[k], v->required_prefetch_pixel_data_bw_without_immediate_flip[i][j][k]); j 926 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->maximum_read_bandwidth_with_prefetch_without_immediate_flip = v->maximum_read_bandwidth_with_prefetch_without_immediate_flip +dcn_bw_max2(v->read_bandwidth[k], v->required_prefetch_pixel_data_bw_without_immediate_flip[i][j][k]); j 928 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->prefetch_supported_with_immediate_flip[i][j] = dcn_bw_yes; j 930 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->prefetch_supported_with_immediate_flip[i][j] = dcn_bw_no; j 934 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->prefetch_supported_with_immediate_flip[i][j] = dcn_bw_no; j 937 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->prefetch_supported_without_immediate_flip[i][j] = dcn_bw_yes; j 939 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->prefetch_supported_without_immediate_flip[i][j] = dcn_bw_no; j 943 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->prefetch_supported_without_immediate_flip[i][j] = dcn_bw_no; j 949 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c for (j = 0; j <= 1; j++) { j 950 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ratio_in_prefetch_supported_with_immediate_flip[i][j] = dcn_bw_yes; j 952 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c if ((((v->source_pixel_format[k] != dcn_bw_yuv420_sub_8 && v->source_pixel_format[k] != dcn_bw_yuv420_sub_10) && (v->v_ratio_pre_ywith_immediate_flip[i][j][k] > 4.0 || v->v_ratio_pre_cwith_immediate_flip[i][j][k] > 4.0)) || ((v->source_pixel_format[k] == dcn_bw_yuv420_sub_8 || v->source_pixel_format[k] == dcn_bw_yuv420_sub_10) && (v->v_ratio_pre_ywithout_immediate_flip[i][j][k] > 4.0 || v->v_ratio_pre_cwithout_immediate_flip[i][j][k] > 4.0)))) { j 953 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ratio_in_prefetch_supported_with_immediate_flip[i][j] = dcn_bw_no; j 956 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ratio_in_prefetch_supported_without_immediate_flip[i][j] = dcn_bw_yes; j 958 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c if ((v->v_ratio_pre_ywithout_immediate_flip[i][j][k] > 4.0 || v->v_ratio_pre_cwithout_immediate_flip[i][j][k] > 4.0)) { j 959 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->v_ratio_in_prefetch_supported_without_immediate_flip[i][j] = dcn_bw_no; j 967 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c for (j = 0; j <= 1; j++) { j 968 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c if (v->scale_ratio_support == dcn_bw_yes && v->source_format_pixel_and_scan_support == dcn_bw_yes && v->viewport_size_support == dcn_bw_yes && v->bandwidth_support[i] == dcn_bw_yes && v->dio_support[i] == dcn_bw_yes && v->urgent_latency_support[i][j] == dcn_bw_yes && v->rob_support[i] == dcn_bw_yes && v->dispclk_dppclk_support[i][j] == dcn_bw_yes && v->total_available_pipes_support[i][j] == dcn_bw_yes && v->total_available_writeback_support == dcn_bw_yes && v->writeback_latency_support == dcn_bw_yes) { j 969 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c if (v->prefetch_supported_with_immediate_flip[i][j] == dcn_bw_yes && v->v_ratio_in_prefetch_supported_with_immediate_flip[i][j] == dcn_bw_yes) { j 970 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->mode_support_with_immediate_flip[i][j] = dcn_bw_yes; j 973 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->mode_support_with_immediate_flip[i][j] = dcn_bw_no; j 975 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c if (v->prefetch_supported_without_immediate_flip[i][j] == dcn_bw_yes && v->v_ratio_in_prefetch_supported_without_immediate_flip[i][j] == dcn_bw_yes) { j 976 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->mode_support_without_immediate_flip[i][j] = dcn_bw_yes; j 979 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->mode_support_without_immediate_flip[i][j] = dcn_bw_no; j 983 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->mode_support_with_immediate_flip[i][j] = dcn_bw_no; j 984 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->mode_support_without_immediate_flip[i][j] = dcn_bw_no; j 1008 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c for (j = 0; j <= 1; j++) { j 1009 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->required_dispclk_per_ratio[j] = v->required_dispclk[v->voltage_level][j]; j 1011 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->dpp_per_plane_per_ratio[j][k] = v->no_of_dpp[v->voltage_level][j][k]; j 1013 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->dispclk_dppclk_support_per_ratio[j] = v->dispclk_dppclk_support[v->voltage_level][j]; j 1019 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c int j; j 1023 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c for (j = 0; j <= 1; j++) { j 1024 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->total_number_of_active_dpp_per_ratio[j] = 0.0; j 1026 drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.c v->total_number_of_active_dpp_per_ratio[j] = v->total_number_of_active_dpp_per_ratio[j] + v->dpp_per_plane_per_ratio[j][k]; j 94 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c uint8_t j; j 97 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c for (j = 0; j < context->stream_count; j++) { j 98 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c struct dc_stream_state *stream = context->streams[j]; j 123 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c int j; j 126 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c for (j = 0; j < context->stream_count; j++) { j 129 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c const struct dc_stream_state *stream = context->streams[j]; j 501 drivers/gpu/drm/amd/display/dc/core/dc.c int j = 0; j 508 drivers/gpu/drm/amd/display/dc/core/dc.c for (j = 0; j < MAX_PIPES; j++) { j 509 drivers/gpu/drm/amd/display/dc/core/dc.c if (dc->current_state->res_ctx.pipe_ctx[j].stream j 512 drivers/gpu/drm/amd/display/dc/core/dc.c &dc->current_state->res_ctx.pipe_ctx[j]; j 745 drivers/gpu/drm/amd/display/dc/core/dc.c int i, j; j 759 drivers/gpu/drm/amd/display/dc/core/dc.c for (j = 0; j < context->stream_count; j++) { j 760 drivers/gpu/drm/amd/display/dc/core/dc.c if (old_stream == context->streams[j]) { j 869 drivers/gpu/drm/amd/display/dc/core/dc.c int i, j, k; j 895 drivers/gpu/drm/amd/display/dc/core/dc.c for (j = i + 1; j < pipe_count; j++) { j 896 drivers/gpu/drm/amd/display/dc/core/dc.c if (!unsynced_pipes[j]) j 900 drivers/gpu/drm/amd/display/dc/core/dc.c unsynced_pipes[j]->stream, j 902 drivers/gpu/drm/amd/display/dc/core/dc.c pipe_set[group_size] = unsynced_pipes[j]; j 903 drivers/gpu/drm/amd/display/dc/core/dc.c unsynced_pipes[j] = NULL; j 909 drivers/gpu/drm/amd/display/dc/core/dc.c for (j = 0; j < group_size; j++) { j 912 drivers/gpu/drm/amd/display/dc/core/dc.c if (pipe_set[j]->plane_state) { j 913 drivers/gpu/drm/amd/display/dc/core/dc.c if (j == 0) j 917 drivers/gpu/drm/amd/display/dc/core/dc.c pipe_set[0] = pipe_set[j]; j 918 drivers/gpu/drm/amd/display/dc/core/dc.c pipe_set[j] = temp; j 936 drivers/gpu/drm/amd/display/dc/core/dc.c for (j = j + 1; j < group_size; j++) { j 937 drivers/gpu/drm/amd/display/dc/core/dc.c if (pipe_set[j]->plane_state) { j 939 drivers/gpu/drm/amd/display/dc/core/dc.c pipe_set[j] = pipe_set[group_size]; j 940 drivers/gpu/drm/amd/display/dc/core/dc.c j--; j 1033 drivers/gpu/drm/amd/display/dc/core/dc.c int i, j; j 1041 drivers/gpu/drm/amd/display/dc/core/dc.c for (j = 0 ; pipe && j < stream_count; j++) { j 1042 drivers/gpu/drm/amd/display/dc/core/dc.c if (streams[j] && streams[j] == pipe->stream && j 1253 drivers/gpu/drm/amd/display/dc/core/dc.c int i, j; j 1279 drivers/gpu/drm/amd/display/dc/core/dc.c for (j = 0; j < new_ctx->stream_status[i].plane_count; j++) j 1281 drivers/gpu/drm/amd/display/dc/core/dc.c new_ctx->stream_status[i].plane_states[j]); j 1359 drivers/gpu/drm/amd/display/dc/core/dc.c int j; j 1361 drivers/gpu/drm/amd/display/dc/core/dc.c for (j = 0; j < MAX_PIPES; j++) { j 1362 drivers/gpu/drm/amd/display/dc/core/dc.c const struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j]; j 1899 drivers/gpu/drm/amd/display/dc/core/dc.c int j; j 1902 drivers/gpu/drm/amd/display/dc/core/dc.c for (j = 0; j < dc->res_pool->pipe_count; j++) { j 1903 drivers/gpu/drm/amd/display/dc/core/dc.c struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j]; j 2001 drivers/gpu/drm/amd/display/dc/core/dc.c int i, j; j 2041 drivers/gpu/drm/amd/display/dc/core/dc.c for (j = 0; j < dc->res_pool->pipe_count; j++) { j 2042 drivers/gpu/drm/amd/display/dc/core/dc.c struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j]; j 2061 drivers/gpu/drm/amd/display/dc/core/dc.c for (j = 0; j < dc->res_pool->pipe_count; j++) { j 2062 drivers/gpu/drm/amd/display/dc/core/dc.c struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j]; j 2110 drivers/gpu/drm/amd/display/dc/core/dc.c for (j = 0; j < dc->res_pool->pipe_count; j++) { j 2111 drivers/gpu/drm/amd/display/dc/core/dc.c struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j]; j 2129 drivers/gpu/drm/amd/display/dc/core/dc.c for (j = 0; j < dc->res_pool->pipe_count; j++) { j 2130 drivers/gpu/drm/amd/display/dc/core/dc.c struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j]; j 2155 drivers/gpu/drm/amd/display/dc/core/dc.c for (j = 0; j < dc->res_pool->pipe_count; j++) { j 2156 drivers/gpu/drm/amd/display/dc/core/dc.c struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j]; j 2180 drivers/gpu/drm/amd/display/dc/core/dc.c int i, j; j 2219 drivers/gpu/drm/amd/display/dc/core/dc.c for (j = 0; j < dc->res_pool->pipe_count; j++) { j 2221 drivers/gpu/drm/amd/display/dc/core/dc.c &context->res_ctx.pipe_ctx[j]; j 2472 drivers/gpu/drm/amd/display/dc/core/dc_link.c int j; j 2481 drivers/gpu/drm/amd/display/dc/core/dc_link.c for (j = 0; j < link->mst_stream_alloc_table.stream_count; j++) { j 2483 drivers/gpu/drm/amd/display/dc/core/dc_link.c &link->mst_stream_alloc_table.stream_allocations[j]; j 2494 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (j == link->mst_stream_alloc_table.stream_count) { j 1241 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c uint8_t j; j 1244 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c for (j = 0; j < attempts; ++j) { j 1419 drivers/gpu/drm/amd/display/dc/core/dc_resource.c int i, j; j 1430 drivers/gpu/drm/amd/display/dc/core/dc_resource.c for (j = 0; j < set[i].plane_count; j++) j 1431 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (!dc_add_plane_to_context(dc, stream, set[i].plane_states[j], context)) j 2040 drivers/gpu/drm/amd/display/dc/core/dc_resource.c int i, j; j 2054 drivers/gpu/drm/amd/display/dc/core/dc_resource.c for (j = 0; j < dc->res_pool->pipe_count; j++) { j 2055 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct pipe_ctx *pipe_ctx = &new_ctx->res_ctx.pipe_ctx[j]; j 2431 drivers/gpu/drm/amd/display/dc/core/dc_resource.c int i, j; j 2434 drivers/gpu/drm/amd/display/dc/core/dc_resource.c for (j = 0; j < context->stream_status[i].plane_count; j++) j 2436 drivers/gpu/drm/amd/display/dc/core/dc_resource.c context->stream_status[i].plane_states[j]); j 2448 drivers/gpu/drm/amd/display/dc/core/dc_resource.c int i, j; j 2471 drivers/gpu/drm/amd/display/dc/core/dc_resource.c for (j = 0; j < dst_ctx->stream_status[i].plane_count; j++) j 2473 drivers/gpu/drm/amd/display/dc/core/dc_resource.c dst_ctx->stream_status[i].plane_states[j]); j 440 drivers/gpu/drm/amd/display/dc/core/dc_stream.c int i = 0, j = 0; j 461 drivers/gpu/drm/amd/display/dc/core/dc_stream.c for (i = 0, j = 0; i < stream->num_wb_info; i++) { j 463 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (i != j) j 465 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->writeback_info[j] = stream->writeback_info[i]; j 466 drivers/gpu/drm/amd/display/dc/core/dc_stream.c j++; j 469 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->num_wb_info = j; j 495 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c int j; j 498 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c for (j = 0; j < context->stream_count; j++) { j 501 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c const struct dc_stream_state *stream = context->streams[j]; j 546 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c uint8_t j; j 549 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c for (j = 0; j < context->stream_count; j++) { j 550 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c struct dc_stream_state *stream = context->streams[j]; j 862 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c int j = -1; j 871 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c j = i; j 891 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c if (j >= 0 && link->connector_signal == SIGNAL_TYPE_DISPLAY_PORT) j 892 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c return pool->stream_enc[j]; j 441 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c uint32_t i, j, k, seg_distr[NUMBER_REGIONS], increment, start_index, hw_points; j 495 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c j = 0; j 502 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (j == hw_points - 1) j 504 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c rgb_resulted[j].red = output_tf->tf_pts.red[i]; j 505 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c rgb_resulted[j].green = output_tf->tf_pts.green[i]; j 506 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c rgb_resulted[j].blue = output_tf->tf_pts.blue[i]; j 507 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c j++; j 977 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c int i, j; j 986 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c for (j = 0; j < context->stream_status[i].plane_count; j++) { j 988 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c context->stream_status[i].plane_states[j]; j 1001 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c if (j == 0) j 1129 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c int j = -1; j 1138 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c j = i; j 1149 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c if (j >= 0) j 1150 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c return pool->stream_enc[j]; j 987 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c int j; j 1086 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c j = 0; j 1095 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c pool->base.timing_generators[j] = j 1100 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c if (pool->base.timing_generators[j] == NULL) { j 1106 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c pool->base.mis[j] = dce120_mem_input_create(ctx, i); j 1108 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c if (pool->base.mis[j] == NULL) { j 1115 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c pool->base.ipps[j] = dce120_ipp_create(ctx, i); j 1123 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c pool->base.transforms[j] = dce120_transform_create(ctx, i); j 1131 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c pool->base.opps[j] = dce120_opp_create( j 1134 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c if (pool->base.opps[j] == NULL) { j 1141 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c j++; j 1163 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c pool->base.pipe_count = j; j 1164 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c pool->base.timing_generator_count = j; j 322 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c uint32_t j, k, seg_distr[MAX_REGIONS_NUMBER], increment, start_index, hw_points; j 374 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c j = 0; j 381 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c if (j == hw_points - 1) j 383 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c rgb_resulted[j].red = output_tf->tf_pts.red[i]; j 384 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c rgb_resulted[j].green = output_tf->tf_pts.green[i]; j 385 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c rgb_resulted[j].blue = output_tf->tf_pts.blue[i]; j 386 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c j++; j 509 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c uint32_t j, k, seg_distr[MAX_REGIONS_NUMBER], increment, start_index, hw_points; j 540 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c j = 0; j 547 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c if (j == hw_points - 1) j 549 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c rgb_resulted[j].red = output_tf->tf_pts.red[i]; j 550 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c rgb_resulted[j].green = output_tf->tf_pts.green[i]; j 551 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c rgb_resulted[j].blue = output_tf->tf_pts.blue[i]; j 552 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c j++; j 1149 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c int i, j; j 1162 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c for (j = 0; j < context->stream_status[i].plane_count; j++) { j 1164 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c context->stream_status[i].plane_states[j]; j 1221 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c int j = -1; j 1230 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c j = i; j 1241 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c if (j >= 0) j 1242 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c return pool->stream_enc[j]; j 1277 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c int j; j 1445 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c j = 0; j 1454 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c pool->base.hubps[j] = dcn10_hubp_create(ctx, i); j 1455 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c if (pool->base.hubps[j] == NULL) { j 1462 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c pool->base.ipps[j] = dcn10_ipp_create(ctx, i); j 1463 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c if (pool->base.ipps[j] == NULL) { j 1470 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c pool->base.dpps[j] = dcn10_dpp_create(ctx, i); j 1471 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c if (pool->base.dpps[j] == NULL) { j 1478 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c pool->base.opps[j] = dcn10_opp_create(ctx, i); j 1479 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c if (pool->base.opps[j] == NULL) { j 1486 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c pool->base.timing_generators[j] = dcn10_timing_generator_create( j 1488 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c if (pool->base.timing_generators[j] == NULL) { j 1494 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c j++; j 1516 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c pool->base.pipe_count = j; j 1517 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c pool->base.timing_generator_count = j; j 1995 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c int i, j; j 2051 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c for (j = 0; j < MAX_PIPES; j++) j 2052 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c res_pool->opps[i]->mpcc_disconnect_pending[j] = false; j 2207 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c int i, j, k, dwb_pipe; j 2216 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c for (j = 0; j < MAX_DWB_PIPES; j++) { j 2217 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (context->res_ctx.pipe_ctx[i].stream->writeback_info[j].wb_enabled == false) j 2223 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (context->res_ctx.pipe_ctx[i].stream->writeback_info[j].dwb_params.out_format == dwb_scaler_mode_yuv420) { j 2224 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (context->res_ctx.pipe_ctx[i].stream->writeback_info[j].dwb_params.output_depth == DWB_OUTPUT_PIXEL_DEPTH_8BPC) j 2296 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c int j; j 2327 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c for (j = dc->res_pool->pipe_count - 1; j >= 0; j--) { j 2328 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (dc->current_state->res_ctx.pipe_ctx[j].top_pipe == NULL) { j 2329 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c preferred_pipe_idx = j; j 2349 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c for (j = dc->res_pool->pipe_count - 1; j >= 0; j--) { j 2350 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c preferred_pipe_idx = j; j 2740 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c int i, j, pipe_idx, pipe_idx_unsplit; j 2779 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c for (j = pipe_idx + 1; j < pipe_cnt; j++) { j 2780 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c display_pipe_source_params_st *src_j = &pipes[j].pipe.src; j 2781 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c display_pipe_dest_params_st *dst_j = &pipes[j].pipe.dest; j 2783 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (src_j->is_hsplit && !visited[j] j 2789 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c visited[j] = true; j 1087 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c unsigned int j, k; j 1340 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) j 1341 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[k] == j j 1342 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.ODMCombineEnabled[j] == true) j 1845 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) // NumberOfPlanes j 1846 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (j != k && mode_lib->vba.BlendingAndTiming[k] == j j 1847 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.DSCEnabled[j]) j 1848 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCDelay[k] = mode_lib->vba.DSCDelay[j]; j 1995 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) { j 1996 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[j] == k j 1997 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.WritebackEnable[j] == true) { j 2003 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackPixelFormat[j], j 2004 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackHRatio[j], j 2005 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackVRatio[j], j 2006 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLumaHTaps[j], j 2007 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLumaVTaps[j], j 2008 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackChromaHTaps[j], j 2009 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackChromaVTaps[j], j 2010 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDestinationWidth[j]) j 2018 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) j 2019 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[k] == j) j 2021 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][j]; j 2043 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < mode_lib->vba.NumberOfCursors[k]; ++j) j 2044 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.cursor_bw[k] += mode_lib->vba.CursorWidth[k][j] j 2045 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.CursorBPP[k][j] / 8.0 j 2597 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < 2; j++) j 2598 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DRAMClockChangeSupport[k][j] = mode_lib->vba.DRAMClockChangeSupport[0][0]; j 2729 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c unsigned int j, k; j 2853 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) { j 2854 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[k] == j j 2855 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.ODMCombineEnabled[j] == true) { j 3289 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c unsigned int j, k, m; j 3872 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < 2; j++) { j 3879 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->RequiredDISPCLK[i][j] = 0.0; j 3880 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->DISPCLK_DPPCLK_Support[i][j] = true; j 3906 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->NoOfDPP[i][j][k] = 1; j 3907 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->RequiredDPPCLK[i][j][k] = j 3910 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->NoOfDPP[i][j][k] = 2; j 3911 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->RequiredDPPCLK[i][j][k] = j 3914 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->RequiredDISPCLK[i][j] = dml_max( j 3915 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->RequiredDISPCLK[i][j], j 3917 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((locals->MinDPPCLKUsingSingleDPP[k] / locals->NoOfDPP[i][j][k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) j 3920 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->DISPCLK_DPPCLK_Support[i][j] = false; j 3923 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->TotalNumberOfActiveDPP[i][j] = 0.0; j 3925 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->TotalNumberOfActiveDPP[i][j] = locals->TotalNumberOfActiveDPP[i][j] + locals->NoOfDPP[i][j][k]; j 3926 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (j == 1) { j 3927 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c while (locals->TotalNumberOfActiveDPP[i][j] < mode_lib->vba.MaxNumDPP j 3928 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && locals->TotalNumberOfActiveDPP[i][j] < 2 * mode_lib->vba.NumberOfActivePlanes) { j 3935 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (locals->ReadBandwidth[k] > BWOfNonSplitPlaneOfMaximumBandwidth && locals->NoOfDPP[i][j][k] == 1) { j 3940 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->NoOfDPP[i][j][NumberOfNonSplitPlaneOfMaximumBandwidth] = 2; j 3941 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->RequiredDPPCLK[i][j][NumberOfNonSplitPlaneOfMaximumBandwidth] = j 3944 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->TotalNumberOfActiveDPP[i][j] = locals->TotalNumberOfActiveDPP[i][j] + 1; j 3947 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (locals->TotalNumberOfActiveDPP[i][j] > mode_lib->vba.MaxNumDPP) { j 3948 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->RequiredDISPCLK[i][j] = 0.0; j 3949 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->DISPCLK_DPPCLK_Support[i][j] = true; j 3953 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->NoOfDPP[i][j][k] = 1; j 3954 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->RequiredDPPCLK[i][j][k] = locals->MinDPPCLKUsingSingleDPP[k] j 3957 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->NoOfDPP[i][j][k] = 2; j 3958 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->RequiredDPPCLK[i][j][k] = locals->MinDPPCLKUsingSingleDPP[k] j 3970 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->RequiredDISPCLK[i][j] = dml_max( j 3971 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->RequiredDISPCLK[i][j], j 3973 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (locals->MinDPPCLKUsingSingleDPP[k] / locals->NoOfDPP[i][j][k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) j 3976 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->DISPCLK_DPPCLK_Support[i][j] = false; j 3978 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->TotalNumberOfActiveDPP[i][j] = 0.0; j 3980 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->TotalNumberOfActiveDPP[i][j] = locals->TotalNumberOfActiveDPP[i][j] + locals->NoOfDPP[i][j][k]; j 3982 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->RequiredDISPCLK[i][j] = dml_max( j 3983 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->RequiredDISPCLK[i][j], j 3987 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->DISPCLK_DPPCLK_Support[i][j] = false; j 4011 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < 2; j++) { j 4012 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (locals->TotalNumberOfActiveDPP[i][j] <= mode_lib->vba.MaxNumDPP) j 4013 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->TotalAvailablePipesSupport[i][j] = true; j 4015 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->TotalAvailablePipesSupport[i][j] = false; j 4282 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j <= mode_lib->vba.NumberOfActivePlanes - 1; j++) { j 4292 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < 2; j++) { j 4295 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->SwathWidthYPerState[i][j][k] = dml_min(locals->SwathWidthYSingleDPP[k], dml_round(locals->HActive[k] / 2 * locals->HRatio[k])); j 4297 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->SwathWidthYPerState[i][j][k] = locals->SwathWidthYSingleDPP[k] / locals->NoOfDPP[i][j][k]; j 4299 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->RoundedUpMaxSwathSizeBytesY = (dml_ceil(locals->SwathWidthYPerState[i][j][k] - 1, locals->SwathWidthGranularityY) j 4307 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->RoundedUpMaxSwathSizeBytesC = (dml_ceil(locals->SwathWidthYPerState[i][j][k] / 2 - 1, locals->SwathWidthGranularityC) j 4317 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->SwathHeightYPerState[i][j][k] = locals->MaxSwathHeightY[k]; j 4318 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->SwathHeightCPerState[i][j][k] = locals->MaxSwathHeightC[k]; j 4320 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->SwathHeightYPerState[i][j][k] = locals->MinSwathHeightY[k]; j 4321 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->SwathHeightCPerState[i][j][k] = locals->MinSwathHeightC[k]; j 4325 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->LinesInDETLuma = locals->DETBufferSizeInKByte * 1024 / locals->BytePerPixelInDETY[k] / locals->SwathWidthYPerState[i][j][k]; j 4327 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (locals->SwathHeightYPerState[i][j][k] <= locals->SwathHeightCPerState[i][j][k]) { j 4329 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->SwathWidthYPerState[i][j][k]; j 4330 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->LinesInDETChroma = locals->DETBufferSizeInKByte * 1024 / 2 / locals->BytePerPixelInDETC[k] / (locals->SwathWidthYPerState[i][j][k] / 2); j 4332 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->LinesInDETLuma = locals->DETBufferSizeInKByte * 1024 * 2 / 3 / locals->BytePerPixelInDETY[k] / locals->SwathWidthYPerState[i][j][k]; j 4333 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->LinesInDETChroma = locals->DETBufferSizeInKByte * 1024 / 3 / locals->BytePerPixelInDETY[k] / (locals->SwathWidthYPerState[i][j][k] / 2); j 4337 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c dml_floor(locals->LineBufferSize / locals->LBBitPerPixel[k] / (locals->SwathWidthYPerState[i][j][k] j 4342 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (locals->SwathWidthYPerState[i][j][k] / 2 j 4346 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->LinesInDETLuma * locals->RequiredDISPCLK[i][j] * locals->BytePerPixelInDETY[k] * j 4349 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->SwathHeightYPerState[i][j][k]); j 4352 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->LinesInDETChroma * locals->RequiredDISPCLK[i][j] * locals->BytePerPixelInDETC[k] * j 4355 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->SwathHeightCPerState[i][j][k]); j 4358 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->UrgentLatencySupportUsPerState[i][j][k] = locals->EffectiveDETLBLinesLuma * (locals->HTotal[k] / locals->PixelClock[k]) j 4359 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / locals->VRatio[k] - locals->EffectiveDETLBLinesLuma * locals->SwathWidthYPerState[i][j][k] * j 4360 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c dml_ceil(locals->BytePerPixelInDETY[k], 1) / (locals->ReturnBWPerState[i] / locals->NoOfDPP[i][j][k]); j 4362 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->UrgentLatencySupportUsPerState[i][j][k] = dml_min( j 4364 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / locals->VRatio[k] - locals->EffectiveDETLBLinesLuma * locals->SwathWidthYPerState[i][j][k] * j 4365 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c dml_ceil(locals->BytePerPixelInDETY[k], 1) / (locals->ReturnBWPerState[i] / locals->NoOfDPP[i][j][k]), j 4367 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->EffectiveDETLBLinesChroma * locals->SwathWidthYPerState[i][j][k] / 2 * j 4368 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c dml_ceil(locals->BytePerPixelInDETC[k], 2) / (locals->ReturnBWPerState[i] / locals->NoOfDPP[i][j][k])); j 4375 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < 2; j++) { j 4376 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->UrgentLatencySupport[i][j] = true; j 4378 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (locals->UrgentLatencySupportUsPerState[i][j][k] < locals->UrgentLatency) j 4379 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->UrgentLatencySupport[i][j] = false; j 4387 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < 2; j++) { j 4388 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->TotalNumberOfDCCActiveDPP[i][j] = 0; j 4391 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->TotalNumberOfDCCActiveDPP[i][j] = j 4392 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->TotalNumberOfDCCActiveDPP[i][j] + locals->NoOfDPP[i][j][k]; j 4401 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < 2; j++) { j 4403 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->NoOfDPPThisState[k] = locals->NoOfDPP[i][j][k]; j 4404 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->RequiredDPPCLKThisState[k] = locals->RequiredDPPCLK[i][j][k]; j 4405 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->SwathHeightYThisState[k] = locals->SwathHeightYPerState[i][j][k]; j 4406 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->SwathHeightCThisState[k] = locals->SwathHeightCPerState[i][j][k]; j 4407 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->SwathWidthYThisState[k] = locals->SwathWidthYPerState[i][j][k]; j 4423 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.NoOfDPP[i][j][k]); j 4434 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.RequiredDPPCLK[i][j][k]); j 4448 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.NoOfDPP[i][j][k]); j 4459 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.RequiredDPPCLK[i][j][k]); j 4473 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.NoOfDPP[i][j][k]); j 4484 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.RequiredDPPCLK[i][j][k]); j 4500 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthYPerState[i][j][k], j 4510 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.PTEBufferSizeNotExceededY[i][j][k], j 4519 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathHeightYPerState[i][j][k], j 4539 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthYPerState[i][j][k] / 2.0, j 4549 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.PTEBufferSizeNotExceededC[i][j][k], j 4558 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathHeightCPerState[i][j][k], j 4567 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->PTEBufferSizeNotExceededC[i][j][k] = true; j 4595 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + (mode_lib->vba.TotalNumberOfActiveDPP[i][j] j 4597 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.TotalNumberOfDCCActiveDPP[i][j] j 4603 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.TotalNumberOfActiveDPP[i][j] j 4621 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDestinationWidth[k]) / locals->RequiredDISPCLK[i][j]; j 4638 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDestinationWidth[m]) / locals->RequiredDISPCLK[i][j]); j 4663 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefetchMode[i][j] = mode_lib->vba.NextPrefetchMode; j 4667 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefetchMode[i][j], j 4678 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->SwathWidthYPerState[i][j][k], j 4696 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.IsErrorResult[i][j][k] = j 4699 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.RequiredDPPCLK[i][j][k], j 4700 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.RequiredDISPCLK[i][j], j 4704 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.NoOfDPP[i][j][k], j 4713 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthYPerState[i][j][k] j 4734 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthYPerState[i][j][k], j 4742 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathHeightYPerState[i][j][k], j 4743 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathHeightCPerState[i][j][k], j 4755 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.VRatioPreY[i][j][k], j 4756 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.VRatioPreC[i][j][k], j 4757 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.RequiredPrefetchPixelDataBWLuma[i][j][k], j 4797 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.RequiredPrefetchPixelDataBWLuma[i][j][k]) j 4805 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->PrefetchSupported[i][j] = true; j 4807 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->PrefetchSupported[i][j] = false; j 4813 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.IsErrorResult[i][j][k] == true) { j 4814 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->PrefetchSupported[i][j] = false; j 4817 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->VRatioInPrefetchSupported[i][j] = true; j 4819 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (locals->VRatioPreY[i][j][k] > 4.0 j 4820 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || locals->VRatioPreC[i][j][k] > 4.0 j 4821 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.IsErrorResult[i][j][k] == true) { j 4822 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->VRatioInPrefetchSupported[i][j] = false; j 4825 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } while ((locals->PrefetchSupported[i][j] != true || locals->VRatioInPrefetchSupported[i][j] != true) j 4828 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.PrefetchSupported[i][j] == true j 4829 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.VRatioInPrefetchSupported[i][j] == true) { j 4898 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.RequiredPrefetchPixelDataBWLuma[i][j][k])); j 4900 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ImmediateFlipSupportedForState[i][j] = true; j 4903 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ImmediateFlipSupportedForState[i][j] = false; j 4907 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ImmediateFlipSupportedForState[i][j] = false; j 4911 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ImmediateFlipSupportedForState[i][j] = false; j 4933 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < 2; j++) { j 4934 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->PTEBufferSizeNotExceeded[i][j] = true; j 4936 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (locals->PTEBufferSizeNotExceededY[i][j][k] == false j 4937 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || locals->PTEBufferSizeNotExceededC[i][j][k] == false) { j 4938 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->PTEBufferSizeNotExceeded[i][j] = false; j 4946 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < 2; j++) { j 4947 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.CursorWidth[k][j] > 0.0) { j 4953 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.CursorWidth[k][j] j 4954 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.CursorBPP[k][j] j 4959 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || (mode_lib->vba.CursorBPP[k][j] == 64.0 j 5008 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < 2; j++) { j 5023 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (locals->UrgentLatencySupport[i][j] != true) { j 5027 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (locals->DISPCLK_DPPCLK_Support[i][j] != true) { j 5029 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (locals->TotalAvailablePipesSupport[i][j] != true) { j 5043 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (locals->PrefetchSupported[i][j] != true) { j 5047 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (locals->VRatioInPrefetchSupported[i][j] != true) { j 5049 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (locals->PTEBufferSizeNotExceeded[i][j] != true) { j 5056 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->ModeSupport[i][j] = true; j 5058 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->ModeSupport[i][j] = false; j 1146 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c unsigned int j, k; j 1399 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) j 1400 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[k] == j j 1401 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.ODMCombineEnabled[j] == true) j 1880 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) // NumberOfPlanes j 1881 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (j != k && mode_lib->vba.BlendingAndTiming[k] == j j 1882 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.DSCEnabled[j]) j 1883 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCDelay[k] = mode_lib->vba.DSCDelay[j]; j 2030 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) { j 2031 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[j] == k j 2032 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.WritebackEnable[j] == true) { j 2038 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackPixelFormat[j], j 2039 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackHRatio[j], j 2040 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackVRatio[j], j 2041 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLumaHTaps[j], j 2042 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLumaVTaps[j], j 2043 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackChromaHTaps[j], j 2044 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackChromaVTaps[j], j 2045 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDestinationWidth[j]) j 2053 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) j 2054 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[k] == j) j 2056 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][j]; j 2078 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < mode_lib->vba.NumberOfCursors[k]; ++j) j 2079 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.cursor_bw[k] += mode_lib->vba.CursorWidth[k][j] j 2080 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.CursorBPP[k][j] / 8.0 j 2629 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < 2; j++) j 2630 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DRAMClockChangeSupport[k][j] = mode_lib->vba.DRAMClockChangeSupport[0][0]; j 2761 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c unsigned int j, k; j 2885 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) { j 2886 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[k] == j j 2887 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.ODMCombineEnabled[j] == true) { j 3321 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c unsigned int j, k, m; j 3904 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < 2; j++) { j 3911 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->RequiredDISPCLK[i][j] = 0.0; j 3912 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->DISPCLK_DPPCLK_Support[i][j] = true; j 3938 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->NoOfDPP[i][j][k] = 1; j 3939 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->RequiredDPPCLK[i][j][k] = j 3942 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->NoOfDPP[i][j][k] = 2; j 3943 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->RequiredDPPCLK[i][j][k] = j 3946 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->RequiredDISPCLK[i][j] = dml_max( j 3947 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->RequiredDISPCLK[i][j], j 3949 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((locals->MinDPPCLKUsingSingleDPP[k] / locals->NoOfDPP[i][j][k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) j 3952 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->DISPCLK_DPPCLK_Support[i][j] = false; j 3955 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->TotalNumberOfActiveDPP[i][j] = 0.0; j 3957 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->TotalNumberOfActiveDPP[i][j] = locals->TotalNumberOfActiveDPP[i][j] + locals->NoOfDPP[i][j][k]; j 3958 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (j == 1) { j 3959 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c while (locals->TotalNumberOfActiveDPP[i][j] < mode_lib->vba.MaxNumDPP j 3960 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && locals->TotalNumberOfActiveDPP[i][j] < 2 * mode_lib->vba.NumberOfActivePlanes) { j 3967 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (locals->ReadBandwidth[k] > BWOfNonSplitPlaneOfMaximumBandwidth && locals->NoOfDPP[i][j][k] == 1) { j 3972 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->NoOfDPP[i][j][NumberOfNonSplitPlaneOfMaximumBandwidth] = 2; j 3973 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->RequiredDPPCLK[i][j][NumberOfNonSplitPlaneOfMaximumBandwidth] = j 3976 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->TotalNumberOfActiveDPP[i][j] = locals->TotalNumberOfActiveDPP[i][j] + 1; j 3979 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (locals->TotalNumberOfActiveDPP[i][j] > mode_lib->vba.MaxNumDPP) { j 3980 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->RequiredDISPCLK[i][j] = 0.0; j 3981 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->DISPCLK_DPPCLK_Support[i][j] = true; j 3985 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->NoOfDPP[i][j][k] = 1; j 3986 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->RequiredDPPCLK[i][j][k] = locals->MinDPPCLKUsingSingleDPP[k] j 3989 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->NoOfDPP[i][j][k] = 2; j 3990 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->RequiredDPPCLK[i][j][k] = locals->MinDPPCLKUsingSingleDPP[k] j 4002 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->RequiredDISPCLK[i][j] = dml_max( j 4003 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->RequiredDISPCLK[i][j], j 4005 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (locals->MinDPPCLKUsingSingleDPP[k] / locals->NoOfDPP[i][j][k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) j 4008 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->DISPCLK_DPPCLK_Support[i][j] = false; j 4010 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->TotalNumberOfActiveDPP[i][j] = 0.0; j 4012 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->TotalNumberOfActiveDPP[i][j] = locals->TotalNumberOfActiveDPP[i][j] + locals->NoOfDPP[i][j][k]; j 4014 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->RequiredDISPCLK[i][j] = dml_max( j 4015 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->RequiredDISPCLK[i][j], j 4019 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->DISPCLK_DPPCLK_Support[i][j] = false; j 4043 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < 2; j++) { j 4044 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (locals->TotalNumberOfActiveDPP[i][j] <= mode_lib->vba.MaxNumDPP) j 4045 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->TotalAvailablePipesSupport[i][j] = true; j 4047 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->TotalAvailablePipesSupport[i][j] = false; j 4314 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j <= mode_lib->vba.NumberOfActivePlanes - 1; j++) { j 4324 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < 2; j++) { j 4327 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->SwathWidthYPerState[i][j][k] = dml_min(locals->SwathWidthYSingleDPP[k], dml_round(locals->HActive[k] / 2 * locals->HRatio[k])); j 4329 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->SwathWidthYPerState[i][j][k] = locals->SwathWidthYSingleDPP[k] / locals->NoOfDPP[i][j][k]; j 4331 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->RoundedUpMaxSwathSizeBytesY = (dml_ceil(locals->SwathWidthYPerState[i][j][k] - 1, locals->SwathWidthGranularityY) j 4339 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->RoundedUpMaxSwathSizeBytesC = (dml_ceil(locals->SwathWidthYPerState[i][j][k] / 2 - 1, locals->SwathWidthGranularityC) j 4349 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->SwathHeightYPerState[i][j][k] = locals->MaxSwathHeightY[k]; j 4350 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->SwathHeightCPerState[i][j][k] = locals->MaxSwathHeightC[k]; j 4352 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->SwathHeightYPerState[i][j][k] = locals->MinSwathHeightY[k]; j 4353 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->SwathHeightCPerState[i][j][k] = locals->MinSwathHeightC[k]; j 4357 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->LinesInDETLuma = locals->DETBufferSizeInKByte * 1024 / locals->BytePerPixelInDETY[k] / locals->SwathWidthYPerState[i][j][k]; j 4359 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (locals->SwathHeightYPerState[i][j][k] <= locals->SwathHeightCPerState[i][j][k]) { j 4361 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->SwathWidthYPerState[i][j][k]; j 4362 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->LinesInDETChroma = locals->DETBufferSizeInKByte * 1024 / 2 / locals->BytePerPixelInDETC[k] / (locals->SwathWidthYPerState[i][j][k] / 2); j 4364 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->LinesInDETLuma = locals->DETBufferSizeInKByte * 1024 * 2 / 3 / locals->BytePerPixelInDETY[k] / locals->SwathWidthYPerState[i][j][k]; j 4365 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->LinesInDETChroma = locals->DETBufferSizeInKByte * 1024 / 3 / locals->BytePerPixelInDETY[k] / (locals->SwathWidthYPerState[i][j][k] / 2); j 4369 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c dml_floor(locals->LineBufferSize / locals->LBBitPerPixel[k] / (locals->SwathWidthYPerState[i][j][k] j 4374 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (locals->SwathWidthYPerState[i][j][k] / 2 j 4378 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->LinesInDETLuma * locals->RequiredDISPCLK[i][j] * locals->BytePerPixelInDETY[k] * j 4381 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->SwathHeightYPerState[i][j][k]); j 4384 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->LinesInDETChroma * locals->RequiredDISPCLK[i][j] * locals->BytePerPixelInDETC[k] * j 4387 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->SwathHeightCPerState[i][j][k]); j 4390 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->UrgentLatencySupportUsPerState[i][j][k] = locals->EffectiveDETLBLinesLuma * (locals->HTotal[k] / locals->PixelClock[k]) j 4391 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / locals->VRatio[k] - locals->EffectiveDETLBLinesLuma * locals->SwathWidthYPerState[i][j][k] * j 4392 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c dml_ceil(locals->BytePerPixelInDETY[k], 1) / (locals->ReturnBWPerState[i] / locals->NoOfDPP[i][j][k]); j 4394 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->UrgentLatencySupportUsPerState[i][j][k] = dml_min( j 4396 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / locals->VRatio[k] - locals->EffectiveDETLBLinesLuma * locals->SwathWidthYPerState[i][j][k] * j 4397 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c dml_ceil(locals->BytePerPixelInDETY[k], 1) / (locals->ReturnBWPerState[i] / locals->NoOfDPP[i][j][k]), j 4399 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->EffectiveDETLBLinesChroma * locals->SwathWidthYPerState[i][j][k] / 2 * j 4400 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c dml_ceil(locals->BytePerPixelInDETC[k], 2) / (locals->ReturnBWPerState[i] / locals->NoOfDPP[i][j][k])); j 4407 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < 2; j++) { j 4408 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->UrgentLatencySupport[i][j] = true; j 4410 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (locals->UrgentLatencySupportUsPerState[i][j][k] < locals->UrgentLatency) j 4411 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->UrgentLatencySupport[i][j] = false; j 4419 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < 2; j++) { j 4420 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->TotalNumberOfDCCActiveDPP[i][j] = 0; j 4423 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->TotalNumberOfDCCActiveDPP[i][j] = j 4424 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->TotalNumberOfDCCActiveDPP[i][j] + locals->NoOfDPP[i][j][k]; j 4438 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < 2; j++) { j 4440 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->NoOfDPPThisState[k] = locals->NoOfDPP[i][j][k]; j 4441 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->RequiredDPPCLKThisState[k] = locals->RequiredDPPCLK[i][j][k]; j 4442 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->SwathHeightYThisState[k] = locals->SwathHeightYPerState[i][j][k]; j 4443 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->SwathHeightCThisState[k] = locals->SwathHeightCPerState[i][j][k]; j 4444 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->SwathWidthYThisState[k] = locals->SwathWidthYPerState[i][j][k]; j 4460 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.NoOfDPP[i][j][k]); j 4471 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.RequiredDPPCLK[i][j][k]); j 4485 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.NoOfDPP[i][j][k]); j 4496 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.RequiredDPPCLK[i][j][k]); j 4510 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.NoOfDPP[i][j][k]); j 4521 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.RequiredDPPCLK[i][j][k]); j 4537 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthYPerState[i][j][k], j 4547 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.PTEBufferSizeNotExceededY[i][j][k], j 4556 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathHeightYPerState[i][j][k], j 4576 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthYPerState[i][j][k] / 2.0, j 4586 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.PTEBufferSizeNotExceededC[i][j][k], j 4595 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathHeightCPerState[i][j][k], j 4604 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->PTEBufferSizeNotExceededC[i][j][k] = true; j 4632 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + (mode_lib->vba.TotalNumberOfActiveDPP[i][j] j 4634 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.TotalNumberOfDCCActiveDPP[i][j] j 4640 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.TotalNumberOfActiveDPP[i][j] j 4658 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDestinationWidth[k]) / locals->RequiredDISPCLK[i][j]; j 4675 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDestinationWidth[m]) / locals->RequiredDISPCLK[i][j]); j 4700 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefetchMode[i][j] = mode_lib->vba.NextPrefetchMode; j 4704 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefetchMode[i][j], j 4715 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->SwathWidthYPerState[i][j][k], j 4736 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.RequiredDPPCLK[i][j][k], mode_lib->vba.RequiredDISPCLK[i][j], mode_lib->vba.PixelClock[k], mode_lib->vba.DSCDelayPerState[i][k], mode_lib->vba.NoOfDPP[i][j][k], mode_lib->vba.ScalerEnabled[k], mode_lib->vba.NumberOfCursors[k], j 4738 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthYPerState[i][j][k] / mode_lib->vba.HRatio[k], mode_lib->vba.OutputFormat[k], mode_lib->vba.HTotal[k], j 4742 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.IsErrorResult[i][j][k] = j 4745 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.RequiredDPPCLK[i][j][k], j 4746 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.RequiredDISPCLK[i][j], j 4749 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.NoOfDPP[i][j][k], j 4769 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthYPerState[i][j][k], j 4777 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathHeightYPerState[i][j][k], j 4778 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathHeightCPerState[i][j][k], j 4790 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.VRatioPreY[i][j][k], j 4791 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.VRatioPreC[i][j][k], j 4792 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.RequiredPrefetchPixelDataBWLuma[i][j][k], j 4831 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.RequiredPrefetchPixelDataBWLuma[i][j][k]) j 4839 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->PrefetchSupported[i][j] = true; j 4841 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->PrefetchSupported[i][j] = false; j 4847 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.IsErrorResult[i][j][k] == true) { j 4848 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->PrefetchSupported[i][j] = false; j 4851 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->VRatioInPrefetchSupported[i][j] = true; j 4853 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (locals->VRatioPreY[i][j][k] > 4.0 j 4854 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || locals->VRatioPreC[i][j][k] > 4.0 j 4855 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.IsErrorResult[i][j][k] == true) { j 4856 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->VRatioInPrefetchSupported[i][j] = false; j 4859 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } while ((locals->PrefetchSupported[i][j] != true || locals->VRatioInPrefetchSupported[i][j] != true) j 4862 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.PrefetchSupported[i][j] == true j 4863 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.VRatioInPrefetchSupported[i][j] == true) { j 4932 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.RequiredPrefetchPixelDataBWLuma[i][j][k])); j 4934 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ImmediateFlipSupportedForState[i][j] = true; j 4937 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ImmediateFlipSupportedForState[i][j] = false; j 4941 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ImmediateFlipSupportedForState[i][j] = false; j 4945 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ImmediateFlipSupportedForState[i][j] = false; j 4964 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < 2; j++) { j 4965 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->PTEBufferSizeNotExceeded[i][j] = true; j 4967 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (locals->PTEBufferSizeNotExceededY[i][j][k] == false j 4968 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || locals->PTEBufferSizeNotExceededC[i][j][k] == false) { j 4969 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->PTEBufferSizeNotExceeded[i][j] = false; j 4977 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < 2; j++) { j 4978 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.CursorWidth[k][j] > 0.0) { j 4984 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.CursorWidth[k][j] j 4985 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.CursorBPP[k][j] j 4990 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || (mode_lib->vba.CursorBPP[k][j] == 64.0 j 5039 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < 2; j++) { j 5054 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (locals->UrgentLatencySupport[i][j] != true) { j 5058 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (locals->DISPCLK_DPPCLK_Support[i][j] != true) { j 5060 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (locals->TotalAvailablePipesSupport[i][j] != true) { j 5074 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (locals->PrefetchSupported[i][j] != true) { j 5078 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (locals->VRatioInPrefetchSupported[i][j] != true) { j 5080 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (locals->PTEBufferSizeNotExceeded[i][j] != true) { j 5087 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->ModeSupport[i][j] = true; j 5089 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->ModeSupport[i][j] = false; j 1466 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c unsigned int j, k; j 1688 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) j 1689 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.BlendingAndTiming[k] == j j 1690 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.ODMCombineEnabled[j] == true) j 1832 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) // NumberOfPlanes j 1833 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (j != k && mode_lib->vba.BlendingAndTiming[k] == j j 1834 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.DSCEnabled[j]) j 1835 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->DSCDelay[k] = locals->DSCDelay[j]; j 2052 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) { j 2053 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.BlendingAndTiming[j] == k j 2054 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.WritebackEnable[j] == true) { j 2060 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackPixelFormat[j], j 2061 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackHRatio[j], j 2062 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackVRatio[j], j 2063 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLumaHTaps[j], j 2064 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLumaVTaps[j], j 2065 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackChromaHTaps[j], j 2066 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackChromaVTaps[j], j 2067 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackDestinationWidth[j]) j 2075 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) j 2076 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.BlendingAndTiming[k] == j) j 2078 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->WritebackDelay[mode_lib->vba.VoltageLevel][j]; j 2822 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c unsigned int j, k; j 2946 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) { j 2947 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.BlendingAndTiming[k] == j j 2948 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.ODMCombineEnabled[j] == true) { j 3393 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c unsigned int j, k, m; j 3939 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (j = 0; j < 2; j++) { j 3946 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->RequiredDISPCLK[i][j] = 0.0; j 3947 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->DISPCLK_DPPCLK_Support[i][j] = true; j 3978 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->NoOfDPP[i][j][k] = 1; j 3979 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->RequiredDPPCLK[i][j][k] = j 3982 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->NoOfDPP[i][j][k] = 2; j 3983 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->RequiredDPPCLK[i][j][k] = j 3986 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->RequiredDISPCLK[i][j] = dml_max( j 3987 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->RequiredDISPCLK[i][j], j 3989 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if ((locals->MinDPPCLKUsingSingleDPP[k] / locals->NoOfDPP[i][j][k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) j 3992 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->DISPCLK_DPPCLK_Support[i][j] = false; j 3995 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->TotalNumberOfActiveDPP[i][j] = 0.0; j 3997 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->TotalNumberOfActiveDPP[i][j] = locals->TotalNumberOfActiveDPP[i][j] + locals->NoOfDPP[i][j][k]; j 3998 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (j == 1) { j 3999 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c while (locals->TotalNumberOfActiveDPP[i][j] < mode_lib->vba.MaxNumDPP j 4000 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && locals->TotalNumberOfActiveDPP[i][j] < 2 * mode_lib->vba.NumberOfActivePlanes) { j 4007 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (locals->ReadBandwidth[k] > BWOfNonSplitPlaneOfMaximumBandwidth && locals->NoOfDPP[i][j][k] == 1) { j 4012 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->NoOfDPP[i][j][NumberOfNonSplitPlaneOfMaximumBandwidth] = 2; j 4013 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->RequiredDPPCLK[i][j][NumberOfNonSplitPlaneOfMaximumBandwidth] = j 4016 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->TotalNumberOfActiveDPP[i][j] = locals->TotalNumberOfActiveDPP[i][j] + 1; j 4019 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (locals->TotalNumberOfActiveDPP[i][j] > mode_lib->vba.MaxNumDPP) { j 4020 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->RequiredDISPCLK[i][j] = 0.0; j 4021 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->DISPCLK_DPPCLK_Support[i][j] = true; j 4025 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->NoOfDPP[i][j][k] = 1; j 4026 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->RequiredDPPCLK[i][j][k] = locals->MinDPPCLKUsingSingleDPP[k] j 4029 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->NoOfDPP[i][j][k] = 2; j 4030 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->RequiredDPPCLK[i][j][k] = locals->MinDPPCLKUsingSingleDPP[k] j 4042 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->RequiredDISPCLK[i][j] = dml_max( j 4043 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->RequiredDISPCLK[i][j], j 4045 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (locals->MinDPPCLKUsingSingleDPP[k] / locals->NoOfDPP[i][j][k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) j 4048 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->DISPCLK_DPPCLK_Support[i][j] = false; j 4050 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->TotalNumberOfActiveDPP[i][j] = 0.0; j 4052 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->TotalNumberOfActiveDPP[i][j] = locals->TotalNumberOfActiveDPP[i][j] + locals->NoOfDPP[i][j][k]; j 4054 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->RequiredDISPCLK[i][j] = dml_max( j 4055 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->RequiredDISPCLK[i][j], j 4059 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->DISPCLK_DPPCLK_Support[i][j] = false; j 4083 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (j = 0; j < 2; j++) { j 4084 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (locals->TotalNumberOfActiveDPP[i][j] <= mode_lib->vba.MaxNumDPP) j 4085 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->TotalAvailablePipesSupport[i][j] = true; j 4087 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->TotalAvailablePipesSupport[i][j] = false; j 4361 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (j = 0; j <= mode_lib->vba.NumberOfActivePlanes - 1; j++) { j 4371 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (j = 0; j <= 1; ++j) { j 4372 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->TotalNumberOfDCCActiveDPP[i][j] = 0; j 4375 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->TotalNumberOfDCCActiveDPP[i][j] = locals->TotalNumberOfDCCActiveDPP[i][j] + locals->NoOfDPP[i][j][k]; j 4390 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (j = 0; j < 2; j++) { j 4392 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->RequiredDPPCLKThisState[k] = locals->RequiredDPPCLK[i][j][k]; j 4393 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->NoOfDPPThisState[k] = locals->NoOfDPP[i][j][k]; j 4398 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->SwathWidthYThisState[k] = locals->SwathWidthYSingleDPP[k] / locals->NoOfDPP[i][j][k]; j 4477 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &locals->PTEBufferSizeNotExceededC[i][j][k], j 4507 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->PTEBufferSizeNotExceededC[i][j][k] = true; j 4533 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &locals->PTEBufferSizeNotExceededY[i][j][k], j 4582 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->TotalNumberOfActiveDPP[i][j], j 4584 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->TotalNumberOfDCCActiveDPP[i][j], j 4610 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackDestinationWidth[k]) / locals->RequiredDISPCLK[i][j]; j 4627 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackDestinationWidth[m]) / locals->RequiredDISPCLK[i][j]); j 4649 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PrefetchMode[i][j] = mode_lib->vba.NextPrefetchMode; j 4653 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PrefetchMode[i][j], j 4685 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.DPPCLK = locals->RequiredDPPCLK[i][j][k]; j 4686 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.DISPCLK = locals->RequiredDISPCLK[i][j]; j 4689 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.DPPPerPlane = locals->NoOfDPP[i][j][k]; j 4707 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.IsErrorResult[i][j][k] = CalculatePrefetchSchedule( j 4758 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &locals->VRatioPreY[i][j][k], j 4759 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &locals->VRatioPreC[i][j][k], j 4760 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &locals->RequiredPrefetchPixelDataBWLuma[i][j][k], j 4761 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &locals->RequiredPrefetchPixelDataBWChroma[i][j][k], j 4782 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / 8.0 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * locals->VRatioPreY[i][j][k]; j 4796 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->VRatioPreY[i][j][k], j 4797 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->VRatioPreC[i][j][k], j 4827 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->RequiredPrefetchPixelDataBWLuma[i][j][k] * locals->UrgentBurstFactorLumaPre[k] j 4828 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + locals->RequiredPrefetchPixelDataBWChroma[i][j][k] * locals->UrgentBurstFactorChromaPre[k] j 4837 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->PrefetchSupported[i][j] = true; j 4841 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->PrefetchSupported[i][j] = false; j 4847 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.IsErrorResult[i][j][k] == true) { j 4848 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->PrefetchSupported[i][j] = false; j 4851 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->VRatioInPrefetchSupported[i][j] = true; j 4853 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (locals->VRatioPreY[i][j][k] > 4.0 j 4854 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || locals->VRatioPreC[i][j][k] > 4.0 j 4855 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.IsErrorResult[i][j][k] == true) { j 4856 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->VRatioInPrefetchSupported[i][j] = false; j 4872 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } while ((locals->PrefetchSupported[i][j] != true || locals->VRatioInPrefetchSupported[i][j] != true) j 4876 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (locals->PrefetchSupported[i][j] == true && locals->VRatioInPrefetchSupported[i][j] == true) { j 4883 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->RequiredPrefetchPixelDataBWLuma[i][j][k] * locals->UrgentBurstFactorLumaPre[k] j 4884 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + locals->RequiredPrefetchPixelDataBWChroma[i][j][k] * locals->UrgentBurstFactorChromaPre[k] j 4931 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->final_flip_bw[k] + locals->RequiredPrefetchPixelDataBWLuma[i][j][k] j 4932 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * locals->UrgentBurstFactorLumaPre[k] + locals->RequiredPrefetchPixelDataBWChroma[i][j][k] j 4936 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->ImmediateFlipSupportedForState[i][j] = true; j 4939 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->ImmediateFlipSupportedForState[i][j] = false; j 4943 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->ImmediateFlipSupportedForState[i][j] = false; j 4947 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->ImmediateFlipSupportedForState[i][j] = false; j 4955 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PrefetchMode[i][j], j 5002 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &locals->DRAMClockChangeSupport[i][j], j 5040 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (j = 0; j < 2; j++) { j 5041 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->PTEBufferSizeNotExceeded[i][j] = true; j 5043 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (locals->PTEBufferSizeNotExceededY[i][j][k] == false j 5044 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || locals->PTEBufferSizeNotExceededC[i][j][k] == false) { j 5045 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->PTEBufferSizeNotExceeded[i][j] = false; j 5104 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (j = 0; j < 2; j++) { j 5121 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (locals->DISPCLK_DPPCLK_Support[i][j] != true) { j 5123 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (locals->TotalAvailablePipesSupport[i][j] != true) { j 5139 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (locals->PTEBufferSizeNotExceeded[i][j] != true) { j 5144 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && locals->ImmediateFlipSupportedForState[i][j] != true)) { j 5146 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (locals->PrefetchSupported[i][j] != true) { j 5148 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (locals->VRatioInPrefetchSupported[i][j] != true) { j 5153 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->ModeSupport[i][j] = true; j 5155 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->ModeSupport[i][j] = false; j 5285 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c unsigned int k, j; j 5434 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (j = 0; j < NumberOfActivePlanes; ++j) { j 5435 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (BlendingAndTiming[k] == j) { j 5436 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c PlaneWithMinActiveDRAMClockChangeMargin = j; j 355 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c unsigned int j, k; j 364 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c for (j = 0; j < mode_lib->vba.cache_num_pipes; ++j) { j 365 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c display_pipe_source_params_st *src = &pipes[j].pipe.src; j 366 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c display_pipe_dest_params_st *dst = &pipes[j].pipe.dest; j 367 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c scaler_ratio_depth_st *scl = &pipes[j].pipe.scale_ratio_depth; j 368 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c scaler_taps_st *taps = &pipes[j].pipe.scale_taps; j 369 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c display_output_params_st *dout = &pipes[j].dout; j 370 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c display_clocks_and_cfg_st *clks = &pipes[j].clks_cfg; j 372 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c if (visited[j]) j 374 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c visited[j] = true; j 376 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.pipe_plane[j] = mode_lib->vba.NumberOfActivePlanes; j 570 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c if (j == 0) j 579 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c j); j 582 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c for (k = j + 1; k < mode_lib->vba.cache_num_pipes; ++k) { j 616 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) j 617 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c PlaneVisited[j] = false; j 619 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) { j 620 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c for (k = j + 1; k < mode_lib->vba.NumberOfActivePlanes; ++k) { j 621 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c if (!PlaneVisited[k] && OTGInstPlane[j] == OTGInstPlane[k]) { j 623 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.BlendingAndTiming[j] = j; j 624 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c PlaneVisited[j] = true; j 625 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.BlendingAndTiming[k] = j; j 630 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c if (!PlaneVisited[j]) { j 631 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.BlendingAndTiming[j] = j; j 632 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c PlaneVisited[j] = true; j 592 drivers/gpu/drm/amd/display/modules/power/power_helpers.c unsigned int i, j; j 607 drivers/gpu/drm/amd/display/modules/power/power_helpers.c for (j = 0; j < NUM_AMBI_LEVEL; j++) { j 608 drivers/gpu/drm/amd/display/modules/power/power_helpers.c ram_table->min_reduction[j][i] = abm_settings[set][i].min_reduction; j 609 drivers/gpu/drm/amd/display/modules/power/power_helpers.c ram_table->max_reduction[j][i] = abm_settings[set][i].max_reduction; j 610 drivers/gpu/drm/amd/display/modules/power/power_helpers.c ram_table->bright_pos_gain[j][i] = abm_settings[set][i].bright_pos_gain; j 611 drivers/gpu/drm/amd/display/modules/power/power_helpers.c ram_table->dark_pos_gain[j][i] = abm_settings[set][i].dark_pos_gain; j 79 drivers/gpu/drm/amd/include/amd_pcie_helpers.h int i, j; j 114 drivers/gpu/drm/amd/include/amd_pcie_helpers.h for (j = i - 1; j >= 0; j--) { j 115 drivers/gpu/drm/amd/include/amd_pcie_helpers.h if (pcie_lane_width_cap & (0x10000 << j)) { j 116 drivers/gpu/drm/amd/include/amd_pcie_helpers.h new_pcie_lanes = pcie_lanes[j]; j 121 drivers/gpu/drm/amd/include/amd_pcie_helpers.h if (j < 0) { j 122 drivers/gpu/drm/amd/include/amd_pcie_helpers.h for (j = i + 1; j < 7; j++) { j 123 drivers/gpu/drm/amd/include/amd_pcie_helpers.h if (pcie_lane_width_cap & (0x10000 << j)) { j 124 drivers/gpu/drm/amd/include/amd_pcie_helpers.h new_pcie_lanes = pcie_lanes[j]; j 128 drivers/gpu/drm/amd/include/amd_pcie_helpers.h if (j > 7) j 52 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c uint32_t i, j; j 68 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c for (i = 0, j = 1; i < table->last; i++) { j 72 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c (uint32_t)*((uint32_t *)reg_data + j); j 73 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c j++; j 1477 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c int i, j; j 1503 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c for (j = 0; j < profile->ucLeakageBinNum; j++) { j 1504 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c if (efuse_voltage_id <= leakage_bin[j]) { j 1505 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c *vddc = vddc_buf[j * profile->ucElbVDDC_Num + i]; j 1519 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c for (j = 0; j < profile->ucLeakageBinNum; j++) { j 1520 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c if (efuse_voltage_id <= leakage_bin[j]) { j 1521 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c *vddci = vddci_buf[j * profile->ucElbVDDCI_Num + i]; j 1295 drivers/gpu/drm/amd/powerplay/hwmgr/process_pptables_v1_0.c int i, j; j 1331 drivers/gpu/drm/amd/powerplay/hwmgr/process_pptables_v1_0.c for (j = 0; j < i; j++) j 1332 drivers/gpu/drm/amd/powerplay/hwmgr/process_pptables_v1_0.c ppt_get_vce_state_table_entry_v1_0(hwmgr, j, &(hwmgr->vce_states[j]), NULL, &flags); j 1699 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c uint16_t i, j; j 1717 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c for (j = 1; j < sclk_table->count; j++) { j 1718 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c if (sclk_table->entries[j].clk == sclk && j 1719 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c sclk_table->entries[j].cks_enable == 0) { j 1751 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c for (j = 1; j < sclk_table->count; j++) { j 1752 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c if (sclk_table->entries[j].clk == sclk && j 1753 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c sclk_table->entries[j].cks_enable == 0) { j 1996 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c uint32_t table_size, i, j; j 2005 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c for (j = i + 1; j > 0; j--) { j 2006 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c if (lookup_table->entries[j].us_vdd < j 2007 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c lookup_table->entries[j - 1].us_vdd) { j 2008 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c tmp_voltage_lookup_record = lookup_table->entries[j - 1]; j 2009 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c lookup_table->entries[j - 1] = lookup_table->entries[j]; j 2010 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c lookup_table->entries[j] = tmp_voltage_lookup_record; j 205 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c uint32_t i, j; j 226 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c for (j = 0; j < table->count; j++) { j 227 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c if (vvalue == table->entries[j].value) { j 556 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c uint16_t i, j; j 570 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c for (j = 1; j < socclk_table->count; j++) { j 571 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c if (socclk_table->entries[j].clk == sclk && j 572 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c socclk_table->entries[j].cks_enable == 0) { j 714 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c uint32_t table_size, i, j; j 724 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c for (j = i + 1; j > 0; j--) { j 725 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c if (lookup_table->entries[j].us_vdd < j 726 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c lookup_table->entries[j - 1].us_vdd) { j 727 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c tmp_voltage_lookup_record = lookup_table->entries[j - 1]; j 728 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c lookup_table->entries[j - 1] = lookup_table->entries[j]; j 729 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c lookup_table->entries[j] = tmp_voltage_lookup_record; j 956 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c uint8_t i, j; j 966 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c for (i = 0, j = 0; i < 32; i++) { j 968 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c mask |= (uint32_t)(i << (8 * j)); j 969 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c if (++j >= 3) j 1008 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c uint32_t i, j; j 1028 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c for (j = 0; j < table->count; j++) { j 1029 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c if (vvalue == table->entries[j].value) { j 1510 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c uint32_t i, j; j 1524 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c j = i - 1; j 1526 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c pp_table->PcieGenSpeed[i] = pcie_table->pcie_gen[j]; j 1527 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c pp_table->PcieLaneCount[i] = pcie_table->pcie_lane[j]; j 1530 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c pcie_table->lclk[j], &(pp_table->LclkDid[i])); j 1668 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c uint32_t i, j; j 1679 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c j = i - 1; j 1682 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[j].value, j 1703 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c j = i - 1; j 1706 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[j].value, j 1817 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c uint32_t i, j; j 1829 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c j = i - 1; j 1832 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[j].value, j 1954 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c uint32_t i, j; j 1965 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c j = i - 1; j 1968 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[j].value, j 2024 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c uint32_t i, j; j 2034 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c j = i - 1; j 2037 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vclk_dpm_table->dpm_levels[j].value, j 2052 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c j = i - 1; j 2055 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dclk_dpm_table->dpm_levels[j].value, j 2073 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c j = i - 1; j 2075 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c pp_table->UvdDpmVoltageIndex[i] = dep_table->entries[j].vddcInd; j 4236 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c uint32_t j = 0; j 4242 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c clocks->data[j].clocks_in_khz = j 4244 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->mclk_latency_table.entries[j].frequency = j 4246 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c clocks->data[j].latency_in_us = j 4247 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->mclk_latency_table.entries[j].latency = 25; j 4248 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c j++; j 4251 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c clocks->num_levels = data->mclk_latency_table.count = j; j 5097 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c uint8_t i, j; j 5106 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c for (j = 0; j < od_vddc_lookup_table->count; j++) { j 5107 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c if (od_vddc_lookup_table->entries[j].us_vdd > j 5111 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c if (j == od_vddc_lookup_table->count) { j 5112 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c j = od_vddc_lookup_table->count - 1; j 5113 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c od_vddc_lookup_table->entries[j].us_vdd = j 5117 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c podn_vdd_dep->entries[i].vddInd = j; j 722 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c int i, j, k; j 749 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c for (j = 0; j < SMU7_DTE_SOURCES; j++) { j 751 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c dpm_table->BAPMTI_R[i][j][k] = PP_HOST_TO_SMC_US(*def1); j 752 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c dpm_table->BAPMTI_RC[i][j][k] = PP_HOST_TO_SMC_US(*def2); j 1654 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c uint32_t i, j; j 1659 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c for (j = 0; j < data->dpm_table.mclk_table.count; j++) { j 1662 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c data->dpm_table.mclk_table.dpm_levels[j].value, j 1663 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c &arb_regs.entries[i][j]); j 1726 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c uint32_t i, j; j 1728 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c for (i = 0, j = 0; j < smu_data->mc_reg_table.last; j++) { j 1729 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c if (smu_data->mc_reg_table.validflag & 1<<j) { j 1733 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c PP_HOST_TO_SMC_US(smu_data->mc_reg_table.mc_reg_address[j].s0); j 1735 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c PP_HOST_TO_SMC_US(smu_data->mc_reg_table.mc_reg_address[j].s1); j 1750 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c uint32_t i, j; j 1752 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c for (i = 0, j = 0; j < num_entries; j++) { j 1753 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c if (valid_flag & 1<<j) { j 1754 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c data->value[i] = PP_HOST_TO_SMC_UL(entry->mc_data[j]); j 2554 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c uint8_t i, j; j 2569 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c for (j = 0; j < table->last; j++) { j 2570 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c ni_table->mc_reg_table_entry[i].mc_data[j] = j 2571 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c table->mc_reg_table_entry[i].mc_data[j]; j 2583 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c uint8_t i, j, k; j 2587 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c for (i = 0, j = table->last; i < table->last; i++) { j 2588 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c PP_ASSERT_WITH_CODE((j < SMU7_DISCRETE_MC_REGISTER_ARRAY_SIZE), j 2595 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c table->mc_reg_address[j].s1 = mmMC_PMG_CMD_EMRS; j 2596 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c table->mc_reg_address[j].s0 = mmMC_SEQ_PMG_CMD_EMRS_LP; j 2598 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c table->mc_reg_table_entry[k].mc_data[j] = j 2602 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c j++; j 2604 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c PP_ASSERT_WITH_CODE((j < SMU7_DISCRETE_MC_REGISTER_ARRAY_SIZE), j 2607 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c table->mc_reg_address[j].s1 = mmMC_PMG_CMD_MRS; j 2608 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c table->mc_reg_address[j].s0 = mmMC_SEQ_PMG_CMD_MRS_LP; j 2610 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c table->mc_reg_table_entry[k].mc_data[j] = j 2615 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c table->mc_reg_table_entry[k].mc_data[j] |= 0x100; j 2617 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c j++; j 2620 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c PP_ASSERT_WITH_CODE((j < SMU7_DISCRETE_MC_REGISTER_ARRAY_SIZE), j 2622 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c table->mc_reg_address[j].s1 = mmMC_PMG_AUTO_CMD; j 2623 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c table->mc_reg_address[j].s0 = mmMC_PMG_AUTO_CMD; j 2625 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c table->mc_reg_table_entry[k].mc_data[j] = j 2628 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c j++; j 2635 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c table->mc_reg_address[j].s1 = mmMC_PMG_CMD_MRS1; j 2636 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c table->mc_reg_address[j].s0 = mmMC_SEQ_PMG_CMD_MRS1_LP; j 2638 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c table->mc_reg_table_entry[k].mc_data[j] = j 2642 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c j++; j 2651 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c table->last = j; j 2658 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c uint8_t i, j; j 2661 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c for (j = 1; j < table->num_entries; j++) { j 2662 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c if (table->mc_reg_table_entry[j-1].mc_data[i] != j 2663 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c table->mc_reg_table_entry[j].mc_data[i]) { j 1534 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c uint32_t i, j; j 1538 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c for (j = 0; j < data->dpm_table.mclk_table.count; j++) { j 1541 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c data->dpm_table.mclk_table.dpm_levels[j].value, j 1542 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c &arb_regs.entries[i][j]); j 1672 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c uint8_t type, i, j, cks_setting, stretch_amount, stretch_amount2, j 1792 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c for (j = 0; j < smu_data->smc_state_table.GraphicsDpmLevelCount; j++) { j 1795 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c smu_data->smc_state_table.GraphicsLevel[j].SclkFrequency); j 1809 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c ClockStretcherDataTableEntry[i].setting |= cks_setting << (j * 2); j 1904 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c int i, j; j 1907 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c for (i = 0, j = 0; i < 32; i++) { j 1909 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c mask |= (i << (8 * j)); j 1910 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c if (++j >= 3) j 1617 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c uint32_t i, j; j 1622 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c for (j = 0; j < data->dpm_table.mclk_table.count; j++) { j 1625 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c data->dpm_table.mclk_table.dpm_levels[j].value, j 1626 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c &arb_regs.entries[i][j]); j 1693 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c uint32_t i, j; j 1695 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c for (i = 0, j = 0; j < smu_data->mc_reg_table.last; j++) { j 1696 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c if (smu_data->mc_reg_table.validflag & 1<<j) { j 1700 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c PP_HOST_TO_SMC_US(smu_data->mc_reg_table.mc_reg_address[j].s0); j 1702 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c PP_HOST_TO_SMC_US(smu_data->mc_reg_table.mc_reg_address[j].s1); j 1718 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c uint32_t i, j; j 1720 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c for (i = 0, j = 0; j < num_entries; j++) { j 1721 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c if (valid_flag & 1<<j) { j 1722 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c data->value[i] = PP_HOST_TO_SMC_UL(entry->mc_data[j]); j 1858 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c int i, j, k; j 1894 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c for (j = 0; j < SMU71_DTE_SOURCES; j++) { j 1896 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c dpm_table->BAPMTI_R[i][j][k] = PP_HOST_TO_SMC_US(*def1); j 1897 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c dpm_table->BAPMTI_RC[i][j][k] = PP_HOST_TO_SMC_US(*def2); j 2483 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c uint8_t i, j; j 2498 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c for (j = 0; j < table->last; j++) { j 2499 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c ni_table->mc_reg_table_entry[i].mc_data[j] = j 2500 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c table->mc_reg_table_entry[i].mc_data[j]; j 2512 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c uint8_t i, j, k; j 2516 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c for (i = 0, j = table->last; i < table->last; i++) { j 2517 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c PP_ASSERT_WITH_CODE((j < SMU71_DISCRETE_MC_REGISTER_ARRAY_SIZE), j 2524 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c table->mc_reg_address[j].s1 = mmMC_PMG_CMD_EMRS; j 2525 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c table->mc_reg_address[j].s0 = mmMC_SEQ_PMG_CMD_EMRS_LP; j 2527 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c table->mc_reg_table_entry[k].mc_data[j] = j 2531 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c j++; j 2533 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c PP_ASSERT_WITH_CODE((j < SMU71_DISCRETE_MC_REGISTER_ARRAY_SIZE), j 2536 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c table->mc_reg_address[j].s1 = mmMC_PMG_CMD_MRS; j 2537 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c table->mc_reg_address[j].s0 = mmMC_SEQ_PMG_CMD_MRS_LP; j 2539 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c table->mc_reg_table_entry[k].mc_data[j] = j 2544 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c table->mc_reg_table_entry[k].mc_data[j] |= 0x100; j 2547 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c j++; j 2550 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c PP_ASSERT_WITH_CODE((j < SMU71_DISCRETE_MC_REGISTER_ARRAY_SIZE), j 2552 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c table->mc_reg_address[j].s1 = mmMC_PMG_AUTO_CMD; j 2553 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c table->mc_reg_address[j].s0 = mmMC_PMG_AUTO_CMD; j 2555 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c table->mc_reg_table_entry[k].mc_data[j] = j 2558 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c j++; j 2565 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c table->mc_reg_address[j].s1 = mmMC_PMG_CMD_MRS1; j 2566 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c table->mc_reg_address[j].s0 = mmMC_SEQ_PMG_CMD_MRS1_LP; j 2568 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c table->mc_reg_table_entry[k].mc_data[j] = j 2572 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c j++; j 2581 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c table->last = j; j 2588 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c uint8_t i, j; j 2590 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c for (j = 1; j < table->num_entries; j++) { j 2591 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c if (table->mc_reg_table_entry[j-1].mc_data[i] != j 2592 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c table->mc_reg_table_entry[j].mc_data[i]) { j 435 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c int i, j, k; j 459 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c for (j = 0; j < SMU74_DTE_SOURCES; j++) { j 461 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c table->BAPMTI_R[i][j][k] = PP_HOST_TO_SMC_US(*pdef1); j 462 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c table->BAPMTI_RC[i][j][k] = PP_HOST_TO_SMC_US(*pdef2); j 1367 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c uint32_t i, j; j 1371 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c for (j = 0; j < hw_data->dpm_table.mclk_table.count; j++) { j 1374 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c hw_data->dpm_table.mclk_table.dpm_levels[j].value, j 1375 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c &arb_regs.entries[i][j]); j 1377 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c result = atomctrl_set_ac_timing_ai(hwmgr, hw_data->dpm_table.mclk_table.dpm_levels[j].value, j); j 1493 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c uint32_t i, j; j 1498 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c for (j = 0; j < data->dpm_table.mclk_table.count; j++) { j 1501 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c data->dpm_table.mclk_table.dpm_levels[j].value, j 1502 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c &arb_regs.entries[i][j]); j 1580 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c uint8_t type, i, j, cks_setting, stretch_amount, stretch_amount2, j 1715 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c for (j = 0; j < smu_data->smc_state_table.GraphicsDpmLevelCount; j++) { j 1718 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c smu_data->smc_state_table.GraphicsLevel[j].SclkFrequency); j 1730 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c ClockStretcherDataTableEntry[i].setting |= cks_setting << (j * 2); j 1835 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c int i, j, k; j 1858 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c for (j = 0; j < SMU72_DTE_SOURCES; j++) { j 1860 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c dpm_table->BAPMTI_R[i][j][k] = j 1862 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c dpm_table->BAPMTI_RC[i][j][k] = j 2068 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c uint32_t i, j; j 2070 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c for (i = 0, j = 0; j < smu_data->mc_reg_table.last; j++) { j 2071 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c if (smu_data->mc_reg_table.validflag & 1<<j) { j 2078 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c PP_HOST_TO_SMC_US(smu_data->mc_reg_table.mc_reg_address[j].s0); j 2080 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c PP_HOST_TO_SMC_US(smu_data->mc_reg_table.mc_reg_address[j].s1); j 2096 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c uint32_t i, j; j 2098 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c for (i = 0, j = 0; j < num_entries; j++) { j 2099 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c if (valid_flag & 1<<j) { j 2100 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c data->value[i] = PP_HOST_TO_SMC_UL(entry->mc_data[j]); j 2946 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c uint8_t i, j; j 2961 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c for (j = 0; j < table->last; j++) { j 2962 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c ni_table->mc_reg_table_entry[i].mc_data[j] = j 2963 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c table->mc_reg_table_entry[i].mc_data[j]; j 2975 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c uint8_t i, j, k; j 2979 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c for (i = 0, j = table->last; i < table->last; i++) { j 2980 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c PP_ASSERT_WITH_CODE((j < SMU72_DISCRETE_MC_REGISTER_ARRAY_SIZE), j 2988 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c table->mc_reg_address[j].s1 = mmMC_PMG_CMD_EMRS; j 2989 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c table->mc_reg_address[j].s0 = mmMC_SEQ_PMG_CMD_EMRS_LP; j 2991 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c table->mc_reg_table_entry[k].mc_data[j] = j 2995 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c j++; j 2997 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c PP_ASSERT_WITH_CODE((j < SMU72_DISCRETE_MC_REGISTER_ARRAY_SIZE), j 3000 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c table->mc_reg_address[j].s1 = mmMC_PMG_CMD_MRS; j 3001 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c table->mc_reg_address[j].s0 = mmMC_SEQ_PMG_CMD_MRS_LP; j 3003 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c table->mc_reg_table_entry[k].mc_data[j] = j 3008 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c table->mc_reg_table_entry[k].mc_data[j] |= 0x100; j 3010 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c j++; j 3013 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c PP_ASSERT_WITH_CODE((j < SMU72_DISCRETE_MC_REGISTER_ARRAY_SIZE), j 3015 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c table->mc_reg_address[j].s1 = mmMC_PMG_AUTO_CMD; j 3016 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c table->mc_reg_address[j].s0 = mmMC_PMG_AUTO_CMD; j 3018 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c table->mc_reg_table_entry[k].mc_data[j] = j 3020 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c j++; j 3027 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c table->mc_reg_address[j].s1 = mmMC_PMG_CMD_MRS1; j 3028 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c table->mc_reg_address[j].s0 = mmMC_SEQ_PMG_CMD_MRS1_LP; j 3030 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c table->mc_reg_table_entry[k].mc_data[j] = j 3034 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c j++; j 3043 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c table->last = j; j 3050 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c uint8_t i, j; j 3053 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c for (j = 1; j < table->num_entries; j++) { j 3054 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c if (table->mc_reg_table_entry[j-1].mc_data[i] != j 3055 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c table->mc_reg_table_entry[j].mc_data[i]) { j 1291 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c uint32_t i, j; j 1297 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c for (j = 0; j < hw_data->dpm_table.mclk_table.count; j++) { j 1300 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c hw_data->dpm_table.mclk_table.dpm_levels[j].value, j 1301 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c &arb_regs.entries[i][j]); j 1453 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c int i, j, k; j 1477 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c for (j = 0; j < SMU75_DTE_SOURCES; j++) { j 1479 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c table->BAPMTI_R[i][j][k] = PP_HOST_TO_SMC_US(*pdef1); j 1480 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c table->BAPMTI_RC[i][j][k] = PP_HOST_TO_SMC_US(*pdef2); j 120 drivers/gpu/drm/arm/display/komeda/komeda_format_caps.c int i, j, n = 0; j 135 drivers/gpu/drm/arm/display/komeda/komeda_format_caps.c for (j = n - 1; j >= 0; j--) j 136 drivers/gpu/drm/arm/display/komeda/komeda_format_caps.c if (fmts[j] == cap->fourcc) j 139 drivers/gpu/drm/arm/display/komeda/komeda_format_caps.c if (j < 0) j 324 drivers/gpu/drm/arm/display/komeda/komeda_plane.c int i, j, err; j 329 drivers/gpu/drm/arm/display/komeda/komeda_plane.c for (j = 0; j < pipe->n_layers; j++) { j 330 drivers/gpu/drm/arm/display/komeda/komeda_plane.c err = komeda_plane_add(kms, pipe->layers[j]); j 370 drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c int i, j, err; j 379 drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c for (j = 0; j < pipe->n_layers; j++) { j 380 drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c err = komeda_layer_obj_add(kms, pipe->layers[j]); j 391 drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c for (j = 0; j < pipe->n_scalers; j++) { j 392 drivers/gpu/drm/arm/display/komeda/komeda_private_obj.c err = komeda_scaler_obj_add(kms, pipe->scalers[j]); j 938 drivers/gpu/drm/arm/malidp_planes.c int ret, i = 0, j = 0, n; j 951 drivers/gpu/drm/arm/malidp_planes.c supported_modifiers[j++] = *modifiers; j 955 drivers/gpu/drm/arm/malidp_planes.c supported_modifiers[j++] = DRM_FORMAT_MOD_INVALID; j 975 drivers/gpu/drm/arm/malidp_planes.c for (n = 0, j = 0; j < map->n_pixel_formats; j++) { j 976 drivers/gpu/drm/arm/malidp_planes.c if ((map->pixel_formats[j].layer & id) == id) j 977 drivers/gpu/drm/arm/malidp_planes.c formats[n++] = map->pixel_formats[j].format; j 1109 drivers/gpu/drm/ast/ast_mode.c int i, j; j 1120 drivers/gpu/drm/ast/ast_mode.c for (j = 0; j < height; j++) { j 280 drivers/gpu/drm/ast/ast_post.c u8 j; j 284 drivers/gpu/drm/ast/ast_post.c j = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xd0, 0xff); j 286 drivers/gpu/drm/ast/ast_post.c if ((j & 0x80) == 0) { /* VGA only */ j 366 drivers/gpu/drm/ast/ast_post.c j = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xd0, 0xff); j 367 drivers/gpu/drm/ast/ast_post.c } while ((j & 0x40) == 0); j 108 drivers/gpu/drm/ati_pcigart.c int i, j, ret = -ENOMEM; j 170 drivers/gpu/drm/ati_pcigart.c for (j = 0; j < (PAGE_SIZE / ATI_PCIGART_PAGE_SIZE); j++) { j 250 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c int j; j 271 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c for (j = 0; j < info->num_bus_formats; j++) { j 272 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c switch (info->bus_formats[j]) { j 1086 drivers/gpu/drm/bridge/cdns-dsi.c int j; j 1089 drivers/gpu/drm/bridge/cdns-dsi.c for (j = 0; j < 4 && j + i < tx_len; j++) j 1090 drivers/gpu/drm/bridge/cdns-dsi.c val |= (u32)buf[i + j] << (8 * j); j 1125 drivers/gpu/drm/bridge/cdns-dsi.c int j; j 1128 drivers/gpu/drm/bridge/cdns-dsi.c for (j = 0; j < 4 && j + i < rx_len; j++) j 1129 drivers/gpu/drm/bridge/cdns-dsi.c buf[i + j] = val >> (8 * j); j 213 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c unsigned ch, i, j; j 226 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c for (j = 0; j < 8; j++, c >>= 1) j 227 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c dw->cs[i * 8 + j][ch] = (c & 1) << 2; j 438 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c int i, j, ret, len = msg->rx_len; j 462 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c for (j = 0; j < 4 && j + i < len; j++) j 463 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c buf[i + j] = val >> (8 * j); j 2340 drivers/gpu/drm/drm_atomic_helper.c int ret, i, j; j 2366 drivers/gpu/drm/drm_atomic_helper.c for_each_new_plane_in_state(state, plane, new_plane_state, j) { j 2369 drivers/gpu/drm/drm_atomic_helper.c if (j >= i) j 1289 drivers/gpu/drm/drm_atomic_uapi.c unsigned int i, j, num_fences; j 1359 drivers/gpu/drm/drm_atomic_uapi.c for (j = 0; j < count_props; j++) { j 235 drivers/gpu/drm/drm_client_modeset.c int count, i, j; j 263 drivers/gpu/drm/drm_client_modeset.c for (j = 0; j < i; j++) { j 264 drivers/gpu/drm/drm_client_modeset.c if (!enabled[j]) j 266 drivers/gpu/drm/drm_client_modeset.c if (!drm_mode_match(modes[j], modes[i], j 514 drivers/gpu/drm/drm_client_modeset.c int i, j; j 589 drivers/gpu/drm/drm_client_modeset.c for (j = 0; j < count; j++) { j 590 drivers/gpu/drm/drm_client_modeset.c if (crtcs[j] == new_crtc) { j 1081 drivers/gpu/drm/drm_client_modeset.c int j; j 1088 drivers/gpu/drm/drm_client_modeset.c for (j = 0; j < modeset->num_connectors; j++) { j 1089 drivers/gpu/drm/drm_client_modeset.c connector = modeset->connectors[j]; j 84 drivers/gpu/drm/drm_dma.c int i, j; j 101 drivers/gpu/drm/drm_dma.c for (j = 0; j < dma->bufs[i].seg_count; j++) { j 102 drivers/gpu/drm/drm_dma.c if (dma->bufs[i].seglist[j]) { j 103 drivers/gpu/drm/drm_dma.c drm_pci_free(dev, dma->bufs[i].seglist[j]); j 109 drivers/gpu/drm/drm_dma.c for (j = 0; j < dma->bufs[i].buf_count; j++) { j 110 drivers/gpu/drm/drm_dma.c kfree(dma->bufs[i].buflist[j].dev_private); j 915 drivers/gpu/drm/drm_dp_helper.c unsigned int i, j; j 948 drivers/gpu/drm/drm_dp_helper.c for (j = 0; j < msgs[i].len; j += msg.size) { j 949 drivers/gpu/drm/drm_dp_helper.c msg.buffer = msgs[i].buf + j; j 950 drivers/gpu/drm/drm_dp_helper.c msg.size = min(transfer_size, msgs[i].len - j); j 2404 drivers/gpu/drm/drm_dp_mst_topology.c int i, j; j 2475 drivers/gpu/drm/drm_dp_mst_topology.c for (j = i; j < mgr->max_payloads - 1; j++) { j 2476 drivers/gpu/drm/drm_dp_mst_topology.c mgr->payloads[j] = mgr->payloads[j + 1]; j 2477 drivers/gpu/drm/drm_dp_mst_topology.c mgr->proposed_vcpis[j] = mgr->proposed_vcpis[j + 1]; j 2479 drivers/gpu/drm/drm_dp_mst_topology.c if (mgr->proposed_vcpis[j] && j 2480 drivers/gpu/drm/drm_dp_mst_topology.c mgr->proposed_vcpis[j]->num_slots) { j 2481 drivers/gpu/drm/drm_dp_mst_topology.c set_bit(j + 1, &mgr->payload_mask); j 2483 drivers/gpu/drm/drm_dp_mst_topology.c clear_bit(j + 1, &mgr->payload_mask); j 1650 drivers/gpu/drm/drm_edid.c int i, j = 0, valid_extensions = 0; j 1686 drivers/gpu/drm/drm_edid.c for (j = 1; j <= edid[0x7e]; j++) { j 1687 drivers/gpu/drm/drm_edid.c u8 *block = edid + j * EDID_LENGTH; j 1690 drivers/gpu/drm/drm_edid.c if (get_edid_block(data, block, j, EDID_LENGTH)) j 1692 drivers/gpu/drm/drm_edid.c if (drm_edid_block_valid(block, j, false, NULL)) j 2627 drivers/gpu/drm/drm_edid.c int i, j, m, modes = 0; j 2632 drivers/gpu/drm/drm_edid.c for (j = 7; j >= 0; j--) { j 2633 drivers/gpu/drm/drm_edid.c m = (i * 8) + (7 - j); j 2636 drivers/gpu/drm/drm_edid.c if (est[i] & (1 << j)) { j 2766 drivers/gpu/drm/drm_edid.c int i, j, modes = 0; j 2796 drivers/gpu/drm/drm_edid.c for (j = 1; j < 5; j++) { j 2797 drivers/gpu/drm/drm_edid.c if (cvt->code[2] & (1 << j)) { j 2799 drivers/gpu/drm/drm_edid.c rates[j], j == 0, j 4207 drivers/gpu/drm/drm_edid.c int j; j 4214 drivers/gpu/drm/drm_edid.c for (j = 0; j < count; j++) { j 4215 drivers/gpu/drm/drm_edid.c u8 *sad = &db[1 + j * 3]; j 4217 drivers/gpu/drm/drm_edid.c (*sads)[j].format = (sad[0] & 0x78) >> 3; j 4218 drivers/gpu/drm/drm_edid.c (*sads)[j].channels = sad[0] & 0x7; j 4219 drivers/gpu/drm/drm_edid.c (*sads)[j].freq = sad[1] & 0x7F; j 4220 drivers/gpu/drm/drm_edid.c (*sads)[j].byte2 = sad[2]; j 4375 drivers/gpu/drm/drm_edid.c int i, j; j 4396 drivers/gpu/drm/drm_edid.c for (j = 1; j < cea_db_payload_len(&edid_ext[i]) + 1; j += 3) j 4398 drivers/gpu/drm/drm_edid.c (edid_ext[i + j] >> 3) & 0xf); j 1554 drivers/gpu/drm/drm_fb_helper.c int j; j 1558 drivers/gpu/drm/drm_fb_helper.c for (j = 0; j < plane->format_count; j++) { j 1561 drivers/gpu/drm/drm_fb_helper.c fmt = drm_format_info(plane->format_types[j]); j 1598 drivers/gpu/drm/drm_fb_helper.c int x, y, j; j 1618 drivers/gpu/drm/drm_fb_helper.c for (j = 0; j < mode_set->num_connectors; j++) { j 1619 drivers/gpu/drm/drm_fb_helper.c struct drm_connector *connector = mode_set->connectors[j]; j 1309 drivers/gpu/drm/drm_gem.c int j; j 1311 drivers/gpu/drm/drm_gem.c for (j = 0; j < i; j++) j 1312 drivers/gpu/drm/drm_gem.c dma_resv_unlock(objs[j]->resv); j 287 drivers/gpu/drm/drm_hdcp.c u32 rev_ksv_cnt, cnt, i, j; j 308 drivers/gpu/drm/drm_hdcp.c for (j = 0; j < DRM_HDCP_KSV_LEN; j++) j 309 drivers/gpu/drm/drm_hdcp.c if (ksvs[j] != rev_ksv_list[j]) { j 311 drivers/gpu/drm/drm_hdcp.c } else if (j == (DRM_HDCP_KSV_LEN - 1)) { j 93 drivers/gpu/drm/drm_plane.c unsigned int i, j; j 133 drivers/gpu/drm/drm_plane.c for (j = 0; j < plane->format_count; j++) { j 135 drivers/gpu/drm/drm_plane.c plane->format_types[j], j 138 drivers/gpu/drm/drm_plane.c mod->formats |= 1ULL << j; j 92 drivers/gpu/drm/drm_scatter.c unsigned long pages, i, j; j 144 drivers/gpu/drm/drm_scatter.c for (i = (unsigned long)entry->virtual, j = 0; j < pages; j 145 drivers/gpu/drm/drm_scatter.c i += PAGE_SIZE, j++) { j 146 drivers/gpu/drm/drm_scatter.c entry->pagelist[j] = vmalloc_to_page((void *)i); j 147 drivers/gpu/drm/drm_scatter.c if (!entry->pagelist[j]) j 149 drivers/gpu/drm/drm_scatter.c SetPageReserved(entry->pagelist[j]); j 167 drivers/gpu/drm/drm_scatter.c for (j = 0; j 168 drivers/gpu/drm/drm_scatter.c j < PAGE_SIZE / sizeof(unsigned long); j 169 drivers/gpu/drm/drm_scatter.c j++, tmp++) { j 174 drivers/gpu/drm/drm_scatter.c for (j = 0; j 175 drivers/gpu/drm/drm_scatter.c j < PAGE_SIZE / sizeof(unsigned long); j 176 drivers/gpu/drm/drm_scatter.c j++, tmp++) { j 185 drivers/gpu/drm/drm_scatter.c for (j = 0; j 186 drivers/gpu/drm/drm_scatter.c j < PAGE_SIZE / sizeof(unsigned long); j 187 drivers/gpu/drm/drm_scatter.c j++, tmp++) { j 1276 drivers/gpu/drm/drm_syncobj.c uint32_t i, j; j 1317 drivers/gpu/drm/drm_syncobj.c for (j = 0; j < i; j++) j 1318 drivers/gpu/drm/drm_syncobj.c kfree(chains[j]); j 208 drivers/gpu/drm/etnaviv/etnaviv_dump.c int j; j 212 drivers/gpu/drm/etnaviv/etnaviv_dump.c for (j = 0; j < obj->base.size >> PAGE_SHIFT; j++) j 76 drivers/gpu/drm/etnaviv/etnaviv_mmu.c unsigned int i, j; j 100 drivers/gpu/drm/etnaviv/etnaviv_mmu.c for_each_sg(sgt->sgl, sg, i, j) { j 40 drivers/gpu/drm/etnaviv/etnaviv_sched.c int j; j 52 drivers/gpu/drm/etnaviv/etnaviv_sched.c for (j = 0; j < bo->nr_shared; j++) { j 53 drivers/gpu/drm/etnaviv/etnaviv_sched.c if (!bo->shared[j]) j 56 drivers/gpu/drm/etnaviv/etnaviv_sched.c fence = bo->shared[j]; j 57 drivers/gpu/drm/etnaviv/etnaviv_sched.c bo->shared[j] = NULL; j 1258 drivers/gpu/drm/exynos/exynos_drm_dsi.c static unsigned long int j; j 1259 drivers/gpu/drm/exynos/exynos_drm_dsi.c if (printk_timed_ratelimit(&j, 500)) j 1268 drivers/gpu/drm/exynos/exynos_drm_fimc.c int i, j, num_limits, num_formats; j 1311 drivers/gpu/drm/exynos/exynos_drm_fimc.c for (j = i, i = 0; i < ARRAY_SIZE(fimc_tiled_formats); j++, i++) { j 1312 drivers/gpu/drm/exynos/exynos_drm_fimc.c formats[j].fourcc = fimc_tiled_formats[i]; j 1313 drivers/gpu/drm/exynos/exynos_drm_fimc.c formats[j].modifier = DRM_FORMAT_MOD_SAMSUNG_64_32_TILE; j 1314 drivers/gpu/drm/exynos/exynos_drm_fimc.c formats[j].type = DRM_EXYNOS_IPP_FORMAT_SOURCE | j 1316 drivers/gpu/drm/exynos/exynos_drm_fimc.c formats[j].limits = limits; j 1317 drivers/gpu/drm/exynos/exynos_drm_fimc.c formats[j].num_limits = num_limits; j 798 drivers/gpu/drm/exynos/exynos_drm_gsc.c int i, j, k, sc_ratio; j 816 drivers/gpu/drm/exynos/exynos_drm_gsc.c for (j = 0; j < GSC_COEF_H_8T; j++) j 818 drivers/gpu/drm/exynos/exynos_drm_gsc.c gsc_write(h_coef_8t[sc_ratio][i][j], j 819 drivers/gpu/drm/exynos/exynos_drm_gsc.c GSC_HCOEF(i, j, k)); j 824 drivers/gpu/drm/exynos/exynos_drm_gsc.c int i, j, k, sc_ratio; j 842 drivers/gpu/drm/exynos/exynos_drm_gsc.c for (j = 0; j < GSC_COEF_V_4T; j++) j 844 drivers/gpu/drm/exynos/exynos_drm_gsc.c gsc_write(v_coef_4t[sc_ratio][i][j], j 845 drivers/gpu/drm/exynos/exynos_drm_gsc.c GSC_VCOEF(i, j, k)); j 1220 drivers/gpu/drm/exynos/exynos_drm_gsc.c int num_formats, ret, i, j; j 1247 drivers/gpu/drm/exynos/exynos_drm_gsc.c for (j = i, i = 0; i < ARRAY_SIZE(gsc_tiled_formats); j++, i++) { j 1248 drivers/gpu/drm/exynos/exynos_drm_gsc.c formats[j].fourcc = gsc_tiled_formats[i]; j 1249 drivers/gpu/drm/exynos/exynos_drm_gsc.c formats[j].modifier = DRM_FORMAT_MOD_SAMSUNG_16_16_TILE; j 1250 drivers/gpu/drm/exynos/exynos_drm_gsc.c formats[j].type = DRM_EXYNOS_IPP_FORMAT_SOURCE | j 1252 drivers/gpu/drm/exynos/exynos_drm_gsc.c formats[j].limits = driver_data->limits; j 1253 drivers/gpu/drm/exynos/exynos_drm_gsc.c formats[j].num_limits = driver_data->num_limits; j 317 drivers/gpu/drm/exynos/exynos_drm_scaler.c int i, j, dir; j 336 drivers/gpu/drm/exynos/exynos_drm_scaler.c for (j = 0; j < 3; j++) j 337 drivers/gpu/drm/exynos/exynos_drm_scaler.c scaler_write(csc_mtx[dir][i][j], SCALER_CSC_COEF(j, i)); j 199 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c int i, j; j 202 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c for (j = 1; j <= fsl_dev->soc->layer_regs; j++) j 203 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c regmap_write(fsl_dev->regmap, DCU_CTRLDESCLN(i, j), 0); j 231 drivers/gpu/drm/gma500/psb_intel_sdvo.c int i, j; j 234 drivers/gpu/drm/gma500/psb_intel_sdvo.c for (j = 0; j <= need_aux; j++) { j 236 drivers/gpu/drm/gma500/psb_intel_sdvo.c cval = REG_READ_WITH_AUX(SDVOC, j); j 238 drivers/gpu/drm/gma500/psb_intel_sdvo.c bval = REG_READ_WITH_AUX(SDVOB, j); j 246 drivers/gpu/drm/gma500/psb_intel_sdvo.c REG_WRITE_WITH_AUX(SDVOB, bval, j); j 247 drivers/gpu/drm/gma500/psb_intel_sdvo.c REG_READ_WITH_AUX(SDVOB, j); j 248 drivers/gpu/drm/gma500/psb_intel_sdvo.c REG_WRITE_WITH_AUX(SDVOC, cval, j); j 249 drivers/gpu/drm/gma500/psb_intel_sdvo.c REG_READ_WITH_AUX(SDVOC, j); j 835 drivers/gpu/drm/gma500/psb_intel_sdvo.c int i, j; j 852 drivers/gpu/drm/gma500/psb_intel_sdvo.c for (j = 0; j <= buf_size; j += 8) { j 464 drivers/gpu/drm/i810/i810_dma.c int i, j = 0; j 482 drivers/gpu/drm/i810/i810_dma.c j++; j 487 drivers/gpu/drm/i810/i810_dma.c if (j & 1) j 496 drivers/gpu/drm/i810/i810_dma.c int i, j = 0; j 513 drivers/gpu/drm/i810/i810_dma.c j++; j 518 drivers/gpu/drm/i810/i810_dma.c if (j & 1) j 124 drivers/gpu/drm/i915/display/icl_dsi.c int i, j; j 135 drivers/gpu/drm/i915/display/icl_dsi.c for (j = 0; j < min_t(u32, len - i, 4); j++) j 136 drivers/gpu/drm/i915/display/icl_dsi.c tmp |= *data++ << 8 * j; j 234 drivers/gpu/drm/i915/display/intel_atomic.c int j; j 239 drivers/gpu/drm/i915/display/intel_atomic.c for (j = 0; j < intel_crtc->num_scalers; j++) { j 240 drivers/gpu/drm/i915/display/intel_atomic.c if (scaler_state->scalers[j].in_use) j 243 drivers/gpu/drm/i915/display/intel_atomic.c *scaler_id = j; j 176 drivers/gpu/drm/i915/display/intel_bw.c int j; j 183 drivers/gpu/drm/i915/display/intel_bw.c for (j = 0; j < qi.num_points; j++) { j 184 drivers/gpu/drm/i915/display/intel_bw.c const struct intel_qgv_point *sp = &qi.points[j]; j 197 drivers/gpu/drm/i915/display/intel_bw.c bi->deratedbw[j] = min(maxdebw, j 201 drivers/gpu/drm/i915/display/intel_bw.c i, j, bi->num_planes, bi->deratedbw[j]); j 4719 drivers/gpu/drm/i915/display/intel_display.c u32 temp, i, j; j 4736 drivers/gpu/drm/i915/display/intel_display.c for (j = 0; j < ARRAY_SIZE(snb_b_fdi_train_param) * 2; j++) { j 4758 drivers/gpu/drm/i915/display/intel_display.c temp |= snb_b_fdi_train_param[j/2]; j 4789 drivers/gpu/drm/i915/display/intel_display.c DRM_DEBUG_KMS("FDI train 1 fail on vswing %d\n", j / 2); j 4824 drivers/gpu/drm/i915/display/intel_display.c DRM_DEBUG_KMS("FDI train 2 fail on vswing %d\n", j / 2); j 378 drivers/gpu/drm/i915/display/intel_dp.c int i = 0, j = 0, k = 0; j 380 drivers/gpu/drm/i915/display/intel_dp.c while (i < source_len && j < sink_len) { j 381 drivers/gpu/drm/i915/display/intel_dp.c if (source_rates[i] == sink_rates[j]) { j 387 drivers/gpu/drm/i915/display/intel_dp.c ++j; j 388 drivers/gpu/drm/i915/display/intel_dp.c } else if (source_rates[i] < sink_rates[j]) { j 391 drivers/gpu/drm/i915/display/intel_dp.c ++j; j 284 drivers/gpu/drm/i915/display/intel_hdcp.c int ret, i, j, sha_idx; j 317 drivers/gpu/drm/i915/display/intel_hdcp.c for (j = 0; j < sha_empty; j++) j 318 drivers/gpu/drm/i915/display/intel_hdcp.c sha_text |= ksv[j] << ((sizeof(sha_text) - j - 1) * 8); j 332 drivers/gpu/drm/i915/display/intel_hdcp.c for (j = 0; j < sha_leftovers; j++) j 333 drivers/gpu/drm/i915/display/intel_hdcp.c sha_text |= ksv[sha_empty + j] << j 334 drivers/gpu/drm/i915/display/intel_hdcp.c ((sizeof(sha_text) - j - 1) * 8); j 971 drivers/gpu/drm/i915/display/intel_sdvo.c int i, j; j 988 drivers/gpu/drm/i915/display/intel_sdvo.c for (j = 0; j <= buf_size; j += 8) { j 1428 drivers/gpu/drm/i915/display/intel_tv.c int i, j; j 1551 drivers/gpu/drm/i915/display/intel_tv.c j = 0; j 1553 drivers/gpu/drm/i915/display/intel_tv.c I915_WRITE(TV_H_LUMA(i), tv_mode->filter_table[j++]); j 1555 drivers/gpu/drm/i915/display/intel_tv.c I915_WRITE(TV_H_CHROMA(i), tv_mode->filter_table[j++]); j 1557 drivers/gpu/drm/i915/display/intel_tv.c I915_WRITE(TV_V_LUMA(i), tv_mode->filter_table[j++]); j 1559 drivers/gpu/drm/i915/display/intel_tv.c I915_WRITE(TV_V_CHROMA(i), tv_mode->filter_table[j++]); j 96 drivers/gpu/drm/i915/display/vlv_dsi.c u32 i, j; j 101 drivers/gpu/drm/i915/display/vlv_dsi.c for (j = 0; j < min_t(u32, len - i, 4); j++) j 102 drivers/gpu/drm/i915/display/vlv_dsi.c val |= *data++ << 8 * j; j 112 drivers/gpu/drm/i915/display/vlv_dsi.c u32 i, j; j 117 drivers/gpu/drm/i915/display/vlv_dsi.c for (j = 0; j < min_t(u32, len - i, 4); j++) j 118 drivers/gpu/drm/i915/display/vlv_dsi.c *data++ = val >> 8 * j; j 1828 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c int j = i - 1; j 1830 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c ww_mutex_unlock(&eb->vma[j]->resv->lock); j 1832 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c swap(eb->flags[i], eb->flags[j]); j 1833 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c swap(eb->vma[i], eb->vma[j]); j 378 drivers/gpu/drm/i915/gem/selftests/huge_pages.c int i, j, single; j 389 drivers/gpu/drm/i915/gem/selftests/huge_pages.c for (j = 0; j < ARRAY_SIZE(page_sizes); j++) { j 390 drivers/gpu/drm/i915/gem/selftests/huge_pages.c if (i & BIT(j)) j 391 drivers/gpu/drm/i915/gem/selftests/huge_pages.c combination |= page_sizes[j]; j 11 drivers/gpu/drm/i915/gt/selftest_engine_cs.c int i, j; j 17 drivers/gpu/drm/i915/gt/selftest_engine_cs.c for (j = 0; j < MAX_MMIO_BASES; j++) { j 18 drivers/gpu/drm/i915/gt/selftest_engine_cs.c u8 gen = info->mmio_bases[j].gen; j 19 drivers/gpu/drm/i915/gt/selftest_engine_cs.c u32 base = info->mmio_bases[j].base; j 38 drivers/gpu/drm/i915/gt/selftest_engine_cs.c base, gen, j); j 133 drivers/gpu/drm/i915/gvt/gvt.c int i, j; j 152 drivers/gpu/drm/i915/gvt/gvt.c for (j = 0; j < i; j++) { j 153 drivers/gpu/drm/i915/gvt/gvt.c group = gvt_vgpu_type_groups[j]; j 3411 drivers/gpu/drm/i915/gvt/handlers.c int i, j, ret; j 3420 drivers/gpu/drm/i915/gvt/handlers.c for (j = 0; j < block->size; j += 4) { j 3422 drivers/gpu/drm/i915/gvt/handlers.c i915_mmio_reg_offset(block->offset) + j, j 798 drivers/gpu/drm/i915/i915_cmd_parser.c int j; j 800 drivers/gpu/drm/i915/i915_cmd_parser.c for (j = 0; j < table->count; j++) { j 802 drivers/gpu/drm/i915/i915_cmd_parser.c &table->table[j]; j 809 drivers/gpu/drm/i915/i915_cmd_parser.c i, j, curr, previous); j 891 drivers/gpu/drm/i915/i915_cmd_parser.c int i, j; j 898 drivers/gpu/drm/i915/i915_cmd_parser.c for (j = 0; j < table->count; j++) { j 900 drivers/gpu/drm/i915/i915_cmd_parser.c &table->table[j]; j 661 drivers/gpu/drm/i915/i915_gpu_error.c int i, j; j 756 drivers/gpu/drm/i915/i915_gpu_error.c for (j = 0; j < ee->user_bo_count; j++) j 757 drivers/gpu/drm/i915/i915_gpu_error.c print_error_obj(m, ee->engine, "user", ee->user_bo[j]); j 763 drivers/gpu/drm/i915/i915_gpu_error.c for (j = 0; j < ee->num_requests; j++) j 765 drivers/gpu/drm/i915/i915_gpu_error.c &ee->requests[j], j 263 drivers/gpu/drm/i915/i915_utils.h unsigned long j = msecs_to_jiffies(m); j 265 drivers/gpu/drm/i915/i915_utils.h return min_t(unsigned long, MAX_JIFFY_OFFSET, j + 1); j 72 drivers/gpu/drm/i915/selftests/intel_uncore.c unsigned int i, j; j 75 drivers/gpu/drm/i915/selftests/intel_uncore.c for (j = 0; j < ARRAY_SIZE(reg_lists); ++j) { j 76 drivers/gpu/drm/i915/selftests/intel_uncore.c reg = reg_lists[j].regs; j 77 drivers/gpu/drm/i915/selftests/intel_uncore.c for (i = 0, prev = -1; i < reg_lists[j].size; i++, reg++) { j 18 drivers/gpu/drm/lib/drm_random.c unsigned int i, j; j 22 drivers/gpu/drm/lib/drm_random.c j = drm_prandom_u32_max_state(count, state); j 23 drivers/gpu/drm/lib/drm_random.c swap(order[i], order[j]); j 160 drivers/gpu/drm/lima/lima_pp.c int i, j, n = 0; j 166 drivers/gpu/drm/lima/lima_pp.c for (j = 0; j < LIMA_PP_WB_REG_NUM; j++) j 167 drivers/gpu/drm/lima/lima_pp.c writel(wb[n++], ip->iomem + LIMA_PP_WB(i) + j * 4); j 60 drivers/gpu/drm/lima/lima_vm.c int j; j 73 drivers/gpu/drm/lima/lima_vm.c for (j = 0; j < LIMA_VM_NUM_PT_PER_BT; j++) { j 74 drivers/gpu/drm/lima/lima_vm.c pd[j] = pts | LIMA_VM_FLAG_PRESENT; j 257 drivers/gpu/drm/lima/lima_vm.c int i, j, k; j 269 drivers/gpu/drm/lima/lima_vm.c for (j = 0; j < LIMA_VM_NUM_PT_PER_BT; j++) { j 270 drivers/gpu/drm/lima/lima_vm.c int idx = (i << LIMA_VM_NUM_PT_PER_BT_SHIFT) + j; j 228 drivers/gpu/drm/mgag200/mgag200_mode.c int i, j, tmpcount, vcount; j 383 drivers/gpu/drm/mgag200/mgag200_mode.c for (j = 0; j < 30 && pll_locked == false; j++) { j 500 drivers/gpu/drm/mgag200/mgag200_mode.c int i, j, tmpcount, vcount; j 609 drivers/gpu/drm/mgag200/mgag200_mode.c for (j = 0; j < 30 && pll_locked == false; j++) { j 68 drivers/gpu/drm/msm/adreno/a5xx_debugfs.c int j; j 69 drivers/gpu/drm/msm/adreno/a5xx_debugfs.c for (j = 0; j < 4; j++) j 70 drivers/gpu/drm/msm/adreno/a5xx_debugfs.c val[j] = gpu_read(gpu, REG_A5XX_CP_ROQ_DBG_DATA); j 1312 drivers/gpu/drm/msm/adreno/a5xx_gpu.c int i, j; j 1332 drivers/gpu/drm/msm/adreno/a5xx_gpu.c for (j = 0; j < c; j++, pos++, o++) { j 1016 drivers/gpu/drm/msm/adreno/a6xx_gmu.c int i, j; j 1045 drivers/gpu/drm/msm/adreno/a6xx_gmu.c for (j = 0; j < pri_count; j++) { j 1046 drivers/gpu/drm/msm/adreno/a6xx_gmu.c if (pri[j] >= level) { j 1047 drivers/gpu/drm/msm/adreno/a6xx_gmu.c pindex = j; j 1052 drivers/gpu/drm/msm/adreno/a6xx_gmu.c if (j == pri_count) { j 1057 drivers/gpu/drm/msm/adreno/a6xx_gmu.c for (j = 0; j < pri_count; j++) j 1058 drivers/gpu/drm/msm/adreno/a6xx_gmu.c DRM_DEV_ERROR(dev, " %u\n", pri[j]); j 1068 drivers/gpu/drm/msm/adreno/a6xx_gmu.c for (j = 0; j < sec_count; j++) { j 1069 drivers/gpu/drm/msm/adreno/a6xx_gmu.c if (sec[j] >= level) { j 1070 drivers/gpu/drm/msm/adreno/a6xx_gmu.c sindex = j; j 1072 drivers/gpu/drm/msm/adreno/a6xx_gmu.c } else if (sec[j]) { j 1073 drivers/gpu/drm/msm/adreno/a6xx_gmu.c sindex = j; j 439 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c int j; j 444 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c for (j = 0; j < dbgahb->count; j += 2) { j 445 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c int count = RANGE(dbgahb->registers, j); j 447 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c dbgahb->registers[j] - (dbgahb->base >> 2); j 511 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c int j; j 516 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c for (j = 0; j < cluster->count; j += 2) { j 517 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c int count = RANGE(cluster->registers, j); j 519 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c in += CRASHDUMP_READ(in, cluster->registers[j], j 708 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c int j; j 710 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c for (j = 0; j < count; j++) j 712 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c regs->registers[i] + j); j 737 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c int j; j 739 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c for (j = 0; j < count; j++) j 741 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c regs->registers[i] + j); j 939 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c int j; j 941 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c for (j = 0; j < count; index++, offset++, j++) { j 1012 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c int j; j 1016 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c for (j = 0; j < size; j += 2) { j 1017 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c u32 count = RANGE(registers, j); j 1018 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c u32 offset = registers[j]; j 533 drivers/gpu/drm/msm/adreno/adreno_gpu.c int size = 0, j; j 545 drivers/gpu/drm/msm/adreno/adreno_gpu.c for (j = state->ring[i].wptr; j < MSM_GPU_RINGBUFFER_SZ >> 2; j++) j 546 drivers/gpu/drm/msm/adreno/adreno_gpu.c if (gpu->rb[i]->start[j]) j 547 drivers/gpu/drm/msm/adreno/adreno_gpu.c size = j + 1; j 960 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c int i, j, ret; j 1059 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c for (j = 0; j < MAX_CHANNELS_PER_ENC; j++) { j 297 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c int i, j; j 321 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c for (j = 0 ; j < pipes_per_stage; j++) { j 323 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c stage_cfg->multirect_index[i][j]; j 325 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c switch (stage_cfg->stage[i][j]) { j 87 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.c int i, j, filter; j 144 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.c for (j = 0; j < lut_len; j++) { j 283 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c int i, j; j 288 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c for (j = 0; j < vbif->cap->memtype_count; j++) j 290 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c vbif, j, vbif->cap->memtype[j]); j 301 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c int i, j; j 324 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c for (j = 0; j < vbif->dynamic_ot_rd_tbl.count; j++) { j 326 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c &vbif->dynamic_ot_rd_tbl.cfg[j]; j 329 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c "dynamic_ot_rd_%d_pps", j); j 333 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c "dynamic_ot_rd_%d_ot_limit", j); j 338 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c for (j = 0; j < vbif->dynamic_ot_wr_tbl.count; j++) { j 340 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c &vbif->dynamic_ot_wr_tbl.cfg[j]; j 343 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c "dynamic_ot_wr_%d_pps", j); j 347 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c "dynamic_ot_wr_%d_ot_limit", j); j 18 drivers/gpu/drm/msm/disp/mdp5/mdp5_pipe.c int i, j; j 64 drivers/gpu/drm/msm/disp/mdp5/mdp5_pipe.c for (j = i + 1; j < mdp5_kms->num_hwpipes; j 65 drivers/gpu/drm/msm/disp/mdp5/mdp5_pipe.c j++) { j 67 drivers/gpu/drm/msm/disp/mdp5/mdp5_pipe.c mdp5_kms->hwpipes[j]; j 336 drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c int total = 0, i, j; j 354 drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c for (j = 0; j < pipe2nclients(pipe); j++) { j 355 drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c u32 cid = pipe2client(pipe, j); j 360 drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c pipe2name(pipe), j, inuse, j 1297 drivers/gpu/drm/msm/dsi/dsi_host.c int i, j = 0, cnt; j 1338 drivers/gpu/drm/msm/dsi/dsi_host.c buf[j++] = reg[i]; j 1340 drivers/gpu/drm/msm/dsi/dsi_host.c return j; j 1697 drivers/gpu/drm/msm/dsi/dsi_host.c int j; j 1706 drivers/gpu/drm/msm/dsi/dsi_host.c for (j = 0; j < num_lanes; j++) { j 1707 drivers/gpu/drm/msm/dsi/dsi_host.c if (lane_map[j] < 0 || lane_map[j] > 3) j 1709 drivers/gpu/drm/msm/dsi/dsi_host.c lane_map[j]); j 1711 drivers/gpu/drm/msm/dsi/dsi_host.c if (swap[lane_map[j]] != j) j 1715 drivers/gpu/drm/msm/dsi/dsi_host.c if (j == num_lanes) { j 100 drivers/gpu/drm/msm/hdmi/hdmi_i2c.c int ret, i, j, index = 0; j 139 drivers/gpu/drm/msm/hdmi/hdmi_i2c.c for (j = 0; j < p->len; j++) { j 140 drivers/gpu/drm/msm/hdmi/hdmi_i2c.c ddc_data = HDMI_DDC_DATA_DATA(p->buf[j]) | j 199 drivers/gpu/drm/msm/hdmi/hdmi_i2c.c for (j = 0; j < p->len; j++) { j 201 drivers/gpu/drm/msm/hdmi/hdmi_i2c.c p->buf[j] = FIELD(ddc_data, HDMI_DDC_DATA_DATA); j 175 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c int i, j; j 182 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c for (j = 0; j < 4; j++) { j 183 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c u32 ratio_mult = ratio[i] << tx_band_sel[j]; j 42 drivers/gpu/drm/msm/msm_gpummu.c unsigned i, j; j 51 drivers/gpu/drm/msm/msm_gpummu.c for (j = 0; j < sg->length / GPUMMU_PAGE_SIZE; j++, idx++) { j 927 drivers/gpu/drm/nouveau/dispnv04/crtc.c int i, j; j 930 drivers/gpu/drm/nouveau/dispnv04/crtc.c for (j = 0; j < width; j++) { j 931 drivers/gpu/drm/nouveau/dispnv04/crtc.c pixel = nouveau_bo_rd32(src, i*64 + j); j 933 drivers/gpu/drm/nouveau/dispnv04/crtc.c nouveau_bo_wr16(dst, i*width + j, (pixel & 0x80000000) >> 16 j 73 drivers/gpu/drm/nouveau/dispnv04/dac.c int j = 0; j 119 drivers/gpu/drm/nouveau/dispnv04/dac.c } while ((sense_a != sense_b) && ++j < MAX_HBLANK_OSC); j 121 drivers/gpu/drm/nouveau/dispnv04/dac.c if (j == MAX_HBLANK_OSC) j 322 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c int i, j, k; j 334 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c for (j = 0; j < 4; j++) { j 335 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c struct filter_params *p = &fparams[k][j]; j 347 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c (*filters[k])[j][i] = (c + id5/2) >> 39 j 359 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c int i, j; j 363 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c for (j = 0; j < 7; j++) j 364 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c regs[i][j] = nv_read_ptv(dev, offsets[i]+4*j); j 371 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c int i, j; j 375 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c for (j = 0; j < 7; j++) j 376 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c nv_write_ptv(dev, offsets[i]+4*j, regs[i][j]); j 108 drivers/gpu/drm/nouveau/dispnv50/base907c.c int i, j; j 110 drivers/gpu/drm/nouveau/dispnv50/base907c.c for (j = 0; j < 3; j++) { j 112 drivers/gpu/drm/nouveau/dispnv50/base907c.c u32 *val = &asyw->csc.matrix[j * 4 + i]; j 118 drivers/gpu/drm/nouveau/dispnv50/base907c.c *val = csc_drm_to_base(ctm->matrix[j * 3 + i]); j 83 drivers/gpu/drm/nouveau/include/nvif/object.h int cnt, i, j; \ j 88 drivers/gpu/drm/nouveau/include/nvif/object.h for (j = 0; j < cnt; j++) { \ j 89 drivers/gpu/drm/nouveau/include/nvif/object.h if (mclass[i].oclass == sclass[j].oclass && \ j 90 drivers/gpu/drm/nouveau/include/nvif/object.h mclass[i].version >= sclass[j].minver && \ j 91 drivers/gpu/drm/nouveau/include/nvif/object.h mclass[i].version <= sclass[j].maxver) { \ j 1234 drivers/gpu/drm/nouveau/nouveau_bios.c int i, j; j 1237 drivers/gpu/drm/nouveau/nouveau_bios.c for (j = 0; j < len; j++) j 1238 drivers/gpu/drm/nouveau/nouveau_bios.c if (data[i + j] != str[j]) j 1240 drivers/gpu/drm/nouveau/nouveau_bios.c if (j == len) j 1609 drivers/gpu/drm/nouveau/nouveau_bios.c int j; j 1611 drivers/gpu/drm/nouveau/nouveau_bios.c for (j = i + 1; j < dcb->entries; j++) { j 1612 drivers/gpu/drm/nouveau/nouveau_bios.c struct dcb_output *jent = &dcb->entry[j]; j 1623 drivers/gpu/drm/nouveau/nouveau_bios.c i, j); j 536 drivers/gpu/drm/nouveau/nouveau_dmem.c unsigned long j; j 549 drivers/gpu/drm/nouveau/nouveau_dmem.c for (j = 0; j < DMEM_CHUNK_NPAGES; ++j, ++page) j 700 drivers/gpu/drm/nouveau/nouveau_gem.c int i, j, ret = 0, do_reloc = 0; j 838 drivers/gpu/drm/nouveau/nouveau_gem.c for (j = 0; j < NOUVEAU_DMA_SKIPS; j++) j 220 drivers/gpu/drm/nouveau/nouveau_reg.h #define NV10_PGRAPH_CTX_CACHE(i, j) (0x00400160 \ j 221 drivers/gpu/drm/nouveau/nouveau_reg.h + 0x4*(i) + 0x20*(j)) j 77 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c int i = 0, j = -1; j 97 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c if (domain->mname && ++j == args->v0.index) j 132 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c args->v0.index = ++j; j 73 drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c int i, j; j 82 drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c for (j = 0; j < mthd->data[i].nr; j++, base += list->addr) { j 95 drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c mthd->data[i].name, j); j 101 drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c list, j); j 315 drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c int i, j; j 348 drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c for (j = 0; j < 6 * 4; j += 4) { j 349 drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c tmp = nvkm_rd32(device, 0x616100 + (id * 0x800) + j); j 350 drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c nvkm_wr32(device, 0x640030 + (id * 0x20) + j, tmp); j 357 drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c for (j = 0; j < 6 * 4; j += 4) { j 358 drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c tmp = nvkm_rd32(device, 0x630050 + (i * 0x800) + j); j 359 drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c nvkm_wr32(device, 0x6401e4 + (i * 0x20) + j, tmp); j 36 drivers/gpu/drm/nouveau/nvkm/engine/disp/tu102.c int i, j; j 69 drivers/gpu/drm/nouveau/nvkm/engine/disp/tu102.c for (j = 0; j < 5 * 4; j += 4) { j 70 drivers/gpu/drm/nouveau/nvkm/engine/disp/tu102.c tmp = nvkm_rd32(device, 0x616140 + (id * 0x800) + j); j 71 drivers/gpu/drm/nouveau/nvkm/engine/disp/tu102.c nvkm_wr32(device, 0x640680 + (id * 0x20) + j, tmp); j 78 drivers/gpu/drm/nouveau/nvkm/engine/disp/tu102.c for (j = 0; j < 6 * 4; j += 4) { j 79 drivers/gpu/drm/nouveau/nvkm/engine/disp/tu102.c tmp = nvkm_rd32(device, 0x630100 + (i * 0x800) + j); j 80 drivers/gpu/drm/nouveau/nvkm/engine/disp/tu102.c nvkm_mask(device, 0x640780 + (i * 0x20) + j, 0xffffffff, tmp); j 909 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c int engn, runl, pbid, ret, i, j; j 927 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c for (j = 0, pbid = -1; j < fifo->pbdma_nr; j++) { j 928 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c if (map[j] & (1 << runl)) { j 929 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c pbid = j; j 948 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c for (j = 0; j < ARRAY_SIZE(fifo->runlist[i].mem); j++) { j 953 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c &fifo->runlist[i].mem[j]); j 1100 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c int i, j, sm = 0; j 1104 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c for (data = 0, j = 0; j < 4; j++) { j 1106 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c data |= gr->sm[sm++].gpc << (j * 8); j 1108 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c data |= 0x1f << (j * 8); j 1329 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c int gpc, sm, i, j; j 1339 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c for (data = 0, j = 0; j < 8 && gpc < gr->gpc_nr; j++, gpc++) j 1340 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c data |= gr->tpc_nr[gpc] << (j * 4); j 933 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk104.c int i, j, gpc, ppc; j 969 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk104.c for (j = 0; j < gr->gpc_nr; j += 4, amask >>= 32, bmask >>= 32) { j 970 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk104.c nvkm_wr32(device, 0x406800 + (i * 0x20) + j, amask); j 971 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk104.c nvkm_wr32(device, 0x406c00 + (i * 0x20) + j, bmask); j 118 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c int i, j; j 124 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c for (data = 0, j = 0; j < 6; j++) j 125 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c data |= (gr->tile[i * 6 + j] & 0x1f) << (j * 5); j 134 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c for (i = 0, j = 1; i < 5; i++, j += 4) { j 135 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c u8 v19 = (1 << (j + 0)) % gr->tpc_total; j 136 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c u8 v20 = (1 << (j + 1)) % gr->tpc_total; j 137 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c u8 v21 = (1 << (j + 2)) % gr->tpc_total; j 138 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c u8 v22 = (1 << (j + 3)) % gr->tpc_total; j 300 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c int i, j; j 597 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c for (j = 0; j < (device->chipset < 0xa0 ? 2 : 4); j++) { j 598 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c if (!(units & (1 << (j+24)))) continue; j 600 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c offset = base + 0x200 + (j<<7); j 602 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c offset = base + 0x100 + (j<<7); j 1867 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c int init_frac[GPC_MAX], init_err[GPC_MAX], run_err[GPC_MAX], i, j; j 1926 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c for (j = 0; j < gr->gpc_nr; j++) { j 1927 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c if ((run_err[j] * 2) >= comm_denom) { j 1928 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c gr->tile[i++] = gpc_map[j]; j 1929 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c run_err[j] += init_frac[j] - comm_denom; j 1931 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c run_err[j] += init_frac[j]; j 1943 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c int i, j; j 1965 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c for (j = 0; j < gr->ppc_nr[i]; j++) { j 1966 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c gr->ppc_tpc_mask[i][j] = j 1967 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c nvkm_rd32(device, GPC_UNIT(i, 0x0c30 + (j * 4))); j 1968 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c if (gr->ppc_tpc_mask[i][j] == 0) j 1970 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c gr->ppc_mask[i] |= (1 << j); j 1971 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c gr->ppc_tpc_nr[i][j] = hweight8(gr->ppc_tpc_mask[i][j]); j 1973 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c gr->ppc_tpc_min > gr->ppc_tpc_nr[i][j]) j 1974 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c gr->ppc_tpc_min = gr->ppc_tpc_nr[i][j]; j 1975 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c if (gr->ppc_tpc_max < gr->ppc_tpc_nr[i][j]) j 1976 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c gr->ppc_tpc_max = gr->ppc_tpc_nr[i][j]; j 2284 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c u8 bank[GPC_MAX] = {}, gpc, i, j; j 2288 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c for (data = 0, j = 0; j < 8 && i + j < gr->tpc_total; j++) { j 2289 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c data |= bank[gr->tile[i + j]] << (j * 4); j 2290 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c bank[gr->tile[i + j]]++; j 129 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf117.c u8 bank[GPC_MAX] = {}, gpc, i, j; j 133 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf117.c for (data = 0, j = 0; j < 8 && i + j < gr->tpc_total; j++) { j 134 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf117.c data |= bank[gr->tile[i + j]] << (j * 4); j 135 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf117.c bank[gr->tile[i + j]]++; j 291 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c int ret, i, j; j 315 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c j = nvkm_rd32(device, 0x1540) & 0xff; j 316 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c if (j) { j 317 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c for (i = 0; !(j & 1); j >>= 1, i++) j 51 drivers/gpu/drm/nouveau/nvkm/engine/gr/regs.h #define NV10_PGRAPH_CTX_CACHE(i, j) (0x00400160 \ j 52 drivers/gpu/drm/nouveau/nvkm/engine/gr/regs.h + 0x4*(i) + 0x20*(j)) j 137 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c int i, j; j 140 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c for (j = 0; j < 8 && ctr->source[i][j]; j++) { j 146 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c src = nvkm_perfsrc_find(pm, sig, ctr->source[i][j]); j 155 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c value |= ((ctr->source[i][j] >> 32) << src->shift); j 176 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c int i, j; j 179 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c for (j = 0; j < 8 && ctr->source[i][j]; j++) { j 185 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c src = nvkm_perfsrc_find(pm, sig, ctr->source[i][j]); j 335 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c int i, j; j 350 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c for (j = 0; j < 8; j++) j 351 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c ctr->source[i][j] = source[i][j]; j 85 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c int i, j; j 88 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c for (j = 0; j < len; j++) j 89 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c if ((char)data[i + j] != str[j]) j 91 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c if (j == len) j 1988 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 i, j; j 1996 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c for (j = 0; j < count; j++) { j 1999 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c if (j == index) { j 428 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gf100.c int i, j; j 431 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gf100.c for (j = 0; j < ARRAY_SIZE(clk->eng); j++) { j 432 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gf100.c if (!clk->eng[j].freq) j 434 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gf100.c stage[i].exec(clk, j); j 463 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk104.c int i, j; j 466 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk104.c for (j = 0; j < ARRAY_SIZE(clk->eng); j++) { j 467 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk104.c if (!(stage[i].mask & (1 << j))) j 469 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk104.c if (!clk->eng[j].freq) j 471 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk104.c stage[i].exec(clk, j); j 41 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c int i, j, k; j 61 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c for (j = 0; j < 4; j++) { j 66 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c calc_bias(struct nvkm_fb *fb, int k, int i, int j) j 70 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c nvkm_rd32(device, 0x122c + 0x10 * k + 0x4 * j) >> j 80 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c int j, x = 0; j 82 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c for (j = 0; j < 4; j++) { j 83 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c int m = (l >> (8 * i) & 0xff) + calc_bias(fb, k, i, j); j 85 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c x |= (0x80 | clamp(m, 0, 0x1f)) << (8 * j); j 95 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c int i, j; j 106 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c for (j = 0; j < 3; j++) j 107 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c nvkm_wr32(device, 0x10037c + 0xc * i + 0x4 * j, j 108 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c calc_ref(fb, l, 0, j)); j 110 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c for (j = 0; j < 2; j++) j 111 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c nvkm_wr32(device, 0x1003ac + 0x8 * i + 0x4 * j, j 112 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c calc_ref(fb, l, 1, j)); j 1336 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c int i, j; j 1344 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c for (j = 0; j < 8; j += 4) { j 1345 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c nvkm_wr32(device, 0x10f968 + j, 0x00000000 | (i << 8)); j 1346 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c nvkm_wr32(device, 0x10f920 + j, 0x00000000 | j 1349 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c nvkm_wr32(device, 0x10f918 + j, train->type00.data[i]); j 1350 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c nvkm_wr32(device, 0x10f920 + j, 0x00000100 | j 1353 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c nvkm_wr32(device, 0x10f918 + j, train->type01.data[i]); j 1357 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c for (j = 0; j < 8; j += 4) { j 1359 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c nvkm_wr32(device, 0x10f968 + j, i); j 1360 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c nvkm_wr32(device, 0x10f900 + j, train->type04.data[i]); j 50 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c int i, j, cnt = num; j 68 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c j = 0; j 71 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c if (j++ == 32) j 155 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/mxms.c int i, j; j 157 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/mxms.c for (j = headerlen - 1, ptr = data; j >= 0; j--) j 158 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/mxms.c ptr += sprintf(ptr, "%02x", dump[j]); j 163 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/mxms.c for (j = recordlen - 1, ptr = data; j >= 0; j--) j 164 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/mxms.c ptr += sprintf(ptr, "%02x", dump[j]); j 433 drivers/gpu/drm/omapdrm/dss/dispc.c int i, j; j 496 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 8; j++) j 497 drivers/gpu/drm/omapdrm/dss/dispc.c SR(dispc, OVL_FIR_COEF_H(i, j)); j 499 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 8; j++) j 500 drivers/gpu/drm/omapdrm/dss/dispc.c SR(dispc, OVL_FIR_COEF_HV(i, j)); j 502 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 5; j++) j 503 drivers/gpu/drm/omapdrm/dss/dispc.c SR(dispc, OVL_CONV_COEF(i, j)); j 506 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 8; j++) j 507 drivers/gpu/drm/omapdrm/dss/dispc.c SR(dispc, OVL_FIR_COEF_V(i, j)); j 517 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 8; j++) j 518 drivers/gpu/drm/omapdrm/dss/dispc.c SR(dispc, OVL_FIR_COEF_H2(i, j)); j 520 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 8; j++) j 521 drivers/gpu/drm/omapdrm/dss/dispc.c SR(dispc, OVL_FIR_COEF_HV2(i, j)); j 523 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 8; j++) j 524 drivers/gpu/drm/omapdrm/dss/dispc.c SR(dispc, OVL_FIR_COEF_V2(i, j)); j 540 drivers/gpu/drm/omapdrm/dss/dispc.c int i, j; j 602 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 8; j++) j 603 drivers/gpu/drm/omapdrm/dss/dispc.c RR(dispc, OVL_FIR_COEF_H(i, j)); j 605 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 8; j++) j 606 drivers/gpu/drm/omapdrm/dss/dispc.c RR(dispc, OVL_FIR_COEF_HV(i, j)); j 608 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 5; j++) j 609 drivers/gpu/drm/omapdrm/dss/dispc.c RR(dispc, OVL_CONV_COEF(i, j)); j 612 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 8; j++) j 613 drivers/gpu/drm/omapdrm/dss/dispc.c RR(dispc, OVL_FIR_COEF_V(i, j)); j 623 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 8; j++) j 624 drivers/gpu/drm/omapdrm/dss/dispc.c RR(dispc, OVL_FIR_COEF_H2(i, j)); j 626 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 8; j++) j 627 drivers/gpu/drm/omapdrm/dss/dispc.c RR(dispc, OVL_FIR_COEF_HV2(i, j)); j 629 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 8; j++) j 630 drivers/gpu/drm/omapdrm/dss/dispc.c RR(dispc, OVL_FIR_COEF_V2(i, j)); j 3454 drivers/gpu/drm/omapdrm/dss/dispc.c int i, j; j 3616 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 8; j++) j 3617 drivers/gpu/drm/omapdrm/dss/dispc.c DUMPREG(dispc, i, DISPC_OVL_FIR_COEF_H, j); j 3619 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 8; j++) j 3620 drivers/gpu/drm/omapdrm/dss/dispc.c DUMPREG(dispc, i, DISPC_OVL_FIR_COEF_HV, j); j 3622 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 5; j++) j 3623 drivers/gpu/drm/omapdrm/dss/dispc.c DUMPREG(dispc, i, DISPC_OVL_CONV_COEF, j); j 3626 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 8; j++) j 3627 drivers/gpu/drm/omapdrm/dss/dispc.c DUMPREG(dispc, i, DISPC_OVL_FIR_COEF_V, j); j 3631 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 8; j++) j 3632 drivers/gpu/drm/omapdrm/dss/dispc.c DUMPREG(dispc, i, DISPC_OVL_FIR_COEF_H2, j); j 3634 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 8; j++) j 3635 drivers/gpu/drm/omapdrm/dss/dispc.c DUMPREG(dispc, i, DISPC_OVL_FIR_COEF_HV2, j); j 3637 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j < 8; j++) j 3638 drivers/gpu/drm/omapdrm/dss/dispc.c DUMPREG(dispc, i, DISPC_OVL_FIR_COEF_V2, j); j 3868 drivers/gpu/drm/omapdrm/dss/dispc.c uint j; j 3873 drivers/gpu/drm/omapdrm/dss/dispc.c for (j = 0; j <= w; j++) { j 3874 drivers/gpu/drm/omapdrm/dss/dispc.c r = (lut[i].red * (w - j) + lut[i+1].red * j) / w; j 3875 drivers/gpu/drm/omapdrm/dss/dispc.c g = (lut[i].green * (w - j) + lut[i+1].green * j) / w; j 3876 drivers/gpu/drm/omapdrm/dss/dispc.c b = (lut[i].blue * (w - j) + lut[i+1].blue * j) / w; j 3882 drivers/gpu/drm/omapdrm/dss/dispc.c table[first + j] = (r << (gdesc->bits * 2)) | j 1323 drivers/gpu/drm/omapdrm/omap_gem.c int i, j; j 1348 drivers/gpu/drm/omapdrm/omap_gem.c for (j = 0; j < NUM_USERGART_ENTRIES; j++) { j 1352 drivers/gpu/drm/omapdrm/omap_gem.c entry = &usergart[i].entry[j]; j 1357 drivers/gpu/drm/omapdrm/omap_gem.c i, j, PTR_ERR(block)); j 1363 drivers/gpu/drm/omapdrm/omap_gem.c DBG("%d:%d: %dx%d: dma_addr=%pad stride=%d", i, j, w, h, j 366 drivers/gpu/drm/panfrost/panfrost_job.c int j; j 369 drivers/gpu/drm/panfrost/panfrost_job.c for (j = 0; j < NUM_JOB_SLOTS; j++) { j 370 drivers/gpu/drm/panfrost/panfrost_job.c irq_mask |= MK_JS_MASK(j); j 449 drivers/gpu/drm/panfrost/panfrost_job.c int j; j 458 drivers/gpu/drm/panfrost/panfrost_job.c for (j = 0; status; j++) { j 459 drivers/gpu/drm/panfrost/panfrost_job.c u32 mask = MK_JS_MASK(j); j 466 drivers/gpu/drm/panfrost/panfrost_job.c if (status & JOB_INT_MASK_ERR(j)) { j 467 drivers/gpu/drm/panfrost/panfrost_job.c job_write(pfdev, JS_COMMAND_NEXT(j), JS_COMMAND_NOP); j 470 drivers/gpu/drm/panfrost/panfrost_job.c j, j 471 drivers/gpu/drm/panfrost/panfrost_job.c panfrost_exception_name(pfdev, job_read(pfdev, JS_STATUS(j))), j 472 drivers/gpu/drm/panfrost/panfrost_job.c job_read(pfdev, JS_HEAD_LO(j)), j 473 drivers/gpu/drm/panfrost/panfrost_job.c job_read(pfdev, JS_TAIL_LO(j))); j 475 drivers/gpu/drm/panfrost/panfrost_job.c drm_sched_fault(&pfdev->js->queue[j].sched); j 478 drivers/gpu/drm/panfrost/panfrost_job.c if (status & JOB_INT_MASK_DONE(j)) { j 482 drivers/gpu/drm/panfrost/panfrost_job.c job = pfdev->jobs[j]; j 485 drivers/gpu/drm/panfrost/panfrost_job.c pfdev->jobs[j] = NULL; j 488 drivers/gpu/drm/panfrost/panfrost_job.c panfrost_devfreq_record_transition(pfdev, j); j 505 drivers/gpu/drm/panfrost/panfrost_job.c int ret, j, irq; j 524 drivers/gpu/drm/panfrost/panfrost_job.c for (j = 0; j < NUM_JOB_SLOTS; j++) { j 525 drivers/gpu/drm/panfrost/panfrost_job.c js->queue[j].fence_context = dma_fence_context_alloc(1); j 527 drivers/gpu/drm/panfrost/panfrost_job.c ret = drm_sched_init(&js->queue[j].sched, j 542 drivers/gpu/drm/panfrost/panfrost_job.c for (j--; j >= 0; j--) j 543 drivers/gpu/drm/panfrost/panfrost_job.c drm_sched_fini(&js->queue[j].sched); j 551 drivers/gpu/drm/panfrost/panfrost_job.c int j; j 555 drivers/gpu/drm/panfrost/panfrost_job.c for (j = 0; j < NUM_JOB_SLOTS; j++) j 556 drivers/gpu/drm/panfrost/panfrost_job.c drm_sched_fini(&js->queue[j].sched); j 217 drivers/gpu/drm/panfrost/panfrost_regs.h #define MK_JS_MASK(j) (0x10001 << (j)) j 218 drivers/gpu/drm/panfrost/panfrost_regs.h #define JOB_INT_MASK_ERR(j) BIT((j) + 16) j 219 drivers/gpu/drm/panfrost/panfrost_regs.h #define JOB_INT_MASK_DONE(j) BIT(j) j 1904 drivers/gpu/drm/radeon/btc_dpm.c u8 i, j; j 1907 drivers/gpu/drm/radeon/btc_dpm.c for (j = 1; j < table->num_entries; j++) { j 1908 drivers/gpu/drm/radeon/btc_dpm.c if (table->mc_reg_table_entry[j-1].mc_data[i] != j 1909 drivers/gpu/drm/radeon/btc_dpm.c table->mc_reg_table_entry[j].mc_data[i]) { j 1921 drivers/gpu/drm/radeon/btc_dpm.c u8 i, j, k; j 1924 drivers/gpu/drm/radeon/btc_dpm.c for (i = 0, j = table->last; i < table->last; i++) { j 1928 drivers/gpu/drm/radeon/btc_dpm.c table->mc_reg_address[j].s1 = MC_PMG_CMD_EMRS >> 2; j 1929 drivers/gpu/drm/radeon/btc_dpm.c table->mc_reg_address[j].s0 = MC_SEQ_PMG_CMD_EMRS_LP >> 2; j 1931 drivers/gpu/drm/radeon/btc_dpm.c table->mc_reg_table_entry[k].mc_data[j] = j 1935 drivers/gpu/drm/radeon/btc_dpm.c j++; j 1937 drivers/gpu/drm/radeon/btc_dpm.c if (j >= SMC_EVERGREEN_MC_REGISTER_ARRAY_SIZE) j 1941 drivers/gpu/drm/radeon/btc_dpm.c table->mc_reg_address[j].s1 = MC_PMG_CMD_MRS >> 2; j 1942 drivers/gpu/drm/radeon/btc_dpm.c table->mc_reg_address[j].s0 = MC_SEQ_PMG_CMD_MRS_LP >> 2; j 1944 drivers/gpu/drm/radeon/btc_dpm.c table->mc_reg_table_entry[k].mc_data[j] = j 1948 drivers/gpu/drm/radeon/btc_dpm.c table->mc_reg_table_entry[k].mc_data[j] |= 0x100; j 1950 drivers/gpu/drm/radeon/btc_dpm.c j++; j 1952 drivers/gpu/drm/radeon/btc_dpm.c if (j >= SMC_EVERGREEN_MC_REGISTER_ARRAY_SIZE) j 1957 drivers/gpu/drm/radeon/btc_dpm.c table->mc_reg_address[j].s1 = MC_PMG_CMD_MRS1 >> 2; j 1958 drivers/gpu/drm/radeon/btc_dpm.c table->mc_reg_address[j].s0 = MC_SEQ_PMG_CMD_MRS1_LP >> 2; j 1960 drivers/gpu/drm/radeon/btc_dpm.c table->mc_reg_table_entry[k].mc_data[j] = j 1964 drivers/gpu/drm/radeon/btc_dpm.c j++; j 1966 drivers/gpu/drm/radeon/btc_dpm.c if (j >= SMC_EVERGREEN_MC_REGISTER_ARRAY_SIZE) j 1974 drivers/gpu/drm/radeon/btc_dpm.c table->last = j; j 1994 drivers/gpu/drm/radeon/btc_dpm.c u8 i, j; j 2009 drivers/gpu/drm/radeon/btc_dpm.c for(j = 0; j < table->last; j++) j 2010 drivers/gpu/drm/radeon/btc_dpm.c eg_table->mc_reg_table_entry[i].mc_data[j] = j 2011 drivers/gpu/drm/radeon/btc_dpm.c table->mc_reg_table_entry[i].mc_data[j]; j 439 drivers/gpu/drm/radeon/ci_dpm.c int i, j, k; j 466 drivers/gpu/drm/radeon/ci_dpm.c for (j = 0; j < SMU7_DTE_SOURCES; j++) { j 468 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->BAPMTI_R[i][j][k] = cpu_to_be16(*def1); j 469 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->BAPMTI_RC[i][j][k] = cpu_to_be16(*def2); j 2550 drivers/gpu/drm/radeon/ci_dpm.c u32 i, j; j 2556 drivers/gpu/drm/radeon/ci_dpm.c for (j = 0; j < pi->dpm_table.mclk_table.count; j++) { j 2559 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mclk_table.dpm_levels[j].value, j 2560 drivers/gpu/drm/radeon/ci_dpm.c &arb_regs.entries[i][j]); j 3724 drivers/gpu/drm/radeon/ci_dpm.c u32 i, j; j 3738 drivers/gpu/drm/radeon/ci_dpm.c for (j = i + 1; j < pcie_table->count; j++) { j 3739 drivers/gpu/drm/radeon/ci_dpm.c if (pcie_table->dpm_levels[j].enabled) { j 3740 drivers/gpu/drm/radeon/ci_dpm.c if ((pcie_table->dpm_levels[i].value == pcie_table->dpm_levels[j].value) && j 3741 drivers/gpu/drm/radeon/ci_dpm.c (pcie_table->dpm_levels[i].param1 == pcie_table->dpm_levels[j].param1)) j 3742 drivers/gpu/drm/radeon/ci_dpm.c pcie_table->dpm_levels[j].enabled = false; j 4340 drivers/gpu/drm/radeon/ci_dpm.c u8 i, j, k; j 4343 drivers/gpu/drm/radeon/ci_dpm.c for (i = 0, j = table->last; i < table->last; i++) { j 4344 drivers/gpu/drm/radeon/ci_dpm.c if (j >= SMU7_DISCRETE_MC_REGISTER_ARRAY_SIZE) j 4349 drivers/gpu/drm/radeon/ci_dpm.c table->mc_reg_address[j].s1 = MC_PMG_CMD_EMRS >> 2; j 4350 drivers/gpu/drm/radeon/ci_dpm.c table->mc_reg_address[j].s0 = MC_SEQ_PMG_CMD_EMRS_LP >> 2; j 4352 drivers/gpu/drm/radeon/ci_dpm.c table->mc_reg_table_entry[k].mc_data[j] = j 4355 drivers/gpu/drm/radeon/ci_dpm.c j++; j 4356 drivers/gpu/drm/radeon/ci_dpm.c if (j >= SMU7_DISCRETE_MC_REGISTER_ARRAY_SIZE) j 4360 drivers/gpu/drm/radeon/ci_dpm.c table->mc_reg_address[j].s1 = MC_PMG_CMD_MRS >> 2; j 4361 drivers/gpu/drm/radeon/ci_dpm.c table->mc_reg_address[j].s0 = MC_SEQ_PMG_CMD_MRS_LP >> 2; j 4363 drivers/gpu/drm/radeon/ci_dpm.c table->mc_reg_table_entry[k].mc_data[j] = j 4366 drivers/gpu/drm/radeon/ci_dpm.c table->mc_reg_table_entry[k].mc_data[j] |= 0x100; j 4368 drivers/gpu/drm/radeon/ci_dpm.c j++; j 4369 drivers/gpu/drm/radeon/ci_dpm.c if (j > SMU7_DISCRETE_MC_REGISTER_ARRAY_SIZE) j 4373 drivers/gpu/drm/radeon/ci_dpm.c table->mc_reg_address[j].s1 = MC_PMG_AUTO_CMD >> 2; j 4374 drivers/gpu/drm/radeon/ci_dpm.c table->mc_reg_address[j].s0 = MC_PMG_AUTO_CMD >> 2; j 4376 drivers/gpu/drm/radeon/ci_dpm.c table->mc_reg_table_entry[k].mc_data[j] = j 4379 drivers/gpu/drm/radeon/ci_dpm.c j++; j 4380 drivers/gpu/drm/radeon/ci_dpm.c if (j > SMU7_DISCRETE_MC_REGISTER_ARRAY_SIZE) j 4386 drivers/gpu/drm/radeon/ci_dpm.c table->mc_reg_address[j].s1 = MC_PMG_CMD_MRS1 >> 2; j 4387 drivers/gpu/drm/radeon/ci_dpm.c table->mc_reg_address[j].s0 = MC_SEQ_PMG_CMD_MRS1_LP >> 2; j 4389 drivers/gpu/drm/radeon/ci_dpm.c table->mc_reg_table_entry[k].mc_data[j] = j 4392 drivers/gpu/drm/radeon/ci_dpm.c j++; j 4393 drivers/gpu/drm/radeon/ci_dpm.c if (j > SMU7_DISCRETE_MC_REGISTER_ARRAY_SIZE) j 4402 drivers/gpu/drm/radeon/ci_dpm.c table->last = j; j 4482 drivers/gpu/drm/radeon/ci_dpm.c u8 i, j; j 4485 drivers/gpu/drm/radeon/ci_dpm.c for (j = 1; j < table->num_entries; j++) { j 4486 drivers/gpu/drm/radeon/ci_dpm.c if (table->mc_reg_table_entry[j-1].mc_data[i] != j 4487 drivers/gpu/drm/radeon/ci_dpm.c table->mc_reg_table_entry[j].mc_data[i]) { j 4510 drivers/gpu/drm/radeon/ci_dpm.c u8 i, j; j 4525 drivers/gpu/drm/radeon/ci_dpm.c for (j = 0; j < table->last; j++) j 4526 drivers/gpu/drm/radeon/ci_dpm.c ci_table->mc_reg_table_entry[i].mc_data[j] = j 4527 drivers/gpu/drm/radeon/ci_dpm.c table->mc_reg_table_entry[i].mc_data[j]; j 4687 drivers/gpu/drm/radeon/ci_dpm.c u32 i, j; j 4689 drivers/gpu/drm/radeon/ci_dpm.c for (i = 0, j = 0; j < pi->mc_reg_table.last; j++) { j 4690 drivers/gpu/drm/radeon/ci_dpm.c if (pi->mc_reg_table.valid_flag & (1 << j)) { j 4693 drivers/gpu/drm/radeon/ci_dpm.c mc_reg_table->address[i].s0 = cpu_to_be16(pi->mc_reg_table.mc_reg_address[j].s0); j 4694 drivers/gpu/drm/radeon/ci_dpm.c mc_reg_table->address[i].s1 = cpu_to_be16(pi->mc_reg_table.mc_reg_address[j].s1); j 4708 drivers/gpu/drm/radeon/ci_dpm.c u32 i, j; j 4710 drivers/gpu/drm/radeon/ci_dpm.c for (i = 0, j = 0; j < num_entries; j++) { j 4711 drivers/gpu/drm/radeon/ci_dpm.c if (valid_flag & (1 << j)) { j 4712 drivers/gpu/drm/radeon/ci_dpm.c data->value[i] = cpu_to_be32(entry->mc_data[j]); j 5548 drivers/gpu/drm/radeon/ci_dpm.c int i, j, k, non_clock_array_index, clock_array_index; j 5600 drivers/gpu/drm/radeon/ci_dpm.c for (j = 0; j < power_state->v2.ucNumDPMLevels; j++) { j 5601 drivers/gpu/drm/radeon/ci_dpm.c clock_array_index = idx[j]; j 3119 drivers/gpu/drm/radeon/cik.c int i, j; j 3125 drivers/gpu/drm/radeon/cik.c for (j = 0; j < sh_per_se; j++) { j 3126 drivers/gpu/drm/radeon/cik.c cik_select_se_sh(rdev, i, j); j 3129 drivers/gpu/drm/radeon/cik.c disabled_rbs |= data << ((i * sh_per_se + j) * HAWAII_RB_BITMAP_WIDTH_PER_SH); j 3131 drivers/gpu/drm/radeon/cik.c disabled_rbs |= data << ((i * sh_per_se + j) * CIK_RB_BITMAP_WIDTH_PER_SH); j 3148 drivers/gpu/drm/radeon/cik.c for (j = 0; j < sh_per_se; j++) { j 3151 drivers/gpu/drm/radeon/cik.c if (j == 0) j 3157 drivers/gpu/drm/radeon/cik.c data |= (RASTER_CONFIG_RB_MAP_0 << (i * sh_per_se + j) * 2); j 3160 drivers/gpu/drm/radeon/cik.c data |= (RASTER_CONFIG_RB_MAP_3 << (i * sh_per_se + j) * 2); j 3164 drivers/gpu/drm/radeon/cik.c data |= (RASTER_CONFIG_RB_MAP_2 << (i * sh_per_se + j) * 2); j 3188 drivers/gpu/drm/radeon/cik.c int i, j; j 3264 drivers/gpu/drm/radeon/cik.c for (i = 0, j = 0; i < 32; i++, j += 0x18) { j 3265 drivers/gpu/drm/radeon/cik.c WREG32((0x2c14 + j), 0x00000000); j 3266 drivers/gpu/drm/radeon/cik.c WREG32((0x2c18 + j), 0x00000000); j 3267 drivers/gpu/drm/radeon/cik.c WREG32((0x2c1c + j), 0x00000000); j 3268 drivers/gpu/drm/radeon/cik.c WREG32((0x2c20 + j), 0x00000000); j 3269 drivers/gpu/drm/radeon/cik.c WREG32((0x2c24 + j), 0x00000000); j 3355 drivers/gpu/drm/radeon/cik.c for (j = 0; j < rdev->config.cik.max_sh_per_se; j++) { j 3357 drivers/gpu/drm/radeon/cik.c hweight32(cik_get_cu_active_bitmap(rdev, i, j)); j 4201 drivers/gpu/drm/radeon/cik.c u32 j, tmp; j 4211 drivers/gpu/drm/radeon/cik.c for (j = 0; j < rdev->usec_timeout; j++) { j 4524 drivers/gpu/drm/radeon/cik.c int r, i, j, idx; j 4644 drivers/gpu/drm/radeon/cik.c for (j = 0; j < rdev->usec_timeout; j++) { j 5289 drivers/gpu/drm/radeon/cik.c int i, j; j 5292 drivers/gpu/drm/radeon/cik.c for (i = 0, j = 0; i < 32; i++, j += 0x18) { j 5293 drivers/gpu/drm/radeon/cik.c WREG32((0x2c14 + j), 0x00000000); j 5294 drivers/gpu/drm/radeon/cik.c WREG32((0x2c18 + j), 0x00000000); j 5295 drivers/gpu/drm/radeon/cik.c WREG32((0x2c1c + j), 0x00000000); j 5296 drivers/gpu/drm/radeon/cik.c WREG32((0x2c20 + j), 0x00000000); j 5297 drivers/gpu/drm/radeon/cik.c WREG32((0x2c24 + j), 0x00000000); j 5798 drivers/gpu/drm/radeon/cik.c u32 i, j, k; j 5802 drivers/gpu/drm/radeon/cik.c for (j = 0; j < rdev->config.cik.max_sh_per_se; j++) { j 5803 drivers/gpu/drm/radeon/cik.c cik_select_se_sh(rdev, i, j); j 6564 drivers/gpu/drm/radeon/cik.c u32 i, j, k, active_cu_number = 0; j 6569 drivers/gpu/drm/radeon/cik.c for (j = 0; j < rdev->config.cik.max_sh_per_se; j++) { j 6574 drivers/gpu/drm/radeon/cik.c if (cik_get_cu_active_bitmap(rdev, i, j) & mask) { j 6583 drivers/gpu/drm/radeon/cik.c tmp |= (cu_bitmap << (i * 16 + j * 8)); j 818 drivers/gpu/drm/radeon/cypress_dpm.c u32 i, j; j 820 drivers/gpu/drm/radeon/cypress_dpm.c for (i = 0, j = 0; j < num_entries; j++) { j 821 drivers/gpu/drm/radeon/cypress_dpm.c if (valid_flag & (1 << j)) { j 822 drivers/gpu/drm/radeon/cypress_dpm.c data->value[i] = cpu_to_be32(entry->mc_data[j]); j 952 drivers/gpu/drm/radeon/cypress_dpm.c u32 i, j; j 954 drivers/gpu/drm/radeon/cypress_dpm.c for (i = 0, j = 0; j < eg_pi->mc_reg_table.last; j++) { j 955 drivers/gpu/drm/radeon/cypress_dpm.c if (eg_pi->mc_reg_table.valid_flag & (1 << j)) { j 957 drivers/gpu/drm/radeon/cypress_dpm.c cpu_to_be16(eg_pi->mc_reg_table.mc_reg_address[j].s0); j 959 drivers/gpu/drm/radeon/cypress_dpm.c cpu_to_be16(eg_pi->mc_reg_table.mc_reg_address[j].s1); j 1047 drivers/gpu/drm/radeon/cypress_dpm.c u32 i, j; j 1061 drivers/gpu/drm/radeon/cypress_dpm.c for (j = 1; j < range_table->num_entries; j++) { j 1062 drivers/gpu/drm/radeon/cypress_dpm.c if (eg_pi->mc_reg_table.mc_reg_table_entry[j-1].mc_data[i] != j 1063 drivers/gpu/drm/radeon/cypress_dpm.c eg_pi->mc_reg_table.mc_reg_table_entry[j].mc_data[i]) { j 1091 drivers/gpu/drm/radeon/cypress_dpm.c u32 i, j; j 1109 drivers/gpu/drm/radeon/cypress_dpm.c for (j = 0; j < rdev->usec_timeout; j++) { j 90 drivers/gpu/drm/radeon/dce3_1_afmt.c int j; j 92 drivers/gpu/drm/radeon/dce3_1_afmt.c for (j = 0; j < sad_count; j++) { j 93 drivers/gpu/drm/radeon/dce3_1_afmt.c struct cea_sad *sad = &sads[j]; j 231 drivers/gpu/drm/radeon/dce6_afmt.c int j; j 233 drivers/gpu/drm/radeon/dce6_afmt.c for (j = 0; j < sad_count; j++) { j 234 drivers/gpu/drm/radeon/dce6_afmt.c struct cea_sad *sad = &sads[j]; j 2667 drivers/gpu/drm/radeon/evergreen.c int i, j; j 2703 drivers/gpu/drm/radeon/evergreen.c for (j = 0; j < rdev->usec_timeout; j++) { j 2765 drivers/gpu/drm/radeon/evergreen.c int i, j; j 2802 drivers/gpu/drm/radeon/evergreen.c for (j = 0; j < rdev->usec_timeout; j++) { j 2835 drivers/gpu/drm/radeon/evergreen.c for (j = 0; j < rdev->usec_timeout; j++) { j 2854 drivers/gpu/drm/radeon/evergreen.c int i, j; j 2857 drivers/gpu/drm/radeon/evergreen.c for (i = 0, j = 0; i < 32; i++, j += 0x18) { j 2858 drivers/gpu/drm/radeon/evergreen.c WREG32((0x2c14 + j), 0x00000000); j 2859 drivers/gpu/drm/radeon/evergreen.c WREG32((0x2c18 + j), 0x00000000); j 2860 drivers/gpu/drm/radeon/evergreen.c WREG32((0x2c1c + j), 0x00000000); j 2861 drivers/gpu/drm/radeon/evergreen.c WREG32((0x2c20 + j), 0x00000000); j 2862 drivers/gpu/drm/radeon/evergreen.c WREG32((0x2c24 + j), 0x00000000); j 3152 drivers/gpu/drm/radeon/evergreen.c int i, j, ps_thread_count; j 3386 drivers/gpu/drm/radeon/evergreen.c for (i = 0, j = 0; i < 32; i++, j += 0x18) { j 3387 drivers/gpu/drm/radeon/evergreen.c WREG32((0x2c14 + j), 0x00000000); j 3388 drivers/gpu/drm/radeon/evergreen.c WREG32((0x2c18 + j), 0x00000000); j 3389 drivers/gpu/drm/radeon/evergreen.c WREG32((0x2c1c + j), 0x00000000); j 3390 drivers/gpu/drm/radeon/evergreen.c WREG32((0x2c20 + j), 0x00000000); j 3391 drivers/gpu/drm/radeon/evergreen.c WREG32((0x2c24 + j), 0x00000000); j 3801 drivers/gpu/drm/radeon/evergreen.c u32 i, j, tmp; j 3810 drivers/gpu/drm/radeon/evergreen.c for (j = 0; j < 10; j++) { j 4157 drivers/gpu/drm/radeon/evergreen.c u32 dws, data, i, j, k, reg_num; j 4220 drivers/gpu/drm/radeon/evergreen.c j = (((i - 1) * 3) / 2); j 4221 drivers/gpu/drm/radeon/evergreen.c dst_ptr[j] = cpu_to_le32(data); j 4223 drivers/gpu/drm/radeon/evergreen.c j = ((i * 3) / 2); j 4224 drivers/gpu/drm/radeon/evergreen.c dst_ptr[j] = cpu_to_le32(RLC_SAVE_RESTORE_LIST_END_MARKER); j 4241 drivers/gpu/drm/radeon/evergreen.c for (j = 0; cs_data[i].section[j].extent != NULL; j++) { j 4243 drivers/gpu/drm/radeon/evergreen.c dws += cs_data[i].section[j].reg_count; j 4298 drivers/gpu/drm/radeon/evergreen.c for (j = 0; cs_data[i].section[j].extent != NULL; j++) { j 4299 drivers/gpu/drm/radeon/evergreen.c reg_num = cs_data[i].section[j].reg_count; j 4304 drivers/gpu/drm/radeon/evergreen.c data = (cs_data[i].section[j].reg_index * 4) & 0xffffffff; j 4313 drivers/gpu/drm/radeon/evergreen.c data = cs_data[i].section[j].extent[k]; j 4614 drivers/gpu/drm/radeon/evergreen.c int i, j; j 4628 drivers/gpu/drm/radeon/evergreen.c for (j = i; j < (i + 2); j++) { j 4629 drivers/gpu/drm/radeon/evergreen.c if (grph_int[j] & GRPH_PFLIP_INT_OCCURRED) j 4630 drivers/gpu/drm/radeon/evergreen.c WREG32(GRPH_INT_STATUS + crtc_offsets[j], j 4634 drivers/gpu/drm/radeon/evergreen.c for (j = i; j < (i + 2); j++) { j 4635 drivers/gpu/drm/radeon/evergreen.c if (disp_int[j] & LB_D1_VBLANK_INTERRUPT) j 4636 drivers/gpu/drm/radeon/evergreen.c WREG32(VBLANK_STATUS + crtc_offsets[j], j 4638 drivers/gpu/drm/radeon/evergreen.c if (disp_int[j] & LB_D1_VLINE_INTERRUPT) j 4639 drivers/gpu/drm/radeon/evergreen.c WREG32(VLINE_STATUS + crtc_offsets[j], j 179 drivers/gpu/drm/radeon/evergreen_hdmi.c int j; j 181 drivers/gpu/drm/radeon/evergreen_hdmi.c for (j = 0; j < sad_count; j++) { j 182 drivers/gpu/drm/radeon/evergreen_hdmi.c struct cea_sad *sad = &sads[j]; j 2638 drivers/gpu/drm/radeon/kv_dpm.c int i, j, k, non_clock_array_index, clock_array_index; j 2687 drivers/gpu/drm/radeon/kv_dpm.c for (j = 0; j < power_state->v2.ucNumDPMLevels; j++) { j 2688 drivers/gpu/drm/radeon/kv_dpm.c clock_array_index = idx[j]; j 146 drivers/gpu/drm/radeon/mkregtable.c unsigned nlloop, i, j, n, c, id; j 157 drivers/gpu/drm/radeon/mkregtable.c for (j = 0; j < n; j++) { j 158 drivers/gpu/drm/radeon/mkregtable.c if (j == 0) j 902 drivers/gpu/drm/radeon/ni.c int i, j; j 1005 drivers/gpu/drm/radeon/ni.c for (i = 0, j = 0; i < 32; i++, j += 0x18) { j 1006 drivers/gpu/drm/radeon/ni.c WREG32((0x2c14 + j), 0x00000000); j 1007 drivers/gpu/drm/radeon/ni.c WREG32((0x2c18 + j), 0x00000000); j 1008 drivers/gpu/drm/radeon/ni.c WREG32((0x2c1c + j), 0x00000000); j 1009 drivers/gpu/drm/radeon/ni.c WREG32((0x2c20 + j), 0x00000000); j 1010 drivers/gpu/drm/radeon/ni.c WREG32((0x2c24 + j), 0x00000000); j 2713 drivers/gpu/drm/radeon/ni_dpm.c u8 i, j, k; j 2716 drivers/gpu/drm/radeon/ni_dpm.c for (i = 0, j = table->last; i < table->last; i++) { j 2719 drivers/gpu/drm/radeon/ni_dpm.c if (j >= SMC_NISLANDS_MC_REGISTER_ARRAY_SIZE) j 2722 drivers/gpu/drm/radeon/ni_dpm.c table->mc_reg_address[j].s1 = MC_PMG_CMD_EMRS >> 2; j 2723 drivers/gpu/drm/radeon/ni_dpm.c table->mc_reg_address[j].s0 = MC_SEQ_PMG_CMD_EMRS_LP >> 2; j 2725 drivers/gpu/drm/radeon/ni_dpm.c table->mc_reg_table_entry[k].mc_data[j] = j 2728 drivers/gpu/drm/radeon/ni_dpm.c j++; j 2729 drivers/gpu/drm/radeon/ni_dpm.c if (j >= SMC_NISLANDS_MC_REGISTER_ARRAY_SIZE) j 2733 drivers/gpu/drm/radeon/ni_dpm.c table->mc_reg_address[j].s1 = MC_PMG_CMD_MRS >> 2; j 2734 drivers/gpu/drm/radeon/ni_dpm.c table->mc_reg_address[j].s0 = MC_SEQ_PMG_CMD_MRS_LP >> 2; j 2736 drivers/gpu/drm/radeon/ni_dpm.c table->mc_reg_table_entry[k].mc_data[j] = j 2740 drivers/gpu/drm/radeon/ni_dpm.c table->mc_reg_table_entry[k].mc_data[j] |= 0x100; j 2742 drivers/gpu/drm/radeon/ni_dpm.c j++; j 2743 drivers/gpu/drm/radeon/ni_dpm.c if (j > SMC_NISLANDS_MC_REGISTER_ARRAY_SIZE) j 2748 drivers/gpu/drm/radeon/ni_dpm.c table->mc_reg_address[j].s1 = MC_PMG_CMD_MRS1 >> 2; j 2749 drivers/gpu/drm/radeon/ni_dpm.c table->mc_reg_address[j].s0 = MC_SEQ_PMG_CMD_MRS1_LP >> 2; j 2751 drivers/gpu/drm/radeon/ni_dpm.c table->mc_reg_table_entry[k].mc_data[j] = j 2754 drivers/gpu/drm/radeon/ni_dpm.c j++; j 2755 drivers/gpu/drm/radeon/ni_dpm.c if (j > SMC_NISLANDS_MC_REGISTER_ARRAY_SIZE) j 2763 drivers/gpu/drm/radeon/ni_dpm.c table->last = j; j 2822 drivers/gpu/drm/radeon/ni_dpm.c u8 i, j; j 2825 drivers/gpu/drm/radeon/ni_dpm.c for (j = 1; j < table->num_entries; j++) { j 2826 drivers/gpu/drm/radeon/ni_dpm.c if (table->mc_reg_table_entry[j-1].mc_data[i] != table->mc_reg_table_entry[j].mc_data[i]) { j 2848 drivers/gpu/drm/radeon/ni_dpm.c u8 i, j; j 2862 drivers/gpu/drm/radeon/ni_dpm.c for (j = 0; j < table->last; j++) j 2863 drivers/gpu/drm/radeon/ni_dpm.c ni_table->mc_reg_table_entry[i].mc_data[j] = j 2864 drivers/gpu/drm/radeon/ni_dpm.c table->mc_reg_table_entry[i].mc_data[j]; j 2926 drivers/gpu/drm/radeon/ni_dpm.c u32 i, j; j 2928 drivers/gpu/drm/radeon/ni_dpm.c for (i = 0, j = 0; j < ni_pi->mc_reg_table.last; j++) { j 2929 drivers/gpu/drm/radeon/ni_dpm.c if (ni_pi->mc_reg_table.valid_flag & (1 << j)) { j 2933 drivers/gpu/drm/radeon/ni_dpm.c cpu_to_be16(ni_pi->mc_reg_table.mc_reg_address[j].s0); j 2935 drivers/gpu/drm/radeon/ni_dpm.c cpu_to_be16(ni_pi->mc_reg_table.mc_reg_address[j].s1); j 2947 drivers/gpu/drm/radeon/ni_dpm.c u32 i, j; j 2949 drivers/gpu/drm/radeon/ni_dpm.c for (i = 0, j = 0; j < num_entries; j++) { j 2950 drivers/gpu/drm/radeon/ni_dpm.c if (valid_flag & (1 << j)) { j 2951 drivers/gpu/drm/radeon/ni_dpm.c data->value[i] = cpu_to_be32(entry->mc_data[j]); j 3052 drivers/gpu/drm/radeon/ni_dpm.c unsigned int i, j, table_size; j 3065 drivers/gpu/drm/radeon/ni_dpm.c for (j = 0; j < table_size; j++) { j 3073 drivers/gpu/drm/radeon/ni_dpm.c eg_pi->vddc_voltage_table.entries[j].value, j 3082 drivers/gpu/drm/radeon/ni_dpm.c cac_tables->cac_lkge_lut[i][j] = cpu_to_be32(smc_leakage); j 3086 drivers/gpu/drm/radeon/ni_dpm.c for (j = table_size; j < SMC_NISLANDS_LKGE_LUT_NUM_OF_VOLT_ENTRIES; j++) { j 3088 drivers/gpu/drm/radeon/ni_dpm.c cac_tables->cac_lkge_lut[i][j] = cpu_to_be32(max_leakage); j 3099 drivers/gpu/drm/radeon/ni_dpm.c u32 i, j, table_size; j 3120 drivers/gpu/drm/radeon/ni_dpm.c for (j = 0; j < table_size; j++) { j 3121 drivers/gpu/drm/radeon/ni_dpm.c smc_leakage = leakage_table->entries[j].leakage; j 3127 drivers/gpu/drm/radeon/ni_dpm.c cac_tables->cac_lkge_lut[i][j] = j 3131 drivers/gpu/drm/radeon/ni_dpm.c for (j = table_size; j < SMC_NISLANDS_LKGE_LUT_NUM_OF_VOLT_ENTRIES; j++) { j 3133 drivers/gpu/drm/radeon/ni_dpm.c cac_tables->cac_lkge_lut[i][j] = j 3990 drivers/gpu/drm/radeon/ni_dpm.c int i, j; j 4031 drivers/gpu/drm/radeon/ni_dpm.c for (j = 0; j < (power_info->pplib.ucStateEntrySize - 1); j++) { j 4035 drivers/gpu/drm/radeon/ni_dpm.c (idx[j] * power_info->pplib.ucClockInfoSize)); j 4037 drivers/gpu/drm/radeon/ni_dpm.c &rdev->pm.dpm.ps[i], j, j 1371 drivers/gpu/drm/radeon/r100.c unsigned i, j, m; j 1391 drivers/gpu/drm/radeon/r100.c j = (reg >> 7); j 1393 drivers/gpu/drm/radeon/r100.c if (auth[j] & m) { j 1400 drivers/gpu/drm/radeon/r100.c if (!(auth[j] & m)) { j 2951 drivers/gpu/drm/radeon/r100.c unsigned count, i, j; j 2963 drivers/gpu/drm/radeon/r100.c for (j = 0; j <= count; j++) { j 2964 drivers/gpu/drm/radeon/r100.c i = (rdp + j) & ring->ptr_mask; j 1307 drivers/gpu/drm/radeon/r600.c int i, j; j 1310 drivers/gpu/drm/radeon/r600.c for (i = 0, j = 0; i < 32; i++, j += 0x18) { j 1311 drivers/gpu/drm/radeon/r600.c WREG32((0x2c14 + j), 0x00000000); j 1312 drivers/gpu/drm/radeon/r600.c WREG32((0x2c18 + j), 0x00000000); j 1313 drivers/gpu/drm/radeon/r600.c WREG32((0x2c1c + j), 0x00000000); j 1314 drivers/gpu/drm/radeon/r600.c WREG32((0x2c20 + j), 0x00000000); j 1315 drivers/gpu/drm/radeon/r600.c WREG32((0x2c24 + j), 0x00000000); j 1591 drivers/gpu/drm/radeon/r600.c u32 i, j, tmp; j 1600 drivers/gpu/drm/radeon/r600.c for (j = 0; j < 10; j++) { j 1944 drivers/gpu/drm/radeon/r600.c unsigned i, j; j 1969 drivers/gpu/drm/radeon/r600.c for (j = 0; j < pipe_rb_ratio; j++) { j 1996 drivers/gpu/drm/radeon/r600.c int i, j; j 2076 drivers/gpu/drm/radeon/r600.c for (i = 0, j = 0; i < 32; i++, j += 0x18) { j 2077 drivers/gpu/drm/radeon/r600.c WREG32((0x2c14 + j), 0x00000000); j 2078 drivers/gpu/drm/radeon/r600.c WREG32((0x2c18 + j), 0x00000000); j 2079 drivers/gpu/drm/radeon/r600.c WREG32((0x2c1c + j), 0x00000000); j 2080 drivers/gpu/drm/radeon/r600.c WREG32((0x2c20 + j), 0x00000000); j 2081 drivers/gpu/drm/radeon/r600.c WREG32((0x2c24 + j), 0x00000000); j 534 drivers/gpu/drm/radeon/radeon_atombios.c int i, j, k, path_size, device_support; j 649 drivers/gpu/drm/radeon/radeon_atombios.c for (j = 0; j < ((le16_to_cpu(path->usSize) - 8) / 2); j++) { j 653 drivers/gpu/drm/radeon/radeon_atombios.c (le16_to_cpu(path->usGraphicObjIds[j]) & j 656 drivers/gpu/drm/radeon/radeon_atombios.c (le16_to_cpu(path->usGraphicObjIds[j]) & j 659 drivers/gpu/drm/radeon/radeon_atombios.c (le16_to_cpu(path->usGraphicObjIds[j]) & j 665 drivers/gpu/drm/radeon/radeon_atombios.c if (le16_to_cpu(path->usGraphicObjIds[j]) == encoder_obj) { j 696 drivers/gpu/drm/radeon/radeon_atombios.c if (le16_to_cpu(path->usGraphicObjIds[j]) == router_obj_id) { j 768 drivers/gpu/drm/radeon/radeon_atombios.c for (j = 0; j < con_obj->ucNumberOfObjects; j++) { j 770 drivers/gpu/drm/radeon/radeon_atombios.c le16_to_cpu(con_obj->asObjects[j]. j 778 drivers/gpu/drm/radeon/radeon_atombios.c asObjects[j]. j 914 drivers/gpu/drm/radeon/radeon_atombios.c int i, j, max_device; j 1043 drivers/gpu/drm/radeon/radeon_atombios.c for (j = 0; j < max_device; j++) { j 1044 drivers/gpu/drm/radeon/radeon_atombios.c if (bios_connectors[j].valid && (i != j)) { j 1046 drivers/gpu/drm/radeon/radeon_atombios.c bios_connectors[j].line_mux) { j 1053 drivers/gpu/drm/radeon/radeon_atombios.c if (bios_connectors[j].devices & (ATOM_DEVICE_LCD_SUPPORT)) { j 1054 drivers/gpu/drm/radeon/radeon_atombios.c bios_connectors[j].line_mux = 53; j 1055 drivers/gpu/drm/radeon/radeon_atombios.c bios_connectors[j].ddc_bus.valid = false; j 1060 drivers/gpu/drm/radeon/radeon_atombios.c (bios_connectors[j].devices & (ATOM_DEVICE_CRT_SUPPORT))) || j 1061 drivers/gpu/drm/radeon/radeon_atombios.c ((bios_connectors[j].devices & (ATOM_DEVICE_DFP_SUPPORT)) && j 1064 drivers/gpu/drm/radeon/radeon_atombios.c bios_connectors[j].devices; j 1067 drivers/gpu/drm/radeon/radeon_atombios.c if (bios_connectors[j].devices & (ATOM_DEVICE_DFP_SUPPORT)) j 1069 drivers/gpu/drm/radeon/radeon_atombios.c bios_connectors[j].hpd; j 1070 drivers/gpu/drm/radeon/radeon_atombios.c bios_connectors[j].valid = false; j 2406 drivers/gpu/drm/radeon/radeon_atombios.c int j; j 2461 drivers/gpu/drm/radeon/radeon_atombios.c for (j = 0; j < mode_index; j++) { j 2462 drivers/gpu/drm/radeon/radeon_atombios.c rdev->pm.power_state[state_index].clock_info[j].mclk = j 2464 drivers/gpu/drm/radeon/radeon_atombios.c rdev->pm.power_state[state_index].clock_info[j].sclk = j 2467 drivers/gpu/drm/radeon/radeon_atombios.c rdev->pm.power_state[state_index].clock_info[j].voltage.voltage = j 2470 drivers/gpu/drm/radeon/radeon_atombios.c rdev->pm.power_state[state_index].clock_info[j].voltage.vddci = j 2579 drivers/gpu/drm/radeon/radeon_atombios.c int i, j; j 2621 drivers/gpu/drm/radeon/radeon_atombios.c for (j = 0; j < (power_info->pplib.ucStateEntrySize - 1); j++) { j 2625 drivers/gpu/drm/radeon/radeon_atombios.c (power_state->v1.ucClockStateIndices[j] * j 2669 drivers/gpu/drm/radeon/radeon_atombios.c int i, j, non_clock_array_index, clock_array_index; j 2719 drivers/gpu/drm/radeon/radeon_atombios.c for (j = 0; j < power_state->v2.ucNumDPMLevels; j++) { j 2720 drivers/gpu/drm/radeon/radeon_atombios.c clock_array_index = power_state->v2.clockInfoIndex[j]; j 3227 drivers/gpu/drm/radeon/radeon_atombios.c int i, j; j 3268 drivers/gpu/drm/radeon/radeon_atombios.c for (j = 0; j < profile->ucLeakageBinNum; j++) { j 3269 drivers/gpu/drm/radeon/radeon_atombios.c if (vbios_voltage_id <= leakage_bin[j]) { j 3270 drivers/gpu/drm/radeon/radeon_atombios.c *vddc = vddc_buf[j * profile->ucElbVDDC_Num + i]; j 3281 drivers/gpu/drm/radeon/radeon_atombios.c for (j = 0; j < profile->ucLeakageBinNum; j++) { j 3282 drivers/gpu/drm/radeon/radeon_atombios.c if (vbios_voltage_id <= leakage_bin[j]) { j 3283 drivers/gpu/drm/radeon/radeon_atombios.c *vddci = vddci_buf[j * profile->ucElbVDDCI_Num + i]; j 3991 drivers/gpu/drm/radeon/radeon_atombios.c u32 i = 0, j; j 4041 drivers/gpu/drm/radeon/radeon_atombios.c for (i = 0, j = 1; i < reg_table->last; i++) { j 4044 drivers/gpu/drm/radeon/radeon_atombios.c (u32)le32_to_cpu(*((u32 *)reg_data + j)); j 4045 drivers/gpu/drm/radeon/radeon_atombios.c j++; j 981 drivers/gpu/drm/radeon/radeon_fence.c int i, j; j 995 drivers/gpu/drm/radeon/radeon_fence.c for (j = 0; j < RADEON_NUM_RINGS; ++j) { j 996 drivers/gpu/drm/radeon/radeon_fence.c if (i != j && rdev->fence_drv[j].initialized) j 998 drivers/gpu/drm/radeon/radeon_fence.c j, rdev->fence_drv[i].sync_seq[j]); j 249 drivers/gpu/drm/radeon/radeon_gart.c int i, j; j 260 drivers/gpu/drm/radeon/radeon_gart.c for (j = 0; j < (PAGE_SIZE / RADEON_GPU_PAGE_SIZE); j++, t++) { j 296 drivers/gpu/drm/radeon/radeon_gart.c int i, j; j 308 drivers/gpu/drm/radeon/radeon_gart.c for (j = 0; j < (PAGE_SIZE / RADEON_GPU_PAGE_SIZE); j++, t++) { j 336 drivers/gpu/drm/radeon/radeon_i2c.c int i, j, k, ret = num; j 500 drivers/gpu/drm/radeon/radeon_i2c.c for (j = 0; j < p->len; j++) { j 527 drivers/gpu/drm/radeon/radeon_i2c.c p->buf[j] = RREG32(i2c_data) & 0xff; j 534 drivers/gpu/drm/radeon/radeon_i2c.c WREG32(i2c_data, p->buf[j]); j 589 drivers/gpu/drm/radeon/radeon_i2c.c int i, j, remaining, current_count, buffer_offset, ret = num; j 688 drivers/gpu/drm/radeon/radeon_i2c.c for (j = 0; j < 200; j++) { j 730 drivers/gpu/drm/radeon/radeon_i2c.c for (j = 0; j < 200; j++) { j 745 drivers/gpu/drm/radeon/radeon_i2c.c for (j = 0; j < current_count; j++) j 746 drivers/gpu/drm/radeon/radeon_i2c.c p->buf[buffer_offset + j] = RREG32(AVIVO_DC_I2C_DATA) & 0xff; j 764 drivers/gpu/drm/radeon/radeon_i2c.c for (j = 0; j < current_count; j++) j 765 drivers/gpu/drm/radeon/radeon_i2c.c WREG32(AVIVO_DC_I2C_DATA, p->buf[buffer_offset + j]); j 773 drivers/gpu/drm/radeon/radeon_i2c.c for (j = 0; j < 200; j++) { j 283 drivers/gpu/drm/radeon/radeon_legacy_tv.c unsigned int i, j; j 292 drivers/gpu/drm/radeon/radeon_legacy_tv.c for (j = 0; j < n_wait_loops; j++) j 323 drivers/gpu/drm/radeon/radeon_pm.c int i, j; j 339 drivers/gpu/drm/radeon/radeon_pm.c for (j = 0; j < power_state->num_clock_modes; j++) { j 340 drivers/gpu/drm/radeon/radeon_pm.c clock_info = &(power_state->clock_info[j]); j 343 drivers/gpu/drm/radeon/radeon_pm.c j, j 347 drivers/gpu/drm/radeon/radeon_pm.c j, j 473 drivers/gpu/drm/radeon/radeon_ring.c unsigned count, i, j; j 509 drivers/gpu/drm/radeon/radeon_ring.c for (j = 0; j <= (count + 32); j++) { j 528 drivers/gpu/drm/radeon/radeon_test.c int i, j, k; j 535 drivers/gpu/drm/radeon/radeon_test.c for (j = 0; j < i; ++j) { j 536 drivers/gpu/drm/radeon/radeon_test.c struct radeon_ring *ringB = &rdev->ring[j]; j 543 drivers/gpu/drm/radeon/radeon_test.c DRM_INFO("Testing syncing between rings %d and %d...\n", i, j); j 546 drivers/gpu/drm/radeon/radeon_test.c DRM_INFO("Testing syncing between rings %d and %d...\n", j, i); j 549 drivers/gpu/drm/radeon/radeon_test.c for (k = 0; k < j; ++k) { j 560 drivers/gpu/drm/radeon/radeon_test.c DRM_INFO("Testing syncing between rings %d, %d and %d...\n", i, j, k); j 563 drivers/gpu/drm/radeon/radeon_test.c DRM_INFO("Testing syncing between rings %d, %d and %d...\n", i, k, j); j 566 drivers/gpu/drm/radeon/radeon_test.c DRM_INFO("Testing syncing between rings %d, %d and %d...\n", j, i, k); j 569 drivers/gpu/drm/radeon/radeon_test.c DRM_INFO("Testing syncing between rings %d, %d and %d...\n", j, k, i); j 572 drivers/gpu/drm/radeon/radeon_test.c DRM_INFO("Testing syncing between rings %d, %d and %d...\n", k, i, j); j 575 drivers/gpu/drm/radeon/radeon_test.c DRM_INFO("Testing syncing between rings %d, %d and %d...\n", k, j, i); j 301 drivers/gpu/drm/radeon/rv515.c int i, j; j 323 drivers/gpu/drm/radeon/rv515.c for (j = 0; j < rdev->usec_timeout; j++) { j 383 drivers/gpu/drm/radeon/rv515.c int i, j; j 426 drivers/gpu/drm/radeon/rv515.c for (j = 0; j < rdev->usec_timeout; j++) { j 457 drivers/gpu/drm/radeon/rv515.c for (j = 0; j < rdev->usec_timeout; j++) { j 1877 drivers/gpu/drm/radeon/rv6xx_dpm.c int i, j; j 1917 drivers/gpu/drm/radeon/rv6xx_dpm.c for (j = 0; j < (power_info->pplib.ucStateEntrySize - 1); j++) { j 1921 drivers/gpu/drm/radeon/rv6xx_dpm.c (idx[j] * power_info->pplib.ucClockInfoSize)); j 1923 drivers/gpu/drm/radeon/rv6xx_dpm.c &rdev->pm.dpm.ps[i], j, j 1012 drivers/gpu/drm/radeon/rv770.c int i, j; j 1015 drivers/gpu/drm/radeon/rv770.c for (i = 0, j = 0; i < 32; i++, j += 0x18) { j 1016 drivers/gpu/drm/radeon/rv770.c WREG32((0x2c14 + j), 0x00000000); j 1017 drivers/gpu/drm/radeon/rv770.c WREG32((0x2c18 + j), 0x00000000); j 1018 drivers/gpu/drm/radeon/rv770.c WREG32((0x2c1c + j), 0x00000000); j 1019 drivers/gpu/drm/radeon/rv770.c WREG32((0x2c20 + j), 0x00000000); j 1020 drivers/gpu/drm/radeon/rv770.c WREG32((0x2c24 + j), 0x00000000); j 1172 drivers/gpu/drm/radeon/rv770.c int i, j, num_qd_pipes; j 1290 drivers/gpu/drm/radeon/rv770.c j = 0; j 1292 drivers/gpu/drm/radeon/rv770.c WREG32((0x2c14 + j), 0x00000000); j 1293 drivers/gpu/drm/radeon/rv770.c WREG32((0x2c18 + j), 0x00000000); j 1294 drivers/gpu/drm/radeon/rv770.c WREG32((0x2c1c + j), 0x00000000); j 1295 drivers/gpu/drm/radeon/rv770.c WREG32((0x2c20 + j), 0x00000000); j 1296 drivers/gpu/drm/radeon/rv770.c WREG32((0x2c24 + j), 0x00000000); j 1297 drivers/gpu/drm/radeon/rv770.c j += 0x18; j 2271 drivers/gpu/drm/radeon/rv770_dpm.c int i, j; j 2312 drivers/gpu/drm/radeon/rv770_dpm.c for (j = 0; j < (power_info->pplib.ucStateEntrySize - 1); j++) { j 2316 drivers/gpu/drm/radeon/rv770_dpm.c (idx[j] * power_info->pplib.ucClockInfoSize)); j 2318 drivers/gpu/drm/radeon/rv770_dpm.c &rdev->pm.dpm.ps[i], j, j 3000 drivers/gpu/drm/radeon/si.c int i, j, k; j 3004 drivers/gpu/drm/radeon/si.c for (j = 0; j < sh_per_se; j++) { j 3005 drivers/gpu/drm/radeon/si.c si_select_se_sh(rdev, i, j); j 3047 drivers/gpu/drm/radeon/si.c int i, j; j 3053 drivers/gpu/drm/radeon/si.c for (j = 0; j < sh_per_se; j++) { j 3054 drivers/gpu/drm/radeon/si.c si_select_se_sh(rdev, i, j); j 3056 drivers/gpu/drm/radeon/si.c disabled_rbs |= data << ((i * sh_per_se + j) * TAHITI_RB_BITMAP_WIDTH_PER_SH); j 3073 drivers/gpu/drm/radeon/si.c for (j = 0; j < sh_per_se; j++) { j 3076 drivers/gpu/drm/radeon/si.c data |= (RASTER_CONFIG_RB_MAP_0 << (i * sh_per_se + j) * 2); j 3079 drivers/gpu/drm/radeon/si.c data |= (RASTER_CONFIG_RB_MAP_3 << (i * sh_per_se + j) * 2); j 3083 drivers/gpu/drm/radeon/si.c data |= (RASTER_CONFIG_RB_MAP_2 << (i * sh_per_se + j) * 2); j 3100 drivers/gpu/drm/radeon/si.c int i, j; j 3192 drivers/gpu/drm/radeon/si.c for (i = 0, j = 0; i < 32; i++, j += 0x18) { j 3193 drivers/gpu/drm/radeon/si.c WREG32((0x2c14 + j), 0x00000000); j 3194 drivers/gpu/drm/radeon/si.c WREG32((0x2c18 + j), 0x00000000); j 3195 drivers/gpu/drm/radeon/si.c WREG32((0x2c1c + j), 0x00000000); j 3196 drivers/gpu/drm/radeon/si.c WREG32((0x2c20 + j), 0x00000000); j 3197 drivers/gpu/drm/radeon/si.c WREG32((0x2c24 + j), 0x00000000); j 3302 drivers/gpu/drm/radeon/si.c for (j = 0; j < rdev->config.si.max_sh_per_se; j++) { j 3304 drivers/gpu/drm/radeon/si.c hweight32(si_get_cu_active_bitmap(rdev, i, j)); j 4145 drivers/gpu/drm/radeon/si.c int i, j; j 4148 drivers/gpu/drm/radeon/si.c for (i = 0, j = 0; i < 32; i++, j += 0x18) { j 4149 drivers/gpu/drm/radeon/si.c WREG32((0x2c14 + j), 0x00000000); j 4150 drivers/gpu/drm/radeon/si.c WREG32((0x2c18 + j), 0x00000000); j 4151 drivers/gpu/drm/radeon/si.c WREG32((0x2c1c + j), 0x00000000); j 4152 drivers/gpu/drm/radeon/si.c WREG32((0x2c20 + j), 0x00000000); j 4153 drivers/gpu/drm/radeon/si.c WREG32((0x2c24 + j), 0x00000000); j 5324 drivers/gpu/drm/radeon/si.c u32 i, j, k, active_cu_number = 0; j 5329 drivers/gpu/drm/radeon/si.c for (j = 0; j < rdev->config.si.max_sh_per_se; j++) { j 5334 drivers/gpu/drm/radeon/si.c if (si_get_cu_active_bitmap(rdev, i, j) & mask) { j 5343 drivers/gpu/drm/radeon/si.c tmp |= (cu_bitmap << (i * 16 + j * 8)); j 6147 drivers/gpu/drm/radeon/si.c int i, j; j 6162 drivers/gpu/drm/radeon/si.c for (j = i; j < (i + 2); j++) { j 6163 drivers/gpu/drm/radeon/si.c if (grph_int[j] & GRPH_PFLIP_INT_OCCURRED) j 6164 drivers/gpu/drm/radeon/si.c WREG32(GRPH_INT_STATUS + crtc_offsets[j], j 6168 drivers/gpu/drm/radeon/si.c for (j = i; j < (i + 2); j++) { j 6169 drivers/gpu/drm/radeon/si.c if (disp_int[j] & LB_D1_VBLANK_INTERRUPT) j 6170 drivers/gpu/drm/radeon/si.c WREG32(VBLANK_STATUS + crtc_offsets[j], j 6172 drivers/gpu/drm/radeon/si.c if (disp_int[j] & LB_D1_VLINE_INTERRUPT) j 6173 drivers/gpu/drm/radeon/si.c WREG32(VLINE_STATUS + crtc_offsets[j], j 2586 drivers/gpu/drm/radeon/si_dpm.c unsigned int i, j; j 2597 drivers/gpu/drm/radeon/si_dpm.c for (j = 0; j < SMC_SISLANDS_LKGE_LUT_NUM_OF_VOLT_ENTRIES; j++) { j 2598 drivers/gpu/drm/radeon/si_dpm.c voltage = vddc_max - (vddc_step * j); j 2612 drivers/gpu/drm/radeon/si_dpm.c cac_tables->cac_lkge_lut[i][SMC_SISLANDS_LKGE_LUT_NUM_OF_VOLT_ENTRIES-1-j] = j 2625 drivers/gpu/drm/radeon/si_dpm.c unsigned int i, j; j 2632 drivers/gpu/drm/radeon/si_dpm.c for (j = 0; j < SMC_SISLANDS_LKGE_LUT_NUM_OF_VOLT_ENTRIES; j++) { j 2633 drivers/gpu/drm/radeon/si_dpm.c voltage = vddc_max - (vddc_step * j); j 2648 drivers/gpu/drm/radeon/si_dpm.c cac_tables->cac_lkge_lut[i][SMC_SISLANDS_LKGE_LUT_NUM_OF_VOLT_ENTRIES-1-j] = j 5360 drivers/gpu/drm/radeon/si_dpm.c u8 i, j, k; j 5363 drivers/gpu/drm/radeon/si_dpm.c for (i = 0, j = table->last; i < table->last; i++) { j 5364 drivers/gpu/drm/radeon/si_dpm.c if (j >= SMC_SISLANDS_MC_REGISTER_ARRAY_SIZE) j 5369 drivers/gpu/drm/radeon/si_dpm.c table->mc_reg_address[j].s1 = MC_PMG_CMD_EMRS >> 2; j 5370 drivers/gpu/drm/radeon/si_dpm.c table->mc_reg_address[j].s0 = MC_SEQ_PMG_CMD_EMRS_LP >> 2; j 5372 drivers/gpu/drm/radeon/si_dpm.c table->mc_reg_table_entry[k].mc_data[j] = j 5375 drivers/gpu/drm/radeon/si_dpm.c j++; j 5376 drivers/gpu/drm/radeon/si_dpm.c if (j >= SMC_SISLANDS_MC_REGISTER_ARRAY_SIZE) j 5380 drivers/gpu/drm/radeon/si_dpm.c table->mc_reg_address[j].s1 = MC_PMG_CMD_MRS >> 2; j 5381 drivers/gpu/drm/radeon/si_dpm.c table->mc_reg_address[j].s0 = MC_SEQ_PMG_CMD_MRS_LP >> 2; j 5383 drivers/gpu/drm/radeon/si_dpm.c table->mc_reg_table_entry[k].mc_data[j] = j 5387 drivers/gpu/drm/radeon/si_dpm.c table->mc_reg_table_entry[k].mc_data[j] |= 0x100; j 5389 drivers/gpu/drm/radeon/si_dpm.c j++; j 5390 drivers/gpu/drm/radeon/si_dpm.c if (j >= SMC_SISLANDS_MC_REGISTER_ARRAY_SIZE) j 5394 drivers/gpu/drm/radeon/si_dpm.c table->mc_reg_address[j].s1 = MC_PMG_AUTO_CMD >> 2; j 5395 drivers/gpu/drm/radeon/si_dpm.c table->mc_reg_address[j].s0 = MC_PMG_AUTO_CMD >> 2; j 5397 drivers/gpu/drm/radeon/si_dpm.c table->mc_reg_table_entry[k].mc_data[j] = j 5399 drivers/gpu/drm/radeon/si_dpm.c j++; j 5400 drivers/gpu/drm/radeon/si_dpm.c if (j >= SMC_SISLANDS_MC_REGISTER_ARRAY_SIZE) j 5406 drivers/gpu/drm/radeon/si_dpm.c table->mc_reg_address[j].s1 = MC_PMG_CMD_MRS1 >> 2; j 5407 drivers/gpu/drm/radeon/si_dpm.c table->mc_reg_address[j].s0 = MC_SEQ_PMG_CMD_MRS1_LP >> 2; j 5409 drivers/gpu/drm/radeon/si_dpm.c table->mc_reg_table_entry[k].mc_data[j] = j 5412 drivers/gpu/drm/radeon/si_dpm.c j++; j 5413 drivers/gpu/drm/radeon/si_dpm.c if (j >= SMC_SISLANDS_MC_REGISTER_ARRAY_SIZE) j 5421 drivers/gpu/drm/radeon/si_dpm.c table->last = j; j 5483 drivers/gpu/drm/radeon/si_dpm.c u8 i, j; j 5486 drivers/gpu/drm/radeon/si_dpm.c for (j = 1; j < table->num_entries; j++) { j 5487 drivers/gpu/drm/radeon/si_dpm.c if (table->mc_reg_table_entry[j-1].mc_data[i] != table->mc_reg_table_entry[j].mc_data[i]) { j 5509 drivers/gpu/drm/radeon/si_dpm.c u8 i, j; j 5523 drivers/gpu/drm/radeon/si_dpm.c for (j = 0; j < table->last; j++) { j 5524 drivers/gpu/drm/radeon/si_dpm.c si_table->mc_reg_table_entry[i].mc_data[j] = j 5525 drivers/gpu/drm/radeon/si_dpm.c table->mc_reg_table_entry[i].mc_data[j]; j 5587 drivers/gpu/drm/radeon/si_dpm.c u32 i, j; j 5589 drivers/gpu/drm/radeon/si_dpm.c for (i = 0, j = 0; j < si_pi->mc_reg_table.last; j++) { j 5590 drivers/gpu/drm/radeon/si_dpm.c if (si_pi->mc_reg_table.valid_flag & (1 << j)) { j 5594 drivers/gpu/drm/radeon/si_dpm.c cpu_to_be16(si_pi->mc_reg_table.mc_reg_address[j].s0); j 5596 drivers/gpu/drm/radeon/si_dpm.c cpu_to_be16(si_pi->mc_reg_table.mc_reg_address[j].s1); j 5607 drivers/gpu/drm/radeon/si_dpm.c u32 i, j; j 5609 drivers/gpu/drm/radeon/si_dpm.c for(i = 0, j = 0; j < num_entries; j++) { j 5610 drivers/gpu/drm/radeon/si_dpm.c if (valid_flag & (1 << j)) { j 5611 drivers/gpu/drm/radeon/si_dpm.c data->value[i] = cpu_to_be32(entry->mc_data[j]); j 5874 drivers/gpu/drm/radeon/si_dpm.c int j; j 5893 drivers/gpu/drm/radeon/si_dpm.c for (j = (table->count - 2); j >= 0; j--) { j 5894 drivers/gpu/drm/radeon/si_dpm.c table->entries[j].v = (table->entries[j].v <= table->entries[j + 1].v) ? j 5895 drivers/gpu/drm/radeon/si_dpm.c table->entries[j].v : table->entries[j + 1].v; j 6813 drivers/gpu/drm/radeon/si_dpm.c int i, j, k, non_clock_array_index, clock_array_index; j 6865 drivers/gpu/drm/radeon/si_dpm.c for (j = 0; j < power_state->v2.ucNumDPMLevels; j++) { j 6866 drivers/gpu/drm/radeon/si_dpm.c clock_array_index = idx[j]; j 1457 drivers/gpu/drm/radeon/sumo_dpm.c int i, j, k, non_clock_array_index, clock_array_index; j 1506 drivers/gpu/drm/radeon/sumo_dpm.c for (j = 0; j < power_state->v2.ucNumDPMLevels; j++) { j 1507 drivers/gpu/drm/radeon/sumo_dpm.c clock_array_index = idx[j]; j 1618 drivers/gpu/drm/radeon/sumo_dpm.c u32 i, j; j 1631 drivers/gpu/drm/radeon/sumo_dpm.c for (j = i + 1; j < SUMO_MAX_NUMBER_VOLTAGES; j++) { j 1632 drivers/gpu/drm/radeon/sumo_dpm.c if (vid_mapping_table->entries[j].vid_7bit != 0) { j 1634 drivers/gpu/drm/radeon/sumo_dpm.c vid_mapping_table->entries[j]; j 1635 drivers/gpu/drm/radeon/sumo_dpm.c vid_mapping_table->entries[j].vid_7bit = 0; j 1640 drivers/gpu/drm/radeon/sumo_dpm.c if (j == SUMO_MAX_NUMBER_VOLTAGES) j 1735 drivers/gpu/drm/radeon/trinity_dpm.c int i, j, k, non_clock_array_index, clock_array_index; j 1784 drivers/gpu/drm/radeon/trinity_dpm.c for (j = 0; j < power_state->v2.ucNumDPMLevels; j++) { j 1785 drivers/gpu/drm/radeon/trinity_dpm.c clock_array_index = idx[j]; j 267 drivers/gpu/drm/radeon/uvd_v1_0.c int i, j, r; j 331 drivers/gpu/drm/radeon/uvd_v1_0.c for (j = 0; j < 100; ++j) { j 292 drivers/gpu/drm/radeon/vce_v1_0.c int i, j, r; j 327 drivers/gpu/drm/radeon/vce_v1_0.c for (j = 0; j < 100; ++j) { j 345 drivers/gpu/drm/rcar-du/rcar_du_crtc.c unsigned int j; j 352 drivers/gpu/drm/rcar-du/rcar_du_crtc.c for (j = num_planes++; j > 0; --j) { j 353 drivers/gpu/drm/rcar-du/rcar_du_crtc.c if (plane_zpos(planes[j-1]) <= plane_zpos(plane)) j 355 drivers/gpu/drm/rcar-du/rcar_du_crtc.c planes[j] = planes[j-1]; j 358 drivers/gpu/drm/rcar-du/rcar_du_crtc.c planes[j] = plane; j 565 drivers/gpu/drm/rcar-du/rcar_du_kms.c unsigned int j; j 576 drivers/gpu/drm/rcar-du/rcar_du_kms.c for (j = 0; j < vsps_count; ++j) { j 577 drivers/gpu/drm/rcar-du/rcar_du_kms.c if (vsps[j].np == args.np) j 581 drivers/gpu/drm/rcar-du/rcar_du_kms.c if (j < vsps_count) j 586 drivers/gpu/drm/rcar-du/rcar_du_kms.c vsps[j].crtcs_mask |= BIT(i); j 589 drivers/gpu/drm/rcar-du/rcar_du_kms.c rcdu->crtcs[i].vsp = &rcdu->vsps[j]; j 513 drivers/gpu/drm/savage/savage_bci.c unsigned int i, j; j 538 drivers/gpu/drm/savage/savage_bci.c for (j = 0; j < dev_priv->dma_pages[i].used; ++j) { j 539 drivers/gpu/drm/savage/savage_bci.c BCI_WRITE(dma_ptr[j]); j 514 drivers/gpu/drm/savage/savage_state.c unsigned int j = i + reorder[i % 3]; j 515 drivers/gpu/drm/savage/savage_state.c DMA_COPY(&vtxbuf[vb_stride * j], vtx_size); j 776 drivers/gpu/drm/savage/savage_state.c unsigned int j = idx[i + reorder[i % 3]]; j 777 drivers/gpu/drm/savage/savage_state.c DMA_COPY(&vtxbuf[vb_stride * j], vtx_size); j 786 drivers/gpu/drm/savage/savage_state.c unsigned int j = idx[i]; j 787 drivers/gpu/drm/savage/savage_state.c DMA_COPY(&vtxbuf[vb_stride * j], vtx_size); j 912 drivers/gpu/drm/savage/savage_state.c unsigned int i, j; j 935 drivers/gpu/drm/savage/savage_state.c j = (cmd_header.idx.count + 3) / 4; j 940 drivers/gpu/drm/savage/savage_state.c cmdbuf += j; j 943 drivers/gpu/drm/savage/savage_state.c j = (cmd_header.idx.count + 3) / 4; j 949 drivers/gpu/drm/savage/savage_state.c cmdbuf += j; j 977 drivers/gpu/drm/savage/savage_state.c unsigned int i, j; j 1057 drivers/gpu/drm/savage/savage_state.c j = 0; j 1061 drivers/gpu/drm/savage/savage_state.c j = (cmd_header.idx.count + 3) / 4; j 1062 drivers/gpu/drm/savage/savage_state.c if (i + j > cmdbuf->size) { j 1074 drivers/gpu/drm/savage/savage_state.c cmdbuf->cmd_addr += j; j 1075 drivers/gpu/drm/savage/savage_state.c i += j; j 1095 drivers/gpu/drm/savage/savage_state.c j = (cmd_header.state.count + 1) / 2; j 1096 drivers/gpu/drm/savage/savage_state.c if (i + j > cmdbuf->size) { j 1105 drivers/gpu/drm/savage/savage_state.c cmdbuf->cmd_addr += j; j 1106 drivers/gpu/drm/savage/savage_state.c i += j; j 150 drivers/gpu/drm/sti/sti_cursor.c unsigned int i, j; j 154 drivers/gpu/drm/sti/sti_cursor.c for (j = 0; j < cursor->width; j++) { j 74 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c int i, j, p; j 88 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c for (j = tmds->div_offset ?: 1; j 89 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c j < (16 + tmds->div_offset); j++) { j 90 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c unsigned long ideal = rate * i * j; j 98 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c best_div = j; j 103 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c abs(rate - rounded / i / j) < j 108 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c best_div = j; j 234 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c int j; j 236 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c for (j = 0; j < 24; j++) { j 237 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c if (!(BIT(j) & field)) j 241 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c val = (BIT(j) & data) ? 1 : 0; j 244 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c val ^= (BIT(j) & data) ? 1 : 0; j 1092 drivers/gpu/drm/tegra/dc.c unsigned int i, j; j 1098 drivers/gpu/drm/tegra/dc.c for (j = 0; j < wgrp->num_windows; j++) { j 1099 drivers/gpu/drm/tegra/dc.c unsigned int index = wgrp->windows[j]; j 87 drivers/gpu/drm/tegra/dpaux.c size_t i, j; j 93 drivers/gpu/drm/tegra/dpaux.c for (j = 0; j < num; j++) j 94 drivers/gpu/drm/tegra/dpaux.c value |= buffer[i * 4 + j] << (j * 8); j 103 drivers/gpu/drm/tegra/dpaux.c size_t i, j; j 111 drivers/gpu/drm/tegra/dpaux.c for (j = 0; j < num; j++) j 112 drivers/gpu/drm/tegra/dpaux.c buffer[i * 4 + j] = value >> (j * 8); j 1123 drivers/gpu/drm/tegra/dsi.c unsigned int i, j, k; j 1170 drivers/gpu/drm/tegra/dsi.c for (i = 0, j = 0; i < count - 1; i++, j += 4) { j 1171 drivers/gpu/drm/tegra/dsi.c u8 *rx = msg->rx_buf + j; j 1175 drivers/gpu/drm/tegra/dsi.c for (k = 0; k < 4 && (j + k) < msg->rx_len; k++) j 1176 drivers/gpu/drm/tegra/dsi.c rx[j + k] = (value >> (k << 3)) & 0xff; j 1224 drivers/gpu/drm/tegra/dsi.c size_t i, j; j 1227 drivers/gpu/drm/tegra/dsi.c for (j = 0; j < size; j += 4) { j 1230 drivers/gpu/drm/tegra/dsi.c for (i = 0; i < 4 && j + i < size; i++) j 1231 drivers/gpu/drm/tegra/dsi.c value |= buf[j + i] << (i << 3); j 638 drivers/gpu/drm/tegra/hdmi.c size_t i, j; j 671 drivers/gpu/drm/tegra/hdmi.c for (i = 3, j = 0; i < size; i += 7, j += 8) { j 2055 drivers/gpu/drm/tegra/sor.c size_t i, j; j 2088 drivers/gpu/drm/tegra/sor.c for (i = 3, j = 0; i < size; i += 7, j += 8) { j 494 drivers/gpu/drm/ttm/ttm_page_alloc.c unsigned i, j, cpages; j 537 drivers/gpu/drm/ttm/ttm_page_alloc.c for (j = 0; j < npages; ++j) { j 725 drivers/gpu/drm/ttm/ttm_page_alloc.c unsigned order = 0, j; j 735 drivers/gpu/drm/ttm/ttm_page_alloc.c for (j = 1; j < HPAGE_PMD_NR; ++j) j 736 drivers/gpu/drm/ttm/ttm_page_alloc.c if (++p != pages[i + j]) j 739 drivers/gpu/drm/ttm/ttm_page_alloc.c if (j == HPAGE_PMD_NR) j 748 drivers/gpu/drm/ttm/ttm_page_alloc.c j = 1 << order; j 749 drivers/gpu/drm/ttm/ttm_page_alloc.c while (j) { j 751 drivers/gpu/drm/ttm/ttm_page_alloc.c --j; j 765 drivers/gpu/drm/ttm/ttm_page_alloc.c unsigned j; j 770 drivers/gpu/drm/ttm/ttm_page_alloc.c for (j = 1; j < HPAGE_PMD_NR; ++j) j 771 drivers/gpu/drm/ttm/ttm_page_alloc.c if (++p != pages[i + j]) j 774 drivers/gpu/drm/ttm/ttm_page_alloc.c if (j != HPAGE_PMD_NR) j 779 drivers/gpu/drm/ttm/ttm_page_alloc.c for (j = 0; j < HPAGE_PMD_NR; ++j) j 843 drivers/gpu/drm/ttm/ttm_page_alloc.c unsigned j; j 872 drivers/gpu/drm/ttm/ttm_page_alloc.c for (j = 0; j < HPAGE_PMD_NR; ++j) j 908 drivers/gpu/drm/ttm/ttm_page_alloc.c unsigned j; j 910 drivers/gpu/drm/ttm/ttm_page_alloc.c for (j = 0; j < HPAGE_PMD_NR; ++j) j 911 drivers/gpu/drm/ttm/ttm_page_alloc.c pages[count++] = &p[j]; j 1100 drivers/gpu/drm/ttm/ttm_page_alloc.c unsigned i, j; j 1111 drivers/gpu/drm/ttm/ttm_page_alloc.c for (j = i + 1; j < tt->ttm.num_pages; ++j) { j 1112 drivers/gpu/drm/ttm/ttm_page_alloc.c if (++p != tt->ttm.pages[j]) j 1131 drivers/gpu/drm/ttm/ttm_page_alloc.c for (j = 1; j < num_pages; ++j) { j 1142 drivers/gpu/drm/ttm/ttm_page_alloc.c unsigned i, j; j 1153 drivers/gpu/drm/ttm/ttm_page_alloc.c for (j = i + 1; j < tt->ttm.num_pages; ++j) { j 1154 drivers/gpu/drm/ttm/ttm_page_alloc.c if (++p != tt->ttm.pages[j]) j 707 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c unsigned i, j, npages, cpages; j 756 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c for (j = 0; j < npages; ++j) { j 757 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c caching_array[cpages++] = p + j; j 923 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c unsigned j; j 937 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c for (j = i + 1; j < (i + HPAGE_PMD_NR); ++j) { j 938 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c ttm->pages[j] = ttm->pages[j - 1] + 1; j 939 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c ttm_dma->dma_address[j] = ttm_dma->dma_address[j - 1] + j 150 drivers/gpu/drm/ttm/ttm_tt.c int i, j; j 182 drivers/gpu/drm/ttm/ttm_tt.c for (j = 0; j < i; ++j) { j 183 drivers/gpu/drm/ttm/ttm_tt.c cur_page = ttm->pages[j]; j 38 drivers/gpu/drm/udl/udl_transfer.c int j, k; j 46 drivers/gpu/drm/udl/udl_transfer.c for (j = 0; j < width; j++) { j 47 drivers/gpu/drm/udl/udl_transfer.c if (back[j] != front[j]) { j 48 drivers/gpu/drm/udl/udl_transfer.c start = j; j 53 drivers/gpu/drm/udl/udl_transfer.c for (k = width - 1; k > j; k--) { j 70 drivers/gpu/drm/vboxvideo/vbox_irq.c int i, j; j 73 drivers/gpu/drm/vboxvideo/vbox_irq.c for (j = 0; j < i; ++j) { j 75 drivers/gpu/drm/vboxvideo/vbox_irq.c hintsj = &vbox->last_mode_hints[j]; j 373 drivers/gpu/drm/vboxvideo/vbox_mode.c u32 i, j; j 377 drivers/gpu/drm/vboxvideo/vbox_mode.c for (j = 0; j < width; ++j) j 378 drivers/gpu/drm/vboxvideo/vbox_mode.c if (((u32 *)src)[i * width + j] > 0xf0000000) j 379 drivers/gpu/drm/vboxvideo/vbox_mode.c dst[i * line_size + j / 8] |= (0x80 >> (j % 8)); j 157 drivers/gpu/drm/vc4/vc4_gem.c unsigned int i, j, k, unref_list_count; j 198 drivers/gpu/drm/vc4/vc4_gem.c for (j = 0; j < exec[i]->bo_count; j++) { j 199 drivers/gpu/drm/vc4/vc4_gem.c bo = to_vc4_bo(&exec[i]->bo[j]->base); j 207 drivers/gpu/drm/vc4/vc4_gem.c drm_gem_object_get(&exec[i]->bo[j]->base); j 208 drivers/gpu/drm/vc4/vc4_gem.c kernel_state->bo[k++] = &exec[i]->bo[j]->base; j 614 drivers/gpu/drm/vc4/vc4_gem.c int j; j 616 drivers/gpu/drm/vc4/vc4_gem.c for (j = 0; j < i; j++) { j 617 drivers/gpu/drm/vc4/vc4_gem.c bo = &exec->bo[j]->base; j 541 drivers/gpu/drm/via/via_dmablit.c int i, j; j 560 drivers/gpu/drm/via/via_dmablit.c for (j = 0; j < VIA_NUM_BLIT_SLOTS; ++j) j 561 drivers/gpu/drm/via/via_dmablit.c init_waitqueue_head(blitq->blit_queue + j); j 23 drivers/gpu/drm/vkms/vkms_composer.c int i, j, src_offset; j 31 drivers/gpu/drm/vkms/vkms_composer.c for (j = x_src; j < x_src + w_src; ++j) { j 34 drivers/gpu/drm/vkms/vkms_composer.c + (j * composer->cpp); j 64 drivers/gpu/drm/vkms/vkms_composer.c int i, j, j_dst, i_dst; j 79 drivers/gpu/drm/vkms/vkms_composer.c for (j = x_src, j_dst = x_dst; j < x_limit; ++j) { j 85 drivers/gpu/drm/vkms/vkms_composer.c + (j * src_composer->cpp); j 496 drivers/gpu/drm/vmwgfx/ttm_object.c unsigned int j = 0; j 510 drivers/gpu/drm/vmwgfx/ttm_object.c j = i; j 517 drivers/gpu/drm/vmwgfx/ttm_object.c for (i = 0; i < j; ++i) j 456 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c u32 j, initial_line = dst_offset / dst_stride; j 490 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c for (j = 0; j < h; ++j) { j 491 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c diff->line = j + initial_line; j 718 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c int i, j; j 807 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c for (j = 0; j < srf->mip_levels[i]; ++j) { j 812 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c cur_offset->mip = j; j 134 drivers/gpu/host1x/job.c unsigned int j; j 145 drivers/gpu/host1x/job.c for_each_sg(sgt->sgl, sg, sgt->nents, j) j 507 drivers/gpu/host1x/job.c unsigned int i, j; j 533 drivers/gpu/host1x/job.c for (j = i + 1; j < job->num_gathers; j++) { j 534 drivers/gpu/host1x/job.c if (job->gathers[j].bo == g->bo) { j 535 drivers/gpu/host1x/job.c job->gathers[j].handled = true; j 536 drivers/gpu/host1x/job.c job->gathers[j].base = g->base; j 38 drivers/hid/hid-axff.c int i, j; j 49 drivers/hid/hid-axff.c for (j = 0; j < report->field[i]->report_count; j++) { j 50 drivers/hid/hid-axff.c report->field[i]->value[j] = j 70 drivers/hid/hid-axff.c int i, j; j 87 drivers/hid/hid-axff.c for (j = 0; j < report->field[i]->report_count; j++) { j 88 drivers/hid/hid-axff.c report->field[i]->value[j] = 0x00; j 66 drivers/hid/hid-betopff.c int i, j; j 83 drivers/hid/hid-betopff.c for (j = 0; j < report->field[i]->report_count; j++) { j 84 drivers/hid/hid-betopff.c report->field[i]->value[j] = 0x00; j 312 drivers/hid/hid-core.c unsigned j = i; j 315 drivers/hid/hid-core.c j = parser->local.usage_index - 1; j 316 drivers/hid/hid-core.c field->usage[i].hid = parser->local.usage[j]; j 318 drivers/hid/hid-core.c parser->local.collection_index[j]; j 670 drivers/hid/hid-core.c unsigned i, j; j 675 drivers/hid/hid-core.c for (j = 0; j < HID_MAX_IDS; j++) { j 676 drivers/hid/hid-core.c struct hid_report *report = report_enum->report_id_hash[j]; j 1151 drivers/hid/hid-core.c int i, j; j 1160 drivers/hid/hid-core.c for (j = 0; j < rep->field[i]->maxusage; j++) { j 1161 drivers/hid/hid-core.c usage = &rep->field[i]->usage[j]; j 523 drivers/hid/hid-debug.c int j; j 541 drivers/hid/hid-debug.c for (j = 0; j < field->maxusage; j++) { j 542 drivers/hid/hid-debug.c tab(n+2, f); hid_resolv_usage(field->usage[j].hid, f); seq_printf(f, "\n"); j 606 drivers/hid/hid-debug.c j = field->flags; j 607 drivers/hid/hid-debug.c seq_printf(f, "%s", HID_MAIN_ITEM_CONSTANT & j ? "Constant " : ""); j 608 drivers/hid/hid-debug.c seq_printf(f, "%s", HID_MAIN_ITEM_VARIABLE & j ? "Variable " : "Array "); j 609 drivers/hid/hid-debug.c seq_printf(f, "%s", HID_MAIN_ITEM_RELATIVE & j ? "Relative " : "Absolute "); j 610 drivers/hid/hid-debug.c seq_printf(f, "%s", HID_MAIN_ITEM_WRAP & j ? "Wrap " : ""); j 611 drivers/hid/hid-debug.c seq_printf(f, "%s", HID_MAIN_ITEM_NONLINEAR & j ? "NonLinear " : ""); j 612 drivers/hid/hid-debug.c seq_printf(f, "%s", HID_MAIN_ITEM_NO_PREFERRED & j ? "NoPreferredState " : ""); j 613 drivers/hid/hid-debug.c seq_printf(f, "%s", HID_MAIN_ITEM_NULL_STATE & j ? "NullState " : ""); j 614 drivers/hid/hid-debug.c seq_printf(f, "%s", HID_MAIN_ITEM_VOLATILE & j ? "Volatile " : ""); j 615 drivers/hid/hid-debug.c seq_printf(f, "%s", HID_MAIN_ITEM_BUFFERED_BYTE & j ? "BufferedByte " : ""); j 1013 drivers/hid/hid-debug.c int i, j, k; j 1020 drivers/hid/hid-debug.c for ( j = 0; j < report->field[i]->maxusage; j++) { j 1021 drivers/hid/hid-debug.c usage = report->field[i]->usage + j; j 416 drivers/hid/hid-google-hammer.c int i, j; j 425 drivers/hid/hid-google-hammer.c for (j = 0; j < field->maxusage; j++) j 426 drivers/hid/hid-google-hammer.c if (field->usage[j].hid == HID_AD_BRIGHTNESS) j 90 drivers/hid/hid-input.c unsigned int i, j, k, cur_idx = 0; j 97 drivers/hid/hid-input.c for (j = 0; j < report->field[i]->maxusage; j++) { j 98 drivers/hid/hid-input.c usage = report->field[i]->usage + j; j 1416 drivers/hid/hid-input.c int i, j; j 1421 drivers/hid/hid-input.c for (j = 0; j < (*field)->maxusage; j++) j 1422 drivers/hid/hid-input.c if ((*field)->usage[j].type == type && (*field)->usage[j].code == code) j 1423 drivers/hid/hid-input.c return j; j 1434 drivers/hid/hid-input.c int i, j; j 1441 drivers/hid/hid-input.c for (j = 0; j < field->maxusage; j++) j 1442 drivers/hid/hid-input.c if (field->usage[j].type == EV_LED) j 1454 drivers/hid/hid-input.c int i, j; j 1462 drivers/hid/hid-input.c for (j = 0; j < field->maxusage; j++) j 1463 drivers/hid/hid-input.c if (field->usage[j].type == EV_LED && j 1464 drivers/hid/hid-input.c field->value[j]) j 1563 drivers/hid/hid-input.c int i, j; j 1590 drivers/hid/hid-input.c for (j = 0; j < report->field[i]->maxusage; j++) { j 1591 drivers/hid/hid-input.c usage = &report->field[i]->usage[j]; j 1596 drivers/hid/hid-input.c report->field[i]->value[j] = value; j 1635 drivers/hid/hid-input.c int i, j; j 1644 drivers/hid/hid-input.c for (j = 0; j < rep->field[i]->maxusage; j++) { j 1645 drivers/hid/hid-input.c usage = &rep->field[i]->usage[j]; j 1842 drivers/hid/hid-input.c int i, j; j 1845 drivers/hid/hid-input.c for (j = 0; j < report->field[i]->maxusage; j++) j 1847 drivers/hid/hid-input.c report->field[i]->usage + j); j 786 drivers/hid/hid-lg4ff.c u8 j; j 788 drivers/hid/hid-lg4ff.c for (j = 0; j < 7; j++) j 789 drivers/hid/hid-lg4ff.c value[j] = s->cmd[j + (7*i)]; j 1265 drivers/hid/hid-lg4ff.c int error, i, j; j 1337 drivers/hid/hid-lg4ff.c for (j = 0; lg4ff_devices[i].ff_effects[j] >= 0; j++) j 1338 drivers/hid/hid-lg4ff.c set_bit(lg4ff_devices[i].ff_effects[j], dev->ffbit); j 1390 drivers/hid/hid-lg4ff.c for (j = 0; j < 5; j++) j 1391 drivers/hid/hid-lg4ff.c entry->wdata.led[j] = NULL; j 1403 drivers/hid/hid-lg4ff.c for (j = 0; j < 5; j++) { j 1406 drivers/hid/hid-lg4ff.c hid_err(hid, "can't allocate memory for LED %d\n", j); j 1411 drivers/hid/hid-lg4ff.c snprintf(name, name_sz, "%s::RPM%d", dev_name(&hid->dev), j+1); j 1418 drivers/hid/hid-lg4ff.c entry->wdata.led[j] = led; j 1422 drivers/hid/hid-lg4ff.c hid_err(hid, "failed to register LED %d. Aborting.\n", j); j 1425 drivers/hid/hid-lg4ff.c for (j = 0; j < 5; j++) { j 1426 drivers/hid/hid-lg4ff.c led = entry->wdata.led[j]; j 1427 drivers/hid/hid-lg4ff.c entry->wdata.led[j] = NULL; j 1472 drivers/hid/hid-lg4ff.c int j; j 1476 drivers/hid/hid-lg4ff.c for (j = 0; j < 5; j++) { j 1478 drivers/hid/hid-lg4ff.c led = entry->wdata.led[j]; j 1479 drivers/hid/hid-lg4ff.c entry->wdata.led[j] = NULL; j 2102 drivers/hid/hid-logitech-hidpp.c int error, j, num_slots = data->num_effects; j 2121 drivers/hid/hid-logitech-hidpp.c for (j = 0; hidpp_ff_effects[j] >= 0; j++) j 2122 drivers/hid/hid-logitech-hidpp.c set_bit(hidpp_ff_effects[j], dev->ffbit); j 2124 drivers/hid/hid-logitech-hidpp.c for (j = 0; hidpp_ff_effects_v2[j] >= 0; j++) j 2125 drivers/hid/hid-logitech-hidpp.c set_bit(hidpp_ff_effects_v2[j], dev->ffbit); j 2154 drivers/hid/hid-logitech-hidpp.c for (j = 0; j < num_slots; j++) j 2155 drivers/hid/hid-logitech-hidpp.c data->effect_ids[j] = -1; j 1487 drivers/hid/hid-multitouch.c int i, j; j 1500 drivers/hid/hid-multitouch.c for (j = 0; j < rep->field[i]->maxusage; j++) { j 1501 drivers/hid/hid-multitouch.c usage = &rep->field[i]->usage[j]; j 75 drivers/hid/hid-picolcd_core.c int i, j, k; j 93 drivers/hid/hid-picolcd_core.c for (j = 0; j < report->field[i]->report_count; j++) { j 94 drivers/hid/hid-picolcd_core.c hid_set_field(report->field[i], j, k < size ? raw_data[k] : 0); j 124 drivers/hid/hid-picolcd_core.c int i, j; j 131 drivers/hid/hid-picolcd_core.c for (j = 0; j < sizeof(data->pressed_keys); j++) j 132 drivers/hid/hid-picolcd_core.c if (data->pressed_keys[j] == raw_data[i]) j 134 drivers/hid/hid-picolcd_core.c for (j = 0; j < sizeof(data->pressed_keys); j++) j 135 drivers/hid/hid-picolcd_core.c if (data->pressed_keys[j] == 0) { j 136 drivers/hid/hid-picolcd_core.c data->pressed_keys[j] = raw_data[i]; j 155 drivers/hid/hid-picolcd_core.c for (j = 0; j < sizeof(data->pressed_keys); j++) { j 157 drivers/hid/hid-picolcd_core.c if (data->pressed_keys[j] == 0) j 160 drivers/hid/hid-picolcd_core.c if (data->pressed_keys[j] == raw_data[i]) j 162 drivers/hid/hid-picolcd_core.c input_event(data->input_keys, EV_MSC, MSC_SCAN, data->pressed_keys[j]); j 163 drivers/hid/hid-picolcd_core.c if (data->pressed_keys[j] < PICOLCD_KEYS) j 164 drivers/hid/hid-picolcd_core.c key_code = data->keycode[data->pressed_keys[j]]; j 169 drivers/hid/hid-picolcd_core.c data->pressed_keys[j], key_code); j 173 drivers/hid/hid-picolcd_core.c data->pressed_keys[j] = 0; j 371 drivers/hid/hid-picolcd_debugfs.c int i, j; j 372 drivers/hid/hid-picolcd_debugfs.c for (i = j = 0; i < data_len && j + 4 < dst_sz; i++) { j 373 drivers/hid/hid-picolcd_debugfs.c dst[j++] = hex_asc[(data[i] >> 4) & 0x0f]; j 374 drivers/hid/hid-picolcd_debugfs.c dst[j++] = hex_asc[data[i] & 0x0f]; j 375 drivers/hid/hid-picolcd_debugfs.c dst[j++] = ' '; j 377 drivers/hid/hid-picolcd_debugfs.c dst[j] = '\0'; j 378 drivers/hid/hid-picolcd_debugfs.c if (j > 0) j 379 drivers/hid/hid-picolcd_debugfs.c dst[j-1] = '\n'; j 380 drivers/hid/hid-picolcd_debugfs.c if (i < data_len && j > 2) j 381 drivers/hid/hid-picolcd_debugfs.c dst[j-2] = dst[j-3] = '.'; j 189 drivers/hid/hid-picolcd_fb.c int i, j; j 198 drivers/hid/hid-picolcd_fb.c for (j = 0; j < report->field[0]->maxusage; j++) j 199 drivers/hid/hid-picolcd_fb.c if (j == 0) j 200 drivers/hid/hid-picolcd_fb.c hid_set_field(report->field[0], j, i << 2); j 201 drivers/hid/hid-picolcd_fb.c else if (j < sizeof(mapcmd)) j 202 drivers/hid/hid-picolcd_fb.c hid_set_field(report->field[0], j, mapcmd[j]); j 204 drivers/hid/hid-picolcd_fb.c hid_set_field(report->field[0], j, 0); j 339 drivers/hid/hid-prodikeys.c unsigned i, j; j 343 drivers/hid/hid-prodikeys.c for (j = 0; j < num_notes; j++) { j 344 drivers/hid/hid-prodikeys.c note = data[j*2+1]; j 345 drivers/hid/hid-prodikeys.c velocity = data[j*2+2]; j 563 drivers/hid/hid-sensor-custom.c int i, j; j 565 drivers/hid/hid-sensor-custom.c for (j = 0; j < HID_REPORT_TYPES; ++j) { j 566 drivers/hid/hid-sensor-custom.c if (j == HID_OUTPUT_REPORT) j 570 drivers/hid/hid-sensor-custom.c &hdev->report_enum[j], j); j 578 drivers/hid/hid-sensor-custom.c j = 0; j 579 drivers/hid/hid-sensor-custom.c while (j < HID_CUSTOM_TOTAL_ATTRS && j 580 drivers/hid/hid-sensor-custom.c hid_custom_attrs[j].name) { j 583 drivers/hid/hid-sensor-custom.c device_attr = &sensor_inst->fields[i].sd_attrs[j]; j 585 drivers/hid/hid-sensor-custom.c snprintf((char *)&sensor_inst->fields[i].attr_name[j], j 588 drivers/hid/hid-sensor-custom.c hid_custom_attrs[j].name); j 591 drivers/hid/hid-sensor-custom.c (char *)&sensor_inst->fields[i].attr_name[j]; j 592 drivers/hid/hid-sensor-custom.c device_attr->attr.mode = hid_custom_attrs[j].mode; j 594 drivers/hid/hid-sensor-custom.c if (hid_custom_attrs[j].mode & S_IWUSR) j 596 drivers/hid/hid-sensor-custom.c sensor_inst->fields[i].attrs[j] = &device_attr->attr; j 597 drivers/hid/hid-sensor-custom.c ++j; j 599 drivers/hid/hid-sensor-custom.c sensor_inst->fields[i].attrs[j] = NULL; j 1399 drivers/hid/hid-wiimote-modules.c int i, j, ret; j 1423 drivers/hid/hid-wiimote-modules.c for (j = 0; j < 4; ++j) { j 1424 drivers/hid/hid-wiimote-modules.c wdata->state.calib_bboard[j][i] = buf[offs]; j 1425 drivers/hid/hid-wiimote-modules.c wdata->state.calib_bboard[j][i] <<= 8; j 1426 drivers/hid/hid-wiimote-modules.c wdata->state.calib_bboard[j][i] |= buf[offs + 1]; j 1434 drivers/hid/hid-wiimote-modules.c for (j = 0; j < 4; ++j) { j 1435 drivers/hid/hid-wiimote-modules.c val = wdata->state.calib_bboard[j][i]; j 1436 drivers/hid/hid-wiimote-modules.c if (i == 2 && j == 3) j 1451 drivers/hid/hid-wiimote-modules.c int ret, i, j; j 1471 drivers/hid/hid-wiimote-modules.c for (j = 0; j < 4; ++j) { j 1472 drivers/hid/hid-wiimote-modules.c wdata->state.calib_bboard[j][i] = buf[offs]; j 1473 drivers/hid/hid-wiimote-modules.c wdata->state.calib_bboard[j][i] <<= 8; j 1474 drivers/hid/hid-wiimote-modules.c wdata->state.calib_bboard[j][i] |= buf[offs + 1]; j 64 drivers/hid/intel-ish-hid/ishtp-hid-client.c int i, j; j 277 drivers/hid/intel-ish-hid/ishtp-hid-client.c for (j = 0; j < reports_list->num_of_reports; j++) { j 22 drivers/hid/intel-ish-hid/ishtp/client-buffers.c int j; j 27 drivers/hid/intel-ish-hid/ishtp/client-buffers.c for (j = 0; j < cl->rx_ring_size; ++j) { j 60 drivers/hid/intel-ish-hid/ishtp/client-buffers.c int j; j 66 drivers/hid/intel-ish-hid/ishtp/client-buffers.c for (j = 0; j < cl->tx_ring_size; ++j) { j 102 drivers/hid/intel-ish-hid/ishtp/dma-if.c int i, j, free; j 110 drivers/hid/intel-ish-hid/ishtp/dma-if.c for (j = 0; j < required_slots; j++) j 111 drivers/hid/intel-ish-hid/ishtp/dma-if.c if (dev->ishtp_dma_tx_map[i+j]) { j 113 drivers/hid/intel-ish-hid/ishtp/dma-if.c i += j; j 118 drivers/hid/intel-ish-hid/ishtp/dma-if.c for (j = 0; j < required_slots; j++) j 119 drivers/hid/intel-ish-hid/ishtp/dma-if.c dev->ishtp_dma_tx_map[i+j] = 1; j 146 drivers/hid/intel-ish-hid/ishtp/dma-if.c int i, j; j 155 drivers/hid/intel-ish-hid/ishtp/dma-if.c for (j = 0; j < acked_slots; j++) { j 156 drivers/hid/intel-ish-hid/ishtp/dma-if.c if ((i + j) >= dev->ishtp_dma_num_slots || j 157 drivers/hid/intel-ish-hid/ishtp/dma-if.c !dev->ishtp_dma_tx_map[i+j]) { j 163 drivers/hid/intel-ish-hid/ishtp/dma-if.c dev->ishtp_dma_tx_map[i+j] = 0; j 808 drivers/hid/usbhid/hid-core.c int i, j; j 813 drivers/hid/usbhid/hid-core.c for (j = 0; j < field->maxusage; j++) { j 814 drivers/hid/usbhid/hid-core.c usage = &field->usage[j]; j 818 drivers/hid/usbhid/hid-core.c return j; j 453 drivers/hid/usbhid/hid-pidff.c int j; j 464 drivers/hid/usbhid/hid-pidff.c for (j = 0; j < 60; j++) { j 761 drivers/hid/usbhid/hid-pidff.c int i, j, k, found; j 771 drivers/hid/usbhid/hid-pidff.c for (j = 0; j < report->field[i]->maxusage; j++) { j 772 drivers/hid/usbhid/hid-pidff.c if (report->field[i]->usage[j].hid == j 775 drivers/hid/usbhid/hid-pidff.c k, i, j); j 778 drivers/hid/usbhid/hid-pidff.c &report->field[i]->value[j]; j 898 drivers/hid/usbhid/hid-pidff.c int i, j; j 902 drivers/hid/usbhid/hid-pidff.c for (j = 0; j < fld->maxusage; j++) { j 903 drivers/hid/usbhid/hid-pidff.c if (fld->usage[j].hid == (HID_UP_PID | usagetable[i])) { j 904 drivers/hid/usbhid/hid-pidff.c keys[i] = j + 1; j 111 drivers/hid/usbhid/hiddev.c int i, j; j 126 drivers/hid/usbhid/hiddev.c for (j = 0; j < field->maxusage; j++) { j 127 drivers/hid/usbhid/hiddev.c if (field->usage[j].hid == uref->usage_code) { j 130 drivers/hid/usbhid/hiddev.c uref->usage_index = j; j 98 drivers/hid/wacom_sys.c int i, j; j 105 drivers/hid/wacom_sys.c for (j = 0; j < report->field[i]->maxusage; j++) { j 107 drivers/hid/wacom_sys.c struct hid_usage *usage = &field->usage[j]; j 121 drivers/hid/wacom_sys.c value = hid_field_extract(hdev, raw_data+1, offset + j * size, size); j 516 drivers/hid/wacom_sys.c int i, j; j 526 drivers/hid/wacom_sys.c for (j = 0; j < hreport->field[i]->maxusage; j++) { j 528 drivers/hid/wacom_sys.c hreport->field[i]->usage + j); j 541 drivers/hid/wacom_sys.c for (j = 0; j < hreport->field[i]->maxusage; j++) j 543 drivers/hid/wacom_sys.c hreport->field[i]->usage + j); j 1151 drivers/hid/wacom_wac.c int j = i * 6; j 1152 drivers/hid/wacom_wac.c int serial = (data[j+6] << 16) + (data[j+5] << 8) + data[j+4]; j 1153 drivers/hid/wacom_wac.c bool connected = data[j+2]; j 1368 drivers/hid/wacom_wac.c int i, j; j 1387 drivers/hid/wacom_wac.c for (j = 0; j < contacts_to_send; j++) { j 1388 drivers/hid/wacom_wac.c unsigned char *touch = &frame[j*finger_touch_len + 1]; j 2625 drivers/hid/wacom_wac.c int j; j 2627 drivers/hid/wacom_wac.c for (j = 0; j < field->maxusage; j++) { j 2628 drivers/hid/wacom_wac.c struct hid_usage *usage = &field->usage[j]; j 2646 drivers/hid/wacom_wac.c hid_data->cc_value_index = j; j 213 drivers/hv/channel_mgmt.c int i, j; j 237 drivers/hv/channel_mgmt.c for (j = 0; j < negop->icframe_vercnt; j++) { j 238 drivers/hv/channel_mgmt.c if ((negop->icversion_data[j].major == fw_major) && j 239 drivers/hv/channel_mgmt.c (negop->icversion_data[j].minor == fw_minor)) { j 240 drivers/hv/channel_mgmt.c icframe_major = negop->icversion_data[j].major; j 241 drivers/hv/channel_mgmt.c icframe_minor = negop->icversion_data[j].minor; j 260 drivers/hv/channel_mgmt.c for (j = negop->icframe_vercnt; j 261 drivers/hv/channel_mgmt.c (j < negop->icframe_vercnt + negop->icmsg_vercnt); j 262 drivers/hv/channel_mgmt.c j++) { j 264 drivers/hv/channel_mgmt.c if ((negop->icversion_data[j].major == srv_major) && j 265 drivers/hv/channel_mgmt.c (negop->icversion_data[j].minor == srv_minor)) { j 267 drivers/hv/channel_mgmt.c icmsg_major = negop->icversion_data[j].major; j 268 drivers/hv/channel_mgmt.c icmsg_minor = negop->icversion_data[j].minor; j 1213 drivers/hv/hv_balloon.c unsigned int i, j; j 1243 drivers/hv/hv_balloon.c for (j = 0; j < (1 << get_order(alloc_unit << PAGE_SHIFT)); j++) j 1244 drivers/hv/hv_balloon.c __SetPageOffline(pg + j); j 687 drivers/hwmon/abituguru.c int i, j; j 714 drivers/hwmon/abituguru.c for (j = 0; j < data->bank1_sensors[ABIT_UGURU_TEMP_SENSOR]; j 715 drivers/hwmon/abituguru.c j++) { j 716 drivers/hwmon/abituguru.c if (data->bank1_address[ABIT_UGURU_TEMP_SENSOR][j] == j 720 drivers/hwmon/abituguru.c if (j == data->bank1_sensors[ABIT_UGURU_TEMP_SENSOR]) { j 729 drivers/hwmon/abituguru.c for (j = 1; j < 5; j++) { j 732 drivers/hwmon/abituguru.c if ((i == 0) && ((j == 1) || (j == 2))) j 735 drivers/hwmon/abituguru.c min = abituguru_pwm_min[j]; j 736 drivers/hwmon/abituguru.c if (data->pwm_settings[i][j] < min) { j 740 drivers/hwmon/abituguru.c "value (%d)\n", i, j, j 741 drivers/hwmon/abituguru.c (int)data->pwm_settings[i][j], j 745 drivers/hwmon/abituguru.c if (data->pwm_settings[i][j] > abituguru_pwm_max[j]) { j 749 drivers/hwmon/abituguru.c "value (%d)\n", i, j, j 750 drivers/hwmon/abituguru.c (int)data->pwm_settings[i][j], j 751 drivers/hwmon/abituguru.c (int)abituguru_pwm_max[j]); j 1260 drivers/hwmon/abituguru.c int i, j, used, sysfs_names_free, sysfs_attr_i, res = -ENODEV; j 1340 drivers/hwmon/abituguru.c for (j = 0; j < (res ? 7 : 9); j++) { j 1342 drivers/hwmon/abituguru.c abituguru_sysfs_bank1_templ[res][j].dev_attr. j 1346 drivers/hwmon/abituguru.c abituguru_sysfs_bank1_templ[res][j]; j 1363 drivers/hwmon/abituguru.c for (j = 0; j < ARRAY_SIZE(abituguru_sysfs_fan_templ); j++) { j 1365 drivers/hwmon/abituguru.c abituguru_sysfs_fan_templ[j].dev_attr.attr.name, j 1368 drivers/hwmon/abituguru.c abituguru_sysfs_fan_templ[j]; j 1380 drivers/hwmon/abituguru.c for (j = 0; j < ARRAY_SIZE(abituguru_sysfs_pwm_templ); j++) { j 1382 drivers/hwmon/abituguru.c abituguru_sysfs_pwm_templ[j].dev_attr.attr.name, j 1385 drivers/hwmon/abituguru.c abituguru_sysfs_pwm_templ[j]; j 963 drivers/hwmon/abituguru3.c int i, j, type, used, sysfs_names_free, sysfs_attr_i, res = -ENODEV; j 1014 drivers/hwmon/abituguru3.c for (j = 0; j < no_sysfs_attr[type]; j++) { j 1016 drivers/hwmon/abituguru3.c abituguru3_sysfs_templ[type][j].dev_attr.attr. j 1019 drivers/hwmon/abituguru3.c abituguru3_sysfs_templ[type][j]; j 1205 drivers/hwmon/asc7621.c int i, j; j 1213 drivers/hwmon/asc7621.c for (j = 0; j < ARRAY_SIZE(asc7621_params[i].msb); j++) j 1214 drivers/hwmon/asc7621.c asc7621_register_priorities[asc7621_params[i].msb[j]] = j 1216 drivers/hwmon/asc7621.c for (j = 0; j < ARRAY_SIZE(asc7621_params[i].lsb); j++) j 1217 drivers/hwmon/asc7621.c asc7621_register_priorities[asc7621_params[i].lsb[j]] = j 586 drivers/hwmon/hwmon.c int i, j, err, id; j 660 drivers/hwmon/hwmon.c for (j = 0; info[i]->config[j]; j++) { j 662 drivers/hwmon/hwmon.c hwmon_temp_input, j)) j 664 drivers/hwmon/hwmon.c if (info[i]->config[j] & HWMON_T_INPUT) { j 665 drivers/hwmon/hwmon.c err = hwmon_thermal_add_sensor(hdev, j); j 252 drivers/hwmon/i5k_amb.c int i, j, k, d = 0; j 273 drivers/hwmon/i5k_amb.c for (j = 0; j < REAL_MAX_AMBS_PER_CHANNEL; j++, c >>= 1) { j 276 drivers/hwmon/i5k_amb.c k = amb_num_from_reg(i, j); j 364 drivers/hwmon/ibmpex.c int i, j, err; j 405 drivers/hwmon/ibmpex.c for (j = 0; j < PEX_NUM_SENSOR_FUNCS; j++) { j 407 drivers/hwmon/ibmpex.c i, j); j 430 drivers/hwmon/ibmpex.c for (j = 0; j < PEX_NUM_SENSOR_FUNCS; j++) { j 431 drivers/hwmon/ibmpex.c if (!data->sensors[i].attr[j].dev_attr.attr.name) j 434 drivers/hwmon/ibmpex.c &data->sensors[i].attr[j].dev_attr); j 435 drivers/hwmon/ibmpex.c kfree(data->sensors[i].attr[j].dev_attr.attr.name); j 514 drivers/hwmon/ibmpex.c int i, j; j 520 drivers/hwmon/ibmpex.c for (j = 0; j < PEX_NUM_SENSOR_FUNCS; j++) { j 521 drivers/hwmon/ibmpex.c if (!data->sensors[i].attr[j].dev_attr.attr.name) j 524 drivers/hwmon/ibmpex.c &data->sensors[i].attr[j].dev_attr); j 525 drivers/hwmon/ibmpex.c kfree(data->sensors[i].attr[j].dev_attr.attr.name); j 191 drivers/hwmon/lm87.c int i, j; j 196 drivers/hwmon/lm87.c j = (data->channel & CHAN_TEMP3) ? 5 : 6; j 197 drivers/hwmon/lm87.c for (; i < j; i++) { j 223 drivers/hwmon/lm87.c j = (data->channel & CHAN_TEMP3) ? 3 : 2; j 224 drivers/hwmon/lm87.c for (i = 0 ; i < j; i++) { j 234 drivers/hwmon/lm87.c j = lm87_read_value(client, LM87_REG_TEMP_HW_INT); j 235 drivers/hwmon/lm87.c data->temp_crit_int = min(i, j); j 238 drivers/hwmon/lm87.c j = lm87_read_value(client, LM87_REG_TEMP_HW_EXT); j 239 drivers/hwmon/lm87.c data->temp_crit_ext = min(i, j); j 1034 drivers/hwmon/lm93.c int i, j; j 1073 drivers/hwmon/lm93.c for (j = 0; j < 4; j++) { j 1074 drivers/hwmon/lm93.c data->block9[i][j] = j 1075 drivers/hwmon/lm93.c lm93_read_byte(client, LM93_REG_PWM_CTL(i, j)); j 503 drivers/hwmon/max16065.c int i, j, val; j 535 drivers/hwmon/max16065.c for (j = 0; j < 4 && i * 4 + j < data->num_adc; j++) { j 536 drivers/hwmon/max16065.c data->range[i * 4 + j] = j 537 drivers/hwmon/max16065.c max16065_adc_range[(val >> (j * 2)) & 0x3]; j 546 drivers/hwmon/max16065.c for (j = 0; j < data->num_adc; j++) { j 548 drivers/hwmon/max16065.c MAX16065_LIMIT(i, j)); j 551 drivers/hwmon/max16065.c data->limit[i][j] = LIMIT_TO_MV(val, data->range[j]); j 404 drivers/hwmon/nct6683.c int i, j, count; j 435 drivers/hwmon/nct6683.c for (j = 0; *t != NULL; j++) { j 597 drivers/hwmon/nct6683.c int i, j; j 604 drivers/hwmon/nct6683.c for (j = 0; j < 3; j++) { j 605 drivers/hwmon/nct6683.c int reg = get_in_reg(data, j, i); j 608 drivers/hwmon/nct6683.c data->in[j][i] = j 619 drivers/hwmon/nct6683.c for (j = 0; j < 4; j++) { j 620 drivers/hwmon/nct6683.c int reg = get_temp_reg(data, j, i); j 623 drivers/hwmon/nct6683.c data->temp[j][i] = j 1626 drivers/hwmon/nct6775.c int i, j; j 1640 drivers/hwmon/nct6775.c for (j = 0; j < ARRAY_SIZE(data->REG_PWM); j++) { j 1641 drivers/hwmon/nct6775.c if (data->REG_PWM[j] && data->REG_PWM[j][i]) { j 1642 drivers/hwmon/nct6775.c data->pwm[j][i] j 1644 drivers/hwmon/nct6775.c data->REG_PWM[j][i]); j 1685 drivers/hwmon/nct6775.c for (j = 0; j < ARRAY_SIZE(data->weight_temp); j++) { j 1686 drivers/hwmon/nct6775.c data->weight_temp[j][i] j 1688 drivers/hwmon/nct6775.c data->REG_WEIGHT_TEMP[j][i]); j 1696 drivers/hwmon/nct6775.c int i, j; j 1704 drivers/hwmon/nct6775.c for (j = 0; j < ARRAY_SIZE(data->fan_time); j++) { j 1705 drivers/hwmon/nct6775.c data->fan_time[j][i] = j 1706 drivers/hwmon/nct6775.c nct6775_read_value(data, data->REG_FAN_TIME[j][i]); j 1723 drivers/hwmon/nct6775.c for (j = 0; j < data->auto_pwm_num; j++) { j 1724 drivers/hwmon/nct6775.c data->auto_pwm[i][j] = j 1726 drivers/hwmon/nct6775.c NCT6775_AUTO_PWM(data, i, j)); j 1727 drivers/hwmon/nct6775.c data->auto_temp[i][j] = j 1729 drivers/hwmon/nct6775.c NCT6775_AUTO_TEMP(data, i, j)); j 1772 drivers/hwmon/nct6775.c int i, j; j 1826 drivers/hwmon/nct6775.c for (j = 0; j < ARRAY_SIZE(data->reg_temp); j++) { j 1827 drivers/hwmon/nct6775.c if (data->reg_temp[j][i]) j 1828 drivers/hwmon/nct6775.c data->temp[j][i] j 1830 drivers/hwmon/nct6775.c data->reg_temp[j][i]); j 4647 drivers/hwmon/nct6775.c int i, j, err = 0; j 4693 drivers/hwmon/nct6775.c for (j = 1; j < ARRAY_SIZE(data->reg_temp); j++) j 4694 drivers/hwmon/nct6775.c if (data->reg_temp[j][i]) j 4695 drivers/hwmon/nct6775.c nct6775_write_temp(data, data->reg_temp[j][i], j 4696 drivers/hwmon/nct6775.c data->temp[j][i]); j 870 drivers/hwmon/occ/common.c unsigned int j; j 875 drivers/hwmon/occ/common.c for (j = 0; j < 4; ++j) { j 567 drivers/hwmon/pmbus/pmbus_core.c int i, j; j 572 drivers/hwmon/pmbus/pmbus_core.c for (j = 0; j < ARRAY_SIZE(pmbus_status); j++) { j 573 drivers/hwmon/pmbus/pmbus_core.c struct _pmbus_status *s = &pmbus_status[j]; j 81 drivers/hwmon/pmbus/ucd9200.c int i, j, ret; j 159 drivers/hwmon/pmbus/ucd9200.c for (j = 0; j < 3; j++) { j 180 drivers/hwmon/tmp401.c int i, j, val; j 185 drivers/hwmon/tmp401.c for (j = 0; j < num_regs; j++) { /* temp / low / ... */ j 189 drivers/hwmon/tmp401.c TMP432_TEMP_MSB_READ[j][i] : j 190 drivers/hwmon/tmp401.c TMP401_TEMP_MSB_READ[j][i]; j 191 drivers/hwmon/tmp401.c if (j == 3) { /* crit is msb only */ j 200 drivers/hwmon/tmp401.c data->temp[j][i] = j == 3 ? val << 8 : val; j 1490 drivers/hwmon/w83791d.c int i, j; j 1576 drivers/hwmon/w83791d.c for (j = 0; j < 3; j++) { j 1577 drivers/hwmon/w83791d.c data->temp_add[i][j] = j 1579 drivers/hwmon/w83791d.c W83791D_REG_TEMP_ADD[i][j * 2]) << 8) | j 1581 drivers/hwmon/w83791d.c W83791D_REG_TEMP_ADD[i][j * 2 + 1]); j 1623 drivers/hwmon/w83791d.c int i = 0, j = 0; j 1647 drivers/hwmon/w83791d.c for (j = 0; j < 3; j++) { j 1648 drivers/hwmon/w83791d.c dev_dbg(dev, "temp_add[%d][%d] is: 0x%04x\n", i, j, j 1649 drivers/hwmon/w83791d.c (u16) data->temp_add[i][j]); j 1491 drivers/hwmon/w83792d.c int i, j; j 1535 drivers/hwmon/w83792d.c for (j = 0; j < 6; j++) { j 1536 drivers/hwmon/w83792d.c data->temp_add[i][j] = w83792d_read_value( j 1537 drivers/hwmon/w83792d.c client, W83792D_REG_TEMP_ADD[i][j]); j 1579 drivers/hwmon/w83792d.c for (j = 0; j < 4; j++) { j 1580 drivers/hwmon/w83792d.c data->sf2_points[i][j] j 1582 drivers/hwmon/w83792d.c W83792D_REG_POINTS[i][j]) & 0x7f; j 1614 drivers/hwmon/w83792d.c int i = 0, j = 0; j 1635 drivers/hwmon/w83792d.c for (j = 0; j < 6; j++) { j 1636 drivers/hwmon/w83792d.c dev_dbg(dev, "temp_add[%d][%d] is: 0x%x\n", i, j, j 1637 drivers/hwmon/w83792d.c data->temp_add[i][j]); j 1798 drivers/hwmon/w83793.c int j; j 1801 drivers/hwmon/w83793.c for (j = 0; j < files_temp; j++) { j 1804 drivers/hwmon/w83793.c + j].dev_attr); j 1811 drivers/hwmon/w83793.c int j; j 1814 drivers/hwmon/w83793.c for (j = 0; j < files_fan; j++) { j 1817 drivers/hwmon/w83793.c + j].dev_attr); j 1824 drivers/hwmon/w83793.c int j; j 1827 drivers/hwmon/w83793.c for (j = 0; j < files_pwm; j++) { j 1830 drivers/hwmon/w83793.c + j].dev_attr); j 1947 drivers/hwmon/w83793.c int i, j; j 1958 drivers/hwmon/w83793.c for (j = 0; j < ARRAY_SIZE(data->in); j++) { j 1959 drivers/hwmon/w83793.c data->in[j][i] = j 1960 drivers/hwmon/w83793.c w83793_read_value(client, W83793_REG_IN[j][i]); j 1981 drivers/hwmon/w83793.c for (j = 1; j < 5; j++) { j 1982 drivers/hwmon/w83793.c data->temp[i][j] = j 1983 drivers/hwmon/w83793.c w83793_read_value(client, W83793_REG_TEMP[i][j]); j 1987 drivers/hwmon/w83793.c for (j = 0; j < 7; j++) { j 1988 drivers/hwmon/w83793.c data->sf2_pwm[i][j] = j 1989 drivers/hwmon/w83793.c w83793_read_value(client, W83793_REG_SF2_PWM(i, j)); j 1990 drivers/hwmon/w83793.c data->sf2_temp[i][j] = j 1992 drivers/hwmon/w83793.c W83793_REG_SF2_TEMP(i, j)); j 1989 drivers/hwmon/w83795.c int err, i, j; j 1994 drivers/hwmon/w83795.c for (j = 0; j < ARRAY_SIZE(w83795_in[0]); j++) { j 1995 drivers/hwmon/w83795.c if (j == 4 && !data->enable_beep) j 1997 drivers/hwmon/w83795.c err = fn(dev, &w83795_in[i][j].dev_attr); j 2006 drivers/hwmon/w83795.c for (j = 0; j < ARRAY_SIZE(w83795_fan[0]); j++) { j 2007 drivers/hwmon/w83795.c if (j == 3 && !data->enable_beep) j 2009 drivers/hwmon/w83795.c err = fn(dev, &w83795_fan[i][j].dev_attr); j 2016 drivers/hwmon/w83795.c j = w83795_tss_useful(data, i); j 2017 drivers/hwmon/w83795.c if (!j) j 2039 drivers/hwmon/w83795.c for (j = 0; j < NUM_PWM_ATTRIBUTES; j++) { j 2040 drivers/hwmon/w83795.c err = fn(dev, &w83795_pwm[i][j].dev_attr); j 2049 drivers/hwmon/w83795.c for (j = 0; j < NUM_TEMP_ATTRIBUTES; j++) { j 2050 drivers/hwmon/w83795.c if (j == 7 && !data->enable_beep) j 2052 drivers/hwmon/w83795.c err = fn(dev, &w83795_temp[i][j].dev_attr); j 2062 drivers/hwmon/w83795.c for (j = 0; j < ARRAY_SIZE(w83795_dts[0]); j++) { j 2063 drivers/hwmon/w83795.c if (j == 7 && !data->enable_beep) j 2065 drivers/hwmon/w83795.c err = fn(dev, &w83795_dts[i][j].dev_attr); j 154 drivers/hwmon/w83l786ng.c int i, j; j 200 drivers/hwmon/w83l786ng.c for (j = 0; j < 3; j++) { j 201 drivers/hwmon/w83l786ng.c data->temp[i][j] = w83l786ng_read_value(client, j 202 drivers/hwmon/w83l786ng.c W83L786NG_REG_TEMP[i][j]); j 1718 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c u8 i, j, maskbyte; j 1799 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c for (j = 0; j < 8; j++) { j 1801 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c config->ctxid_pid[i] &= ~(0xFFUL << (j * 8)); j 1907 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c u8 i, j, maskbyte; j 1982 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c for (j = 0; j < 8; j++) { j 1984 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c config->vmid_val[i] &= ~(0xFFUL << (j * 8)); j 413 drivers/hwtracing/intel_th/gth.c int i, j, nouts = TH_POSSIBLE_OUTPUTS; j 428 drivers/hwtracing/intel_th/gth.c for (j = 0; j < nparms; j++) { j 429 drivers/hwtracing/intel_th/gth.c unsigned int idx = i * nparms + j; j 433 drivers/hwtracing/intel_th/gth.c output_parms[j].name); j 439 drivers/hwtracing/intel_th/gth.c if (output_parms[j].readable) { j 444 drivers/hwtracing/intel_th/gth.c if (output_parms[j].writable) { j 454 drivers/hwtracing/intel_th/gth.c out_attrs[idx].parm = j; j 133 drivers/i2c/busses/i2c-au1550.c int j; j 138 drivers/i2c/busses/i2c-au1550.c j = adap->xfer_timeout * 100; j 140 drivers/i2c/busses/i2c-au1550.c j--; j 141 drivers/i2c/busses/i2c-au1550.c if (j <= 0) j 145 drivers/i2c/busses/i2c-au1550.c j = 0; j 148 drivers/i2c/busses/i2c-au1550.c } while (j > 0); j 346 drivers/i2c/busses/i2c-diolan-u2c.c int i, j; j 365 drivers/i2c/busses/i2c-diolan-u2c.c for (j = 0; j < pmsg->len; j++) { j 367 drivers/i2c/busses/i2c-diolan-u2c.c bool ack = j < pmsg->len - 1; j 373 drivers/i2c/busses/i2c-diolan-u2c.c if (j == 0 && (pmsg->flags & I2C_M_RECV_LEN)) j 382 drivers/i2c/busses/i2c-diolan-u2c.c if (j == 0 && (pmsg->flags & I2C_M_RECV_LEN)) { j 390 drivers/i2c/busses/i2c-diolan-u2c.c pmsg->buf[j] = byte; j 393 drivers/i2c/busses/i2c-diolan-u2c.c for (j = 0; j < pmsg->len; j++) { j 395 drivers/i2c/busses/i2c-diolan-u2c.c pmsg->buf[j]); j 733 drivers/i2c/busses/i2c-eg20t.c int i, j; j 810 drivers/i2c/busses/i2c-eg20t.c for (j = 0; j < i; j++) j 811 drivers/i2c/busses/i2c-eg20t.c i2c_del_adapter(&adap_info->pch_data[j].pch_adapter); j 462 drivers/i2c/busses/i2c-ibm_iic.c int i, j, loops, ret = 0; j 475 drivers/i2c/busses/i2c-ibm_iic.c for (j = 0; j < count; ++j) j 506 drivers/i2c/busses/i2c-ibm_iic.c for (j = 0; j < count; ++j) j 144 drivers/i2c/busses/i2c-mt7621.c int i, j, ret, len, page_len; j 191 drivers/i2c/busses/i2c-mt7621.c for (len = pmsg->len, j = 0; len > 0; len -= 8, j += 8) { j 198 drivers/i2c/busses/i2c-mt7621.c memcpy(data, &pmsg->buf[j], page_len); j 211 drivers/i2c/busses/i2c-mt7621.c memcpy(&pmsg->buf[j], data, page_len); j 667 drivers/i2c/busses/i2c-nomadik.c int j; j 672 drivers/i2c/busses/i2c-nomadik.c for (j = 0; j < 3; j++) { j 170 drivers/i2c/busses/i2c-nvidia-gpu.c int i, j; j 199 drivers/i2c/busses/i2c-nvidia-gpu.c for (j = 0; j < msgs[i].len; j++) { j 200 drivers/i2c/busses/i2c-nvidia-gpu.c status = gpu_i2c_write(i2cd, msgs[i].buf[j]); j 284 drivers/i2c/busses/i2c-ocores.c unsigned long j; j 286 drivers/i2c/busses/i2c-ocores.c j = jiffies + timeout; j 293 drivers/i2c/busses/i2c-ocores.c if (time_after(jiffies, j)) j 405 drivers/i2c/busses/i2c-octeon-core.c int i, j, ret = 0; j 431 drivers/i2c/busses/i2c-octeon-core.c for (i = 0, j = msgs[0].len - 1; i < msgs[0].len && i < 4; i++, j--) j 432 drivers/i2c/busses/i2c-octeon-core.c msgs[0].buf[j] = (cmd >> (8 * i)) & 0xff; j 436 drivers/i2c/busses/i2c-octeon-core.c for (i = 0; i < msgs[0].len - 4 && i < 4; i++, j--) j 437 drivers/i2c/busses/i2c-octeon-core.c msgs[0].buf[j] = (cmd >> (8 * i)) & 0xff; j 447 drivers/i2c/busses/i2c-octeon-core.c int i, j, ret = 0; j 464 drivers/i2c/busses/i2c-octeon-core.c for (i = 0, j = msgs[0].len - 1; i < msgs[0].len && i < 4; i++, j--) j 465 drivers/i2c/busses/i2c-octeon-core.c cmd |= (u64)msgs[0].buf[j] << (8 * i); j 470 drivers/i2c/busses/i2c-octeon-core.c for (i = 0; i < msgs[0].len - 4 && i < 4; i++, j--) j 471 drivers/i2c/busses/i2c-octeon-core.c ext |= (u64)msgs[0].buf[j] << (8 * i); j 491 drivers/i2c/busses/i2c-octeon-core.c int i, j, ret = 0; j 529 drivers/i2c/busses/i2c-octeon-core.c for (i = 0, j = msgs[1].len - 1; i < msgs[1].len && i < 4; i++, j--) j 530 drivers/i2c/busses/i2c-octeon-core.c msgs[1].buf[j] = (cmd >> (8 * i)) & 0xff; j 534 drivers/i2c/busses/i2c-octeon-core.c for (i = 0; i < msgs[1].len - 4 && i < 4; i++, j--) j 535 drivers/i2c/busses/i2c-octeon-core.c msgs[1].buf[j] = (cmd >> (8 * i)) & 0xff; j 546 drivers/i2c/busses/i2c-octeon-core.c int i, j, ret = 0; j 571 drivers/i2c/busses/i2c-octeon-core.c for (i = 0, j = msgs[1].len - 1; i < msgs[1].len && i < 4; i++, j--) j 572 drivers/i2c/busses/i2c-octeon-core.c cmd |= (u64)msgs[1].buf[j] << (8 * i); j 575 drivers/i2c/busses/i2c-octeon-core.c for (i = 0; i < msgs[1].len - 4 && i < 4; i++, j--) j 576 drivers/i2c/busses/i2c-octeon-core.c ext |= (u64)msgs[1].buf[j] << (8 * i); j 206 drivers/i2c/busses/i2c-qcom-geni.c int j, p; j 252 drivers/i2c/busses/i2c-qcom-geni.c for (j = 0; j < rxcnt; j++) { j 265 drivers/i2c/busses/i2c-qcom-geni.c for (j = 0; j < gi2c->tx_wm; j++) { j 1202 drivers/i2c/busses/i2c-qup.c int j; j 1204 drivers/i2c/busses/i2c-qup.c for (j = blk->rx_fifo_data_pos; j 1207 drivers/i2c/busses/i2c-qup.c if (j == 0) j 1213 drivers/i2c/busses/i2c-qup.c if (j == 3) j 1214 drivers/i2c/busses/i2c-qup.c j = 0; j 1216 drivers/i2c/busses/i2c-qup.c j++; j 1219 drivers/i2c/busses/i2c-qup.c blk->rx_fifo_data_pos = j; j 1264 drivers/i2c/busses/i2c-qup.c unsigned int j; j 1266 drivers/i2c/busses/i2c-qup.c for (j = blk->tx_fifo_data_pos; *len && blk->tx_fifo_free; j 1268 drivers/i2c/busses/i2c-qup.c blk->tx_fifo_data |= *(*data)++ << (j * 8); j 1269 drivers/i2c/busses/i2c-qup.c if (j == 3) { j 1273 drivers/i2c/busses/i2c-qup.c j = 0; j 1275 drivers/i2c/busses/i2c-qup.c j++; j 1279 drivers/i2c/busses/i2c-qup.c blk->tx_fifo_data_pos = j; j 335 drivers/i2c/busses/i2c-rk3x.c unsigned int i, j; j 342 drivers/i2c/busses/i2c-rk3x.c for (j = 0; j < 4; ++j) { j 351 drivers/i2c/busses/i2c-rk3x.c val |= byte << (j * 8); j 106 drivers/i2c/busses/i2c-tegra-bpmp.c unsigned int i, j, pos = 0; j 125 drivers/i2c/busses/i2c-tegra-bpmp.c for (j = 0; j < msg->len; j++) j 126 drivers/i2c/busses/i2c-tegra-bpmp.c buf[pos++] = msg->buf[j]; j 289 drivers/i2c/i2c-dev.c int j; j 290 drivers/i2c/i2c-dev.c for (j = 0; j < i; ++j) j 291 drivers/i2c/i2c-dev.c kfree(msgs[j].buf); j 213 drivers/i2c/muxes/i2c-demux-pinctrl.c int num_chan, i, j, err; j 276 drivers/i2c/muxes/i2c-demux-pinctrl.c for (j = 0; j < i; j++) { j 277 drivers/i2c/muxes/i2c-demux-pinctrl.c of_node_put(priv->chan[j].parent_np); j 278 drivers/i2c/muxes/i2c-demux-pinctrl.c of_changeset_destroy(&priv->chan[j].chgset); j 835 drivers/ide/ide-probe.c int i, j = 0; j 846 drivers/ide/ide-probe.c j++; j 850 drivers/ide/ide-probe.c return j; j 1196 drivers/ide/ide-probe.c u8 j = (hwif->index * MAX_DRIVES) + i; j 1212 drivers/ide/ide-probe.c drive->name[2] = 'a' + j; j 1439 drivers/ide/ide-probe.c int i, j = 0; j 1510 drivers/ide/ide-probe.c j++; j 1531 drivers/ide/ide-probe.c return j ? 0 : -1; j 182 drivers/ide/ide.c unsigned int a, b, i, j = 1; j 186 drivers/ide/ide.c if (sscanf(s, "%u.%u:%u", &a, &b, &j) != 3 && j 192 drivers/ide/ide.c if (i >= MAX_HWIFS * MAX_DRIVES || j > 1) j 195 drivers/ide/ide.c if (j) j 250 drivers/ide/ide.c unsigned int a, b, c = 0, h = 0, s = 0, i, j = 1; j 255 drivers/ide/ide.c sscanf(str, "%u.%u:%u", &a, &b, &j) != 3) j 260 drivers/ide/ide.c if (i >= MAX_HWIFS * MAX_DRIVES || j > 1) j 266 drivers/ide/ide.c if (j) j 334 drivers/ide/ide.c int i, j = 1; j 338 drivers/ide/ide.c if (sscanf(s, "%d:%d", &i, &j) != 2 && sscanf(s, "%d", &i) != 1) j 341 drivers/ide/ide.c if (i >= MAX_HWIFS || j < 0 || j > 1) j 344 drivers/ide/ide.c if (j) j 926 drivers/iio/accel/bmc150-accel-core.c int j, bit; j 928 drivers/iio/accel/bmc150-accel-core.c j = 0; j 931 drivers/iio/accel/bmc150-accel-core.c memcpy(&sample[j++], &buffer[i * 3 + bit], 2); j 391 drivers/iio/accel/mma8452.c int i, j; j 394 drivers/iio/accel/mma8452.c j = mma8452_get_power_mode(data); j 395 drivers/iio/accel/mma8452.c if (j < 0) j 396 drivers/iio/accel/mma8452.c return j; j 398 drivers/iio/accel/mma8452.c return mma8452_show_int_plus_micros(buf, mma8452_hp_filter_cutoff[j][i], j 409 drivers/iio/accel/mma8452.c int j; j 413 drivers/iio/accel/mma8452.c for (j = 0; j < ARRAY_SIZE(mma8452_os_ratio); j++) { j 414 drivers/iio/accel/mma8452.c if (val == mma8452_os_ratio[j][i]) j 417 drivers/iio/accel/mma8452.c val = mma8452_os_ratio[j][i]; j 451 drivers/iio/accel/mma8452.c int i, j; j 454 drivers/iio/accel/mma8452.c j = mma8452_get_power_mode(data); j 455 drivers/iio/accel/mma8452.c if (j < 0) j 456 drivers/iio/accel/mma8452.c return j; j 458 drivers/iio/accel/mma8452.c return mma8452_get_int_plus_micros_index(mma8452_hp_filter_cutoff[j][i], j 464 drivers/iio/accel/mma8452.c int j, i, ret; j 471 drivers/iio/accel/mma8452.c j = mma8452_get_power_mode(data); j 472 drivers/iio/accel/mma8452.c if (j < 0) j 473 drivers/iio/accel/mma8452.c return j; j 476 drivers/iio/accel/mma8452.c *hz = mma8452_hp_filter_cutoff[j][i][ret][0]; j 477 drivers/iio/accel/mma8452.c *uHz = mma8452_hp_filter_cutoff[j][i][ret][1]; j 1025 drivers/iio/accel/st_accel_core.c int i, j; j 1113 drivers/iio/accel/st_accel_core.c for (j = 0; j < 3; j++) { j 1114 drivers/iio/accel/st_accel_core.c int matrix_val = final_ont[i][j]; j 1130 drivers/iio/accel/st_accel_core.c adata->mount_matrix->rotation[i * 3 + j] = str_value; j 251 drivers/iio/adc/at91_adc.c int i, j = 0; j 257 drivers/iio/adc/at91_adc.c st->buffer[j] = at91_adc_readl(st, AT91_ADC_CHAN(st, chan->channel)); j 258 drivers/iio/adc/at91_adc.c j++; j 427 drivers/iio/adc/dln2-adc.c int ret, i, j; j 435 drivers/iio/adc/dln2-adc.c for (j = 0; j < i; ++j) j 436 drivers/iio/adc/dln2-adc.c dln2_adc_set_chan_enabled(dln2, j, false); j 373 drivers/iio/adc/hx711.c int i, j = 0; j 383 drivers/iio/adc/hx711.c hx711_data->buffer[j] = hx711_reset_read(hx711_data, j 385 drivers/iio/adc/hx711.c j++; j 826 drivers/iio/adc/max1363.c int ret, i = 3, j; j 870 drivers/iio/adc/max1363.c for (j = 0; j < 8; j++) j 871 drivers/iio/adc/max1363.c if (test_bit(j, modemask)) { j 873 drivers/iio/adc/max1363.c if (st->mask_low & (1 << j)) { j 874 drivers/iio/adc/max1363.c tx_buf[i] = (st->thresh_low[j] >> 4) & 0xFF; j 875 drivers/iio/adc/max1363.c tx_buf[i + 1] = (st->thresh_low[j] << 4) & 0xF0; j 876 drivers/iio/adc/max1363.c } else if (j < 4) { j 883 drivers/iio/adc/max1363.c if (st->mask_high & (1 << j)) { j 885 drivers/iio/adc/max1363.c (st->thresh_high[j] >> 8) & 0x0F; j 886 drivers/iio/adc/max1363.c tx_buf[i + 2] = st->thresh_high[j] & 0xFF; j 887 drivers/iio/adc/max1363.c } else if (j < 4) { j 419 drivers/iio/adc/mxs-lradc-adc.c unsigned int i, j = 0; j 422 drivers/iio/adc/mxs-lradc-adc.c adc->buffer[j] = readl(adc->base + LRADC_CH(j)); j 423 drivers/iio/adc/mxs-lradc-adc.c writel(chan_value, adc->base + LRADC_CH(j)); j 424 drivers/iio/adc/mxs-lradc-adc.c adc->buffer[j] &= LRADC_CH_VALUE_MASK; j 425 drivers/iio/adc/mxs-lradc-adc.c adc->buffer[j] /= LRADC_DELAY_TIMER_LOOP; j 426 drivers/iio/adc/mxs-lradc-adc.c j++; j 274 drivers/iio/adc/ti-ads124s08.c int scan_index, j = 0; j 288 drivers/iio/adc/ti-ads124s08.c buffer[j] = ads124s_read(indio_dev, scan_index); j 293 drivers/iio/adc/ti-ads124s08.c j++; j 387 drivers/iio/adc/ti-ads8688.c int i, j = 0; j 392 drivers/iio/adc/ti-ads8688.c buffer[j] = ads8688_read(indio_dev, i); j 393 drivers/iio/adc/ti-ads8688.c j++; j 634 drivers/iio/adc/xilinx-xadc-core.c int i, j; j 639 drivers/iio/adc/xilinx-xadc-core.c j = 0; j 643 drivers/iio/adc/xilinx-xadc-core.c xadc_read_adc_reg(xadc, chan, &xadc->data[j]); j 644 drivers/iio/adc/xilinx-xadc-core.c j++; j 72 drivers/iio/dummy/iio_simple_dummy_buffer.c int i, j; j 74 drivers/iio/dummy/iio_simple_dummy_buffer.c for (i = 0, j = 0; j 77 drivers/iio/dummy/iio_simple_dummy_buffer.c i++, j++) { j 78 drivers/iio/dummy/iio_simple_dummy_buffer.c j = find_next_bit(indio_dev->active_scan_mask, j 79 drivers/iio/dummy/iio_simple_dummy_buffer.c indio_dev->masklength, j); j 81 drivers/iio/dummy/iio_simple_dummy_buffer.c data[i] = fakedata[j]; j 68 drivers/iio/imu/adis_buffer.c unsigned int i, j; j 95 drivers/iio/imu/adis_buffer.c for (j = 0; j <= scan_count; j++) { j 96 drivers/iio/imu/adis_buffer.c adis->xfer[j].bits_per_word = 8; j 97 drivers/iio/imu/adis_buffer.c if (j != scan_count) j 98 drivers/iio/imu/adis_buffer.c adis->xfer[j].cs_change = 1; j 99 drivers/iio/imu/adis_buffer.c adis->xfer[j].len = 2; j 100 drivers/iio/imu/adis_buffer.c adis->xfer[j].delay_usecs = adis->data->read_delay; j 101 drivers/iio/imu/adis_buffer.c if (j < scan_count) j 102 drivers/iio/imu/adis_buffer.c adis->xfer[j].tx_buf = &tx[j]; j 103 drivers/iio/imu/adis_buffer.c if (j >= 1) j 104 drivers/iio/imu/adis_buffer.c adis->xfer[j].rx_buf = &rx[j - 1]; j 105 drivers/iio/imu/adis_buffer.c spi_message_add_tail(&adis->xfer[j], &adis->msg); j 416 drivers/iio/imu/bmi160/bmi160_core.c int i, ret, j = 0, base = BMI160_REG_DATA_MAGN_XOUT_L; j 425 drivers/iio/imu/bmi160/bmi160_core.c buf[j++] = sample; j 60 drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c int j; j 63 drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c for (j = 0; j < elem->package.count; ++j) { j 66 drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c sub_elem = &elem->package.elements[j]; j 910 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c int err, i, j, data; j 913 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c for (j = 0; j < ST_LSM6DSX_MAX_ID; j++) { j 914 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c if (st_lsm6dsx_sensor_settings[i].id[j].name && j 915 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c id == st_lsm6dsx_sensor_settings[i].id[j].hw_id) j 918 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c if (j < ST_LSM6DSX_MAX_ID) j 938 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c *name = st_lsm6dsx_sensor_settings[i].id[j].name; j 365 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c int i, j = 0; j 382 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c config[j] = (sensor->ext_info.addr << 1) | 1; j 383 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c config[j + 1] = settings->out.addr; j 384 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c config[j + 2] = (settings->out.len & ST_LS6DSX_READ_OP_MASK) | j 386 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c j += 3; j 1618 drivers/iio/industrialio-core.c int i, j; j 1627 drivers/iio/industrialio-core.c for (j = i + 1; j < indio_dev->num_channels; j++) j 1628 drivers/iio/industrialio-core.c if (channels[i].scan_index == channels[j].scan_index) { j 438 drivers/iio/industrialio-event.c int j, ret, attrcount = 0; j 441 drivers/iio/industrialio-event.c for (j = 0; j < indio_dev->num_channels; j++) { j 443 drivers/iio/industrialio-event.c &indio_dev->channels[j]); j 453 drivers/iio/industrialio-event.c int j; j 455 drivers/iio/industrialio-event.c for (j = 0; j < indio_dev->num_channels; j++) { j 456 drivers/iio/industrialio-event.c if (indio_dev->channels[j].num_event_specs != 0) j 119 drivers/iio/light/adjd_s311.c int i, j = 0; j 132 drivers/iio/light/adjd_s311.c data->buffer[j++] = ret & ADJD_S311_DATA_MASK; j 178 drivers/iio/light/isl29125.c int i, j = 0; j 187 drivers/iio/light/isl29125.c data->buffer[j++] = ret; j 1248 drivers/iio/light/ltr501.c int j = 0; j 1270 drivers/iio/light/ltr501.c buf[j++] = le16_to_cpu(als_buf[1]); j 1272 drivers/iio/light/ltr501.c buf[j++] = le16_to_cpu(als_buf[0]); j 1280 drivers/iio/light/ltr501.c buf[j++] = psdata & LTR501_PS_DATA_MASK; j 450 drivers/iio/light/si1145.c int i, j = 0; j 482 drivers/iio/light/si1145.c sizeof(u16) * run, &buffer[j]); j 485 drivers/iio/light/si1145.c j += run * sizeof(u16); j 203 drivers/iio/light/tcs3414.c int i, j = 0; j 212 drivers/iio/light/tcs3414.c data->buffer[j++] = ret; j 376 drivers/iio/light/tcs3472.c int i, j = 0; j 389 drivers/iio/light/tcs3472.c data->buffer[j++] = ret; j 58 drivers/iio/pressure/ms5611_core.c int i, j; j 69 drivers/iio/pressure/ms5611_core.c for (j = 0; j < 8; j++) { j 125 drivers/infiniband/core/rw.c int i, j, ret = 0, count = 0; j 169 drivers/infiniband/core/rw.c for (j = 0; j < nents; j++) j 196 drivers/infiniband/core/rw.c u32 total_len = 0, i, j; j 221 drivers/infiniband/core/rw.c for (j = 0; j < nr_sge; j++, sg = sg_next(sg)) { j 595 drivers/infiniband/core/umem_odp.c int j, k, ret = 0, start_idx, npages = 0; j 661 drivers/infiniband/core/umem_odp.c for (j = 0; j < npages; j++, user_virt += PAGE_SIZE) { j 664 drivers/infiniband/core/umem_odp.c if (page_to_phys(local_page_list[j]) != p) { j 668 drivers/infiniband/core/umem_odp.c put_user_page(local_page_list[j]); j 673 drivers/infiniband/core/umem_odp.c umem_odp, k, local_page_list[j], j 683 drivers/infiniband/core/umem_odp.c p = page_to_phys(local_page_list[j]); j 694 drivers/infiniband/core/umem_odp.c if (npages - (j + 1) > 0) j 695 drivers/infiniband/core/umem_odp.c put_user_pages(&local_page_list[j+1], j 696 drivers/infiniband/core/umem_odp.c npages - (j + 1)); j 3053 drivers/infiniband/core/uverbs_cmd.c int i, j, num_read_wqs; j 3138 drivers/infiniband/core/uverbs_cmd.c for (j = 0; j < num_read_wqs; j++) j 3139 drivers/infiniband/core/uverbs_cmd.c uobj_put_obj_read(wqs[j]); j 3148 drivers/infiniband/core/uverbs_cmd.c for (j = 0; j < num_read_wqs; j++) j 3149 drivers/infiniband/core/uverbs_cmd.c uobj_put_obj_read(wqs[j]); j 342 drivers/infiniband/hw/bnxt_re/qplib_res.c int i, j, k, rc = 0; j 405 drivers/infiniband/hw/bnxt_re/qplib_res.c for (i = 0, j = 0; i < MAX_TQM_ALLOC_REQ; j 406 drivers/infiniband/hw/bnxt_re/qplib_res.c i++, j += MAX_TQM_ALLOC_BLK_SIZE) { j 415 drivers/infiniband/hw/bnxt_re/qplib_res.c pbl_ptr[PTR_PG(j + k)][PTR_IDX(j + k)] = j 423 drivers/infiniband/hw/bnxt_re/qplib_res.c pbl_ptr[PTR_PG(j)][PTR_IDX(j)] = cpu_to_le64( j 53 drivers/infiniband/hw/cxgb3/cxio_resource.c u32 i, j, entry = 0, idx; j 64 drivers/infiniband/hw/cxgb3/cxio_resource.c j = 0; j 69 drivers/infiniband/hw/cxgb3/cxio_resource.c if (j >= RANDOM_SIZE) { j 70 drivers/infiniband/hw/cxgb3/cxio_resource.c j = 0; j 73 drivers/infiniband/hw/cxgb3/cxio_resource.c idx = (random_bytes >> (j * 2)) & 0xF; j 78 drivers/infiniband/hw/cxgb3/cxio_resource.c j++; j 538 drivers/infiniband/hw/hfi1/affinity.c int i, j, curr_cpu; j 590 drivers/infiniband/hw/hfi1/affinity.c for (j = 0; j < i; j++) j 10085 drivers/infiniband/hw/hfi1/chip.c int i, j; j 10109 drivers/infiniband/hw/hfi1/chip.c for (j = 0; j < INIT_SC_PER_VL; j++) j 10111 drivers/infiniband/hw/hfi1/chip.c pio_select_send_context_vl(dd, j, i), j 12077 drivers/infiniband/hw/hfi1/chip.c int i, j; j 12096 drivers/infiniband/hw/hfi1/chip.c for (j = 0; j < C_VL_COUNT; j++) { j 12098 drivers/infiniband/hw/hfi1/chip.c dd, j, j 12104 drivers/infiniband/hw/hfi1/chip.c val, j); j 12105 drivers/infiniband/hw/hfi1/chip.c dd->cntrs[entry->offset + j] = j 12111 drivers/infiniband/hw/hfi1/chip.c for (j = 0; j < chip_sdma_engines(dd); j 12112 drivers/infiniband/hw/hfi1/chip.c j++) { j 12114 drivers/infiniband/hw/hfi1/chip.c entry->rw_cntr(entry, dd, j, j 12118 drivers/infiniband/hw/hfi1/chip.c val, j); j 12119 drivers/infiniband/hw/hfi1/chip.c dd->cntrs[entry->offset + j] = j 12148 drivers/infiniband/hw/hfi1/chip.c int i, j; j 12164 drivers/infiniband/hw/hfi1/chip.c for (j = 0; j < C_VL_COUNT; j++) { j 12165 drivers/infiniband/hw/hfi1/chip.c val = entry->rw_cntr(entry, ppd, j, j 12171 drivers/infiniband/hw/hfi1/chip.c val, j); j 12172 drivers/infiniband/hw/hfi1/chip.c ppd->cntrs[entry->offset + j] = val; j 12380 drivers/infiniband/hw/hfi1/chip.c int i, j, vl; j 12436 drivers/infiniband/hw/hfi1/chip.c for (j = 0; j < PORT_CNTR_LAST; j++) { j 12437 drivers/infiniband/hw/hfi1/chip.c entry = &port_cntrs[j]; j 12440 drivers/infiniband/hw/hfi1/chip.c read_port_cntr(ppd, j, vl); j 12442 drivers/infiniband/hw/hfi1/chip.c read_port_cntr(ppd, j, CNTR_INVALID_VL); j 12480 drivers/infiniband/hw/hfi1/chip.c int i, rcv_ctxts, j; j 12508 drivers/infiniband/hw/hfi1/chip.c for (j = 0; j < C_VL_COUNT; j++) { j 12510 drivers/infiniband/hw/hfi1/chip.c dev_cntrs[i].name, vl_from_idx(j)); j 12520 drivers/infiniband/hw/hfi1/chip.c for (j = 0; j < sdma_engines; j++) { j 12522 drivers/infiniband/hw/hfi1/chip.c dev_cntrs[i].name, j); j 12562 drivers/infiniband/hw/hfi1/chip.c for (j = 0; j < C_VL_COUNT; j++) { j 12565 drivers/infiniband/hw/hfi1/chip.c vl_from_idx(j)); j 12578 drivers/infiniband/hw/hfi1/chip.c for (j = 0; j < sdma_engines; j++) { j 12580 drivers/infiniband/hw/hfi1/chip.c dev_cntrs[i].name, j); j 12632 drivers/infiniband/hw/hfi1/chip.c for (j = 0; j < C_VL_COUNT; j++) { j 12634 drivers/infiniband/hw/hfi1/chip.c port_cntrs[i].name, vl_from_idx(j)); j 12665 drivers/infiniband/hw/hfi1/chip.c for (j = 0; j < C_VL_COUNT; j++) { j 12667 drivers/infiniband/hw/hfi1/chip.c port_cntrs[i].name, vl_from_idx(j)); j 13441 drivers/infiniband/hw/hfi1/chip.c int i, j; j 13464 drivers/infiniband/hw/hfi1/chip.c for (j = 0; j < RXE_NUM_TID_FLOWS; j++) j 13465 drivers/infiniband/hw/hfi1/chip.c write_uctxt_csr(dd, i, RCV_TID_FLOW_TABLE + (8 * j), 0); j 13768 drivers/infiniband/hw/hfi1/chip.c int i, j; j 13827 drivers/infiniband/hw/hfi1/chip.c for (j = 0; j < RXE_NUM_TID_FLOWS; j++) { j 13829 drivers/infiniband/hw/hfi1/chip.c RCV_TID_FLOW_TABLE + (8 * j), 0); j 14398 drivers/infiniband/hw/hfi1/chip.c u8 i, j; j 14419 drivers/infiniband/hw/hfi1/chip.c j = (dd->vnic.rmt_start + i) % 8; j 14420 drivers/infiniband/hw/hfi1/chip.c reg &= ~(0xffllu << (j * 8)); j 14421 drivers/infiniband/hw/hfi1/chip.c reg |= (u64)dd->vnic.ctxt[ctx_id++]->ctxt << (j * 8); j 14425 drivers/infiniband/hw/hfi1/chip.c if (j == 7 || ((i + 1) == NUM_VNIC_MAP_ENTRIES)) { j 135 drivers/infiniband/hw/hfi1/debugfs.c loff_t i = *spos, j; j 141 drivers/infiniband/hw/hfi1/debugfs.c for (j = 0; j < dd->first_dyn_alloc_ctxt; j++) { j 142 drivers/infiniband/hw/hfi1/debugfs.c rcd = hfi1_rcd_get_by_index(dd, j); j 174 drivers/infiniband/hw/hfi1/debugfs.c int j; j 179 drivers/infiniband/hw/hfi1/debugfs.c for_each_possible_cpu(j) { j 181 drivers/infiniband/hw/hfi1/debugfs.c per_cpu_ptr(dd->tx_opstats, j); j 226 drivers/infiniband/hw/hfi1/debugfs.c loff_t i, j; j 244 drivers/infiniband/hw/hfi1/debugfs.c for (j = 0; j < ARRAY_SIZE(rcd->opstats->stats); j++) j 245 drivers/infiniband/hw/hfi1/debugfs.c n_packets += rcd->opstats->stats[j].n_packets; j 1245 drivers/infiniband/hw/hfi1/debugfs.c int i, j; j 1275 drivers/infiniband/hw/hfi1/debugfs.c for (ppd = dd->pport, j = 0; j < dd->num_pports; j++, ppd++) j 1280 drivers/infiniband/hw/hfi1/debugfs.c j + 1); j 88 drivers/infiniband/hw/hfi1/fault.c loff_t i = *spos, j; j 94 drivers/infiniband/hw/hfi1/fault.c for (j = 0; j < dd->first_dyn_alloc_ctxt; j++) { j 95 drivers/infiniband/hw/hfi1/fault.c rcd = hfi1_rcd_get_by_index(dd, j); j 102 drivers/infiniband/hw/hfi1/fault.c for_each_possible_cpu(j) { j 104 drivers/infiniband/hw/hfi1/fault.c per_cpu_ptr(dd->tx_opstats, j); j 1639 drivers/infiniband/hw/hfi1/init.c int ret = 0, j, pidx, initfail; j 1740 drivers/infiniband/hw/hfi1/init.c j = hfi1_device_create(dd); j 1741 drivers/infiniband/hw/hfi1/init.c if (j) j 1742 drivers/infiniband/hw/hfi1/init.c dd_dev_err(dd, "Failed to create /dev devices: %d\n", -j); j 1760 drivers/infiniband/hw/hfi1/init.c if (!j) j 1983 drivers/infiniband/hw/hfi1/init.c u32 new_size, i, j; j 2017 drivers/infiniband/hw/hfi1/init.c for (i = 0, j = 0, offset = 0; j < idx; i++) { j 2021 drivers/infiniband/hw/hfi1/init.c rcd->egrbufs.buffers[j].dma + offset; j 2023 drivers/infiniband/hw/hfi1/init.c rcd->egrbufs.buffers[j].addr + offset; j 2025 drivers/infiniband/hw/hfi1/init.c if ((rcd->egrbufs.buffers[j].dma + offset + j 2027 drivers/infiniband/hw/hfi1/init.c (rcd->egrbufs.buffers[j].dma + j 2028 drivers/infiniband/hw/hfi1/init.c rcd->egrbufs.buffers[j].len)) { j 2029 drivers/infiniband/hw/hfi1/init.c j++; j 3939 drivers/infiniband/hw/hfi1/mad.c int i, j; j 3968 drivers/infiniband/hw/hfi1/mad.c for (j = 0, i = sentry; i < eentry; j++, i++) j 3969 drivers/infiniband/hw/hfi1/mad.c cc_table_attr->ccti_entries[j].entry = j 3990 drivers/infiniband/hw/hfi1/mad.c int i, j; j 4020 drivers/infiniband/hw/hfi1/mad.c for (j = 0, i = sentry; i < eentry; j++, i++) j 4021 drivers/infiniband/hw/hfi1/mad.c entries[i].entry = be16_to_cpu(p->ccti_entries[j].entry); j 444 drivers/infiniband/hw/hfi1/pio.c int ret, i, j, context; j 475 drivers/infiniband/hw/hfi1/pio.c for (j = 0; j < scs->count; j++) { j 1915 drivers/infiniband/hw/hfi1/pio.c int i, j; j 1964 drivers/infiniband/hw/hfi1/pio.c for (j = 0; j < sz; j++) { j 1966 drivers/infiniband/hw/hfi1/pio.c newmap->map[i]->ksc[j] = j 59 drivers/infiniband/hw/hfi1/platform.c int i, j, version; j 81 drivers/infiniband/hw/hfi1/platform.c for (j = sizeof(u64); j != 0; j -= 2) { j 1121 drivers/infiniband/hw/hfi1/sdma.c int i, j; j 1135 drivers/infiniband/hw/hfi1/sdma.c for (j = 0; j < rht_node->map[i]->ctr; j++) { j 1136 drivers/infiniband/hw/hfi1/sdma.c if (!rht_node->map[i]->sde[j]) j 1139 drivers/infiniband/hw/hfi1/sdma.c if (j > 0) j 1143 drivers/infiniband/hw/hfi1/sdma.c rht_node->map[i]->sde[j]->this_idx); j 1202 drivers/infiniband/hw/hfi1/sdma.c int i, j; j 1251 drivers/infiniband/hw/hfi1/sdma.c for (j = 0; j < sz; j++) { j 1252 drivers/infiniband/hw/hfi1/sdma.c newmap->map[i]->sde[j] = j 1259 drivers/infiniband/hw/hfi1/sdma.c for (j = 0; j < vl_engines[i]; j++) j 1260 drivers/infiniband/hw/hfi1/sdma.c newmap->engine_to_vl[first_engine + j] = i; j 840 drivers/infiniband/hw/hfi1/sysfs.c int i, j, ret; j 849 drivers/infiniband/hw/hfi1/sysfs.c for (j = 0; j < ARRAY_SIZE(sde_attribs); j++) { j 851 drivers/infiniband/hw/hfi1/sysfs.c &sde_attribs[j]->attr); j 814 drivers/infiniband/hw/hns/hns_roce_hem.c int i, j; j 834 drivers/infiniband/hw/hns/hns_roce_hem.c j = mhop.l1_idx; j 836 drivers/infiniband/hw/hns/hns_roce_hem.c hem_idx = i * (mhop.bt_chunk_size / BA_BYTE_LEN) + j; j 1523 drivers/infiniband/hw/hns/hns_roce_hem.c int i, j; j 1526 drivers/infiniband/hw/hns/hns_roce_hem.c for (j = 0; j < HNS_ROCE_MAX_BT_LEVEL; j++) j 1527 drivers/infiniband/hw/hns/hns_roce_hem.c hem_list_free_all(hr_dev, &hem_list->mid_bt[i][j], j 1528 drivers/infiniband/hw/hns/hns_roce_hem.c j != 0); j 1538 drivers/infiniband/hw/hns/hns_roce_hem.c int i, j; j 1543 drivers/infiniband/hw/hns/hns_roce_hem.c for (j = 0; j < HNS_ROCE_MAX_BT_LEVEL; j++) j 1544 drivers/infiniband/hw/hns/hns_roce_hem.c INIT_LIST_HEAD(&hem_list->mid_bt[i][j]); j 714 drivers/infiniband/hw/hns/hns_roce_hw_v1.c int i, j; j 785 drivers/infiniband/hw/hns/hns_roce_hw_v1.c for (j = 0; j < caps->num_ports; j++) { j 786 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (hr_dev->iboe.phy_port[j] == phy_port) { j 788 drivers/infiniband/hw/hns/hns_roce_hw_v1.c port = j; j 4313 drivers/infiniband/hw/hns/hns_roce_hw_v1.c int i, j; j 4380 drivers/infiniband/hw/hns/hns_roce_hw_v1.c for (j = 0; j < irq_num; j++) { j 4381 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (j < eq_num) j 4382 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ret = request_irq(hr_dev->irq[j], j 4384 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_dev->irq_names[j], j 4385 drivers/infiniband/hw/hns/hns_roce_hw_v1.c &eq_table->eq[j]); j 4387 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ret = request_irq(hr_dev->irq[j], j 4389 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_dev->irq_names[j], hr_dev); j 4403 drivers/infiniband/hw/hns/hns_roce_hw_v1.c for (j -= 1; j >= 0; j--) j 4404 drivers/infiniband/hw/hns/hns_roce_hw_v1.c free_irq(hr_dev->irq[j], &eq_table->eq[j]); j 168 drivers/infiniband/hw/hns/hns_roce_hw_v2.c int j = 0; j 209 drivers/infiniband/hw/hns/hns_roce_hw_v2.c j < HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE; i++) { j 213 drivers/infiniband/hw/hns/hns_roce_hw_v2.c j++; j 3045 drivers/infiniband/hw/hns/hns_roce_hw_v2.c int i, j, k; j 3059 drivers/infiniband/hw/hns/hns_roce_hw_v2.c j = mhop.l1_idx; j 3065 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hem_idx = i * chunk_ba_num * chunk_ba_num + j * chunk_ba_num + j 3067 drivers/infiniband/hw/hns/hns_roce_hw_v2.c l1_idx = i * chunk_ba_num + j; j 3069 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hem_idx = i * chunk_ba_num + j; j 5320 drivers/infiniband/hw/hns/hns_roce_hw_v2.c int j = 0; j 5350 drivers/infiniband/hw/hns/hns_roce_hw_v2.c for (j = 0; j < bt_chk_sz / BA_BYTE_LEN; j++) { j 5351 drivers/infiniband/hw/hns/hns_roce_hw_v2.c idx = i * (bt_chk_sz / BA_BYTE_LEN) + j; j 5353 drivers/infiniband/hw/hns/hns_roce_hw_v2.c && j == eq->l1_last_num - 1) { j 5561 drivers/infiniband/hw/hns/hns_roce_hw_v2.c int j = 0; j 5649 drivers/infiniband/hw/hns/hns_roce_hw_v2.c for (j = 0; j < bt_chk_sz / BA_BYTE_LEN; j++) { j 5650 drivers/infiniband/hw/hns/hns_roce_hw_v2.c idx = i * bt_chk_sz / BA_BYTE_LEN + j; j 5665 drivers/infiniband/hw/hns/hns_roce_hw_v2.c *(eq->bt_l1[i] + j) = eq->buf_dma[idx]; j 5684 drivers/infiniband/hw/hns/hns_roce_hw_v2.c eq->l1_last_num = j + 1; j 5696 drivers/infiniband/hw/hns/hns_roce_hw_v2.c for (j = 0; j < bt_chk_sz / BA_BYTE_LEN; j++) { j 5697 drivers/infiniband/hw/hns/hns_roce_hw_v2.c idx = i * bt_chk_sz / BA_BYTE_LEN + j; j 5715 drivers/infiniband/hw/hns/hns_roce_hw_v2.c record_j = j; j 5720 drivers/infiniband/hw/hns/hns_roce_hw_v2.c for (j = 0; j < bt_chk_sz / BA_BYTE_LEN; j++) { j 5721 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (i == record_i && j >= record_j) j 5724 drivers/infiniband/hw/hns/hns_roce_hw_v2.c idx = i * bt_chk_sz / BA_BYTE_LEN + j; j 5826 drivers/infiniband/hw/hns/hns_roce_hw_v2.c int i, j; j 5839 drivers/infiniband/hw/hns/hns_roce_hw_v2.c for (j = 0; j < other_num; j++) j 5840 drivers/infiniband/hw/hns/hns_roce_hw_v2.c snprintf((char *)hr_dev->irq_names[j], j 5841 drivers/infiniband/hw/hns/hns_roce_hw_v2.c HNS_ROCE_INT_NAME_LEN, "hns-abn-%d", j); j 5843 drivers/infiniband/hw/hns/hns_roce_hw_v2.c for (j = other_num; j < (other_num + aeq_num); j++) j 5844 drivers/infiniband/hw/hns/hns_roce_hw_v2.c snprintf((char *)hr_dev->irq_names[j], j 5846 drivers/infiniband/hw/hns/hns_roce_hw_v2.c j - other_num); j 5848 drivers/infiniband/hw/hns/hns_roce_hw_v2.c for (j = (other_num + aeq_num); j < irq_num; j++) j 5849 drivers/infiniband/hw/hns/hns_roce_hw_v2.c snprintf((char *)hr_dev->irq_names[j], j 5851 drivers/infiniband/hw/hns/hns_roce_hw_v2.c j - other_num - aeq_num); j 5853 drivers/infiniband/hw/hns/hns_roce_hw_v2.c for (j = 0; j < irq_num; j++) { j 5854 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (j < other_num) j 5855 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = request_irq(hr_dev->irq[j], j 5857 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 0, hr_dev->irq_names[j], hr_dev); j 5859 drivers/infiniband/hw/hns/hns_roce_hw_v2.c else if (j < (other_num + comp_num)) j 5860 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = request_irq(eq_table->eq[j - other_num].irq, j 5862 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 0, hr_dev->irq_names[j + aeq_num], j 5863 drivers/infiniband/hw/hns/hns_roce_hw_v2.c &eq_table->eq[j - other_num]); j 5865 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = request_irq(eq_table->eq[j - other_num].irq, j 5867 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 0, hr_dev->irq_names[j - comp_num], j 5868 drivers/infiniband/hw/hns/hns_roce_hw_v2.c &eq_table->eq[j - other_num]); j 5878 drivers/infiniband/hw/hns/hns_roce_hw_v2.c for (j -= 1; j >= 0; j--) j 5879 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (j < other_num) j 5880 drivers/infiniband/hw/hns/hns_roce_hw_v2.c free_irq(hr_dev->irq[j], hr_dev); j 5882 drivers/infiniband/hw/hns/hns_roce_hw_v2.c free_irq(eq_table->eq[j - other_num].irq, j 5883 drivers/infiniband/hw/hns/hns_roce_hw_v2.c &eq_table->eq[j - other_num]); j 303 drivers/infiniband/hw/hns/hns_roce_mr.c int i, j; j 314 drivers/infiniband/hw/hns/hns_roce_mr.c for (j = 0; j < pbl_bt_sz / BA_BYTE_LEN; j++) { j 315 drivers/infiniband/hw/hns/hns_roce_mr.c if (i == loop_i && j >= loop_j) j 318 drivers/infiniband/hw/hns/hns_roce_mr.c bt_idx = i * pbl_bt_sz / BA_BYTE_LEN + j; j 329 drivers/infiniband/hw/hns/hns_roce_mr.c for (j = 0; j < pbl_bt_sz / BA_BYTE_LEN; j++) { j 330 drivers/infiniband/hw/hns/hns_roce_mr.c bt_idx = i * pbl_bt_sz / BA_BYTE_LEN + j; j 427 drivers/infiniband/hw/hns/hns_roce_mr.c int j = 0; j 455 drivers/infiniband/hw/hns/hns_roce_mr.c for (j = 0; j < pbl_bt_sz / 8; j++) { j 456 drivers/infiniband/hw/hns/hns_roce_mr.c bt_idx = i * pbl_bt_sz / 8 + j; j 470 drivers/infiniband/hw/hns/hns_roce_mr.c hns_roce_loop_free(hr_dev, mr, 2, i, j); j 474 drivers/infiniband/hw/hns/hns_roce_mr.c *(mr->pbl_bt_l1[i] + j) = j 489 drivers/infiniband/hw/hns/hns_roce_mr.c mr->l1_chunk_last_num = j + 1; j 623 drivers/infiniband/hw/hns/hns_roce_mr.c int i, j; j 666 drivers/infiniband/hw/hns/hns_roce_mr.c for (j = 0; j < pbl_bt_sz / BA_BYTE_LEN; j++) { j 667 drivers/infiniband/hw/hns/hns_roce_mr.c bt_idx = i * (pbl_bt_sz / BA_BYTE_LEN) + j; j 670 drivers/infiniband/hw/hns/hns_roce_mr.c && j == mr->l1_chunk_last_num - 1) { j 1095 drivers/infiniband/hw/hns/hns_roce_mr.c int i = 0, j = 0; j 1112 drivers/infiniband/hw/hns/hns_roce_mr.c mr->pbl_bt_l1[i][j] = page_addr; j 1114 drivers/infiniband/hw/hns/hns_roce_mr.c mr->pbl_bt_l2[i][j] = page_addr; j 1116 drivers/infiniband/hw/hns/hns_roce_mr.c j++; j 1117 drivers/infiniband/hw/hns/hns_roce_mr.c if (j >= (pbl_bt_sz / BA_BYTE_LEN)) { j 1119 drivers/infiniband/hw/hns/hns_roce_mr.c j = 0; j 142 drivers/infiniband/hw/i40iw/i40iw_ctrl.c u32 i, j; j 146 drivers/infiniband/hw/i40iw/i40iw_ctrl.c for (i = I40IW_HMC_IW_QP, j = 0; i <= I40IW_HMC_IW_PBLE; i++, j += 8) { j 154 drivers/infiniband/hw/i40iw/i40iw_ctrl.c get_64bit_val(buf, j, &temp); j 3575 drivers/infiniband/hw/i40iw/i40iw_ctrl.c u32 i, j; j 3597 drivers/infiniband/hw/i40iw/i40iw_ctrl.c for (i = I40IW_HMC_IW_QP, j = 0; i <= I40IW_HMC_IW_PBLE; j 3598 drivers/infiniband/hw/i40iw/i40iw_ctrl.c i++, j += 8) j 3599 drivers/infiniband/hw/i40iw/i40iw_ctrl.c set_64bit_val(buf, j, (u64)obj_info[i].cnt); j 302 drivers/infiniband/hw/i40iw/i40iw_hmc.c u32 i, j; j 331 drivers/infiniband/hw/i40iw/i40iw_hmc.c for (j = sd_idx; j < sd_lmt; j++) { j 333 drivers/infiniband/hw/i40iw/i40iw_hmc.c j, j 338 drivers/infiniband/hw/i40iw/i40iw_hmc.c sd_entry = &info->hmc_info->sd_table.sd_entry[j]; j 343 drivers/infiniband/hw/i40iw/i40iw_hmc.c pd_idx1 = max(pd_idx, (j * I40IW_HMC_MAX_BP_COUNT)); j 345 drivers/infiniband/hw/i40iw/i40iw_hmc.c (j + 1) * I40IW_HMC_MAX_BP_COUNT); j 366 drivers/infiniband/hw/i40iw/i40iw_hmc.c info->hmc_info->sd_indexes[info->add_sd_cnt] = (u16)j; j 373 drivers/infiniband/hw/i40iw/i40iw_hmc.c while (j && (j > sd_idx)) { j 374 drivers/infiniband/hw/i40iw/i40iw_hmc.c sd_entry = &info->hmc_info->sd_table.sd_entry[j - 1]; j 378 drivers/infiniband/hw/i40iw/i40iw_hmc.c (j - 1) * I40IW_HMC_MAX_BP_COUNT); j 379 drivers/infiniband/hw/i40iw/i40iw_hmc.c pd_lmt1 = min(pd_lmt, (j * I40IW_HMC_MAX_BP_COUNT)); j 384 drivers/infiniband/hw/i40iw/i40iw_hmc.c i40iw_prep_remove_pd_page(info->hmc_info, (j - 1)); j 390 drivers/infiniband/hw/i40iw/i40iw_hmc.c j--; j 454 drivers/infiniband/hw/i40iw/i40iw_hmc.c u32 i, j; j 484 drivers/infiniband/hw/i40iw/i40iw_hmc.c for (j = pd_idx; j < pd_lmt; j++) { j 485 drivers/infiniband/hw/i40iw/i40iw_hmc.c sd_idx = j / I40IW_HMC_PD_CNT_IN_SD; j 491 drivers/infiniband/hw/i40iw/i40iw_hmc.c rel_pd_idx = j % I40IW_HMC_PD_CNT_IN_SD; j 494 drivers/infiniband/hw/i40iw/i40iw_hmc.c ret_code = i40iw_remove_pd_bp(dev->hw, info->hmc_info, j, j 584 drivers/infiniband/hw/mlx4/alias_GUID.c int j, k, entry; j 588 drivers/infiniband/hw/mlx4/alias_GUID.c for (j = 0; j < NUM_ALIAS_GUID_REC_IN_PORT; j++) { j 590 drivers/infiniband/hw/mlx4/alias_GUID.c entry = j * NUM_ALIAS_GUID_IN_REC + k; j 597 drivers/infiniband/hw/mlx4/alias_GUID.c all_rec_per_port[j].all_recs j 697 drivers/infiniband/hw/mlx4/alias_GUID.c int j; j 699 drivers/infiniband/hw/mlx4/alias_GUID.c for (j = 0; j < NUM_ALIAS_GUID_REC_IN_PORT; j++) { j 701 drivers/infiniband/hw/mlx4/alias_GUID.c all_rec_per_port[j]; j 706 drivers/infiniband/hw/mlx4/alias_GUID.c record_index = j; j 837 drivers/infiniband/hw/mlx4/alias_GUID.c int i, j; j 863 drivers/infiniband/hw/mlx4/alias_GUID.c for (j = 0; j < NUM_ALIAS_GUID_REC_IN_PORT; j++) { j 866 drivers/infiniband/hw/mlx4/alias_GUID.c all_rec_per_port[j].all_recs, 0xFF, j 868 drivers/infiniband/hw/mlx4/alias_GUID.c all_rec_per_port[j].all_recs)); j 873 drivers/infiniband/hw/mlx4/alias_GUID.c for (j = 1; j < NUM_ALIAS_GUID_PER_PORT; j++) j 874 drivers/infiniband/hw/mlx4/alias_GUID.c mlx4_set_admin_guid(dev->dev, 0, j, i + 1); j 875 drivers/infiniband/hw/mlx4/alias_GUID.c for (j = 0 ; j < NUM_ALIAS_GUID_REC_IN_PORT; j++) j 876 drivers/infiniband/hw/mlx4/alias_GUID.c invalidate_guid_record(dev, i + 1, j); j 1435 drivers/infiniband/hw/mlx4/main.c int i, j, k; j 1449 drivers/infiniband/hw/mlx4/main.c for (j = 0, k = 0; k < IB_FLOW_SPEC_SUPPORT_LAYERS && j 1450 drivers/infiniband/hw/mlx4/main.c j < flow_attr->num_of_specs; k++) { j 1465 drivers/infiniband/hw/mlx4/main.c j++; j 1472 drivers/infiniband/hw/mlx4/main.c for (j = 0; j < flow_attr->num_of_specs; j 1473 drivers/infiniband/hw/mlx4/main.c j++, ib_flow += ((union ib_flow_spec *)ib_flow)->size) j 1709 drivers/infiniband/hw/mlx4/main.c int err = 0, i = 0, j = 0; j 1783 drivers/infiniband/hw/mlx4/main.c domain, type[j], j 1784 drivers/infiniband/hw/mlx4/main.c &mflow->reg_id[j].mirror); j 1788 drivers/infiniband/hw/mlx4/main.c j++; j 1803 drivers/infiniband/hw/mlx4/main.c &mflow->reg_id[j].mirror); j 1807 drivers/infiniband/hw/mlx4/main.c j++; j 1822 drivers/infiniband/hw/mlx4/main.c while (j) { j 1824 drivers/infiniband/hw/mlx4/main.c mflow->reg_id[j].mirror); j 1825 drivers/infiniband/hw/mlx4/main.c j--; j 2195 drivers/infiniband/hw/mlx4/main.c int j; j 2197 drivers/infiniband/hw/mlx4/main.c for (i = 0, j = 0; i < ARRAY_SIZE(diag_basic); i++, j++) { j 2203 drivers/infiniband/hw/mlx4/main.c for (i = 0; i < ARRAY_SIZE(diag_ext); i++, j++) { j 2204 drivers/infiniband/hw/mlx4/main.c name[j] = diag_ext[i].name; j 2205 drivers/infiniband/hw/mlx4/main.c offset[j] = diag_ext[i].offset; j 2210 drivers/infiniband/hw/mlx4/main.c for (i = 0; i < ARRAY_SIZE(diag_device_only); i++, j++) { j 2211 drivers/infiniband/hw/mlx4/main.c name[j] = diag_device_only[i].name; j 2212 drivers/infiniband/hw/mlx4/main.c offset[j] = diag_device_only[i].offset; j 2436 drivers/infiniband/hw/mlx4/main.c int i, j, eq = 0, total_eqs = 0; j 2444 drivers/infiniband/hw/mlx4/main.c for (j = 0; j < mlx4_get_eqs_per_port(dev, i); j 2445 drivers/infiniband/hw/mlx4/main.c j++, total_eqs++) { j 2622 drivers/infiniband/hw/mlx4/main.c int i, j; j 2853 drivers/infiniband/hw/mlx4/main.c for (j = 1; j <= ibdev->dev->caps.num_ports; j++) j 2854 drivers/infiniband/hw/mlx4/main.c atomic64_set(&iboe->mac[j - 1], ibdev->dev->caps.def_mac[j]); j 2893 drivers/infiniband/hw/mlx4/main.c for (j = 0; j < MLX4_MFUNC_MAX; j++) { j 2894 drivers/infiniband/hw/mlx4/main.c if (j == mlx4_master_func_num(ibdev->dev)) j 2896 drivers/infiniband/hw/mlx4/main.c if (mlx4_is_slave_active(ibdev->dev, j)) j 2897 drivers/infiniband/hw/mlx4/main.c do_slave_init(ibdev, j, 1); j 2066 drivers/infiniband/hw/mlx4/qp.c int j; j 2068 drivers/infiniband/hw/mlx4/qp.c for (j = (i - 1); j >= 0; j--) { j 2069 drivers/infiniband/hw/mlx4/qp.c struct ib_wq *ibwq = ind_tbl->ind_tbl[j]; j 5402 drivers/infiniband/hw/mlx5/main.c int j = 0; j 5404 drivers/infiniband/hw/mlx5/main.c for (i = 0; i < ARRAY_SIZE(basic_q_cnts); i++, j++) { j 5405 drivers/infiniband/hw/mlx5/main.c names[j] = basic_q_cnts[i].name; j 5406 drivers/infiniband/hw/mlx5/main.c offsets[j] = basic_q_cnts[i].offset; j 5410 drivers/infiniband/hw/mlx5/main.c for (i = 0; i < ARRAY_SIZE(out_of_seq_q_cnts); i++, j++) { j 5411 drivers/infiniband/hw/mlx5/main.c names[j] = out_of_seq_q_cnts[i].name; j 5412 drivers/infiniband/hw/mlx5/main.c offsets[j] = out_of_seq_q_cnts[i].offset; j 5417 drivers/infiniband/hw/mlx5/main.c for (i = 0; i < ARRAY_SIZE(retrans_q_cnts); i++, j++) { j 5418 drivers/infiniband/hw/mlx5/main.c names[j] = retrans_q_cnts[i].name; j 5419 drivers/infiniband/hw/mlx5/main.c offsets[j] = retrans_q_cnts[i].offset; j 5424 drivers/infiniband/hw/mlx5/main.c for (i = 0; i < ARRAY_SIZE(extended_err_cnts); i++, j++) { j 5425 drivers/infiniband/hw/mlx5/main.c names[j] = extended_err_cnts[i].name; j 5426 drivers/infiniband/hw/mlx5/main.c offsets[j] = extended_err_cnts[i].offset; j 5431 drivers/infiniband/hw/mlx5/main.c for (i = 0; i < ARRAY_SIZE(cong_cnts); i++, j++) { j 5432 drivers/infiniband/hw/mlx5/main.c names[j] = cong_cnts[i].name; j 5433 drivers/infiniband/hw/mlx5/main.c offsets[j] = cong_cnts[i].offset; j 5438 drivers/infiniband/hw/mlx5/main.c for (i = 0; i < ARRAY_SIZE(ext_ppcnt_cnts); i++, j++) { j 5439 drivers/infiniband/hw/mlx5/main.c names[j] = ext_ppcnt_cnts[i].name; j 5440 drivers/infiniband/hw/mlx5/main.c offsets[j] = ext_ppcnt_cnts[i].offset; j 2074 drivers/infiniband/hw/mlx5/mr.c int i, j = 0; j 2099 drivers/infiniband/hw/mlx5/mr.c for_each_sg(meta_sgl, sg, meta_sg_nents, j) { j 2100 drivers/infiniband/hw/mlx5/mr.c if (unlikely(i + j >= mr->max_descs)) j 2102 drivers/infiniband/hw/mlx5/mr.c klms[i + j].va = cpu_to_be64(sg_dma_address(sg) + j 2104 drivers/infiniband/hw/mlx5/mr.c klms[i + j].bcount = cpu_to_be32(sg_dma_len(sg) - j 2106 drivers/infiniband/hw/mlx5/mr.c klms[i + j].key = cpu_to_be32(lkey); j 2114 drivers/infiniband/hw/mlx5/mr.c mr->meta_ndescs = j; j 2118 drivers/infiniband/hw/mlx5/mr.c return i + j; j 4880 drivers/infiniband/hw/mlx5/qp.c int i, j; j 4883 drivers/infiniband/hw/mlx5/qp.c for (i = 0, j = 0; i < size_16 * 4; i += 4, j += 4) { j 4887 drivers/infiniband/hw/mlx5/qp.c j = 0; j 4890 drivers/infiniband/hw/mlx5/qp.c pr_debug("%08x %08x %08x %08x\n", be32_to_cpu(p[j]), j 4891 drivers/infiniband/hw/mlx5/qp.c be32_to_cpu(p[j + 1]), be32_to_cpu(p[j + 2]), j 4892 drivers/infiniband/hw/mlx5/qp.c be32_to_cpu(p[j + 3])); j 225 drivers/infiniband/hw/mthca/mthca_av.c int j; j 229 drivers/infiniband/hw/mthca/mthca_av.c for (j = 0; j < 8; ++j) j 231 drivers/infiniband/hw/mthca/mthca_av.c j * 4, be32_to_cpu(((__be32 *) av)[j])); j 916 drivers/infiniband/hw/mthca/mthca_cq.c int j; j 921 drivers/infiniband/hw/mthca/mthca_cq.c for (j = 0; j < 16; ++j) j 922 drivers/infiniband/hw/mthca/mthca_cq.c printk(KERN_ERR "[%2x] %08x\n", j * 4, be32_to_cpu(ctx[j])); j 571 drivers/infiniband/hw/mthca/mthca_memfree.c int i, j; j 646 drivers/infiniband/hw/mthca/mthca_memfree.c j = find_first_zero_bit(page->used, MTHCA_DB_REC_PER_PAGE); j 647 drivers/infiniband/hw/mthca/mthca_memfree.c set_bit(j, page->used); j 650 drivers/infiniband/hw/mthca/mthca_memfree.c j = MTHCA_DB_REC_PER_PAGE - 1 - j; j 652 drivers/infiniband/hw/mthca/mthca_memfree.c ret = i * MTHCA_DB_REC_PER_PAGE + j; j 654 drivers/infiniband/hw/mthca/mthca_memfree.c page->db_rec[j] = cpu_to_be64((qn << 8) | (type << 5)); j 656 drivers/infiniband/hw/mthca/mthca_memfree.c *db = (__be32 *) &page->db_rec[j]; j 666 drivers/infiniband/hw/mthca/mthca_memfree.c int i, j; j 670 drivers/infiniband/hw/mthca/mthca_memfree.c j = db_index % MTHCA_DB_REC_PER_PAGE; j 676 drivers/infiniband/hw/mthca/mthca_memfree.c page->db_rec[j] = 0; j 678 drivers/infiniband/hw/mthca/mthca_memfree.c j = MTHCA_DB_REC_PER_PAGE - 1 - j; j 679 drivers/infiniband/hw/mthca/mthca_memfree.c clear_bit(j, page->used); j 80 drivers/infiniband/hw/mthca/mthca_profile.c int i, j; j 137 drivers/infiniband/hw/mthca/mthca_profile.c for (j = 1; j < i; ++j) { j 138 drivers/infiniband/hw/mthca/mthca_profile.c if (profile[j].size > profile[j - 1].size) j 139 drivers/infiniband/hw/mthca/mthca_profile.c swap(profile[j], profile[j - 1]); j 97 drivers/infiniband/hw/qib/qib_debugfs.c loff_t i = *spos, j; j 102 drivers/infiniband/hw/qib/qib_debugfs.c for (j = 0; j < dd->first_user_ctxt; j++) { j 103 drivers/infiniband/hw/qib/qib_debugfs.c if (!dd->rcd[j]) j 105 drivers/infiniband/hw/qib/qib_debugfs.c n_packets += dd->rcd[j]->opstats->stats[i].n_packets; j 106 drivers/infiniband/hw/qib/qib_debugfs.c n_bytes += dd->rcd[j]->opstats->stats[i].n_bytes; j 153 drivers/infiniband/hw/qib/qib_debugfs.c loff_t i, j; j 169 drivers/infiniband/hw/qib/qib_debugfs.c for (j = 0; j < ARRAY_SIZE(dd->rcd[i]->opstats->stats); j++) j 170 drivers/infiniband/hw/qib/qib_debugfs.c n_packets += dd->rcd[i]->opstats->stats[j].n_packets; j 684 drivers/infiniband/hw/qib/qib_file_ops.c int i, j, pchanged = 0; j 690 drivers/infiniband/hw/qib/qib_file_ops.c for (j = 0; j < ARRAY_SIZE(ppd->pkeys); j++) { j 692 drivers/infiniband/hw/qib/qib_file_ops.c if ((ppd->pkeys[j] & 0x7fff) != j 695 drivers/infiniband/hw/qib/qib_file_ops.c if (atomic_dec_and_test(&ppd->pkeyrefs[j])) { j 696 drivers/infiniband/hw/qib/qib_file_ops.c ppd->pkeys[j] = 0; j 2477 drivers/infiniband/hw/qib/qib_iba6120.c int i, j = 0; j 2480 drivers/infiniband/hw/qib/qib_iba6120.c for (i = 0, s = (char *)cntr6120names; s && j <= dd->cfgctxts; j 2483 drivers/infiniband/hw/qib/qib_iba6120.c if (!j && !strncmp("Ctxt0EgrOvfl", s + 1, 12)) j 2484 drivers/infiniband/hw/qib/qib_iba6120.c j = 1; j 2486 drivers/infiniband/hw/qib/qib_iba6120.c if (s && j) j 2487 drivers/infiniband/hw/qib/qib_iba6120.c j++; j 3129 drivers/infiniband/hw/qib/qib_iba7220.c int i, j = 0; j 3132 drivers/infiniband/hw/qib/qib_iba7220.c for (i = 0, s = (char *)cntr7220names; s && j <= dd->cfgctxts; j 3135 drivers/infiniband/hw/qib/qib_iba7220.c if (!j && !strncmp("Ctxt0EgrOvfl", s + 1, 12)) j 3136 drivers/infiniband/hw/qib/qib_iba7220.c j = 1; j 3138 drivers/infiniband/hw/qib/qib_iba7220.c if (s && j) j 3139 drivers/infiniband/hw/qib/qib_iba7220.c j++; j 4991 drivers/infiniband/hw/qib/qib_iba7322.c int i, j = 0; j 4994 drivers/infiniband/hw/qib/qib_iba7322.c for (i = 0, s = (char *)cntr7322names; s && j <= dd->cfgctxts; j 4997 drivers/infiniband/hw/qib/qib_iba7322.c if (!j && !strncmp("Ctxt0EgrOvfl", s + 1, 12)) j 4998 drivers/infiniband/hw/qib/qib_iba7322.c j = 1; j 5000 drivers/infiniband/hw/qib/qib_iba7322.c if (s && j) j 5001 drivers/infiniband/hw/qib/qib_iba7322.c j++; j 1396 drivers/infiniband/hw/qib/qib_init.c int ret, j, pidx, initfail; j 1457 drivers/infiniband/hw/qib/qib_init.c j = qib_device_create(dd); j 1458 drivers/infiniband/hw/qib/qib_init.c if (j) j 1459 drivers/infiniband/hw/qib/qib_init.c qib_dev_err(dd, "Failed to create /dev devices: %d\n", -j); j 1460 drivers/infiniband/hw/qib/qib_init.c j = qibfs_add(dd); j 1461 drivers/infiniband/hw/qib/qib_init.c if (j) j 1463 drivers/infiniband/hw/qib/qib_init.c -j); j 1472 drivers/infiniband/hw/qib/qib_init.c if (!j) { j 284 drivers/infiniband/hw/qib/qib_tx.c unsigned i, j, updated = 0; j 316 drivers/infiniband/hw/qib/qib_tx.c for (j = 0; j < nbufs; j++, i++) { j 331 drivers/infiniband/hw/qib/qib_tx.c if (j == nbufs) { j 664 drivers/infiniband/hw/qib/qib_user_sdma.c int i, j; j 669 drivers/infiniband/hw/qib/qib_user_sdma.c j = 8; j 671 drivers/infiniband/hw/qib/qib_user_sdma.c j = npages; j 673 drivers/infiniband/hw/qib/qib_user_sdma.c ret = get_user_pages_fast(addr, j, FOLL_LONGTERM, pages); j 674 drivers/infiniband/hw/qib/qib_user_sdma.c if (ret != j) { j 676 drivers/infiniband/hw/qib/qib_user_sdma.c j = ret; j 681 drivers/infiniband/hw/qib/qib_user_sdma.c for (i = 0; i < j; i++) { j 701 drivers/infiniband/hw/qib/qib_user_sdma.c npages -= j; j 708 drivers/infiniband/hw/qib/qib_user_sdma.c while (i < j) j 1255 drivers/infiniband/hw/qib/qib_user_sdma.c int i, j, c = 0; j 1281 drivers/infiniband/hw/qib/qib_user_sdma.c for (j = pkt->index; j <= i; j++) { j 225 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c int i, j, n; j 244 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c for (j = 0; j < res_chunk->cnt; j++) { j 245 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c vnic_res = res_chunk->res[j]; j 99 drivers/infiniband/hw/usnic/usnic_vnic.c int i, j, offset; j 120 drivers/infiniband/hw/usnic/usnic_vnic.c for (j = 0; j < chunk->cnt; j++) { j 121 drivers/infiniband/hw/usnic/usnic_vnic.c res = chunk->res[j]; j 157 drivers/infiniband/hw/usnic/usnic_vnic.c int found, i, j; j 162 drivers/infiniband/hw/usnic/usnic_vnic.c for (j = 0; j < USNIC_VNIC_RES_TYPE_MAX; j++) { j 2006 drivers/infiniband/sw/rdmavt/qp.c int j; j 2083 drivers/infiniband/sw/rdmavt/qp.c j = 0; j 2094 drivers/infiniband/sw/rdmavt/qp.c ret = rvt_lkey_ok(rkt, pd, &wqe->sg_list[j], last_sge, j 2100 drivers/infiniband/sw/rdmavt/qp.c last_sge = &wqe->sg_list[j]; j 2101 drivers/infiniband/sw/rdmavt/qp.c j += ret; j 2103 drivers/infiniband/sw/rdmavt/qp.c wqe->wr.num_sge = j; j 2164 drivers/infiniband/sw/rdmavt/qp.c while (j) { j 2165 drivers/infiniband/sw/rdmavt/qp.c struct rvt_sge *sge = &wqe->sg_list[--j]; j 2308 drivers/infiniband/sw/rdmavt/qp.c int i, j, ret; j 2320 drivers/infiniband/sw/rdmavt/qp.c for (i = j = 0; i < wqe->num_sge; i++) { j 2324 drivers/infiniband/sw/rdmavt/qp.c ret = rvt_lkey_ok(rkt, pd, j ? &ss->sg_list[j - 1] : &ss->sge, j 2330 drivers/infiniband/sw/rdmavt/qp.c j++; j 2332 drivers/infiniband/sw/rdmavt/qp.c ss->num_sge = j; j 2337 drivers/infiniband/sw/rdmavt/qp.c while (j) { j 2338 drivers/infiniband/sw/rdmavt/qp.c struct rvt_sge *sge = --j ? &ss->sg_list[j - 1] : &ss->sge; j 654 drivers/infiniband/sw/rxe/rxe_qp.c int j = nsecs_to_jiffies(4096ULL << attr->timeout); j 656 drivers/infiniband/sw/rxe/rxe_qp.c qp->qp_timeout_jiffies = j ? j : 1; j 242 drivers/infiniband/ulp/iser/iser_initiator.c int i, j; j 288 drivers/infiniband/ulp/iser/iser_initiator.c for (j = 0; j < i; j++, rx_desc++) j 174 drivers/infiniband/ulp/isert/ib_isert.c int i, j; j 203 drivers/infiniband/ulp/isert/ib_isert.c for (j = 0; j < i; j++, rx_desc++) { j 1350 drivers/infiniband/ulp/srp/ib_srp.c int i, j; j 1355 drivers/infiniband/ulp/srp/ib_srp.c for (j = 0; j < target->req_ring_size; ++j) { j 1356 drivers/infiniband/ulp/srp/ib_srp.c struct srp_request *req = &ch->req_ring[j]; j 1393 drivers/infiniband/ulp/srp/ib_srp.c int i, j, ret = 0; j 1412 drivers/infiniband/ulp/srp/ib_srp.c for (j = 0; j < target->req_ring_size; ++j) { j 1413 drivers/infiniband/ulp/srp/ib_srp.c struct srp_request *req = &ch->req_ring[j]; j 1428 drivers/infiniband/ulp/srp/ib_srp.c for (j = 0; j < target->queue_size; ++j) j 1429 drivers/infiniband/ulp/srp/ib_srp.c list_add(&ch->tx_ring[j]->list, &ch->free_tx); j 162 drivers/input/gameport/gameport.c unsigned int j, t = 0; j 167 drivers/input/gameport/gameport.c j = jiffies; while (j == jiffies); j 168 drivers/input/gameport/gameport.c j = jiffies; while (j == jiffies) { t++; gameport_read(gameport); } j 50 drivers/input/gameport/ns558.c int i, j, b; j 109 drivers/input/gameport/ns558.c for (j = b = 0; j < 1000; j++) j 387 drivers/input/input-mt.c int *w = mt->red, j; j 389 drivers/input/input-mt.c for (j = 0; j != num_pos; j++) j 390 drivers/input/input-mt.c slots[j] = -1; j 396 drivers/input/input-mt.c for (j = 0; j != num_pos; j++) { j 397 drivers/input/input-mt.c if (w[j] < 0) { j 398 drivers/input/input-mt.c slots[j] = s - mt->slots; j 410 drivers/input/input-mt.c for (j = 0; j != num_pos; j++) { j 411 drivers/input/input-mt.c if (slots[j] < 0) { j 412 drivers/input/input-mt.c slots[j] = s - mt->slots; j 903 drivers/input/joydev.c int i, j, t, minor, dev_no; j 957 drivers/input/joydev.c j = joydev->abspam[i]; j 958 drivers/input/joydev.c if (input_abs_get_max(dev, j) == input_abs_get_min(dev, j)) { j 963 drivers/input/joydev.c joydev->corr[i].prec = input_abs_get_fuzz(dev, j); j 965 drivers/input/joydev.c t = (input_abs_get_max(dev, j) + input_abs_get_min(dev, j)) / 2; j 966 drivers/input/joydev.c joydev->corr[i].coef[0] = t - input_abs_get_flat(dev, j); j 967 drivers/input/joydev.c joydev->corr[i].coef[1] = t + input_abs_get_flat(dev, j); j 969 drivers/input/joydev.c t = (input_abs_get_max(dev, j) - input_abs_get_min(dev, j)) / 2 j 970 drivers/input/joydev.c - 2 * input_abs_get_flat(dev, j); j 91 drivers/input/joystick/amijoy.c int i, j; j 127 drivers/input/joystick/amijoy.c for (j = 0; j < 2; j++) { j 128 drivers/input/joystick/amijoy.c input_set_abs_params(amijoy_dev[i], ABS_X + j, j 189 drivers/input/joystick/analog.c int i, j; j 198 drivers/input/joystick/analog.c for (i = j = 0; i < 6; i++) j 200 drivers/input/joystick/analog.c input_report_key(dev, analog->buttons[j++], (buttons >> i) & 1); j 204 drivers/input/joystick/analog.c input_report_key(dev, analog->buttons[j++], (buttons >> (i + 10)) & 1); j 215 drivers/input/joystick/analog.c for (i = j = 0; i < 4; i++) j 217 drivers/input/joystick/analog.c input_report_abs(dev, analog_axes[j++], axes[i]); j 219 drivers/input/joystick/analog.c for (i = j = 0; i < 3; i++) j 221 drivers/input/joystick/analog.c input_report_abs(dev, analog_hats[j++], j 223 drivers/input/joystick/analog.c input_report_abs(dev, analog_hats[j++], j 241 drivers/input/joystick/analog.c int i, j; j 276 drivers/input/joystick/analog.c for (j = 0; j < 4; j++) j 277 drivers/input/joystick/analog.c if (data[i] & (1 << j)) j 278 drivers/input/joystick/analog.c port->axes[j] = (delta(start, time[i]) << ANALOG_FUZZ_BITS) / port->loop; j 448 drivers/input/joystick/analog.c int i, j, t, v, w, x, y, z; j 475 drivers/input/joystick/analog.c for (i = j = 0; i < 4; i++) j 478 drivers/input/joystick/analog.c t = analog_axes[j]; j 486 drivers/input/joystick/analog.c if ((i == 2 || i == 3) && (j == 2 || j == 3) && (z > (y >> 3))) j 496 drivers/input/joystick/analog.c j++; j 499 drivers/input/joystick/analog.c for (i = j = 0; i < 3; i++) j 502 drivers/input/joystick/analog.c t = analog_hats[j++]; j 506 drivers/input/joystick/analog.c for (i = j = 0; i < 4; i++) j 508 drivers/input/joystick/analog.c set_bit(analog->buttons[j++], input_dev->keybit); j 512 drivers/input/joystick/analog.c set_bit(analog->buttons[j++], input_dev->keybit); j 516 drivers/input/joystick/analog.c set_bit(analog->buttons[j++], input_dev->keybit); j 736 drivers/input/joystick/analog.c int i, j; j 741 drivers/input/joystick/analog.c for (j = 0; analog_types[j].name; j++) j 742 drivers/input/joystick/analog.c if (!strcmp(analog_types[j].name, js[i])) { j 743 drivers/input/joystick/analog.c analog_options[i] = analog_types[j].value; j 746 drivers/input/joystick/analog.c if (analog_types[j].name) continue; j 46 drivers/input/joystick/cobra.c int i, j, ret; j 80 drivers/input/joystick/cobra.c for (j = 0; j < COBRA_LENGTH && (buf[i] & 0x04104107f) ^ 0x041041040; j++) j 83 drivers/input/joystick/cobra.c if (j < COBRA_LENGTH) ret |= (1 << i); j 99 drivers/input/joystick/cobra.c int i, j, r; j 116 drivers/input/joystick/cobra.c for (j = 0; cobra_btn[j]; j++) j 117 drivers/input/joystick/cobra.c input_report_key(dev, cobra_btn[j], data[i] & (0x20 << j)); j 144 drivers/input/joystick/cobra.c int i, j; j 205 drivers/input/joystick/cobra.c for (j = 0; cobra_btn[j]; j++) j 206 drivers/input/joystick/cobra.c set_bit(cobra_btn[j], input_dev->keybit); j 193 drivers/input/joystick/db9.c int i, j; j 233 drivers/input/joystick/db9.c for (j = 0; j < (data[i] & 0x0f); j++) j 234 drivers/input/joystick/db9.c data[i + j + 1] = db9_saturn_read_analog(port, type, powered); j 262 drivers/input/joystick/db9.c int tmp, i, j; j 265 drivers/input/joystick/db9.c for (j = 0; j < tmp && n < max_pads; j += 10, n++) { j 267 drivers/input/joystick/db9.c switch (data[j]) { j 269 drivers/input/joystick/db9.c input_report_abs(dev, db9_abs[5], data[j + 6]); j 272 drivers/input/joystick/db9.c input_report_abs(dev, db9_abs[3], data[j + 4]); j 273 drivers/input/joystick/db9.c input_report_abs(dev, db9_abs[4], data[j + 5]); j 276 drivers/input/joystick/db9.c input_report_abs(dev, db9_abs[2], data[j + 3]); j 280 drivers/input/joystick/db9.c input_report_abs(dev, db9_abs[0], !(data[j + 1] & 128) - !(data[j + 1] & 64)); j 281 drivers/input/joystick/db9.c input_report_abs(dev, db9_abs[1], !(data[j + 1] & 32) - !(data[j + 1] & 16)); j 283 drivers/input/joystick/db9.c input_report_key(dev, db9_cd32_btn[i], ~data[j + db9_saturn_byte[i]] & db9_saturn_mask[i]); j 286 drivers/input/joystick/db9.c input_report_abs(dev, db9_abs[0], !(data[j + 1] & 128) - !(data[j + 1] & 64)); j 287 drivers/input/joystick/db9.c input_report_abs(dev, db9_abs[1], !(data[j + 1] & 32) - !(data[j + 1] & 16)); j 289 drivers/input/joystick/db9.c input_report_key(dev, db9_cd32_btn[i], ~data[j + db9_saturn_byte[i]] & db9_saturn_mask[i]); j 290 drivers/input/joystick/db9.c input_report_abs(dev, db9_abs[2], data[j + 3]); j 291 drivers/input/joystick/db9.c input_report_abs(dev, db9_abs[3], data[j + 4]); j 292 drivers/input/joystick/db9.c input_report_abs(dev, db9_abs[4], data[j + 5]); j 297 drivers/input/joystick/db9.c input_report_abs(dev, db9_abs[6], data[j + 7]); j 298 drivers/input/joystick/db9.c input_report_abs(dev, db9_abs[7], data[j + 8]); j 299 drivers/input/joystick/db9.c input_report_abs(dev, db9_abs[5], data[j + 9]); j 302 drivers/input/joystick/db9.c input_report_key(dev, BTN_A, data[j + 3] & 0x80); j 303 drivers/input/joystick/db9.c input_report_abs(dev, db9_abs[2], data[j + 3] & 0x7f); j 306 drivers/input/joystick/db9.c input_report_key(dev, BTN_START, data[j + 1] & 0x08); j 307 drivers/input/joystick/db9.c input_report_key(dev, BTN_A, data[j + 1] & 0x04); j 308 drivers/input/joystick/db9.c input_report_key(dev, BTN_C, data[j + 1] & 0x02); j 309 drivers/input/joystick/db9.c input_report_key(dev, BTN_B, data[j + 1] & 0x01); j 310 drivers/input/joystick/db9.c input_report_abs(dev, db9_abs[2], data[j + 2] ^ 0x80); j 311 drivers/input/joystick/db9.c input_report_abs(dev, db9_abs[3], (0xff-(data[j + 3] ^ 0x80))+1); /* */ j 552 drivers/input/joystick/db9.c int i, j, port_idx; j 627 drivers/input/joystick/db9.c for (j = 0; j < db9_mode->n_buttons; j++) j 628 drivers/input/joystick/db9.c set_bit(db9_mode->buttons[j], input_dev->keybit); j 629 drivers/input/joystick/db9.c for (j = 0; j < db9_mode->n_axis; j++) { j 630 drivers/input/joystick/db9.c if (j < 2) j 631 drivers/input/joystick/db9.c input_set_abs_params(input_dev, db9_abs[j], -1, 1, 0, 0); j 633 drivers/input/joystick/db9.c input_set_abs_params(input_dev, db9_abs[j], 1, 255, 0, 0); j 132 drivers/input/joystick/fsia6b.c int i, j; j 175 drivers/input/joystick/fsia6b.c for (j = '1'; j <= switch_config[i]; j++) { j 209 drivers/input/joystick/gamecon.c int i, j, s; j 226 drivers/input/joystick/gamecon.c for (j = 0; j < 8; j++) { j 227 drivers/input/joystick/gamecon.c if (data[23 - j] & s) j 228 drivers/input/joystick/gamecon.c x |= 1 << j; j 229 drivers/input/joystick/gamecon.c if (data[31 - j] & s) j 230 drivers/input/joystick/gamecon.c y |= 1 << j; j 241 drivers/input/joystick/gamecon.c for (j = 0; j < 10; j++) j 242 drivers/input/joystick/gamecon.c input_report_key(dev, gc_n64_btn[j], j 243 drivers/input/joystick/gamecon.c s & data[gc_n64_bytes[j]]); j 363 drivers/input/joystick/gamecon.c int i, j, s, len; j 384 drivers/input/joystick/gamecon.c for (j = 0; j < 4; j++) j 385 drivers/input/joystick/gamecon.c input_report_key(dev, gc_snes_btn[j], j 386 drivers/input/joystick/gamecon.c s & data[gc_nes_bytes[j]]); j 395 drivers/input/joystick/gamecon.c for (j = 0; j < 8; j++) j 396 drivers/input/joystick/gamecon.c input_report_key(dev, gc_snes_btn[j], j 397 drivers/input/joystick/gamecon.c s & data[gc_snes_bytes[j]]); j 417 drivers/input/joystick/gamecon.c for (j = 0; j < 7; j++) { j 419 drivers/input/joystick/gamecon.c if (data[25 + j] & s) j 423 drivers/input/joystick/gamecon.c if (data[17 + j] & s) j 553 drivers/input/joystick/gamecon.c int i, j, cmd, read; j 564 drivers/input/joystick/gamecon.c for (j = 0; j < GC_MAX_DEVICES; j++) { j 565 drivers/input/joystick/gamecon.c struct gc_pad *pad = &gc->pads[j]; j 568 drivers/input/joystick/gamecon.c data[j] |= (read & gc_status_bit[j]) ? (1 << i) : 0; j 585 drivers/input/joystick/gamecon.c int i, j, max_len = 0; j 616 drivers/input/joystick/gamecon.c for (j = 0; j < GC_MAX_DEVICES; j++) j 617 drivers/input/joystick/gamecon.c data[j][i] = data2[j]; j 110 drivers/input/joystick/grip.c unsigned int i, j, buf, crc; j 119 drivers/input/joystick/grip.c status = buf = i = j = 0; j 145 drivers/input/joystick/grip.c j++; j 155 drivers/input/joystick/grip.c } while (status != 0xf && i < GRIP_MAX_BITS_XT && j < GRIP_MAX_CHUNKS_XT && t > 0); j 171 drivers/input/joystick/grip.c int i, j; j 193 drivers/input/joystick/grip.c for (j = 0; j < 12; j++) j 194 drivers/input/joystick/grip.c if (grip_btn_gpp[j]) j 195 drivers/input/joystick/grip.c input_report_key(dev, grip_btn_gpp[j], (*data >> j) & 1); j 213 drivers/input/joystick/grip.c for (j = 0; j < 5; j++) j 214 drivers/input/joystick/grip.c input_report_key(dev, grip_btn_bd[j], (data[3] >> (j + 4)) & 1); j 236 drivers/input/joystick/grip.c for (j = 0; j < 11; j++) j 237 drivers/input/joystick/grip.c input_report_key(dev, grip_btn_xt[j], (data[3] >> (j + 3)) & 1); j 256 drivers/input/joystick/grip.c for (j = 0; j < 9; j++) j 257 drivers/input/joystick/grip.c input_report_key(dev, grip_btn_dc[j], (data[3] >> (j + 3)) & 1); j 287 drivers/input/joystick/grip.c int i, j, t; j 356 drivers/input/joystick/grip.c for (j = 0; (t = grip_abs[grip->mode[i]][j]) >= 0; j++) { j 358 drivers/input/joystick/grip.c if (j < grip_cen[grip->mode[i]]) j 360 drivers/input/joystick/grip.c else if (j < grip_anx[grip->mode[i]]) j 366 drivers/input/joystick/grip.c for (j = 0; (t = grip_btn[grip->mode[i]][j]) >= 0; j++) j 588 drivers/input/joystick/grip_mp.c int j, t; j 609 drivers/input/joystick/grip_mp.c for (j = 0; (t = grip_abs[port->mode][j]) >= 0; j++) j 612 drivers/input/joystick/grip_mp.c for (j = 0; (t = grip_btn[port->mode][j]) >= 0; j++) j 159 drivers/input/joystick/iforce/iforce-packets.c int i, j; j 205 drivers/input/joystick/iforce/iforce-packets.c for (j = 3; j < len; j += 2) j 206 drivers/input/joystick/iforce/iforce-packets.c mark_core_as_ready(iforce, get_unaligned_le16(data + j)); j 38 drivers/input/joystick/joydump.c int i, j, t, timeout; j 111 drivers/input/joystick/joydump.c for (j = 7; j >= 0; j--) j 112 drivers/input/joystick/joydump.c printk("%d", (dump->data >> j) & 1); j 119 drivers/input/joystick/joydump.c for (j = 7; j >= 0; j--) j 120 drivers/input/joystick/joydump.c printk("%d", (dump->data >> j) & 1); j 182 drivers/input/joystick/sidewinder.c int j; j 184 drivers/input/joystick/sidewinder.c for (j = 0; j < i; j++) printk("%d", buf[j]); j 287 drivers/input/joystick/sidewinder.c int hat, i, j; j 307 drivers/input/joystick/sidewinder.c for (j = 0; j < 7; j++) j 308 drivers/input/joystick/sidewinder.c input_report_key(dev, sw_btn[SW_ID_3DP][j], !GB(j+8,1)); j 327 drivers/input/joystick/sidewinder.c for (j = 0; j < 10; j++) j 328 drivers/input/joystick/sidewinder.c input_report_key(sw->dev[i], sw_btn[SW_ID_GP][j], !GB(i*15+j+4,1)); j 350 drivers/input/joystick/sidewinder.c for (j = 0; j < 9; j++) j 351 drivers/input/joystick/sidewinder.c input_report_key(dev, sw_btn[SW_ID_PP][j], !GB(j,1)); j 370 drivers/input/joystick/sidewinder.c for (j = 0; j < 6; j++) j 371 drivers/input/joystick/sidewinder.c input_report_key(dev, sw_btn[SW_ID_FSP][j], !GB(j+10,1)); j 392 drivers/input/joystick/sidewinder.c for (j = 0; j < 8; j++) j 393 drivers/input/joystick/sidewinder.c input_report_key(dev, sw_btn[SW_ID_FFW][j], !GB(j+22,1)); j 574 drivers/input/joystick/sidewinder.c int i, j, k, l; j 618 drivers/input/joystick/sidewinder.c j = sw_read_packet(gameport, idbuf, SW_LENGTH, i); /* Read ID. This initializes the stick */ j 619 drivers/input/joystick/sidewinder.c m |= sw_guess_mode(idbuf, j); /* ID packet should carry mode info [3DP] */ j 620 drivers/input/joystick/sidewinder.c dbg("Init 2: Mode %d. ID Length %d.", m, j); j 622 drivers/input/joystick/sidewinder.c if (j <= 0) { /* Read ID failed. Happens in 1-bit mode on PP */ j 632 drivers/input/joystick/sidewinder.c j = sw_read_packet(gameport, idbuf, SW_LENGTH, i); /* Retry reading ID */ j 633 drivers/input/joystick/sidewinder.c dbg("Init 2c: ID Length %d.", j); j 661 drivers/input/joystick/sidewinder.c if (j <= 40) { /* ID length less or eq 40 -> FSP */ j 677 drivers/input/joystick/sidewinder.c if (j == 14) { /* ID length 14*3 -> FFP */ j 689 drivers/input/joystick/sidewinder.c if (j == 160) j 700 drivers/input/joystick/sidewinder.c sw_print_packet("ID", j * 3, idbuf, 3); j 707 drivers/input/joystick/sidewinder.c sw_print_packet("ID", j * 3, idbuf, 3); j 715 drivers/input/joystick/sidewinder.c l = j; j 746 drivers/input/joystick/sidewinder.c for (j = 0; (bits = sw_bit[sw->type][j]); j++) { j 749 drivers/input/joystick/sidewinder.c code = sw_abs[sw->type][j]; j 760 drivers/input/joystick/sidewinder.c for (j = 0; (code = sw_btn[sw->type][j]); j++) j 134 drivers/input/joystick/tmdc.c int i[2], j[2], t[2], p, k; j 140 drivers/input/joystick/tmdc.c i[k] = j[k] = 0; j 156 drivers/input/joystick/tmdc.c if (j[k] == 0) { /* Start bit */ j 158 drivers/input/joystick/tmdc.c data[k][i[k]] = 0; j[k]++; continue; j 160 drivers/input/joystick/tmdc.c if (j[k] == 9) { /* Stop bit */ j 162 drivers/input/joystick/tmdc.c j[k] = 0; i[k]++; continue; j 164 drivers/input/joystick/tmdc.c data[k][i[k]] |= (~v & 1) << (j[k]++ - 1); /* Data bit */ j 267 drivers/input/joystick/tmdc.c int i, j, b = 0; j 327 drivers/input/joystick/tmdc.c for (j = 0; j < port->btnc[i] && j < TMDC_BTN; j++) j 328 drivers/input/joystick/tmdc.c set_bit(port->btn[j + b], input_dev->keybit); j 149 drivers/input/joystick/turbografx.c int i, j, port_idx; j 226 drivers/input/joystick/turbografx.c for (j = 0; j < n_buttons[i]; j++) j 227 drivers/input/joystick/turbografx.c set_bit(tgfx_buttons[j], input_dev->keybit); j 269 drivers/input/keyboard/adp5588-keys.c int i, j; j 276 drivers/input/keyboard/adp5588-keys.c for (j = 0; j < kpad->gpimapsize; j++) { j 277 drivers/input/keyboard/adp5588-keys.c if (key_val == kpad->gpimap[j].pin) { j 279 drivers/input/keyboard/adp5588-keys.c kpad->gpimap[j].sw_evt, j 136 drivers/input/keyboard/amikbd.c int i, j; j 142 drivers/input/keyboard/amikbd.c for (j = 0; j < 0x78; j++) { j 143 drivers/input/keyboard/amikbd.c if (!amikbd_keycode[j]) j 145 drivers/input/keyboard/amikbd.c temp_map[j] = key_maps[i][amikbd_keycode[j]]; j 147 drivers/input/keyboard/amikbd.c for (j = 0; j < NR_KEYS; j++) { j 148 drivers/input/keyboard/amikbd.c if (!temp_map[j]) j 149 drivers/input/keyboard/amikbd.c temp_map[j] = 0xf200; j 543 drivers/input/keyboard/atkbd.c int i = 0, j = 0; j 549 drivers/input/keyboard/atkbd.c while (j < ARRAY_SIZE(delay) - 1 && delay[j] < dev->rep[REP_DELAY]) j 550 drivers/input/keyboard/atkbd.c j++; j 551 drivers/input/keyboard/atkbd.c dev->rep[REP_DELAY] = delay[j]; j 553 drivers/input/keyboard/atkbd.c param = i | (j << 5); j 1005 drivers/input/keyboard/atkbd.c int i, j; j 1016 drivers/input/keyboard/atkbd.c for (j = 0; j < ARRAY_SIZE(atkbd_scroll_keys); j++) j 1017 drivers/input/keyboard/atkbd.c if ((scancode | 0x80) == atkbd_scroll_keys[j].set2) j 1018 drivers/input/keyboard/atkbd.c atkbd->keycode[i | 0x80] = atkbd_scroll_keys[j].keycode; j 54 drivers/input/keyboard/goldfish_events.c int i, j; j 67 drivers/input/keyboard/goldfish_events.c for (j = 0; j < 8; j++) j 68 drivers/input/keyboard/goldfish_events.c if (val & 1 << j) j 69 drivers/input/keyboard/goldfish_events.c set_bit(i + j, bits); j 79 drivers/input/keyboard/goldfish_events.c int i, j; j 91 drivers/input/keyboard/goldfish_events.c for (j = 0; j < ARRAY_SIZE(val); j++) { j 92 drivers/input/keyboard/goldfish_events.c int offset = (i * ARRAY_SIZE(val) + j) * sizeof(u32); j 94 drivers/input/keyboard/goldfish_events.c val[j] = __raw_readl(edev->addr + REG_DATA + offset); j 79 drivers/input/keyboard/jornada680_kbd.c unsigned int i, j; j 89 drivers/input/keyboard/jornada680_kbd.c for (j = 0; j < 8; j++) { j 90 drivers/input/keyboard/jornada680_kbd.c unsigned int bit = 1 << j; j 92 drivers/input/keyboard/jornada680_kbd.c unsigned int scancode = (i << 3) + j; j 118 drivers/input/keyboard/tegra-kbc.c unsigned int i, j; j 121 drivers/input/keyboard/tegra-kbc.c for (j = 0; j < new_num_keys; j++) j 122 drivers/input/keyboard/tegra-kbc.c if (old_keycodes[i] == new_keycodes[j]) j 125 drivers/input/keyboard/tegra-kbc.c if (j == new_num_keys) j 184 drivers/input/keyboard/tegra-kbc.c unsigned int j; j 192 drivers/input/keyboard/tegra-kbc.c for (j = i + 1; j < num_down; j++) { j 193 drivers/input/keyboard/tegra-kbc.c u8 col = scancodes[j] & 0x07; j 194 drivers/input/keyboard/tegra-kbc.c u8 row = scancodes[j] >> KBC_ROW_SHIFT; j 914 drivers/input/misc/ad714x.c int i, j; j 922 drivers/input/misc/ad714x.c for (j = 0; j < STAGE_CFGREG_NUM; j++) j 923 drivers/input/misc/ad714x.c ad714x->write(ad714x, reg_base + j, j 924 drivers/input/misc/ad714x.c ad714x->hw->stage_cfg_reg[i][j]); j 518 drivers/input/mouse/appletouch.c int retval, i, j; j 539 drivers/input/mouse/appletouch.c for (i = 0, j = 19; i < 20; i += 2, j += 3) { j 540 drivers/input/mouse/appletouch.c dev->xy_cur[i] = dev->data[j]; j 541 drivers/input/mouse/appletouch.c dev->xy_cur[i + 1] = dev->data[j + 1]; j 545 drivers/input/mouse/appletouch.c for (i = 0, j = 1; i < 9; i += 2, j += 3) { j 546 drivers/input/mouse/appletouch.c dev->xy_cur[ATP_XSENSORS + i] = dev->data[j]; j 547 drivers/input/mouse/appletouch.c dev->xy_cur[ATP_XSENSORS + i + 1] = dev->data[j + 1]; j 658 drivers/input/mouse/appletouch.c int retval, i, j; j 676 drivers/input/mouse/appletouch.c for (i = 0, j = 19; i < 20; i += 2, j += 3) { j 677 drivers/input/mouse/appletouch.c dev->xy_cur[i] = dev->data[j + 1]; j 678 drivers/input/mouse/appletouch.c dev->xy_cur[i + 1] = dev->data[j + 2]; j 681 drivers/input/mouse/appletouch.c for (i = 0, j = 1; i < 9; i += 2, j += 3) { j 682 drivers/input/mouse/appletouch.c dev->xy_cur[ATP_XSENSORS + i] = dev->data[j + 1]; j 683 drivers/input/mouse/appletouch.c dev->xy_cur[ATP_XSENSORS + i + 1] = dev->data[j + 2]; j 457 drivers/input/mouse/elan_i2c_core.c int i, j; j 474 drivers/input/mouse/elan_i2c_core.c for (j = 0; j < ETP_FW_PAGE_SIZE; j += 2) j 475 drivers/input/mouse/elan_i2c_core.c checksum += ((page[j + 1] << 8) | page[j]); j 89 drivers/input/serio/hil_mlc.c int j; j 91 drivers/input/serio/hil_mlc.c for (j = val; j < 7 ; j++) j 92 drivers/input/serio/hil_mlc.c mlc->di_map[j] = -1; j 110 drivers/input/serio/hil_mlc.c int j, found = 0; j 113 drivers/input/serio/hil_mlc.c for (j = 0; j < 7 ; j++) j 114 drivers/input/serio/hil_mlc.c if (mlc->di_map[j] == idx) j 135 drivers/input/serio/hil_mlc.c int j, found = 0; j 137 drivers/input/serio/hil_mlc.c for (j = 0; j < 7 ; j++) j 138 drivers/input/serio/hil_mlc.c if (mlc->di_map[j] == idx) j 153 drivers/input/serio/hil_mlc.c int j, found = 0; j 155 drivers/input/serio/hil_mlc.c for (j = 0; j < 7 ; j++) j 156 drivers/input/serio/hil_mlc.c if (mlc->di_map[j] == idx) j 1267 drivers/input/tablet/aiptek.c int err, j; j 1269 drivers/input/tablet/aiptek.c err = kstrtoint(buf, 10, &j); j 1273 drivers/input/tablet/aiptek.c aiptek->newSetting.jitterDelay = j; j 2710 drivers/input/touchscreen/atmel_mxt_ts.c int i, j; j 2729 drivers/input/touchscreen/atmel_mxt_ts.c for (j = 0; j < mxt_obj_instances(object); j++) { j 2731 drivers/input/touchscreen/atmel_mxt_ts.c u16 addr = object->start_address + j * size; j 2737 drivers/input/touchscreen/atmel_mxt_ts.c count = mxt_show_instance(buf, count, object, j, obuf); j 860 drivers/input/touchscreen/cyttsp4_core.c int i, j, t = 0; j 896 drivers/input/touchscreen/cyttsp4_core.c for (j = 0; j <= CY_ABS_W_OST; j++) { j 897 drivers/input/touchscreen/cyttsp4_core.c sig = md->pdata->frmwrk->abs[((CY_ABS_X_OST + j) * j 901 drivers/input/touchscreen/cyttsp4_core.c tch.abs[CY_TCH_X + j]); j 914 drivers/input/touchscreen/cyttsp4_core.c for (j = 0; j < CY_NUM_EXT_TCH_FIELDS; j++) { j 916 drivers/input/touchscreen/cyttsp4_core.c [((CY_ABS_MAJ_OST + j) * j 920 drivers/input/touchscreen/cyttsp4_core.c tch.abs[CY_TCH_MAJ + j]); j 331 drivers/input/touchscreen/iqs5xx.c int error, i, j; j 341 drivers/input/touchscreen/iqs5xx.c for (j = 0; j < IQS5XX_NUM_RETRIES; j++) { j 471 drivers/interconnect/qcom/qcs404.c size_t j; j 486 drivers/interconnect/qcom/qcs404.c for (j = 0; j < qnodes[i]->num_links; j++) j 487 drivers/interconnect/qcom/qcs404.c icc_link_create(node, qnodes[i]->links[j]); j 818 drivers/interconnect/qcom/sdm845.c size_t j; j 834 drivers/interconnect/qcom/sdm845.c for (j = 0; j < qnodes[i]->num_links; j++) j 835 drivers/interconnect/qcom/sdm845.c icc_link_create(node, qnodes[i]->links[j]); j 2604 drivers/iommu/amd_iommu.c int j, pages = iommu_num_pages(sg_phys(s), s->length, PAGE_SIZE); j 2606 drivers/iommu/amd_iommu.c for (j = 0; j < pages; ++j) { j 2609 drivers/iommu/amd_iommu.c bus_addr = address + s->dma_address + (j << PAGE_SHIFT); j 2610 drivers/iommu/amd_iommu.c phys_addr = (sg_phys(s) & PAGE_MASK) + (j << PAGE_SHIFT); j 2642 drivers/iommu/amd_iommu.c int j, pages = iommu_num_pages(sg_phys(s), s->length, PAGE_SIZE); j 2644 drivers/iommu/amd_iommu.c for (j = 0; j < pages; ++j) { j 2647 drivers/iommu/amd_iommu.c bus_addr = address + s->dma_address + (j << PAGE_SHIFT); j 1804 drivers/iommu/amd_iommu_init.c int i, j; j 1824 drivers/iommu/amd_iommu_init.c for (j = 0; j < 0x12; j++) j 1825 drivers/iommu/amd_iommu_init.c iommu->stored_l1[i][j] = iommu_read_l1(iommu, i, j); j 2233 drivers/iommu/amd_iommu_init.c int i, j; j 2262 drivers/iommu/amd_iommu_init.c for (j = 0; j < 0x12; j++) j 2263 drivers/iommu/amd_iommu_init.c iommu_write_l1(iommu, i, j, iommu->stored_l1[i][j]); j 2298 drivers/iommu/arm-smmu-v3.c int i, j; j 2306 drivers/iommu/arm-smmu-v3.c for (j = 0; j < i; j++) j 2307 drivers/iommu/arm-smmu-v3.c if (master->sids[j] == sid) j 2309 drivers/iommu/arm-smmu-v3.c if (j < i) j 754 drivers/iommu/fsl_pamu.c unsigned int i, j, ret; j 786 drivers/iommu/fsl_pamu.c for (j = 0; j < 4; j++) j 788 drivers/iommu/fsl_pamu.c j, in_be32(paace + j)); j 1153 drivers/iommu/io-pgtable-arm.c int i, j; j 1185 drivers/iommu/io-pgtable-arm.c for_each_set_bit(j, &cfg->pgsize_bitmap, BITS_PER_LONG) { j 1186 drivers/iommu/io-pgtable-arm.c size = 1UL << j; j 1219 drivers/iommu/io-pgtable-arm.c for_each_set_bit(j, &cfg->pgsize_bitmap, BITS_PER_LONG) { j 1220 drivers/iommu/io-pgtable-arm.c size = 1UL << j; j 1257 drivers/iommu/io-pgtable-arm.c int i, j, pass = 0, fail = 0; j 1265 drivers/iommu/io-pgtable-arm.c for (j = 0; j < ARRAY_SIZE(ias); ++j) { j 1267 drivers/iommu/io-pgtable-arm.c cfg.ias = ias[j]; j 1269 drivers/iommu/io-pgtable-arm.c pgsize[i], ias[j]); j 1012 drivers/iommu/iova.c int i, j; j 1022 drivers/iommu/iova.c for (j = 0; j < rcache->depot_size; ++j) j 1023 drivers/iommu/iova.c iova_magazine_free(rcache->depot[j]); j 179 drivers/iommu/omap-iommu-debug.c int i, j; j 198 drivers/iommu/omap-iommu-debug.c for (j = 0; j < PTRS_PER_IOPTE; j++, iopte++) { j 202 drivers/iommu/omap-iommu-debug.c da = (i << IOPGD_SHIFT) + (j << IOPTE_SHIFT); j 816 drivers/iommu/tegra-smmu.c unsigned int i, j; j 819 drivers/iommu/tegra-smmu.c for (j = 0; j < smmu->soc->groups[i].num_swgroups; j++) j 820 drivers/iommu/tegra-smmu.c if (smmu->soc->groups[i].swgroups[j] == swgroup) j 934 drivers/irqchip/irq-gic.c int j; j 939 drivers/irqchip/irq-gic.c for (j = i; j < i + 4; j++) { j 941 drivers/irqchip/irq-gic.c writel_relaxed((1 << (new_cpu_id + 16)) | j, j 485 drivers/irqchip/irq-mmp.c int i, ret, irq, j = 0; j 544 drivers/irqchip/irq-mmp.c for (j = 0; j < irq; j++) j 545 drivers/irqchip/irq-mmp.c irq_dispose_mapping(icu_data[i].virq_base + j); j 200 drivers/irqchip/irq-mtk-sysirq.c u32 word = i / 32, j; j 202 drivers/irqchip/irq-mtk-sysirq.c for (j = 0; word >= chip_data->intpol_words[j] ; j++) j 203 drivers/irqchip/irq-mtk-sysirq.c word -= chip_data->intpol_words[j]; j 205 drivers/irqchip/irq-mtk-sysirq.c chip_data->intpol_idx[i] = j; j 265 drivers/irqchip/irq-omap-intc.c int j, irq_base; j 282 drivers/irqchip/irq-omap-intc.c for (j = 0; j < omap_nr_irqs; j += 32) j 283 drivers/irqchip/irq-omap-intc.c omap_alloc_gc_legacy(omap_irq_base + j, j + irq_base, 32); j 145 drivers/irqchip/irq-renesas-rza1.c unsigned int imaplen, i, j, ret; j 181 drivers/irqchip/irq-renesas-rza1.c for (j = 0; j < intsize; j++) j 182 drivers/irqchip/irq-renesas-rza1.c priv->map[i].args[j] = be32_to_cpup(imap++); j 2631 drivers/isdn/hardware/mISDN/hfcmulti.c int ch, j; j 2637 drivers/isdn/hardware/mISDN/hfcmulti.c j = 0; j 2638 drivers/isdn/hardware/mISDN/hfcmulti.c while (j < 8) { j 2639 drivers/isdn/hardware/mISDN/hfcmulti.c ch = (block << 2) + (j >> 1); j 2643 drivers/isdn/hardware/mISDN/hfcmulti.c j += 2; j 2646 drivers/isdn/hardware/mISDN/hfcmulti.c if (dch && (r_irq_fifo_bl & (1 << j)) && j 2653 drivers/isdn/hardware/mISDN/hfcmulti.c if (bch && (r_irq_fifo_bl & (1 << j)) && j 2660 drivers/isdn/hardware/mISDN/hfcmulti.c j++; j 2661 drivers/isdn/hardware/mISDN/hfcmulti.c if (dch && (r_irq_fifo_bl & (1 << j)) && j 2665 drivers/isdn/hardware/mISDN/hfcmulti.c if (bch && (r_irq_fifo_bl & (1 << j)) && j 2669 drivers/isdn/hardware/mISDN/hfcmulti.c j++; j 193 drivers/isdn/mISDN/dsp_audio.c int i, j, k; j 199 drivers/isdn/mISDN/dsp_audio.c j = 0; j 203 drivers/isdn/mISDN/dsp_audio.c j++; j 205 drivers/isdn/mISDN/dsp_audio.c sorted_alaw[j] = i; j 215 drivers/isdn/mISDN/dsp_audio.c for (j = 0; j < 256; j++) { j 216 drivers/isdn/mISDN/dsp_audio.c if (sorted_alaw[j] == spl) j 220 drivers/isdn/mISDN/dsp_audio.c dsp_audio_law2seven[i] = j >> 1; j 241 drivers/isdn/mISDN/dsp_audio.c int i, j; j 246 drivers/isdn/mISDN/dsp_audio.c j = 0; j 247 drivers/isdn/mISDN/dsp_audio.c while (j < 256) { j 249 drivers/isdn/mISDN/dsp_audio.c sample += dsp_audio_law_to_s32[j]; j 254 drivers/isdn/mISDN/dsp_audio.c dsp_audio_mix_law[(i << 8) | j] = j 256 drivers/isdn/mISDN/dsp_audio.c j++; j 371 drivers/isdn/mISDN/dsp_blowfish.c int i = 0, j = dsp->bf_crypt_pos; j 382 drivers/isdn/mISDN/dsp_blowfish.c if (j < 9) { j 383 drivers/isdn/mISDN/dsp_blowfish.c bf_data_in[j] = *data; j 384 drivers/isdn/mISDN/dsp_blowfish.c *data++ = bf_crypt_out[j++]; j 388 drivers/isdn/mISDN/dsp_blowfish.c j = 0; j 448 drivers/isdn/mISDN/dsp_blowfish.c dsp->bf_crypt_pos = j; j 461 drivers/isdn/mISDN/dsp_blowfish.c u8 j = dsp->bf_decrypt_in_pos; j 478 drivers/isdn/mISDN/dsp_blowfish.c bf_crypt_inring[j++ & 15] = *data; j 486 drivers/isdn/mISDN/dsp_blowfish.c j -= 9; j 488 drivers/isdn/mISDN/dsp_blowfish.c yl = bf_crypt_inring[j++ & 15]; j 489 drivers/isdn/mISDN/dsp_blowfish.c yl = (yl << 7) | bf_crypt_inring[j++ & 15]; /* bit7 = 0 */ j 490 drivers/isdn/mISDN/dsp_blowfish.c yl = (yl << 7) | bf_crypt_inring[j++ & 15]; /* bit7 = 0 */ j 491 drivers/isdn/mISDN/dsp_blowfish.c yl = (yl << 7) | bf_crypt_inring[j++ & 15]; /* bit7 = 0 */ j 492 drivers/isdn/mISDN/dsp_blowfish.c nibble = bf_crypt_inring[j++ & 15]; /* bit7 = 0 */ j 495 drivers/isdn/mISDN/dsp_blowfish.c cs2 = bf_crypt_inring[j++ & 15]; j 497 drivers/isdn/mISDN/dsp_blowfish.c cs1 = bf_crypt_inring[j++ & 15]; j 499 drivers/isdn/mISDN/dsp_blowfish.c cs0 = bf_crypt_inring[j++ & 15]; j 501 drivers/isdn/mISDN/dsp_blowfish.c yr = (yr << 8) | bf_crypt_inring[j++ & 15]; j 555 drivers/isdn/mISDN/dsp_blowfish.c dsp->bf_decrypt_in_pos = j; j 601 drivers/isdn/mISDN/dsp_blowfish.c short i, j, count; j 624 drivers/isdn/mISDN/dsp_blowfish.c for (j = 0; j < 4; j++, count++) j 632 drivers/isdn/mISDN/dsp_blowfish.c for (j = 0, i = 0; i < 16 + 2; i++) { j 633 drivers/isdn/mISDN/dsp_blowfish.c temp = (((u32)key[j] << 24) | j 634 drivers/isdn/mISDN/dsp_blowfish.c ((u32)key[(j + 1) % keylen] << 16) | j 635 drivers/isdn/mISDN/dsp_blowfish.c ((u32)key[(j + 2) % keylen] << 8) | j 636 drivers/isdn/mISDN/dsp_blowfish.c ((u32)key[(j + 3) % keylen])); j 639 drivers/isdn/mISDN/dsp_blowfish.c j = (j + 4) % keylen; j 653 drivers/isdn/mISDN/dsp_blowfish.c for (j = 0, count = i * 256; j < 256; j += 2, count += 2) { j 216 drivers/isdn/mISDN/dsp_tones.c int i, j; j 220 drivers/isdn/mISDN/dsp_tones.c j = 0; j 221 drivers/isdn/mISDN/dsp_tones.c while (j < (*samples[i].len)) { j 222 drivers/isdn/mISDN/dsp_tones.c samples[i].data[j] = j 223 drivers/isdn/mISDN/dsp_tones.c dsp_audio_alaw_to_ulaw[samples[i].data[j]]; j 224 drivers/isdn/mISDN/dsp_tones.c j++; j 201 drivers/leds/leds-lm3697.c int j; j 262 drivers/leds/leds-lm3697.c for (j = 0; j < led->num_leds; j++) j 264 drivers/leds/leds-lm3697.c (led->control_bank << led->hvled_strings[j]); j 268 drivers/leds/leds-lp5523.c int j; j 296 drivers/leds/leds-lp5523.c for (j = 0; j < LP5523_PROGRAM_LENGTH; j++) { j 297 drivers/leds/leds-lp5523.c ret = lp55xx_write(chip, LP5523_REG_PROG_MEM + j, j 298 drivers/leds/leds-lp5523.c pattern[i - 1][j]); j 133 drivers/leds/leds-tlc591xx.c tlc591xx_destroy_devices(struct tlc591xx_priv *priv, unsigned int j) j 135 drivers/leds/leds-tlc591xx.c int i = j; j 105 drivers/lightnvm/core.c int i, j; j 113 drivers/lightnvm/core.c for (j = 0; j < ch_map->num_lun; j++) { j 114 drivers/lightnvm/core.c int lun = j + lun_offs[j]; j 149 drivers/lightnvm/core.c int i, j; j 185 drivers/lightnvm/core.c for (j = 0; j < luns_in_chnl; j++) { j 188 drivers/lightnvm/core.c luns[lunid++].a.lun = j; j 190 drivers/lightnvm/core.c lun_offs[j] = blun; j 191 drivers/lightnvm/core.c lun_roffs[j + blun] = blun; j 513 drivers/lightnvm/core.c int i, j; j 538 drivers/lightnvm/core.c for (j = 0; j < luns_in_chnl; j++) j 539 drivers/lightnvm/core.c lun_roffs[j] = -1; j 779 drivers/lightnvm/pblk-core.c int i, j; j 827 drivers/lightnvm/pblk-core.c for (j = 0; j < min; j++, i++, paddr++) j 146 drivers/lightnvm/pblk-read.c int i, j; j 151 drivers/lightnvm/pblk-read.c for (i = 0, j = 0; i < nr_lbas; i++) { j 153 drivers/lightnvm/pblk-read.c meta_lba_list, j); j 166 drivers/lightnvm/pblk-read.c print_ppa(pblk, &ppa_list[j], "rnd", j); j 173 drivers/lightnvm/pblk-read.c j++; j 176 drivers/lightnvm/pblk-read.c WARN_ONCE(j != rqd->nr_ppas, "pblk: corrupted random request\n"); j 186 drivers/lightnvm/pblk-recovery.c int i, j; j 246 drivers/lightnvm/pblk-recovery.c for (j = 0; j < pblk->min_write_pgs; j++, i++, w_ptr++) { j 369 drivers/lightnvm/pblk-recovery.c int i, j; j 418 drivers/lightnvm/pblk-recovery.c for (j = 0; j < pblk->min_write_pgs; j++, i++) j 420 drivers/lightnvm/pblk-recovery.c addr_to_gen_ppa(pblk, paddr + j, line->id); j 382 drivers/lightnvm/pblk-write.c int i, j; j 402 drivers/lightnvm/pblk-write.c for (j = 0; j < rq_ppas; j++, i++, paddr++) j 289 drivers/macintosh/macio_asic.c int i = 0, j = 0; j 294 drivers/macintosh/macio_asic.c if (j >= MACIO_DEV_COUNT_IRQS) j 296 drivers/macintosh/macio_asic.c res = &dev->interrupt[j]; j 307 drivers/macintosh/macio_asic.c j++; j 309 drivers/macintosh/macio_asic.c dev->n_interrupts = j; j 434 drivers/md/bcache/alloc.c unsigned int j; j 439 drivers/md/bcache/alloc.c for (j = 0; j < RESERVE_NR; j++) j 440 drivers/md/bcache/alloc.c fifo_for_each(i, &ca->free[j], iter) j 372 drivers/md/bcache/bset.c static unsigned int inorder_next(unsigned int j, unsigned int size) j 374 drivers/md/bcache/bset.c if (j * 2 + 1 < size) { j 375 drivers/md/bcache/bset.c j = j * 2 + 1; j 377 drivers/md/bcache/bset.c while (j * 2 < size) j 378 drivers/md/bcache/bset.c j *= 2; j 380 drivers/md/bcache/bset.c j >>= ffz(j) + 1; j 382 drivers/md/bcache/bset.c return j; j 389 drivers/md/bcache/bset.c static unsigned int inorder_prev(unsigned int j, unsigned int size) j 391 drivers/md/bcache/bset.c if (j * 2 < size) { j 392 drivers/md/bcache/bset.c j = j * 2; j 394 drivers/md/bcache/bset.c while (j * 2 + 1 < size) j 395 drivers/md/bcache/bset.c j = j * 2 + 1; j 397 drivers/md/bcache/bset.c j >>= ffs(j); j 399 drivers/md/bcache/bset.c return j; j 416 drivers/md/bcache/bset.c static unsigned int __to_inorder(unsigned int j, j 420 drivers/md/bcache/bset.c unsigned int b = fls(j); j 423 drivers/md/bcache/bset.c j ^= 1U << (b - 1); j 424 drivers/md/bcache/bset.c j <<= 1; j 425 drivers/md/bcache/bset.c j |= 1; j 426 drivers/md/bcache/bset.c j <<= shift; j 428 drivers/md/bcache/bset.c if (j > extra) j 429 drivers/md/bcache/bset.c j -= (j - extra) >> 1; j 431 drivers/md/bcache/bset.c return j; j 438 drivers/md/bcache/bset.c static unsigned int to_inorder(unsigned int j, struct bset_tree *t) j 440 drivers/md/bcache/bset.c return __to_inorder(j, t->size, t->extra); j 443 drivers/md/bcache/bset.c static unsigned int __inorder_to_tree(unsigned int j, j 449 drivers/md/bcache/bset.c if (j > extra) j 450 drivers/md/bcache/bset.c j += j - extra; j 452 drivers/md/bcache/bset.c shift = ffs(j); j 454 drivers/md/bcache/bset.c j >>= shift; j 455 drivers/md/bcache/bset.c j |= roundup_pow_of_two(size) >> shift; j 457 drivers/md/bcache/bset.c return j; j 464 drivers/md/bcache/bset.c static unsigned int inorder_to_tree(unsigned int j, struct bset_tree *t) j 466 drivers/md/bcache/bset.c return __inorder_to_tree(j, t->size, t->extra); j 480 drivers/md/bcache/bset.c unsigned int i = 1, j = rounddown_pow_of_two(size - 1); j 487 drivers/md/bcache/bset.c if (__inorder_to_tree(i, size, extra) != j) j 488 drivers/md/bcache/bset.c panic("size %10u j %10u i %10u", size, j, i); j 490 drivers/md/bcache/bset.c if (__to_inorder(j, size, extra) != i) j 491 drivers/md/bcache/bset.c panic("size %10u j %10u i %10u", size, j, i); j 493 drivers/md/bcache/bset.c if (j == rounddown_pow_of_two(size) - 1) j 496 drivers/md/bcache/bset.c BUG_ON(inorder_prev(inorder_next(j, size), size) != j); j 498 drivers/md/bcache/bset.c j = inorder_next(j, size); j 545 drivers/md/bcache/bset.c static struct bkey *tree_to_bkey(struct bset_tree *t, unsigned int j) j 547 drivers/md/bcache/bset.c return cacheline_to_bkey(t, to_inorder(j, t), t->tree[j].m); j 550 drivers/md/bcache/bset.c static struct bkey *tree_to_prev_bkey(struct bset_tree *t, unsigned int j) j 552 drivers/md/bcache/bset.c return (void *) (((uint64_t *) tree_to_bkey(t, j)) - t->prev[j]); j 593 drivers/md/bcache/bset.c static void make_bfloat(struct bset_tree *t, unsigned int j) j 595 drivers/md/bcache/bset.c struct bkey_float *f = &t->tree[j]; j 596 drivers/md/bcache/bset.c struct bkey *m = tree_to_bkey(t, j); j 597 drivers/md/bcache/bset.c struct bkey *p = tree_to_prev_bkey(t, j); j 599 drivers/md/bcache/bset.c struct bkey *l = is_power_of_2(j) j 601 drivers/md/bcache/bset.c : tree_to_prev_bkey(t, j >> ffs(j)); j 603 drivers/md/bcache/bset.c struct bkey *r = is_power_of_2(j + 1) j 605 drivers/md/bcache/bset.c : tree_to_bkey(t, j >> (ffz(j) + 1)); j 641 drivers/md/bcache/bset.c unsigned int j = roundup(t[-1].size, j 644 drivers/md/bcache/bset.c t->tree = t[-1].tree + j; j 645 drivers/md/bcache/bset.c t->prev = t[-1].prev + j; j 696 drivers/md/bcache/bset.c unsigned int j, cacheline = 1; j 714 drivers/md/bcache/bset.c for (j = inorder_next(0, t->size); j 715 drivers/md/bcache/bset.c j; j 716 drivers/md/bcache/bset.c j = inorder_next(j, t->size)) { j 720 drivers/md/bcache/bset.c t->prev[j] = bkey_u64s(prev); j 721 drivers/md/bcache/bset.c t->tree[j].m = bkey_to_cacheline_offset(t, cacheline++, k); j 730 drivers/md/bcache/bset.c for (j = inorder_next(0, t->size); j 731 drivers/md/bcache/bset.c j; j 732 drivers/md/bcache/bset.c j = inorder_next(j, t->size)) j 733 drivers/md/bcache/bset.c make_bfloat(t, j); j 742 drivers/md/bcache/bset.c unsigned int inorder, j = 1; j 763 drivers/md/bcache/bset.c j = inorder_to_tree(inorder, t); j 765 drivers/md/bcache/bset.c if (j && j 766 drivers/md/bcache/bset.c j < t->size && j 767 drivers/md/bcache/bset.c k == tree_to_bkey(t, j)) j 769 drivers/md/bcache/bset.c make_bfloat(t, j); j 770 drivers/md/bcache/bset.c j = j * 2; j 771 drivers/md/bcache/bset.c } while (j < t->size); j 773 drivers/md/bcache/bset.c j = inorder_to_tree(inorder + 1, t); j 775 drivers/md/bcache/bset.c if (j && j 776 drivers/md/bcache/bset.c j < t->size && j 777 drivers/md/bcache/bset.c k == tree_to_prev_bkey(t, j)) j 779 drivers/md/bcache/bset.c make_bfloat(t, j); j 780 drivers/md/bcache/bset.c j = j * 2 + 1; j 781 drivers/md/bcache/bset.c } while (j < t->size); j 790 drivers/md/bcache/bset.c unsigned int j = bkey_to_cacheline(t, k); j 801 drivers/md/bcache/bset.c while (j < t->size && j 802 drivers/md/bcache/bset.c table_to_bkey(t, j) <= k) j 803 drivers/md/bcache/bset.c j++; j 809 drivers/md/bcache/bset.c for (; j < t->size; j++) { j 810 drivers/md/bcache/bset.c t->prev[j] += shift; j 812 drivers/md/bcache/bset.c if (t->prev[j] > 7) { j 813 drivers/md/bcache/bset.c k = table_to_bkey(t, j - 1); j 815 drivers/md/bcache/bset.c while (k < cacheline_to_bkey(t, j, 0)) j 818 drivers/md/bcache/bset.c t->prev[j] = bkey_to_cacheline_offset(t, j, k); j 967 drivers/md/bcache/bset.c unsigned int inorder, j, n = 1; j 975 drivers/md/bcache/bset.c j = n; j 976 drivers/md/bcache/bset.c f = &t->tree[j]; j 980 drivers/md/bcache/bset.c n = j * 2; j 982 drivers/md/bcache/bset.c n = j * 2 + 1; j 984 drivers/md/bcache/bset.c if (bkey_cmp(tree_to_bkey(t, j), search) > 0) j 985 drivers/md/bcache/bset.c n = j * 2; j 987 drivers/md/bcache/bset.c n = j * 2 + 1; j 991 drivers/md/bcache/bset.c inorder = to_inorder(j, t); j 1001 drivers/md/bcache/bset.c f = &t->tree[inorder_next(j, t->size)]; j 1009 drivers/md/bcache/bset.c f = &t->tree[inorder_prev(j, t->size)]; j 1378 drivers/md/bcache/bset.c size_t j; j 1386 drivers/md/bcache/bset.c for (j = 1; j < t->size; j++) j 1387 drivers/md/bcache/bset.c if (t->tree[j].exponent == 127) j 1783 drivers/md/bcache/btree.c unsigned int j; j 1792 drivers/md/bcache/btree.c for (j = 0; j < KEY_PTRS(&w->key); j++) j 1793 drivers/md/bcache/btree.c SET_GC_MARK(PTR_BUCKET(c, &w->key, j), j 73 drivers/md/bcache/debug.c unsigned int j; j 94 drivers/md/bcache/debug.c for (j = 0; j < inmemory->keys; j++) j 95 drivers/md/bcache/debug.c if (inmemory->d[j] != sorted->d[j]) j 101 drivers/md/bcache/debug.c panic("verify failed at %u\n", j); j 129 drivers/md/bcache/extents.c unsigned int j; j 135 drivers/md/bcache/extents.c for (j = 0; j < KEY_PTRS(k); j++) { j 136 drivers/md/bcache/extents.c size_t n = PTR_BUCKET_NR(b->c, k, j); j 141 drivers/md/bcache/extents.c PTR_BUCKET(b->c, k, j)->prio); j 42 drivers/md/bcache/journal.c struct jset *j, *data = ca->set->journal.w[0].data; j 75 drivers/md/bcache/journal.c j = data; j 78 drivers/md/bcache/journal.c size_t blocks, bytes = set_bytes(j); j 80 drivers/md/bcache/journal.c if (j->magic != jset_magic(&ca->sb)) { j 95 drivers/md/bcache/journal.c if (j->csum != csum_set(j)) { j 101 drivers/md/bcache/journal.c blocks = set_blocks(j, block_bytes(ca->set)); j 120 drivers/md/bcache/journal.c if (i->j.seq >= j->last_seq) j 128 drivers/md/bcache/journal.c if (j->seq == i->j.seq) j 135 drivers/md/bcache/journal.c if (j->seq < i->j.last_seq) j 142 drivers/md/bcache/journal.c if (j->seq > i->j.seq) { j 150 drivers/md/bcache/journal.c i = kmalloc(offsetof(struct journal_replay, j) + j 154 drivers/md/bcache/journal.c memcpy(&i->j, j, bytes); j 159 drivers/md/bcache/journal.c if (j->seq > ja->seq[bucket_index]) j 160 drivers/md/bcache/journal.c ja->seq[bucket_index] = j->seq; j 164 drivers/md/bcache/journal.c j = ((void *) j) + blocks * block_bytes(ca); j 240 drivers/md/bcache/journal.c list)->j.seq; j 246 drivers/md/bcache/journal.c list)->j.seq) j 294 drivers/md/bcache/journal.c list)->j.seq; j 305 drivers/md/bcache/journal.c struct journal *j = &c->journal; j 306 drivers/md/bcache/journal.c uint64_t last = j->seq; j 316 drivers/md/bcache/journal.c BUG_ON(last < i->j.seq); j 319 drivers/md/bcache/journal.c while (last-- != i->j.seq) j 320 drivers/md/bcache/journal.c if (fifo_free(&j->pin) > 1) { j 321 drivers/md/bcache/journal.c fifo_push_front(&j->pin, p); j 322 drivers/md/bcache/journal.c atomic_set(&fifo_front(&j->pin), 0); j 325 drivers/md/bcache/journal.c if (fifo_free(&j->pin) > 1) { j 326 drivers/md/bcache/journal.c fifo_push_front(&j->pin, p); j 327 drivers/md/bcache/journal.c i->pin = &fifo_front(&j->pin); j 331 drivers/md/bcache/journal.c for (k = i->j.start; j 332 drivers/md/bcache/journal.c k < bset_bkey_last(&i->j); j 335 drivers/md/bcache/journal.c unsigned int j; j 337 drivers/md/bcache/journal.c for (j = 0; j < KEY_PTRS(k); j++) j 338 drivers/md/bcache/journal.c if (ptr_available(c, k, j)) j 339 drivers/md/bcache/journal.c atomic_inc(&PTR_BUCKET(c, k, j)->pin); j 365 drivers/md/bcache/journal.c uint64_t start = i->j.last_seq, end = i->j.seq, n = start; j 371 drivers/md/bcache/journal.c if (n != i->j.seq) { j 374 drivers/md/bcache/journal.c n, i->j.seq - 1, start, end); j 377 drivers/md/bcache/journal.c n, i->j.seq - 1, start, end); j 383 drivers/md/bcache/journal.c for (k = i->j.start; j 384 drivers/md/bcache/journal.c k < bset_bkey_last(&i->j); j 402 drivers/md/bcache/journal.c n = i->j.seq + 1; j 576 drivers/md/bcache/journal.c #define last_seq(j) ((j)->seq - fifo_used(&(j)->pin) + 1) j 701 drivers/md/bcache/journal.c void bch_journal_next(struct journal *j) j 705 drivers/md/bcache/journal.c j->cur = (j->cur == j->w) j 706 drivers/md/bcache/journal.c ? &j->w[1] j 707 drivers/md/bcache/journal.c : &j->w[0]; j 713 drivers/md/bcache/journal.c BUG_ON(!fifo_push(&j->pin, p)); j 714 drivers/md/bcache/journal.c atomic_set(&fifo_back(&j->pin), 1); j 716 drivers/md/bcache/journal.c j->cur->data->seq = ++j->seq; j 717 drivers/md/bcache/journal.c j->cur->dirty = false; j 718 drivers/md/bcache/journal.c j->cur->need_write = false; j 719 drivers/md/bcache/journal.c j->cur->data->keys = 0; j 721 drivers/md/bcache/journal.c if (fifo_full(&j->pin)) j 722 drivers/md/bcache/journal.c pr_debug("journal_pin full (%zu)", fifo_used(&j->pin)); j 737 drivers/md/bcache/journal.c struct journal *j = container_of(cl, struct journal, io); j 738 drivers/md/bcache/journal.c struct journal_write *w = (j->cur == j->w) j 739 drivers/md/bcache/journal.c ? &j->w[1] j 740 drivers/md/bcache/journal.c : &j->w[0]; j 993 drivers/md/bcache/journal.c struct journal *j = &c->journal; j 995 drivers/md/bcache/journal.c spin_lock_init(&j->lock); j 996 drivers/md/bcache/journal.c spin_lock_init(&j->flush_write_lock); j 997 drivers/md/bcache/journal.c INIT_DELAYED_WORK(&j->work, journal_write_work); j 1001 drivers/md/bcache/journal.c j->w[0].c = c; j 1002 drivers/md/bcache/journal.c j->w[1].c = c; j 1004 drivers/md/bcache/journal.c if (!(init_fifo(&j->pin, JOURNAL_PIN, GFP_KERNEL)) || j 1005 drivers/md/bcache/journal.c !(j->w[0].data = (void *) __get_free_pages(GFP_KERNEL, JSET_BITS)) || j 1006 drivers/md/bcache/journal.c !(j->w[1].data = (void *) __get_free_pages(GFP_KERNEL, JSET_BITS))) j 86 drivers/md/bcache/journal.h struct jset j; j 166 drivers/md/bcache/journal.h #define journal_full(j) \ j 167 drivers/md/bcache/journal.h (!(j)->blocks_free || fifo_free(&(j)->pin) <= 1) j 177 drivers/md/bcache/journal.h void bch_journal_next(struct journal *j); j 380 drivers/md/bcache/super.c static char *uuid_read(struct cache_set *c, struct jset *j, struct closure *cl) j 382 drivers/md/bcache/super.c struct bkey *k = &j->uuid_bucket; j 390 drivers/md/bcache/super.c if (j->version < BCACHE_JSET_VERSION_UUIDv1) { j 1864 drivers/md/bcache/super.c struct jset *j; j 1876 drivers/md/bcache/super.c j = &list_entry(journal.prev, struct journal_replay, list)->j; j 1880 drivers/md/bcache/super.c prio_read(ca, j->prio_bucket[ca->sb.nr_this_dev]); j 1888 drivers/md/bcache/super.c k = &j->btree_root; j 1896 drivers/md/bcache/super.c j->btree_level, j 1904 drivers/md/bcache/super.c err = uuid_read(c, j, &cl); j 1955 drivers/md/bcache/super.c if (j->version < BCACHE_JSET_VERSION_UUID) j 1965 drivers/md/bcache/super.c unsigned int j; j 1970 drivers/md/bcache/super.c for (j = 0; j < ca->sb.keys; j++) j 1971 drivers/md/bcache/super.c ca->sb.d[j] = ca->sb.first_bucket + j; j 136 drivers/md/bcache/util.c size_t i, j, x; j 140 drivers/md/bcache/util.c for (i = 0, j = 0; j 141 drivers/md/bcache/util.c i < strspn(s, "-0123456789:ABCDEFabcdef") && j < 32; j 156 drivers/md/bcache/util.c if (!(j & 1)) j 158 drivers/md/bcache/util.c uuid[j++ >> 1] |= x; j 58 drivers/md/bcache/util.h #define heap_swap(h, i, j) swap((h)->data[i], (h)->data[j]) j 385 drivers/md/dm-integrity.c unsigned j, unsigned char seq) j 391 drivers/md/dm-integrity.c return ic->commit_ids[seq] ^ cpu_to_le64(((__u64)i << 32) ^ j); j 704 drivers/md/dm-integrity.c unsigned j, size; j 714 drivers/md/dm-integrity.c for (j = 0; j < ic->journal_section_entries; j++) { j 715 drivers/md/dm-integrity.c struct journal_entry *je = access_journal_entry(ic, section, j); j 755 drivers/md/dm-integrity.c unsigned j; j 762 drivers/md/dm-integrity.c for (j = 0; j < JOURNAL_BLOCK_SECTORS; j++) { j 763 drivers/md/dm-integrity.c struct journal_sector *js = access_journal(ic, section, j); j 766 drivers/md/dm-integrity.c memcpy(&js->mac, result + (j * JOURNAL_MAC_PER_SECTOR), JOURNAL_MAC_PER_SECTOR); j 768 drivers/md/dm-integrity.c if (memcmp(&js->mac, result + (j * JOURNAL_MAC_PER_SECTOR), JOURNAL_MAC_PER_SECTOR)) j 1199 drivers/md/dm-integrity.c struct journal_node *j; j 1201 drivers/md/dm-integrity.c j = container_of(parent, struct journal_node, node); j 1202 drivers/md/dm-integrity.c if (sector < j->sector) j 1203 drivers/md/dm-integrity.c link = &j->node.rb_left; j 1205 drivers/md/dm-integrity.c link = &j->node.rb_right; j 1227 drivers/md/dm-integrity.c struct journal_node *j = container_of(n, struct journal_node, node); j 1228 drivers/md/dm-integrity.c if (sector == j->sector) { j 1229 drivers/md/dm-integrity.c found = j - ic->journal_tree; j 1231 drivers/md/dm-integrity.c if (sector < j->sector) { j 1232 drivers/md/dm-integrity.c *next_sector = j->sector; j 1233 drivers/md/dm-integrity.c n = j->node.rb_left; j 1235 drivers/md/dm-integrity.c n = j->node.rb_right; j 2071 drivers/md/dm-integrity.c unsigned i, j, n; j 2094 drivers/md/dm-integrity.c for (j = 0; j < ic->journal_section_entries; j++) { j 2096 drivers/md/dm-integrity.c je = access_journal_entry(ic, i, j); j 2099 drivers/md/dm-integrity.c for (j = 0; j < ic->journal_section_sectors; j++) { j 2101 drivers/md/dm-integrity.c js = access_journal(ic, i, j); j 2102 drivers/md/dm-integrity.c js->commit_id = dm_integrity_commit_id(ic, i, j, ic->commit_seq); j 2157 drivers/md/dm-integrity.c unsigned i, j, n; j 2173 drivers/md/dm-integrity.c for (j = 0; j < ic->journal_section_entries; j++) { j 2174 drivers/md/dm-integrity.c struct journal_entry *je = access_journal_entry(ic, i, j); j 2192 drivers/md/dm-integrity.c restore_last_bytes(ic, access_journal_data(ic, i, j), je); j 2193 drivers/md/dm-integrity.c for (k = j + 1; k < ic->journal_section_entries; k++) { j 2201 drivers/md/dm-integrity.c if (area2 != area || offset2 != offset + ((k - j) << ic->sb->log2_sectors_per_block)) j 2210 drivers/md/dm-integrity.c io->range.n_sectors = (k - j) << ic->sb->log2_sectors_per_block; j 2219 drivers/md/dm-integrity.c while (j < k && find_newer_committed_node(ic, §ion_node[j])) { j 2220 drivers/md/dm-integrity.c struct journal_entry *je2 = access_journal_entry(ic, i, j); j 2223 drivers/md/dm-integrity.c remove_journal_node(ic, §ion_node[j]); j 2224 drivers/md/dm-integrity.c j++; j 2228 drivers/md/dm-integrity.c while (j < k && find_newer_committed_node(ic, §ion_node[k - 1])) { j 2235 drivers/md/dm-integrity.c if (j == k) { j 2241 drivers/md/dm-integrity.c for (l = j; l < k; l++) { j 2248 drivers/md/dm-integrity.c for (l = j; l < k; l++) { j 2259 drivers/md/dm-integrity.c integrity_sector_checksum(ic, sec + ((l - j) << ic->sb->log2_sectors_per_block), j 2274 drivers/md/dm-integrity.c copy_from_journal(ic, i, j << ic->sb->log2_sectors_per_block, j 2275 drivers/md/dm-integrity.c (k - j) << ic->sb->log2_sectors_per_block, j 2279 drivers/md/dm-integrity.c j = next_loop; j 2563 drivers/md/dm-integrity.c unsigned i, j, n; j 2571 drivers/md/dm-integrity.c for (j = 0; j < ic->journal_section_sectors; j++) { j 2572 drivers/md/dm-integrity.c struct journal_sector *js = access_journal(ic, i, j); j 2574 drivers/md/dm-integrity.c js->commit_id = dm_integrity_commit_id(ic, i, j, commit_seq); j 2576 drivers/md/dm-integrity.c for (j = 0; j < ic->journal_section_entries; j++) { j 2577 drivers/md/dm-integrity.c struct journal_entry *je = access_journal_entry(ic, i, j); j 2585 drivers/md/dm-integrity.c static int find_commit_seq(struct dm_integrity_c *ic, unsigned i, unsigned j, commit_id_t id) j 2589 drivers/md/dm-integrity.c if (dm_integrity_commit_id(ic, i, j, k) == id) j 2598 drivers/md/dm-integrity.c unsigned i, j; j 2638 drivers/md/dm-integrity.c for (j = 0; j < ic->journal_section_sectors; j++) { j 2640 drivers/md/dm-integrity.c struct journal_sector *js = access_journal(ic, i, j); j 2641 drivers/md/dm-integrity.c k = find_commit_seq(ic, i, j, js->commit_id); j 2648 drivers/md/dm-integrity.c for (j = 0; j < ic->journal_section_entries; j++) { j 2649 drivers/md/dm-integrity.c struct journal_entry *je = access_journal_entry(ic, i, j); j 2688 drivers/md/dm-integrity.c for (j = 0; j < ic->journal_section_sectors; j++) { j 2689 drivers/md/dm-integrity.c struct journal_sector *js = access_journal(ic, i, j); j 2691 drivers/md/dm-integrity.c if (js->commit_id != dm_integrity_commit_id(ic, i, j, want_commit_seq)) { j 2698 drivers/md/dm-integrity.c i, j, find_commit_seq(ic, i, j, js->commit_id), want_commit_seq); j 3514 drivers/md/dm-integrity.c unsigned j; j 3516 drivers/md/dm-integrity.c for (j = 0; j < i; j++) { j 3517 drivers/md/dm-integrity.c if (ic->commit_ids[j] == ic->commit_ids[i]) { j 881 drivers/md/dm-kcopyd.c void dm_kcopyd_do_callback(void *j, int read_err, unsigned long write_err) j 883 drivers/md/dm-kcopyd.c struct kcopyd_job *job = j; j 987 drivers/md/dm-mpath.c int i, j, len = 4; j 997 drivers/md/dm-mpath.c j = sprintf(p, "%d", hw_argc - 1); j 998 drivers/md/dm-mpath.c for (i = 0, p+=j+1; i <= hw_argc - 2; i++, p+=j+1) j 999 drivers/md/dm-mpath.c j = sprintf(p, "%s", as->argv[i]); j 778 drivers/md/dm-stats.c static unsigned long long dm_jiffies_to_msec64(struct dm_stat *s, unsigned long long j) j 784 drivers/md/dm-stats.c return j; j 787 drivers/md/dm-stats.c if (j) j 788 drivers/md/dm-stats.c result = jiffies_to_msecs(j & 0x3fffff); j 789 drivers/md/dm-stats.c if (j >= 1 << 22) { j 791 drivers/md/dm-stats.c result += (unsigned long long)mult * (unsigned long long)jiffies_to_msecs((j >> 22) & 0x3fffff); j 793 drivers/md/dm-stats.c if (j >= 1ULL << 44) j 794 drivers/md/dm-stats.c result += (unsigned long long)mult * (unsigned long long)mult * (unsigned long long)jiffies_to_msecs(j >> 44); j 2272 drivers/md/dm-thin.c unsigned i, j, count; j 2296 drivers/md/dm-thin.c for (j = i; j < count; j++) j 2297 drivers/md/dm-thin.c list_add(&pool->cell_sort_array[j]->user_list, &cells); j 106 drivers/md/dm-verity-fec.c unsigned i, unsigned j) j 108 drivers/md/dm-verity-fec.c return &fio->bufs[i][j * v->fec->rsn]; j 115 drivers/md/dm-verity-fec.c static inline unsigned fec_buffer_rs_index(unsigned i, unsigned j) j 117 drivers/md/dm-verity-fec.c return (i << DM_VERITY_FEC_BUF_RS_BITS) + j; j 205 drivers/md/dm-verity-fec.c int i, j, target_index = -1; j 286 drivers/md/dm-verity-fec.c fec_for_each_buffer_rs_block(fio, n, j) { j 287 drivers/md/dm-verity-fec.c k = fec_buffer_rs_index(n, j) + block_offset; j 292 drivers/md/dm-verity-fec.c rs_block = fec_buffer_rs_block(v, fio, n, j); j 464 drivers/md/dm-writecache.c unsigned j; j 468 drivers/md/dm-writecache.c j = find_next_zero_bit(wc->dirty_bitmap, bitmap_bits, i); j 472 drivers/md/dm-writecache.c region.count = (sector_t)(j - i) * (BITMAP_GRANULARITY >> SECTOR_SHIFT); j 491 drivers/md/dm-writecache.c i = j; j 1233 drivers/md/md-bitmap.c unsigned long j; j 1266 drivers/md/md-bitmap.c for (j = 0; j < bitmap->storage.file_pages; j++) j 1267 drivers/md/md-bitmap.c if (test_and_clear_page_attr(bitmap, j, j 1269 drivers/md/md-bitmap.c set_page_attr(bitmap, j, j 1293 drivers/md/md-bitmap.c for (j = 0; j < counts->chunks; j++) { j 1295 drivers/md/md-bitmap.c sector_t block = (sector_t)j << counts->chunkshift; j 1297 drivers/md/md-bitmap.c if (j == nextpage) { j 1299 drivers/md/md-bitmap.c if (!counts->bp[j >> PAGE_COUNTER_SHIFT].pending) { j 1300 drivers/md/md-bitmap.c j |= PAGE_COUNTER_MASK; j 1303 drivers/md/md-bitmap.c counts->bp[j >> PAGE_COUNTER_SHIFT].pending = 0; j 1308 drivers/md/md-bitmap.c j |= PAGE_COUNTER_MASK; j 1333 drivers/md/md-bitmap.c for (j = 0; j 1334 drivers/md/md-bitmap.c j < bitmap->storage.file_pages j 1336 drivers/md/md-bitmap.c j++) { j 1337 drivers/md/md-bitmap.c if (test_page_attr(bitmap, j, j 1341 drivers/md/md-bitmap.c if (test_and_clear_page_attr(bitmap, j, j 1343 drivers/md/md-bitmap.c write_page(bitmap, bitmap->storage.filemap[j], 0); j 1984 drivers/md/md-bitmap.c int rv = 0, i, j; j 1996 drivers/md/md-bitmap.c for (j = 0; j < counts->chunks; j++) { j 1997 drivers/md/md-bitmap.c block = (sector_t)j << counts->chunkshift; j 100 drivers/md/md-linear.c int j = rdev->raid_disk; j 101 drivers/md/md-linear.c struct dev_info *disk = conf->disks + j; j 104 drivers/md/md-linear.c if (j < 0 || j >= raid_disks || disk->rdev) { j 8406 drivers/md/md.c sector_t max_sectors,j, io_sectors, recovery_done; j 8523 drivers/md/md.c j = 0; j 8532 drivers/md/md.c j = mddev->resync_min; j 8534 drivers/md/md.c j = mddev->recovery_cp; j 8545 drivers/md/md.c j = mddev->reshape_position; j 8549 drivers/md/md.c j = MaxSector; j 8556 drivers/md/md.c rdev->recovery_offset < j) j 8557 drivers/md/md.c j = rdev->recovery_offset; j 8600 drivers/md/md.c if (j>2) { j 8603 drivers/md/md.c mddev->curr_resync = j; j 8606 drivers/md/md.c mddev->curr_resync_completed = j; j 8612 drivers/md/md.c while (j < max_sectors) { j 8622 drivers/md/md.c (j - mddev->curr_resync_completed)*2 j 8629 drivers/md/md.c mddev->curr_resync_completed = j; j 8631 drivers/md/md.c j > mddev->recovery_cp) j 8632 drivers/md/md.c mddev->recovery_cp = j; j 8638 drivers/md/md.c while (j >= mddev->resync_max && j 8646 drivers/md/md.c mddev->resync_max > j j 8654 drivers/md/md.c sectors = mddev->pers->sync_request(mddev, j, &skipped); j 8668 drivers/md/md.c j += sectors; j 8669 drivers/md/md.c if (j > max_sectors) j 8671 drivers/md/md.c j = max_sectors; j 8672 drivers/md/md.c if (j > 2) j 8673 drivers/md/md.c mddev->curr_resync = j; j 8681 drivers/md/md.c if (last_check + window > io_sectors || j == max_sectors) j 52 drivers/md/raid0.c int j, k; j 61 drivers/md/raid0.c for (j = 0; j < conf->nr_strip_zones; j++) { j 65 drivers/md/raid0.c for (k = 0; k < conf->strip_zone[j].nb_dev; k++) j 67 drivers/md/raid0.c bdevname(conf->devlist[j*raid_disks j 69 drivers/md/raid0.c pr_debug("md: zone%d=[%s]\n", j, line); j 71 drivers/md/raid0.c zone_size = conf->strip_zone[j].zone_end - zone_start; j 74 drivers/md/raid0.c (unsigned long long)conf->strip_zone[j].dev_start>>1, j 76 drivers/md/raid0.c zone_start = conf->strip_zone[j].zone_end; j 195 drivers/md/raid0.c int j = rdev1->raid_disk; j 199 drivers/md/raid0.c j /= 2; j 200 drivers/md/raid0.c rdev1->new_raid_disk = j; j 207 drivers/md/raid0.c j = 0; j 208 drivers/md/raid0.c rdev1->new_raid_disk = j; j 211 drivers/md/raid0.c if (j < 0) { j 216 drivers/md/raid0.c if (j >= mddev->raid_disks) { j 218 drivers/md/raid0.c mdname(mddev), j); j 221 drivers/md/raid0.c if (dev[j]) { j 223 drivers/md/raid0.c mdname(mddev), j); j 226 drivers/md/raid0.c dev[j] = rdev1; j 245 drivers/md/raid0.c int j; j 255 drivers/md/raid0.c for (j=0; j<cnt; j++) { j 256 drivers/md/raid0.c rdev = conf->devlist[j]; j 135 drivers/md/raid1.c int j; j 150 drivers/md/raid1.c for (j = pi->raid_disks ; j-- ; ) { j 154 drivers/md/raid1.c r1_bio->bios[j] = bio; j 166 drivers/md/raid1.c for (j = 0; j < pi->raid_disks; j++) { j 167 drivers/md/raid1.c struct resync_pages *rp = &rps[j]; j 169 drivers/md/raid1.c bio = r1_bio->bios[j]; j 171 drivers/md/raid1.c if (j < need_pages) { j 188 drivers/md/raid1.c while (--j >= 0) j 189 drivers/md/raid1.c resync_free_pages(&rps[j]); j 192 drivers/md/raid1.c while (++j < pi->raid_disks) j 193 drivers/md/raid1.c bio_put(r1_bio->bios[j]); j 1451 drivers/md/raid1.c int j; j 1453 drivers/md/raid1.c for (j = 0; j < i; j++) j 1454 drivers/md/raid1.c if (r1_bio->bios[j]) j 1455 drivers/md/raid1.c rdev_dec_pending(conf->mirrors[j].rdev, mddev); j 2150 drivers/md/raid1.c int j = 0; j 2166 drivers/md/raid1.c page_len[j++] = bi->bv_len; j 2169 drivers/md/raid1.c for (j = vcnt; j-- ; ) { j 2170 drivers/md/raid1.c if (memcmp(page_address(ppages[j]), j 2171 drivers/md/raid1.c page_address(spages[j]), j 2172 drivers/md/raid1.c page_len[j])) j 2176 drivers/md/raid1.c j = 0; j 2177 drivers/md/raid1.c if (j >= 0) j 2179 drivers/md/raid1.c if (j < 0 || (test_bit(MD_RECOVERY_CHECK, &mddev->recovery) j 121 drivers/md/raid10.c int j; j 147 drivers/md/raid10.c for (j = nalloc ; j-- ; ) { j 151 drivers/md/raid10.c r10_bio->devs[j].bio = bio; j 157 drivers/md/raid10.c r10_bio->devs[j].repl_bio = bio; j 163 drivers/md/raid10.c for (j = 0; j < nalloc; j++) { j 164 drivers/md/raid10.c struct bio *rbio = r10_bio->devs[j].repl_bio; j 167 drivers/md/raid10.c rp = &rps[j]; j 169 drivers/md/raid10.c rp_repl = &rps[nalloc + j]; j 171 drivers/md/raid10.c bio = r10_bio->devs[j].bio; j 173 drivers/md/raid10.c if (!j || test_bit(MD_RECOVERY_SYNC, j 193 drivers/md/raid10.c while (--j >= 0) j 194 drivers/md/raid10.c resync_free_pages(&rps[j]); j 196 drivers/md/raid10.c j = 0; j 198 drivers/md/raid10.c for ( ; j < nalloc; j++) { j 199 drivers/md/raid10.c if (r10_bio->devs[j].bio) j 200 drivers/md/raid10.c bio_put(r10_bio->devs[j].bio); j 201 drivers/md/raid10.c if (r10_bio->devs[j].repl_bio) j 202 drivers/md/raid10.c bio_put(r10_bio->devs[j].repl_bio); j 214 drivers/md/raid10.c int j; j 217 drivers/md/raid10.c for (j = conf->copies; j--; ) { j 218 drivers/md/raid10.c struct bio *bio = r10bio->devs[j].bio; j 226 drivers/md/raid10.c bio = r10bio->devs[j].repl_bio; j 1447 drivers/md/raid10.c int j; j 1450 drivers/md/raid10.c for (j = 0; j < i; j++) { j 1451 drivers/md/raid10.c if (r10_bio->devs[j].bio) { j 1452 drivers/md/raid10.c d = r10_bio->devs[j].devnum; j 1455 drivers/md/raid10.c if (r10_bio->devs[j].repl_bio) { j 1457 drivers/md/raid10.c d = r10_bio->devs[j].devnum; j 2035 drivers/md/raid10.c int j, d; j 2055 drivers/md/raid10.c for (j = 0; j < vcnt; j++) { j 2059 drivers/md/raid10.c if (memcmp(page_address(fpages[j]), j 2060 drivers/md/raid10.c page_address(tpages[j]), j 2065 drivers/md/raid10.c if (j == vcnt) j 3040 drivers/md/raid10.c int j; j 3125 drivers/md/raid10.c for (j = 0; j < conf->geo.raid_disks; j++) { j 3127 drivers/md/raid10.c conf->mirrors[j].rdev); j 3138 drivers/md/raid10.c for (j=0; j<conf->copies;j++) { j 3140 drivers/md/raid10.c int d = r10_bio->devs[j].devnum; j 3151 drivers/md/raid10.c sector = r10_bio->devs[j].addr; j 3172 drivers/md/raid10.c from_addr = r10_bio->devs[j].addr; j 3223 drivers/md/raid10.c if (j == conf->copies) { j 3274 drivers/md/raid10.c for (; j < conf->copies; j++) { j 3275 drivers/md/raid10.c int d = r10_bio->devs[j].devnum; j 1848 drivers/md/raid5.c int j = 0; j 1869 drivers/md/raid5.c xor_srcs = to_addr_page(percpu, j); j 1905 drivers/md/raid5.c to_addr_conv(sh, percpu, j)); j 1909 drivers/md/raid5.c to_addr_conv(sh, percpu, j)); j 1917 drivers/md/raid5.c j++; j 1930 drivers/md/raid5.c int count, i, j = 0; j 1953 drivers/md/raid5.c blocks = to_addr_page(percpu, j); j 1971 drivers/md/raid5.c head_sh, to_addr_conv(sh, percpu, j)); j 1974 drivers/md/raid5.c to_addr_conv(sh, percpu, j)); j 1977 drivers/md/raid5.c j++; j 4315 drivers/md/raid5.c int dd_idx, j; j 4344 drivers/md/raid5.c for (j = 0; j < conf->raid_disks; j++) j 4345 drivers/md/raid5.c if (j != sh2->pd_idx && j 4346 drivers/md/raid5.c j != sh2->qd_idx && j 4347 drivers/md/raid5.c !test_bit(R5_Expanded, &sh2->dev[j].flags)) j 4349 drivers/md/raid5.c if (j == conf->raid_disks) { j 5914 drivers/md/raid5.c int j; j 5922 drivers/md/raid5.c for (j=sh->disks; j--;) { j 5924 drivers/md/raid5.c if (j == sh->pd_idx) j 5927 drivers/md/raid5.c j == sh->qd_idx) j 5929 drivers/md/raid5.c s = raid5_compute_blocknr(sh, j, 0); j 5934 drivers/md/raid5.c memset(page_address(sh->dev[j].page), 0, STRIPE_SIZE); j 5935 drivers/md/raid5.c set_bit(R5_Expanded, &sh->dev[j].flags); j 5936 drivers/md/raid5.c set_bit(R5_UPTODATE, &sh->dev[j].flags); j 6680 drivers/md/raid5.c int i, j, k; j 6710 drivers/md/raid5.c for (j = 0; j < cnt; j++) { j 6711 drivers/md/raid5.c struct r5worker *worker = group->workers + j; j 1387 drivers/media/cec/cec-adap.c int i, j; j 1425 drivers/media/cec/cec-adap.c for (j = 0; la_list[j] != CEC_LOG_ADDR_INVALID; j++) { j 1427 drivers/media/cec/cec-adap.c if (la_list[j] == last_la) j 1430 drivers/media/cec/cec-adap.c if ((la_list[j] == CEC_LOG_ADDR_BACKUP_1 || j 1431 drivers/media/cec/cec-adap.c la_list[j] == CEC_LOG_ADDR_BACKUP_2) && j 1435 drivers/media/cec/cec-adap.c err = cec_config_log_addr(adap, i, la_list[j]); j 1444 drivers/media/cec/cec-adap.c if (la_list[j] == CEC_LOG_ADDR_INVALID) j 1732 drivers/media/cec/cec-adap.c unsigned j; j 1759 drivers/media/cec/cec-adap.c for (j = 0; j < feature_sz; j++) { j 1760 drivers/media/cec/cec-adap.c if ((features[j] & 0x80) == 0) { j 1766 drivers/media/cec/cec-adap.c if (!op_is_dev_features || j == feature_sz) { j 1771 drivers/media/cec/cec-adap.c memset(features + j + 1, 0, feature_sz - j - 1); j 265 drivers/media/cec/cec-pin-error-inj.c unsigned int i, j; j 314 drivers/media/cec/cec-pin-error-inj.c for (j = 0; cec_error_inj_cmds[j].cmd; j++) { j 315 drivers/media/cec/cec-pin-error-inj.c const char *cmd = cec_error_inj_cmds[j].cmd; j 320 drivers/media/cec/cec-pin-error-inj.c mode_offset = cec_error_inj_cmds[j].mode_offset; j 321 drivers/media/cec/cec-pin-error-inj.c arg_idx = cec_error_inj_cmds[j].arg_idx; j 352 drivers/media/common/saa7146/saa7146_hlp.c int i = 0, j = 0; j 419 drivers/media/common/saa7146/saa7146_hlp.c for(j = 0; j < clipcount; j++) { j 423 drivers/media/common/saa7146/saa7146_hlp.c if( x[j] < 0) j 424 drivers/media/common/saa7146/saa7146_hlp.c x[j] = 0; j 426 drivers/media/common/saa7146/saa7146_hlp.c if( pixel_list[i] < (x[j] + w[j])) { j 428 drivers/media/common/saa7146/saa7146_hlp.c if ( pixel_list[i] >= x[j] ) { j 429 drivers/media/common/saa7146/saa7146_hlp.c clipping[2*i] |= cpu_to_le32(1 << j); j 435 drivers/media/common/saa7146/saa7146_hlp.c if( y[j] < 0) j 436 drivers/media/common/saa7146/saa7146_hlp.c y[j] = 0; j 438 drivers/media/common/saa7146/saa7146_hlp.c if( line_list[i] < (y[j] + h[j]) ) { j 440 drivers/media/common/saa7146/saa7146_hlp.c if( line_list[i] >= y[j] ) { j 441 drivers/media/common/saa7146/saa7146_hlp.c clipping[(2*i)+1] |= cpu_to_le32(1 << j); j 31 drivers/media/common/saa7146/saa7146_i2c.c int i, j, addr; j 64 drivers/media/common/saa7146/saa7146_i2c.c for(j = 0; j < m[i].len; j++) { j 67 drivers/media/common/saa7146/saa7146_i2c.c op[h1] |= cpu_to_le32( (u32)((u8)m[i].buf[j]) << ((3-h2)*8)); j 92 drivers/media/common/saa7146/saa7146_i2c.c int i, j; j 101 drivers/media/common/saa7146/saa7146_i2c.c for(j = 0; j < m[i].len; j++) { j 103 drivers/media/common/saa7146/saa7146_i2c.c m[i].buf[j] = (le32_to_cpu(op[op_count/3]) >> ((3-(op_count%3))*8)); j 441 drivers/media/common/tveeprom.c int i, j, len, done, beenhere, tag, start; j 678 drivers/media/common/tveeprom.c for (i = j = 0; i < 8; i++) { j 681 drivers/media/common/tveeprom.c t_fmt_name1[j++] = hauppauge_tuner_fmt[i].name; j 684 drivers/media/common/tveeprom.c for (i = j = 0; i < 8; i++) { j 687 drivers/media/common/tveeprom.c t_fmt_name2[j++] = hauppauge_tuner_fmt[i].name; j 550 drivers/media/dvb-core/dvb_demux.c int p = 0, i, j; j 558 drivers/media/dvb-core/dvb_demux.c j = pktsize - i; j 559 drivers/media/dvb-core/dvb_demux.c if (count < j) { j 564 drivers/media/dvb-core/dvb_demux.c memcpy(&demux->tsbuf[i], buf, j); j 568 drivers/media/dvb-core/dvb_demux.c p += j; j 61 drivers/media/dvb-core/dvb_net.c unsigned int j; j 62 drivers/media/dvb-core/dvb_net.c for (j = 0; j < cnt; j++) j 63 drivers/media/dvb-core/dvb_net.c c = crc32_be( c, iov[j].iov_base, iov[j].iov_len ); j 37 drivers/media/dvb-frontends/af9033.c int ret, i, j; j 47 drivers/media/dvb-frontends/af9033.c for (i = 0, j = 0; i < tab_len; i++) { j 48 drivers/media/dvb-frontends/af9033.c buf[j] = tab[i].val; j 51 drivers/media/dvb-frontends/af9033.c ret = regmap_bulk_write(dev->regmap, tab[i].reg - j, j 52 drivers/media/dvb-frontends/af9033.c buf, j + 1); j 56 drivers/media/dvb-frontends/af9033.c j = 0; j 58 drivers/media/dvb-frontends/af9033.c j++; j 762 drivers/media/dvb-frontends/bcm3510.c bcm3510_register_value j; j 766 drivers/media/dvb-frontends/bcm3510.c if ((ret = bcm3510_readB(st,0xca,&j)) < 0) j 769 drivers/media/dvb-frontends/bcm3510.c deb_info("JDEC: %02x\n",j.raw); j 771 drivers/media/dvb-frontends/bcm3510.c switch (j.JDEC_ca.JDEC) { j 11610 drivers/media/dvb-frontends/drx39xyj/drxj.c u16 j = 0; j 11616 drivers/media/dvb-frontends/drx39xyj/drxj.c for (j = 0; j < 16; j++) { j 215 drivers/media/dvb-frontends/itd1000.c int i, j; j 242 drivers/media/dvb-frontends/itd1000.c for (j = 0; j < 9; j++) j 243 drivers/media/dvb-frontends/itd1000.c itd1000_write_reg(state, RFST1+j, itd1000_fre_values[i].values[j+1]); j 401 drivers/media/dvb-frontends/lgs8gxx.c int i, j; j 417 drivers/media/dvb-frontends/lgs8gxx.c for (j = 0; j < 2; j++) { j 419 drivers/media/dvb-frontends/lgs8gxx.c err = lgs8gxx_autolock_gi(priv, GI_945, j, &locked); j 425 drivers/media/dvb-frontends/lgs8gxx.c for (j = 0; j < 2; j++) { j 427 drivers/media/dvb-frontends/lgs8gxx.c err = lgs8gxx_autolock_gi(priv, GI_420, j, &locked); j 38 drivers/media/dvb-frontends/m88ds3103.c int ret, i, j; j 48 drivers/media/dvb-frontends/m88ds3103.c for (i = 0, j = 0; i < tab_len; i++, j++) { j 49 drivers/media/dvb-frontends/m88ds3103.c buf[j] = tab[i].val; j 52 drivers/media/dvb-frontends/m88ds3103.c !((j + 1) % (dev->cfg->i2c_wr_max - 1))) { j 53 drivers/media/dvb-frontends/m88ds3103.c ret = regmap_bulk_write(dev->regmap, tab[i].reg - j, buf, j + 1); j 57 drivers/media/dvb-frontends/m88ds3103.c j = -1; j 1001 drivers/media/dvb-frontends/mb86a16.c int i, j; j 1151 drivers/media/dvb-frontends/mb86a16.c j = 0; j 1190 drivers/media/dvb-frontends/mb86a16.c for (j = 0; j < prev_freq_num; j++) { j 1191 drivers/media/dvb-frontends/mb86a16.c if ((abs(prev_swp_freq[j] - swp_freq)) < (swp_ofs * 3 / 2)) { j 1193 drivers/media/dvb-frontends/mb86a16.c dprintk(verbose, MB86A16_INFO, 1, "Probably Duplicate Signal, j = %d", j); j 1713 drivers/media/dvb-frontends/mxl5xx.c int fw, status, j; j 1827 drivers/media/dvb-frontends/mxl5xx.c for (j = 0; j < state->base->demod_num; j++) { j 1828 drivers/media/dvb-frontends/mxl5xx.c status = config_ts(state, (enum MXL_HYDRA_DEMOD_ID_E) j, j 408 drivers/media/dvb-frontends/rtl2832.c int ret, i, j; j 477 drivers/media/dvb-frontends/rtl2832.c for (j = 0; j < sizeof(bw_params[0]); j++) { j 479 drivers/media/dvb-frontends/rtl2832.c 0x11c + j, &bw_params[i][j], 1); j 372 drivers/media/dvb-frontends/rtl2832_sdr.c int i, j; j 379 drivers/media/dvb-frontends/rtl2832_sdr.c for (j = 0; j < i; j++) j 380 drivers/media/dvb-frontends/rtl2832_sdr.c usb_free_urb(dev->urb_list[j]); j 487 drivers/media/dvb-frontends/stv0367.c int i, j, k, freq; j 505 drivers/media/dvb-frontends/stv0367.c for (j = 1; j <= 5; j++) { j 507 drivers/media/dvb-frontends/stv0367.c (R367TER_IIRCX_COEFF1_MSB + 2 * (j - 1)), j 508 drivers/media/dvb-frontends/stv0367.c MSB(CellsCoeffs[k][i-1][j-1])); j 510 drivers/media/dvb-frontends/stv0367.c (R367TER_IIRCX_COEFF1_LSB + 2 * (j - 1)), j 511 drivers/media/dvb-frontends/stv0367.c LSB(CellsCoeffs[k][i-1][j-1])); j 1330 drivers/media/dvb-frontends/stv0900_sw.c s32 i, j, nb_steps, direction; j 1371 drivers/media/dvb-frontends/stv0900_sw.c for (j = 0; j < 10; j++) j 1588 drivers/media/dvb-frontends/stv090x.c s32 i, j, steps, dir; j 1638 drivers/media/dvb-frontends/stv090x.c for (j = 0; j < 10; j++) { j 638 drivers/media/dvb-frontends/tc90522.c int i, j; j 657 drivers/media/dvb-frontends/tc90522.c for (i = 0, j = 0; i < num; i++, j++) { j 658 drivers/media/dvb-frontends/tc90522.c new_msgs[j].addr = state->i2c_client->addr; j 659 drivers/media/dvb-frontends/tc90522.c new_msgs[j].flags = msgs[i].flags; j 662 drivers/media/dvb-frontends/tc90522.c new_msgs[j].flags &= ~I2C_M_RD; j 667 drivers/media/dvb-frontends/tc90522.c new_msgs[j].buf = p; j 668 drivers/media/dvb-frontends/tc90522.c new_msgs[j].len = 2; j 670 drivers/media/dvb-frontends/tc90522.c j++; j 671 drivers/media/dvb-frontends/tc90522.c new_msgs[j].addr = state->i2c_client->addr; j 672 drivers/media/dvb-frontends/tc90522.c new_msgs[j].flags = msgs[i].flags; j 673 drivers/media/dvb-frontends/tc90522.c new_msgs[j].buf = msgs[i].buf; j 674 drivers/media/dvb-frontends/tc90522.c new_msgs[j].len = msgs[i].len; j 683 drivers/media/dvb-frontends/tc90522.c new_msgs[j].buf = p; j 684 drivers/media/dvb-frontends/tc90522.c new_msgs[j].len = msgs[i].len + 2; j 685 drivers/media/dvb-frontends/tc90522.c p += new_msgs[j].len; j 691 drivers/media/dvb-frontends/tc90522.c ret = i2c_transfer(state->i2c_client->adapter, new_msgs, j); j 692 drivers/media/dvb-frontends/tc90522.c if (ret >= 0 && ret < j) j 695 drivers/media/dvb-frontends/tc90522.c return (ret == j) ? num : ret; j 834 drivers/media/firewire/firedtv-avc.c int pos, j, k, ret; j 850 drivers/media/firewire/firedtv-avc.c for (j = 0; j < nrdiseq; j++) { j 851 drivers/media/firewire/firedtv-avc.c c->operand[pos++] = diseqcmd[j].msg_len; j 853 drivers/media/firewire/firedtv-avc.c for (k = 0; k < diseqcmd[j].msg_len; k++) j 854 drivers/media/firewire/firedtv-avc.c c->operand[pos++] = diseqcmd[j].msg[k]; j 788 drivers/media/i2c/ad9389b.c int i, j; j 800 drivers/media/i2c/ad9389b.c for (j = i; j < i + 16; j++) { j 801 drivers/media/i2c/ad9389b.c sprintf(bp, "0x%02x, ", buf[j]); j 1457 drivers/media/i2c/adv7511-v4l2.c int i, j; j 1464 drivers/media/i2c/adv7511-v4l2.c for (j = i; j < i + 16; j++) { j 1465 drivers/media/i2c/adv7511-v4l2.c sprintf(bp, "0x%02x, ", buf[j]); j 516 drivers/media/i2c/cx25840/cx25840-ir.c unsigned int i, j, k; j 590 drivers/media/i2c/cx25840/cx25840-ir.c for (j = 0; j 591 drivers/media/i2c/cx25840/cx25840-ir.c (v & FIFO_RX_NDV) && j < FIFO_RX_DEPTH; j++) { j 598 drivers/media/i2c/cx25840/cx25840-ir.c j = i * sizeof(union cx25840_ir_fifo_rec); j 600 drivers/media/i2c/cx25840/cx25840-ir.c (unsigned char *) rx_data, j, j 602 drivers/media/i2c/cx25840/cx25840-ir.c if (k != j) j 874 drivers/media/i2c/cx25840/cx25840-ir.c for (j = 0; j < FIFO_TX_DEPTH / 2 && i < n; j++) { j 876 drivers/media/i2c/cx25840/cx25840-ir.c fifo_pulse[j] = ns_to_pulse_width_count( j 881 drivers/media/i2c/cx25840/cx25840-ir.c fifo_pulse[j] &= FIFO_RXTX_LVL; j 885 drivers/media/i2c/cx25840/cx25840-ir.c j * sizeof(u32)); j 1027 drivers/media/i2c/cx25840/cx25840-ir.c int i, j; j 1081 drivers/media/i2c/cx25840/cx25840-ir.c j = 3; j 1085 drivers/media/i2c/cx25840/cx25840-ir.c j = 3; j 1089 drivers/media/i2c/cx25840/cx25840-ir.c j = 4; j 1093 drivers/media/i2c/cx25840/cx25840-ir.c j = 4; j 1097 drivers/media/i2c/cx25840/cx25840-ir.c j = 0; j 1101 drivers/media/i2c/cx25840/cx25840-ir.c i, j, j 1102 drivers/media/i2c/cx25840/cx25840-ir.c clock_divider_to_freq(rxclk, 16 + j), j 376 drivers/media/i2c/ir-kbd-i2c.c int i, j, ret; j 391 drivers/media/i2c/ir-kbd-i2c.c for (j = 0; j < tosend; ++j) j 392 drivers/media/i2c/ir-kbd-i2c.c buf[1 + j] = p[i + j]; j 829 drivers/media/i2c/max2175.c unsigned int i, j; j 832 drivers/media/i2c/max2175.c for (j = 0; j < ARRAY_SIZE(adc_presets[0]); j++) j 833 drivers/media/i2c/max2175.c max2175_write(ctx, 146 + j + i * 55, adc_presets[i][j]); j 919 drivers/media/i2c/ov2659.c int i, j; j 923 drivers/media/i2c/ov2659.c for (j = 0; ctrl3[j].div != 0; j++) { j 924 drivers/media/i2c/ov2659.c prediv = ctrl3[j].div; j 937 drivers/media/i2c/ov2659.c ctrl3_reg = ctrl3[j].reg; j 1013 drivers/media/i2c/ov5675.c unsigned int i, j; j 1053 drivers/media/i2c/ov5675.c for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { j 1055 drivers/media/i2c/ov5675.c bus_cfg.link_frequencies[j]) j 1059 drivers/media/i2c/ov5675.c if (j == bus_cfg.nr_of_link_frequencies) { j 1104 drivers/media/i2c/ov8856.c unsigned int i, j; j 1141 drivers/media/i2c/ov8856.c for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { j 1143 drivers/media/i2c/ov8856.c bus_cfg.link_frequencies[j]) j 1147 drivers/media/i2c/ov8856.c if (j == bus_cfg.nr_of_link_frequencies) { j 68 drivers/media/i2c/s5c73m3/s5c73m3-spi.c unsigned int i, j = 0; j 75 drivers/media/i2c/s5c73m3/s5c73m3-spi.c r = spi_xmit(spi_dev, (void *)addr + j, tx_size, SPI_DIR_TX); j 78 drivers/media/i2c/s5c73m3/s5c73m3-spi.c j += tx_size; j 82 drivers/media/i2c/s5c73m3/s5c73m3-spi.c r = spi_xmit(spi_dev, (void *)addr + j, extra, SPI_DIR_TX); j 96 drivers/media/i2c/s5c73m3/s5c73m3-spi.c unsigned int i, j = 0; j 100 drivers/media/i2c/s5c73m3/s5c73m3-spi.c r = spi_xmit(spi_dev, addr + j, tx_size, SPI_DIR_RX); j 103 drivers/media/i2c/s5c73m3/s5c73m3-spi.c j += tx_size; j 107 drivers/media/i2c/s5c73m3/s5c73m3-spi.c return spi_xmit(spi_dev, addr + j, extra, SPI_DIR_RX); j 789 drivers/media/i2c/smiapp/smiapp-core.c unsigned int fmt, j; j 800 drivers/media/i2c/smiapp/smiapp-core.c for (j = 0; j < ARRAY_SIZE(smiapp_csi_data_formats); j++) { j 802 drivers/media/i2c/smiapp/smiapp-core.c &smiapp_csi_data_formats[j]; j 810 drivers/media/i2c/smiapp/smiapp-core.c dev_dbg(&client->dev, "jolly good! %d\n", j); j 812 drivers/media/i2c/smiapp/smiapp-core.c sensor->default_mbus_frame_fmts |= 1 << j; j 843 drivers/media/i2c/smiapp/smiapp-core.c unsigned int j; j 850 drivers/media/i2c/smiapp/smiapp-core.c for (j = 0; sensor->hwcfg->op_sys_clock[j]; j++) { j 851 drivers/media/i2c/smiapp/smiapp-core.c pll->link_freq = sensor->hwcfg->op_sys_clock[j]; j 860 drivers/media/i2c/smiapp/smiapp-core.c set_bit(j, valid_link_freqs); j 104 drivers/media/i2c/tvp5150.c int i = 0, j, len; j 114 drivers/media/i2c/tvp5150.c for (j = 0; j < len; j++) j 115 drivers/media/i2c/tvp5150.c buf[j] = tvp5150_read(sd, i + j); j 591 drivers/media/i2c/tvp5150.c int j; j 601 drivers/media/i2c/tvp5150.c for (j = 0; j < ARRAY_SIZE(vbi_ram_default); j++) { j 602 drivers/media/i2c/tvp5150.c const struct i2c_vbi_ram_value *regs = &vbi_ram_default[j]; j 157 drivers/media/pci/bt8xx/btcx-risc.c int i,j,n; j 162 drivers/media/pci/bt8xx/btcx-risc.c for (n = 0, j = 0; j <= i; j++) { j 163 drivers/media/pci/bt8xx/btcx-risc.c if (clips[j].c.left > clips[j+1].c.left) { j 164 drivers/media/pci/bt8xx/btcx-risc.c swap(clips[j], clips[j + 1]); j 3368 drivers/media/pci/bt8xx/bttv-driver.c unsigned int i,j,n; j 3377 drivers/media/pci/bt8xx/bttv-driver.c for (j = 1; j < n; j++) j 3380 drivers/media/pci/bt8xx/bttv-driver.c (unsigned long)(risc->dma + ((i+j)<<2)), j 3381 drivers/media/pci/bt8xx/bttv-driver.c risc->cpu[i+j], j); j 916 drivers/media/pci/bt8xx/dst.c int j; j 929 drivers/media/pci/bt8xx/dst.c for (j = 0, p_tuner_list = tuner_list; j < ARRAY_SIZE(tuner_list); j++, p_tuner_list++) { j 1049 drivers/media/pci/bt8xx/dst.c int i, j; j 1112 drivers/media/pci/bt8xx/dst.c for (j = 0, p_tuner_list = tuner_list; j < ARRAY_SIZE(tuner_list); j++, p_tuner_list++) { j 238 drivers/media/pci/cobalt/cobalt-i2c.c int i, j; j 253 drivers/media/pci/cobalt/cobalt-i2c.c for (j = 0; j < adap->retries; j++) { j 527 drivers/media/pci/cx18/cx18-driver.c int i, j; j 653 drivers/media/pci/cx18/cx18-driver.c for (j = 0; cx->card->pci_list[j].device; j++) { j 655 drivers/media/pci/cx18/cx18-driver.c cx->card->pci_list[j].device) j 658 drivers/media/pci/cx18/cx18-driver.c cx->card->pci_list[j].subsystem_vendor) j 661 drivers/media/pci/cx18/cx18-driver.c cx->card->pci_list[j].subsystem_device) j 90 drivers/media/pci/cx18/cx18-firmware.c int i, j; j 105 drivers/media/pci/cx18/cx18-firmware.c for (j = i; j < fw->size && j < i + 4096; j += 4) { j 130 drivers/media/pci/cx18/cx18-firmware.c int i, j; j 174 drivers/media/pci/cx18/cx18-firmware.c for (j = i; j < seghdr.size && j < i + 4096; j += 4) { j 176 drivers/media/pci/cx18/cx18-firmware.c cx18_raw_writel(cx, src[(offset + j) / 4], j 177 drivers/media/pci/cx18/cx18-firmware.c dst + seghdr.addr + j); j 178 drivers/media/pci/cx18/cx18-firmware.c if (cx18_raw_readl(cx, dst + seghdr.addr + j) j 179 drivers/media/pci/cx18/cx18-firmware.c != src[(offset + j) / 4]) { j 181 drivers/media/pci/cx18/cx18-firmware.c offset + j); j 546 drivers/media/pci/cx23885/cx23885-core.c unsigned int i, j, n; j 567 drivers/media/pci/cx23885/cx23885-core.c for (j = 1; j < n; j++) { j 568 drivers/media/pci/cx23885/cx23885-core.c risc = cx_read(ch->ctrl_start + 4 * (i + j)); j 570 drivers/media/pci/cx23885/cx23885-core.c dev->name, i+j, risc, j); j 592 drivers/media/pci/cx23885/cx23885-core.c unsigned int i, j, n; j 599 drivers/media/pci/cx23885/cx23885-core.c for (j = 1; j < n; j++) j 601 drivers/media/pci/cx23885/cx23885-core.c dev->name, i + j, risc->cpu[i + j], j); j 532 drivers/media/pci/cx23885/cx23888-ir.c unsigned int i, j, k; j 590 drivers/media/pci/cx23885/cx23888-ir.c for (j = 0; j 591 drivers/media/pci/cx23885/cx23888-ir.c (v & FIFO_RX_NDV) && j < FIFO_RX_DEPTH; j++) { j 598 drivers/media/pci/cx23885/cx23888-ir.c j = i * sizeof(union cx23888_ir_fifo_rec); j 600 drivers/media/pci/cx23885/cx23888-ir.c (unsigned char *) rx_data, j, j 602 drivers/media/pci/cx23885/cx23888-ir.c if (k != j) j 941 drivers/media/pci/cx23885/cx23888-ir.c int i, j; j 988 drivers/media/pci/cx23885/cx23888-ir.c j = 3; j 992 drivers/media/pci/cx23885/cx23888-ir.c j = 3; j 996 drivers/media/pci/cx23885/cx23888-ir.c j = 4; j 1000 drivers/media/pci/cx23885/cx23888-ir.c j = 4; j 1004 drivers/media/pci/cx23885/cx23888-ir.c j = 0; j 1008 drivers/media/pci/cx23885/cx23888-ir.c i, j, j 1009 drivers/media/pci/cx23885/cx23888-ir.c clock_divider_to_freq(rxclk, 16 + j), j 84 drivers/media/pci/cx23885/netup-eeprom.c int i, j; j 88 drivers/media/pci/cx23885/netup-eeprom.c for (i = 64, j = 0; i < 70; i++, j++) j 89 drivers/media/pci/cx23885/netup-eeprom.c cinfo->port[0].mac[j] = netup_eeprom_read(i2c_adap, i); j 91 drivers/media/pci/cx23885/netup-eeprom.c for (i = 70, j = 0; i < 76; i++, j++) j 92 drivers/media/pci/cx23885/netup-eeprom.c cinfo->port[1].mac[j] = netup_eeprom_read(i2c_adap, i); j 578 drivers/media/pci/cx25821/cx25821-core.c unsigned int i, j, n; j 585 drivers/media/pci/cx25821/cx25821-core.c j = i * 4; j 588 drivers/media/pci/cx25821/cx25821-core.c pr_warn("cmds + 0x%2x: risc%d: ", j + i * 4, i); j 599 drivers/media/pci/cx25821/cx25821-core.c for (j = 1; j < n; j++) { j 600 drivers/media/pci/cx25821/cx25821-core.c risc = cx_read(ch->ctrl_start + 4 * (i + j)); j 602 drivers/media/pci/cx25821/cx25821-core.c 4 * (i + j), i + j, risc, j); j 641 drivers/media/pci/cx25821/cx25821-core.c unsigned int i, j, n; j 651 drivers/media/pci/cx25821/cx25821-core.c j = i * 4; j 654 drivers/media/pci/cx25821/cx25821-core.c pr_warn("cmds + 0x%2x: risc%d: ", j + i * 4, i); j 666 drivers/media/pci/cx25821/cx25821-core.c for (j = 1; j < n; j++) { j 667 drivers/media/pci/cx25821/cx25821-core.c risc = cx_read(ch->ctrl_start + 4 * (i + j)); j 669 drivers/media/pci/cx25821/cx25821-core.c 4 * (i + j), i + j, risc, j); j 436 drivers/media/pci/cx88/cx88-core.c unsigned int i, j, n; j 454 drivers/media/pci/cx88/cx88-core.c for (j = 1; j < n; j++) { j 455 drivers/media/pci/cx88/cx88-core.c risc = cx_read(ch->ctrl_start + 4 * (i + j)); j 457 drivers/media/pci/cx88/cx88-core.c i + j, risc, j); j 726 drivers/media/pci/cx88/cx88-tvaudio.c int i, j = 0; j 732 drivers/media/pci/cx88/cx88-tvaudio.c j += ((cx_read(AUD_NICAM_STATUS2) & 0x02) >> 1); j 734 drivers/media/pci/cx88/cx88-tvaudio.c if (j == 1) { j 200 drivers/media/pci/ddbridge/ddbridge-i2c.c u32 i, j, num = 0, l, base; j 224 drivers/media/pci/ddbridge/ddbridge-i2c.c for (j = 0; j < num; j++) { j 225 drivers/media/pci/ddbridge/ddbridge-i2c.c i2c = &dev->i2c[j]; j 479 drivers/media/pci/dm1105/dm1105.c int addr, rc, i, j, k, len, byte, data; j 494 drivers/media/pci/dm1105/dm1105.c for (j = 0; j < 55; j++) { j 500 drivers/media/pci/dm1105/dm1105.c if (j >= 55) j 522 drivers/media/pci/dm1105/dm1105.c for (j = 0; j < 25; j++) { j 529 drivers/media/pci/dm1105/dm1105.c if (j >= 25) j 543 drivers/media/pci/dm1105/dm1105.c for (j = 0; j < 25; j++) { j 550 drivers/media/pci/dm1105/dm1105.c if (j >= 25) j 850 drivers/media/pci/intel/ipu3/ipu3-cio2.c int i, j; j 875 drivers/media/pci/intel/ipu3/ipu3-cio2.c i = j = 0; j 879 drivers/media/pci/intel/ipu3/ipu3-cio2.c b->lop[i][j] = sg_page_iter_dma_address(&sg_iter) >> PAGE_SHIFT; j 880 drivers/media/pci/intel/ipu3/ipu3-cio2.c j++; j 881 drivers/media/pci/intel/ipu3/ipu3-cio2.c if (j == entries_per_page) { j 883 drivers/media/pci/intel/ipu3/ipu3-cio2.c j = 0; j 887 drivers/media/pci/intel/ipu3/ipu3-cio2.c b->lop[i][j] = cio2->dummy_page_bus_addr >> PAGE_SHIFT; j 906 drivers/media/pci/intel/ipu3/ipu3-cio2.c unsigned int i, j, next = q->bufs_next; j 955 drivers/media/pci/intel/ipu3/ipu3-cio2.c for (j = 0; j < vb->num_planes; j++) j 956 drivers/media/pci/intel/ipu3/ipu3-cio2.c vb2_set_plane_payload(vb, j, j 957 drivers/media/pci/intel/ipu3/ipu3-cio2.c q->format.plane_fmt[j].sizeimage); j 1934 drivers/media/pci/intel/ipu3/ipu3-cio2.c size_t j; j 1936 drivers/media/pci/intel/ipu3/ipu3-cio2.c for (j = 0; j < elem_size; j++) j 1937 drivers/media/pci/intel/ipu3/ipu3-cio2.c swap(d[j], s[j]); j 1957 drivers/media/pci/intel/ipu3/ipu3-cio2.c unsigned int i, j; j 1959 drivers/media/pci/intel/ipu3/ipu3-cio2.c for (i = 0, j = q->bufs_first; i < CIO2_MAX_BUFFERS; j 1960 drivers/media/pci/intel/ipu3/ipu3-cio2.c i++, j = (j + 1) % CIO2_MAX_BUFFERS) j 1961 drivers/media/pci/intel/ipu3/ipu3-cio2.c if (q->bufs[j]) j 1967 drivers/media/pci/intel/ipu3/ipu3-cio2.c if (j) { j 1969 drivers/media/pci/intel/ipu3/ipu3-cio2.c CIO2_MAX_BUFFERS, j); j 1971 drivers/media/pci/intel/ipu3/ipu3-cio2.c CIO2_MAX_BUFFERS, j); j 645 drivers/media/pci/ivtv/ivtv-driver.c int i, j; j 699 drivers/media/pci/ivtv/ivtv-driver.c for (j = 0; itv->card->pci_list[j].device; j++) { j 701 drivers/media/pci/ivtv/ivtv-driver.c itv->card->pci_list[j].device) j 704 drivers/media/pci/ivtv/ivtv-driver.c itv->card->pci_list[j].subsystem_vendor) j 707 drivers/media/pci/ivtv/ivtv-driver.c itv->card->pci_list[j].subsystem_device) j 131 drivers/media/pci/meye/meye.c int j; j 133 drivers/media/pci/meye/meye.c for (j = 0; j < i; ++j) { j 137 drivers/media/pci/meye/meye.c meye.mchip_ptable[j], dma); j 547 drivers/media/pci/meye/meye.c int i, j; j 555 drivers/media/pci/meye/meye.c for (j = 0; j < 100; ++j) { j 759 drivers/media/pci/ngene/ngene-core.c u32 j; j 764 drivers/media/pci/ngene/ngene-core.c for (j = 0; j < rb->NumBuffers; j++, Cur = Cur->Next) { j 789 drivers/media/pci/ngene/ngene-core.c int j; j 795 drivers/media/pci/ngene/ngene-core.c for (j = 0; j < tb->NumBuffers; j++, Cur = Cur->Next) { j 887 drivers/media/pci/ngene/ngene-core.c u32 i, j; j 942 drivers/media/pci/ngene/ngene-core.c for (j = 0; j < NUM_SCATTER_GATHER_ENTRIES - 1; j += 1) { j 974 drivers/media/pci/ngene/ngene-core.c for (j = 0; j < NUM_SCATTER_GATHER_ENTRIES - 1; j++) { j 1541 drivers/media/pci/ngene/ngene-core.c int i, j; j 1546 drivers/media/pci/ngene/ngene-core.c for (j = i - 1; j >= 0; j--) j 1547 drivers/media/pci/ngene/ngene-core.c release_channel(&dev->channel[j]); j 552 drivers/media/pci/pluto2/pluto2.c unsigned int i, j; j 563 drivers/media/pci/pluto2/pluto2.c for (j = 0; j < 32; j += 8) { j 389 drivers/media/pci/pt1/pt1.c int i, j; j 394 drivers/media/pci/pt1/pt1.c for (j = 0; j < 1024; j++) { j 1284 drivers/media/pci/pt1/pt1.c int j; j 1286 drivers/media/pci/pt1/pt1.c for (j = 0; j < PT1_NR_BUFS; j++) j 1287 drivers/media/pci/pt1/pt1.c pt1->tables[i].bufs[j].page->upackets[PT1_NR_UPACKETS-1] j 149 drivers/media/pci/pt3/pt3_dma.c int i, j; j 187 drivers/media/pci/pt3/pt3_dma.c for (j = 0; j < DESCS_IN_PAGE; j++) { j 189 drivers/media/pci/pt3/pt3_dma.c d = &adap->desc_buf[i].descs[j]; j 86 drivers/media/pci/pt3/pt3_i2c.c int i, j; j 89 drivers/media/pci/pt3/pt3_i2c.c for (j = 0; j < 8; j++) j 106 drivers/media/pci/pt3/pt3_i2c.c int i, j; j 117 drivers/media/pci/pt3/pt3_i2c.c for (j = 0; j < msgs[i].len; j++) j 118 drivers/media/pci/pt3/pt3_i2c.c put_byte_write(cbuf, msgs[i].buf[j]); j 135 drivers/media/pci/solo6x10/solo6x10-enc.c int i, j; j 151 drivers/media/pci/solo6x10/solo6x10-enc.c for (j = 0; j < 16; j++) { j 152 drivers/media/pci/solo6x10/solo6x10-enc.c buf[(j << 1) | (i & 1) | ((i & ~1) << 4)] = j 153 drivers/media/pci/solo6x10/solo6x10-enc.c bitrev8(vga_data[(*str << 4) | j]); j 1065 drivers/media/pci/ttpci/av7110.c int i, j; j 1079 drivers/media/pci/ttpci/av7110.c for (j = 0; j < dvbdmx->filternum; j++) { j 1080 drivers/media/pci/ttpci/av7110.c if (dvbdmx->filter[j].type != DMX_TYPE_SEC) j 1082 drivers/media/pci/ttpci/av7110.c if (dvbdmx->filter[j].filter.parent != &feed->feed.sec) j 1084 drivers/media/pci/ttpci/av7110.c if (dvbdmx->filter[j].state == DMX_STATE_GO) j 1085 drivers/media/pci/ttpci/av7110.c dvbdmx->filter[j].state = DMX_STATE_READY; j 778 drivers/media/pci/tw68/tw68-video.c int i, j, k; j 787 drivers/media/pci/tw68/tw68-video.c for (j = i; j < i + 16; j += 4) j 788 drivers/media/pci/tw68/tw68-video.c cptr += sprintf(cptr, "%08x ", tw_readl(j)); j 790 drivers/media/pci/tw68/tw68-video.c for (; j < i + 32; j += 4) j 791 drivers/media/pci/tw68/tw68-video.c cptr += sprintf(cptr, "%08x ", tw_readl(j)); j 801 drivers/media/pci/tw68/tw68-video.c for (j = 0; j < 4; j++) { j 1660 drivers/media/platform/am437x/am437x-vpfe.c int i, j = 0; j 1663 drivers/media/platform/am437x/am437x-vpfe.c if (app_input_index < (j + 1)) { j 1665 drivers/media/platform/am437x/am437x-vpfe.c *subdev_input_index = app_input_index - j; j 1668 drivers/media/platform/am437x/am437x-vpfe.c j++; j 1685 drivers/media/platform/am437x/am437x-vpfe.c int i, j = 0; j 1695 drivers/media/platform/am437x/am437x-vpfe.c *app_input_index = j + vpfe->current_input; j 1698 drivers/media/platform/am437x/am437x-vpfe.c j++; j 2287 drivers/media/platform/am437x/am437x-vpfe.c int i, j; j 2310 drivers/media/platform/am437x/am437x-vpfe.c for (j = 0, i = 0; ; ++j) { j 2315 drivers/media/platform/am437x/am437x-vpfe.c mbus_code.index = j; j 699 drivers/media/platform/aspeed-video.c int i, j; j 709 drivers/media/platform/aspeed-video.c for (j = 0; j < 8; ++j) { j 711 drivers/media/platform/aspeed-video.c (compression_packet_size << j); j 716 drivers/media/platform/aspeed-video.c compression_buffer_size_reg = (i << 3) | j; j 1950 drivers/media/platform/atmel/atmel-isc-base.c unsigned int num_fmts, i, j; j 1983 drivers/media/platform/atmel/atmel-isc-base.c for (i = 0, j = 0; i < list_size; i++) { j 1985 drivers/media/platform/atmel/atmel-isc-base.c isc->user_formats[j++] = fmt; j 999 drivers/media/platform/atmel/atmel-isi.c unsigned int num_fmts = 0, i, j; j 1012 drivers/media/platform/atmel/atmel-isi.c for (j = 0; j < num_fmts; j++) j 1013 drivers/media/platform/atmel/atmel-isi.c if (isi_fmts[j]->fourcc == isi_formats[i].fourcc) j 1016 drivers/media/platform/atmel/atmel-isi.c if (j == num_fmts) j 379 drivers/media/platform/davinci/vpbe.c int j = 0; j 387 drivers/media/platform/davinci/vpbe.c if (j == timings->index) j 389 drivers/media/platform/davinci/vpbe.c j++; j 947 drivers/media/platform/davinci/vpfe_capture.c int i, j = 0; j 951 drivers/media/platform/davinci/vpfe_capture.c if (app_input_index < (j + sdinfo->num_inputs)) { j 953 drivers/media/platform/davinci/vpfe_capture.c *subdev_input_index = app_input_index - j; j 956 drivers/media/platform/davinci/vpfe_capture.c j += sdinfo->num_inputs; j 971 drivers/media/platform/davinci/vpfe_capture.c int i, j = 0; j 978 drivers/media/platform/davinci/vpfe_capture.c *app_input_index = j + vpfe_dev->current_input; j 981 drivers/media/platform/davinci/vpfe_capture.c j += sdinfo->num_inputs; j 1680 drivers/media/platform/davinci/vpfe_capture.c int ret, i, j; j 1822 drivers/media/platform/davinci/vpfe_capture.c for (j = 0; j < sdinfo->num_inputs; j++) { j 1823 drivers/media/platform/davinci/vpfe_capture.c inps = &sdinfo->inputs[j]; j 1347 drivers/media/platform/davinci/vpif_capture.c int err, i, j; j 1364 drivers/media/platform/davinci/vpif_capture.c for (j = 0; j < free_channel_objects_index; j++) j 1365 drivers/media/platform/davinci/vpif_capture.c kfree(vpif_obj.dev[j]); j 1415 drivers/media/platform/davinci/vpif_capture.c int j, err, k; j 1417 drivers/media/platform/davinci/vpif_capture.c for (j = 0; j < VPIF_CAPTURE_MAX_DEVICES; j++) { j 1418 drivers/media/platform/davinci/vpif_capture.c ch = vpif_obj.dev[j]; j 1419 drivers/media/platform/davinci/vpif_capture.c ch->channel_id = j; j 1469 drivers/media/platform/davinci/vpif_capture.c VFL_TYPE_GRABBER, (j ? 1 : 0)); j 1478 drivers/media/platform/davinci/vpif_capture.c for (k = 0; k < j; k++) { j 1090 drivers/media/platform/davinci/vpif_display.c int err, i, j; j 1107 drivers/media/platform/davinci/vpif_display.c for (j = 0; j < free_channel_objects_index; j++) j 1108 drivers/media/platform/davinci/vpif_display.c kfree(vpif_obj.dev[j]); j 1143 drivers/media/platform/davinci/vpif_display.c int j, err, k; j 1145 drivers/media/platform/davinci/vpif_display.c for (j = 0; j < VPIF_DISPLAY_MAX_DEVICES; j++) { j 1146 drivers/media/platform/davinci/vpif_display.c ch = vpif_obj.dev[j]; j 1164 drivers/media/platform/davinci/vpif_display.c ch->channel_id = j; j 1218 drivers/media/platform/davinci/vpif_display.c (j ? 3 : 2)); j 1226 drivers/media/platform/davinci/vpif_display.c for (k = 0; k < j; k++) { j 935 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c int i, j = 0; j 944 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c if (j == f->index) j 946 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c ++j; j 162 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c int i, j = 0; j 170 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c if (j == f->index) { j 176 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c ++j; j 238 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c int i, j, ret; j 262 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c for (i = VENC_SYS, j = 0; i < NUM_MAX_VCODEC_REG_BASE; i++, j++) { j 263 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c res = platform_get_resource(pdev, IORESOURCE_MEM, j); j 181 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c int i, j; j 190 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c for (j = ARRAY_SIZE(vsi->segment_buf[i]) - 1; j >= 0; j--) { j 191 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c val = (1 << 16) + ((seg_id_addr + i) << 2) + j; j 194 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c val = vsi->segment_buf[i][j]; j 202 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c int i, j; j 211 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c for (j = ARRAY_SIZE(vsi->segment_buf[i]) - 1; j >= 0; j--) { j 212 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c val = ((seg_id_addr + i) << 2) + j; j 216 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c vsi->segment_buf[i][j] = val; j 251 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c int i, j; j 258 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c for (j = 0; j < VP8_DEC_TABLE_UNIT ; j++) { j 999 drivers/media/platform/omap/omap_vout.c int ret, j; j 1042 drivers/media/platform/omap/omap_vout.c for (j = 0; j < ovid->num_overlays; j++) { j 1043 drivers/media/platform/omap/omap_vout.c struct omap_overlay *ovl = ovid->overlays[j]; j 1060 drivers/media/platform/omap/omap_vout.c for (j = 0; j < ovid->num_overlays; j++) { j 1061 drivers/media/platform/omap/omap_vout.c struct omap_overlay *ovl = ovid->overlays[j]; j 1087 drivers/media/platform/omap/omap_vout.c int j; j 1094 drivers/media/platform/omap/omap_vout.c for (j = 0; j < ovid->num_overlays; j++) { j 1095 drivers/media/platform/omap/omap_vout.c struct omap_overlay *ovl = ovid->overlays[j]; j 33 drivers/media/platform/omap/omap_vout_vrfb.c int i, j; j 46 drivers/media/platform/omap/omap_vout_vrfb.c for (j = 0; j < i; j++) { j 48 drivers/media/platform/omap/omap_vout_vrfb.c vout->smsshado_virt_addr[j], j 50 drivers/media/platform/omap/omap_vout_vrfb.c vout->smsshado_virt_addr[j] = 0; j 51 drivers/media/platform/omap/omap_vout_vrfb.c vout->smsshado_phy_addr[j] = 0; j 78 drivers/media/platform/omap/omap_vout_vrfb.c int j; j 80 drivers/media/platform/omap/omap_vout_vrfb.c for (j = 0; j < VRFB_NUM_BUFS; j++) { j 81 drivers/media/platform/omap/omap_vout_vrfb.c if (vout->smsshado_virt_addr[j]) { j 82 drivers/media/platform/omap/omap_vout_vrfb.c omap_vout_free_buffer(vout->smsshado_virt_addr[j], j 84 drivers/media/platform/omap/omap_vout_vrfb.c vout->smsshado_virt_addr[j] = 0; j 85 drivers/media/platform/omap/omap_vout_vrfb.c vout->smsshado_phy_addr[j] = 0; j 93 drivers/media/platform/omap/omap_vout_vrfb.c int ret = 0, i, j; j 109 drivers/media/platform/omap/omap_vout_vrfb.c for (j = 0; j < i; j++) j 110 drivers/media/platform/omap/omap_vout_vrfb.c omap_vrfb_release_ctx(&vout->vrfb_context[j]); j 170 drivers/media/platform/omap/omap_vout_vrfb.c for (j = 0; j < VRFB_NUM_BUFS; j++) j 171 drivers/media/platform/omap/omap_vout_vrfb.c omap_vrfb_release_ctx(&vout->vrfb_context[j]); j 246 drivers/media/platform/omap3isp/isppreview.c unsigned int j; j 259 drivers/media/platform/omap3isp/isppreview.c for (j = 0; j < OMAP3ISP_PREV_CFA_BLK_SIZE; ++j) j 260 drivers/media/platform/omap3isp/isppreview.c isp_reg_writel(isp, block[j], OMAP3_ISP_IOMEM_PREV, j 465 drivers/media/platform/qcom/camss/camss-csid.c int i, j; j 490 drivers/media/platform/qcom/camss/camss-csid.c for (j = 0; j < clock->nfreqs; j++) j 491 drivers/media/platform/qcom/camss/camss-csid.c if (min_rate < clock->freq[j]) j 494 drivers/media/platform/qcom/camss/camss-csid.c if (j == clock->nfreqs) { j 503 drivers/media/platform/qcom/camss/camss-csid.c j = clock->nfreqs - 1; j 505 drivers/media/platform/qcom/camss/camss-csid.c rate = clk_round_rate(clock->clk, clock->freq[j]); j 1089 drivers/media/platform/qcom/camss/camss-csid.c int i, j; j 1173 drivers/media/platform/qcom/camss/camss-csid.c for (j = 0; j < clock->nfreqs; j++) j 1174 drivers/media/platform/qcom/camss/camss-csid.c clock->freq[j] = res->clock_rate[i][j]; j 106 drivers/media/platform/qcom/camss/camss-csiphy.c int i, j; j 128 drivers/media/platform/qcom/camss/camss-csiphy.c for (j = 0; j < clock->nfreqs; j++) j 129 drivers/media/platform/qcom/camss/camss-csiphy.c if (min_rate < clock->freq[j]) j 132 drivers/media/platform/qcom/camss/camss-csiphy.c if (j == clock->nfreqs) { j 141 drivers/media/platform/qcom/camss/camss-csiphy.c j = clock->nfreqs - 1; j 143 drivers/media/platform/qcom/camss/camss-csiphy.c round_rate = clk_round_rate(clock->clk, clock->freq[j]); j 544 drivers/media/platform/qcom/camss/camss-csiphy.c int i, j; j 638 drivers/media/platform/qcom/camss/camss-csiphy.c for (j = 0; j < clock->nfreqs; j++) j 639 drivers/media/platform/qcom/camss/camss-csiphy.c clock->freq[j] = res->clock_rate[i][j]; j 935 drivers/media/platform/qcom/camss/camss-vfe-4-1.c int i, j; j 965 drivers/media/platform/qcom/camss/camss-vfe-4-1.c for (j = 0; j < ARRAY_SIZE(vfe->wm_output_map); j++) j 966 drivers/media/platform/qcom/camss/camss-vfe-4-1.c if (vfe->wm_output_map[j] == VFE_LINE_PIX) j 967 drivers/media/platform/qcom/camss/camss-vfe-4-1.c value0 &= ~VFE_0_IRQ_MASK_0_IMAGE_MASTER_n_PING_PONG(j); j 1057 drivers/media/platform/qcom/camss/camss-vfe-4-7.c int i, j; j 1087 drivers/media/platform/qcom/camss/camss-vfe-4-7.c for (j = 0; j < ARRAY_SIZE(vfe->wm_output_map); j++) j 1088 drivers/media/platform/qcom/camss/camss-vfe-4-7.c if (vfe->wm_output_map[j] == VFE_LINE_PIX) j 1089 drivers/media/platform/qcom/camss/camss-vfe-4-7.c value0 &= ~VFE_0_IRQ_MASK_0_IMAGE_MASTER_n_PING_PONG(j); j 1115 drivers/media/platform/qcom/camss/camss-vfe.c int i, j; j 1133 drivers/media/platform/qcom/camss/camss-vfe.c for (j = VFE_LINE_RDI0; j <= VFE_LINE_PIX; j++) { j 1137 drivers/media/platform/qcom/camss/camss-vfe.c if (j == VFE_LINE_PIX) { j 1138 drivers/media/platform/qcom/camss/camss-vfe.c tmp = pixel_clock[j]; j 1140 drivers/media/platform/qcom/camss/camss-vfe.c struct vfe_line *l = &vfe->line[j]; j 1145 drivers/media/platform/qcom/camss/camss-vfe.c tmp = pixel_clock[j] * bpp / 64; j 1154 drivers/media/platform/qcom/camss/camss-vfe.c for (j = 0; j < clock->nfreqs; j++) j 1155 drivers/media/platform/qcom/camss/camss-vfe.c if (min_rate < clock->freq[j]) j 1158 drivers/media/platform/qcom/camss/camss-vfe.c if (j == clock->nfreqs) { j 1167 drivers/media/platform/qcom/camss/camss-vfe.c j = clock->nfreqs - 1; j 1169 drivers/media/platform/qcom/camss/camss-vfe.c rate = clk_round_rate(clock->clk, clock->freq[j]); j 1197 drivers/media/platform/qcom/camss/camss-vfe.c int i, j; j 1215 drivers/media/platform/qcom/camss/camss-vfe.c for (j = VFE_LINE_RDI0; j <= VFE_LINE_PIX; j++) { j 1219 drivers/media/platform/qcom/camss/camss-vfe.c if (j == VFE_LINE_PIX) { j 1220 drivers/media/platform/qcom/camss/camss-vfe.c tmp = pixel_clock[j]; j 1222 drivers/media/platform/qcom/camss/camss-vfe.c struct vfe_line *l = &vfe->line[j]; j 1227 drivers/media/platform/qcom/camss/camss-vfe.c tmp = pixel_clock[j] * bpp / 64; j 1986 drivers/media/platform/qcom/camss/camss-vfe.c int i, j; j 2067 drivers/media/platform/qcom/camss/camss-vfe.c for (j = 0; j < clock->nfreqs; j++) j 2068 drivers/media/platform/qcom/camss/camss-vfe.c clock->freq[j] = res->clock_rate[i][j]; j 535 drivers/media/platform/qcom/camss/camss-video.c int i, j, k; j 546 drivers/media/platform/qcom/camss/camss-video.c for (j = 0; j < i; j++) { j 548 drivers/media/platform/qcom/camss/camss-video.c video->formats[j].pixelformat) j 552 drivers/media/platform/qcom/camss/camss-video.c if (j == i) j 585 drivers/media/platform/qcom/camss/camss-video.c int i, j; j 599 drivers/media/platform/qcom/camss/camss-video.c for (j = 0; j < video->nformats; j++) j 600 drivers/media/platform/qcom/camss/camss-video.c if (pix_mp->pixelformat == video->formats[j].pixelformat) j 603 drivers/media/platform/qcom/camss/camss-video.c if (j == video->nformats) j 604 drivers/media/platform/qcom/camss/camss-video.c j = 0; /* default format */ j 606 drivers/media/platform/qcom/camss/camss-video.c fi = &video->formats[j]; j 591 drivers/media/platform/qcom/camss/camss.c int i, j, k; j 635 drivers/media/platform/qcom/camss/camss.c for (j = 0; j < camss->csid_num; j++) { j 639 drivers/media/platform/qcom/camss/camss.c &camss->csid[j].subdev.entity, j 646 drivers/media/platform/qcom/camss/camss.c camss->csid[j].subdev.entity.name, j 654 drivers/media/platform/qcom/camss/camss.c for (j = 0; j < camss->ispif.line_num; j++) { j 658 drivers/media/platform/qcom/camss/camss.c &camss->ispif.line[j].subdev.entity, j 665 drivers/media/platform/qcom/camss/camss.c camss->ispif.line[j].subdev.entity.name, j 674 drivers/media/platform/qcom/camss/camss.c for (j = 0; j < ARRAY_SIZE(camss->vfe[k].line); j++) { j 678 drivers/media/platform/qcom/camss/camss.c &camss->vfe[k].line[j].subdev.entity, j 685 drivers/media/platform/qcom/camss/camss.c camss->vfe[k].line[j].subdev.entity.name, j 394 drivers/media/platform/rcar_drif.c unsigned int i, j; j 412 drivers/media/platform/rcar_drif.c for (j = 0; j < RCAR_DRIF_NUM_HWBUFS; j++) { j 413 drivers/media/platform/rcar_drif.c ch->buf[j].addr = addr + (j * sdr->hwbuf_size); j 414 drivers/media/platform/rcar_drif.c ch->buf[j].status = 0; j 555 drivers/media/platform/rcar_jpu.c unsigned int i, j; j 558 drivers/media/platform/rcar_jpu.c for (j = 0; j < 4 && (i + j) < len; ++j) j 559 drivers/media/platform/rcar_jpu.c p[i + j] = htbl[i + 3 - j]; j 807 drivers/media/platform/s5p-jpeg/jpeg-core.c int c, i, n, j; j 809 drivers/media/platform/s5p-jpeg/jpeg-core.c for (j = 0; j < ctx->out_q.dht.n; ++j) { j 810 drivers/media/platform/s5p-jpeg/jpeg-core.c jpeg_buffer.size = ctx->out_q.dht.len[j]; j 812 drivers/media/platform/s5p-jpeg/jpeg-core.c ctx->out_q.dht.marker[j]; j 897 drivers/media/platform/s5p-jpeg/jpeg-core.c int c, i, j; j 899 drivers/media/platform/s5p-jpeg/jpeg-core.c for (j = 0; j < ctx->out_q.dqt.n; ++j) { j 900 drivers/media/platform/s5p-jpeg/jpeg-core.c jpeg_buffer.size = ctx->out_q.dqt.len[j]; j 902 drivers/media/platform/s5p-jpeg/jpeg-core.c ctx->out_q.dqt.marker[j]; j 263 drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c unsigned int j, unsigned int coef) j 268 drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c reg &= ~S5P_COEFn_MASK(j); j 269 drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c reg |= (coef << S5P_COEFn_SHIFT(j)) & S5P_COEFn_MASK(j); j 50 drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.h unsigned int j, unsigned int coef); j 100 drivers/media/platform/s5p-jpeg/jpeg-regs.h #define S5P_COEFn_SHIFT(j) ((3 - (j)) << 3) j 101 drivers/media/platform/s5p-jpeg/jpeg-regs.h #define S5P_COEFn_MASK(j) (0xff << S5P_COEFn_SHIFT(j)) j 523 drivers/media/platform/s5p-jpeg/jpeg-regs.h #define EXYNOS3250_COEF_SHIFT(j) ((3 - (j)) << 3) j 524 drivers/media/platform/s5p-jpeg/jpeg-regs.h #define EXYNOS3250_COEF_MASK(j) (0xff << EXYNOS3250_COEF_SHIFT(j)) j 268 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c int i, j = 0; j 278 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c if (j == f->index) j 280 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c ++j; j 1315 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c int i, j = 0; j 1325 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c if (j == f->index) { j 1329 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c ++j; j 1773 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c int i, j; j 1776 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c for (j = 0; j < ARRAY_SIZE(ctx->ctrls); j++) { j 1777 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c if (ctx->ctrls[j]->id == __hevc_qp_ctrls[i]) { j 1778 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c ctrl = ctx->ctrls[j]; j 1017 drivers/media/platform/sh_vou.c static unsigned long j; j 1024 drivers/media/platform/sh_vou.c if (printk_timed_ratelimit(&j, 500)) j 1032 drivers/media/platform/sh_vou.c if (printk_timed_ratelimit(&j, 500)) j 396 drivers/media/platform/sti/bdisp/bdisp-debug.c int j, i = 0; j 410 drivers/media/platform/sti/bdisp/bdisp-debug.c for (j = 0; j < sizeof(struct bdisp_node) / sizeof(u32); j++) j 132 drivers/media/platform/sti/c8sectpfe/c8sectpfe-common.c int i, j; j 167 drivers/media/platform/sti/c8sectpfe/c8sectpfe-common.c for (j = 0; j < i; j++) j 168 drivers/media/platform/sti/c8sectpfe/c8sectpfe-common.c unregister_dvb(&c8sectpfe->demux[j]); j 1585 drivers/media/platform/stm32/stm32-dcmi.c unsigned int num_fmts = 0, i, j; j 1598 drivers/media/platform/stm32/stm32-dcmi.c for (j = 0; j < num_fmts; j++) j 1599 drivers/media/platform/stm32/stm32-dcmi.c if (sd_fmts[j]->fourcc == j 1603 drivers/media/platform/stm32/stm32-dcmi.c (char *)&sd_fmts[j]->fourcc, j 1607 drivers/media/platform/stm32/stm32-dcmi.c if (j == num_fmts) { j 1434 drivers/media/platform/ti-vpe/cal.c int i, j, k; j 1447 drivers/media/platform/ti-vpe/cal.c for (j = 0, i = 0; ret != -EINVAL; ++j) { j 1451 drivers/media/platform/ti-vpe/cal.c mbus_code.index = j; j 1459 drivers/media/platform/ti-vpe/cal.c subdev->name, mbus_code.code, j); j 66 drivers/media/platform/ti-vpe/sc.c int i, j; j 91 drivers/media/platform/ti-vpe/sc.c for (j = 0; j < SC_H_NUM_TAPS; j++) j 115 drivers/media/platform/ti-vpe/sc.c int i, j; j 133 drivers/media/platform/ti-vpe/sc.c for (j = 0; j < SC_V_NUM_TAPS; j++) j 198 drivers/media/platform/vicodec/codec-fwht.c int i, j; j 200 drivers/media/platform/vicodec/codec-fwht.c for (j = 0; j < 8; j++) { j 214 drivers/media/platform/vicodec/codec-fwht.c int i, j; j 216 drivers/media/platform/vicodec/codec-fwht.c for (j = 0; j < 8; j++) j 224 drivers/media/platform/vicodec/codec-fwht.c int i, j; j 226 drivers/media/platform/vicodec/codec-fwht.c for (j = 0; j < 8; j++) { j 240 drivers/media/platform/vicodec/codec-fwht.c int i, j; j 242 drivers/media/platform/vicodec/codec-fwht.c for (j = 0; j < 8; j++) j 579 drivers/media/platform/vicodec/codec-fwht.c int i, j; j 582 drivers/media/platform/vicodec/codec-fwht.c for (j = 0; j < 8; j++, input += input_step) j 645 drivers/media/platform/vicodec/codec-fwht.c int i, j; j 648 drivers/media/platform/vicodec/codec-fwht.c for (j = 0; j < 8; j++, input++, dst += dst_step) { j 694 drivers/media/platform/vicodec/codec-fwht.c unsigned int i, j; j 699 drivers/media/platform/vicodec/codec-fwht.c for (j = 0; j < height / 8; j++) { j 700 drivers/media/platform/vicodec/codec-fwht.c input = input_start + j * 8 * stride; j 765 drivers/media/platform/vicodec/codec-fwht.c for (j = 0; j < height; j++) { j 843 drivers/media/platform/vicodec/codec-fwht.c unsigned int i, j; j 868 drivers/media/platform/vicodec/codec-fwht.c for (j = 0; j < height / 8; j++) { j 870 drivers/media/platform/vicodec/codec-fwht.c const u8 *refp = ref + j * 8 * ref_stride + j 872 drivers/media/platform/vicodec/codec-fwht.c u8 *dstp = dst + j * 8 * dst_stride + i * 8 * dst_step; j 466 drivers/media/platform/vimc/vimc-debayer.c unsigned int i, j; j 473 drivers/media/platform/vimc/vimc-debayer.c for (j = 0; j < vdeb->sink_fmt.width; j++) { j 474 drivers/media/platform/vimc/vimc-debayer.c vimc_deb_calc_rgb_sink(vdeb, sink_frame, i, j, rgb); j 475 drivers/media/platform/vimc/vimc-debayer.c vdeb->set_rgb_src(vdeb, i, j, rgb); j 272 drivers/media/platform/vimc/vimc-scaler.c unsigned int i, j, index; j 299 drivers/media/platform/vimc/vimc-scaler.c for (j = 0; j < sca_mult * vsca->bpp; j += vsca->bpp) { j 302 drivers/media/platform/vimc/vimc-scaler.c vsca->sd.name, index + j); j 305 drivers/media/platform/vimc/vimc-scaler.c vimc_sca_fill_pix(&vsca->src_frame[index + j], j 317 drivers/media/platform/vimc/vimc-scaler.c unsigned int i, j; j 322 drivers/media/platform/vimc/vimc-scaler.c for (j = 0; j < vsca->sink_fmt.width; j++) j 323 drivers/media/platform/vimc/vimc-scaler.c vimc_sca_scale_pix(vsca, i, j, sink_frame); j 1577 drivers/media/platform/vivid/vivid-core.c unsigned int i, j; j 1630 drivers/media/platform/vivid/vivid-core.c for (j = 0; j < MAX_OUTPUTS; j++) j 1631 drivers/media/platform/vivid/vivid-core.c cec_unregister_adapter(dev->cec_tx_adap[j]); j 362 drivers/media/platform/vivid/vivid-ctrls.c unsigned int i, j; j 477 drivers/media/platform/vivid/vivid-ctrls.c for (i = 0, j = 0; j 482 drivers/media/platform/vivid/vivid-ctrls.c dev->power_present |= (1 << j); j 483 drivers/media/platform/vivid/vivid-ctrls.c j++; j 929 drivers/media/platform/vivid/vivid-ctrls.c unsigned int i, j, bus_idx; j 968 drivers/media/platform/vivid/vivid-ctrls.c for (i = 0, j = 0; i < dev->num_outputs; i++) j 971 drivers/media/platform/vivid/vivid-ctrls.c dev->display_present[i] << j++; j 1098 drivers/media/platform/vivid/vivid-vid-cap.c int i, j; j 1136 drivers/media/platform/vivid/vivid-vid-cap.c for (j = i + 1; j < win->clipcount; j++) { j 1137 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_rect *r2 = &dev->try_clips_cap[j].c; j 1749 drivers/media/platform/vivid/vivid-vid-cap.c unsigned int i, j; j 1779 drivers/media/platform/vivid/vivid-vid-cap.c for (i = 0, j = 0; i < dev->num_outputs; i++) j 1782 drivers/media/platform/vivid/vivid-vid-cap.c dev->display_present[i] << j++; j 874 drivers/media/platform/vivid/vivid-vid-out.c int i, j; j 912 drivers/media/platform/vivid/vivid-vid-out.c for (j = i + 1; j < win->clipcount; j++) { j 913 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_rect *r2 = &dev->try_clips_out[j].c; j 383 drivers/media/platform/vsp1/vsp1_drm.c unsigned int j; j 389 drivers/media/platform/vsp1/vsp1_drm.c for (j = pipe->num_inputs++; j > 0; --j) { j 390 drivers/media/platform/vsp1/vsp1_drm.c if (rpf_zpos(vsp1, inputs[j-1]) <= rpf_zpos(vsp1, rpf)) j 392 drivers/media/platform/vsp1/vsp1_drm.c inputs[j] = inputs[j-1]; j 395 drivers/media/platform/vsp1/vsp1_drm.c inputs[j] = rpf; j 217 drivers/media/radio/radio-cadet.c int i, j, test; j 254 drivers/media/radio/radio-cadet.c for (j = 3; j > -1; j--) { j 255 drivers/media/radio/radio-cadet.c cadet_settune(dev, fifo | (j << 16)); j 264 drivers/media/radio/radio-cadet.c dev->sigstrength = sigtable[dev->is_fm_band][j]; j 154 drivers/media/radio/radio-miropcm20.c int i, j; j 174 drivers/media/radio/radio-miropcm20.c j = rds_readcycle_nowait(aci); j 175 drivers/media/radio/radio-miropcm20.c if (j < 0) j 177 drivers/media/radio/radio-miropcm20.c databuffer[i / 8] |= RDS_DATA(j) << (7 - (i % 8)); j 46 drivers/media/rc/ir-spi.c int j; j 60 drivers/media/rc/ir-spi.c for (j = 0; j < periods; j++) j 210 drivers/media/rc/mtk-cir.c u32 i, j, val; j 233 drivers/media/rc/mtk-cir.c for (j = 0 ; j < 4 ; j++) { j 234 drivers/media/rc/mtk-cir.c wid = (val & (MTK_WIDTH_MASK << j * 8)) >> j * 8; j 189 drivers/media/rc/ttusbir.c int i, j, ret; j 205 drivers/media/rc/ttusbir.c for (j = 0; j < idesc->bNumEndpoints; j++) { j 206 drivers/media/rc/ttusbir.c desc = &intf->altsetting[i].endpoint[j].desc; j 211 drivers/media/rc/ttusbir.c iso_in_endp = j; j 215 drivers/media/rc/ttusbir.c bulk_out_endp = j; j 266 drivers/media/rc/ttusbir.c for (j = 0; j < 8; j++) { j 267 drivers/media/rc/ttusbir.c urb->iso_frame_desc[j].offset = j * 16; j 268 drivers/media/rc/ttusbir.c urb->iso_frame_desc[j].length = 16; j 571 drivers/media/tuners/mt2063.c s32 j = 0; j 621 drivers/media/tuners/mt2063.c if ((j > 0) && (tmpMin < zones[j - 1].max_)) j 622 drivers/media/tuners/mt2063.c zones[j - 1].max_ = tmpMax; j 625 drivers/media/tuners/mt2063.c zones[j].min_ = tmpMin; j 626 drivers/media/tuners/mt2063.c zones[j].max_ = tmpMax; j 627 drivers/media/tuners/mt2063.c j++; j 646 drivers/media/tuners/mt2063.c for (i = 0; i < j; i++) { j 3417 drivers/media/tuners/mxl5005s.c u16 i, j, k; j 3429 drivers/media/tuners/mxl5005s.c for (j = 0; j < state->Init_Ctrl[i].size; j++) { j 3430 drivers/media/tuners/mxl5005s.c state->Init_Ctrl[i].val[j] = (u8)((value >> j) & 0x01); j 3431 drivers/media/tuners/mxl5005s.c MXL_RegWriteBit(fe, (u8)(state->Init_Ctrl[i].addr[j]), j 3432 drivers/media/tuners/mxl5005s.c (u8)(state->Init_Ctrl[i].bit[j]), j 3433 drivers/media/tuners/mxl5005s.c (u8)((value>>j) & 0x01)); j 3451 drivers/media/tuners/mxl5005s.c for (j = 0; j < state->CH_Ctrl[i].size; j++) { j 3452 drivers/media/tuners/mxl5005s.c state->CH_Ctrl[i].val[j] = (u8)((value >> j) & 0x01); j 3453 drivers/media/tuners/mxl5005s.c MXL_RegWriteBit(fe, (u8)(state->CH_Ctrl[i].addr[j]), j 3454 drivers/media/tuners/mxl5005s.c (u8)(state->CH_Ctrl[i].bit[j]), j 3455 drivers/media/tuners/mxl5005s.c (u8)((value>>j) & 0x01)); j 3474 drivers/media/tuners/mxl5005s.c for (j = 0; j < state->MXL_Ctrl[i].size; j++) { j 3475 drivers/media/tuners/mxl5005s.c state->MXL_Ctrl[i].val[j] = (u8)((value >> j) & 0x01); j 3476 drivers/media/tuners/mxl5005s.c MXL_RegWriteBit(fe, (u8)(state->MXL_Ctrl[i].addr[j]), j 3477 drivers/media/tuners/mxl5005s.c (u8)(state->MXL_Ctrl[i].bit[j]), j 3478 drivers/media/tuners/mxl5005s.c (u8)((value>>j) & 0x01)); j 181 drivers/media/tuners/mxl5007t.c unsigned int i, j; j 183 drivers/media/tuners/mxl5007t.c i = j = 0; j 186 drivers/media/tuners/mxl5007t.c while (reg_pair2[j].reg || reg_pair2[j].val) { j 187 drivers/media/tuners/mxl5007t.c if (reg_pair1[i].reg != reg_pair2[j].reg) { j 188 drivers/media/tuners/mxl5007t.c j++; j 191 drivers/media/tuners/mxl5007t.c reg_pair2[j].val = reg_pair1[i].val; j 500 drivers/media/tuners/tda18250.c unsigned int i, j; j 539 drivers/media/tuners/tda18250.c j = ATSC; j 548 drivers/media/tuners/tda18250.c j = DVBT_6; j 551 drivers/media/tuners/tda18250.c j = DVBT_7; j 554 drivers/media/tuners/tda18250.c j = DVBT_8; j 567 drivers/media/tuners/tda18250.c j = DVBC_6; j 570 drivers/media/tuners/tda18250.c j = DVBC_8; j 587 drivers/media/tuners/tda18250.c delsys_params[MASK][i], delsys_params[j][i]); j 671 drivers/media/tuners/tuner-simple.c int rc, j; j 678 drivers/media/tuners/tuner-simple.c for (j = tun->count-1; j > 0; j--) j 679 drivers/media/tuners/tuner-simple.c if (tun->params[j].type == TUNER_PARAM_TYPE_RADIO) j 682 drivers/media/tuners/tuner-simple.c t_params = &tun->params[j]; j 411 drivers/media/usb/airspy/airspy.c int i, j; j 418 drivers/media/usb/airspy/airspy.c for (j = 0; j < i; j++) j 419 drivers/media/usb/airspy/airspy.c usb_free_urb(s->urb_list[j]); j 117 drivers/media/usb/au0828/au0828-input.c int i, j, rc; j 151 drivers/media/usb/au0828/au0828-input.c for (j = 7; j >= 0; j--) { j 152 drivers/media/usb/au0828/au0828-input.c bit = (buf[i] >> j) & 0x01; j 203 drivers/media/usb/au0828/au0828-video.c int j, k; j 261 drivers/media/usb/au0828/au0828-video.c for (j = 0; j < max_packets; j++) { j 262 drivers/media/usb/au0828/au0828-video.c urb->iso_frame_desc[j].offset = k; j 263 drivers/media/usb/au0828/au0828-video.c urb->iso_frame_desc[j].length = j 421 drivers/media/usb/au0828/au0828-video.c int i, j = 0; j 456 drivers/media/usb/au0828/au0828-video.c startwrite[j++] = startread[i+1]; j 433 drivers/media/usb/b2c2/flexcop-usb.c frame_size, i, j, ret; j 476 drivers/media/usb/b2c2/flexcop-usb.c for (j = 0; j < B2C2_USB_FRAMES_PER_ISO; j++) { j 478 drivers/media/usb/b2c2/flexcop-usb.c i, j, frame_offset); j 479 drivers/media/usb/b2c2/flexcop-usb.c urb->iso_frame_desc[j].offset = frame_offset; j 480 drivers/media/usb/b2c2/flexcop-usb.c urb->iso_frame_desc[j].length = frame_size; j 225 drivers/media/usb/cpia2/cpia2_usb.c int j; j 270 drivers/media/usb/cpia2/cpia2_usb.c for(j=0; j<n-2; ++j) j 271 drivers/media/usb/cpia2/cpia2_usb.c checksum += cdata[j]; j 272 drivers/media/usb/cpia2/cpia2_usb.c iso_checksum = cdata[j] + cdata[j+1]*256; j 651 drivers/media/usb/cpia2/cpia2_usb.c int fx, err, i, j; j 677 drivers/media/usb/cpia2/cpia2_usb.c for (j = 0; j < i; j++) j 678 drivers/media/usb/cpia2/cpia2_usb.c usb_free_urb(cam->sbuf[j].urb); j 679 drivers/media/usb/cpia2/cpia2_usb.c for (j = 0; j < NUM_SBUF; j++) { j 680 drivers/media/usb/cpia2/cpia2_usb.c kfree(cam->sbuf[j].data); j 681 drivers/media/usb/cpia2/cpia2_usb.c cam->sbuf[j].data = NULL; j 275 drivers/media/usb/cx231xx/cx231xx-audio.c int j, k; j 284 drivers/media/usb/cx231xx/cx231xx-audio.c for (j = 0; j < i; j++) { j 285 drivers/media/usb/cx231xx/cx231xx-audio.c usb_free_urb(dev->adev.urb[j]); j 286 drivers/media/usb/cx231xx/cx231xx-audio.c kfree(dev->adev.transfer_buffer[j]); j 302 drivers/media/usb/cx231xx/cx231xx-audio.c for (j = k = 0; j < CX231XX_ISO_NUM_AUDIO_PACKETS; j 303 drivers/media/usb/cx231xx/cx231xx-audio.c j++, k += dev->adev.max_pkt_size) { j 304 drivers/media/usb/cx231xx/cx231xx-audio.c urb->iso_frame_desc[j].offset = k; j 305 drivers/media/usb/cx231xx/cx231xx-audio.c urb->iso_frame_desc[j].length = dev->adev.max_pkt_size; j 336 drivers/media/usb/cx231xx/cx231xx-audio.c int j; j 345 drivers/media/usb/cx231xx/cx231xx-audio.c for (j = 0; j < i; j++) { j 346 drivers/media/usb/cx231xx/cx231xx-audio.c usb_free_urb(dev->adev.urb[j]); j 347 drivers/media/usb/cx231xx/cx231xx-audio.c kfree(dev->adev.transfer_buffer[j]); j 995 drivers/media/usb/cx231xx/cx231xx-core.c int j, k; j 1087 drivers/media/usb/cx231xx/cx231xx-core.c for (j = 0; j < max_packets; j++) { j 1088 drivers/media/usb/cx231xx/cx231xx-core.c urb->iso_frame_desc[j].offset = k; j 1089 drivers/media/usb/cx231xx/cx231xx-core.c urb->iso_frame_desc[j].length = j 593 drivers/media/usb/dvb-usb-v2/af9035.c int ret, i, j, len; j 639 drivers/media/usb/dvb-usb-v2/af9035.c for (j = HDR_SIZE + hdr_data_len; j > 0; j -= MAX_DATA) { j 640 drivers/media/usb/dvb-usb-v2/af9035.c len = j; j 645 drivers/media/usb/dvb-usb-v2/af9035.c HDR_SIZE + hdr_data_len - j]; j 747 drivers/media/usb/dvb-usb-v2/az6007.c int i, j, len; j 780 drivers/media/usb/dvb-usb-v2/az6007.c for (j = 0; j < len; j++) j 781 drivers/media/usb/dvb-usb-v2/az6007.c msgs[i + 1].buf[j] = st->data[j + 5]; j 795 drivers/media/usb/dvb-usb-v2/az6007.c for (j = 0; j < len; j++) j 796 drivers/media/usb/dvb-usb-v2/az6007.c st->data[j] = msgs[i].buf[j + 1]; j 811 drivers/media/usb/dvb-usb-v2/az6007.c for (j = 0; j < len; j++) j 812 drivers/media/usb/dvb-usb-v2/az6007.c msgs[i].buf[j] = st->data[j + 5]; j 599 drivers/media/usb/dvb-usb-v2/lmedm04.c u16 j, wlen, len_in, start, end; j 618 drivers/media/usb/dvb-usb-v2/lmedm04.c for (j = start; j < end; j += (packet_size+1)) { j 619 drivers/media/usb/dvb-usb-v2/lmedm04.c fw_data = (u8 *)(fw->data + j); j 620 drivers/media/usb/dvb-usb-v2/lmedm04.c if ((end - j) > packet_size) { j 625 drivers/media/usb/dvb-usb-v2/lmedm04.c dlen = (u8)(end - j)-1; j 138 drivers/media/usb/dvb-usb-v2/usb_urb.c int i, j; j 146 drivers/media/usb/dvb-usb-v2/usb_urb.c for (j = 0; j < i; j++) j 147 drivers/media/usb/dvb-usb-v2/usb_urb.c usb_free_urb(stream->urb_list[j]); j 165 drivers/media/usb/dvb-usb-v2/usb_urb.c int i, j; j 176 drivers/media/usb/dvb-usb-v2/usb_urb.c for (j = 0; j < i; j++) j 177 drivers/media/usb/dvb-usb-v2/usb_urb.c usb_free_urb(stream->urb_list[j]); j 195 drivers/media/usb/dvb-usb-v2/usb_urb.c for (j = 0; j < stream->props.u.isoc.framesperurb; j++) { j 196 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->iso_frame_desc[j].offset = frame_offset; j 197 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->iso_frame_desc[j].length = j 953 drivers/media/usb/dvb-usb/az6027.c int i = 0, j = 0, len = 0; j 991 drivers/media/usb/dvb-usb/az6027.c for (j = 0; j < len; j++) j 992 drivers/media/usb/dvb-usb/az6027.c msg[i + 1].buf[j] = data[j + 5]; j 1003 drivers/media/usb/dvb-usb/az6027.c for (j = 0; j < len; j++) j 1004 drivers/media/usb/dvb-usb/az6027.c data[j] = msg[i].buf[j + 2]; j 1018 drivers/media/usb/dvb-usb/az6027.c for (j = 0; j < len; j++) j 1019 drivers/media/usb/dvb-usb/az6027.c msg[i].buf[j] = data[j + 5]; j 1029 drivers/media/usb/dvb-usb/az6027.c for (j = 0; j < len; j++) j 1030 drivers/media/usb/dvb-usb/az6027.c data[j] = msg[i].buf[j + 1]; j 189 drivers/media/usb/dvb-usb/dvb-usb-init.c int i, j; j 196 drivers/media/usb/dvb-usb/dvb-usb-init.c for (j = 0; j < DVB_USB_ID_MAX_NUM && props->devices[i].cold_ids[j] != NULL; j++) { j 197 drivers/media/usb/dvb-usb/dvb-usb-init.c deb_info("check for cold %x %x\n", props->devices[i].cold_ids[j]->idVendor, props->devices[i].cold_ids[j]->idProduct); j 198 drivers/media/usb/dvb-usb/dvb-usb-init.c if (props->devices[i].cold_ids[j]->idVendor == le16_to_cpu(udev->descriptor.idVendor) && j 199 drivers/media/usb/dvb-usb/dvb-usb-init.c props->devices[i].cold_ids[j]->idProduct == le16_to_cpu(udev->descriptor.idProduct)) { j 209 drivers/media/usb/dvb-usb/dvb-usb-init.c for (j = 0; j < DVB_USB_ID_MAX_NUM && props->devices[i].warm_ids[j] != NULL; j++) { j 210 drivers/media/usb/dvb-usb/dvb-usb-init.c deb_info("check for warm %x %x\n", props->devices[i].warm_ids[j]->idVendor, props->devices[i].warm_ids[j]->idProduct); j 211 drivers/media/usb/dvb-usb/dvb-usb-init.c if (props->devices[i].warm_ids[j]->idVendor == le16_to_cpu(udev->descriptor.idVendor) && j 212 drivers/media/usb/dvb-usb/dvb-usb-init.c props->devices[i].warm_ids[j]->idProduct == le16_to_cpu(udev->descriptor.idProduct)) { j 374 drivers/media/usb/dvb-usb/dw2102.c int len, i, j, ret; j 381 drivers/media/usb/dvb-usb/dw2102.c for (j = 0; j < num; j++) { j 382 drivers/media/usb/dvb-usb/dw2102.c switch (msg[j].addr) { j 387 drivers/media/usb/dvb-usb/dw2102.c memcpy(msg[j].buf, ibuf , 2); j 393 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = msg[j].buf[0]; j 403 drivers/media/usb/dvb-usb/dw2102.c if (msg[j].flags == I2C_M_RD) { j 407 drivers/media/usb/dvb-usb/dw2102.c if (2 + msg[j].len > sizeof(ibuf)) { j 409 drivers/media/usb/dvb-usb/dw2102.c msg[j].len); j 415 drivers/media/usb/dvb-usb/dw2102.c (msg[j].addr << 1) + 1, 0, j 416 drivers/media/usb/dvb-usb/dw2102.c ibuf, msg[j].len + 2, j 418 drivers/media/usb/dvb-usb/dw2102.c memcpy(msg[j].buf, ibuf + 2, msg[j].len); j 420 drivers/media/usb/dvb-usb/dw2102.c } else if (((msg[j].buf[0] == 0xb0) && j 421 drivers/media/usb/dvb-usb/dw2102.c (msg[j].addr == 0x68)) || j 422 drivers/media/usb/dvb-usb/dw2102.c ((msg[j].buf[0] == 0xf7) && j 423 drivers/media/usb/dvb-usb/dw2102.c (msg[j].addr == 0x55))) { j 426 drivers/media/usb/dvb-usb/dw2102.c obuf[0] = msg[j].addr << 1; j 427 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = (msg[j].len > 15 ? 17 : msg[j].len); j 428 drivers/media/usb/dvb-usb/dw2102.c obuf[2] = msg[j].buf[0]; j 429 drivers/media/usb/dvb-usb/dw2102.c len = msg[j].len - 1; j 432 drivers/media/usb/dvb-usb/dw2102.c memcpy(obuf + 3, msg[j].buf + i, j 444 drivers/media/usb/dvb-usb/dw2102.c if (2 + msg[j].len > sizeof(obuf)) { j 446 drivers/media/usb/dvb-usb/dw2102.c msg[j].len); j 451 drivers/media/usb/dvb-usb/dw2102.c obuf[0] = msg[j].addr << 1; j 452 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = msg[j].len; j 453 drivers/media/usb/dvb-usb/dw2102.c memcpy(obuf + 2, msg[j].buf, msg[j].len); j 455 drivers/media/usb/dvb-usb/dw2102.c obuf, msg[j].len + 2, j 561 drivers/media/usb/dvb-usb/dw2102.c int len, i, j, ret; j 569 drivers/media/usb/dvb-usb/dw2102.c for (j = 0; j < num; j++) { j 570 drivers/media/usb/dvb-usb/dw2102.c switch (msg[j].addr) { j 575 drivers/media/usb/dvb-usb/dw2102.c memcpy(msg[j].buf, ibuf + 3, 2); j 582 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = msg[j].buf[1];/* off-on */ j 586 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = msg[j].buf[0];/* 13v-18v */ j 595 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = msg[j].buf[0]; j 606 drivers/media/usb/dvb-usb/dw2102.c if (msg[j].flags == I2C_M_RD) { j 610 drivers/media/usb/dvb-usb/dw2102.c if (msg[j].len > sizeof(ibuf)) { j 612 drivers/media/usb/dvb-usb/dw2102.c msg[j].len); j 618 drivers/media/usb/dvb-usb/dw2102.c ibuf, msg[j].len, j 620 drivers/media/usb/dvb-usb/dw2102.c memcpy(msg[j].buf, ibuf, msg[j].len); j 622 drivers/media/usb/dvb-usb/dw2102.c } else if ((msg[j].buf[0] == 0xb0) && j 623 drivers/media/usb/dvb-usb/dw2102.c (msg[j].addr == 0x68)) { j 626 drivers/media/usb/dvb-usb/dw2102.c obuf[0] = (msg[j].len > 16 ? j 627 drivers/media/usb/dvb-usb/dw2102.c 18 : msg[j].len + 1); j 628 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = msg[j].addr << 1; j 629 drivers/media/usb/dvb-usb/dw2102.c obuf[2] = msg[j].buf[0]; j 630 drivers/media/usb/dvb-usb/dw2102.c len = msg[j].len - 1; j 633 drivers/media/usb/dvb-usb/dw2102.c memcpy(obuf + 3, msg[j].buf + i, j 641 drivers/media/usb/dvb-usb/dw2102.c } else if (j < (num - 1)) { j 645 drivers/media/usb/dvb-usb/dw2102.c if (2 + msg[j].len > sizeof(obuf)) { j 647 drivers/media/usb/dvb-usb/dw2102.c msg[j].len); j 652 drivers/media/usb/dvb-usb/dw2102.c obuf[0] = msg[j + 1].len; j 653 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = (msg[j].addr << 1); j 654 drivers/media/usb/dvb-usb/dw2102.c memcpy(obuf + 2, msg[j].buf, msg[j].len); j 658 drivers/media/usb/dvb-usb/dw2102.c obuf, msg[j].len + 2, j 665 drivers/media/usb/dvb-usb/dw2102.c if (2 + msg[j].len > sizeof(obuf)) { j 667 drivers/media/usb/dvb-usb/dw2102.c msg[j].len); j 671 drivers/media/usb/dvb-usb/dw2102.c obuf[0] = msg[j].len + 1; j 672 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = (msg[j].addr << 1); j 673 drivers/media/usb/dvb-usb/dw2102.c memcpy(obuf + 2, msg[j].buf, msg[j].len); j 675 drivers/media/usb/dvb-usb/dw2102.c obuf, msg[j].len + 2, j 252 drivers/media/usb/dvb-usb/m920x.c int i, j; j 277 drivers/media/usb/dvb-usb/m920x.c for (j = 0; j < msg[i].len; j++) { j 280 drivers/media/usb/dvb-usb/m920x.c int stop = (i+1 == num && j+1 == msg[i].len) ? 0x40 : 0x01; j 284 drivers/media/usb/dvb-usb/m920x.c &msg[i].buf[j], 1)) != 0) j 288 drivers/media/usb/dvb-usb/m920x.c for (j = 0; j < msg[i].len; j++) { j 290 drivers/media/usb/dvb-usb/m920x.c int stop = (i+1 == num && j+1 == msg[i].len) ? 0x40 : 0x00; j 292 drivers/media/usb/dvb-usb/m920x.c if ((ret = m920x_write(d->udev, M9206_I2C, msg[i].buf[j], stop)) != 0) j 392 drivers/media/usb/dvb-usb/technisat-usb2.c int i, j; j 395 drivers/media/usb/dvb-usb/technisat-usb2.c for (j = 0; j < 256 * 4; j += 16) { j 396 drivers/media/usb/dvb-usb/technisat-usb2.c reg = j; j 397 drivers/media/usb/dvb-usb/technisat-usb2.c if (technisat_usb2_i2c_access(d->udev, 0x50 + j / 256, ®, 1, b, 16) != 0) j 400 drivers/media/usb/dvb-usb/technisat-usb2.c deb_eeprom("EEPROM: %01x%02x: ", j / 256, reg); j 140 drivers/media/usb/dvb-usb/usb-urb.c int i, j; j 151 drivers/media/usb/dvb-usb/usb-urb.c for (j = 0; j < i; j++) j 152 drivers/media/usb/dvb-usb/usb-urb.c usb_free_urb(stream->urb_list[j]); j 170 drivers/media/usb/dvb-usb/usb-urb.c int i,j; j 184 drivers/media/usb/dvb-usb/usb-urb.c for (j = 0; j < i; j++) j 185 drivers/media/usb/dvb-usb/usb-urb.c usb_free_urb(stream->urb_list[j]); j 202 drivers/media/usb/dvb-usb/usb-urb.c for (j = 0; j < stream->props.u.isoc.framesperurb; j++) { j 203 drivers/media/usb/dvb-usb/usb-urb.c urb->iso_frame_desc[j].offset = frame_offset; j 204 drivers/media/usb/dvb-usb/usb-urb.c urb->iso_frame_desc[j].length = stream->props.u.isoc.framesize; j 860 drivers/media/usb/em28xx/em28xx-audio.c int j, k; j 890 drivers/media/usb/em28xx/em28xx-audio.c for (j = k = 0; j < npackets; j++, k += ep_size) { j 891 drivers/media/usb/em28xx/em28xx-audio.c urb->iso_frame_desc[j].offset = k; j 892 drivers/media/usb/em28xx/em28xx-audio.c urb->iso_frame_desc[j].length = ep_size; j 3042 drivers/media/usb/em28xx/em28xx-cards.c int i, j, idx; j 3214 drivers/media/usb/em28xx/em28xx-cards.c for (j = 0; j < idx; j++) { j 3215 drivers/media/usb/em28xx/em28xx-cards.c if (INPUT(i)->amux == dev->amux_map[j]) { j 892 drivers/media/usb/em28xx/em28xx-core.c int j, k; j 988 drivers/media/usb/em28xx/em28xx-core.c for (j = 0; j < usb_bufs->num_packets; j++) { j 989 drivers/media/usb/em28xx/em28xx-core.c urb->iso_frame_desc[j].offset = k; j 990 drivers/media/usb/em28xx/em28xx-core.c urb->iso_frame_desc[j].length = j 511 drivers/media/usb/em28xx/em28xx-input.c u8 i, j; j 523 drivers/media/usb/em28xx/em28xx-input.c j = 0; j 524 drivers/media/usb/em28xx/em28xx-input.c while (dev->board.buttons[j].role >= 0 && j 525 drivers/media/usb/em28xx/em28xx-input.c dev->board.buttons[j].role < EM28XX_NUM_BUTTON_ROLES) { j 528 drivers/media/usb/em28xx/em28xx-input.c button = &dev->board.buttons[j]; j 532 drivers/media/usb/em28xx/em28xx-input.c j++; j 550 drivers/media/usb/em28xx/em28xx-input.c j++; j 575 drivers/media/usb/em28xx/em28xx-input.c j++; j 623 drivers/media/usb/em28xx/em28xx-input.c u8 i = 0, j = 0; j 633 drivers/media/usb/em28xx/em28xx-input.c for (j = 0; j < dev->num_button_polling_addresses; j++) { j 634 drivers/media/usb/em28xx/em28xx-input.c if (button->reg_r == dev->button_polling_addresses[j]) { j 1663 drivers/media/usb/em28xx/em28xx-video.c int j; j 1685 drivers/media/usb/em28xx/em28xx-video.c for (j = 0; j < MAX_EM28XX_INPUT; j++) j 1686 drivers/media/usb/em28xx/em28xx-video.c if (dev->amux_map[j] != EM28XX_AMUX_UNUSED) j 1687 drivers/media/usb/em28xx/em28xx-video.c i->audioset |= 1 << j; j 419 drivers/media/usb/go7007/go7007-fw.c int i, j, mb_code, mb_len; j 454 drivers/media/usb/go7007/go7007-fw.c j = 8 - (CODE_LENGTH(c) % 8); j 455 drivers/media/usb/go7007/go7007-fw.c if (j != 8) j 456 drivers/media/usb/go7007/go7007-fw.c CODE_ADD(c, 0, j); j 474 drivers/media/usb/go7007/go7007-fw.c j = 8 - (CODE_LENGTH(c) % 8); j 475 drivers/media/usb/go7007/go7007-fw.c if (j != 8) j 476 drivers/media/usb/go7007/go7007-fw.c CODE_ADD(c, 0, j); j 495 drivers/media/usb/go7007/go7007-fw.c for (j = (go->width >> 4) - 2; j >= 33; j -= 33) j 497 drivers/media/usb/go7007/go7007-fw.c CODE_ADD(c, addrinctab[j][0], addrinctab[j][1]); j 511 drivers/media/usb/go7007/go7007-fw.c j = 8 - (CODE_LENGTH(c) % 8); j 512 drivers/media/usb/go7007/go7007-fw.c if (j != 8) j 513 drivers/media/usb/go7007/go7007-fw.c CODE_ADD(c, 0, j); j 562 drivers/media/usb/gspca/cpia1.c u8 i, u8 j, u8 k, u8 l) j 579 drivers/media/usb/gspca/cpia1.c gspca_dev->usb_buf[5] = j; j 580 drivers/media/usb/gspca/gspca.c int i, j, nbalt, psize, found; j 593 drivers/media/usb/gspca/gspca.c for (j = 0; j < nbalt; j++) { j 594 drivers/media/usb/gspca/gspca.c ep = alt_xfer(&intf->altsetting[j], j 600 drivers/media/usb/gspca/gspca.c pr_err("alt %d iso endp with 0 interval\n", j); j 614 drivers/media/usb/gspca/gspca.c ep_tb->alt = j; j 1002 drivers/media/usb/gspca/gspca.c int i, j, index; j 1009 drivers/media/usb/gspca/gspca.c j = 0; j 1011 drivers/media/usb/gspca/gspca.c if (fmt_tb[j] == fmt_tb[index]) j 1013 drivers/media/usb/gspca/gspca.c j++; j 1015 drivers/media/usb/gspca/gspca.c if (j == index) { j 213 drivers/media/usb/gspca/se401.c int i, j, n; j 263 drivers/media/usb/gspca/se401.c for (j = 0; j < n; j++) { j 264 drivers/media/usb/gspca/se401.c if (widths[j] / 2 == widths[i] && j 265 drivers/media/usb/gspca/se401.c heights[j] / 2 == heights[i]) { j 272 drivers/media/usb/gspca/se401.c for (j = 0; j < n; j++) { j 273 drivers/media/usb/gspca/se401.c if (widths[j] / 4 == widths[i] && j 274 drivers/media/usb/gspca/se401.c heights[j] / 4 == heights[i]) { j 1360 drivers/media/usb/gspca/sonixj.c int i, j; j 1380 drivers/media/usb/gspca/sonixj.c for (j = 0; j < 3; j++) j 1381 drivers/media/usb/gspca/sonixj.c i2c_w8(gspca_dev, probe_tb[i][j]); j 102 drivers/media/usb/gspca/stv06xx/stv06xx.c int err, i, j; j 112 drivers/media/usb/gspca/stv06xx/stv06xx.c for (j = 0; j < I2C_MAX_BYTES && i < len; j++, i++) { j 113 drivers/media/usb/gspca/stv06xx/stv06xx.c buf[j] = data[2*i]; j 114 drivers/media/usb/gspca/stv06xx/stv06xx.c buf[0x10 + j] = data[2*i+1]; j 119 drivers/media/usb/gspca/stv06xx/stv06xx.c buf[0x21] = j - 1; /* Number of commands to send - 1 */ j 133 drivers/media/usb/gspca/stv06xx/stv06xx.c int err, i, j; j 144 drivers/media/usb/gspca/stv06xx/stv06xx.c for (j = 0; j < I2C_MAX_WORDS && i < len; j++, i++) { j 145 drivers/media/usb/gspca/stv06xx/stv06xx.c buf[j] = data[2*i]; j 146 drivers/media/usb/gspca/stv06xx/stv06xx.c buf[0x10 + j * 2] = data[2*i+1]; j 147 drivers/media/usb/gspca/stv06xx/stv06xx.c buf[0x10 + j * 2 + 1] = data[2*i+1] >> 8; j 152 drivers/media/usb/gspca/stv06xx/stv06xx.c buf[0x21] = j - 1; /* Number of commands to send - 1 */ j 3090 drivers/media/usb/gspca/vc032x.c int j; j 3093 drivers/media/usb/gspca/vc032x.c for (j = 0; j < tabsize; j++) j 3094 drivers/media/usb/gspca/vc032x.c reg_w(gspca_dev, 0xa0, tab[j], ad++); j 156 drivers/media/usb/gspca/w996Xcf.c int i, j; j 160 drivers/media/usb/gspca/w996Xcf.c for (i = 0, j = 0; i < 32; i++, j += 2) { j 161 drivers/media/usb/gspca/w996Xcf.c a = Y_QUANTABLE[j] | ((unsigned)(Y_QUANTABLE[j + 1]) << 8); j 162 drivers/media/usb/gspca/w996Xcf.c b = UV_QUANTABLE[j] | ((unsigned)(UV_QUANTABLE[j + 1]) << 8); j 668 drivers/media/usb/hackrf/hackrf.c int i, j; j 685 drivers/media/usb/hackrf/hackrf.c for (j = 0; j < i; j++) j 686 drivers/media/usb/hackrf/hackrf.c usb_free_urb(dev->urb_list[j]); j 245 drivers/media/usb/msi2500/msi2500.c unsigned int i, j, transactions, dst_len = 0; j 276 drivers/media/usb/msi2500/msi2500.c for (j = 0; j < 1008; j++) j 292 drivers/media/usb/msi2500/msi2500.c for (j = 0; j < 1008; j += 2) { j 482 drivers/media/usb/msi2500/msi2500.c int i, j, ret; j 520 drivers/media/usb/msi2500/msi2500.c for (j = 0; j < ISO_FRAMES_PER_DESC; j++) { j 521 drivers/media/usb/msi2500/msi2500.c urb->iso_frame_desc[j].offset = j * ISO_MAX_FRAME_SIZE; j 522 drivers/media/usb/msi2500/msi2500.c urb->iso_frame_desc[j].length = ISO_MAX_FRAME_SIZE; j 57 drivers/media/usb/pwc/pwc-dec23.c int i, j; j 61 drivers/media/usb/pwc/pwc-dec23.c for (j = 0; j < 12; j++) { j 62 drivers/media/usb/pwc/pwc-dec23.c pdec->table_subblock[i][j] = temp_values[j]; j 63 drivers/media/usb/pwc/pwc-dec23.c temp_values[j] += values_derivated[j]; j 92 drivers/media/usb/pwc/pwc-dec23.c int compression_mode, j, k, bit, pw; j 102 drivers/media/usb/pwc/pwc-dec23.c for (j = 0; j < 8; j++, r++, p0 += 128) { j 122 drivers/media/usb/pwc/pwc-dec23.c *p8++ = j - bit; j 392 drivers/media/usb/pwc/pwc-if.c int i, j, ret; j 468 drivers/media/usb/pwc/pwc-if.c for (j = 0; j < ISO_FRAMES_PER_DESC; j++) { j 469 drivers/media/usb/pwc/pwc-if.c urb->iso_frame_desc[j].offset = j * ISO_MAX_FRAME_SIZE; j 470 drivers/media/usb/pwc/pwc-if.c urb->iso_frame_desc[j].length = pdev->vmax_packet_size; j 1066 drivers/media/usb/s2255/s2255drv.c int j; j 1072 drivers/media/usb/s2255/s2255drv.c for (j = 0; j < SYS_FRAMES; j++) { j 1073 drivers/media/usb/s2255/s2255drv.c vc->buffer.frame[j].ulState = S2255_READ_IDLE; j 1074 drivers/media/usb/s2255/s2255drv.c vc->buffer.frame[j].cur_size = 0; j 1972 drivers/media/usb/s2255/s2255drv.c int j; j 1996 drivers/media/usb/s2255/s2255drv.c for (j = 0; j < MAX_CHANNELS; j++) { j 1997 drivers/media/usb/s2255/s2255drv.c struct s2255_vc *vc = &dev->vc[j]; j 1999 drivers/media/usb/s2255/s2255drv.c if (dev->pid == 0x2257 && j > 1) j 2119 drivers/media/usb/s2255/s2255drv.c int j; j 2128 drivers/media/usb/s2255/s2255drv.c for (j = 0; j < SYS_FRAMES; j++) { j 2129 drivers/media/usb/s2255/s2255drv.c vc->buffer.frame[j].ulState = 0; j 2130 drivers/media/usb/s2255/s2255drv.c vc->buffer.frame[j].cur_size = 0; j 414 drivers/media/usb/stk1160/stk1160-video.c int i, j, k, sb_size, max_packets, num_bufs; j 490 drivers/media/usb/stk1160/stk1160-video.c for (j = 0; j < max_packets; j++) { j 491 drivers/media/usb/stk1160/stk1160-video.c urb->iso_frame_desc[j].offset = k; j 492 drivers/media/usb/stk1160/stk1160-video.c urb->iso_frame_desc[j].length = j 428 drivers/media/usb/stkwebcam/stk-webcam.c int i, j; j 476 drivers/media/usb/stkwebcam/stk-webcam.c for (j = 0; j < ISO_FRAMES_PER_DESC; j++) { j 477 drivers/media/usb/stkwebcam/stk-webcam.c urb->iso_frame_desc[j].offset = j * ISO_MAX_FRAME_SIZE; j 478 drivers/media/usb/stkwebcam/stk-webcam.c urb->iso_frame_desc[j].length = ISO_MAX_FRAME_SIZE; j 552 drivers/media/usb/tm6000/tm6000-video.c int i, j, sb_size, pipe, size, max_packets; j 633 drivers/media/usb/tm6000/tm6000-video.c for (j = 0; j < max_packets; j++) { j 634 drivers/media/usb/tm6000/tm6000-video.c urb->iso_frame_desc[j].offset = size * j; j 635 drivers/media/usb/tm6000/tm6000-video.c urb->iso_frame_desc[j].length = size; j 830 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c int i, j, err, buffer_offset = 0; j 857 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c for (j = 0; j < FRAMES_PER_ISO_BUF; j++) { j 858 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c urb->iso_frame_desc[j].offset = frame_offset; j 859 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c urb->iso_frame_desc[j].length = ISO_FRAME_SIZE; j 843 drivers/media/usb/ttusb-dec/ttusb_dec.c int i, j, buffer_offset = 0; j 863 drivers/media/usb/ttusb-dec/ttusb_dec.c for (j = 0; j < FRAMES_PER_ISO_BUF; j++) { j 864 drivers/media/usb/ttusb-dec/ttusb_dec.c urb->iso_frame_desc[j].offset = frame_offset; j 865 drivers/media/usb/ttusb-dec/ttusb_dec.c urb->iso_frame_desc[j].length = ISO_FRAME_SIZE; j 1308 drivers/media/usb/ttusb-dec/ttusb_dec.c int i, j, actual_len, result, size, trans_count; j 1373 drivers/media/usb/ttusb-dec/ttusb_dec.c j = 0; j 1386 drivers/media/usb/ttusb-dec/ttusb_dec.c b[j + 0] = 0xaa; j 1387 drivers/media/usb/ttusb-dec/ttusb_dec.c b[j + 1] = trans_count++; j 1388 drivers/media/usb/ttusb-dec/ttusb_dec.c b[j + 2] = 0xf0; j 1389 drivers/media/usb/ttusb-dec/ttusb_dec.c b[j + 3] = size; j 1390 drivers/media/usb/ttusb-dec/ttusb_dec.c memcpy(&b[j + 4], &firmware[i], size); j 1392 drivers/media/usb/ttusb-dec/ttusb_dec.c j += COMMAND_PACKET_SIZE + 4; j 1394 drivers/media/usb/ttusb-dec/ttusb_dec.c if (j >= ARM_PACKET_SIZE) { j 1398 drivers/media/usb/ttusb-dec/ttusb_dec.c j = 0; j 1401 drivers/media/usb/ttusb-dec/ttusb_dec.c j - COMMAND_PACKET_SIZE + size, j 2283 drivers/media/usb/usbvision/usbvision-core.c int j, k; j 2308 drivers/media/usb/usbvision/usbvision-core.c for (j = k = 0; j < USBVISION_URB_FRAMES; j++, j 2310 drivers/media/usb/usbvision/usbvision-core.c urb->iso_frame_desc[j].offset = k; j 2311 drivers/media/usb/usbvision/usbvision-core.c urb->iso_frame_desc[j].length = j 1361 drivers/media/usb/uvc/uvc_ctrl.c unsigned int j; j 1370 drivers/media/usb/uvc/uvc_ctrl.c for (j = 0; j < ARRAY_SIZE(mapping->slave_ids); ++j) { j 1371 drivers/media/usb/uvc/uvc_ctrl.c u32 slave_id = mapping->slave_ids[j]; j 1074 drivers/media/usb/zr364xx/zr364xx.c int j; j 1080 drivers/media/usb/zr364xx/zr364xx.c for (j = 0; j < FRAMES; j++) { j 1081 drivers/media/usb/zr364xx/zr364xx.c cam->buffer.frame[j].ulState = ZR364XX_READ_IDLE; j 1082 drivers/media/usb/zr364xx/zr364xx.c cam->buffer.frame[j].cur_size = 0; j 1097 drivers/media/usb/zr364xx/zr364xx.c int i, j; j 1114 drivers/media/usb/zr364xx/zr364xx.c for (j = 0; j < FRAMES; j++) { j 1115 drivers/media/usb/zr364xx/zr364xx.c cam->buffer.frame[j].ulState = ZR364XX_READ_IDLE; j 1116 drivers/media/usb/zr364xx/zr364xx.c cam->buffer.frame[j].cur_size = 0; j 372 drivers/media/v4l2-core/v4l2-async.c int j = 0; j 378 drivers/media/v4l2-core/v4l2-async.c if (this_index >= 0 && j++ >= this_index) j 3427 drivers/media/v4l2-core/v4l2-ctrls.c int i, j; j 3474 drivers/media/v4l2-core/v4l2-ctrls.c for (j = 0; j < master->ncontrols; j++) j 3475 drivers/media/v4l2-core/v4l2-ctrls.c cur_to_new(master->cluster[j]); j 3792 drivers/media/v4l2-core/v4l2-ctrls.c unsigned i, j; j 3838 drivers/media/v4l2-core/v4l2-ctrls.c for (j = 0; j < master->ncontrols; j++) j 3839 drivers/media/v4l2-core/v4l2-ctrls.c if (master->cluster[j]) j 3840 drivers/media/v4l2-core/v4l2-ctrls.c master->cluster[j]->is_new = 0; j 3882 drivers/media/v4l2-core/v4l2-ctrls.c for (j = 0; j < master->ncontrols; j++) { j 3884 drivers/media/v4l2-core/v4l2-ctrls.c find_ref(hdl, master->cluster[j]->id); j 130 drivers/media/v4l2-core/v4l2-ioctl.c unsigned int index = vs->index, i, j = 0; j 142 drivers/media/v4l2-core/v4l2-ioctl.c while ((id & standards[j].std) != standards[j].std) j 143 drivers/media/v4l2-core/v4l2-ioctl.c j++; j 144 drivers/media/v4l2-core/v4l2-ioctl.c curr_id = standards[j].std; j 145 drivers/media/v4l2-core/v4l2-ioctl.c descr = standards[j].descr; j 146 drivers/media/v4l2-core/v4l2-ioctl.c j++; j 836 drivers/message/fusion/mptsas.c int i, j; j 903 drivers/message/fusion/mptsas.c for (j = i + 1 ; j < port_info->num_phys ; j++, j 913 drivers/message/fusion/mptsas.c ioc->name, j, (unsigned long long) j 2127 drivers/message/fusion/mptscsih.c int i, j; j 2163 drivers/message/fusion/mptscsih.c for (j = 0; j < num_paths; j++) { j 2164 drivers/message/fusion/mptscsih.c if ((phys_disk->Path[j].Flags & j 2167 drivers/message/fusion/mptscsih.c if ((phys_disk->Path[j].Flags & j 2170 drivers/message/fusion/mptscsih.c if ((id == phys_disk->Path[j].PhysDiskID) && j 2171 drivers/message/fusion/mptscsih.c (channel == phys_disk->Path[j].PhysDiskBus)) { j 2205 drivers/message/fusion/mptscsih.c int i, j; j 2241 drivers/message/fusion/mptscsih.c for (j = 0; j < num_paths; j++) { j 2242 drivers/message/fusion/mptscsih.c if ((phys_disk->Path[j].Flags & j 2245 drivers/message/fusion/mptscsih.c if ((phys_disk->Path[j].Flags & j 2248 drivers/message/fusion/mptscsih.c if ((id == phys_disk->Path[j].PhysDiskID) && j 2249 drivers/message/fusion/mptscsih.c (channel == phys_disk->Path[j].PhysDiskBus)) { j 340 drivers/mfd/aat2870-core.c int i, j; j 385 drivers/mfd/aat2870-core.c for (j = 0; j < ARRAY_SIZE(aat2870_devs); j++) { j 386 drivers/mfd/aat2870-core.c if ((pdata->subdevs[i].id == aat2870_devs[j].id) && j 388 drivers/mfd/aat2870-core.c aat2870_devs[j].name)) { j 389 drivers/mfd/aat2870-core.c aat2870_devs[j].platform_data = j 684 drivers/mfd/dln2.c int i, j; j 699 drivers/mfd/dln2.c for (j = 0; j < DLN2_MAX_RX_SLOTS; j++) { j 700 drivers/mfd/dln2.c struct dln2_rx_context *rxc = &rxs->slots[j]; j 735 drivers/mfd/dln2.c int i, j; j 762 drivers/mfd/dln2.c for (j = 0; j < DLN2_MAX_RX_SLOTS; j++) j 763 drivers/mfd/dln2.c init_completion(&dln2->mod_rx_slots[i].slots[j].done); j 192 drivers/mfd/pcf50633-core.c int i, j, ret; j 270 drivers/mfd/pcf50633-core.c for (j = 0; j < i; j++) j 271 drivers/mfd/pcf50633-core.c platform_device_put(pcf->regulator_pdev[j]); j 112 drivers/mfd/pcf50633-irq.c int ret, i, j; j 212 drivers/mfd/pcf50633-irq.c for (j = 0; j < 8 ; j++) j 213 drivers/mfd/pcf50633-irq.c if (pcf_int[i] & (1 << j)) j 214 drivers/mfd/pcf50633-irq.c pcf50633_irq_call_handler(pcf, (i * 8) + j); j 558 drivers/mfd/sta2x11-mfd.c int i, j; j 560 drivers/mfd/sta2x11-mfd.c for (j = 0; j < sd->bars[i].ncells; j++) { j 561 drivers/mfd/sta2x11-mfd.c sd->bars[i].cells[j].pdata_size = sizeof(pdev); j 562 drivers/mfd/sta2x11-mfd.c sd->bars[i].cells[j].platform_data = &pdev; j 1308 drivers/mfd/stmpe.c int i, j; j 1316 drivers/mfd/stmpe.c for (j = 0; j < block->cell->num_resources; j++) { j 1318 drivers/mfd/stmpe.c (struct resource *) &block->cell->resources[j]; j 1322 drivers/mfd/stmpe.c res->start = res->end = block->irq + j; j 366 drivers/mfd/twl4030-irq.c int j; j 382 drivers/mfd/twl4030-irq.c for (j = 0; j < 2; j++) { j 68 drivers/misc/altera-stapl/altera-comp.c u32 i, j, data_length = 0L; j 99 drivers/misc/altera-stapl/altera-comp.c for (j = 0; j < DATA_BLOB_LENGTH; ++j) { j 118 drivers/misc/altera-stapl/altera-comp.c for (j = 0; j < length; ++j) { j 122 drivers/misc/altera-stapl/altera-jtag.c u32 j; j 136 drivers/misc/altera-stapl/altera-jtag.c j = i + start_index; j 141 drivers/misc/altera-stapl/altera-jtag.c if (preamble_data[j >> 3] & (1 << (j & 7))) j 160 drivers/misc/altera-stapl/altera-jtag.c u32 j; j 175 drivers/misc/altera-stapl/altera-jtag.c j = i + start_index; j 179 drivers/misc/altera-stapl/altera-jtag.c if (preamble_data[j >> 3] & (1 << (j & 7))) j 198 drivers/misc/altera-stapl/altera-jtag.c u32 j; j 214 drivers/misc/altera-stapl/altera-jtag.c j = i + start_index; j 219 drivers/misc/altera-stapl/altera-jtag.c if (postamble_data[j >> 3] & (1 << (j & 7))) j 238 drivers/misc/altera-stapl/altera-jtag.c u32 j; j 255 drivers/misc/altera-stapl/altera-jtag.c j = i + start_index; j 260 drivers/misc/altera-stapl/altera-jtag.c if (postamble_data[j >> 3] & (1 << (j & 7))) j 403 drivers/misc/altera-stapl/altera-jtag.c u32 i, j, k; j 413 drivers/misc/altera-stapl/altera-jtag.c j = start_index; j 415 drivers/misc/altera-stapl/altera-jtag.c for (; i < k; ++i, ++j) { j 416 drivers/misc/altera-stapl/altera-jtag.c if (target_data[j >> 3L] & (1L << (j & 7L))) j 423 drivers/misc/altera-stapl/altera-jtag.c j = 0L; j 425 drivers/misc/altera-stapl/altera-jtag.c for (; i < k; ++i, ++j) { j 426 drivers/misc/altera-stapl/altera-jtag.c if (postamble_data[j >> 3L] & (1L << (j & 7L))) j 569 drivers/misc/altera-stapl/altera-jtag.c u32 j; j 572 drivers/misc/altera-stapl/altera-jtag.c j = preamble_count; j 574 drivers/misc/altera-stapl/altera-jtag.c for (i = start_index; i < k; ++i, ++j) { j 575 drivers/misc/altera-stapl/altera-jtag.c if (buffer[j >> 3] & (1 << (j & 7))) j 142 drivers/misc/altera-stapl/altera.c u32 size, line, lines, linebits, value, j, k; j 162 drivers/misc/altera-stapl/altera.c j = size - 1; j 170 drivers/misc/altera-stapl/altera.c sprintf(&string[j], "%1x", value); j 172 drivers/misc/altera-stapl/altera.c --j; j 176 drivers/misc/altera-stapl/altera.c sprintf(&string[j], "%1x", value); j 184 drivers/misc/altera-stapl/altera.c j = size - 1; j 191 drivers/misc/altera-stapl/altera.c sprintf(&string[j], "%1x", value); j 193 drivers/misc/altera-stapl/altera.c --j; j 197 drivers/misc/altera-stapl/altera.c sprintf(&string[j], "%1x", value); j 254 drivers/misc/altera-stapl/altera.c u32 j; j 406 drivers/misc/altera-stapl/altera.c for (j = 0; j < size; ++j) j 407 drivers/misc/altera-stapl/altera.c ((u8 *)(vars[i]))[j] = 0; j 567 drivers/misc/cardreader/rtsx_pcr.c int i, j; j 579 drivers/misc/cardreader/rtsx_pcr.c for (j = 0; j < 256; j++) j 593 drivers/misc/cardreader/rtsx_pcr.c for (j = 0; j < buf_len % 256; j++) j 610 drivers/misc/cardreader/rtsx_pcr.c int i, j; j 622 drivers/misc/cardreader/rtsx_pcr.c for (j = 0; j < 256; j++) { j 636 drivers/misc/cardreader/rtsx_pcr.c for (j = 0; j < buf_len % 256; j++) { j 33 drivers/misc/cb710/debug.c unsigned i, j; \ j 39 drivers/misc/cb710/debug.c for (j = 0; j < 0x10/(t/8); ++j) { \ j 40 drivers/misc/cb710/debug.c if (!allow_reg_read(i, j, t)) \ j 42 drivers/misc/cb710/debug.c reg[j] = ioread##t(iobase \ j 43 drivers/misc/cb710/debug.c + (i << 4) + (j * (t/8))); \ j 61 drivers/misc/cb710/debug.c unsigned i, j; \ j 67 drivers/misc/cb710/debug.c for (j = 0; j < 0x10/(t/8); ++j) { \ j 69 drivers/misc/cb710/debug.c if (j == 8/(t/8)) \ j 71 drivers/misc/cb710/debug.c if (allow_reg_read(i, j, t)) \ j 72 drivers/misc/cb710/debug.c p += sprintf(p, format, reg[j]); \ j 293 drivers/misc/cxl/irq.c int rc, r, i, j = 1; j 338 drivers/misc/cxl/irq.c ctx->pe, j); j 345 drivers/misc/cxl/irq.c j++; j 547 drivers/misc/cxl/sysfs.c u64 i, j, val, rc; j 553 drivers/misc/cxl/sysfs.c for (j = off & 0x7; j < 8 && i < count; i++, j++, off++) j 554 drivers/misc/cxl/sysfs.c buf[i] = (val >> (j * 8)) & 0xff; j 57 drivers/misc/eeprom/max6875.c int i, j, addr; j 92 drivers/misc/eeprom/max6875.c j = i2c_smbus_read_byte(client); j 93 drivers/misc/eeprom/max6875.c if (j < 0) { j 96 drivers/misc/eeprom/max6875.c buf[i] = j; j 115 drivers/misc/genwqe/card_base.c unsigned int i = 0, j; j 150 drivers/misc/genwqe/card_base.c for (j = 0; j < GENWQE_MAX_VFS; j++) j 151 drivers/misc/genwqe/card_base.c cd->vf_jobtimeout_msec[j] = GENWQE_VF_JOBTIMEOUT_MSEC; j 630 drivers/misc/genwqe/card_base.c int j, iterations = 0; j 681 drivers/misc/genwqe/card_base.c for (j = 0, mask = 1ULL; j < 64; j++, mask <<= 1) { j 687 drivers/misc/genwqe/card_base.c sfir_addr = (uid << 24) + 0x100 + 0x08 * j; j 695 drivers/misc/genwqe/card_base.c sfec_addr = (uid << 24) + 0x300 + 0x08 * j; j 718 drivers/misc/genwqe/card_base.c sfir_addr = (uid << 24) + 0x100 + 0x08 * j; j 272 drivers/misc/genwqe/card_sysfs.c unsigned int j; j 280 drivers/misc/genwqe/card_sysfs.c for (j = 0; genwqe_normal_attributes[j] != NULL; j++) j 281 drivers/misc/genwqe/card_sysfs.c if (genwqe_normal_attributes[j] == attr) j 137 drivers/misc/genwqe/card_utils.c int i, j; j 141 drivers/misc/genwqe/card_utils.c for (i = 0, j = 0; j < min(len, 4); j++) { j 142 drivers/misc/genwqe/card_utils.c char ch = (char)((app_id >> (24 - j*8)) & 0xff); j 164 drivers/misc/genwqe/card_utils.c int i, j; j 169 drivers/misc/genwqe/card_utils.c for (j = 0; j < 8; j++) { j 374 drivers/misc/genwqe/card_utils.c int i = 0, j = 0, p; j 390 drivers/misc/genwqe/card_utils.c j = 0; j 391 drivers/misc/genwqe/card_utils.c s[j].target_addr = cpu_to_be64(sgl->sgl_dma_addr + dma_offs); j 392 drivers/misc/genwqe/card_utils.c s[j].len = cpu_to_be32(128); j 393 drivers/misc/genwqe/card_utils.c s[j].flags = cpu_to_be32(SG_CHAINED); j 394 drivers/misc/genwqe/card_utils.c j++; j 396 drivers/misc/genwqe/card_utils.c while (j < 8) { j 432 drivers/misc/genwqe/card_utils.c s[j].target_addr = cpu_to_be64(daddr); j 433 drivers/misc/genwqe/card_utils.c s[j].len = cpu_to_be32(size_to_map); j 434 drivers/misc/genwqe/card_utils.c s[j].flags = cpu_to_be32(SG_DATA); j 436 drivers/misc/genwqe/card_utils.c last_s = &s[j]; j 437 drivers/misc/genwqe/card_utils.c j++; j 447 drivers/misc/genwqe/card_utils.c if (j == 1) { /* combining happened on last entry! */ j 449 drivers/misc/genwqe/card_utils.c j = 7; /* shift all elements */ j 452 drivers/misc/genwqe/card_utils.c for (i = 0; i < j; i++) /* move elements 1 up */ j 791 drivers/misc/genwqe/card_utils.c unsigned int i, j, idx = 0; j 820 drivers/misc/genwqe/card_utils.c for (j = 0; j < 64; j++) { j 822 drivers/misc/genwqe/card_utils.c if (!all && (!(ufir & (1ull << j)))) j 825 drivers/misc/genwqe/card_utils.c sfir_addr = (i << 24) | (0x100 + 8 * j); j 829 drivers/misc/genwqe/card_utils.c sfec_addr = (i << 24) | (0x300 + 8 * j); j 235 drivers/misc/habanalabs/debugfs.c u64 j; j 286 drivers/misc/habanalabs/debugfs.c for (j = 0 ; j < phys_pg_pack->npages ; j++) { j 288 drivers/misc/habanalabs/debugfs.c phys_pg_pack->pages[j]); j 26 drivers/misc/habanalabs/hwmon.c int rc, i, j; j 83 drivers/misc/habanalabs/hwmon.c for (i = 0, j = 0 ; i < HWMON_NR_SENSOR_TYPES ; i++) { j 87 drivers/misc/habanalabs/hwmon.c channels_info[j]->type = i; j 88 drivers/misc/habanalabs/hwmon.c channels_info[j]->config = sensors_by_type[i]; j 89 drivers/misc/habanalabs/hwmon.c j++; j 655 drivers/misc/habanalabs/memory.c int rc, i, j; j 701 drivers/misc/habanalabs/memory.c j = 0; j 713 drivers/misc/habanalabs/memory.c phys_pg_pack->pages[j++] = dma_addr; j 242 drivers/misc/habanalabs/mmu.c int rc, i, j, hop3_allocated = 0; j 312 drivers/misc/habanalabs/mmu.c for (j = 0 ; j < PTE_ENTRIES_IN_HOP ; j++) { j 342 drivers/misc/habanalabs/mmu.c int i, j; j 361 drivers/misc/habanalabs/mmu.c for (j = 0 ; j < PTE_ENTRIES_IN_HOP ; j++) { j 2352 drivers/misc/ibmvmc.c int rc, i, j; j 2370 drivers/misc/ibmvmc.c for (j = 0; j < MAX_BUF_POOL_SIZE; j++) j 2371 drivers/misc/ibmvmc.c hmcs[i].queue_outbound_msgs[j] = VMC_INVALID_BUFFER_ID; j 702 drivers/misc/mei/hw-txe.c unsigned long i, j; j 732 drivers/misc/mei/hw-txe.c for (j = 0; j < data_len / MEI_SLOT_SIZE; j++) j 733 drivers/misc/mei/hw-txe.c mei_txe_input_payload_write(dev, i + j, reg_buf[j]); j 740 drivers/misc/mei/hw-txe.c mei_txe_input_payload_write(dev, i + j, reg); j 194 drivers/misc/mic/host/mic_boot.c int i, j, ret; j 209 drivers/misc/mic/host/mic_boot.c for_each_sg(sg, s, i, j) { j 62 drivers/misc/mic/host/mic_debugfs.c int i, j; j 83 drivers/misc/mic/host/mic_debugfs.c for (j = (MIC_NUM_OFFSETS - 1); j >= 0; j--) j 84 drivers/misc/mic/host/mic_debugfs.c seq_printf(s, "%4d ", j); j 89 drivers/misc/mic/host/mic_debugfs.c for (j = (MIC_NUM_OFFSETS - 1); j >= 0; j--) j 92 drivers/misc/mic/host/mic_debugfs.c BIT(j)) ? 1 : 0); j 42 drivers/misc/mic/scif/scif_debugfs.c int j; j 55 drivers/misc/mic/scif/scif_debugfs.c for (j = 0; j < window->nr_contig_chunks; j++) j 56 drivers/misc/mic/scif/scif_debugfs.c seq_printf(s, "page[%d] dma_addr 0x%llx num_pages 0x%llx\n", j, j 57 drivers/misc/mic/scif/scif_debugfs.c window->dma_addr[j], window->num_pages[j]); j 60 drivers/misc/mic/scif/scif_debugfs.c for (j = 0; j < window->nr_pages; j++) j 62 drivers/misc/mic/scif/scif_debugfs.c j, pin->pages[j], j 63 drivers/misc/mic/scif/scif_debugfs.c page_address(pin->pages[j])); j 66 drivers/misc/mic/scif/scif_debugfs.c for_each_sg(window->st->sgl, sg, window->st->nents, j) j 68 drivers/misc/mic/scif/scif_debugfs.c j, sg_dma_address(sg), sg_dma_len(sg)); j 529 drivers/misc/mic/scif/scif_nodeqp.c int i, j; j 539 drivers/misc/mic/scif/scif_nodeqp.c for (j = 1; j <= scif_info.maxid; j++) { j 542 drivers/misc/mic/scif/scif_nodeqp.c if (i == j) j 544 drivers/misc/mic/scif/scif_nodeqp.c scif_node_connect(scifdev, j); j 112 drivers/misc/mic/scif/scif_rma.c int j; j 116 drivers/misc/mic/scif/scif_rma.c for (j = 0; j < pin->nr_pages; j++) { j 117 drivers/misc/mic/scif/scif_rma.c if (pin->pages[j] && !kernel) { j 119 drivers/misc/mic/scif/scif_rma.c SetPageDirty(pin->pages[j]); j 120 drivers/misc/mic/scif/scif_rma.c put_page(pin->pages[j]); j 227 drivers/misc/mic/scif/scif_rma.c int j; j 239 drivers/misc/mic/scif/scif_rma.c for (j = 0; j < window->nr_contig_chunks; j++) { j 240 drivers/misc/mic/scif/scif_rma.c if (window->dma_addr[j]) { j 241 drivers/misc/mic/scif/scif_rma.c scif_unmap_single(window->dma_addr[j], j 243 drivers/misc/mic/scif/scif_rma.c window->num_pages[j] << j 245 drivers/misc/mic/scif/scif_rma.c window->dma_addr[j] = 0x0; j 305 drivers/misc/mic/scif/scif_rma.c int j; j 322 drivers/misc/mic/scif/scif_rma.c j = atomic_sub_return(1, &pinned_pages->ref_count); j 323 drivers/misc/mic/scif/scif_rma.c if (j < 0) j 326 drivers/misc/mic/scif/scif_rma.c __func__, __LINE__, j); j 332 drivers/misc/mic/scif/scif_rma.c if (!j) j 353 drivers/misc/mic/scif/scif_rma.c int i, j, err = 0; j 392 drivers/misc/mic/scif/scif_rma.c for (i = 0, j = 0; i < nr_pages; i += SCIF_NR_ADDR_IN_PAGE, j++) { j 393 drivers/misc/mic/scif/scif_rma.c err = scif_map_page(&window->dma_addr_lookup.lookup[j], j 400 drivers/misc/mic/scif/scif_rma.c err = scif_map_page(&window->num_pages_lookup.lookup[j], j 424 drivers/misc/mic/scif/scif_rma.c int i, j; j 430 drivers/misc/mic/scif/scif_rma.c for (i = 0, j = 0; i < window->nr_pages; j 431 drivers/misc/mic/scif/scif_rma.c i += SCIF_NR_ADDR_IN_PAGE, j++) { j 432 drivers/misc/mic/scif/scif_rma.c if (lup->lookup && lup->lookup[j]) j 433 drivers/misc/mic/scif/scif_rma.c scif_unmap_single(lup->lookup[j], j 436 drivers/misc/mic/scif/scif_rma.c if (npup->lookup && npup->lookup[j]) j 437 drivers/misc/mic/scif/scif_rma.c scif_unmap_single(npup->lookup[j], j 576 drivers/misc/mic/scif/scif_rma.c int i, j, k, err = 0, nr_contig_pages; j 587 drivers/misc/mic/scif/scif_rma.c for (i = 0, j = 0; i < window->nr_pages; i += nr_contig_pages, j++) { j 599 drivers/misc/mic/scif/scif_rma.c window->num_pages[j] = nr_contig_pages; j 606 drivers/misc/mic/scif/scif_rma.c err = scif_map_single(&window->dma_addr[j], j 614 drivers/misc/mic/scif/scif_rma.c window->dma_addr[j] = page_to_phys(pin->pages[i]); j 772 drivers/misc/mic/scif/scif_rma.c int i = 0, j = 0; j 853 drivers/misc/mic/scif/scif_rma.c tmp = scif_ioremap(dma_phys_lookup[j], j 857 drivers/misc/mic/scif/scif_rma.c tmp1 = scif_ioremap(num_pages_lookup[j], j 907 drivers/misc/mic/scif/scif_rma.c j++; j 1110 drivers/misc/mic/scif/scif_rma.c int j; j 1124 drivers/misc/mic/scif/scif_rma.c for (j = 0; j < window->nr_contig_chunks; j++) { j 1125 drivers/misc/mic/scif/scif_rma.c if (window->num_pages[j]) j 1126 drivers/misc/mic/scif/scif_rma.c window->dma_addr[j] += apt_base; j 24 drivers/misc/mic/vop/vop_debugfs.c int j, k; j 41 drivers/misc/mic/vop/vop_debugfs.c for (j = sizeof(*bootparam); j 42 drivers/misc/mic/vop/vop_debugfs.c j < MIC_DP_SIZE; j += mic_total_desc_size(d)) { j 43 drivers/misc/mic/vop/vop_debugfs.c d = (void *)bootparam + j; j 99 drivers/misc/mic/vop/vop_debugfs.c int i, j; j 131 drivers/misc/mic/vop/vop_debugfs.c for (j = 0; j < num; j++) { j 133 drivers/misc/mic/vop/vop_debugfs.c j, desc->addr, desc->len); j 146 drivers/misc/mic/vop/vop_debugfs.c for (j = 0; j < num; j++) j 148 drivers/misc/mic/vop/vop_debugfs.c j, avail->ring[j]); j 156 drivers/misc/mic/vop/vop_debugfs.c for (j = 0; j < num; j++) j 158 drivers/misc/mic/vop/vop_debugfs.c j, vringh32_to_cpu(vrh, j 159 drivers/misc/mic/vop/vop_debugfs.c used->ring[j].id), j 161 drivers/misc/mic/vop/vop_debugfs.c used->ring[j].len)); j 266 drivers/misc/mic/vop/vop_vringh.c int vr_size, i, j, ret; j 382 drivers/misc/mic/vop/vop_vringh.c for (j = 0; j < i; j++) { j 383 drivers/misc/mic/vop/vop_vringh.c struct vop_vringh *vvr = &vdev->vvr[j]; j 385 drivers/misc/mic/vop/vop_vringh.c dma_unmap_single(&vpdev->dev, le64_to_cpu(vqconfig[j].address), j 256 drivers/misc/pci_endpoint_test.c int j; j 269 drivers/misc/pci_endpoint_test.c for (j = 0; j < size; j += 4) j 270 drivers/misc/pci_endpoint_test.c pci_endpoint_test_bar_writel(test, barno, j, 0xA0A0A0A0); j 272 drivers/misc/pci_endpoint_test.c for (j = 0; j < size; j += 4) { j 273 drivers/misc/pci_endpoint_test.c val = pci_endpoint_test_bar_readl(test, barno, j); j 239 drivers/misc/pti.c int i, j, mask; j 255 drivers/misc/pti.c for (j = 0; j < 8; j++) { j 264 drivers/misc/pti.c mc->channel = ((i & 0xf)<<3) + j; j 34 drivers/misc/qcom-coincell.c int i, j, rc; j 52 drivers/misc/qcom-coincell.c for (j = 0; j < ARRAY_SIZE(qcom_vset_map); j++) j 53 drivers/misc/qcom-coincell.c if (vset == qcom_vset_map[j]) j 56 drivers/misc/qcom-coincell.c if (j >= ARRAY_SIZE(qcom_vset_map)) { j 75 drivers/misc/qcom-coincell.c chgr->base_addr + QCOM_COINCELL_REG_VSET, j); j 1660 drivers/misc/vmw_balloon.c int i, j; j 1697 drivers/misc/vmw_balloon.c for (j = 0; j < VMW_BALLOON_NUM_PAGE_SIZES; j++) j 1700 drivers/misc/vmw_balloon.c vmballoon_page_size_names[j], j 1701 drivers/misc/vmw_balloon.c atomic64_read(&b->stats->page_stat[i][j])); j 371 drivers/mmc/core/host.c const int j = i * 2; j 375 drivers/mmc/core/host.c be32_to_cpu(voltage_ranges[j]), j 376 drivers/mmc/core/host.c be32_to_cpu(voltage_ranges[j + 1])); j 472 drivers/mmc/host/jz4740_mmc.c size_t i, j; j 477 drivers/mmc/host/jz4740_mmc.c j = i / 8; j 479 drivers/mmc/host/jz4740_mmc.c while (j) { j 493 drivers/mmc/host/jz4740_mmc.c --j; j 528 drivers/mmc/host/jz4740_mmc.c size_t i, j; j 534 drivers/mmc/host/jz4740_mmc.c j = i / 32; j 536 drivers/mmc/host/jz4740_mmc.c while (j) { j 551 drivers/mmc/host/jz4740_mmc.c --j; j 614 drivers/mmc/host/mtk-sd.c unsigned int j, dma_len; j 634 drivers/mmc/host/mtk-sd.c for_each_sg(data->sg, sg, data->sg_count, j) { j 639 drivers/mmc/host/mtk-sd.c bd[j].bd_info &= ~BDMA_DESC_BLKPAD; j 640 drivers/mmc/host/mtk-sd.c bd[j].bd_info &= ~BDMA_DESC_DWPAD; j 641 drivers/mmc/host/mtk-sd.c bd[j].ptr = lower_32_bits(dma_address); j 643 drivers/mmc/host/mtk-sd.c bd[j].bd_info &= ~BDMA_DESC_PTR_H4; j 644 drivers/mmc/host/mtk-sd.c bd[j].bd_info |= (upper_32_bits(dma_address) & 0xf) j 649 drivers/mmc/host/mtk-sd.c bd[j].bd_data_len &= ~BDMA_DESC_BUFLEN_EXT; j 650 drivers/mmc/host/mtk-sd.c bd[j].bd_data_len |= (dma_len & BDMA_DESC_BUFLEN_EXT); j 652 drivers/mmc/host/mtk-sd.c bd[j].bd_data_len &= ~BDMA_DESC_BUFLEN; j 653 drivers/mmc/host/mtk-sd.c bd[j].bd_data_len |= (dma_len & BDMA_DESC_BUFLEN); j 656 drivers/mmc/host/mtk-sd.c if (j == data->sg_count - 1) /* the last bd */ j 657 drivers/mmc/host/mtk-sd.c bd[j].bd_info |= BDMA_DESC_EOL; j 659 drivers/mmc/host/mtk-sd.c bd[j].bd_info &= ~BDMA_DESC_EOL; j 662 drivers/mmc/host/mtk-sd.c bd[j].bd_info &= ~BDMA_DESC_CHECKSUM; j 663 drivers/mmc/host/mtk-sd.c bd[j].bd_info |= msdc_dma_calcs((u8 *)(&bd[j]), 16) << 8; j 1790 drivers/mmc/host/mtk-sd.c int i, j; j 1806 drivers/mmc/host/mtk-sd.c for (j = 0; j < 3; j++) { j 1830 drivers/mmc/host/mtk-sd.c for (j = 0; j < 3; j++) { j 1881 drivers/mmc/host/mtk-sd.c int i, j; j 1905 drivers/mmc/host/mtk-sd.c for (j = 0; j < 3; j++) { j 69 drivers/mmc/host/rtsx_pci_sdmmc.c int j; j 73 drivers/mmc/host/rtsx_pci_sdmmc.c for (j = 0; j < n; j++) j 74 drivers/mmc/host/rtsx_pci_sdmmc.c rtsx_pci_read_register(host->pcr, start + i + j, j 75 drivers/mmc/host/rtsx_pci_sdmmc.c data + j); j 1275 drivers/mmc/host/wbsd.c int i, j, k; j 1286 drivers/mmc/host/wbsd.c for (j = 0; j < ARRAY_SIZE(unlock_codes); j++) { j 1290 drivers/mmc/host/wbsd.c host->unlock_code = unlock_codes[j]; j 603 drivers/mtd/chips/cfi_cmdset_0001.c int i,j; j 625 drivers/mtd/chips/cfi_cmdset_0001.c for (j=0; j<cfi->numchips; j++) { j 626 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; j 627 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; j 628 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; j 629 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap = kmalloc(ernum / 8 + 1, GFP_KERNEL); j 630 drivers/mtd/chips/cfi_cmdset_0001.c if (!mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap) j 670 drivers/mtd/chips/cfi_cmdset_0001.c for (j=0; j<cfi->numchips; j++) j 671 drivers/mtd/chips/cfi_cmdset_0001.c kfree(mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap); j 701 drivers/mtd/chips/cfi_cmdset_0001.c int offs, numregions, numparts, partshift, numvirtchips, i, j; j 778 drivers/mtd/chips/cfi_cmdset_0001.c for (j = 0; j < numparts; j++) { j 780 drivers/mtd/chips/cfi_cmdset_0001.c chip->start += j << partshift; j 688 drivers/mtd/chips/cfi_cmdset_0002.c int j = (cfi->cfiq->NumEraseRegions-1)-i; j 691 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->EraseRegionInfo[j]); j 754 drivers/mtd/chips/cfi_cmdset_0002.c int i,j; j 776 drivers/mtd/chips/cfi_cmdset_0002.c for (j=0; j<cfi->numchips; j++) { j 777 drivers/mtd/chips/cfi_cmdset_0002.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; j 778 drivers/mtd/chips/cfi_cmdset_0002.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; j 779 drivers/mtd/chips/cfi_cmdset_0002.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; j 171 drivers/mtd/chips/cfi_cmdset_0020.c int i,j; j 204 drivers/mtd/chips/cfi_cmdset_0020.c for (j=0; j<cfi->numchips; j++) { j 205 drivers/mtd/chips/cfi_cmdset_0020.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; j 206 drivers/mtd/chips/cfi_cmdset_0020.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; j 207 drivers/mtd/chips/cfi_cmdset_0020.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; j 64 drivers/mtd/chips/gen_probe.c int i, j, mapsize; j 149 drivers/mtd/chips/gen_probe.c for (i = 0, j = 0; (j < cfi.numchips) && (i < max_chips); i++) { j 151 drivers/mtd/chips/gen_probe.c struct flchip *pchip = &retcfi->chips[j++]; j 253 drivers/mtd/devices/sst25l.c int i, j, ret, bytes, copied = 0; j 286 drivers/mtd/devices/sst25l.c for (j = 1; j < bytes; j++, copied++) { j 291 drivers/mtd/devices/sst25l.c command[1] = buf[i + j]; j 196 drivers/mtd/ftl.c unsigned blocks, j; j 293 drivers/mtd/ftl.c for (j = 0; j < part->BlocksPerUnit; j++) { j 294 drivers/mtd/ftl.c if (BLOCK_FREE(le32_to_cpu(part->bam_cache[j]))) { j 297 drivers/mtd/ftl.c } else if ((BLOCK_TYPE(le32_to_cpu(part->bam_cache[j])) == BLOCK_DATA) && j 298 drivers/mtd/ftl.c (BLOCK_NUMBER(le32_to_cpu(part->bam_cache[j])) < blocks)) j 299 drivers/mtd/ftl.c part->VirtualBlockMap[BLOCK_NUMBER(le32_to_cpu(part->bam_cache[j]))] = j 300 drivers/mtd/ftl.c (i << header.EraseUnitSize) + (j << header.BlockSize); j 301 drivers/mtd/ftl.c else if (BLOCK_DELETED(le32_to_cpu(part->bam_cache[j]))) j 42 drivers/mtd/lpddr/lpddr_cmds.c int i, j; j 80 drivers/mtd/lpddr/lpddr_cmds.c for (j = 0; j < lpddr->qinfo->HWPartsNum; j++) { j 82 drivers/mtd/lpddr/lpddr_cmds.c chip->start += j << lpddr->chipshift; j 468 drivers/mtd/maps/pcmciamtd.c int i, j = 0; j 511 drivers/mtd/maps/pcmciamtd.c j++; j 515 drivers/mtd/maps/pcmciamtd.c link->resource[2]->end >>= j; j 537 drivers/mtd/maps/physmap-core.c int j; j 539 drivers/mtd/maps/physmap-core.c for (j = 0; j < ARRAY_SIZE(rom_probe_types); j++) { j 540 drivers/mtd/maps/physmap-core.c info->mtds[i] = do_map_probe(rom_probe_types[j], j 54 drivers/mtd/maps/pmcmsp-flash.c int i, j, ret = -ENOMEM; j 149 drivers/mtd/maps/pmcmsp-flash.c for (j = 0; j < pcnt; j++) { j 151 drivers/mtd/maps/pmcmsp-flash.c part_name[7] = '0' + j; j 164 drivers/mtd/maps/pmcmsp-flash.c msp_parts[i][j].size = size; j 165 drivers/mtd/maps/pmcmsp-flash.c msp_parts[i][j].offset = offset; j 166 drivers/mtd/maps/pmcmsp-flash.c msp_parts[i][j].name = env + coff; j 174 drivers/mtd/maps/sc520cdp.c int i, j; j 191 drivers/mtd/maps/sc520cdp.c for(j = 0; j < NUM_SC520_PAR; j++) { /* for each PAR register */ j 192 drivers/mtd/maps/sc520cdp.c mmcr_val = readl(&mmcr[SC520_PAR(j)]); j 196 drivers/mtd/maps/sc520cdp.c writel(par_table[i].new_par, &mmcr[SC520_PAR(j)]); j 200 drivers/mtd/maps/sc520cdp.c if(j == NUM_SC520_PAR) j 216 drivers/mtd/maps/sc520cdp.c int i, j, devices_found = 0; j 232 drivers/mtd/maps/sc520cdp.c for (j = 0; j < i; j++) { j 233 drivers/mtd/maps/sc520cdp.c if (mymtd[j]) { j 234 drivers/mtd/maps/sc520cdp.c map_destroy(mymtd[j]); j 235 drivers/mtd/maps/sc520cdp.c iounmap(sc520cdp_map[j].virt); j 733 drivers/mtd/mtdconcat.c int j; j 734 drivers/mtd/mtdconcat.c for (j = 0; j < subdev[i]->numeraseregions; j++) { j 737 drivers/mtd/mtdconcat.c if (subdev[i]->eraseregions[j].erasesize != j 741 drivers/mtd/mtdconcat.c subdev[i]->eraseregions[j]. j 809 drivers/mtd/mtdconcat.c int j; j 810 drivers/mtd/mtdconcat.c for (j = 0; j < subdev[i]->numeraseregions; j++) { j 812 drivers/mtd/mtdconcat.c if (subdev[i]->eraseregions[j]. j 823 drivers/mtd/mtdconcat.c subdev[i]->eraseregions[j]. j 828 drivers/mtd/mtdconcat.c subdev[i]->eraseregions[j]. j 125 drivers/mtd/mtdoops.c int i = 0, j, ret, mod; j 157 drivers/mtd/mtdoops.c for (j = 0, ret = -1; (j < 3) && (ret < 0); j++) j 878 drivers/mtd/mtdswap.c unsigned int test, i, j, patt, mtd_pages; j 914 drivers/mtd/mtdswap.c for (j = 0; j < mtd->writesize/sizeof(int); j++) j 915 drivers/mtd/mtdswap.c if (p1[j] != patt) j 918 drivers/mtd/mtdswap.c for (j = 0; j < mtd->oobavail; j++) j 919 drivers/mtd/mtdswap.c if (p2[j] != (unsigned char)patt) j 60 drivers/mtd/nand/onenand/onenand_bbt.c int i, j, numblocks, len, scanlen; j 91 drivers/mtd/nand/onenand/onenand_bbt.c for (j = 0; j < len; j++) { j 95 drivers/mtd/nand/onenand/onenand_bbt.c from + j * this->writesize + bd->offs, &ops); j 101 drivers/mtd/nand/onenand/onenand_bbt.c if (ret || check_short_pattern(&buf[j * scanlen], j 455 drivers/mtd/nand/raw/atmel/pmecc.c int i, j; j 468 drivers/mtd/nand/raw/atmel/pmecc.c for (j = 0; j < degree; j++) { j 469 drivers/mtd/nand/raw/atmel/pmecc.c if (partial_syn[i] & BIT(j)) j 470 drivers/mtd/nand/raw/atmel/pmecc.c si[i] = alpha_to[i * j] ^ si[i]; j 474 drivers/mtd/nand/raw/atmel/pmecc.c for (i = 2, j = 1; j <= strength; i = ++j << 1) { j 475 drivers/mtd/nand/raw/atmel/pmecc.c if (si[j] == 0) { j 480 drivers/mtd/nand/raw/atmel/pmecc.c tmp = index_of[si[j]]; j 500 drivers/mtd/nand/raw/atmel/pmecc.c int i, j, k; j 558 drivers/mtd/nand/raw/atmel/pmecc.c for (j = 0; j <= (lmu[i] >> 1) + 1; j++) j 559 drivers/mtd/nand/raw/atmel/pmecc.c smu[(strength + 1) * num + j] = j 560 drivers/mtd/nand/raw/atmel/pmecc.c smu[i * num + j]; j 567 drivers/mtd/nand/raw/atmel/pmecc.c for (j = 0; j <= lmu[i] >> 1; j++) j 568 drivers/mtd/nand/raw/atmel/pmecc.c smu[(i + 1) * num + j] = smu[i * num + j]; j 576 drivers/mtd/nand/raw/atmel/pmecc.c for (j = 0; j < i; j++) { j 577 drivers/mtd/nand/raw/atmel/pmecc.c if ((dmu[j]) && (delta[j] > largest)) { j 578 drivers/mtd/nand/raw/atmel/pmecc.c largest = delta[j]; j 579 drivers/mtd/nand/raw/atmel/pmecc.c ro = j; j 1249 drivers/mtd/nand/raw/brcmnand/brcmnand.c int j; j 1256 drivers/mtd/nand/raw/brcmnand/brcmnand.c for (j = 0; j < tbytes; j++) j 1257 drivers/mtd/nand/raw/brcmnand/brcmnand.c oob[j] = oob_reg_read(ctrl, j); j 1272 drivers/mtd/nand/raw/brcmnand/brcmnand.c int j; j 1279 drivers/mtd/nand/raw/brcmnand/brcmnand.c for (j = 0; j < tbytes; j += 4) j 1280 drivers/mtd/nand/raw/brcmnand/brcmnand.c oob_reg_write(ctrl, j, j 1281 drivers/mtd/nand/raw/brcmnand/brcmnand.c (oob[j + 0] << 24) | j 1282 drivers/mtd/nand/raw/brcmnand/brcmnand.c (oob[j + 1] << 16) | j 1283 drivers/mtd/nand/raw/brcmnand/brcmnand.c (oob[j + 2] << 8) | j 1284 drivers/mtd/nand/raw/brcmnand/brcmnand.c (oob[j + 3] << 0)); j 1731 drivers/mtd/nand/raw/brcmnand/brcmnand.c int i, j, ret = 0; j 1744 drivers/mtd/nand/raw/brcmnand/brcmnand.c for (j = 0; j < FC_WORDS; j++, buf++) j 1745 drivers/mtd/nand/raw/brcmnand/brcmnand.c *buf = brcmnand_read_fc(ctrl, j); j 1959 drivers/mtd/nand/raw/brcmnand/brcmnand.c unsigned int i, j, trans = mtd->writesize >> FC_SHIFT; j 1988 drivers/mtd/nand/raw/brcmnand/brcmnand.c for (j = 0; j < FC_WORDS; j++, buf++) j 1989 drivers/mtd/nand/raw/brcmnand/brcmnand.c brcmnand_write_fc(ctrl, j, *buf); j 1993 drivers/mtd/nand/raw/brcmnand/brcmnand.c for (j = 0; j < FC_WORDS; j++) j 1994 drivers/mtd/nand/raw/brcmnand/brcmnand.c brcmnand_write_fc(ctrl, j, 0xffffffff); j 1163 drivers/mtd/nand/raw/denali.c int i, j, ret; j 1176 drivers/mtd/nand/raw/denali.c for (j = 0; j < i; j++) { j 1177 drivers/mtd/nand/raw/denali.c if (bank == dchip->sels[j].bank) { j 1186 drivers/mtd/nand/raw/denali.c for (j = 0; j < dchip2->nsels; j++) { j 1187 drivers/mtd/nand/raw/denali.c if (bank == dchip2->sels[j].bank) { j 139 drivers/mtd/nand/raw/diskonchip.c int i, j, nerr, errpos[8]; j 160 drivers/mtd/nand/raw/diskonchip.c for (j = 1; j < NROOTS; j++) { j 161 drivers/mtd/nand/raw/diskonchip.c if (ds[j] == 0) j 163 drivers/mtd/nand/raw/diskonchip.c tmp = cd->index_of[ds[j]]; j 165 drivers/mtd/nand/raw/diskonchip.c s[i] ^= cd->alpha_to[rs_modnn(cd, tmp + (FCR + i) * j)]; j 675 drivers/mtd/nand/raw/fsmc_nand.c int i, j, s, stat, eccsize = chip->ecc.size; j 698 drivers/mtd/nand/raw/fsmc_nand.c for (j = 0; j < eccbytes;) { j 716 drivers/mtd/nand/raw/fsmc_nand.c nand_read_oob_op(chip, page, off, oob + j, len); j 717 drivers/mtd/nand/raw/fsmc_nand.c j += len; j 439 drivers/mtd/nand/raw/lpc32xx_mlc.c int i, j; j 481 drivers/mtd/nand/raw/lpc32xx_mlc.c for (j = 0; j < (512 >> 2); j++) { j 487 drivers/mtd/nand/raw/lpc32xx_mlc.c for (j = 0; j < (16 >> 2); j++) { j 509 drivers/mtd/nand/raw/lpc32xx_mlc.c int i, j; j 529 drivers/mtd/nand/raw/lpc32xx_mlc.c for (j = 0; j < (512 >> 2); j++) { j 707 drivers/mtd/nand/raw/mtk_nand.c int i, j; j 714 drivers/mtd/nand/raw/mtk_nand.c for (j = 0; j < fdm->reg_size; j++) j 715 drivers/mtd/nand/raw/mtk_nand.c oobptr[j] = (j >= 4 ? valm : vall) >> ((j % 4) * 8); j 726 drivers/mtd/nand/raw/mtk_nand.c int i, j; j 732 drivers/mtd/nand/raw/mtk_nand.c for (j = 0; j < 8; j++) { j 733 drivers/mtd/nand/raw/mtk_nand.c if (j < 4) j 734 drivers/mtd/nand/raw/mtk_nand.c vall |= (j < fdm->reg_size ? oobptr[j] : 0xff) j 735 drivers/mtd/nand/raw/mtk_nand.c << (j * 8); j 737 drivers/mtd/nand/raw/mtk_nand.c valm |= (j < fdm->reg_size ? oobptr[j] : 0xff) j 738 drivers/mtd/nand/raw/mtk_nand.c << ((j - 4) * 8); j 4409 drivers/mtd/nand/raw/nand_base.c int i, j; j 4411 drivers/mtd/nand/raw/nand_base.c for (j = i + period; j < arrlen; j += period) j 4412 drivers/mtd/nand/raw/nand_base.c if (id_data[i] != id_data[j]) j 5201 drivers/mtd/nand/raw/nand_base.c int i, j; j 5209 drivers/mtd/nand/raw/nand_base.c for (j = 0; j < stepinfo->nstrengths; j++) { j 5210 drivers/mtd/nand/raw/nand_base.c if (stepinfo->strengths[j] != preset_strength) j 5257 drivers/mtd/nand/raw/nand_base.c int i, j; j 5270 drivers/mtd/nand/raw/nand_base.c for (j = 0; j < stepinfo->nstrengths; j++) { j 5271 drivers/mtd/nand/raw/nand_base.c strength = stepinfo->strengths[j]; j 5337 drivers/mtd/nand/raw/nand_base.c int i, j; j 5347 drivers/mtd/nand/raw/nand_base.c for (j = 0; j < stepinfo->nstrengths; j++) { j 5348 drivers/mtd/nand/raw/nand_base.c strength = stepinfo->strengths[j]; j 170 drivers/mtd/nand/raw/nand_bbt.c int res, ret = 0, i, j, act = 0; j 212 drivers/mtd/nand/raw/nand_bbt.c for (j = 0; j < 8; j += bits, act++) { j 213 drivers/mtd/nand/raw/nand_bbt.c uint8_t tmp = (dat >> j) & msk; j 1101 drivers/mtd/nand/raw/nand_bbt.c int i, j, chips, block, nrblocks, update; j 1132 drivers/mtd/nand/raw/nand_bbt.c for (j = 0; j < td->maxblocks; j++) { j 161 drivers/mtd/nand/raw/nand_hynix.c int i, j, half = repeat / 2; j 176 drivers/mtd/nand/raw/nand_hynix.c for (j = i + 1; j < repeat; j++) { j 177 drivers/mtd/nand/raw/nand_hynix.c if (in[j] == val) j 292 drivers/mtd/nand/raw/nand_hynix.c int ret, i, j; j 322 drivers/mtd/nand/raw/nand_hynix.c for (j = 0; j < nregs; j++) { j 325 drivers/mtd/nand/raw/nand_hynix.c ret = hynix_mlc_1xnm_rr_value(buf, nmodes, nregs, i, j, j 330 drivers/mtd/nand/raw/nand_hynix.c ret = hynix_mlc_1xnm_rr_value(buf, nmodes, nregs, i, j, j 114 drivers/mtd/nand/raw/nand_onfi.c int i, j, k; j 119 drivers/mtd/nand/raw/nand_onfi.c for (j = 0; j < 8; j++) { j 125 drivers/mtd/nand/raw/nand_onfi.c if (srcbuf[i] & BIT(j)) j 130 drivers/mtd/nand/raw/nand_onfi.c val |= BIT(j); j 1209 drivers/mtd/nand/raw/nandsim.c int i, j, idx = 0; j 1227 drivers/mtd/nand/raw/nandsim.c for (j = 0; j < ns->npstates; j++) j 1228 drivers/mtd/nand/raw/nandsim.c if (NS_STATE(ops[i].states[j]) != NS_STATE(ns->pstates[j]) j 1149 drivers/mtd/nand/raw/omap2.c int j; j 1231 drivers/mtd/nand/raw/omap2.c for (j = 0; j < eccbytes; j++) j 1232 drivers/mtd/nand/raw/omap2.c ecc_calc[j] ^= bch4_polynomial[j]; j 1242 drivers/mtd/nand/raw/omap2.c for (j = 0; j < eccbytes; j++) j 1243 drivers/mtd/nand/raw/omap2.c ecc_calc[j] ^= bch8_polynomial[j]; j 1358 drivers/mtd/nand/raw/omap2.c int i , j, stat = 0; j 1400 drivers/mtd/nand/raw/omap2.c for (j = 0; j < actual_eccbytes; j++) { j 1401 drivers/mtd/nand/raw/omap2.c if (calc_ecc[j] != 0) { j 1461 drivers/mtd/nand/raw/omap2.c for (j = 0; j < err_vec[i].error_count; j++) { j 1465 drivers/mtd/nand/raw/omap2.c pos = err_vec[i].error_loc[j] + j 1470 drivers/mtd/nand/raw/omap2.c pos = err_vec[i].error_loc[j]; j 282 drivers/mtd/nand/raw/omap_elm.c int i, j, errors = 0; j 303 drivers/mtd/nand/raw/omap_elm.c for (j = 0; j < err_vec[i].error_count; j++) { j 306 drivers/mtd/nand/raw/omap_elm.c err_vec[i].error_loc[j] = reg_val & j 1879 drivers/mtd/nand/raw/qcom_nandc.c int j; j 1881 drivers/mtd/nand/raw/qcom_nandc.c for (j = 0; j < host->bbm_size; j++) j 1776 drivers/mtd/nand/raw/sunxi_nand.c unsigned int i, j, remaining, start; j 1800 drivers/mtd/nand/raw/sunxi_nand.c for (j = 0; j < 8 && j + start < remaining; j++) { j 1801 drivers/mtd/nand/raw/sunxi_nand.c u32 addr = instr->ctx.addr.addrs[j + start]; j 1803 drivers/mtd/nand/raw/sunxi_nand.c addrs[j / 4] |= addr << (j % 4) * 8; j 1806 drivers/mtd/nand/raw/sunxi_nand.c if (j) j 1807 drivers/mtd/nand/raw/sunxi_nand.c cmd |= NFC_SEND_ADR | NFC_ADR_NUM(j); j 146 drivers/mtd/parsers/redboot.c int j; j 149 drivers/mtd/parsers/redboot.c for (j = 0; j < numslots; ++j) { j 154 drivers/mtd/parsers/redboot.c if (buf[j].name[0] == 0xff) { j 155 drivers/mtd/parsers/redboot.c if (buf[j].name[1] == 0xff) { j 165 drivers/mtd/parsers/redboot.c swab32s(&buf[j].flash_base); j 166 drivers/mtd/parsers/redboot.c swab32s(&buf[j].mem_base); j 167 drivers/mtd/parsers/redboot.c swab32s(&buf[j].size); j 168 drivers/mtd/parsers/redboot.c swab32s(&buf[j].entry_point); j 169 drivers/mtd/parsers/redboot.c swab32s(&buf[j].data_length); j 170 drivers/mtd/parsers/redboot.c swab32s(&buf[j].desc_cksum); j 171 drivers/mtd/parsers/redboot.c swab32s(&buf[j].file_cksum); j 3731 drivers/mtd/spi-nor/spi-nor.c int i, j; j 3751 drivers/mtd/spi-nor/spi-nor.c j = i + 1; /* index for the region dword */ j 3752 drivers/mtd/spi-nor/spi-nor.c region[i].size = SMPT_MAP_REGION_SIZE(smpt[j]); j 3753 drivers/mtd/spi-nor/spi-nor.c erase_type = SMPT_MAP_REGION_ERASE_TYPE(smpt[j]); j 201 drivers/mtd/ssfdc.c int j; j 209 drivers/mtd/ssfdc.c for (j = 0; j < ARRAY_SIZE(offset); j++) { j 210 drivers/mtd/ssfdc.c block_address = ((int)oob_buf[offset[j]] << 8) | j 211 drivers/mtd/ssfdc.c oob_buf[offset[j]+1]; j 221 drivers/mtd/ssfdc.c "parity error(0x%04X)\n", j+1, j 52 drivers/mtd/tests/pagetest.c uint32_t j; j 66 drivers/mtd/tests/pagetest.c for (j = 0; j < pgcnt - 1; ++j, addr += pgsize) { j 78 drivers/mtd/tests/pagetest.c if (memcmp(twopages, writebuf + (j * pgsize), bufsize)) { j 81 drivers/mtd/tests/readtest.c int i, j, n; j 91 drivers/mtd/tests/readtest.c for (j = 0; j < 32 && i < n; j++, i++) j 105 drivers/mtd/tests/readtest.c for (j = 0; j < 32 && oob < n; j++, oob++, i++) j 176 drivers/mtd/tests/speedtest.c int err, i, blocks, j, k; j 377 drivers/mtd/tests/speedtest.c for (j = 0; j < blocks && (i + j) < ebcnt; j++) j 378 drivers/mtd/tests/speedtest.c if (bbt[i + j]) j 380 drivers/mtd/tests/speedtest.c if (j < 1) { j 384 drivers/mtd/tests/speedtest.c err = multiblock_erase(i, j); j 392 drivers/mtd/tests/speedtest.c i += j; j 108 drivers/mtd/tests/subpagetest.c int i, j; j 111 drivers/mtd/tests/subpagetest.c for (j = 0; i < subpgsize && j < 32; ++i, ++j) j 214 drivers/mtd/tests/subpagetest.c uint32_t j; j 220 drivers/mtd/tests/subpagetest.c for (j = 0; j < mtd->erasesize / subpgsize; ++j) { j 1517 drivers/mtd/ubi/eba.c int i, j, num_volumes, ret = 0; j 1557 drivers/mtd/ubi/eba.c for (j = 0; j < vol->reserved_pebs; j++) j 1558 drivers/mtd/ubi/eba.c scan_eba[i][j] = fm_eba[i][j] = UBI_LEB_UNMAPPED; j 1574 drivers/mtd/ubi/eba.c for (j = 0; j < vol->reserved_pebs; j++) { j 1575 drivers/mtd/ubi/eba.c if (scan_eba[i][j] != fm_eba[i][j]) { j 1576 drivers/mtd/ubi/eba.c if (scan_eba[i][j] == UBI_LEB_UNMAPPED || j 1577 drivers/mtd/ubi/eba.c fm_eba[i][j] == UBI_LEB_UNMAPPED) j 1581 drivers/mtd/ubi/eba.c vol->vol_id, j, fm_eba[i][j], j 1582 drivers/mtd/ubi/eba.c scan_eba[i][j]); j 559 drivers/mtd/ubi/fastmap.c int ret, i, j, pool_size, wl_pool_size; j 724 drivers/mtd/ubi/fastmap.c for (j = 0; j < be32_to_cpu(fm_eba->reserved_pebs); j++) { j 725 drivers/mtd/ubi/fastmap.c int pnum = be32_to_cpu(fm_eba->pnum[j]); j 743 drivers/mtd/ubi/fastmap.c aeb->lnum = j; j 1138 drivers/mtd/ubi/fastmap.c int ret, i, j, free_peb_count, used_peb_count, vol_count; j 1308 drivers/mtd/ubi/fastmap.c for (j = 0; j < vol->reserved_pebs; j++) { j 1311 drivers/mtd/ubi/fastmap.c ubi_eba_get_ldesc(vol, j, &ldesc); j 1312 drivers/mtd/ubi/fastmap.c feba->pnum[j] = cpu_to_be32(ldesc.pnum); j 1315 drivers/mtd/ubi/fastmap.c feba->reserved_pebs = cpu_to_be32(j); j 1529 drivers/mtd/ubi/fastmap.c int ret, i, j; j 1583 drivers/mtd/ubi/fastmap.c for (j = 1; j < i; j++) { j 1584 drivers/mtd/ubi/fastmap.c ubi_wl_put_fm_peb(ubi, new_fm->e[j], j 1585 drivers/mtd/ubi/fastmap.c j, 0); j 1586 drivers/mtd/ubi/fastmap.c new_fm->e[j] = NULL; j 1595 drivers/mtd/ubi/fastmap.c for (j = 1; j < i; j++) { j 1596 drivers/mtd/ubi/fastmap.c ubi_wl_put_fm_peb(ubi, new_fm->e[j], j, 0); j 1597 drivers/mtd/ubi/fastmap.c new_fm->e[j] = NULL; j 1173 drivers/net/can/grcan.c u32 i, rtr, eff, j, shift; j 1210 drivers/net/can/grcan.c j = GRCAN_MSG_DATA_SLOT_INDEX(i); j 1212 drivers/net/can/grcan.c cf->data[i] = (u8)(slot[j] >> shift); j 1359 drivers/net/can/grcan.c int j, shift; j 1413 drivers/net/can/grcan.c j = GRCAN_MSG_DATA_SLOT_INDEX(i); j 1415 drivers/net/can/grcan.c slot[j] |= cf->data[i] << shift; j 1016 drivers/net/can/kvaser_pciefd.c int j; j 1019 drivers/net/can/kvaser_pciefd.c for (j = 0; j < i; j++) j 1020 drivers/net/can/kvaser_pciefd.c unregister_candev(pcie->can[j]->can.dev); j 364 drivers/net/can/rcar/rcar_canfd.c #define RCANFD_GAFLID(offset, j) ((offset) + (0x10 * (j))) j 366 drivers/net/can/rcar/rcar_canfd.c #define RCANFD_GAFLM(offset, j) ((offset) + 0x04 + (0x10 * (j))) j 368 drivers/net/can/rcar/rcar_canfd.c #define RCANFD_GAFLP0(offset, j) ((offset) + 0x08 + (0x10 * (j))) j 370 drivers/net/can/rcar/rcar_canfd.c #define RCANFD_GAFLP1(offset, j) ((offset) + 0x0c + (0x10 * (j))) j 222 drivers/net/can/softing/softing_fw.c int ret, j; j 277 drivers/net/can/softing/softing_fw.c for (sum = 0, j = 0; j < len; ++j) j 278 drivers/net/can/softing/softing_fw.c sum += dat[j]; j 424 drivers/net/can/softing/softing_fw.c int j, error_reporting; j 443 drivers/net/can/softing/softing_fw.c for (j = 0; j < ARRAY_SIZE(card->net); ++j) { j 444 drivers/net/can/softing/softing_fw.c netdev = card->net[j]; j 454 drivers/net/can/softing/softing_fw.c bus_bitmask_start |= (1 << j); j 628 drivers/net/can/softing/softing_fw.c for (j = 0; j < ARRAY_SIZE(card->net); ++j) { j 629 drivers/net/can/softing/softing_fw.c if (!(bus_bitmask_start & (1 << j))) j 631 drivers/net/can/softing/softing_fw.c netdev = card->net[j]; j 659 drivers/net/can/softing/softing_fw.c for (j = 0; j < ARRAY_SIZE(card->net); ++j) { j 660 drivers/net/can/softing/softing_fw.c netdev = card->net[j]; j 116 drivers/net/can/softing/softing_main.c int j; j 117 drivers/net/can/softing/softing_main.c for (j = 0; j < ARRAY_SIZE(card->net); ++j) { j 118 drivers/net/can/softing/softing_main.c if (card->net[j]) j 119 drivers/net/can/softing/softing_main.c netif_stop_queue(card->net[j]); j 165 drivers/net/can/softing/softing_main.c int j; j 176 drivers/net/can/softing/softing_main.c for (j = 0; j < ARRAY_SIZE(card->net); ++j) { j 177 drivers/net/can/softing/softing_main.c netdev = card->net[j]; j 323 drivers/net/can/softing/softing_main.c int j, offset, work_done; j 334 drivers/net/can/softing/softing_main.c for (j = 0; j < ARRAY_SIZE(card->net); ++j) { j 337 drivers/net/can/softing/softing_main.c netdev = card->net[(j + offset + 1) % card->pdat->nbus]; j 471 drivers/net/can/softing/softing_main.c int ret, j; j 489 drivers/net/can/softing/softing_main.c for (j = 0; (j + sizeof(stream)) < card->dpram_size; j 490 drivers/net/can/softing/softing_main.c j += sizeof(stream)) { j 492 drivers/net/can/softing/softing_main.c memcpy_toio(&card->dpram[j], stream, sizeof(stream)); j 495 drivers/net/can/softing/softing_main.c memcpy_fromio(back, &card->dpram[j], sizeof(stream)); j 500 drivers/net/can/softing/softing_main.c dev_alert(&card->pdev->dev, "dpram failed at 0x%04x\n", j); j 728 drivers/net/can/softing/softing_main.c int j; j 733 drivers/net/can/softing/softing_main.c for (j = 0; j < ARRAY_SIZE(card->net); ++j) { j 734 drivers/net/can/softing/softing_main.c if (!card->net[j]) j 736 drivers/net/can/softing/softing_main.c softing_netdev_cleanup(card->net[j]); j 737 drivers/net/can/softing/softing_main.c card->net[j] = NULL; j 754 drivers/net/can/softing/softing_main.c int j; j 806 drivers/net/can/softing/softing_main.c for (j = 0; j < ARRAY_SIZE(card->net); ++j) { j 807 drivers/net/can/softing/softing_main.c card->net[j] = netdev = j 808 drivers/net/can/softing/softing_main.c softing_netdev_create(card, card->id.chip[j]); j 810 drivers/net/can/softing/softing_main.c dev_alert(&pdev->dev, "failed to make can[%i]", j); j 814 drivers/net/can/softing/softing_main.c netdev->dev_id = j; j 815 drivers/net/can/softing/softing_main.c priv = netdev_priv(card->net[j]); j 816 drivers/net/can/softing/softing_main.c priv->index = j; j 820 drivers/net/can/softing/softing_main.c card->net[j] = NULL; j 822 drivers/net/can/softing/softing_main.c "failed to register can[%i]\n", j); j 830 drivers/net/can/softing/softing_main.c for (j = 0; j < ARRAY_SIZE(card->net); ++j) { j 831 drivers/net/can/softing/softing_main.c if (!card->net[j]) j 833 drivers/net/can/softing/softing_main.c softing_netdev_cleanup(card->net[j]); j 662 drivers/net/can/usb/esd_usb2.c int i, j; j 671 drivers/net/can/usb/esd_usb2.c for (j = 0; j < MAX_TX_URBS; j++) j 672 drivers/net/can/usb/esd_usb2.c priv->tx_contexts[j].echo_index = MAX_TX_URBS; j 1232 drivers/net/dsa/bcm_sf2_cfp.c unsigned int i, j, iter; j 1238 drivers/net/dsa/bcm_sf2_cfp.c for (j = 0; j < s; j++) { j 1241 drivers/net/dsa/bcm_sf2_cfp.c i, bcm_sf2_cfp_stats[j].name); j 1242 drivers/net/dsa/bcm_sf2_cfp.c iter = (i - 1) * s + j; j 1255 drivers/net/dsa/bcm_sf2_cfp.c unsigned int i, j, iter; j 1265 drivers/net/dsa/bcm_sf2_cfp.c for (j = 0; j < s; j++) { j 1266 drivers/net/dsa/bcm_sf2_cfp.c stat = &bcm_sf2_cfp_stats[j]; j 1273 drivers/net/dsa/bcm_sf2_cfp.c iter = (i - 1) * s + j; j 776 drivers/net/dsa/mv88e6xxx/chip.c int i, j; j 778 drivers/net/dsa/mv88e6xxx/chip.c for (i = 0, j = 0; i < ARRAY_SIZE(mv88e6xxx_hw_stats); i++) { j 781 drivers/net/dsa/mv88e6xxx/chip.c memcpy(data + j * ETH_GSTRING_LEN, stat->string, j 783 drivers/net/dsa/mv88e6xxx/chip.c j++; j 787 drivers/net/dsa/mv88e6xxx/chip.c return j; j 857 drivers/net/dsa/mv88e6xxx/chip.c int i, j; j 859 drivers/net/dsa/mv88e6xxx/chip.c for (i = 0, j = 0; i < ARRAY_SIZE(mv88e6xxx_hw_stats); i++) { j 862 drivers/net/dsa/mv88e6xxx/chip.c j++; j 864 drivers/net/dsa/mv88e6xxx/chip.c return j; j 920 drivers/net/dsa/mv88e6xxx/chip.c int i, j; j 922 drivers/net/dsa/mv88e6xxx/chip.c for (i = 0, j = 0; i < ARRAY_SIZE(mv88e6xxx_hw_stats); i++) { j 926 drivers/net/dsa/mv88e6xxx/chip.c data[j] = _mv88e6xxx_get_ethtool_stat(chip, stat, port, j 931 drivers/net/dsa/mv88e6xxx/chip.c j++; j 934 drivers/net/dsa/mv88e6xxx/chip.c return j; j 310 drivers/net/dsa/sja1105/sja1105_main.c int i, j; j 332 drivers/net/dsa/sja1105/sja1105_main.c for (j = 0; j < SJA1105_NUM_TC; j++) j 333 drivers/net/dsa/sja1105/sja1105_main.c l2fwd[i].vlan_pmap[j] = j; j 345 drivers/net/dsa/sja1105/sja1105_main.c for (j = 0; j < SJA1105_NUM_PORTS; j++) j 346 drivers/net/dsa/sja1105/sja1105_main.c l2fwd[SJA1105_NUM_PORTS + i].vlan_pmap[j] = i; j 476 drivers/net/dsa/sja1105/sja1105_main.c int i, j, k; j 501 drivers/net/dsa/sja1105/sja1105_main.c for (j = 0; j < SJA1105_NUM_TC; j++, k++) j 628 drivers/net/dsa/sja1105/sja1105_static_config.c int j; j 647 drivers/net/dsa/sja1105/sja1105_static_config.c for (j = 0; j < table->entry_count; j++) { j 650 drivers/net/dsa/sja1105/sja1105_static_config.c entry_ptr += j * table->ops->unpacked_entry_size; j 266 drivers/net/dsa/sja1105/sja1105_tas.c int i, j; j 303 drivers/net/dsa/sja1105/sja1105_tas.c for (j = 0, delta2 = 0; j 304 drivers/net/dsa/sja1105/sja1105_tas.c j < admin->num_entries; j 305 drivers/net/dsa/sja1105/sja1105_tas.c delta2 += admin->entries[j].interval, j++) { j 323 drivers/net/dsa/sja1105/sja1105_tas.c j, i, port); j 941 drivers/net/dsa/vitesse-vsc73xx-core.c int i, j; j 961 drivers/net/dsa/vitesse-vsc73xx-core.c j = 0; j 962 drivers/net/dsa/vitesse-vsc73xx-core.c strncpy(data + j * ETH_GSTRING_LEN, j 964 drivers/net/dsa/vitesse-vsc73xx-core.c j++; j 975 drivers/net/dsa/vitesse-vsc73xx-core.c strncpy(data + j * ETH_GSTRING_LEN, j 977 drivers/net/dsa/vitesse-vsc73xx-core.c j++; j 981 drivers/net/dsa/vitesse-vsc73xx-core.c strncpy(data + j * ETH_GSTRING_LEN, j 983 drivers/net/dsa/vitesse-vsc73xx-core.c j++; j 988 drivers/net/dsa/vitesse-vsc73xx-core.c strncpy(data + j * ETH_GSTRING_LEN, j 990 drivers/net/dsa/vitesse-vsc73xx-core.c j++; j 1109 drivers/net/ethernet/3com/3c515.c int j; j 1111 drivers/net/ethernet/3com/3c515.c for (j = 20; j >= 0; j--) j 307 drivers/net/ethernet/3com/3c574_cs.c int ret, i, j; j 321 drivers/net/ethernet/3com/3c574_cs.c for (i = j = 0; j < 0x400; j += 0x20) { j 322 drivers/net/ethernet/3com/3c574_cs.c link->resource[0]->start = j ^ 0x300; j 242 drivers/net/ethernet/3com/3c589_cs.c int ret, i, j, multi = 0, fifo; j 259 drivers/net/ethernet/3com/3c589_cs.c for (i = j = 0; j < 0x400; j += 0x10) { j 260 drivers/net/ethernet/3com/3c589_cs.c if (multi && (j & 0x80)) j 262 drivers/net/ethernet/3com/3c589_cs.c link->resource[0]->start = j ^ 0x300; j 190 drivers/net/ethernet/8390/axnet_cs.c int i, j; j 222 drivers/net/ethernet/8390/axnet_cs.c j = inw(ioaddr + AXNET_DATAPORT); j 223 drivers/net/ethernet/8390/axnet_cs.c dev->dev_addr[i] = j & 0xff; j 224 drivers/net/ethernet/8390/axnet_cs.c dev->dev_addr[i+1] = j >> 8; j 231 drivers/net/ethernet/8390/axnet_cs.c int j, ret; j 245 drivers/net/ethernet/8390/axnet_cs.c for (j = 0; j < 0x400; j += 0x20) { j 246 drivers/net/ethernet/8390/axnet_cs.c link->resource[0]->start = j ^ 0x300; j 247 drivers/net/ethernet/8390/axnet_cs.c link->resource[1]->start = (j ^ 0x300) + 0x10; j 275 drivers/net/ethernet/8390/axnet_cs.c int i, j, j2, ret; j 326 drivers/net/ethernet/8390/axnet_cs.c j = mdio_read(dev->base_addr + AXNET_MII_EEP, i, 1); j 328 drivers/net/ethernet/8390/axnet_cs.c if (j == j2) continue; j 329 drivers/net/ethernet/8390/axnet_cs.c if ((j != 0) && (j != 0xffff)) break; j 337 drivers/net/ethernet/8390/axnet_cs.c j = mdio_read(dev->base_addr + AXNET_MII_EEP, i, 1); j 339 drivers/net/ethernet/8390/axnet_cs.c if (j == j2) continue; j 340 drivers/net/ethernet/8390/axnet_cs.c if ((j != 0) && (j != 0xffff)) { j 360 drivers/net/ethernet/8390/axnet_cs.c info->phy_id, j); j 119 drivers/net/ethernet/8390/hydra.c int j; j 131 drivers/net/ethernet/8390/hydra.c for (j = 0; j < ETH_ALEN; j++) j 132 drivers/net/ethernet/8390/hydra.c dev->dev_addr[j] = *((u8 *)(board + HYDRA_ADDRPROM + 2*j)); j 260 drivers/net/ethernet/8390/mac8390.c int i, j; j 279 drivers/net/ethernet/8390/mac8390.c for (j = 0; j < i; j++) { j 280 drivers/net/ethernet/8390/mac8390.c volatile unsigned short *p = (unsigned short *)(membase + (j * 0x1000)); j 281 drivers/net/ethernet/8390/mac8390.c if (*p != (0xA5A0 | j)) j 281 drivers/net/ethernet/8390/pcnet_cs.c int i, j; j 304 drivers/net/ethernet/8390/pcnet_cs.c for (j = 0; j < 6; j++) j 305 drivers/net/ethernet/8390/pcnet_cs.c dev->dev_addr[j] = readb(base + (j<<1)); j 311 drivers/net/ethernet/8390/pcnet_cs.c j = pcmcia_release_window(link, link->resource[2]); j 328 drivers/net/ethernet/8390/pcnet_cs.c int i, j; j 364 drivers/net/ethernet/8390/pcnet_cs.c for (j = 0; j < 6; j++) j 365 drivers/net/ethernet/8390/pcnet_cs.c dev->dev_addr[j] = prom[j<<1]; j 403 drivers/net/ethernet/8390/pcnet_cs.c int i, j; j 415 drivers/net/ethernet/8390/pcnet_cs.c j = inw(ioaddr + PCNET_DATAPORT); j 416 drivers/net/ethernet/8390/pcnet_cs.c dev->dev_addr[i] = j & 0xff; j 417 drivers/net/ethernet/8390/pcnet_cs.c dev->dev_addr[i+1] = j >> 8; j 448 drivers/net/ethernet/8390/pcnet_cs.c int j, ret; j 463 drivers/net/ethernet/8390/pcnet_cs.c for (j = 0; j < 0x400; j += 0x20) { j 464 drivers/net/ethernet/8390/pcnet_cs.c link->resource[0]->start = j ^ 0x300; j 465 drivers/net/ethernet/8390/pcnet_cs.c link->resource[1]->start = (j ^ 0x300) + 0x10; j 1193 drivers/net/ethernet/adaptec/starfire.c int i, j; j 1295 drivers/net/ethernet/adaptec/starfire.c for (j = 1; j < i; j++) { j 1299 drivers/net/ethernet/adaptec/starfire.c &skb_shinfo(skb)->frags[j-1]), j 1865 drivers/net/ethernet/agere/et131x.c u32 i, j; j 1954 drivers/net/ethernet/agere/et131x.c for (j = 0; j < FBR_CHUNKS; j++) { j 1955 drivers/net/ethernet/agere/et131x.c u32 k = (i * FBR_CHUNKS) + j; j 1961 drivers/net/ethernet/agere/et131x.c (j * fbr->buffsize); j 134 drivers/net/ethernet/amazon/ena/ena_ethtool.c int i, j; j 140 drivers/net/ethernet/amazon/ena/ena_ethtool.c for (j = 0; j < ENA_STATS_ARRAY_TX; j++) { j 141 drivers/net/ethernet/amazon/ena/ena_ethtool.c ena_stats = &ena_stats_tx_strings[j]; j 152 drivers/net/ethernet/amazon/ena/ena_ethtool.c for (j = 0; j < ENA_STATS_ARRAY_RX; j++) { j 153 drivers/net/ethernet/amazon/ena/ena_ethtool.c ena_stats = &ena_stats_rx_strings[j]; j 215 drivers/net/ethernet/amazon/ena/ena_ethtool.c int i, j; j 219 drivers/net/ethernet/amazon/ena/ena_ethtool.c for (j = 0; j < ENA_STATS_ARRAY_TX; j++) { j 220 drivers/net/ethernet/amazon/ena/ena_ethtool.c ena_stats = &ena_stats_tx_strings[j]; j 227 drivers/net/ethernet/amazon/ena/ena_ethtool.c for (j = 0; j < ENA_STATS_ARRAY_RX; j++) { j 228 drivers/net/ethernet/amazon/ena/ena_ethtool.c ena_stats = &ena_stats_rx_strings[j]; j 357 drivers/net/ethernet/amd/7990.c int i, j; j 367 drivers/net/ethernet/amd/7990.c j = lp->tx_old; j 368 drivers/net/ethernet/amd/7990.c for (i = j; i != lp->tx_new; i = j) { j 433 drivers/net/ethernet/amd/7990.c j = (j + 1) & lp->tx_ring_mod_mask; j 435 drivers/net/ethernet/amd/7990.c lp->tx_old = j; j 330 drivers/net/ethernet/amd/a2065.c int i, j; j 337 drivers/net/ethernet/amd/a2065.c j = lp->tx_old; j 338 drivers/net/ethernet/amd/a2065.c for (i = j; i != lp->tx_new; i = j) { j 400 drivers/net/ethernet/amd/a2065.c j = (j + 1) & lp->tx_ring_mod_mask; j 402 drivers/net/ethernet/amd/a2065.c lp->tx_old = j; j 649 drivers/net/ethernet/amd/declance.c int i, j; j 652 drivers/net/ethernet/amd/declance.c j = lp->tx_old; j 656 drivers/net/ethernet/amd/declance.c for (i = j; i != lp->tx_new; i = j) { j 715 drivers/net/ethernet/amd/declance.c j = (j + 1) & TX_RING_MOD_MASK; j 717 drivers/net/ethernet/amd/declance.c lp->tx_old = j; j 419 drivers/net/ethernet/amd/ni65.c int i,j; j 437 drivers/net/ethernet/amd/ni65.c for(j=0;j<3;j++) j 438 drivers/net/ethernet/amd/ni65.c if(inb(ioaddr+cards[i].addr_offset+j) != cards[i].vendor_id[j]) j 446 drivers/net/ethernet/amd/ni65.c for(j=0;j<6;j++) j 447 drivers/net/ethernet/amd/ni65.c dev->dev_addr[j] = inb(ioaddr+cards[i].addr_offset+j); j 449 drivers/net/ethernet/amd/ni65.c if( (j=ni65_alloc_buffer(dev)) < 0) { j 451 drivers/net/ethernet/amd/ni65.c return j; j 461 drivers/net/ethernet/amd/ni65.c if( (j=readreg(CSR0)) != 0x4) { j 463 drivers/net/ethernet/amd/ni65.c printk(KERN_ERR "%s: Can't RESET card: %04x\n", dev->name, j); j 922 drivers/net/ethernet/amd/ni65.c int j; j 923 drivers/net/ethernet/amd/ni65.c for(j=0;j<RMDNUM;j++) j 1299 drivers/net/ethernet/amd/nmclan_cs.c int j; j 1302 drivers/net/ethernet/amd/nmclan_cs.c for (j = 32; j > 0; j--) j 1303 drivers/net/ethernet/amd/nmclan_cs.c CRC[j] = CRC[j-1]; j 1308 drivers/net/ethernet/amd/nmclan_cs.c for (j = 0; j < 32; j++) j 1309 drivers/net/ethernet/amd/nmclan_cs.c CRC[j] ^= poly[j]; j 1436 drivers/net/ethernet/amd/pcnet32.c int j = lp->phycount * PCNET32_REGS_PER_PHY; j 1438 drivers/net/ethernet/amd/pcnet32.c return (PCNET32_NUM_REGS + j) * sizeof(u16); j 1479 drivers/net/ethernet/amd/pcnet32.c int j; j 1480 drivers/net/ethernet/amd/pcnet32.c for (j = 0; j < PCNET32_MAX_PHYS; j++) { j 1481 drivers/net/ethernet/amd/pcnet32.c if (lp->phymask & (1 << j)) { j 1484 drivers/net/ethernet/amd/pcnet32.c (j << 5) | i); j 571 drivers/net/ethernet/amd/sunlance.c int i, j; j 575 drivers/net/ethernet/amd/sunlance.c j = lp->tx_old; j 576 drivers/net/ethernet/amd/sunlance.c for (i = j; i != lp->tx_new; i = j) { j 636 drivers/net/ethernet/amd/sunlance.c j = TX_NEXT(j); j 638 drivers/net/ethernet/amd/sunlance.c lp->tx_old = j; j 739 drivers/net/ethernet/amd/sunlance.c int i, j; j 743 drivers/net/ethernet/amd/sunlance.c j = lp->tx_old; j 744 drivers/net/ethernet/amd/sunlance.c for (i = j; i != lp->tx_new; i = j) { j 804 drivers/net/ethernet/amd/sunlance.c j = TX_NEXT(j); j 806 drivers/net/ethernet/amd/sunlance.c lp->tx_old = j; j 394 drivers/net/ethernet/amd/xgbe/xgbe-desc.c unsigned int i, j; j 407 drivers/net/ethernet/amd/xgbe/xgbe-desc.c for (j = 0; j < ring->rdesc_count; j++) { j 408 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata = XGBE_GET_DESC_DATA(ring, j); j 435 drivers/net/ethernet/amd/xgbe/xgbe-desc.c unsigned int i, j; j 448 drivers/net/ethernet/amd/xgbe/xgbe-desc.c for (j = 0; j < ring->rdesc_count; j++) { j 449 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata = XGBE_GET_DESC_DATA(ring, j); j 2606 drivers/net/ethernet/amd/xgbe/xgbe-dev.c unsigned int i, j, reg, reg_val; j 2615 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (j = 0; j < qptc; j++) { j 2641 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (j = 0; j < ppq; j++) { j 1188 drivers/net/ethernet/amd/xgbe/xgbe-drv.c unsigned int i, j; j 1197 drivers/net/ethernet/amd/xgbe/xgbe-drv.c for (j = 0; j < ring->rdesc_count; j++) { j 1198 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata = XGBE_GET_DESC_DATA(ring, j); j 1211 drivers/net/ethernet/amd/xgbe/xgbe-drv.c unsigned int i, j; j 1220 drivers/net/ethernet/amd/xgbe/xgbe-drv.c for (j = 0; j < ring->rdesc_count; j++) { j 1221 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata = XGBE_GET_DESC_DATA(ring, j); j 128 drivers/net/ethernet/amd/xgbe/xgbe-pci.c unsigned int i, j; j 150 drivers/net/ethernet/amd/xgbe/xgbe-pci.c for (i = XGBE_MSI_BASE_COUNT, j = 0; i < ret; i++, j++) j 151 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->channel_irq[j] = pci_irq_vector(pdata->pcidev, i); j 152 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->channel_irq_count = j; j 1379 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c unsigned int i, j, rem; j 1451 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c for (i = 0, j = eeprom->offset; i < eeprom->len; i++, j++) { j 1452 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if ((j >= XGBE_SFP_EEPROM_BASE_LEN) && j 1456 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c data[i] = eeprom_data[j]; j 52 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c u32 i, j = 0; j 55 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c buf[j++] = SET_VAL(CLE_TYPE, kn->node_type); j 60 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c buf[j] = SET_VAL(CLE_KN_PRIO, key->priority) | j 65 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c buf[j++] |= (data << 16); j 74 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c u32 i, j = 0; j 77 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c buf[j++] = SET_VAL(CLE_DN_TYPE, dn->node_type) | j 92 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c buf[j++] = SET_VAL(CLE_BR_VALID, br->valid) | j 100 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c buf[j++] = SET_VAL(CLE_BR_DATA, br->data) | j 129 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c u32 i, j, ind_addr; j 143 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c for (j = 0; j < nregs; j++) j 144 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c iowrite32(data[j], base + DATA_RAM0 + (j * 4)); j 571 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c int i, j, ret; j 584 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c for (j = i; j < (ptree->num_kn + num_dn); j++) { j 585 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c xgene_cle_kn_to_hw(&kn[j - num_dn], buf); j 586 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c ret = xgene_cle_dram_wr(cle, buf, 17, j + ptree->start_node, j 622 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c u32 i, j; j 636 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c for (j = 0; j < 6; j++) j 637 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c iowrite32(buf[j], base_addr + (j * 4)); j 1239 drivers/net/ethernet/apple/bmac.c int j, rev, ret; j 1289 drivers/net/ethernet/apple/bmac.c for (j = 0; j < 6; ++j) j 1290 drivers/net/ethernet/apple/bmac.c dev->dev_addr[j] = rev ? bitrev8(addr[j]): addr[j]; j 115 drivers/net/ethernet/apple/mace.c int j, rev, rc = -EBUSY; j 169 drivers/net/ethernet/apple/mace.c for (j = 0; j < 6; ++j) { j 170 drivers/net/ethernet/apple/mace.c dev->dev_addr[j] = rev ? bitrev8(addr[j]): addr[j]; j 195 drivers/net/ethernet/apple/macmace.c int j; j 229 drivers/net/ethernet/apple/macmace.c for (j = 0; j < 6; ++j) { j 230 drivers/net/ethernet/apple/macmace.c u8 v = bitrev8(addr[j<<4]); j 232 drivers/net/ethernet/apple/macmace.c dev->dev_addr[j] = v; j 234 drivers/net/ethernet/apple/macmace.c for (; j < 8; ++j) { j 235 drivers/net/ethernet/apple/macmace.c checksum ^= bitrev8(addr[j<<4]); j 886 drivers/net/ethernet/atheros/atl1c/atl1c_main.c int j; j 888 drivers/net/ethernet/atheros/atl1c/atl1c_main.c for (j = 0; j < rfd_ring->count; j++) { j 889 drivers/net/ethernet/atheros/atl1c/atl1c_main.c buffer_info = &rfd_ring->buffer_info[j]; j 909 drivers/net/ethernet/atheros/atl1c/atl1c_main.c int i, j; j 915 drivers/net/ethernet/atheros/atl1c/atl1c_main.c for (j = 0; j < tpd_ring->count; j++) j 923 drivers/net/ethernet/atheros/atl1c/atl1c_main.c for (j = 0; j < rfd_ring->count; j++) { j 924 drivers/net/ethernet/atheros/atl1c/atl1c_main.c buffer_info = &rfd_ring->buffer_info[j]; j 693 drivers/net/ethernet/atheros/atl1e/atl1e_main.c u16 i, j; j 700 drivers/net/ethernet/atheros/atl1e/atl1e_main.c for (j = 0; j < AT_PAGE_NUM_PER_QUEUE; j++) { j 701 drivers/net/ethernet/atheros/atl1e/atl1e_main.c if (rx_page_desc[i].rx_page[j].addr != NULL) { j 702 drivers/net/ethernet/atheros/atl1e/atl1e_main.c memset(rx_page_desc[i].rx_page[j].addr, 0, j 748 drivers/net/ethernet/atheros/atl1e/atl1e_main.c int i, j; j 760 drivers/net/ethernet/atheros/atl1e/atl1e_main.c for (j = 0; j < AT_PAGE_NUM_PER_QUEUE; j++) { j 761 drivers/net/ethernet/atheros/atl1e/atl1e_main.c *rx_page_desc[i].rx_page[j].write_offset_addr = 0; j 762 drivers/net/ethernet/atheros/atl1e/atl1e_main.c rx_page_desc[i].rx_page[j].read_offset = 0; j 804 drivers/net/ethernet/atheros/atl1e/atl1e_main.c int size, i, j; j 843 drivers/net/ethernet/atheros/atl1e/atl1e_main.c for (j = 0; j < AT_PAGE_NUM_PER_QUEUE; j++) { j 844 drivers/net/ethernet/atheros/atl1e/atl1e_main.c rx_page_desc[i].rx_page[j].dma = j 846 drivers/net/ethernet/atheros/atl1e/atl1e_main.c rx_page_desc[i].rx_page[j].addr = j 858 drivers/net/ethernet/atheros/atl1e/atl1e_main.c for (j = 0; j < AT_PAGE_NUM_PER_QUEUE; j++) { j 859 drivers/net/ethernet/atheros/atl1e/atl1e_main.c rx_page_desc[i].rx_page[j].write_offset_dma = j 861 drivers/net/ethernet/atheros/atl1e/atl1e_main.c rx_page_desc[i].rx_page[j].write_offset_addr = j 891 drivers/net/ethernet/atheros/atl1e/atl1e_main.c int i, j; j 907 drivers/net/ethernet/atheros/atl1e/atl1e_main.c for (j = 0; j < AT_PAGE_NUM_PER_QUEUE; j++) { j 911 drivers/net/ethernet/atheros/atl1e/atl1e_main.c page_phy_addr = rx_page_desc[i].rx_page[j].dma; j 913 drivers/net/ethernet/atheros/atl1e/atl1e_main.c rx_page_desc[i].rx_page[j].write_offset_dma; j 915 drivers/net/ethernet/atheros/atl1e/atl1e_main.c AT_WRITE_REG(hw, atl1e_rx_page_lo_addr_regs[i][j], j 917 drivers/net/ethernet/atheros/atl1e/atl1e_main.c AT_WRITE_REG(hw, atl1e_rx_page_write_offset_regs[i][j], j 919 drivers/net/ethernet/atheros/atl1e/atl1e_main.c AT_WRITE_REGB(hw, atl1e_rx_page_vld_regs[i][j], 1); j 2293 drivers/net/ethernet/atheros/atlx/atl1.c u16 j; j 2297 drivers/net/ethernet/atheros/atlx/atl1.c for (j = 0; j < count; j++) { j 2314 drivers/net/ethernet/atheros/atlx/atl1.c if (!j) j 2320 drivers/net/ethernet/atheros/atlx/atl1.c if (j == (count - 1)) j 1518 drivers/net/ethernet/broadcom/b44.c int k, j, len = offset; j 1522 drivers/net/ethernet/broadcom/b44.c for (j = 0; j < magicsync; j++) { j 1527 drivers/net/ethernet/broadcom/b44.c for (j = 0; j < B44_MAX_PATTERNS; j++) { j 1536 drivers/net/ethernet/broadcom/b44.c (j * ETH_ALEN) + k] = macaddr[k]; j 1988 drivers/net/ethernet/broadcom/bcm63xx_enet.c int val, j, up, advertise, lpa, speed, duplex, media; j 2000 drivers/net/ethernet/broadcom/bcm63xx_enet.c for (j = 0; j < 2; j++) j 326 drivers/net/ethernet/broadcom/bcmsysport.c unsigned int i, j; j 330 drivers/net/ethernet/broadcom/bcmsysport.c for (i = 0, j = 0; i < BCM_SYSPORT_STATS_LEN; i++) { j 335 drivers/net/ethernet/broadcom/bcmsysport.c j++; j 338 drivers/net/ethernet/broadcom/bcmsysport.c return j + dev->num_tx_queues * NUM_SYSPORT_TXQ_STAT; j 350 drivers/net/ethernet/broadcom/bcmsysport.c int i, j; j 354 drivers/net/ethernet/broadcom/bcmsysport.c for (i = 0, j = 0; i < BCM_SYSPORT_STATS_LEN; i++) { j 360 drivers/net/ethernet/broadcom/bcmsysport.c memcpy(data + j * ETH_GSTRING_LEN, s->stat_string, j 362 drivers/net/ethernet/broadcom/bcmsysport.c j++; j 367 drivers/net/ethernet/broadcom/bcmsysport.c memcpy(data + j * ETH_GSTRING_LEN, buf, j 369 drivers/net/ethernet/broadcom/bcmsysport.c j++; j 372 drivers/net/ethernet/broadcom/bcmsysport.c memcpy(data + j * ETH_GSTRING_LEN, buf, j 374 drivers/net/ethernet/broadcom/bcmsysport.c j++; j 384 drivers/net/ethernet/broadcom/bcmsysport.c int i, j = 0; j 406 drivers/net/ethernet/broadcom/bcmsysport.c val = umac_readl(priv, UMAC_MIB_START + j + offset); j 420 drivers/net/ethernet/broadcom/bcmsysport.c j += s->stat_sizeof; j 458 drivers/net/ethernet/broadcom/bcmsysport.c int i, j; j 467 drivers/net/ethernet/broadcom/bcmsysport.c for (i = 0, j = 0; i < BCM_SYSPORT_STATS_LEN; i++) { j 491 drivers/net/ethernet/broadcom/bcmsysport.c j++; j 499 drivers/net/ethernet/broadcom/bcmsysport.c j = bcm_sysport_get_sset_count(dev, ETH_SS_STATS) - j 504 drivers/net/ethernet/broadcom/bcmsysport.c data[j] = ring->packets; j 505 drivers/net/ethernet/broadcom/bcmsysport.c j++; j 506 drivers/net/ethernet/broadcom/bcmsysport.c data[j] = ring->bytes; j 507 drivers/net/ethernet/broadcom/bcmsysport.c j++; j 708 drivers/net/ethernet/broadcom/bgmac.c int j; j 723 drivers/net/ethernet/broadcom/bgmac.c for (j = 0; j < BGMAC_RX_RING_SLOTS; j++) { j 724 drivers/net/ethernet/broadcom/bgmac.c err = bgmac_dma_rx_skb_for_slot(bgmac, &ring->slots[j]); j 728 drivers/net/ethernet/broadcom/bgmac.c bgmac_dma_rx_setup_desc(bgmac, ring, j); j 724 drivers/net/ethernet/broadcom/bnx2.c int j; j 726 drivers/net/ethernet/broadcom/bnx2.c for (j = 0; j < bp->rx_max_ring; j++) { j 727 drivers/net/ethernet/broadcom/bnx2.c if (rxr->rx_desc_ring[j]) j 729 drivers/net/ethernet/broadcom/bnx2.c rxr->rx_desc_ring[j], j 730 drivers/net/ethernet/broadcom/bnx2.c rxr->rx_desc_mapping[j]); j 731 drivers/net/ethernet/broadcom/bnx2.c rxr->rx_desc_ring[j] = NULL; j 736 drivers/net/ethernet/broadcom/bnx2.c for (j = 0; j < bp->rx_max_pg_ring; j++) { j 737 drivers/net/ethernet/broadcom/bnx2.c if (rxr->rx_pg_desc_ring[j]) j 739 drivers/net/ethernet/broadcom/bnx2.c rxr->rx_pg_desc_ring[j], j 740 drivers/net/ethernet/broadcom/bnx2.c rxr->rx_pg_desc_mapping[j]); j 741 drivers/net/ethernet/broadcom/bnx2.c rxr->rx_pg_desc_ring[j] = NULL; j 778 drivers/net/ethernet/broadcom/bnx2.c int j; j 785 drivers/net/ethernet/broadcom/bnx2.c for (j = 0; j < bp->rx_max_ring; j++) { j 786 drivers/net/ethernet/broadcom/bnx2.c rxr->rx_desc_ring[j] = j 789 drivers/net/ethernet/broadcom/bnx2.c &rxr->rx_desc_mapping[j], j 791 drivers/net/ethernet/broadcom/bnx2.c if (!rxr->rx_desc_ring[j]) j 805 drivers/net/ethernet/broadcom/bnx2.c for (j = 0; j < bp->rx_max_pg_ring; j++) { j 806 drivers/net/ethernet/broadcom/bnx2.c rxr->rx_pg_desc_ring[j] = j 809 drivers/net/ethernet/broadcom/bnx2.c &rxr->rx_pg_desc_mapping[j], j 811 drivers/net/ethernet/broadcom/bnx2.c if (!rxr->rx_pg_desc_ring[j]) j 2591 drivers/net/ethernet/broadcom/bnx2.c int j; j 2605 drivers/net/ethernet/broadcom/bnx2.c for (j = 0; j < 10; j++) { j 3861 drivers/net/ethernet/broadcom/bnx2.c int j; j 3863 drivers/net/ethernet/broadcom/bnx2.c for (j = 0; j < (len / 4); j++, offset += 4) j 3864 drivers/net/ethernet/broadcom/bnx2.c bnx2_reg_wr_ind(bp, offset, be32_to_cpu(data[j])); j 3875 drivers/net/ethernet/broadcom/bnx2.c int j; j 3877 drivers/net/ethernet/broadcom/bnx2.c for (j = 0; j < (len / 4); j++, offset += 4) j 3878 drivers/net/ethernet/broadcom/bnx2.c bnx2_reg_wr_ind(bp, offset, be32_to_cpu(data[j])); j 3889 drivers/net/ethernet/broadcom/bnx2.c int j; j 3891 drivers/net/ethernet/broadcom/bnx2.c for (j = 0; j < (len / 4); j++, offset += 4) j 3892 drivers/net/ethernet/broadcom/bnx2.c bnx2_reg_wr_ind(bp, offset, be32_to_cpu(data[j])); j 4105 drivers/net/ethernet/broadcom/bnx2.c int j; j 4109 drivers/net/ethernet/broadcom/bnx2.c for (j = 0; j < NVRAM_TIMEOUT_COUNT; j++) { j 4117 drivers/net/ethernet/broadcom/bnx2.c if (j >= NVRAM_TIMEOUT_COUNT) j 4126 drivers/net/ethernet/broadcom/bnx2.c int j; j 4132 drivers/net/ethernet/broadcom/bnx2.c for (j = 0; j < NVRAM_TIMEOUT_COUNT; j++) { j 4140 drivers/net/ethernet/broadcom/bnx2.c if (j >= NVRAM_TIMEOUT_COUNT) j 4156 drivers/net/ethernet/broadcom/bnx2.c int j; j 4162 drivers/net/ethernet/broadcom/bnx2.c for (j = 0; j < NVRAM_TIMEOUT_COUNT; j++) { j 4170 drivers/net/ethernet/broadcom/bnx2.c if (j >= NVRAM_TIMEOUT_COUNT) j 4213 drivers/net/ethernet/broadcom/bnx2.c int j; j 4233 drivers/net/ethernet/broadcom/bnx2.c for (j = 0; j < NVRAM_TIMEOUT_COUNT; j++) { j 4243 drivers/net/ethernet/broadcom/bnx2.c if (j >= NVRAM_TIMEOUT_COUNT) j 4253 drivers/net/ethernet/broadcom/bnx2.c int j; j 4275 drivers/net/ethernet/broadcom/bnx2.c for (j = 0; j < NVRAM_TIMEOUT_COUNT; j++) { j 4287 drivers/net/ethernet/broadcom/bnx2.c if (j >= NVRAM_TIMEOUT_COUNT) j 4299 drivers/net/ethernet/broadcom/bnx2.c int j; j 4326 drivers/net/ethernet/broadcom/bnx2.c for (j = 0; j < NVRAM_TIMEOUT_COUNT; j++) { j 4332 drivers/net/ethernet/broadcom/bnx2.c if (j >= NVRAM_TIMEOUT_COUNT) j 4342 drivers/net/ethernet/broadcom/bnx2.c int j, entry_count, rc = 0; j 4358 drivers/net/ethernet/broadcom/bnx2.c for (j = 0, flash = &flash_table[0]; j < entry_count; j 4359 drivers/net/ethernet/broadcom/bnx2.c j++, flash++) { j 4376 drivers/net/ethernet/broadcom/bnx2.c for (j = 0, flash = &flash_table[0]; j < entry_count; j 4377 drivers/net/ethernet/broadcom/bnx2.c j++, flash++) { j 4404 drivers/net/ethernet/broadcom/bnx2.c if (j == entry_count) { j 4609 drivers/net/ethernet/broadcom/bnx2.c int j; j 4613 drivers/net/ethernet/broadcom/bnx2.c for (j = 0; j < bp->flash_info->page_size; j += 4) { j 4614 drivers/net/ethernet/broadcom/bnx2.c if (j == (bp->flash_info->page_size - 4)) { j 4618 drivers/net/ethernet/broadcom/bnx2.c page_start + j, j 4619 drivers/net/ethernet/broadcom/bnx2.c &flash_buffer[j], j 5223 drivers/net/ethernet/broadcom/bnx2.c int j; j 5226 drivers/net/ethernet/broadcom/bnx2.c for (j = 0; j < BNX2_MAX_RX_DESC_CNT; j++, rxbd++) { j 5231 drivers/net/ethernet/broadcom/bnx2.c j = 0; j 5233 drivers/net/ethernet/broadcom/bnx2.c j = i + 1; j 5234 drivers/net/ethernet/broadcom/bnx2.c rxbd->rx_bd_haddr_hi = (u64) dma[j] >> 32; j 5235 drivers/net/ethernet/broadcom/bnx2.c rxbd->rx_bd_haddr_lo = (u64) dma[j] & 0xffffffff; j 5440 drivers/net/ethernet/broadcom/bnx2.c int j; j 5445 drivers/net/ethernet/broadcom/bnx2.c for (j = 0; j < BNX2_TX_DESC_CNT; ) { j 5446 drivers/net/ethernet/broadcom/bnx2.c struct bnx2_sw_tx_bd *tx_buf = &txr->tx_buf_ring[j]; j 5451 drivers/net/ethernet/broadcom/bnx2.c j = BNX2_NEXT_TX_BD(j); j 5463 drivers/net/ethernet/broadcom/bnx2.c j = BNX2_NEXT_TX_BD(j); j 5464 drivers/net/ethernet/broadcom/bnx2.c for (k = 0; k < last; k++, j = BNX2_NEXT_TX_BD(j)) { j 5465 drivers/net/ethernet/broadcom/bnx2.c tx_buf = &txr->tx_buf_ring[BNX2_TX_RING_IDX(j)]; j 5485 drivers/net/ethernet/broadcom/bnx2.c int j; j 5490 drivers/net/ethernet/broadcom/bnx2.c for (j = 0; j < bp->rx_max_ring_idx; j++) { j 5491 drivers/net/ethernet/broadcom/bnx2.c struct bnx2_sw_bd *rx_buf = &rxr->rx_buf_ring[j]; j 5506 drivers/net/ethernet/broadcom/bnx2.c for (j = 0; j < bp->rx_max_pg_ring_idx; j++) j 5507 drivers/net/ethernet/broadcom/bnx2.c bnx2_free_rx_page(bp, rxr, j); j 6533 drivers/net/ethernet/broadcom/bnx2.c int j = 0; j 6540 drivers/net/ethernet/broadcom/bnx2.c BNX2_TBDC_COMMAND_CMD_REG_ARB) && j < 100) j 6541 drivers/net/ethernet/broadcom/bnx2.c j++; j 8038 drivers/net/ethernet/broadcom/bnx2.c int rc, i, j; j 8073 drivers/net/ethernet/broadcom/bnx2.c j = pci_vpd_find_info_keyword(data, i, rosize, j 8075 drivers/net/ethernet/broadcom/bnx2.c if (j < 0) j 8078 drivers/net/ethernet/broadcom/bnx2.c len = pci_vpd_info_field_size(&data[j]); j 8080 drivers/net/ethernet/broadcom/bnx2.c j += PCI_VPD_INFO_FLD_HDR_SIZE; j 8081 drivers/net/ethernet/broadcom/bnx2.c if (j + len > block_end || len != 4 || j 8082 drivers/net/ethernet/broadcom/bnx2.c memcmp(&data[j], "1028", 4)) j 8085 drivers/net/ethernet/broadcom/bnx2.c j = pci_vpd_find_info_keyword(data, i, rosize, j 8087 drivers/net/ethernet/broadcom/bnx2.c if (j < 0) j 8090 drivers/net/ethernet/broadcom/bnx2.c len = pci_vpd_info_field_size(&data[j]); j 8092 drivers/net/ethernet/broadcom/bnx2.c j += PCI_VPD_INFO_FLD_HDR_SIZE; j 8093 drivers/net/ethernet/broadcom/bnx2.c if (j + len > block_end || len > BNX2_MAX_VER_SLEN) j 8096 drivers/net/ethernet/broadcom/bnx2.c memcpy(bp->fw_version, &data[j], len); j 8107 drivers/net/ethernet/broadcom/bnx2.c int rc, i, j; j 8287 drivers/net/ethernet/broadcom/bnx2.c j = strlen(bp->fw_version); j 8289 drivers/net/ethernet/broadcom/bnx2.c for (i = 0; i < 3 && j < 24; i++) { j 8293 drivers/net/ethernet/broadcom/bnx2.c bp->fw_version[j++] = 'b'; j 8294 drivers/net/ethernet/broadcom/bnx2.c bp->fw_version[j++] = 'c'; j 8295 drivers/net/ethernet/broadcom/bnx2.c bp->fw_version[j++] = ' '; j 8300 drivers/net/ethernet/broadcom/bnx2.c bp->fw_version[j++] = (num / k) + '0'; j 8305 drivers/net/ethernet/broadcom/bnx2.c bp->fw_version[j++] = '.'; j 8327 drivers/net/ethernet/broadcom/bnx2.c if (j < 32) j 8328 drivers/net/ethernet/broadcom/bnx2.c bp->fw_version[j++] = ' '; j 8329 drivers/net/ethernet/broadcom/bnx2.c for (i = 0; i < 3 && j < 28; i++) { j 8332 drivers/net/ethernet/broadcom/bnx2.c memcpy(&bp->fw_version[j], ®, 4); j 8333 drivers/net/ethernet/broadcom/bnx2.c j += 4; j 594 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c int err, j, frag_id = 0; j 622 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c for (i = 0, j = 0; i < pages; i += PAGES_PER_SGE, j++) { j 623 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c u16 sge_idx = RX_SGE(le16_to_cpu(cqe->sgl_or_raw_data.sgl[j])); j 648 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c skb_fill_page_desc(skb, j, old_rx_pg.page, j 1380 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c int j; j 1382 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c for_each_rx_queue_cnic(bp, j) { j 1383 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c struct bnx2x_fastpath *fp = &bp->fp[j]; j 1401 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c int i, j; j 1404 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c for_each_eth_queue(bp, j) { j 1405 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c struct bnx2x_fastpath *fp = &bp->fp[j]; j 1422 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c j); j 1446 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c j); j 1463 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c for_each_eth_queue(bp, j) { j 1464 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c struct bnx2x_fastpath *fp = &bp->fp[j]; j 1476 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (j != 0) j 1558 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c int j; j 1560 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c for_each_rx_queue_cnic(bp, j) { j 1561 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c bnx2x_free_rx_bds(&bp->fp[j]); j 1567 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c int j; j 1569 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c for_each_eth_queue(bp, j) { j 1570 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c struct bnx2x_fastpath *fp = &bp->fp[j]; j 860 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h int i, j; j 865 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h for (j = 0; j < 2; j++) { j 2511 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c int i, j; j 2516 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c for (i = 0, j = 0; i < DCBX_MAX_APP_PROTOCOL; i++) { j 2521 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c table[j].selector = bnx2x_dcbx_dcbnl_app_idtype(ent); j 2522 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c table[j].priority = bnx2x_dcbx_dcbnl_app_up(ent); j 2523 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c table[j++].protocol = ent->app_id; j 852 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c u32 i, j, k, n; j 869 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c for (j = 0; j < write_num; j++) { j 870 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c REG_WR(bp, write_addr[j], page_addr[i]); j 888 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c u32 i, j, addr; j 906 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c for (j = 0; j < idle_reg_addrs[i].size; j++) j 907 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c *p++ = REG_RD(bp, idle_reg_addrs[i].addr + j*4); j 915 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c for (j = 0; j < reg_addrs[i].size; j++) j 916 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c *p++ = REG_RD(bp, reg_addrs[i].addr + j*4); j 929 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c for (j = 0; j < wreg_addr_p->read_regs_count; j++) { j 931 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c *p++ = REG_RD(bp, addr + j*4); j 2387 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c int i, j, rc = -ENODEV; j 2452 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c for (j = 0; j < mem_tbl[i].size; j++) j 2453 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c REG_RD(bp, mem_tbl[i].offset + j*4); j 3187 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c int i, j, k, start; j 3198 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c for (j = 0; j < BNX2X_NUM_Q_STATS; j++) j 3199 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c snprintf(buf + (k + j)*ETH_GSTRING_LEN, j 3201 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c bnx2x_q_stats_arr[j].string, j 3207 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c for (i = 0, j = 0; i < BNX2X_NUM_STATS; i++) { j 3210 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c strcpy(buf + (k + j)*ETH_GSTRING_LEN, j 3212 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c j++; j 3239 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c int i, j, k = 0; j 3244 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c for (j = 0; j < BNX2X_NUM_Q_STATS; j++) { j 3245 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c if (bnx2x_q_stats_arr[j].size == 0) { j 3247 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c buf[k + j] = 0; j 3251 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c bnx2x_q_stats_arr[j].offset); j 3252 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c if (bnx2x_q_stats_arr[j].size == 4) { j 3254 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c buf[k + j] = (u64) *offset; j 3258 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c buf[k + j] = HILO_U64(*offset, *(offset + 1)); j 3265 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c for (i = 0, j = 0; i < BNX2X_NUM_STATS; i++) { j 3270 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c buf[k + j] = 0; j 3271 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c j++; j 3277 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c buf[k + j] = (u64) *offset; j 3278 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c j++; j 3282 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c buf[k + j] = HILO_U64(*offset, *(offset + 1)); j 3283 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c j++; j 7943 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c u8 i, j = 0, cnt = 0; j 7969 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c o_buf[j] = *((u8 *)data_array + i); j 7970 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c j++; j 693 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c int i, j, rc = 0; j 725 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c for (j = 0; j < REGS_IN_ENTRY; j++) j 726 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c regs[j] = REG_RD(bp, bar_storm_intmem[storm] + j 730 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c sizeof(u32) * j); j 903 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c u16 j; j 1016 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c for (j = 0; j < HC_SB_MAX_SM; j++) j 1018 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c fp->sb_running_index[j], j 1019 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c (j == HC_SB_MAX_SM - 1) ? ")" : " "); j 1022 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c for (j = 0; j < loop; j++) j 1024 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c fp->sb_index_values[j], j 1025 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c (j == loop - 1) ? ")" : " "); j 1040 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c for (j = 0; j < data_size; j++) j 1041 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c *(sb_data_p + j) = REG_RD(bp, BAR_CSTRORM_INTMEM + j 1043 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c j * sizeof(u32)); j 1064 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c for (j = 0; j < HC_SB_MAX_SM; j++) { j 1066 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c j, hc_sm_p[j].__flags, j 1067 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c hc_sm_p[j].igu_sb_id, j 1068 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c hc_sm_p[j].igu_seg_id, j 1069 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c hc_sm_p[j].time_to_expire, j 1070 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c hc_sm_p[j].timer_value); j 1074 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c for (j = 0; j < loop; j++) { j 1075 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c pr_cont("INDEX[%d] flags (0x%x) timeout (0x%x)\n", j, j 1076 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c hc_index_p[j].flags, j 1077 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c hc_index_p[j].timeout); j 1109 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c for (j = start; j != end; j = RX_BD(j + 1)) { j 1110 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c u32 *rx_bd = (u32 *)&fp->rx_desc_ring[j]; j 1111 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c struct sw_rx_bd *sw_bd = &fp->rx_buf_ring[j]; j 1114 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c i, j, rx_bd[1], rx_bd[0], sw_bd->data); j 1119 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c for (j = start; j != end; j = RX_SGE(j + 1)) { j 1120 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c u32 *rx_sge = (u32 *)&fp->rx_sge_ring[j]; j 1121 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c struct sw_rx_page *sw_page = &fp->rx_page_ring[j]; j 1124 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c i, j, rx_sge[1], rx_sge[0], sw_page->page); j 1129 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c for (j = start; j != end; j = RCQ_BD(j + 1)) { j 1130 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c u32 *cqe = (u32 *)&fp->rx_comp_ring[j]; j 1133 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c i, j, cqe[0], cqe[1], cqe[2], cqe[3]); j 1155 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c for (j = start; j != end; j = TX_BD(j + 1)) { j 1157 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c &txdata->tx_buf_ring[j]; j 1160 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c i, cos, j, sw_bd->skb, j 1166 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c for (j = start; j != end; j = TX_BD(j + 1)) { j 1167 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c u32 *tx_bd = (u32 *)&txdata->tx_desc_ring[j]; j 1170 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c i, cos, j, tx_bd[0], tx_bd[1], j 3940 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c u32 j, val; j 3944 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c for (j = 0; j < 1000; j++) { j 13480 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c u32 i, j, tmp; j 13482 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c for (i = 0, j = 0; i < n/8; i++, j += 2) { j 13483 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c tmp = be32_to_cpu(source[j]); j 13486 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c target[i].raw_data = be32_to_cpu(source[j + 1]); j 13497 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c u32 i, j, tmp; j 13499 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c for (i = 0, j = 0; i < n/sizeof(struct iro); i++) { j 13500 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c target[i].base = be32_to_cpu(source[j]); j 13501 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c j++; j 13502 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c tmp = be32_to_cpu(source[j]); j 13505 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c j++; j 13506 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c tmp = be32_to_cpu(source[j]); j 13509 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c j++; j 2777 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c int i, j, inner_start = last % BIT_VEC64_ELEM_SZ; j 2781 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c for (j = inner_start; j < BIT_VEC64_ELEM_SZ; j++) { j 2782 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c int cur_bit = j + BIT_VEC64_ELEM_SZ * i; j 1910 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c int j; j 1929 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c for_each_vfq(vf, j) { j 1930 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c struct bnx2x_vf_queue *rxq = vfq_get(vf, j); j 1933 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c vf->fw_stat_map + j * vf->stats_stride; j 1954 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c j, cur_query_entry->index); j 1652 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c int i, j; j 1660 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c for (i = 0, j = 0; i < tlv->n_mac_vlan_filters; i++) { j 1665 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c memset(&fl->filters[j], 0, sizeof(fl->filters[j])); j 1667 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c fl->filters[j].mac = msg_filter->mac; j 1668 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c fl->filters[j].type |= BNX2X_VF_FILTER_MAC; j 1671 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c fl->filters[j].vid = msg_filter->vlan_tag; j 1672 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c fl->filters[j].type |= BNX2X_VF_FILTER_VLAN; j 1674 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c fl->filters[j].add = !!(msg_filter->flags & VFPF_Q_FILTER_SET); j 1676 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c j++; j 407 drivers/net/ethernet/broadcom/bnxt/bnxt.c int j, push_len; j 434 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (j = 0; j < last_frag; j++) { j 435 drivers/net/ethernet/broadcom/bnxt/bnxt.c skb_frag_t *frag = &skb_shinfo(skb)->frags[j]; j 631 drivers/net/ethernet/broadcom/bnxt/bnxt.c int j, last; j 647 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (j = 0; j < last; j++) { j 653 drivers/net/ethernet/broadcom/bnxt/bnxt.c skb_frag_size(&skb_shinfo(skb)->frags[j]), j 2484 drivers/net/ethernet/broadcom/bnxt/bnxt.c int j; j 2486 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (j = 0; j < max_idx;) { j 2487 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_sw_tx_bd *tx_buf = &txr->tx_buf_ring[j]; j 2500 drivers/net/ethernet/broadcom/bnxt/bnxt.c j++; j 2506 drivers/net/ethernet/broadcom/bnxt/bnxt.c j++; j 2514 drivers/net/ethernet/broadcom/bnxt/bnxt.c j += 2; j 2524 drivers/net/ethernet/broadcom/bnxt/bnxt.c j += 2; j 2525 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (k = 0; k < last; k++, j++) { j 2526 drivers/net/ethernet/broadcom/bnxt/bnxt.c int ring_idx = j & bp->tx_ring_mask; j 2554 drivers/net/ethernet/broadcom/bnxt/bnxt.c int j; j 2557 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (j = 0; j < bp->max_tpa; j++) { j 2559 drivers/net/ethernet/broadcom/bnxt/bnxt.c &rxr->rx_tpa[j]; j 2577 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (j = 0; j < max_idx; j++) { j 2578 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_sw_rx_bd *rx_buf = &rxr->rx_buf_ring[j]; j 2602 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (j = 0; j < max_agg_idx; j++) { j 2604 drivers/net/ethernet/broadcom/bnxt/bnxt.c &rxr->rx_agg_ring[j]; j 2616 drivers/net/ethernet/broadcom/bnxt/bnxt.c __clear_bit(j, rxr->rx_agg_bmap); j 2735 drivers/net/ethernet/broadcom/bnxt/bnxt.c int i, j, total_aggs = 0; j 2760 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (j = 1; j < bp->max_tpa; j++) j 2761 drivers/net/ethernet/broadcom/bnxt/bnxt.c rxr->rx_tpa[j].agg_arr = agg + j * MAX_SKB_FRAGS; j 2906 drivers/net/ethernet/broadcom/bnxt/bnxt.c int i, j, rc; j 2924 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (i = 0, j = 0; i < bp->tx_nr_rings; i++) { j 2954 drivers/net/ethernet/broadcom/bnxt/bnxt.c qidx = bp->tc_to_qidx[j]; j 2959 drivers/net/ethernet/broadcom/bnxt/bnxt.c j++; j 2975 drivers/net/ethernet/broadcom/bnxt/bnxt.c int j; j 2985 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (j = 0; j < 2; j++) { j 2986 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[j]; j 2992 drivers/net/ethernet/broadcom/bnxt/bnxt.c cpr->cp_ring_arr[j] = NULL; j 3149 drivers/net/ethernet/broadcom/bnxt/bnxt.c int j; j 3156 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (j = 0; j < RX_DESC_CNT; j++, rxbd++, prod++) { j 3250 drivers/net/ethernet/broadcom/bnxt/bnxt.c int i, j; j 3259 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (j = 0; j < 2; j++) { j 3260 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[j]; j 3373 drivers/net/ethernet/broadcom/bnxt/bnxt.c int j; j 3376 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (j = 0; j < BNXT_MAX_CTX_PER_VNIC; j++) j 3377 drivers/net/ethernet/broadcom/bnxt/bnxt.c vnic->fw_rss_cos_lb_ctx[j] = INVALID_HW_RING_ID; j 3962 drivers/net/ethernet/broadcom/bnxt/bnxt.c int i, j, rc, size, arr_size; j 4023 drivers/net/ethernet/broadcom/bnxt/bnxt.c j = 0; j 4025 drivers/net/ethernet/broadcom/bnxt/bnxt.c j = bp->rx_nr_rings; j 4027 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (i = 0; i < bp->tx_nr_rings; i++, j++) { j 4033 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr->bnapi = bp->bnapi[j]; j 4034 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->bnapi[j]->tx_ring = txr; j 4038 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->bnapi[j]->tx_int = bnxt_tx_int; j 4040 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->bnapi[j]->flags |= BNXT_NAPI_FLAG_XDP; j 4041 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->bnapi[j]->tx_int = bnxt_tx_int_xdp; j 4304 drivers/net/ethernet/broadcom/bnxt/bnxt.c int j; j 4332 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (j = 0; j < HWRM_VALID_BIT_DELAY_USEC; j++) { j 4340 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (j >= HWRM_VALID_BIT_DELAY_USEC) { j 4712 drivers/net/ethernet/broadcom/bnxt/bnxt.c u16 i, j, num_of_vnics = 1; /* only vnic 0 supported */ j 4720 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (j = 0; j < vnic->uc_filter_count; j++) { j 4726 drivers/net/ethernet/broadcom/bnxt/bnxt.c req.l2_filter_id = vnic->fw_l2_filter_id[j]; j 4833 drivers/net/ethernet/broadcom/bnxt/bnxt.c u32 i, j, max_rings; j 4855 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (i = 0, j = 0; i < HW_HASH_INDEX_SIZE; i++, j++) { j 4856 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (j == max_rings) j 4857 drivers/net/ethernet/broadcom/bnxt/bnxt.c j = 0; j 4858 drivers/net/ethernet/broadcom/bnxt/bnxt.c vnic->rss_table[i] = cpu_to_le16(vnic->fw_grp_ids[j]); j 4872 drivers/net/ethernet/broadcom/bnxt/bnxt.c u32 i, j, k, nr_ctxs, max_rings = bp->rx_nr_rings; j 4893 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (j = 0; j < 64; j++) { j 4948 drivers/net/ethernet/broadcom/bnxt/bnxt.c int i, j; j 4953 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (j = 0; j < BNXT_MAX_CTX_PER_VNIC; j++) { j 4954 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (vnic->fw_rss_cos_lb_ctx[j] != INVALID_HW_RING_ID) j 4955 drivers/net/ethernet/broadcom/bnxt/bnxt.c bnxt_hwrm_vnic_ctx_free_one(bp, i, j); j 5090 drivers/net/ethernet/broadcom/bnxt/bnxt.c unsigned int i, j, grp_idx, end_idx = start_rx_ring_idx + nr_rings; j 5099 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (i = start_rx_ring_idx, j = 0; i < end_idx; i++, j++) { j 5103 drivers/net/ethernet/broadcom/bnxt/bnxt.c j, nr_rings); j 5106 drivers/net/ethernet/broadcom/bnxt/bnxt.c vnic->fw_grp_ids[j] = bp->grp_info[grp_idx].fw_grp_id; j 5625 drivers/net/ethernet/broadcom/bnxt/bnxt.c int j; j 5627 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (j = 0; j < 2; j++) { j 5628 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[j]; j 7166 drivers/net/ethernet/broadcom/bnxt/bnxt.c u8 i, j, *qptr; j 7187 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (i = 0, j = 0; i < bp->max_tc; i++) { j 7188 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->q_info[j].queue_id = *qptr; j 7190 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->q_info[j].queue_profile = *qptr++; j 7191 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->tc_to_qidx[j] = j; j 7192 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (!BNXT_CNPQ(bp->q_info[j].queue_profile) || j 7194 drivers/net/ethernet/broadcom/bnxt/bnxt.c j++; j 7197 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->max_tc = max_t(u8, j, 1); j 7384 drivers/net/ethernet/broadcom/bnxt/bnxt.c int i, j; j 7398 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (j = 0; j < bp->max_q; j++) { j 7399 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (bp->q_ids[j] == queue_id) j 8199 drivers/net/ethernet/broadcom/bnxt/bnxt.c int i, j, rc = 0; j 8217 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (i = 0, j = 0; i < bp->cp_nr_rings; i++) { j 8226 drivers/net/ethernet/broadcom/bnxt/bnxt.c j); j 8227 drivers/net/ethernet/broadcom/bnxt/bnxt.c j++; j 10209 drivers/net/ethernet/broadcom/bnxt/bnxt.c int j; j 10215 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (j = 0; j < 2; j++) { j 10216 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_cp_ring_info *cpr2 = cpr->cp_ring_arr[j]; j 11046 drivers/net/ethernet/broadcom/bnxt/bnxt.c int off = 0, j; j 11049 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (j = 0; j < vnic->uc_filter_count; j++, off += ETH_ALEN) { j 11052 drivers/net/ethernet/broadcom/bnxt/bnxt.c l2_idx = j + 1; j 26 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c int i, j; j 30 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c for (j = 0; j < bp->max_tc; j++) { j 31 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c if (bp->tc_to_qidx[j] == i) j 32 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c return j; j 180 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c int i, j, rc; j 183 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c for (i = 0, j = 0; i < max; ) { j 185 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c if (BNXT_LLQ(bp->q_info[j].queue_profile)) { j 186 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c bp->tc_to_qidx[i] = j; j 187 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c __set_bit(j, &qmap); j 190 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c j++; j 196 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c for (i = 0, j = 0; i < max; i++) { j 199 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c j = find_next_zero_bit(&qmap, max, j); j 200 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c bp->tc_to_qidx[i] = j; j 201 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c __set_bit(j, &qmap); j 202 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c j++; j 534 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c u32 i, j = 0; j 540 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c j += bnxt_get_num_ring_stats(bp) + BNXT_NUM_SW_FUNC_STATS; j 553 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c for (k = 0; k < stat_fields; j++, k++) j 554 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c buf[j] = le64_to_cpu(hw_stats[k]); j 555 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c buf[j++] = cpr->rx_l4_csum_errors; j 556 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c buf[j++] = cpr->rx_buf_errors; j 557 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c buf[j++] = cpr->missed_irqs; j 565 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c for (i = 0; i < BNXT_NUM_SW_FUNC_STATS; i++, j++) j 566 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c buf[j] = bnxt_sw_func_stats[i].counter; j 572 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c for (i = 0; i < BNXT_NUM_PORT_STATS; i++, j++) { j 573 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c buf[j] = le64_to_cpu(*(port_stats + j 581 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c for (i = 0; i < bp->fw_rx_stats_ext_size; i++, j++) { j 582 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c buf[j] = le64_to_cpu(*(rx_port_stats_ext + j 585 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c for (i = 0; i < bp->fw_tx_stats_ext_size; i++, j++) { j 586 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c buf[j] = le64_to_cpu(*(tx_port_stats_ext + j 590 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c for (i = 0; i < 8; i++, j++) { j 594 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c buf[j] = le64_to_cpu(*(rx_port_stats_ext + n)); j 596 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c for (i = 0; i < 8; i++, j++) { j 600 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c buf[j] = le64_to_cpu(*(rx_port_stats_ext + n)); j 602 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c for (i = 0; i < 8; i++, j++) { j 606 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c buf[j] = le64_to_cpu(*(tx_port_stats_ext + n)); j 608 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c for (i = 0; i < 8; i++, j++) { j 612 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c buf[j] = le64_to_cpu(*(tx_port_stats_ext + n)); j 619 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c for (i = 0; i < BNXT_NUM_PCIE_STATS; i++, j++) { j 620 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c buf[j] = le64_to_cpu(*(pcie_stats + j 630 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c u32 i, j, num_str; j 636 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c for (j = 0; j < num_str; j++) { j 638 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c bnxt_ring_stats_str[j]); j 651 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c for (j = 0; j < num_str; j++) { j 652 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c sprintf(buf, "[%d]: %s", i, str[j]); j 657 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c for (j = 0; j < num_str; j++) { j 659 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c bnxt_ring_sw_stats_str[j]); j 902 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c int i, j = 0; j 912 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c if (j == cmd->rule_cnt) j 914 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c rule_locs[j++] = fltr->sw_id; j 917 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c if (j == cmd->rule_cnt) j 920 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c cmd->rule_cnt = j; j 408 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c u32 nr_pages, size, i, j, k = 0; j 430 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c for (j = 0; j < BNXT_HWRM_REQS_PER_PAGE && k < num_vfs; j++) { j 434 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c j * BNXT_HWRM_REQ_MAX_SIZE; j 436 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c bp->pf.hwrm_cmd_req_dma_addr[i] + j * j 925 drivers/net/ethernet/broadcom/cnic.c u32 j, reg, off, lo, hi; j 935 drivers/net/ethernet/broadcom/cnic.c for (j = lo; j < hi; j += cp->cids_per_blk, k++) j 936 drivers/net/ethernet/broadcom/cnic.c cp->ctx_arr[k].cid = j; j 1011 drivers/net/ethernet/broadcom/cnic.c int j = i + 1; j 1013 drivers/net/ethernet/broadcom/cnic.c if (j >= KCQ_PAGE_CNT) j 1014 drivers/net/ethernet/broadcom/cnic.c j = 0; j 1015 drivers/net/ethernet/broadcom/cnic.c next->addr_hi = (u64) info->dma.pg_map_arr[j] >> 32; j 1016 drivers/net/ethernet/broadcom/cnic.c next->addr_lo = info->dma.pg_map_arr[j] & 0xffffffff; j 1244 drivers/net/ethernet/broadcom/cnic.c int i, j, n, ret, pages; j 1284 drivers/net/ethernet/broadcom/cnic.c for (i = 0, j = 0; i < cp->max_cid_space; i++) { j 1287 drivers/net/ethernet/broadcom/cnic.c cp->ctx_tbl[i].kwqe_data = kwq_16_dma->pg_arr[j] + off; j 1288 drivers/net/ethernet/broadcom/cnic.c cp->ctx_tbl[i].kwqe_data_mapping = kwq_16_dma->pg_map_arr[j] + j 1292 drivers/net/ethernet/broadcom/cnic.c j++; j 1701 drivers/net/ethernet/broadcom/cnic.c int i, j, n = 2, n_max; j 1807 drivers/net/ethernet/broadcom/cnic.c for (i = 1, j = 1; i < cp->num_cqs; i++, j++) { j 1808 drivers/net/ethernet/broadcom/cnic.c if (j == 3) { j 1812 drivers/net/ethernet/broadcom/cnic.c j = 0; j 1816 drivers/net/ethernet/broadcom/cnic.c req3->qp_first_pte[j].hi; j 1818 drivers/net/ethernet/broadcom/cnic.c req3->qp_first_pte[j].lo; j 2546 drivers/net/ethernet/broadcom/cnic.c int j; j 2551 drivers/net/ethernet/broadcom/cnic.c for (j = 0; j < 5; j++) { j 2830 drivers/net/ethernet/broadcom/cnic.c int i, j, comp = 0; j 2833 drivers/net/ethernet/broadcom/cnic.c j = 1; j 2843 drivers/net/ethernet/broadcom/cnic.c while (j < num_cqes) { j 2844 drivers/net/ethernet/broadcom/cnic.c u32 next_op = cp->completed_kcq[i + j]->kcqe_op_flag; j 2851 drivers/net/ethernet/broadcom/cnic.c j++; j 2874 drivers/net/ethernet/broadcom/cnic.c cp->completed_kcq + i, j); j 2878 drivers/net/ethernet/broadcom/cnic.c num_cqes -= j; j 2879 drivers/net/ethernet/broadcom/cnic.c i += j; j 2880 drivers/net/ethernet/broadcom/cnic.c j = 1; j 4392 drivers/net/ethernet/broadcom/cnic.c int j; j 4404 drivers/net/ethernet/broadcom/cnic.c for (j = 0; j < 10; j++) { j 944 drivers/net/ethernet/broadcom/genet/bcmgenet.c int i, j = 0; j 965 drivers/net/ethernet/broadcom/genet/bcmgenet.c UMAC_MIB_START + j + offset); j 982 drivers/net/ethernet/broadcom/genet/bcmgenet.c j += s->stat_sizeof; j 3336 drivers/net/ethernet/broadcom/tg3.c int i, j, rc = 0; j 3366 drivers/net/ethernet/broadcom/tg3.c for (j = 0; j < 1000; j++) { j 3397 drivers/net/ethernet/broadcom/tg3.c int j; j 3402 drivers/net/ethernet/broadcom/tg3.c for (j = 0; j < pagesize; j += 4) { j 3403 drivers/net/ethernet/broadcom/tg3.c ret = tg3_nvram_read_be32(tp, phy_addr + j, j 3404 drivers/net/ethernet/broadcom/tg3.c (__be32 *) (tmp + j)); j 3448 drivers/net/ethernet/broadcom/tg3.c for (j = 0; j < pagesize; j += 4) { j 3451 drivers/net/ethernet/broadcom/tg3.c data = *((__be32 *) (tmp + j)); j 3455 drivers/net/ethernet/broadcom/tg3.c tw32(NVRAM_ADDR, phy_addr + j); j 3460 drivers/net/ethernet/broadcom/tg3.c if (j == 0) j 3462 drivers/net/ethernet/broadcom/tg3.c else if (j == (pagesize - 4)) j 8550 drivers/net/ethernet/broadcom/tg3.c int i, j; j 8552 drivers/net/ethernet/broadcom/tg3.c for (j = 0; j < tp->irq_cnt; j++) { j 8553 drivers/net/ethernet/broadcom/tg3.c struct tg3_napi *tnapi = &tp->napi[j]; j 8571 drivers/net/ethernet/broadcom/tg3.c netdev_tx_reset_queue(netdev_get_tx_queue(tp->dev, j)); j 9204 drivers/net/ethernet/broadcom/tg3.c int j; j 9208 drivers/net/ethernet/broadcom/tg3.c for (j = 0; j < 5000; j++) j 9719 drivers/net/ethernet/broadcom/tg3.c int j, k; j 9723 drivers/net/ethernet/broadcom/tg3.c for (j = 0; j < len; j++) { j 9724 drivers/net/ethernet/broadcom/tg3.c reg ^= buf[j]; j 12892 drivers/net/ethernet/broadcom/tg3.c int i, j, k, err = 0, size; j 12939 drivers/net/ethernet/broadcom/tg3.c for (i = 0, j = 0; i < size; i += 4, j++) { j 12940 drivers/net/ethernet/broadcom/tg3.c err = tg3_nvram_read_be32(tp, i, &buf[j]); j 12981 drivers/net/ethernet/broadcom/tg3.c for (i = 0, j = 0, k = 0; i < NVRAM_SELFBOOT_HW_SIZE; i++) { j 13001 drivers/net/ethernet/broadcom/tg3.c data[j++] = buf8[i]; j 13037 drivers/net/ethernet/broadcom/tg3.c j = pci_vpd_lrdt_size(&((u8 *)buf)[i]); j 13038 drivers/net/ethernet/broadcom/tg3.c if (j < 0) j 13041 drivers/net/ethernet/broadcom/tg3.c if (i + PCI_VPD_LRDT_TAG_SIZE + j > len) j 13045 drivers/net/ethernet/broadcom/tg3.c j = pci_vpd_find_info_keyword((u8 *)buf, i, j, j 13047 drivers/net/ethernet/broadcom/tg3.c if (j > 0) { j 13050 drivers/net/ethernet/broadcom/tg3.c j += PCI_VPD_INFO_FLD_HDR_SIZE; j 13052 drivers/net/ethernet/broadcom/tg3.c for (i = 0; i <= j; i++) j 13318 drivers/net/ethernet/broadcom/tg3.c u32 j; j 13321 drivers/net/ethernet/broadcom/tg3.c for (j = 0; j < len; j += 4) { j 13324 drivers/net/ethernet/broadcom/tg3.c tg3_write_mem(tp, offset + j, test_pattern[i]); j 13325 drivers/net/ethernet/broadcom/tg3.c tg3_read_mem(tp, offset + j, &val); j 15637 drivers/net/ethernet/broadcom/tg3.c int j, i = 0; j 15654 drivers/net/ethernet/broadcom/tg3.c j = pci_vpd_find_info_keyword(vpd_data, i, rosize, j 15656 drivers/net/ethernet/broadcom/tg3.c if (j > 0) { j 15657 drivers/net/ethernet/broadcom/tg3.c len = pci_vpd_info_field_size(&vpd_data[j]); j 15659 drivers/net/ethernet/broadcom/tg3.c j += PCI_VPD_INFO_FLD_HDR_SIZE; j 15660 drivers/net/ethernet/broadcom/tg3.c if (j + len > block_end || len != 4 || j 15661 drivers/net/ethernet/broadcom/tg3.c memcmp(&vpd_data[j], "1028", 4)) j 15664 drivers/net/ethernet/broadcom/tg3.c j = pci_vpd_find_info_keyword(vpd_data, i, rosize, j 15666 drivers/net/ethernet/broadcom/tg3.c if (j < 0) j 15669 drivers/net/ethernet/broadcom/tg3.c len = pci_vpd_info_field_size(&vpd_data[j]); j 15671 drivers/net/ethernet/broadcom/tg3.c j += PCI_VPD_INFO_FLD_HDR_SIZE; j 15672 drivers/net/ethernet/broadcom/tg3.c if (j + len > block_end) j 15679 drivers/net/ethernet/broadcom/tg3.c &vpd_data[j]); j 260 drivers/net/ethernet/brocade/bna/bna_tx_rx.c int j; j 268 drivers/net/ethernet/brocade/bna/bna_tx_rx.c j = (block_idx * (BFI_ENET_VLAN_BLOCK_SIZE / 32)) + i; j 271 drivers/net/ethernet/brocade/bna/bna_tx_rx.c htonl(rxf->vlan_filter_table[j]); j 2687 drivers/net/ethernet/brocade/bna/bna_tx_rx.c int i, j; j 2690 drivers/net/ethernet/brocade/bna/bna_tx_rx.c for (j = 0; j < BNA_BIAS_T_MAX; j++) j 2691 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna->rx_mod.dim_vector[i][j] = vector[i][j]; j 794 drivers/net/ethernet/brocade/bna/bnad.c int i, j; j 826 drivers/net/ethernet/brocade/bna/bnad.c for (j = 0; j < bnad->num_txq_per_tx; j++) { j 827 drivers/net/ethernet/brocade/bna/bnad.c tcb = bnad->tx_info[i].tcb[j]; j 829 drivers/net/ethernet/brocade/bna/bnad.c bnad_tx_complete(bnad, bnad->tx_info[i].tcb[j]); j 837 drivers/net/ethernet/brocade/bna/bnad.c for (j = 0; j < bnad->num_rxp_per_rx; j++) { j 838 drivers/net/ethernet/brocade/bna/bnad.c rx_ctrl = &rx_info->rx_ctrl[j]; j 1238 drivers/net/ethernet/brocade/bna/bnad.c int i, j; j 1248 drivers/net/ethernet/brocade/bna/bnad.c for (j = 0; j < BNAD_MAX_RXQ_PER_RXP; j++) { j 1249 drivers/net/ethernet/brocade/bna/bnad.c rcb = ccb->rcb[j]; j 1748 drivers/net/ethernet/brocade/bna/bnad.c int i, j; j 1759 drivers/net/ethernet/brocade/bna/bnad.c for (j = 0; j < bnad->num_rxp_per_rx; j++) { j 1760 drivers/net/ethernet/brocade/bna/bnad.c rx_ctrl = &rx_info->rx_ctrl[j]; j 2388 drivers/net/ethernet/brocade/bna/bnad.c int i, j; j 2391 drivers/net/ethernet/brocade/bna/bnad.c for (j = 0; j < bnad->num_rxp_per_rx; j++) { j 2392 drivers/net/ethernet/brocade/bna/bnad.c if (bnad->rx_info[i].rx_ctrl[j].ccb) { j 2394 drivers/net/ethernet/brocade/bna/bnad.c rx_ctrl[j].ccb->rcb[0]->rxq->rx_packets; j 2396 drivers/net/ethernet/brocade/bna/bnad.c rx_ctrl[j].ccb->rcb[0]->rxq->rx_bytes; j 2397 drivers/net/ethernet/brocade/bna/bnad.c if (bnad->rx_info[i].rx_ctrl[j].ccb->rcb[1] && j 2398 drivers/net/ethernet/brocade/bna/bnad.c bnad->rx_info[i].rx_ctrl[j].ccb-> j 2401 drivers/net/ethernet/brocade/bna/bnad.c bnad->rx_info[i].rx_ctrl[j]. j 2404 drivers/net/ethernet/brocade/bna/bnad.c bnad->rx_info[i].rx_ctrl[j]. j 2411 drivers/net/ethernet/brocade/bna/bnad.c for (j = 0; j < bnad->num_txq_per_tx; j++) { j 2412 drivers/net/ethernet/brocade/bna/bnad.c if (bnad->tx_info[i].tcb[j]) { j 2414 drivers/net/ethernet/brocade/bna/bnad.c bnad->tx_info[i].tcb[j]->txq->tx_packets; j 2416 drivers/net/ethernet/brocade/bna/bnad.c bnad->tx_info[i].tcb[j]->txq->tx_bytes; j 3386 drivers/net/ethernet/brocade/bna/bnad.c int i, j; j 3403 drivers/net/ethernet/brocade/bna/bnad.c for (j = 0; j < bnad->num_rxp_per_rx; j++) { j 3404 drivers/net/ethernet/brocade/bna/bnad.c rx_ctrl = &rx_info->rx_ctrl[j]; j 532 drivers/net/ethernet/brocade/bna/bnad_ethtool.c int i, j, q_num; j 608 drivers/net/ethernet/brocade/bna/bnad_ethtool.c for (j = 0; j < bnad->num_rxp_per_rx; j++) { j 634 drivers/net/ethernet/brocade/bna/bnad_ethtool.c for (j = 0; j < bnad->num_rxp_per_rx; j++) { j 651 drivers/net/ethernet/brocade/bna/bnad_ethtool.c if (bnad->rx_info[i].rx_ctrl[j].ccb && j 652 drivers/net/ethernet/brocade/bna/bnad_ethtool.c bnad->rx_info[i].rx_ctrl[j].ccb-> j 654 drivers/net/ethernet/brocade/bna/bnad_ethtool.c bnad->rx_info[i].rx_ctrl[j].ccb-> j 684 drivers/net/ethernet/brocade/bna/bnad_ethtool.c for (j = 0; j < bnad->num_txq_per_tx; j++) { j 713 drivers/net/ethernet/brocade/bna/bnad_ethtool.c int i, j, count = 0, rxf_active_num = 0, txf_active_num = 0; j 737 drivers/net/ethernet/brocade/bna/bnad_ethtool.c for (j = 0; j < bnad->num_rxp_per_rx; j++) j 738 drivers/net/ethernet/brocade/bna/bnad_ethtool.c if (bnad->rx_info[i].rx_ctrl[j].ccb && j 739 drivers/net/ethernet/brocade/bna/bnad_ethtool.c bnad->rx_info[i].rx_ctrl[j].ccb->rcb[1] && j 740 drivers/net/ethernet/brocade/bna/bnad_ethtool.c bnad->rx_info[i].rx_ctrl[j].ccb->rcb[1]->rxq) j 755 drivers/net/ethernet/brocade/bna/bnad_ethtool.c int i, j; j 762 drivers/net/ethernet/brocade/bna/bnad_ethtool.c for (j = 0; j < bnad->num_rxp_per_rx; j++) j 763 drivers/net/ethernet/brocade/bna/bnad_ethtool.c if (bnad->rx_info[i].rx_ctrl[j].ccb && j 764 drivers/net/ethernet/brocade/bna/bnad_ethtool.c bnad->rx_info[i].rx_ctrl[j].ccb->rcb[0] && j 765 drivers/net/ethernet/brocade/bna/bnad_ethtool.c bnad->rx_info[i].rx_ctrl[j].ccb->rcb[0]->rxq) { j 766 drivers/net/ethernet/brocade/bna/bnad_ethtool.c buf[bi++] = bnad->rx_info[i].rx_ctrl[j]. j 769 drivers/net/ethernet/brocade/bna/bnad_ethtool.c buf[bi++] = *(bnad->rx_info[i].rx_ctrl[j]. j 773 drivers/net/ethernet/brocade/bna/bnad_ethtool.c rx_ctrl[j].rx_intr_ctr; j 775 drivers/net/ethernet/brocade/bna/bnad_ethtool.c rx_ctrl[j].rx_poll_ctr; j 777 drivers/net/ethernet/brocade/bna/bnad_ethtool.c rx_ctrl[j].rx_schedule; j 779 drivers/net/ethernet/brocade/bna/bnad_ethtool.c rx_ctrl[j].rx_keep_poll; j 781 drivers/net/ethernet/brocade/bna/bnad_ethtool.c rx_ctrl[j].rx_complete; j 787 drivers/net/ethernet/brocade/bna/bnad_ethtool.c for (j = 0; j < bnad->num_rxp_per_rx; j++) j 788 drivers/net/ethernet/brocade/bna/bnad_ethtool.c if (bnad->rx_info[i].rx_ctrl[j].ccb) { j 789 drivers/net/ethernet/brocade/bna/bnad_ethtool.c if (bnad->rx_info[i].rx_ctrl[j].ccb->rcb[0] && j 790 drivers/net/ethernet/brocade/bna/bnad_ethtool.c bnad->rx_info[i].rx_ctrl[j].ccb-> j 792 drivers/net/ethernet/brocade/bna/bnad_ethtool.c rcb = bnad->rx_info[i].rx_ctrl[j]. j 804 drivers/net/ethernet/brocade/bna/bnad_ethtool.c if (bnad->rx_info[i].rx_ctrl[j].ccb->rcb[1] && j 805 drivers/net/ethernet/brocade/bna/bnad_ethtool.c bnad->rx_info[i].rx_ctrl[j].ccb-> j 807 drivers/net/ethernet/brocade/bna/bnad_ethtool.c rcb = bnad->rx_info[i].rx_ctrl[j]. j 825 drivers/net/ethernet/brocade/bna/bnad_ethtool.c for (j = 0; j < bnad->num_txq_per_tx; j++) j 826 drivers/net/ethernet/brocade/bna/bnad_ethtool.c if (bnad->tx_info[i].tcb[j] && j 827 drivers/net/ethernet/brocade/bna/bnad_ethtool.c bnad->tx_info[i].tcb[j]->txq) { j 828 drivers/net/ethernet/brocade/bna/bnad_ethtool.c tcb = bnad->tx_info[i].tcb[j]; j 845 drivers/net/ethernet/brocade/bna/bnad_ethtool.c int i, j, bi = 0; j 904 drivers/net/ethernet/brocade/bna/bnad_ethtool.c for (j = 0; j < sizeof(struct bfi_enet_stats_txf) / j 905 drivers/net/ethernet/brocade/bna/bnad_ethtool.c sizeof(u64); j++) j 906 drivers/net/ethernet/brocade/bna/bnad_ethtool.c buf[bi++] = stats64[j]; j 917 drivers/net/ethernet/brocade/bna/bnad_ethtool.c for (j = 0; j < sizeof(struct bfi_enet_stats_rxf) / j 918 drivers/net/ethernet/brocade/bna/bnad_ethtool.c sizeof(u64); j++) j 919 drivers/net/ethernet/brocade/bna/bnad_ethtool.c buf[bi++] = stats64[j]; j 2333 drivers/net/ethernet/cadence/macb_main.c int i, j, bitval; j 2336 drivers/net/ethernet/cadence/macb_main.c for (j = 0; j < 6; j++) { j 2338 drivers/net/ethernet/cadence/macb_main.c bitval ^= hash_bit_value(i * 6 + j, addr); j 2340 drivers/net/ethernet/cadence/macb_main.c hash_index |= (bitval << j); j 82 drivers/net/ethernet/cavium/liquidio/lio_core.c int i, j; j 130 drivers/net/ethernet/cavium/liquidio/lio_core.c for (j = 0; j < lio->tx_qsize; j++) { j 139 drivers/net/ethernet/cavium/liquidio/lio_core.c (j * lio->glist_entry_size); j 142 drivers/net/ethernet/cavium/liquidio/lio_core.c (j * lio->glist_entry_size); j 147 drivers/net/ethernet/cavium/liquidio/lio_core.c if (j != lio->tx_qsize) { j 995 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c int j; j 1058 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (j = 0; j < lio->linfo.num_rxpciq; j++) { j 1059 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c lio->linfo.rxpciq[j].u64 = j 1060 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c resp->cfg_info.linfo.rxpciq[j].u64; j 1063 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (j = 0; j < lio->linfo.num_txpciq; j++) { j 1064 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c lio->linfo.txpciq[j].u64 = j 1065 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c resp->cfg_info.linfo.txpciq[j].u64; j 1432 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c int i = 0, j; j 1633 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (j = 0; j < MAX_OCTEON_INSTR_QUEUES(oct_dev); j++) { j 1634 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c if (!(oct_dev->io_qmask.iq & BIT_ULL(j))) j 1638 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c data[i++] = CVM_CAST64(oct_dev->instr_queue[j]->stats.tx_done); j 1641 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->instr_queue[j]->stats.tx_tot_bytes); j 1644 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->instr_queue[j]->stats.tx_dropped); j 1647 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->instr_queue[j]->stats.tx_iq_busy); j 1650 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->instr_queue[j]->stats.sgentry_sent); j 1655 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->instr_queue[j]->stats.instr_posted); j 1658 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_dev->instr_queue[j]->stats.instr_processed); j 1661 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_dev->instr_queue[j]->stats.instr_dropped); j 1664 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->instr_queue[j]->stats.bytes_sent); j 1667 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c data[i++] = CVM_CAST64(oct_dev->instr_queue[j]->stats.tx_gso); j 1669 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c data[i++] = CVM_CAST64(oct_dev->instr_queue[j]->stats.tx_vxlan); j 1672 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->instr_queue[j]->stats.tx_restart); j 1676 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (j = 0; j < MAX_OCTEON_OUTPUT_QUEUES(oct_dev); j++) { j 1677 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c if (!(oct_dev->io_qmask.oq & BIT_ULL(j))) j 1683 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->droq[j]->stats.rx_pkts_received); j 1686 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->droq[j]->stats.rx_bytes_received); j 1688 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c data[i++] = CVM_CAST64(oct_dev->droq[j]->stats.dropped_nomem + j 1689 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_dev->droq[j]->stats.dropped_toomany + j 1690 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_dev->droq[j]->stats.rx_dropped); j 1692 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->droq[j]->stats.dropped_nomem); j 1694 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->droq[j]->stats.dropped_toomany); j 1696 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->droq[j]->stats.rx_dropped); j 1700 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->droq[j]->stats.pkts_received); j 1702 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->droq[j]->stats.bytes_received); j 1704 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->droq[j]->stats.dropped_nodispatch); j 1707 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->droq[j]->stats.rx_vxlan); j 1709 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->droq[j]->stats.rx_alloc_failure); j 1721 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c int i = 0, j, vj; j 1756 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c j = lio->linfo.txpciq[vj].s.q_no; j 1760 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c data[i++] = CVM_CAST64(oct_dev->instr_queue[j]->stats.tx_done); j 1763 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_dev->instr_queue[j]->stats.tx_tot_bytes); j 1766 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_dev->instr_queue[j]->stats.tx_dropped); j 1769 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_dev->instr_queue[j]->stats.tx_iq_busy); j 1772 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_dev->instr_queue[j]->stats.sgentry_sent); j 1777 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_dev->instr_queue[j]->stats.instr_posted); j 1780 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->instr_queue[j]->stats.instr_processed); j 1783 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->instr_queue[j]->stats.instr_dropped); j 1786 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_dev->instr_queue[j]->stats.bytes_sent); j 1788 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c data[i++] = CVM_CAST64(oct_dev->instr_queue[j]->stats.tx_gso); j 1790 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c data[i++] = CVM_CAST64(oct_dev->instr_queue[j]->stats.tx_vxlan); j 1793 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_dev->instr_queue[j]->stats.tx_restart); j 1798 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c j = lio->linfo.rxpciq[vj].s.q_no; j 1803 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_dev->droq[j]->stats.rx_pkts_received); j 1806 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_dev->droq[j]->stats.rx_bytes_received); j 1807 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c data[i++] = CVM_CAST64(oct_dev->droq[j]->stats.dropped_nomem + j 1808 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_dev->droq[j]->stats.dropped_toomany + j 1809 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_dev->droq[j]->stats.rx_dropped); j 1810 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c data[i++] = CVM_CAST64(oct_dev->droq[j]->stats.dropped_nomem); j 1811 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c data[i++] = CVM_CAST64(oct_dev->droq[j]->stats.dropped_toomany); j 1812 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c data[i++] = CVM_CAST64(oct_dev->droq[j]->stats.rx_dropped); j 1815 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c data[i++] = CVM_CAST64(oct_dev->droq[j]->stats.pkts_received); j 1816 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c data[i++] = CVM_CAST64(oct_dev->droq[j]->stats.bytes_received); j 1818 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->droq[j]->stats.dropped_nodispatch); j 1820 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c data[i++] = CVM_CAST64(oct_dev->droq[j]->stats.rx_vxlan); j 1822 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c CVM_CAST64(oct_dev->droq[j]->stats.rx_alloc_failure); j 1852 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c int num_iq_stats, num_oq_stats, i, j; j 1858 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (j = 0; j < num_stats; j++) { j 1859 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c sprintf(data, "%s", oct_stats_strings[j]); j 1867 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (j = 0; j < num_iq_stats; j++) { j 1869 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_iq_stats_strings[j]); j 1878 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (j = 0; j < num_oq_stats; j++) { j 1880 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_droq_stats_strings[j]); j 1898 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c int num_iq_stats, num_oq_stats, i, j; j 1906 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (j = 0; j < num_stats; j++) { j 1907 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c sprintf(data, "%s", oct_vf_stats_strings[j]); j 1915 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (j = 0; j < num_iq_stats; j++) { j 1917 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_iq_stats_strings[j]); j 1926 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (j = 0; j < num_oq_stats; j++) { j 1928 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct_droq_stats_strings[j]); j 2422 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c u32 j, q_no; j 2432 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (j = 0; j < lio->linfo.num_txpciq; j++) { j 2433 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c q_no = lio->linfo.txpciq[j].s.q_no; j 1303 drivers/net/ethernet/cavium/liquidio/lio_main.c int i, j; j 1320 drivers/net/ethernet/cavium/liquidio/lio_main.c for (j = 0; j < oct->num_oqs; j++) j 1322 drivers/net/ethernet/cavium/liquidio/lio_main.c lio->linfo.rxpciq[j].s.q_no); j 2332 drivers/net/ethernet/cavium/liquidio/lio_main.c int j, xmit_more = 0; j 2475 drivers/net/ethernet/cavium/liquidio/lio_main.c for (j = 1; j < i; j++) { j 2476 drivers/net/ethernet/cavium/liquidio/lio_main.c frag = &skb_shinfo(skb)->frags[j - 1]; j 2478 drivers/net/ethernet/cavium/liquidio/lio_main.c g->sg[j >> 2].ptr[j & 3], j 3351 drivers/net/ethernet/cavium/liquidio/lio_main.c u8 mac[6], i, j, *fw_ver, *micro_ver; j 3559 drivers/net/ethernet/cavium/liquidio/lio_main.c for (j = 0; j < num_oqueues; j++) { j 3560 drivers/net/ethernet/cavium/liquidio/lio_main.c lio->linfo.rxpciq[j].u64 = j 3561 drivers/net/ethernet/cavium/liquidio/lio_main.c resp->cfg_info.linfo.rxpciq[j].u64; j 3563 drivers/net/ethernet/cavium/liquidio/lio_main.c for (j = 0; j < num_iqueues; j++) { j 3564 drivers/net/ethernet/cavium/liquidio/lio_main.c lio->linfo.txpciq[j].u64 = j 3565 drivers/net/ethernet/cavium/liquidio/lio_main.c resp->cfg_info.linfo.txpciq[j].u64; j 3631 drivers/net/ethernet/cavium/liquidio/lio_main.c for (j = 0; j < octeon_dev->sriov_info.max_vfs; j++) { j 3635 drivers/net/ethernet/cavium/liquidio/lio_main.c if (__liquidio_set_vf_mac(netdev, j, vfmac, false)) { j 3638 drivers/net/ethernet/cavium/liquidio/lio_main.c j); j 3645 drivers/net/ethernet/cavium/liquidio/lio_main.c for (j = 0; j < 6; j++) j 3646 drivers/net/ethernet/cavium/liquidio/lio_main.c mac[j] = *((u8 *)(((u8 *)&lio->linfo.hw_addr) + 2 + j)); j 4059 drivers/net/ethernet/cavium/liquidio/lio_main.c int j, ret; j 4246 drivers/net/ethernet/cavium/liquidio/lio_main.c for (j = 0; j < octeon_dev->num_oqs; j++) j 4247 drivers/net/ethernet/cavium/liquidio/lio_main.c writel(octeon_dev->droq[j]->max_count, j 4248 drivers/net/ethernet/cavium/liquidio/lio_main.c octeon_dev->droq[j]->pkts_credit_reg); j 715 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c int i, j; j 729 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c for (j = 0; j < oct->num_oqs; j++) j 731 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c lio->linfo.rxpciq[j].s.q_no); j 1419 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c int j; j 1547 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c for (j = 1; j < i; j++) { j 1548 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c frag = &skb_shinfo(skb)->frags[j - 1]; j 1550 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c g->sg[j >> 2].ptr[j & 3], j 1935 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c u8 mac[ETH_ALEN], i, j; j 2059 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c for (j = 0; j < num_oqueues; j++) { j 2060 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c lio->linfo.rxpciq[j].u64 = j 2061 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c resp->cfg_info.linfo.rxpciq[j].u64; j 2063 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c for (j = 0; j < num_iqueues; j++) { j 2064 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c lio->linfo.txpciq[j].u64 = j 2065 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c resp->cfg_info.linfo.txpciq[j].u64; j 2129 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c for (j = 0; j < ETH_ALEN; j++) j 2130 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c mac[j] = *((u8 *)(((u8 *)&lio->linfo.hw_addr) + 2 + j)); j 2274 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c int j; j 2398 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c for (j = 0; j < oct->num_oqs; j++) j 2399 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c writel(oct->droq[j]->max_count, oct->droq[j]->pkts_credit_reg); j 384 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c int i, j, msi_idx = 1, n = sizeof(adap->msix_info[0].desc) - 1; j 389 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c for_each_port(adap, j) { j 390 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct net_device *d = adap->port[j]; j 403 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c int i, j, err, qidx = 0; j 408 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c for (j = 0; j < nqsets; ++j) { j 594 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c int i, j; j 600 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c for (j = 0; j < SGE_TXQ_PER_SET; j++) j 601 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_write_reg(adap, A_SG_KDOORBELL, F_SELEGRCNTX | V_EGRCNTX(qs->txq[j].cntxt_id)); j 657 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c int i, j, err, irq_idx = 0, qset_idx = 0; j 668 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c for (j = 0; j < pi->nqsets; ++j, ++qset_idx) { j 673 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c netdev_get_tx_queue(dev, j)); j 976 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c int i, j, err = 0; j 981 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c for (j = 0; j < pi->nqsets; ++j) { j 983 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi->first_qset + j, -1, j 3088 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c int i, j = 0; j 3108 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi->first_qset = j; j 3110 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c j = pi->first_qset + nqsets; j 241 drivers/net/ethernet/chelsio/cxgb3/sge.c int nfrags, frag_idx, curflit, j = d->addr_idx; j 249 drivers/net/ethernet/chelsio/cxgb3/sge.c j = 1; j 252 drivers/net/ethernet/chelsio/cxgb3/sge.c curflit = d->sflit + 1 + j; j 256 drivers/net/ethernet/chelsio/cxgb3/sge.c pci_unmap_page(pdev, be64_to_cpu(sgp->addr[j]), j 259 drivers/net/ethernet/chelsio/cxgb3/sge.c j ^= 1; j 260 drivers/net/ethernet/chelsio/cxgb3/sge.c if (j == 0) { j 271 drivers/net/ethernet/chelsio/cxgb3/sge.c d->addr_idx = j; j 272 drivers/net/ethernet/chelsio/cxgb3/sge.c d->sflit = curflit - WR_FLITS - j; /* sflit can be -1 */ j 1015 drivers/net/ethernet/chelsio/cxgb3/sge.c unsigned int i, j = 0, k = 0, nfrags; j 1019 drivers/net/ethernet/chelsio/cxgb3/sge.c sgp->addr[j++] = cpu_to_be64(addr[k++]); j 1026 drivers/net/ethernet/chelsio/cxgb3/sge.c sgp->len[j] = cpu_to_be32(skb_frag_size(frag)); j 1027 drivers/net/ethernet/chelsio/cxgb3/sge.c sgp->addr[j] = cpu_to_be64(addr[k++]); j 1028 drivers/net/ethernet/chelsio/cxgb3/sge.c j ^= 1; j 1029 drivers/net/ethernet/chelsio/cxgb3/sge.c if (j == 0) j 1032 drivers/net/ethernet/chelsio/cxgb3/sge.c if (j) j 1033 drivers/net/ethernet/chelsio/cxgb3/sge.c sgp->len[j] = 0; j 1034 drivers/net/ethernet/chelsio/cxgb3/sge.c return ((nfrags + (len != 0)) * 3) / 2 + j; j 2537 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c int i, j, cpu_idx = 0, q_idx = 0; j 2543 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c for (j = 0; j < 2; ++j) { j 2544 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c val |= (cpus[cpu_idx++] & 0x3f) << (8 * j); j 3659 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c unsigned int i, j = -1; j 3735 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c while (!adapter->params.vpd.port_type[++j]) j 3738 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c pti = &port_types[adapter->params.vpd.port_type[j]]; j 3741 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c adapter->params.vpd.port_type[j]); j 3746 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c ret = pti->phy_prep(&p->phy, adapter, ai->phy_base_addr + j, j 3750 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c mac_prep(&p->mac, adapter, j); j 3787 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c unsigned int i, j = -1; j 3799 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c while (!adapter->params.vpd.port_type[++j]) j 3802 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c pti = &port_types[adapter->params.vpd.port_type[j]]; j 1801 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c u32 size, *value, j; j 1812 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c for (j = t5_pcie_config_array[i][0]; j 1813 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c j <= t5_pcie_config_array[i][1]; j += 4) { j 1814 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c t4_hw_pci_read_cfg4(padap, j, value); j 1847 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c u32 i, j, value, found; j 1859 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c for (j = 0; j < ARRAY_SIZE(meminfo.avail); j++) { j 1860 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c rc = cudbg_get_mem_region(padap, &meminfo, j, j 1865 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c rc = cudbg_get_mem_relative(padap, &meminfo, j, j 1875 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c mem_type[i] = j; j 1951 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c u32 j; j 1953 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c for (j = 0; j < max_qid; j++) { j 1954 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c cudbg_read_sge_ctxt(pdbg_init, j, ctxt_type, buff->data); j 1960 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c buff->cntxt_id = j; j 1963 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c cudbg_read_sge_ctxt(pdbg_init, j, CTXT_CNM, buff->data); j 1965 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c buff->cntxt_id = j; j 1979 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c u32 j, size, max_ctx_size, max_ctx_qid; j 2051 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c for (j = 0; j < max_ctx_qid; j++) { j 2052 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c src_off = (u64 *)(ctx_buf + j * SGE_CTXT_SIZE); j 2066 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c buff->cntxt_id = j; j 2570 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c u32 size, j; j 2604 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c for (j = 0; j < t6_ma_ireg_array2[i][3]; j++) { j 2624 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c u32 i, j; j 2651 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c for (j = 0; j < CUDBG_NUM_ULPTX_READ; j++) j 2652 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c ulptx_la_buff->rd_data[i][j] = j 2686 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c u32 size, j, iter; j 2745 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c for (j = 0; j < iter; j++, buff++) { j 2748 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c (j * local_offset), local_range, buff); j 2968 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c u32 i, j, cur_off, tot_len; j 3049 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c for (j = 0; j < CXGB4_TX_MAX; j++) { j 3050 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c if (!s->uld_txq_info[j]) j 3053 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c utxq = s->uld_txq_info[j]; j 3056 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c cudbg_uld_txq_to_qtype(j), j 3066 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c for (j = 0; j < CXGB4_ULD_MAX; j++) { j 3067 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c if (!s->uld_rxq_info[j]) j 3070 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c urxq = s->uld_rxq_info[j]; j 3073 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c cudbg_uld_rxq_to_qtype(j), j 3078 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c for (j = 0; j < CXGB4_ULD_MAX; j++) { j 3079 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c if (!s->uld_rxq_info[j]) j 3082 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c urxq = s->uld_rxq_info[j]; j 3085 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c cudbg_uld_flq_to_qtype(j), j 3090 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c for (j = 0; j < CXGB4_ULD_MAX; j++) { j 3091 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c if (!s->uld_rxq_info[j]) j 3094 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c urxq = s->uld_rxq_info[j]; j 3098 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c cudbg_uld_ciq_to_qtype(j), j 1420 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c u32 j; j 1465 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c ret = kstrtouint(end, 10, &j); j 1469 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c t4_write_reg(adap, MPS_T5_TRC_RSS_CONTROL_A, j); j 1475 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c t4_write_reg(adap, MPS_TRC_RSS_CONTROL_A, j); j 1479 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c MPS_TRC_FILTER1_RSS_CONTROL_A, j); j 1483 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c MPS_TRC_FILTER2_RSS_CONTROL_A, j); j 1487 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c MPS_TRC_FILTER3_RSS_CONTROL_A, j); j 1494 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c ret = kstrtouint(end, 10, &j); j 1495 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (ret || j > 9600) { j 1499 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c tp.snap_len = j; j 1504 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c ret = kstrtouint(end, 10, &j); j 1505 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (ret || j > TFMINPKTSIZE_M) j 1507 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c tp.min_len = j; j 1548 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c j = i; j 1562 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (j >= i) /* mask longer than data */ j 1565 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (++j % 8 == 0) j 1568 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (i != j) /* mask shorter than data */ j 1571 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c for ( ; i - j >= 8; j += 8) j 1578 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c ret = kstrtouint(end, 10, &j); j 1581 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (j & 7) /* doesn't start at multiple of 8 */ j 1583 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c j /= 8; j 1584 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (j < tp.skip_ofst) /* overlaps earlier pattern */ j 1586 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c if (j - tp.skip_ofst > 31) /* skip too big */ j 1588 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c tp.skip_len = j - tp.skip_ofst; j 2207 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c int i, j; j 2222 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c for (j = 0; j < 8; j++, p++) { j 691 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c int i, j, msi_idx = 2, n = sizeof(adap->msix_info[0].desc); j 701 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c for_each_port(adap, j) { j 702 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct net_device *d = adap->port[j]; j 877 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c int i, j, err; j 883 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c for (j = 0; j < pi->rss_size; j++) j 884 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pi->rss[j] = j % pi->nqsets; j 988 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c int err, i, j; j 1002 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c for (j = 0; j < pi->nqsets; j++, q++) { j 1013 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c q->rspq.idx = j; j 1018 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c for (j = 0; j < pi->nqsets; j++, t++, q++) { j 1020 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c netdev_get_tx_queue(dev, j), j 3559 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c unsigned int i, j, k; j 3682 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c for (j = 0; j < naddr; j++) { j 3683 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c hma_cmd.phy_address[j] = j 3684 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c cpu_to_be64(adapter->hma.phy_addr[j + k]); j 5276 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c int i, j, want, need, allocated; j 5345 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c for (j = 0 ; i < allocated; ++i, j++) { j 5346 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c adap->msix_info_ulds[j].vec = entries[i].vector; j 5347 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c adap->msix_info_ulds[j].idx = i; j 5349 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c adap->msix_bmap_ulds.mapsize = j; j 49 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c unsigned int i, j; j 71 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c for (j = 0; entry[j].val; j++) { j 72 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c if (off == entry[j].off) { j 74 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c err = entry[j].val(fs, val, mask); j 218 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c unsigned int i, j; j 243 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c for (j = 0; j < cls->knode.sel->nkeys; j++) { j 244 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c off = cls->knode.sel->keys[j].off; j 245 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c val = cls->knode.sel->keys[j].val; j 246 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c mask = cls->knode.sel->keys[j].mask; j 343 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c unsigned int filter_id, max_tids, i, j; j 397 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c for (j = 0; j < max_tids; j++) { j 398 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c if (!test_bit(j, link->tid_map)) j 401 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c ret = __cxgb4_del_filter(dev, j, NULL, NULL); j 405 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c clear_bit(j, link->tid_map); j 484 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c int i, j, err; j 486 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c j = nq / adap->params.nports; j 491 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c err = t4_sge_alloc_uld_txq(adap, txq, adap->port[i / j], j 499 drivers/net/ethernet/chelsio/cxgb4/sched.c unsigned int j, i; j 501 drivers/net/ethernet/chelsio/cxgb4/sched.c for_each_port(adap, j) { j 502 drivers/net/ethernet/chelsio/cxgb4/sched.c struct port_info *pi = netdev2pinfo(adap->port[j]); j 3901 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int i, j; j 3917 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c for (j = 0; j < 6; j++) { j 3934 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int i, j, idx; j 3941 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c for (j = 0; j < 5; j++) { j 3942 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c idx = 8 * i + j; j 3954 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c unsigned int i, j; j 3960 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c j = t4_read_reg(adap, ULP_RX_LA_WRPTR_A); j 3961 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c t4_write_reg(adap, ULP_RX_LA_RDPTR_A, j); j 3962 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c for (j = 0; j < ULPRX_LA_SIZE; j++, p += 8) j 9692 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int ret, i, j = 0; j 9697 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c while ((adap->params.portvec & (1 << j)) == 0) j 9698 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c j++; j 9700 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_init_portinfo(pi, mbox, j, pf, vf, addr); j 9705 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c j++; j 130 drivers/net/ethernet/cisco/enic/enic_clsf.c int j; j 133 drivers/net/ethernet/cisco/enic/enic_clsf.c for (j = 0; j < ENIC_CLSF_EXPIRE_COUNT; j++) { j 418 drivers/net/ethernet/cisco/enic/enic_ethtool.c int j, ret = 0, cnt = 0; j 421 drivers/net/ethernet/cisco/enic/enic_ethtool.c for (j = 0; j < (1 << ENIC_RFS_FLW_BITSHIFT); j++) { j 426 drivers/net/ethernet/cisco/enic/enic_ethtool.c hhead = &enic->rfs_h.ht_head[j]; j 34 drivers/net/ethernet/cisco/enic/vnic_rq.c unsigned int i, j, count = rq->ring.desc_count; j 45 drivers/net/ethernet/cisco/enic/vnic_rq.c for (j = 0; j < VNIC_RQ_BUF_BLK_ENTRIES(count); j++) { j 46 drivers/net/ethernet/cisco/enic/vnic_rq.c buf->index = i * VNIC_RQ_BUF_BLK_ENTRIES(count) + j; j 52 drivers/net/ethernet/cisco/enic/vnic_rq.c } else if (j + 1 == VNIC_RQ_BUF_BLK_ENTRIES(count)) { j 34 drivers/net/ethernet/cisco/enic/vnic_wq.c unsigned int i, j, count = wq->ring.desc_count; j 45 drivers/net/ethernet/cisco/enic/vnic_wq.c for (j = 0; j < VNIC_WQ_BUF_BLK_ENTRIES(count); j++) { j 46 drivers/net/ethernet/cisco/enic/vnic_wq.c buf->index = i * VNIC_WQ_BUF_BLK_ENTRIES(count) + j; j 53 drivers/net/ethernet/cisco/enic/vnic_wq.c } else if (j + 1 == VNIC_WQ_BUF_BLK_ENTRIES(count)) { j 1383 drivers/net/ethernet/dec/tulip/de4x5.c int i, j, status = 0; j 1435 drivers/net/ethernet/dec/tulip/de4x5.c for (j=0, i=0;(i<500) && (j==0);i++) { /* Up to 500ms delay */ j 1437 drivers/net/ethernet/dec/tulip/de4x5.c if ((s32)le32_to_cpu(lp->tx_ring[lp->tx_new].status) >= 0) j=1; j 1441 drivers/net/ethernet/dec/tulip/de4x5.c if (j == 0) { j 2127 drivers/net/ethernet/dec/tulip/de4x5.c int i, j; j 2163 drivers/net/ethernet/dec/tulip/de4x5.c for (j=0, i=0; i<ETH_ALEN; i++) { j 2164 drivers/net/ethernet/dec/tulip/de4x5.c j += (u_char) *((u_char *)&lp->srom + SROM_HWADD + i); j 2166 drivers/net/ethernet/dec/tulip/de4x5.c if (j != 0 && j != 6 * 0xff) { j 3953 drivers/net/ethernet/dec/tulip/de4x5.c int i, j=0; j 3967 drivers/net/ethernet/dec/tulip/de4x5.c j += tmp; /* for check for 0:0:0:0:0:0 or ff:ff:ff:ff:ff:ff */ j 3970 drivers/net/ethernet/dec/tulip/de4x5.c if (j == 0 || j == 3 * 0xffff) { j 4001 drivers/net/ethernet/dec/tulip/de4x5.c int i, j; j 4007 drivers/net/ethernet/dec/tulip/de4x5.c for (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) { j 4009 drivers/net/ethernet/dec/tulip/de4x5.c if (dev.Sig[j] == data) { /* track signature */ j 4010 drivers/net/ethernet/dec/tulip/de4x5.c j++; j 4013 drivers/net/ethernet/dec/tulip/de4x5.c j=1; j 4015 drivers/net/ethernet/dec/tulip/de4x5.c j=0; j 4032 drivers/net/ethernet/dec/tulip/de4x5.c u_short j,chksum; j 4037 drivers/net/ethernet/dec/tulip/de4x5.c for (i=0,k=0,j=0;j<3;j++) { j 4898 drivers/net/ethernet/dec/tulip/de4x5.c u32 j; j 4900 drivers/net/ethernet/dec/tulip/de4x5.c j = (data & 1) << 17; j 4901 drivers/net/ethernet/dec/tulip/de4x5.c outl(command | j, ioaddr); j 4903 drivers/net/ethernet/dec/tulip/de4x5.c outl(command | MII_MDC | j, ioaddr); j 4973 drivers/net/ethernet/dec/tulip/de4x5.c int i, j, k, n, limit=ARRAY_SIZE(phy_info); j 4986 drivers/net/ethernet/dec/tulip/de4x5.c for (j=0; j<limit; j++) { /* Search PHY table */ j 4987 drivers/net/ethernet/dec/tulip/de4x5.c if (id != phy_info[j].id) continue; /* ID match? */ j 4991 drivers/net/ethernet/dec/tulip/de4x5.c (char *)&phy_info[j], sizeof(struct phy_table)); j 5000 drivers/net/ethernet/dec/tulip/de4x5.c if ((j == limit) && (i < DE4X5_MAX_MII)) { j 5010 drivers/net/ethernet/dec/tulip/de4x5.c j = de4x5_debug; j 5013 drivers/net/ethernet/dec/tulip/de4x5.c de4x5_debug = j; j 5338 drivers/net/ethernet/dec/tulip/de4x5.c int i, j; j 5346 drivers/net/ethernet/dec/tulip/de4x5.c for (j=0; len>0;j+=16, len-=16) { j 5347 drivers/net/ethernet/dec/tulip/de4x5.c printk(" %03x: ",j); j 5349 drivers/net/ethernet/dec/tulip/de4x5.c printk("%02x ",(u_char)skb->data[i+j]); j 5367 drivers/net/ethernet/dec/tulip/de4x5.c int i, j, status = 0; j 5445 drivers/net/ethernet/dec/tulip/de4x5.c j = 0; j 5446 drivers/net/ethernet/dec/tulip/de4x5.c tmp.lval[0] = inl(DE4X5_STS); j+=4; j 5447 drivers/net/ethernet/dec/tulip/de4x5.c tmp.lval[1] = inl(DE4X5_BMR); j+=4; j 5448 drivers/net/ethernet/dec/tulip/de4x5.c tmp.lval[2] = inl(DE4X5_IMR); j+=4; j 5449 drivers/net/ethernet/dec/tulip/de4x5.c tmp.lval[3] = inl(DE4X5_OMR); j+=4; j 5450 drivers/net/ethernet/dec/tulip/de4x5.c tmp.lval[4] = inl(DE4X5_SISR); j+=4; j 5451 drivers/net/ethernet/dec/tulip/de4x5.c tmp.lval[5] = inl(DE4X5_SICR); j+=4; j 5452 drivers/net/ethernet/dec/tulip/de4x5.c tmp.lval[6] = inl(DE4X5_STRR); j+=4; j 5453 drivers/net/ethernet/dec/tulip/de4x5.c tmp.lval[7] = inl(DE4X5_SIGR); j+=4; j 5454 drivers/net/ethernet/dec/tulip/de4x5.c ioc->len = j; j 580 drivers/net/ethernet/dec/tulip/tulip_core.c int j; j 589 drivers/net/ethernet/dec/tulip/tulip_core.c for (j = 0; ((j < 1600) && buf[j] != 0xee); j++) j 590 drivers/net/ethernet/dec/tulip/tulip_core.c if (j < 100) j 591 drivers/net/ethernet/dec/tulip/tulip_core.c pr_cont(" %02x", buf[j]); j 592 drivers/net/ethernet/dec/tulip/tulip_core.c pr_cont(" j=%d\n", j); j 1018 drivers/net/ethernet/dec/tulip/xircom_cb.c int j; j 1020 drivers/net/ethernet/dec/tulip/xircom_cb.c for (j = 0; j < 6; j++) { j 1021 drivers/net/ethernet/dec/tulip/xircom_cb.c xw32(CSR10, i + j + 4); j 1022 drivers/net/ethernet/dec/tulip/xircom_cb.c card->dev->dev_addr[j] = xr32(CSR9) & 0xff; j 335 drivers/net/ethernet/dlink/dl2k.c int i, j; j 392 drivers/net/ethernet/dlink/dl2k.c j = (next - i > 255) ? 255 : next - i; j 393 drivers/net/ethernet/dlink/dl2k.c memcpy (np->name, &(psib[i]), j); j 3342 drivers/net/ethernet/emulex/benet/be_cmds.c int i, j = 0; j 3363 drivers/net/ethernet/emulex/benet/be_cmds.c req->snd_buff[i] = (u8)(pattern >> (j*8)); j 3364 drivers/net/ethernet/emulex/benet/be_cmds.c j++; j 3365 drivers/net/ethernet/emulex/benet/be_cmds.c if (j > 7) j 3366 drivers/net/ethernet/emulex/benet/be_cmds.c j = 0; j 4082 drivers/net/ethernet/emulex/benet/be_cmds.c int i, j; j 4101 drivers/net/ethernet/emulex/benet/be_cmds.c for (j = 0; j < num_modes; j++) { j 4102 drivers/net/ethernet/emulex/benet/be_cmds.c if (cfgs->module[i].trace_lvl[j].mode == MODE_UART) j 4103 drivers/net/ethernet/emulex/benet/be_cmds.c cfgs->module[i].trace_lvl[j].dbg_lvl = j 4119 drivers/net/ethernet/emulex/benet/be_cmds.c int status, j; j 4139 drivers/net/ethernet/emulex/benet/be_cmds.c for (j = 0; j < le32_to_cpu(cfgs->module[0].num_modes); j++) { j 4140 drivers/net/ethernet/emulex/benet/be_cmds.c if (cfgs->module[0].trace_lvl[j].mode == MODE_UART) j 4141 drivers/net/ethernet/emulex/benet/be_cmds.c level = cfgs->module[0].trace_lvl[j].dbg_lvl; j 377 drivers/net/ethernet/emulex/benet/be_ethtool.c unsigned int i, j, base = 0, start; j 385 drivers/net/ethernet/emulex/benet/be_ethtool.c for_all_rx_queues(adapter, rxo, j) { j 401 drivers/net/ethernet/emulex/benet/be_ethtool.c for_all_tx_queues(adapter, txo, j) { j 430 drivers/net/ethernet/emulex/benet/be_ethtool.c int i, j; j 439 drivers/net/ethernet/emulex/benet/be_ethtool.c for (j = 0; j < ETHTOOL_RXSTATS_NUM; j++) { j 441 drivers/net/ethernet/emulex/benet/be_ethtool.c et_rx_stats[j].desc); j 446 drivers/net/ethernet/emulex/benet/be_ethtool.c for (j = 0; j < ETHTOOL_TXSTATS_NUM; j++) { j 448 drivers/net/ethernet/emulex/benet/be_ethtool.c et_tx_stats[j].desc); j 1293 drivers/net/ethernet/emulex/benet/be_ethtool.c int rc = 0, i, j; j 1305 drivers/net/ethernet/emulex/benet/be_ethtool.c j = indir[i]; j 1306 drivers/net/ethernet/emulex/benet/be_ethtool.c rxo = &adapter->rx_obj[j]; j 1308 drivers/net/ethernet/emulex/benet/be_ethtool.c adapter->rss_info.rss_queue[i] = j; j 1430 drivers/net/ethernet/emulex/benet/be_main.c int i, j; j 1438 drivers/net/ethernet/emulex/benet/be_main.c for (j = 0; j < TX_Q_LEN * 4; j += 4) { j 1439 drivers/net/ethernet/emulex/benet/be_main.c if (entry[j] != 0 || entry[j + 1] != 0 || j 1440 drivers/net/ethernet/emulex/benet/be_main.c entry[j + 2] != 0 || entry[j + 3] != 0) { j 1442 drivers/net/ethernet/emulex/benet/be_main.c j, entry[j], entry[j + 1], j 1443 drivers/net/ethernet/emulex/benet/be_main.c entry[j + 2], entry[j + 3]); j 1451 drivers/net/ethernet/emulex/benet/be_main.c for (j = 0; j < TX_CQ_LEN * 4; j += 4) { j 1452 drivers/net/ethernet/emulex/benet/be_main.c if (entry[j] != 0 || entry[j + 1] != 0 || j 1453 drivers/net/ethernet/emulex/benet/be_main.c entry[j + 2] != 0 || entry[j + 3] != 0) { j 1455 drivers/net/ethernet/emulex/benet/be_main.c j, entry[j], entry[j + 1], j 1456 drivers/net/ethernet/emulex/benet/be_main.c entry[j + 2], entry[j + 3]); j 1460 drivers/net/ethernet/emulex/benet/be_main.c for (j = 0; j < TX_Q_LEN; j++) { j 1461 drivers/net/ethernet/emulex/benet/be_main.c if (txo->sent_skb_list[j]) { j 1462 drivers/net/ethernet/emulex/benet/be_main.c skb = txo->sent_skb_list[j]; j 1482 drivers/net/ethernet/emulex/benet/be_main.c j, skb, skb->len, skb->protocol); j 2326 drivers/net/ethernet/emulex/benet/be_main.c u16 i, j; j 2366 drivers/net/ethernet/emulex/benet/be_main.c for (i = 1, j = 0; i < rxcp->num_rcvd; i++) { j 2373 drivers/net/ethernet/emulex/benet/be_main.c j++; j 2374 drivers/net/ethernet/emulex/benet/be_main.c skb_frag_set_page(skb, j, page_info->page); j 2375 drivers/net/ethernet/emulex/benet/be_main.c skb_frag_off_set(&skb_shinfo(skb)->frags[j], j 2377 drivers/net/ethernet/emulex/benet/be_main.c skb_frag_size_set(&skb_shinfo(skb)->frags[j], 0); j 2383 drivers/net/ethernet/emulex/benet/be_main.c skb_frag_size_add(&skb_shinfo(skb)->frags[j], curr_frag_len); j 2390 drivers/net/ethernet/emulex/benet/be_main.c BUG_ON(j > MAX_SKB_FRAGS); j 2438 drivers/net/ethernet/emulex/benet/be_main.c u16 i, j; j 2447 drivers/net/ethernet/emulex/benet/be_main.c for (i = 0, j = -1; i < rxcp->num_rcvd; i++) { j 2455 drivers/net/ethernet/emulex/benet/be_main.c j++; j 2456 drivers/net/ethernet/emulex/benet/be_main.c skb_frag_set_page(skb, j, page_info->page); j 2457 drivers/net/ethernet/emulex/benet/be_main.c skb_frag_off_set(&skb_shinfo(skb)->frags[j], j 2459 drivers/net/ethernet/emulex/benet/be_main.c skb_frag_size_set(&skb_shinfo(skb)->frags[j], 0); j 2463 drivers/net/ethernet/emulex/benet/be_main.c skb_frag_size_add(&skb_shinfo(skb)->frags[j], curr_frag_len); j 2468 drivers/net/ethernet/emulex/benet/be_main.c BUG_ON(j > MAX_SKB_FRAGS); j 2470 drivers/net/ethernet/emulex/benet/be_main.c skb_shinfo(skb)->nr_frags = j + 1; j 3687 drivers/net/ethernet/emulex/benet/be_main.c int rc, i, j; j 3714 drivers/net/ethernet/emulex/benet/be_main.c for (j = 0; j < RSS_INDIR_TABLE_LEN; j += adapter->num_rss_qs) { j 3716 drivers/net/ethernet/emulex/benet/be_main.c if ((j + i) >= RSS_INDIR_TABLE_LEN) j 3718 drivers/net/ethernet/emulex/benet/be_main.c rss->rsstable[j + i] = rxo->rss_id; j 3719 drivers/net/ethernet/emulex/benet/be_main.c rss->rss_queue[j + i] = i; j 708 drivers/net/ethernet/faraday/ftgmac100.c unsigned int pointer, nfrags, len, i, j; j 837 drivers/net/ethernet/faraday/ftgmac100.c for (j = 0; j < i; j++) { j 336 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c int i, j; j 344 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c for (j = 0; j < numstats; j++) j 345 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c netstats[j] += cpustats[j]; j 1294 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c int i = 0, j; j 1303 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c j = 0; j 1307 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c bm_buffer_set64(&bmb[j], qm_sg_entry_get64(&sgt[i])); j 1309 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c j++; i++; j 1310 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c } while (j < ARRAY_SIZE(bmb) && j 1314 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c dpaa_bman_release(dpaa_bp, bmb, j); j 1540 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c int j; j 1545 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c for (j = 0; j < dpaa_bp->config_count; j += 8) j 1918 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c int i, j, err, sz; j 2010 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c for (j = 0; j < i; j++) j 2011 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c dma_unmap_page(dev, qm_sg_addr(&sgt[j]), j 2012 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c qm_sg_entry_get_len(&sgt[j]), dma_dir); j 241 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c int crr = 0, j; j 265 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c for (j = 0; j < DPAA_BPS_NUM; j++) { j 266 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c data[crr * num_values + crr_cpu] = bp_count[j]; j 267 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c data[crr++ * num_values + num_cpus] += bp_count[j]; j 281 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c int total_stats, i, j; j 295 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c for (j = 0; j < DPAA_BPS_NUM; j++) { j 296 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c dpaa_bp = priv->dpaa_bps[j]; j 299 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c bp_count[j] = *(per_cpu_ptr(dpaa_bp->percpu_count, i)); j 345 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c unsigned int i, j, num_cpus, size; j 355 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c for (j = 0; j < num_cpus; j++) { j 357 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c dpaa_stats_percpu[i], j); j 367 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c for (j = 0; j < num_cpus; j++) { j 369 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c "bpool %c [CPU %d]", 'a' + i, j); j 1010 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c int i, j; j 1013 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c for (j = 0; j < priv->num_channels; j++) { j 1016 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c new_count = add_bufs(priv, priv->channel[j], bpid); j 1017 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c priv->channel[j]->buf_count += new_count; j 1467 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c int i, j; j 1473 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c for (j = 0; j < num; j++) j 1474 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c netstats[j] += cpustats[j]; j 2557 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c int i, j, err; j 2570 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c for (j = 0; j < dpaa2_eth_tc_count(priv); j++) { j 2572 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c DPNI_QUEUE_TX, j, fq->flowid, j 2577 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c fq->tx_fqid[j] = qid.fqid; j 2578 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c if (fq->tx_fqid[j] == 0) j 186 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c int j, k, err; j 210 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c for (j = 0; j <= 6; j++) { j 212 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c if (j == 4 || j == 5) j 215 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c j, &dpni_stats); j 220 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c netdev_warn(net_dev, "dpni_get_stats(%d) failed\n", j); j 222 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c num_cnt = dpni_stats_page_size[j] / sizeof(u64); j 230 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c for (j = 0; j < sizeof(*extras) / sizeof(__u64); j++) j 231 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *((__u64 *)data + i + j) += *((__u64 *)extras + j); j 233 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c i += j; j 238 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c for (j = 0; j < sizeof(*ch_stats) / sizeof(__u64); j++) j 239 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *((__u64 *)data + i + j) += *((__u64 *)ch_stats + j); j 241 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c i += j; j 243 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c for (j = 0; j < priv->num_fqs; j++) { j 245 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c err = dpaa2_io_query_fq_count(NULL, priv->fq[j].fqid, j 252 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c if (priv->fq[j].type == DPAA2_TX_CONF_FQ) { j 638 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c int i, j = 0; j 669 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c if (j == rxnfc->rule_cnt) j 671 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c rule_locs[j++] = i; j 673 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c rxnfc->rule_cnt = j; j 22 drivers/net/ethernet/freescale/dpaa2/dpni.c int i, j; j 65 drivers/net/ethernet/freescale/dpaa2/dpni.c for (j = 0; j < DPKG_NUM_OF_MASKS; j++) { j 66 drivers/net/ethernet/freescale/dpaa2/dpni.c extr->masks[j].mask = cfg->extracts[i].masks[j].mask; j 67 drivers/net/ethernet/freescale/dpaa2/dpni.c extr->masks[j].offset = j 68 drivers/net/ethernet/freescale/dpaa2/dpni.c cfg->extracts[i].masks[j].offset; j 438 drivers/net/ethernet/freescale/enetc/enetc.c int i, j; j 444 drivers/net/ethernet/freescale/enetc/enetc.c for (j = 0; j < buff_cnt; j++) { j 469 drivers/net/ethernet/freescale/enetc/enetc.c if (likely(j)) { j 476 drivers/net/ethernet/freescale/enetc/enetc.c return j; j 1231 drivers/net/ethernet/freescale/enetc/enetc.c int i, j, err; j 1252 drivers/net/ethernet/freescale/enetc/enetc.c for (j = 0; j < v->count_tx_rings; j++) { j 1253 drivers/net/ethernet/freescale/enetc/enetc.c int idx = v->tx_ring[j].index; j 1629 drivers/net/ethernet/freescale/enetc/enetc.c int j; j 1643 drivers/net/ethernet/freescale/enetc/enetc.c for (j = 0; j < v_tx_rings; j++) { j 1648 drivers/net/ethernet/freescale/enetc/enetc.c idx = 2 * j + i; /* 2 CPUs */ j 1650 drivers/net/ethernet/freescale/enetc/enetc.c idx = j + i * v_tx_rings; /* default */ j 1653 drivers/net/ethernet/freescale/enetc/enetc.c bdr = &v->tx_ring[j]; j 56 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c int i, j; j 65 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c for (j = 0; j < ARRAY_SIZE(enetc_txbdr_regs); j++) { j 66 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c addr = ENETC_BDR(TX, i, enetc_txbdr_regs[j]); j 74 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c for (j = 0; j < ARRAY_SIZE(enetc_rxbdr_regs); j++) { j 75 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c addr = ENETC_BDR(RX, i, enetc_rxbdr_regs[j]); j 213 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c int i, j; j 222 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c for (j = 0; j < ARRAY_SIZE(tx_ring_stats); j++) { j 223 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c snprintf(p, ETH_GSTRING_LEN, tx_ring_stats[j], j 229 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c for (j = 0; j < ARRAY_SIZE(rx_ring_stats); j++) { j 230 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c snprintf(p, ETH_GSTRING_LEN, rx_ring_stats[j], j 387 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c int i, j; j 416 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c j = 0; j 420 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c if (j == rxnfc->rule_cnt) j 422 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c rule_locs[j++] = i; j 425 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c rxnfc->rule_cnt = j; j 930 drivers/net/ethernet/freescale/fec_main.c int i, j; j 935 drivers/net/ethernet/freescale/fec_main.c for (j = 0; j < txq->bd.ring_size; j++) { j 936 drivers/net/ethernet/freescale/fec_main.c if (txq->tx_skbuff[j]) { j 937 drivers/net/ethernet/freescale/fec_main.c dev_kfree_skb_any(txq->tx_skbuff[j]); j 938 drivers/net/ethernet/freescale/fec_main.c txq->tx_skbuff[j] = NULL; j 492 drivers/net/ethernet/freescale/fman/fman_memac.c u8 i, j; j 498 drivers/net/ethernet/freescale/fman/fman_memac.c for (j = 0; j < 7; j++) { j 925 drivers/net/ethernet/freescale/fman/fman_port.c int i = 0, j = 0, err; j 957 drivers/net/ethernet/freescale/fman/fman_port.c for (j = 0; j < ext_buf_pools-> j 958 drivers/net/ethernet/freescale/fman/fman_port.c num_of_pools_used; j++) { j 959 drivers/net/ethernet/freescale/fman/fman_port.c if (i == ordered_array[j]) { j 960 drivers/net/ethernet/freescale/fman/fman_port.c bpools.bpool[j]. j 973 drivers/net/ethernet/freescale/fman/fman_port.c for (j = 0; j < ext_buf_pools-> j 974 drivers/net/ethernet/freescale/fman/fman_port.c num_of_pools_used; j++) { j 975 drivers/net/ethernet/freescale/fman/fman_port.c if (i == ordered_array[j]) { j 976 drivers/net/ethernet/freescale/fman/fman_port.c bpools.bpool[j]. j 42 drivers/net/ethernet/freescale/fman/fman_sp.c int i = 0, j = 0, k = 0; j 57 drivers/net/ethernet/freescale/fman/fman_sp.c for (j = 0; j <= i; j++) { j 59 drivers/net/ethernet/freescale/fman/fman_sp.c if (j == i) j 64 drivers/net/ethernet/freescale/fman/fman_sp.c if (buf_size < sizes_array[ordered_array[j]]) { j 68 drivers/net/ethernet/freescale/fman/fman_sp.c for (k = i; k > j; k--) j 460 drivers/net/ethernet/freescale/gianfar.c int i, j; j 463 drivers/net/ethernet/freescale/gianfar.c for (j = 0; j < GFAR_NUM_IRQS; j++) { j 464 drivers/net/ethernet/freescale/gianfar.c kfree(priv->gfargrp[i].irqinfo[j]); j 465 drivers/net/ethernet/freescale/gianfar.c priv->gfargrp[i].irqinfo[j] = NULL; j 1090 drivers/net/ethernet/freescale/gianfar.c int i, j; j 1101 drivers/net/ethernet/freescale/gianfar.c for (j = 0; j < skb_shinfo(tx_queue->tx_skbuff[i])->nr_frags; j 1102 drivers/net/ethernet/freescale/gianfar.c j++) { j 1314 drivers/net/ethernet/freescale/gianfar.c int i, j; j 1327 drivers/net/ethernet/freescale/gianfar.c for (j = 0; j < tx_queue->tx_ring_size; j++) { j 1361 drivers/net/ethernet/freescale/gianfar.c int i, j; j 1416 drivers/net/ethernet/freescale/gianfar.c for (j = 0; j < tx_queue->tx_ring_size; j++) j 1417 drivers/net/ethernet/freescale/gianfar.c tx_queue->tx_skbuff[j] = NULL; j 2996 drivers/net/ethernet/freescale/gianfar.c int err, i, j; j 3001 drivers/net/ethernet/freescale/gianfar.c for (j = 0; j < i; j++) j 3002 drivers/net/ethernet/freescale/gianfar.c free_grp_irqs(&priv->gfargrp[j]); j 710 drivers/net/ethernet/freescale/gianfar_ethtool.c int j = MAX_FILER_IDX, l = 0x0; j 743 drivers/net/ethernet/freescale/gianfar_ethtool.c local_rqfpr[j] = priv->ftp_rqfpr[i]; j 744 drivers/net/ethernet/freescale/gianfar_ethtool.c local_rqfcr[j] = priv->ftp_rqfcr[i]; j 745 drivers/net/ethernet/freescale/gianfar_ethtool.c j--; j 777 drivers/net/ethernet/freescale/gianfar_ethtool.c local_rqfpr[j] = priv->ftp_rqfpr[l]; j 778 drivers/net/ethernet/freescale/gianfar_ethtool.c local_rqfcr[j] = priv->ftp_rqfcr[l]; j 779 drivers/net/ethernet/freescale/gianfar_ethtool.c j--; j 789 drivers/net/ethernet/freescale/gianfar_ethtool.c for (k = j+1; k < MAX_FILER_IDX; k++) { j 1248 drivers/net/ethernet/freescale/gianfar_ethtool.c struct ethtool_flow_spec_container *j; j 1260 drivers/net/ethernet/freescale/gianfar_ethtool.c list_for_each_entry(j, &priv->rx_list.list, list) { j 1261 drivers/net/ethernet/freescale/gianfar_ethtool.c ret = gfar_convert_to_filer(&j->fs, tab); j 1832 drivers/net/ethernet/freescale/ucc_geth.c u16 i, j; j 1843 drivers/net/ethernet/freescale/ucc_geth.c for (j = 0; j < ugeth->ug_info->bdRingLenRx[i]; j++) { j 1844 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->rx_skbuff[i][j]) { j 1852 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_skbuff[i][j]); j 1853 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_skbuff[i][j] = NULL; j 1876 drivers/net/ethernet/freescale/ucc_geth.c u16 i, j; j 1888 drivers/net/ethernet/freescale/ucc_geth.c for (j = 0; j < ugeth->ug_info->bdRingLenTx[i]; j++) { j 1889 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->tx_skbuff[i][j]) { j 1895 drivers/net/ethernet/freescale/ucc_geth.c dev_kfree_skb_any(ugeth->tx_skbuff[i][j]); j 1896 drivers/net/ethernet/freescale/ucc_geth.c ugeth->tx_skbuff[i][j] = NULL; j 2195 drivers/net/ethernet/freescale/ucc_geth.c u16 i, j; j 2202 drivers/net/ethernet/freescale/ucc_geth.c for (j = 0; j < ug_info->numQueuesTx; j++) { j 2206 drivers/net/ethernet/freescale/ucc_geth.c length = ((ug_info->bdRingLenTx[j] * sizeof(struct qe_bd)) j 2209 drivers/net/ethernet/freescale/ucc_geth.c if ((ug_info->bdRingLenTx[j] * sizeof(struct qe_bd)) % j 2216 drivers/net/ethernet/freescale/ucc_geth.c ugeth->tx_bd_ring_offset[j] = j 2219 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->tx_bd_ring_offset[j] != 0) j 2220 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_tx_bd_ring[j] = j 2221 drivers/net/ethernet/freescale/ucc_geth.c (u8 __iomem *)((ugeth->tx_bd_ring_offset[j] + j 2224 drivers/net/ethernet/freescale/ucc_geth.c ugeth->tx_bd_ring_offset[j] = j 2227 drivers/net/ethernet/freescale/ucc_geth.c if (!IS_ERR_VALUE(ugeth->tx_bd_ring_offset[j])) j 2228 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_tx_bd_ring[j] = j 2230 drivers/net/ethernet/freescale/ucc_geth.c tx_bd_ring_offset[j]); j 2232 drivers/net/ethernet/freescale/ucc_geth.c if (!ugeth->p_tx_bd_ring[j]) { j 2238 drivers/net/ethernet/freescale/ucc_geth.c memset_io((void __iomem *)(ugeth->p_tx_bd_ring[j] + j 2239 drivers/net/ethernet/freescale/ucc_geth.c ug_info->bdRingLenTx[j] * sizeof(struct qe_bd)), 0, j 2240 drivers/net/ethernet/freescale/ucc_geth.c length - ug_info->bdRingLenTx[j] * sizeof(struct qe_bd)); j 2244 drivers/net/ethernet/freescale/ucc_geth.c for (j = 0; j < ug_info->numQueuesTx; j++) { j 2246 drivers/net/ethernet/freescale/ucc_geth.c ugeth->tx_skbuff[j] = j 2247 drivers/net/ethernet/freescale/ucc_geth.c kmalloc_array(ugeth->ug_info->bdRingLenTx[j], j 2250 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->tx_skbuff[j] == NULL) { j 2256 drivers/net/ethernet/freescale/ucc_geth.c for (i = 0; i < ugeth->ug_info->bdRingLenTx[j]; i++) j 2257 drivers/net/ethernet/freescale/ucc_geth.c ugeth->tx_skbuff[j][i] = NULL; j 2259 drivers/net/ethernet/freescale/ucc_geth.c ugeth->skb_curtx[j] = ugeth->skb_dirtytx[j] = 0; j 2260 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->confBd[j] = ugeth->txBd[j] = ugeth->p_tx_bd_ring[j]; j 2261 drivers/net/ethernet/freescale/ucc_geth.c for (i = 0; i < ug_info->bdRingLenTx[j]; i++) { j 2281 drivers/net/ethernet/freescale/ucc_geth.c u16 i, j; j 2288 drivers/net/ethernet/freescale/ucc_geth.c for (j = 0; j < ug_info->numQueuesRx; j++) { j 2289 drivers/net/ethernet/freescale/ucc_geth.c length = ug_info->bdRingLenRx[j] * sizeof(struct qe_bd); j 2294 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_bd_ring_offset[j] = j 2296 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->rx_bd_ring_offset[j] != 0) j 2297 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_rx_bd_ring[j] = j 2298 drivers/net/ethernet/freescale/ucc_geth.c (u8 __iomem *)((ugeth->rx_bd_ring_offset[j] + j 2301 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_bd_ring_offset[j] = j 2304 drivers/net/ethernet/freescale/ucc_geth.c if (!IS_ERR_VALUE(ugeth->rx_bd_ring_offset[j])) j 2305 drivers/net/ethernet/freescale/ucc_geth.c ugeth->p_rx_bd_ring[j] = j 2307 drivers/net/ethernet/freescale/ucc_geth.c rx_bd_ring_offset[j]); j 2309 drivers/net/ethernet/freescale/ucc_geth.c if (!ugeth->p_rx_bd_ring[j]) { j 2317 drivers/net/ethernet/freescale/ucc_geth.c for (j = 0; j < ug_info->numQueuesRx; j++) { j 2319 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_skbuff[j] = j 2320 drivers/net/ethernet/freescale/ucc_geth.c kmalloc_array(ugeth->ug_info->bdRingLenRx[j], j 2323 drivers/net/ethernet/freescale/ucc_geth.c if (ugeth->rx_skbuff[j] == NULL) { j 2329 drivers/net/ethernet/freescale/ucc_geth.c for (i = 0; i < ugeth->ug_info->bdRingLenRx[j]; i++) j 2330 drivers/net/ethernet/freescale/ucc_geth.c ugeth->rx_skbuff[j][i] = NULL; j 2332 drivers/net/ethernet/freescale/ucc_geth.c ugeth->skb_currx[j] = 0; j 2333 drivers/net/ethernet/freescale/ucc_geth.c bd = ugeth->rxBd[j] = ugeth->p_rx_bd_ring[j]; j 2334 drivers/net/ethernet/freescale/ucc_geth.c for (i = 0; i < ug_info->bdRingLenRx[j]; i++) { j 2361 drivers/net/ethernet/freescale/ucc_geth.c u32 ifstat, i, j, size, l2qt, l3qt; j 2788 drivers/net/ethernet/freescale/ucc_geth.c for (j = 0; j < UCC_GETH_IP_PRIORITY_MAX; j += 8) { j 2791 drivers/net/ethernet/freescale/ucc_geth.c l3qt |= (ug_info->l3qt[j + i] << (28 - 4 * i)); j 2792 drivers/net/ethernet/freescale/ucc_geth.c out_be32(&ugeth->p_rx_glbl_pram->l3qt[j/8], l3qt); j 2914 drivers/net/ethernet/freescale/ucc_geth.c for (j = 0; j < NUM_OF_PADDRS; j++) j 2915 drivers/net/ethernet/freescale/ucc_geth.c ugeth_82xx_filtering_clear_addr_in_paddr(ugeth, (u8) j); j 308 drivers/net/ethernet/freescale/ucc_geth_ethtool.c int i, j = 0; j 317 drivers/net/ethernet/freescale/ucc_geth_ethtool.c data[j++] = base ? in_be32(&base[i]) : 0; j 322 drivers/net/ethernet/freescale/ucc_geth_ethtool.c data[j++] = base ? in_be32(&base[i]) : 0; j 327 drivers/net/ethernet/freescale/ucc_geth_ethtool.c data[j++] = base ? in_be32(&base[i]) : 0; j 540 drivers/net/ethernet/fujitsu/fmvj18x_cs.c int i, j; j 574 drivers/net/ethernet/fujitsu/fmvj18x_cs.c for (j = 0 ; j < 6; j++,i++) { j 575 drivers/net/ethernet/fujitsu/fmvj18x_cs.c node_id[j] = readb(base+(i+7)*2); j 580 drivers/net/ethernet/fujitsu/fmvj18x_cs.c j = pcmcia_release_window(link, link->resource[2]); j 141 drivers/net/ethernet/google/gve/gve_main.c int i, j; j 218 drivers/net/ethernet/google/gve/gve_main.c for (j = 0; j < i; j++) { j 219 drivers/net/ethernet/google/gve/gve_main.c struct gve_notify_block *block = &priv->ntfy_blocks[j]; j 220 drivers/net/ethernet/google/gve/gve_main.c int msix_idx = j; j 605 drivers/net/ethernet/google/gve/gve_main.c int i, j; j 637 drivers/net/ethernet/google/gve/gve_main.c for (j = 0; j <= i; j++) j 638 drivers/net/ethernet/google/gve/gve_main.c gve_free_queue_page_list(priv, j); j 196 drivers/net/ethernet/google/gve/gve_rx.c int j; j 198 drivers/net/ethernet/google/gve/gve_rx.c for (j = 0; j < i; j++) j 199 drivers/net/ethernet/google/gve/gve_rx.c gve_rx_free_ring(priv, j); j 257 drivers/net/ethernet/google/gve/gve_tx.c int j; j 259 drivers/net/ethernet/google/gve/gve_tx.c for (j = 0; j < i; j++) j 260 drivers/net/ethernet/google/gve/gve_tx.c gve_tx_free_ring(priv, j); j 517 drivers/net/ethernet/google/gve/gve_tx.c int i, j; j 520 drivers/net/ethernet/google/gve/gve_tx.c for (j = 0; j < to_do; j++) { j 130 drivers/net/ethernet/hisilicon/hns/hnae.c int i, j, ret; j 141 drivers/net/ethernet/hisilicon/hns/hnae.c for (j = i - 1; j >= 0; j--) j 142 drivers/net/ethernet/hisilicon/hns/hnae.c hnae_free_buffer_detach(ring, j); j 293 drivers/net/ethernet/hisilicon/hns/hnae.c int i, j; j 309 drivers/net/ethernet/hisilicon/hns/hnae.c for (j = i - 1; j >= 0; j--) j 310 drivers/net/ethernet/hisilicon/hns/hnae.c hnae_fini_queue(handle->qs[j]); j 330 drivers/net/ethernet/hisilicon/hns/hnae.c int i, j; j 361 drivers/net/ethernet/hisilicon/hns/hnae.c for (j = i - 1; j >= 0; j--) j 362 drivers/net/ethernet/hisilicon/hns/hnae.c hnae_fini_queue(handle->qs[j]); j 667 drivers/net/ethernet/hisilicon/hns/hnae.h int i, j; j 672 drivers/net/ethernet/hisilicon/hns/hnae.h for (j = 0; j < ring->desc_num; j++) j 673 drivers/net/ethernet/hisilicon/hns/hnae.h ring->desc[j].addr = cpu_to_le64(ring->desc_cb[j].dma); j 682 drivers/net/ethernet/hisilicon/hns/hnae.h int i, j; j 687 drivers/net/ethernet/hisilicon/hns/hnae.h for (j = 0; j < ring->desc_num; j++) { j 688 drivers/net/ethernet/hisilicon/hns/hnae.h ring->desc_cb[j].page_offset = 0; j 689 drivers/net/ethernet/hisilicon/hns/hnae.h if (ring->desc[j].addr != j 690 drivers/net/ethernet/hisilicon/hns/hnae.h cpu_to_le64(ring->desc_cb[j].dma)) j 691 drivers/net/ethernet/hisilicon/hns/hnae.h ring->desc[j].addr = j 692 drivers/net/ethernet/hisilicon/hns/hnae.h cpu_to_le64(ring->desc_cb[j].dma); j 2262 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c u32 j; j 2315 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c j = i * DSAF_COMM_CHN + port; j 2317 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_INODE_IN_PORT_NUM_0_REG + j * 0x80); j 2319 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_INODE_PRI_TC_CFG_0_REG + j * 0x80); j 2321 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_INODE_BP_STATUS_0_REG + j * 0x80); j 2323 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_INODE_PAD_DISCARD_NUM_0_REG + j * 0x80); j 2325 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_INODE_FINAL_IN_MAN_NUM_0_REG + j * 0x80); j 2327 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_INODE_FINAL_IN_PKT_NUM_0_REG + j * 0x80); j 2329 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_INODE_SBM_PID_NUM_0_REG + j * 0x80); j 2332 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c p[193 + i] = dsaf_read_dev(ddev, reg_tmp + j * 0x80); j 2334 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_INODE_SBM_RELS_NUM_0_REG + j * 0x80); j 2336 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_INODE_SBM_DROP_NUM_0_REG + j * 0x80); j 2338 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_INODE_CRC_FALSE_NUM_0_REG + j * 0x80); j 2340 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_INODE_BP_DISCARD_NUM_0_REG + j * 0x80); j 2342 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_INODE_RSLT_DISCARD_NUM_0_REG + j * 0x80); j 2344 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_INODE_LOCAL_ADDR_FALSE_NUM_0_REG + j * 0x80); j 2346 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_INODE_VOQ_OVER_NUM_0_REG + j * 0x80); j 2348 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_INODE_BD_SAVE_STATUS_0_REG + j * 4); j 2350 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_INODE_BD_ORDER_STATUS_0_REG + j * 4); j 2352 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_INODE_SW_VLAN_TAG_DISC_0_REG + j * 4); j 2354 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_INODE_IN_DATA_STP_DISC_0_REG + j * 4); j 2360 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c j = i * DSAF_COMM_CHN + port; j 2362 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_INODE_VC0_IN_PKT_NUM_0_REG + j * 4); j 2370 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c j = i * DSAF_COMM_CHN + port; j 2372 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_CFG_REG_0_REG + j * 0x80); j 2374 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_BP_CFG_0_XGE_REG_0_REG + j * 0x80); j 2376 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_BP_CFG_1_REG_0_REG + j * 0x80); j 2378 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_BP_CFG_2_XGE_REG_0_REG + j * 0x80); j 2380 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_FREE_CNT_0_0_REG + j * 0x80); j 2382 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_FREE_CNT_1_0_REG + j * 0x80); j 2384 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_BP_CNT_0_0_REG + j * 0x80); j 2386 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_BP_CNT_1_0_REG + j * 0x80); j 2388 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_BP_CNT_2_0_REG + j * 0x80); j 2390 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_BP_CNT_3_0_REG + j * 0x80); j 2392 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_INER_ST_0_REG + j * 0x80); j 2394 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_MIB_REQ_FAILED_TC_0_REG + j * 0x80); j 2396 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_LNK_INPORT_CNT_0_REG + j * 0x80); j 2398 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_LNK_DROP_CNT_0_REG + j * 0x80); j 2400 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_INF_OUTPORT_CNT_0_REG + j * 0x80); j 2402 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_LNK_INPORT_TC0_CNT_0_REG + j * 0x80); j 2404 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_LNK_INPORT_TC1_CNT_0_REG + j * 0x80); j 2406 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_LNK_INPORT_TC2_CNT_0_REG + j * 0x80); j 2408 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_LNK_INPORT_TC3_CNT_0_REG + j * 0x80); j 2410 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_LNK_INPORT_TC4_CNT_0_REG + j * 0x80); j 2412 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_LNK_INPORT_TC5_CNT_0_REG + j * 0x80); j 2414 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_LNK_INPORT_TC6_CNT_0_REG + j * 0x80); j 2416 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_LNK_INPORT_TC7_CNT_0_REG + j * 0x80); j 2418 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_LNK_REQ_CNT_0_REG + j * 0x80); j 2420 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_LNK_RELS_CNT_0_REG + j * 0x80); j 2422 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_BP_CFG_3_REG_0_REG + j * 0x80); j 2424 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_SBM_BP_CFG_4_REG_0_REG + j * 0x80); j 2448 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c j = i * DSAF_COMM_CHN + port; j 2450 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_XOD_GNT_L_0_REG + j * 0x90); j 2452 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_XOD_GNT_H_0_REG + j * 0x90); j 2454 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_XOD_CONNECT_STATE_0_REG + j * 0x90); j 2456 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_XOD_RCVPKT_CNT_0_REG + j * 0x90); j 2458 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_XOD_RCVTC0_CNT_0_REG + j * 0x90); j 2460 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_XOD_RCVTC1_CNT_0_REG + j * 0x90); j 2462 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_XOD_RCVTC2_CNT_0_REG + j * 0x90); j 2464 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_XOD_RCVTC3_CNT_0_REG + j * 0x90); j 2466 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_XOD_RCVVC0_CNT_0_REG + j * 0x90); j 2468 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_XOD_RCVVC1_CNT_0_REG + j * 0x90); j 2500 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c j = (i * DSAF_COMM_CHN + port) * 0x90; j 2502 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_VOQ_ECC_INVERT_EN_0_REG + j); j 2504 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_VOQ_SRAM_PKT_NUM_0_REG + j); j 2505 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c p[415 + i] = dsaf_read_dev(ddev, DSAF_VOQ_IN_PKT_NUM_0_REG + j); j 2507 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_VOQ_OUT_PKT_NUM_0_REG + j); j 2509 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_VOQ_ECC_ERR_ADDR_0_REG + j); j 2510 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c p[424 + i] = dsaf_read_dev(ddev, DSAF_VOQ_BP_STATUS_0_REG + j); j 2511 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c p[427 + i] = dsaf_read_dev(ddev, DSAF_VOQ_SPUP_IDLE_0_REG + j); j 2513 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_VOQ_XGE_XOD_REQ_0_0_REG + j); j 2515 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_VOQ_XGE_XOD_REQ_1_0_REG + j); j 2517 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_VOQ_PPE_XOD_REQ_0_REG + j); j 2519 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_VOQ_ROCEE_XOD_REQ_0_REG + j); j 2521 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_VOQ_BP_ALL_THRD_0_REG + j); j 2550 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c j = i * 0x8; j 2552 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_TBL_DA0_MIS_INFO1_0_REG + j); j 2554 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c DSAF_TBL_DA0_MIS_INFO0_0_REG + j); j 1326 drivers/net/ethernet/hisilicon/hns/hns_enet.c int i, j; j 1364 drivers/net/ethernet/hisilicon/hns/hns_enet.c for (j = i - 1; j >= 0; j--) j 1365 drivers/net/ethernet/hisilicon/hns/hns_enet.c hns_nic_ring_close(ndev, j); j 1627 drivers/net/ethernet/hisilicon/hns/hns_enet.c int i, j; j 1673 drivers/net/ethernet/hisilicon/hns/hns_enet.c for (j = 0; j < indir_size / sizeof(*org_indir); j++) j 1674 drivers/net/ethernet/hisilicon/hns/hns_enet.c cur_indir[j] = i; j 1677 drivers/net/ethernet/hisilicon/hns/hns_enet.c for (j = 0; j < fetch_num; j++) { j 482 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c int i, j, lc, good_cnt, ret_val = 0; j 500 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c for (j = 0; j < lc; j++) { j 370 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c int i, j; j 396 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c for (j = 0; j < h->kinfo.num_tqps; j++) j 397 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_tqp_enable(h->kinfo.tqp[j]); j 408 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c while (j--) j 409 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_tqp_disable(h->kinfo.tqp[j]); j 411 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c for (j = i - 1; j >= 0; j--) j 412 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_vector_disable(&priv->tqp_vector[j]); j 2259 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c int i, j, ret; j 2270 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c for (j = i - 1; j >= 0; j--) j 2271 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_free_buffer_detach(ring, j); j 3700 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c int j; j 3705 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c for (j = 0; j < tc_info->tqp_count; j++) { j 3708 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c q = priv->ring_data[tc_info->tqp_offset + j].ring->tqp; j 3719 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c int i, j; j 3736 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c for (j = i - 1; j >= 0; j--) j 3737 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_fini_ring(priv->ring_data[j].ring); j 4179 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c int i, j; j 4205 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c for (j = 0; j < rx_ring->desc_num; j++) j 4206 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_reuse_buffer(rx_ring, j); j 418 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c u32 i, j; j 422 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c for (j = 0; j < stat_count; j++) { j 432 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c strncat(data, stats[j].stats_string, size_left); j 485 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c int i, j; j 490 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c for (j = 0; j < HNS3_TXQ_STATS_COUNT; j++) { j 491 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c stat = (u8 *)ring + hns3_txq_stats[j].stats_offset; j 499 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c for (j = 0; j < HNS3_RXQ_STATS_COUNT; j++) { j 500 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c stat = (u8 *)ring + hns3_rxq_stats[j].stats_offset; j 284 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c u8 i, j, pfc_map, *prio_tc; j 294 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c for (j = 0; j < HNAE3_MAX_USER_PRIO; j++) { j 295 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c if ((prio_tc[j] == i) && (pfc_map & BIT(i))) j 296 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c pfc->pfc_en |= BIT(j); j 320 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c u8 i, j, pfc_map, *prio_tc; j 334 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c for (j = 0; j < HNAE3_MAX_USER_PRIO; j++) { j 335 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c if ((prio_tc[j] == i) && (pfc->pfc_en & BIT(j))) { j 1030 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c int j; j 1033 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c for (j = 0; j < HCLGE_CMD_DATA_NUM; j++) { j 1034 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c if (i == 0 && j == 0) j 1039 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c le32_to_cpu(desc[i].data[j])); j 2103 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c int i, j; j 2117 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c for (j = 0; j < HCLGE_TC_NUM_ONE_DESC; j++) { j 2118 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c u32 idx = i * HCLGE_TC_NUM_ONE_DESC + j; j 2121 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c req->tc_wl[j].high = j 2123 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c req->tc_wl[j].high |= j 2125 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c req->tc_wl[j].low = j 2127 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c req->tc_wl[j].low |= j 2148 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c int i, j; j 2162 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c for (j = 0; j < HCLGE_TC_NUM_ONE_DESC; j++) { j 2163 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c tc = &s_buf->tc_thrd[i * HCLGE_TC_NUM_ONE_DESC + j]; j 2165 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c req->com_thrd[j].high = j 2167 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c req->com_thrd[j].high |= j 2169 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c req->com_thrd[j].low = j 2171 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c req->com_thrd[j].low |= j 3940 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c int i, j; j 3945 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c for (j = 0; j < vector_num; j++) { j 4050 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c int i, j; j 4063 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c for (j = 0; j < HCLGE_RSS_CFG_TBL_SIZE; j++) j 4064 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c req->rss_result[j] = j 4065 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c indir[i * HCLGE_RSS_CFG_TBL_SIZE + j]; j 4445 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c int i, j; j 4447 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c for (j = 0; j < hdev->num_vmdq_vport + 1; j++) { j 4449 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c vport[j].rss_indirection_tbl[i] = j 4450 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c i % vport[j].alloc_rss_size; j 6832 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c int i, j; j 6835 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c for (j = 0; j < HCLGE_FUNC_NUMBER_PER_DESC; j++) j 6836 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (desc[i].data[j]) j 9924 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c int i, j, reg_num, separator_num; j 9947 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c for (j = 0; j < kinfo->num_tqps; j++) { j 9951 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c HCLGE_RING_REG_OFFSET * j); j 9959 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c for (j = 0; j < hdev->num_msi_used - 1; j++) { j 9963 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c HCLGE_RING_INT_REG_OFFSET * j); j 119 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c int ret, i, j; j 140 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (j = 0; j < HCLGE_TM_PFC_NUM_GET_PER_CMD; j++) { j 141 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c u32 index = i * HCLGE_TM_PFC_PKT_GET_CMD_NUM + j; j 145 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c le64_to_cpu(pfc_stats->pkt_num[j]); j 756 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c u32 i, j; j 761 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (j = 0; j < v_tc_info->tqp_count; j++) { j 762 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c struct hnae3_queue *q = tqp[v_tc_info->tqp_offset + j]; j 510 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c int i, j; j 515 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c for (j = 0; j < vector_num; j++) { j 605 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c int i, j; j 614 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c for (j = 0; j < HCLGEVF_RSS_CFG_TBL_SIZE; j++) j 615 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c req->rss_result[j] = j 616 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c indir[i * HCLGEVF_RSS_CFG_TBL_SIZE + j]; j 3033 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c int i, j, reg_um, separator_num; j 3055 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c for (j = 0; j < hdev->num_tqps; j++) { j 3059 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c 0x200 * j); j 3066 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c for (j = 0; j < hdev->num_msi_used - 1; j++) { j 3070 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c 4 * j); j 605 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c u16 i = 0, j = 0, qid = 0; j 613 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c for (j = 0; j < ARRAY_LEN(hinic_tx_queue_stats); j++, i++) { j 615 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c hinic_tx_queue_stats[j].offset; j 616 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c data[i] = (hinic_tx_queue_stats[j].size == j 626 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c for (j = 0; j < ARRAY_LEN(hinic_rx_queue_stats); j++, i++) { j 628 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c hinic_rx_queue_stats[j].offset; j 629 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c data[i] = (hinic_rx_queue_stats[j].size == j 641 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c u16 i = 0, j = 0; j 650 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c for (j = 0; j < ARRAY_LEN(hinic_function_stats); j++, i++) { j 651 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c p = (char *)&vport_stats + hinic_function_stats[j].offset; j 652 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c data[i] = (hinic_function_stats[j].size == j 669 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c for (j = 0; j < ARRAY_LEN(hinic_port_stats); j++, i++) { j 670 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c p = (char *)port_stats + hinic_port_stats[j].offset; j 671 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c data[i] = (hinic_port_stats[j].size == j 706 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c u16 i, j; j 723 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c for (j = 0; j < ARRAY_LEN(hinic_tx_queue_stats); j++) { j 724 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c sprintf(p, hinic_tx_queue_stats[j].name, i); j 730 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c for (j = 0; j < ARRAY_LEN(hinic_rx_queue_stats); j++) { j 731 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c sprintf(p, hinic_rx_queue_stats[j].name, i); j 375 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c int i, j, err; j 439 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c for (j = 0; j < i; j++) j 440 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c destroy_qp(func_to_io, &func_to_io->qps[j]); j 317 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.c int j, i; j 340 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.c for (j = 0; j < i; j++) j 341 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.c dma_free_coherent(&pdev->dev, sizeof(*rq->cqe[j]), rq->cqe[j], j 342 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.c rq->cqe_dma[j]); j 610 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c int i, j, err = -ENOMEM; j 677 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c for (j = 0; j < i; j++) j 678 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c free_wq_pages(&wq[j], cmdq_pages->hwif, wq[j].num_q_pages); j 134 drivers/net/ethernet/huawei/hinic/hinic_main.c int err, i, j, num_txqs = hinic_hwdev_num_qps(nic_dev->hwdev); j 160 drivers/net/ethernet/huawei/hinic/hinic_main.c for (j = 0; j < i; j++) j 161 drivers/net/ethernet/huawei/hinic/hinic_main.c hinic_clean_txq(&nic_dev->txqs[j]); j 194 drivers/net/ethernet/huawei/hinic/hinic_main.c int err, i, j, num_rxqs = hinic_hwdev_num_qps(nic_dev->hwdev); j 220 drivers/net/ethernet/huawei/hinic/hinic_main.c for (j = 0; j < i; j++) j 221 drivers/net/ethernet/huawei/hinic/hinic_main.c hinic_clean_rxq(&nic_dev->rxqs[j]); j 141 drivers/net/ethernet/huawei/hinic/hinic_tx.c int i, j; j 169 drivers/net/ethernet/huawei/hinic/hinic_tx.c for (j = 0; j < i; j++) j 170 drivers/net/ethernet/huawei/hinic/hinic_tx.c dma_unmap_page(&pdev->dev, hinic_sge_to_dma(&sges[j + 1]), j 171 drivers/net/ethernet/huawei/hinic/hinic_tx.c sges[j + 1].len, DMA_TO_DEVICE); j 798 drivers/net/ethernet/ibm/ehea/ehea_qmr.c u64 j, m, hret; j 804 drivers/net/ethernet/ibm/ehea/ehea_qmr.c for (j = 0; j < (EHEA_PAGES_PER_SECTION / EHEA_MAX_RPAGE); j++) { j 3327 drivers/net/ethernet/ibm/emac/core.c int j, max, i = 0; j 3352 drivers/net/ethernet/ibm/emac/core.c for (j = i; j < max; j++) { j 3353 drivers/net/ethernet/ibm/emac/core.c if (cell_indices[i] > cell_indices[j]) { j 3354 drivers/net/ethernet/ibm/emac/core.c swap(emac_boot_list[i], emac_boot_list[j]); j 3355 drivers/net/ethernet/ibm/emac/core.c swap(cell_indices[i], cell_indices[j]); j 416 drivers/net/ethernet/ibm/ibmvnic.c int i, j, rc; j 443 drivers/net/ethernet/ibm/ibmvnic.c for (j = 0; j < rx_pool->size; j++) j 444 drivers/net/ethernet/ibm/ibmvnic.c rx_pool->free_map[j] = j; j 461 drivers/net/ethernet/ibm/ibmvnic.c int i, j; j 477 drivers/net/ethernet/ibm/ibmvnic.c for (j = 0; j < rx_pool->size; j++) { j 478 drivers/net/ethernet/ibm/ibmvnic.c if (rx_pool->rx_buff[j].skb) { j 479 drivers/net/ethernet/ibm/ibmvnic.c dev_kfree_skb_any(rx_pool->rx_buff[j].skb); j 480 drivers/net/ethernet/ibm/ibmvnic.c rx_pool->rx_buff[j].skb = NULL; j 499 drivers/net/ethernet/ibm/ibmvnic.c int i, j; j 551 drivers/net/ethernet/ibm/ibmvnic.c for (j = 0; j < rx_pool->size; ++j) j 552 drivers/net/ethernet/ibm/ibmvnic.c rx_pool->free_map[j] = j; j 1114 drivers/net/ethernet/ibm/ibmvnic.c int i, j; j 1129 drivers/net/ethernet/ibm/ibmvnic.c for (j = 0; j < rx_entries; j++) { j 1130 drivers/net/ethernet/ibm/ibmvnic.c rx_buff = &rx_pool->rx_buff[j]; j 2596 drivers/net/ethernet/ibm/ibmvnic.c int i, j; j 2617 drivers/net/ethernet/ibm/ibmvnic.c for (j = 0; j < adapter->req_tx_queues; j++) { j 2618 drivers/net/ethernet/ibm/ibmvnic.c data[i] = adapter->tx_stats_buffers[j].packets; j 2620 drivers/net/ethernet/ibm/ibmvnic.c data[i] = adapter->tx_stats_buffers[j].bytes; j 2622 drivers/net/ethernet/ibm/ibmvnic.c data[i] = adapter->tx_stats_buffers[j].dropped_packets; j 2626 drivers/net/ethernet/ibm/ibmvnic.c for (j = 0; j < adapter->req_rx_queues; j++) { j 2627 drivers/net/ethernet/ibm/ibmvnic.c data[i] = adapter->rx_stats_buffers[j].packets; j 2629 drivers/net/ethernet/ibm/ibmvnic.c data[i] = adapter->rx_stats_buffers[j].bytes; j 2631 drivers/net/ethernet/ibm/ibmvnic.c data[i] = adapter->rx_stats_buffers[j].interrupts; j 2909 drivers/net/ethernet/ibm/ibmvnic.c int i, j; j 2933 drivers/net/ethernet/ibm/ibmvnic.c for (j = 0; j < IBMVNIC_MAX_FRAGS_PER_CRQ; j++) { j 2934 drivers/net/ethernet/ibm/ibmvnic.c if (!txbuff->data_dma[j]) j 2937 drivers/net/ethernet/ibm/ibmvnic.c txbuff->data_dma[j] = 0; j 3011 drivers/net/ethernet/ibm/ibmvnic.c int i = 0, j = 0; j 3063 drivers/net/ethernet/ibm/ibmvnic.c for (j = 0; j < i; j++) { j 3064 drivers/net/ethernet/ibm/ibmvnic.c free_irq(adapter->rx_scrq[j]->irq, adapter->rx_scrq[j]); j 3065 drivers/net/ethernet/ibm/ibmvnic.c irq_dispose_mapping(adapter->rx_scrq[j]->irq); j 3069 drivers/net/ethernet/ibm/ibmvnic.c for (j = 0; j < i; j++) { j 3070 drivers/net/ethernet/ibm/ibmvnic.c free_irq(adapter->tx_scrq[j]->irq, adapter->tx_scrq[j]); j 3071 drivers/net/ethernet/ibm/ibmvnic.c irq_dispose_mapping(adapter->rx_scrq[j]->irq); j 688 drivers/net/ethernet/intel/e100.c int i, j; j 697 drivers/net/ethernet/intel/e100.c for (j = 0; j < 3; j++) { j 704 drivers/net/ethernet/intel/e100.c ctrl = (cmd_addr_data[j] & (1 << i)) ? j 1384 drivers/net/ethernet/intel/e1000/e1000_ethtool.c int i, j, k, l, lc, good_cnt, ret_val = 0; j 1400 drivers/net/ethernet/intel/e1000/e1000_ethtool.c for (j = 0; j <= lc; j++) { /* loop count loop */ j 1632 drivers/net/ethernet/intel/e1000e/ethtool.c int i, j, k, l; j 1653 drivers/net/ethernet/intel/e1000e/ethtool.c for (j = 0; j <= lc; j++) { j 4415 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 j, iteration, sector_size; j 4457 drivers/net/ethernet/intel/e1000e/ich8lan.c for (j = 0; j < iteration; j++) { j 4486 drivers/net/ethernet/intel/e1000e/ich8lan.c flash_linear_addr += (j * sector_size); j 187 drivers/net/ethernet/intel/e1000e/manage.c u16 remaining, i, j, prev_bytes; j 200 drivers/net/ethernet/intel/e1000e/manage.c for (j = prev_bytes; j < sizeof(u32); j++) { j 201 drivers/net/ethernet/intel/e1000e/manage.c *(tmp + j) = *bufptr++; j 202 drivers/net/ethernet/intel/e1000e/manage.c *sum += *(tmp + j); j 205 drivers/net/ethernet/intel/e1000e/manage.c length -= j - prev_bytes; j 219 drivers/net/ethernet/intel/e1000e/manage.c for (j = 0; j < sizeof(u32); j++) { j 220 drivers/net/ethernet/intel/e1000e/manage.c *(tmp + j) = *bufptr++; j 221 drivers/net/ethernet/intel/e1000e/manage.c *sum += *(tmp + j); j 227 drivers/net/ethernet/intel/e1000e/manage.c for (j = 0; j < sizeof(u32); j++) { j 228 drivers/net/ethernet/intel/e1000e/manage.c if (j < remaining) j 229 drivers/net/ethernet/intel/e1000e/manage.c *(tmp + j) = *bufptr++; j 231 drivers/net/ethernet/intel/e1000e/manage.c *(tmp + j) = 0; j 233 drivers/net/ethernet/intel/e1000e/manage.c *sum += *(tmp + j); j 722 drivers/net/ethernet/intel/e1000e/netdev.c unsigned int i, j; j 730 drivers/net/ethernet/intel/e1000e/netdev.c for (j = 0; j < PS_PAGE_BUFFERS; j++) { j 731 drivers/net/ethernet/intel/e1000e/netdev.c ps_page = &buffer_info->ps_pages[j]; j 732 drivers/net/ethernet/intel/e1000e/netdev.c if (j >= adapter->rx_ps_pages) { j 734 drivers/net/ethernet/intel/e1000e/netdev.c rx_desc->read.buffer_addr[j + 1] = j 760 drivers/net/ethernet/intel/e1000e/netdev.c rx_desc->read.buffer_addr[j + 1] = j 1312 drivers/net/ethernet/intel/e1000e/netdev.c unsigned int i, j; j 1420 drivers/net/ethernet/intel/e1000e/netdev.c for (j = 0; j < PS_PAGE_BUFFERS; j++) { j 1421 drivers/net/ethernet/intel/e1000e/netdev.c length = le16_to_cpu(rx_desc->wb.upper.length[j]); j 1425 drivers/net/ethernet/intel/e1000e/netdev.c ps_page = &buffer_info->ps_pages[j]; j 1429 drivers/net/ethernet/intel/e1000e/netdev.c skb_fill_page_desc(skb, j, ps_page->page, 0, length); j 1679 drivers/net/ethernet/intel/e1000e/netdev.c unsigned int i, j; j 1709 drivers/net/ethernet/intel/e1000e/netdev.c for (j = 0; j < PS_PAGE_BUFFERS; j++) { j 1710 drivers/net/ethernet/intel/e1000e/netdev.c ps_page = &buffer_info->ps_pages[j]; j 2846 drivers/net/ethernet/intel/e1000e/netdev.c u32 manc, manc2h, mdef, i, j; j 2869 drivers/net/ethernet/intel/e1000e/netdev.c for (i = 0, j = 0; i < 8; i++) { j 2880 drivers/net/ethernet/intel/e1000e/netdev.c j |= mdef; j 2883 drivers/net/ethernet/intel/e1000e/netdev.c if (j == (E1000_MDEF_PORT_623 | E1000_MDEF_PORT_664)) j 2887 drivers/net/ethernet/intel/e1000e/netdev.c for (i = 0, j = 0; i < 8; i++) j 2892 drivers/net/ethernet/intel/e1000e/netdev.c j++; j 2896 drivers/net/ethernet/intel/e1000e/netdev.c if (!j) j 340 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c int idx = 0, j; j 343 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c for (j = 0; j < 10; j++) j 344 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c buff[idx++] = fm10k_read_reg(hw, FM10K_RSSRK(i, j)); j 345 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c for (j = 0; j < 32; j++) j 346 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c buff[idx++] = fm10k_read_reg(hw, FM10K_RETA(i, j)); j 976 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c int i, j; j 983 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c for (j = 0; j < 4; j++) { j 985 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c n = indir[4 * i + j]; j 987 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c n = ethtool_rxfh_indir_default(4 * i + j, j 990 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c table[j] = n; j 624 drivers/net/ethernet/intel/fm10k/fm10k_pf.c int i, j; j 690 drivers/net/ethernet/intel/fm10k/fm10k_pf.c for (j = 0; j < qpp; j++, qmap_idx++, vf_q_idx++) { j 709 drivers/net/ethernet/intel/fm10k/fm10k_pf.c for (; j < qmap_stride; j++, qmap_idx++) { j 1328 drivers/net/ethernet/intel/i40e/i40e_common.c u32 i, j; j 1342 drivers/net/ethernet/intel/i40e/i40e_common.c j = (val & I40E_PFLAN_QALLOC_LASTQ_MASK) >> j 1345 drivers/net/ethernet/intel/i40e/i40e_common.c num_queues = (j - base_queue) + 1; j 1352 drivers/net/ethernet/intel/i40e/i40e_common.c j = (val & I40E_PF_VT_PFALLOC_LASTVF_MASK) >> j 1355 drivers/net/ethernet/intel/i40e/i40e_common.c num_vfs = (j - i) + 1; j 120 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c int i, j; j 127 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c for (j = 0; j < dev->addr_len; j++, i++) j 128 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c perm_addr[i] = pf->hw.mac.san_addr[j]; j 81 drivers/net/ethernet/intel/i40e/i40e_diag.c u32 i, j; j 101 drivers/net/ethernet/intel/i40e/i40e_diag.c for (j = 0; j < i40e_reg_list[i].elements && !ret_code; j++) { j 103 drivers/net/ethernet/intel/i40e/i40e_diag.c (j * i40e_reg_list[i].stride); j 1716 drivers/net/ethernet/intel/i40e/i40e_ethtool.c unsigned int i, j, ri; j 1731 drivers/net/ethernet/intel/i40e/i40e_ethtool.c for (j = 0; j < i40e_reg_list[i].elements; j++) { j 1733 drivers/net/ethernet/intel/i40e/i40e_ethtool.c + (j * i40e_reg_list[i].stride); j 3813 drivers/net/ethernet/intel/i40e/i40e_ethtool.c int i = 0, j = 0; j 3833 drivers/net/ethernet/intel/i40e/i40e_ethtool.c for (j = i + 1; j < 3; j++) { j 3834 drivers/net/ethernet/intel/i40e/i40e_ethtool.c u16 offset = entry->src_offset + j; j 4839 drivers/net/ethernet/intel/i40e/i40e_ethtool.c u32 i, j, ret_flags = 0; j 4853 drivers/net/ethernet/intel/i40e/i40e_ethtool.c for (j = 0; j < I40E_GL_PRIV_FLAGS_STR_LEN; j++) { j 4856 drivers/net/ethernet/intel/i40e/i40e_ethtool.c priv_flags = &i40e_gl_gstrings_priv_flags[j]; j 4859 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ret_flags |= BIT(i + j); j 4879 drivers/net/ethernet/intel/i40e/i40e_ethtool.c u32 i, j; j 4903 drivers/net/ethernet/intel/i40e/i40e_ethtool.c for (j = 0; j < I40E_GL_PRIV_FLAGS_STR_LEN; j++) { j 4906 drivers/net/ethernet/intel/i40e/i40e_ethtool.c priv_flags = &i40e_gl_gstrings_priv_flags[j]; j 4908 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (flags & BIT(i + j)) j 289 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c u32 i, j; j 347 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c for (j = sd_idx; j < sd_lmt; j++) { j 349 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c ret_code = i40e_add_sd_table_entry(hw, info->hmc_info, j, j 354 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c sd_entry = &info->hmc_info->sd_table.sd_entry[j]; j 361 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c pd_idx1 = max(pd_idx, (j * I40E_HMC_MAX_BP_COUNT)); j 363 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c ((j + 1) * I40E_HMC_MAX_BP_COUNT)); j 389 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c j, sd_entry->entry_type); j 393 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c j, sd_entry->entry_type); j 405 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c while (j && (j > sd_idx)) { j 406 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c sd_entry = &info->hmc_info->sd_table.sd_entry[j - 1]; j 410 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c ((j - 1) * I40E_HMC_MAX_BP_COUNT)); j 411 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c pd_lmt1 = min(pd_lmt, (j * I40E_HMC_MAX_BP_COUNT)); j 414 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c i40e_remove_pd_page(hw, info->hmc_info, (j - 1)); j 417 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c i40e_remove_sd_bp(hw, info->hmc_info, (j - 1)); j 423 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c j--; j 530 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c u32 i, j; j 578 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c for (j = pd_idx; j < pd_lmt; j++) { j 579 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c sd_idx = j / I40E_HMC_PD_CNT_IN_SD; j 585 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c rel_pd_idx = j % I40E_HMC_PD_CNT_IN_SD; j 590 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c ret_code = i40e_remove_pd_bp(hw, info->hmc_info, j); j 196 drivers/net/ethernet/intel/i40e/i40e_main.c int i, j; j 215 drivers/net/ethernet/intel/i40e/i40e_main.c for (j = 0; (j < needed) && ((i+j) < pile->num_entries); j++) { j 216 drivers/net/ethernet/intel/i40e/i40e_main.c if (pile->list[i+j] & I40E_PILE_VALID_BIT) j 220 drivers/net/ethernet/intel/i40e/i40e_main.c if (j == needed) { j 222 drivers/net/ethernet/intel/i40e/i40e_main.c for (j = 0; j < needed; j++) j 223 drivers/net/ethernet/intel/i40e/i40e_main.c pile->list[i+j] = id | I40E_PILE_VALID_BIT; j 225 drivers/net/ethernet/intel/i40e/i40e_main.c pile->search_hint = i + j; j 230 drivers/net/ethernet/intel/i40e/i40e_main.c i += j; j 7529 drivers/net/ethernet/intel/i40e/i40e_main.c int i, j; j 7541 drivers/net/ethernet/intel/i40e/i40e_main.c for (i = 0, j = 0; i < ARRAY_SIZE(filter->dst_ipv6); j 7542 drivers/net/ethernet/intel/i40e/i40e_main.c i++, j += 2) { j 7545 drivers/net/ethernet/intel/i40e/i40e_main.c memcpy(&cld->ipaddr.raw_v6.data[j], &ipa, sizeof(ipa)); j 77 drivers/net/ethernet/intel/i40e/i40e_txrx_common.h unsigned int j = i40e_get_tx_pending(tx_ring, false); j 80 drivers/net/ethernet/intel/i40e/i40e_txrx_common.h ((j / WB_STRIDE) == 0) && j > 0 && j 805 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c int i, j; j 819 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (j = 0; j < 7; j++) { j 820 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (j * 2 >= qps) { j 826 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c j * 2); j 829 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c (j * 2) + 1); j 833 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c I40E_VSILAN_QTABLE(j, vsi_id), j 853 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c int i, j; j 867 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (j = 0; j < qps; j++) { j 868 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c qid = i40e_vc_get_pf_queue_id(vf, vsi_id, j); j 938 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c int i, j, msix_vf; j 963 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (j = 0; j < vf->num_tc; j++) { j 968 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (j) j 969 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c i40e_vsi_release(pf->vsi[vf->ch[j].vsi_idx]); j 970 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c vf->ch[j].vsi_idx = 0; j 971 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c vf->ch[j].vsi_id = 0; j 2097 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c int i, j = 0, idx = 0; j 2171 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (j == (vf->ch[idx].num_qps - 1)) { j 2173 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c j = 0; /* resetting the queue count */ j 2176 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c j++; j 23 drivers/net/ethernet/intel/i40e/i40e_xsk.c unsigned int i, j; j 39 drivers/net/ethernet/intel/i40e/i40e_xsk.c for (j = 0; j < i; j++) { j 294 drivers/net/ethernet/intel/iavf/iavf_txrx.c unsigned int j = iavf_get_tx_pending(tx_ring, false); j 297 drivers/net/ethernet/intel/iavf/iavf_txrx.c ((j / WB_STRIDE) == 0) && (j > 0) && j 1368 drivers/net/ethernet/intel/ice/ice_dcb.c u8 i, j; j 1375 drivers/net/ethernet/intel/ice/ice_dcb.c ice_for_each_traffic_class(j) { j 1376 drivers/net/ethernet/intel/ice/ice_dcb.c teid2 = le32_to_cpu(buf->tc_node_teid[j]); j 1380 drivers/net/ethernet/intel/ice/ice_dcb.c if (j < ICE_MAX_TRAFFIC_CLASS) j 1386 drivers/net/ethernet/intel/ice/ice_dcb.c ice_for_each_traffic_class(j) { j 1387 drivers/net/ethernet/intel/ice/ice_dcb.c teid2 = le32_to_cpu(buf->tc_node_teid[j]); j 1397 drivers/net/ethernet/intel/ice/ice_dcb.c tc_node->tc_num = j; j 1413 drivers/net/ethernet/intel/ice/ice_dcb.c node->tc_num = j; j 409 drivers/net/ethernet/intel/ice/ice_ethtool.c u32 j; j 411 drivers/net/ethernet/intel/ice/ice_ethtool.c for (j = 0; j < ice_reg_list[i].elem_num; ++j) { j 414 drivers/net/ethernet/intel/ice/ice_ethtool.c (j * ice_reg_list[i].elem_size); j 1303 drivers/net/ethernet/intel/ice/ice_ethtool.c unsigned int j; j 1310 drivers/net/ethernet/intel/ice/ice_ethtool.c for (j = 0; j < ICE_VSI_STATS_LEN; j++) { j 1311 drivers/net/ethernet/intel/ice/ice_ethtool.c p = (char *)vsi + ice_gstrings_vsi_stats[j].stat_offset; j 1312 drivers/net/ethernet/intel/ice/ice_ethtool.c data[i++] = (ice_gstrings_vsi_stats[j].sizeof_stat == j 1319 drivers/net/ethernet/intel/ice/ice_ethtool.c ice_for_each_alloc_txq(vsi, j) { j 1320 drivers/net/ethernet/intel/ice/ice_ethtool.c ring = READ_ONCE(vsi->tx_rings[j]); j 1330 drivers/net/ethernet/intel/ice/ice_ethtool.c ice_for_each_alloc_rxq(vsi, j) { j 1331 drivers/net/ethernet/intel/ice/ice_ethtool.c ring = READ_ONCE(vsi->rx_rings[j]); j 1346 drivers/net/ethernet/intel/ice/ice_ethtool.c for (j = 0; j < ICE_PF_STATS_LEN; j++) { j 1347 drivers/net/ethernet/intel/ice/ice_ethtool.c p = (char *)pf + ice_gstrings_pf_stats[j].stat_offset; j 1348 drivers/net/ethernet/intel/ice/ice_ethtool.c data[i++] = (ice_gstrings_pf_stats[j].sizeof_stat == j 1352 drivers/net/ethernet/intel/ice/ice_ethtool.c for (j = 0; j < ICE_MAX_USER_PRIORITY; j++) { j 1353 drivers/net/ethernet/intel/ice/ice_ethtool.c data[i++] = pf->stats.priority_xon_tx[j]; j 1354 drivers/net/ethernet/intel/ice/ice_ethtool.c data[i++] = pf->stats.priority_xoff_tx[j]; j 1357 drivers/net/ethernet/intel/ice/ice_ethtool.c for (j = 0; j < ICE_MAX_USER_PRIORITY; j++) { j 1358 drivers/net/ethernet/intel/ice/ice_ethtool.c data[i++] = pf->stats.priority_xon_rx[j]; j 1359 drivers/net/ethernet/intel/ice/ice_ethtool.c data[i++] = pf->stats.priority_xoff_rx[j]; j 1452 drivers/net/ethernet/intel/ice/ice_flex_pipe.c u16 j; j 1498 drivers/net/ethernet/intel/ice/ice_flex_pipe.c for (j = 0; j < xlt2->count; j++) j 1499 drivers/net/ethernet/intel/ice/ice_flex_pipe.c INIT_LIST_HEAD(&xlt2->vsig_tbl[j].prop_lst); j 308 drivers/net/ethernet/intel/ice/ice_sched.c u8 i, j; j 334 drivers/net/ethernet/intel/ice/ice_sched.c for (j = i + 1; j < parent->num_children; j++) j 335 drivers/net/ethernet/intel/ice/ice_sched.c parent->children[j - 1] = j 336 drivers/net/ethernet/intel/ice/ice_sched.c parent->children[j]; j 941 drivers/net/ethernet/intel/ice/ice_sched.c u8 i, j; j 998 drivers/net/ethernet/intel/ice/ice_sched.c for (j = 1; j < num_elems; j++) { j 1000 drivers/net/ethernet/intel/ice/ice_sched.c if (buf[0].generic[j].data.elem_type == j 1002 drivers/net/ethernet/intel/ice/ice_sched.c hw->sw_entry_point_layer = j; j 1004 drivers/net/ethernet/intel/ice/ice_sched.c status = ice_sched_add_node(pi, j, &buf[i].generic[j]); j 1615 drivers/net/ethernet/intel/ice/ice_sched.c u8 j = 0; j 1631 drivers/net/ethernet/intel/ice/ice_sched.c while (j < vsi_node->num_children) { j 1632 drivers/net/ethernet/intel/ice/ice_sched.c if (vsi_node->children[j]->owner == owner) { j 1633 drivers/net/ethernet/intel/ice/ice_sched.c ice_free_sched_node(pi, vsi_node->children[j]); j 1638 drivers/net/ethernet/intel/ice/ice_sched.c j = 0; j 1640 drivers/net/ethernet/intel/ice/ice_sched.c j++; j 2433 drivers/net/ethernet/intel/igb/e1000_82575.c u16 j, nvm_data; j 2449 drivers/net/ethernet/intel/igb/e1000_82575.c for (j = 0; j < eeprom_regions_count; j++) { j 2450 drivers/net/ethernet/intel/igb/e1000_82575.c nvm_offset = NVM_82580_LAN_FUNC_OFFSET(j); j 2472 drivers/net/ethernet/intel/igb/e1000_82575.c u16 j, nvm_data; j 2492 drivers/net/ethernet/intel/igb/e1000_82575.c for (j = 0; j < 4; j++) { j 2493 drivers/net/ethernet/intel/igb/e1000_82575.c nvm_offset = NVM_82580_LAN_FUNC_OFFSET(j); j 2514 drivers/net/ethernet/intel/igb/e1000_82575.c u16 j; j 2517 drivers/net/ethernet/intel/igb/e1000_82575.c for (j = 0; j < 4; j++) { j 2518 drivers/net/ethernet/intel/igb/e1000_82575.c nvm_offset = NVM_82580_LAN_FUNC_OFFSET(j); j 2540 drivers/net/ethernet/intel/igb/e1000_82575.c u16 j; j 2543 drivers/net/ethernet/intel/igb/e1000_82575.c for (j = 0; j < 4; j++) { j 2544 drivers/net/ethernet/intel/igb/e1000_82575.c nvm_offset = NVM_82580_LAN_FUNC_OFFSET(j); j 1874 drivers/net/ethernet/intel/igb/igb_ethtool.c u16 i, j, lc, good_cnt; j 1899 drivers/net/ethernet/intel/igb/igb_ethtool.c for (j = 0; j <= lc; j++) { /* loop count loop */ j 2298 drivers/net/ethernet/intel/igb/igb_ethtool.c int i, j; j 2309 drivers/net/ethernet/intel/igb/igb_ethtool.c for (j = 0; j < IGB_NETDEV_STATS_LEN; j++, i++) { j 2310 drivers/net/ethernet/intel/igb/igb_ethtool.c p = (char *)net_stats + igb_gstrings_net_stats[j].stat_offset; j 2311 drivers/net/ethernet/intel/igb/igb_ethtool.c data[i] = (igb_gstrings_net_stats[j].sizeof_stat == j 2314 drivers/net/ethernet/intel/igb/igb_ethtool.c for (j = 0; j < adapter->num_tx_queues; j++) { j 2317 drivers/net/ethernet/intel/igb/igb_ethtool.c ring = adapter->tx_ring[j]; j 2332 drivers/net/ethernet/intel/igb/igb_ethtool.c for (j = 0; j < adapter->num_rx_queues; j++) { j 2333 drivers/net/ethernet/intel/igb/igb_ethtool.c ring = adapter->rx_ring[j]; j 3331 drivers/net/ethernet/intel/igb/igb_ethtool.c int j; j 3333 drivers/net/ethernet/intel/igb/igb_ethtool.c for (j = 3; j >= 0; j--) { j 3335 drivers/net/ethernet/intel/igb/igb_ethtool.c val |= adapter->rss_indir_tbl[i + j]; j 708 drivers/net/ethernet/intel/igb/igb_main.c int i = 0, j = 0; j 734 drivers/net/ethernet/intel/igb/igb_main.c for (; j < adapter->num_tx_queues; j++) j 735 drivers/net/ethernet/intel/igb/igb_main.c adapter->tx_ring[j]->reg_idx = rbase_offset + j; j 4254 drivers/net/ethernet/intel/igb/igb_main.c u32 j, num_rx_queues; j 4258 drivers/net/ethernet/intel/igb/igb_main.c for (j = 0; j < 10; j++) j 4259 drivers/net/ethernet/intel/igb/igb_main.c wr32(E1000_RSSRK(j), rss_key[j]); j 4274 drivers/net/ethernet/intel/igb/igb_main.c for (j = 0; j < IGB_RETA_SIZE; j++) j 4275 drivers/net/ethernet/intel/igb/igb_main.c adapter->rss_indir_tbl[j] = j 4276 drivers/net/ethernet/intel/igb/igb_main.c (j * num_rx_queues) / IGB_RETA_SIZE; j 5103 drivers/net/ethernet/intel/igb/igb_main.c int j; j 5108 drivers/net/ethernet/intel/igb/igb_main.c for (j = 0; j < adapter->vfs_allocated_count; j++) { j 5109 drivers/net/ethernet/intel/igb/igb_main.c if (adapter->wvbr & BIT(j) || j 5110 drivers/net/ethernet/intel/igb/igb_main.c adapter->wvbr & BIT(j + IGB_STAGGERED_QUEUE_OFFSET)) { j 5112 drivers/net/ethernet/intel/igb/igb_main.c "Spoof event(s) detected on VF %d\n", j); j 5114 drivers/net/ethernet/intel/igb/igb_main.c ~(BIT(j) | j 5115 drivers/net/ethernet/intel/igb/igb_main.c BIT(j + IGB_STAGGERED_QUEUE_OFFSET)); j 6772 drivers/net/ethernet/intel/igb/igb_main.c int j; j 6775 drivers/net/ethernet/intel/igb/igb_main.c for (j = 0; j < vf_data->num_vf_mc_hashes; j++) j 6776 drivers/net/ethernet/intel/igb/igb_main.c igb_mta_set(hw, vf_data->vf_mc_hashes[j]); j 6821 drivers/net/ethernet/intel/igb/igb_main.c int i, j; j 6835 drivers/net/ethernet/intel/igb/igb_main.c for (j = 0; j < vf_data->num_vf_mc_hashes; j++) j 6836 drivers/net/ethernet/intel/igb/igb_main.c igb_mta_set(hw, vf_data->vf_mc_hashes[j]); j 730 drivers/net/ethernet/intel/igc/igc_ethtool.c int i, j; j 741 drivers/net/ethernet/intel/igc/igc_ethtool.c for (j = 0; j < IGC_NETDEV_STATS_LEN; j++, i++) { j 742 drivers/net/ethernet/intel/igc/igc_ethtool.c p = (char *)net_stats + igc_gstrings_net_stats[j].stat_offset; j 743 drivers/net/ethernet/intel/igc/igc_ethtool.c data[i] = (igc_gstrings_net_stats[j].sizeof_stat == j 746 drivers/net/ethernet/intel/igc/igc_ethtool.c for (j = 0; j < adapter->num_tx_queues; j++) { j 749 drivers/net/ethernet/intel/igc/igc_ethtool.c ring = adapter->tx_ring[j]; j 764 drivers/net/ethernet/intel/igc/igc_ethtool.c for (j = 0; j < adapter->num_rx_queues; j++) { j 765 drivers/net/ethernet/intel/igc/igc_ethtool.c ring = adapter->rx_ring[j]; j 1485 drivers/net/ethernet/intel/igc/igc_ethtool.c int j; j 1487 drivers/net/ethernet/intel/igc/igc_ethtool.c for (j = 3; j >= 0; j--) { j 1489 drivers/net/ethernet/intel/igc/igc_ethtool.c val |= adapter->rss_indir_tbl[i + j]; j 652 drivers/net/ethernet/intel/igc/igc_main.c u32 j, num_rx_queues; j 657 drivers/net/ethernet/intel/igc/igc_main.c for (j = 0; j < 10; j++) j 658 drivers/net/ethernet/intel/igc/igc_main.c wr32(IGC_RSSRK(j), rss_key[j]); j 663 drivers/net/ethernet/intel/igc/igc_main.c for (j = 0; j < IGC_RETA_SIZE; j++) j 664 drivers/net/ethernet/intel/igc/igc_main.c adapter->rss_indir_tbl[j] = j 665 drivers/net/ethernet/intel/igc/igc_main.c (j * num_rx_queues) / IGC_RETA_SIZE; j 3671 drivers/net/ethernet/intel/igc/igc_main.c int i = 0, j = 0; j 3679 drivers/net/ethernet/intel/igc/igc_main.c for (; j < adapter->num_tx_queues; j++) j 3680 drivers/net/ethernet/intel/igc/igc_main.c adapter->tx_ring[j]->reg_idx = j; j 1941 drivers/net/ethernet/intel/ixgb/ixgb_main.c unsigned int i, j; j 1969 drivers/net/ethernet/intel/ixgb/ixgb_main.c j = i + 1; j 1970 drivers/net/ethernet/intel/ixgb/ixgb_main.c if (j == rx_ring->count) j 1971 drivers/net/ethernet/intel/ixgb/ixgb_main.c j = 0; j 1972 drivers/net/ethernet/intel/ixgb/ixgb_main.c next2_buffer = &rx_ring->buffer_info[j]; j 666 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c s32 i, j; j 691 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c for (j = 0; j < IXGBE_SMARTSPEED_MAX_RETRIES; j++) { j 1699 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c u16 j; j 1733 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c for (j = pointer + 1; j <= pointer + length; j++) { j 1734 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (hw->eeprom.ops.read(hw, j, &word)) { j 231 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c u8 j = 0; j 234 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c for (i = 0, j = 0; i < 15 && j < 8; i = i + 2, j++) { j 236 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c reg |= ((0x1010101) * j); j 239 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c reg |= ((0x1010101) * j); j 192 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.c u32 i, j, fcrtl, reg; j 227 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.c for (j = 0; j < MAX_USER_PRIORITY; j++) { j 228 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.c if ((prio_tc[j] == i) && (pfc_en & BIT(j))) { j 29 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c int i, j; j 94 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c j = i - DCB_PG_ATTR_BW_ID_0; j 95 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c if (dcfg->bw_percentage[tx][j] != scfg->bw_percentage[tx][j]) { j 96 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c dcfg->bw_percentage[tx][j] = scfg->bw_percentage[tx][j]; j 99 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c if (dcfg->bw_percentage[rx][j] != scfg->bw_percentage[rx][j]) { j 100 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c dcfg->bw_percentage[rx][j] = scfg->bw_percentage[rx][j]; j 106 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c j = i - DCB_PFC_UP_ATTR_0; j 107 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c if (dcfg->tc_config[j].dcb_pfc != scfg->tc_config[j].dcb_pfc) { j 108 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c dcfg->tc_config[j].dcb_pfc = scfg->tc_config[j].dcb_pfc; j 148 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c int i, j; j 159 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c for (j = 0; j < netdev->addr_len; j++, i++) j 160 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c perm_addr[i] = adapter->hw.mac.san_addr[j]; j 1037 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c int i, j, err = 0; j 1107 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c for (j = 0; j < adapter->num_xdp_queues; j++, i++) { j 1108 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c memcpy(&temp_ring[i], adapter->xdp_ring[j], j 1128 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c for (j = 0; j < adapter->num_xdp_queues; j++, i++) { j 1129 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c ixgbe_free_tx_resources(adapter->xdp_ring[j]); j 1131 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c memcpy(adapter->xdp_ring[j], &temp_ring[i], j 1200 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c int i, j; j 1223 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c for (j = 0; j < netdev->num_tx_queues; j++) { j 1224 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c ring = adapter->tx_ring[j]; j 1239 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c for (j = 0; j < IXGBE_NUM_RX_QUEUES; j++) { j 1240 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c ring = adapter->rx_ring[j]; j 1256 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c for (j = 0; j < IXGBE_MAX_PACKET_BUFFERS; j++) { j 1257 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c data[i++] = adapter->stats.pxontxc[j]; j 1258 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c data[i++] = adapter->stats.pxofftxc[j]; j 1260 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c for (j = 0; j < IXGBE_MAX_PACKET_BUFFERS; j++) { j 1261 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c data[i++] = adapter->stats.pxonrxc[j]; j 1262 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c data[i++] = adapter->stats.pxoffrxc[j]; j 1974 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c int i, j, lc, good_cnt, ret_val = 0; j 2003 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c for (j = 0; j <= lc; j++) { j 142 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c unsigned int i, j, dmacount; j 204 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c j = 0; j 210 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c if (j >= IXGBE_BUFFCNT_MAX) { j 222 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c if ((j != 0) && (thisoff)) j 233 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c ddp->udl[j] = (u64)(addr - thisoff); j 235 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c if (j == 0) j 239 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c j++; j 250 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c if (j >= IXGBE_BUFFCNT_MAX) { j 255 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c ddp->udl[j] = (u64)(fcoe->extra_ddp_buffer_dma); j 256 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c j++; j 262 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c fcbuff |= ((j & 0xff) << IXGBE_FCBUFF_BUFFCNT_SHIFT); j 487 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c int i, j; j 534 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c for (j = 0; j < 4; j++) { j 535 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c reg = IXGBE_READ_REG(hw, MIPAF_ARR(i, j)); j 536 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (reg != xs->id.daddr.a6[j]) j 539 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (j == 4) /* did we match all 4 words? */ j 544 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c for (j = 0; j < 4; j++) { j 545 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c reg = IXGBE_READ_REG(hw, IXGBE_BMCIP(j)); j 546 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (reg != xs->id.daddr.a6[j]) j 549 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (j == 4) /* did we match all 4 words? */ j 538 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int j; j 543 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c for (j = 0; j < 8; j++) j 3880 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c u32 i, j; j 3897 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c for (i = 0, j = 0; i < reta_entries; i++, j++) { j 3898 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (j == rss_i) j 3899 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c j = 0; j 3901 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c adapter->rss_indir_tbl[i] = j; j 3911 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int i, j; j 3924 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c for (i = 0, j = 0; i < 64; i++, j++) { j 3925 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (j == rss_i) j 3926 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c j = 0; j 3928 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c adapter->rss_indir_tbl[i] = j; j 4505 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int i, j; j 4524 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c j = ring->reg_idx; j 4525 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c vlnctrl = IXGBE_READ_REG(hw, IXGBE_RXDCTL(j)); j 4527 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c IXGBE_WRITE_REG(hw, IXGBE_RXDCTL(j), vlnctrl); j 4543 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int i, j; j 4562 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c j = ring->reg_idx; j 4563 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c vlnctrl = IXGBE_READ_REG(hw, IXGBE_RXDCTL(j)); j 4565 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c IXGBE_WRITE_REG(hw, IXGBE_RXDCTL(j), vlnctrl); j 6191 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int j; j 6213 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c for (j = 0; j < MAX_TRAFFIC_CLASS; j++) { j 6214 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c tc = &adapter->dcb_cfg.tc_config[j]; j 6216 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c tc->path[DCB_TX_CONFIG].bwg_percent = 12 + (j & 1); j 6218 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c tc->path[DCB_RX_CONFIG].bwg_percent = 12 + (j & 1); j 6500 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int i, j = 0, err = 0; j 6510 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c for (j = 0; j < adapter->num_xdp_queues; j++) { j 6511 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c err = ixgbe_setup_tx_resources(adapter->xdp_ring[j]); j 6515 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_err(probe, "Allocation for Tx Queue %u failed\n", j); j 6522 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c while (j--) j 6523 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c ixgbe_free_tx_resources(adapter->xdp_ring[j]); j 7563 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int i, j; j 7573 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c for (j = 0; j < q_per_pool; j++) { j 7576 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c h = IXGBE_READ_REG(hw, IXGBE_PVFTDHN(q_per_pool, i, j)); j 7577 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c t = IXGBE_READ_REG(hw, IXGBE_PVFTDTN(q_per_pool, i, j)); j 9170 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int err = 0, i, j; j 9196 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c for (j = 0; j < IXGBE_MAX_HW_ENTRIES; j++) { j 9197 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (!test_bit(j, jump->child_loc_map)) j 9202 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c j + 1); j 9204 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c clear_bit(j, jump->child_loc_map); j 9358 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int i, j, off; j 9367 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c for (j = 0; field_ptr[j].val; j++) { j 9368 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (field_ptr[j].off == off) { j 9369 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c field_ptr[j].val(input, mask, (__force u32)val, j 9372 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c field_ptr[j].type; j 408 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c int i, j; j 416 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c for (j = 0; j < vfinfo->num_vf_mc_hashes; j++) { j 418 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c vector_reg = (vfinfo->vf_mc_hashes[j] >> 5) & 0x7F; j 419 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c vector_bit = vfinfo->vf_mc_hashes[j] & 0x1F; j 1074 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c u32 i, j; j 1100 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c for (j = 0; j < 16; j++) j 1101 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c out_buf[i] |= (u32)(reta[16 * i + j] & 0x3) << (2 * j); j 309 drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c u16 j; j 361 drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c for (j = pointer + 1; j <= pointer + length; j++) { j 362 drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c if (ixgbe_read_eerd_generic(hw, j, &word)) { j 27 drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c unsigned int i, j; j 42 drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c for (j = 0; j < i; j++) { j 246 drivers/net/ethernet/intel/ixgbevf/ethtool.c int i, j, err = 0; j 307 drivers/net/ethernet/intel/ixgbevf/ethtool.c for (j = 0; j < adapter->num_xdp_queues; i++, j++) { j 309 drivers/net/ethernet/intel/ixgbevf/ethtool.c tx_ring[i] = *adapter->xdp_ring[j]; j 369 drivers/net/ethernet/intel/ixgbevf/ethtool.c for (j = 0; j < adapter->num_xdp_queues; i++, j++) { j 370 drivers/net/ethernet/intel/ixgbevf/ethtool.c ixgbevf_free_tx_resources(adapter->xdp_ring[j]); j 371 drivers/net/ethernet/intel/ixgbevf/ethtool.c *adapter->xdp_ring[j] = tx_ring[i]; j 429 drivers/net/ethernet/intel/ixgbevf/ethtool.c int i, j; j 454 drivers/net/ethernet/intel/ixgbevf/ethtool.c for (j = 0; j < adapter->num_tx_queues; j++) { j 455 drivers/net/ethernet/intel/ixgbevf/ethtool.c ring = adapter->tx_ring[j]; j 471 drivers/net/ethernet/intel/ixgbevf/ethtool.c for (j = 0; j < adapter->num_xdp_queues; j++) { j 472 drivers/net/ethernet/intel/ixgbevf/ethtool.c ring = adapter->xdp_ring[j]; j 488 drivers/net/ethernet/intel/ixgbevf/ethtool.c for (j = 0; j < adapter->num_rx_queues; j++) { j 489 drivers/net/ethernet/intel/ixgbevf/ethtool.c ring = adapter->rx_ring[j]; j 1867 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c u8 i, j; j 1873 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c for (i = 0, j = 0; i < IXGBEVF_X550_VFRETA_SIZE; i++, j++) { j 1874 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c if (j == rss_i) j 1875 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c j = 0; j 1877 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c adapter->rss_indir_tbl[i] = j; j 1879 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c vfreta |= j << (i & 0x3) * 8; j 3425 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c int i, j = 0, err = 0; j 3435 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c for (j = 0; j < adapter->num_xdp_queues; j++) { j 3436 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c err = ixgbevf_setup_tx_resources(adapter->xdp_ring[j]); j 3439 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c hw_dbg(&adapter->hw, "Allocation for XDP Queue %u failed\n", j); j 3446 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c while (j--) j 3447 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c ixgbevf_free_tx_resources(adapter->xdp_ring[j]); j 295 drivers/net/ethernet/intel/ixgbevf/vf.c int err, i, j; j 352 drivers/net/ethernet/intel/ixgbevf/vf.c for (j = 0; j < 16; j++) j 353 drivers/net/ethernet/intel/ixgbevf/vf.c reta[i * 16 + j] = (hw_reta[i] >> (2 * j)) & mask; j 1058 drivers/net/ethernet/jme.c int i, j, ccnt, desccnt, mask = jme->rx_ring_mask; j 1095 drivers/net/ethernet/jme.c for (j = i, ccnt = desccnt ; ccnt-- ; ) { j 1096 drivers/net/ethernet/jme.c jme_set_clean_rxdesc(jme, j); j 1097 drivers/net/ethernet/jme.c j = (j + 1) & (mask); j 1426 drivers/net/ethernet/jme.c int i, j, cnt = 0, max, err, mask; j 1454 drivers/net/ethernet/jme.c for (j = 1 ; j < ctxbi->nr_desc ; ++j) { j 1455 drivers/net/ethernet/jme.c ttxbi = txbi + ((i + j) & (mask)); j 1456 drivers/net/ethernet/jme.c txdesc[(i + j) & (mask)].dw[0] = 0; j 2009 drivers/net/ethernet/jme.c int j; j 2011 drivers/net/ethernet/jme.c for (j = 0 ; j < count ; j++) { j 2012 drivers/net/ethernet/jme.c ctxbi = txbi + ((startidx + j + 2) & (mask)); j 1844 drivers/net/ethernet/marvell/mv643xx_eth.c int j; j 1847 drivers/net/ethernet/marvell/mv643xx_eth.c for (j = 7; j >= 0; j--) { j 1848 drivers/net/ethernet/marvell/mv643xx_eth.c if (crc & (0x100 << j)) j 1849 drivers/net/ethernet/marvell/mv643xx_eth.c crc ^= 0x107 << j; j 2553 drivers/net/ethernet/marvell/mvneta.c int j; j 2556 drivers/net/ethernet/marvell/mvneta.c for (j = 7; j >= 0; j--) { j 2557 drivers/net/ethernet/marvell/mvneta.c if (crc & (0x100 << j)) j 2558 drivers/net/ethernet/marvell/mvneta.c crc ^= 0x107 << j; j 2247 drivers/net/ethernet/mellanox/mlx4/cmd.c int i, j, slave; j 2256 drivers/net/ethernet/mellanox/mlx4/cmd.c for (j = 0; j < 32; j++) { j 2257 drivers/net/ethernet/mellanox/mlx4/cmd.c if (!(vec & (1 << j))) j 2260 drivers/net/ethernet/mellanox/mlx4/cmd.c slave = (i * 32) + j; j 2351 drivers/net/ethernet/mellanox/mlx4/cmd.c int i, j, err, port; j 2399 drivers/net/ethernet/mellanox/mlx4/cmd.c for (j = 0; j < MLX4_EVENT_TYPES_NUM; ++j) j 2400 drivers/net/ethernet/mellanox/mlx4/cmd.c s_state->event_eq[j].eqn = -1; j 1625 drivers/net/ethernet/mellanox/mlx4/en_netdev.c int j; j 1666 drivers/net/ethernet/mellanox/mlx4/en_netdev.c for (j = 0; j < cq->size; j++) { j 1669 drivers/net/ethernet/mellanox/mlx4/en_netdev.c cqe = mlx4_en_get_cqe(cq->buf, j, priv->cqe_size) + j 1755 drivers/net/ethernet/mellanox/mlx4/en_netdev.c for (j = 0; j < tx_ring->buf_size; j += STAMP_STRIDE) j 1756 drivers/net/ethernet/mellanox/mlx4/en_netdev.c *((u32 *)(tx_ring->buf + j)) = 0xffffffff; j 49 drivers/net/ethernet/mellanox/mlx4/en_port.c int j; j 61 drivers/net/ethernet/mellanox/mlx4/en_port.c for (j = 0; j < 32; j++) j 63 drivers/net/ethernet/mellanox/mlx4/en_port.c entry |= 1 << j; j 3109 drivers/net/ethernet/mellanox/mlx4/main.c int i, j; j 3117 drivers/net/ethernet/mellanox/mlx4/main.c for (j = 0; j < MLX4_NUM_STEERS; j++) { j 3118 drivers/net/ethernet/mellanox/mlx4/main.c INIT_LIST_HEAD(&priv->steer[i].promisc_qps[j]); j 3119 drivers/net/ethernet/mellanox/mlx4/main.c INIT_LIST_HEAD(&priv->steer[i].steer_entries[j]); j 3130 drivers/net/ethernet/mellanox/mlx4/main.c int i, j; j 3133 drivers/net/ethernet/mellanox/mlx4/main.c for (j = 0; j < MLX4_NUM_STEERS; j++) { j 3135 drivers/net/ethernet/mellanox/mlx4/main.c &priv->steer[i].promisc_qps[j], j 3141 drivers/net/ethernet/mellanox/mlx4/main.c &priv->steer[i].steer_entries[j], j 3550 drivers/net/ethernet/mellanox/mlx4/main.c unsigned j; j 3552 drivers/net/ethernet/mellanox/mlx4/main.c for (j = 0; j < dev->persist->nvfs[i]; ++sum, ++j) { j 1348 drivers/net/ethernet/mellanox/mlx4/port.c int i, j; j 1417 drivers/net/ethernet/mellanox/mlx4/port.c for (j = i + 1; j < num_gids; gid_entry_mb1++, j++) { j 1441 drivers/net/ethernet/mellanox/mlx4/port.c for (j = 0; j < num_gids; gid_entry_mbox++, j++) { j 86 drivers/net/ethernet/mellanox/mlx4/profile.c int i, j; j 151 drivers/net/ethernet/mellanox/mlx4/profile.c for (j = 1; j < i; ++j) { j 152 drivers/net/ethernet/mellanox/mlx4/profile.c if (profile[j].size > profile[j - 1].size) j 153 drivers/net/ethernet/mellanox/mlx4/profile.c swap(profile[j], profile[j - 1]); j 798 drivers/net/ethernet/mellanox/mlx4/qp.c int i, j; j 805 drivers/net/ethernet/mellanox/mlx4/qp.c for (j = MLX4_QP_REGION_BOTTOM + 2; j < i; ++j) { j 806 drivers/net/ethernet/mellanox/mlx4/qp.c if (dev->caps.reserved_qps_cnt[sort[j]] > j 807 drivers/net/ethernet/mellanox/mlx4/qp.c dev->caps.reserved_qps_cnt[sort[j - 1]]) j 808 drivers/net/ethernet/mellanox/mlx4/qp.c swap(sort[j], sort[j - 1]); j 504 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int i, j; j 587 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c for (j = 0; j < dev->caps.num_ports; j 588 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c j++) { j 590 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_phys_to_slaves_pport(dev, j + 1); j 602 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c for (j = 0; j < MLX4_MAX_PORTS; j++) j 603 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_alloc->res_port_free[j] = j 614 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c for (j = 0; j < MLX4_MAX_PORTS; j++) j 615 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_alloc->res_port_free[j] = j 631 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c for (j = 0; j < dev->caps.num_ports; j++) j 632 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (test_bit(j, actv_ports.ports)) j 633 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c res_alloc->res_port_rsvd[j] += j 5181 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int i, j; j 5195 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c j = 0; j 5208 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c while (j < i) { j 5209 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c __mlx4_counter_free(dev, counters_arr[j++]); j 267 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c int err = 0, i, j; j 288 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c for (j = 0; j < num_of_reads; j++) { j 309 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c for (j = 0; j < leftovers; j++) { j 67 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c #define mlx5e_for_each_arfs_rule(hn, tmp, arfs_tables, i, j) \ j 69 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c mlx5e_for_each_hash_arfs_rule(hn, tmp, arfs_tables[i].rules_hash, j) j 71 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c #define mlx5e_for_each_hash_arfs_rule(hn, tmp, hash, j) \ j 72 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c for (j = 0; j < ARFS_HASH_SIZE; j++) \ j 73 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c hlist_for_each_entry_safe(hn, tmp, &hash[j], hlist) j 377 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c int j; j 381 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c mlx5e_for_each_arfs_rule(arfs_rule, htmp, priv->fs.arfs.arfs_tables, i, j) { j 406 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c int j; j 410 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c mlx5e_for_each_arfs_rule(rule, htmp, priv->fs.arfs.arfs_tables, i, j) { j 3562 drivers/net/ethernet/mellanox/mlx5/core/en_main.c int j; j 3567 drivers/net/ethernet/mellanox/mlx5/core/en_main.c for (j = 0; j < priv->max_opened_tc; j++) { j 3568 drivers/net/ethernet/mellanox/mlx5/core/en_main.c struct mlx5e_sq_stats *sq_stats = &channel_stats->sq[j]; j 121 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c int i, j; j 128 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c for (j = 0; j < NUM_VPORT_REP_HW_COUNTERS; j++, i++) j 130 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c vport_rep_stats_desc[j].format); j 192 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c int i, j; j 206 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c for (j = 0; j < NUM_VPORT_REP_HW_COUNTERS; j++, i++) j 208 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c vport_rep_stats_desc, j); j 188 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c int j; j 267 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c for (j = 0; j < priv->max_opened_tc; j++) { j 268 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c struct mlx5e_sq_stats *sq_stats = &channel_stats->sq[j]; j 1583 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c int i, j, tc; j 1586 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c for (j = 0; j < NUM_CH_STATS; j++) j 1588 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c ch_stats_desc[j].format, i); j 1591 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c for (j = 0; j < NUM_RQ_STATS; j++) j 1593 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c rq_stats_desc[j].format, i); j 1594 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c for (j = 0; j < NUM_XSKRQ_STATS * is_xsk; j++) j 1596 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c xskrq_stats_desc[j].format, i); j 1597 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c for (j = 0; j < NUM_RQ_XDPSQ_STATS; j++) j 1599 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c rq_xdpsq_stats_desc[j].format, i); j 1604 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c for (j = 0; j < NUM_SQ_STATS; j++) j 1606 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c sq_stats_desc[j].format, j 1610 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c for (j = 0; j < NUM_XSKSQ_STATS * is_xsk; j++) j 1612 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c xsksq_stats_desc[j].format, i); j 1613 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c for (j = 0; j < NUM_XDPSQ_STATS; j++) j 1615 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c xdpsq_stats_desc[j].format, i); j 1626 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c int i, j, tc; j 1629 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c for (j = 0; j < NUM_CH_STATS; j++) j 1632 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c ch_stats_desc, j); j 1635 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c for (j = 0; j < NUM_RQ_STATS; j++) j 1638 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c rq_stats_desc, j); j 1639 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c for (j = 0; j < NUM_XSKRQ_STATS * is_xsk; j++) j 1642 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c xskrq_stats_desc, j); j 1643 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c for (j = 0; j < NUM_RQ_XDPSQ_STATS; j++) j 1646 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c rq_xdpsq_stats_desc, j); j 1651 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c for (j = 0; j < NUM_SQ_STATS; j++) j 1654 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c sq_stats_desc, j); j 1657 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c for (j = 0; j < NUM_XSKSQ_STATS * is_xsk; j++) j 1660 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c xsksq_stats_desc, j); j 1661 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c for (j = 0; j < NUM_XDPSQ_STATS; j++) j 1664 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c xdpsq_stats_desc, j); j 476 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c int j; j 500 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c for (j = 0; j < wi->num_dma; j++) { j 148 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c int j, i = 0; j 183 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c for (j = attr->split_count; j < attr->out_count; j++) { j 185 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c dest[i].vport.num = attr->dests[j].rep->vport; j 187 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c MLX5_CAP_GEN(attr->dests[j].mdev, vhca_id); j 191 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (attr->dests[j].flags & MLX5_ESW_DEST_ENCAP) { j 193 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c flow_act.pkt_reformat = attr->dests[j].pkt_reformat; j 196 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c attr->dests[j].pkt_reformat; j 1986 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c int i, j; j 2012 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c for (j = MLX5_VPORT_PF; j < i; j++) { j 2013 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c vport = &esw->vports[j]; j 413 drivers/net/ethernet/mellanox/mlx5/core/fw.c int i, j, dw_size = size >> 2; j 426 drivers/net/ethernet/mellanox/mlx5/core/fw.c j = i * 4; j 427 drivers/net/ethernet/mellanox/mlx5/core/fw.c data_element = htonl(*(u32 *)&data[j]); j 428 drivers/net/ethernet/mellanox/mlx5/core/fw.c memcpy(MLX5_ADDR_OF(mcda_reg, in, data) + j, &data_element, 4); j 121 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c int i, j; j 133 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c for (j = 0; j < priv->max_opened_tc; j++) { j 134 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c struct mlx5e_sq_stats *sq_stats = &channel_stats->sq[j]; j 736 drivers/net/ethernet/mellanox/mlx5/core/lag.c int ret, i, j; j 761 drivers/net/ethernet/mellanox/mlx5/core/lag.c for (j = 0; j < num_counters; ++j) j 762 drivers/net/ethernet/mellanox/mlx5/core/lag.c values[j] += be64_to_cpup((__be64 *)(out + offsets[j])); j 31 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_crc32.c static void dr_crc32_calc_lookup_entry(u32 (*tbl)[256], u8 i, u8 j) j 33 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_crc32.c tbl[i][j] = (tbl[i - 1][j] >> 8) ^ tbl[0][tbl[i - 1][j] & 0xff]; j 38 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_crc32.c u32 crc, i, j; j 42 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_crc32.c for (j = 0; j < 8; j++) { j 450 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c int j; j 465 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c for (j = 0; j < num_stes_per_iter; j++) { j 466 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c u8 *hw_ste = htbl->ste_arr[ste_index + j].hw_ste; j 467 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c u32 ste_off = j * DR_STE_SIZE; j 475 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c htbl->ste_arr[ste_index + j].hw_ste, j 345 drivers/net/ethernet/mellanox/mlx5/core/transobj.c int i, j, err; j 362 drivers/net/ethernet/mellanox/mlx5/core/transobj.c for (j = 0; j < i; j++) j 363 drivers/net/ethernet/mellanox/mlx5/core/transobj.c mlx5_core_destroy_sq(hp->peer_mdev, hp->sqn[j]); j 366 drivers/net/ethernet/mellanox/mlx5/core/transobj.c for (j = 0; j < i; j++) j 367 drivers/net/ethernet/mellanox/mlx5/core/transobj.c mlx5_core_destroy_rq(hp->func_mdev, hp->rqn[j]); j 426 drivers/net/ethernet/mellanox/mlx5/core/transobj.c int i, j, err; j 449 drivers/net/ethernet/mellanox/mlx5/core/transobj.c for (j = 0; j < i; j++) j 450 drivers/net/ethernet/mellanox/mlx5/core/transobj.c mlx5_hairpin_modify_rq(hp->func_mdev, hp->rqn[j], MLX5_RQC_STATE_RDY, j 454 drivers/net/ethernet/mellanox/mlx5/core/transobj.c for (j = 0; j < i; j++) j 455 drivers/net/ethernet/mellanox/mlx5/core/transobj.c mlx5_hairpin_modify_sq(hp->peer_mdev, hp->sqn[j], MLX5_SQC_STATE_RDY, j 23 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c int j; j 28 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c for (j = 0; j < block->instances_count; j++) { j 31 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c elinst = &block->instances[j]; j 110 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c int j; j 115 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c for (j = 0; j < block->instances_count; j++) { j 118 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c elinst = &block->instances[j]; j 133 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c int j; j 139 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c for_each_set_bit(j, hits_element, MLXSW_AFK_ELEMENT_MAX) { j 140 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c if (__test_and_clear_bit(j, picker->hits[i].element)) j 424 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c int i, j, err; j 443 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c for (j = i - 1; j >= 0; j--) j 444 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c thermal_zone_unbind_cooling_device(tzdev, j, cdev); j 319 drivers/net/ethernet/mellanox/mlxsw/i2c.c int off = mlxsw_i2c->cmd.mb_off_in, chunk_size, i, j; j 340 drivers/net/ethernet/mellanox/mlxsw/i2c.c j = 0; j 349 drivers/net/ethernet/mellanox/mlxsw/i2c.c (j++ < MLXSW_I2C_RETRY)); j 398 drivers/net/ethernet/mellanox/mlxsw/i2c.c int num, chunk_size, reg_size, i, j; j 451 drivers/net/ethernet/mellanox/mlxsw/i2c.c j = 0; j 461 drivers/net/ethernet/mellanox/mlxsw/i2c.c (j++ < MLXSW_I2C_RETRY)); j 928 drivers/net/ethernet/mellanox/mlxsw/spectrum.c int i, j, err; j 945 drivers/net/ethernet/mellanox/mlxsw/spectrum.c for (j = 0; j < IEEE_8021QAZ_MAX_TCS; j++) { j 946 drivers/net/ethernet/mellanox/mlxsw/spectrum.c if (prio_tc[j] == i) { j 947 drivers/net/ethernet/mellanox/mlxsw/spectrum.c pfc = pfc_en & BIT(j); j 200 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c int i, j; j 219 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c j = 0; j 232 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c if (!j) j 238 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c j++; j 546 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c int i, j; j 556 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c j = 0; j 586 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c if (!j) j 594 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c j++; j 1093 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c int j; j 1102 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c j = 0; j 1118 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c if (!j) j 1125 drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c j++; j 949 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c int j; j 952 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c for (j = INET_ECN_NOT_ECT; j <= INET_ECN_CE; j++) { j 955 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c err = __mlxsw_sp_nve_ecn_decap_init(mlxsw_sp, i, j); j 5880 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c int i, j; j 5888 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c for (j = 0; j < MLXSW_SP_L3_PROTO_MAX; j++) j 5889 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c mlxsw_sp_mr_table_flush(vr->mr_table[j]); j 4112 drivers/net/ethernet/micrel/ksz884x.c int j = ADDITIONAL_ENTRIES; j 4119 drivers/net/ethernet/micrel/ksz884x.c if (ADDITIONAL_ENTRIES == j && empty_addr(hw->address[i])) j 4120 drivers/net/ethernet/micrel/ksz884x.c j = i; j 4122 drivers/net/ethernet/micrel/ksz884x.c if (j < ADDITIONAL_ENTRIES) { j 4123 drivers/net/ethernet/micrel/ksz884x.c memcpy(hw->address[j], mac_addr, ETH_ALEN); j 4124 drivers/net/ethernet/micrel/ksz884x.c hw_ena_add_addr(hw, j, hw->address[j]); j 6847 drivers/net/ethernet/micrel/ksz884x.c int j; j 6851 drivers/net/ethernet/micrel/ksz884x.c i = j = num = got_num = 0; j 6852 drivers/net/ethernet/micrel/ksz884x.c while (j < ETH_ALEN) { j 6870 drivers/net/ethernet/micrel/ksz884x.c hw_priv->hw.override_addr[j++] = (u8) num; j 6874 drivers/net/ethernet/micrel/ksz884x.c hw_priv->hw.ksz_switch->other_addr[j++] = j 6883 drivers/net/ethernet/micrel/ksz884x.c if (ETH_ALEN == j) { j 1558 drivers/net/ethernet/microchip/lan743x_main.c int j; j 1609 drivers/net/ethernet/microchip/lan743x_main.c for (j = 0; j < nr_frags; j++) { j 1610 drivers/net/ethernet/microchip/lan743x_main.c const skb_frag_t *frag = &(skb_shinfo(skb)->frags[j]); j 906 drivers/net/ethernet/mscc/ocelot.c int i, j, ret = 0; j 920 drivers/net/ethernet/mscc/ocelot.c for (j = 0; j < 4; j++) { j 921 drivers/net/ethernet/mscc/ocelot.c ret = ocelot_mact_read(port, i, j, &entry); j 1110 drivers/net/ethernet/mscc/ocelot.c int i, j; j 1118 drivers/net/ethernet/mscc/ocelot.c for (j = 0; j < ocelot->num_stats; j++) { j 1120 drivers/net/ethernet/mscc/ocelot.c unsigned int idx = i * ocelot->num_stats + j; j 1123 drivers/net/ethernet/mscc/ocelot.c ocelot->stats_layout[j].offset); j 255 drivers/net/ethernet/mscc/ocelot_ace.c u32 i, j, n = 0, value = 0, mask = 0; j 262 drivers/net/ethernet/mscc/ocelot_ace.c j = (count - i - 1); j 263 drivers/net/ethernet/mscc/ocelot_ace.c value += (val[j] << n); j 264 drivers/net/ethernet/mscc/ocelot_ace.c mask += (msk[j] << n); j 3009 drivers/net/ethernet/natsemi/natsemi.c int j; j 3033 drivers/net/ethernet/natsemi/natsemi.c for (j = 0; j < NATSEMI_RFDR_NREGS; j++) { j 3034 drivers/net/ethernet/natsemi/natsemi.c writel(j*2, ioaddr + RxFilterAddr); j 1858 drivers/net/ethernet/natsemi/ns83820.c int j; j 1861 drivers/net/ethernet/natsemi/ns83820.c for (j = 0; j < 0x16; j += 4) { j 1863 drivers/net/ethernet/natsemi/ns83820.c ndev->name, j, j 1864 drivers/net/ethernet/natsemi/ns83820.c ns83820_mii_read_reg(dev, 1, 0 + j), j 1865 drivers/net/ethernet/natsemi/ns83820.c ns83820_mii_read_reg(dev, 1, 1 + j), j 1866 drivers/net/ethernet/natsemi/ns83820.c ns83820_mii_read_reg(dev, 1, 2 + j), j 1867 drivers/net/ethernet/natsemi/ns83820.c ns83820_mii_read_reg(dev, 1, 3 + j) j 569 drivers/net/ethernet/neterion/s2io.c int i, j, blk_cnt; j 639 drivers/net/ethernet/neterion/s2io.c for (j = 0; j < page_num; j++) { j 671 drivers/net/ethernet/neterion/s2io.c int l = (j * lst_per_page) + k; j 731 drivers/net/ethernet/neterion/s2io.c for (j = 0; j < blk_cnt; j++) { j 735 drivers/net/ethernet/neterion/s2io.c rx_blocks = &ring->rx_blocks[j]; j 769 drivers/net/ethernet/neterion/s2io.c for (j = 0; j < blk_cnt; j++) { j 770 drivers/net/ethernet/neterion/s2io.c int next = (j + 1) % blk_cnt; j 771 drivers/net/ethernet/neterion/s2io.c tmp_v_addr = ring->rx_blocks[j].block_virt_addr; j 773 drivers/net/ethernet/neterion/s2io.c tmp_p_addr = ring->rx_blocks[j].block_dma_addr; j 799 drivers/net/ethernet/neterion/s2io.c for (j = 0; j < blk_cnt; j++) { j 804 drivers/net/ethernet/neterion/s2io.c ring->ba[j] = kmalloc(size, GFP_KERNEL); j 805 drivers/net/ethernet/neterion/s2io.c if (!ring->ba[j]) j 809 drivers/net/ethernet/neterion/s2io.c ba = &ring->ba[j][k]; j 870 drivers/net/ethernet/neterion/s2io.c int i, j, blk_cnt, size; j 899 drivers/net/ethernet/neterion/s2io.c for (j = 0; j < page_num; j++) { j 900 drivers/net/ethernet/neterion/s2io.c int mem_blks = (j * lst_per_page); j 937 drivers/net/ethernet/neterion/s2io.c for (j = 0; j < blk_cnt; j++) { j 938 drivers/net/ethernet/neterion/s2io.c tmp_v_addr = ring->rx_blocks[j].block_virt_addr; j 939 drivers/net/ethernet/neterion/s2io.c tmp_p_addr = ring->rx_blocks[j].block_dma_addr; j 945 drivers/net/ethernet/neterion/s2io.c kfree(ring->rx_blocks[j].rxds); j 959 drivers/net/ethernet/neterion/s2io.c for (j = 0; j < blk_cnt; j++) { j 961 drivers/net/ethernet/neterion/s2io.c if (!ring->ba[j]) j 964 drivers/net/ethernet/neterion/s2io.c struct buffAdd *ba = &ring->ba[j][k]; j 973 drivers/net/ethernet/neterion/s2io.c kfree(ring->ba[j]); j 1192 drivers/net/ethernet/neterion/s2io.c int i, j; j 1277 drivers/net/ethernet/neterion/s2io.c for (i = 0, j = 0; i < config->tx_fifo_num; i++) { j 1280 drivers/net/ethernet/neterion/s2io.c val64 |= vBIT(tx_cfg->fifo_len - 1, ((j * 32) + 19), 13) | j 1281 drivers/net/ethernet/neterion/s2io.c vBIT(tx_cfg->fifo_priority, ((j * 32) + 5), 3); j 1292 drivers/net/ethernet/neterion/s2io.c j = 0; j 1297 drivers/net/ethernet/neterion/s2io.c j = 0; j 1302 drivers/net/ethernet/neterion/s2io.c j = 0; j 1307 drivers/net/ethernet/neterion/s2io.c j = 0; j 1310 drivers/net/ethernet/neterion/s2io.c j++; j 2315 drivers/net/ethernet/neterion/s2io.c u16 j, frg_cnt; j 2334 drivers/net/ethernet/neterion/s2io.c for (j = 0; j < frg_cnt; j++, txds++) { j 2335 drivers/net/ethernet/neterion/s2io.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[j]; j 2360 drivers/net/ethernet/neterion/s2io.c int i, j; j 2373 drivers/net/ethernet/neterion/s2io.c for (j = 0; j < tx_cfg->fifo_len; j++) { j 2374 drivers/net/ethernet/neterion/s2io.c txdp = fifo->list_info[j].list_virt_addr; j 2375 drivers/net/ethernet/neterion/s2io.c skb = s2io_txdl_getskb(&mac_control->fifos[i], txdp, j); j 2654 drivers/net/ethernet/neterion/s2io.c int j; j 2663 drivers/net/ethernet/neterion/s2io.c for (j = 0 ; j < rxd_count[sp->rxd_mode]; j++) { j 2665 drivers/net/ethernet/neterion/s2io.c rx_blocks[blk].rxds[j].virt_addr; j 3721 drivers/net/ethernet/neterion/s2io.c int ret, i, j, msix_indx = 1; j 3763 drivers/net/ethernet/neterion/s2io.c for (j = 0; j < nic->config.rx_ring_num; j++) { j 3764 drivers/net/ethernet/neterion/s2io.c rx_mat |= RX_MAT_SET(j, msix_indx); j 3765 drivers/net/ethernet/neterion/s2io.c nic->s2io_entries[j+1].arg = &nic->mac_control.rings[j]; j 3766 drivers/net/ethernet/neterion/s2io.c nic->s2io_entries[j+1].type = MSIX_RING_TYPE; j 3767 drivers/net/ethernet/neterion/s2io.c nic->s2io_entries[j+1].in_use = MSIX_FLG; j 4878 drivers/net/ethernet/neterion/s2io.c int i, j, prev_cnt; j 5010 drivers/net/ethernet/neterion/s2io.c for (j = 0; j < ETH_ALEN; j++) { j 5011 drivers/net/ethernet/neterion/s2io.c mac_addr |= ha->addr[j]; j 6860 drivers/net/ethernet/neterion/s2io.c int i, j, k, blk_cnt = 0, size; j 6883 drivers/net/ethernet/neterion/s2io.c for (j = 0; j < blk_cnt; j++) { j 6885 drivers/net/ethernet/neterion/s2io.c rxdp = ring->rx_blocks[j].rxds[k].virt_addr; j 6887 drivers/net/ethernet/neterion/s2io.c ba = &ring->ba[j][k]; j 7655 drivers/net/ethernet/neterion/s2io.c int i, j, ret; j 7856 drivers/net/ethernet/neterion/s2io.c for (j = 0; j < MAX_TX_FIFOS; j++) { j 7857 drivers/net/ethernet/neterion/s2io.c mac_control->tx_FIFO_start[j] = sp->bar1 + (j * 0x00020000); j 879 drivers/net/ethernet/neterion/vxge/vxge-config.c u32 i, j = 0; j 918 drivers/net/ethernet/neterion/vxge/vxge-config.c ((u64 *)product_desc)[j++] = be64_to_cpu(data0); j 919 drivers/net/ethernet/neterion/vxge/vxge-config.c ((u64 *)product_desc)[j++] = be64_to_cpu(data1); j 2488 drivers/net/ethernet/neterion/vxge/vxge-config.c u32 i, j; j 2499 drivers/net/ethernet/neterion/vxge/vxge-config.c for (j = 0; j < mempool->items_per_memblock; j++) { j 2500 drivers/net/ethernet/neterion/vxge/vxge-config.c u32 index = i * mempool->items_per_memblock + j; j 2542 drivers/net/ethernet/neterion/vxge/vxge-config.c u32 j; j 2578 drivers/net/ethernet/neterion/vxge/vxge-config.c for (j = 0; j < n_items; j++) { j 2579 drivers/net/ethernet/neterion/vxge/vxge-config.c u32 index = i * n_items + j; j 2585 drivers/net/ethernet/neterion/vxge/vxge-config.c ((char *)the_memblock + j*mempool->item_size); j 3215 drivers/net/ethernet/neterion/vxge/vxge-config.c int i = 0, j = 0; j 3221 drivers/net/ethernet/neterion/vxge/vxge-config.c for (j = 0; j < VXGE_HW_MAC_MAX_MAC_PORT_ID; j++) { j 3222 drivers/net/ethernet/neterion/vxge/vxge-config.c if (readq(&vpmgmt_reg->rxmac_cfg0_port_vpmgmt_clone[j]) j 3764 drivers/net/ethernet/neterion/vxge/vxge-config.c vxge_hw_rts_rth_data0_data1_get(u32 j, u64 *data0, u64 *data1, j 3769 drivers/net/ethernet/neterion/vxge/vxge-config.c *data0 = VXGE_HW_RTS_ACCESS_STEER_DATA0_RTH_ITEM0_BUCKET_NUM(j)| j 3772 drivers/net/ethernet/neterion/vxge/vxge-config.c itable[j]); j 3776 drivers/net/ethernet/neterion/vxge/vxge-config.c VXGE_HW_RTS_ACCESS_STEER_DATA0_RTH_ITEM1_BUCKET_NUM(j)| j 3779 drivers/net/ethernet/neterion/vxge/vxge-config.c itable[j]); j 3782 drivers/net/ethernet/neterion/vxge/vxge-config.c *data1 = VXGE_HW_RTS_ACCESS_STEER_DATA1_RTH_ITEM0_BUCKET_NUM(j)| j 3785 drivers/net/ethernet/neterion/vxge/vxge-config.c itable[j]); j 3789 drivers/net/ethernet/neterion/vxge/vxge-config.c VXGE_HW_RTS_ACCESS_STEER_DATA1_RTH_ITEM1_BUCKET_NUM(j)| j 3792 drivers/net/ethernet/neterion/vxge/vxge-config.c itable[j]); j 3807 drivers/net/ethernet/neterion/vxge/vxge-config.c u32 i, j, action, rts_table; j 3827 drivers/net/ethernet/neterion/vxge/vxge-config.c for (j = 0; j < max_entries; j++) { j 3833 drivers/net/ethernet/neterion/vxge/vxge-config.c itable[j]); j 3836 drivers/net/ethernet/neterion/vxge/vxge-config.c action, rts_table, j, data0, data1); j 3842 drivers/net/ethernet/neterion/vxge/vxge-config.c for (j = 0; j < max_entries; j++) { j 3849 drivers/net/ethernet/neterion/vxge/vxge-config.c itable[j]); j 3852 drivers/net/ethernet/neterion/vxge/vxge-config.c vpath_handles[mtable[itable[j]]], action, j 3853 drivers/net/ethernet/neterion/vxge/vxge-config.c rts_table, j, data0, data1); j 3864 drivers/net/ethernet/neterion/vxge/vxge-config.c for (j = 0; j < max_entries;) { j 3869 drivers/net/ethernet/neterion/vxge/vxge-config.c while (j < max_entries) { j 3870 drivers/net/ethernet/neterion/vxge/vxge-config.c if (mtable[itable[j]] != i) { j 3871 drivers/net/ethernet/neterion/vxge/vxge-config.c j++; j 3874 drivers/net/ethernet/neterion/vxge/vxge-config.c vxge_hw_rts_rth_data0_data1_get(j, j 3876 drivers/net/ethernet/neterion/vxge/vxge-config.c j++; j 3880 drivers/net/ethernet/neterion/vxge/vxge-config.c while (j < max_entries) { j 3881 drivers/net/ethernet/neterion/vxge/vxge-config.c if (mtable[itable[j]] != i) { j 3882 drivers/net/ethernet/neterion/vxge/vxge-config.c j++; j 3885 drivers/net/ethernet/neterion/vxge/vxge-config.c vxge_hw_rts_rth_data0_data1_get(j, j 3887 drivers/net/ethernet/neterion/vxge/vxge-config.c j++; j 3891 drivers/net/ethernet/neterion/vxge/vxge-config.c while (j < max_entries) { j 3892 drivers/net/ethernet/neterion/vxge/vxge-config.c if (mtable[itable[j]] != i) { j 3893 drivers/net/ethernet/neterion/vxge/vxge-config.c j++; j 3896 drivers/net/ethernet/neterion/vxge/vxge-config.c vxge_hw_rts_rth_data0_data1_get(j, j 3898 drivers/net/ethernet/neterion/vxge/vxge-config.c j++; j 3902 drivers/net/ethernet/neterion/vxge/vxge-config.c while (j < max_entries) { j 3903 drivers/net/ethernet/neterion/vxge/vxge-config.c if (mtable[itable[j]] != i) { j 3904 drivers/net/ethernet/neterion/vxge/vxge-config.c j++; j 3907 drivers/net/ethernet/neterion/vxge/vxge-config.c vxge_hw_rts_rth_data0_data1_get(j, j 3909 drivers/net/ethernet/neterion/vxge/vxge-config.c j++; j 232 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c int j, k; j 302 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c j = vpath->device_id; j 303 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c vpath_info = hw_stats->vpath_info[j]; j 493 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c j = vpath->device_id; j 495 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c &sw_stats->vpath_info[j]; j 518 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c for (j = 0; j < VXGE_HW_DTR_MAX_T_CODE; j++) j 519 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *ptr++ = vpath_info->ring_stats.rxd_t_code_err_cnt[j]; j 528 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c for (j = 0; j < VXGE_HW_DTR_MAX_T_CODE; j++) j 529 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *ptr++ = vpath_info->fifo_stats.txd_t_code_err_cnt[j]; j 536 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c j = vpath->device_id; j 537 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c vpath_info = hw_stats->vpath_info[j]; j 604 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c int i, j; j 1004 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c for (j = 0; j < VXGE_HW_DTR_MAX_T_CODE; j++) j 1006 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c &stat_size, data, j, i); j 1021 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c for (j = 0; j < VXGE_HW_DTR_MAX_T_CODE; j++) j 1023 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c &stat_size, data, j, i); j 560 drivers/net/ethernet/neterion/vxge/vxge-main.c int i = 0, j; j 591 drivers/net/ethernet/neterion/vxge/vxge-main.c for (j = 0; j < frg_cnt; j++) { j 812 drivers/net/ethernet/neterion/vxge/vxge-main.c int i = 0, j = 0, avail; j 911 drivers/net/ethernet/neterion/vxge/vxge-main.c txdl_priv->dma_buffers[j] = dma_pointer; j 920 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_fifo_txdl_buffer_set(fifo_hw, dtr, j++, dma_pointer, j 940 drivers/net/ethernet/neterion/vxge/vxge-main.c txdl_priv->dma_buffers[j] = dma_pointer; j 941 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_fifo_txdl_buffer_set(fifo_hw, dtr, j++, dma_pointer, j 977 drivers/net/ethernet/neterion/vxge/vxge-main.c j = 0; j 980 drivers/net/ethernet/neterion/vxge/vxge-main.c pci_unmap_single(fifo->pdev, txdl_priv->dma_buffers[j++], j 983 drivers/net/ethernet/neterion/vxge/vxge-main.c for (; j < i; j++) { j 984 drivers/net/ethernet/neterion/vxge/vxge-main.c pci_unmap_page(fifo->pdev, txdl_priv->dma_buffers[j], j 1036 drivers/net/ethernet/neterion/vxge/vxge-main.c int i = 0, j, frg_cnt; j 1054 drivers/net/ethernet/neterion/vxge/vxge-main.c for (j = 0; j < frg_cnt; j++) { j 2289 drivers/net/ethernet/neterion/vxge/vxge-main.c int j, i, ret = 0; j 2320 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0, j = 0; i < vdev->no_of_vpath; i++) { j 2325 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->entries[j].entry = msix_intr_vect; j 2326 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries[j].entry = msix_intr_vect; j 2327 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries[j].in_use = 0; j 2328 drivers/net/ethernet/neterion/vxge/vxge-main.c j++; j 2331 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->entries[j].entry = msix_intr_vect + 1; j 2332 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries[j].entry = msix_intr_vect + 1; j 2333 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries[j].in_use = 0; j 2334 drivers/net/ethernet/neterion/vxge/vxge-main.c j++; j 2338 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->entries[j].entry = VXGE_ALARM_MSIX_ID; j 2339 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries[j].entry = VXGE_ALARM_MSIX_ID; j 2340 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries[j].in_use = 0; j 2591 drivers/net/ethernet/neterion/vxge/vxge-main.c int i, j = 0; j 2596 drivers/net/ethernet/neterion/vxge/vxge-main.c j++; j 2599 drivers/net/ethernet/neterion/vxge/vxge-main.c if (j && (vdev->config.intr_type != MSI_X)) { j 4309 drivers/net/ethernet/neterion/vxge/vxge-main.c int i, j, no_of_vpath = 0, max_vpath_supported = 0; j 4599 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0, j = 0; i < VXGE_HW_MAX_VIRTUAL_PATHS; i++) { j 4602 drivers/net/ethernet/neterion/vxge/vxge-main.c if (j >= vdev->no_of_vpath) j 4605 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[j].is_configured = 1; j 4606 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[j].device_id = i; j 4607 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[j].ring.driver_id = j; j 4608 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[j].vdev = vdev; j 4609 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[j].max_mac_addr_cnt = max_mac_vpath; j 4610 drivers/net/ethernet/neterion/vxge/vxge-main.c memcpy((u8 *)vdev->vpaths[j].macaddr, j 4615 drivers/net/ethernet/neterion/vxge/vxge-main.c INIT_LIST_HEAD(&vdev->vpaths[j].mac_addr_list); j 4617 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[j].mac_addr_cnt = 0; j 4618 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[j].mcast_addr_cnt = 0; j 4619 drivers/net/ethernet/neterion/vxge/vxge-main.c j++; j 780 drivers/net/ethernet/netronome/nfp/abm/qdisc.c unsigned int i, j; j 802 drivers/net/ethernet/netronome/nfp/abm/qdisc.c for (j = 0; j < red->red.num_bands; j++) { j 804 drivers/net/ethernet/netronome/nfp/abm/qdisc.c &red->red.band[j].stats); j 806 drivers/net/ethernet/netronome/nfp/abm/qdisc.c &red->red.band[j].prev_stats); j 378 drivers/net/ethernet/netronome/nfp/nfp_main.c int spc, i, j; j 412 drivers/net/ethernet/netronome/nfp/nfp_main.c for (i = 0; spc > 0 && i < pf->eth_tbl->count; i += j) { j 414 drivers/net/ethernet/netronome/nfp/nfp_main.c j = 1; j 415 drivers/net/ethernet/netronome/nfp/nfp_main.c while (i + j < pf->eth_tbl->count && j 416 drivers/net/ethernet/netronome/nfp/nfp_main.c port->speed == port[j].speed) j 417 drivers/net/ethernet/netronome/nfp/nfp_main.c j++; j 420 drivers/net/ethernet/netronome/nfp/nfp_main.c "_%dx%d", j, port->speed / 1000); j 466 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c unsigned int i, j; j 497 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c for (j = 0; j < NN_RVEC_GATHER_STATS; j++) j 498 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c gathered_stats[j] += tmp[j]; j 501 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c for (j = 0; j < NN_RVEC_GATHER_STATS; j++) j 502 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c *data++ = gathered_stats[j]; j 672 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c int j; j 692 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c for (j = 0; j < 4; j++) j 693 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c nfp->expl.group[i].free[j] = true; j 1066 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c int i, j; j 1073 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c for (j = 0; j < ARRAY_SIZE(nfp->expl.group[i].free); j++) { j 1076 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c if (!nfp->expl.group[i].free[j]) j 1081 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c priv->bar.area = j; j 1089 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c nfp->expl.group[i].free[j] = false; j 178 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c unsigned int i, j; j 183 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c for (j = 0; j < table->count; j++) { j 185 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c table->ports[j].label_port) j 187 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c table->ports[i].port_lanes += table->ports[j].lanes; j 189 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c if (i == j) j 192 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c table->ports[j].label_subport) j 249 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c int i, j, ret, cnt = 0; j 280 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c for (i = 0, j = 0; i < NSP_ETH_MAX_COUNT; i++) j 283 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c &table->ports[j++]); j 1503 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c int j, k; j 1513 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c for (j = 0; j < PCH_GBE_TX_WEIGHT; j++) j 1519 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c if (j < PCH_GBE_TX_WEIGHT) { j 1522 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c unused, j, i, k, tx_ring->next_to_use, j 1687 drivers/net/ethernet/packetengines/hamachi.c int j; j 1689 drivers/net/ethernet/packetengines/hamachi.c for (j = 0; j < 0x50; j++) j 1690 drivers/net/ethernet/packetengines/hamachi.c printk(" %4.4x", addr[j]); j 722 drivers/net/ethernet/packetengines/yellowfin.c int i, j; j 747 drivers/net/ethernet/packetengines/yellowfin.c for (j = 0; j < i; j++) j 748 drivers/net/ethernet/packetengines/yellowfin.c dev_kfree_skb(yp->rx_skbuff[j]); j 769 drivers/net/ethernet/packetengines/yellowfin.c j = 2*i; j 772 drivers/net/ethernet/packetengines/yellowfin.c yp->tx_ring[j].dbdma_cmd = cpu_to_le32(CMD_STOP); j 773 drivers/net/ethernet/packetengines/yellowfin.c yp->tx_ring[j].branch_addr = cpu_to_le32(yp->tx_ring_dma + j 774 drivers/net/ethernet/packetengines/yellowfin.c (j+1)*sizeof(struct yellowfin_desc)); j 775 drivers/net/ethernet/packetengines/yellowfin.c j++; j 777 drivers/net/ethernet/packetengines/yellowfin.c yp->tx_ring[j].dbdma_cmd = j 779 drivers/net/ethernet/packetengines/yellowfin.c yp->tx_ring[j].request_cnt = sizeof(*yp->tx_status); j 780 drivers/net/ethernet/packetengines/yellowfin.c yp->tx_ring[j].addr = cpu_to_le32(yp->tx_status_dma + j 784 drivers/net/ethernet/packetengines/yellowfin.c yp->tx_ring[j].dbdma_cmd = j 786 drivers/net/ethernet/packetengines/yellowfin.c yp->tx_ring[j].request_cnt = 2; j 788 drivers/net/ethernet/packetengines/yellowfin.c yp->tx_ring[j].addr = cpu_to_le32(yp->tx_status_dma + j 793 drivers/net/ethernet/packetengines/yellowfin.c yp->tx_ring[j].branch_addr = cpu_to_le32(yp->tx_ring_dma + j 794 drivers/net/ethernet/packetengines/yellowfin.c ((j+1)%(2*TX_RING_SIZE))*sizeof(struct yellowfin_desc)); j 797 drivers/net/ethernet/packetengines/yellowfin.c yp->tx_ring[++j].dbdma_cmd |= cpu_to_le32(BRANCH_ALWAYS | INTR_ALWAYS); j 1236 drivers/net/ethernet/packetengines/yellowfin.c int j; j 1239 drivers/net/ethernet/packetengines/yellowfin.c for (j = 0; j < 0x50; j++) j 1241 drivers/net/ethernet/packetengines/yellowfin.c get_unaligned(((u16*)yp->rx_ring[i].addr) + j)); j 128 drivers/net/ethernet/pasemi/pasemi_mac.c int nintf, off, i, j; j 144 drivers/net/ethernet/pasemi/pasemi_mac.c for (j = 0; j < 4; j++) { j 145 drivers/net/ethernet/pasemi/pasemi_mac.c if (((tmp >> (8*j)) & 0xff) == devfn) j 146 drivers/net/ethernet/pasemi/pasemi_mac.c return i*4 + j; j 510 drivers/net/ethernet/pasemi/pasemi_mac.c unsigned int i, j; j 527 drivers/net/ethernet/pasemi/pasemi_mac.c for (j = 0; j <= nfrags; j++) j 528 drivers/net/ethernet/pasemi/pasemi_mac.c dmas[j] = txring->ring_info[(i+1+j) & j 818 drivers/net/ethernet/pasemi/pasemi_mac.c int i, j; j 877 drivers/net/ethernet/pasemi/pasemi_mac.c for (j = 0; j <= nr_frags; j++) j 878 drivers/net/ethernet/pasemi/pasemi_mac.c dmas[descr_count][j] = TX_DESC_INFO(txring, i+1+j).dma; j 48 drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c unsigned int i, j; j 53 drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c for (i = 0, j = 0; i < IONIC_BARS_MAX; i++) { j 56 drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c bars[j].len = pci_resource_len(pdev, i); j 59 drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c if (j > 0) { j 60 drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c bars[j].vaddr = NULL; j 62 drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c bars[j].vaddr = pci_iomap(pdev, i, bars[j].len); j 63 drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c if (!bars[j].vaddr) { j 71 drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c bars[j].bus_addr = pci_resource_start(pdev, i); j 72 drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c bars[j].res_index = i; j 74 drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c j++; j 1439 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c int j, ret; j 1493 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c for (j = 0; j < MAX_CTL_CHECK; j++) { j 1499 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (j >= MAX_CTL_CHECK) { j 1516 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c int j, ret; j 1568 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c for (j = 0; j < MAX_CTL_CHECK; j++) { j 1574 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (j >= MAX_CTL_CHECK) { j 1598 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c int j, ret; j 1642 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c for (j = 0; j < MAX_CTL_CHECK; j++) { j 1648 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (j >= MAX_CTL_CHECK) { j 1665 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c int j, ret; j 1705 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c for (j = 0; j < MAX_CTL_CHECK; j++) { j 1711 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (j >= MAX_CTL_CHECK) { j 119 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c int i, j; j 131 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c for (j = 1; j < cmd_buf->frag_count; j++) { j 321 drivers/net/ethernet/qlogic/qed/qed_cxt.c int i, j; j 352 drivers/net/ethernet/qlogic/qed/qed_cxt.c for (j = 0; j < NUM_TASK_PF_SEGMENTS; j++) j 353 drivers/net/ethernet/qlogic/qed/qed_cxt.c iids->pf_tids[j] += segs[j].count; j 367 drivers/net/ethernet/qlogic/qed/qed_cxt.c for (iids->pf_tids_total = 0, j = 0; j < NUM_TASK_PF_SEGMENTS; j++) { j 368 drivers/net/ethernet/qlogic/qed/qed_cxt.c iids->pf_tids[j] = roundup(iids->pf_tids[j], TM_ALIGN); j 369 drivers/net/ethernet/qlogic/qed/qed_cxt.c iids->pf_tids_total += iids->pf_tids[j]; j 378 drivers/net/ethernet/qlogic/qed/qed_cxt.c u32 vf_cids = 0, type, j; j 389 drivers/net/ethernet/qlogic/qed/qed_cxt.c for (j = 0; j < NUM_TASK_PF_SEGMENTS; j++) j 390 drivers/net/ethernet/qlogic/qed/qed_cxt.c iids->tids += segs[j].count; j 967 drivers/net/ethernet/qlogic/qed/qed_cxt.c u32 j; j 969 drivers/net/ethernet/qlogic/qed/qed_cxt.c for (j = 0; j < ent_num - 1; j++) { j 970 drivers/net/ethernet/qlogic/qed/qed_cxt.c val = p_ent_phys + (j + 1) * sizeof(struct src_ent); j 971 drivers/net/ethernet/qlogic/qed/qed_cxt.c entries[j].next = cpu_to_be64(val); j 978 drivers/net/ethernet/qlogic/qed/qed_cxt.c entries[j].next = cpu_to_be64(val); j 1082 drivers/net/ethernet/qlogic/qed/qed_cxt.c u32 size, i, j, k; j 1098 drivers/net/ethernet/qlogic/qed/qed_cxt.c for (j = 0; j < ILT_CLI_PF_BLOCKS; j++) { j 1099 drivers/net/ethernet/qlogic/qed/qed_cxt.c p_blk = &clients[i].pf_blks[j]; j 1105 drivers/net/ethernet/qlogic/qed/qed_cxt.c for (j = 0; j < ILT_CLI_VF_BLOCKS; j++) { j 1108 drivers/net/ethernet/qlogic/qed/qed_cxt.c p_blk = &clients[i].vf_blks[j]; j 6380 drivers/net/ethernet/qlogic/qed/qed_debug.c u16 i, j; j 6483 drivers/net/ethernet/qlogic/qed/qed_debug.c for (j = 0; j < reg_hdr->size; j++, dump_buf++) { j 6488 drivers/net/ethernet/qlogic/qed/qed_debug.c if (j < reg_hdr->size - 1) j 6963 drivers/net/ethernet/qlogic/qed/qed_debug.c u8 i, j, err_val, vf_val; j 7027 drivers/net/ethernet/qlogic/qed/qed_debug.c for (j = 0, j 7030 drivers/net/ethernet/qlogic/qed/qed_debug.c j < ARRAY_SIZE(s_reg_fifo_error_strs); j 7031 drivers/net/ethernet/qlogic/qed/qed_debug.c j++, err_val >>= 1) { j 7041 drivers/net/ethernet/qlogic/qed/qed_debug.c s_reg_fifo_error_strs[j]); j 7631 drivers/net/ethernet/qlogic/qed/qed_debug.c u8 num_regs, i, j; j 7663 drivers/net/ethernet/qlogic/qed/qed_debug.c for (j = 0; j < num_reg_attn; j++) { j 7664 drivers/net/ethernet/qlogic/qed/qed_debug.c u16 attn_idx_val = GET_FIELD(bit_mapping[j].data, j 7672 drivers/net/ethernet/qlogic/qed/qed_debug.c if (GET_FIELD(bit_mapping[j].data, j 3249 drivers/net/ethernet/qlogic/qed/qed_dev.c int j; j 3251 drivers/net/ethernet/qlogic/qed/qed_dev.c for_each_hwfn(cdev, j) { j 3252 drivers/net/ethernet/qlogic/qed/qed_dev.c struct qed_hwfn *p_hwfn = &cdev->hwfns[j]; j 3264 drivers/net/ethernet/qlogic/qed/qed_dev.c int j; j 3266 drivers/net/ethernet/qlogic/qed/qed_dev.c for_each_hwfn(cdev, j) { j 3267 drivers/net/ethernet/qlogic/qed/qed_dev.c p_hwfn = &cdev->hwfns[j]; j 3377 drivers/net/ethernet/qlogic/qed/qed_dev.c int j; j 3379 drivers/net/ethernet/qlogic/qed/qed_dev.c for_each_hwfn(cdev, j) { j 3380 drivers/net/ethernet/qlogic/qed/qed_dev.c struct qed_hwfn *p_hwfn = &cdev->hwfns[j]; j 436 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c u16 num_pqs, first_pq_group, last_pq_group, i, j, pq_id, pq_group; j 519 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c for (j = 0; j < 2; j++) j 522 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c (pq_id * 2) + j, 0); j 566 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c u16 i, j, pq_id, pq_group; j 593 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c for (j = 0; j < 2; j++) j 596 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c (pq_id * 2) + j, 0); j 996 drivers/net/ethernet/qlogic/qed/qed_int.c u8 i, j, k, bit_idx; j 1022 drivers/net/ethernet/qlogic/qed/qed_int.c for (j = 0, bit_idx = 0; bit_idx < 32; j++) { j 1023 drivers/net/ethernet/qlogic/qed/qed_int.c struct aeu_invert_reg_bit *p_bit = &p_aeu->bits[j]; j 1060 drivers/net/ethernet/qlogic/qed/qed_int.c for (j = 0, bit_idx = 0; bit_idx < 32; j++) { j 1064 drivers/net/ethernet/qlogic/qed/qed_int.c p_aeu = &sb_attn_sw->p_aeu_desc[i].bits[j]; j 1347 drivers/net/ethernet/qlogic/qed/qed_int.c int i, j, k; j 1359 drivers/net/ethernet/qlogic/qed/qed_int.c for (j = 0, k = 0; k < 32; j++) { j 1362 drivers/net/ethernet/qlogic/qed/qed_int.c p_aeu = &aeu_descs[i].bits[j]; j 1785 drivers/net/ethernet/qlogic/qed/qed_l2.c int j; j 1828 drivers/net/ethernet/qlogic/qed/qed_l2.c for (j = 0; j < 8; j++) { j 1829 drivers/net/ethernet/qlogic/qed/qed_l2.c p_common->brb_truncates += port_stats.brb.brb_truncate[j]; j 1830 drivers/net/ethernet/qlogic/qed/qed_l2.c p_common->brb_discards += port_stats.brb.brb_discard[j]; j 2660 drivers/net/ethernet/qlogic/qed/qed_l2.c int j; j 2665 drivers/net/ethernet/qlogic/qed/qed_l2.c qed_for_each_vf(hwfn, j) { j 2666 drivers/net/ethernet/qlogic/qed/qed_l2.c qed_iov_bulletin_set_udp_ports(hwfn, j, j 668 drivers/net/ethernet/qlogic/qed/qed_main.c int i, j; j 686 drivers/net/ethernet/qlogic/qed/qed_main.c for (j = 0; j < 64; j++) { j 687 drivers/net/ethernet/qlogic/qed/qed_main.c if ((0x2ULL << j) & status) { j 689 drivers/net/ethernet/qlogic/qed/qed_main.c &hwfn->simd_proto_handler[j]; j 696 drivers/net/ethernet/qlogic/qed/qed_main.c j, status); j 698 drivers/net/ethernet/qlogic/qed/qed_main.c status &= ~(0x2ULL << j); j 1973 drivers/net/ethernet/qlogic/qed/qed_main.c int rc, j; j 1992 drivers/net/ethernet/qlogic/qed/qed_main.c for (j = 0; j < nvm_image->length - 4; j += 4) { j 1993 drivers/net/ethernet/qlogic/qed/qed_main.c val = cpu_to_be32(*(u32 *)&buf[j]); j 1994 drivers/net/ethernet/qlogic/qed/qed_main.c *(u32 *)&buf[j] = val; j 116 drivers/net/ethernet/qlogic/qed/qed_selftest.c u32 num_images, i, j, nvm_crc, calc_crc; j 177 drivers/net/ethernet/qlogic/qed/qed_selftest.c for (j = 0; j < image_att.len - 4; j += 4) { j 178 drivers/net/ethernet/qlogic/qed/qed_selftest.c val = cpu_to_be32(*(u32 *)&buf[j]); j 179 drivers/net/ethernet/qlogic/qed/qed_selftest.c *(u32 *)&buf[j] = (__force u32)val; j 1369 drivers/net/ethernet/qlogic/qed/qed_sriov.c u32 i, j; j 1384 drivers/net/ethernet/qlogic/qed/qed_sriov.c for (j = 0; j < MAX_QUEUES_PER_QZONE; j++) { j 1385 drivers/net/ethernet/qlogic/qed/qed_sriov.c if (!p_queue->cids[j].p_cid) j 1389 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_queue->cids[j].p_cid); j 1390 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_queue->cids[j].p_cid = NULL; j 4441 drivers/net/ethernet/qlogic/qed/qed_sriov.c int i, j; j 4475 drivers/net/ethernet/qlogic/qed/qed_sriov.c qed_for_each_vf(hwfn, j) { j 4478 drivers/net/ethernet/qlogic/qed/qed_sriov.c if (!qed_iov_is_valid_vfid(hwfn, j, true, false)) j 4483 drivers/net/ethernet/qlogic/qed/qed_sriov.c if (!qed_iov_is_vf_stopped(hwfn, j)) j 4491 drivers/net/ethernet/qlogic/qed/qed_sriov.c ptt, j); j 4529 drivers/net/ethernet/qlogic/qed/qed_sriov.c int i, j, rc; j 4540 drivers/net/ethernet/qlogic/qed/qed_sriov.c for_each_hwfn(cdev, j) { j 4541 drivers/net/ethernet/qlogic/qed/qed_sriov.c hwfn = &cdev->hwfns[j]; j 3640 drivers/net/ethernet/qlogic/qla3xxx.c int j; j 3650 drivers/net/ethernet/qlogic/qla3xxx.c for (j = 1; j < tx_cb->seg_count; j++) { j 3652 drivers/net/ethernet/qlogic/qla3xxx.c dma_unmap_addr(&tx_cb->map[j], j 3654 drivers/net/ethernet/qlogic/qla3xxx.c dma_unmap_len(&tx_cb->map[j], j 2497 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c int i, err = 0, j = 0; j 2509 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c for (i = 2, j = 0; j < ahw->max_vnic_func; j++, pci_info++) { j 3087 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c int i, j, ret = 0; j 3114 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c for (j = 0; j < MAX_CTL_CHECK; j++) { j 3122 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c if (j >= MAX_CTL_CHECK) { j 3614 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c int i, j = 0; j 3617 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c j < ARRAY_SIZE(qlcnic_83xx_reg_tbl); i++, j++) j 3618 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c regs_buff[i] = QLC_SHARED_REG_RD32(adapter, j); j 3620 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c for (j = 0; j < ARRAY_SIZE(qlcnic_83xx_ext_reg_tbl); j++) j 3621 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c regs_buff[i++] = QLCRDX(adapter->ahw, j); j 3960 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c int i, j; j 3983 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c for (i = 2, j = 0; j < hdr_size; i++, j++) j 3985 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c for (j = 0; j < cmd->pay_size; j++, i++) j 539 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c u32 reg, reg1, reg2, i, j, owner, class; j 545 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c j = 0; j 549 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c class = (((reg & (0xF << j * 4)) >> j * 4) & 0x3); j 554 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c j = 0; j 556 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c j++; j 567 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c j = 0; j 1436 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c int i, j; j 1445 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c for (j = 0; j < 2; j++) { j 1446 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c if (j == 0) { j 1450 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c } else if (j == 1) { j 1464 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c for (j = 0; j < 2; j++) { j 1465 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c if (j == 0) { j 1469 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c } else if (j == 1) { j 1483 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c for (j = 0; j < 2; j++) { j 1484 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c if (j == 0) { j 1488 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c } else if (j == 1) { j 1521 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c u32 reg = 0, i, j; j 1532 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c for (j = 0; j < 2; j++) { j 1533 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c if (j == 0) j 1535 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c else if (j == 1) j 1542 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c for (j = 0; j < 2; j++) { j 1543 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c if (j == 0) j 1545 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c else if (j == 1) j 1931 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c int index, i, j, err; j 1951 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c j = QLCRD32(p_dev, addr, &err); j 1955 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c p_dev->ahw->reset.array[index++] = j; j 233 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c int j; j 235 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c for (j = 0; j < QLC_DCB_MAX_TC; j++) j 236 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (up_tc_map & QLC_DCB_GET_MAP(j)) j 239 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c return j; j 570 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c int err, i, j, k, max_app, size; j 597 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c for (j = 0; j < QLC_DCB_NUM_PARAM; j++) { j 598 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c each = &mbx_out.type[j]; j 617 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (j == 0) j 1045 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c int i, j; j 1052 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c for (i = 0, j = 0; i < QLC_DCB_MAX_APP; i++) { j 1057 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c table[j].selector = app->selector; j 1058 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c table[j].priority = app->priority; j 1059 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c table[j++].protocol = app->protocol; j 1070 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c u8 i, j, k, map; j 1077 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c for (i = 0, j = 0; i < QLC_DCB_MAX_PG; i++) { j 1081 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c pg->pg_bw[j] = peer->pg_cfg[i].total_bw_percent; j 1087 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c pg->prio_pg[j++] = map; j 518 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c int i, j = 0, err = 0; j 520 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c for (i = QLCNIC_DEV_INFO_SIZE + 1; diag_registers[j] != -1; j++, i++) j 521 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c regs_buff[i] = QLC_SHARED_REG_RD32(adapter, diag_registers[j]); j 522 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c j = 0; j 523 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c while (ext_diag_registers[j] != -1) j 524 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c regs_buff[i++] = QLCRD32(adapter, ext_diag_registers[j++], j 1334 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int j, ret = 0; j 1365 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c for (j = 0; j < MAX_CTL_CHECK; j++) { j 1371 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (j >= MAX_CTL_CHECK) { j 1386 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c for (j = 0; j < MAX_CTL_CHECK; j++) { j 1392 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (j >= MAX_CTL_CHECK) { j 1408 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int j, ret; j 1439 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c for (j = 0; j < MAX_CTL_CHECK; j++) { j 1445 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (j >= MAX_CTL_CHECK) { j 135 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c int i, j; j 147 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c for (j = 1; j < cmd_buf->frag_count; j++) { j 1010 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c int i, id = 0, ret = 0, j = 0; j 1057 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c adapter->npars[j].eswitch_status = true; j 1061 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c adapter->npars[j].eswitch_status = true; j 1064 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c adapter->npars[j].pci_func = pfn; j 1065 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c adapter->npars[j].active = (u8)pci_info[i].active; j 1066 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c adapter->npars[j].type = (u8)pci_info[i].type; j 1067 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c adapter->npars[j].phy_port = (u8)pci_info[i].default_port; j 1068 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c adapter->npars[j].min_bw = pci_info[i].tx_min_bw; j 1069 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c adapter->npars[j].max_bw = pci_info[i].tx_max_bw; j 1071 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c memcpy(&adapter->npars[j].mac, &pci_info[i].mac, ETH_ALEN); j 1072 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c j++; j 907 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c u8 i, max = 2, hdr_size, j; j 912 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c for (i = 2, j = 0; j < hdr_size; i++, j++) j 914 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c for (; j < max; i++, j++) j 1215 drivers/net/ethernet/rocker/rocker_main.c size_t i, j, len; j 1232 drivers/net/ethernet/rocker/rocker_main.c for (i = j = 0; i < len; ++i) { j 1234 drivers/net/ethernet/rocker/rocker_main.c name->buf[j] = str[i]; j 1235 drivers/net/ethernet/rocker/rocker_main.c j++; j 1239 drivers/net/ethernet/rocker/rocker_main.c if (j == 0) j 1242 drivers/net/ethernet/rocker/rocker_main.c name->buf[j] = '\0'; j 319 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c int i, j; j 324 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c for (j = 0; j < SXGBE_RX_QUEUES; j++) { j 326 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c priv->hw->desc->init_rx_desc(&priv->rxq[j]->dma_rx[i], j 331 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c for (j = 0; j < SXGBE_TX_QUEUES; j++) { j 333 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c priv->hw->desc->init_tx_desc(&priv->txq[j]->dma_tx[i]); j 457 drivers/net/ethernet/seeq/sgiseeq.c int j; j 472 drivers/net/ethernet/seeq/sgiseeq.c for (j = sp->tx_old; j != sp->tx_new; j = NEXT_TX(j)) { j 473 drivers/net/ethernet/seeq/sgiseeq.c td = &sp->tx_desc[j]; j 5275 drivers/net/ethernet/sfc/ef10.c unsigned int i, j; j 5304 drivers/net/ethernet/sfc/ef10.c for (j = 0; j < i; j++) { j 5307 drivers/net/ethernet/sfc/ef10.c ids[j]); j 5308 drivers/net/ethernet/sfc/ef10.c ids[j] = EFX_EF10_FILTER_ID_INVALID; j 5331 drivers/net/ethernet/sfc/ef10.c for (j = 0; j < i; j++) { j 5334 drivers/net/ethernet/sfc/ef10.c ids[j]); j 5335 drivers/net/ethernet/sfc/ef10.c ids[j] = EFX_EF10_FILTER_ID_INVALID; j 466 drivers/net/ethernet/sfc/efx.c int j; j 476 drivers/net/ethernet/sfc/efx.c for (j = 0; j < EFX_TXQ_TYPES; j++) { j 477 drivers/net/ethernet/sfc/efx.c tx_queue = &channel->tx_queue[j]; j 479 drivers/net/ethernet/sfc/efx.c tx_queue->queue = i * EFX_TXQ_TYPES + j; j 503 drivers/net/ethernet/sfc/efx.c int j; j 517 drivers/net/ethernet/sfc/efx.c for (j = 0; j < EFX_TXQ_TYPES; j++) { j 518 drivers/net/ethernet/sfc/efx.c tx_queue = &channel->tx_queue[j]; j 1445 drivers/net/ethernet/sfc/efx.c unsigned int i, j; j 1533 drivers/net/ethernet/sfc/efx.c j = efx->n_channels; j 1541 drivers/net/ethernet/sfc/efx.c --j; j 1542 drivers/net/ethernet/sfc/efx.c efx_get_channel(efx, j)->type = j 1544 drivers/net/ethernet/sfc/efx.c if (efx_channel_has_tx_queues(efx_get_channel(efx, j))) j 3379 drivers/net/ethernet/sfc/efx.c int ro_start, ro_size, i, j; j 3396 drivers/net/ethernet/sfc/efx.c j = ro_size; j 3398 drivers/net/ethernet/sfc/efx.c if (i + j > vpd_size) j 3399 drivers/net/ethernet/sfc/efx.c j = vpd_size - i; j 3402 drivers/net/ethernet/sfc/efx.c i = pci_vpd_find_info_keyword(vpd_data, i, j, "PN"); j 3408 drivers/net/ethernet/sfc/efx.c j = pci_vpd_info_field_size(&vpd_data[i]); j 3410 drivers/net/ethernet/sfc/efx.c if (i + j > vpd_size) { j 3416 drivers/net/ethernet/sfc/efx.c "Part Number : %.*s\n", j, &vpd_data[i]); j 3419 drivers/net/ethernet/sfc/efx.c j = ro_size; j 3420 drivers/net/ethernet/sfc/efx.c i = pci_vpd_find_info_keyword(vpd_data, i, j, "SN"); j 3426 drivers/net/ethernet/sfc/efx.c j = pci_vpd_info_field_size(&vpd_data[i]); j 3428 drivers/net/ethernet/sfc/efx.c if (i + j > vpd_size) { j 3433 drivers/net/ethernet/sfc/efx.c efx->vpd_sn = kmalloc(j + 1, GFP_KERNEL); j 3437 drivers/net/ethernet/sfc/efx.c snprintf(efx->vpd_sn, j + 1, "%s", &vpd_data[i]); j 430 drivers/net/ethernet/sfc/falcon/efx.c int j; j 440 drivers/net/ethernet/sfc/falcon/efx.c for (j = 0; j < EF4_TXQ_TYPES; j++) { j 441 drivers/net/ethernet/sfc/falcon/efx.c tx_queue = &channel->tx_queue[j]; j 443 drivers/net/ethernet/sfc/falcon/efx.c tx_queue->queue = i * EF4_TXQ_TYPES + j; j 463 drivers/net/ethernet/sfc/falcon/efx.c int j; j 477 drivers/net/ethernet/sfc/falcon/efx.c for (j = 0; j < EF4_TXQ_TYPES; j++) { j 478 drivers/net/ethernet/sfc/falcon/efx.c tx_queue = &channel->tx_queue[j]; j 1367 drivers/net/ethernet/sfc/falcon/efx.c unsigned int i, j; j 1448 drivers/net/ethernet/sfc/falcon/efx.c j = efx->n_channels; j 1456 drivers/net/ethernet/sfc/falcon/efx.c --j; j 1457 drivers/net/ethernet/sfc/falcon/efx.c ef4_get_channel(efx, j)->type = j 2793 drivers/net/ethernet/sfc/falcon/efx.c int ro_start, ro_size, i, j; j 2810 drivers/net/ethernet/sfc/falcon/efx.c j = ro_size; j 2812 drivers/net/ethernet/sfc/falcon/efx.c if (i + j > vpd_size) j 2813 drivers/net/ethernet/sfc/falcon/efx.c j = vpd_size - i; j 2816 drivers/net/ethernet/sfc/falcon/efx.c i = pci_vpd_find_info_keyword(vpd_data, i, j, "PN"); j 2822 drivers/net/ethernet/sfc/falcon/efx.c j = pci_vpd_info_field_size(&vpd_data[i]); j 2824 drivers/net/ethernet/sfc/falcon/efx.c if (i + j > vpd_size) { j 2830 drivers/net/ethernet/sfc/falcon/efx.c "Part Number : %.*s\n", j, &vpd_data[i]); j 2833 drivers/net/ethernet/sfc/falcon/efx.c j = ro_size; j 2834 drivers/net/ethernet/sfc/falcon/efx.c i = pci_vpd_find_info_keyword(vpd_data, i, j, "SN"); j 2840 drivers/net/ethernet/sfc/falcon/efx.c j = pci_vpd_info_field_size(&vpd_data[i]); j 2842 drivers/net/ethernet/sfc/falcon/efx.c if (i + j > vpd_size) { j 2847 drivers/net/ethernet/sfc/falcon/efx.c efx->vpd_sn = kmalloc(j + 1, GFP_KERNEL); j 2851 drivers/net/ethernet/sfc/falcon/efx.c snprintf(efx->vpd_sn, j + 1, "%s", &vpd_data[i]); j 273 drivers/net/ethernet/sfc/falcon/falcon_boards.c unsigned int i, j; j 338 drivers/net/ethernet/sfc/falcon/falcon_boards.c for (j = 0; j < 10; ++j) { j 103 drivers/net/ethernet/sfc/falcon/farch.c int i, j; j 114 drivers/net/ethernet/sfc/falcon/farch.c for (j = 0; j < 128; j++) { j 115 drivers/net/ethernet/sfc/falcon/farch.c if (!EF4_EXTRACT_OWORD32(mask, j, j)) j 120 drivers/net/ethernet/sfc/falcon/farch.c EF4_SET_OWORD32(reg, j, j, 1); j 130 drivers/net/ethernet/sfc/falcon/farch.c EF4_SET_OWORD32(reg, j, j, 0); j 105 drivers/net/ethernet/sfc/farch.c int i, j; j 116 drivers/net/ethernet/sfc/farch.c for (j = 0; j < 128; j++) { j 117 drivers/net/ethernet/sfc/farch.c if (!EFX_EXTRACT_OWORD32(mask, j, j)) j 122 drivers/net/ethernet/sfc/farch.c EFX_SET_OWORD32(reg, j, j, 1); j 132 drivers/net/ethernet/sfc/farch.c EFX_SET_OWORD32(reg, j, j, 0); j 313 drivers/net/ethernet/sfc/mcdi_mon.c int rc, i, j, type; j 365 drivers/net/ethernet/sfc/mcdi_mon.c for (i = 0, j = -1, type = -1; ; i++) { j 377 drivers/net/ethernet/sfc/mcdi_mon.c j = -1; j 406 drivers/net/ethernet/sfc/mcdi_mon.c j++; j 449 drivers/net/ethernet/sfc/mcdi_mon.c SENSOR_INFO_ENTRY, j, MIN1); j 451 drivers/net/ethernet/sfc/mcdi_mon.c SENSOR_INFO_ENTRY, j, MAX1); j 453 drivers/net/ethernet/sfc/mcdi_mon.c SENSOR_INFO_ENTRY, j, MIN2); j 455 drivers/net/ethernet/sfc/mcdi_mon.c SENSOR_INFO_ENTRY, j, MAX2); j 1554 drivers/net/ethernet/smsc/smc911x.c u32 reg,i,j=0; j 1559 drivers/net/ethernet/smsc/smc911x.c data[j++] = SMC_inl(lp, i); j 1565 drivers/net/ethernet/smsc/smc911x.c data[j++] = reg; j 1571 drivers/net/ethernet/smsc/smc911x.c data[j++] = reg & 0xFFFF; j 350 drivers/net/ethernet/smsc/smc91c92_cs.c int i, j, da, c; j 356 drivers/net/ethernet/smsc/smc91c92_cs.c for (j = 0; j < 2; j++) { j 617 drivers/net/ethernet/smsc/smc91c92_cs.c int i, j; j 628 drivers/net/ethernet/smsc/smc91c92_cs.c for (i = j = 0; j < 4; j++) { j 629 drivers/net/ethernet/smsc/smc91c92_cs.c link->resource[1]->start = com[j]; j 810 drivers/net/ethernet/smsc/smc91c92_cs.c int i, rev, j = 0; j 908 drivers/net/ethernet/smsc/smc91c92_cs.c j = mdio_read(dev, i, 1); j 909 drivers/net/ethernet/smsc/smc91c92_cs.c if ((j != 0) && (j != 0xffff)) break; j 938 drivers/net/ethernet/smsc/smc91c92_cs.c smc->mii_if.phy_id, j); j 788 drivers/net/ethernet/smsc/smsc911x.c unsigned int j; j 790 drivers/net/ethernet/smsc/smsc911x.c for (j = 0; j < MIN_PACKET_SIZE; j++) { j 791 drivers/net/ethernet/smsc/smsc911x.c if (pdata->loopback_tx_pkt[j] j 792 drivers/net/ethernet/smsc/smsc911x.c != pdata->loopback_rx_pkt[j]) { j 1990 drivers/net/ethernet/smsc/smsc911x.c unsigned int j = 0; j 1995 drivers/net/ethernet/smsc/smsc911x.c data[j++] = smsc911x_reg_read(pdata, i); j 1999 drivers/net/ethernet/smsc/smsc911x.c data[j++] = smsc911x_mac_read(pdata, i); j 2004 drivers/net/ethernet/smsc/smsc911x.c data[j++] = smsc911x_mii_read(phy_dev->mdio.bus, j 257 drivers/net/ethernet/smsc/smsc9420.c unsigned int i, j = 0; j 262 drivers/net/ethernet/smsc/smsc9420.c data[j++] = smsc9420_reg_read(pd, i); j 269 drivers/net/ethernet/smsc/smsc9420.c data[j++] = smsc9420_mii_read(phy_dev->mdio.bus, j 483 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c int i, j = 0, ret; j 489 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c data[j++] = count; j 505 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c data[j++] = (stmmac_mmc[i].sizeof_stat == j 523 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c data[j++] = (stmmac_gstrings_stats[i].sizeof_stat == j 1425 drivers/net/ethernet/sun/cassini.c int i, j; j 1432 drivers/net/ethernet/sun/cassini.c for (j = 0; j < RX_COMP_RINGN_SIZE(i); j++) { j 1433 drivers/net/ethernet/sun/cassini.c cas_rxc_init(rxc + j); j 2594 drivers/net/ethernet/sun/cassini.c int j; j 2595 drivers/net/ethernet/sun/cassini.c for (j = 0; j < N_RX_COMP_RINGS; j++) { j 2596 drivers/net/ethernet/sun/cassini.c credits += cas_rx_ringN(cp, j, budget / N_RX_COMP_RINGS); j 3231 drivers/net/ethernet/sun/cassini.c int j; j 3286 drivers/net/ethernet/sun/cassini.c for (j = 0; j < 6; j++) j 3287 drivers/net/ethernet/sun/cassini.c dev_addr[j] = j 3288 drivers/net/ethernet/sun/cassini.c readb(p + 23 + j); j 3443 drivers/net/ethernet/sun/cassini.c int j; j 3445 drivers/net/ethernet/sun/cassini.c for (j = 0; j < 3; j++) { j 6008 drivers/net/ethernet/sun/niu.c int i, j = 1; j 6015 drivers/net/ethernet/sun/niu.c j = 3; j 6018 drivers/net/ethernet/sun/niu.c for (i = 0; i < np->num_ldg - j; i++) { j 6020 drivers/net/ethernet/sun/niu.c sprintf(np->irq_name[i+j], "%s-rx-%d", j 6023 drivers/net/ethernet/sun/niu.c sprintf(np->irq_name[i+j], "%s-tx-%d", np->dev->name, j 6030 drivers/net/ethernet/sun/niu.c int i, j, err; j 6048 drivers/net/ethernet/sun/niu.c for (j = 0; j < i; j++) { j 6049 drivers/net/ethernet/sun/niu.c struct niu_ldg *lp = &np->ldg[j]; j 6434 drivers/net/ethernet/sun/niu.c int i, j, k, err; j 6440 drivers/net/ethernet/sun/niu.c for (j = 0, k = 0; j < MAX_RBR_RING_SIZE; j++) { j 6443 drivers/net/ethernet/sun/niu.c page = rp->rxhash[j]; j 6469 drivers/net/ethernet/sun/niu.c for (j = 0; j < MAX_TX_RING_SIZE; j++) { j 6470 drivers/net/ethernet/sun/niu.c if (rp->tx_buffs[j].skb) j 6471 drivers/net/ethernet/sun/niu.c (void) release_tx_packet(np, rp, j); j 429 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c unsigned int i, j; j 440 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c for (j = 0; j < ring->dma_desc_count; j++) { j 441 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c desc_data = XLGMAC_GET_DESC_DATA(ring, j); j 466 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c unsigned int i, j; j 477 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c for (j = 0; j < ring->dma_desc_count; j++) { j 478 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c desc_data = XLGMAC_GET_DESC_DATA(ring, j); j 1510 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c unsigned int i, j; j 1519 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (j = 0; j < qptc; j++) { j 1558 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (j = 0; j < ppq; j++) { j 525 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c unsigned int i, j; j 533 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c for (j = 0; j < ring->dma_desc_count; j++) { j 534 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c desc_data = XLGMAC_GET_DESC_DATA(ring, j); j 546 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c unsigned int i, j; j 554 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c for (j = 0; j < ring->dma_desc_count; j++) { j 555 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c desc_data = XLGMAC_GET_DESC_DATA(ring, j); j 1895 drivers/net/ethernet/ti/netcp_ethss.c int et_entry, j, pair; j 1902 drivers/net/ethernet/ti/netcp_ethss.c for (j = 0; j < half_num_et_stats; j++) { j 1903 drivers/net/ethernet/ti/netcp_ethss.c et_entry = pair * half_num_et_stats + j; j 572 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c unsigned int i, j, len; j 603 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c j = 0; j 607 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c if (j < network->rate_ext_len && j 608 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c ((scan->ext_rate[j] & 0x7f) < (scan->rate[i] & 0x7f))) j 609 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c rate = scan->ext_rate[j++] & 0x7f; j 616 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c while (j < network->rate_ext_len) { j 617 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c iwe.u.bitrate.value = (scan->ext_rate[j++] & 0x7f) * 500000; j 1645 drivers/net/ethernet/via/via-velocity.c int j; j 1648 drivers/net/ethernet/via/via-velocity.c for (j = 0; j < vptr->tx.numq; j++) { j 1650 drivers/net/ethernet/via/via-velocity.c vptr->tx.infos[j] = kcalloc(vptr->options.numtx, j 1653 drivers/net/ethernet/via/via-velocity.c if (!vptr->tx.infos[j]) { j 1654 drivers/net/ethernet/via/via-velocity.c while (--j >= 0) j 1655 drivers/net/ethernet/via/via-velocity.c kfree(vptr->tx.infos[j]); j 1659 drivers/net/ethernet/via/via-velocity.c vptr->tx.tail[j] = vptr->tx.curr[j] = vptr->tx.used[j] = 0; j 1771 drivers/net/ethernet/via/via-velocity.c int i, j; j 1773 drivers/net/ethernet/via/via-velocity.c for (j = 0; j < vptr->tx.numq; j++) { j 1774 drivers/net/ethernet/via/via-velocity.c if (vptr->tx.infos[j] == NULL) j 1777 drivers/net/ethernet/via/via-velocity.c velocity_free_td_ring_entry(vptr, j, i); j 1779 drivers/net/ethernet/via/via-velocity.c kfree(vptr->tx.infos[j]); j 1780 drivers/net/ethernet/via/via-velocity.c vptr->tx.infos[j] = NULL; j 2976 drivers/net/ethernet/via/via-velocity.c int i, j; j 2985 drivers/net/ethernet/via/via-velocity.c for (j = 0; j < 8; j++) { j 2991 drivers/net/ethernet/via/via-velocity.c crc = crc_ccitt(crc, &(pattern[i * 8 + j]), 1); j 2978 drivers/net/fddi/defxx.c int i, j; /* used in for loop */ j 3001 drivers/net/fddi/defxx.c for (j = 0; (i + j) < (int)PI_RCV_DATA_K_NUM_ENTRIES; j += bp->rcv_bufs_to_post) j 3024 drivers/net/fddi/defxx.c bp->descr_block_virt->rcv_data[i + j].long_0 = j 3029 drivers/net/fddi/defxx.c bp->descr_block_virt->rcv_data[i + j].long_1 = j 3036 drivers/net/fddi/defxx.c bp->p_rcv_buff_va[i+j] = (char *) newskb; j 3040 drivers/net/fddi/defxx.c for (j=0; (i + j) < (int)PI_RCV_DATA_K_NUM_ENTRIES; j += bp->rcv_bufs_to_post) j 3042 drivers/net/fddi/defxx.c bp->descr_block_virt->rcv_data[i+j].long_0 = (u32) (PI_RCV_DESCR_M_SOP | j 3044 drivers/net/fddi/defxx.c bp->descr_block_virt->rcv_data[i+j].long_1 = (u32) (bp->rcv_block_phys + (i * PI_RCV_DATA_K_SIZE_MAX)); j 3045 drivers/net/fddi/defxx.c bp->p_rcv_buff_va[i+j] = (bp->rcv_block_virt + (i * PI_RCV_DATA_K_SIZE_MAX)); j 3564 drivers/net/fddi/defxx.c int i, j; j 3567 drivers/net/fddi/defxx.c for (j = 0; (i + j) < (int)PI_RCV_DATA_K_NUM_ENTRIES; j += bp->rcv_bufs_to_post) j 3570 drivers/net/fddi/defxx.c skb = (struct sk_buff *)bp->p_rcv_buff_va[i+j]; j 3573 drivers/net/fddi/defxx.c bp->descr_block_virt->rcv_data[i+j].long_1, j 3578 drivers/net/fddi/defxx.c bp->p_rcv_buff_va[i+j] = NULL; j 1715 drivers/net/fddi/skfp/pcmplc.c int j ; j 1720 drivers/net/fddi/skfp/pcmplc.c j = inpw(PLC(np,PL_LE_THRESHOLD)) ; j 1723 drivers/net/fddi/skfp/pcmplc.c if (i < j) { j 1523 drivers/net/fddi/skfp/skfddi.c int i, j; j 1529 drivers/net/fddi/skfp/skfddi.c for (i = 0, j = 0; i < length / 8; i++, j += 8) j 1531 drivers/net/fddi/skfp/skfddi.c Data[j + 0], Data[j + 1], Data[j + 2], Data[j + 3], j 1532 drivers/net/fddi/skfp/skfddi.c Data[j + 4], Data[j + 5], Data[j + 6], Data[j + 7]); j 1535 drivers/net/fddi/skfp/skfddi.c sprintf(sh, "%02x ", Data[j + i]); j 1252 drivers/net/gtp.c int i, j, bucket = cb->args[0], skip = cb->args[1]; j 1270 drivers/net/gtp.c j = 0; j 1273 drivers/net/gtp.c if (j >= skip && j 1280 drivers/net/gtp.c cb->args[1] = j; j 1284 drivers/net/gtp.c j++; j 365 drivers/net/hamradio/baycom_epp.c int j; j 390 drivers/net/hamradio/baycom_epp.c for (j = 0; j < 8; j++) j 391 drivers/net/hamradio/baycom_epp.c if (unlikely(!(notbitstream & (0x1f0 << j)))) { j 392 drivers/net/hamradio/baycom_epp.c bitstream &= ~(0x100 << j); j 393 drivers/net/hamradio/baycom_epp.c bitbuf = (bitbuf & (((2 << j) << numbit) - 1)) | j 394 drivers/net/hamradio/baycom_epp.c ((bitbuf & ~(((2 << j) << numbit) - 1)) << 1); j 424 drivers/net/hamradio/baycom_epp.c int i, j; j 460 drivers/net/hamradio/baycom_epp.c j = (i > sizeof(tmp)) ? sizeof(tmp) : i; j 461 drivers/net/hamradio/baycom_epp.c if (j != pp->ops->epp_write_data(pp, tmp, j, 0)) j 463 drivers/net/hamradio/baycom_epp.c i -= j; j 496 drivers/net/hamradio/baycom_epp.c j = (i > sizeof(tmp)) ? sizeof(tmp) : i; j 497 drivers/net/hamradio/baycom_epp.c if (j != pp->ops->epp_write_data(pp, tmp, j, 0)) j 499 drivers/net/hamradio/baycom_epp.c i -= j; j 513 drivers/net/hamradio/baycom_epp.c j = (i > sizeof(tmp)) ? sizeof(tmp) : i; j 514 drivers/net/hamradio/baycom_epp.c if (j != pp->ops->epp_write_data(pp, tmp, j, 0)) j 516 drivers/net/hamradio/baycom_epp.c i -= j; j 559 drivers/net/hamradio/baycom_epp.c int j; j 580 drivers/net/hamradio/baycom_epp.c for (j = 0; j < 8; j++) { j 583 drivers/net/hamradio/baycom_epp.c if (unlikely(!(notbitstream & (0x0fc << j)))) { j 586 drivers/net/hamradio/baycom_epp.c if (!(notbitstream & (0x1fc << j))) j 590 drivers/net/hamradio/baycom_epp.c else if ((bitstream & (0x1fe << j)) == (0x0fc << j)) { j 596 drivers/net/hamradio/baycom_epp.c numbits = 7-j; j 601 drivers/net/hamradio/baycom_epp.c else if (unlikely((bitstream & (0x1f8 << j)) == (0xf8 << j))) { j 603 drivers/net/hamradio/baycom_epp.c bitbuf = (bitbuf & ((~0xff) << j)) | ((bitbuf & ~((~0xff) << j)) << 1); j 825 drivers/net/hamradio/baycom_epp.c unsigned int i, j; j 904 drivers/net/hamradio/baycom_epp.c for (j = 0; j < 256; j++) { j 915 drivers/net/hamradio/baycom_epp.c j = 1; j 917 drivers/net/hamradio/baycom_epp.c while (j < 7 && i > 150) { j 918 drivers/net/hamradio/baycom_epp.c j++; j 922 drivers/net/hamradio/baycom_epp.c bc_drvname, bc->bitrate, j, bc->bitrate >> (j+2)); j 297 drivers/net/hamradio/dmascc.c int h, i, j, n; j 320 drivers/net/hamradio/dmascc.c j = (io[i] - j 322 drivers/net/hamradio/dmascc.c if (j >= 0 && j < hw[h].num_devs && j 324 drivers/net/hamradio/dmascc.c j * hw[h].io_delta == io[i]) { j 325 drivers/net/hamradio/dmascc.c base[j] = io[i]; j 454 drivers/net/hippi/rrunner.c u32 misc, io, data, i, j, ready, error = 0; j 473 drivers/net/hippi/rrunner.c j = 0; j 481 drivers/net/hippi/rrunner.c if (j++ > 5000){ j 1464 drivers/net/hippi/rrunner.c int i, j; j 1546 drivers/net/hippi/rrunner.c for (j = 0; j < len; j++){ j 378 drivers/net/hyperv/netvsc_drv.c int j = 0; j 392 drivers/net/hyperv/netvsc_drv.c pb[j].pfn = page_to_pfn(page); j 393 drivers/net/hyperv/netvsc_drv.c pb[j].offset = offset; j 394 drivers/net/hyperv/netvsc_drv.c pb[j].len = bytes; j 402 drivers/net/hyperv/netvsc_drv.c j++; j 406 drivers/net/hyperv/netvsc_drv.c return j + 1; j 1411 drivers/net/hyperv/netvsc_drv.c int i, j, cpu; j 1420 drivers/net/hyperv/netvsc_drv.c for (j = 0; j < NETVSC_VF_STATS_LEN; j++) j 1421 drivers/net/hyperv/netvsc_drv.c data[i++] = *(u64 *)((void *)&sum + vf_stats[j].offset); j 1423 drivers/net/hyperv/netvsc_drv.c for (j = 0; j < nvdev->num_chn; j++) { j 1424 drivers/net/hyperv/netvsc_drv.c qstats = &nvdev->chan_table[j].tx_stats; j 1434 drivers/net/hyperv/netvsc_drv.c qstats = &nvdev->chan_table[j].rx_stats; j 1451 drivers/net/hyperv/netvsc_drv.c for (j = 0; j < ARRAY_SIZE(pcpu_stats); j++) j 1453 drivers/net/hyperv/netvsc_drv.c + pcpu_stats[j].offset); j 542 drivers/net/ieee802154/adf7242.c int i, j; j 555 drivers/net/ieee802154/adf7242.c for (j = 0; j < nb; j++) { j 556 drivers/net/ieee802154/adf7242.c if (buf[j] != data[page * PRAM_PAGESIZE + j]) { j 2416 drivers/net/macsec.c int i, j; j 2454 drivers/net/macsec.c for (i = 0, j = 1; i < MACSEC_NUM_AN; i++) { j 2461 drivers/net/macsec.c txsa_nest = nla_nest_start_noflag(skb, j++); j 2498 drivers/net/macsec.c j = 1; j 2502 drivers/net/macsec.c struct nlattr *rxsc_nest = nla_nest_start_noflag(skb, j++); j 229 drivers/net/phy/aquantia_hwmon.c int i, j; j 235 drivers/net/phy/aquantia_hwmon.c for (i = j = 0; hwmon_name[i]; i++) { j 237 drivers/net/phy/aquantia_hwmon.c if (i != j) j 238 drivers/net/phy/aquantia_hwmon.c hwmon_name[j] = hwmon_name[i]; j 239 drivers/net/phy/aquantia_hwmon.c j++; j 242 drivers/net/phy/aquantia_hwmon.c hwmon_name[j] = '\0'; j 2022 drivers/net/phy/marvell.c int i, j; j 2028 drivers/net/phy/marvell.c for (i = j = 0; i < len && devname[i]; i++) { j 2030 drivers/net/phy/marvell.c priv->hwmon_name[j++] = devname[i]; j 168 drivers/net/phy/marvell10g.c int i, j, ret; j 174 drivers/net/phy/marvell10g.c for (i = j = 0; priv->hwmon_name[i]; i++) { j 176 drivers/net/phy/marvell10g.c if (i != j) j 177 drivers/net/phy/marvell10g.c priv->hwmon_name[j] = priv->hwmon_name[i]; j 178 drivers/net/phy/marvell10g.c j++; j 181 drivers/net/phy/marvell10g.c priv->hwmon_name[j] = '\0'; j 714 drivers/net/phy/mscc.c int i, j; j 730 drivers/net/phy/mscc.c for (j = 0; j < sd_array_size; j++) j 731 drivers/net/phy/mscc.c if (edge_table[i].slowdown[j] == sd) j 732 drivers/net/phy/mscc.c return (sd_array_size - j - 1); j 835 drivers/net/ppp/ppp_async.c int c, i, j, n, s, f; j 862 drivers/net/ppp/ppp_async.c for (j = 0; j < n; ++j) j 863 drivers/net/ppp/ppp_async.c if ((f = flags[j]) != 0) j 710 drivers/net/sb1000.c int i, j, k; j 723 drivers/net/sb1000.c for (j = 0; j < 8 && k < size; j++, k++) j 486 drivers/net/team/team_mode_loadbalance.c int j; j 499 drivers/net/team/team_mode_loadbalance.c for (j = 0; j < LB_TX_HASHTABLE_SIZE; j++) { j 500 drivers/net/team/team_mode_loadbalance.c s_info = &lb_priv->ex->stats.info[j]; j 504 drivers/net/team/team_mode_loadbalance.c stats = &pcpu_stats->hash_stats[j]; j 1628 drivers/net/usb/lan78xx.c int i, j; j 1639 drivers/net/usb/lan78xx.c for (j = 0; j < 32; i++, j++) j 1640 drivers/net/usb/lan78xx.c data[i] = phy_read(netdev->phydev, j); j 727 drivers/net/usb/smsc95xx.c unsigned int i, j; j 737 drivers/net/usb/smsc95xx.c for (i = ID_REV, j = 0; i <= COE_CR; i += (sizeof(u32)), j++) { j 738 drivers/net/usb/smsc95xx.c retval = smsc95xx_read_reg(dev, i, &data[j]); j 118 drivers/net/veth.c int i, j; j 125 drivers/net/veth.c for (j = 0; j < VETH_RQ_STATS_LEN; j++) { j 128 drivers/net/veth.c i, veth_rq_stats_desc[j].desc); j 152 drivers/net/veth.c int i, j, idx; j 164 drivers/net/veth.c for (j = 0; j < VETH_RQ_STATS_LEN; j++) { j 165 drivers/net/veth.c offset = veth_rq_stats_desc[j].offset; j 166 drivers/net/veth.c data[idx + j] = *(u64 *)(stats_base + offset); j 1937 drivers/net/virtio_net.c int i, j, cpu; j 1956 drivers/net/virtio_net.c for (j = 0; j < group_size; j++) { j 2085 drivers/net/virtio_net.c unsigned int i, j; j 2090 drivers/net/virtio_net.c for (j = 0; j < VIRTNET_RQ_STATS_LEN; j++) { j 2092 drivers/net/virtio_net.c i, virtnet_rq_stats_desc[j].desc); j 2098 drivers/net/virtio_net.c for (j = 0; j < VIRTNET_SQ_STATS_LEN; j++) { j 2100 drivers/net/virtio_net.c i, virtnet_sq_stats_desc[j].desc); j 2125 drivers/net/virtio_net.c unsigned int idx = 0, start, i, j; j 2135 drivers/net/virtio_net.c for (j = 0; j < VIRTNET_RQ_STATS_LEN; j++) { j 2136 drivers/net/virtio_net.c offset = virtnet_rq_stats_desc[j].offset; j 2137 drivers/net/virtio_net.c data[idx + j] = *(u64 *)(stats_base + offset); j 2149 drivers/net/virtio_net.c for (j = 0; j < VIRTNET_SQ_STATS_LEN; j++) { j 2150 drivers/net/virtio_net.c offset = virtnet_sq_stats_desc[j].offset; j 2151 drivers/net/virtio_net.c data[idx + j] = *(u64 *)(stats_base + offset); j 1633 drivers/net/vmxnet3/vmxnet3_drv.c int j; j 1638 drivers/net/vmxnet3/vmxnet3_drv.c for (j = 0; j < rq->rx_ring[i].size; j++) j 1639 drivers/net/vmxnet3/vmxnet3_drv.c BUG_ON(rq->buf_info[i][j].page != NULL); j 223 drivers/net/vmxnet3/vmxnet3_ethtool.c int i, j; j 224 drivers/net/vmxnet3/vmxnet3_ethtool.c for (j = 0; j < adapter->num_tx_queues; j++) { j 238 drivers/net/vmxnet3/vmxnet3_ethtool.c for (j = 0; j < adapter->num_rx_queues; j++) { j 316 drivers/net/vmxnet3/vmxnet3_ethtool.c int j = 0; j 323 drivers/net/vmxnet3/vmxnet3_ethtool.c for (j = 0; j < adapter->num_tx_queues; j++) { j 324 drivers/net/vmxnet3/vmxnet3_ethtool.c base = (u8 *)&adapter->tqd_start[j].stats; j 325 drivers/net/vmxnet3/vmxnet3_ethtool.c *buf++ = (u64)j; j 330 drivers/net/vmxnet3/vmxnet3_ethtool.c base = (u8 *)&adapter->tx_queue[j].stats; j 336 drivers/net/vmxnet3/vmxnet3_ethtool.c for (j = 0; j < adapter->num_rx_queues; j++) { j 337 drivers/net/vmxnet3/vmxnet3_ethtool.c base = (u8 *)&adapter->rqd_start[j].stats; j 338 drivers/net/vmxnet3/vmxnet3_ethtool.c *buf++ = (u64) j; j 343 drivers/net/vmxnet3/vmxnet3_ethtool.c base = (u8 *)&adapter->rx_queue[j].stats; j 366 drivers/net/vmxnet3/vmxnet3_ethtool.c int i = 0, j = 0; j 374 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_READ_BAR1_REG(adapter, VMXNET3_REG_VRRS); j 375 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_READ_BAR1_REG(adapter, VMXNET3_REG_UVRS); j 376 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_READ_BAR1_REG(adapter, VMXNET3_REG_DSAL); j 377 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_READ_BAR1_REG(adapter, VMXNET3_REG_DSAH); j 378 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_READ_BAR1_REG(adapter, VMXNET3_REG_CMD); j 379 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_READ_BAR1_REG(adapter, VMXNET3_REG_MACL); j 380 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_READ_BAR1_REG(adapter, VMXNET3_REG_MACH); j 381 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_READ_BAR1_REG(adapter, VMXNET3_REG_ICR); j 382 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_READ_BAR1_REG(adapter, VMXNET3_REG_ECR); j 384 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = adapter->intr.num_intrs; j 386 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_READ_BAR0_REG(adapter, VMXNET3_REG_IMR j 390 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = adapter->num_tx_queues; j 394 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_READ_BAR0_REG(adapter, VMXNET3_REG_TXPROD + j 397 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_GET_ADDR_LO(tq->tx_ring.basePA); j 398 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_GET_ADDR_HI(tq->tx_ring.basePA); j 399 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = tq->tx_ring.size; j 400 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = tq->tx_ring.next2fill; j 401 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = tq->tx_ring.next2comp; j 402 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = tq->tx_ring.gen; j 404 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_GET_ADDR_LO(tq->data_ring.basePA); j 405 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_GET_ADDR_HI(tq->data_ring.basePA); j 406 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = tq->data_ring.size; j 407 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = tq->txdata_desc_size; j 409 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_GET_ADDR_LO(tq->comp_ring.basePA); j 410 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_GET_ADDR_HI(tq->comp_ring.basePA); j 411 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = tq->comp_ring.size; j 412 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = tq->comp_ring.next2proc; j 413 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = tq->comp_ring.gen; j 415 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = tq->stopped; j 418 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = adapter->num_rx_queues; j 422 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_READ_BAR0_REG(adapter, VMXNET3_REG_RXPROD + j 424 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_READ_BAR0_REG(adapter, VMXNET3_REG_RXPROD2 + j 427 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_GET_ADDR_LO(rq->rx_ring[0].basePA); j 428 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_GET_ADDR_HI(rq->rx_ring[0].basePA); j 429 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = rq->rx_ring[0].size; j 430 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = rq->rx_ring[0].next2fill; j 431 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = rq->rx_ring[0].next2comp; j 432 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = rq->rx_ring[0].gen; j 434 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_GET_ADDR_LO(rq->rx_ring[1].basePA); j 435 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_GET_ADDR_HI(rq->rx_ring[1].basePA); j 436 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = rq->rx_ring[1].size; j 437 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = rq->rx_ring[1].next2fill; j 438 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = rq->rx_ring[1].next2comp; j 439 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = rq->rx_ring[1].gen; j 441 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_GET_ADDR_LO(rq->data_ring.basePA); j 442 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_GET_ADDR_HI(rq->data_ring.basePA); j 443 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = rq->rx_ring[0].size; j 444 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = rq->data_ring.desc_size; j 446 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_GET_ADDR_LO(rq->comp_ring.basePA); j 447 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = VMXNET3_GET_ADDR_HI(rq->comp_ring.basePA); j 448 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = rq->comp_ring.size; j 449 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = rq->comp_ring.next2proc; j 450 drivers/net/vmxnet3/vmxnet3_ethtool.c buf[j++] = rq->comp_ring.gen; j 67 drivers/net/wan/lmc/lmc_debug.c unsigned long j = jiffies + 3; /* Wait for 50 ms */ j 76 drivers/net/wan/lmc/lmc_debug.c while(time_before(jiffies, j)) j 1492 drivers/net/wireless/ath/ath10k/debug.c unsigned int j, char *buf, size_t *len) j 1513 drivers/net/wireless/ath/ath10k/debug.c table_str[j]); j 1528 drivers/net/wireless/ath/ath10k/debug.c pream_str[tpc_stats->tpc_table[j].pream_idx[i]], j 1529 drivers/net/wireless/ath/ath10k/debug.c tpc_stats->tpc_table[j].rate_code[i], j 1530 drivers/net/wireless/ath/ath10k/debug.c tpc_stats->tpc_table[j].tpc_value[i]); j 1541 drivers/net/wireless/ath/ath10k/debug.c int j; j 1580 drivers/net/wireless/ath/ath10k/debug.c for (j = 0; j < WMI_TPC_FLAG; j++) { j 1581 drivers/net/wireless/ath/ath10k/debug.c switch (j) { j 1583 drivers/net/wireless/ath/ath10k/debug.c if (tpc_stats->flag[j] == ATH10K_TPC_TABLE_TYPE_FLAG) { j 1589 drivers/net/wireless/ath/ath10k/debug.c ath10k_tpc_stats_print(tpc_stats, j, buf, &len); j 1592 drivers/net/wireless/ath/ath10k/debug.c if (tpc_stats->flag[j] == ATH10K_TPC_TABLE_TYPE_FLAG) { j 1598 drivers/net/wireless/ath/ath10k/debug.c ath10k_tpc_stats_print(tpc_stats, j, buf, &len); j 1601 drivers/net/wireless/ath/ath10k/debug.c if (tpc_stats->flag[j] == ATH10K_TPC_TABLE_TYPE_FLAG) { j 1607 drivers/net/wireless/ath/ath10k/debug.c ath10k_tpc_stats_print(tpc_stats, j, buf, &len); j 544 drivers/net/wireless/ath/ath10k/debugfs_sta.c for (j = 0; j <= IEEE80211_NUM_TIDS; j++) { \ j 545 drivers/net/wireless/ath/ath10k/debugfs_sta.c if (ar->sta_tid_stats_mask & BIT(j)) { \ j 548 drivers/net/wireless/ath/ath10k/debugfs_sta.c j, stats[j]._field); \ j 572 drivers/net/wireless/ath/ath10k/debugfs_sta.c int i, j; j 656 drivers/net/wireless/ath/ath10k/debugfs_sta.c int len = 0, i, j, k, retval = 0; j 675 drivers/net/wireless/ath/ath10k/debugfs_sta.c for (j = 0; j < ATH10K_COUNTER_TYPE_MAX; j++) { j 679 drivers/net/wireless/ath/ath10k/debugfs_sta.c str[j]); j 682 drivers/net/wireless/ath/ath10k/debugfs_sta.c str[j]); j 686 drivers/net/wireless/ath/ath10k/debugfs_sta.c stats->vht[j][i]); j 689 drivers/net/wireless/ath/ath10k/debugfs_sta.c str[j]); j 692 drivers/net/wireless/ath/ath10k/debugfs_sta.c " %llu ", stats->ht[j][i]); j 695 drivers/net/wireless/ath/ath10k/debugfs_sta.c " BW %s (20,5,10,40,80,160 MHz)\n", str[j]); j 698 drivers/net/wireless/ath/ath10k/debugfs_sta.c stats->bw[j][0], stats->bw[j][1], j 699 drivers/net/wireless/ath/ath10k/debugfs_sta.c stats->bw[j][2], stats->bw[j][3], j 700 drivers/net/wireless/ath/ath10k/debugfs_sta.c stats->bw[j][4], stats->bw[j][5]); j 702 drivers/net/wireless/ath/ath10k/debugfs_sta.c " NSS %s (1x1,2x2,3x3,4x4)\n", str[j]); j 705 drivers/net/wireless/ath/ath10k/debugfs_sta.c stats->nss[j][0], stats->nss[j][1], j 706 drivers/net/wireless/ath/ath10k/debugfs_sta.c stats->nss[j][2], stats->nss[j][3]); j 709 drivers/net/wireless/ath/ath10k/debugfs_sta.c str[j]); j 711 drivers/net/wireless/ath/ath10k/debugfs_sta.c stats->gi[j][0], stats->gi[j][1]); j 714 drivers/net/wireless/ath/ath10k/debugfs_sta.c str[j]); j 717 drivers/net/wireless/ath/ath10k/debugfs_sta.c stats->legacy[j][i]); j 721 drivers/net/wireless/ath/ath10k/debugfs_sta.c str[j]); j 724 drivers/net/wireless/ath/ath10k/debugfs_sta.c stats->rate_table[j][i]); j 1474 drivers/net/wireless/ath/ath10k/pci.c int ret, i, j; j 1546 drivers/net/wireless/ath/ath10k/pci.c for (j = 0; j < skip_size; j++) { j 295 drivers/net/wireless/ath/ath10k/qmi.c int i, j = 0; j 306 drivers/net/wireless/ath/ath10k/qmi.c req.meta_data[j] = qmi->cal_data[i].cal_id; j 307 drivers/net/wireless/ath/ath10k/qmi.c j++; j 310 drivers/net/wireless/ath/ath10k/qmi.c req.meta_data_len = j; j 4635 drivers/net/wireless/ath/ath10k/wmi.c u32 i, j, pream_idx, flags; j 4677 drivers/net/wireless/ath/ath10k/wmi.c for (j = 0; j < WMI_TPC_TX_N_CHAIN; j++) { j 4678 drivers/net/wireless/ath/ath10k/wmi.c if (j >= __le32_to_cpu(ev->num_tx_chain)) j 4681 drivers/net/wireless/ath/ath10k/wmi.c tpc[j] = ath10k_tpc_config_get_rate(ar, ev, i, j + 1, j 4684 drivers/net/wireless/ath/ath10k/wmi.c snprintf(buff, sizeof(buff), "%8d ", tpc[j]); j 4697 drivers/net/wireless/ath/ath10k/wmi.c u32 i, j, pream_idx; j 4724 drivers/net/wireless/ath/ath10k/wmi.c for (j = 0; j < 8; j++) { j 4726 drivers/net/wireless/ath/ath10k/wmi.c ATH10K_HW_RATECODE(j, i, WMI_RATE_PREAMBLE_HT); j 4735 drivers/net/wireless/ath/ath10k/wmi.c for (j = 0; j < 8; j++) { j 4737 drivers/net/wireless/ath/ath10k/wmi.c ATH10K_HW_RATECODE(j, i, WMI_RATE_PREAMBLE_HT); j 4746 drivers/net/wireless/ath/ath10k/wmi.c for (j = 0; j < 10; j++) { j 4748 drivers/net/wireless/ath/ath10k/wmi.c ATH10K_HW_RATECODE(j, i, WMI_RATE_PREAMBLE_VHT); j 4757 drivers/net/wireless/ath/ath10k/wmi.c for (j = 0; j < 10; j++) { j 4759 drivers/net/wireless/ath/ath10k/wmi.c ATH10K_HW_RATECODE(j, i, WMI_RATE_PREAMBLE_VHT); j 4768 drivers/net/wireless/ath/ath10k/wmi.c for (j = 0; j < 10; j++) { j 4770 drivers/net/wireless/ath/ath10k/wmi.c ATH10K_HW_RATECODE(j, i, WMI_RATE_PREAMBLE_VHT); j 4985 drivers/net/wireless/ath/ath10k/wmi.c u32 i, j, pream_idx, flags; j 5027 drivers/net/wireless/ath/ath10k/wmi.c for (j = 0; j < WMI_TPC_TX_N_CHAIN; j++) { j 5028 drivers/net/wireless/ath/ath10k/wmi.c if (j >= __le32_to_cpu(ev->num_tx_chain)) j 5031 drivers/net/wireless/ath/ath10k/wmi.c tpc[j] = ath10k_wmi_tpc_final_get_rate(ar, ev, i, j + 1, j 5034 drivers/net/wireless/ath/ath10k/wmi.c snprintf(buff, sizeof(buff), "%8d ", tpc[j]); j 5291 drivers/net/wireless/ath/ath10k/wmi.c int i, j; j 5315 drivers/net/wireless/ath/ath10k/wmi.c for (j = 0; j < ar->wmi.num_mem_chunks; j++) { j 5316 drivers/net/wireless/ath/ath10k/wmi.c if (ar->wmi.mem_chunks[j].req_id == req_id) { j 5318 drivers/net/wireless/ath/ath10k/wmi.c if (ar->wmi.mem_chunks[j].len == pool_size) { j 175 drivers/net/wireless/ath/ath10k/wow.c int i, j, ret = 0; j 209 drivers/net/wireless/ath/ath10k/wow.c for (j = 0; j < nd_config->n_channels; j++) { j 210 drivers/net/wireless/ath/ath10k/wow.c pno->a_networks[i].channels[j] = j 211 drivers/net/wireless/ath/ath10k/wow.c nd_config->channels[j]->center_freq; j 222 drivers/net/wireless/ath/ath10k/wow.c j = 0; j 223 drivers/net/wireless/ath/ath10k/wow.c while (j < pno->uc_networks_count) { j 224 drivers/net/wireless/ath/ath10k/wow.c if (__le32_to_cpu(pno->a_networks[j].ssid.ssid_len) == j 226 drivers/net/wireless/ath/ath10k/wow.c (memcmp(pno->a_networks[j].ssid.ssid, j 228 drivers/net/wireless/ath/ath10k/wow.c __le32_to_cpu(pno->a_networks[j].ssid.ssid_len)) == 0)) { j 229 drivers/net/wireless/ath/ath10k/wow.c pno->a_networks[j].bcast_nw_type = BCAST_HIDDEN; j 232 drivers/net/wireless/ath/ath10k/wow.c j++; j 329 drivers/net/wireless/ath/ath10k/wow.c int j; j 336 drivers/net/wireless/ath/ath10k/wow.c for (j = 0; j < patterns[i].pattern_len; j++) j 337 drivers/net/wireless/ath/ath10k/wow.c if (patterns[i].mask[j / 8] & BIT(j % 8)) j 338 drivers/net/wireless/ath/ath10k/wow.c bitmask[j] = 0xff; j 1604 drivers/net/wireless/ath/ath5k/eeprom.c int i, j; j 1645 drivers/net/wireless/ath/ath5k/eeprom.c for (j = 0; j < AR5K_EEPROM_N_EDGES; j += 2) { j 1647 drivers/net/wireless/ath/ath5k/eeprom.c rep[j].freq = (val >> 8) & fmask; j 1648 drivers/net/wireless/ath/ath5k/eeprom.c rep[j + 1].freq = val & fmask; j 1650 drivers/net/wireless/ath/ath5k/eeprom.c for (j = 0; j < AR5K_EEPROM_N_EDGES; j += 2) { j 1652 drivers/net/wireless/ath/ath5k/eeprom.c rep[j].edge = (val >> 8) & pmask; j 1653 drivers/net/wireless/ath/ath5k/eeprom.c rep[j].flag = (val >> 14) & 1; j 1654 drivers/net/wireless/ath/ath5k/eeprom.c rep[j + 1].edge = val & pmask; j 1655 drivers/net/wireless/ath/ath5k/eeprom.c rep[j + 1].flag = (val >> 6) & 1; j 1694 drivers/net/wireless/ath/ath5k/eeprom.c for (j = 0; j < AR5K_EEPROM_N_EDGES; j++) { j 1695 drivers/net/wireless/ath/ath5k/eeprom.c rep[j].freq = ath5k_eeprom_bin2freq(ee, j 1696 drivers/net/wireless/ath/ath5k/eeprom.c rep[j].freq, ctl_mode); j 1566 drivers/net/wireless/ath/ath5k/phy.c int i, j; j 1570 drivers/net/wireless/ath/ath5k/phy.c for (j = 1; j < ATH5K_NF_CAL_HIST_MAX - i; j++) { j 1571 drivers/net/wireless/ath/ath5k/phy.c if (sort[j] > sort[j - 1]) { j 1572 drivers/net/wireless/ath/ath5k/phy.c tmp = sort[j]; j 1573 drivers/net/wireless/ath/ath5k/phy.c sort[j] = sort[j - 1]; j 1574 drivers/net/wireless/ath/ath5k/phy.c sort[j - 1] = tmp; j 922 drivers/net/wireless/ath/ath6kl/cfg80211.c u8 i, j, index_to_add, ssid_found = false; j 951 drivers/net/wireless/ath/ath6kl/cfg80211.c for (j = 0; j < n_ssids; j++) { j 953 drivers/net/wireless/ath/ath6kl/cfg80211.c ssid_list[j].ssid.ssid_len) && j 954 drivers/net/wireless/ath/ath6kl/cfg80211.c (!memcmp(ssid_list[j].ssid.ssid, j 957 drivers/net/wireless/ath/ath6kl/cfg80211.c ssid_list[j].flag |= MATCH_SSID_FLAG; j 1374 drivers/net/wireless/ath/ath6kl/htc_mbox.c int status = 0, j, full_len; j 1389 drivers/net/wireless/ath/ath6kl/htc_mbox.c for (j = 0; j < n_msg; j++) { j 1455 drivers/net/wireless/ath/ath6kl/htc_mbox.c if (j) { j 1625 drivers/net/wireless/ath/ath6kl/txrx.c u8 i, j; j 1653 drivers/net/wireless/ath/ath6kl/txrx.c for (j = 0; j < rxtid->hold_q_sz; j++) { j 1654 drivers/net/wireless/ath/ath6kl/txrx.c if (rxtid->hold_q[j].skb) { j 1662 drivers/net/wireless/ath/ath6kl/txrx.c if (j >= rxtid->hold_q_sz) j 1074 drivers/net/wireless/ath/ath9k/ar9003_calib.c int i, im, j; j 1099 drivers/net/wireless/ath/ath9k/ar9003_calib.c for (j = 0; j < 3; j++) { j 1100 drivers/net/wireless/ath/ath9k/ar9003_calib.c u32 idx = 2 * j, offset = 4 * (3 * im + j); j 1348 drivers/net/wireless/ath/ath9k/ar9003_calib.c int i, j; j 1360 drivers/net/wireless/ath/ath9k/ar9003_calib.c for (j = 0; j < MAX_CL_TAB_ENTRY; j++) j 1362 drivers/net/wireless/ath/ath9k/ar9003_calib.c caldata->tx_clcal[i][j]); j 1368 drivers/net/wireless/ath/ath9k/ar9003_calib.c for (j = 0; j < MAX_CL_TAB_ENTRY; j++) j 1369 drivers/net/wireless/ath/ath9k/ar9003_calib.c caldata->tx_clcal[i][j] = j 3447 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c int i, j; j 3465 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c for (j = 0; j < cal_pier_nr; j++) { j 3467 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c cal_pier = &eep->calPierData2G[i][j]; j 3468 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c freq = 2300 + eep->calFreqPier2G[j]; j 3470 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c cal_pier = &eep->calPierData5G[i][j]; j 3471 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c freq = 4800 + eep->calFreqPier5G[j] * 5; j 1849 drivers/net/wireless/ath/ath9k/ar9003_phy.c int i, j; j 1853 drivers/net/wireless/ath/ath9k/ar9003_phy.c j = ofdm2pwr[i - offset]; j 1854 drivers/net/wireless/ath/ath9k/ar9003_phy.c ah->tx_power[i] = rate_array[j]; j 1862 drivers/net/wireless/ath/ath9k/ar9003_phy.c int i, j, mcs_idx = 0; j 1866 drivers/net/wireless/ath/ath9k/ar9003_phy.c j = mcs2pwr[mcs_idx]; j 1867 drivers/net/wireless/ath/ath9k/ar9003_phy.c ah->tx_power[i] = rate_array[j]; j 1872 drivers/net/wireless/ath/ath9k/ar9003_phy.c j = mcs2pwr[mcs_idx]; j 1873 drivers/net/wireless/ath/ath9k/ar9003_phy.c ah->tx_power[i] = rate_array[j]; j 1878 drivers/net/wireless/ath/ath9k/ar9003_phy.c j = mcs2pwr[mcs_idx]; j 1879 drivers/net/wireless/ath/ath9k/ar9003_phy.c ah->tx_power[i] = rate_array[j]; j 28 drivers/net/wireless/ath/ath9k/calib.c int i, j; j 34 drivers/net/wireless/ath/ath9k/calib.c for (j = 1; j < ATH9K_NF_CAL_HIST_MAX - i; j++) { j 35 drivers/net/wireless/ath/ath9k/calib.c if (sort[j] > sort[j - 1]) { j 36 drivers/net/wireless/ath/ath9k/calib.c nfval = sort[j]; j 37 drivers/net/wireless/ath/ath9k/calib.c sort[j] = sort[j - 1]; j 38 drivers/net/wireless/ath/ath9k/calib.c sort[j - 1] = nfval; j 246 drivers/net/wireless/ath/ath9k/calib.c unsigned i, j; j 307 drivers/net/wireless/ath/ath9k/calib.c for (j = 0; j < 22200; j++) { j 338 drivers/net/wireless/ath/ath9k/calib.c if (j == 22200) { j 443 drivers/net/wireless/ath/ath9k/calib.c int i, j, k = 0; j 452 drivers/net/wireless/ath/ath9k/calib.c for (j = 0; j < ATH9K_NF_CAL_HIST_MAX; j++) j 453 drivers/net/wireless/ath/ath9k/calib.c h[i].nfCalBuffer[j] = h[i].privNF; j 109 drivers/net/wireless/ath/ath9k/channel.c int i, j; j 122 drivers/net/wireless/ath/ath9k/channel.c for (j = 0; j < ARRAY_SIZE(ctx->acq); j++) { j 123 drivers/net/wireless/ath/ath9k/channel.c INIT_LIST_HEAD(&ctx->acq[j].acq_new); j 124 drivers/net/wireless/ath/ath9k/channel.c INIT_LIST_HEAD(&ctx->acq[j].acq_old); j 125 drivers/net/wireless/ath/ath9k/channel.c spin_lock_init(&ctx->acq[j].lock); j 221 drivers/net/wireless/ath/ath9k/common.c int i, j; j 240 drivers/net/wireless/ath/ath9k/common.c for (i = 0, j = 0; i < ARRAY_SIZE(rx_stats->rs_rssi_ctl); i++) { j 248 drivers/net/wireless/ath/ath9k/common.c rxs->chains |= BIT(j); j 249 drivers/net/wireless/ath/ath9k/common.c rxs->chain_signal[j] = ah->noise + rssi; j 251 drivers/net/wireless/ath/ath9k/common.c j++; j 917 drivers/net/wireless/ath/ath9k/debug.c int i, j = 0; j 940 drivers/net/wireless/ath/ath9k/debug.c if (reg_hole_list[j].start == i << 2) { j 941 drivers/net/wireless/ath/ath9k/debug.c i = reg_hole_list[j].end >> 2; j 942 drivers/net/wireless/ath/ath9k/debug.c j++; j 972 drivers/net/wireless/ath/ath9k/debug.c u32 i, j; j 985 drivers/net/wireless/ath/ath9k/debug.c for (j = 0; j < nread; j++) j 986 drivers/net/wireless/ath/ath9k/debug.c seq_printf(file, " %d", h[i].nfCalBuffer[j]); j 83 drivers/net/wireless/ath/ath9k/eeprom.c int i = 0, j, addr; j 94 drivers/net/wireless/ath/ath9k/eeprom.c for (j = 0; j < i; j++) { j 95 drivers/net/wireless/ath/ath9k/eeprom.c *eep_data = data[j]; j 105 drivers/net/wireless/ath/ath9k/eeprom.c for (j = 0; j < i; j++) { j 106 drivers/net/wireless/ath/ath9k/eeprom.c *eep_data = data[j]; j 462 drivers/net/wireless/ath/ath9k/eeprom.c int i, j, k; j 572 drivers/net/wireless/ath/ath9k/eeprom.c for (j = 0; j <= (maxPwrT4[i] - minPwrT4[i]) / 2; j++) { j 573 drivers/net/wireless/ath/ath9k/eeprom.c vpdTableI[i][j] = j 580 drivers/net/wireless/ath/ath9k/eeprom.c vpdTableL[i][j], vpdTableR[i][j])); j 293 drivers/net/wireless/ath/ath9k/eeprom_4k.c u16 numPiers, i, j; j 359 drivers/net/wireless/ath/ath9k/eeprom_4k.c for (j = 0; j < 32; j++) { j 360 drivers/net/wireless/ath/ath9k/eeprom_4k.c reg32 = get_unaligned_le32(&pdadcValues[4 * j]); j 373 drivers/net/wireless/ath/ath9k/eeprom_4k.c i, 4 * j, pdadcValues[4 * j], j 374 drivers/net/wireless/ath/ath9k/eeprom_4k.c 4 * j + 1, pdadcValues[4 * j + 1], j 375 drivers/net/wireless/ath/ath9k/eeprom_4k.c 4 * j + 2, pdadcValues[4 * j + 2], j 376 drivers/net/wireless/ath/ath9k/eeprom_4k.c 4 * j + 3, pdadcValues[4 * j + 3]); j 362 drivers/net/wireless/ath/ath9k/eeprom_9287.c u16 numPiers = 0, i, j; j 466 drivers/net/wireless/ath/ath9k/eeprom_9287.c for (j = 0; j < ((u16)AR5416_NUM_PDADC_VALUES-diff); j++) j 467 drivers/net/wireless/ath/ath9k/eeprom_9287.c pdadcValues[j] = pdadcValues[j+diff]; j 469 drivers/net/wireless/ath/ath9k/eeprom_9287.c for (j = (u16)(AR5416_NUM_PDADC_VALUES-diff); j 470 drivers/net/wireless/ath/ath9k/eeprom_9287.c j < AR5416_NUM_PDADC_VALUES; j++) j 471 drivers/net/wireless/ath/ath9k/eeprom_9287.c pdadcValues[j] = j 479 drivers/net/wireless/ath/ath9k/eeprom_9287.c for (j = 0; j < 32; j++) { j 480 drivers/net/wireless/ath/ath9k/eeprom_9287.c reg32 = get_unaligned_le32(&pdadcValues[4 * j]); j 286 drivers/net/wireless/ath/ath9k/eeprom_def.c u32 j; j 297 drivers/net/wireless/ath/ath9k/eeprom_def.c for (j = 0; j < ARRAY_SIZE(eep->modalHeader); j++) { j 299 drivers/net/wireless/ath/ath9k/eeprom_def.c &eep->modalHeader[j]; j 774 drivers/net/wireless/ath/ath9k/eeprom_def.c u16 numPiers, i, j; j 894 drivers/net/wireless/ath/ath9k/eeprom_def.c for (j = 0; j < 32; j++) { j 895 drivers/net/wireless/ath/ath9k/eeprom_def.c reg32 = get_unaligned_le32(&pdadcValues[4 * j]); j 904 drivers/net/wireless/ath/ath9k/eeprom_def.c i, 4 * j, pdadcValues[4 * j], j 905 drivers/net/wireless/ath/ath9k/eeprom_def.c 4 * j + 1, pdadcValues[4 * j + 1], j 906 drivers/net/wireless/ath/ath9k/eeprom_def.c 4 * j + 2, pdadcValues[4 * j + 2], j 907 drivers/net/wireless/ath/ath9k/eeprom_def.c 4 * j + 3, pdadcValues[4 * j + 3]); j 600 drivers/net/wireless/ath/ath9k/htc_drv_main.c int i, j; j 604 drivers/net/wireless/ath/ath9k/htc_drv_main.c for (i = 0, j = 0; i < sband->n_bitrates; i++) { j 606 drivers/net/wireless/ath/ath9k/htc_drv_main.c trate->rates.legacy_rates.rs_rates[j] j 608 drivers/net/wireless/ath/ath9k/htc_drv_main.c j++; j 611 drivers/net/wireless/ath/ath9k/htc_drv_main.c trate->rates.legacy_rates.rs_nrates = j; j 614 drivers/net/wireless/ath/ath9k/htc_drv_main.c for (i = 0, j = 0; i < 77; i++) { j 616 drivers/net/wireless/ath/ath9k/htc_drv_main.c trate->rates.ht_rates.rs_rates[j++] = i; j 617 drivers/net/wireless/ath/ath9k/htc_drv_main.c if (j == ATH_HTC_RATE_MAX) j 620 drivers/net/wireless/ath/ath9k/htc_drv_main.c trate->rates.ht_rates.rs_nrates = j; j 353 drivers/net/wireless/ath/ath9k/hw.c int i, j, loop_max; j 366 drivers/net/wireless/ath/ath9k/hw.c for (j = 0; j < 0x100; j++) { j 367 drivers/net/wireless/ath/ath9k/hw.c wrData = (j << 16) | j; j 377 drivers/net/wireless/ath/ath9k/hw.c for (j = 0; j < 4; j++) { j 378 drivers/net/wireless/ath/ath9k/hw.c wrData = patternData[j]; j 419 drivers/net/wireless/ath/ath9k/hw.h #define CL_TAB_ENTRY(reg_base) (reg_base + (4 * j)) j 31 drivers/net/wireless/ath/ath9k/rng.c int i, j; j 41 drivers/net/wireless/ath/ath9k/rng.c for (i = 0, j = 0; i < buf_size; i++) { j 48 drivers/net/wireless/ath/ath9k/rng.c buf[j++] = (v1 << 16) | v2; j 57 drivers/net/wireless/ath/ath9k/rng.c return j << 2; j 1887 drivers/net/wireless/ath/carl9170/main.c int i, j, err; j 1898 drivers/net/wireless/ath/carl9170/main.c for (j = 0; j < RW; j++) j 1899 drivers/net/wireless/ath/carl9170/main.c offsets[j] = cpu_to_le32(AR9170_EEPROM_START + j 1900 drivers/net/wireless/ath/carl9170/main.c RB * i + 4 * j); j 1158 drivers/net/wireless/ath/carl9170/phy.c int j; j 1175 drivers/net/wireless/ath/carl9170/phy.c for (j = 0; j < 2; j++) { j 1176 drivers/net/wireless/ath/carl9170/phy.c vpds[j][i] = carl9170_interpolate_u8(f, j 1178 drivers/net/wireless/ath/carl9170/phy.c cal_pier_data->vpd_pdg[j][i], j 1180 drivers/net/wireless/ath/carl9170/phy.c cal_pier_data[1].vpd_pdg[j][i]); j 1182 drivers/net/wireless/ath/carl9170/phy.c pwrs[j][i] = carl9170_interpolate_u8(f, j 1184 drivers/net/wireless/ath/carl9170/phy.c cal_pier_data->pwr_pdg[j][i], j 1186 drivers/net/wireless/ath/carl9170/phy.c cal_pier_data[1].pwr_pdg[j][i]) / 2; j 1295 drivers/net/wireless/ath/carl9170/phy.c int i, j; j 1408 drivers/net/wireless/ath/carl9170/phy.c for (j = 0; j < modes[i].pwr_cal_len; j++) { j 1409 drivers/net/wireless/ath/carl9170/phy.c modes[i].pwr_cal_data[j] = min(modes[i].pwr_cal_data[j], j 2683 drivers/net/wireless/ath/wil6210/cfg80211.c int i, j; j 2720 drivers/net/wireless/ath/wil6210/cfg80211.c for (j = 0; j < combo->n_limits; j++) { j 2721 drivers/net/wireless/ath/wil6210/cfg80211.c iface_limit[j].max = le16_to_cpu(limit[j].max); j 2722 drivers/net/wireless/ath/wil6210/cfg80211.c iface_limit[j].types = le16_to_cpu(limit[j].types); j 2724 drivers/net/wireless/ath/wil6210/cfg80211.c "limit %d: max %d types 0x%x\n", j, j 2725 drivers/net/wireless/ath/wil6210/cfg80211.c iface_limit[j].max, iface_limit[j].types); j 155 drivers/net/wireless/ath/wil6210/pmc.c int j = 0; j 167 drivers/net/wireless/ath/wil6210/pmc.c for (j = 0; j < descriptor_size / sizeof(u32); j++) { j 168 drivers/net/wireless/ath/wil6210/pmc.c u32 *p = (u32 *)pmc->descriptors[i].va + j; j 169 drivers/net/wireless/ath/wil6210/pmc.c *p = PCM_DATA_INVALID_DW_VAL | j; j 3460 drivers/net/wireless/ath/wil6210/wmi.c int j; j 3470 drivers/net/wireless/ath/wil6210/wmi.c for (j = 0; j < n_ssids; j++) j 3471 drivers/net/wireless/ath/wil6210/wmi.c if (wmi_match->ssid_len == ssids[j].ssid_len && j 3472 drivers/net/wireless/ath/wil6210/wmi.c memcmp(wmi_match->ssid, ssids[j].ssid, j 2401 drivers/net/wireless/atmel/atmel.c int k, i, j; j 2408 drivers/net/wireless/atmel/atmel.c for (j = 0; j < ARRAY_SIZE(channel_table); j++) j 2409 drivers/net/wireless/atmel/atmel.c if (priv->reg_domain == channel_table[j].reg_domain) { j 2410 drivers/net/wireless/atmel/atmel.c range->num_channels = channel_table[j].max - channel_table[j].min + 1; j 2414 drivers/net/wireless/atmel/atmel.c for (k = 0, i = channel_table[j].min; i <= channel_table[j].max; i++) { j 4195 drivers/net/wireless/atmel/atmel.c int i, j = 20; j 4209 drivers/net/wireless/atmel/atmel.c if (!j--) j 224 drivers/net/wireless/broadcom/b43/lo.c int i, j; j 232 drivers/net/wireless/broadcom/b43/lo.c for (j = 0; j < ARRAY_SIZE(tx_bias_values); j++) { j 233 drivers/net/wireless/broadcom/b43/lo.c tx_bias = tx_bias_values[j]; j 1422 drivers/net/wireless/broadcom/b43/main.c u8 i, j; j 1461 drivers/net/wireless/broadcom/b43/main.c for (j = 0; j < 4; j++) j 1462 drivers/net/wireless/broadcom/b43/main.c average += dev->noisecalc.samples[i][j]; j 1252 drivers/net/wireless/broadcom/b43/phy_g.c u16 i, j; j 1392 drivers/net/wireless/broadcom/b43/phy_g.c for (j = 0; j < 16; j++) { j 1702 drivers/net/wireless/broadcom/b43/phy_g.c u16 i, j, loop_i_max; j 1785 drivers/net/wireless/broadcom/b43/phy_g.c j = 0; j 1788 drivers/net/wireless/broadcom/b43/phy_g.c for (j = 0; j < 16; j++) { j 1790 drivers/net/wireless/broadcom/b43/phy_g.c b43_phy_maskset(dev, B43_PHY_RFOVERVAL, 0xF0FF, (j << 8)); j 1800 drivers/net/wireless/broadcom/b43/phy_g.c loop1_inner_done = j; j 1801 drivers/net/wireless/broadcom/b43/phy_g.c if (j >= 8) { j 1804 drivers/net/wireless/broadcom/b43/phy_g.c for (j = j - 8; j < 16; j++) { j 1805 drivers/net/wireless/broadcom/b43/phy_g.c b43_phy_maskset(dev, B43_PHY_RFOVERVAL, 0xF0FF, (j << 8)); j 2258 drivers/net/wireless/broadcom/b43/phy_g.c int i, j = 0; j 2275 drivers/net/wireless/broadcom/b43/phy_g.c j++; j 2276 drivers/net/wireless/broadcom/b43/phy_g.c if (j >= 20) j 2289 drivers/net/wireless/broadcom/b43/phy_g.c unsigned int i, j, start, end; j 2316 drivers/net/wireless/broadcom/b43/phy_g.c for (j = i; j < end; j++) j 2317 drivers/net/wireless/broadcom/b43/phy_g.c ret[j] = 1; j 252 drivers/net/wireless/broadcom/b43/phy_ht.c u8 i, j; j 256 drivers/net/wireless/broadcom/b43/phy_ht.c for (j = 0; j < 4; j++) j 257 drivers/net/wireless/broadcom/b43/phy_ht.c b43_phy_write(dev, B43_PHY_EXTG(base[i] + j), 0); j 425 drivers/net/wireless/broadcom/b43/phy_lcn.c int i, j; j 464 drivers/net/wireless/broadcom/b43/phy_lcn.c for (j = 0; j < 16; j++) j 465 drivers/net/wireless/broadcom/b43/phy_lcn.c b43_phy_write(dev, phy_regs[j], j 466 drivers/net/wireless/broadcom/b43/phy_lcn.c tx_iir_filters_cck[i].values[j]); j 477 drivers/net/wireless/broadcom/b43/phy_lcn.c int i, j; j 492 drivers/net/wireless/broadcom/b43/phy_lcn.c for (j = 0; j < 16; j++) j 493 drivers/net/wireless/broadcom/b43/phy_lcn.c b43_phy_write(dev, phy_regs[j], j 494 drivers/net/wireless/broadcom/b43/phy_lcn.c tx_iir_filters_ofdm[i].values[j]); j 1189 drivers/net/wireless/broadcom/b43/phy_lp.c int loopback, i, j, inner_sum, err; j 1226 drivers/net/wireless/broadcom/b43/phy_lp.c for (j = 5; j <= 25; j++) { j 1227 drivers/net/wireless/broadcom/b43/phy_lp.c lpphy_run_ddfs(dev, 1, 1, j, j, 0); j 1231 drivers/net/wireless/broadcom/b43/phy_lp.c if (j == 5) j 1233 drivers/net/wireless/broadcom/b43/phy_lp.c ideal_pwr = ((ideal_pwr_table[j-5] >> 3) + 1) >> 1; j 390 drivers/net/wireless/broadcom/b43/phy_n.c u8 i, j; j 422 drivers/net/wireless/broadcom/b43/phy_n.c for (j = 0; j < 100; j++) { j 424 drivers/net/wireless/broadcom/b43/phy_n.c j = 0; j 429 drivers/net/wireless/broadcom/b43/phy_n.c if (j) j 441 drivers/net/wireless/broadcom/b43/phy_n.c for (j = 0; j < 100; j++) { j 443 drivers/net/wireless/broadcom/b43/phy_n.c j = 0; j 448 drivers/net/wireless/broadcom/b43/phy_n.c if (j) j 2078 drivers/net/wireless/broadcom/b43/phy_n.c int core, i, j, vcm; j 2217 drivers/net/wireless/broadcom/b43/phy_n.c for (j = 0; j < 4; j++) { j 2218 drivers/net/wireless/broadcom/b43/phy_n.c if (j / 2 == core) { j 2219 drivers/net/wireless/broadcom/b43/phy_n.c offset[j] = 232 - poll_results[j]; j 2220 drivers/net/wireless/broadcom/b43/phy_n.c if (offset[j] < 0) j 2221 drivers/net/wireless/broadcom/b43/phy_n.c offset[j] = -(abs(offset[j] + 4) / 8); j 2223 drivers/net/wireless/broadcom/b43/phy_n.c offset[j] = (offset[j] + 4) / 8; j 2225 drivers/net/wireless/broadcom/b43/phy_n.c offset[2 * core], core + 1, j % 2, i); j 2293 drivers/net/wireless/broadcom/b43/phy_n.c int i, j, vcm; j 2355 drivers/net/wireless/broadcom/b43/phy_n.c for (j = 0; j < 4; j++) j 2356 drivers/net/wireless/broadcom/b43/phy_n.c tmp[j] = vcm; j 2361 drivers/net/wireless/broadcom/b43/phy_n.c for (j = 0; j < 2; j++) j 2362 drivers/net/wireless/broadcom/b43/phy_n.c miniq[vcm][j] = min(results[vcm][2 * j], j 2363 drivers/net/wireless/broadcom/b43/phy_n.c results[vcm][2 * j + 1]); j 2578 drivers/net/wireless/broadcom/b43/phy_n.c u8 i, j; j 2666 drivers/net/wireless/broadcom/b43/phy_n.c for (j = 0; j < 21; j++) { j 2667 drivers/net/wireless/broadcom/b43/phy_n.c tmp = j * (i < 2 ? 3 : 1); j 3555 drivers/net/wireless/broadcom/b43/phy_n.c int i, j, indx; j 3571 drivers/net/wireless/broadcom/b43/phy_n.c for (j = 0; j < 5; j++) j 3572 drivers/net/wireless/broadcom/b43/phy_n.c params->ncorr[j] = 0x79; j 3589 drivers/net/wireless/broadcom/b43/phy_n.c for (j = 0; j < 4; j++) j 3590 drivers/net/wireless/broadcom/b43/phy_n.c params->ncorr[j] = tbl_iqcal_gainparams[indx][i][4 + j]; j 4652 drivers/net/wireless/broadcom/b43/phy_n.c int i, j; j 4668 drivers/net/wireless/broadcom/b43/phy_n.c for (j = 0; j < 128; j++) { j 4689 drivers/net/wireless/broadcom/b43/phy_n.c for (j = 0; j < 128; j++) { j 4691 drivers/net/wireless/broadcom/b43/phy_n.c cur_real = (real_part * loscale[j] + 128) >> 8; j 4692 drivers/net/wireless/broadcom/b43/phy_n.c cur_imag = (imag_part * loscale[j] + 128) >> 8; j 5642 drivers/net/wireless/broadcom/b43/phy_n.c int i, j, index; j 5726 drivers/net/wireless/broadcom/b43/phy_n.c for (j = 0; j < 4; j++) { j 5727 drivers/net/wireless/broadcom/b43/phy_n.c if (j < 3) { j 5728 drivers/net/wireless/broadcom/b43/phy_n.c cur_lna = lna[j]; j 5729 drivers/net/wireless/broadcom/b43/phy_n.c cur_hpf1 = hpf1[j]; j 5730 drivers/net/wireless/broadcom/b43/phy_n.c cur_hpf2 = hpf2[j]; j 5776 drivers/net/wireless/broadcom/b43/phy_n.c if (j < 3) { j 798 drivers/net/wireless/broadcom/b43legacy/main.c u8 j; j 827 drivers/net/wireless/broadcom/b43legacy/main.c for (j = 0; j < 4; j++) j 828 drivers/net/wireless/broadcom/b43legacy/main.c average += dev->noisecalc.samples[i][j]; j 1128 drivers/net/wireless/broadcom/b43legacy/phy.c int j; j 1179 drivers/net/wireless/broadcom/b43legacy/phy.c for (j = -4; j < 5; j += 2) { j 1180 drivers/net/wireless/broadcom/b43legacy/phy.c if (j < 0) j 1181 drivers/net/wireless/broadcom/b43legacy/phy.c fval = (0x0100 * i) + j + 0x0100; j 1183 drivers/net/wireless/broadcom/b43legacy/phy.c fval = (0x0100 * i) + j; j 1375 drivers/net/wireless/broadcom/b43legacy/phy.c int j; j 1404 drivers/net/wireless/broadcom/b43legacy/phy.c j = begin; j 1408 drivers/net/wireless/broadcom/b43legacy/phy.c B43legacy_WARN_ON(!(j >= 1 && j <= 8)); j 1410 drivers/net/wireless/broadcom/b43legacy/phy.c transitions[j - 1].high; j 1411 drivers/net/wireless/broadcom/b43legacy/phy.c transition.low = tmp_pair.low + transitions[j - 1].low; j 1419 drivers/net/wireless/broadcom/b43legacy/phy.c state = j; j 1427 drivers/net/wireless/broadcom/b43legacy/phy.c if (j == end) j 1429 drivers/net/wireless/broadcom/b43legacy/phy.c if (j == 8) j 1430 drivers/net/wireless/broadcom/b43legacy/phy.c j = 1; j 1432 drivers/net/wireless/broadcom/b43legacy/phy.c j++; j 1474 drivers/net/wireless/broadcom/b43legacy/phy.c u16 j; j 1559 drivers/net/wireless/broadcom/b43legacy/phy.c for (j = 0; j < 4; j++) { j 1561 drivers/net/wireless/broadcom/b43legacy/phy.c tmp = i * 2 + j; j 1573 drivers/net/wireless/broadcom/b43legacy/phy.c j * 2); j 1585 drivers/net/wireless/broadcom/b43legacy/phy.c b43legacy_phy_set_baseband_attenuation(dev, j * 2); j 1592 drivers/net/wireless/broadcom/b43legacy/phy.c tmp_control = b43legacy_get_lopair(phy, i, j * 2); j 1601 drivers/net/wireless/broadcom/b43legacy/phy.c for (j = 0; j < 4; j++) { j 1604 drivers/net/wireless/broadcom/b43legacy/phy.c j * 2); j 1608 drivers/net/wireless/broadcom/b43legacy/phy.c tmp = (i - 9) * 2 + j - 5; j 1620 drivers/net/wireless/broadcom/b43legacy/phy.c j * 2); j 1636 drivers/net/wireless/broadcom/b43legacy/phy.c b43legacy_phy_set_baseband_attenuation(dev, j * 2); j 1643 drivers/net/wireless/broadcom/b43legacy/phy.c tmp_control = b43legacy_get_lopair(phy, i, j * 2); j 238 drivers/net/wireless/broadcom/b43legacy/radio.c int j = 0; j 255 drivers/net/wireless/broadcom/b43legacy/radio.c j++; j 256 drivers/net/wireless/broadcom/b43legacy/radio.c if (j >= 20) j 270 drivers/net/wireless/broadcom/b43legacy/radio.c unsigned int j; j 307 drivers/net/wireless/broadcom/b43legacy/radio.c for (j = i; j < end; j++) j 308 drivers/net/wireless/broadcom/b43legacy/radio.c ret[j] = 1; j 1485 drivers/net/wireless/broadcom/b43legacy/radio.c u16 j; j 1636 drivers/net/wireless/broadcom/b43legacy/radio.c for (j = 0; j < 16; j++) { j 6028 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c u32 i, j; j 6079 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c for (j = 0; j < band->n_channels; j++) { j 6080 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (band->channels[j].hw_value == ch.control_ch_num) { j 6081 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c channel = &band->channels[j]; j 6156 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c int i, j; j 6208 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c for (j = 0; j < band->n_channels; j++) { j 6209 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (band->channels[j].hw_value == ch.control_ch_num) j 6212 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (WARN_ON(j == band->n_channels)) j 6215 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_update_bw40_channel_flag(&band->channels[j], &ch); j 235 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c u32 i, j; j 279 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c j = 0; j 286 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c nvram[j] = nvp->nvram[i]; j 288 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c j++; j 290 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c nvram[j] = 0; j 291 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c j++; j 299 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c nvp->nvram_len = j; j 318 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c u32 i, j; j 332 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c j = 0; j 339 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c nvram[j] = nvp->nvram[i]; j 341 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c j++; j 343 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c nvram[j] = 0; j 344 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c j++; j 352 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c nvp->nvram_len = j; j 701 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c u32 i, j; j 731 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c for (j = 0; j < n_fwnames; j++) { j 732 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c fwreq->items[j].path = fwnames[j].path; j 733 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c fwnames[j].path[0] = '\0'; j 736 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c strlcpy(fwnames[j].path, mp_path, j 740 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c strlcat(fwnames[j].path, "/", j 744 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c strlcat(fwnames[j].path, mapping_table[i].fw_base, j 746 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c strlcat(fwnames[j].path, fwnames[j].extension, j 748 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c fwreq->items[j].path = fwnames[j].path; j 365 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c int i, j, err = 0; j 370 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c for (j = 0; j < r->n_match_sets; j++) { j 371 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c ms = &r->match_sets[j]; j 567 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c int i, j; j 575 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c for (j = 0; j < req->n_match_sets; j++) { j 576 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c ms = &req->match_sets[j]; j 207 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c int i, j; j 210 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c for (j = 0; j < NUM_FFPLD_FIFO; j++) { j 211 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c fifo = (ampdu->fifo_tb + j); j 233 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c int j; j 236 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c for (j = 0; j < WL_TX_POWER_CCK_NUM; j++) j 237 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c txpwr->cck[j] = min(txpwr->cck[j], local_constraint_qdbm); j 240 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c for (j = 0; j < WL_TX_POWER_OFDM_NUM; j++) j 241 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c txpwr->ofdm[j] = min(txpwr->ofdm[j], local_constraint_qdbm); j 244 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c for (j = 0; j < BRCMS_NUM_RATES_OFDM; j++) j 245 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c txpwr->ofdm_cdd[j] = j 246 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c min(txpwr->ofdm_cdd[j], local_constraint_qdbm); j 249 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c for (j = 0; j < BRCMS_NUM_RATES_OFDM; j++) j 250 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c txpwr->ofdm_40_siso[j] = j 251 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c min(txpwr->ofdm_40_siso[j], local_constraint_qdbm); j 254 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c for (j = 0; j < BRCMS_NUM_RATES_OFDM; j++) j 255 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c txpwr->ofdm_40_cdd[j] = j 256 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c min(txpwr->ofdm_40_cdd[j], local_constraint_qdbm); j 259 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c for (j = 0; j < BRCMS_NUM_RATES_MCS_1_STREAM; j++) j 260 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c txpwr->mcs_20_siso[j] = j 261 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c min(txpwr->mcs_20_siso[j], local_constraint_qdbm); j 264 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c for (j = 0; j < BRCMS_NUM_RATES_MCS_1_STREAM; j++) j 265 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c txpwr->mcs_20_cdd[j] = j 266 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c min(txpwr->mcs_20_cdd[j], local_constraint_qdbm); j 269 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c for (j = 0; j < BRCMS_NUM_RATES_MCS_1_STREAM; j++) j 270 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c txpwr->mcs_20_stbc[j] = j 271 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c min(txpwr->mcs_20_stbc[j], local_constraint_qdbm); j 274 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c for (j = 0; j < BRCMS_NUM_RATES_MCS_2_STREAM; j++) j 275 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c txpwr->mcs_20_mimo[j] = j 276 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c min(txpwr->mcs_20_mimo[j], local_constraint_qdbm); j 279 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c for (j = 0; j < BRCMS_NUM_RATES_MCS_1_STREAM; j++) j 280 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c txpwr->mcs_40_siso[j] = j 281 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c min(txpwr->mcs_40_siso[j], local_constraint_qdbm); j 284 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c for (j = 0; j < BRCMS_NUM_RATES_MCS_1_STREAM; j++) j 285 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c txpwr->mcs_40_cdd[j] = j 286 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c min(txpwr->mcs_40_cdd[j], local_constraint_qdbm); j 289 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c for (j = 0; j < BRCMS_NUM_RATES_MCS_1_STREAM; j++) j 290 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c txpwr->mcs_40_stbc[j] = j 291 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c min(txpwr->mcs_40_stbc[j], local_constraint_qdbm); j 294 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c for (j = 0; j < BRCMS_NUM_RATES_MCS_2_STREAM; j++) j 295 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c txpwr->mcs_40_mimo[j] = j 296 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c min(txpwr->mcs_40_mimo[j], local_constraint_qdbm); j 413 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c uint j; j 528 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c for (i = 0, j = 0; i < BRCMS_NUM_RATES_OFDM; i++, j++) { j 530 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c txpwr->ofdm_40_cdd[i] = txpwr->mcs_40_cdd[j]; j 534 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c txpwr->ofdm_40_cdd[i] = txpwr->mcs_40_cdd[j]; j 547 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c for (i = 0, j = 0; i < BRCMS_NUM_RATES_OFDM; i++, j++) { j 549 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c txpwr->ofdm_40_siso[i] = txpwr->mcs_40_siso[j]; j 553 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c txpwr->ofdm_40_siso[i] = txpwr->mcs_40_siso[j]; j 1113 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c static bool brcms_b_attach_dmapio(struct brcms_c_info *wlc, uint j, bool wme) j 1198 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c uint j; j 1200 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c for (j = 0; j < NFIFO; j++) { j 1201 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (wlc_hw->di[j]) { j 1202 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c dma_detach(wlc_hw->di[j]); j 1203 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_hw->di[j] = NULL; j 3546 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c uint j = band_order[i]; j 3548 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->band = wlc->bandstate[j]; j 4409 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c uint j; j 4493 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c j = sprom->board_rev; j 4495 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (j == BOARDREV_PROMOTABLE) j 4496 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c j = BOARDREV_PROMOTED; j 4497 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_hw->boardrev = (u16) j; j 4571 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c for (j = 0; j < wlc_hw->_nbands; j++) { j 4577 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_c_setxband(wlc_hw, j); j 4579 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_hw->band->bandunit = j; j 4580 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_hw->band->bandtype = j ? BRCM_BAND_5G : BRCM_BAND_2G; j 4581 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->band->bandunit = j; j 4582 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->band->bandtype = j ? BRCM_BAND_5G : BRCM_BAND_2G; j 4662 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (!brcms_b_attach_dmapio(wlc, j, wme)) { j 7959 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c uint i, j; j 8020 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c for (j = 0; j < wlc->pub->_nbands; j++) { j 8021 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->band = wlc->bandstate[j]; j 320 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c int i, j; j 349 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c for (j = 0; j < STATIC_NUM_BB; j++) j 350 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->stats_11b_txpower[i][j] = -1; j 1268 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c uint j; j 1270 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c for (j = 0; j < ARRAY_SIZE(chan_info_all); j++) { j 1271 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (chan_info_all[j].chan == j 1276 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (j == ARRAY_SIZE(chan_info_all)) j 1854 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c int i, j; j 1855 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c for (i = TXP_FIRST_OFDM_20_CDD, j = 0; j 1856 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c j < BRCMS_NUM_RATES_MCS_1_STREAM; i++, j++) { j 1857 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (txpwr->mcs_20_siso[j]) j 1858 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwr_limit[i] = txpwr->mcs_20_siso[j]; j 1860 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->txpwr_limit[i] = txpwr->ofdm[j]; j 1887 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c int j; j 1907 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c for (j = TXP_FIRST_OFDM; j <= TXP_LAST_OFDM; j++) { j 1913 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c ucode_ofdm_rates[j - TXP_FIRST_OFDM]); j 1915 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->tx_power_offset[j]); j 1917 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c -(pi->tx_power_offset[j] / 2)); j 1835 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c int j; j 1876 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c for (j = 0; j < LCNPHY_NUM_TX_DIG_FILTERS_CCK; j++) { j 1877 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (filt_type == LCNPHY_txdigfiltcoeffs_cck[j][0]) { j 1878 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c filt_index = (s16) j; j 1884 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c for (j = 0; j < LCNPHY_NUM_DIG_FILT_COEFFS; j++) j 1885 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, addr[j], j 1887 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c [filt_index][j + 1]); j 1890 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c for (j = 0; j < LCNPHY_NUM_TX_DIG_FILTERS_OFDM; j++) { j 1891 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (filt_type == LCNPHY_txdigfiltcoeffs_ofdm[j][0]) { j 1892 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c filt_index = (s16) j; j 1898 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c for (j = 0; j < LCNPHY_NUM_DIG_FILT_COEFFS; j++) j 1899 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, addr_ofdm[j], j 1901 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c [filt_index][j + 1]); j 2294 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c uint i, j; j 2298 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c for (i = 0, j = 0; i < ARRAY_SIZE(rate_table); i++, j++) { j 2301 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c j = TXP_FIRST_MCS_20_SISO; j 2303 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c rate_table[i] = (u32) ((s32) (-pi->tx_power_offset[j])); j 2629 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c int j; j 2727 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c for (j = 0; j < iqcal_gainparams_numgains_lcnphy[band_idx]; j++) { j 2728 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (hash == tbl_iqcal_gainparams_lcnphy[band_idx][j][0]) { j 2730 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c tbl_iqcal_gainparams_lcnphy[band_idx][j][1]; j 2732 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c tbl_iqcal_gainparams_lcnphy[band_idx][j][2]; j 2734 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c tbl_iqcal_gainparams_lcnphy[band_idx][j][3]; j 2736 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c &tbl_iqcal_gainparams_lcnphy[band_idx][j][3], j 3250 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c u32 j; j 3260 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c for (j = 1; j < 128; j += 2) j 3261 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c temp_offset[j] = 0x80000; j 3654 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c int phy_c4, phy_c5, k, l, j, phy_c6; j 3795 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c for (j = 0; j < 128; j++) { j 3797 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c phy_c6 = j % phy_c4; j 3799 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c phy_c6 = (2 * j) % phy_c4; j 3803 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c phy_c17 = ptr[j]; j 4349 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c u32 j; j 4366 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c for (j = 0; j < 128; j++) { j 4368 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c gm_gain = gain_table[j].gm; j 4370 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c (gain_table[j].pad << 16) | j 4371 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c (gain_table[j].pga << 8) | gm_gain); j 4373 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c tab.tbl_offset = LCNPHY_TX_PWR_CTRL_GAIN_OFFSET + j; j 4376 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c val = (gain_table[j].dac << 28) | (gain_table[j].bb_mult << 20); j 4377 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c tab.tbl_offset = LCNPHY_TX_PWR_CTRL_IQ_OFFSET + j; j 14712 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c int j, type; j 14716 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (j = 0; j < NPHY_NUM_DIG_FILT_COEFFS; j++) j 14717 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, addr_offset[type] + j, j 14718 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_IPA_REV4_txdigi_filtcoeffs[type][j]); j 14722 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (j = 0; j < NPHY_NUM_DIG_FILT_COEFFS; j++) j 14723 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x186 + j, j 14724 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_IPA_REV4_txdigi_filtcoeffs[3][j]); j 14727 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (j = 0; j < NPHY_NUM_DIG_FILT_COEFFS; j++) j 14728 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x186 + j, j 14729 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_IPA_REV4_txdigi_filtcoeffs[5][j]); j 14733 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (j = 0; j < NPHY_NUM_DIG_FILT_COEFFS; j++) j 14734 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x2c5 + j, j 14735 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_IPA_REV4_txdigi_filtcoeffs[6][j]); j 14742 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c int j; j 14745 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (j = 0; j < NPHY_NUM_DIG_FILT_COEFFS; j++) j 14746 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x195 + j, j 14747 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_IPA_REV4_txdigi_filtcoeffs[4][j]); j 14749 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (j = 0; j < NPHY_NUM_DIG_FILT_COEFFS; j++) j 14750 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, 0x186 + j, j 14751 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_IPA_REV4_txdigi_filtcoeffs[3][j]); j 17044 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c int j, type = 2; j 17047 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c for (j = 0; j < NPHY_NUM_DIG_FILT_COEFFS; j++) j 17048 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c write_phy_reg(pi, addr_offset + j, j 17049 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c NPHY_IPA_REV4_txdigi_filtcoeffs[type][j]); j 2126 drivers/net/wireless/cisco/airo.c int i, j; j 2141 drivers/net/wireless/cisco/airo.c for( j = i + 1; j < MAX_FIDS / 2 && (fids[j] & 0xffff0000); j++ ); j 2143 drivers/net/wireless/cisco/airo.c if ( j >= MAX_FIDS / 2 ) { j 2197 drivers/net/wireless/cisco/airo.c int i, j; j 2219 drivers/net/wireless/cisco/airo.c for( j = i + 1; j < MAX_FIDS && (fids[j] & 0xffff0000); j++ ); j 2221 drivers/net/wireless/cisco/airo.c if ( j >= MAX_FIDS ) { j 4734 drivers/net/wireless/cisco/airo.c int i, j; j 4749 drivers/net/wireless/cisco/airo.c j = 0; j 4752 drivers/net/wireless/cisco/airo.c if (j+strlen(statsLabels[i])+16>4096) { j 4757 drivers/net/wireless/cisco/airo.c j+=sprintf(data->rbuffer+j, "%s: %u\n", statsLabels[i], j 4763 drivers/net/wireless/cisco/airo.c data->readlen = j; j 4842 drivers/net/wireless/cisco/airo.c int j; j 4847 drivers/net/wireless/cisco/airo.c for( j = 0; j < 16 && line[j] != '\n'; j++ ) { j 4848 drivers/net/wireless/cisco/airo.c ai->config.nodeName[j] = line[j]; j 5109 drivers/net/wireless/cisco/airo.c int j = 0; j 5111 drivers/net/wireless/cisco/airo.c while (*p != '\n' && j < 32) j 5112 drivers/net/wireless/cisco/airo.c SSID_rid.ssids[i].ssid[j++] = *p++; j 5113 drivers/net/wireless/cisco/airo.c if (j == 0) j 5115 drivers/net/wireless/cisco/airo.c SSID_rid.ssids[i].len = cpu_to_le16(j); j 5256 drivers/net/wireless/cisco/airo.c int j = 0; j 5275 drivers/net/wireless/cisco/airo.c j = 2; j 5281 drivers/net/wireless/cisco/airo.c for( i = 0; i < 16*3 && data->wbuffer[i+j]; i++ ) { j 5284 drivers/net/wireless/cisco/airo.c key[i/3] = hex_to_bin(data->wbuffer[i+j])<<4; j 5287 drivers/net/wireless/cisco/airo.c key[i/3] |= hex_to_bin(data->wbuffer[i+j]); j 5307 drivers/net/wireless/cisco/airo.c int j=0; j 5333 drivers/net/wireless/cisco/airo.c j += sprintf(ptr+j, "Tx key = %d\n", j 5336 drivers/net/wireless/cisco/airo.c j += sprintf(ptr+j, "Key %d set with length = %d\n", j 5341 drivers/net/wireless/cisco/airo.c } while((lastindex != wkr.kindex) && (j < 180-30)); j 5376 drivers/net/wireless/cisco/airo.c int j; j 5382 drivers/net/wireless/cisco/airo.c for (j = 0; j < len && SSID_rid.ssids[i].ssid[j]; j++) j 5383 drivers/net/wireless/cisco/airo.c *ptr++ = SSID_rid.ssids[i].ssid[j]; j 629 drivers/net/wireless/intel/ipw2x00/ipw2100.c int out, i, j, l; j 636 drivers/net/wireless/intel/ipw2x00/ipw2100.c for (j = 0; j < 8 && l < len; j++, l++) j 638 drivers/net/wireless/intel/ipw2x00/ipw2100.c data[(i * 8 + j)]); j 639 drivers/net/wireless/intel/ipw2x00/ipw2100.c for (; j < 8; j++) j 646 drivers/net/wireless/intel/ipw2x00/ipw2100.c for (j = 0; j < 8 && l < len; j++, l++) { j 647 drivers/net/wireless/intel/ipw2x00/ipw2100.c c = data[(i * 8 + j)]; j 654 drivers/net/wireless/intel/ipw2x00/ipw2100.c for (; j < 8; j++) j 2349 drivers/net/wireless/intel/ipw2x00/ipw2100.c u32 i, j; j 2366 drivers/net/wireless/intel/ipw2x00/ipw2100.c for (j = 0; j < 4; j++) { j 2376 drivers/net/wireless/intel/ipw2x00/ipw2100.c ret = (i + j) - len + 1; j 2409 drivers/net/wireless/intel/ipw2x00/ipw2100.c int j; j 2419 drivers/net/wireless/intel/ipw2x00/ipw2100.c j = 5; j 2426 drivers/net/wireless/intel/ipw2x00/ipw2100.c } while (j--); j 3430 drivers/net/wireless/intel/ipw2x00/ipw2100.c int i, j, err = -EINVAL; j 3462 drivers/net/wireless/intel/ipw2x00/ipw2100.c for (j = 0; j < i; j++) { j 3465 drivers/net/wireless/intel/ipw2x00/ipw2100.c priv->msg_buffers[j].info.c_struct.cmd, j 3466 drivers/net/wireless/intel/ipw2x00/ipw2100.c priv->msg_buffers[j].info.c_struct. j 3514 drivers/net/wireless/intel/ipw2x00/ipw2100.c int i, j; j 3519 drivers/net/wireless/intel/ipw2x00/ipw2100.c for (j = 0; j < 16; j += 4) { j 3520 drivers/net/wireless/intel/ipw2x00/ipw2100.c pci_read_config_dword(pci_dev, i * 16 + j, &val); j 4417 drivers/net/wireless/intel/ipw2x00/ipw2100.c int i, j, err; j 4460 drivers/net/wireless/intel/ipw2x00/ipw2100.c for (j = 0; j < i; j++) { j 4463 drivers/net/wireless/intel/ipw2x00/ipw2100.c priv->tx_buffers[j].info.d_struct.data, j 4464 drivers/net/wireless/intel/ipw2x00/ipw2100.c priv->tx_buffers[j].info.d_struct. j 4558 drivers/net/wireless/intel/ipw2x00/ipw2100.c int i, j, err = -EINVAL; j 4609 drivers/net/wireless/intel/ipw2x00/ipw2100.c for (j = 0; j < i; j++) { j 4610 drivers/net/wireless/intel/ipw2x00/ipw2100.c pci_unmap_single(priv->pci_dev, priv->rx_buffers[j].dma_addr, j 4613 drivers/net/wireless/intel/ipw2x00/ipw2100.c dev_kfree_skb(priv->rx_buffers[j].skb); j 8523 drivers/net/wireless/intel/ipw2x00/ipw2100.c int i, j; j 8603 drivers/net/wireless/intel/ipw2x00/ipw2100.c for (j = 0; j 8604 drivers/net/wireless/intel/ipw2x00/ipw2100.c j < (sizeof(struct symbol_alive_response) >> 1); j++) j 8605 drivers/net/wireless/intel/ipw2x00/ipw2100.c read_nic_word(dev, 0x210004, ((u16 *) & response) + j); j 223 drivers/net/wireless/intel/ipw2x00/ipw2200.c int out, i, j, l; j 230 drivers/net/wireless/intel/ipw2x00/ipw2200.c for (j = 0; j < 8 && l < len; j++, l++) j 232 drivers/net/wireless/intel/ipw2x00/ipw2200.c data[(i * 8 + j)]); j 233 drivers/net/wireless/intel/ipw2x00/ipw2200.c for (; j < 8; j++) j 240 drivers/net/wireless/intel/ipw2x00/ipw2200.c for (j = 0; j < 8 && l < len; j++, l++) { j 241 drivers/net/wireless/intel/ipw2x00/ipw2200.c c = data[(i * 8 + j)]; j 248 drivers/net/wireless/intel/ipw2x00/ipw2200.c for (; j < 8; j++) j 8821 drivers/net/wireless/intel/ipw2x00/ipw2200.c int i = 0, j; j 8862 drivers/net/wireless/intel/ipw2x00/ipw2200.c for (j = 0; j < geo->bg_channels && i < IW_MAX_FREQUENCIES; j++) { j 8864 drivers/net/wireless/intel/ipw2x00/ipw2200.c (geo->bg[j].flags & LIBIPW_CH_PASSIVE_ONLY)) j 8867 drivers/net/wireless/intel/ipw2x00/ipw2200.c range->freq[i].i = geo->bg[j].channel; j 8868 drivers/net/wireless/intel/ipw2x00/ipw2200.c range->freq[i].m = geo->bg[j].freq * 100000; j 8875 drivers/net/wireless/intel/ipw2x00/ipw2200.c for (j = 0; j < geo->a_channels && i < IW_MAX_FREQUENCIES; j++) { j 8877 drivers/net/wireless/intel/ipw2x00/ipw2200.c (geo->a[j].flags & LIBIPW_CH_PASSIVE_ONLY)) j 8880 drivers/net/wireless/intel/ipw2x00/ipw2200.c range->freq[i].i = geo->a[j].channel; j 8881 drivers/net/wireless/intel/ipw2x00/ipw2200.c range->freq[i].m = geo->a[j].freq * 100000; j 10240 drivers/net/wireless/intel/ipw2x00/ipw2200.c int j; j 10242 drivers/net/wireless/intel/ipw2x00/ipw2200.c for (j = i; j < txb->nr_frags; j++) j 10243 drivers/net/wireless/intel/ipw2x00/ipw2200.c remaining_bytes += txb->fragments[j]->len - hdr_len; j 10250 drivers/net/wireless/intel/ipw2x00/ipw2200.c for (j = i; j < txb->nr_frags; j++) { j 10251 drivers/net/wireless/intel/ipw2x00/ipw2200.c int size = txb->fragments[j]->len - hdr_len; j 10254 drivers/net/wireless/intel/ipw2x00/ipw2200.c j, size); j 10256 drivers/net/wireless/intel/ipw2x00/ipw2200.c txb->fragments[j]->data + hdr_len, j 11143 drivers/net/wireless/intel/ipw2x00/ipw2200.c int j; j 11145 drivers/net/wireless/intel/ipw2x00/ipw2200.c for (j = 0; j < ARRAY_SIZE(ipw_geos); j++) { j 11147 drivers/net/wireless/intel/ipw2x00/ipw2200.c ipw_geos[j].name, 3)) j 11151 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (j == ARRAY_SIZE(ipw_geos)) { j 11156 drivers/net/wireless/intel/ipw2x00/ipw2200.c j = 0; j 11159 drivers/net/wireless/intel/ipw2x00/ipw2200.c libipw_set_geo(priv->ieee, &ipw_geos[j]); j 57 drivers/net/wireless/intel/ipw2x00/libipw_module.c int i, j; j 64 drivers/net/wireless/intel/ipw2x00/libipw_module.c for (j = 0; j < i; j++) j 65 drivers/net/wireless/intel/ipw2x00/libipw_module.c kfree(ieee->networks[j]); j 53 drivers/net/wireless/intel/ipw2x00/libipw_wx.c int i, j; j 116 drivers/net/wireless/intel/ipw2x00/libipw_wx.c for (i = 0, j = 0; i < network->rates_len;) { j 117 drivers/net/wireless/intel/ipw2x00/libipw_wx.c if (j < network->rates_ex_len && j 118 drivers/net/wireless/intel/ipw2x00/libipw_wx.c ((network->rates_ex[j] & 0x7F) < j 120 drivers/net/wireless/intel/ipw2x00/libipw_wx.c rate = network->rates_ex[j++] & 0x7F; j 129 drivers/net/wireless/intel/ipw2x00/libipw_wx.c for (; j < network->rates_ex_len; j++) { j 130 drivers/net/wireless/intel/ipw2x00/libipw_wx.c rate = network->rates_ex[j] & 0x7F; j 809 drivers/net/wireless/intel/iwlegacy/3945-rs.c int j; j 823 drivers/net/wireless/intel/iwlegacy/3945-rs.c for (j = 0; j < RATE_COUNT_3945; j++) { j 826 drivers/net/wireless/intel/iwlegacy/3945-rs.c lq_sta->win[j].counter, j 827 drivers/net/wireless/intel/iwlegacy/3945-rs.c lq_sta->win[j].success_counter, j 828 drivers/net/wireless/intel/iwlegacy/3945-rs.c lq_sta->win[j].success_ratio); j 2271 drivers/net/wireless/intel/iwlegacy/4965-rs.c int i, j; j 2285 drivers/net/wireless/intel/iwlegacy/4965-rs.c for (j = 0; j < LQ_SIZE; j++) j 2287 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_rate_scale_clear_win(&lq_sta->lq_info[j]. j 2292 drivers/net/wireless/intel/iwlegacy/4965-rs.c for (j = 0; j < LQ_SIZE; j++) j 2294 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_rate_scale_clear_win(&lq_sta->lq_info[j]. j 2680 drivers/net/wireless/intel/iwlegacy/4965-rs.c int i, j; j 2699 drivers/net/wireless/intel/iwlegacy/4965-rs.c for (j = 0; j < RATE_COUNT; j++) { j 2703 drivers/net/wireless/intel/iwlegacy/4965-rs.c lq_sta->lq_info[i].win[j].counter, j 2704 drivers/net/wireless/intel/iwlegacy/4965-rs.c lq_sta->lq_info[i].win[j].success_counter, j 2705 drivers/net/wireless/intel/iwlegacy/4965-rs.c lq_sta->lq_info[i].win[j].success_ratio); j 396 drivers/net/wireless/intel/iwlegacy/debug.c int i, j, pos = 0; j 425 drivers/net/wireless/intel/iwlegacy/debug.c for (j = 0; j < MAX_TID_COUNT; j++) { j 429 drivers/net/wireless/intel/iwlegacy/debug.c j, station->tid[j].seq_number, j 430 drivers/net/wireless/intel/iwlegacy/debug.c station->tid[j].agg.txq_id, j 431 drivers/net/wireless/intel/iwlegacy/debug.c station->tid[j].agg.frame_count, j 432 drivers/net/wireless/intel/iwlegacy/debug.c station->tid[j].tfds_in_queue, j 433 drivers/net/wireless/intel/iwlegacy/debug.c station->tid[j].agg.start_idx, j 434 drivers/net/wireless/intel/iwlegacy/debug.c station->tid[j].agg.bitmap, j 435 drivers/net/wireless/intel/iwlegacy/debug.c station->tid[j].agg.rate_n_flags); j 437 drivers/net/wireless/intel/iwlegacy/debug.c if (station->tid[j].agg.wait_for_ba) j 194 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c int i, j, pos = 0; j 218 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c for (j = 0; j < IWL_MAX_TID_COUNT; j++) { j 219 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c tid_data = &priv->tid_data[i][j]; j 223 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c j, tid_data->seq_number, j 2777 drivers/net/wireless/intel/iwlwifi/dvm/rs.c int i, j; j 2793 drivers/net/wireless/intel/iwlwifi/dvm/rs.c for (j = 0; j < LQ_SIZE; j++) j 2795 drivers/net/wireless/intel/iwlwifi/dvm/rs.c rs_rate_scale_clear_window(&lq_sta->lq_info[j].win[i]); j 3190 drivers/net/wireless/intel/iwlwifi/dvm/rs.c int i, j; j 3210 drivers/net/wireless/intel/iwlwifi/dvm/rs.c for (j = 0; j < IWL_RATE_COUNT; j++) { j 3213 drivers/net/wireless/intel/iwlwifi/dvm/rs.c lq_sta->lq_info[i].win[j].counter, j 3214 drivers/net/wireless/intel/iwlwifi/dvm/rs.c lq_sta->lq_info[i].win[j].success_counter, j 3215 drivers/net/wireless/intel/iwlwifi/dvm/rs.c lq_sta->lq_info[i].win[j].success_ratio); j 265 drivers/net/wireless/intel/iwlwifi/fw/dbg.c int i, j; j 351 drivers/net/wireless/intel/iwlwifi/fw/dbg.c for (j = 0; j < fifo_len; j++) j 352 drivers/net/wireless/intel/iwlwifi/fw/dbg.c fifo_data[j] = j 770 drivers/net/wireless/intel/iwlwifi/fw/dbg.c int j; j 772 drivers/net/wireless/intel/iwlwifi/fw/dbg.c for (j = 0; j < mem_cfg->num_txfifo_entries; j++) j 773 drivers/net/wireless/intel/iwlwifi/fw/dbg.c ADD_LEN(fifo_len, mem_cfg->lmac[i].txfifo_size[j], j 956 drivers/net/wireless/intel/iwlwifi/fw/dbg.c int j; j 959 drivers/net/wireless/intel/iwlwifi/fw/dbg.c for (j = 0; j < TX_FIFO_MAX_NUM; j++) j 960 drivers/net/wireless/intel/iwlwifi/fw/dbg.c dump_smem_cfg->lmac[i].txfifo_size[j] = j 961 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cpu_to_le32(txf_size[j]); j 379 drivers/net/wireless/intel/iwlwifi/iwl-drv.c int i, j; j 387 drivers/net/wireless/intel/iwlwifi/iwl-drv.c for (i = 0, j = 0; i < IWL_UCODE_MAX_CS && i < l->size; i++) { j 388 drivers/net/wireless/intel/iwlwifi/iwl-drv.c fwcs = &l->cs[j]; j 394 drivers/net/wireless/intel/iwlwifi/iwl-drv.c fw->cs[j++] = *fwcs; j 189 drivers/net/wireless/intel/iwlwifi/iwl-trans.c int i, j; j 196 drivers/net/wireless/intel/iwlwifi/iwl-trans.c for (j = 0; j < arr->size - 1; j++) j 197 drivers/net/wireless/intel/iwlwifi/iwl-trans.c if (arr->arr[j].cmd_id > arr->arr[j + 1].cmd_id) j 1395 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c int i, j, pos = 0; j 1418 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c for (j = 0; j < ARRAY_SIZE(filter->attrs); j++) { j 1421 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c attr = &filter->attrs[j]; j 1426 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c j, attr->offset, j 802 drivers/net/wireless/intel/iwlwifi/mvm/fw.c int i, j, ret, tbl_rev; j 823 drivers/net/wireless/intel/iwlwifi/mvm/fw.c for (j = 0; j < ACPI_GEO_TABLE_SIZE; j++) { j 833 drivers/net/wireless/intel/iwlwifi/mvm/fw.c mvm->geo_profiles[i].values[j] = entry->integer.value; j 848 drivers/net/wireless/intel/iwlwifi/mvm/fw.c int i, j, idx; j 893 drivers/net/wireless/intel/iwlwifi/mvm/fw.c for (j = 0; j < ACPI_SAR_NUM_SUB_BANDS; j++) { j 894 drivers/net/wireless/intel/iwlwifi/mvm/fw.c idx = (i * ACPI_SAR_NUM_SUB_BANDS) + j; j 895 drivers/net/wireless/intel/iwlwifi/mvm/fw.c cmd.v5.v3.per_chain_restriction[i][j] = j 898 drivers/net/wireless/intel/iwlwifi/mvm/fw.c j, prof->table[idx]); j 981 drivers/net/wireless/intel/iwlwifi/mvm/fw.c int ret, i, j; j 1007 drivers/net/wireless/intel/iwlwifi/mvm/fw.c for (j = 0; j < ACPI_WGDS_NUM_BANDS; j++) { j 1010 drivers/net/wireless/intel/iwlwifi/mvm/fw.c value = &mvm->geo_profiles[i].values[j * j 1012 drivers/net/wireless/intel/iwlwifi/mvm/fw.c chain[j].max_tx_power = cpu_to_le16(value[0]); j 1013 drivers/net/wireless/intel/iwlwifi/mvm/fw.c chain[j].chain_a = value[1]; j 1014 drivers/net/wireless/intel/iwlwifi/mvm/fw.c chain[j].chain_b = value[2]; j 1017 drivers/net/wireless/intel/iwlwifi/mvm/fw.c i, j, value[1], value[2], value[0]); j 1036 drivers/net/wireless/intel/iwlwifi/mvm/fw.c int i, j, ret, tbl_rev; j 1076 drivers/net/wireless/intel/iwlwifi/mvm/fw.c for (j = 0; j < ACPI_PPAG_NUM_SUB_BANDS; j++) { j 1081 drivers/net/wireless/intel/iwlwifi/mvm/fw.c (j == 0 && ent->integer.value > ACPI_PPAG_MAX_LB) || j 1082 drivers/net/wireless/intel/iwlwifi/mvm/fw.c (j == 0 && ent->integer.value < ACPI_PPAG_MIN_LB) || j 1083 drivers/net/wireless/intel/iwlwifi/mvm/fw.c (j != 0 && ent->integer.value > ACPI_PPAG_MAX_HB) || j 1084 drivers/net/wireless/intel/iwlwifi/mvm/fw.c (j != 0 && ent->integer.value < ACPI_PPAG_MIN_HB)) { j 1089 drivers/net/wireless/intel/iwlwifi/mvm/fw.c mvm->ppag_table.gain[i][j] = ent->integer.value; j 1100 drivers/net/wireless/intel/iwlwifi/mvm/fw.c int i, j, ret; j 1113 drivers/net/wireless/intel/iwlwifi/mvm/fw.c for (j = 0; j < ACPI_PPAG_NUM_SUB_BANDS; j++) { j 1116 drivers/net/wireless/intel/iwlwifi/mvm/fw.c i, j, mvm->ppag_table.gain[i][j]); j 145 drivers/net/wireless/intel/iwlwifi/mvm/offloading.c int j; j 155 drivers/net/wireless/intel/iwlwifi/mvm/offloading.c for (j = 0; j < c; j++) j 156 drivers/net/wireless/intel/iwlwifi/mvm/offloading.c if (ipv6_addr_cmp(&nsc[j].dest_ipv6_addr, j 159 drivers/net/wireless/intel/iwlwifi/mvm/offloading.c if (j == c) j 162 drivers/net/wireless/intel/iwlwifi/mvm/offloading.c addrs[i].config_num = cpu_to_le32(j); j 163 drivers/net/wireless/intel/iwlwifi/mvm/offloading.c nsc[j].dest_ipv6_addr = solicited_addr; j 164 drivers/net/wireless/intel/iwlwifi/mvm/offloading.c memcpy(nsc[j].target_mac_addr, vif->addr, ETH_ALEN); j 1630 drivers/net/wireless/intel/iwlwifi/mvm/rs.c int i, j, max_rate; j 1660 drivers/net/wireless/intel/iwlwifi/mvm/rs.c for (j = 0; j < MAX_COLUMN_CHECKS; j++) { j 1661 drivers/net/wireless/intel/iwlwifi/mvm/rs.c allow_func = next_col->checks[j]; j 1667 drivers/net/wireless/intel/iwlwifi/mvm/rs.c if (j != MAX_COLUMN_CHECKS) { j 1670 drivers/net/wireless/intel/iwlwifi/mvm/rs.c next_col_id, j); j 2960 drivers/net/wireless/intel/iwlwifi/mvm/rs.c int i, j; j 2980 drivers/net/wireless/intel/iwlwifi/mvm/rs.c for (j = 0; j < LQ_SIZE; j++) j 2981 drivers/net/wireless/intel/iwlwifi/mvm/rs.c rs_rate_scale_clear_tbl_windows(mvm, &lq_sta->lq_info[j]); j 3356 drivers/net/wireless/intel/iwlwifi/mvm/rs.c int i, j; j 3364 drivers/net/wireless/intel/iwlwifi/mvm/rs.c for (j = 0; j < num_retries && index < end; j++, index++) { j 3907 drivers/net/wireless/intel/iwlwifi/mvm/rs.c int i, j; j 3931 drivers/net/wireless/intel/iwlwifi/mvm/rs.c for (j = 0; j < IWL_RATE_COUNT; j++) { j 3934 drivers/net/wireless/intel/iwlwifi/mvm/rs.c tbl->win[j].counter, j 3935 drivers/net/wireless/intel/iwlwifi/mvm/rs.c tbl->win[j].success_counter, j 3936 drivers/net/wireless/intel/iwlwifi/mvm/rs.c tbl->win[j].success_ratio); j 551 drivers/net/wireless/intel/iwlwifi/mvm/scan.c int i, j; j 559 drivers/net/wireless/intel/iwlwifi/mvm/scan.c for (i = 0, j = params->n_match_sets - 1; j 560 drivers/net/wireless/intel/iwlwifi/mvm/scan.c j >= 0 && i < PROBE_OPTION_MAX; j 561 drivers/net/wireless/intel/iwlwifi/mvm/scan.c i++, j--) { j 563 drivers/net/wireless/intel/iwlwifi/mvm/scan.c if (!params->match_sets[j].ssid.ssid_len) j 566 drivers/net/wireless/intel/iwlwifi/mvm/scan.c ssids[i].len = params->match_sets[j].ssid.ssid_len; j 567 drivers/net/wireless/intel/iwlwifi/mvm/scan.c memcpy(ssids[i].ssid, params->match_sets[j].ssid.ssid, j 573 drivers/net/wireless/intel/iwlwifi/mvm/scan.c for (j = params->n_ssids - 1; j 574 drivers/net/wireless/intel/iwlwifi/mvm/scan.c j >= 0 && i < PROBE_OPTION_MAX; j 575 drivers/net/wireless/intel/iwlwifi/mvm/scan.c i++, j--) { j 576 drivers/net/wireless/intel/iwlwifi/mvm/scan.c index = iwl_ssid_exist(params->ssids[j].ssid, j 577 drivers/net/wireless/intel/iwlwifi/mvm/scan.c params->ssids[j].ssid_len, j 581 drivers/net/wireless/intel/iwlwifi/mvm/scan.c ssids[i].len = params->ssids[j].ssid_len; j 582 drivers/net/wireless/intel/iwlwifi/mvm/scan.c memcpy(ssids[i].ssid, params->ssids[j].ssid, j 1106 drivers/net/wireless/intel/iwlwifi/mvm/scan.c int i, j = 0; j 1109 drivers/net/wireless/intel/iwlwifi/mvm/scan.c for (i = 0; i < band->n_channels && j < max_channels; i++, j++) j 1110 drivers/net/wireless/intel/iwlwifi/mvm/scan.c channels[j] = band->channels[i].hw_value; j 1112 drivers/net/wireless/intel/iwlwifi/mvm/scan.c for (i = 0; i < band->n_channels && j < max_channels; i++, j++) j 1113 drivers/net/wireless/intel/iwlwifi/mvm/scan.c channels[j] = band->channels[i].hw_value; j 156 drivers/net/wireless/intel/iwlwifi/mvm/sf.c int i, j, watermark; j 187 drivers/net/wireless/intel/iwlwifi/mvm/sf.c for (j = 0; j < SF_NUM_TIMEOUT_TYPES; j++) { j 188 drivers/net/wireless/intel/iwlwifi/mvm/sf.c sf_cmd->long_delay_timeouts[i][j] = j 2461 drivers/net/wireless/intel/iwlwifi/mvm/sta.c int j; j 2480 drivers/net/wireless/intel/iwlwifi/mvm/sta.c for (j = 0; j < reorder_buf->buf_size; j++) j 2481 drivers/net/wireless/intel/iwlwifi/mvm/sta.c __skb_queue_purge(&entries[j].e.frames); j 2507 drivers/net/wireless/intel/iwlwifi/mvm/sta.c int j; j 2519 drivers/net/wireless/intel/iwlwifi/mvm/sta.c for (j = 0; j < reorder_buf->buf_size; j++) j 2520 drivers/net/wireless/intel/iwlwifi/mvm/sta.c __skb_queue_head_init(&entries[j].e.frames); j 565 drivers/net/wireless/intel/iwlwifi/mvm/tt.c int i, j, idx = 0; j 595 drivers/net/wireless/intel/iwlwifi/mvm/tt.c for (j = 0; j < IWL_MAX_DTS_TRIPS; j++) { j 597 drivers/net/wireless/intel/iwlwifi/mvm/tt.c mvm->tz_device.temp_trips[j]) j 598 drivers/net/wireless/intel/iwlwifi/mvm/tt.c mvm->tz_device.fw_trips_index[i] = j; j 2970 drivers/net/wireless/intel/iwlwifi/pcie/trans.c u32 i, r, j, rb_len = 0; j 2976 drivers/net/wireless/intel/iwlwifi/pcie/trans.c for (i = rxq->read, j = 0; j 2977 drivers/net/wireless/intel/iwlwifi/pcie/trans.c i != r && j < allocated_rb_nums; j 2978 drivers/net/wireless/intel/iwlwifi/pcie/trans.c i = (i + 1) & RX_QUEUE_MASK, j++) { j 188 drivers/net/wireless/intersil/hostap/hostap_ioctl.c int first = 1, j; j 192 drivers/net/wireless/intersil/hostap/hostap_ioctl.c for (j = 0; j < WEP_KEYS; j++) { j 193 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (j != i && local->crypt_info.crypt[j]) { j 3337 drivers/net/wireless/intersil/hostap/hostap_ioctl.c int first = 1, j; j 3338 drivers/net/wireless/intersil/hostap/hostap_ioctl.c for (j = 0; j < WEP_KEYS; j++) { j 3339 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (j != i && local->crypt_info.crypt[j]) { j 151 drivers/net/wireless/intersil/p54/eeprom.c unsigned int i, j; j 171 drivers/net/wireless/intersil/p54/eeprom.c for (i = 0, j = 0; (j < list->band_channel_num[band]) && j 174 drivers/net/wireless/intersil/p54/eeprom.c struct ieee80211_channel *dest = &tmp->channels[j]; j 195 drivers/net/wireless/intersil/p54/eeprom.c priv->survey[*chan_num].channel = &tmp->channels[j]; j 201 drivers/net/wireless/intersil/p54/eeprom.c j++; j 205 drivers/net/wireless/intersil/p54/eeprom.c if (j == 0) { j 213 drivers/net/wireless/intersil/p54/eeprom.c tmp->n_channels = j; j 282 drivers/net/wireless/intersil/p54/eeprom.c int j; j 285 drivers/net/wireless/intersil/p54/eeprom.c for (j = 0; j < ARRAY_SIZE(pda->point); j++) { j 287 drivers/net/wireless/intersil/p54/eeprom.c &pda->point[j]; j 324 drivers/net/wireless/intersil/p54/eeprom.c unsigned int i, j, k, max_channel_num; j 398 drivers/net/wireless/intersil/p54/eeprom.c for (i = 0, j = 0; i < NUM_NL80211_BANDS; i++) { j 400 drivers/net/wireless/intersil/p54/eeprom.c j++; j 402 drivers/net/wireless/intersil/p54/eeprom.c if (j == 0) { j 429 drivers/net/wireless/intersil/p54/eeprom.c unsigned int i, j; j 450 drivers/net/wireless/intersil/p54/eeprom.c for (j = 0; j < curve_data->points_per_channel; j++) { j 481 drivers/net/wireless/intersil/p54/eeprom.c unsigned int i, j; j 502 drivers/net/wireless/intersil/p54/eeprom.c for (j = 0; j < curve_data->points_per_channel; j++) { j 790 drivers/net/wireless/intersil/p54/txrx.c int i, j, ridx; j 894 drivers/net/wireless/intersil/p54/txrx.c for (j = 0; j < calculated_tries[i] && ridx < 8; j++) { j 166 drivers/net/wireless/intersil/prism54/isl_ioctl.c int j; j 190 drivers/net/wireless/intersil/prism54/isl_ioctl.c j = mgt_get_request(priv, DOT11_OID_BSSFIND, 0, (void *) &bss, &r); j 588 drivers/net/wireless/intersil/prism54/oid_mgt.c int j = 0; j 591 drivers/net/wireless/intersil/prism54/oid_mgt.c while (j <= t->range) { j 604 drivers/net/wireless/intersil/prism54/oid_mgt.c j++; j 3449 drivers/net/wireless/mac80211_hwsim.c int j; j 3452 drivers/net/wireless/mac80211_hwsim.c for (j = 0; j < ARRAY_SIZE(hwsim_ciphers); j++) { j 3453 drivers/net/wireless/mac80211_hwsim.c if (ciphers[i] == hwsim_ciphers[j]) { j 1245 drivers/net/wireless/marvell/libertas/cfg.c int j; j 1250 drivers/net/wireless/marvell/libertas/cfg.c for (j = 0; j < wiphy->bands[band]->n_channels; j++) { j 1252 drivers/net/wireless/marvell/libertas/cfg.c if (wiphy->bands[band]->channels[j].flags & j 1256 drivers/net/wireless/marvell/libertas/cfg.c creq->channels[i] = &wiphy->bands[band]->channels[j]; j 854 drivers/net/wireless/marvell/libertas/if_usb.c int j = 0; j 859 drivers/net/wireless/marvell/libertas/if_usb.c j++; j 861 drivers/net/wireless/marvell/libertas/if_usb.c } while (cardp->bootcmdresp == 0 && j < 10); j 839 drivers/net/wireless/marvell/libertas_tf/if_usb.c int j = 0; j 845 drivers/net/wireless/marvell/libertas_tf/if_usb.c j++; j 847 drivers/net/wireless/marvell/libertas_tf/if_usb.c } while (cardp->bootcmdresp == 0 && j < 10); j 162 drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c int i, j, xchg; j 181 drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c for (j = 0; j < xchg; ++j) { j 182 drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c tbl->rx_reorder_ptr[j] = tbl->rx_reorder_ptr[i + j]; j 183 drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c tbl->rx_reorder_ptr[i + j] = NULL; j 925 drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c u8 i, j; j 959 drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c for (j = 0 ; j < 8; j++) { j 960 drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c if (tlv_rxba->bitmap[i] & (1 << j)) { j 962 drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c (tlv_seq_num + i * 8 + j); j 3218 drivers/net/wireless/marvell/mwifiex/cfg80211.c int j, k, valid_byte_cnt = 0; j 3221 drivers/net/wireless/marvell/mwifiex/cfg80211.c for (j = 0; j < DIV_ROUND_UP(pat->pattern_len, 8); j++) { j 3223 drivers/net/wireless/marvell/mwifiex/cfg80211.c if (pat->mask[j] & 1 << k) { j 3225 drivers/net/wireless/marvell/mwifiex/cfg80211.c &pat->pattern[j * 8 + k], 1); j 368 drivers/net/wireless/marvell/mwifiex/init.c s32 i, j; j 380 drivers/net/wireless/marvell/mwifiex/init.c for (j = 0; j < MAX_NUM_TID; ++j) j 381 drivers/net/wireless/marvell/mwifiex/init.c list_del(&priv->wmm.tid_tbl_ptr[j].ra_list); j 428 drivers/net/wireless/marvell/mwifiex/init.c s32 i, j; j 468 drivers/net/wireless/marvell/mwifiex/init.c for (j = 0; j < MAX_NUM_TID; ++j) j 469 drivers/net/wireless/marvell/mwifiex/init.c INIT_LIST_HEAD(&priv->wmm.tid_tbl_ptr[j].ra_list); j 151 drivers/net/wireless/marvell/mwifiex/join.c u32 i, j; j 162 drivers/net/wireless/marvell/mwifiex/join.c for (j = 0; j < rate1_size && tmp[j]; j++) { j 165 drivers/net/wireless/marvell/mwifiex/join.c if ((rate2[i] & 0x7F) == (tmp[j] & 0x7F)) { j 166 drivers/net/wireless/marvell/mwifiex/join.c *rate1++ = tmp[j]; j 1346 drivers/net/wireless/marvell/mwifiex/main.h u8 i, j; j 1358 drivers/net/wireless/marvell/mwifiex/main.h for (j = 0; j < MWIFIEX_MAX_BSS_NUM; j++) j 1359 drivers/net/wireless/marvell/mwifiex/main.h if (!index[j]) j 1360 drivers/net/wireless/marvell/mwifiex/main.h return j; j 3021 drivers/net/wireless/marvell/mwifiex/pcie.c int ret, i, j; j 3046 drivers/net/wireless/marvell/mwifiex/pcie.c for (j = 0; j < i; j++) j 3047 drivers/net/wireless/marvell/mwifiex/pcie.c free_irq(card->msix_entries[j].vector, j 359 drivers/net/wireless/marvell/mwifiex/usb.c int i, j; j 379 drivers/net/wireless/marvell/mwifiex/usb.c for (j = 0; j < MWIFIEX_TX_DATA_URB; j++) { j 380 drivers/net/wireless/marvell/mwifiex/usb.c usb_kill_urb(port->tx_data_list[j].urb); j 381 drivers/net/wireless/marvell/mwifiex/usb.c usb_free_urb(port->tx_data_list[j].urb); j 382 drivers/net/wireless/marvell/mwifiex/usb.c port->tx_data_list[j].urb = NULL; j 535 drivers/net/wireless/marvell/mwifiex/usb.c int i, j; j 578 drivers/net/wireless/marvell/mwifiex/usb.c for (j = 0; j < MWIFIEX_TX_DATA_URB; j++) { j 579 drivers/net/wireless/marvell/mwifiex/usb.c if (port->tx_data_list[j].urb) j 580 drivers/net/wireless/marvell/mwifiex/usb.c usb_kill_urb(port->tx_data_list[j].urb); j 1229 drivers/net/wireless/marvell/mwifiex/usb.c int i, j; j 1248 drivers/net/wireless/marvell/mwifiex/usb.c for (j = 0; j < MWIFIEX_TX_DATA_URB; j++) { j 1249 drivers/net/wireless/marvell/mwifiex/usb.c port->tx_data_list[j].adapter = adapter; j 1250 drivers/net/wireless/marvell/mwifiex/usb.c port->tx_data_list[j].ep = port->tx_data_ep; j 1251 drivers/net/wireless/marvell/mwifiex/usb.c port->tx_data_list[j].urb = j 1253 drivers/net/wireless/marvell/mwifiex/usb.c if (!port->tx_data_list[j].urb) j 258 drivers/net/wireless/marvell/mwifiex/util.c int i, j; j 273 drivers/net/wireless/marvell/mwifiex/util.c for (j = 0; j < d[i].num; j++) { j 317 drivers/net/wireless/marvell/mwifiex/util.c for (j = 0; j < info->rx_tbl[i].win_size; j++) j 319 drivers/net/wireless/marvell/mwifiex/util.c info->rx_tbl[i].buffer[j] ? j 230 drivers/net/wireless/marvell/mwifiex/wmm.c u32 i, j, num_ac; j 265 drivers/net/wireless/marvell/mwifiex/wmm.c for (j = 1; j < num_ac - i; j++) { j 266 drivers/net/wireless/marvell/mwifiex/wmm.c if (tmp[j - 1] > tmp[j]) { j 267 drivers/net/wireless/marvell/mwifiex/wmm.c swap(tmp[j - 1], tmp[j]); j 268 drivers/net/wireless/marvell/mwifiex/wmm.c swap(priv->wmm.queue_priority[j - 1], j 269 drivers/net/wireless/marvell/mwifiex/wmm.c priv->wmm.queue_priority[j]); j 270 drivers/net/wireless/marvell/mwifiex/wmm.c } else if (tmp[j - 1] == tmp[j]) { j 271 drivers/net/wireless/marvell/mwifiex/wmm.c if (priv->wmm.queue_priority[j - 1] j 272 drivers/net/wireless/marvell/mwifiex/wmm.c < priv->wmm.queue_priority[j]) j 273 drivers/net/wireless/marvell/mwifiex/wmm.c swap(priv->wmm.queue_priority[j - 1], j 274 drivers/net/wireless/marvell/mwifiex/wmm.c priv->wmm.queue_priority[j]); j 407 drivers/net/wireless/marvell/mwifiex/wmm.c int i, j; j 410 drivers/net/wireless/marvell/mwifiex/wmm.c for (j = 0; j < adapter->priv_num; ++j) { j 411 drivers/net/wireless/marvell/mwifiex/wmm.c priv = adapter->priv[j]; j 1092 drivers/net/wireless/marvell/mwifiex/wmm.c int i, j; j 1095 drivers/net/wireless/marvell/mwifiex/wmm.c for (j = adapter->priv_num - 1; j >= 0; --j) { j 1097 drivers/net/wireless/marvell/mwifiex/wmm.c list_for_each_entry(adapter->bss_prio_tbl[j].bss_prio_cur, j 1098 drivers/net/wireless/marvell/mwifiex/wmm.c &adapter->bss_prio_tbl[j].bss_prio_head, j 1102 drivers/net/wireless/marvell/mwifiex/wmm.c priv_tmp = adapter->bss_prio_tbl[j].bss_prio_cur->priv; j 2646 drivers/net/wireless/marvell/mwl8k.c int j = mwl8k_tx_queues(priv) - 1 - i; j 2647 drivers/net/wireless/marvell/mwl8k.c cmd->tx_queue_ptrs[i] = cpu_to_le32(priv->txq[j].txd_dma); j 3221 drivers/net/wireless/marvell/mwl8k.c int j; j 3228 drivers/net/wireless/marvell/mwl8k.c for (i = 0, j = 0; i < 13; i++) { j 3230 drivers/net/wireless/marvell/mwl8k.c rates[j++] = mwl8k_rates_24[i].hw_value; j 192 drivers/net/wireless/mediatek/mt76/mt7615/init.c int j; j 194 drivers/net/wireless/mediatek/mt76/mt7615/init.c for (j = 0; j < target_chains; j++) { j 197 drivers/net/wireless/mediatek/mt76/mt7615/init.c index = mt7615_eeprom_get_power_index(dev, chan, j); j 13 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c int i, j; j 17 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c for (j = 0; j < 8; j++) j 18 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c seq_printf(file, "%8d | ", i * 8 + j + 1); j 21 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c for (j = 0; j < 8; j++) j 22 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c seq_printf(file, "%8d | ", dev->aggr_stats[i * 8 + j]); j 25 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c for (j = 0; j < 8; j++) j 436 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c int i, j, end, pri; j 484 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c j = mt76_decr(i, MT_DFS_EVENT_BUFLEN); j 485 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c while (j != end) { j 486 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c cur_event = &event_rb->data[j]; j 495 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c j = mt76_decr(j, MT_DFS_EVENT_BUFLEN); j 295 drivers/net/wireless/mediatek/mt76/usb.c int j; j 297 drivers/net/wireless/mediatek/mt76/usb.c for (j = nsgs; j < urb->num_sgs; j++) j 298 drivers/net/wireless/mediatek/mt76/usb.c skb_free_frag(sg_virt(&urb->sg[j])); j 827 drivers/net/wireless/mediatek/mt76/usb.c int i, j, err; j 852 drivers/net/wireless/mediatek/mt76/usb.c for (j = 0; j < q->ndesc; j++) { j 853 drivers/net/wireless/mediatek/mt76/usb.c err = mt76u_urb_alloc(dev, &q->entry[j], j 865 drivers/net/wireless/mediatek/mt76/usb.c int i, j; j 869 drivers/net/wireless/mediatek/mt76/usb.c for (j = 0; j < q->ndesc; j++) j 870 drivers/net/wireless/mediatek/mt76/usb.c usb_free_urb(q->entry[j].urb); j 878 drivers/net/wireless/mediatek/mt76/usb.c int i, j, ret; j 887 drivers/net/wireless/mediatek/mt76/usb.c for (j = 0; j < q->ndesc; j++) j 888 drivers/net/wireless/mediatek/mt76/usb.c usb_kill_urb(q->entry[j].urb); j 70 drivers/net/wireless/mediatek/mt76/util.c int i, j, min_rssi = 0; j 82 drivers/net/wireless/mediatek/mt76/util.c for (j = i * BITS_PER_LONG; mask; j++, mask >>= 1) { j 86 drivers/net/wireless/mediatek/mt76/util.c wcid = rcu_dereference(dev->wcid[j]); j 36 drivers/net/wireless/mediatek/mt7601u/debugfs.c int i, j; j 64 drivers/net/wireless/mediatek/mt7601u/debugfs.c for (j = 0; j < 8; j++) j 66 drivers/net/wireless/mediatek/mt7601u/debugfs.c dev->stats.aggr_n[i * 8 + j]); j 318 drivers/net/wireless/mediatek/mt7601u/mac.c int i, j, k; j 330 drivers/net/wireless/mediatek/mt7601u/mac.c for (j = 0; j < spans[i].span; j++) { j 331 drivers/net/wireless/mediatek/mt7601u/mac.c u32 val = mt7601u_rr(dev, spans[i].addr_base + j * 4); j 333 drivers/net/wireless/mediatek/mt7601u/mac.c spans[i].stat_base[j * 2] += val & 0xffff; j 334 drivers/net/wireless/mediatek/mt7601u/mac.c spans[i].stat_base[j * 2 + 1] += val >> 16; j 641 drivers/net/wireless/mediatek/mt7601u/phy.c int i, j; j 680 drivers/net/wireless/mediatek/mt7601u/phy.c for (j = 20; j; j--) j 683 drivers/net/wireless/mediatek/mt7601u/phy.c if (!j) j 1054 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c size_t i, j; j 1065 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c for (j = 0; j < if_comb[i].n_limits; j++) j 1066 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c interface_modes |= if_comb[i].limits[j].types; j 1639 drivers/net/wireless/ray_cs.c int i, j, k; j 1649 drivers/net/wireless/ray_cs.c j = len - 1; j 1650 drivers/net/wireless/ray_cs.c if (j > 12) j 1651 drivers/net/wireless/ray_cs.c j = 12; j 1654 drivers/net/wireless/ray_cs.c while (j > 0) { j 1655 drivers/net/wireless/ray_cs.c if ((k = hex_to_bin(in_str[j--])) != -1) j 1660 drivers/net/wireless/ray_cs.c if (j == 0) j 1662 drivers/net/wireless/ray_cs.c if ((k = hex_to_bin(in_str[j--])) != -1) j 2808 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c u32 i, j, diff, simubitmap, bound = 0; j 2840 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c for (j = i * 4; j < (i + 1) * 4 - 2; j++) j 2841 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c result[3][j] = result[candidate[i]][j]; j 2862 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c u32 i, j, diff, simubitmap, bound = 0; j 2909 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c for (j = i * 4; j < (i + 1) * 4 - 2; j++) j 2910 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c result[3][j] = result[candidate[i]][j]; j 4250 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c int j, i, tmp_debug; j 4263 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c for (j = 5; j >= 0; j--) { j 4264 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c switch (j) { j 4273 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c i = (j - 2) << 2; j 4280 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c cmd = CAM_CMD_POLLING | CAM_CMD_WRITE | (addr + j); j 5914 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c int i, j = 0, endpoints; j 5969 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (j >= RTL8XXXU_OUT_ENDPOINTS) { j 5975 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c priv->out_ep[j++] = num; j 5979 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c priv->nr_out_eps = j; j 431 drivers/net/wireless/realtek/rtlwifi/core.c u16 j, len; j 485 drivers/net/wireless/realtek/rtlwifi/core.c for (j = 0; j < mask_len - 1; j++) { j 486 drivers/net/wireless/realtek/rtlwifi/core.c mask[j] = mask_os[j] >> 6; j 487 drivers/net/wireless/realtek/rtlwifi/core.c mask[j] |= (mask_os[j + 1] & 0x3F) << 2; j 489 drivers/net/wireless/realtek/rtlwifi/core.c mask[j] = (mask_os[j] >> 6) & 0x3F; j 495 drivers/net/wireless/realtek/rtlwifi/core.c for (j = 0; j < (MAX_WOL_BIT_MASK_SIZE + 1) / 4; j++) { j 496 drivers/net/wireless/realtek/rtlwifi/core.c rtl_pattern.mask[j] = mask[j * 4]; j 497 drivers/net/wireless/realtek/rtlwifi/core.c rtl_pattern.mask[j] |= (mask[j * 4 + 1] << 8); j 498 drivers/net/wireless/realtek/rtlwifi/core.c rtl_pattern.mask[j] |= (mask[j * 4 + 2] << 16); j 499 drivers/net/wireless/realtek/rtlwifi/core.c rtl_pattern.mask[j] |= (mask[j * 4 + 3] << 24); j 507 drivers/net/wireless/realtek/rtlwifi/core.c for (j = 12; j < patterns[i].pattern_len; j++) { j 508 drivers/net/wireless/realtek/rtlwifi/core.c if ((mask_os[j / 8] >> (j % 8)) & 0x01) { j 509 drivers/net/wireless/realtek/rtlwifi/core.c content[len] = pattern_os[j]; j 219 drivers/net/wireless/realtek/rtlwifi/debug.c int i = 100, j = 0; j 227 drivers/net/wireless/realtek/rtlwifi/debug.c for (j = start; j < end; j++) { j 228 drivers/net/wireless/realtek/rtlwifi/debug.c seq_printf(m, "\nD: %2x > ", j); j 231 drivers/net/wireless/realtek/rtlwifi/debug.c target_cmd = entry_i + CAM_CONTENT_COUNT * j; j 204 drivers/net/wireless/realtek/rtlwifi/efuse.c u16 j; j 236 drivers/net/wireless/realtek/rtlwifi/efuse.c for (j = 0; j < EFUSE_MAX_WORD_UNIT; j++) j 237 drivers/net/wireless/realtek/rtlwifi/efuse.c efuse_word[j][i] = 0xFFFF; j 319 drivers/net/wireless/realtek/rtlwifi/efuse.c for (j = 0; j < EFUSE_MAX_WORD_UNIT; j++) { j 320 drivers/net/wireless/realtek/rtlwifi/efuse.c efuse_tbl[(i * 8) + (j * 2)] = j 321 drivers/net/wireless/realtek/rtlwifi/efuse.c (efuse_word[j][i] & 0xff); j 322 drivers/net/wireless/realtek/rtlwifi/efuse.c efuse_tbl[(i * 8) + ((j * 2) + 1)] = j 323 drivers/net/wireless/realtek/rtlwifi/efuse.c ((efuse_word[j][i] >> 8) & 0xff); j 1563 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c u32 value32, i, j = 0; j 1592 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c j++; j 1593 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if (j != pfat_table->train_idx) j 1613 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if (j == pfat_table->train_idx) j 1635 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c u32 i, j, diff, simularity_bitmap, bound; j 1671 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c for (j = i * 4; j < (i + 1) * 4 - 2; j++) j 1672 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c result[3][j] = j 1673 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c result[final_candidate[i]][j]; j 1150 drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c u32 i, j, diff, simularity_bitmap, bound; j 1186 drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c for (j = i * 4; j < (i + 1) * 4 - 2; j++) j 1187 drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c result[3][j] = j 1188 drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c result[final_candidate[i]][j]; j 2076 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c u32 i, j, diff, sim_bitmap, bound; j 2105 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c for (j = i * 4; j < (i + 1) * 4 - 2; j++) j 2106 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c result[3][j] = j 2107 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c result[final_candidate[i]][j]; j 2449 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c u8 i, j; j 2456 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c for (j = 0; j < (CV_CURVE_CNT * 2); j++) { j 2458 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c curvecount_val[j]); j 2461 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c curveindex[i] = j; j 2417 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c u32 i, j, diff, simularity_bitmap, bound; j 2462 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c for (j = i * 4; j < (i + 1) * 4 - 2; j++) j 2463 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c result[3][j] = j 2464 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c result[final_candidate[i]][j]; j 1086 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/phy.c u32 i, j, diff, simularity_bitmap, bound; j 1118 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/phy.c for (j = i * 4; j < (i + 1) * 4 - 2; j++) j 1119 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/phy.c result[3][j] = j 1120 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/phy.c result[final_candidate[i]][j]; j 1929 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c u32 i, j, diff, simularity_bitmap, bound = 0; j 1973 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c for (j = i * 4; j < (i + 1) * 4 - 2; j++) j 1974 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c result[3][j] = j 1975 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c result[final_candidate[i]][j]; j 3387 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c u8 i, j, tmp_rate; j 3390 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c for (i = j = 0; i < 4; i += 2, j += 10) { j 3395 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c rate_bitmap = rate_bitmap | (0x03ff << j); j 3398 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c rate_bitmap = rate_bitmap | (0x01ff << j); j 3401 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c rate_bitmap = rate_bitmap | (0x00ff << j); j 1444 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c u8 i, j, k, l, m; j 1450 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c for (j = 0; j < MAX_2_4G_BANDWIDTH_NUM; ++j) j 1455 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c [i][j][k][m][l] j 1459 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c for (j = 0; j < MAX_5G_BANDWIDTH_NUM; ++j) j 1464 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c [i][j][k][m][l] j 316 drivers/net/wireless/realtek/rtw88/pci.c int i = 0, j = 0, tx_alloced = 0, rx_alloced = 0; j 333 drivers/net/wireless/realtek/rtw88/pci.c for (j = 0; j < RTK_MAX_RX_QUEUE_NUM; j++) { j 334 drivers/net/wireless/realtek/rtw88/pci.c rx_ring = &rtwpci->rx_rings[j]; j 350 drivers/net/wireless/realtek/rtw88/pci.c rx_alloced = j; j 351 drivers/net/wireless/realtek/rtw88/pci.c for (j = 0; j < rx_alloced; j++) { j 352 drivers/net/wireless/realtek/rtw88/pci.c rx_ring = &rtwpci->rx_rings[j]; j 117 drivers/net/wireless/realtek/rtw88/phy.c u8 i, j; j 120 drivers/net/wireless/realtek/rtw88/phy.c for (j = 0; j < RTW_RF_PATH_MAX; j++) j 121 drivers/net/wireless/realtek/rtw88/phy.c dm_info->cck_pd_lv[i][j] = CCK_PD_LV0; j 565 drivers/net/wireless/realtek/rtw88/phy.c u8 i, j; j 575 drivers/net/wireless/realtek/rtw88/phy.c j = (power_db - 1) - (i << 3); j 577 drivers/net/wireless/realtek/rtw88/phy.c linear = db_invert_table[i][j]; j 586 drivers/net/wireless/realtek/rtw88/phy.c u8 j; j 599 drivers/net/wireless/realtek/rtw88/phy.c for (j = 0; j < 8; j++) { j 600 drivers/net/wireless/realtek/rtw88/phy.c if (i <= 2 && (linear << FRAC_BITS) <= db_invert_table[i][j]) j 602 drivers/net/wireless/realtek/rtw88/phy.c else if (i > 2 && linear <= db_invert_table[i][j]) j 606 drivers/net/wireless/realtek/rtw88/phy.c if (j == 0 && i == 0) j 609 drivers/net/wireless/realtek/rtw88/phy.c if (j == 0) { j 614 drivers/net/wireless/realtek/rtw88/phy.c j = 7; j 620 drivers/net/wireless/realtek/rtw88/phy.c j = 7; j 624 drivers/net/wireless/realtek/rtw88/phy.c if (db_invert_table[i][j] - linear > j 625 drivers/net/wireless/realtek/rtw88/phy.c linear - db_invert_table[i][j - 1]) { j 626 drivers/net/wireless/realtek/rtw88/phy.c j = j - 1; j 630 drivers/net/wireless/realtek/rtw88/phy.c dB = (i << 3) + j + 1; j 873 drivers/net/wireless/realtek/rtw88/rtw8822b.c int j; j 875 drivers/net/wireless/realtek/rtw88/rtw8822b.c for (j = 0; j < rtw_rate_size[rs]; j++) { j 876 drivers/net/wireless/realtek/rtw88/rtw8822b.c rate = rtw_rate_section[rs][j]; j 173 drivers/net/wireless/realtek/rtw88/rtw8822c.c u32 i, j; j 176 drivers/net/wireless/realtek/rtw88/rtw8822c.c for (j = 0; j < (DACK_SN_8822C - 1 - i) ; j++) { j 177 drivers/net/wireless/realtek/rtw88/rtw8822c.c __rtw8822c_dac_iq_sort(rtwdev, &iv[j], &iv[j + 1]); j 178 drivers/net/wireless/realtek/rtw88/rtw8822c.c __rtw8822c_dac_iq_sort(rtwdev, &qv[j], &qv[j + 1]); j 1780 drivers/net/wireless/realtek/rtw88/rtw8822c.c u8 rs, rate, j; j 1791 drivers/net/wireless/realtek/rtw88/rtw8822c.c for (j = 0; j < rtw_rate_size[rs]; j++) { j 1792 drivers/net/wireless/realtek/rtw88/rtw8822c.c rate = rtw_rate_section[rs][j]; j 33 drivers/net/wireless/realtek/rtw88/sec.c int i, j; j 64 drivers/net/wireless/realtek/rtw88/sec.c j = (i - 2) << 2; j 65 drivers/net/wireless/realtek/rtw88/sec.c content = (key->key[j]) | j 66 drivers/net/wireless/realtek/rtw88/sec.c (key->key[j + 1] << 8) | j 67 drivers/net/wireless/realtek/rtw88/sec.c (key->key[j + 2] << 16) | j 68 drivers/net/wireless/realtek/rtw88/sec.c (key->key[j + 3] << 24); j 3196 drivers/net/wireless/rndis_wlan.c int len, ret, j; j 3239 drivers/net/wireless/rndis_wlan.c j = msecs_to_jiffies(priv->param_workaround_interval); j 3240 drivers/net/wireless/rndis_wlan.c if (j > DEVICE_POLLER_JIFFIES) j 3241 drivers/net/wireless/rndis_wlan.c j = DEVICE_POLLER_JIFFIES; j 3242 drivers/net/wireless/rndis_wlan.c else if (j <= 0) j 3243 drivers/net/wireless/rndis_wlan.c j = 1; j 3244 drivers/net/wireless/rndis_wlan.c update_jiffies = j; j 3269 drivers/net/wireless/rndis_wlan.c j = round_jiffies_relative(update_jiffies); j 3270 drivers/net/wireless/rndis_wlan.c if (abs(j - update_jiffies) <= 10) j 3271 drivers/net/wireless/rndis_wlan.c update_jiffies = j; j 69 drivers/net/wireless/st/cw1200/txrx.c int i, j; j 90 drivers/net/wireless/st/cw1200/txrx.c for (i = 0, j = 1; j < count; ++j) { j 91 drivers/net/wireless/st/cw1200/txrx.c if (rates[j].idx == rates[i].idx) { j 92 drivers/net/wireless/st/cw1200/txrx.c rates[i].count += rates[j].count; j 93 drivers/net/wireless/st/cw1200/txrx.c } else if (rates[j].idx > rates[i].idx) { j 97 drivers/net/wireless/st/cw1200/txrx.c if (i != j) j 98 drivers/net/wireless/st/cw1200/txrx.c rates[i] = rates[j]; j 100 drivers/net/wireless/st/cw1200/txrx.c total += rates[j].count; j 19 drivers/net/wireless/ti/wl12xx/scan.c int i, j; j 22 drivers/net/wireless/ti/wl12xx/scan.c for (i = 0, j = 0; j 23 drivers/net/wireless/ti/wl12xx/scan.c i < req->n_channels && j < WL1271_SCAN_MAX_CHANNELS; j 51 drivers/net/wireless/ti/wl12xx/scan.c channels[j].min_duration = j 53 drivers/net/wireless/ti/wl12xx/scan.c channels[j].max_duration = j 56 drivers/net/wireless/ti/wl12xx/scan.c channels[j].min_duration = j 58 drivers/net/wireless/ti/wl12xx/scan.c channels[j].max_duration = j 61 drivers/net/wireless/ti/wl12xx/scan.c channels[j].early_termination = 0; j 62 drivers/net/wireless/ti/wl12xx/scan.c channels[j].tx_power_att = req->channels[i]->max_power; j 63 drivers/net/wireless/ti/wl12xx/scan.c channels[j].channel = req->channels[i]->hw_value; j 65 drivers/net/wireless/ti/wl12xx/scan.c memset(&channels[j].bssid_lsb, 0xff, 4); j 66 drivers/net/wireless/ti/wl12xx/scan.c memset(&channels[j].bssid_msb, 0xff, 2); j 71 drivers/net/wireless/ti/wl12xx/scan.c j++; j 75 drivers/net/wireless/ti/wl12xx/scan.c return j; j 1492 drivers/net/wireless/ti/wlcore/main.c int i, j, ret = 0; j 1511 drivers/net/wireless/ti/wlcore/main.c for (j = i; j < p->pattern_len; j++) { j 1512 drivers/net/wireless/ti/wlcore/main.c if (!test_bit(j, (unsigned long *)p->mask)) j 1516 drivers/net/wireless/ti/wlcore/main.c j >= WL1271_RX_FILTER_ETH_HEADER_SIZE) j 1528 drivers/net/wireless/ti/wlcore/main.c len = j - i; j 1537 drivers/net/wireless/ti/wlcore/main.c i = j; j 6356 drivers/net/wireless/ti/wlcore/main.c int i, j, ret; j 6385 drivers/net/wireless/ti/wlcore/main.c for (j = 0; j < WLCORE_MAX_LINKS; j++) j 6386 drivers/net/wireless/ti/wlcore/main.c skb_queue_head_init(&wl->links[j].tx_queue[i]); j 136 drivers/net/wireless/ti/wlcore/scan.c int i, j; j 177 drivers/net/wireless/ti/wlcore/scan.c for (i = 0, j = start; j 178 drivers/net/wireless/ti/wlcore/scan.c i < n_channels && j < max_channels; j 192 drivers/net/wireless/ti/wlcore/scan.c channels[j].flags |= SCAN_CHANNEL_FLAGS_DFS; j 194 drivers/net/wireless/ti/wlcore/scan.c channels[j].passive_duration = j 197 drivers/net/wireless/ti/wlcore/scan.c channels[j].passive_duration = j 201 drivers/net/wireless/ti/wlcore/scan.c channels[j].min_duration = j 203 drivers/net/wireless/ti/wlcore/scan.c channels[j].max_duration = j 206 drivers/net/wireless/ti/wlcore/scan.c channels[j].tx_power_att = req_channels[i]->max_power; j 207 drivers/net/wireless/ti/wlcore/scan.c channels[j].channel = req_channels[i]->hw_value; j 211 drivers/net/wireless/ti/wlcore/scan.c (channels[j].channel >= 12) && j 212 drivers/net/wireless/ti/wlcore/scan.c (channels[j].channel <= 14) && j 216 drivers/net/wireless/ti/wlcore/scan.c channels[j].flags = SCAN_CHANNEL_FLAGS_DFS; j 238 drivers/net/wireless/ti/wlcore/scan.c j++; j 242 drivers/net/wireless/ti/wlcore/scan.c return j - start; j 378 drivers/net/wireless/ti/wlcore/scan.c int ret = 0, type, i, j, n_match_ssids = 0; j 439 drivers/net/wireless/ti/wlcore/scan.c for (j = 0; j < cmd->n_ssids; j++) j 441 drivers/net/wireless/ti/wlcore/scan.c cmd->ssids[j].len) && j 443 drivers/net/wireless/ti/wlcore/scan.c cmd->ssids[j].ssid, j 445 drivers/net/wireless/ti/wlcore/scan.c cmd->ssids[j].type = j 450 drivers/net/wireless/ti/wlcore/scan.c if (j == cmd->n_ssids) { j 1896 drivers/net/wireless/wl3501_cs.c int i = 0, j, ret; j 1904 drivers/net/wireless/wl3501_cs.c for (j = 0x280; j < 0x400; j += 0x20) { j 1907 drivers/net/wireless/wl3501_cs.c link->resource[0]->start = j; j 1112 drivers/net/wireless/zydas/zd1201.c int err, i, j, enabled_save; j 1168 drivers/net/wireless/zydas/zd1201.c for (j=0; j<10; j++) if (zd->rxdata[i+50+j]) { j 1169 drivers/net/wireless/zydas/zd1201.c iwe.u.bitrate.value = (zd->rxdata[i+50+j]&0x7f)*500000; j 110 drivers/net/wireless/zydas/zd1211rw/zd_chip.c int j = 2*i; j 112 drivers/net/wireless/zydas/zd1211rw/zd_chip.c a16[j] = inc_addr(addr[i]); j 113 drivers/net/wireless/zydas/zd1211rw/zd_chip.c a16[j+1] = addr[i]; j 124 drivers/net/wireless/zydas/zd1211rw/zd_chip.c int j = 2*i; j 125 drivers/net/wireless/zydas/zd1211rw/zd_chip.c values[i] = (v16[j] << 16) | v16[j+1]; j 135 drivers/net/wireless/zydas/zd1211rw/zd_chip.c int i, j, r; j 152 drivers/net/wireless/zydas/zd1211rw/zd_chip.c j = 2*i; j 154 drivers/net/wireless/zydas/zd1211rw/zd_chip.c ioreqs16[j].value = ioreqs[i].value >> 16; j 155 drivers/net/wireless/zydas/zd1211rw/zd_chip.c ioreqs16[j].addr = inc_addr(ioreqs[i].addr); j 156 drivers/net/wireless/zydas/zd1211rw/zd_chip.c ioreqs16[j+1].value = ioreqs[i].value; j 157 drivers/net/wireless/zydas/zd1211rw/zd_chip.c ioreqs16[j+1].addr = ioreqs[i].addr; j 188 drivers/net/wireless/zydas/zd1211rw/zd_chip.c unsigned int i, j, t, max; j 193 drivers/net/wireless/zydas/zd1211rw/zd_chip.c for (i = 0; i < count; i += j + t) { j 198 drivers/net/wireless/zydas/zd1211rw/zd_chip.c for (j = 0; j < max; j++) { j 199 drivers/net/wireless/zydas/zd1211rw/zd_chip.c if (!ioreqs[i+j].addr) { j 205 drivers/net/wireless/zydas/zd1211rw/zd_chip.c r = zd_usb_iowrite16v_async(&chip->usb, &ioreqs[i], j); j 226 drivers/net/wireless/zydas/zd1211rw/zd_chip.c unsigned int i, j, t, max; j 230 drivers/net/wireless/zydas/zd1211rw/zd_chip.c for (i = 0; i < count; i += j + t) { j 235 drivers/net/wireless/zydas/zd1211rw/zd_chip.c for (j = 0; j < max; j++) { j 236 drivers/net/wireless/zydas/zd1211rw/zd_chip.c if (!ioreqs[i+j].addr) { j 242 drivers/net/wireless/zydas/zd1211rw/zd_chip.c r = _zd_iowrite32v_async_locked(chip, &ioreqs[i], j); j 706 drivers/net/wireless/zydas/zd1211rw/zd_mac.c u32 tmp, j = 0; j 769 drivers/net/wireless/zydas/zd1211rw/zd_mac.c for (j = 0 ; j < beacon->len; j++) { j 771 drivers/net/wireless/zydas/zd1211rw/zd_mac.c ioreqs[req_pos].value = *((u8 *)(beacon->data + j)); j 775 drivers/net/wireless/zydas/zd1211rw/zd_mac.c for (j = 0; j < 4; j++) { j 415 drivers/net/xen-netback/hash.c unsigned int j, n; j 423 drivers/net/xen-netback/hash.c for (j = 0; j < n; j++, i++) j 435 drivers/net/xen-netback/hash.c unsigned int j, n; j 443 drivers/net/xen-netback/hash.c for (j = 0; j < n; j++, i++) j 473 drivers/net/xen-netback/netback.c int j, newerr; j 525 drivers/net/xen-netback/netback.c for (j = 0; j < i; j++) { j 526 drivers/net/xen-netback/netback.c pending_idx = frag_get_pending_idx(&shinfo->frags[j]); j 536 drivers/net/xen-netback/netback.c for (j = 0; j < first_shinfo->nr_frags; j++) { j 537 drivers/net/xen-netback/netback.c pending_idx = frag_get_pending_idx(&first_shinfo->frags[j]); j 1057 drivers/net/xen-netback/netback.c int j; j 1059 drivers/net/xen-netback/netback.c for (j = 0; j < i; j++) j 1060 drivers/net/xen-netback/netback.c put_page(skb_frag_page(&frags[j])); j 1950 drivers/net/xen-netfront.c unsigned int j = 0; j 1986 drivers/net/xen-netfront.c for (j = 0; j < num_queues; ++j) { j 1987 drivers/net/xen-netfront.c queue = &np->queues[j]; j 154 drivers/nfc/st-nci/se.c int i, j, r; j 219 drivers/nfc/st-nci/se.c for (j = 3; (j < ARRAY_SIZE(st_nci_gates)) && j 220 drivers/nfc/st-nci/se.c (st_nci_gates[j].gate != dm_pipe_info->dst_gate_id); j++) j 223 drivers/nfc/st-nci/se.c if (j < ARRAY_SIZE(st_nci_gates) && j 224 drivers/nfc/st-nci/se.c st_nci_gates[j].gate == dm_pipe_info->dst_gate_id && j 226 drivers/nfc/st-nci/se.c ndev->hci_dev->init_data.gates[j].pipe = pipe_info[2]; j 228 drivers/nfc/st-nci/se.c ndev->hci_dev->gate2pipe[st_nci_gates[j].gate] = j 231 drivers/nfc/st-nci/se.c st_nci_gates[j].gate; j 107 drivers/nfc/st21nfca/core.c int i, j, r; j 175 drivers/nfc/st21nfca/core.c for (j = 3; (j < ARRAY_SIZE(st21nfca_gates)) && j 176 drivers/nfc/st21nfca/core.c (st21nfca_gates[j].gate != info->dst_gate_id) ; j++) j 179 drivers/nfc/st21nfca/core.c if (j < ARRAY_SIZE(st21nfca_gates) && j 180 drivers/nfc/st21nfca/core.c st21nfca_gates[j].gate == info->dst_gate_id && j 182 drivers/nfc/st21nfca/core.c hdev->init_data.gates[j].pipe = pipe_info[2]; j 184 drivers/nfc/st21nfca/core.c hdev->gate2pipe[st21nfca_gates[j].gate] = j 187 drivers/nfc/st21nfca/core.c st21nfca_gates[j].gate; j 186 drivers/nfc/st21nfca/i2c.c int r = -1, i, j; j 215 drivers/nfc/st21nfca/i2c.c for (i = 1, j = 1; i < skb->len - 1; i++, j++) { j 218 drivers/nfc/st21nfca/i2c.c tmp[j] = ST21NFCA_ESCAPE_BYTE_STUFFING; j 219 drivers/nfc/st21nfca/i2c.c j++; j 220 drivers/nfc/st21nfca/i2c.c tmp[j] = skb->data[i] ^ ST21NFCA_BYTE_STUFFING_MASK; j 222 drivers/nfc/st21nfca/i2c.c tmp[j] = skb->data[i]; j 225 drivers/nfc/st21nfca/i2c.c tmp[j] = skb->data[i]; j 226 drivers/nfc/st21nfca/i2c.c j++; j 234 drivers/nfc/st21nfca/i2c.c r = i2c_master_send(client, tmp, j); j 241 drivers/nfc/st21nfca/i2c.c if (r != j) j 295 drivers/nfc/st21nfca/i2c.c int i, j, r, size; j 304 drivers/nfc/st21nfca/i2c.c for (i = 1, j = 0; i < skb->len; i++) { j 305 drivers/nfc/st21nfca/i2c.c if (skb->data[i + j] == j 307 drivers/nfc/st21nfca/i2c.c skb->data[i] = skb->data[i + j + 1] j 310 drivers/nfc/st21nfca/i2c.c j++; j 312 drivers/nfc/st21nfca/i2c.c skb->data[i] = skb->data[i + j]; j 315 drivers/nfc/st21nfca/i2c.c skb_trim(skb, i - j); j 627 drivers/nvdimm/btt.c u32 i, j, next_idx = 0; j 636 drivers/nvdimm/btt.c for (j = 0; j < 4; j++) { j 638 drivers/nvdimm/btt.c if (ent_is_padding(&log.ent[j])) { j 644 drivers/nvdimm/btt.c (j == log_index[0])) j 647 drivers/nvdimm/btt.c log_index[next_idx] = j; j 664 drivers/nvdimm/btt.c if (j == log_index[0]) { j 666 drivers/nvdimm/btt.c if (ent_is_padding(&log.ent[j])) j 668 drivers/nvdimm/btt.c } else if (j == log_index[1]) { j 678 drivers/nvdimm/btt.c if (!ent_is_padding(&log.ent[j])) j 881 drivers/nvdimm/namespace_devs.c int rc, j; j 887 drivers/nvdimm/namespace_devs.c for (j = is_pmem; j < 2; j++) { j 888 drivers/nvdimm/namespace_devs.c bool blk_only = j == 0; j 2403 drivers/nvdimm/namespace_devs.c int j; j 2411 drivers/nvdimm/namespace_devs.c j = count; j 2413 drivers/nvdimm/namespace_devs.c if (!j--) j 2496 drivers/nvdimm/namespace_devs.c int count, j; j 2524 drivers/nvdimm/namespace_devs.c for (j = 0; j < count; j++) { j 2530 drivers/nvdimm/namespace_devs.c label = nd_label_active(ndd, j); j 2544 drivers/nvdimm/namespace_devs.c if (j < count) j 2618 drivers/nvdimm/namespace_devs.c int j; j 2620 drivers/nvdimm/namespace_devs.c for (j = i; devs[j]; j++) { j 2621 drivers/nvdimm/namespace_devs.c struct device *dev = devs[j]; j 2626 drivers/nvdimm/namespace_devs.c *err = j - i; j 28 drivers/nvdimm/region_devs.c int i, j; j 38 drivers/nvdimm/region_devs.c for (j = 0; j < i; j++) { j 39 drivers/nvdimm/region_devs.c struct resource *res_j = &nvdimm->flush_wpq[j]; j 46 drivers/nvdimm/region_devs.c if (j < i) j 48 drivers/nvdimm/region_devs.c ndrd_get_flush_wpq(ndrd, dimm, j) j 64 drivers/nvdimm/region_devs.c int i, j, num_flush = 0; j 115 drivers/nvdimm/region_devs.c for (j = i + 1; j < nd_region->ndr_mappings; j++) j 117 drivers/nvdimm/region_devs.c ndrd_get_flush_wpq(ndrd, j, 0)) j 118 drivers/nvdimm/region_devs.c ndrd_set_flush_wpq(ndrd, j, 0, NULL); j 3650 drivers/nvme/host/core.c unsigned i, j, nsid, prev = 0; j 3663 drivers/nvme/host/core.c for (j = 0; j < min(nn, 1024U); j++) { j 3664 drivers/nvme/host/core.c nsid = le32_to_cpu(ns_list[j]); j 3678 drivers/nvme/host/core.c nn -= j; j 75 drivers/nvmem/stm32-romem.c int i, j = 0, ret, skip_bytes, size; j 106 drivers/nvmem/stm32-romem.c memcpy(&buf8[j], &val8[skip_bytes], size); j 108 drivers/nvmem/stm32-romem.c j += size; j 376 drivers/opp/of.c int supplies = opp_table->regulator_count, vcount, icount, ret, i, j; j 488 drivers/opp/of.c for (i = 0, j = 0; i < supplies; i++) { j 489 drivers/opp/of.c opp->supplies[i].u_volt = microvolt[j++]; j 495 drivers/opp/of.c opp->supplies[i].u_volt_min = microvolt[j++]; j 496 drivers/opp/of.c opp->supplies[i].u_volt_max = microvolt[j++]; j 1039 drivers/parisc/ccio-dma.c int j; j 1061 drivers/parisc/ccio-dma.c for(j = 0; j < CCIO_SEARCH_SAMPLE; ++j) { j 1062 drivers/parisc/ccio-dma.c avg += ioc->avg_search[j]; j 1063 drivers/parisc/ccio-dma.c if(ioc->avg_search[j] > max) j 1064 drivers/parisc/ccio-dma.c max = ioc->avg_search[j]; j 1065 drivers/parisc/ccio-dma.c if(ioc->avg_search[j] < min) j 1066 drivers/parisc/ccio-dma.c min = ioc->avg_search[j]; j 1627 drivers/parisc/sba_iommu.c unsigned int j; j 1629 drivers/parisc/sba_iommu.c for (j=0; j < sizeof(u64) * ROPES_PER_IOC; j+=sizeof(u64)) { j 1641 drivers/parisc/sba_iommu.c rope_cfg = ioc_hpa + IOC_ROPE0_CFG + j; j 1650 drivers/parisc/sba_iommu.c WRITE_REG(HF_ENABLE, ioc_hpa + ROPE0_CTL + j); j 116 drivers/pci/hotplug/cpqphp_pci.c int j; j 121 drivers/pci/hotplug/cpqphp_pci.c for (j = 0; j < 8 ; j++) { j 125 drivers/pci/hotplug/cpqphp_pci.c j)); j 661 drivers/pci/hotplug/ibmphp_core.c u8 j; j 670 drivers/pci/hotplug/ibmphp_core.c for (j = 0; j < 0x08; j++) { j 672 drivers/pci/hotplug/ibmphp_core.c (func->device << 3) | j); j 38 drivers/pci/hotplug/ibmphp_pci.c int j; j 39 drivers/pci/hotplug/ibmphp_pci.c for (j = 0; j < 4; j++) { j 40 drivers/pci/hotplug/ibmphp_pci.c if (cur_func->irq[j] == 0xff) { j 43 drivers/pci/hotplug/ibmphp_pci.c cur_func->irq[j] = SCSI_IRQ; j 46 drivers/pci/hotplug/ibmphp_pci.c cur_func->irq[j] = LAN_IRQ; j 49 drivers/pci/hotplug/ibmphp_pci.c cur_func->irq[j] = OTHER_IRQ; j 76 drivers/pci/hotplug/ibmphp_pci.c int rc, i, j; j 163 drivers/pci/hotplug/ibmphp_pci.c for (j = 0; j < 4; j++) j 164 drivers/pci/hotplug/ibmphp_pci.c newfunc->irq[j] = cur_func->irq[j]; j 198 drivers/pci/hotplug/ibmphp_pci.c for (j = 0; j < 4; j++) j 199 drivers/pci/hotplug/ibmphp_pci.c newfunc->irq[j] = cur_func->irq[j]; j 225 drivers/pci/hotplug/ibmphp_pci.c for (j = 0; j < 4; j++) j 226 drivers/pci/hotplug/ibmphp_pci.c newfunc->irq[j] = cur_func->irq[j]; j 270 drivers/pci/hotplug/ibmphp_pci.c for (j = 0; j < 4; j++) j 271 drivers/pci/hotplug/ibmphp_pci.c newfunc->irq[j] = cur_func->irq[j]; j 233 drivers/pci/hotplug/rpaphp_core.c int j; j 245 drivers/pci/hotplug/rpaphp_core.c for (j = 0; j < entries; j++) { j 974 drivers/pci/msi.c int i, j; j 990 drivers/pci/msi.c for (j = i + 1; j < nvec; j++) { j 991 drivers/pci/msi.c if (entries[i].entry == entries[j].entry) j 1152 drivers/pci/probe.c u32 buses, i, j = 0; j 1318 drivers/pci/probe.c j = 1; j 1322 drivers/pci/probe.c if (j) { j 763 drivers/pcmcia/cistpl.c int i, j, ns; j 767 drivers/pcmcia/cistpl.c ns = 0; j = 0; j 771 drivers/pcmcia/cistpl.c ofs[i] = j; j 774 drivers/pcmcia/cistpl.c s[j++] = (*p == 0xff) ? '\0' : *p; j 979 drivers/pcmcia/cistpl.c int i, j, bsz, lsz; j 1006 drivers/pcmcia/cistpl.c for (j = 0; j < bsz; j++, p++) { j 1009 drivers/pcmcia/cistpl.c io->win[i].base += *p << (j*8); j 1011 drivers/pcmcia/cistpl.c for (j = 0; j < lsz; j++, p++) { j 1014 drivers/pcmcia/cistpl.c io->win[i].len += *p << (j*8); j 1023 drivers/pcmcia/cistpl.c int i, j, asz, lsz, has_ha; j 1038 drivers/pcmcia/cistpl.c for (j = 0; j < lsz; j++, p++) { j 1041 drivers/pcmcia/cistpl.c len += *p << (j*8); j 1043 drivers/pcmcia/cistpl.c for (j = 0; j < asz; j++, p++) { j 1046 drivers/pcmcia/cistpl.c ca += *p << (j*8); j 1049 drivers/pcmcia/cistpl.c for (j = 0; j < asz; j++, p++) { j 1052 drivers/pcmcia/cistpl.c ha += *p << (j*8); j 755 drivers/pcmcia/i82365.c int i, j, sock, k, ns, id; j 811 drivers/pcmcia/i82365.c for (j = ns = 0; j < 2; j++) { j 813 drivers/pcmcia/i82365.c if ((ignore == i+j) || (identify(port, sock+j) < 0)) j 822 drivers/pcmcia/i82365.c add_socket(port, sock+j, id); ns++; j 833 drivers/pcmcia/i82365.c int i, j, csc; j 840 drivers/pcmcia/i82365.c for (j = 0; j < 20; j++) { j 871 drivers/pcmcia/i82365.c if (j == 20) j 626 drivers/pcmcia/pd6729.c int i, j, ret; j 718 drivers/pcmcia/pd6729.c for (j = 0; j < i ; j++) j 719 drivers/pcmcia/pd6729.c pcmcia_unregister_socket(&socket[j].socket); j 187 drivers/pcmcia/rsrc_nonstatic.c unsigned int i, j, bad; j 205 drivers/pcmcia/rsrc_nonstatic.c for (j = 1; j < 8; j++) j 206 drivers/pcmcia/rsrc_nonstatic.c if (inb(i+j) != hole) j 209 drivers/pcmcia/rsrc_nonstatic.c if ((j == 8) && (++b[hole] > b[most])) j 226 drivers/pcmcia/rsrc_nonstatic.c for (j = 0; j < 8; j++) j 227 drivers/pcmcia/rsrc_nonstatic.c if (inb(i+j) != most) j 230 drivers/pcmcia/rsrc_nonstatic.c if (j < 8) { j 409 drivers/pcmcia/rsrc_nonstatic.c u_long i, j, bad, fail, step; j 421 drivers/pcmcia/rsrc_nonstatic.c for (i = j = base; i < base+num; i = j + step) { j 423 drivers/pcmcia/rsrc_nonstatic.c for (j = i; j < base+num; j += step) { j 424 drivers/pcmcia/rsrc_nonstatic.c if (!do_validate_mem(s, j, step, validate)) j 427 drivers/pcmcia/rsrc_nonstatic.c fail = ((i == base) && (j == base+num)); j 430 drivers/pcmcia/rsrc_nonstatic.c for (j = i; j < base+num; j += step) j 431 drivers/pcmcia/rsrc_nonstatic.c if (!do_validate_mem(s, j, step, fallback)) j 434 drivers/pcmcia/rsrc_nonstatic.c if (i != j) { j 437 drivers/pcmcia/rsrc_nonstatic.c pr_cont(" %#05lx-%#05lx", i, j-1); j 438 drivers/pcmcia/rsrc_nonstatic.c sub_interval(&s_data->mem_db, i, j-i); j 439 drivers/pcmcia/rsrc_nonstatic.c bad += j-i; j 810 drivers/pcmcia/rsrc_nonstatic.c int ret, i, j; j 827 drivers/pcmcia/rsrc_nonstatic.c for (j = 0; j < 2; j++) { j 39 drivers/pcmcia/sa1111_jornada720.c struct jornada720_data *j; j 41 drivers/pcmcia/sa1111_jornada720.c j = devm_kzalloc(dev, sizeof(*j), GFP_KERNEL); j 42 drivers/pcmcia/sa1111_jornada720.c if (!j) j 45 drivers/pcmcia/sa1111_jornada720.c j->gpio[J720_GPIO_PWR] = devm_gpiod_get(dev, skt->nr ? "s1-power" : j 47 drivers/pcmcia/sa1111_jornada720.c if (IS_ERR(j->gpio[J720_GPIO_PWR])) j 48 drivers/pcmcia/sa1111_jornada720.c return PTR_ERR(j->gpio[J720_GPIO_PWR]); j 50 drivers/pcmcia/sa1111_jornada720.c j->gpio[J720_GPIO_3V] = devm_gpiod_get(dev, skt->nr ? "s1-3v" : j 52 drivers/pcmcia/sa1111_jornada720.c if (IS_ERR(j->gpio[J720_GPIO_3V])) j 53 drivers/pcmcia/sa1111_jornada720.c return PTR_ERR(j->gpio[J720_GPIO_3V]); j 55 drivers/pcmcia/sa1111_jornada720.c skt->driver_data = j; j 63 drivers/pcmcia/sa1111_jornada720.c struct jornada720_data *j = skt->driver_data; j 116 drivers/pcmcia/sa1111_jornada720.c ret = gpiod_set_array_value_cansleep(J720_GPIO_MAX, j->gpio, j 105 drivers/phy/cadence/phy-cadence-sierra.c int i, j; j 119 drivers/phy/cadence/phy-cadence-sierra.c for (j = 0; j < num_regs ; j++) j 120 drivers/phy/cadence/phy-cadence-sierra.c writel(vals[j].val, phy->base + j 121 drivers/phy/cadence/phy-cadence-sierra.c vals[j].off + (i + ins->mlane) * 0x800); j 867 drivers/pinctrl/actions/pinctrl-owl.c int ret, i, j, offset; j 900 drivers/pinctrl/actions/pinctrl-owl.c for (j = 0; j < port->pins; j++) j 901 drivers/pinctrl/actions/pinctrl-owl.c gpio_irq->map[offset + j] = gpio_irq->parents[i]; j 1224 drivers/pinctrl/bcm/pinctrl-bcm281xx.c int i, j; j 1234 drivers/pinctrl/bcm/pinctrl-bcm281xx.c for (j = 0; j < ARRAY_SIZE(bcm281xx_pullup_map); j++) j 1235 drivers/pinctrl/bcm/pinctrl-bcm281xx.c if (bcm281xx_pullup_map[j] == arg) j 1238 drivers/pinctrl/bcm/pinctrl-bcm281xx.c if (j == ARRAY_SIZE(bcm281xx_pullup_map)) { j 1247 drivers/pinctrl/bcm/pinctrl-bcm281xx.c bcm281xx_pin_update(val, mask, j+1, j 918 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c unsigned int i, j; j 927 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c for (j = 0; j < CYGNUS_NUM_MUX_PER_REG; j++) { j 929 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c + j]; j 931 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c log->mux.shift = j * 4; j 66 drivers/pinctrl/freescale/pinctrl-imx.c int i, j; j 109 drivers/pinctrl/freescale/pinctrl-imx.c for (i = j = 0; i < grp->num_pins; i++) { j 120 drivers/pinctrl/freescale/pinctrl-imx.c new_map[j].type = PIN_MAP_TYPE_CONFIGS_PIN; j 121 drivers/pinctrl/freescale/pinctrl-imx.c new_map[j].data.configs.group_or_pin = j 129 drivers/pinctrl/freescale/pinctrl-imx.c new_map[j].data.configs.configs = j 131 drivers/pinctrl/freescale/pinctrl-imx.c new_map[j].data.configs.num_configs = 2; j 133 drivers/pinctrl/freescale/pinctrl-imx.c new_map[j].data.configs.configs = j 135 drivers/pinctrl/freescale/pinctrl-imx.c new_map[j].data.configs.num_configs = 1; j 138 drivers/pinctrl/freescale/pinctrl-imx.c j++; j 302 drivers/pinctrl/freescale/pinctrl-imx.c int i, j; j 310 drivers/pinctrl/freescale/pinctrl-imx.c for (j = 0; j < info->num_decodes; j++) { j 228 drivers/pinctrl/freescale/pinctrl-imx1-core.c int i, j; j 265 drivers/pinctrl/freescale/pinctrl-imx1-core.c for (i = j = 0; i < grp->npins; i++) { j 266 drivers/pinctrl/freescale/pinctrl-imx1-core.c new_map[j].type = PIN_MAP_TYPE_CONFIGS_PIN; j 267 drivers/pinctrl/freescale/pinctrl-imx1-core.c new_map[j].data.configs.group_or_pin = j 269 drivers/pinctrl/freescale/pinctrl-imx1-core.c new_map[j].data.configs.configs = &grp->pins[i].config; j 270 drivers/pinctrl/freescale/pinctrl-imx1-core.c new_map[j].data.configs.num_configs = 1; j 271 drivers/pinctrl/freescale/pinctrl-imx1-core.c j++; j 816 drivers/pinctrl/intel/pinctrl-cherryview.c int j; j 818 drivers/pinctrl/intel/pinctrl-cherryview.c for (j = 0; j < grp->noverrides; j++) { j 819 drivers/pinctrl/intel/pinctrl-cherryview.c if (grp->overrides[j].pin == pin) { j 820 drivers/pinctrl/intel/pinctrl-cherryview.c altfunc = &grp->overrides[j]; j 829 drivers/pinctrl/intel/pinctrl-intel.c int j; j 831 drivers/pinctrl/intel/pinctrl-intel.c for (j = 0; j < comm->ngpps; j++) { j 832 drivers/pinctrl/intel/pinctrl-intel.c const struct intel_padgroup *pgrp = &comm->gpps[j]; j 1188 drivers/pinctrl/intel/pinctrl-intel.c int i, j; j 1192 drivers/pinctrl/intel/pinctrl-intel.c for (j = 0; j < community->ngpps; j++) { j 1193 drivers/pinctrl/intel/pinctrl-intel.c const struct intel_padgroup *gpp = &community->gpps[j]; j 37 drivers/pinctrl/meson/pinctrl-meson8-pmx.c int i, j; j 45 drivers/pinctrl/meson/pinctrl-meson8-pmx.c for (j = 0; j < group->num_pins; j++) { j 46 drivers/pinctrl/meson/pinctrl-meson8-pmx.c if (group->pins[j] == pin) { j 238 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c int j; j 241 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c for (j = 0; j < (group->npins + group->extra_npins); j++) j 242 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c if (group->pins[j] == pin) j 873 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c int i, j, f; j 885 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c for (j = 0; j < grp->extra_npins; j++) j 886 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c grp->pins[i+j] = grp->extra_pin + j; j 897 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c #define NPCM7XX_PINCFG(a, b, c, d, e, f, g, h, i, j, k) \ j 900 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c .fn2 = fn_ ## h, .reg2 = NPCM7XX_GCR_ ## i, .bit2 = j, \ j 864 drivers/pinctrl/pinctrl-at91-pio4.c int i, j; j 877 drivers/pinctrl/pinctrl-at91-pio4.c for (j = 0; j < ATMEL_PIO_NPINS_PER_BANK; j++) { j 879 drivers/pinctrl/pinctrl-at91-pio4.c ATMEL_PIO_MSKR, BIT(j)); j 880 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pm_suspend_backup[i].cfgr[j] = j 892 drivers/pinctrl/pinctrl-at91-pio4.c int i, j; j 899 drivers/pinctrl/pinctrl-at91-pio4.c for (j = 0; j < ATMEL_PIO_NPINS_PER_BANK; j++) { j 901 drivers/pinctrl/pinctrl-at91-pio4.c ATMEL_PIO_MSKR, BIT(j)); j 903 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pm_suspend_backup[i].cfgr[j]); j 1179 drivers/pinctrl/pinctrl-at91.c int i, j; j 1208 drivers/pinctrl/pinctrl-at91.c for (i = 0, j = 0; i < size; i += 4, j++) { j 1211 drivers/pinctrl/pinctrl-at91.c grp->pins[j] = pin->bank * MAX_NB_GPIO_PER_BANK + pin->pin; j 1273 drivers/pinctrl/pinctrl-at91.c int i, j; j 1300 drivers/pinctrl/pinctrl-at91.c for (j = 0; j < info->nmux; j++, tmp++) { j 1301 drivers/pinctrl/pinctrl-at91.c dev_dbg(&pdev->dev, "%d:%d\t0x%x\n", i, j, tmp[0]); j 1345 drivers/pinctrl/pinctrl-at91.c int ret, i, j, k, ngpio_chips_enabled = 0; j 1383 drivers/pinctrl/pinctrl-at91.c for (j = 0; j < MAX_NB_GPIO_PER_BANK; j++, k++) { j 1385 drivers/pinctrl/pinctrl-at91.c pdesc->name = kasprintf(GFP_KERNEL, "pio%c%d", i + 'A', j); j 571 drivers/pinctrl/pinctrl-coh901.c int i, j; j 575 drivers/pinctrl/pinctrl-coh901.c for (j = 0; j < 8; j++) { j 577 drivers/pinctrl/pinctrl-coh901.c int offset = (i*8) + j; j 579 drivers/pinctrl/pinctrl-coh901.c conf = &bs335_gpio_config[i][j]; j 278 drivers/pinctrl/pinctrl-digicolor.c int i, j; j 299 drivers/pinctrl/pinctrl-digicolor.c for (j = 0; j < PINS_PER_COLLECTION; j++) { j 300 drivers/pinctrl/pinctrl-digicolor.c int pin_id = i*PINS_PER_COLLECTION + j; j 303 drivers/pinctrl/pinctrl-digicolor.c snprintf(name, name_len, "GP_%c%c", 'A'+i, '0'+j); j 2486 drivers/pinctrl/pinctrl-rockchip.c int i, j; j 2517 drivers/pinctrl/pinctrl-rockchip.c for (i = 0, j = 0; i < size; i += 4, j++) { j 2526 drivers/pinctrl/pinctrl-rockchip.c grp->pins[j] = bank->pin_base + be32_to_cpu(*list++); j 2527 drivers/pinctrl/pinctrl-rockchip.c grp->data[j].func = be32_to_cpu(*list++); j 2535 drivers/pinctrl/pinctrl-rockchip.c &grp->data[j].configs, &grp->data[j].nconfigs); j 3031 drivers/pinctrl/pinctrl-rockchip.c int i, j; j 3095 drivers/pinctrl/pinctrl-rockchip.c for (j = 0 ; j < 32 ; j++) j 3096 drivers/pinctrl/pinctrl-rockchip.c irq_create_mapping(bank->domain, j); j 3232 drivers/pinctrl/pinctrl-rockchip.c int grf_offs, pmu_offs, drv_grf_offs, drv_pmu_offs, i, j; j 3268 drivers/pinctrl/pinctrl-rockchip.c for (j = 0; j < 4; j++) { j 3269 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_iomux *iom = &bank->iomux[j]; j 3270 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_drv *drv = &bank->drv[j]; j 3299 drivers/pinctrl/pinctrl-rockchip.c i, j, iom->offset, drv->offset); j 3331 drivers/pinctrl/pinctrl-rockchip.c for (j = 0; j < ctrl->niomux_recalced; j++) { j 3334 drivers/pinctrl/pinctrl-rockchip.c if (ctrl->iomux_recalced[j].num == bank->bank_num) { j 3335 drivers/pinctrl/pinctrl-rockchip.c pin = ctrl->iomux_recalced[j].pin; j 3341 drivers/pinctrl/pinctrl-rockchip.c for (j = 0; j < ctrl->niomux_routes; j++) { j 3344 drivers/pinctrl/pinctrl-rockchip.c if (ctrl->iomux_routes[j].bank_num == bank->bank_num) { j 3345 drivers/pinctrl/pinctrl-rockchip.c pin = ctrl->iomux_routes[j].pin; j 465 drivers/pinctrl/pinctrl-single.c unsigned offset = 0, data = 0, i, j, ret; j 498 drivers/pinctrl/pinctrl-single.c for (j = 0; j < func->nconfs; j++) { j 499 drivers/pinctrl/pinctrl-single.c switch (func->conf[j].param) { j 501 drivers/pinctrl/pinctrl-single.c if (data != func->conf[j].enable) j 530 drivers/pinctrl/pinctrl-single.c int j; j 536 drivers/pinctrl/pinctrl-single.c for (j = 0; j < num_configs; j++) { j 538 drivers/pinctrl/pinctrl-single.c if (pinconf_to_config_param(configs[j]) j 544 drivers/pinctrl/pinctrl-single.c arg = pinconf_to_config_argument(configs[j]); j 1091 drivers/pinctrl/pinctrl-st.c unsigned int j; j 1094 drivers/pinctrl/pinctrl-st.c for (j = 0; j < RT_D_CFGS_PER_BANK; j++) { j 1095 drivers/pinctrl/pinctrl-st.c if (BIT(j) & pin_mask) { j 1097 drivers/pinctrl/pinctrl-st.c rt_d->rt[j] = devm_regmap_field_alloc(dev, rm, reg); j 1098 drivers/pinctrl/pinctrl-st.c if (IS_ERR(rt_d->rt[j])) j 1563 drivers/pinctrl/pinctrl-st.c int i = 0, j = 0, k = 0, bank; j 1636 drivers/pinctrl/pinctrl-st.c for (j = 0; j < ST_GPIO_PINS_PER_BANK; j++, k++) { j 1639 drivers/pinctrl/pinctrl-st.c bank_name, j); j 621 drivers/pinctrl/pinctrl-tb10x.c int j, port = pfg->port; j 630 drivers/pinctrl/pinctrl-tb10x.c for (j = 0; j < pfg->pincnt; j++) { j 631 drivers/pinctrl/pinctrl-tb10x.c if (pin == pfg->pins[j]) { j 297 drivers/pinctrl/pxa/pinctrl-pxa2xx.c int i, j, ngroups; j 309 drivers/pinctrl/pxa/pinctrl-pxa2xx.c for (j = 0; j < pctl->npins; j++) j 310 drivers/pinctrl/pxa/pinctrl-pxa2xx.c for (df = pctl->ppins[j].functions; df->name; j 315 drivers/pinctrl/pxa/pinctrl-pxa2xx.c pctl->ppins[j].pin.name; j 390 drivers/pinctrl/sh-pfc/core.c unsigned int i, j; j 393 drivers/pinctrl/sh-pfc/core.c for (j = 0; j < ARRAY_SIZE(pfc->info->bias_regs[i].pins); j++) { j 394 drivers/pinctrl/sh-pfc/core.c if (pfc->info->bias_regs[i].pins[j] == pin) { j 395 drivers/pinctrl/sh-pfc/core.c *bit = j; j 768 drivers/pinctrl/sh-pfc/core.c unsigned int i, j, k; j 774 drivers/pinctrl/sh-pfc/core.c for (j = 0; j < i; j++) { j 775 drivers/pinctrl/sh-pfc/core.c if (!strcmp(info->pins[i].name, info->pins[j].name)) { j 778 drivers/pinctrl/sh-pfc/core.c info->pins[j].name); j 783 drivers/pinctrl/sh-pfc/core.c info->pins[i].pin == info->pins[j].pin) { j 786 drivers/pinctrl/sh-pfc/core.c info->pins[j].name, info->pins[i].pin); j 791 drivers/pinctrl/sh-pfc/core.c info->pins[i].enum_id == info->pins[j].enum_id) { j 794 drivers/pinctrl/sh-pfc/core.c info->pins[j].name, j 813 drivers/pinctrl/sh-pfc/core.c for (j = 0; j < func->nr_groups; j++) { j 816 drivers/pinctrl/sh-pfc/core.c !strcmp(func->groups[j], j 825 drivers/pinctrl/sh-pfc/core.c drvname, func->name, func->groups[j]); j 340 drivers/pinctrl/sirf/pinctrl-sirf.c int i, j; j 344 drivers/pinctrl/sirf/pinctrl-sirf.c for (j = 0; j < SIRFSOC_GPIO_BANK_SIZE; j++) { j 345 drivers/pinctrl/sirf/pinctrl-sirf.c spmx->gpio_regs[i][j] = readl(spmx->gpio_virtbase + j 346 drivers/pinctrl/sirf/pinctrl-sirf.c SIRFSOC_GPIO_CTRL(i, j)); j 363 drivers/pinctrl/sirf/pinctrl-sirf.c int i, j; j 367 drivers/pinctrl/sirf/pinctrl-sirf.c for (j = 0; j < SIRFSOC_GPIO_BANK_SIZE; j++) { j 368 drivers/pinctrl/sirf/pinctrl-sirf.c writel(spmx->gpio_regs[i][j], spmx->gpio_virtbase + j 369 drivers/pinctrl/sirf/pinctrl-sirf.c SIRFSOC_GPIO_CTRL(i, j)); j 35 drivers/pinctrl/spear/pinctrl-spear.c u32 val, temp, j; j 37 drivers/pinctrl/spear/pinctrl-spear.c for (j = 0; j < count; j++) { j 38 drivers/pinctrl/spear/pinctrl-spear.c muxreg = &muxregs[j]; j 88 drivers/pinctrl/spear/pinctrl-spear.c int i, j; j 91 drivers/pinctrl/spear/pinctrl-spear.c for (j = 0; j < gpio_pingroup[i].nmuxregs; j++) j 92 drivers/pinctrl/spear/pinctrl-spear.c gpio_pingroup[i].muxregs[j].reg = reg; j 99 drivers/pinctrl/spear/pinctrl-spear.c int i, j, group; j 107 drivers/pinctrl/spear/pinctrl-spear.c for (j = 0; j < modemux->nmuxregs; j++) j 108 drivers/pinctrl/spear/pinctrl-spear.c if (modemux->muxregs[j].reg == 0xFFFF) j 109 drivers/pinctrl/spear/pinctrl-spear.c modemux->muxregs[j].reg = reg; j 286 drivers/pinctrl/spear/pinctrl-spear.c int i, j; j 294 drivers/pinctrl/spear/pinctrl-spear.c for (j = 0; j < gpio_pingroup->npins; j++) { j 295 drivers/pinctrl/spear/pinctrl-spear.c if (gpio_pingroup->pins[j] == pin) j 353 drivers/pinctrl/zte/pinctrl-zx.c int j; j 356 drivers/pinctrl/zte/pinctrl-zx.c for (j = 0; j < nfunctions; j++) j 357 drivers/pinctrl/zte/pinctrl-zx.c if (strcmp(functions[j].name, mux->name) == 0) j 360 drivers/pinctrl/zte/pinctrl-zx.c func = functions + j; j 227 drivers/platform/chrome/cros_ec_lightbar.c int ret, i = 0, j = 0, ok = 0; j 256 drivers/platform/chrome/cros_ec_lightbar.c if ((j++ % 4) == 0) { j 199 drivers/platform/mellanox/mlxreg-hotplug.c int num_attrs = 0, id = 0, i, j; j 209 drivers/platform/mellanox/mlxreg-hotplug.c for (j = 0; j < item->count; j++, data++, id++) { j 227 drivers/platform/mellanox/mlxreg-hotplug.c PRIV_DEV_ATTR(id).index = j; j 501 drivers/platform/mellanox/mlxreg-hotplug.c int i, j, ret; j 518 drivers/platform/mellanox/mlxreg-hotplug.c for (j = 0; j < item->count; j++, data++) { j 528 drivers/platform/mellanox/mlxreg-hotplug.c item->mask &= ~BIT(j); j 573 drivers/platform/mellanox/mlxreg-hotplug.c int count, i, j; j 601 drivers/platform/mellanox/mlxreg-hotplug.c for (j = 0; j < count; j++, data++) j 387 drivers/platform/x86/dell-smbios-base.c int i, j; j 392 drivers/platform/x86/dell-smbios-base.c for (j = i+1; j < da_num_tokens; j++) { j 393 drivers/platform/x86/dell-smbios-base.c if (da_tokens[j].tokenID == 0) j 395 drivers/platform/x86/dell-smbios-base.c if (da_tokens[i].tokenID == da_tokens[j].tokenID) { j 397 drivers/platform/x86/dell-smbios-base.c da_tokens[j].tokenID, j 398 drivers/platform/x86/dell-smbios-base.c da_tokens[j].location, j 399 drivers/platform/x86/dell-smbios-base.c da_tokens[j].value); j 400 drivers/platform/x86/dell-smbios-base.c da_tokens[j].tokenID = 0; j 478 drivers/platform/x86/dell-smbios-base.c int i, j; j 495 drivers/platform/x86/dell-smbios-base.c for (i = 0, j = 0; i < da_num_tokens; i++) { j 508 drivers/platform/x86/dell-smbios-base.c token_attrs[j++] = &token_location_attrs[i].attr; j 519 drivers/platform/x86/dell-smbios-base.c token_attrs[j++] = &token_value_attrs[i].attr; j 264 drivers/platform/x86/dell_rbu.c int j = 0; j 271 drivers/platform/x86/dell_rbu.c j = newpacket->length - (*list_read_count - bytes_read); j 273 drivers/platform/x86/dell_rbu.c ptemp_buf = (u8 *) newpacket->data + j; j 552 drivers/platform/x86/intel_speed_select_if/isst_if_common.c int j; j 554 drivers/platform/x86/intel_speed_select_if/isst_if_common.c for (j = 0; j < i; ++j) { j 557 drivers/platform/x86/intel_speed_select_if/isst_if_common.c cb = &punit_callbacks[j]; j 2079 drivers/platform/x86/mlx-platform.c int i, j, nr, err; j 2160 drivers/platform/x86/mlx-platform.c for (j = 0; j < mlxplat_regmap_config->num_reg_defaults; j++) { j 2162 drivers/platform/x86/mlx-platform.c mlxplat_regmap_config->reg_defaults[j].reg, j 2163 drivers/platform/x86/mlx-platform.c mlxplat_regmap_config->reg_defaults[j].def); j 2208 drivers/platform/x86/mlx-platform.c for (j = 0; j < MLXPLAT_CPLD_WD_MAX_DEVS; j++) { j 2209 drivers/platform/x86/mlx-platform.c if (mlxplat_wd_data[j]) { j 2210 drivers/platform/x86/mlx-platform.c mlxplat_wd_data[j]->regmap = priv->regmap; j 2211 drivers/platform/x86/mlx-platform.c priv->pdev_wd[j] = platform_device_register_resndata( j 2213 drivers/platform/x86/mlx-platform.c j, NULL, 0, j 2214 drivers/platform/x86/mlx-platform.c mlxplat_wd_data[j], j 2215 drivers/platform/x86/mlx-platform.c sizeof(*mlxplat_wd_data[j])); j 2216 drivers/platform/x86/mlx-platform.c if (IS_ERR(priv->pdev_wd[j])) { j 2217 drivers/platform/x86/mlx-platform.c err = PTR_ERR(priv->pdev_wd[j]); j 2232 drivers/platform/x86/mlx-platform.c while (--j >= 0) j 2233 drivers/platform/x86/mlx-platform.c platform_device_unregister(priv->pdev_wd[j]); j 3799 drivers/platform/x86/sony-laptop.c int i, j, x; j 3809 drivers/platform/x86/sony-laptop.c for (j = 5; j > 0; j--) { j 3824 drivers/platform/x86/sony-laptop.c if (j == 0) { j 4590 drivers/platform/x86/sony-laptop.c int i, j; j 4620 drivers/platform/x86/sony-laptop.c for (j = 0; dev->event_types[i].events[j].event; j++) { j 4621 drivers/platform/x86/sony-laptop.c if (ev == dev->event_types[i].events[j].data) { j 4623 drivers/platform/x86/sony-laptop.c dev->event_types[i].events[j].event; j 192 drivers/pnp/isapnp/core.c int i, j; j 196 drivers/pnp/isapnp/core.c for (j = 0; j < 20; j++) { j 754 drivers/pnp/isapnp/core.c int i, j; j 759 drivers/pnp/isapnp/core.c for (j = 0; j < 8; j++) { j 761 drivers/pnp/isapnp/core.c if (b & (1 << j)) j 236 drivers/pnp/quirks.c int i, j; j 261 drivers/pnp/quirks.c for (j = 0; j 262 drivers/pnp/quirks.c (res = pnp_get_resource(dev, type, j)); j++) { j 671 drivers/power/supply/88pm860x_charger.c int j; j 678 drivers/power/supply/88pm860x_charger.c for (i = 0, j = 0; i < count; i++) { j 679 drivers/power/supply/88pm860x_charger.c info->irq[j] = platform_get_irq(pdev, i); j 680 drivers/power/supply/88pm860x_charger.c if (info->irq[j] < 0) j 682 drivers/power/supply/88pm860x_charger.c j++; j 684 drivers/power/supply/88pm860x_charger.c info->irq_nums = j; j 852 drivers/power/supply/ab8500_btemp.c int j; j 861 drivers/power/supply/ab8500_btemp.c j = match_string(supplicants, ext->num_supplicants, psy->desc->name); j 862 drivers/power/supply/ab8500_btemp.c if (j < 0) j 866 drivers/power/supply/ab8500_btemp.c for (j = 0; j < ext->desc->num_properties; j++) { j 868 drivers/power/supply/ab8500_btemp.c prop = ext->desc->properties[j]; j 1871 drivers/power/supply/ab8500_charger.c int j; j 1880 drivers/power/supply/ab8500_charger.c j = match_string(supplicants, ext->num_supplicants, psy->desc->name); j 1881 drivers/power/supply/ab8500_charger.c if (j < 0) j 1885 drivers/power/supply/ab8500_charger.c for (j = 0; j < ext->desc->num_properties; j++) { j 1887 drivers/power/supply/ab8500_charger.c prop = ext->desc->properties[j]; j 2168 drivers/power/supply/ab8500_fg.c int j; j 2177 drivers/power/supply/ab8500_fg.c j = match_string(supplicants, ext->num_supplicants, psy->desc->name); j 2178 drivers/power/supply/ab8500_fg.c if (j < 0) j 2182 drivers/power/supply/ab8500_fg.c for (j = 0; j < ext->desc->num_properties; j++) { j 2184 drivers/power/supply/ab8500_fg.c prop = ext->desc->properties[j]; j 943 drivers/power/supply/abx500_chargalg.c int j; j 949 drivers/power/supply/abx500_chargalg.c j = match_string(supplicants, ext->num_supplicants, psy->desc->name); j 950 drivers/power/supply/abx500_chargalg.c if (j < 0) j 964 drivers/power/supply/abx500_chargalg.c for (j = 0; j < ext->desc->num_properties; j++) { j 966 drivers/power/supply/abx500_chargalg.c prop = ext->desc->properties[j]; j 1234 drivers/power/supply/charger-manager.c int j; j 1248 drivers/power/supply/charger-manager.c for (j = 0; j < charger->num_cables; j++) { j 1249 drivers/power/supply/charger-manager.c struct charger_cable *cable = &charger->cables[j]; j 1621 drivers/power/supply/charger-manager.c int j = 0; j 1816 drivers/power/supply/charger-manager.c for (j = 0; j < charger->num_cables; j++) { j 1817 drivers/power/supply/charger-manager.c struct charger_cable *cable = &charger->cables[j]; j 1836 drivers/power/supply/charger-manager.c int j = 0; j 1849 drivers/power/supply/charger-manager.c for (j = 0 ; j < charger->num_cables ; j++) { j 1850 drivers/power/supply/charger-manager.c struct charger_cable *cable = &charger->cables[j]; j 364 drivers/power/supply/da9052-battery.c int j; j 386 drivers/power/supply/da9052-battery.c for (j = 0; j < (DA9052_VC_TBL_SZ-1); j++) { j 387 drivers/power/supply/da9052-battery.c if ((bat_voltage <= vc_tbl[i][j][0]) && j 388 drivers/power/supply/da9052-battery.c (bat_voltage >= vc_tbl[i][j + 1][0])) { j 389 drivers/power/supply/da9052-battery.c vbat_upper = vc_tbl[i][j][0]; j 390 drivers/power/supply/da9052-battery.c vbat_lower = vc_tbl[i][j + 1][0]; j 391 drivers/power/supply/da9052-battery.c level_upper = vc_tbl[i][j][1]; j 392 drivers/power/supply/da9052-battery.c level_lower = vc_tbl[i][j + 1][1]; j 385 drivers/power/supply/power_supply_sysfs.c int ret = 0, j; j 402 drivers/power/supply/power_supply_sysfs.c for (j = 0; j < psy->desc->num_properties; j++) { j 406 drivers/power/supply/power_supply_sysfs.c attr = &power_supply_attrs[psy->desc->properties[j]]; j 298 drivers/powercap/intel_rapl_common.c int i, j; j 300 drivers/powercap/intel_rapl_common.c for (i = 0, j = 0; i < NR_POWER_LIMITS; i++) { j 301 drivers/powercap/intel_rapl_common.c if ((rd->rpl[i].name) && j++ == cid) { j 516 drivers/powercap/intel_rapl_common.c enum rapl_domain_reg_id j; j 536 drivers/powercap/intel_rapl_common.c for (j = 0; j < RAPL_DOMAIN_REG_MAX; j++) j 537 drivers/powercap/intel_rapl_common.c rd->regs[j] = rp->priv->regs[i][j]; j 795 drivers/ps3/ps3av.c int i, j, k, res; j 814 drivers/ps3/ps3av.c for (j = 0; j < hw_conf->num_of_avmulti; j++) j 815 drivers/ps3/ps3av.c ps3av->av_port[i + j] = PS3AV_CMD_AVPORT_AVMULTI_0 + j; j 817 drivers/ps3/ps3av.c ps3av->av_port[i + j + k] = PS3AV_CMD_AVPORT_SPDIF_0 + k; j 219 drivers/pwm/pwm-sprd.c int j; j 221 drivers/pwm/pwm-sprd.c for (j = 0; j < SPRD_PWM_CHN_CLKS_NUM; ++j) j 222 drivers/pwm/pwm-sprd.c chn->clks[j].id = j 223 drivers/pwm/pwm-sprd.c sprd_pwm_clks[i * SPRD_PWM_CHN_CLKS_NUM + j]; j 1753 drivers/rapidio/devices/tsi721.c int i, j; j 1762 drivers/rapidio/devices/tsi721.c j = srd_ptr * 8; j 1763 drivers/rapidio/devices/tsi721.c while (sts_ptr[j]) { j 1764 drivers/rapidio/devices/tsi721.c for (i = 0; i < 8 && sts_ptr[j]; i++, j++) { j 1766 drivers/rapidio/devices/tsi721.c last_ptr = le64_to_cpu(sts_ptr[j]); j 1767 drivers/rapidio/devices/tsi721.c sts_ptr[j] = 0; j 1772 drivers/rapidio/devices/tsi721.c j = srd_ptr * 8; j 389 drivers/rapidio/devices/tsi721_dma.c int i, j; j 394 drivers/rapidio/devices/tsi721_dma.c j = srd_ptr * 8; j 395 drivers/rapidio/devices/tsi721_dma.c while (sts_ptr[j]) { j 396 drivers/rapidio/devices/tsi721_dma.c for (i = 0; i < 8 && sts_ptr[j]; i++, j++) j 397 drivers/rapidio/devices/tsi721_dma.c sts_ptr[j] = 0; j 401 drivers/rapidio/devices/tsi721_dma.c j = srd_ptr * 8; j 1165 drivers/regulator/bd718x7-regulator.c int i, j, err; j 1266 drivers/regulator/bd718x7-regulator.c for (j = 0; j < r->additional_init_amnt; j++) { j 1268 drivers/regulator/bd718x7-regulator.c r->additional_inits[j].reg, j 1269 drivers/regulator/bd718x7-regulator.c r->additional_inits[j].mask, j 1270 drivers/regulator/bd718x7-regulator.c r->additional_inits[j].val); j 235 drivers/regulator/max8998.c int reg, shift = 0, mask, ret, j; j 255 drivers/regulator/max8998.c for (j = 0; j < ARRAY_SIZE(max8998->buck1_vol); j++) { j 256 drivers/regulator/max8998.c if (max8998->buck1_vol[j] == selector) { j 257 drivers/regulator/max8998.c max8998->buck1_idx = j; j 259 drivers/regulator/max8998.c pdata->buck1_set2, j); j 297 drivers/regulator/max8998.c for (j = 0; j < ARRAY_SIZE(max8998->buck2_vol); j++) { j 298 drivers/regulator/max8998.c if (max8998->buck2_vol[j] == selector) { j 299 drivers/regulator/max8998.c max8998->buck2_idx = j; j 300 drivers/regulator/max8998.c buck2_gpio_set(pdata->buck2_set3, j); j 373 drivers/regulator/vctrl-regulator.c int j; j 377 drivers/regulator/vctrl-regulator.c for (j = 0; j < i; j++) { j 378 drivers/regulator/vctrl-regulator.c if (vctrl->vtable[j].out >= ovp_min_uV) { j 379 drivers/regulator/vctrl-regulator.c vctrl->vtable[i].ovp_min_sel = j; j 384 drivers/regulator/vctrl-regulator.c if (j == i) { j 197 drivers/remoteproc/remoteproc_debugfs.c int i, j; j 252 drivers/remoteproc/remoteproc_debugfs.c for (j = 0; j < v->num_of_vrings; j++) { j 253 drivers/remoteproc/remoteproc_debugfs.c seq_printf(seq, " Vring %d\n", j); j 254 drivers/remoteproc/remoteproc_debugfs.c seq_printf(seq, " Device Address 0x%x\n", v->vring[j].da); j 255 drivers/remoteproc/remoteproc_debugfs.c seq_printf(seq, " Alignment %d\n", v->vring[j].align); j 256 drivers/remoteproc/remoteproc_debugfs.c seq_printf(seq, " Number of buffers %d\n", v->vring[j].num); j 257 drivers/remoteproc/remoteproc_debugfs.c seq_printf(seq, " Notify ID %d\n", v->vring[j].notifyid); j 259 drivers/remoteproc/remoteproc_debugfs.c v->vring[j].pa); j 157 drivers/rtc/rtc-armada38x.c int j = 0; j 160 drivers/rtc/rtc-armada38x.c while (rtc->val_to_freq[j].freq) { j 161 drivers/rtc/rtc-armada38x.c if (rtc->val_to_freq[j].value == value) { j 162 drivers/rtc/rtc-armada38x.c rtc->val_to_freq[j].freq++; j 165 drivers/rtc/rtc-armada38x.c j++; j 168 drivers/rtc/rtc-armada38x.c if (!rtc->val_to_freq[j].freq) { j 169 drivers/rtc/rtc-armada38x.c rtc->val_to_freq[j].value = value; j 170 drivers/rtc/rtc-armada38x.c rtc->val_to_freq[j].freq = 1; j 173 drivers/rtc/rtc-armada38x.c if (rtc->val_to_freq[j].freq > max) { j 174 drivers/rtc/rtc-armada38x.c index_max = j; j 175 drivers/rtc/rtc-armada38x.c max = rtc->val_to_freq[j].freq; j 46 drivers/rtc/rtc-ds1216.c int i, j; j 50 drivers/rtc/rtc-ds1216.c for (j = 0; j < 8; j++) j 51 drivers/rtc/rtc-ds1216.c c |= (readb(ioaddr) & 0x1) << j; j 59 drivers/rtc/rtc-ds1216.c int i, j; j 63 drivers/rtc/rtc-ds1216.c for (j = 0; j < 8; j++) { j 2586 drivers/s390/block/dasd_eckd.c int i, j; j 2746 drivers/s390/block/dasd_eckd.c for (j = 0; j < nr_tracks; j++) { j 2749 drivers/s390/block/dasd_eckd.c (fdata->start_unit + j) / j 2751 drivers/s390/block/dasd_eckd.c (fdata->start_unit + j) % j 2807 drivers/s390/block/dasd_eckd.c if (i != 0 || j == 0) j 3279 drivers/s390/block/dasd_eckd.c int i, j; j 3313 drivers/s390/block/dasd_eckd.c for (j = 0; j < count; j++, pos++) { j 3323 drivers/s390/block/dasd_eckd.c if (j < 3) { j 3324 drivers/s390/block/dasd_eckd.c blksize = sizes_trk0[j] - 4; j 3347 drivers/s390/block/dasd_eckd.c fmt_buffer[pos].record != (j + 1)) { j 236 drivers/s390/block/dcssblk.c int i, j, rc; j 255 drivers/s390/block/dcssblk.c for (j = 0; j < dev_info->num_of_segments; j++) j 256 drivers/s390/block/dcssblk.c if (sort_list[j].start > sort_list[i].start) { j 259 drivers/s390/block/dcssblk.c memcpy(&sort_list[i], &sort_list[j], j 261 drivers/s390/block/dcssblk.c memcpy(&sort_list[j], &temp, j 549 drivers/s390/block/dcssblk.c int rc, i, j, num_of_segments; j 577 drivers/s390/block/dcssblk.c for (j = i; j < count && j 578 drivers/s390/block/dcssblk.c (buf[j] != ':') && j 579 drivers/s390/block/dcssblk.c (buf[j] != '\0') && j 580 drivers/s390/block/dcssblk.c (buf[j] != '\n'); j++) { j 581 drivers/s390/block/dcssblk.c local_buf[j-i] = toupper(buf[j]); j 583 drivers/s390/block/dcssblk.c local_buf[j-i] = '\0'; j 584 drivers/s390/block/dcssblk.c if (((j - i) == 0) || ((j - i) > 8)) { j 608 drivers/s390/block/dcssblk.c i = j; j 610 drivers/s390/block/dcssblk.c if ((buf[j] == '\0') || (buf[j] == '\n')) j 947 drivers/s390/block/dcssblk.c int rc, i, j, k; j 953 drivers/s390/block/dcssblk.c for (j = i; (j < DCSSBLK_PARM_LEN) && j 954 drivers/s390/block/dcssblk.c (dcssblk_segments[j] != ',') && j 955 drivers/s390/block/dcssblk.c (dcssblk_segments[j] != '\0') && j 956 drivers/s390/block/dcssblk.c (dcssblk_segments[j] != '('); j++) j 958 drivers/s390/block/dcssblk.c buf[j-i] = dcssblk_segments[j]; j 960 drivers/s390/block/dcssblk.c buf[j-i] = '\0'; j 961 drivers/s390/block/dcssblk.c rc = dcssblk_add_store(dcssblk_root_dev, NULL, buf, j-i); j 962 drivers/s390/block/dcssblk.c if ((rc >= 0) && (dcssblk_segments[j] == '(')) { j 966 drivers/s390/block/dcssblk.c if (!strncmp(&dcssblk_segments[j], "(local)", 7)) { j 975 drivers/s390/block/dcssblk.c while ((dcssblk_segments[j] != ',') && j 976 drivers/s390/block/dcssblk.c (dcssblk_segments[j] != '\0')) j 978 drivers/s390/block/dcssblk.c j++; j 980 drivers/s390/block/dcssblk.c if (dcssblk_segments[j] == '\0') j 982 drivers/s390/block/dcssblk.c i = j; j 157 drivers/s390/char/keyboard.c int i, j, k; j 164 drivers/s390/char/keyboard.c for (j = 0; j < NR_KEYS; j++) { j 165 drivers/s390/char/keyboard.c k = ((i & 1) << 7) + j; j 166 drivers/s390/char/keyboard.c keysym = keymap[j]; j 184 drivers/s390/char/keyboard.c int i, j, k; j 191 drivers/s390/char/keyboard.c for (j = 0; j < NR_KEYS; j++) { j 192 drivers/s390/char/keyboard.c keysym = keymap[j]; j 193 drivers/s390/char/keyboard.c k = ((i & 1) << 7) + j; j 409 drivers/s390/char/keyboard.c int j; j 416 drivers/s390/char/keyboard.c for (j = 0; j < NR_KEYS; j++) j 417 drivers/s390/char/keyboard.c key_map[j] = U(K_HOLE); j 600 drivers/s390/cio/qdio_main.c int j, b = start; j 602 drivers/s390/cio/qdio_main.c for (j = 0; j < count; ++j) { j 109 drivers/s390/cio/qdio_setup.c int i, j; j 123 drivers/s390/cio/qdio_setup.c for (j = 0; j < QDIO_MAX_BUFFERS_PER_Q; j++) j 124 drivers/s390/cio/qdio_setup.c q->slib->slibe[j].parms = j 125 drivers/s390/cio/qdio_setup.c input_slib_elements[i * QDIO_MAX_BUFFERS_PER_Q + j]; j 132 drivers/s390/cio/qdio_setup.c for (j = 0; j < QDIO_MAX_BUFFERS_PER_Q; j++) j 133 drivers/s390/cio/qdio_setup.c q->slib->slibe[j].parms = j 134 drivers/s390/cio/qdio_setup.c output_slib_elements[i * QDIO_MAX_BUFFERS_PER_Q + j]; j 190 drivers/s390/cio/qdio_setup.c int j; j 196 drivers/s390/cio/qdio_setup.c for (j = 0; j < QDIO_MAX_BUFFERS_PER_Q; j++) j 197 drivers/s390/cio/qdio_setup.c q->sbal[j] = *sbals_array++; j 210 drivers/s390/cio/qdio_setup.c for (j = 0; j < QDIO_MAX_BUFFERS_PER_Q; j++) j 211 drivers/s390/cio/qdio_setup.c q->sl->element[j].sbal = virt_to_phys(q->sbal[j]); j 1269 drivers/s390/crypto/ap_bus.c int i, j; j 1289 drivers/s390/crypto/ap_bus.c for (j = 0; j < AP_DEVICES; j++) { j 1290 drivers/s390/crypto/ap_bus.c if (!ap_test_config_card_id(j)) j 1292 drivers/s390/crypto/ap_bus.c status = ap_test_queue(AP_MKQID(j, i), j 219 drivers/s390/net/qeth_core_main.c int i, j; j 228 drivers/s390/net/qeth_core_main.c for (j = 0; j < QETH_MAX_BUFFER_ELEMENTS(card); ++j) { j 231 drivers/s390/net/qeth_core_main.c while (j > 0) j 233 drivers/s390/net/qeth_core_main.c pool_entry->elements[--j]); j 238 drivers/s390/net/qeth_core_main.c pool_entry->elements[j] = ptr; j 1161 drivers/s390/net/qeth_core_main.c int j; j 1163 drivers/s390/net/qeth_core_main.c for (j = 0; j < QDIO_MAX_BUFFERS_PER_Q; ++j) { j 1164 drivers/s390/net/qeth_core_main.c if (!q->bufs[j]) j 1166 drivers/s390/net/qeth_core_main.c qeth_cleanup_handled_pending(q, j, 1); j 1167 drivers/s390/net/qeth_core_main.c qeth_clear_output_buffer(q, q->bufs[j], true, 0); j 1169 drivers/s390/net/qeth_core_main.c kmem_cache_free(qeth_qdio_outbuf_cache, q->bufs[j]); j 1170 drivers/s390/net/qeth_core_main.c q->bufs[j] = NULL; j 2330 drivers/s390/net/qeth_core_main.c int i, j; j 2362 drivers/s390/net/qeth_core_main.c for (j = 0; j < QDIO_MAX_BUFFERS_PER_Q; ++j) { j 2363 drivers/s390/net/qeth_core_main.c WARN_ON(queue->bufs[j]); j 2364 drivers/s390/net/qeth_core_main.c if (qeth_init_qdio_out_buf(queue, j)) j 2376 drivers/s390/net/qeth_core_main.c while (j > 0) { j 2377 drivers/s390/net/qeth_core_main.c --j; j 2379 drivers/s390/net/qeth_core_main.c card->qdio.out_qs[i]->bufs[j]); j 2380 drivers/s390/net/qeth_core_main.c card->qdio.out_qs[i]->bufs[j] = NULL; j 2398 drivers/s390/net/qeth_core_main.c int i, j; j 2406 drivers/s390/net/qeth_core_main.c for (j = 0; j < QDIO_MAX_BUFFERS_PER_Q; ++j) { j 2407 drivers/s390/net/qeth_core_main.c if (card->qdio.in_q->bufs[j].rx_skb) j 2408 drivers/s390/net/qeth_core_main.c dev_kfree_skb_any(card->qdio.in_q->bufs[j].rx_skb); j 4739 drivers/s390/net/qeth_core_main.c int i, j, k; j 4785 drivers/s390/net/qeth_core_main.c for (j = 0; j < QDIO_MAX_BUFFERS_PER_Q; j++, k++) j 4787 drivers/s390/net/qeth_core_main.c card->qdio.out_qs[i]->bufs[j]->buffer; j 96 drivers/s390/net/qeth_l3_main.c int i, j; j 101 drivers/s390/net/qeth_l3_main.c for (j = 7; j >= 0; --j) { j 102 drivers/s390/net/qeth_l3_main.c bits[i*8 + j] = octet & 1; j 396 drivers/s390/net/qeth_l3_main.c int i, j; j 398 drivers/s390/net/qeth_l3_main.c j = (len) - (i * 8); j 399 drivers/s390/net/qeth_l3_main.c if (j >= 8) j 401 drivers/s390/net/qeth_l3_main.c else if (j > 0) j 402 drivers/s390/net/qeth_l3_main.c netmask[i] = (u8)(0xFF00 >> j); j 264 drivers/s390/virtio/virtio_ccw.c int i, j; j 287 drivers/s390/virtio/virtio_ccw.c for (j = 0; j < nvqs; j++) { j 288 drivers/s390/virtio/virtio_ccw.c airq_iv_set_ptr(info->aiv, bit + j, j 289 drivers/s390/virtio/virtio_ccw.c (unsigned long)vqs[j]); j 369 drivers/sbus/char/envctrl.c char *tbl, j = -1; j 374 drivers/sbus/char/envctrl.c if (++j == cpu) { j 380 drivers/sbus/char/envctrl.c if (j != cpu) j 434 drivers/sbus/char/envctrl.c int i, j = 0; j 454 drivers/sbus/char/envctrl.c ret |= chnls_mask[j]; j 456 drivers/sbus/char/envctrl.c j++; j 498 drivers/sbus/char/envctrl.c int i, j = 0; j 513 drivers/sbus/char/envctrl.c j++; j 525 drivers/sbus/char/envctrl.c if (j == 1) j 961 drivers/sbus/char/envctrl.c int i, j; j 964 drivers/sbus/char/envctrl.c for (j = 0; j < PCF8584_MAX_CHANNELS; j++) { j 965 drivers/sbus/char/envctrl.c if (i2c_childlist[i].mon_type[j] == mon_type) { j 405 drivers/sbus/char/oradax.c int i, j; j 408 drivers/sbus/char/oradax.c for (j = 0; j < NUM_STREAM_TYPES; j++) { j 409 drivers/sbus/char/oradax.c struct page *p = ctx->pages[i][j]; j 413 drivers/sbus/char/oradax.c if (j == OUT) j 416 drivers/sbus/char/oradax.c ctx->pages[i][j] = NULL; j 762 drivers/sbus/char/oradax.c int i, j; j 769 drivers/sbus/char/oradax.c for (j = 0; j < 8; j++) j 771 drivers/sbus/char/oradax.c i, j, *(ccbp + j)); j 281 drivers/scsi/53c700.c int j; j 324 drivers/scsi/53c700.c for (j = 0; j < NCR_700_COMMAND_SLOTS_PER_HOST; j++) { j 325 drivers/scsi/53c700.c dma_addr_t offset = (dma_addr_t)((unsigned long)&hostdata->slots[j].SG[0] j 327 drivers/scsi/53c700.c hostdata->slots[j].pSG = (struct NCR_700_SG_List *)((unsigned long)(pSlots + offset)); j 328 drivers/scsi/53c700.c if(j == 0) j 329 drivers/scsi/53c700.c hostdata->free_list = &hostdata->slots[j]; j 331 drivers/scsi/53c700.c hostdata->slots[j-1].ITL_forw = &hostdata->slots[j]; j 332 drivers/scsi/53c700.c hostdata->slots[j].state = NCR_700_SLOT_FREE; j 335 drivers/scsi/53c700.c for (j = 0; j < ARRAY_SIZE(SCRIPT); j++) j 336 drivers/scsi/53c700.c script[j] = bS_to_host(SCRIPT[j]); j 339 drivers/scsi/53c700.c for (j = 0; j < PATCHES; j++) j 340 drivers/scsi/53c700.c script[LABELPATCHES[j]] = bS_to_host(pScript + SCRIPT[LABELPATCHES[j]]); j 1233 drivers/scsi/53c700.c __u8 i = (dsps & 0xf0) >> 4, j = (dsps & 0xf00) >> 8; j 1236 drivers/scsi/53c700.c NCR_700_phase[j], dsp - hostdata->pScript); j 1716 drivers/scsi/53c700.c int j = (i + hostdata->saved_slot_position) j 1719 drivers/scsi/53c700.c if(hostdata->slots[j].state != NCR_700_SLOT_QUEUED) j 1721 drivers/scsi/53c700.c if(NCR_700_start_command(hostdata->slots[j].cmnd)) { j 1723 drivers/scsi/53c700.c host->host_no, &hostdata->slots[j], j 1724 drivers/scsi/53c700.c hostdata->slots[j].cmnd)); j 1725 drivers/scsi/53c700.c hostdata->saved_slot_position = j + 1; j 625 drivers/scsi/BusLogic.c int last_exchange = probeinfo_cnt - 1, bound, j; j 630 drivers/scsi/BusLogic.c for (j = 0; j < bound; j++) { j 632 drivers/scsi/BusLogic.c &probeinfo_list[j]; j 634 drivers/scsi/BusLogic.c &probeinfo_list[j + 1]; j 646 drivers/scsi/BusLogic.c last_exchange = j; j 942 drivers/scsi/FlashPoint.c unsigned char i, j, id, ScamFlg; j 1090 drivers/scsi/FlashPoint.c j = (RD_HARPOON(ioport + hp_bm_ctrl) & ~SCSI_TERM_ENA_L); j 1092 drivers/scsi/FlashPoint.c j |= SCSI_TERM_ENA_L; j 1094 drivers/scsi/FlashPoint.c WR_HARPOON(ioport + hp_bm_ctrl, j); j 1096 drivers/scsi/FlashPoint.c j = (RD_HARPOON(ioport + hp_ee_ctrl) & ~SCSI_TERM_ENA_H); j 1098 drivers/scsi/FlashPoint.c j |= SCSI_TERM_ENA_H; j 1100 drivers/scsi/FlashPoint.c WR_HARPOON(ioport + hp_ee_ctrl, j); j 1215 drivers/scsi/FlashPoint.c unsigned char i, j, thisCard, ScamFlg; j 1279 drivers/scsi/FlashPoint.c j = (RD_HARPOON(ioport + hp_bm_ctrl) & ~SCSI_TERM_ENA_L); j 1281 drivers/scsi/FlashPoint.c j |= SCSI_TERM_ENA_L; j 1282 drivers/scsi/FlashPoint.c WR_HARPOON(ioport + hp_bm_ctrl, j); j 1284 drivers/scsi/FlashPoint.c j = (RD_HARPOON(ioport + hp_ee_ctrl) & ~SCSI_TERM_ENA_H); j 1286 drivers/scsi/FlashPoint.c j |= SCSI_TERM_ENA_H; j 1287 drivers/scsi/FlashPoint.c WR_HARPOON(ioport + hp_ee_ctrl, j); j 7493 drivers/scsi/FlashPoint.c int i, j; j 7497 drivers/scsi/FlashPoint.c for (j = 0; j < 8; j++) { j 481 drivers/scsi/a100u2w.c u8 i, j; j 484 drivers/scsi/a100u2w.c for (j = 0; j < 8; j++) { j 485 drivers/scsi/a100u2w.c host->allocation_map[i][j] = 0xffffffff; j 4088 drivers/scsi/aacraid/aachba.c int j, nseg_new = nseg, err_found; j 4092 drivers/scsi/aacraid/aachba.c for (j = 1; j < nseg - 1; ++j) { j 4093 drivers/scsi/aacraid/aachba.c if (rio2->sge[j].length % (i*PAGE_SIZE)) { j 4097 drivers/scsi/aacraid/aachba.c nseg_new += (rio2->sge[j].length / (i*PAGE_SIZE)); j 4123 drivers/scsi/aacraid/aachba.c int i, j, pos; j 4134 drivers/scsi/aacraid/aachba.c for (j = 0; j < rio2->sge[i].length / (pages * PAGE_SIZE); ++j) { j 4135 drivers/scsi/aacraid/aachba.c addr_low = rio2->sge[i].addrLow + j * pages * PAGE_SIZE; j 2537 drivers/scsi/aacraid/commsup.c int j; j 2549 drivers/scsi/aacraid/commsup.c for (j = 0 ; j < i ; j++) j 2550 drivers/scsi/aacraid/commsup.c free_irq(pci_irq_vector(dev->pdev, j), j 2551 drivers/scsi/aacraid/commsup.c &(dev->aac_msix[j])); j 2445 drivers/scsi/advansys.c int j; j 2461 drivers/scsi/advansys.c for (j = 0; j < k; j++) { j 2463 drivers/scsi/advansys.c (unsigned)s[i + (j * 4)], j 2464 drivers/scsi/advansys.c (unsigned)s[i + (j * 4) + 1], j 2465 drivers/scsi/advansys.c (unsigned)s[i + (j * 4) + 2], j 2466 drivers/scsi/advansys.c (unsigned)s[i + (j * 4) + 3]); j 2474 drivers/scsi/advansys.c printk(" %2.2X", (unsigned)s[i + (j * 4)]); j 2478 drivers/scsi/advansys.c (unsigned)s[i + (j * 4)], j 2479 drivers/scsi/advansys.c (unsigned)s[i + (j * 4) + 1]); j 2483 drivers/scsi/advansys.c (unsigned)s[i + (j * 4) + 1], j 2484 drivers/scsi/advansys.c (unsigned)s[i + (j * 4) + 2], j 2485 drivers/scsi/advansys.c (unsigned)s[i + (j * 4) + 3]); j 4161 drivers/scsi/advansys.c int i, j, end, len = 0; j 4169 drivers/scsi/advansys.c for (j = 0; j < buf[i + 1]; j++) { j 4294 drivers/scsi/advansys.c int result, i, j; j 4332 drivers/scsi/advansys.c for (j = 0; j < SCSI_US_PER_MSEC; j++) { j 3065 drivers/scsi/aha152x.c int i, j, ok; j 3251 drivers/scsi/aha152x.c for (j = 0; j<ARRAY_SIZE(signatures) && !ok; j++) j 3252 drivers/scsi/aha152x.c ok = check_signature(p + signatures[j].sig_offset, j 3253 drivers/scsi/aha152x.c signatures[j].signature, signatures[j].sig_length); j 6182 drivers/scsi/aic7xxx/aic79xx_core.c int j; j 6184 drivers/scsi/aic7xxx/aic79xx_core.c for (j = 0; j < AHD_NUM_LUNS; j++) { j 6187 drivers/scsi/aic7xxx/aic79xx_core.c lstate = tstate->enabled_luns[j]; j 6350 drivers/scsi/aic7xxx/aic79xx_core.c int j; j 6354 drivers/scsi/aic7xxx/aic79xx_core.c for (j = 2; j < 64; j++) j 6355 drivers/scsi/aic7xxx/aic79xx_core.c ahd_outb(ahd, SCB_BASE+j, 0); j 8537 drivers/scsi/aic7xxx/aic79xx_core.c u_int i, j; j 8575 drivers/scsi/aic7xxx/aic79xx_core.c for (j = minlun;j < maxlun; j++) { j 8579 drivers/scsi/aic7xxx/aic79xx_core.c tcl = BUILD_TCL_RAW(i, 'A', j); j 8586 drivers/scsi/aic7xxx/aic79xx_core.c ahd_unbusy_tcl(ahd, BUILD_TCL_RAW(i, 'A', j)); j 1031 drivers/scsi/aic7xxx/aic79xx_osm.c int tags, i, j; j 1037 drivers/scsi/aic7xxx/aic79xx_osm.c for (j = 0; j < AHD_NUM_TARGETS; j++) { j 1038 drivers/scsi/aic7xxx/aic79xx_osm.c aic79xx_tag_info[i].tag_commands[j] = tags; j 4518 drivers/scsi/aic7xxx/aic7xxx_core.c int j; j 4520 drivers/scsi/aic7xxx/aic7xxx_core.c for (j = 0; j < AHC_NUM_LUNS; j++) { j 4523 drivers/scsi/aic7xxx/aic7xxx_core.c lstate = tstate->enabled_luns[j]; j 4719 drivers/scsi/aic7xxx/aic7xxx_core.c int j; j 4728 drivers/scsi/aic7xxx/aic7xxx_core.c for (j = 0; j < scbsize; j++) j 4729 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_outb(ahc, SCB_BASE+j, 0xFF); j 6305 drivers/scsi/aic7xxx/aic7xxx_core.c int i, j; j 6355 drivers/scsi/aic7xxx/aic7xxx_core.c for (j = minlun;j < maxlun; j++) { j 6359 drivers/scsi/aic7xxx/aic7xxx_core.c tcl = BUILD_TCL(i << 4, j); j 6366 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_unbusy_tcl(ahc, BUILD_TCL(i << 4, j)); j 909 drivers/scsi/aic7xxx/aic7xxx_osm.c int tags, i, j; j 915 drivers/scsi/aic7xxx/aic7xxx_osm.c for (j = 0; j < AHC_NUM_TARGETS; j++) { j 916 drivers/scsi/aic7xxx/aic7xxx_osm.c aic7xxx_tag_info[i].tag_commands[j] = tags; j 1338 drivers/scsi/aic7xxx/aic7xxx_pci.c int j; j 1340 drivers/scsi/aic7xxx/aic7xxx_pci.c j = i * 2; j 1341 drivers/scsi/aic7xxx/aic7xxx_pci.c *sc_data = ahc_inb(ahc, SRAM_BASE + j) j 1342 drivers/scsi/aic7xxx/aic7xxx_pci.c | ahc_inb(ahc, SRAM_BASE + j + 1) << 8; j 779 drivers/scsi/aic94xx/aic94xx_seq.c int j; j 783 drivers/scsi/aic94xx/aic94xx_seq.c for (j = 0; j < LSEQ_PAGE_SIZE; j += 4) j 784 drivers/scsi/aic94xx/aic94xx_seq.c asd_write_reg_dword(asd_ha, LmSCRATCH(lseq)+moffs+j,0); j 287 drivers/scsi/am53c974.c u8 carry_flag = 1, j = 0x80, bval; j 303 drivers/scsi/am53c974.c carry_flag = (cmd & j) ? 1 : 0; j 304 drivers/scsi/am53c974.c j >>= 1; j 700 drivers/scsi/arcmsr/arcmsr_hba.c int i = 0, j = 0; j 708 drivers/scsi/arcmsr/arcmsr_hba.c for (j = 0; j < ARCMSR_MAX_TARGETLUN; j++) j 709 drivers/scsi/arcmsr/arcmsr_hba.c acb->devstate[i][j] = ARECA_RAID_GONE; j 122 drivers/scsi/atp870u.c unsigned char i, j, c, target_id, lun,cmdp; j 133 drivers/scsi/atp870u.c j = atp_readb_io(dev, c, 0x1f); j 134 drivers/scsi/atp870u.c if ((j & 0x80) != 0) j 138 drivers/scsi/atp870u.c if ((j & 0x80) == 0) j 178 drivers/scsi/atp870u.c if ((j & 0x40) != 0) { j 185 drivers/scsi/atp870u.c dev->r1f[c][target_id] |= j; j 316 drivers/scsi/atp870u.c j = atp_readb_base(dev, 0x29) & 0xfe; j 317 drivers/scsi/atp870u.c atp_writeb_base(dev, 0x29, j); j 352 drivers/scsi/atp870u.c j = target_id; j 354 drivers/scsi/atp870u.c j = (j & 0x07) | 0x40; j 357 drivers/scsi/atp870u.c j |= dev->id[c][target_id].dirct; j 358 drivers/scsi/atp870u.c atp_writeb_io(dev, c, 0x15, j); j 380 drivers/scsi/atp870u.c j = 0; j 387 drivers/scsi/atp870u.c j |= 0x01; j 389 drivers/scsi/atp870u.c atp_writeb_io(dev, c, 0x1b, j); j 390 drivers/scsi/atp870u.c while ((atp_readb_io(dev, c, 0x1b) & 0x01) != j) j 391 drivers/scsi/atp870u.c atp_writeb_io(dev, c, 0x1b, j); j 475 drivers/scsi/atp870u.c j = atp_readb_base(dev, 0x29) | 0x01; j 476 drivers/scsi/atp870u.c atp_writeb_base(dev, 0x29, j); j 685 drivers/scsi/atp870u.c unsigned char j, target_id; j 718 drivers/scsi/atp870u.c j = dev->quhd[c]; j 724 drivers/scsi/atp870u.c dev->quhd[c] = j; j 751 drivers/scsi/atp870u.c j = atp_readb_base(dev, 0x29) & 0xfe; j 752 drivers/scsi/atp870u.c atp_writeb_base(dev, 0x29, j); j 764 drivers/scsi/atp870u.c j = 0; j 773 drivers/scsi/atp870u.c j |= 0x01; j 775 drivers/scsi/atp870u.c atp_writeb_io(dev, c, 0x1b, j); j 776 drivers/scsi/atp870u.c while ((atp_readb_io(dev, c, 0x1b) & 0x01) != j) { j 777 drivers/scsi/atp870u.c atp_writeb_pci(dev, c, 0x1b, j); j 810 drivers/scsi/atp870u.c j = target_id; j 811 drivers/scsi/atp870u.c dev->id[c][j].last_len = l; j 812 drivers/scsi/atp870u.c dev->id[c][j].tran_len = 0; j 814 drivers/scsi/atp870u.c printk("dev->id[%2d][%2d].last_len = %d\n",c,j,dev->id[c][j].last_len); j 819 drivers/scsi/atp870u.c if ((j & 0x08) != 0) { j 820 drivers/scsi/atp870u.c j = (j & 0x07) | 0x40; j 826 drivers/scsi/atp870u.c atp_writeb_io(dev, c, 0x15, j | 0x20); j 828 drivers/scsi/atp870u.c atp_writeb_io(dev, c, 0x15, j); j 854 drivers/scsi/atp870u.c scsi_for_each_sg(workreq, sgpnt, sg_count, j) { j 887 drivers/scsi/atp870u.c j = atp_readb_pci(dev, c, 1) & 0xf3; j 890 drivers/scsi/atp870u.c j |= 0x0c; j 892 drivers/scsi/atp870u.c atp_writeb_pci(dev, c, 1, j); j 936 drivers/scsi/atp870u.c unsigned char j; j 941 drivers/scsi/atp870u.c j = (unsigned char) (k >> 8); j 963 drivers/scsi/atp870u.c return j; j 969 drivers/scsi/atp870u.c unsigned char i, j, k; j 994 drivers/scsi/atp870u.c j = 16; j 997 drivers/scsi/atp870u.c j = 8; j 1008 drivers/scsi/atp870u.c for (i = 0; i < j; i++) { j 1110 drivers/scsi/atp870u.c j = 0; j 1121 drivers/scsi/atp870u.c mbuf[j] <<= 0x01; j 1122 drivers/scsi/atp870u.c mbuf[j] &= 0xfe; j 1124 drivers/scsi/atp870u.c mbuf[j] |= 0x01; j 1128 drivers/scsi/atp870u.c j++; j 1136 drivers/scsi/atp870u.c j = mbuf[0]; j 1137 drivers/scsi/atp870u.c if ((j & 0x20) != 0) { /* bit5=1:ID up to 7 */ j 1140 drivers/scsi/atp870u.c if ((j & 0x06) != 0) { /* IDvalid? */ j 1191 drivers/scsi/atp870u.c int j, k; j 1192 drivers/scsi/atp870u.c for (j=0; j < 2; j++) { j 1194 drivers/scsi/atp870u.c if (!atp_dev->id[j][k].prd_table) j 1196 drivers/scsi/atp870u.c dma_free_coherent(&atp_dev->pdev->dev, 1024, atp_dev->id[j][k].prd_table, atp_dev->id[j][k].prd_bus); j 1197 drivers/scsi/atp870u.c atp_dev->id[j][k].prd_table = NULL; j 1587 drivers/scsi/atp870u.c unsigned char j, k, c; j 1598 drivers/scsi/atp870u.c for (j = 0; j < 0x18; j++) { j 1599 drivers/scsi/atp870u.c printk(" r%2x=%2x", j, atp_readb_io(dev, c, j)); j 1605 drivers/scsi/atp870u.c for(j=0;j<16;j++) { j 1606 drivers/scsi/atp870u.c if (dev->id[c][j].curr_req != NULL) { j 1607 drivers/scsi/atp870u.c workrequ = dev->id[c][j].curr_req; j 1612 drivers/scsi/atp870u.c printk(" last_lenu= %x ",(unsigned int)dev->id[c][j].last_len); j 1714 drivers/scsi/atp870u.c unsigned char i, j, k, rmb, n; j 1753 drivers/scsi/atp870u.c j = i; j 1754 drivers/scsi/atp870u.c if ((j & 0x08) != 0) { j 1755 drivers/scsi/atp870u.c j = (j & 0x07) | 0x40; j 1757 drivers/scsi/atp870u.c atp_writeb_io(dev, c, 0x15, j); j 1783 drivers/scsi/atp870u.c j = atp_readb_io(dev, c, 0x17); j 1784 drivers/scsi/atp870u.c if (j != 0x16) { j 1815 drivers/scsi/atp870u.c j = 0; j 1819 drivers/scsi/atp870u.c mbuf[j++] = atp_readb_io(dev, c, 0x19); j 1825 drivers/scsi/atp870u.c j = atp_readb_io(dev, c, 0x17); j 1826 drivers/scsi/atp870u.c if (j == 0x16) { j 1891 drivers/scsi/atp870u.c j = 0; j 1897 drivers/scsi/atp870u.c atp_writeb_io(dev, c, 0x19, u3[j++]); j 1904 drivers/scsi/atp870u.c j = atp_readb_io(dev, c, 0x17) & 0x0f; j 1905 drivers/scsi/atp870u.c if (j == 0x0f) { j 1908 drivers/scsi/atp870u.c if (j == 0x0a) { j 1911 drivers/scsi/atp870u.c if (j == 0x0e) { j 1922 drivers/scsi/atp870u.c j = atp_readb_io(dev, c, 0x17) & 0x0f; j 1923 drivers/scsi/atp870u.c if (j == 0x0f) { j 1926 drivers/scsi/atp870u.c if (j == 0x0a) { j 1929 drivers/scsi/atp870u.c if (j == 0x0e) { j 1938 drivers/scsi/atp870u.c j = atp_readb_io(dev, c, 0x1f); j 1939 drivers/scsi/atp870u.c if ((j & 0x01) != 0) { j 1943 drivers/scsi/atp870u.c if ((j & 0x80) == 0x00) { j 1946 drivers/scsi/atp870u.c j = atp_readb_io(dev, c, 0x17) & 0x0f; j 1947 drivers/scsi/atp870u.c if (j == 0x0f) { j 1950 drivers/scsi/atp870u.c if (j == 0x0a) { j 1953 drivers/scsi/atp870u.c if (j == 0x0e) { j 1964 drivers/scsi/atp870u.c j = atp_readb_io(dev, c, 0x17); j 1965 drivers/scsi/atp870u.c if (j != 0x16) { j 1966 drivers/scsi/atp870u.c if (j == 0x4e) { j 2015 drivers/scsi/atp870u.c j = 0; j 2021 drivers/scsi/atp870u.c atp_writeb_io(dev, c, 0x19, wide[j++]); j 2028 drivers/scsi/atp870u.c j = atp_readb_io(dev, c, 0x17) & 0x0f; j 2029 drivers/scsi/atp870u.c if (j == 0x0f) { j 2032 drivers/scsi/atp870u.c if (j == 0x0a) { j 2035 drivers/scsi/atp870u.c if (j == 0x0e) { j 2046 drivers/scsi/atp870u.c j = atp_readb_io(dev, c, 0x17) & 0x0f; j 2047 drivers/scsi/atp870u.c if (j == 0x0f) { j 2050 drivers/scsi/atp870u.c if (j == 0x0a) { j 2053 drivers/scsi/atp870u.c if (j == 0x0e) { j 2062 drivers/scsi/atp870u.c j = atp_readb_io(dev, c, 0x1f); j 2063 drivers/scsi/atp870u.c if ((j & 0x01) != 0) { j 2067 drivers/scsi/atp870u.c if ((j & 0x80) == 0x00) { j 2070 drivers/scsi/atp870u.c j = atp_readb_io(dev, c, 0x17) & 0x0f; j 2071 drivers/scsi/atp870u.c if (j == 0x0f) { j 2074 drivers/scsi/atp870u.c if (j == 0x0a) { j 2077 drivers/scsi/atp870u.c if (j == 0x0e) { j 2089 drivers/scsi/atp870u.c j = atp_readb_io(dev, c, 0x17); j 2090 drivers/scsi/atp870u.c if (j != 0x16) { j 2091 drivers/scsi/atp870u.c if (j == 0x4e) { j 2130 drivers/scsi/atp870u.c j = 0; j 2132 drivers/scsi/atp870u.c j |= 0x01; j 2134 drivers/scsi/atp870u.c atp_writeb_io(dev, c, 0x1b, j); j 2158 drivers/scsi/atp870u.c j = 0; j 2167 drivers/scsi/atp870u.c atp_writeb_io(dev, c, 0x19, synuw[j++]); j 2169 drivers/scsi/atp870u.c atp_writeb_io(dev, c, 0x19, synw[j++]); j 2172 drivers/scsi/atp870u.c atp_writeb_io(dev, c, 0x19, synw_870[j++]); j 2175 drivers/scsi/atp870u.c atp_writeb_io(dev, c, 0x19, synu[j++]); j 2177 drivers/scsi/atp870u.c atp_writeb_io(dev, c, 0x19, synn[j++]); j 2186 drivers/scsi/atp870u.c j = atp_readb_io(dev, c, 0x17) & 0x0f; j 2187 drivers/scsi/atp870u.c if (j == 0x0f) { j 2190 drivers/scsi/atp870u.c if (j == 0x0a) { j 2193 drivers/scsi/atp870u.c if (j == 0x0e) { j 2204 drivers/scsi/atp870u.c j = atp_readb_io(dev, c, 0x17); j 2205 drivers/scsi/atp870u.c if (j == 0x85) { j 2208 drivers/scsi/atp870u.c j &= 0x0f; j 2209 drivers/scsi/atp870u.c if (j == 0x0f) { j 2212 drivers/scsi/atp870u.c if (j == 0x0a) { j 2215 drivers/scsi/atp870u.c if (j == 0x0e) { j 2227 drivers/scsi/atp870u.c j = atp_readb_io(dev, c, 0x1f); j 2228 drivers/scsi/atp870u.c if ((j & 0x01) != 0x00) { j 2232 drivers/scsi/atp870u.c if ((j & 0x80) == 0x00) { j 2238 drivers/scsi/atp870u.c j = atp_readb_io(dev, c, 0x17); j 2239 drivers/scsi/atp870u.c if (j == 0x85) { j 2242 drivers/scsi/atp870u.c j &= 0x0f; j 2243 drivers/scsi/atp870u.c if (j == 0x0f) { j 2246 drivers/scsi/atp870u.c if (j == 0x0a) { j 2249 drivers/scsi/atp870u.c if (j == 0x0e) { j 2262 drivers/scsi/atp870u.c j = atp_readb_io(dev, c, 0x17); j 2263 drivers/scsi/atp870u.c if (j != 0x16) { j 2290 drivers/scsi/atp870u.c j = 0xb0; j 2294 drivers/scsi/atp870u.c j = 0xa0; j 2298 drivers/scsi/atp870u.c j = 0x20; j 2302 drivers/scsi/atp870u.c j = 0x40; j 2306 drivers/scsi/atp870u.c j = 0x50; j 2309 drivers/scsi/atp870u.c j = 0x60; j 2311 drivers/scsi/atp870u.c dev->id[c][i].devsp = (dev->id[c][i].devsp & 0x0f) | j; j 808 drivers/scsi/be2iscsi/be_main.c int ret, i, j; j 863 drivers/scsi/be2iscsi/be_main.c for (j = i - 1; j >= 0; j--) { j 864 drivers/scsi/be2iscsi/be_main.c free_irq(pci_irq_vector(pcidev, i), &phwi_context->be_eq[j]); j 865 drivers/scsi/be2iscsi/be_main.c kfree(phba->msi_name[j]); j 2455 drivers/scsi/be2iscsi/be_main.c unsigned int i, j, alloc_size, curr_alloc_size; j 2497 drivers/scsi/be2iscsi/be_main.c j = 0; j 2523 drivers/scsi/be2iscsi/be_main.c j++; j 2527 drivers/scsi/be2iscsi/be_main.c mem_descr->num_elements = j; j 2529 drivers/scsi/be2iscsi/be_main.c mem_descr->mem_array = kmalloc_array(j, sizeof(*mem_arr), j 2535 drivers/scsi/be2iscsi/be_main.c sizeof(struct mem_array) * j); j 2541 drivers/scsi/be2iscsi/be_main.c mem_descr->num_elements = j; j 2542 drivers/scsi/be2iscsi/be_main.c while ((i) || (j)) { j 2543 drivers/scsi/be2iscsi/be_main.c for (j = mem_descr->num_elements; j > 0; j--) { j 2545 drivers/scsi/be2iscsi/be_main.c mem_descr->mem_array[j - 1].size, j 2546 drivers/scsi/be2iscsi/be_main.c mem_descr->mem_array[j - 1]. j 2549 drivers/scsi/be2iscsi/be_main.c mem_array[j - 1]. j 2605 drivers/scsi/be2iscsi/be_main.c unsigned int num_cxn_wrb = 0, j, idx = 0, index; j 2658 drivers/scsi/be2iscsi/be_main.c for (j = 0; j < phba->params.wrbs_per_cxn; j++) { j 2659 drivers/scsi/be2iscsi/be_main.c pwrb_context->pwrb_handle_base[j] = pwrb_handle; j 2660 drivers/scsi/be2iscsi/be_main.c pwrb_context->pwrb_handle_basestd[j] = j 2663 drivers/scsi/be2iscsi/be_main.c pwrb_handle->wrb_index = j; j 2682 drivers/scsi/be2iscsi/be_main.c for (j = 0; j < phba->params.wrbs_per_cxn; j++) { j 2683 drivers/scsi/be2iscsi/be_main.c pwrb_handle = pwrb_context->pwrb_handle_base[j]; j 2692 drivers/scsi/be2iscsi/be_main.c for (j = index; j > 0; j--) { j 2693 drivers/scsi/be2iscsi/be_main.c pwrb_context = &phwi_ctrlr->wrb_context[j]; j 3858 drivers/scsi/be2iscsi/be_main.c int i, j; j 3862 drivers/scsi/be2iscsi/be_main.c j = 0; j 3864 drivers/scsi/be2iscsi/be_main.c for (j = mem_descr->num_elements; j > 0; j--) { j 3866 drivers/scsi/be2iscsi/be_main.c mem_descr->mem_array[j - 1].size, j 3867 drivers/scsi/be2iscsi/be_main.c mem_descr->mem_array[j - 1].virtual_address, j 3868 drivers/scsi/be2iscsi/be_main.c (unsigned long)mem_descr->mem_array[j - 1]. j 1111 drivers/scsi/bfa/bfa_fcpim.c int i, j; j 1132 drivers/scsi/bfa/bfa_fcpim.c for (j = 0; j < BFA_IOBUCKET_MAX; j++) j 1133 drivers/scsi/bfa/bfa_fcpim.c itnim->ioprofile.io_latency.min[j] = ~0; j 1486 drivers/scsi/bfa/bfa_fcpim.c int j; j 1493 drivers/scsi/bfa/bfa_fcpim.c for (j = 0; j < BFA_IOBUCKET_MAX; j++) j 1494 drivers/scsi/bfa/bfa_fcpim.c itnim->ioprofile.io_latency.min[j] = ~0; j 1289 drivers/scsi/bfa/bfa_fcs_lport.c int i = 0, j = 0, bit = 0, alpa_bit = 0; j 1298 drivers/scsi/bfa/bfa_fcs_lport.c for (j = 0, alpa_bit = 0; j < 8; j++, alpa_bit++) { j 1300 drivers/scsi/bfa/bfa_fcs_lport.c bit = (fcport->alpabm.alpa_bm[i] & (1 << (7 - j))); j 5621 drivers/scsi/bfa/bfa_fcs_lport.c int i = 0, j; j 5641 drivers/scsi/bfa/bfa_fcs_lport.c for (j = 0; j < i; j++) { j 5642 drivers/scsi/bfa/bfa_fcs_lport.c if (rscn->event[j].portid == rscn_pid) { j 3263 drivers/scsi/bfa/bfa_ioc.c int i, j; j 3268 drivers/scsi/bfa/bfa_ioc.c for (j = 0; j < BFA_ABLK_MAX_PFS; j++) { j 3269 drivers/scsi/bfa/bfa_ioc.c be16 = cfg_inst->pf_cfg[j].pers; j 3270 drivers/scsi/bfa/bfa_ioc.c cfg_inst->pf_cfg[j].pers = be16_to_cpu(be16); j 3271 drivers/scsi/bfa/bfa_ioc.c be16 = cfg_inst->pf_cfg[j].num_qpairs; j 3272 drivers/scsi/bfa/bfa_ioc.c cfg_inst->pf_cfg[j].num_qpairs = be16_to_cpu(be16); j 3273 drivers/scsi/bfa/bfa_ioc.c be16 = cfg_inst->pf_cfg[j].num_vectors; j 3274 drivers/scsi/bfa/bfa_ioc.c cfg_inst->pf_cfg[j].num_vectors = be16_to_cpu(be16); j 3275 drivers/scsi/bfa/bfa_ioc.c be16 = cfg_inst->pf_cfg[j].bw_min; j 3276 drivers/scsi/bfa/bfa_ioc.c cfg_inst->pf_cfg[j].bw_min = be16_to_cpu(be16); j 3277 drivers/scsi/bfa/bfa_ioc.c be16 = cfg_inst->pf_cfg[j].bw_max; j 3278 drivers/scsi/bfa/bfa_ioc.c cfg_inst->pf_cfg[j].bw_max = be16_to_cpu(be16); j 1181 drivers/scsi/bfa/bfad.c int j; j 1183 drivers/scsi/bfa/bfad.c for (j = 0; j < i; j++) j 1184 drivers/scsi/bfa/bfad.c free_irq(bfad->msix_tab[j].msix.vector, j 1185 drivers/scsi/bfa/bfad.c &bfad->msix_tab[j]); j 1360 drivers/scsi/csiostor/csio_hw.c int i, j = 0; j 1426 drivers/scsi/csiostor/csio_hw.c while ((hw->port_vec & (1 << j)) == 0) j 1427 drivers/scsi/csiostor/csio_hw.c j++; j 1428 drivers/scsi/csiostor/csio_hw.c hw->pport[i].portid = j++; j 262 drivers/scsi/csiostor/csio_init.c int i, j; j 301 drivers/scsi/csiostor/csio_init.c for (j = 0; j < info->max_cpus; j++) { j 302 drivers/scsi/csiostor/csio_init.c struct csio_scsi_qset *sqset = &hw->sqset[i][j]; j 309 drivers/scsi/csiostor/csio_init.c i, j, rv); j 317 drivers/scsi/csiostor/csio_init.c i, j, rv); j 339 drivers/scsi/csiostor/csio_init.c int i, j, idx, k = 0; j 407 drivers/scsi/csiostor/csio_init.c for (j = 0; j < hw->num_scsi_msix_cpus; j++) { j 408 drivers/scsi/csiostor/csio_init.c sqset = &hw->sqset[i][j]; j 410 drivers/scsi/csiostor/csio_init.c if (j >= info->max_cpus) { j 411 drivers/scsi/csiostor/csio_init.c k = j % info->max_cpus; j 383 drivers/scsi/csiostor/csio_isr.c int rv, i, j, k = 0; j 426 drivers/scsi/csiostor/csio_isr.c for (j = 0; j < info->max_cpus; j++, k++) { j 427 drivers/scsi/csiostor/csio_isr.c struct csio_scsi_qset *sqset = &hw->sqset[i][j]; j 499 drivers/scsi/csiostor/csio_isr.c int i, j, k, n, min, cnt; j 539 drivers/scsi/csiostor/csio_isr.c for (j = 0; j < hw->num_scsi_msix_cpus; j++) { j 540 drivers/scsi/csiostor/csio_isr.c n = (j % info->max_cpus) + k; j 541 drivers/scsi/csiostor/csio_isr.c hw->sqset[i][j].intr_idx = n; j 1689 drivers/scsi/csiostor/csio_wr.c uint32_t j; j 1700 drivers/scsi/csiostor/csio_wr.c for (j = 0; j < q->credits; j++) { j 1701 drivers/scsi/csiostor/csio_wr.c buf = &q->un.fl.bufs[j]; j 1638 drivers/scsi/cxlflash/main.c int ro_start, ro_size, i, j, k; j 1667 drivers/scsi/cxlflash/main.c j = ro_size; j 1669 drivers/scsi/cxlflash/main.c if (unlikely((i + j) > vpd_size)) { j 1671 drivers/scsi/cxlflash/main.c __func__, (i + j), vpd_size); j 1690 drivers/scsi/cxlflash/main.c j = ro_size; j 1693 drivers/scsi/cxlflash/main.c i = pci_vpd_find_info_keyword(vpd_data, i, j, wwpn_vpd_tags[k]); j 1702 drivers/scsi/cxlflash/main.c j = pci_vpd_info_field_size(&vpd_data[i]); j 1704 drivers/scsi/cxlflash/main.c if (unlikely((i + j > vpd_size) || (j != WWPN_LEN))) { j 1780 drivers/scsi/cxlflash/main.c int j; j 1849 drivers/scsi/cxlflash/main.c for (j = 0; j < hwq->num_irqs; j++) { j 1850 drivers/scsi/cxlflash/main.c reg = cfg->ops->get_irq_objhndl(ctx, j); j 1851 drivers/scsi/cxlflash/main.c writeq_be(reg, &hwq->ctrl_map->lisn_ea[j]); j 1104 drivers/scsi/cxlflash/vlun.c int j; j 1170 drivers/scsi/cxlflash/vlun.c for (j = 0; j < i; j++) { j 1171 drivers/scsi/cxlflash/vlun.c aun = (lxt[j].rlba_base >> MC_CHUNK_SHIFT); j 1209 drivers/scsi/cxlflash/vlun.c int i, j; j 1307 drivers/scsi/cxlflash/vlun.c for (j = 0; j < i; j++) { j 1308 drivers/scsi/cxlflash/vlun.c release.rsrc_handle = j; j 1040 drivers/scsi/dpt_i2o.c int j; j 1095 drivers/scsi/dpt_i2o.c for(j = 0; j < MAX_ID; j++){ j 1096 drivers/scsi/dpt_i2o.c if(pHba->channel[i].device[j] != NULL){ j 1097 drivers/scsi/dpt_i2o.c for(pDev = pHba->channel[i].device[j]; pDev; pDev = pNext){ j 1782 drivers/scsi/dpt_i2o.c u32 j; j 1809 drivers/scsi/dpt_i2o.c for (j = 0; j < sg_count; j++) { j 1811 drivers/scsi/dpt_i2o.c if(! (sg[j].flag_count & 0x4000000 /*I2O_SGL_FLAGS_DIR*/)) { j 1812 drivers/scsi/dpt_i2o.c sg_size = sg[j].flag_count & 0xffffff; j 1814 drivers/scsi/dpt_i2o.c if (copy_to_user((void __user *)(ulong)sg[j].addr_bus,sg_list[j], sg_size)) { j 1815 drivers/scsi/dpt_i2o.c printk(KERN_WARNING"%s: Could not copy %p TO user %x\n",pHba->name, sg_list[j], sg[j].addr_bus); j 1394 drivers/scsi/esas2r/esas2r_flash.c u8 j; j 1475 drivers/scsi/esas2r/esas2r_flash.c for (j = 0, ch = fi->cmp_hdr; j 1476 drivers/scsi/esas2r/esas2r_flash.c j < fi->num_comps; j 1477 drivers/scsi/esas2r/esas2r_flash.c j++, ch++) { j 1478 drivers/scsi/esas2r/esas2r_flash.c ch->img_type = j; j 598 drivers/scsi/fcoe/fcoe_transport.c int i, j; j 601 drivers/scsi/fcoe/fcoe_transport.c i = j = sprintf(buffer, "Attached FCoE transports:"); j 609 drivers/scsi/fcoe/fcoe_transport.c if (i == j) j 732 drivers/scsi/fnic/fnic_trace.c int len = 0, j; j 764 drivers/scsi/fnic/fnic_trace.c for (j = 0; j < FC_TRC_SIZE_BYTES; j++) { j 767 drivers/scsi/fnic/fnic_trace.c - len, "%02x", fc_trace[j] & 0xff); j 799 drivers/scsi/fnic/fnic_trace.c int j, i = 1, len; j 823 drivers/scsi/fnic/fnic_trace.c for (j = 0; j < min_t(u8, tdata->frame_len, j 824 drivers/scsi/fnic/fnic_trace.c (u8)(FC_TRC_SIZE_BYTES - FC_TRC_HEADER_SIZE)); j++) { j 827 drivers/scsi/fnic/fnic_trace.c max_size - len, "%c", fc_trace[j]); j 830 drivers/scsi/fnic/fnic_trace.c max_size - len, "%02x", fc_trace[j] & 0xff); j 833 drivers/scsi/fnic/fnic_trace.c if (j == ethhdr_len || j 834 drivers/scsi/fnic/fnic_trace.c j == ethhdr_len + fcoehdr_len || j 835 drivers/scsi/fnic/fnic_trace.c j == ethhdr_len + fcoehdr_len + fchdr_len || j 836 drivers/scsi/fnic/fnic_trace.c (i > 3 && j%fchdr_len == 0)) { j 30 drivers/scsi/fnic/vnic_rq.c unsigned int i, j, count = rq->ring.desc_count; j 43 drivers/scsi/fnic/vnic_rq.c for (j = 0; j < VNIC_RQ_BUF_BLK_ENTRIES; j++) { j 44 drivers/scsi/fnic/vnic_rq.c buf->index = i * VNIC_RQ_BUF_BLK_ENTRIES + j; j 50 drivers/scsi/fnic/vnic_rq.c } else if (j + 1 == VNIC_RQ_BUF_BLK_ENTRIES) { j 50 drivers/scsi/fnic/vnic_wq.c unsigned int i, j, count = wq->ring.desc_count; j 63 drivers/scsi/fnic/vnic_wq.c for (j = 0; j < VNIC_WQ_BUF_BLK_ENTRIES; j++) { j 64 drivers/scsi/fnic/vnic_wq.c buf->index = i * VNIC_WQ_BUF_BLK_ENTRIES + j; j 70 drivers/scsi/fnic/vnic_wq.c } else if (j + 1 == VNIC_WQ_BUF_BLK_ENTRIES) { j 1034 drivers/scsi/gdth.c u32 i,j; j 1035 drivers/scsi/gdth.c for (i=0,j=0; j<GDTH_MAXCMDS; ++j) { j 1036 drivers/scsi/gdth.c if (ha->cmd_tab[j].cmnd != UNUSED_CMND) j 1165 drivers/scsi/gdth.c u32 bus_no, drv_cnt, drv_no, j; j 1327 drivers/scsi/gdth.c for (j = 0; j < ha->raw[bus_no].pdev_cnt; ++j) j 1328 drivers/scsi/gdth.c ha->raw[bus_no].id_list[j] = drl->sc_list[j]; j 1341 drivers/scsi/gdth.c for (j = 0; j < drv_cnt; ++j) { j 1342 drivers/scsi/gdth.c drv_no = ((u32 *)ha->pscratch)[j]; j 1357 drivers/scsi/gdth.c for (j = 0; j < alst->entries_init; ++j) { j 1358 drivers/scsi/gdth.c ha->hdr[j].is_arraydrv = alst->list[j].is_arrayd; j 1359 drivers/scsi/gdth.c ha->hdr[j].is_master = alst->list[j].is_master; j 1360 drivers/scsi/gdth.c ha->hdr[j].is_parity = alst->list[j].is_parity; j 1361 drivers/scsi/gdth.c ha->hdr[j].is_hotfix = alst->list[j].is_hotfix; j 1362 drivers/scsi/gdth.c ha->hdr[j].master_no = alst->list[j].cd_handle; j 1367 drivers/scsi/gdth.c for (j = 0; j < 35; ++j) { j 1368 drivers/scsi/gdth.c alst2 = &((gdth_alist_str *)ha->pscratch)[j]; j 1369 drivers/scsi/gdth.c ha->hdr[j].is_arraydrv = alst2->is_arrayd; j 1370 drivers/scsi/gdth.c ha->hdr[j].is_master = alst2->is_master; j 1371 drivers/scsi/gdth.c ha->hdr[j].is_parity = alst2->is_parity; j 1372 drivers/scsi/gdth.c ha->hdr[j].is_hotfix = alst2->is_hotfix; j 1373 drivers/scsi/gdth.c ha->hdr[j].master_no = alst2->cd_handle; j 3071 drivers/scsi/gdth.c int i,j; j 3089 drivers/scsi/gdth.c for (j=0,i=1; i < f[0]; i+=2) { j 3092 drivers/scsi/gdth.c stack.b[j++] = *(u32*)&dvr->eu.stream[(int)f[i]]; j 3095 drivers/scsi/gdth.c stack.b[j++] = *(u16*)&dvr->eu.stream[(int)f[i]]; j 3098 drivers/scsi/gdth.c stack.b[j++] = *(u8*)&dvr->eu.stream[(int)f[i]]; j 3487 drivers/scsi/gdth.c u8 i, j; j 3498 drivers/scsi/gdth.c j = ldrv.drives[i]; j 3499 drivers/scsi/gdth.c if (j >= MAX_HDRIVES || !ha->hdr[j].present) j 3503 drivers/scsi/gdth.c ha->hdr[j].lock = 1; j 3505 drivers/scsi/gdth.c gdth_wait_completion(ha, ha->bus_cnt, j); j 3508 drivers/scsi/gdth.c ha->hdr[j].lock = 0; j 3956 drivers/scsi/gdth.c u8 i, j; j 3968 drivers/scsi/gdth.c for (j = 0; j < ha->tid_cnt; ++j) j 3969 drivers/scsi/gdth.c gdth_wait_completion(ha, i, j); j 3974 drivers/scsi/gdth.c for (j = 0; j < ha->tid_cnt; ++j) j 155 drivers/scsi/gdth_proc.c int id, i, j, k, sec, flag; j 264 drivers/scsi/gdth_proc.c for (j = 0; j < ha->raw[i].pdev_cnt; ++j) { j 267 drivers/scsi/gdth_proc.c i, ha->raw[i].id_list[j])); j 275 drivers/scsi/gdth_proc.c ha->raw[i].address | ha->raw[i].id_list[j]; j 313 drivers/scsi/gdth_proc.c i, ha->raw[i].id_list[j])); j 321 drivers/scsi/gdth_proc.c ha->raw[i].address | ha->raw[i].id_list[j]; j 344 drivers/scsi/gdth_proc.c j = k = 0; j 359 drivers/scsi/gdth_proc.c j++; j 366 drivers/scsi/gdth_proc.c k++; j--; j 404 drivers/scsi/gdth_proc.c no_mdrv - j - k, k); j 497 drivers/scsi/gdth_proc.c for (j = 0; j < phg->entries; ++j) { j 498 drivers/scsi/gdth_proc.c k = phg->entry[j].host_drive; j 501 drivers/scsi/gdth_proc.c ha->hdr[k].ldr_no = phg->entry[j].log_drive; j 502 drivers/scsi/gdth_proc.c ha->hdr[k].rw_attribs = phg->entry[j].rw_attribs; j 503 drivers/scsi/gdth_proc.c ha->hdr[k].start_sec = phg->entry[j].start_sec; j 2270 drivers/scsi/hisi_sas/hisi_sas_main.c int i, s, j, max_command_entries = HISI_SAS_MAX_COMMANDS; j 2279 drivers/scsi/hisi_sas/hisi_sas_main.c for (j = 0; j < HISI_SAS_QUEUE_SLOTS; j++) j 2280 drivers/scsi/hisi_sas/hisi_sas_main.c memset(&cmd_hdr[j], 0, s); j 2299 drivers/scsi/hisi_sas/hisi_sas_main.c for (j = 0; j < HISI_SAS_MAX_ITCT_ENTRIES; j++) j 2300 drivers/scsi/hisi_sas/hisi_sas_main.c memset(&sata_breakpoint[j], 0, s); j 2307 drivers/scsi/hisi_sas/hisi_sas_main.c int i, j, s, max_command_entries = HISI_SAS_MAX_COMMANDS; j 2389 drivers/scsi/hisi_sas/hisi_sas_main.c for (j = 0; j < slots_per_blk; j++, slot_index++) { j 2713 drivers/scsi/hisi_sas/hisi_sas_main.c int j; j 2718 drivers/scsi/hisi_sas/hisi_sas_main.c for (j = 0; j < HISI_SAS_QUEUE_SLOTS; j++) j 2719 drivers/scsi/hisi_sas/hisi_sas_main.c memcpy(&debugfs_cmd_hdr[j], &cmd_hdr[j], j 1640 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c int i, j, irq, rc, idx; j 1646 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c for (j = 0; j < HISI_SAS_PHY_INT_NR; j++, idx++) { j 1654 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c rc = devm_request_irq(dev, irq, phy_interrupts[j], 0, j 1461 drivers/scsi/hpsa.c int i, j; j 1466 drivers/scsi/hpsa.c for (j = i; j < h->ndevices-1; j++) j 1467 drivers/scsi/hpsa.c h->dev[j] = h->dev[j+1]; j 1690 drivers/scsi/hpsa.c int i, j; j 1710 drivers/scsi/hpsa.c for (j = 0; j < ndevices; j++) { j 1711 drivers/scsi/hpsa.c if (dev[j] == NULL) j 1713 drivers/scsi/hpsa.c if (dev[j]->devtype != TYPE_DISK && j 1714 drivers/scsi/hpsa.c dev[j]->devtype != TYPE_ZBC) j 1716 drivers/scsi/hpsa.c if (is_logical_device(dev[j])) j 1718 drivers/scsi/hpsa.c if (dev[j]->ioaccel_handle != dd[i].ioaccel_handle) j 1721 drivers/scsi/hpsa.c logical_drive->phys_disk[i] = dev[j]; j 8077 drivers/scsi/hpsa.c int j; j 8082 drivers/scsi/hpsa.c for (j = 0; j < i; j++) { j 8083 drivers/scsi/hpsa.c free_irq(pci_irq_vector(h->pdev, j), &h->q[j]); j 8084 drivers/scsi/hpsa.c h->q[j] = 0; j 8086 drivers/scsi/hpsa.c for (; j < MAX_REPLY_QUEUES; j++) j 8087 drivers/scsi/hpsa.c h->q[j] = 0; j 9094 drivers/scsi/hpsa.c int i, j, b, size; j 9102 drivers/scsi/hpsa.c for (j = 0; j < num_buckets; j++) { j 9103 drivers/scsi/hpsa.c if (bucket[j] >= size) { j 9104 drivers/scsi/hpsa.c b = j; j 2038 drivers/scsi/ipr.c int i, j; j 2047 drivers/scsi/ipr.c for (j = 0; j < ARRAY_SIZE(path_state_desc); j++) { j 2048 drivers/scsi/ipr.c if (path_state_desc[j].state != state) j 2053 drivers/scsi/ipr.c path_active_desc[i].desc, path_state_desc[j].desc, j 2057 drivers/scsi/ipr.c path_active_desc[i].desc, path_state_desc[j].desc, j 2061 drivers/scsi/ipr.c path_active_desc[i].desc, path_state_desc[j].desc, j 2065 drivers/scsi/ipr.c path_active_desc[i].desc, path_state_desc[j].desc, j 2087 drivers/scsi/ipr.c int i, j; j 2097 drivers/scsi/ipr.c for (j = 0; j < ARRAY_SIZE(path_state_desc); j++) { j 2098 drivers/scsi/ipr.c if (path_state_desc[j].state != state) j 2102 drivers/scsi/ipr.c path_active_desc[i].desc, path_state_desc[j].desc, j 2167 drivers/scsi/ipr.c int i, j; j 2178 drivers/scsi/ipr.c for (j = 0; j < ARRAY_SIZE(path_status_desc); j++) { j 2179 drivers/scsi/ipr.c if (path_status_desc[j].status != status) j 2184 drivers/scsi/ipr.c path_status_desc[j].desc, path_type_desc[i].desc, j 2190 drivers/scsi/ipr.c path_status_desc[j].desc, path_type_desc[i].desc, j 2195 drivers/scsi/ipr.c "WWN=%08X%08X\n", path_status_desc[j].desc, j 2201 drivers/scsi/ipr.c "WWN=%08X%08X\n", path_status_desc[j].desc, j 2207 drivers/scsi/ipr.c "WWN=%08X%08X\n", path_status_desc[j].desc, j 2234 drivers/scsi/ipr.c int i, j; j 2247 drivers/scsi/ipr.c for (j = 0; j < ARRAY_SIZE(path_status_desc); j++) { j 2248 drivers/scsi/ipr.c if (path_status_desc[j].status != status) j 2252 drivers/scsi/ipr.c path_status_desc[j].desc, path_type_desc[i].desc, j 2747 drivers/scsi/ipr.c int i, j, matches; j 2752 drivers/scsi/ipr.c for (j = 0, matches = 0; j < IPR_PROD_ID_LEN; j++) { j 2753 drivers/scsi/ipr.c if (ste->compare_product_id_byte[j] == 'X') { j 2755 drivers/scsi/ipr.c if (vpids->product_id[j] == ste->product_id[j]) j 7261 drivers/scsi/ipr.c int j; j 7265 drivers/scsi/ipr.c for (j = 0; j < ioa_cfg->hrrq_num; j++) { j 7266 drivers/scsi/ipr.c spin_lock(&ioa_cfg->hrrq[j]._lock); j 7267 drivers/scsi/ipr.c ioa_cfg->hrrq[j].allow_cmds = 1; j 7268 drivers/scsi/ipr.c spin_unlock(&ioa_cfg->hrrq[j]._lock); j 7282 drivers/scsi/ipr.c for (j = 0; j < IPR_NUM_HCAMS; j++) { j 7283 drivers/scsi/ipr.c list_del_init(&ioa_cfg->hostrcb[j]->queue); j 7284 drivers/scsi/ipr.c if (j < IPR_NUM_LOG_HCAMS) j 7287 drivers/scsi/ipr.c ioa_cfg->hostrcb[j]); j 7291 drivers/scsi/ipr.c ioa_cfg->hostrcb[j]); j 4701 drivers/scsi/ips.c int i, j; j 4706 drivers/scsi/ips.c for (j = 0; j < 45; j++) { j 4715 drivers/scsi/ips.c if (j >= 45) j 4732 drivers/scsi/ips.c for (j = 0; j < 240; j++) { j 4741 drivers/scsi/ips.c if (j >= 240) j 4795 drivers/scsi/ips.c int i, j; j 4800 drivers/scsi/ips.c for (j = 0; j < 45; j++) { j 4809 drivers/scsi/ips.c if (j >= 45) j 4826 drivers/scsi/ips.c for (j = 0; j < 240; j++) { j 4835 drivers/scsi/ips.c if (j >= 240) j 6560 drivers/scsi/ips.c int i, j, tmp, position = 0; j 6568 drivers/scsi/ips.c for (j = position; j < ips_num_controllers; j++) { j 6569 drivers/scsi/ips.c switch (ips_ha[j]->ad_type) { j 6574 drivers/scsi/ips.c j); j 6584 drivers/scsi/ips.c j); j 6594 drivers/scsi/ips.c j); j 6607 drivers/scsi/ips.c j); j 6840 drivers/scsi/ips.c int j; j 6849 drivers/scsi/ips.c for (j = 0; j < IPS_MAX_ADAPTERS; j++) { j 6850 drivers/scsi/ips.c if (ips_ha[j] == NULL) { j 6851 drivers/scsi/ips.c index = j; j 6869 drivers/scsi/ips.c for (j = 0; j < 2; j++) { j 6870 drivers/scsi/ips.c if (!pci_resource_start(pci_dev, j)) j 6873 drivers/scsi/ips.c if (pci_resource_flags(pci_dev, j) & IORESOURCE_IO) { j 6874 drivers/scsi/ips.c io_addr = pci_resource_start(pci_dev, j); j 6875 drivers/scsi/ips.c io_len = pci_resource_len(pci_dev, j); j 6877 drivers/scsi/ips.c mem_addr = pci_resource_start(pci_dev, j); j 6878 drivers/scsi/ips.c mem_len = pci_resource_len(pci_dev, j); j 1778 drivers/scsi/isci/host.c u8 j; j 1780 drivers/scsi/isci/host.c for (j = 0; j < SCI_MAX_PHYS; j++) { j 1781 drivers/scsi/isci/host.c struct isci_phy *requester = ihost->power_control.requesters[j]; j 1794 drivers/scsi/isci/host.c ihost->power_control.requesters[j] = NULL; j 46 drivers/scsi/isci/probe_roms.c int j; j 81 drivers/scsi/isci/probe_roms.c for (j = 0, sum = 0; j < sizeof(oem_hdr); j++, tmp++) j 85 drivers/scsi/isci/probe_roms.c for (j = 0; j < sizeof(*rom); j++, tmp++) j 118 drivers/scsi/isci/probe_roms.c int i, j; j 146 drivers/scsi/isci/probe_roms.c for (j = 0; j < ARRAY_SIZE(orom->ctrl[i].phys); j++) { j 147 drivers/scsi/isci/probe_roms.c orom->ctrl[i].phys[j].afe_tx_amp_control0 = 0xe7c03; j 148 drivers/scsi/isci/probe_roms.c orom->ctrl[i].phys[j].afe_tx_amp_control1 = 0xe7c03; j 149 drivers/scsi/isci/probe_roms.c orom->ctrl[i].phys[j].afe_tx_amp_control2 = 0xe7c03; j 150 drivers/scsi/isci/probe_roms.c orom->ctrl[i].phys[j].afe_tx_amp_control3 = 0xe7c03; j 173 drivers/scsi/isci/probe_roms.c int j; j 213 drivers/scsi/isci/probe_roms.c for (j = 0, sum = 0; j < (sizeof(*oem_hdr) + sizeof(*rom)); j++, tmp++) j 728 drivers/scsi/libsas/sas_expander.c int j = 24 + (i*4); j 730 drivers/scsi/libsas/sas_expander.c a = resp[j + 0]; j 731 drivers/scsi/libsas/sas_expander.c b = resp[j + 1]; j 732 drivers/scsi/libsas/sas_expander.c resp[j + 0] = resp[j + 3]; j 733 drivers/scsi/libsas/sas_expander.c resp[j + 1] = resp[j + 2]; j 734 drivers/scsi/libsas/sas_expander.c resp[j + 2] = b; j 735 drivers/scsi/libsas/sas_expander.c resp[j + 3] = a; j 109 drivers/scsi/lpfc/lpfc_attr.c int i, j; j 111 drivers/scsi/lpfc/lpfc_attr.c j = (incr & 0xf); j 112 drivers/scsi/lpfc/lpfc_attr.c if (j <= 9) j 113 drivers/scsi/lpfc/lpfc_attr.c hdw[7 - i] = 0x30 + j; j 115 drivers/scsi/lpfc/lpfc_attr.c hdw[7 - i] = 0x61 + j - 10; j 2729 drivers/scsi/lpfc/lpfc_attr.c unsigned int i, j; j 2742 drivers/scsi/lpfc/lpfc_attr.c for (i = 0, j = 0; i < 16; i++) { j 2744 drivers/scsi/lpfc/lpfc_attr.c j = ((j << 4) | ((*buf++ - 'a') + 10)); j 2746 drivers/scsi/lpfc/lpfc_attr.c j = ((j << 4) | ((*buf++ - 'A') + 10)); j 2748 drivers/scsi/lpfc/lpfc_attr.c j = ((j << 4) | (*buf++ - '0')); j 2752 drivers/scsi/lpfc/lpfc_attr.c wwn[i/2] = j & 0xff; j 2753 drivers/scsi/lpfc/lpfc_attr.c j = 0; j 2165 drivers/scsi/lpfc/lpfc_ct.c uint32_t i, j, incr, size; j 2173 drivers/scsi/lpfc/lpfc_ct.c j = (incr & 0xf); j 2174 drivers/scsi/lpfc/lpfc_ct.c if (j <= 9) j 2177 drivers/scsi/lpfc/lpfc_ct.c (uint8_t) j); j 2181 drivers/scsi/lpfc/lpfc_ct.c (uint8_t) (j - 10)); j 285 drivers/scsi/lpfc/lpfc_debugfs.c int i, j, found, posted, low; j 331 drivers/scsi/lpfc/lpfc_debugfs.c for (j=0; j<hbqs->entry_count; j++) { j 333 drivers/scsi/lpfc/lpfc_debugfs.c "%03d: %08x %04x %05x ", j, j 343 drivers/scsi/lpfc/lpfc_debugfs.c if ((j >= hbqs->hbqPutIdx) || (j < low)) { j 350 drivers/scsi/lpfc/lpfc_debugfs.c if ((j >= hbqs->hbqPutIdx) && j 351 drivers/scsi/lpfc/lpfc_debugfs.c (j < (hbqs->entry_count+low))) { j 1622 drivers/scsi/lpfc/lpfc_debugfs.c int i, j, max_cnt; j 1648 drivers/scsi/lpfc/lpfc_debugfs.c for (j = 0; j < LPFC_CHECK_CPU_CNT; j++) { j 1649 drivers/scsi/lpfc/lpfc_debugfs.c tot_xmt += qp->cpucheck_xmt_io[j]; j 1650 drivers/scsi/lpfc/lpfc_debugfs.c tot_cmpl += qp->cpucheck_cmpl_io[j]; j 1652 drivers/scsi/lpfc/lpfc_debugfs.c tot_rcv += qp->cpucheck_rcv_io[j]; j 1661 drivers/scsi/lpfc/lpfc_debugfs.c for (j = 0; j < LPFC_CHECK_CPU_CNT; j++) { j 1663 drivers/scsi/lpfc/lpfc_debugfs.c if (!qp->cpucheck_xmt_io[j] && j 1664 drivers/scsi/lpfc/lpfc_debugfs.c !qp->cpucheck_cmpl_io[j] && j 1665 drivers/scsi/lpfc/lpfc_debugfs.c !qp->cpucheck_rcv_io[j]) j 1669 drivers/scsi/lpfc/lpfc_debugfs.c "CPU %03d: %x/%x/%x ", j, j 1670 drivers/scsi/lpfc/lpfc_debugfs.c qp->cpucheck_rcv_io[j], j 1671 drivers/scsi/lpfc/lpfc_debugfs.c qp->cpucheck_xmt_io[j], j 1672 drivers/scsi/lpfc/lpfc_debugfs.c qp->cpucheck_cmpl_io[j]); j 1675 drivers/scsi/lpfc/lpfc_debugfs.c "CPU %03d: %x/%x ", j, j 1676 drivers/scsi/lpfc/lpfc_debugfs.c qp->cpucheck_xmt_io[j], j 1677 drivers/scsi/lpfc/lpfc_debugfs.c qp->cpucheck_cmpl_io[j]); j 2864 drivers/scsi/lpfc/lpfc_debugfs.c int i, j; j 2907 drivers/scsi/lpfc/lpfc_debugfs.c for (j = 0; j < LPFC_CHECK_CPU_CNT; j++) { j 2908 drivers/scsi/lpfc/lpfc_debugfs.c qp->cpucheck_rcv_io[j] = 0; j 2909 drivers/scsi/lpfc/lpfc_debugfs.c qp->cpucheck_xmt_io[j] = 0; j 2910 drivers/scsi/lpfc/lpfc_debugfs.c qp->cpucheck_cmpl_io[j] = 0; j 5578 drivers/scsi/lpfc/lpfc_debugfs.c uint32_t i, j; j 5635 drivers/scsi/lpfc/lpfc_debugfs.c for (j = 0; j < 4; j++) { j 1558 drivers/scsi/lpfc/lpfc_hbadisc.c int i, j, fcf_vlan_id = 0; j 1564 drivers/scsi/lpfc/lpfc_hbadisc.c j = 0; j 1565 drivers/scsi/lpfc/lpfc_hbadisc.c while (!((new_fcf_record->vlan_bitmap[i] >> j) & 1)) { j 1566 drivers/scsi/lpfc/lpfc_hbadisc.c j++; j 3187 drivers/scsi/lpfc/lpfc_hbadisc.c int numalpa, j, k; j 3198 drivers/scsi/lpfc/lpfc_hbadisc.c j = 0; j 3199 drivers/scsi/lpfc/lpfc_hbadisc.c while (j < numalpa) { j 3201 drivers/scsi/lpfc/lpfc_hbadisc.c for (k = 1; j < numalpa; k++) { j 3203 drivers/scsi/lpfc/lpfc_hbadisc.c phba->alpa_map[j + 1]; j 3204 drivers/scsi/lpfc/lpfc_hbadisc.c j++; j 5502 drivers/scsi/lpfc/lpfc_hbadisc.c int j; j 5513 drivers/scsi/lpfc/lpfc_hbadisc.c for (j = 1; j <= phba->alpa_map[0]; j++) { j 5514 drivers/scsi/lpfc/lpfc_hbadisc.c alpa = phba->alpa_map[j]; j 5521 drivers/scsi/lpfc/lpfc_hbadisc.c for (j = 0; j < FC_MAXLOOP; j++) { j 5526 drivers/scsi/lpfc/lpfc_hbadisc.c index = j; j 5528 drivers/scsi/lpfc/lpfc_hbadisc.c index = FC_MAXLOOP - j - 1; j 419 drivers/scsi/lpfc/lpfc_init.c int i, j; j 480 drivers/scsi/lpfc/lpfc_init.c j = ((status & 0xf0) >> 4); j 481 drivers/scsi/lpfc/lpfc_init.c if (j <= 9) j 483 drivers/scsi/lpfc/lpfc_init.c (char)((uint8_t) 0x30 + (uint8_t) j); j 486 drivers/scsi/lpfc/lpfc_init.c (char)((uint8_t) 0x61 + (uint8_t) (j - 10)); j 488 drivers/scsi/lpfc/lpfc_init.c j = (status & 0xf); j 489 drivers/scsi/lpfc/lpfc_init.c if (j <= 9) j 491 drivers/scsi/lpfc/lpfc_init.c (char)((uint8_t) 0x30 + (uint8_t) j); j 494 drivers/scsi/lpfc/lpfc_init.c (char)((uint8_t) 0x61 + (uint8_t) (j - 10)); j 2128 drivers/scsi/lpfc/lpfc_init.c int i, j; j 2167 drivers/scsi/lpfc/lpfc_init.c j = 0; j 2170 drivers/scsi/lpfc/lpfc_init.c phba->SerialNumber[j++] = vpd[index++]; j 2171 drivers/scsi/lpfc/lpfc_init.c if (j == 31) j 2174 drivers/scsi/lpfc/lpfc_init.c phba->SerialNumber[j] = 0; j 2182 drivers/scsi/lpfc/lpfc_init.c j = 0; j 2185 drivers/scsi/lpfc/lpfc_init.c phba->ModelDesc[j++] = vpd[index++]; j 2186 drivers/scsi/lpfc/lpfc_init.c if (j == 255) j 2189 drivers/scsi/lpfc/lpfc_init.c phba->ModelDesc[j] = 0; j 2197 drivers/scsi/lpfc/lpfc_init.c j = 0; j 2200 drivers/scsi/lpfc/lpfc_init.c phba->ModelName[j++] = vpd[index++]; j 2201 drivers/scsi/lpfc/lpfc_init.c if (j == 79) j 2204 drivers/scsi/lpfc/lpfc_init.c phba->ModelName[j] = 0; j 2212 drivers/scsi/lpfc/lpfc_init.c j = 0; j 2215 drivers/scsi/lpfc/lpfc_init.c phba->ProgramType[j++] = vpd[index++]; j 2216 drivers/scsi/lpfc/lpfc_init.c if (j == 255) j 2219 drivers/scsi/lpfc/lpfc_init.c phba->ProgramType[j] = 0; j 2227 drivers/scsi/lpfc/lpfc_init.c j = 0; j 2233 drivers/scsi/lpfc/lpfc_init.c j++; j 2236 drivers/scsi/lpfc/lpfc_init.c phba->Port[j++] = vpd[index++]; j 2237 drivers/scsi/lpfc/lpfc_init.c if (j == 19) j 2243 drivers/scsi/lpfc/lpfc_init.c phba->Port[j] = 0; j 3148 drivers/scsi/lpfc/lpfc_init.c u32 i, j; j 3181 drivers/scsi/lpfc/lpfc_init.c j = 0; j 3182 drivers/scsi/lpfc/lpfc_init.c while (j < i) { j 3183 drivers/scsi/lpfc/lpfc_init.c qp = &phba->sli4_hba.hdwq[j]; j 3185 drivers/scsi/lpfc/lpfc_init.c j++; j 1322 drivers/scsi/lpfc/lpfc_nvme.c int nseg, i, j; j 1362 drivers/scsi/lpfc/lpfc_nvme.c j = 2; j 1382 drivers/scsi/lpfc/lpfc_nvme.c !((j + 1) % phba->border_sge_num) && j 1440 drivers/scsi/lpfc/lpfc_nvme.c j++; j 1271 drivers/scsi/lpfc/lpfc_nvmet.c int i, j; j 1280 drivers/scsi/lpfc/lpfc_nvmet.c for_each_present_cpu(j) { j 1281 drivers/scsi/lpfc/lpfc_nvmet.c infop = lpfc_get_ctx_list(phba, j, i); j 1297 drivers/scsi/lpfc/lpfc_nvmet.c int i, j, idx, cpu; j 1333 drivers/scsi/lpfc/lpfc_nvmet.c for (j = 0; j < phba->cfg_nvmet_mrq; j++) { j 1334 drivers/scsi/lpfc/lpfc_nvmet.c infop = lpfc_get_ctx_list(phba, i, j); j 1346 drivers/scsi/lpfc/lpfc_nvmet.c for (j = 0; j < phba->cfg_nvmet_mrq; j++) { j 1349 drivers/scsi/lpfc/lpfc_nvmet.c j); j 1351 drivers/scsi/lpfc/lpfc_nvmet.c infop = lpfc_get_ctx_list(phba, i, j); j 1436 drivers/scsi/lpfc/lpfc_nvmet.c for (j = 0; j < phba->cfg_nvmet_mrq; j++) { j 1437 drivers/scsi/lpfc/lpfc_nvmet.c infop = lpfc_get_ctx_list(phba, i, j); j 1441 drivers/scsi/lpfc/lpfc_nvmet.c i, j, infop->nvmet_ctx_list_cnt, j 1963 drivers/scsi/lpfc/lpfc_scsi.c int j; j 2025 drivers/scsi/lpfc/lpfc_scsi.c j = 3; j 2031 drivers/scsi/lpfc/lpfc_scsi.c if (!lsp_just_set && !((j + 1) % phba->border_sge_num) && j 2080 drivers/scsi/lpfc/lpfc_scsi.c j++; j 2150 drivers/scsi/lpfc/lpfc_scsi.c int num_sge = 0, j = 2; j 2189 drivers/scsi/lpfc/lpfc_scsi.c if (!((j + 1) % phba->border_sge_num) || j 2190 drivers/scsi/lpfc/lpfc_scsi.c !((j + 2) % phba->border_sge_num) || j 2191 drivers/scsi/lpfc/lpfc_scsi.c !((j + 3) % phba->border_sge_num)) { j 2212 drivers/scsi/lpfc/lpfc_scsi.c j = 0; j 2263 drivers/scsi/lpfc/lpfc_scsi.c j++; j 2301 drivers/scsi/lpfc/lpfc_scsi.c j++; j 2316 drivers/scsi/lpfc/lpfc_scsi.c if (!((j + 1) % phba->border_sge_num)) { j 2382 drivers/scsi/lpfc/lpfc_scsi.c j++; j 2392 drivers/scsi/lpfc/lpfc_scsi.c j++; j 3056 drivers/scsi/lpfc/lpfc_scsi.c int nseg, i, j; j 3111 drivers/scsi/lpfc/lpfc_scsi.c j = 2; j 3123 drivers/scsi/lpfc/lpfc_scsi.c !((j + 1) % phba->border_sge_num) && j 3181 drivers/scsi/lpfc/lpfc_scsi.c j++; j 4061 drivers/scsi/lpfc/lpfc_scsi.c int i, j; j 4062 drivers/scsi/lpfc/lpfc_scsi.c for (i = 0, j = 0; i < sizeof(struct fcp_cmnd); j 4063 drivers/scsi/lpfc/lpfc_scsi.c i += sizeof(uint32_t), j++) { j 4064 drivers/scsi/lpfc/lpfc_scsi.c ((uint32_t *)data)[j] = cpu_to_be32(((uint32_t *)fcp_cmnd)[j]); j 5817 drivers/scsi/lpfc/lpfc_sli.c uint16_t rsrc_id, rsrc_start, j, k; j 5995 drivers/scsi/lpfc/lpfc_sli.c for (i = 0, j = 0, k = 0; i < rsrc_cnt; i++) { j 6014 drivers/scsi/lpfc/lpfc_sli.c if ((type == LPFC_RSC_TYPE_FCOE_XRI) && (j == 0)) { j 6020 drivers/scsi/lpfc/lpfc_sli.c ids[j] = rsrc_id; j 6022 drivers/scsi/lpfc/lpfc_sli.c j++; j 4161 drivers/scsi/megaraid.c int irq, i, j; j 4385 drivers/scsi/megaraid.c j = adapter->product_info.nchannels; j 4386 drivers/scsi/megaraid.c for( i = 0; i < j; i++ ) j 4388 drivers/scsi/megaraid.c for( i = j; i < NVIRT_CHAN + j; i++ ) j 2044 drivers/scsi/megaraid/megaraid_mbox.c int i, j; j 2083 drivers/scsi/megaraid/megaraid_mbox.c for (j = 0; j < 0xFFFFF; j++) { j 2404 drivers/scsi/megaraid/megaraid_sas_base.c int i, j, retval = 0, found = 0, doscan = 0; j 2489 drivers/scsi/megaraid/megaraid_sas_base.c for (j = 0; j < instance->vf_affiliation->ldCount; j 2490 drivers/scsi/megaraid/megaraid_sas_base.c j++) { j 2518 drivers/scsi/megaraid/megaraid_sas_base.c for (j = 0 ; j < new_affiliation->ldCount; j++) { j 4324 drivers/scsi/megaraid/megaraid_sas_base.c int j; j 4350 drivers/scsi/megaraid/megaraid_sas_base.c for (j = 0; j < i; j++) j 4351 drivers/scsi/megaraid/megaraid_sas_base.c kfree(instance->cmd_list[j]); j 5575 drivers/scsi/megaraid/megaraid_sas_base.c int i, j; j 5589 drivers/scsi/megaraid/megaraid_sas_base.c for (j = 0; j < i; j++) j 5590 drivers/scsi/megaraid/megaraid_sas_base.c free_irq(pci_irq_vector(pdev, j), j 5591 drivers/scsi/megaraid/megaraid_sas_base.c &instance->irq_context[j]); j 5856 drivers/scsi/megaraid/megaraid_sas_base.c int i, j, loop; j 6218 drivers/scsi/megaraid/megaraid_sas_base.c for (j = 0; j < i; ++j) j 6219 drivers/scsi/megaraid/megaraid_sas_base.c kfree(fusion->stream_detect_by_ld[j]); j 8605 drivers/scsi/megaraid/megaraid_sas_base.c int i, j; j 8643 drivers/scsi/megaraid/megaraid_sas_base.c for (j = 0; j < MEGASAS_MAX_DEV_PER_CHANNEL; j++) { j 8644 drivers/scsi/megaraid/megaraid_sas_base.c pd_index = i * MEGASAS_MAX_DEV_PER_CHANNEL + j; j 8645 drivers/scsi/megaraid/megaraid_sas_base.c sdev1 = scsi_device_lookup(host, i, j, 0); j 8649 drivers/scsi/megaraid/megaraid_sas_base.c scsi_add_device(host, i, j, 0); j 8662 drivers/scsi/megaraid/megaraid_sas_base.c for (j = 0; j < MEGASAS_MAX_DEV_PER_CHANNEL; j++) { j 8663 drivers/scsi/megaraid/megaraid_sas_base.c ld_index = (i * MEGASAS_MAX_DEV_PER_CHANNEL) + j; j 8665 drivers/scsi/megaraid/megaraid_sas_base.c MEGASAS_MAX_PD_CHANNELS + i, j, 0); j 8668 drivers/scsi/megaraid/megaraid_sas_base.c scsi_add_device(host, MEGASAS_MAX_PD_CHANNELS + i, j, 0); j 163 drivers/scsi/megaraid/megaraid_sas_fp.c int i, j; j 212 drivers/scsi/megaraid/megaraid_sas_fp.c for (j = 0; j < le32_to_cpu(desc_table->raid_map_desc_elements); j++) { j 213 drivers/scsi/megaraid/megaraid_sas_fp.c pDrvRaidMap->ldTgtIdToLd[j] = j 214 drivers/scsi/megaraid/megaraid_sas_fp.c le16_to_cpu(fw_map_dyn->ld_tgt_id_to_ld[j]); j 376 drivers/scsi/megaraid/megaraid_sas_fp.c u32 span, j; j 380 drivers/scsi/megaraid/megaraid_sas_fp.c for (j = 0; j < le32_to_cpu(pSpanBlock->block_span_info.noElements); j++) { j 381 drivers/scsi/megaraid/megaraid_sas_fp.c quad = &pSpanBlock->block_span_info.quad[j]; j 540 drivers/scsi/megaraid/megaraid_sas_fusion.c u32 max_mpt_cmd, i, j; j 565 drivers/scsi/megaraid/megaraid_sas_fusion.c for (j = 0; j < i; j++) j 566 drivers/scsi/megaraid/megaraid_sas_fusion.c kfree(fusion->cmd_list[j]); j 739 drivers/scsi/megaraid/megaraid_sas_fusion.c int i, j, k, msix_count; j 852 drivers/scsi/megaraid/megaraid_sas_fusion.c for (j = 0; j < fusion->reply_q_depth; j++, reply_desc++) j 4072 drivers/scsi/megaraid/megaraid_sas_fusion.c int j; j 4082 drivers/scsi/megaraid/megaraid_sas_fusion.c for (j = 0; j < instance->snapdump_wait_time; j++) { j 4205 drivers/scsi/megaraid/megaraid_sas_fusion.c int i, j, count; j 4214 drivers/scsi/megaraid/megaraid_sas_fusion.c for (j = 0 ; j < fusion->reply_q_depth; j++, reply_desc++) j 4225 drivers/scsi/megaraid/megaraid_sas_fusion.c int j; j 4241 drivers/scsi/megaraid/megaraid_sas_fusion.c for (j = instance->max_scsi_cmds ; j < instance->max_fw_cmds; j++) { j 4242 drivers/scsi/megaraid/megaraid_sas_fusion.c cmd_fusion = fusion->cmd_list[j]; j 4791 drivers/scsi/megaraid/megaraid_sas_fusion.c int retval = SUCCESS, i, j, convert = 0; j 4976 drivers/scsi/megaraid/megaraid_sas_fusion.c for (j = 0; j < MAX_LOGICAL_DRIVES_EXT; ++j) { j 4977 drivers/scsi/megaraid/megaraid_sas_fusion.c memset(fusion->stream_detect_by_ld[j], j 4979 drivers/scsi/megaraid/megaraid_sas_fusion.c fusion->stream_detect_by_ld[j]->mru_bit_map j 380 drivers/scsi/mpt3sas/mpt3sas_base.c u16 index, j; j 384 drivers/scsi/mpt3sas/mpt3sas_base.c for (j = 0; j < ioc->chains_needed_per_io; j++) { j 385 drivers/scsi/mpt3sas/mpt3sas_base.c ct = &ioc->chain_lookup[index].chains_per_smid[j]; j 4691 drivers/scsi/mpt3sas/mpt3sas_base.c int j = 0; j 4783 drivers/scsi/mpt3sas/mpt3sas_base.c for (j = ioc->chains_per_prp_buffer; j 4784 drivers/scsi/mpt3sas/mpt3sas_base.c j < ioc->chains_needed_per_io; j++) { j 4785 drivers/scsi/mpt3sas/mpt3sas_base.c ct = &ioc->chain_lookup[i].chains_per_smid[j]; j 4840 drivers/scsi/mpt3sas/mpt3sas_base.c int i, j; j 5201 drivers/scsi/mpt3sas/mpt3sas_base.c for (j = 0; j < ioc->chains_per_prp_buffer; j++) { j 5202 drivers/scsi/mpt3sas/mpt3sas_base.c ct = &ioc->chain_lookup[i].chains_per_smid[j]; j 5205 drivers/scsi/mpt3sas/mpt3sas_base.c (j * ioc->chain_segment_sz); j 5208 drivers/scsi/mpt3sas/mpt3sas_base.c (j * ioc->chain_segment_sz); j 5229 drivers/scsi/mpt3sas/mpt3sas_base.c for (j = ioc->chains_per_prp_buffer; j 5230 drivers/scsi/mpt3sas/mpt3sas_base.c j < ioc->chains_needed_per_io; j++) { j 5231 drivers/scsi/mpt3sas/mpt3sas_base.c ct = &ioc->chain_lookup[i].chains_per_smid[j]; j 6520 drivers/scsi/mpt3sas/mpt3sas_base.c int i, j; j 6528 drivers/scsi/mpt3sas/mpt3sas_base.c for (j = 0; j < 32; j++) { j 447 drivers/scsi/mvsas/mv_init.c int can_queue, i = 0, j = 0; j 452 drivers/scsi/mvsas/mv_init.c for (j = 0; j < nr_core; j++) { j 453 drivers/scsi/mvsas/mv_init.c mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[j]; j 455 drivers/scsi/mvsas/mv_init.c sha->sas_phy[j * chip_info->n_phy + i] = j 457 drivers/scsi/mvsas/mv_init.c sha->sas_port[j * chip_info->n_phy + i] = j 63 drivers/scsi/mvsas/mv_sas.c unsigned long i = 0, j = 0, hi = 0; j 72 drivers/scsi/mvsas/mv_sas.c j = 0; j 73 drivers/scsi/mvsas/mv_sas.c while (sha->sas_phy[j]) { j 74 drivers/scsi/mvsas/mv_sas.c if (sha->sas_phy[j] == phy) j 76 drivers/scsi/mvsas/mv_sas.c j++; j 82 drivers/scsi/mvsas/mv_sas.c hi = j/((struct mvs_prv_info *)sha->lldd_ha)->n_phy; j 91 drivers/scsi/mvsas/mv_sas.c unsigned long i = 0, j = 0, n = 0, num = 0; j 101 drivers/scsi/mvsas/mv_sas.c j = 0; j 102 drivers/scsi/mvsas/mv_sas.c while (sha->sas_phy[j]) { j 103 drivers/scsi/mvsas/mv_sas.c if (sha->sas_phy[j] == phy) j 105 drivers/scsi/mvsas/mv_sas.c j++; j 107 drivers/scsi/mvsas/mv_sas.c phyno[n] = (j >= mvi->chip->n_phy) ? j 108 drivers/scsi/mvsas/mv_sas.c (j - mvi->chip->n_phy) : j; j 271 drivers/scsi/mvsas/mv_sas.c int i, j; j 279 drivers/scsi/mvsas/mv_sas.c for (j = 0; j < core_nr; j++) { j 280 drivers/scsi/mvsas/mv_sas.c mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[j]; j 919 drivers/scsi/mvsas/mv_sas.c int j, no; j 921 drivers/scsi/mvsas/mv_sas.c for_each_phy(port->wide_port_phymap, j, no) { j 922 drivers/scsi/mvsas/mv_sas.c if (j & 1) { j 226 drivers/scsi/ncr53c8xx.c int j; j 238 drivers/scsi/ncr53c8xx.c j = i; j 239 drivers/scsi/ncr53c8xx.c while (!h[j].next) { j 241 drivers/scsi/ncr53c8xx.c h[j].next = (m_link_s *)mp->getp(mp); j 242 drivers/scsi/ncr53c8xx.c if (h[j].next) j 243 drivers/scsi/ncr53c8xx.c h[j].next->next = NULL; j 246 drivers/scsi/ncr53c8xx.c ++j; j 249 drivers/scsi/ncr53c8xx.c a = (m_addr_t) h[j].next; j 251 drivers/scsi/ncr53c8xx.c h[j].next = h[j].next->next; j 252 drivers/scsi/ncr53c8xx.c while (j > i) { j 253 drivers/scsi/ncr53c8xx.c j -= 1; j 255 drivers/scsi/ncr53c8xx.c h[j].next = (m_link_s *) (a+s); j 256 drivers/scsi/ncr53c8xx.c h[j].next->next = NULL; j 5111 drivers/scsi/ncr53c8xx.c int i, j; j 5115 drivers/scsi/ncr53c8xx.c j = i+1; j 5116 drivers/scsi/ncr53c8xx.c if (j >= MAX_DONE) j 5117 drivers/scsi/ncr53c8xx.c j = 0; j 5119 drivers/scsi/ncr53c8xx.c cp = np->ccb_done[j]; j 5123 drivers/scsi/ncr53c8xx.c np->ccb_done[j] = (struct ccb *)CCB_DONE_EMPTY; j 5124 drivers/scsi/ncr53c8xx.c np->scripth->done_queue[5*j + 4] = j 5135 drivers/scsi/ncr53c8xx.c i = j; j 2551 drivers/scsi/nsp32.c int i, j; j 2657 drivers/scsi/nsp32.c for (j = 0; j < ARRAY_SIZE(data->lunt[0]); j++) { j 2658 drivers/scsi/nsp32.c int offset = i * ARRAY_SIZE(data->lunt[0]) + j; j 2669 drivers/scsi/nsp32.c data->lunt[i][j] = tmp; j 2301 drivers/scsi/pm8001/pm8001_hwi.c int i, j; j 2360 drivers/scsi/pm8001/pm8001_hwi.c for (i = 0 , j = 4; j <= 7 && i <= 3; i++ , j++) j 2361 drivers/scsi/pm8001/pm8001_hwi.c sata_addr_low[i] = pm8001_ha->sas_addr[j]; j 2362 drivers/scsi/pm8001/pm8001_hwi.c for (i = 0 , j = 0; j <= 3 && i <= 3; i++ , j++) j 2363 drivers/scsi/pm8001/pm8001_hwi.c sata_addr_hi[i] = pm8001_ha->sas_addr[j]; j 455 drivers/scsi/pm8001/pm8001_init.c int j; j 484 drivers/scsi/pm8001/pm8001_init.c for (j = 0; j < PM8001_MAX_MSIX_VEC; j++) j 485 drivers/scsi/pm8001/pm8001_init.c tasklet_init(&pm8001_ha->tasklet[j], pm8001_tasklet, j 486 drivers/scsi/pm8001/pm8001_init.c (unsigned long)&(pm8001_ha->irq_vector[j])); j 596 drivers/scsi/pm8001/pm8001_init.c u8 i, j; j 642 drivers/scsi/pm8001/pm8001_init.c for (i = 0, j = 0; i <= 7; i++, j++) { j 645 drivers/scsi/pm8001/pm8001_init.c pm8001_ha->sas_addr[j] = j 648 drivers/scsi/pm8001/pm8001_init.c pm8001_ha->sas_addr[j] = j 653 drivers/scsi/pm8001/pm8001_init.c pm8001_ha->sas_addr[j] = j 656 drivers/scsi/pm8001/pm8001_init.c pm8001_ha->sas_addr[j] = j 872 drivers/scsi/pm8001/pm8001_init.c u32 i = 0, j = 0; j 906 drivers/scsi/pm8001/pm8001_init.c for (j = 0; j < i; j++) { j 1074 drivers/scsi/pm8001/pm8001_init.c int i, j; j 1097 drivers/scsi/pm8001/pm8001_init.c for (j = 0; j < PM8001_MAX_MSIX_VEC; j++) j 1098 drivers/scsi/pm8001/pm8001_init.c tasklet_kill(&pm8001_ha->tasklet[j]); j 1120 drivers/scsi/pm8001/pm8001_init.c int i, j; j 1147 drivers/scsi/pm8001/pm8001_init.c for (j = 0; j < PM8001_MAX_MSIX_VEC; j++) j 1148 drivers/scsi/pm8001/pm8001_init.c tasklet_kill(&pm8001_ha->tasklet[j]); j 1171 drivers/scsi/pm8001/pm8001_init.c u8 i = 0, j; j 1218 drivers/scsi/pm8001/pm8001_init.c for (j = 0; j < PM8001_MAX_MSIX_VEC; j++) j 1219 drivers/scsi/pm8001/pm8001_init.c tasklet_init(&pm8001_ha->tasklet[j], pm8001_tasklet, j 1220 drivers/scsi/pm8001/pm8001_init.c (unsigned long)&(pm8001_ha->irq_vector[j])); j 2012 drivers/scsi/pm8001/pm80xx_hwi.c int i, j; j 2070 drivers/scsi/pm8001/pm80xx_hwi.c for (i = 0 , j = 4; i <= 3 && j <= 7; i++ , j++) j 2071 drivers/scsi/pm8001/pm80xx_hwi.c sata_addr_low[i] = pm8001_ha->sas_addr[j]; j 2072 drivers/scsi/pm8001/pm80xx_hwi.c for (i = 0 , j = 0; i <= 3 && j <= 3; i++ , j++) j 2073 drivers/scsi/pm8001/pm80xx_hwi.c sata_addr_hi[i] = pm8001_ha->sas_addr[j]; j 4654 drivers/scsi/pm8001/pm80xx_hwi.c u32 tag , i, j = 0; j 4671 drivers/scsi/pm8001/pm80xx_hwi.c payload.reserved[j] = cpu_to_le32(*((u32 *)buf + i)); j 4672 drivers/scsi/pm8001/pm80xx_hwi.c j++; j 119 drivers/scsi/qla2xxx/qla_dbg.c ulong i, j, timer = 6000000; j 178 drivers/scsi/qla2xxx/qla_dbg.c for (j = 0; j < dwords; j++) { j 179 drivers/scsi/qla2xxx/qla_dbg.c ram[i + j] = j 181 drivers/scsi/qla2xxx/qla_dbg.c chunk[j] : swab32(chunk[j]); j 199 drivers/scsi/qla2xxx/qla_dbg.c ulong i, j, timer = 6000000; j 254 drivers/scsi/qla2xxx/qla_dbg.c for (j = 0; j < dwords; j++) { j 255 drivers/scsi/qla2xxx/qla_dbg.c ram[i + j] = j 257 drivers/scsi/qla2xxx/qla_dbg.c chunk[j] : swab32(chunk[j]); j 3774 drivers/scsi/qla2xxx/qla_gs.c int i, j, k; j 3779 drivers/scsi/qla2xxx/qla_gs.c j = 0; j 3794 drivers/scsi/qla2xxx/qla_gs.c rp = &vha->scan.l[j]; j 3797 drivers/scsi/qla2xxx/qla_gs.c j++; j 3253 drivers/scsi/qla2xxx/qla_init.c uint j; j 3255 drivers/scsi/qla2xxx/qla_init.c for (j = 0; j < 2; j++, fwdt++) { j 3258 drivers/scsi/qla2xxx/qla_init.c "-> fwdt%u no template\n", j); j 3262 drivers/scsi/qla2xxx/qla_init.c "-> fwdt%u calculating fwdump size...\n", j); j 3267 drivers/scsi/qla2xxx/qla_init.c j, fwdt->dump_size); j 7631 drivers/scsi/qla2xxx/qla_init.c uint j; j 7658 drivers/scsi/qla2xxx/qla_init.c for (j = 0; j < segments; j++) { j 7660 drivers/scsi/qla2xxx/qla_init.c "-> Loading segment %u...\n", j); j 7700 drivers/scsi/qla2xxx/qla_init.c for (j = 0; j < templates; j++, fwdt++) { j 7711 drivers/scsi/qla2xxx/qla_init.c j, faddr, risc_size); j 7714 drivers/scsi/qla2xxx/qla_init.c "-> fwdt%u failed to read array\n", j); j 7724 drivers/scsi/qla2xxx/qla_init.c j, risc_size); j 7728 drivers/scsi/qla2xxx/qla_init.c "-> fwdt%u failed allocate template.\n", j); j 7737 drivers/scsi/qla2xxx/qla_init.c "-> fwdt%u failed template validate\n", j); j 7744 drivers/scsi/qla2xxx/qla_init.c j, dlen, dlen / sizeof(*dcode)); j 7748 drivers/scsi/qla2xxx/qla_init.c j, dlen - risc_size * sizeof(*dcode)); j 7754 drivers/scsi/qla2xxx/qla_init.c "-> fwdt%u loaded template ok\n", j); j 7880 drivers/scsi/qla2xxx/qla_init.c uint j; j 7913 drivers/scsi/qla2xxx/qla_init.c for (j = 0; j < segments; j++) { j 7915 drivers/scsi/qla2xxx/qla_init.c "-> Loading segment %u...\n", j); j 7957 drivers/scsi/qla2xxx/qla_init.c for (j = 0; j < templates; j++, fwdt++) { j 7966 drivers/scsi/qla2xxx/qla_init.c j, (uint32_t)((void *)fwcode - (void *)blob->fw->data), j 7970 drivers/scsi/qla2xxx/qla_init.c "-> fwdt%u failed to read array\n", j); j 7980 drivers/scsi/qla2xxx/qla_init.c j, risc_size); j 7984 drivers/scsi/qla2xxx/qla_init.c "-> fwdt%u failed allocate template.\n", j); j 7994 drivers/scsi/qla2xxx/qla_init.c "-> fwdt%u failed template validate\n", j); j 8001 drivers/scsi/qla2xxx/qla_init.c j, dlen, dlen / sizeof(*dcode)); j 8005 drivers/scsi/qla2xxx/qla_init.c j, dlen - risc_size * sizeof(*dcode)); j 8011 drivers/scsi/qla2xxx/qla_init.c "-> fwdt%u loaded template ok\n", j); j 2185 drivers/scsi/qla2xxx/qla_isr.c uint32_t i, j = 0, k = 0, num_ent; j 2197 drivers/scsi/qla2xxx/qla_isr.c j = blocks_done - k - 1; j 2210 drivers/scsi/qla2xxx/qla_isr.c spt += j; j 1335 drivers/scsi/qla2xxx/qla_nx.c int i, j, ret = 0, loop, sz[2], off0; j 1417 drivers/scsi/qla2xxx/qla_nx.c for (j = 0; j < MAX_CTL_CHECK; j++) { j 1423 drivers/scsi/qla2xxx/qla_nx.c if (j >= MAX_CTL_CHECK) { j 1472 drivers/scsi/qla2xxx/qla_nx.c int i, j = 0, k, start, end, loop, sz[2], off0[2]; j 1508 drivers/scsi/qla2xxx/qla_nx.c for (j = 0; j < MAX_CTL_CHECK; j++) { j 1514 drivers/scsi/qla2xxx/qla_nx.c if (j >= MAX_CTL_CHECK) { j 1530 drivers/scsi/qla2xxx/qla_nx.c if (j >= MAX_CTL_CHECK) j 4069 drivers/scsi/qla2xxx/qla_nx.c uint32_t i, j, loop_cnt; j 4106 drivers/scsi/qla2xxx/qla_nx.c for (j = 0; j < MAX_CTL_CHECK; j++) { j 4113 drivers/scsi/qla2xxx/qla_nx.c if (j >= MAX_CTL_CHECK) { j 4120 drivers/scsi/qla2xxx/qla_nx.c for (j = 0; j < 4; j++) { j 4122 drivers/scsi/qla2xxx/qla_nx.c MD_MIU_TEST_AGT_RDDATA[j], 0, 0); j 1125 drivers/scsi/qla2xxx/qla_nx2.c int i, j, ret_val = QLA_SUCCESS; j 1184 drivers/scsi/qla2xxx/qla_nx2.c for (j = 0; j < MAX_CTL_CHECK; j++) { j 1198 drivers/scsi/qla2xxx/qla_nx2.c if (j >= MAX_CTL_CHECK) { j 2355 drivers/scsi/qla2xxx/qla_nx2.c uint32_t i, j, loop_cnt; j 2398 drivers/scsi/qla2xxx/qla_nx2.c for (j = 0; j < MAX_CTL_CHECK; j++) { j 2405 drivers/scsi/qla2xxx/qla_nx2.c if (j >= MAX_CTL_CHECK) { j 2410 drivers/scsi/qla2xxx/qla_nx2.c for (j = 0; j < 4; j++) { j 2411 drivers/scsi/qla2xxx/qla_nx2.c qla8044_rd_reg_indirect(vha, MD_MIU_TEST_AGT_RDDATA[j], j 4597 drivers/scsi/qla2xxx/qla_os.c uint j; j 4621 drivers/scsi/qla2xxx/qla_os.c for (j = 0; j < 2; j++, fwdt++) { j 999 drivers/scsi/qla2xxx/qla_tmpl.c uint j; j 1003 drivers/scsi/qla2xxx/qla_tmpl.c for (j = 0; j < 2; j++, fwdt++, buf += len) { j 1005 drivers/scsi/qla2xxx/qla_tmpl.c "-> fwdt%u running...\n", j); j 1008 drivers/scsi/qla2xxx/qla_tmpl.c "-> fwdt%u no template\n", j); j 1016 drivers/scsi/qla2xxx/qla_tmpl.c j, fwdt->dump_size - len); j 102 drivers/scsi/qla2xxx/tcm_qla2xxx.c unsigned int i, j; j 108 drivers/scsi/qla2xxx/tcm_qla2xxx.c for (i = 0, j = 0; i < 16; i++) { j 113 drivers/scsi/qla2xxx/tcm_qla2xxx.c j = (j << 4) | value; j 118 drivers/scsi/qla2xxx/tcm_qla2xxx.c wwn[i/2] = j & 0xff; j 119 drivers/scsi/qla2xxx/tcm_qla2xxx.c j = 0; j 174 drivers/scsi/qla4xxx/ql4_def.h int i, j; \ j 175 drivers/scsi/qla4xxx/ql4_def.h for (i = 0, j = ISID_SIZE - 1; i < ISID_SIZE;) \ j 176 drivers/scsi/qla4xxx/ql4_def.h dst_isid[i++] = src_isid[j--]; \ j 1195 drivers/scsi/qla4xxx/ql4_nx.c int i, j; j 1259 drivers/scsi/qla4xxx/ql4_nx.c for (j = 0; j < MAX_CTL_CHECK; j++) { j 1273 drivers/scsi/qla4xxx/ql4_nx.c if (j >= MAX_CTL_CHECK) { j 1369 drivers/scsi/qla4xxx/ql4_nx.c int i, j = 0, k, start, end, loop, sz[2], off0[2]; j 1407 drivers/scsi/qla4xxx/ql4_nx.c for (j = 0; j < MAX_CTL_CHECK; j++) { j 1413 drivers/scsi/qla4xxx/ql4_nx.c if (j >= MAX_CTL_CHECK) { j 1429 drivers/scsi/qla4xxx/ql4_nx.c if (j >= MAX_CTL_CHECK) j 1460 drivers/scsi/qla4xxx/ql4_nx.c int i, j, ret = 0, loop, sz[2], off0; j 1543 drivers/scsi/qla4xxx/ql4_nx.c for (j = 0; j < MAX_CTL_CHECK; j++) { j 1549 drivers/scsi/qla4xxx/ql4_nx.c if (j >= MAX_CTL_CHECK) { j 2482 drivers/scsi/qla4xxx/ql4_nx.c uint32_t i, j, loop_cnt; j 2526 drivers/scsi/qla4xxx/ql4_nx.c for (j = 0; j < MAX_CTL_CHECK; j++) { j 2533 drivers/scsi/qla4xxx/ql4_nx.c if (j >= MAX_CTL_CHECK) { j 2541 drivers/scsi/qla4xxx/ql4_nx.c for (j = 0; j < 4; j++) { j 2543 drivers/scsi/qla4xxx/ql4_nx.c MD_MIU_TEST_AGT_RDDATA[j], j 98 drivers/scsi/qlogicfas408.c int j; j 100 drivers/scsi/qlogicfas408.c j = 0; j 110 drivers/scsi/qlogicfas408.c while (reqlen >= 84 && !(j & 0xc0)) /* 2/3 */ j 111 drivers/scsi/qlogicfas408.c if ((j = inb(qbase + 8)) & 4) j 125 drivers/scsi/qlogicfas408.c j = 0; j 126 drivers/scsi/qlogicfas408.c while (reqlen && !((j & 0x10) && (j & 0xc0))) j 129 drivers/scsi/qlogicfas408.c j &= 0xc0; j 130 drivers/scsi/qlogicfas408.c while (reqlen && !((j = inb(qbase + 8)) & 0x10)) j 135 drivers/scsi/qlogicfas408.c if (j & 0x10) j 136 drivers/scsi/qlogicfas408.c j = inb(qbase + 8); j 147 drivers/scsi/qlogicfas408.c while (reqlen >= 84 && !(j & 0xc0)) /* 1/3 */ j 148 drivers/scsi/qlogicfas408.c if (!((j = inb(qbase + 8)) & 8)) { j 161 drivers/scsi/qlogicfas408.c j = 0; j 162 drivers/scsi/qlogicfas408.c while (reqlen && !((j & 2) && (j & 0xc0))) { j 164 drivers/scsi/qlogicfas408.c while (reqlen && !((j = inb(qbase + 8)) & 2)) j 169 drivers/scsi/qlogicfas408.c if (j & 2) j 170 drivers/scsi/qlogicfas408.c j = inb(qbase + 8); j 261 drivers/scsi/qlogicfas408.c unsigned int i, j; j 274 drivers/scsi/qlogicfas408.c j = inb(qbase + 6); j 285 drivers/scsi/qlogicfas408.c j &= 7; /* j = inb( qbase + 7 ) >> 5; */ j 292 drivers/scsi/qlogicfas408.c if (j != 3 && j != 4) { j 294 drivers/scsi/qlogicfas408.c j, i, inb(qbase + 7) & 0x1f); j 361 drivers/scsi/qlogicfas408.c j = inb(qbase + 7) & 0x1f; /* and bytes rec'd */ j 369 drivers/scsi/qlogicfas408.c if (!((i == 8 && j == 2) || (i == 0x10 && j == 1))) { j 370 drivers/scsi/qlogicfas408.c printk(KERN_ERR "Ql:Error during status phase, int=%02X, %d bytes recd\n", i, j); j 2795 drivers/scsi/scsi_debug.c int i, j, n; j 2801 drivers/scsi/scsi_debug.c for (j = 0, n = 0; j < 16; j++) { j 2802 drivers/scsi/scsi_debug.c unsigned char c = buf[i+j]; j 2806 drivers/scsi/scsi_debug.c " %c ", buf[i+j]); j 2809 drivers/scsi/scsi_debug.c "%02x ", buf[i+j]); j 3618 drivers/scsi/scsi_debug.c int k, j, n, res; j 3666 drivers/scsi/scsi_debug.c for (k = 0, j = 0, res = 0; true; ++k, j = 0) { j 3672 drivers/scsi/scsi_debug.c j = 1; j 3674 drivers/scsi/scsi_debug.c for ( ; j < RL_BUCKET_ELEMS; ++j, ++lun_p) { j 3675 drivers/scsi/scsi_debug.c if ((k * RL_BUCKET_ELEMS) + j > lun_cnt) j 3679 drivers/scsi/scsi_debug.c if (j < RL_BUCKET_ELEMS) j 3681 drivers/scsi/scsi_debug.c n = j * sz_lun; j 3689 drivers/scsi/scsi_debug.c ++j; j 3691 drivers/scsi/scsi_debug.c if (j > 0) j 3692 drivers/scsi/scsi_debug.c res = p_fill_from_dev_buffer(scp, arr, j * sz_lun, off_rsp); j 3925 drivers/scsi/scsi_debug.c int j, k, qmax, r_qmax; j 3932 drivers/scsi/scsi_debug.c for (j = 0, sqp = sdebug_q_arr; j < submit_queues; ++j, ++sqp) { j 3970 drivers/scsi/scsi_debug.c int j, k; j 3977 drivers/scsi/scsi_debug.c for (j = 0, sqp = sdebug_q_arr; j < submit_queues; ++j, ++sqp) { j 4008 drivers/scsi/scsi_debug.c int j, k; j 4012 drivers/scsi/scsi_debug.c for (j = 0, sqp = sdebug_q_arr; j < submit_queues; ++j, ++sqp) { j 4198 drivers/scsi/scsi_debug.c int j; j 4201 drivers/scsi/scsi_debug.c for (j = 0, sqp = sdebug_q_arr; j < submit_queues; ++j, ++sqp) j 4576 drivers/scsi/scsi_debug.c int f, j, l; j 4604 drivers/scsi/scsi_debug.c for (j = 0, sqp = sdebug_q_arr; j < submit_queues; ++j, ++sqp) { j 4605 drivers/scsi/scsi_debug.c seq_printf(m, " queue %d:\n", j); j 4631 drivers/scsi/scsi_debug.c int j, k; j 4635 drivers/scsi/scsi_debug.c for (j = 0, sqp = sdebug_q_arr; j < submit_queues; j 4636 drivers/scsi/scsi_debug.c ++j, ++sqp) { j 4671 drivers/scsi/scsi_debug.c int j, k; j 4675 drivers/scsi/scsi_debug.c for (j = 0, sqp = sdebug_q_arr; j < submit_queues; j 4676 drivers/scsi/scsi_debug.c ++j, ++sqp) { j 4910 drivers/scsi/scsi_debug.c int j, n, k, a; j 4917 drivers/scsi/scsi_debug.c for (j = 0, sqp = sdebug_q_arr; j < submit_queues; j 4918 drivers/scsi/scsi_debug.c ++j, ++sqp) { j 5684 drivers/scsi/scsi_debug.c int j; j 5689 drivers/scsi/scsi_debug.c for (j = 7; j >= 0; --j, rem <<= 1) { j 5693 drivers/scsi/scsi_debug.c mk_sense_invalid_fld(scp, SDEB_IN_CDB, k, j); j 1810 drivers/scsi/scsi_transport_fc.c unsigned int i, j; j 1816 drivers/scsi/scsi_transport_fc.c for (i=0, j=0; i < 16; i++) { j 1821 drivers/scsi/scsi_transport_fc.c j = (j << 4) | value; j 1825 drivers/scsi/scsi_transport_fc.c wwn[i/2] = j & 0xff; j 1826 drivers/scsi/scsi_transport_fc.c j = 0; j 443 drivers/scsi/scsi_transport_spi.c int j, picosec, period = -1; j 458 drivers/scsi/scsi_transport_spi.c for (j = 0; j <= SPI_STATIC_PPR; j++) { j 459 drivers/scsi/scsi_transport_spi.c if (ppr_to_ps[j] < picosec) j 461 drivers/scsi/scsi_transport_spi.c period = j; j 627 drivers/scsi/scsi_transport_spi.c int j, k, r, result; j 640 drivers/scsi/scsi_transport_spi.c for (j = 0; j < len; ) { j 643 drivers/scsi/scsi_transport_spi.c for ( ; j < min(len, 32); j++) j 644 drivers/scsi/scsi_transport_spi.c buffer[j] = j; j 645 drivers/scsi/scsi_transport_spi.c k = j; j 648 drivers/scsi/scsi_transport_spi.c for ( ; j < min(len, k + 32); j += 2) { j 649 drivers/scsi/scsi_transport_spi.c u16 *word = (u16 *)&buffer[j]; j 651 drivers/scsi/scsi_transport_spi.c *word = (j & 0x02) ? 0x0000 : 0xffff; j 653 drivers/scsi/scsi_transport_spi.c k = j; j 656 drivers/scsi/scsi_transport_spi.c for ( ; j < min(len, k + 32); j += 2) { j 657 drivers/scsi/scsi_transport_spi.c u16 *word = (u16 *)&buffer[j]; j 659 drivers/scsi/scsi_transport_spi.c *word = (j & 0x02) ? 0x5555 : 0xaaaa; j 661 drivers/scsi/scsi_transport_spi.c k = j; j 663 drivers/scsi/scsi_transport_spi.c for ( ; j < min(len, k + 32); j += 4) { j 664 drivers/scsi/scsi_transport_spi.c u32 *word = (unsigned int *)&buffer[j]; j 137 drivers/scsi/ses.c int i, j, count = 0, descriptor = ecomp->number; j 146 drivers/scsi/ses.c for (j = 0; j < type_ptr[1]; j++) { j 167 drivers/scsi/ses.c int i, j, count = 0, descriptor = ecomp->number; j 177 drivers/scsi/ses.c for (j = 0; j < type_ptr[1]; j++) { j 503 drivers/scsi/ses.c int i, j, page7_len, len, components; j 543 drivers/scsi/ses.c for (j = 0; j < type_ptr[1]; j++) { j 46 drivers/scsi/snic/vnic_wq.c unsigned int i, j, count = wq->ring.desc_count; j 60 drivers/scsi/snic/vnic_wq.c for (j = 0; j < VNIC_WQ_BUF_DFLT_BLK_ENTRIES; j++) { j 61 drivers/scsi/snic/vnic_wq.c buf->index = i * VNIC_WQ_BUF_DFLT_BLK_ENTRIES + j; j 67 drivers/scsi/snic/vnic_wq.c } else if (j + 1 == VNIC_WQ_BUF_DFLT_BLK_ENTRIES) { j 4904 drivers/scsi/st.c int res, i, j; j 4946 drivers/scsi/st.c for (j=0; j < res; j++) j 4947 drivers/scsi/st.c put_page(pages[j]); j 2967 drivers/scsi/sym53c8xx_2/sym_hipd.c int j; j 2979 drivers/scsi/sym53c8xx_2/sym_hipd.c j = i; j 2999 drivers/scsi/sym53c8xx_2/sym_hipd.c if (i != j) j 3000 drivers/scsi/sym53c8xx_2/sym_hipd.c np->squeue[j] = np->squeue[i]; j 3001 drivers/scsi/sym53c8xx_2/sym_hipd.c if ((j += 2) >= MAX_QUEUE*2) j = 0; j 3005 drivers/scsi/sym53c8xx_2/sym_hipd.c if (i != j) /* Copy back the idle task if needed */ j 3006 drivers/scsi/sym53c8xx_2/sym_hipd.c np->squeue[j] = np->squeue[i]; j 3007 drivers/scsi/sym53c8xx_2/sym_hipd.c np->squeueput = j; /* Update our current start queue pointer */ j 3009 drivers/scsi/sym53c8xx_2/sym_hipd.c return (i - j) / 2; j 51 drivers/scsi/sym53c8xx_2/sym_malloc.c int j; j 63 drivers/scsi/sym53c8xx_2/sym_malloc.c j = i; j 64 drivers/scsi/sym53c8xx_2/sym_malloc.c while (!h[j].next) { j 66 drivers/scsi/sym53c8xx_2/sym_malloc.c h[j].next = (m_link_p) M_GET_MEM_CLUSTER(); j 67 drivers/scsi/sym53c8xx_2/sym_malloc.c if (h[j].next) j 68 drivers/scsi/sym53c8xx_2/sym_malloc.c h[j].next->next = NULL; j 71 drivers/scsi/sym53c8xx_2/sym_malloc.c ++j; j 74 drivers/scsi/sym53c8xx_2/sym_malloc.c a = h[j].next; j 76 drivers/scsi/sym53c8xx_2/sym_malloc.c h[j].next = h[j].next->next; j 77 drivers/scsi/sym53c8xx_2/sym_malloc.c while (j > i) { j 78 drivers/scsi/sym53c8xx_2/sym_malloc.c j -= 1; j 80 drivers/scsi/sym53c8xx_2/sym_malloc.c h[j].next = (m_link_p) (a+s); j 81 drivers/scsi/sym53c8xx_2/sym_malloc.c h[j].next->next = NULL; j 206 drivers/scsi/sym53c8xx_2/sym_nvram.c int sync, j; j 208 drivers/scsi/sym53c8xx_2/sym_nvram.c j = tn->sync_index & 0xf; j 209 drivers/scsi/sym53c8xx_2/sym_nvram.c sync = Tekram_sync[j]; j 45 drivers/sh/intc/balancing.c unsigned int i, j, fn, mode; j 58 drivers/sh/intc/balancing.c for (j = 0; j < ARRAY_SIZE(mr->enum_ids); j++) { j 59 drivers/sh/intc/balancing.c if (mr->enum_ids[j] != enum_id) j 72 drivers/sh/intc/balancing.c (mr->reg_width - 1) - j); j 22 drivers/sh/intc/handle.c unsigned int i, j; j 27 drivers/sh/intc/handle.c for (j = 0; g->enum_ids[j]; j++) { j 28 drivers/sh/intc/handle.c if (g->enum_ids[j] != enum_id) j 93 drivers/sh/intc/handle.c unsigned int j = 0; j 96 drivers/sh/intc/handle.c ret = _intc_mask_data(desc, d, enum_id, &i, &j); j 162 drivers/sh/intc/handle.c unsigned int j = 0; j 165 drivers/sh/intc/handle.c ret = _intc_prio_data(desc, d, enum_id, &i, &j); j 179 drivers/sh/intc/handle.c unsigned int i, j, fn, mode; j 185 drivers/sh/intc/handle.c for (j = 0; j < ARRAY_SIZE(mr->enum_ids); j++) { j 186 drivers/sh/intc/handle.c if (mr->enum_ids[j] != enum_id) j 199 drivers/sh/intc/handle.c (mr->reg_width - 1) - j); j 235 drivers/sh/intc/handle.c unsigned int i, j, data; j 238 drivers/sh/intc/handle.c i = j = 0; j 240 drivers/sh/intc/handle.c data = _intc_mask_data(desc, d, enum_id, &i, &j); j 243 drivers/sh/intc/handle.c j++; j 247 drivers/sh/intc/handle.c i = j = 0; j 249 drivers/sh/intc/handle.c data = _intc_prio_data(desc, d, enum_id, &i, &j); j 253 drivers/sh/intc/handle.c j++; j 262 drivers/sh/intc/handle.c unsigned int i, j, fn, bit; j 267 drivers/sh/intc/handle.c for (j = 0; j < ARRAY_SIZE(sr->enum_ids); j++) { j 268 drivers/sh/intc/handle.c if (sr->enum_ids[j] != enum_id) j 274 drivers/sh/intc/handle.c BUG_ON((j + 1) * sr->field_width > sr->reg_width); j 276 drivers/sh/intc/handle.c bit = sr->reg_width - ((j + 1) * sr->field_width); j 46 drivers/siox/siox-bus-gpio.c size_t j; j 51 drivers/siox/siox-bus-gpio.c for (j = 0; j < 8; ++j) { j 84 drivers/soc/fsl/qbman/bman_test_api.c int i, j; j 89 drivers/soc/fsl/qbman/bman_test_api.c for (j = 0; j < NUM_BUFS; j++) j 90 drivers/soc/fsl/qbman/bman_test_api.c if (!bufs_cmp(&bufs_in[i], &bufs_out[j])) j 502 drivers/soc/fsl/qbman/qman_ccsr.c u32 i, j, mask = 0xffffffff; j 510 drivers/soc/fsl/qbman/qman_ccsr.c j = 16 - i; j 511 drivers/soc/fsl/qbman/qman_ccsr.c dev_warn(dev, " 0x%08x\n", qm_ccsr_in(REG_EDATA(j)) & mask); j 512 drivers/soc/fsl/qbman/qman_ccsr.c j++; j 513 drivers/soc/fsl/qbman/qman_ccsr.c for (; j < 16; j++) j 514 drivers/soc/fsl/qbman/qman_ccsr.c dev_warn(dev, " 0x%08x\n", qm_ccsr_in(REG_EDATA(j))); j 450 drivers/soc/fsl/qe/qe.c unsigned int j; j 542 drivers/soc/fsl/qe/qe.c for (j = 0; j < 16; j++) { j 543 drivers/soc/fsl/qe/qe.c u32 trap = be32_to_cpu(ucode->traps[j]); j 546 drivers/soc/fsl/qe/qe.c out_be32(&qe_immr->rsp[i].tibcr[j], trap); j 526 drivers/soc/ixp4xx/ixp4xx-npe.c int i, j, err, data_size, instr_size, blocks, table_end; j 643 drivers/soc/ixp4xx/ixp4xx-npe.c for (j = 0; j < cb->size; j++) j 644 drivers/soc/ixp4xx/ixp4xx-npe.c npe_cmd_write(npe, cb->npe_addr + j, cmd, cb->data[j]); j 351 drivers/soc/mediatek/mtk-scpsys.c int i, j; j 418 drivers/soc/mediatek/mtk-scpsys.c for (j = 0; j < MAX_CLKS && data->clk_id[j]; j++) { j 419 drivers/soc/mediatek/mtk-scpsys.c struct clk *c = clk[data->clk_id[j]]; j 427 drivers/soc/mediatek/mtk-scpsys.c scpd->clk[j] = c; j 141 drivers/soc/qcom/cmd-db.c int ret, i, j; j 157 drivers/soc/qcom/cmd-db.c for (j = 0; j < le16_to_cpu(rsc_hdr->cnt); j++, ent++) { j 210 drivers/soc/qcom/rpmh-rsc.c int i, j, err = 0; j 225 drivers/soc/qcom/rpmh-rsc.c for (j = 0; j < req->num_cmds; j++) { j 228 drivers/soc/qcom/rpmh-rsc.c cmd = &req->cmds[j]; j 229 drivers/soc/qcom/rpmh-rsc.c sts = read_tcs_reg(drv, RSC_DRV_CMD_STATUS, i, j); j 262 drivers/soc/qcom/rpmh-rsc.c int i, j; j 270 drivers/soc/qcom/rpmh-rsc.c for (i = 0, j = cmd_id; i < msg->num_cmds; i++, j++) { j 272 drivers/soc/qcom/rpmh-rsc.c cmd_enable |= BIT(j); j 273 drivers/soc/qcom/rpmh-rsc.c cmd_complete |= cmd->wait << j; j 277 drivers/soc/qcom/rpmh-rsc.c write_tcs_cmd(drv, RSC_DRV_CMD_MSGID, tcs_id, j, msgid); j 278 drivers/soc/qcom/rpmh-rsc.c write_tcs_cmd(drv, RSC_DRV_CMD_ADDR, tcs_id, j, cmd->addr); j 279 drivers/soc/qcom/rpmh-rsc.c write_tcs_cmd(drv, RSC_DRV_CMD_DATA, tcs_id, j, cmd->data); j 280 drivers/soc/qcom/rpmh-rsc.c trace_rpmh_send_msg(drv, tcs_id, j, msgid, cmd); j 315 drivers/soc/qcom/rpmh-rsc.c int i, j, k; j 324 drivers/soc/qcom/rpmh-rsc.c for_each_set_bit(j, &curr_enabled, MAX_CMDS_PER_TCS) { j 325 drivers/soc/qcom/rpmh-rsc.c addr = read_tcs_reg(drv, RSC_DRV_CMD_ADDR, tcs_id, j); j 425 drivers/soc/qcom/rpmh-rsc.c int i, j; j 433 drivers/soc/qcom/rpmh-rsc.c for (j = 0; j < len; j++) { j 434 drivers/soc/qcom/rpmh-rsc.c if (tcs->cmd_cache[i + j] != cmd[j].addr) j 387 drivers/soc/rockchip/pm_domains.c int i, j; j 458 drivers/soc/rockchip/pm_domains.c for (j = 0; j < MAX_QOS_REGS_NUM; j++) { j 459 drivers/soc/rockchip/pm_domains.c pd->qos_save_regs[j] = devm_kcalloc(pmu->dev, j 463 drivers/soc/rockchip/pm_domains.c if (!pd->qos_save_regs[j]) { j 469 drivers/soc/rockchip/pm_domains.c for (j = 0; j < pd->num_qos; j++) { j 470 drivers/soc/rockchip/pm_domains.c qos_node = of_parse_phandle(node, "pm_qos", j); j 475 drivers/soc/rockchip/pm_domains.c pd->qos_regmap[j] = syscon_node_to_regmap(qos_node); j 476 drivers/soc/rockchip/pm_domains.c if (IS_ERR(pd->qos_regmap[j])) { j 350 drivers/soc/ti/wkup_m3_ipc.c int j, val; j 356 drivers/soc/ti/wkup_m3_ipc.c for (j = 0; j < ARRAY_SIZE(wakeups) - 1; j++) { j 357 drivers/soc/ti/wkup_m3_ipc.c if (wakeups[j].irq_nr == wakeup_src_idx) j 358 drivers/soc/ti/wkup_m3_ipc.c return wakeups[j].src; j 360 drivers/soc/ti/wkup_m3_ipc.c return wakeups[j].src; j 254 drivers/soundwire/cadence_master.c int i, j; j 291 drivers/soundwire/cadence_master.c for (j = CDNS_DPN_B0_CONFIG(i); j 292 drivers/soundwire/cadence_master.c j < CDNS_DPN_B0_ASYNC_CTRL(i); j += sizeof(u32)) j 293 drivers/soundwire/cadence_master.c ret += cdns_sprintf(cdns, buf, ret, j); j 302 drivers/soundwire/cadence_master.c for (j = CDNS_DPN_B1_CONFIG(i); j 303 drivers/soundwire/cadence_master.c j < CDNS_DPN_B1_ASYNC_CTRL(i); j += sizeof(u32)) j 304 drivers/soundwire/cadence_master.c ret += cdns_sprintf(cdns, buf, ret, j); j 52 drivers/soundwire/debugfs.c int i, j; j 98 drivers/soundwire/debugfs.c for (j = SDW_DPN_INT(i); j <= SDW_DPN_PREPARECTRL(i); j++) j 99 drivers/soundwire/debugfs.c ret += sdw_sprintf(slave, buf, ret, j); j 103 drivers/soundwire/debugfs.c for (j = SDW_DPN_CHANNELEN_B0(i); j 104 drivers/soundwire/debugfs.c j <= SDW_DPN_LANECTRL_B0(i); j++) j 105 drivers/soundwire/debugfs.c ret += sdw_sprintf(slave, buf, ret, j); j 109 drivers/soundwire/debugfs.c for (j = SDW_DPN_CHANNELEN_B1(i); j 110 drivers/soundwire/debugfs.c j <= SDW_DPN_LANECTRL_B1(i); j++) j 111 drivers/soundwire/debugfs.c ret += sdw_sprintf(slave, buf, ret, j); j 199 drivers/soundwire/intel.c int i, j; j 232 drivers/soundwire/intel.c for (j = 0; j < 10; j++) { j 234 drivers/soundwire/intel.c SDW_SHIM_PCMSYCHM(i, j)); j 236 drivers/soundwire/intel.c SDW_SHIM_PCMSYCHC(i, j)); j 499 drivers/spi/spi-fsl-dspi.c int i, j; j 506 drivers/spi/spi-fsl-dspi.c for (j = 0; j < ARRAY_SIZE(pbr_tbl); j++) { j 507 drivers/spi/spi-fsl-dspi.c scale = brs[i] * pbr_tbl[j]; j 512 drivers/spi/spi-fsl-dspi.c *pbr = j; j 532 drivers/spi/spi-fsl-dspi.c int i, j; j 540 drivers/spi/spi-fsl-dspi.c for (j = 0; j <= SPI_CTAR_SCALE_BITS; j++) { j 541 drivers/spi/spi-fsl-dspi.c scale = pscale_tbl[i] * (2 << j); j 546 drivers/spi/spi-fsl-dspi.c *sc = j; j 424 drivers/spi/spi-geni-qcom.c unsigned int j; j 430 drivers/spi/spi-geni-qcom.c for (j = 0; j < bytes_to_write; j++) j 431 drivers/spi/spi-geni-qcom.c fifo_byte[j] = tx_buf[i++]; j 465 drivers/spi/spi-geni-qcom.c unsigned int j; j 469 drivers/spi/spi-geni-qcom.c for (j = 0; j < bytes_to_read; j++) j 470 drivers/spi/spi-geni-qcom.c rx_buf[i++] = fifo_byte[j]; j 669 drivers/spi/spi-loopback-test.c int i, j; j 690 drivers/spi/spi-loopback-test.c for (j = 0; j < xfers[i].len; j++, tx_buf++, count++) { j 721 drivers/spi/spi-loopback-test.c *tx_buf = j; j 724 drivers/spi/spi-loopback-test.c *tx_buf = GET_VALUE_BYTE(j, j, 2); j 727 drivers/spi/spi-loopback-test.c *tx_buf = GET_VALUE_BYTE(j, j, 3); j 730 drivers/spi/spi-loopback-test.c *tx_buf = GET_VALUE_BYTE(j, j, 4); j 681 drivers/spi/spi-nxp-fspi.c int j; j 688 drivers/spi/spi-nxp-fspi.c for (j = 0; j < ALIGN(op->data.nbytes - i, 4); j += 4) { j 689 drivers/spi/spi-nxp-fspi.c memcpy(&data, buf + i + j, 4); j 690 drivers/spi/spi-nxp-fspi.c fspi_writel(f, data, base + FSPI_TFDR + j); j 723 drivers/spi/spi-nxp-fspi.c int size, j; j 733 drivers/spi/spi-nxp-fspi.c for (j = 0; j < op->data.nbytes - i; j += 4) { j 734 drivers/spi/spi-nxp-fspi.c tmp = fspi_readl(f, base + FSPI_RFDR + j); j 736 drivers/spi/spi-nxp-fspi.c memcpy(buf + j, &tmp, size); j 544 drivers/spi/spi-topcliff-pch.c int j; j 601 drivers/spi/spi-topcliff-pch.c for (j = 0; j < data->bpw_len; j++) j 602 drivers/spi/spi-topcliff-pch.c data->pkt_tx_buff[j] = *tx_buf++; j 605 drivers/spi/spi-topcliff-pch.c for (j = 0; j < data->bpw_len; j++) j 606 drivers/spi/spi-topcliff-pch.c data->pkt_tx_buff[j] = *tx_sbuf++; j 620 drivers/spi/spi-topcliff-pch.c for (j = 0; j < n_writes; j++) j 621 drivers/spi/spi-topcliff-pch.c pch_spi_writereg(data->master, PCH_SPDWR, data->pkt_tx_buff[j]); j 624 drivers/spi/spi-topcliff-pch.c data->tx_index = j; j 718 drivers/spi/spi-topcliff-pch.c int j; j 728 drivers/spi/spi-topcliff-pch.c for (j = 0; j < data->bpw_len; j++) j 729 drivers/spi/spi-topcliff-pch.c *rx_buf++ = data->pkt_rx_buff[j] & 0xFF; j 732 drivers/spi/spi-topcliff-pch.c for (j = 0; j < data->bpw_len; j++) j 733 drivers/spi/spi-topcliff-pch.c *rx_sbuf++ = data->pkt_rx_buff[j]; j 739 drivers/spi/spi-topcliff-pch.c int j; j 752 drivers/spi/spi-topcliff-pch.c for (j = 0; j < data->bpw_len; j++) j 758 drivers/spi/spi-topcliff-pch.c for (j = 0; j < data->bpw_len; j++) j 184 drivers/spi/spi-xlp.c int i, j, nbytes; j 190 drivers/spi/spi-xlp.c j = 0; j 192 drivers/spi/spi-xlp.c for (i = nbytes - 1; i >= 0; i--, j++) j 193 drivers/spi/spi-xlp.c xspi->rx_buf[i] = (rx_data >> (j * 8)) & 0xff; j 204 drivers/spi/spi-xlp.c int i, j, nbytes; j 210 drivers/spi/spi-xlp.c j = 0; j 213 drivers/spi/spi-xlp.c for (i = nbytes - 1; i >= 0; i--, j++) j 214 drivers/spi/spi-xlp.c tx_data |= xspi->tx_buf[i] << (j * 8); j 24 drivers/staging/android/ion/ion_heap.c int i, j; j 46 drivers/staging/android/ion/ion_heap.c for (j = 0; j < npages_this_entry; j++) j 249 drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c int j; j 251 drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c for (j = i + 1; j < WZRD_NUM_OUTPUTS; j++) j 252 drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c clk_unregister(clk_wzrd->clkout[j]); j 351 drivers/staging/comedi/drivers/adv_pci_dio.c int ret, subdev, i, j; j 424 drivers/staging/comedi/drivers/adv_pci_dio.c for (j = 0; j < d->chans; j++) { j 427 drivers/staging/comedi/drivers/adv_pci_dio.c d->addr + j * I8255_SIZE); j 837 drivers/staging/comedi/drivers/amplc_pci224.c unsigned int i, j; j 853 drivers/staging/comedi/drivers/amplc_pci224.c for (j = 0; j < cmd->chanlist_len; j++) { j 854 drivers/staging/comedi/drivers/amplc_pci224.c if (CR_CHAN(cmd->chanlist[j]) < ch) j 2787 drivers/staging/comedi/drivers/cb_pcidas64.c int j; j 2794 drivers/staging/comedi/drivers/cb_pcidas64.c for (j = 0, next_transfer_addr = readl(pci_addr_reg); j 2799 drivers/staging/comedi/drivers/cb_pcidas64.c DMA_BUFFER_SIZE) && j < ai_dma_ring_count(board); j++) { j 626 drivers/staging/comedi/drivers/jr3_pci.c int j; j 635 drivers/staging/comedi/drivers/jr3_pci.c for (j = 0; j < 8; j++) { j 636 drivers/staging/comedi/drivers/jr3_pci.c spriv->range[j].l.length = 1; j 637 drivers/staging/comedi/drivers/jr3_pci.c spriv->range[j].l.range[0].min = -1000000; j 638 drivers/staging/comedi/drivers/jr3_pci.c spriv->range[j].l.range[0].max = 1000000; j 641 drivers/staging/comedi/drivers/jr3_pci.c spriv->range_table_list[j + k * 8] = &spriv->range[j].l; j 642 drivers/staging/comedi/drivers/jr3_pci.c spriv->maxdata_list[j + k * 8] = 0x7fff; j 506 drivers/staging/comedi/drivers/ni_660x.c unsigned int j; j 509 drivers/staging/comedi/drivers/ni_660x.c for (j = 0; j < NI660X_COUNTERS_PER_CHIP; ++j) { j 510 drivers/staging/comedi/drivers/ni_660x.c devpriv->ring[i][j] = mite_alloc_ring(devpriv->mite); j 511 drivers/staging/comedi/drivers/ni_660x.c if (!devpriv->ring[i][j]) j 523 drivers/staging/comedi/drivers/ni_660x.c unsigned int j; j 526 drivers/staging/comedi/drivers/ni_660x.c for (j = 0; j < NI660X_COUNTERS_PER_CHIP; ++j) j 527 drivers/staging/comedi/drivers/ni_660x.c mite_free_ring(devpriv->ring[i][j]); j 252 drivers/staging/comedi/drivers/ni_at_a2150.c int i, j; j 271 drivers/staging/comedi/drivers/ni_at_a2150.c for (j = 0; j < board->num_clocks; j++) { j 273 drivers/staging/comedi/drivers/ni_at_a2150.c temp = board->clock[j] * (1 << i); j 277 drivers/staging/comedi/drivers/ni_at_a2150.c lub_index = j; j 282 drivers/staging/comedi/drivers/ni_at_a2150.c glb_index = j; j 4429 drivers/staging/comedi/drivers/ni_mio_common.c int i, j; j 4462 drivers/staging/comedi/drivers/ni_mio_common.c for (j = 0; j < caldacs[type].n_chans; j++) { j 763 drivers/staging/comedi/drivers/ni_pcidio.c size_t j; j 790 drivers/staging/comedi/drivers/ni_pcidio.c for (j = 0; j + 1 < data_len;) { j 791 drivers/staging/comedi/drivers/ni_pcidio.c unsigned int value = data[j++]; j 793 drivers/staging/comedi/drivers/ni_pcidio.c value |= data[j++] << 8; j 121 drivers/staging/comedi/drivers/ni_routes.c int j; j 123 drivers/staging/comedi/drivers/ni_routes.c for (j = 0; j < R->n_src; ++j) { j 124 drivers/staging/comedi/drivers/ni_routes.c const int src = R->src[j]; j 175 drivers/staging/comedi/drivers/ni_routes.c int j; j 177 drivers/staging/comedi/drivers/ni_routes.c for (j = 0; j < R->n_src; ++j) { j 178 drivers/staging/comedi/drivers/ni_routes.c const int src = R->src[j]; j 119 drivers/staging/comedi/drivers/ni_routing/tools/convert_c_to_py.c unsigned int j = 0; j 121 drivers/staging/comedi/drivers/ni_routing/tools/convert_c_to_py.c while (dR->routes[i].src[j] != 0) { j 122 drivers/staging/comedi/drivers/ni_routing/tools/convert_c_to_py.c if (!is_valid_ni_sig(dR->routes[i].src[j])) { j 125 drivers/staging/comedi/drivers/ni_routing/tools/convert_c_to_py.c dR->routes[i].src[j], dR->device, i, j); j 129 drivers/staging/comedi/drivers/ni_routing/tools/convert_c_to_py.c fprintf(fp, "%u,", dR->routes[i].src[j]); j 131 drivers/staging/comedi/drivers/ni_routing/tools/convert_c_to_py.c ++j; j 202 drivers/staging/comedi/drivers/tests/ni_routes_test.c int j; j 205 drivers/staging/comedi/drivers/tests/ni_routes_test.c for (j = 0; j < devroutes->routes[i].n_src; ++j) { j 206 drivers/staging/comedi/drivers/tests/ni_routes_test.c if (last >= devroutes->routes[i].src[j]) j 208 drivers/staging/comedi/drivers/tests/ni_routes_test.c last = devroutes->routes[i].src[j]; j 470 drivers/staging/comedi/drivers/usbduxfast.c int j, ret; j 631 drivers/staging/comedi/drivers/usbduxfast.c for (j = 0; j < 1; j++) { j 632 drivers/staging/comedi/drivers/usbduxfast.c int index = j * 2; j 634 drivers/staging/comedi/drivers/usbduxfast.c if (CR_RANGE(cmd->chanlist[j]) > 0) j 647 drivers/staging/comedi/drivers/usbduxfast.c if (CR_RANGE(cmd->chanlist[j + 1]) > 0) j 770 drivers/staging/comedi/drivers/usbduxfast.c int i, j, n, actual_length; j 830 drivers/staging/comedi/drivers/usbduxfast.c for (j = chan; (j < n) && (i < insn->n); j = j + 16) { j 831 drivers/staging/comedi/drivers/usbduxfast.c data[i] = ((u16 *)(devpriv->inbuf))[j]; j 508 drivers/staging/exfat/exfat_core.c int i, j, ret; j 551 drivers/staging/exfat/exfat_core.c for (j = 0; j < p_fs->map_sectors; j++) { j 552 drivers/staging/exfat/exfat_core.c p_fs->vol_amap[j] = NULL; j 553 drivers/staging/exfat/exfat_core.c ret = sector_read(sb, sector + j, &(p_fs->vol_amap[j]), 1); j 557 drivers/staging/exfat/exfat_core.c while (i < j) j 702 drivers/staging/exfat/exfat_core.c u32 j; j 762 drivers/staging/exfat/exfat_core.c for (j = 0; j < UTBL_ROW_COUNT; j++) j 763 drivers/staging/exfat/exfat_core.c upcase_table[col_index][j] = (col_index << LOW_INDEX_BIT) | j; j 787 drivers/staging/exfat/exfat_core.c u32 j; j 825 drivers/staging/exfat/exfat_core.c for (j = 0; j < UTBL_ROW_COUNT; j++) j 826 drivers/staging/exfat/exfat_core.c upcase_table[col_index][j] = (col_index << LOW_INDEX_BIT) | j; j 2746 drivers/staging/exfat/exfat_core.c int i, j, count = 0; j 2787 drivers/staging/exfat/exfat_core.c for (j = 0; j < 8; j++) { j 2788 drivers/staging/exfat/exfat_core.c if (ep->name[j] == ' ') j 2791 drivers/staging/exfat/exfat_core.c if (ep->name[j] == '~') { j 2794 drivers/staging/exfat/exfat_core.c if ((ep->name[j] >= '0') && j 2795 drivers/staging/exfat/exfat_core.c (ep->name[j] <= '9')) { j 2797 drivers/staging/exfat/exfat_core.c (ep->name[j] - '0'); j 2819 drivers/staging/exfat/exfat_core.c for (j = 0; j < 8; j++) { j 2820 drivers/staging/exfat/exfat_core.c if (exfat_bitmap_test(&bmap[i], j) == 0) { j 2821 drivers/staging/exfat/exfat_core.c count = (i << 3) + j; j 2840 drivers/staging/exfat/exfat_core.c int i, j, length; j 2847 drivers/staging/exfat/exfat_core.c j = 0; j 2848 drivers/staging/exfat/exfat_core.c while (j <= (8 - length)) { j 2849 drivers/staging/exfat/exfat_core.c i = j; j 2850 drivers/staging/exfat/exfat_core.c if (dosname[j] == ' ') j 2852 drivers/staging/exfat/exfat_core.c if (dosname[j] & 0x80) j 2853 drivers/staging/exfat/exfat_core.c j += 2; j 2855 drivers/staging/exfat/exfat_core.c j++; j 2858 drivers/staging/exfat/exfat_core.c for (j = 0; j < length; i++, j++) j 2859 drivers/staging/exfat/exfat_core.c dosname[i] = (u8)str_count[j]; j 121 drivers/staging/exfat/exfat_nls.c int i, j, len; j 197 drivers/staging/exfat/exfat_nls.c for (j = 0; j < len; j++, i++) j 198 drivers/staging/exfat/exfat_nls.c *(dosname + i) = *(buf + j); j 243 drivers/staging/exfat/exfat_nls.c int i = 0, j, n = 0; j 283 drivers/staging/exfat/exfat_nls.c j = 0; j 284 drivers/staging/exfat/exfat_nls.c while (j < (MAX_NAME_LENGTH - 1)) { j 291 drivers/staging/exfat/exfat_nls.c j++; j 300 drivers/staging/exfat/exfat_nls.c int i, j, len; j 321 drivers/staging/exfat/exfat_nls.c for (j = 0; j < len; j++) j 322 drivers/staging/exfat/exfat_nls.c *p_cstring++ = (char)*(buf + j); j 338 drivers/staging/exfat/exfat_nls.c int i, j; j 370 drivers/staging/exfat/exfat_nls.c for (j = 0; j < i; j++) j 371 drivers/staging/exfat/exfat_nls.c SET16_A(upname + j * 2, nls_upper(sb, uniname[j])); j 375 drivers/staging/exfat/exfat_nls.c j = 0; j 376 drivers/staging/exfat/exfat_nls.c while (j < (MAX_NAME_LENGTH - 1)) { j 387 drivers/staging/exfat/exfat_nls.c SET16_A(upname + j * 2, nls_upper(sb, *uniname)); j 390 drivers/staging/exfat/exfat_nls.c j++; j 398 drivers/staging/exfat/exfat_nls.c p_uniname->name_len = j; j 399 drivers/staging/exfat/exfat_nls.c p_uniname->name_hash = calc_checksum_2byte(upname, j << 1, 0, j 262 drivers/staging/fbtft/fb_agm1264k-fl.c u16 i, j; j 267 drivers/staging/fbtft/fb_agm1264k-fl.c for (j = 0; j < DIFFUSING_MATRIX_HEIGHT; ++j) { j 272 drivers/staging/fbtft/fb_agm1264k-fl.c if (x + i < 0 || x + i >= xres || y + j >= yres) j 274 drivers/staging/fbtft/fb_agm1264k-fl.c write_pos = &convert_buf[(y + j) * xres + x + i]; j 275 drivers/staging/fbtft/fb_agm1264k-fl.c coeff = diffusing_matrix[i][j]; j 159 drivers/staging/fbtft/fb_hx8340bn.c int i, j; j 163 drivers/staging/fbtft/fb_hx8340bn.c for (j = 0; j < par->gamma.num_values; j++) j 164 drivers/staging/fbtft/fb_hx8340bn.c CURVE(i, j) &= mask[i * par->gamma.num_values + j]; j 102 drivers/staging/fbtft/fb_hx8347d.c int i, j; j 107 drivers/staging/fbtft/fb_hx8347d.c for (j = 0; j < par->gamma.num_values; j++) { j 108 drivers/staging/fbtft/fb_hx8347d.c acc += CURVE(i, j); j 109 drivers/staging/fbtft/fb_hx8347d.c CURVE(i, j) &= mask[j]; j 202 drivers/staging/fbtft/fb_ili9163.c int i, j; j 205 drivers/staging/fbtft/fb_ili9163.c for (j = 0; j < GAMMA_LEN; j++) j 206 drivers/staging/fbtft/fb_ili9163.c CURVE(i, j) &= mask[i * par->gamma.num_values + j]; j 221 drivers/staging/fbtft/fb_ili9320.c int i, j; j 225 drivers/staging/fbtft/fb_ili9320.c for (j = 0; j < 10; j++) j 226 drivers/staging/fbtft/fb_ili9320.c CURVE(i, j) &= mask[i * par->gamma.num_values + j]; j 215 drivers/staging/fbtft/fb_ili9325.c int i, j; j 219 drivers/staging/fbtft/fb_ili9325.c for (j = 0; j < 10; j++) j 220 drivers/staging/fbtft/fb_ili9325.c CURVE(i, j) &= mask[i * par->gamma.num_values + j]; j 131 drivers/staging/fbtft/fb_s6d1121.c int i, j; j 135 drivers/staging/fbtft/fb_s6d1121.c for (j = 0; j < 14; j++) j 136 drivers/staging/fbtft/fb_s6d1121.c CURVE(i, j) &= mask[i * par->gamma.num_values + j]; j 136 drivers/staging/fbtft/fb_ssd1289.c int i, j; j 140 drivers/staging/fbtft/fb_ssd1289.c for (j = 0; j < 10; j++) j 141 drivers/staging/fbtft/fb_ssd1289.c CURVE(i, j) &= mask[i * par->gamma.num_values + j]; j 139 drivers/staging/fbtft/fb_st7735r.c int i, j; j 143 drivers/staging/fbtft/fb_st7735r.c for (j = 0; j < par->gamma.num_values; j++) j 144 drivers/staging/fbtft/fb_st7735r.c CURVE(i, j) &= 0x3f; j 175 drivers/staging/fbtft/fb_st7789v.c int j; j 202 drivers/staging/fbtft/fb_st7789v.c for (j = 0; j < par->gamma.num_values; j++) j 203 drivers/staging/fbtft/fb_st7789v.c curves[c + j] &= gamma_par_mask[j]; j 66 drivers/staging/fbtft/fb_watterott.c int i, j; j 81 drivers/staging/fbtft/fb_watterott.c for (j = 0; j < par->info->var.xres; j++) j 82 drivers/staging/fbtft/fb_watterott.c buf16[j] = cpu_to_be16(*vmem16++); j 104 drivers/staging/fbtft/fb_watterott.c int i, j; j 119 drivers/staging/fbtft/fb_watterott.c for (j = 0; j < par->info->var.xres; j++) { j 120 drivers/staging/fbtft/fb_watterott.c buf8[j] = rgb565_to_rgb332(*vmem16); j 913 drivers/staging/fbtft/fbtft-core.c int buf[64], i, j; j 944 drivers/staging/fbtft/fbtft-core.c for (j = 0; j < i; j++) j 946 drivers/staging/fbtft/fbtft-core.c "buf[%d] = %02X\n", j, buf[j]); j 995 drivers/staging/fbtft/fbtft-core.c int j; j 1040 drivers/staging/fbtft/fbtft-core.c j = i + 1; j 1041 drivers/staging/fbtft/fbtft-core.c while (par->init_sequence[j] >= 0) { j 1042 drivers/staging/fbtft/fbtft-core.c sprintf(str, "0x%02X ", par->init_sequence[j]); j 1044 drivers/staging/fbtft/fbtft-core.c j++; j 1051 drivers/staging/fbtft/fbtft-core.c j = 0; j 1053 drivers/staging/fbtft/fbtft-core.c if (j > 63) { j 1059 drivers/staging/fbtft/fbtft-core.c buf[j++] = par->init_sequence[i++]; j 1061 drivers/staging/fbtft/fbtft-core.c par->fbtftops.write_register(par, j, j 46 drivers/staging/fbtft/fbtft-io.c int bits, i, j; j 66 drivers/staging/fbtft/fbtft-io.c for (j = 0; j < 7; j++) { j 96 drivers/staging/fbtft/fbtft-sysfs.c unsigned int i, j; j 100 drivers/staging/fbtft/fbtft-sysfs.c for (j = 0; j < par->gamma.num_values; j++) j 102 drivers/staging/fbtft/fbtft-sysfs.c "%04x ", curves[i * par->gamma.num_values + j]); j 141 drivers/staging/fwserial/fwserial.c int j; j 146 drivers/staging/fwserial/fwserial.c for (j = k + 1; j < DISTRIBUTION_MAX_INDEX; ++j) j 147 drivers/staging/fwserial/fwserial.c seq_printf(m, "%6d", 1 << j); j 150 drivers/staging/fwserial/fwserial.c for (j = 0, sum = 0; j <= k; ++j) j 151 drivers/staging/fwserial/fwserial.c sum += stats->reads[j]; j 153 drivers/staging/fwserial/fwserial.c for (j = k + 1; j <= DISTRIBUTION_MAX_INDEX; ++j) j 154 drivers/staging/fwserial/fwserial.c seq_printf(m, "%6d", stats->reads[j]); j 156 drivers/staging/fwserial/fwserial.c for (j = 0, sum = 0; j <= k; ++j) j 157 drivers/staging/fwserial/fwserial.c sum += stats->writes[j]; j 159 drivers/staging/fwserial/fwserial.c for (j = k + 1; j <= DISTRIBUTION_MAX_INDEX; ++j) j 160 drivers/staging/fwserial/fwserial.c seq_printf(m, "%6d", stats->writes[j]); j 162 drivers/staging/fwserial/fwserial.c for (j = 0, sum = 0; j <= k; ++j) j 163 drivers/staging/fwserial/fwserial.c sum += stats->txns[j]; j 165 drivers/staging/fwserial/fwserial.c for (j = k + 1; j <= DISTRIBUTION_MAX_INDEX; ++j) j 166 drivers/staging/fwserial/fwserial.c seq_printf(m, "%6d", stats->txns[j]); j 168 drivers/staging/fwserial/fwserial.c for (j = 0, sum = 0; j <= k; ++j) j 169 drivers/staging/fwserial/fwserial.c sum += stats->unthrottle[j]; j 171 drivers/staging/fwserial/fwserial.c for (j = k + 1; j <= DISTRIBUTION_MAX_INDEX; ++j) j 172 drivers/staging/fwserial/fwserial.c seq_printf(m, "%6d", stats->unthrottle[j]); j 837 drivers/staging/fwserial/fwserial.c int i, j; j 845 drivers/staging/fwserial/fwserial.c for (j = 0; j < num_ports; ++i, ++j) { j 846 drivers/staging/fwserial/fwserial.c serial->ports[j]->index = i; j 847 drivers/staging/fwserial/fwserial.c port_table[i] = serial->ports[j]; j 861 drivers/staging/fwserial/fwserial.c int j, i = ports[0]->index; j 866 drivers/staging/fwserial/fwserial.c for (j = 0; j < num_ports; ++i, ++j) { j 867 drivers/staging/fwserial/fwserial.c port_table_corrupt |= port_table[i] != ports[j]; j 869 drivers/staging/fwserial/fwserial.c i, port_table[i], j, ports[j]); j 875 drivers/staging/fwserial/fwserial.c for (j = 0; j < num_ports; ++j) { j 876 drivers/staging/fwserial/fwserial.c fw_core_remove_address_handler(&ports[j]->rx_handler); j 877 drivers/staging/fwserial/fwserial.c tty_port_destroy(&ports[j]->port); j 878 drivers/staging/fwserial/fwserial.c kfree(ports[j]); j 2147 drivers/staging/fwserial/fwserial.c int i, j; j 2204 drivers/staging/fwserial/fwserial.c for (j = 0; j < num_ttys; ++j) { j 2205 drivers/staging/fwserial/fwserial.c tty_dev = tty_port_register_device(&serial->ports[j]->port, j 2207 drivers/staging/fwserial/fwserial.c serial->ports[j]->index, j 2216 drivers/staging/fwserial/fwserial.c serial->ports[j]->device = tty_dev; j 2223 drivers/staging/fwserial/fwserial.c loop_dev = tty_port_register_device(&serial->ports[j]->port, j 2225 drivers/staging/fwserial/fwserial.c loop_idx(serial->ports[j]), j 2233 drivers/staging/fwserial/fwserial.c serial->ports[j]->device = loop_dev; j 2234 drivers/staging/fwserial/fwserial.c serial->ports[j]->loopback = true; j 2265 drivers/staging/fwserial/fwserial.c loop_idx(serial->ports[j])); j 2267 drivers/staging/fwserial/fwserial.c for (--j; j >= 0; --j) j 2268 drivers/staging/fwserial/fwserial.c tty_unregister_device(fwtty_driver, serial->ports[j]->index); j 1229 drivers/staging/gasket/gasket_page_table.c int j; j 1244 drivers/staging/gasket/gasket_page_table.c for (j = 0; j < num_pages; j++) { j 1245 drivers/staging/gasket/gasket_page_table.c pg_tbl->coherent_pages[j].user_virt = j 1246 drivers/staging/gasket/gasket_page_table.c (u64)vma + j * PAGE_SIZE; j 1257 drivers/staging/gasket/gasket_page_table.c int j; j 1289 drivers/staging/gasket/gasket_page_table.c for (j = 0; j < num_pages; j++) { j 1290 drivers/staging/gasket/gasket_page_table.c gasket_dev->page_table[index]->coherent_pages[j].paddr = j 1291 drivers/staging/gasket/gasket_page_table.c handle + j * PAGE_SIZE; j 1292 drivers/staging/gasket/gasket_page_table.c gasket_dev->page_table[index]->coherent_pages[j].kernel_virt = j 1293 drivers/staging/gasket/gasket_page_table.c (u64)mem + j * PAGE_SIZE; j 200 drivers/staging/gdm724x/gdm_tty.c int j; j 208 drivers/staging/gdm724x/gdm_tty.c for (j = 0; j < GDM_TTY_MINOR; j++) { j 209 drivers/staging/gdm724x/gdm_tty.c if (!gdm_table[i][j]) j 213 drivers/staging/gdm724x/gdm_tty.c if (j == GDM_TTY_MINOR) { j 219 drivers/staging/gdm724x/gdm_tty.c gdm_table[i][j] = gdm; j 227 drivers/staging/gdm724x/gdm_tty.c gdm->minor = j; j 199 drivers/staging/isdn/avm/b1.c int i, j, left; j 218 drivers/staging/isdn/avm/b1.c for (j = 0; j < 4; j++) { j 234 drivers/staging/isdn/avm/b1.c for (j = 0; j < 4; j++) { j 423 drivers/staging/isdn/avm/b1.c int i, j; j 425 drivers/staging/isdn/avm/b1.c for (j = 0; j < AVM_MAXVERSION; j++) j 426 drivers/staging/isdn/avm/b1.c cinfo->version[j] = ""; j 427 drivers/staging/isdn/avm/b1.c for (i = 0, j = 0; j 428 drivers/staging/isdn/avm/b1.c j < AVM_MAXVERSION && i < cinfo->versionlen; j 429 drivers/staging/isdn/avm/b1.c j++, i += cinfo->versionbuf[i] + 1) j 430 drivers/staging/isdn/avm/b1.c cinfo->version[j] = &cinfo->versionbuf[i + 1]; j 961 drivers/staging/isdn/gigaset/bas-gigaset.c int j, k; j 984 drivers/staging/isdn/gigaset/bas-gigaset.c for (j = 0; j < BAS_NUMFRAMES; j++) { j 985 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[j].offset = j * BAS_MAXFRAME; j 986 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[j].length = BAS_MAXFRAME; j 987 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[j].status = 0; j 988 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[j].actual_length = 0; j 1016 drivers/staging/isdn/gigaset/bas-gigaset.c for (j = 0; j < BAS_NUMFRAMES; ++j) { j 1017 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[j].offset = BAS_OUTBUFSIZE; j 1018 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[j].length = BAS_NORMFRAME; j 1019 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[j].status = 0; j 1020 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[j].actual_length = 0; j 2237 drivers/staging/isdn/gigaset/bas-gigaset.c int i, j; j 2240 drivers/staging/isdn/gigaset/bas-gigaset.c for (j = 0; j < BAS_CHANNELS; ++j) { j 2241 drivers/staging/isdn/gigaset/bas-gigaset.c ubc = cs->bcs[j].hw.bas; j 2280 drivers/staging/isdn/gigaset/bas-gigaset.c int i, j; j 2345 drivers/staging/isdn/gigaset/bas-gigaset.c for (j = 0; j < BAS_CHANNELS; ++j) { j 2346 drivers/staging/isdn/gigaset/bas-gigaset.c ubc = cs->bcs[j].hw.bas; j 2411 drivers/staging/isdn/gigaset/bas-gigaset.c int j; j 2423 drivers/staging/isdn/gigaset/bas-gigaset.c for (j = 0; j < BAS_CHANNELS; ++j) j 2424 drivers/staging/isdn/gigaset/bas-gigaset.c gigaset_bchannel_down(cs->bcs + j); j 336 drivers/staging/media/hantro/hantro_g1_vp8_dec.c int i, j; j 348 drivers/staging/media/hantro/hantro_g1_vp8_dec.c for (j = 0; j < 4; j++) j 349 drivers/staging/media/hantro/hantro_g1_vp8_dec.c hantro_reg_write(vpu, &vp8_dec_pred_bc_tap[i][j], j 350 drivers/staging/media/hantro/hantro_g1_vp8_dec.c hantro_vp8_dec_mc_filter[i][j + 1]); j 208 drivers/staging/media/hantro/hantro_h264.c int i, j; j 212 drivers/staging/media/hantro/hantro_h264.c for (j = 0; j < list_len_4x4 / 4; j++) j 213 drivers/staging/media/hantro/hantro_h264.c *dst++ = swab32(src[j]); j 219 drivers/staging/media/hantro/hantro_h264.c for (j = 0; j < list_len_8x8 / 4; j++) j 220 drivers/staging/media/hantro/hantro_h264.c *dst++ = swab32(src[j]); j 477 drivers/staging/media/hantro/hantro_h264.c unsigned int i, j; j 496 drivers/staging/media/hantro/hantro_h264.c for_each_clear_bit(j, used, ARRAY_SIZE(ctx->h264_dec.dpb)) { j 499 drivers/staging/media/hantro/hantro_h264.c cdpb = &ctx->h264_dec.dpb[j]; j 505 drivers/staging/media/hantro/hantro_h264.c set_bit(j, used); j 509 drivers/staging/media/hantro/hantro_h264.c if (j == ARRAY_SIZE(ctx->h264_dec.dpb)) j 523 drivers/staging/media/hantro/hantro_h264.c j = find_first_zero_bit(used, ARRAY_SIZE(ctx->h264_dec.dpb)); j 524 drivers/staging/media/hantro/hantro_h264.c if (WARN_ON(j >= ARRAY_SIZE(ctx->h264_dec.dpb))) j 527 drivers/staging/media/hantro/hantro_h264.c cdpb = &ctx->h264_dec.dpb[j]; j 529 drivers/staging/media/hantro/hantro_h264.c set_bit(j, used); j 125 drivers/staging/media/hantro/hantro_v4l2.c unsigned int num_fmts, i, j = 0; j 146 drivers/staging/media/hantro/hantro_v4l2.c if (j == f->index) { j 151 drivers/staging/media/hantro/hantro_v4l2.c ++j; j 53 drivers/staging/media/hantro/hantro_vp8.c u32 i, j, k; j 90 drivers/staging/media/hantro/hantro_vp8.c for (j = 0; j < 8; j += 4) { j 91 drivers/staging/media/hantro/hantro_vp8.c dst[0] = entropy->mv_probs[i][j + 9 + 0]; j 92 drivers/staging/media/hantro/hantro_vp8.c dst[1] = entropy->mv_probs[i][j + 9 + 1]; j 93 drivers/staging/media/hantro/hantro_vp8.c dst[2] = entropy->mv_probs[i][j + 9 + 2]; j 94 drivers/staging/media/hantro/hantro_vp8.c dst[3] = entropy->mv_probs[i][j + 9 + 3]; j 114 drivers/staging/media/hantro/hantro_vp8.c for (j = 0; j < 8; ++j) { j 116 drivers/staging/media/hantro/hantro_vp8.c dst[0] = entropy->coeff_probs[i][j][k][0]; j 117 drivers/staging/media/hantro/hantro_vp8.c dst[1] = entropy->coeff_probs[i][j][k][1]; j 118 drivers/staging/media/hantro/hantro_vp8.c dst[2] = entropy->coeff_probs[i][j][k][2]; j 119 drivers/staging/media/hantro/hantro_vp8.c dst[3] = entropy->coeff_probs[i][j][k][3]; j 129 drivers/staging/media/hantro/hantro_vp8.c for (j = 0; j < 8; ++j) { j 131 drivers/staging/media/hantro/hantro_vp8.c dst[0] = entropy->coeff_probs[i][j][k][4]; j 132 drivers/staging/media/hantro/hantro_vp8.c dst[1] = entropy->coeff_probs[i][j][k][5]; j 133 drivers/staging/media/hantro/hantro_vp8.c dst[2] = entropy->coeff_probs[i][j][k][6]; j 134 drivers/staging/media/hantro/hantro_vp8.c dst[3] = entropy->coeff_probs[i][j][k][7]; j 135 drivers/staging/media/hantro/hantro_vp8.c dst[4] = entropy->coeff_probs[i][j][k][8]; j 136 drivers/staging/media/hantro/hantro_vp8.c dst[5] = entropy->coeff_probs[i][j][k][9]; j 137 drivers/staging/media/hantro/hantro_vp8.c dst[6] = entropy->coeff_probs[i][j][k][10]; j 432 drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c int i, j; j 438 drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c for (j = 0; j < 6; j++) { j 439 drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c if (vp8_dec_pred_bc_tap[i][j].base != 0) j 441 drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c &vp8_dec_pred_bc_tap[i][j], j 442 drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c hantro_vp8_dec_mc_filter[i][j]); j 165 drivers/staging/media/imx/imx-media-internal-sd.c int i, j, ret; j 175 drivers/staging/media/imx/imx-media-internal-sd.c for (j = 0; j < intpad->num_links; j++) { j 178 drivers/staging/media/imx/imx-media-internal-sd.c link = &intpad->link[j]; j 287 drivers/staging/media/imx/imx-media-internal-sd.c int i, j; j 292 drivers/staging/media/imx/imx-media-internal-sd.c for (j = 0; j < NUM_IPU_SUBDEVS; j++) { j 293 drivers/staging/media/imx/imx-media-internal-sd.c intsd = &int_subdev[j]; j 294 drivers/staging/media/imx/imx-media-internal-sd.c sd = imxmd->sync_sd[i][j]; j 243 drivers/staging/media/imx/imx-media-utils.c int i, j; j 258 drivers/staging/media/imx/imx-media-utils.c for (j = 0; fmt->codes[j]; j++) { j 259 drivers/staging/media/imx/imx-media-utils.c if (code == fmt->codes[j]) j 388 drivers/staging/media/imx/imx-media-utils.c int i, j; j 413 drivers/staging/media/imx/imx-media-utils.c for (j = 0; code && fmt->codes[j]; j++) { j 414 drivers/staging/media/imx/imx-media-utils.c if (code == fmt->codes[j]) { j 117 drivers/staging/media/ipu3/ipu3-css-fw.c unsigned int i, j, binary_nr; j 202 drivers/staging/media/ipu3/ipu3-css-fw.c for (j = 0; j < bi->info.isp.num_output_formats; j++) j 203 drivers/staging/media/ipu3/ipu3-css-fw.c if (bi->info.isp.output_formats[j] >= j 206 drivers/staging/media/ipu3/ipu3-css-fw.c for (j = 0; j < bi->info.isp.num_vf_formats; j++) j 207 drivers/staging/media/ipu3/ipu3-css-fw.c if (bi->info.isp.vf_formats[j] >= j 543 drivers/staging/media/ipu3/ipu3-css.c int j = IMGU_NUM_SP - i - 1; /* load sp1 first, then sp0 */ j 545 drivers/staging/media/ipu3/ipu3-css.c &css->fwp->binary_header[css->fw_sp[j]]; j 547 drivers/staging/media/ipu3/ipu3-css.c .src_addr = css->binary[css->fw_sp[j]].daddr j 551 drivers/staging/media/ipu3/ipu3-css.c .dst_addr = IMGU_SP_PMEM_BASE(j), j 698 drivers/staging/media/ipu3/ipu3-css.c unsigned int i, j; j 910 drivers/staging/media/ipu3/ipu3-css.c for (j = 0; j < IMGU_ABI_NUM_MEMORIES; j++) j 911 drivers/staging/media/ipu3/ipu3-css.c isp_stage->mem_initializers.params[i][j].address = j 912 drivers/staging/media/ipu3/ipu3-css.c css_pipe->binary_params_cs[i - 1][j].daddr; j 1204 drivers/staging/media/ipu3/ipu3-css.c unsigned int i, j; j 1208 drivers/staging/media/ipu3/ipu3-css.c for (j = 0; j < IMGU_ABI_PARAM_CLASS_NUM - 1; j++) j 1211 drivers/staging/media/ipu3/ipu3-css.c &css_pipe->binary_params_cs[j][i]); j 1213 drivers/staging/media/ipu3/ipu3-css.c j = IPU3_CSS_AUX_FRAME_REF; j 1216 drivers/staging/media/ipu3/ipu3-css.c &css_pipe->aux_frames[j].mem[i]); j 1218 drivers/staging/media/ipu3/ipu3-css.c j = IPU3_CSS_AUX_FRAME_TNR; j 1221 drivers/staging/media/ipu3/ipu3-css.c &css_pipe->aux_frames[j].mem[i]); j 1227 drivers/staging/media/ipu3/ipu3-css.c unsigned int i, j; j 1231 drivers/staging/media/ipu3/ipu3-css.c for (j = IMGU_ABI_PARAM_CLASS_CONFIG; j 1232 drivers/staging/media/ipu3/ipu3-css.c j < IMGU_ABI_PARAM_CLASS_NUM; j++) j 1235 drivers/staging/media/ipu3/ipu3-css.c &css_pipe->binary_params_cs[j - 1][i], j 1264 drivers/staging/media/ipu3/ipu3-css.c int i, j, size; j 1270 drivers/staging/media/ipu3/ipu3-css.c for (j = IMGU_ABI_PARAM_CLASS_CONFIG; j < IMGU_ABI_PARAM_CLASS_NUM; j++) j 1274 drivers/staging/media/ipu3/ipu3-css.c &css_pipe->binary_params_cs[j - 1][i], j 1275 drivers/staging/media/ipu3/ipu3-css.c bi->info.isp.sp.mem_initializers.params[j][i].size)) j 1612 drivers/staging/media/ipu3/ipu3-css.c int i, j; j 1667 drivers/staging/media/ipu3/ipu3-css.c for (j = 0; j < bi->info.isp.num_output_formats; j++) j 1668 drivers/staging/media/ipu3/ipu3-css.c if (bi->info.isp.output_formats[j] == q_fmt) j 1670 drivers/staging/media/ipu3/ipu3-css.c if (j >= bi->info.isp.num_output_formats) j 1689 drivers/staging/media/ipu3/ipu3-css.c for (j = 0; j < bi->info.isp.num_output_formats; j++) j 1690 drivers/staging/media/ipu3/ipu3-css.c if (bi->info.isp.output_formats[j] == q_fmt) j 1692 drivers/staging/media/ipu3/ipu3-css.c if (j >= bi->info.isp.num_output_formats) j 598 drivers/staging/media/ipu3/ipu3-v4l2.c unsigned int i, j; j 600 drivers/staging/media/ipu3/ipu3-v4l2.c for (i = j = 0; i < ARRAY_SIZE(formats); ++i) { j 602 drivers/staging/media/ipu3/ipu3-v4l2.c if (j == f->index) j 604 drivers/staging/media/ipu3/ipu3-v4l2.c ++j; j 437 drivers/staging/media/ipu3/ipu3.c unsigned int i, j; j 442 drivers/staging/media/ipu3/ipu3.c for (j = 0; j < IMGU_MAX_PIPE_NUM; j++) { j 443 drivers/staging/media/ipu3/ipu3.c imgu_pipe = &imgu->imgu_pipe[j]; j 462 drivers/staging/media/ipu3/ipu3.c for (j = 0; j < IMGU_MAX_PIPE_NUM; j++) { j 463 drivers/staging/media/ipu3/ipu3.c imgu_pipe = &imgu->imgu_pipe[j]; j 467 drivers/staging/media/ipu3/ipu3.c imgu_css_fmt_set(&imgu->css, fmts, rects, j); j 470 drivers/staging/media/ipu3/ipu3.c r = imgu_dummybufs_preallocate(imgu, j); j 481 drivers/staging/media/ipu3/ipu3.c for (j = 0; j < IMGU_MAX_PIPE_NUM; j++) j 482 drivers/staging/media/ipu3/ipu3.c imgu_dummybufs_cleanup(imgu, j); j 1485 drivers/staging/media/soc_camera/soc_camera.c int j; j 1487 drivers/staging/media/soc_camera/soc_camera.c for (j = 0, asd = ici->asd; ici->asd_sizes[j]; j++) { j 1488 drivers/staging/media/soc_camera/soc_camera.c scan_async_group(ici, asd, ici->asd_sizes[j]); j 1489 drivers/staging/media/soc_camera/soc_camera.c asd += ici->asd_sizes[j]; j 263 drivers/staging/media/sunxi/cedrus/cedrus_h264.c int i, j, k; j 276 drivers/staging/media/sunxi/cedrus/cedrus_h264.c for (j = 0; j < ARRAY_SIZE(factors->luma_weight); j++) { j 279 drivers/staging/media/sunxi/cedrus/cedrus_h264.c val = (((u32)factors->luma_offset[j] & 0x1ff) << 16) | j 280 drivers/staging/media/sunxi/cedrus/cedrus_h264.c (factors->luma_weight[j] & 0x1ff); j 284 drivers/staging/media/sunxi/cedrus/cedrus_h264.c for (j = 0; j < ARRAY_SIZE(factors->chroma_weight); j++) { j 288 drivers/staging/media/sunxi/cedrus/cedrus_h264.c val = (((u32)factors->chroma_offset[j][k] & 0x1ff) << 16) | j 289 drivers/staging/media/sunxi/cedrus/cedrus_h264.c (factors->chroma_weight[j][k] & 0x1ff); j 276 drivers/staging/most/usb/usb.c unsigned int j, num_frames; j 288 drivers/staging/most/usb/usb.c for (j = num_frames - 1; j > 0; j--) j 289 drivers/staging/most/usb/usb.c memmove(mbo->virt_address + j * USB_MTU, j 290 drivers/staging/most/usb/usb.c mbo->virt_address + j * frame_size, j 310 drivers/staging/most/usb/usb.c unsigned int j, num_frames; j 316 drivers/staging/most/usb/usb.c for (j = 1; j < num_frames; j++) j 317 drivers/staging/most/usb/usb.c memmove(mbo->virt_address + frame_size * j, j 318 drivers/staging/most/usb/usb.c mbo->virt_address + USB_MTU * j, j 198 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c int i, j, c = 0; j 240 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c for (j = 0; j < p->groups[i].func_count; j++) { j 241 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c f[c] = &p->groups[i].func[j]; j 254 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c int i, j; j 270 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c for (j = 0; j < p->func[i]->pin_count; j++) j 271 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c p->func[i]->pins[j] = p->func[i]->pin_first + j; j 293 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c for (j = 0; j < p->func[i]->pin_count; j++) j 294 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c p->gpio[p->func[i]->pins[j]] = 0; j 483 drivers/staging/netlogic/xlr_net.c int i, j, err; j 497 drivers/staging/netlogic/xlr_net.c for (j = 0; j < 8; j++) j 499 drivers/staging/netlogic/xlr_net.c (R_CC_CPU0_0 + (i * 8)) + j, j 500 drivers/staging/netlogic/xlr_net.c gmac->credit_config[(i * 8) + j]); j 523 drivers/staging/netlogic/xlr_net.c int b1, b2, c1, c2, i, j, k; j 531 drivers/staging/netlogic/xlr_net.c j = 0; j 535 drivers/staging/netlogic/xlr_net.c bkts[j] = ((i / 4) * 8) + (i % 4); j 536 drivers/staging/netlogic/xlr_net.c j++; j 554 drivers/staging/netlogic/xlr_net.c k = (k + 1) % j; j 556 drivers/staging/netlogic/xlr_net.c k = (k + 1) % j; j 109 drivers/staging/nvec/nvec_kbd.c int i, j, err; j 117 drivers/staging/nvec/nvec_kbd.c j = 0; j 120 drivers/staging/nvec/nvec_kbd.c keycodes[j++] = code_tab_102us[i]; j 123 drivers/staging/nvec/nvec_kbd.c keycodes[j++] = extcode_tab_us102[i]; j 587 drivers/staging/olpc_dcon/olpc_dcon.c int rc, i, j; j 660 drivers/staging/olpc_dcon/olpc_dcon.c for (j = 0; j < i; j++) j 661 drivers/staging/olpc_dcon/olpc_dcon.c device_remove_file(&dcon_device->dev, &dcon_device_files[j]); j 3057 drivers/staging/qlge/qlge_main.c int i, j; j 3063 drivers/staging/qlge/qlge_main.c for (j = 0; j < qdev->tx_ring_count; j++) { j 3064 drivers/staging/qlge/qlge_main.c tx_ring = &qdev->tx_ring[j]; j 3070 drivers/staging/qlge/qlge_main.c tx_ring_desc->skb, j, j 3384 drivers/staging/qlge/qlge_main.c int i, j, vect; j 3389 drivers/staging/qlge/qlge_main.c for (vect = 0, j = 0, i = qdev->rss_ring_count; j 3391 drivers/staging/qlge/qlge_main.c if (j == tx_rings_per_vector) { j 3393 drivers/staging/qlge/qlge_main.c j = 0; j 3396 drivers/staging/qlge/qlge_main.c j++; j 3414 drivers/staging/qlge/qlge_main.c int j, vect = ctx->intr; j 3424 drivers/staging/qlge/qlge_main.c for (j = 0; j < tx_rings_per_vector; j++) { j 3427 drivers/staging/qlge/qlge_main.c (vect * tx_rings_per_vector) + j].cq_id); j 3433 drivers/staging/qlge/qlge_main.c for (j = 0; j < qdev->rx_ring_count; j++) j 3434 drivers/staging/qlge/qlge_main.c ctx->irq_mask |= (1 << qdev->rx_ring[j].cq_id); j 81 drivers/staging/rtl8188eu/core/rtw_efuse.c u16 i, j; j 104 drivers/staging/rtl8188eu/core/rtw_efuse.c for (j = 0; j < EFUSE_MAX_WORD_UNIT; j++) j 105 drivers/staging/rtl8188eu/core/rtw_efuse.c eFuseWord[i][j] = 0xFFFF; j 180 drivers/staging/rtl8188eu/core/rtw_efuse.c for (j = 0; j < EFUSE_MAX_WORD_UNIT; j++) { j 181 drivers/staging/rtl8188eu/core/rtw_efuse.c efuseTbl[(i * 8) + (j * 2)] = (eFuseWord[i][j] & 0xff); j 182 drivers/staging/rtl8188eu/core/rtw_efuse.c efuseTbl[(i * 8) + ((j * 2) + 1)] = ((eFuseWord[i][j] >> 8) & 0xff); j 1637 drivers/staging/rtl8188eu/core/rtw_mlme.c unsigned int i, j; j 1647 drivers/staging/rtl8188eu/core/rtw_mlme.c for (j = i; j < i + 9; j++) { j 1648 drivers/staging/rtl8188eu/core/rtw_mlme.c out_ie[ielength] = in_ie[j]; j 1012 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c unsigned int i, j, ie_len, index = 0; j 1083 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c for (j = 0; j < sta_bssrate_len; j++) { j 1086 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c == (sta_bssrate[j]|IEEE80211_BASIC_RATE_MASK)) j 1090 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c if (j == sta_bssrate_len) { j 1797 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c int j, k = 0; j 1803 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c for (j = 1; j <= 14; j++) { j 1804 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c if (ICS[i][j] == 1) { j 1806 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c InfoContent[k] = j; /* channel number */ j 2377 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c u8 j, k; j 2400 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c for (j = 0; j < noc; j++) { j 2401 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c channel = fcn + j; j 2414 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c j = 0; j 2423 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c if ((j == chplan_ap.Len) || (chplan_ap.Channel[j] > 14)) j 2426 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c if (chplan_sta[i].ChannelNum == chplan_ap.Channel[j]) { j 2427 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c chplan_new[k].ChannelNum = chplan_ap.Channel[j]; j 2430 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c j++; j 2432 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c } else if (chplan_sta[i].ChannelNum < chplan_ap.Channel[j]) { j 2437 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c } else if (chplan_sta[i].ChannelNum > chplan_ap.Channel[j]) { j 2438 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c chplan_new[k].ChannelNum = chplan_ap.Channel[j]; j 2440 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c j++; j 2456 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c while ((j < chplan_ap.Len) && (chplan_ap.Channel[j] <= 14)) { j 2457 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c chplan_new[k].ChannelNum = chplan_ap.Channel[j]; j 2459 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c j++; j 2474 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c while ((j < chplan_ap.Len) && (chplan_ap.Channel[j] <= 14)) j 2475 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c j++; j 5082 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c int i, j; j 5090 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c j = 0; j 5095 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c out[j] = in[i]; j 5098 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c out[j].flags &= RTW_IEEE80211_CHAN_PASSIVE_SCAN; j 5100 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c j++; j 5102 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c if (j >= out_num) j 5107 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c if (j == 0) { j 5114 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c j++; j 5118 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c return j; j 90 drivers/staging/rtl8188eu/core/rtw_security.c int i, j; j 102 drivers/staging/rtl8188eu/core/rtw_security.c for (c = ((u32)k) << 24, j = 8; j > 0; --j) j 1086 drivers/staging/rtl8188eu/core/rtw_security.c uint qc_exists, a4_exists, i, j, payload_remainder, j 1164 drivers/staging/rtl8188eu/core/rtw_security.c for (j = 0; j < 16; j++) j 1165 drivers/staging/rtl8188eu/core/rtw_security.c padded_buffer[j] = 0x00; j 1166 drivers/staging/rtl8188eu/core/rtw_security.c for (j = 0; j < payload_remainder; j++) j 1167 drivers/staging/rtl8188eu/core/rtw_security.c padded_buffer[j] = pframe[payload_index++];/* padded_buffer[j] = message[payload_index++]; */ j 1172 drivers/staging/rtl8188eu/core/rtw_security.c for (j = 0; j < 8; j++) j 1173 drivers/staging/rtl8188eu/core/rtw_security.c mic[j] = aes_out[j]; j 1176 drivers/staging/rtl8188eu/core/rtw_security.c for (j = 0; j < 8; j++) j 1177 drivers/staging/rtl8188eu/core/rtw_security.c pframe[payload_index+j] = mic[j]; j 1184 drivers/staging/rtl8188eu/core/rtw_security.c for (j = 0; j < 16; j++) j 1185 drivers/staging/rtl8188eu/core/rtw_security.c pframe[payload_index++] = chain_buffer[j]; j 1192 drivers/staging/rtl8188eu/core/rtw_security.c for (j = 0; j < 16; j++) j 1193 drivers/staging/rtl8188eu/core/rtw_security.c padded_buffer[j] = 0x00; j 1194 drivers/staging/rtl8188eu/core/rtw_security.c for (j = 0; j < payload_remainder; j++) j 1195 drivers/staging/rtl8188eu/core/rtw_security.c padded_buffer[j] = pframe[payload_index+j]; j 1198 drivers/staging/rtl8188eu/core/rtw_security.c for (j = 0; j < payload_remainder; j++) j 1199 drivers/staging/rtl8188eu/core/rtw_security.c pframe[payload_index++] = chain_buffer[j]; j 1204 drivers/staging/rtl8188eu/core/rtw_security.c for (j = 0; j < 16; j++) j 1205 drivers/staging/rtl8188eu/core/rtw_security.c padded_buffer[j] = 0x00; j 1206 drivers/staging/rtl8188eu/core/rtw_security.c for (j = 0; j < 8; j++) j 1207 drivers/staging/rtl8188eu/core/rtw_security.c padded_buffer[j] = pframe[j+hdrlen+8+plen]; j 1211 drivers/staging/rtl8188eu/core/rtw_security.c for (j = 0; j < 8; j++) j 1212 drivers/staging/rtl8188eu/core/rtw_security.c pframe[payload_index++] = chain_buffer[j]; j 414 drivers/staging/rtl8188eu/core/rtw_wlan_util.c int j; j 419 drivers/staging/rtl8188eu/core/rtw_wlan_util.c for (j = 5; j >= 0; j--) { j 420 drivers/staging/rtl8188eu/core/rtw_wlan_util.c switch (j) { j 428 drivers/staging/rtl8188eu/core/rtw_wlan_util.c i = (j - 2) << 2; j 435 drivers/staging/rtl8188eu/core/rtw_wlan_util.c cam_val[1] = addr + (unsigned int)j; j 562 drivers/staging/rtl8188eu/core/rtw_wlan_util.c u32 j, change_inx = false; j 566 drivers/staging/rtl8188eu/core/rtw_wlan_util.c for (j = i + 1; j < 4; j++) { j 568 drivers/staging/rtl8188eu/core/rtw_wlan_util.c if ((edca[j] & 0xFFFF) < (edca[i] & 0xFFFF)) { j 570 drivers/staging/rtl8188eu/core/rtw_wlan_util.c } else if ((edca[j] & 0xFFFF) == (edca[i] & 0xFFFF)) { j 572 drivers/staging/rtl8188eu/core/rtw_wlan_util.c if ((edca[j] >> 16) > (edca[i] >> 16)) j 577 drivers/staging/rtl8188eu/core/rtw_wlan_util.c swap(edca[i], edca[j]); j 578 drivers/staging/rtl8188eu/core/rtw_wlan_util.c swap(inx[i], inx[j]); j 1392 drivers/staging/rtl8188eu/core/rtw_xmit.c int j; j 1394 drivers/staging/rtl8188eu/core/rtw_xmit.c for (j = 0; j < 4; j++) j 1395 drivers/staging/rtl8188eu/core/rtw_xmit.c inx[j] = pxmitpriv->wmm_para_seq[j]; j 483 drivers/staging/rtl8188eu/hal/hal8188e_rate_adaptive.c u8 j; j 491 drivers/staging/rtl8188eu/hal/hal8188e_rate_adaptive.c for (j = 0; j <= 4; j++) { j 492 drivers/staging/rtl8188eu/hal/hal8188e_rate_adaptive.c numsc += pRaInfo->RTY[j] * PT_PENALTY[j]; j 497 drivers/staging/rtl8188eu/hal/hal8188e_rate_adaptive.c j >>= 1; j 499 drivers/staging/rtl8188eu/hal/hal8188e_rate_adaptive.c if (temp_stage > j) j 500 drivers/staging/rtl8188eu/hal/hal8188e_rate_adaptive.c stage_id = temp_stage - j; j 364 drivers/staging/rtl8188eu/hal/phy.c u32 i = 0, j = 0; j 464 drivers/staging/rtl8188eu/hal/phy.c j = 1; j 466 drivers/staging/rtl8188eu/hal/phy.c j = 0; j 468 drivers/staging/rtl8188eu/hal/phy.c if (delta < thermal_mapping[j][offset]) { j 478 drivers/staging/rtl8188eu/hal/phy.c ofdm_index[0] = dm_odm->RFCalibrateInfo.OFDM_index[0] + ofdm_index_mapping[j][offset]; j 484 drivers/staging/rtl8188eu/hal/phy.c cck_index = dm_odm->RFCalibrateInfo.CCK_index + ofdm_index_mapping[j][offset]; j 878 drivers/staging/rtl8188eu/hal/phy.c u32 i, j, diff, sim_bitmap = 0, bound; j 920 drivers/staging/rtl8188eu/hal/phy.c for (j = i*4; j < (i+1)*4-2; j++) j 921 drivers/staging/rtl8188eu/hal/phy.c resulta[3][j] = resulta[final_candidate[i]][j]; j 155 drivers/staging/rtl8188eu/hal/rf.c u8 j = index + (rf ? 8 : 0); j 197 drivers/staging/rtl8188eu/hal/rf.c pwr_diff_limit[i] = (u8)((hal_data->MCSTxPowerLevelOriginalOffset[chnlGroup][j] & j 211 drivers/staging/rtl8188eu/hal/rf.c write_val = hal_data->MCSTxPowerLevelOriginalOffset[chnlGroup][j] + j 778 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c u8 j, blInserted = false; j 795 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c for (j = 0; j < NUM_PMKID_CACHE; j++) { j 796 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (!memcmp(psecuritypriv->PMKIDList[j].Bssid, strIssueBssid, ETH_ALEN)) { j 799 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psecuritypriv->PMKIDList[j].PMKID, pPMK->pmkid, IW_PMKID_LEN); j 800 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c psecuritypriv->PMKIDList[j].bUsed = true; j 801 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c psecuritypriv->PMKIDIndex = j+1; j 823 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c for (j = 0; j < NUM_PMKID_CACHE; j++) { j 824 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (!memcmp(psecuritypriv->PMKIDList[j].Bssid, strIssueBssid, ETH_ALEN)) { j 826 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c eth_zero_addr(psecuritypriv->PMKIDList[j].Bssid); j 827 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c psecuritypriv->PMKIDList[j].bUsed = false; j 751 drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c int i, j; j 759 drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c for (j = 0; j < 8; j++) { j 760 drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c if (pxmitbuf->pxmit_urb[j]) j 761 drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c usb_kill_urb(pxmitbuf->pxmit_urb[j]); j 768 drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c for (j = 0; j < 8; j++) { j 769 drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c if (pxmitbuf->pxmit_urb[j]) j 770 drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c usb_kill_urb(pxmitbuf->pxmit_urb[j]); j 114 drivers/staging/rtl8192e/dot11d.c u8 i, j, number_of_triples, max_channel_number; j 137 drivers/staging/rtl8192e/dot11d.c for (j = 0; j < triple->num_channels; j++) { j 138 drivers/staging/rtl8192e/dot11d.c dot11d_info->channel_map[triple->first_channel + j] = 1; j 139 drivers/staging/rtl8192e/dot11d.c dot11d_info->max_tx_power_list[triple->first_channel + j] = j 141 drivers/staging/rtl8192e/dot11d.c max_channel_number = triple->first_channel + j; j 624 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c int i = 0, j = 0, k = 0; j 644 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c for (j = 0; j <= 30; j++) { j 456 drivers/staging/rtl8192e/rtl819x_HTProc.c u8 i, j; j 480 drivers/staging/rtl8192e/rtl819x_HTProc.c for (j = 0; j < 8; j++) { j 482 drivers/staging/rtl8192e/rtl819x_HTProc.c if (HTMcsToDataRate(ieee, (8*i+j)) > j 484 drivers/staging/rtl8192e/rtl819x_HTProc.c mcsRate = 8 * i + j; j 211 drivers/staging/rtl8192e/rtllib_crypt_tkip.c int i, j; j 221 drivers/staging/rtl8192e/rtllib_crypt_tkip.c j = 2 * (i & 1); j 222 drivers/staging/rtl8192e/rtllib_crypt_tkip.c TTAK[0] += _S_(TTAK[4] ^ Mk16(TK[1 + j], TK[0 + j])); j 223 drivers/staging/rtl8192e/rtllib_crypt_tkip.c TTAK[1] += _S_(TTAK[0] ^ Mk16(TK[5 + j], TK[4 + j])); j 224 drivers/staging/rtl8192e/rtllib_crypt_tkip.c TTAK[2] += _S_(TTAK[1] ^ Mk16(TK[9 + j], TK[8 + j])); j 225 drivers/staging/rtl8192e/rtllib_crypt_tkip.c TTAK[3] += _S_(TTAK[2] ^ Mk16(TK[13 + j], TK[12 + j])); j 226 drivers/staging/rtl8192e/rtllib_crypt_tkip.c TTAK[4] += _S_(TTAK[3] ^ Mk16(TK[1 + j], TK[0 + j])) + i; j 478 drivers/staging/rtl8192e/rtllib_rx.c u8 i = 0, j = 0; j 481 drivers/staging/rtl8192e/rtllib_rx.c for (j = 0; j < index; j++) { j 482 drivers/staging/rtl8192e/rtllib_rx.c struct rtllib_rxb *prxb = prxbIndicateArray[j]; j 44 drivers/staging/rtl8192e/rtllib_wx.c int i, j; j 118 drivers/staging/rtl8192e/rtllib_wx.c for (i = 0, j = 0; i < network->rates_len;) { j 119 drivers/staging/rtl8192e/rtllib_wx.c if (j < network->rates_ex_len && j 120 drivers/staging/rtl8192e/rtllib_wx.c ((network->rates_ex[j] & 0x7F) < j 122 drivers/staging/rtl8192e/rtllib_wx.c rate = network->rates_ex[j++] & 0x7F; j 130 drivers/staging/rtl8192e/rtllib_wx.c for (; j < network->rates_ex_len; j++) { j 131 drivers/staging/rtl8192e/rtllib_wx.c rate = network->rates_ex[j] & 0x7F; j 56 drivers/staging/rtl8192u/ieee80211/dot11d.c u8 i, j, NumTriples, MaxChnlNum; j 80 drivers/staging/rtl8192u/ieee80211/dot11d.c for (j = 0; j < pTriple->num_channels; j++) { j 81 drivers/staging/rtl8192u/ieee80211/dot11d.c dot11d_info->channel_map[pTriple->first_channel + j] = 1; j 82 drivers/staging/rtl8192u/ieee80211/dot11d.c dot11d_info->max_tx_pwr_dbm_list[pTriple->first_channel + j] = pTriple->max_tx_pwr_dbm; j 83 drivers/staging/rtl8192u/ieee80211/dot11d.c MaxChnlNum = pTriple->first_channel + j; j 214 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c int i, j; j 224 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c j = 2 * (i & 1); j 225 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c TTAK[0] += _S_(TTAK[4] ^ Mk16(TK[1 + j], TK[0 + j])); j 226 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c TTAK[1] += _S_(TTAK[0] ^ Mk16(TK[5 + j], TK[4 + j])); j 227 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c TTAK[2] += _S_(TTAK[1] ^ Mk16(TK[9 + j], TK[8 + j])); j 228 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c TTAK[3] += _S_(TTAK[2] ^ Mk16(TK[13 + j], TK[12 + j])); j 229 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c TTAK[4] += _S_(TTAK[3] ^ Mk16(TK[1 + j], TK[0 + j])) + i; j 526 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c u8 i = 0, j = 0; j 530 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c for (j = 0; j < index; j++) { j 532 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c struct ieee80211_rxb *prxb = prxbIndicateArray[j]; j 49 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c int i, j; j 113 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c for (i = 0, j = 0; i < network->rates_len; ) { j 114 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c if (j < network->rates_ex_len && j 115 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c ((network->rates_ex[j] & 0x7F) < j 117 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c rate = network->rates_ex[j++] & 0x7F; j 125 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c for (; j < network->rates_ex_len; j++) { j 126 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c rate = network->rates_ex[j] & 0x7F; j 761 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c u8 i, j; j 785 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c for (j = 0; j < 8; j++) { j 787 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c if (HTMcsToDataRate(ieee, (8 * i + j)) > HTMcsToDataRate(ieee, mcsRate)) j 788 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c mcsRate = (8 * i + j); j 499 drivers/staging/rtl8192u/r8192U_dm.c int i = 0, j = 0, k = 0; j 518 drivers/staging/rtl8192u/r8192U_dm.c for (j = 0; j <= 30; j++) { /* fill tx_cmd */ j 401 drivers/staging/rtl8192u/r819xU_cmdpkt.c u8 i, j; j 445 drivers/staging/rtl8192u/r819xU_cmdpkt.c for (j = 0; j < 4; j++) j 446 drivers/staging/rtl8192u/r819xU_cmdpkt.c priv->stats.txrate.ht_mcs[j][i] += ptxrate->ht_mcs[j][i]; j 490 drivers/staging/rtl8712/rtl8712_efuse.c int i, j, idx; j 511 drivers/staging/rtl8712/rtl8712_efuse.c j = 0; /* newdata index */ j 518 drivers/staging/rtl8712/rtl8712_efuse.c newdata[j++] = pktdata[i - 1]; j 519 drivers/staging/rtl8712/rtl8712_efuse.c newdata[j++] = data[idx]; j 529 drivers/staging/rtl8712/rtl8712_efuse.c newdata[j++] = data[idx]; j 530 drivers/staging/rtl8712/rtl8712_efuse.c newdata[j++] = pktdata[1 + 1]; j 539 drivers/staging/rtl8712/rtl8712_efuse.c newdata[j++] = data[idx]; j 540 drivers/staging/rtl8712/rtl8712_efuse.c newdata[j++] = data[idx + 1]; j 560 drivers/staging/rtl8712/rtl8712_efuse.c j = 0; j 179 drivers/staging/rtl8712/rtl8712_xmit.c int j, acirp_cnt[4]; j 187 drivers/staging/rtl8712/rtl8712_xmit.c for (j = i + 1; j < 4; j++) { j 188 drivers/staging/rtl8712/rtl8712_xmit.c if (acirp_cnt[j] < acirp_cnt[i]) { j 189 drivers/staging/rtl8712/rtl8712_xmit.c swap(acirp_cnt[i], acirp_cnt[j]); j 190 drivers/staging/rtl8712/rtl8712_xmit.c swap(inx[i], inx[j]); j 773 drivers/staging/rtl8712/rtl871x_ioctl_linux.c u8 j, blInserted = false; j 794 drivers/staging/rtl8712/rtl871x_ioctl_linux.c for (j = 0; j < NUM_PMKID_CACHE; j++) { j 795 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (!memcmp(pl[j].Bssid, strIssueBssid, ETH_ALEN)) { j 801 drivers/staging/rtl8712/rtl871x_ioctl_linux.c memcpy(pl[j].PMKID, pPMK->pmkid, IW_PMKID_LEN); j 802 drivers/staging/rtl8712/rtl871x_ioctl_linux.c pl[j].bUsed = true; j 803 drivers/staging/rtl8712/rtl871x_ioctl_linux.c psecuritypriv->PMKIDIndex = j + 1; j 824 drivers/staging/rtl8712/rtl871x_ioctl_linux.c for (j = 0; j < NUM_PMKID_CACHE; j++) { j 825 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (!memcmp(pl[j].Bssid, strIssueBssid, ETH_ALEN)) { j 829 drivers/staging/rtl8712/rtl871x_ioctl_linux.c eth_zero_addr(pl[j].Bssid); j 830 drivers/staging/rtl8712/rtl871x_ioctl_linux.c pl[j].bUsed = false; j 1257 drivers/staging/rtl8712/rtl871x_mlme.c unsigned int i, j; j 1266 drivers/staging/rtl8712/rtl871x_mlme.c for (j = i; j < i + 9; j++) { j 1267 drivers/staging/rtl8712/rtl871x_mlme.c out_ie[ielength] = in_ie[j]; j 114 drivers/staging/rtl8712/rtl871x_security.c sint i, j; j 124 drivers/staging/rtl8712/rtl871x_security.c for (c = ((u32)k) << 24, j = 8; j > 0; --j) j 1017 drivers/staging/rtl8712/rtl871x_security.c uint qc_exists, a4_exists, i, j, payload_remainder; j 1090 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < 16; j++) j 1091 drivers/staging/rtl8712/rtl871x_security.c padded_buffer[j] = 0x00; j 1092 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < payload_remainder; j++) j 1093 drivers/staging/rtl8712/rtl871x_security.c padded_buffer[j] = pframe[payload_index++]; j 1097 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < 8; j++) j 1098 drivers/staging/rtl8712/rtl871x_security.c mic[j] = aes_out[j]; j 1100 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < 8; j++) j 1101 drivers/staging/rtl8712/rtl871x_security.c pframe[payload_index + j] = mic[j]; j 1108 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < 16; j++) j 1109 drivers/staging/rtl8712/rtl871x_security.c pframe[payload_index++] = chain_buffer[j]; j 1115 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < 16; j++) j 1116 drivers/staging/rtl8712/rtl871x_security.c padded_buffer[j] = 0x00; j 1117 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < payload_remainder; j++) j 1118 drivers/staging/rtl8712/rtl871x_security.c padded_buffer[j] = pframe[payload_index + j]; j 1121 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < payload_remainder; j++) j 1122 drivers/staging/rtl8712/rtl871x_security.c pframe[payload_index++] = chain_buffer[j]; j 1127 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < 16; j++) j 1128 drivers/staging/rtl8712/rtl871x_security.c padded_buffer[j] = 0x00; j 1129 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < 8; j++) j 1130 drivers/staging/rtl8712/rtl871x_security.c padded_buffer[j] = pframe[j + hdrlen + 8 + plen]; j 1133 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < 8; j++) j 1134 drivers/staging/rtl8712/rtl871x_security.c pframe[payload_index++] = chain_buffer[j]; j 1191 drivers/staging/rtl8712/rtl871x_security.c uint qc_exists, a4_exists, i, j, payload_remainder; j 1251 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < 16; j++) j 1252 drivers/staging/rtl8712/rtl871x_security.c pframe[payload_index++] = chain_buffer[j]; j 1258 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < 16; j++) j 1259 drivers/staging/rtl8712/rtl871x_security.c padded_buffer[j] = 0x00; j 1260 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < payload_remainder; j++) j 1261 drivers/staging/rtl8712/rtl871x_security.c padded_buffer[j] = pframe[payload_index + j]; j 1264 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < payload_remainder; j++) j 1265 drivers/staging/rtl8712/rtl871x_security.c pframe[payload_index++] = chain_buffer[j]; j 1296 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < 16; j++) j 1297 drivers/staging/rtl8712/rtl871x_security.c padded_buffer[j] = 0x00; j 1298 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < payload_remainder; j++) j 1299 drivers/staging/rtl8712/rtl871x_security.c padded_buffer[j] = message[payload_index++]; j 1303 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < 8; j++) j 1304 drivers/staging/rtl8712/rtl871x_security.c mic[j] = aes_out[j]; j 1306 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < 8; j++) j 1307 drivers/staging/rtl8712/rtl871x_security.c message[payload_index + j] = mic[j]; j 1314 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < 16; j++) j 1315 drivers/staging/rtl8712/rtl871x_security.c message[payload_index++] = chain_buffer[j]; j 1321 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < 16; j++) j 1322 drivers/staging/rtl8712/rtl871x_security.c padded_buffer[j] = 0x00; j 1323 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < payload_remainder; j++) j 1324 drivers/staging/rtl8712/rtl871x_security.c padded_buffer[j] = message[payload_index + j]; j 1327 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < payload_remainder; j++) j 1328 drivers/staging/rtl8712/rtl871x_security.c message[payload_index++] = chain_buffer[j]; j 1333 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < 16; j++) j 1334 drivers/staging/rtl8712/rtl871x_security.c padded_buffer[j] = 0x00; j 1335 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < 8; j++) j 1336 drivers/staging/rtl8712/rtl871x_security.c padded_buffer[j] = message[j + hdrlen + plen]; j 1339 drivers/staging/rtl8712/rtl871x_security.c for (j = 0; j < 8; j++) j 1340 drivers/staging/rtl8712/rtl871x_security.c message[payload_index++] = chain_buffer[j]; j 456 drivers/staging/rtl8712/usb_ops_linux.c int i, j; j 461 drivers/staging/rtl8712/usb_ops_linux.c for (j = 0; j < 8; j++) { j 462 drivers/staging/rtl8712/usb_ops_linux.c if (pxmitbuf->pxmit_urb[j]) j 463 drivers/staging/rtl8712/usb_ops_linux.c usb_kill_urb(pxmitbuf->pxmit_urb[j]); j 81 drivers/staging/rtl8723bs/core/rtw_debug.c int i, j = 1; j 86 drivers/staging/rtl8723bs/core/rtw_debug.c if (j%4 == 1) j 89 drivers/staging/rtl8723bs/core/rtw_debug.c if ((j++)%4 == 0) j 96 drivers/staging/rtl8723bs/core/rtw_debug.c int i, j = 1; j 100 drivers/staging/rtl8723bs/core/rtw_debug.c if (j%4 == 1) j 103 drivers/staging/rtl8723bs/core/rtw_debug.c if ((j++)%4 == 0) j 110 drivers/staging/rtl8723bs/core/rtw_debug.c int i, j = 1, path; j 127 drivers/staging/rtl8723bs/core/rtw_debug.c if (j%4 == 1) j 130 drivers/staging/rtl8723bs/core/rtw_debug.c if ((j++)%4 == 0) j 2328 drivers/staging/rtl8723bs/core/rtw_mlme.c unsigned int i, j; j 2335 drivers/staging/rtl8723bs/core/rtw_mlme.c for (j = i; j < i + 9; j++) { j 2336 drivers/staging/rtl8723bs/core/rtw_mlme.c out_ie[ielength] = in_ie[j]; j 3234 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c unsigned int i, j, index = 0; j 3313 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c for (j = 0; j < sta_bssrate_len; j++) { j 3316 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c == (sta_bssrate[j]|IEEE80211_BASIC_RATE_MASK)) { j 3324 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if (j == sta_bssrate_len) { j 4148 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c int j, k = 0; j 4154 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c for (j = 1; j <= 14; j++) { j 4155 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if (ICS[i][j] == 1) { j 4157 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c InfoContent[k] = j; /* channel number */ j 4784 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c u8 j, k; j 4808 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c for (j = 0; j < noc; j++) { j 4810 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c channel = fcn + j; /* 2.4 GHz */ j 4812 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c channel = fcn + j*4; /* 5 GHz */ j 4843 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c i = j = k = 0; j 4851 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if ((j == chplan_ap.Len) || (chplan_ap.Channel[j] > 14)) j 4854 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if (chplan_sta[i].ChannelNum == chplan_ap.Channel[j]) { j 4855 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c chplan_new[k].ChannelNum = chplan_ap.Channel[j]; j 4858 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c j++; j 4860 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c } else if (chplan_sta[i].ChannelNum < chplan_ap.Channel[j]) { j 4866 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c } else if (chplan_sta[i].ChannelNum > chplan_ap.Channel[j]) { j 4867 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c chplan_new[k].ChannelNum = chplan_ap.Channel[j]; j 4869 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c j++; j 4887 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c while ((j < chplan_ap.Len) && (chplan_ap.Channel[j] <= 14)) { j 4888 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c chplan_new[k].ChannelNum = chplan_ap.Channel[j]; j 4890 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c j++; j 4905 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c while ((j < chplan_ap.Len) && (chplan_ap.Channel[j] <= 14)) { j 4906 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c j++; j 4916 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if ((j == chplan_ap.Len) || (chplan_ap.Channel[j] == 0)) j 4919 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if (chplan_sta[i].ChannelNum == chplan_ap.Channel[j]) { j 4920 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c chplan_new[k].ChannelNum = chplan_ap.Channel[j]; j 4923 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c j++; j 4925 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c } else if (chplan_sta[i].ChannelNum < chplan_ap.Channel[j]) { j 4931 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c } else if (chplan_sta[i].ChannelNum > chplan_ap.Channel[j]) { j 4932 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c chplan_new[k].ChannelNum = chplan_ap.Channel[j]; j 4934 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c j++; j 4949 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c while ((j < chplan_ap.Len) && (chplan_ap.Channel[j] != 0)) { j 4950 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c chplan_new[k].ChannelNum = chplan_ap.Channel[j]; j 4952 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c j++; j 6285 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c int i, j; j 6293 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c j = 0; j 6303 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if (j >= out_num) { j 6309 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c memcpy(&out[j], &in[i], sizeof(struct rtw_ieee80211_channel)); j 6312 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c out[j].flags |= RTW_IEEE80211_CHAN_PASSIVE_SCAN; j 6314 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c j++; j 6316 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if (j >= out_num) j 6321 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if (j == 0) { j 6328 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if (j >= out_num) { j 6334 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c out[j].hw_value = pmlmeext->channel_set[i].ChannelNum; j 6337 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c out[j].flags |= RTW_IEEE80211_CHAN_PASSIVE_SCAN; j 6339 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c j++; j 6344 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c return j; j 170 drivers/staging/rtl8723bs/core/rtw_security.c sint i, j; j 179 drivers/staging/rtl8723bs/core/rtw_security.c for (c = ((u32)k) << 24, j = 8; j > 0; --j) { j 1332 drivers/staging/rtl8723bs/core/rtw_security.c uint qc_exists, a4_exists, i, j, payload_remainder, j 1437 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < 16; j++) j 1438 drivers/staging/rtl8723bs/core/rtw_security.c padded_buffer[j] = 0x00; j 1439 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < payload_remainder; j++) { j 1440 drivers/staging/rtl8723bs/core/rtw_security.c padded_buffer[j] = pframe[payload_index++];/* padded_buffer[j] = message[payload_index++]; */ j 1447 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0 ; j < 8; j++) j 1448 drivers/staging/rtl8723bs/core/rtw_security.c mic[j] = aes_out[j]; j 1451 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < 8; j++) j 1452 drivers/staging/rtl8723bs/core/rtw_security.c pframe[payload_index+j] = mic[j]; /* message[payload_index+j] = mic[j]; */ j 1467 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < 16; j++) j 1468 drivers/staging/rtl8723bs/core/rtw_security.c pframe[payload_index++] = chain_buffer[j];/* for (j = 0; j<16;j++) message[payload_index++] = chain_buffer[j]; */ j 1484 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < 16; j++) j 1485 drivers/staging/rtl8723bs/core/rtw_security.c padded_buffer[j] = 0x00; j 1486 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < payload_remainder; j++) j 1487 drivers/staging/rtl8723bs/core/rtw_security.c padded_buffer[j] = pframe[payload_index+j];/* padded_buffer[j] = message[payload_index+j]; */ j 1491 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < payload_remainder; j++) j 1492 drivers/staging/rtl8723bs/core/rtw_security.c pframe[payload_index++] = chain_buffer[j];/* for (j = 0; j<payload_remainder;j++) message[payload_index++] = chain_buffer[j]; */ j 1506 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < 16; j++) j 1507 drivers/staging/rtl8723bs/core/rtw_security.c padded_buffer[j] = 0x00; j 1508 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < 8; j++) j 1509 drivers/staging/rtl8723bs/core/rtw_security.c padded_buffer[j] = pframe[j+hdrlen+8+plen];/* padded_buffer[j] = message[j+hdrlen+8+plen]; */ j 1513 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < 8; j++) j 1514 drivers/staging/rtl8723bs/core/rtw_security.c pframe[payload_index++] = chain_buffer[j];/* for (j = 0; j<8;j++) message[payload_index++] = chain_buffer[j]; */ j 1580 drivers/staging/rtl8723bs/core/rtw_security.c uint qc_exists, a4_exists, i, j, payload_remainder, j 1667 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < 16; j++) j 1668 drivers/staging/rtl8723bs/core/rtw_security.c pframe[payload_index++] = chain_buffer[j]; j 1684 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < 16; j++) j 1685 drivers/staging/rtl8723bs/core/rtw_security.c padded_buffer[j] = 0x00; j 1686 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < payload_remainder; j++) { j 1687 drivers/staging/rtl8723bs/core/rtw_security.c padded_buffer[j] = pframe[payload_index+j]; j 1691 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < payload_remainder; j++) j 1692 drivers/staging/rtl8723bs/core/rtw_security.c pframe[payload_index++] = chain_buffer[j]; j 1755 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < 16; j++) j 1756 drivers/staging/rtl8723bs/core/rtw_security.c padded_buffer[j] = 0x00; j 1757 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < payload_remainder; j++) { j 1758 drivers/staging/rtl8723bs/core/rtw_security.c padded_buffer[j] = message[payload_index++]; j 1765 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < 8; j++) j 1766 drivers/staging/rtl8723bs/core/rtw_security.c mic[j] = aes_out[j]; j 1769 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < 8; j++) j 1770 drivers/staging/rtl8723bs/core/rtw_security.c message[payload_index+j] = mic[j]; j 1785 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < 16; j++) j 1786 drivers/staging/rtl8723bs/core/rtw_security.c message[payload_index++] = chain_buffer[j]; j 1802 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < 16; j++) j 1803 drivers/staging/rtl8723bs/core/rtw_security.c padded_buffer[j] = 0x00; j 1804 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < payload_remainder; j++) { j 1805 drivers/staging/rtl8723bs/core/rtw_security.c padded_buffer[j] = message[payload_index+j]; j 1809 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < payload_remainder; j++) j 1810 drivers/staging/rtl8723bs/core/rtw_security.c message[payload_index++] = chain_buffer[j]; j 1824 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < 16; j++) j 1825 drivers/staging/rtl8723bs/core/rtw_security.c padded_buffer[j] = 0x00; j 1826 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < 8; j++) { j 1827 drivers/staging/rtl8723bs/core/rtw_security.c padded_buffer[j] = message[j+hdrlen+8+plen-8]; j 1832 drivers/staging/rtl8723bs/core/rtw_security.c for (j = 0; j < 8; j++) j 1833 drivers/staging/rtl8723bs/core/rtw_security.c message[payload_index++] = chain_buffer[j]; j 547 drivers/staging/rtl8723bs/core/rtw_wlan_util.c u32 j, addr, cmd; j 551 drivers/staging/rtl8723bs/core/rtw_wlan_util.c for (j = 0; j < 6; j++) { j 552 drivers/staging/rtl8723bs/core/rtw_wlan_util.c cmd = _ReadCAM(padapter, addr+j); j 554 drivers/staging/rtl8723bs/core/rtw_wlan_util.c if (j > 1) /* get key from cam */ j 555 drivers/staging/rtl8723bs/core/rtw_wlan_util.c memcpy(get_key+(j-2)*4, &cmd, 4); j 563 drivers/staging/rtl8723bs/core/rtw_wlan_util.c int j; j 568 drivers/staging/rtl8723bs/core/rtw_wlan_util.c for (j = 5; j >= 0; j--) { j 569 drivers/staging/rtl8723bs/core/rtw_wlan_util.c switch (j) { j 577 drivers/staging/rtl8723bs/core/rtw_wlan_util.c i = (j - 2) << 2; j 583 drivers/staging/rtl8723bs/core/rtw_wlan_util.c cam_val[1] = addr + (unsigned int)j; j 940 drivers/staging/rtl8723bs/core/rtw_wlan_util.c u32 j, tmp, change_inx = false; j 944 drivers/staging/rtl8723bs/core/rtw_wlan_util.c for (j = i+1; j < 4; j++) { j 946 drivers/staging/rtl8723bs/core/rtw_wlan_util.c if ((edca[j] & 0xFFFF) < (edca[i] & 0xFFFF)) { j 948 drivers/staging/rtl8723bs/core/rtw_wlan_util.c } else if ((edca[j] & 0xFFFF) == (edca[i] & 0xFFFF)) { j 950 drivers/staging/rtl8723bs/core/rtw_wlan_util.c if ((edca[j] >> 16) > (edca[i] >> 16)) j 956 drivers/staging/rtl8723bs/core/rtw_wlan_util.c edca[i] = edca[j]; j 957 drivers/staging/rtl8723bs/core/rtw_wlan_util.c edca[j] = tmp; j 960 drivers/staging/rtl8723bs/core/rtw_wlan_util.c inx[i] = inx[j]; j 961 drivers/staging/rtl8723bs/core/rtw_wlan_util.c inx[j] = tmp; j 1405 drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c u32 i, j, diff, SimularityBitMap, bound = 0; j 1453 drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c for (j = i*4; j < (i+1)*4-2; j++) j 1454 drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c result[3][j] = result[final_candidate[i]][j]; j 1522 drivers/staging/rtl8723bs/hal/hal_com.c u32 i = 0, j = 0; j 1531 drivers/staging/rtl8723bs/hal/hal_com.c j = (*Start) - 2; j 1532 drivers/staging/rtl8723bs/hal/hal_com.c strncpy((char *)Out, (const char *)(In+i), j-i+1); j 1920 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c u8 i, j, k, l, m; j 1925 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c for (j = 0; j < MAX_2_4G_BANDWITH_NUM; ++j) j 1929 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c pHalData->TxPwrLimit_2_4G[i][j][k][m][l] = MAX_POWER_INDEX; j 1933 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c for (j = 0; j < MAX_5G_BANDWITH_NUM; ++j) j 1937 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c pHalData->TxPwrLimit_5G[i][j][k][m][l] = MAX_POWER_INDEX; j 2374 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c u32 i = 0, j = 0; j 2389 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c for (j = 0; j < strlen(BufOfLines); ++j) { j 2390 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c currentChar = BufOfLines[j]; j 2395 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c currentChar -= (u8) ((((i + j) * 3) % 128)); j 2397 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c BufOfLines[j] = map[currentChar - 32] + 32; j 2841 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c u32 j = 0; j 2850 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_2GCCKA_P, j); j 2852 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_2GCCKA_N, j); j 2854 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_2GCCKB_P, j); j 2856 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_2GCCKB_N, j); j 2858 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_2GA_P, j); j 2860 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_2GA_N, j); j 2862 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_2GB_P, j); j 2864 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_2GB_N, j); j 2866 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_5GA_P[0], j); j 2868 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_5GA_N[0], j); j 2870 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_5GB_P[0], j); j 2872 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_5GB_N[0], j); j 2874 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_5GA_P[1], j); j 2876 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_5GA_N[1], j); j 2878 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_5GB_P[1], j); j 2880 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_5GB_N[1], j); j 2882 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_5GA_P[2], j); j 2884 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_5GA_N[2], j); j 2886 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_5GB_P[2], j); j 2888 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_5GB_N[2], j); j 2890 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_5GA_P[3], j); j 2892 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_5GA_N[3], j); j 2894 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_5GB_P[3], j); j 2896 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c STORE_SWING_TABLE(pRFCalibrateInfo->DeltaSwingTableIdx_5GB_N[3], j); j 1521 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c int j = 0; j 1633 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c for (j =request->n_channels-1;j>= 0;j--) j 1636 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(&ch[j*survey_times+i], &ch[j], sizeof(struct rtw_ieee80211_channel)); j 938 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c u8 j, blInserted = false; j 963 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c for (j = 0 ; j<NUM_PMKID_CACHE; j++) { j 964 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (!memcmp(psecuritypriv->PMKIDList[j].Bssid, strIssueBssid, ETH_ALEN)) { j 968 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->PMKIDList[j].PMKID, pPMK->pmkid, IW_PMKID_LEN); j 969 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c psecuritypriv->PMKIDList[ j ].bUsed = true; j 970 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c psecuritypriv->PMKIDIndex = j+1; j 992 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c for (j = 0 ; j<NUM_PMKID_CACHE; j++) { j 993 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (!memcmp(psecuritypriv->PMKIDList[j].Bssid, strIssueBssid, ETH_ALEN)) { j 995 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c eth_zero_addr(psecuritypriv->PMKIDList[j].Bssid); j 996 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c psecuritypriv->PMKIDList[ j ].bUsed = false; j 2846 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c int i, j; j 2881 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c for (j = 0;j<16;j++) { j 2882 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c preorder_ctrl = &psta->recvreorder_ctrl[j]; j 2884 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c DBG_871X("tid =%d, indicate_seq =%d\n", j, preorder_ctrl->indicate_seq); j 4964 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c int j = -1; j 4967 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c while ((++j < num_priv_args) && ((priv_args[j].name[0] != '\0') || j 4968 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c (priv_args[j].set_args != priv_args[k].set_args) || j 4969 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c (priv_args[j].get_args != priv_args[k].get_args))); j 4972 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (j == num_priv_args) { j 4982 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c k = j; j 5126 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c int j; j 5146 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c for (j = 0; j < n; j++) { j 5147 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c sprintf(str, "%d ", extra[j]); j 5160 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c for (j = 0; j < n; j++) { j 5161 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c sprintf(str, "%d ", ((__s32 *)extra)[j]); j 69 drivers/staging/rtl8723bs/os_dep/wifi_regd.c unsigned int i, j; j 78 drivers/staging/rtl8723bs/os_dep/wifi_regd.c for (j = 0; j < sband->n_channels; j++) { j 79 drivers/staging/rtl8723bs/os_dep/wifi_regd.c ch = &sband->channels[j]; j 1628 drivers/staging/rts5208/ms.c u8 extra[MS_EXTRA_SIZE], val, i, j, data[16]; j 1795 drivers/staging/rts5208/ms.c for (j = 4; j <= MS_EXTRA_SIZE; j++) j 1796 drivers/staging/rts5208/ms.c data[6 + j] = 0xFF; j 1884 drivers/staging/rts5208/ms.c u8 val, extra[MS_EXTRA_SIZE], j, *ptr; j 1942 drivers/staging/rts5208/ms.c for (j = 0; j < 3; j++) { j 1943 drivers/staging/rts5208/ms.c retval = ms_read_page(chip, ms_card->boot_block, j); j 2030 drivers/staging/rts5208/ms.c j = ptr[10]; j 2033 drivers/staging/rts5208/ms.c if (j < 2) { /* Effective block for 4MB: 0x1F0 */ j 2039 drivers/staging/rts5208/ms.c if (j < 5) { /* Effective block for 16MB: 0x3E0 */ j 2041 drivers/staging/rts5208/ms.c } else if (j < 0xA) { /* Effective block for 32MB: 0x7C0 */ j 2043 drivers/staging/rts5208/ms.c } else if (j < 0x11) { /* Effective block for 64MB: 0xF80 */ j 1440 drivers/staging/rts5208/rtsx_chip.c int dw_len, i, j; j 1463 drivers/staging/rts5208/rtsx_chip.c j = 0; j 1465 drivers/staging/rts5208/rtsx_chip.c mask[j] |= 0xFF << (offset * 8); j 1466 drivers/staging/rts5208/rtsx_chip.c data[j] |= buf[i] << (offset * 8); j 1468 drivers/staging/rts5208/rtsx_chip.c j++; j 1500 drivers/staging/rts5208/rtsx_chip.c int dw_len, i, j; j 1524 drivers/staging/rts5208/rtsx_chip.c j = 0; j 1527 drivers/staging/rts5208/rtsx_chip.c buf[i] = (u8)(data[j] >> (offset * 8)); j 1529 drivers/staging/rts5208/rtsx_chip.c j++; j 1653 drivers/staging/rts5208/rtsx_chip.c int i, j; j 1671 drivers/staging/rts5208/rtsx_chip.c for (j = 0; j < 100; j++) { j 2018 drivers/staging/rts5208/rtsx_chip.c int i, j; j 2030 drivers/staging/rts5208/rtsx_chip.c for (j = 0; j < 256; j++) j 2044 drivers/staging/rts5208/rtsx_chip.c for (j = 0; j < buf_len % 256; j++) j 2060 drivers/staging/rts5208/rtsx_chip.c int i, j; j 2072 drivers/staging/rts5208/rtsx_chip.c for (j = 0; j < 256; j++) { j 2086 drivers/staging/rts5208/rtsx_chip.c for (j = 0; j < buf_len % 256; j++) { j 527 drivers/staging/rts5208/rtsx_transport.c int sg_cnt, j; j 535 drivers/staging/rts5208/rtsx_transport.c for (j = 0; j < sg_cnt; j++) { j 544 drivers/staging/rts5208/rtsx_transport.c if (j == (sg_cnt - 1)) j 1617 drivers/staging/rts5208/sd.c int i, j, cont_path_cnt; j 1633 drivers/staging/rts5208/sd.c j = 0; j 1638 drivers/staging/rts5208/sd.c j = cont_path_cnt++; j 1639 drivers/staging/rts5208/sd.c path[j].start = i; j 1640 drivers/staging/rts5208/sd.c path[j].end = i; j 1642 drivers/staging/rts5208/sd.c path[j].end = i; j 1735 drivers/staging/rts5208/sd.c int i, j; j 1755 drivers/staging/rts5208/sd.c for (j = MAX_PHASE; j >= 0; j--) { j 1761 drivers/staging/rts5208/sd.c retval = tuning_cmd(chip, (u8)j); j 1763 drivers/staging/rts5208/sd.c raw_phase_map[i] |= 1 << j; j 1845 drivers/staging/rts5208/sd.c int i, j; j 1865 drivers/staging/rts5208/sd.c for (j = MAX_PHASE; j >= 0; j--) { j 1873 drivers/staging/rts5208/sd.c retval = tuning_cmd(chip, (u8)j); j 1875 drivers/staging/rts5208/sd.c raw_phase_map[i] |= 1 << j; j 2289 drivers/staging/rts5208/sd.c int retval, i = 0, j = 0, k = 0; j 2303 drivers/staging/rts5208/sd.c j = 0; j 2390 drivers/staging/rts5208/sd.c j++; j 2391 drivers/staging/rts5208/sd.c if (j < 3) j 2874 drivers/staging/rts5208/sd.c int retval, i = 0, j = 0, k = 0; j 2918 drivers/staging/rts5208/sd.c j++; j 2919 drivers/staging/rts5208/sd.c if (j < 100) { j 442 drivers/staging/rts5208/xd.c int retval, i, j; j 650 drivers/staging/rts5208/xd.c for (j = 0; j < 10; j++) { j 659 drivers/staging/rts5208/xd.c if (j == 10) j 689 drivers/staging/rts5208/xd.c for (j = 0; j < 3; j++) { j 694 drivers/staging/rts5208/xd.c if (j == 3) j 700 drivers/staging/rts5208/xd.c j = 0; j 702 drivers/staging/rts5208/xd.c for (j = 1; j <= 8; j++) { j 703 drivers/staging/rts5208/xd.c retval = xd_read_redundant(chip, page_addr + j, j 711 drivers/staging/rts5208/xd.c if (j == 9) j 720 drivers/staging/rts5208/xd.c page_addr += j; j 311 drivers/staging/sm750fb/sm750_accel.c int i, j; j 382 drivers/staging/sm750fb/sm750_accel.c for (j = 0; j < (ul4BytesPerScan / 4); j++) j 383 drivers/staging/sm750fb/sm750_accel.c write_dpPort(accel, *(unsigned int *)(pSrcbuf + (j * 4))); j 88 drivers/staging/sm750fb/sm750_cursor.c int i, j, count, pitch, offset; j 111 drivers/staging/sm750fb/sm750_cursor.c for (j = 0; j < 8; j++) { j 112 drivers/staging/sm750fb/sm750_cursor.c if (mask & (0x80 >> j)) { j 119 drivers/staging/sm750fb/sm750_cursor.c data |= ((opr & (0x80 >> j)) ? 2 : 1) << (j * 2); j 138 drivers/staging/sm750fb/sm750_cursor.c int i, j, count, pitch, offset; j 161 drivers/staging/sm750fb/sm750_cursor.c for (j = 0; j < 8; j++) { j 162 drivers/staging/sm750fb/sm750_cursor.c if (mask & (1 << j)) j 163 drivers/staging/sm750fb/sm750_cursor.c data |= ((color & (1 << j)) ? 1 : 2) << (j * 2); j 1638 drivers/staging/speakup/main.c int i, j; j 1646 drivers/staging/speakup/main.c for (j = i + 1; j < 8; j++) j 1648 drivers/staging/speakup/main.c speakup_console[vc_num]->ht.bgcount[cptr[j]]) j 1649 drivers/staging/speakup/main.c swap(cptr[i], cptr[j]); j 603 drivers/staging/unisys/visornic/visornic_main.c int i, j, count, err; j 646 drivers/staging/unisys/visornic/visornic_main.c for (j = i; j < count; j++) { j 647 drivers/staging/unisys/visornic/visornic_main.c kfree_skb(devdata->rcvbuf[j]); j 648 drivers/staging/unisys/visornic/visornic_main.c devdata->rcvbuf[j] = NULL; j 515 drivers/staging/vc04_services/bcm2835-camera/controls.c int i, j; j 529 drivers/staging/vc04_services/bcm2835-camera/controls.c for (j = 0; j < imagefx.num_effect_params; j++) j 530 drivers/staging/vc04_services/bcm2835-camera/controls.c imagefx.effect_parameter[j] = j 531 drivers/staging/vc04_services/bcm2835-camera/controls.c v4l2_to_mmal_effects_values[i].effect_params[j]; j 932 drivers/staging/wilc1000/wilc_spi.c int j; j 948 drivers/staging/wilc1000/wilc_spi.c j = 0; j 964 drivers/staging/wilc1000/wilc_spi.c j, tmp, unknown_mask); j 967 drivers/staging/wilc1000/wilc_spi.c j++; j 916 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c int j = 0; j 923 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c for (j = i + 2; j < ((i + 2) + buf[i + 1]); j++) j 924 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c buf[j] = sta_ch; j 167 drivers/staging/wilc1000/wilc_wlan.c u32 j = f->ack_session_info[i].seq_num; j 170 drivers/staging/wilc1000/wilc_wlan.c j == seq_no) { j 1819 drivers/staging/wlan-ng/hfa384x_usb.c int j; j 1874 drivers/staging/wlan-ng/hfa384x_usb.c for (j = 0; j < nwrites; j++) { j 1877 drivers/staging/wlan-ng/hfa384x_usb.c (j * HFA384x_USB_RWMEM_MAXLEN); j 1880 drivers/staging/wlan-ng/hfa384x_usb.c (j * HFA384x_USB_RWMEM_MAXLEN)); j 1882 drivers/staging/wlan-ng/hfa384x_usb.c (j * HFA384x_USB_RWMEM_MAXLEN)); j 1884 drivers/staging/wlan-ng/hfa384x_usb.c writelen = burnlen - (j * HFA384x_USB_RWMEM_MAXLEN); j 147 drivers/staging/wlan-ng/p80211wep.c u32 i, j, k, crc, keylen; j 180 drivers/staging/wlan-ng/p80211wep.c j = 0; j 182 drivers/staging/wlan-ng/p80211wep.c j = (j + s[i] + key[i % keylen]) & 0xff; j 183 drivers/staging/wlan-ng/p80211wep.c swap(i, j); j 189 drivers/staging/wlan-ng/p80211wep.c j = 0; j 192 drivers/staging/wlan-ng/p80211wep.c j = (j + s[i]) & 0xff; j 193 drivers/staging/wlan-ng/p80211wep.c swap(i, j); j 194 drivers/staging/wlan-ng/p80211wep.c buf[k] ^= s[(s[i] + s[j]) & 0xff]; j 207 drivers/staging/wlan-ng/p80211wep.c j = (j + s[i]) & 0xff; j 208 drivers/staging/wlan-ng/p80211wep.c swap(i, j); j 209 drivers/staging/wlan-ng/p80211wep.c if ((c_crc[k] ^ s[(s[i] + s[j]) & 0xff]) != icv[k]) j 220 drivers/staging/wlan-ng/p80211wep.c u32 i, j, k, crc, keylen; j 253 drivers/staging/wlan-ng/p80211wep.c j = 0; j 255 drivers/staging/wlan-ng/p80211wep.c j = (j + s[i] + key[i % keylen]) & 0xff; j 256 drivers/staging/wlan-ng/p80211wep.c swap(i, j); j 262 drivers/staging/wlan-ng/p80211wep.c j = 0; j 266 drivers/staging/wlan-ng/p80211wep.c j = (j + s[i]) & 0xff; j 267 drivers/staging/wlan-ng/p80211wep.c swap(i, j); j 268 drivers/staging/wlan-ng/p80211wep.c dst[k] = buf[k] ^ s[(s[i] + s[j]) & 0xff]; j 280 drivers/staging/wlan-ng/p80211wep.c j = (j + s[i]) & 0xff; j 281 drivers/staging/wlan-ng/p80211wep.c swap(i, j); j 282 drivers/staging/wlan-ng/p80211wep.c icv[k] ^= s[(s[i] + s[j]) & 0xff]; j 516 drivers/staging/wlan-ng/prism2fw.c int j; j 543 drivers/staging/wlan-ng/prism2fw.c for (j = 0; j < ns3crc; j++) { j 544 drivers/staging/wlan-ng/prism2fw.c if (s3crc[j].dowrite && j 545 drivers/staging/wlan-ng/prism2fw.c s3crc[j].addr == clist[currchunk].addr) { j 570 drivers/staging/wlan-ng/prism2fw.c for (j = 0; j < *ccnt; j++) { j 571 drivers/staging/wlan-ng/prism2fw.c cstart = clist[j].addr; j 572 drivers/staging/wlan-ng/prism2fw.c cend = cstart + clist[j].len - 1; j 576 drivers/staging/wlan-ng/prism2fw.c if (((unsigned int)j) >= (*ccnt)) { j 582 drivers/staging/wlan-ng/prism2fw.c memcpy(clist[j].data + coffset, s3data[i].data, s3data[i].len); j 679 drivers/staging/wlan-ng/prism2fw.c int j; /* index of PDR or -1 if fname plug */ j 694 drivers/staging/wlan-ng/prism2fw.c for (j = 0; j < pda->nrec; j++) { j 696 drivers/staging/wlan-ng/prism2fw.c le16_to_cpu(pda->rec[j]->code)) j 700 drivers/staging/wlan-ng/prism2fw.c j = -1; j 702 drivers/staging/wlan-ng/prism2fw.c if (j >= pda->nrec && j != -1) { /* if no matching PDR, fail */ j 717 drivers/staging/wlan-ng/prism2fw.c if (j != -1 && s3plug[i].len < le16_to_cpu(pda->rec[j]->len)) { j 748 drivers/staging/wlan-ng/prism2fw.c if (j == -1) { /* plug the filename */ j 752 drivers/staging/wlan-ng/prism2fw.c memcpy(dest, &pda->rec[j]->data, s3plug[i].len); j 1002 drivers/staging/wlan-ng/prism2fw.c int j; j 1075 drivers/staging/wlan-ng/prism2fw.c for (j = 0; j < nwrites; j++) { j 1077 drivers/staging/wlan-ng/prism2fw.c int lenleft = fchunk[i].len - (WRITESIZE_MAX * j); j 1083 drivers/staging/wlan-ng/prism2fw.c curroff = j * WRITESIZE_MAX; j 309 drivers/target/iscsi/iscsi_target_erl1.c int j; j 315 drivers/target/iscsi/iscsi_target_erl1.c for (j = 0; j < seq->pdu_count; j++) { j 317 drivers/target/iscsi/iscsi_target_erl1.c seq->pdu_start + j]; j 96 drivers/target/iscsi/iscsi_target_seq_pdu_list.c int i, j, k; j 105 drivers/target/iscsi/iscsi_target_seq_pdu_list.c get_random_bytes(&j, sizeof(u32)); j 106 drivers/target/iscsi/iscsi_target_seq_pdu_list.c j = (1 + (int) (9999 + 1) - j) % count; j 108 drivers/target/iscsi/iscsi_target_seq_pdu_list.c j |= 0x80000000; j 109 drivers/target/iscsi/iscsi_target_seq_pdu_list.c if ((array[k] & 0x80000000) && (array[k] == j)) j 112 drivers/target/iscsi/iscsi_target_seq_pdu_list.c array[i] = j; j 173 drivers/target/iscsi/iscsi_target_seq_pdu_list.c int i, j = 0; j 194 drivers/target/iscsi/iscsi_target_seq_pdu_list.c cmd->seq_list[i].seq_send_order = array[j++]; j 481 drivers/target/iscsi/iscsi_target_tmr.c int i, j; j 533 drivers/target/iscsi/iscsi_target_tmr.c for (j = 0; j < seq->pdu_count; j++) { j 534 drivers/target/iscsi/iscsi_target_tmr.c pdu = &cmd->pdu_list[j+seq->pdu_start]; j 68 drivers/target/target_core_rd.c u32 i, j, page_count = 0, sg_per_table; j 74 drivers/target/target_core_rd.c for (j = 0; j < sg_per_table; j++) { j 75 drivers/target/target_core_rd.c pg = sg_page(&sg[j]); j 115 drivers/target/target_core_rd.c u32 i = 0, j, page_offset = 0, sg_per_table; j 152 drivers/target/target_core_rd.c for (j = 0; j < sg_per_table; j++) { j 159 drivers/target/target_core_rd.c sg_assign_page(&sg[j], pg); j 160 drivers/target/target_core_rd.c sg[j].length = PAGE_SIZE; j 1229 drivers/target/target_core_sbc.c int i, j, offset = 0; j 1236 drivers/target/target_core_sbc.c for (j = 0; j < psg->length; j 1237 drivers/target/target_core_sbc.c j += sizeof(*sdt)) { j 1252 drivers/target/target_core_sbc.c sdt = paddr + j; j 1197 drivers/target/target_core_transport.c int j = 0, i = 4; /* offset to start of the identifier */ j 1207 drivers/target/target_core_transport.c vpd->device_identifier[j++] = j 1210 drivers/target/target_core_transport.c vpd->device_identifier[j++] = j 1212 drivers/target/target_core_transport.c vpd->device_identifier[j++] = j 1220 drivers/target/target_core_transport.c vpd->device_identifier[j++] = page_83[i++]; j 125 drivers/thermal/intel/int340x_thermal/int3400_thermal.c int i, j; j 152 drivers/thermal/intel/int340x_thermal/int3400_thermal.c for (j = 0; j < INT3400_THERMAL_MAXIMUM_UUID; j++) { j 155 drivers/thermal/intel/int340x_thermal/int3400_thermal.c guid_parse(int3400_thermal_uuids[j], &guid); j 157 drivers/thermal/intel/int340x_thermal/int3400_thermal.c priv->uuid_bitmap |= (1 << j); j 162 drivers/thermal/intel/intel_bxt_pmic_thermal.c int i, j, ret; j 171 drivers/thermal/intel/intel_bxt_pmic_thermal.c for (j = 0; j < td->maps[i].num_trips; j++) { j 172 drivers/thermal/intel/intel_bxt_pmic_thermal.c reg = td->maps[i].trip_config[j].irq_reg; j 173 drivers/thermal/intel/intel_bxt_pmic_thermal.c mask = td->maps[i].trip_config[j].irq_mask; j 191 drivers/thermal/intel/intel_bxt_pmic_thermal.c evt_stat_reg = td->maps[i].trip_config[j].evt_stat; j 212 drivers/thermal/intel/intel_bxt_pmic_thermal.c int ret, irq, virq, i, j, pmic_irq_count; j 257 drivers/thermal/intel/intel_bxt_pmic_thermal.c for (j = 0; j < thermal_data->maps[i].num_trips; j++) { j 258 drivers/thermal/intel/intel_bxt_pmic_thermal.c reg = thermal_data->maps[i].trip_config[j].irq_en; j 259 drivers/thermal/intel/intel_bxt_pmic_thermal.c mask = thermal_data->maps[i].trip_config[j].irq_en_mask; j 342 drivers/thermal/intel/intel_soc_dts_iosf.c int i, j; j 345 drivers/thermal/intel/intel_soc_dts_iosf.c for (j = 0; j < sensors->soc_dts[i].trip_count; ++j) { j 346 drivers/thermal/intel/intel_soc_dts_iosf.c if (!(sensors->soc_dts[i].trip_mask & BIT(j))) { j 347 drivers/thermal/intel/intel_soc_dts_iosf.c return update_trip_temp(&sensors->soc_dts[i], j, j 211 drivers/thermal/of-thermal.c int i, j; j 220 drivers/thermal/of-thermal.c for (j = 0; j < tbp->count; j++) { j 221 drivers/thermal/of-thermal.c tcbp = tbp->tcbp + j; j 246 drivers/thermal/of-thermal.c int i, j; j 255 drivers/thermal/of-thermal.c for (j = 0; j < tbp->count; j++) { j 256 drivers/thermal/of-thermal.c tcbp = tbp->tcbp + j; j 959 drivers/thermal/of-thermal.c int j; j 961 drivers/thermal/of-thermal.c for (j = 0; j < tbp->count; j++) j 962 drivers/thermal/of-thermal.c of_node_put(tbp->tcbp[j].cooling_device); j 983 drivers/thermal/of-thermal.c int i, j; j 988 drivers/thermal/of-thermal.c for (j = 0; j < tbp->count; j++) j 989 drivers/thermal/of-thermal.c of_node_put(tbp->tcbp[j].cooling_device); j 160 drivers/thermal/qcom/tsens-common.c int ret, i, j; j 222 drivers/thermal/qcom/tsens-common.c for (i = 0, j = LAST_TEMP_0; i < priv->feat->max_sensors; i++, j++) { j 223 drivers/thermal/qcom/tsens-common.c priv->rf[j] = devm_regmap_field_alloc(dev, priv->tm_map, j 224 drivers/thermal/qcom/tsens-common.c priv->fields[j]); j 225 drivers/thermal/qcom/tsens-common.c if (IS_ERR(priv->rf[j])) { j 226 drivers/thermal/qcom/tsens-common.c ret = PTR_ERR(priv->rf[j]); j 230 drivers/thermal/qcom/tsens-common.c for (i = 0, j = VALID_0; i < priv->feat->max_sensors; i++, j++) { j 231 drivers/thermal/qcom/tsens-common.c priv->rf[j] = devm_regmap_field_alloc(dev, priv->tm_map, j 232 drivers/thermal/qcom/tsens-common.c priv->fields[j]); j 233 drivers/thermal/qcom/tsens-common.c if (IS_ERR(priv->rf[j])) { j 234 drivers/thermal/qcom/tsens-common.c ret = PTR_ERR(priv->rf[j]); j 449 drivers/thermal/samsung/exynos_tmu.c unsigned int reg_off, j; j 454 drivers/thermal/samsung/exynos_tmu.c j = trip - 4; j 457 drivers/thermal/samsung/exynos_tmu.c j = trip; j 461 drivers/thermal/samsung/exynos_tmu.c th &= ~(0xff << j * 8); j 462 drivers/thermal/samsung/exynos_tmu.c th |= (temp_to_code(data, temp) << j * 8); j 469 drivers/thermal/samsung/exynos_tmu.c unsigned int reg_off, j; j 474 drivers/thermal/samsung/exynos_tmu.c j = trip - 4; j 477 drivers/thermal/samsung/exynos_tmu.c j = trip; j 481 drivers/thermal/samsung/exynos_tmu.c th &= ~(0xff << j * 8); j 482 drivers/thermal/samsung/exynos_tmu.c th |= (temp_to_code(data, temp - hyst) << j * 8); j 1574 drivers/thermal/tegra/soctherm.c int i, j, n, ret; j 1599 drivers/thermal/tegra/soctherm.c for (j = 0; j < n; j = j + 2) { j 1600 drivers/thermal/tegra/soctherm.c if (tlb[j] >= TEGRA124_SOCTHERM_SENSOR_NUM) j 1603 drivers/thermal/tegra/soctherm.c tt[i].id = tlb[j]; j 1604 drivers/thermal/tegra/soctherm.c tt[i].temp = tlb[j + 1]; j 851 drivers/thermal/thermal_sysfs.c int i, j; j 871 drivers/thermal/thermal_sysfs.c for (j = 0; j < stats->max_states; j++) { j 875 drivers/thermal/thermal_sysfs.c stats->trans_table[i * stats->max_states + j]); j 162 drivers/thunderbolt/eeprom.c int i, j; j 166 drivers/thunderbolt/eeprom.c for (j = 0; j < 8; j++) j 386 drivers/thunderbolt/icm.c unsigned int j; j 393 drivers/thunderbolt/icm.c for (j = 0; j < ARRAY_SIZE(sw->ports); j++) { j 394 drivers/thunderbolt/icm.c index = icm_fr_get_switch_index(sw->ports[j]); j 3237 drivers/tty/cyclades.c unsigned short i, j, k, cy_isa_nchan; j 3294 drivers/tty/cyclades.c for (j = 0; j < NR_CARDS; j++) { j 3295 drivers/tty/cyclades.c card = &cy_card[j]; j 3299 drivers/tty/cyclades.c if (j == NR_CARDS) { /* no more cy_cards available */ j 3336 drivers/tty/cyclades.c j + 1, (unsigned long)cy_isa_address, j 3340 drivers/tty/cyclades.c for (k = 0, j = cy_next_channel; j 3341 drivers/tty/cyclades.c j < cy_next_channel + cy_isa_nchan; j++, k++) j 3343 drivers/tty/cyclades.c cy_serial_driver, j, NULL); j 3647 drivers/tty/cyclades.c unsigned int device_id, nchan = 0, card_no, i, j; j 3858 drivers/tty/cyclades.c for (j = 0, i = cy_next_channel; i < cy_next_channel + nchan; i++, j++) j 3859 drivers/tty/cyclades.c tty_port_register_device(&card->ports[j].port, j 3928 drivers/tty/cyclades.c unsigned int i, j; j 3936 drivers/tty/cyclades.c for (j = 0; j < cy_card[i].nports; j++) { j 3937 drivers/tty/cyclades.c info = &cy_card[i].ports[j]; j 262 drivers/tty/ehv_bytechan.c unsigned int i, j = 0; j 269 drivers/tty/ehv_bytechan.c s2[j++] = '\r'; j 271 drivers/tty/ehv_bytechan.c s2[j++] = c; j 272 drivers/tty/ehv_bytechan.c if (j >= (EV_BYTE_CHANNEL_MAX_BYTES - 1)) { j 273 drivers/tty/ehv_bytechan.c if (ehv_bc_console_byte_channel_send(stdout_bc, s2, j)) j 275 drivers/tty/ehv_bytechan.c j = 0; j 279 drivers/tty/ehv_bytechan.c if (j) j 280 drivers/tty/ehv_bytechan.c ehv_bc_console_byte_channel_send(stdout_bc, s2, j); j 437 drivers/tty/ipwireless/tty.c static int add_tty(int j, j 442 drivers/tty/ipwireless/tty.c ttys[j] = kzalloc(sizeof(struct ipw_tty), GFP_KERNEL); j 443 drivers/tty/ipwireless/tty.c if (!ttys[j]) j 445 drivers/tty/ipwireless/tty.c ttys[j]->index = j; j 446 drivers/tty/ipwireless/tty.c ttys[j]->hardware = hardware; j 447 drivers/tty/ipwireless/tty.c ttys[j]->channel_idx = channel_idx; j 448 drivers/tty/ipwireless/tty.c ttys[j]->secondary_channel_idx = secondary_channel_idx; j 449 drivers/tty/ipwireless/tty.c ttys[j]->network = network; j 450 drivers/tty/ipwireless/tty.c ttys[j]->tty_type = tty_type; j 451 drivers/tty/ipwireless/tty.c mutex_init(&ttys[j]->ipw_tty_mutex); j 452 drivers/tty/ipwireless/tty.c tty_port_init(&ttys[j]->port); j 454 drivers/tty/ipwireless/tty.c tty_port_register_device(&ttys[j]->port, ipw_tty_driver, j, NULL); j 455 drivers/tty/ipwireless/tty.c ipwireless_associate_network_tty(network, channel_idx, ttys[j]); j 460 drivers/tty/ipwireless/tty.c ttys[j]); j 462 drivers/tty/ipwireless/tty.c if (get_tty(j)) j 465 drivers/tty/ipwireless/tty.c tty_type_name(tty_type), j); j 473 drivers/tty/ipwireless/tty.c int i, j; j 478 drivers/tty/ipwireless/tty.c for (j = i; j < IPWIRELESS_PCMCIA_MINORS; j 479 drivers/tty/ipwireless/tty.c j += IPWIRELESS_PCMCIA_MINOR_RANGE) j 480 drivers/tty/ipwireless/tty.c if (ttys[j] != NULL) { j 486 drivers/tty/ipwireless/tty.c j = i; j 488 drivers/tty/ipwireless/tty.c if (add_tty(j, hardware, network, j 493 drivers/tty/ipwireless/tty.c j += IPWIRELESS_PCMCIA_MINOR_RANGE; j 494 drivers/tty/ipwireless/tty.c if (add_tty(j, hardware, network, j 499 drivers/tty/ipwireless/tty.c j += IPWIRELESS_PCMCIA_MINOR_RANGE; j 500 drivers/tty/ipwireless/tty.c if (add_tty(j, hardware, network, j 516 drivers/tty/ipwireless/tty.c int j; j 519 drivers/tty/ipwireless/tty.c for (j = tty->index; j < IPWIRELESS_PCMCIA_MINORS; j 520 drivers/tty/ipwireless/tty.c j += IPWIRELESS_PCMCIA_MINOR_RANGE) { j 521 drivers/tty/ipwireless/tty.c struct ipw_tty *ttyj = ttys[j]; j 525 drivers/tty/ipwireless/tty.c if (get_tty(j)) j 528 drivers/tty/ipwireless/tty.c tty_type_name(ttyj->tty_type), j); j 543 drivers/tty/ipwireless/tty.c tty_unregister_device(ipw_tty_driver, j); j 545 drivers/tty/ipwireless/tty.c ttys[j] = NULL; j 313 drivers/tty/moxa.c unsigned int i, j; j 317 drivers/tty/moxa.c for (j = 0; j < MAX_PORTS_PER_BOARD; j++, p++, argm++) { j 342 drivers/tty/moxa.c unsigned int i, j; j 346 drivers/tty/moxa.c for (j = 0; j < MAX_PORTS_PER_BOARD; j++, p++, argm++) { j 526 drivers/tty/moxa.c size_t wlen, len2, j; j 561 drivers/tty/moxa.c j = 0; j 565 drivers/tty/moxa.c memcpy_toio(baseAddr + loadbuf, ptr + j, len2 << 1); j 566 drivers/tty/moxa.c j += len2 << 1; j 622 drivers/tty/moxa.c j = readw(baseAddr + Module_cnt); j 623 drivers/tty/moxa.c if (j <= 0) j 625 drivers/tty/moxa.c brd->numPorts = j * 8; j 626 drivers/tty/moxa.c writew(j, baseAddr + Module_no); j 1394 drivers/tty/mxser.c int id, i, j, n; j 1412 drivers/tty/mxser.c for (i = 0, j = 0; i < 4; i++) { j 1415 drivers/tty/mxser.c j = 1; j 1416 drivers/tty/mxser.c } else if ((j == 1) && (n == 1)) { j 1417 drivers/tty/mxser.c j = 2; j 1420 drivers/tty/mxser.c j = 0; j 1422 drivers/tty/mxser.c if (j != 2) j 1463 drivers/tty/mxser.c unsigned int j; j 1470 drivers/tty/mxser.c for (j = 0x100; j > 0; j >>= 1) { j 1472 drivers/tty/mxser.c if (k & j) { j 1482 drivers/tty/mxser.c for (k = 0, j = 0x8000; k < 16; k++, j >>= 1) { j 1486 drivers/tty/mxser.c value |= j; j 1501 drivers/tty/mxser.c unsigned int i, j; j 1514 drivers/tty/mxser.c for (j = 0; j < MXSER_PORTS_PER_BOARD; j++) j 1515 drivers/tty/mxser.c if (mxser_boards[i].ports[j].ioaddr) j 1527 drivers/tty/mxser.c for (j = 0; j < MXSER_PORTS_PER_BOARD; j++) { j 1528 drivers/tty/mxser.c ip = &mxser_boards[i].ports[j]; j 1570 drivers/tty/mxser.c for (j = 0; j < MXSER_PORTS_PER_BOARD; j++, p++) { j 1575 drivers/tty/mxser.c ip = &mxser_boards[i].ports[j]; j 2560 drivers/tty/mxser.c unsigned int i, j; j 2612 drivers/tty/mxser.c for (j = 0; j < UART_INFO_NUM; j++) { j 2613 drivers/tty/mxser.c if (Gpci_uart_info[j].type == brd->chip_flag) { j 2615 drivers/tty/mxser.c Gpci_uart_info[j].max_baud; j 166 drivers/tty/n_r3964.c unsigned int i, j; j 170 drivers/tty/n_r3964.c for (j = 0; (j < 16) && (j + i < length); j++) { j 171 drivers/tty/n_r3964.c sprintf(linebuf + 3 * j, "%02x ", block[i + j]); j 173 drivers/tty/n_r3964.c linebuf[3 * j] = '\0'; j 392 drivers/tty/serial/8250/8250_fintek.c int i, j, k, min, max; j 395 drivers/tty/serial/8250/8250_fintek.c for (j = 0; j < ARRAY_SIZE(keys); j++) { j 397 drivers/tty/serial/8250/8250_fintek.c pdata->key = keys[j]; j 399 drivers/tty/serial/8250/8250_fintek.c if (fintek_8250_enter_key(addr[i], keys[j])) j 601 drivers/tty/serial/8250/8250_pci.c int i, j; j 605 drivers/tty/serial/8250/8250_pci.c for (j = 0; ids[j]; j++) j 606 drivers/tty/serial/8250/8250_pci.c if (dev->subsystem_device == ids[j]) j 422 drivers/tty/serial/8250/serial_cs.c int j; j 431 drivers/tty/serial/8250/serial_cs.c for (j = 0; j < 5; j++) { j 432 drivers/tty/serial/8250/serial_cs.c p_dev->resource[0]->start = base[j]; j 433 drivers/tty/serial/8250/serial_cs.c p_dev->io_lines = base[j] ? 16 : 3; j 1179 drivers/tty/serial/mpc52xx_uart.c unsigned int j; j 1226 drivers/tty/serial/mpc52xx_uart.c j = 5000000; /* Maximum wait */ j 1231 drivers/tty/serial/mpc52xx_uart.c while (!mpc52xx_uart_tx_empty(port) && --j) j 1234 drivers/tty/serial/mpc52xx_uart.c if (!j) j 1577 drivers/tty/serial/mpc52xx_uart.c unsigned int i, j; j 1583 drivers/tty/serial/mpc52xx_uart.c j = 5000000; /* Maximum wait */ j 1584 drivers/tty/serial/mpc52xx_uart.c while (!mpc52xx_uart_tx_empty(port) && --j) j 1597 drivers/tty/serial/mpc52xx_uart.c j = 20000; /* Maximum wait */ j 1598 drivers/tty/serial/mpc52xx_uart.c while (!mpc52xx_uart_tx_empty(port) && --j) j 1608 drivers/tty/serial/msm_serial.c int j; j 1617 drivers/tty/serial/msm_serial.c for (j = 0; j < num_chars; j++) { j 1621 drivers/tty/serial/msm_serial.c buf[j] = '\r'; j 1622 drivers/tty/serial/msm_serial.c j++; j 1625 drivers/tty/serial/msm_serial.c if (j < num_chars) { j 1626 drivers/tty/serial/msm_serial.c buf[j] = c; j 504 drivers/tty/serial/mux.c int i, j; j 515 drivers/tty/serial/mux.c for(j = 0; j < port_count; ++j, ++i) { j 684 drivers/tty/serial/rp2.c int j = (unsigned)i % PORTS_PER_ASIC; j 687 drivers/tty/serial/rp2.c rp->base = card->bar1 + RP2_PORT_BASE + j*RP2_PORT_SPACING; j 688 drivers/tty/serial/rp2.c rp->ucode = card->bar1 + RP2_UCODE_BASE + j*RP2_UCODE_SPACING; j 690 drivers/tty/serial/rp2.c rp->idx = j; j 703 drivers/tty/serial/rp2.c p->mapbase = phys_base + RP2_PORT_BASE + j*RP2_PORT_SPACING; j 1898 drivers/tty/serial/sh-sci.c int i, j, w, ret = 0; j 1900 drivers/tty/serial/sh-sci.c for (i = j = 0; i < SCIx_NR_IRQS; i++, j++) { j 1926 drivers/tty/serial/sh-sci.c port->irqstr[j] = kasprintf(GFP_KERNEL, "%s:%s", j 1928 drivers/tty/serial/sh-sci.c if (!port->irqstr[j]) { j 1934 drivers/tty/serial/sh-sci.c port->irqstr[j], port); j 1948 drivers/tty/serial/sh-sci.c while (--j >= 0) j 1949 drivers/tty/serial/sh-sci.c kfree(port->irqstr[j]); j 1956 drivers/tty/serial/sh-sci.c int i, j; j 1973 drivers/tty/serial/sh-sci.c for (j = 0; j < i; j++) j 1974 drivers/tty/serial/sh-sci.c if (port->irqs[j] == irq) j 1975 drivers/tty/serial/sh-sci.c j = i + 1; j 1976 drivers/tty/serial/sh-sci.c if (j > i) j 197 drivers/tty/serial/zs.c int i, j; j 205 drivers/tty/serial/zs.c for (j = 0; j < 16; j++) j 206 drivers/tty/serial/zs.c printk("W%-2d = 0x%02x\t", j, zport->regs[j]); j 208 drivers/tty/serial/zs.c for (j = 0; j < 16; j++) j 209 drivers/tty/serial/zs.c printk("R%-2d = 0x%02x\t", j, read_zsreg(zport, j)); j 566 drivers/tty/sysrq.c int j; j 568 drivers/tty/sysrq.c for (j = 0; sysrq_key_table[i] != j 569 drivers/tty/sysrq.c sysrq_key_table[j]; j++) j 571 drivers/tty/sysrq.c if (j != i) j 201 drivers/tty/vt/consolemap.c int j, glyph; j 214 drivers/tty/vt/consolemap.c for (j = 0; j < E_TABSZ; j++) { j 215 drivers/tty/vt/consolemap.c glyph = conv_uni_to_pc(conp, t[j]); j 218 drivers/tty/vt/consolemap.c q[glyph] = j; j 226 drivers/tty/vt/consolemap.c int i, j, k, glyph; j 244 drivers/tty/vt/consolemap.c for (j = 0; j < 32; j++) { j 245 drivers/tty/vt/consolemap.c p2 = p1[j]; j 252 drivers/tty/vt/consolemap.c q[glyph] = (i << 11) + (j << 6) + k; j 399 drivers/tty/vt/consolemap.c int i, j; j 405 drivers/tty/vt/consolemap.c for (j = 0; j < 32; j++) j 406 drivers/tty/vt/consolemap.c kfree(p1[j]); j 436 drivers/tty/vt/consolemap.c int i, j, k; j 445 drivers/tty/vt/consolemap.c for (j = 0; j < 32; j++) { j 447 drivers/tty/vt/consolemap.c p1 = p->uni_pgdir[j]; q1 = q->uni_pgdir[j]; j 463 drivers/tty/vt/consolemap.c if (j == 32) { j 561 drivers/tty/vt/consolemap.c int j, k; j 586 drivers/tty/vt/consolemap.c for (j = 0; j < 32; j++) { j 587 drivers/tty/vt/consolemap.c p2 = p1[j]; j 661 drivers/tty/vt/consolemap.c int i, j, err = 0, err1; j 689 drivers/tty/vt/consolemap.c for (j = dfont_unicount[i]; j; j--) { j 740 drivers/tty/vt/consolemap.c int i, j, k, ret = 0; j 758 drivers/tty/vt/consolemap.c for (j = 0; j < 32; j++) { j 766 drivers/tty/vt/consolemap.c (i<<11)+(j<<6)+k; j 1953 drivers/tty/vt/keyboard.c int j; j 1964 drivers/tty/vt/keyboard.c for (j = 1; j < NR_KEYS; j++) j 1965 drivers/tty/vt/keyboard.c key_map[j] = U(K_HOLE); j 2003 drivers/tty/vt/keyboard.c int i, j, k; j 2057 drivers/tty/vt/keyboard.c for (j = i+1; j < MAX_NR_FUNC && !func_table[j]; j++) j 2059 drivers/tty/vt/keyboard.c if (j < MAX_NR_FUNC) j 2060 drivers/tty/vt/keyboard.c fj = func_table[j]; j 2067 drivers/tty/vt/keyboard.c if (j < MAX_NR_FUNC) { j 2070 drivers/tty/vt/keyboard.c for (k = j; k < MAX_NR_FUNC; k++) j 2098 drivers/tty/vt/keyboard.c for (k = 0; k < j; k++) j 2105 drivers/tty/vt/keyboard.c for (k = j; k < MAX_NR_FUNC; k++) j 444 drivers/tty/vt/vt.c unsigned int i, j, k, sz, d, clear; j 455 drivers/tty/vt/vt.c j = i; j 457 drivers/tty/vt/vt.c k = j + d; j 462 drivers/tty/vt/vt.c uniscr->lines[t + j] = uniscr->lines[t + k]; j 463 drivers/tty/vt/vt.c j = k; j 465 drivers/tty/vt/vt.c uniscr->lines[t + j] = tmp; j 2255 drivers/tty/vt/vt.c int i = vc->vc_par[0] * 3, j = 1; j 2256 drivers/tty/vt/vt.c vc->vc_palette[i] = 16 * vc->vc_par[j++]; j 2257 drivers/tty/vt/vt.c vc->vc_palette[i++] += vc->vc_par[j++]; j 2258 drivers/tty/vt/vt.c vc->vc_palette[i] = 16 * vc->vc_par[j++]; j 2259 drivers/tty/vt/vt.c vc->vc_palette[i++] += vc->vc_par[j++]; j 2260 drivers/tty/vt/vt.c vc->vc_palette[i] = 16 * vc->vc_par[j++]; j 2261 drivers/tty/vt/vt.c vc->vc_palette[i] += vc->vc_par[j]; j 3328 drivers/tty/vt/vt.c int j, k ; j 3338 drivers/tty/vt/vt.c for (j=k=0; j<16; j++) { j 3339 drivers/tty/vt/vt.c vc->vc_palette[k++] = default_red[j] ; j 3340 drivers/tty/vt/vt.c vc->vc_palette[k++] = default_grn[j] ; j 3341 drivers/tty/vt/vt.c vc->vc_palette[k++] = default_blu[j] ; j 3510 drivers/tty/vt/vt.c int i, j = -1, k = -1, retval = -ENODEV; j 3559 drivers/tty/vt/vt.c j = i; j 3584 drivers/tty/vt/vt.c if (j >= 0) { j 3585 drivers/tty/vt/vt.c struct vc_data *vc = vc_cons[j].d; j 4394 drivers/tty/vt/vt.c int i, j, k; j 4409 drivers/tty/vt/vt.c for (j = k = 0; j < 16; j++) { j 4410 drivers/tty/vt/vt.c vc_cons[i].d->vc_palette[k++] = default_red[j]; j 4411 drivers/tty/vt/vt.c vc_cons[i].d->vc_palette[k++] = default_grn[j]; j 4412 drivers/tty/vt/vt.c vc_cons[i].d->vc_palette[k++] = default_blu[j]; j 4442 drivers/tty/vt/vt.c int j, k; j 4443 drivers/tty/vt/vt.c for (j=k=0; j<16; j++) { j 4444 drivers/tty/vt/vt.c vc->vc_palette[k++] = default_red[j]; j 4445 drivers/tty/vt/vt.c vc->vc_palette[k++] = default_grn[j]; j 4446 drivers/tty/vt/vt.c vc->vc_palette[k++] = default_blu[j]; j 727 drivers/usb/atm/ueagle-atm.c unsigned int i, j, p, pp; j 752 drivers/usb/atm/ueagle-atm.c for (j = 0; j < blockcount; j++) { j 1142 drivers/usb/atm/usbatm.c int j; j 1146 drivers/usb/atm/usbatm.c for (j = 0; j < iso_packets; j++) { j 1147 drivers/usb/atm/usbatm.c urb->iso_frame_desc[j].offset = channel->packet_size * j; j 1148 drivers/usb/atm/usbatm.c urb->iso_frame_desc[j].length = channel->packet_size; j 1313 drivers/usb/atm/usbatm.c int i = 0, j = 0; j 1318 drivers/usb/atm/usbatm.c for (j = 0; (j < 16) && (i < len); j++, i++) j 42 drivers/usb/atm/xusbatm.c int i, j; j 46 drivers/usb/atm/xusbatm.c for (j = 0; j < alt->desc.bNumEndpoints; j++) j 47 drivers/usb/atm/xusbatm.c if (alt->endpoint[j].desc.bEndpointAddress == ep) j 125 drivers/usb/chipidea/debug.c unsigned i, j; j 139 drivers/usb/chipidea/debug.c for (j = 0; j < (sizeof(struct ci_hw_qh)/sizeof(u32)); j++) j 140 drivers/usb/chipidea/debug.c seq_printf(s, " %04X: %08X %08X\n", j, j 141 drivers/usb/chipidea/debug.c *((u32 *)hweprx->qh.ptr + j), j 142 drivers/usb/chipidea/debug.c *((u32 *)hweptx->qh.ptr + j)); j 159 drivers/usb/chipidea/debug.c unsigned i, j, qsize = sizeof(struct ci_hw_td)/sizeof(u32); j 176 drivers/usb/chipidea/debug.c for (j = 0; j < qsize; j++) j 177 drivers/usb/chipidea/debug.c seq_printf(s, " %04X: %08X\n", j, j 178 drivers/usb/chipidea/debug.c *((u32 *)node->ptr + j)); j 1678 drivers/usb/chipidea/udc.c int retval = 0, i, j; j 1681 drivers/usb/chipidea/udc.c for (j = RX; j <= TX; j++) { j 1682 drivers/usb/chipidea/udc.c int k = i + j * ci->hw_ep_max/2; j 1686 drivers/usb/chipidea/udc.c (j == TX) ? "in" : "out"); j 1703 drivers/usb/chipidea/udc.c if (j == TX) j 1726 drivers/usb/chipidea/udc.c if (j == RX) j 230 drivers/usb/core/config.c int i, j, k; j 235 drivers/usb/core/config.c for (j = 0; j < intfc->num_altsetting; ++j) { j 236 drivers/usb/core/config.c alt = &intfc->altsetting[j]; j 263 drivers/usb/core/config.c int n, i, j, retval; j 322 drivers/usb/core/config.c j = 255; j 338 drivers/usb/core/config.c j = 16; j 348 drivers/usb/core/config.c n = clamp(fls(d->bInterval) + 3, i, j); j 349 drivers/usb/core/config.c i = j = n; j 357 drivers/usb/core/config.c n = clamp(fls(d->bInterval), i, j); j 358 drivers/usb/core/config.c i = j = n; j 372 drivers/usb/core/config.c j = 16; j 382 drivers/usb/core/config.c if (d->bInterval < i || d->bInterval > j) { j 442 drivers/usb/core/config.c j = maxpacket_maxes[usb_endpoint_type(&endpoint->desc)]; j 444 drivers/usb/core/config.c if (maxp > j) { j 446 drivers/usb/core/config.c cfgno, inum, asnum, d->bEndpointAddress, maxp, j); j 447 drivers/usb/core/config.c maxp = j; j 491 drivers/usb/core/config.c int j; j 493 drivers/usb/core/config.c for (j = 0; j < intfc->num_altsetting; j++) { j 494 drivers/usb/core/config.c struct usb_host_interface *alt = &intfc->altsetting[j]; j 616 drivers/usb/core/config.c int i, j, n; j 756 drivers/usb/core/config.c for (j = 0; j < nintf; ++j) { j 757 drivers/usb/core/config.c if (inums[j] == i) j 760 drivers/usb/core/config.c if (j >= nintf) j 767 drivers/usb/core/config.c j = nalts[i]; j 768 drivers/usb/core/config.c if (j > USB_MAXALTSETTING) { j 772 drivers/usb/core/config.c cfgno, inums[i], j, USB_MAXALTSETTING); j 773 drivers/usb/core/config.c nalts[i] = j = USB_MAXALTSETTING; j 776 drivers/usb/core/config.c intfc = kzalloc(struct_size(intfc, altsetting, j), GFP_KERNEL); j 811 drivers/usb/core/config.c for (j = 0; j < intfc->num_altsetting; ++j) { j 814 drivers/usb/core/config.c bAlternateSetting == j) j 819 drivers/usb/core/config.c "altsetting %d\n", cfgno, inums[i], j); j 316 drivers/usb/core/devices.c int i, j; j 336 drivers/usb/core/devices.c for (j = 0; j < intfc->num_altsetting; j++) { j 340 drivers/usb/core/devices.c start, end, intfc, interface, j); j 833 drivers/usb/core/devio.c unsigned int i, j, e; j 844 drivers/usb/core/devio.c for (j = 0; j < intf->num_altsetting; j++) { j 845 drivers/usb/core/devio.c alts = &intf->altsetting[j]; j 399 drivers/usb/core/driver.c int i, j, error, r; j 426 drivers/usb/core/driver.c for (i = 0, j = 0; i < intf->cur_altsetting->desc.bNumEndpoints; i++) { j 430 drivers/usb/core/driver.c if (j == 0) { j 436 drivers/usb/core/driver.c eps[j++] = ep; j 438 drivers/usb/core/driver.c if (j) { j 439 drivers/usb/core/driver.c usb_free_streams(intf, eps, j, GFP_KERNEL); j 1835 drivers/usb/core/hcd.c int num_intfs, i, j; j 1894 drivers/usb/core/hcd.c for (j = 0; j < alt->desc.bNumEndpoints; j++) { j 1895 drivers/usb/core/hcd.c ret = hcd->driver->add_endpoint(hcd, udev, &alt->endpoint[j]); j 5709 drivers/usb/core/hub.c int i, j, ret = 0; j 5824 drivers/usb/core/hub.c for (j = 0; j < intf->cur_altsetting->desc.bNumEndpoints; j++) j 5825 drivers/usb/core/hub.c intf->cur_altsetting->endpoint[j].streams = 0; j 430 drivers/usb/core/message.c int j; j 432 drivers/usb/core/message.c for_each_sg(sg, sg2, nents, j) j 535 drivers/usb/core/quirks.c unsigned int j; j 537 drivers/usb/core/quirks.c for (j = 0; j < cfg->desc.bNumInterfaces; ++j) { j 541 drivers/usb/core/quirks.c cache = cfg->intf_cache[j]; j 234 drivers/usb/dwc2/hcd_ddma.c u16 i, j, inc; j 259 drivers/usb/dwc2/hcd_ddma.c j = i; j 262 drivers/usb/dwc2/hcd_ddma.c hsotg->frame_list[j] |= 1 << chan->hc_num; j 264 drivers/usb/dwc2/hcd_ddma.c hsotg->frame_list[j] &= ~(1 << chan->hc_num); j 265 drivers/usb/dwc2/hcd_ddma.c j = (j + inc) & (FRLISTEN_64_SIZE - 1); j 266 drivers/usb/dwc2/hcd_ddma.c } while (j != i); j 282 drivers/usb/dwc2/hcd_ddma.c j = 1; j 286 drivers/usb/dwc2/hcd_ddma.c chan->schinfo |= j; j 287 drivers/usb/dwc2/hcd_ddma.c j = j << qh->host_interval; j 1433 drivers/usb/gadget/composite.c int j; j 1436 drivers/usb/gadget/composite.c for (j = 0; j < f->os_desc_n; ++j) { j 1439 drivers/usb/gadget/composite.c if (i != f->os_desc_table[j].if_id) j 1441 drivers/usb/gadget/composite.c d = f->os_desc_table[j].os_desc; j 1458 drivers/usb/gadget/composite.c int j; j 1461 drivers/usb/gadget/composite.c for (j = 0; j < f->os_desc_n; ++j) { j 1464 drivers/usb/gadget/composite.c if (i != f->os_desc_table[j].if_id) j 1466 drivers/usb/gadget/composite.c d = f->os_desc_table[j].os_desc; j 1489 drivers/usb/gadget/composite.c int j; j 1492 drivers/usb/gadget/composite.c for (j = 0; j < f->os_desc_n; ++j) { j 1495 drivers/usb/gadget/composite.c if (interface != f->os_desc_table[j].if_id) j 1497 drivers/usb/gadget/composite.c d = f->os_desc_table[j].os_desc; j 1508 drivers/usb/gadget/composite.c int j, res; j 1512 drivers/usb/gadget/composite.c for (j = 0; j < f->os_desc_n; ++j) { j 1513 drivers/usb/gadget/composite.c if (interface != f->os_desc_table[j].if_id) j 1515 drivers/usb/gadget/composite.c d = f->os_desc_table[j].os_desc; j 1527 drivers/usb/gadget/composite.c int j, count, n, ret; j 1532 drivers/usb/gadget/composite.c for (j = 0; j < f->os_desc_n; ++j) { j 1533 drivers/usb/gadget/composite.c if (interface != f->os_desc_table[j].if_id) j 1535 drivers/usb/gadget/composite.c d = f->os_desc_table[j].os_desc; j 1990 drivers/usb/gadget/function/uvc_configfs.c int ret, i, j; j 1995 drivers/usb/gadget/function/uvc_configfs.c i = j = 0; j 2006 drivers/usb/gadget/function/uvc_configfs.c ret = fun(frm, priv2, priv3, j++, UVCG_FRAME); j 164 drivers/usb/gadget/udc/fsl_udc_core.c int j; j 178 drivers/usb/gadget/udc/fsl_udc_core.c for (j = 0; j < req->dtd_count; j++) { j 180 drivers/usb/gadget/udc/fsl_udc_core.c if (j != req->dtd_count - 1) { j 1598 drivers/usb/gadget/udc/fsl_udc_core.c int td_complete, actual, remaining_length, j, tmp; j 1608 drivers/usb/gadget/udc/fsl_udc_core.c for (j = 0; j < curr_req->dtd_count; j++) { j 1658 drivers/usb/gadget/udc/fsl_udc_core.c if (j != curr_req->dtd_count - 1) j 214 drivers/usb/gadget/udc/mv_udc_core.c int j; j 228 drivers/usb/gadget/udc/mv_udc_core.c for (j = 0; j < req->dtd_count; j++) { j 230 drivers/usb/gadget/udc/mv_udc_core.c if (j != req->dtd_count - 1) j 654 drivers/usb/gadget/udc/snps_udc_core.c int i, j; j 676 drivers/usb/gadget/udc/snps_udc_core.c for (j = 0; j < bytes % UDC_DWORD_BYTES; j++) { j 677 drivers/usb/gadget/udc/snps_udc_core.c writeb((u8)(*(buf + i) >> (j << UDC_BITS_PER_BYTE_SHIFT)), j 700 drivers/usb/gadget/udc/snps_udc_core.c int i, j; j 712 drivers/usb/gadget/udc/snps_udc_core.c for (j = 0; j < bytes % UDC_DWORD_BYTES; j++) { j 713 drivers/usb/gadget/udc/snps_udc_core.c *(buf + (i<<2) + j) = (u8)(tmp & UDC_BYTE_MASK); j 210 drivers/usb/host/ehci-sched.c unsigned i, j, m; j 238 drivers/usb/host/ehci-sched.c for ((j = 2, m = 1 << (j+8)); j < 8; (++j, m <<= 1)) { j 240 drivers/usb/host/ehci-sched.c ehci->bandwidth[i+j] += c_usecs; j 1320 drivers/usb/host/ehci-sched.c unsigned i, j; j 1351 drivers/usb/host/ehci-sched.c for ((j = stream->ps.phase_uf, m = 1 << j); j < 8; j 1352 drivers/usb/host/ehci-sched.c (++j, m <<= 1)) { j 1354 drivers/usb/host/ehci-sched.c ehci->bandwidth[i+j] += usecs; j 1356 drivers/usb/host/ehci-sched.c ehci->bandwidth[i+j] += c_usecs; j 574 drivers/usb/host/fhci-hcd.c int j; j 670 drivers/usb/host/fhci-hcd.c for (j = 0; j < NUM_PINS; j++) { j 671 drivers/usb/host/fhci-hcd.c fhci->pins[j] = qe_pin_request(node, j); j 672 drivers/usb/host/fhci-hcd.c if (IS_ERR(fhci->pins[j])) { j 673 drivers/usb/host/fhci-hcd.c ret = PTR_ERR(fhci->pins[j]); j 674 drivers/usb/host/fhci-hcd.c dev_err(dev, "can't get pin %d: %d\n", j, ret); j 766 drivers/usb/host/fhci-hcd.c while (--j >= 0) j 767 drivers/usb/host/fhci-hcd.c qe_pin_free(fhci->pins[j]); j 786 drivers/usb/host/fhci-hcd.c int j; j 797 drivers/usb/host/fhci-hcd.c for (j = 0; j < NUM_PINS; j++) j 798 drivers/usb/host/fhci-hcd.c qe_pin_free(fhci->pins[j]); j 278 drivers/usb/host/imx21-dbg.c int i, j; j 311 drivers/usb/host/imx21-dbg.c for (j = 0; j < 4; j++) { j 312 drivers/usb/host/imx21-dbg.c dword = etd_readl(imx21, i, j); j 313 drivers/usb/host/imx21-dbg.c switch (j) { j 327 drivers/usb/host/imx21-dbg.c j, j 328 drivers/usb/host/imx21-dbg.c etd->submitted_dwords[j], j 701 drivers/usb/host/imx21-hcd.c int i, j; j 719 drivers/usb/host/imx21-hcd.c for (j = 0; j < i; j++) { j 720 drivers/usb/host/imx21-hcd.c free_etd(imx21, ep_priv->etd[j]); j 721 drivers/usb/host/imx21-hcd.c ep_priv->etd[j] = -1; j 1687 drivers/usb/host/imx21-hcd.c int i, j; j 1717 drivers/usb/host/imx21-hcd.c for (j = 0; j < 4; j++) j 1718 drivers/usb/host/imx21-hcd.c etd_writel(imx21, i, j, 0); j 660 drivers/usb/host/isp116x-hcd.c int j; j 662 drivers/usb/host/isp116x-hcd.c for (j = i; j < PERIODIC_SIZE; j += period) { j 663 drivers/usb/host/isp116x-hcd.c if ((isp116x->load[j] + load) j 667 drivers/usb/host/isp116x-hcd.c if (j < PERIODIC_SIZE) j 1193 drivers/usb/host/isp1362-hcd.c int j; j 1195 drivers/usb/host/isp1362-hcd.c for (j = i; j < PERIODIC_SIZE; j += interval) { j 1196 drivers/usb/host/isp1362-hcd.c if ((isp1362_hcd->load[j] + load) > MAX_PERIODIC_LOAD) { j 1198 drivers/usb/host/isp1362-hcd.c load, j, isp1362_hcd->load[j], MAX_PERIODIC_LOAD); j 1202 drivers/usb/host/isp1362-hcd.c if (j < PERIODIC_SIZE) j 2404 drivers/usb/host/isp1362-hcd.c int j; j 2406 drivers/usb/host/isp1362-hcd.c for (j = 0; j < 8; j++) { j 2408 drivers/usb/host/isp1362-hcd.c isp1362_write_buffer(isp1362_hcd, (u8 *)ref + offset, 0, j); j 2409 drivers/usb/host/isp1362-hcd.c isp1362_read_buffer(isp1362_hcd, (u8 *)tst + offset, 0, j); j 2412 drivers/usb/host/isp1362-hcd.c if (memcmp(ref, tst, j)) { j 2415 drivers/usb/host/isp1362-hcd.c __func__, j, offset); j 2416 drivers/usb/host/isp1362-hcd.c dump_data((u8 *)ref + offset, j); j 2417 drivers/usb/host/isp1362-hcd.c dump_data((u8 *)tst + offset, j); j 122 drivers/usb/host/ohci-q.c int j; j 125 drivers/usb/host/ohci-q.c for (j = i; j < NUM_INTS; j += interval) { j 126 drivers/usb/host/ohci-q.c if ((ohci->load [j] + load) > 900) j 129 drivers/usb/host/ohci-q.c if (j < NUM_INTS) j 912 drivers/usb/host/oxu210hp-hcd.c int i, j; j 934 drivers/usb/host/oxu210hp-hcd.c for (j = 0; j < a_blocks; j++) j 935 drivers/usb/host/oxu210hp-hcd.c if (oxu->db_used[i + j]) j 938 drivers/usb/host/oxu210hp-hcd.c if (j != a_blocks) j 2058 drivers/usb/host/r8a66597-hcd.c int i, j, addr; j 2067 drivers/usb/host/r8a66597-hcd.c for (j = 0; j < 32; j++) { j 2068 drivers/usb/host/r8a66597-hcd.c if (!(diff & (1 << j))) j 2071 drivers/usb/host/r8a66597-hcd.c addr = i * 32 + j; j 2072 drivers/usb/host/r8a66597-hcd.c if (map[i] & (1 << j)) j 773 drivers/usb/host/sl811-hcd.c int j; j 775 drivers/usb/host/sl811-hcd.c for (j = i; j < PERIODIC_SIZE; j += period) { j 776 drivers/usb/host/sl811-hcd.c if ((sl811->load[j] + load) j 780 drivers/usb/host/sl811-hcd.c if (j < PERIODIC_SIZE) j 377 drivers/usb/host/uhci-debug.c int i, j; j 419 drivers/usb/host/uhci-debug.c j = 0; j 428 drivers/usb/host/uhci-debug.c j = 1; j 458 drivers/usb/host/uhci-debug.c if (!j) { j 462 drivers/usb/host/uhci-debug.c j = 1; j 472 drivers/usb/host/uhci-debug.c nframes -= j; j 839 drivers/usb/host/xhci-mem.c int i, j; j 861 drivers/usb/host/xhci-mem.c for (j = 0; j < XHCI_MAX_INTERVAL; j++) j 862 drivers/usb/host/xhci-mem.c INIT_LIST_HEAD(&bw_table->interval_bw[j].endpoints); j 1843 drivers/usb/host/xhci-mem.c int i, j, num_ports; j 1866 drivers/usb/host/xhci-mem.c for (j = 0; j < XHCI_MAX_INTERVAL; j++) { j 1867 drivers/usb/host/xhci-mem.c struct list_head *ep = &bwt->interval_bw[j].endpoints; j 2272 drivers/usb/host/xhci-mem.c int i, j; j 2298 drivers/usb/host/xhci-mem.c for (j = 0; j < XHCI_MAX_INTERVAL; j++) j 2299 drivers/usb/host/xhci-mem.c INIT_LIST_HEAD(&bw_table->interval_bw[j].endpoints); j 340 drivers/usb/host/xhci-mtk-sch.c int j; j 346 drivers/usb/host/xhci-mtk-sch.c for (j = 0; j < sch_ep->num_budget_microframes; j++) { j 347 drivers/usb/host/xhci-mtk-sch.c bw = sch_bw->bus_bw[base + j] + j 348 drivers/usb/host/xhci-mtk-sch.c sch_ep->bw_budget_table[j]; j 362 drivers/usb/host/xhci-mtk-sch.c int j; j 367 drivers/usb/host/xhci-mtk-sch.c for (j = 0; j < sch_ep->num_budget_microframes; j++) { j 369 drivers/usb/host/xhci-mtk-sch.c sch_bw->bus_bw[base + j] += j 370 drivers/usb/host/xhci-mtk-sch.c sch_ep->bw_budget_table[j]; j 372 drivers/usb/host/xhci-mtk-sch.c sch_bw->bus_bw[base + j] -= j 373 drivers/usb/host/xhci-mtk-sch.c sch_ep->bw_budget_table[j]; j 456 drivers/usb/host/xhci-mtk-sch.c int i, j; j 461 drivers/usb/host/xhci-mtk-sch.c for (j = 0; j < sch_ep->num_budget_microframes; j++) j 462 drivers/usb/host/xhci-mtk-sch.c set_bit(base + j, tt->split_bit_map); j 130 drivers/usb/host/xhci-rcar.c int retval, index, j, time; j 160 drivers/usb/host/xhci-rcar.c for (data = 0, j = 3; j >= 0; j--) { j 161 drivers/usb/host/xhci-rcar.c if ((j + index) < fw->size) j 162 drivers/usb/host/xhci-rcar.c data |= fw->data[index + j] << (8 * j); j 927 drivers/usb/host/xhci-ring.c int i, j; j 941 drivers/usb/host/xhci-ring.c for (j = 0; j < 31; j++) j 942 drivers/usb/host/xhci-ring.c xhci_kill_endpoint_urbs(xhci, i, j); j 3741 drivers/usb/host/xhci-ring.c int i, j; j 3814 drivers/usb/host/xhci-ring.c for (j = 0; j < trbs_per_td; j++) { j 3827 drivers/usb/host/xhci-ring.c if (j < trbs_per_td - 1) { j 967 drivers/usb/host/xhci-tegra.c unsigned int i, j, k; j 1145 drivers/usb/host/xhci-tegra.c for (j = 0; j < tegra->soc->phy_types[i].num; j++) { j 1147 drivers/usb/host/xhci-tegra.c tegra->soc->phy_types[i].name, j); j 4769 drivers/usb/host/xhci.c int j; j 4771 drivers/usb/host/xhci.c for (j = 0; j < alt->desc.bNumEndpoints; j++) { j 4773 drivers/usb/host/xhci.c &alt->endpoint[j].desc, state, timeout)) j 424 drivers/usb/image/mdc800.c int i,j; j 462 drivers/usb/image/mdc800.c for (j=0; j<4; j++) j 464 drivers/usb/image/mdc800.c if (mdc800_endpoint_equals (&intf_desc->endpoint [j].desc,&mdc800_ed [i])) j 466 drivers/usb/image/mdc800.c mdc800->endpoint[i]=intf_desc->endpoint [j].desc.bEndpointAddress ; j 469 drivers/usb/image/mdc800.c irq_interval=intf_desc->endpoint [j].desc.bInterval; j 1312 drivers/usb/misc/sisusbvga/sisusb.c int i, j; j 1320 drivers/usb/misc/sisusbvga/sisusb.c for (j = 0; j < i; j++) { j 1323 drivers/usb/misc/sisusbvga/sisusb.c j, destbuffer[j]); j 1361 drivers/usb/misc/sisusbvga/sisusb.c ssize_t j; j 1385 drivers/usb/misc/sisusbvga/sisusb.c ret = sisusb_write_mem_bulk(sisusb, address, NULL, length, NULL, i, &j); j 1557 drivers/usb/misc/sisusbvga/sisusb.c u8 tmp1, tmp2, i, j; j 1564 drivers/usb/misc/sisusbvga/sisusb.c for (i = 0, j = 16; i < 2; i++, j += 16) { j 1570 drivers/usb/misc/sisusbvga/sisusb.c ret |= WRITEB(ramptr + 16 + j, j); j 1571 drivers/usb/misc/sisusbvga/sisusb.c ret |= READB(ramptr + 16 + j, &tmp1); j 1572 drivers/usb/misc/sisusbvga/sisusb.c if (tmp1 == j) { j 1573 drivers/usb/misc/sisusbvga/sisusb.c ret |= WRITEB(ramptr + j, j); j 1617 drivers/usb/misc/sisusbvga/sisusb.c u32 j, tmp; j 1621 drivers/usb/misc/sisusbvga/sisusb.c for (i = 0, j = 0; i < testn; i++) { j 1622 drivers/usb/misc/sisusbvga/sisusb.c ret |= WRITEL(sisusb->vrambase + j, j); j 1623 drivers/usb/misc/sisusbvga/sisusb.c j += inc; j 1626 drivers/usb/misc/sisusbvga/sisusb.c for (i = 0, j = 0; i < testn; i++) { j 1627 drivers/usb/misc/sisusbvga/sisusb.c ret |= READL(sisusb->vrambase + j, &tmp); j 1628 drivers/usb/misc/sisusbvga/sisusb.c if (tmp != j) j 1631 drivers/usb/misc/sisusbvga/sisusb.c j += inc; j 1671 drivers/usb/misc/sisusbvga/sisusb.c int ret = 0, i2ret = 0, i, j; j 1692 drivers/usb/misc/sisusbvga/sisusb.c for (j = 2; j > 0; j--) { j 1693 drivers/usb/misc/sisusbvga/sisusb.c ret |= sisusb_set_rank(sisusb, &i2ret, i, j, chab, j 1698 drivers/usb/misc/sisusbvga/sisusb.c ret |= sisusb_check_ranks(sisusb, &i2ret, j, i, bw, j 1753 drivers/usb/misc/sisusbvga/sisusb.c int i, j, modex, bpp, du; j 1815 drivers/usb/misc/sisusbvga/sisusb.c for (j = 0x00, i = 0; i <= 7; i++, j++) j 1816 drivers/usb/misc/sisusbvga/sisusb.c SETIREG(SISCR, j, crtcdata[i]); j 1818 drivers/usb/misc/sisusbvga/sisusb.c for (j = 0x10; i <= 10; i++, j++) j 1819 drivers/usb/misc/sisusbvga/sisusb.c SETIREG(SISCR, j, crtcdata[i]); j 1821 drivers/usb/misc/sisusbvga/sisusb.c for (j = 0x15; i <= 12; i++, j++) j 1822 drivers/usb/misc/sisusbvga/sisusb.c SETIREG(SISCR, j, crtcdata[i]); j 1824 drivers/usb/misc/sisusbvga/sisusb.c for (j = 0x0A; i <= 15; i++, j++) j 1825 drivers/usb/misc/sisusbvga/sisusb.c SETIREG(SISSR, j, crtcdata[i]); j 1880 drivers/usb/misc/sisusbvga/sisusb.c int ret = 0, i, j, bw, chab, iret, retry = 3; j 1969 drivers/usb/misc/sisusbvga/sisusb.c for (i = 0x15, j = 0; i <= 0x1b; i++, j++) { j 1971 drivers/usb/misc/sisusbvga/sisusb.c ramtypetable1[(j*4) + ramtype]); j 1973 drivers/usb/misc/sisusbvga/sisusb.c for (i = 0x40, j = 0; i <= 0x44; i++, j++) { j 1975 drivers/usb/misc/sisusbvga/sisusb.c ramtypetable2[(j*4) + ramtype]); j 557 drivers/usb/misc/sisusbvga/sisusb_con.c int i, j; j 575 drivers/usb/misc/sisusbvga/sisusb_con.c for (i = j = 0; i < 16; i++) { j 578 drivers/usb/misc/sisusbvga/sisusb_con.c if (sisusb_setreg(sisusb, SISCOLDATA, c->vc_palette[j++] >> 2)) j 580 drivers/usb/misc/sisusbvga/sisusb_con.c if (sisusb_setreg(sisusb, SISCOLDATA, c->vc_palette[j++] >> 2)) j 582 drivers/usb/misc/sisusbvga/sisusb_con.c if (sisusb_setreg(sisusb, SISCOLDATA, c->vc_palette[j++] >> 2)) j 513 drivers/usb/misc/sisusbvga/sisusb_init.c unsigned short temp, i, j, modeflag; j 521 drivers/usb/misc/sisusbvga/sisusb_init.c for (i = 0, j = 0; i <= 7; i++, j++) { j 522 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3d4, j, j 525 drivers/usb/misc/sisusbvga/sisusb_init.c for (j = 0x10; i <= 10; i++, j++) { j 526 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3d4, j, j 529 drivers/usb/misc/sisusbvga/sisusb_init.c for (j = 0x15; i <= 12; i++, j++) { j 530 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3d4, j, j 533 drivers/usb/misc/sisusbvga/sisusb_init.c for (j = 0x0A; i <= 15; i++, j++) { j 534 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3c4, j, j 766 drivers/usb/misc/sisusbvga/sisusb_init.c unsigned short data, data2, time, i, j, k, m, n, o; j 778 drivers/usb/misc/sisusbvga/sisusb_init.c j = time = 64; j 786 drivers/usb/misc/sisusbvga/sisusb_init.c j = 16; j 798 drivers/usb/misc/sisusbvga/sisusb_init.c for (i = 0; i < j; i++) { j 555 drivers/usb/misc/usbtest.c unsigned j; j 571 drivers/usb/misc/usbtest.c for (j = 0; j < size; j++) j 572 drivers/usb/misc/usbtest.c *buf++ = (u8) (((j + n_size) % maxpacket) % 63); j 1823 drivers/usb/misc/usbtest.c unsigned i, j, len; j 1846 drivers/usb/misc/usbtest.c for (j = 0; j < len; j++) j 1847 drivers/usb/misc/usbtest.c buf[j] = (u8)(i + j); j 1876 drivers/usb/misc/usbtest.c for (j = 0; j < len; j++) { j 1877 drivers/usb/misc/usbtest.c if (buf[j] != (u8)(i + j)) { j 1879 drivers/usb/misc/usbtest.c j, buf[j], (u8)(i + j)); j 112 drivers/usb/musb/cppi_dma.c int j; j 124 drivers/usb/musb/cppi_dma.c for (j = 0; j < NUM_TXCHAN_BD + 1; j++) { j 1005 drivers/usb/serial/mos7720.c int j; j 1017 drivers/usb/serial/mos7720.c for (j = 0; j < NUM_URBS; ++j) { j 1019 drivers/usb/serial/mos7720.c mos7720_port->write_urb_pool[j] = urb; j 1026 drivers/usb/serial/mos7720.c usb_free_urb(mos7720_port->write_urb_pool[j]); j 1027 drivers/usb/serial/mos7720.c mos7720_port->write_urb_pool[j] = NULL; j 1130 drivers/usb/serial/mos7720.c int j; j 1138 drivers/usb/serial/mos7720.c for (j = 0; j < NUM_URBS; ++j) j 1139 drivers/usb/serial/mos7720.c usb_kill_urb(mos7720_port->write_urb_pool[j]); j 1142 drivers/usb/serial/mos7720.c for (j = 0; j < NUM_URBS; ++j) { j 1143 drivers/usb/serial/mos7720.c if (mos7720_port->write_urb_pool[j]) { j 1144 drivers/usb/serial/mos7720.c kfree(mos7720_port->write_urb_pool[j]->transfer_buffer); j 1145 drivers/usb/serial/mos7720.c usb_free_urb(mos7720_port->write_urb_pool[j]); j 845 drivers/usb/serial/mos7840.c int j; j 872 drivers/usb/serial/mos7840.c for (j = 0; j < NUM_URBS; ++j) { j 874 drivers/usb/serial/mos7840.c mos7840_port->write_urb_pool[j] = urb; j 882 drivers/usb/serial/mos7840.c mos7840_port->write_urb_pool[j] = NULL; j 1100 drivers/usb/serial/mos7840.c for (j = 0; j < NUM_URBS; ++j) { j 1101 drivers/usb/serial/mos7840.c urb = mos7840_port->write_urb_pool[j]; j 1158 drivers/usb/serial/mos7840.c int j; j 1174 drivers/usb/serial/mos7840.c for (j = 0; j < NUM_URBS; ++j) j 1175 drivers/usb/serial/mos7840.c usb_kill_urb(mos7840_port->write_urb_pool[j]); j 1178 drivers/usb/serial/mos7840.c for (j = 0; j < NUM_URBS; ++j) { j 1179 drivers/usb/serial/mos7840.c if (mos7840_port->write_urb_pool[j]) { j 1180 drivers/usb/serial/mos7840.c kfree(mos7840_port->write_urb_pool[j]->transfer_buffer); j 1181 drivers/usb/serial/mos7840.c usb_free_urb(mos7840_port->write_urb_pool[j]); j 87 drivers/usb/serial/usb-serial.c unsigned int i, j; j 107 drivers/usb/serial/usb-serial.c for (j = 0; j < i; ++j) j 108 drivers/usb/serial/usb-serial.c idr_remove(&serial_minors, serial->port[j]->minor); j 573 drivers/usb/serial/usb_wwan.c int i, j; j 582 drivers/usb/serial/usb_wwan.c for (j = 0; j < N_IN_URB; j++) j 583 drivers/usb/serial/usb_wwan.c usb_kill_urb(portdata->in_urbs[j]); j 584 drivers/usb/serial/usb_wwan.c for (j = 0; j < N_OUT_URB; j++) j 585 drivers/usb/serial/usb_wwan.c usb_kill_urb(portdata->out_urbs[j]); j 647 drivers/usb/serial/usb_wwan.c int i, j; j 679 drivers/usb/serial/usb_wwan.c for (j = 0; j < N_IN_URB; j++) { j 680 drivers/usb/serial/usb_wwan.c urb = portdata->in_urbs[j]; j 220 drivers/usb/storage/alauda.c int i, j, a; j 228 drivers/usb/storage/alauda.c for (j = 0; j < 8; j++) { j 229 drivers/usb/storage/alauda.c if (i & (1<<j)) { j 230 drivers/usb/storage/alauda.c if ((j & 1) == 0) j 232 drivers/usb/storage/alauda.c if ((j & 2) == 0) j 234 drivers/usb/storage/alauda.c if ((j & 4) == 0) j 245 drivers/usb/storage/alauda.c int i, j, a; j 252 drivers/usb/storage/alauda.c for (j = 0; j < 8; j++) j 253 drivers/usb/storage/alauda.c if ((i & (1<<j)) == 0) j 254 drivers/usb/storage/alauda.c bits[j] ^= bit; j 562 drivers/usb/storage/alauda.c int i, j; j 591 drivers/usb/storage/alauda.c for (j = 0; j < 16; j++) j 592 drivers/usb/storage/alauda.c if (data[j] != 0) j 600 drivers/usb/storage/alauda.c for (j = 0; j < 16; j++) j 601 drivers/usb/storage/alauda.c if (data[j] != 0xff) j 607 drivers/usb/storage/alauda.c if (j < 6) { j 495 drivers/usb/storage/freecom.c int i, j; j 503 drivers/usb/storage/freecom.c for (j = i - 16; j < i; j++) { j 504 drivers/usb/storage/freecom.c if (buffer[j] >= 32 && buffer[j] <= 126) j 505 drivers/usb/storage/freecom.c line[offset++] = buffer[j]; j 189 drivers/usb/storage/sddr09.c int i, j, a; j 197 drivers/usb/storage/sddr09.c for (j = 0; j < 8; j++) { j 198 drivers/usb/storage/sddr09.c if (i & (1<<j)) { j 199 drivers/usb/storage/sddr09.c if ((j & 1) == 0) j 201 drivers/usb/storage/sddr09.c if ((j & 2) == 0) j 203 drivers/usb/storage/sddr09.c if ((j & 4) == 0) j 213 drivers/usb/storage/sddr09.c int i, j, a; j 220 drivers/usb/storage/sddr09.c for (j = 0; j < 8; j++) j 221 drivers/usb/storage/sddr09.c if ((i & (1<<j)) == 0) j 222 drivers/usb/storage/sddr09.c bits[j] ^= bit; j 1201 drivers/usb/storage/sddr09.c int i, j, result; j 1275 drivers/usb/storage/sddr09.c for (j = 0; j < 16; j++) j 1276 drivers/usb/storage/sddr09.c if (ptr[j] != 0) j 1285 drivers/usb/storage/sddr09.c for (j = 0; j < 16; j++) j 1286 drivers/usb/storage/sddr09.c if (ptr[j] != 0xff) j 1292 drivers/usb/storage/sddr09.c if (j < 6) { j 1374 drivers/usb/storage/sddr09.c for (j = 0; j < 1024 && i+j < numblocks; j++) { j 1375 drivers/usb/storage/sddr09.c if (info->pba_to_lba[i+j] != UNUSABLE) { j 1377 drivers/usb/storage/sddr09.c info->pba_to_lba[i+j] = SPARE; j 1475 drivers/usb/storage/sddr09.c int j; j 1476 drivers/usb/storage/sddr09.c for (j=0; j<18; j++) j 1477 drivers/usb/storage/sddr09.c printk(" %02X", data[j]); j 532 drivers/usb/storage/shuttle_usbat.c int i, j; j 590 drivers/usb/storage/shuttle_usbat.c for (j=0; j<num_registers; j++) { j 591 drivers/usb/storage/shuttle_usbat.c data[j<<1] = registers[j]; j 592 drivers/usb/storage/shuttle_usbat.c data[1+(j<<1)] = data_out[j]; j 2134 drivers/usb/typec/tcpm/tcpm.c unsigned int i, j, max_src_mv = 0, min_src_mv = 0, max_mw = 0, j 2188 drivers/usb/typec/tcpm/tcpm.c for (j = 0; j < port->nr_snk_pdo; j++) { j 2189 drivers/usb/typec/tcpm/tcpm.c pdo = port->snk_pdo[j]; j 2214 drivers/usb/typec/tcpm/tcpm.c *sink_pdo = j; j 2231 drivers/usb/typec/tcpm/tcpm.c unsigned int i, j, max_mw = 0, max_mv = 0; j 2263 drivers/usb/typec/tcpm/tcpm.c for (j = 1; j < port->nr_snk_pdo; j++) { j 2264 drivers/usb/typec/tcpm/tcpm.c pdo = port->snk_pdo[j]; j 2294 drivers/usb/typec/tcpm/tcpm.c snk_pdo = j; j 353 drivers/usb/typec/ucsi/ucsi.c int j; j 381 drivers/usb/typec/ucsi/ucsi.c for (j = 0; j < num; j++) { j 382 drivers/usb/typec/ucsi/ucsi.c if (!alt[j].svid) j 386 drivers/usb/typec/ucsi/ucsi.c desc.vdo = alt[j].mid; j 387 drivers/usb/typec/ucsi/ucsi.c desc.svid = alt[j].svid; j 357 drivers/vfio/pci/vfio_pci_intrs.c int i, j, ret = 0; j 362 drivers/vfio/pci/vfio_pci_intrs.c for (i = 0, j = start; i < count && !ret; i++, j++) { j 364 drivers/vfio/pci/vfio_pci_intrs.c ret = vfio_msi_set_vector_signal(vdev, j, fd, msix); j 368 drivers/vfio/pci/vfio_pci_intrs.c for (--j; j >= (int)start; j--) j 369 drivers/vfio/pci/vfio_pci_intrs.c vfio_msi_set_vector_signal(vdev, j, -1, msix); j 1163 drivers/vfio/vfio_iommu_spapr_tce.c int i, j, rc = 0; j 1173 drivers/vfio/vfio_iommu_spapr_tce.c for (j = 0; j < i; ++j) j 1175 drivers/vfio/vfio_iommu_spapr_tce.c table_group->tables[j]); j 547 drivers/vfio/vfio_iommu_type1.c int i, j, ret; j 614 drivers/vfio/vfio_iommu_type1.c for (j = 0; j < i; j++) { j 617 drivers/vfio/vfio_iommu_type1.c iova = user_pfn[j] << PAGE_SHIFT; j 620 drivers/vfio/vfio_iommu_type1.c phys_pfn[j] = 0; j 364 drivers/vhost/net.c int j = 0; j 371 drivers/vhost/net.c ++j; j 375 drivers/vhost/net.c while (j) { j 376 drivers/vhost/net.c add = min(UIO_MAXIOV - nvq->done_idx, j); j 380 drivers/vhost/net.c j -= add; j 286 drivers/vhost/vhost.c int j; j 288 drivers/vhost/vhost.c for (j = 0; j < VHOST_NUM_ADDRS; j++) j 289 drivers/vhost/vhost.c vq->meta_iotlb[j] = NULL; j 274 drivers/video/backlight/pm8941-wled.c int j; j 338 drivers/video/backlight/pm8941-wled.c for (j = 0; c != val; j++) { j 339 drivers/video/backlight/pm8941-wled.c c = pm8941_wled_values(u32_opts[i].cfg, j); j 348 drivers/video/backlight/pm8941-wled.c *u32_opts[i].val_ptr = j; j 266 drivers/video/backlight/pwm_bl.c unsigned int i, j, n = 0; j 335 drivers/video/backlight/pwm_bl.c for (j = 0; j < num_steps; j++) { j 872 drivers/video/console/vgacon.c int i, j; j 875 drivers/video/console/vgacon.c for (i = j = 0; i < 16; i++) { j 877 drivers/video/console/vgacon.c vga_w(vgastate.vgabase, VGA_PEL_D, vc->vc_palette[j++] >> 2); j 878 drivers/video/console/vgacon.c vga_w(vgastate.vgabase, VGA_PEL_D, vc->vc_palette[j++] >> 2); j 879 drivers/video/console/vgacon.c vga_w(vgastate.vgabase, VGA_PEL_D, vc->vc_palette[j++] >> 2); j 168 drivers/video/fbdev/arcfb.c int i,j; j 173 drivers/video/fbdev/arcfb.c for (j = 0; j < 64; j++) { j 41 drivers/video/fbdev/atafb_iplan2p2.c int w, l , i, j; j 64 drivers/video/fbdev/atafb_iplan2p2.c for (j = height; j > 0; j--) { j 90 drivers/video/fbdev/atafb_iplan2p2.c for (j = height; j > 0; j--) { j 107 drivers/video/fbdev/atafb_iplan2p2.c int i, j, w, f; j 132 drivers/video/fbdev/atafb_iplan2p2.c for (j = w; j > 0; j--) { j 149 drivers/video/fbdev/atafb_iplan2p2.c int i, j, w, f; j 174 drivers/video/fbdev/atafb_iplan2p2.c for (j = w; j > 0; j--) { j 41 drivers/video/fbdev/atafb_iplan2p4.c int w, l , i, j; j 64 drivers/video/fbdev/atafb_iplan2p4.c for (j = height; j > 0; j--) { j 90 drivers/video/fbdev/atafb_iplan2p4.c for (j = height; j > 0; j--) { j 107 drivers/video/fbdev/atafb_iplan2p4.c int i, j, w, f; j 134 drivers/video/fbdev/atafb_iplan2p4.c for (j = w; j > 0; j--) { j 156 drivers/video/fbdev/atafb_iplan2p4.c int i, j, w, f; j 183 drivers/video/fbdev/atafb_iplan2p4.c for (j = w; j > 0; j--) { j 48 drivers/video/fbdev/atafb_iplan2p8.c int w, l , i, j; j 71 drivers/video/fbdev/atafb_iplan2p8.c for (j = height; j > 0; j--) { j 97 drivers/video/fbdev/atafb_iplan2p8.c for (j = height; j > 0; j--) { j 114 drivers/video/fbdev/atafb_iplan2p8.c int i, j, w, f; j 145 drivers/video/fbdev/atafb_iplan2p8.c for (j = w; j > 0; j--) { j 177 drivers/video/fbdev/atafb_iplan2p8.c int i, j, w, f; j 208 drivers/video/fbdev/atafb_iplan2p8.c for (j = w; j > 0; j--) { j 2915 drivers/video/fbdev/aty/atyfb_base.c int i, j, ret; j 2935 drivers/video/fbdev/aty/atyfb_base.c j = i + 4; j 2937 drivers/video/fbdev/aty/atyfb_base.c par->mmap_map = kcalloc(j, sizeof(*par->mmap_map), GFP_ATOMIC); j 2943 drivers/video/fbdev/aty/atyfb_base.c for (i = 0, j = 2; i < 6 && pdev->resource[i].start; i++) { j 2967 drivers/video/fbdev/aty/atyfb_base.c par->mmap_map[j].voff = (pbase + 0x10000000) & PAGE_MASK; j 2968 drivers/video/fbdev/aty/atyfb_base.c par->mmap_map[j].poff = base & PAGE_MASK; j 2969 drivers/video/fbdev/aty/atyfb_base.c par->mmap_map[j].size = (size + ~PAGE_MASK) & PAGE_MASK; j 2970 drivers/video/fbdev/aty/atyfb_base.c par->mmap_map[j].prot_mask = _PAGE_CACHE; j 2971 drivers/video/fbdev/aty/atyfb_base.c par->mmap_map[j].prot_flag = _PAGE_E; j 2972 drivers/video/fbdev/aty/atyfb_base.c j++; j 2980 drivers/video/fbdev/aty/atyfb_base.c par->mmap_map[j].voff = (pbase + 0x800000) & PAGE_MASK; j 2981 drivers/video/fbdev/aty/atyfb_base.c par->mmap_map[j].poff = (base + 0x800000) & PAGE_MASK; j 2982 drivers/video/fbdev/aty/atyfb_base.c par->mmap_map[j].size = 0x800000; j 2983 drivers/video/fbdev/aty/atyfb_base.c par->mmap_map[j].prot_mask = _PAGE_CACHE; j 2984 drivers/video/fbdev/aty/atyfb_base.c par->mmap_map[j].prot_flag = _PAGE_E | _PAGE_IE; j 2986 drivers/video/fbdev/aty/atyfb_base.c j++; j 2989 drivers/video/fbdev/aty/atyfb_base.c par->mmap_map[j].voff = pbase & PAGE_MASK; j 2990 drivers/video/fbdev/aty/atyfb_base.c par->mmap_map[j].poff = base & PAGE_MASK; j 2991 drivers/video/fbdev/aty/atyfb_base.c par->mmap_map[j].size = (size + ~PAGE_MASK) & PAGE_MASK; j 2992 drivers/video/fbdev/aty/atyfb_base.c par->mmap_map[j].prot_mask = _PAGE_CACHE; j 2993 drivers/video/fbdev/aty/atyfb_base.c par->mmap_map[j].prot_flag = _PAGE_E; j 2994 drivers/video/fbdev/aty/atyfb_base.c j++; j 152 drivers/video/fbdev/aty/mach64_cursor.c unsigned int i, j, offset; j 161 drivers/video/fbdev/aty/mach64_cursor.c for (j = 0; j < width; j++) { j 183 drivers/video/fbdev/aty/mach64_cursor.c if ((j + 1) * 8 > cursor->image.width) { j 1439 drivers/video/fbdev/aty/radeon_pm.c int i,j; j 1445 drivers/video/fbdev/aty/radeon_pm.c for (i = j = 0; i < 65; ++i) { j 1451 drivers/video/fbdev/aty/radeon_pm.c j++; j 1452 drivers/video/fbdev/aty/radeon_pm.c if (j > 10) { j 149 drivers/video/fbdev/core/cfbimgblt.c u32 i, j, l; j 159 drivers/video/fbdev/core/cfbimgblt.c j = image->width; j 171 drivers/video/fbdev/core/cfbimgblt.c while (j--) { j 225 drivers/video/fbdev/core/cfbimgblt.c int i, j, k; j 254 drivers/video/fbdev/core/cfbimgblt.c for (j = k; j--; ) { j 58 drivers/video/fbdev/core/fb_ddc.c int i, j; j 71 drivers/video/fbdev/core/fb_ddc.c for (j = 0; j < 5; j++) { j 76 drivers/video/fbdev/core/fb_ddc.c if (j == 5) j 97 drivers/video/fbdev/core/fb_ddc.c for (j = 0; j < 10; j++) { j 462 drivers/video/fbdev/core/fbcon.c int i, j; j 487 drivers/video/fbdev/core/fbcon.c for (i = 0, j = 0; i < MAX_NR_CONSOLES; i++) { j 488 drivers/video/fbdev/core/fbcon.c if (!options[j]) j 489 drivers/video/fbdev/core/fbcon.c j = 0; j 491 drivers/video/fbdev/core/fbcon.c (options[j++]-'0') % FB_MAX; j 2457 drivers/video/fbdev/core/fbcon.c int i, j; j 2466 drivers/video/fbdev/core/fbcon.c j = vc->vc_font.height; j 2468 drivers/video/fbdev/core/fbcon.c memcpy(data, fontdata, j); j 2469 drivers/video/fbdev/core/fbcon.c memset(data + j, 0, 32 - j); j 2471 drivers/video/fbdev/core/fbcon.c fontdata += j; j 2474 drivers/video/fbdev/core/fbcon.c j = vc->vc_font.height * 2; j 2476 drivers/video/fbdev/core/fbcon.c memcpy(data, fontdata, j); j 2477 drivers/video/fbdev/core/fbcon.c memset(data + j, 0, 64 - j); j 2479 drivers/video/fbdev/core/fbcon.c fontdata += j; j 2483 drivers/video/fbdev/core/fbcon.c for (j = 0; j < vc->vc_font.height; j++) { j 2489 drivers/video/fbdev/core/fbcon.c memset(data, 0, 3 * (32 - j)); j 2490 drivers/video/fbdev/core/fbcon.c data += 3 * (32 - j); j 2493 drivers/video/fbdev/core/fbcon.c j = vc->vc_font.height * 4; j 2495 drivers/video/fbdev/core/fbcon.c memcpy(data, fontdata, j); j 2496 drivers/video/fbdev/core/fbcon.c memset(data + j, 0, 128 - j); j 2498 drivers/video/fbdev/core/fbcon.c fontdata += j; j 2729 drivers/video/fbdev/core/fbcon.c int i, j, k, depth; j 2740 drivers/video/fbdev/core/fbcon.c for (i = j = 0; i < 16; i++) { j 2742 drivers/video/fbdev/core/fbcon.c val = vc->vc_palette[j++]; j 2744 drivers/video/fbdev/core/fbcon.c val = vc->vc_palette[j++]; j 2746 drivers/video/fbdev/core/fbcon.c val = vc->vc_palette[j++]; j 3050 drivers/video/fbdev/core/fbcon.c int i, j, found = 0; j 3054 drivers/video/fbdev/core/fbcon.c j = con2fb_map[i]; j 3055 drivers/video/fbdev/core/fbcon.c if (j == -1) j 3057 drivers/video/fbdev/core/fbcon.c fb_info = registered_fb[j]; j 3633 drivers/video/fbdev/core/fbcon.c int i, j, mapped; j 3656 drivers/video/fbdev/core/fbcon.c for (j = first_fb_vc; j <= last_fb_vc; j++) { j 3657 drivers/video/fbdev/core/fbcon.c if (con2fb_map[j] == i) { j 3659 drivers/video/fbdev/core/fbcon.c con2fb_map[j] = -1; j 28 drivers/video/fbdev/core/fbcon_ccw.c int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; j 40 drivers/video/fbdev/core/fbcon_ccw.c for (j = 0; j < width; j++) { j 44 drivers/video/fbdev/core/fbcon_ccw.c if (j == width - 1) j 47 drivers/video/fbdev/core/fbcon_ccw.c if (msk1 && j == width - 2) j 28 drivers/video/fbdev/core/fbcon_cw.c int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; j 33 drivers/video/fbdev/core/fbcon_cw.c for (j = 0; j < width; j++) { j 35 drivers/video/fbdev/core/fbcon_cw.c if (attribute & FBCON_ATTRIBUTE_UNDERLINE && !j) j 42 drivers/video/fbdev/core/fbcon_rotate.h int i, j; j 48 drivers/video/fbdev/core/fbcon_rotate.h for (j = 0; j < width - shift; j++) { j 49 drivers/video/fbdev/core/fbcon_rotate.h if (pattern_test_bit(j, i, width, in)) j 50 drivers/video/fbdev/core/fbcon_rotate.h pattern_set_bit(width - (1 + j + shift), j 60 drivers/video/fbdev/core/fbcon_rotate.h int i, j, h = height, w = width; j 67 drivers/video/fbdev/core/fbcon_rotate.h for (j = 0; j < w; j++) { j 68 drivers/video/fbdev/core/fbcon_rotate.h if (pattern_test_bit(j, i, width, in)) j 69 drivers/video/fbdev/core/fbcon_rotate.h pattern_set_bit(height - 1 - i - shift, j, j 78 drivers/video/fbdev/core/fbcon_rotate.h int i, j, h = height, w = width; j 85 drivers/video/fbdev/core/fbcon_rotate.h for (j = 0; j < w; j++) { j 86 drivers/video/fbdev/core/fbcon_rotate.h if (pattern_test_bit(j, i, width, in)) j 87 drivers/video/fbdev/core/fbcon_rotate.h pattern_set_bit(i, width - 1 - j - shift, j 123 drivers/video/fbdev/core/fbmem.c int i, j; j 126 drivers/video/fbdev/core/fbmem.c for (j = 0; j < idx; j++) { j 127 drivers/video/fbdev/core/fbmem.c tmp = dst[j]; j 130 drivers/video/fbdev/core/fbmem.c dst[j] = tmp; j 132 drivers/video/fbdev/core/fbmem.c dst[j+1] = tmp; j 200 drivers/video/fbdev/core/fbmem.c int i, j, n; j 217 drivers/video/fbdev/core/fbmem.c for (j = 0; j < n; ++j) { j 218 drivers/video/fbdev/core/fbmem.c palette_cmap.red[j] = clut[0] << 8 | clut[0]; j 219 drivers/video/fbdev/core/fbmem.c palette_cmap.green[j] = clut[1] << 8 | clut[1]; j 220 drivers/video/fbdev/core/fbmem.c palette_cmap.blue[j] = clut[2] << 8 | clut[2]; j 276 drivers/video/fbdev/core/fbmem.c int i, j, k; j 300 drivers/video/fbdev/core/fbmem.c for (j = 0; j < logo->width; src++) { j 302 drivers/video/fbdev/core/fbmem.c j++; j 303 drivers/video/fbdev/core/fbmem.c if (j < logo->width) { j 305 drivers/video/fbdev/core/fbmem.c j++; j 311 drivers/video/fbdev/core/fbmem.c for (j = 0; j < logo->width; src++) { j 313 drivers/video/fbdev/core/fbmem.c for (k = 7; k >= 0 && j < logo->width; k--) { j 315 drivers/video/fbdev/core/fbmem.c j++; j 369 drivers/video/fbdev/core/fbmem.c int i, j, h = height - 1; j 372 drivers/video/fbdev/core/fbmem.c for (j = 0; j < width; j++) j 373 drivers/video/fbdev/core/fbmem.c out[height * j + h - i] = *in++; j 378 drivers/video/fbdev/core/fbmem.c int i, j, w = width - 1; j 381 drivers/video/fbdev/core/fbmem.c for (j = 0; j < width; j++) j 382 drivers/video/fbdev/core/fbmem.c out[height * (w - j) + i] = *in++; j 1523 drivers/video/fbdev/core/fbmem.c int i, j; j 1529 drivers/video/fbdev/core/fbmem.c for (j = 0; j < gena->count; ++j) { j 1530 drivers/video/fbdev/core/fbmem.c struct aperture *g = &gena->ranges[j]; j 556 drivers/video/fbdev/core/fbmon.c int j, num = 0; j 558 drivers/video/fbdev/core/fbmon.c for (j = 0; j < 6; j++, block += STD_TIMING_DESCRIPTION_SIZE) j 121 drivers/video/fbdev/core/sysimgblt.c u32 i, j, l; j 130 drivers/video/fbdev/core/sysimgblt.c j = image->width; j 142 drivers/video/fbdev/core/sysimgblt.c while (j--) { j 195 drivers/video/fbdev/core/sysimgblt.c int i, j, k; j 226 drivers/video/fbdev/core/sysimgblt.c for (j = k; j--; ) { j 155 drivers/video/fbdev/dnfb.c short i, j; j 202 drivers/video/fbdev/dnfb.c for (j = 1; j < (x_word_count - 1); j++) { j 805 drivers/video/fbdev/fsl-diu-fb.c int i, j; j 819 drivers/video/fbdev/fsl-diu-fb.c for (j = 0; j <= 255; j++) j 820 drivers/video/fbdev/fsl-diu-fb.c *gamma_table_base++ = j; j 201 drivers/video/fbdev/g364fb.c int mem, i, j; j 374 drivers/video/fbdev/gbefb.c int i, j; j 377 drivers/video/fbdev/gbefb.c for (j = 0; j < 1000 && gbe->cm_fifo >= 63; j++) j 379 drivers/video/fbdev/gbefb.c if (j == 1000) j 495 drivers/video/fbdev/i810/i810_main.c u8 i, j; j 513 drivers/video/fbdev/i810/i810_main.c j = i810_readb(CR_DATA_CGA, mmio); j 515 drivers/video/fbdev/i810/i810_main.c i810_writeb(CR_DATA_CGA, mmio, j | i); j 522 drivers/video/fbdev/i810/i810_main.c j = i810_readb(SR_DATA, mmio) & 0xE0; j 524 drivers/video/fbdev/i810/i810_main.c i810_writeb(SR_DATA, mmio, i | j); j 786 drivers/video/fbdev/i810/i810_main.c int i, j; j 789 drivers/video/fbdev/i810/i810_main.c for (j = 0; j < 8; j++) { j 790 drivers/video/fbdev/i810/i810_main.c i810_writeb(j, addr, 0xff); j 791 drivers/video/fbdev/i810/i810_main.c i810_writeb(j+8, addr, 0x00); j 801 drivers/video/fbdev/i810/i810_main.c int i, j, w = width/8; j 807 drivers/video/fbdev/i810/i810_main.c for (j = 0; j < w; j++) { j 808 drivers/video/fbdev/i810/i810_main.c i810_writeb(j+0, addr, 0x00); j 809 drivers/video/fbdev/i810/i810_main.c i810_writeb(j+8, addr, *data++); j 812 drivers/video/fbdev/i810/i810_main.c i810_writeb(j+0, addr, t_mask); j 813 drivers/video/fbdev/i810/i810_main.c i810_writeb(j+8, addr, *data++ & d_mask); j 1224 drivers/video/fbdev/imsttfb.c for (j = 0; j < width; j++) { j 1225 drivers/video/fbdev/imsttfb.c d_idx = i * MAX_CURS/8 + j; j 1236 drivers/video/fbdev/imsttfb.c for (j = 0; j < width; j++) { j 1237 drivers/video/fbdev/imsttfb.c d_idx = i * MAX_CURS/8 + j; j 1754 drivers/video/fbdev/intelfb/intelfbhw.c int i, j; j 1816 drivers/video/fbdev/intelfb/intelfbhw.c for (j = 0; j < 2; ++j) { j 1819 drivers/video/fbdev/intelfb/intelfbhw.c dat |= cdat[iy*iw + ix++] << (i+j*2)*8; j 1959 drivers/video/fbdev/intelfb/intelfbhw.c int i, j, w = width / 8; j 1972 drivers/video/fbdev/intelfb/intelfbhw.c for (j = 0; j < w; j++) { j 1973 drivers/video/fbdev/intelfb/intelfbhw.c writeb(0x00, addr + j); j 1974 drivers/video/fbdev/intelfb/intelfbhw.c writeb(*(data++), addr + j+8); j 1977 drivers/video/fbdev/intelfb/intelfbhw.c writeb(t_mask, addr + j); j 1978 drivers/video/fbdev/intelfb/intelfbhw.c writeb(*(data++) & d_mask, addr + j+8); j 1987 drivers/video/fbdev/intelfb/intelfbhw.c int i, j; j 1997 drivers/video/fbdev/intelfb/intelfbhw.c for (j = 0; j < 8; j++) { j 1998 drivers/video/fbdev/intelfb/intelfbhw.c writeb(0xff, addr + j+0); j 1999 drivers/video/fbdev/intelfb/intelfbhw.c writeb(0x00, addr + j+8); j 455 drivers/video/fbdev/leo.c int i, j; j 464 drivers/video/fbdev/leo.c j = (wi->wi_index & 0xf) + 0x40; j 468 drivers/video/fbdev/leo.c j = wi->wi_index & 0x3f; j 474 drivers/video/fbdev/leo.c sbus_writel(0x5800 + j, &lx_krn->krn_type); j 212 drivers/video/fbdev/matrox/g450_pll.c unsigned int j; j 214 drivers/video/fbdev/matrox/g450_pll.c for (j = 0; j < 1000; j++) { j 78 drivers/video/fbdev/maxinefb.c register unsigned int j, k; j 81 drivers/video/fbdev/maxinefb.c j = *((volatile unsigned short *) rptr); j 84 drivers/video/fbdev/maxinefb.c return (j & 0xffff) | ((k & 0xff00) << 8); j 125 drivers/video/fbdev/mb862xx/mb862xxfb_accel.c int i, j; j 140 drivers/video/fbdev/mb862xx/mb862xxfb_accel.c for (j = 0; j < step; j++) { j 141 drivers/video/fbdev/mb862xx/mb862xxfb_accel.c cmd[3 + i * step + j] = j 144 drivers/video/fbdev/mb862xx/mb862xxfb_accel.c cmd[3 + i * step + j] |= j 358 drivers/video/fbdev/nvidia/nv_accel.c int j, k = 0; j 385 drivers/video/fbdev/nvidia/nv_accel.c for (j = RECT_EXPAND_TWO_COLOR_DATA_MAX_DWORDS; j--;) { j 397 drivers/video/fbdev/nvidia/nv_accel.c for (j = dsize; j--;) { j 948 drivers/video/fbdev/nvidia/nv_hw.c int i, j; j 1225 drivers/video/fbdev/nvidia/nv_hw.c j = NV_RD32(par->REGS, 0x1540) & 0xff; j 1227 drivers/video/fbdev/nvidia/nv_hw.c if (j) { j 1228 drivers/video/fbdev/nvidia/nv_hw.c for (i = 0; !(j & 1); j >>= 1, i++); j 118 drivers/video/fbdev/nvidia/nvidia.c int i, j, k = 0; j 127 drivers/video/fbdev/nvidia/nvidia.c for (j = 0; j < w / 2; j++) { j 191 drivers/video/fbdev/offb.c int i, j; j 207 drivers/video/fbdev/offb.c for (j = 0; j < 3; j++) j 365 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c int j; j 373 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c for (j = 0; j < omap_dss_get_num_overlays(); ++j) { j 375 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c ovl = omap_dss_get_overlay(j); j 289 drivers/video/fbdev/omap2/omapfb/dss/dispc.c int i, j; j 352 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 8; j++) j 353 drivers/video/fbdev/omap2/omapfb/dss/dispc.c SR(OVL_FIR_COEF_H(i, j)); j 355 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 8; j++) j 356 drivers/video/fbdev/omap2/omapfb/dss/dispc.c SR(OVL_FIR_COEF_HV(i, j)); j 358 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 5; j++) j 359 drivers/video/fbdev/omap2/omapfb/dss/dispc.c SR(OVL_CONV_COEF(i, j)); j 362 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 8; j++) j 363 drivers/video/fbdev/omap2/omapfb/dss/dispc.c SR(OVL_FIR_COEF_V(i, j)); j 373 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 8; j++) j 374 drivers/video/fbdev/omap2/omapfb/dss/dispc.c SR(OVL_FIR_COEF_H2(i, j)); j 376 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 8; j++) j 377 drivers/video/fbdev/omap2/omapfb/dss/dispc.c SR(OVL_FIR_COEF_HV2(i, j)); j 379 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 8; j++) j 380 drivers/video/fbdev/omap2/omapfb/dss/dispc.c SR(OVL_FIR_COEF_V2(i, j)); j 396 drivers/video/fbdev/omap2/omapfb/dss/dispc.c int i, j; j 458 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 8; j++) j 459 drivers/video/fbdev/omap2/omapfb/dss/dispc.c RR(OVL_FIR_COEF_H(i, j)); j 461 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 8; j++) j 462 drivers/video/fbdev/omap2/omapfb/dss/dispc.c RR(OVL_FIR_COEF_HV(i, j)); j 464 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 5; j++) j 465 drivers/video/fbdev/omap2/omapfb/dss/dispc.c RR(OVL_CONV_COEF(i, j)); j 468 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 8; j++) j 469 drivers/video/fbdev/omap2/omapfb/dss/dispc.c RR(OVL_FIR_COEF_V(i, j)); j 479 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 8; j++) j 480 drivers/video/fbdev/omap2/omapfb/dss/dispc.c RR(OVL_FIR_COEF_H2(i, j)); j 482 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 8; j++) j 483 drivers/video/fbdev/omap2/omapfb/dss/dispc.c RR(OVL_FIR_COEF_HV2(i, j)); j 485 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 8; j++) j 486 drivers/video/fbdev/omap2/omapfb/dss/dispc.c RR(OVL_FIR_COEF_V2(i, j)); j 3495 drivers/video/fbdev/omap2/omapfb/dss/dispc.c int i, j; j 3656 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 8; j++) j 3657 drivers/video/fbdev/omap2/omapfb/dss/dispc.c DUMPREG(i, DISPC_OVL_FIR_COEF_H, j); j 3659 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 8; j++) j 3660 drivers/video/fbdev/omap2/omapfb/dss/dispc.c DUMPREG(i, DISPC_OVL_FIR_COEF_HV, j); j 3662 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 5; j++) j 3663 drivers/video/fbdev/omap2/omapfb/dss/dispc.c DUMPREG(i, DISPC_OVL_CONV_COEF, j); j 3666 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 8; j++) j 3667 drivers/video/fbdev/omap2/omapfb/dss/dispc.c DUMPREG(i, DISPC_OVL_FIR_COEF_V, j); j 3671 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 8; j++) j 3672 drivers/video/fbdev/omap2/omapfb/dss/dispc.c DUMPREG(i, DISPC_OVL_FIR_COEF_H2, j); j 3674 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 8; j++) j 3675 drivers/video/fbdev/omap2/omapfb/dss/dispc.c DUMPREG(i, DISPC_OVL_FIR_COEF_HV2, j); j 3677 drivers/video/fbdev/omap2/omapfb/dss/dispc.c for (j = 0; j < 8; j++) j 3678 drivers/video/fbdev/omap2/omapfb/dss/dispc.c DUMPREG(i, DISPC_OVL_FIR_COEF_V2, j); j 234 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c int j; j 239 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c for (j = 0; j < ofbi2->num_overlays; j++) { j 241 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c ovl = ofbi2->overlays[j]; j 456 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c int j; j 461 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c for (j = 0; j < ofbi2->num_overlays; j++) { j 463 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c ovl = ofbi2->overlays[j]; j 1323 drivers/video/fbdev/pm2fb.c int j = (cursor->image.width + 7) >> 3; j 1324 drivers/video/fbdev/pm2fb.c int k = 8 - j; j 1328 drivers/video/fbdev/pm2fb.c for (; j > 0; j--) { j 1432 drivers/video/fbdev/pm2fb.c int j = (cursor->image.width + 7) >> 3; j 1433 drivers/video/fbdev/pm2fb.c int k = 8 - j; j 1436 drivers/video/fbdev/pm2fb.c for (; j > 0; j--) { j 1450 drivers/video/fbdev/pm2fb.c int j = 8; j 1452 drivers/video/fbdev/pm2fb.c while (j-- > 0) j 1458 drivers/video/fbdev/pm2fb.c int j = (cursor->image.width + 7) >> 3; j 1459 drivers/video/fbdev/pm2fb.c int k = 8 - j; j 1462 drivers/video/fbdev/pm2fb.c for (; j > 0; j--) { j 1471 drivers/video/fbdev/pm2fb.c int j = 8; j 1473 drivers/video/fbdev/pm2fb.c while (j-- > 0) j 685 drivers/video/fbdev/pm3fb.c int j = (cursor->image.width + 7) >> 3; j 686 drivers/video/fbdev/pm3fb.c int k = 8 - j; j 688 drivers/video/fbdev/pm3fb.c for (; j > 0; j--) { j 192 drivers/video/fbdev/pmagb-b-fb.c int i, j; j 195 drivers/video/fbdev/pmagb-b-fb.c for (j = 0; j < 16; j++) { j 208 drivers/video/fbdev/pmagb-b-fb.c for (j = 0; j < 16; j++) { j 490 drivers/video/fbdev/riva/fbdev.c int i, j, k = 0; j 502 drivers/video/fbdev/riva/fbdev.c for (j = 0; j < w/2; j++) { j 974 drivers/video/fbdev/savage/savagefb_driver.c int width, dclk, i, j; /*, refresh; */ j 1120 drivers/video/fbdev/savage/savagefb_driver.c j = (reg->CRTC[0] + ((i & 0x01) << 8) + j 1123 drivers/video/fbdev/savage/savagefb_driver.c if (j - (reg->CRTC[4] + ((i & 0x10) << 4)) < 4) { j 1126 drivers/video/fbdev/savage/savagefb_driver.c j = reg->CRTC[4] + ((i & 0x10) << 4) + 4; j 1128 drivers/video/fbdev/savage/savagefb_driver.c j = reg->CRTC[0] + ((i & 0x01) << 8) + 1; j 1131 drivers/video/fbdev/savage/savagefb_driver.c reg->CR3B = j & 0xff; j 1132 drivers/video/fbdev/savage/savagefb_driver.c i |= (j & 0x100) >> 2; j 2076 drivers/video/fbdev/sis/init.c unsigned short temp, i, j, modeflag; j 2099 drivers/video/fbdev/sis/init.c for(i = 0, j = 0; i <= 7; i++, j++) { j 2100 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,j,crt1data[i]); j 2102 drivers/video/fbdev/sis/init.c for(j = 0x10; i <= 10; i++, j++) { j 2103 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,j,crt1data[i]); j 2105 drivers/video/fbdev/sis/init.c for(j = 0x15; i <= 12; i++, j++) { j 2106 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,j,crt1data[i]); j 2108 drivers/video/fbdev/sis/init.c for(j = 0x0A; i <= 15; i++, j++) { j 2109 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,j,crt1data[i]); j 2876 drivers/video/fbdev/sis/init.c unsigned short data, data2, time, i, j, k, m, n, o; j 2883 drivers/video/fbdev/sis/init.c j = time = 64; j 2888 drivers/video/fbdev/sis/init.c j = 16; j 2909 drivers/video/fbdev/sis/init.c for(i = 0; i < j; i++) { j 3391 drivers/video/fbdev/sis/init.c int i, j; j 3514 drivers/video/fbdev/sis/init.c for(i = 0, j = 0; i <= 7; i++, j++) { j 3515 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,j,SiS_Pr->CCRT1CRTC[i]); j 3517 drivers/video/fbdev/sis/init.c for(j = 0x10; i <= 10; i++, j++) { j 3518 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,j,SiS_Pr->CCRT1CRTC[i]); j 3520 drivers/video/fbdev/sis/init.c for(j = 0x15; i <= 12; i++, j++) { j 3521 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,j,SiS_Pr->CCRT1CRTC[i]); j 3523 drivers/video/fbdev/sis/init.c for(j = 0x0A; i <= 15; i++, j++) { j 3524 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,j,SiS_Pr->CCRT1CRTC[i]); j 973 drivers/video/fbdev/sis/init301.c unsigned short tempal,temp,i,j; j 977 drivers/video/fbdev/sis/init301.c for(j = 0; j < 100; j++) { j 2688 drivers/video/fbdev/sis/init301.c unsigned short i, j, modeflag, tempah=0; j 2707 drivers/video/fbdev/sis/init301.c for(i=0,j=4; i<3; i++,j++) SiS_SetReg(SiS_Pr->SiS_Part1Port,j,0); j 5545 drivers/video/fbdev/sis/init301.c unsigned short temp, modeflag, i, j, xres=0, VGAVDE; j 5631 drivers/video/fbdev/sis/init301.c for(i = 0x10, j = 8; i <= 0x12; i++, j++) { j 5632 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,CRTranslation[i],SiS_Pr->CCRT1CRTC[j]); j 5634 drivers/video/fbdev/sis/init301.c for(i = 0x15, j = 11; i <= 0x16; i++, j++) { j 5635 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,CRTranslation[i],SiS_Pr->CCRT1CRTC[j]); j 5637 drivers/video/fbdev/sis/init301.c for(i = 0x0a, j = 13; i <= 0x0c; i++, j++) { j 5638 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,CRTranslation[i],SiS_Pr->CCRT1CRTC[j]); j 6090 drivers/video/fbdev/sis/init301.c int i, j = crt2crtc; j 6096 drivers/video/fbdev/sis/init301.c trumpdata = &ROMAddr[0x8001 + (j * 80)]; j 6098 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDTypeInfo == 0x0e) j += 7; j 6099 drivers/video/fbdev/sis/init301.c trumpdata = &SiS300_TrumpionData[j][0]; j 6651 drivers/video/fbdev/sis/init301.c int i, j; j 6656 drivers/video/fbdev/sis/init301.c for(i = 0x80, j = 0; i <= 0xbf; i++, j++) { j 6657 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port, i, tableptr[j]); j 6661 drivers/video/fbdev/sis/init301.c for(i = 0xc0, j = 0; i <= 0xff; i++, j++) { j 6662 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port, i, tableptr[j]); j 6766 drivers/video/fbdev/sis/init301.c int i, j; j 6790 drivers/video/fbdev/sis/init301.c for(i = 2, j = 0x04; j <= 0x06; i++, j++ ) { j 6791 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,j,(CRT2Part2Ptr+resindex)->CR[i]); j 6793 drivers/video/fbdev/sis/init301.c for(j = 0x1c; j <= 0x1d; i++, j++ ) { j 6794 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,j,(CRT2Part2Ptr+resindex)->CR[i]); j 6796 drivers/video/fbdev/sis/init301.c for(j = 0x1f; j <= 0x21; i++, j++ ) { j 6797 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,j,(CRT2Part2Ptr+resindex)->CR[i]); j 6818 drivers/video/fbdev/sis/init301.c int i, j; j 6819 drivers/video/fbdev/sis/init301.c for(i = 0x1c, j = 0; i <= 0x30; i++, j++) { j 6820 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,specialtv[j]); j 6908 drivers/video/fbdev/sis/init301.c unsigned short i, j, tempax, tempbx, tempcx, tempch, tempcl, temp; j 6998 drivers/video/fbdev/sis/init301.c for(i = 0x31, j = 0; i <= 0x34; i++, j++) { j 6999 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS_TVPhase[(PhaseIndex * 4) + j]); j 7002 drivers/video/fbdev/sis/init301.c for(i = 0x01, j = 0; i <= 0x2D; i++, j++) { j 7003 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,TimingPoint[j]); j 7005 drivers/video/fbdev/sis/init301.c for(i = 0x39; i <= 0x45; i++, j++) { j 7006 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,TimingPoint[j]); j 7069 drivers/video/fbdev/sis/init301.c tempbx = TimingPoint[j] | (TimingPoint[j+1] << 8); j 7081 drivers/video/fbdev/sis/init301.c j += 2; j 7082 drivers/video/fbdev/sis/init301.c tempcx += (TimingPoint[j] | (TimingPoint[j+1] << 8)); j 7092 drivers/video/fbdev/sis/init301.c j += 2; j 7093 drivers/video/fbdev/sis/init301.c tempcx -= (TimingPoint[j] | ((TimingPoint[j+1]) << 8)); j 7301 drivers/video/fbdev/sis/init301.c for(i = 2, j = 0x04; j <= 0x06; i++, j++ ) { j 7302 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,j,(CRT2Part2Ptr+resindex)->CR[i]); j 7304 drivers/video/fbdev/sis/init301.c for(j = 0x1c; j <= 0x1d; i++, j++ ) { j 7305 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,j,(CRT2Part2Ptr+resindex)->CR[i]); j 7307 drivers/video/fbdev/sis/init301.c for(j = 0x1f; j <= 0x21; i++, j++ ) { j 7308 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,j,(CRT2Part2Ptr+resindex)->CR[i]); j 8003 drivers/video/fbdev/sis/init301.c unsigned short tempah, i, modeflag, j, ResIndex, DisplayType; j 8065 drivers/video/fbdev/sis/init301.c for(i = 0x0A, j = 11; i <= 0x0C; i++, j++) { j 8066 drivers/video/fbdev/sis/init301.c tempah = (LVDSCRT1Ptr + ResIndex)->CR[j]; j 9043 drivers/video/fbdev/sis/init301.c int i, j, num; j 9062 drivers/video/fbdev/sis/init301.c for(j=0; j<num; j++) { j 10338 drivers/video/fbdev/sis/init301.c unsigned short index, temp, i, j; j 10354 drivers/video/fbdev/sis/init301.c for(i=0x35, j=0; i<=0x38; i++, j++) { j 10355 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS310_TVYFilter2[temp][index][j]); j 10357 drivers/video/fbdev/sis/init301.c for(i=0x48; i<=0x4A; i++, j++) { j 10358 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS310_TVYFilter2[temp][index][j]); j 10361 drivers/video/fbdev/sis/init301.c for(i=0x35, j=0; i<=0x38; i++, j++) { j 10362 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS310_TVYFilter1[temp][index][j]); j 10371 drivers/video/fbdev/sis/init301.c unsigned short index,temp,i,j,resinfo,romptr=0; j 10382 drivers/video/fbdev/sis/init301.c for(j=0, i=0x31; i<=0x34; i++, j++) { j 10383 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS_TVPhase[lindex + j]); j 10421 drivers/video/fbdev/sis/init301.c for(j=0, i=0x31; i<=0x34; i++, j++) { j 10422 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,ROMAddr[romptr + j]); j 10427 drivers/video/fbdev/sis/init301.c for(j=0, i=0x31; i<=0x34; i++, j++) { j 10429 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS310_TVPhaseIncr1[temp][index][j]); j 10431 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS310_TVPhaseIncr2[temp][index][j]); j 10433 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS310_TVPhaseIncr1[temp][index][j]); j 11150 drivers/video/fbdev/sis/init301.c for(i=0x14, j=0; i<=0x17; i++, j++) { j 11151 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,i,SiS300_LCDHData[temp][index][j]); j 11153 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_SiS_Part1Port,0x1a, 0xf8, (SiS300_LCDHData[temp][index][j] & 0x07)); j 11159 drivers/video/fbdev/sis/init301.c for(i=0x1b, j=3; i<=0x1d; i++, j++) { j 11160 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,i,SiS300_LCDVData[temp][index][j]); j 11247 drivers/video/fbdev/sis/init301.c unsigned short index,i,j,temp,romptr=0; j 11264 drivers/video/fbdev/sis/init301.c for(i=0x31, j=0; i<=0x34; i++, j++) { j 11265 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS300_Phase2[temp][index][j]); j 11272 drivers/video/fbdev/sis/init301.c for(i=0x31, j=0; i<=0x34; i++, j++) { j 11273 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,ROMAddr[romptr + j]); j 11276 drivers/video/fbdev/sis/init301.c for(i=0x31, j=0; i<=0x34; i++, j++) { j 11277 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS300_Phase1[temp][index][j]); j 11287 drivers/video/fbdev/sis/init301.c unsigned short index,temp,i,j,romptr=0; j 11306 drivers/video/fbdev/sis/init301.c for(i=0x35, j=0; i<=0x38; i++, j++) { j 11307 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS300_Filter2[temp][index][j]); j 11309 drivers/video/fbdev/sis/init301.c for(i=0x48; i<=0x4A; i++, j++) { j 11310 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS300_Filter2[temp][index][j]); j 11317 drivers/video/fbdev/sis/init301.c for(i=0x35, j=0; i<=0x38; i++, j++) { j 11318 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,ROMAddr[romptr + j]); j 11321 drivers/video/fbdev/sis/init301.c for(i=0x35, j=0; i<=0x38; i++, j++) { j 11322 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS300_Filter1[temp][index][j]); j 86 drivers/video/fbdev/sis/initextlfb.c int j; j 135 drivers/video/fbdev/sis/initextlfb.c j = 0; j 136 drivers/video/fbdev/sis/initextlfb.c while(SiS_Pr->SiS_EModeIDTable[j].Ext_ModeID != 0xff) { j 137 drivers/video/fbdev/sis/initextlfb.c if(SiS_Pr->SiS_EModeIDTable[j].Ext_ModeID == j 139 drivers/video/fbdev/sis/initextlfb.c if(SiS_Pr->SiS_EModeIDTable[j].Ext_ModeFlag & DoubleScanMode) { j 144 drivers/video/fbdev/sis/initextlfb.c j++; j 145 drivers/video/fbdev/sis/sis_main.c int i = 0, j = 0; j 174 drivers/video/fbdev/sis/sis_main.c j = 1; j 178 drivers/video/fbdev/sis/sis_main.c if((!j) && !quiet) j 184 drivers/video/fbdev/sis/sis_main.c unsigned int j = 0, xres = 0, yres = 0, depth = 0, rate = 0; j 216 drivers/video/fbdev/sis/sis_main.c j = rate; rate = depth; depth = j; j 236 drivers/video/fbdev/sis/sis_main.c i = 0; j = 0; j 250 drivers/video/fbdev/sis/sis_main.c j = 1; j 255 drivers/video/fbdev/sis/sis_main.c if((!j) && !quiet) j 385 drivers/video/fbdev/sis/sis_main.c int i, j; j 411 drivers/video/fbdev/sis/sis_main.c for(j = 0; j < 5; j++) { j 412 drivers/video/fbdev/sis/sis_main.c if(mycustomttable[i].biosFootprintAddr[j]) { j 414 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.VirtualRomBase[mycustomttable[i].biosFootprintAddr[j]] != j 415 drivers/video/fbdev/sis/sis_main.c mycustomttable[i].biosFootprintData[j]) { j 438 drivers/video/fbdev/sis/sis_main.c int i, j, xres, yres, refresh, index; j 468 drivers/video/fbdev/sis/sis_main.c j = 0x36; j 470 drivers/video/fbdev/sis/sis_main.c if(buffer[j] == 0x00 && buffer[j + 1] == 0x00 && j 471 drivers/video/fbdev/sis/sis_main.c buffer[j + 2] == 0x00 && buffer[j + 3] == 0xfd && j 472 drivers/video/fbdev/sis/sis_main.c buffer[j + 4] == 0x00) { j 473 drivers/video/fbdev/sis/sis_main.c monitor->hmin = buffer[j + 7]; j 474 drivers/video/fbdev/sis/sis_main.c monitor->hmax = buffer[j + 8]; j 475 drivers/video/fbdev/sis/sis_main.c monitor->vmin = buffer[j + 5]; j 476 drivers/video/fbdev/sis/sis_main.c monitor->vmax = buffer[j + 6]; j 477 drivers/video/fbdev/sis/sis_main.c monitor->dclockmax = buffer[j + 9] * 10 * 1000; j 481 drivers/video/fbdev/sis/sis_main.c j += 18; j 515 drivers/video/fbdev/sis/sis_main.c for(j = 0; j < 8; j++) { j 516 drivers/video/fbdev/sis/sis_main.c if((xres == sisfb_ddcfmodes[j].x) && j 517 drivers/video/fbdev/sis/sis_main.c (yres == sisfb_ddcfmodes[j].y) && j 518 drivers/video/fbdev/sis/sis_main.c (refresh == sisfb_ddcfmodes[j].v)) { j 519 drivers/video/fbdev/sis/sis_main.c if(monitor->hmin > sisfb_ddcfmodes[j].h) monitor->hmin = sisfb_ddcfmodes[j].h; j 520 drivers/video/fbdev/sis/sis_main.c if(monitor->hmax < sisfb_ddcfmodes[j].h) monitor->hmax = sisfb_ddcfmodes[j].h + 1; j 521 drivers/video/fbdev/sis/sis_main.c if(monitor->vmin > sisfb_ddcsmodes[j].v) monitor->vmin = sisfb_ddcsmodes[j].v; j 522 drivers/video/fbdev/sis/sis_main.c if(monitor->vmax < sisfb_ddcsmodes[j].v) monitor->vmax = sisfb_ddcsmodes[j].v; j 523 drivers/video/fbdev/sis/sis_main.c if(monitor->dclockmax < sisfb_ddcsmodes[j].d) monitor->dclockmax = sisfb_ddcsmodes[j].d; j 2375 drivers/video/fbdev/sis/sis_main.c int temp, mytest, result, i, j; j 2377 drivers/video/fbdev/sis/sis_main.c for(j = 0; j < 10; j++) { j 4196 drivers/video/fbdev/sis/sis_main.c int i, j; j 4205 drivers/video/fbdev/sis/sis_main.c for(j = 0; j < 4; j++) { j 4325 drivers/video/fbdev/sis/sis_main.c int i, j, buswidth; j 4332 drivers/video/fbdev/sis/sis_main.c for(j = 4; j >= 1; j--) { j 4333 drivers/video/fbdev/sis/sis_main.c PseudoAdrPinCount = 15 - j; j 4334 drivers/video/fbdev/sis/sis_main.c if((PseudoRankCapacity * j) <= 64) { j 4336 drivers/video/fbdev/sis/sis_main.c j, j 4634 drivers/video/fbdev/sis/sis_main.c int i, j, k, l, status; j 4836 drivers/video/fbdev/sis/sis_main.c j = (ivideo->chip == XGI_20) ? 5 : 9; j 4872 drivers/video/fbdev/sis/sis_main.c if (sisfb_post_xgi_rwtest(ivideo, j, ((reg >> 4) + channelab - 2 + 20), mapsize)) { j 5112 drivers/video/fbdev/sis/sis_main.c int i, j, k, index; j 5413 drivers/video/fbdev/sis/sis_main.c for(i = 0, j = 0; i < 3; i++, j += 8) { j 5414 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISCR, 0x68 + i, ptr[j + regb]); j 5433 drivers/video/fbdev/sis/sis_main.c for(j = 0; j < 16; j++) { j 5455 drivers/video/fbdev/sis/sis_main.c for(j = 0; j < 2; j++) { j 5479 drivers/video/fbdev/sis/sis_main.c for(i = 0, j = 0; i < 2; i++, j += 8) { j 5480 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISCR, 0x80 + i, ptr[j + regb]); j 5519 drivers/video/fbdev/sis/sis_main.c for(i = 0, j = 0; i < 7; i++, j += 8) { j 5520 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISCR, 0x90 + i, ptr[j + regb]); j 5529 drivers/video/fbdev/sis/sis_main.c for(i = 0, j = 0; i < 3; i++, j += 8) { j 5530 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISCR, 0xc3 + i, ptr[j + regb]); j 5537 drivers/video/fbdev/sis/sis_main.c for(i = 0, j = 0; i < 2; i++, j += 8) { j 5538 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISCR, 0x8a + i, ptr[j + regb]); j 1183 drivers/video/fbdev/sm712fb.c int i = 0, j = 0; j 1190 drivers/video/fbdev/sm712fb.c for (j = 0; j < ARRAY_SIZE(vgamode); j++) { j 1191 drivers/video/fbdev/sm712fb.c if (vgamode[j].mmsizex != sfb->width || j 1192 drivers/video/fbdev/sm712fb.c vgamode[j].mmsizey != sfb->height || j 1193 drivers/video/fbdev/sm712fb.c vgamode[j].bpp != sfb->fb->var.bits_per_pixel || j 1194 drivers/video/fbdev/sm712fb.c vgamode[j].hz != sfb->hz) j 1199 drivers/video/fbdev/sm712fb.c vgamode[j].mmsizex, vgamode[j].mmsizey, j 1200 drivers/video/fbdev/sm712fb.c vgamode[j].bpp, vgamode[j].hz); j 1202 drivers/video/fbdev/sm712fb.c dev_dbg(&sfb->pdev->dev, "vgamode index=%d\n", j); j 1208 drivers/video/fbdev/sm712fb.c smtc_mmiowb(vgamode[j].init_misc, 0x3c2); j 1212 drivers/video/fbdev/sm712fb.c smtc_seqw(i, vgamode[j].init_sr00_sr04[i]); j 1216 drivers/video/fbdev/sm712fb.c smtc_seqw(i + 0x10, vgamode[j].init_sr10_sr24[i]); j 1225 drivers/video/fbdev/sm712fb.c vgamode[j].init_sr30_sr75[i]); j 1229 drivers/video/fbdev/sm712fb.c smtc_seqw(i + 0x80, vgamode[j].init_sr80_sr93[i]); j 1233 drivers/video/fbdev/sm712fb.c smtc_seqw(i + 0xa0, vgamode[j].init_sra0_sraf[i]); j 1237 drivers/video/fbdev/sm712fb.c smtc_grphw(i, vgamode[j].init_gr00_gr08[i]); j 1241 drivers/video/fbdev/sm712fb.c smtc_attrw(i, vgamode[j].init_ar00_ar14[i]); j 1245 drivers/video/fbdev/sm712fb.c smtc_crtcw(i, vgamode[j].init_cr00_cr18[i]); j 1252 drivers/video/fbdev/sm712fb.c smtc_crtcw(i + 0x30, vgamode[j].init_cr30_cr4d[i]); j 1257 drivers/video/fbdev/sm712fb.c smtc_crtcw(i + 0x90, vgamode[j].init_cr90_cra7[i]); j 1424 drivers/video/fbdev/smscufx.c int i, j, status; j 1450 drivers/video/fbdev/smscufx.c for (j = 0; j < 16; j++) { j 1451 drivers/video/fbdev/smscufx.c u32 data_reg_addr = 0x1110 + (j * 4); j 164 drivers/video/fbdev/ssd1307fb.c int i, j, k; j 200 drivers/video/fbdev/ssd1307fb.c for (j = 0; j < par->width; j++) { j 202 drivers/video/fbdev/ssd1307fb.c u32 array_idx = i * par->width + j; j 209 drivers/video/fbdev/ssd1307fb.c j / 8]; j 210 drivers/video/fbdev/ssd1307fb.c u8 bit = (byte >> (j % 8)) & 1; j 424 drivers/video/fbdev/tcx.c int j; j 428 drivers/video/fbdev/tcx.c j = 12; j 432 drivers/video/fbdev/tcx.c j = i - 1; j 436 drivers/video/fbdev/tcx.c j = i; j 439 drivers/video/fbdev/tcx.c par->mmap_map[i].poff = op->resource[j].start; j 1124 drivers/video/fbdev/tdfxfb.c int j = (cursor->image.width + 7) >> 3; j 1126 drivers/video/fbdev/tdfxfb.c for (; j > 0; j--) { j 373 drivers/video/fbdev/tgafb.c int j = color_table[i]; j 375 drivers/video/fbdev/tgafb.c TGA_WRITE_REG(par, default_red[j], TGA_RAMDAC_REG); j 376 drivers/video/fbdev/tgafb.c TGA_WRITE_REG(par, default_grn[j], TGA_RAMDAC_REG); j 377 drivers/video/fbdev/tgafb.c TGA_WRITE_REG(par, default_blu[j], TGA_RAMDAC_REG); j 625 drivers/video/fbdev/tgafb.c unsigned long i, j; j 714 drivers/video/fbdev/tgafb.c for (j = 0; j < bwidth; ++j) j 715 drivers/video/fbdev/tgafb.c mask |= bitrev8(data[j]) << (j * 8); j 740 drivers/video/fbdev/tgafb.c for (j = 0; j < bwidth; j += 4) { j 742 drivers/video/fbdev/tgafb.c mask |= bitrev8(data[j+0]) << (0 * 8); j 743 drivers/video/fbdev/tgafb.c mask |= bitrev8(data[j+1]) << (1 * 8); j 744 drivers/video/fbdev/tgafb.c mask |= bitrev8(data[j+2]) << (2 * 8); j 745 drivers/video/fbdev/tgafb.c mask |= bitrev8(data[j+3]) << (3 * 8); j 746 drivers/video/fbdev/tgafb.c __raw_writel(mask, fb_base + pos + j*bincr); j 764 drivers/video/fbdev/tgafb.c for (j = 0; j < bwidth; ++j) j 765 drivers/video/fbdev/tgafb.c mask |= bitrev8(data[j]) << (j * 8); j 790 drivers/video/fbdev/tgafb.c for (j = 0; j < bwidth; j += 2) { j 792 drivers/video/fbdev/tgafb.c mask |= bitrev8(data[j+0]) << (0 * 8); j 793 drivers/video/fbdev/tgafb.c mask |= bitrev8(data[j+1]) << (1 * 8); j 795 drivers/video/fbdev/tgafb.c __raw_writel(mask, fb_base + pos + j*bincr); j 838 drivers/video/fbdev/tgafb.c unsigned long pos, line_length, i, j; j 866 drivers/video/fbdev/tgafb.c for (j = 0; j < width; j++) { j 868 drivers/video/fbdev/tgafb.c __raw_writel(color, fb_base + pos + j*4); j 925 drivers/video/fbdev/tgafb.c unsigned long pos, align, line_length, i, j; j 1019 drivers/video/fbdev/tgafb.c for (j = 0; j < nwidth; j += 2048) j 1020 drivers/video/fbdev/tgafb.c __raw_writel(fdata, fb_base + pos + j*Bpp); j 1021 drivers/video/fbdev/tgafb.c if (j < width) j 1022 drivers/video/fbdev/tgafb.c __raw_writel(ldata, fb_base + pos + j*Bpp); j 1203 drivers/video/fbdev/tgafb.c unsigned long j; j 1210 drivers/video/fbdev/tgafb.c for (j = 0; j < n32; j++) { j 1211 drivers/video/fbdev/tgafb.c if (j < 2 && j + 1 < n32 && !backward && j 1220 drivers/video/fbdev/tgafb.c j += 2; j 1221 drivers/video/fbdev/tgafb.c } while (j + 1 < n32); j 1222 drivers/video/fbdev/tgafb.c j--; j 366 drivers/video/fbdev/udlfb.c int j, k; j 374 drivers/video/fbdev/udlfb.c for (j = 0; j < width; j++) { j 375 drivers/video/fbdev/udlfb.c if (back[j] != front[j]) { j 376 drivers/video/fbdev/udlfb.c start = j; j 381 drivers/video/fbdev/udlfb.c for (k = width - 1; k > j; k--) { j 132 drivers/video/fbdev/vermilion/vermilion.c unsigned long j; j 148 drivers/video/fbdev/vermilion/vermilion.c for (j = va->logical; j < va->logical + va->size; j 149 drivers/video/fbdev/vermilion/vermilion.c j += PAGE_SIZE) { j 150 drivers/video/fbdev/vermilion/vermilion.c (void)put_page_testzero(virt_to_page(j)); j 187 drivers/video/fbdev/vermilion/vermilion.c int i, j; j 215 drivers/video/fbdev/vermilion/vermilion.c for (j = 0; j < i; ++j) { j 216 drivers/video/fbdev/vermilion/vermilion.c va2 = &vinfo->vram[j]; j 971 drivers/video/fbdev/via/hw.c int i, j; j 984 drivers/video/fbdev/via/hw.c for (j = start_index; j <= end_index; j++) { j 986 drivers/video/fbdev/via/hw.c reg_mask = reg_mask | (BIT0 << j); j 1821 drivers/video/fbdev/via/hw.c int j, cxres = 0, cyres = 0; j 1839 drivers/video/fbdev/via/hw.c for (j = 0; j < res_patch_table[0].table_length; j++) { j 1840 drivers/video/fbdev/via/hw.c index = res_patch_table[0].io_reg_table[j].index; j 1841 drivers/video/fbdev/via/hw.c port = res_patch_table[0].io_reg_table[j].port; j 1842 drivers/video/fbdev/via/hw.c value = res_patch_table[0].io_reg_table[j].value; j 1843 drivers/video/fbdev/via/hw.c mask = res_patch_table[0].io_reg_table[j].mask; j 764 drivers/video/fbdev/via/viafbdev.c int i, j = 0, cur_size = 64; j 882 drivers/video/fbdev/via/viafbdev.c cr_data->bak[j] = (u32) cr_data->data[i]; j 883 drivers/video/fbdev/via/viafbdev.c cr_data->bak[j + 1] = ~cr_data->bak[j]; j 884 drivers/video/fbdev/via/viafbdev.c j += 2; j 888 drivers/video/fbdev/via/viafbdev.c cr_data->bak[j] = (u32) cr_data->data[i]; j 889 drivers/video/fbdev/via/viafbdev.c cr_data->bak[j + 1] = 0x0; j 890 drivers/video/fbdev/via/viafbdev.c cr_data->bak[j + 2] = ~cr_data->bak[j]; j 891 drivers/video/fbdev/via/viafbdev.c cr_data->bak[j + 3] = ~cr_data->bak[j + 1]; j 892 drivers/video/fbdev/via/viafbdev.c j += 4; j 623 drivers/virtio/virtio_ring.c unsigned int i, j; j 662 drivers/virtio/virtio_ring.c for (j = 0; j < len / sizeof(struct vring_desc); j++) j 663 drivers/virtio/virtio_ring.c vring_unmap_one_split(vq, &indir_desc[j]); j 273 drivers/w1/w1_io.c int i, j; j 278 drivers/w1/w1_io.c for (j = 0; j < 8; ++j) { j 279 drivers/w1/w1_io.c if (j == 7) j 281 drivers/w1/w1_io.c tmp |= w1_touch_bit(dev, (buf[i] >> j) & 0x1) << j; j 372 drivers/watchdog/kempld_wdt.c int i, j; j 386 drivers/watchdog/kempld_wdt.c for (j = 0; j < 4; j++) { j 387 drivers/watchdog/kempld_wdt.c data_orig = kempld_read8(pld, index + j); j 388 drivers/watchdog/kempld_wdt.c kempld_write8(pld, index + j, 0x00); j 389 drivers/watchdog/kempld_wdt.c data = kempld_read8(pld, index + j); j 393 drivers/watchdog/kempld_wdt.c kempld_write8(pld, index + j, data_orig); j 394 drivers/watchdog/kempld_wdt.c mask |= 0xff << (j * 8); j 380 drivers/watchdog/wdat_wdt.c int j; j 411 drivers/watchdog/wdat_wdt.c for (j = 0; j < pdev->num_resources; j++) { j 412 drivers/watchdog/wdat_wdt.c res = &pdev->resource[j]; j 414 drivers/watchdog/wdat_wdt.c instr->reg = regs[j] + r.start - res->start; j 17 drivers/xen/arm-device.c unsigned int i, j, nr; j 28 drivers/xen/arm-device.c for (j = 0; j < nr; j++) { j 30 drivers/xen/arm-device.c xrp.gpfn = XEN_PFN_DOWN(r->start) + j; j 44 drivers/xen/arm-device.c unsigned int i, j, nr; j 73 drivers/xen/arm-device.c for (j = 0; j < nr; j++) { j 79 drivers/xen/arm-device.c gpfns[j] = XEN_PFN_DOWN(r->start) + j; j 80 drivers/xen/arm-device.c idxs[j] = XEN_PFN_DOWN(r->start) + j; j 25 drivers/xen/features.c int i, j; j 31 drivers/xen/features.c for (j = 0; j < 32; j++) j 32 drivers/xen/features.c xen_features[i * 32 + j] = !!(fi.submap & 1<<j); j 435 drivers/xen/xen-front-pgdir-shbuf.c int ret, i, j, cur_ref; j 446 drivers/xen/xen-front-pgdir-shbuf.c j = 0; j 458 drivers/xen/xen-front-pgdir-shbuf.c buf->grefs[j++] = cur_ref; j 462 drivers/xen/xen-front-pgdir-shbuf.c ret = buf->ops->grant_refs_for_buffer(buf, &priv_gref_head, j); j 363 drivers/xen/xenbus/xenbus_client.c int i, j; j 381 drivers/xen/xenbus/xenbus_client.c for (j = 0; j < i; j++) j 382 drivers/xen/xenbus/xenbus_client.c gnttab_end_foreign_access_ref(grefs[j], 0); j 475 drivers/xen/xenbus/xenbus_client.c int i, j; j 504 drivers/xen/xenbus/xenbus_client.c for (i = j = 0; i < nr_grefs; i++) { j 506 drivers/xen/xenbus/xenbus_client.c memset(&unmap[j], 0, sizeof(unmap[j])); j 507 drivers/xen/xenbus/xenbus_client.c gnttab_set_unmap_op(&unmap[j], (phys_addr_t)addrs[i], j 509 drivers/xen/xenbus/xenbus_client.c j++; j 513 drivers/xen/xenbus/xenbus_client.c if (HYPERVISOR_grant_table_op(GNTTABOP_unmap_grant_ref, unmap, j)) j 517 drivers/xen/xenbus/xenbus_client.c for (i = 0; i < j; i++) { j 437 drivers/xen/xenbus/xenbus_probe_frontend.c int i, j; j 447 drivers/xen/xenbus/xenbus_probe_frontend.c for (j = 0; j < dev_n; j++) j 448 drivers/xen/xenbus/xenbus_probe_frontend.c xenbus_check_frontend(devclass[i], dev[j]); j 53 fs/affs/file.c int i, j, key; j 81 fs/affs/file.c for (i = 1, j = off; j < AFFS_LC_SIZE; i++, j += off) j 82 fs/affs/file.c AFFS_I(inode)->i_ac[i] = AFFS_I(inode)->i_ac[j]; j 97 fs/affs/file.c j = AFFS_I(inode)->i_lc_mask + 1; j 99 fs/affs/file.c for (; j > 0; j--) { j 343 fs/affs/super.c int i, j; j 399 fs/affs/super.c j = PAGE_SIZE; j 401 fs/affs/super.c i = j = blocksize; j 405 fs/affs/super.c for (blocksize = i; blocksize <= j; blocksize <<= 1, size >>= 1) { j 20 fs/affs/symlink.c int i, j; j 30 fs/affs/symlink.c j = 0; j 42 fs/affs/symlink.c while (i < 1023 && lf->symname[j] != ':') j 43 fs/affs/symlink.c link[i++] = lf->symname[j++]; j 46 fs/affs/symlink.c j++; j 49 fs/affs/symlink.c while (i < 1023 && (c = lf->symname[j])) { j 56 fs/affs/symlink.c j++; j 167 fs/afs/dir.c unsigned int i, j, qty = PAGE_SIZE / sizeof(union afs_xdr_dir_block); j 183 fs/afs/dir.c for (j = 0; j < qty; j++) { j 184 fs/afs/dir.c union afs_xdr_dir_block *block = &dbuf->blocks[j]; j 186 fs/afs/dir.c pr_warn("[%02x] %32phN\n", i * qty + j, block); j 150 fs/afs/security.c int i, j; j 230 fs/afs/security.c i = j = 0; j 233 fs/afs/security.c if (j == i && permits->permits[i].key > key) { j 234 fs/afs/security.c new->permits[j].key = key; j 235 fs/afs/security.c new->permits[j].access = caller_access; j 236 fs/afs/security.c j++; j 238 fs/afs/security.c new->permits[j].key = permits->permits[i].key; j 239 fs/afs/security.c new->permits[j].access = permits->permits[i].access; j 240 fs/afs/security.c j++; j 244 fs/afs/security.c if (j == i) { j 245 fs/afs/security.c new->permits[j].key = key; j 246 fs/afs/security.c new->permits[j].access = caller_access; j 36 fs/afs/server_list.c int ret = -ENOMEM, nr_servers = 0, i, j; j 64 fs/afs/server_list.c for (j = 0; j < slist->nr_servers; j++) j 65 fs/afs/server_list.c if (memcmp(&slist->servers[j].server->uuid, j 69 fs/afs/server_list.c if (j < slist->nr_servers) { j 70 fs/afs/server_list.c if (slist->servers[j].server == server) { j 76 fs/afs/server_list.c memmove(slist->servers + j + 1, j 77 fs/afs/server_list.c slist->servers + j, j 78 fs/afs/server_list.c (slist->nr_servers - j) * sizeof(struct afs_server_entry)); j 81 fs/afs/server_list.c slist->servers[j].server = server; j 105 fs/afs/server_list.c int i, j; j 119 fs/afs/server_list.c for (j = 0; j < new->nr_servers; j++) { j 120 fs/afs/server_list.c if (new->servers[j].server == cur) { j 121 fs/afs/server_list.c new->preferred = j; j 130 fs/afs/server_list.c j = 0; j 131 fs/afs/server_list.c while (i < old->nr_servers && j < new->nr_servers) { j 132 fs/afs/server_list.c if (new->servers[j].server == old->servers[i].server) { j 135 fs/afs/server_list.c new->servers[j].cb_interest = cbi; j 139 fs/afs/server_list.c j++; j 143 fs/afs/server_list.c if (new->servers[j].server < old->servers[i].server) { j 144 fs/afs/server_list.c j++; j 166 fs/afs/vl_list.c int ret = -ENOMEM, nr_servers, i, j; j 292 fs/afs/vl_list.c for (j = 0; j < vllist->nr_servers; j++) { j 293 fs/afs/vl_list.c if (bs.priority < vllist->servers[j].priority) j 295 fs/afs/vl_list.c if (bs.priority == vllist->servers[j].priority && j 296 fs/afs/vl_list.c bs.weight > vllist->servers[j].weight) j 300 fs/afs/vl_list.c if (j < vllist->nr_servers) { j 301 fs/afs/vl_list.c memmove(vllist->servers + j + 1, j 302 fs/afs/vl_list.c vllist->servers + j, j 303 fs/afs/vl_list.c (vllist->nr_servers - j) * sizeof(struct afs_vlserver_entry)); j 308 fs/afs/vl_list.c vllist->servers[j].priority = bs.priority; j 309 fs/afs/vl_list.c vllist->servers[j].weight = bs.weight; j 310 fs/afs/vl_list.c vllist->servers[j].server = server; j 58 fs/afs/vlclient.c int j; j 82 fs/afs/vlclient.c for (j = 0; j < 6; j++) j 83 fs/afs/vlclient.c uuid->node[j] = (u8)ntohl(xdr->node[j]); j 310 fs/befs/datastream.c int i, j; j 339 fs/befs/datastream.c for (j = 0; j < arraylen; ++j) { j 340 fs/befs/datastream.c int len = fs16_to_cpu(sb, array[j].len); j 345 fs/befs/datastream.c fs32_to_cpu(sb, array[j].allocation_group); j 347 fs/befs/datastream.c fs16_to_cpu(sb, array[j].start) + offset; j 349 fs/befs/datastream.c fs16_to_cpu(sb, array[j].len) - offset; j 356 fs/befs/datastream.c j + (i * arraylen)); j 1180 fs/binfmt_elf.c int retval, error, i, j; j 1201 fs/binfmt_elf.c j = sizeof(struct elf_phdr) * elf_ex.e_phnum; j 1205 fs/binfmt_elf.c elf_phdata = kmalloc(j, GFP_KERNEL); j 1212 fs/binfmt_elf.c retval = kernel_read(file, eppnt, j, &pos); j 1213 fs/binfmt_elf.c if (retval != j) j 1216 fs/binfmt_elf.c for (j = 0, i = 0; i<elf_ex.e_phnum; i++) j 1218 fs/binfmt_elf.c j++; j 1219 fs/binfmt_elf.c if (j != 1) j 929 fs/binfmt_flat.c int i, j; j 955 fs/binfmt_flat.c for (j = 0; j < MAX_SHARED_LIBS; j++) { j 956 fs/binfmt_flat.c unsigned long val = libinfo.lib_list[j].loaded ? j 957 fs/binfmt_flat.c libinfo.lib_list[j].start_data : UNLOADED_LIB; j 960 fs/binfmt_flat.c p -= j + 1; j 99 fs/binfmt_misc.c int j; j 115 fs/binfmt_misc.c for (j = 0; j < e->size; j++) j 116 fs/binfmt_misc.c if ((*s++ ^ e->magic[j]) & e->mask[j]) j 119 fs/binfmt_misc.c for (j = 0; j < e->size; j++) j 120 fs/binfmt_misc.c if ((*s++ ^ e->magic[j])) j 123 fs/binfmt_misc.c if (j == e->size) j 1626 fs/btrfs/check-integrity.c unsigned int j; j 1633 fs/btrfs/check-integrity.c for (j = i; j < num_pages; j++) { j 1634 fs/btrfs/check-integrity.c ret = bio_add_page(bio, block_ctx->pagev[j], j 1639 fs/btrfs/check-integrity.c if (j == i) { j 1650 fs/btrfs/check-integrity.c dev_bytenr += (j - i) * PAGE_SIZE; j 1651 fs/btrfs/check-integrity.c i = j; j 595 fs/btrfs/ctree.c int i, j; j 601 fs/btrfs/ctree.c for (j = nritems - 1; j > i; j--) j 602 fs/btrfs/ctree.c rb_erase(&tm_list[j]->node, j 170 fs/btrfs/disk-io.c int i, j; j 176 fs/btrfs/disk-io.c for (j = 0; j < ARRAY_SIZE(ks->names); j++) j 177 fs/btrfs/disk-io.c snprintf(ks->names[j], sizeof(ks->names[j]), j 178 fs/btrfs/disk-io.c "btrfs-%s-%02d", ks->name_stem, j); j 1237 fs/btrfs/extent-tree.c int j, ret = 0; j 1256 fs/btrfs/extent-tree.c for (j = 0; j < BTRFS_SUPER_MIRROR_MAX; j++) { j 1257 fs/btrfs/extent-tree.c u64 sb_start = btrfs_sb_offset(j); j 2218 fs/btrfs/free-space-cache.c unsigned long j; j 2228 fs/btrfs/free-space-cache.c j = find_next_zero_bit(bitmap->bitmap, BITS_PER_BITMAP, i); j 2229 fs/btrfs/free-space-cache.c if (j == i) j 2231 fs/btrfs/free-space-cache.c bytes = (j - i) * ctl->unit; j 2252 fs/btrfs/free-space-cache.c unsigned long j; j 2269 fs/btrfs/free-space-cache.c j = 0; j 2271 fs/btrfs/free-space-cache.c for_each_clear_bit_from(j, bitmap->bitmap, BITS_PER_BITMAP) { j 2272 fs/btrfs/free-space-cache.c if (j > i) j 2274 fs/btrfs/free-space-cache.c prev_j = j; j 837 fs/btrfs/reada.c int j; j 854 fs/btrfs/reada.c for (j = 0; j < zone->ndevs; ++j) { j 856 fs/btrfs/reada.c zone->devs[j]->devid); j 881 fs/btrfs/reada.c for (j = 0; j < re->zones[i]->ndevs; ++j) { j 883 fs/btrfs/reada.c re->zones[i]->devs[j]->devid); j 913 fs/btrfs/reada.c for (j = 0; j < re->zones[i]->ndevs; ++j) { j 915 fs/btrfs/reada.c re->zones[i]->devs[j]->devid); j 2668 fs/btrfs/scrub.c int j = 0; j 2694 fs/btrfs/scrub.c j++; j 2696 fs/btrfs/scrub.c *offset = last_offset + j * map->stripe_len; j 1993 fs/btrfs/super.c int j; j 1998 fs/btrfs/super.c for (j = i + 1 - num_stripes; j <= i; j++) j 1999 fs/btrfs/super.c devices_info[j].max_avail -= alloc_size; j 299 fs/btrfs/tests/extent-io-tests.c unsigned long i, j; j 362 fs/btrfs/tests/extent-io-tests.c for (j = 0; j < 32; j++) { j 363 fs/btrfs/tests/extent-io-tests.c if (x & (1U << j)) { j 364 fs/btrfs/tests/extent-io-tests.c bitmap_set(bitmap, i * 32 + j, 1); j 365 fs/btrfs/tests/extent-io-tests.c extent_buffer_bitmap_set(eb, 0, i * 32 + j, 1); j 4983 fs/btrfs/volumes.c int j; j 5159 fs/btrfs/volumes.c for (j = 0; j < dev_stripes; ++j) { j 5160 fs/btrfs/volumes.c int s = i * dev_stripes + j; j 5163 fs/btrfs/volumes.c j * stripe_size; j 6340 fs/btrfs/volumes.c int i, j, nr = 0; j 6381 fs/btrfs/volumes.c for (j = 0; j < nr; j++) { j 6382 fs/btrfs/volumes.c if (buf[j] == bytenr) j 6385 fs/btrfs/volumes.c if (j == nr) { j 700 fs/ceph/addr.c int i, j; j 736 fs/ceph/addr.c for (j = 0; j < num_pages; j++) { j 737 fs/ceph/addr.c page = osd_data->pages[j]; j 1006 fs/ceph/addr.c unsigned j, n = 0; j 1008 fs/ceph/addr.c for (j = 0; j < pvec_pages; j++) { j 1009 fs/ceph/addr.c if (!pvec.pages[j]) j 1011 fs/ceph/addr.c if (n < j) j 1012 fs/ceph/addr.c pvec.pages[n] = pvec.pages[j]; j 203 fs/ceph/caps.c int i, j; j 238 fs/ceph/caps.c for (j = 0; j < mdsc->max_sessions; j++) { j 239 fs/ceph/caps.c s = __ceph_lookup_mds_session(mdsc, j); j 109 fs/ceph/mdsmap.c int i, j, n; j 238 fs/ceph/mdsmap.c for (j = 0; j < num_export_targets; j++) j 239 fs/ceph/mdsmap.c info->export_targets[j] = j 225 fs/ceph/super.c int i, j = 0; j 228 fs/ceph/super.c if (path[i] != '/' || j < 1 || path[j - 1] != '/') j 229 fs/ceph/super.c path[j++] = path[i]; j 232 fs/ceph/super.c if (j > 1 && path[j - 1] == '/') j 233 fs/ceph/super.c j--; j 234 fs/ceph/super.c path[j] = '\0'; j 202 fs/cifs/cifs_debug.c int i, j; j 381 fs/cifs/cifs_debug.c j = 0; j 383 fs/cifs/cifs_debug.c seq_printf(m, "\n\t%d) IPC: ", j); j 392 fs/cifs/cifs_debug.c ++j; j 393 fs/cifs/cifs_debug.c seq_printf(m, "\n\t%d) ", j); j 417 fs/cifs/cifs_debug.c for (j = 0; j < ses->iface_count; j++) { j 418 fs/cifs/cifs_debug.c seq_printf(m, "\t%d)", j); j 419 fs/cifs/cifs_debug.c cifs_dump_iface(m, &ses->iface_list[j]); j 499 fs/cifs/cifs_debug.c int j; j 541 fs/cifs/cifs_debug.c for (j = 0; j < NUMBER_OF_SMB2_COMMANDS; j++) j 542 fs/cifs/cifs_debug.c seq_printf(m, " %d\t\t%d\t%llu\t\t%u\t%u\n", j, j 543 fs/cifs/cifs_debug.c atomic_read(&server->num_cmds[j]), j 544 fs/cifs/cifs_debug.c server->time_per_cmd[j], j 545 fs/cifs/cifs_debug.c server->fastest_cmd[j], j 546 fs/cifs/cifs_debug.c server->slowest_cmd[j]); j 547 fs/cifs/cifs_debug.c for (j = 0; j < NUMBER_OF_SMB2_COMMANDS; j++) j 548 fs/cifs/cifs_debug.c if (atomic_read(&server->smb2slowcmd[j])) j 550 fs/cifs/cifs_debug.c atomic_read(&server->smb2slowcmd[j]), j 551 fs/cifs/cifs_debug.c server->hostname, j); j 464 fs/cifs/cifs_unicode.c int j = 0; j 477 fs/cifs/cifs_unicode.c for (i = 0; i < srclen; j++) { j 534 fs/cifs/cifs_unicode.c put_unaligned(dst_char, &target[j]); j 539 fs/cifs/cifs_unicode.c put_unaligned(dst_char, &target[j]); j 541 fs/cifs/cifs_unicode.c j++; j 542 fs/cifs/cifs_unicode.c put_unaligned(dst_char, &target[j]); j 545 fs/cifs/cifs_unicode.c put_unaligned(dst_char, &target[j]); j 547 fs/cifs/cifs_unicode.c j++; j 548 fs/cifs/cifs_unicode.c put_unaligned(dst_char, &target[j]); j 550 fs/cifs/cifs_unicode.c j++; j 551 fs/cifs/cifs_unicode.c put_unaligned(dst_char, &target[j]); j 566 fs/cifs/cifs_unicode.c put_unaligned(dst_char, &target[j]); j 570 fs/cifs/cifs_unicode.c put_unaligned(0, &target[j]); /* Null terminate target unicode string */ j 572 fs/cifs/cifs_unicode.c return j; j 2080 fs/cifs/cifssmb.c unsigned int j, nr_pages, wsize, tailsz, cur_len; j 2103 fs/cifs/cifssmb.c for (j = 0; j < nr_pages; j++) { j 2104 fs/cifs/cifssmb.c wdata2->pages[j] = wdata->pages[i + j]; j 2105 fs/cifs/cifssmb.c lock_page(wdata2->pages[j]); j 2106 fs/cifs/cifssmb.c clear_page_dirty_for_io(wdata2->pages[j]); j 2129 fs/cifs/cifssmb.c for (j = 0; j < nr_pages; j++) { j 2130 fs/cifs/cifssmb.c unlock_page(wdata2->pages[j]); j 2132 fs/cifs/cifssmb.c SetPageError(wdata2->pages[j]); j 2133 fs/cifs/cifssmb.c end_page_writeback(wdata2->pages[j]); j 2134 fs/cifs/cifssmb.c put_page(wdata2->pages[j]); j 1638 fs/cifs/connect.c unsigned int temp_len, i, j; j 2251 fs/cifs/connect.c for (i = 0, j = 0; i < temp_len; i++, j++) { j 2252 fs/cifs/connect.c vol->password[j] = value[i]; j 2258 fs/cifs/connect.c vol->password[j] = '\0'; j 3750 fs/cifs/connect.c unsigned int i, j; j 3752 fs/cifs/connect.c for (i = 0, j = 0; i < (length); i++) { j 3754 fs/cifs/connect.c target[j] = 'A' + (0x0F & (source[i] >> 4)); j 3755 fs/cifs/connect.c target[j+1] = 'A' + (0x0F & source[i]); j 3756 fs/cifs/connect.c j += 2; j 3596 fs/cifs/smb2ops.c unsigned int j; j 3610 fs/cifs/smb2ops.c for (j = 0; j < rqst[i].rq_nvec; j++) { j 3615 fs/cifs/smb2ops.c skip = (i == 0) && (j == 0) ? 20 : 0; j 3617 fs/cifs/smb2ops.c rqst[i].rq_iov[j].iov_base + skip, j 3618 fs/cifs/smb2ops.c rqst[i].rq_iov[j].iov_len - skip); j 3621 fs/cifs/smb2ops.c for (j = 0; j < rqst[i].rq_npages; j++) { j 3624 fs/cifs/smb2ops.c rqst_page_get_length(&rqst[i], j, &len, &offset); j 3625 fs/cifs/smb2ops.c sg_set_page(&sg[idx++], rqst[i].rq_pages[j], len, offset); j 3760 fs/cifs/smb2ops.c int i, j; j 3764 fs/cifs/smb2ops.c for (j = rqst[i].rq_npages - 1; j >= 0; j--) j 3765 fs/cifs/smb2ops.c put_page(rqst[i].rq_pages[j]); j 3792 fs/cifs/smb2ops.c int i, j; j 3812 fs/cifs/smb2ops.c for (j = 0; j < npages; j++) { j 3813 fs/cifs/smb2ops.c pages[j] = alloc_page(GFP_KERNEL|__GFP_HIGHMEM); j 3814 fs/cifs/smb2ops.c if (!pages[j]) j 3819 fs/cifs/smb2ops.c for (j = 0; j < npages; j++) { j 3823 fs/cifs/smb2ops.c rqst_page_get_length(&new_rq[i], j, &len, &offset); j 3825 fs/cifs/smb2ops.c dst = (char *) kmap(new_rq[i].rq_pages[j]) + offset; j 3826 fs/cifs/smb2ops.c src = (char *) kmap(old_rq[i - 1].rq_pages[j]) + offset; j 3829 fs/cifs/smb2ops.c kunmap(new_rq[i].rq_pages[j]); j 3830 fs/cifs/smb2ops.c kunmap(old_rq[i - 1].rq_pages[j]); j 2078 fs/cifs/smbdirect.c int start, i, j; j 2152 fs/cifs/smbdirect.c for (j = 0; j < nvecs; j++) { j 2155 fs/cifs/smbdirect.c j*max_iov_size; j 2157 fs/cifs/smbdirect.c if (j == nvecs-1) j 2166 fs/cifs/smbdirect.c j, vec.iov_base, vec.iov_len, j 2208 fs/cifs/smbdirect.c for (j = 0; j < nvecs; j++) { j 2210 fs/cifs/smbdirect.c if (j == nvecs-1) j 2211 fs/cifs/smbdirect.c size = buflen - j*max_iov_size; j 2215 fs/cifs/smbdirect.c i, j*max_iov_size+offset, size, j 2219 fs/cifs/smbdirect.c j*max_iov_size + offset, j 323 fs/cifs/transport.c unsigned int i, j; j 351 fs/cifs/transport.c for (j = 0; j < num_rqst; j++) j 352 fs/cifs/transport.c send_length += smb_rqst_len(server, &rqst[j]); j 382 fs/cifs/transport.c for (j = 0; j < num_rqst; j++) { j 383 fs/cifs/transport.c iov = rqst[j].rq_iov; j 384 fs/cifs/transport.c n_vec = rqst[j].rq_nvec; j 401 fs/cifs/transport.c for (i = 0; i < rqst[j].rq_npages; i++) { j 404 fs/cifs/transport.c bvec.bv_page = rqst[j].rq_pages[i]; j 405 fs/cifs/transport.c rqst_page_get_length(&rqst[j], i, &bvec.bv_len, j 1000 fs/cifs/transport.c int i, j, optype, rc = 0; j 1059 fs/cifs/transport.c for (j = 0; j < num_rqst; j++) j 1060 fs/cifs/transport.c add_credits(server, &credits[j], optype); j 1068 fs/cifs/transport.c for (j = 0; j < i; j++) j 1069 fs/cifs/transport.c cifs_delete_mid(midQ[j]); j 1073 fs/cifs/transport.c for (j = 0; j < num_rqst; j++) j 1074 fs/cifs/transport.c add_credits(server, &credits[j], optype); j 290 fs/ecryptfs/keystore.c size_t j; j 336 fs/ecryptfs/keystore.c for (j = 0; j < crypt_stat->key_size; j++) j 337 fs/ecryptfs/keystore.c checksum += crypt_stat->key[j]; j 591 fs/ecryptfs/keystore.c size_t j; j 769 fs/ecryptfs/keystore.c for (s->j = 0; s->j < (s->num_rand_bytes - 1); s->j++) { j 770 fs/ecryptfs/keystore.c s->block_aligned_filename[s->j] = j 771 fs/ecryptfs/keystore.c s->hash[(s->j % ECRYPTFS_TAG_70_DIGEST_SIZE)]; j 772 fs/ecryptfs/keystore.c if ((s->j % ECRYPTFS_TAG_70_DIGEST_SIZE) j 786 fs/ecryptfs/keystore.c if (s->block_aligned_filename[s->j] == '\0') j 787 fs/ecryptfs/keystore.c s->block_aligned_filename[s->j] = ECRYPTFS_NON_NULL; j 185 fs/efs/super.c int j; j 188 fs/efs/super.c for(j = 0; j < VDNAMESIZE; j++) { j 189 fs/efs/super.c name[j] = vh->vh_vd[i].vd_name[j]; j 191 fs/efs/super.c name[j] = (char) 0; j 40 fs/erofs/decompressor.c unsigned int i, j, top; j 43 fs/erofs/decompressor.c for (i = j = 0; i < nr; ++i, ++j) { j 47 fs/erofs/decompressor.c if (j >= LZ4_MAX_DISTANCE_PAGES) j 48 fs/erofs/decompressor.c j = 0; j 51 fs/erofs/decompressor.c if (test_bit(j, bounced)) { j 58 fs/erofs/decompressor.c __clear_bit(j, bounced); j 70 fs/erofs/decompressor.c __set_bit(j, bounced); j 838 fs/ext2/super.c int i, j; j 1109 fs/ext2/super.c for (j = 0; j < i; j++) j 1110 fs/ext2/super.c brelse (sbi->s_group_desc[j]); j 329 fs/ext4/indirect.c int i, j, err, len = 1; j 366 fs/ext4/indirect.c for (j = 0; j < len; j++) j 551 fs/ext4/mballoc.c int j; j 594 fs/ext4/mballoc.c for (j = 0; j < (1 << order); j++) { j 595 fs/ext4/mballoc.c k = (i * (1 << order)) + j; j 618 fs/ext4/mballoc.c for (j = 0; j < e4b->bd_blkbits + 1; j++) { j 619 fs/ext4/mballoc.c buddy2 = mb_find_buddy(e4b, j, &max2); j 620 fs/ext4/mballoc.c k = i >> j; j 2587 fs/ext4/mballoc.c unsigned i, j; j 2674 fs/ext4/mballoc.c for (j = 0; j < PREALLOC_TB_SIZE; j++) j 2675 fs/ext4/mballoc.c INIT_LIST_HEAD(&lg->lg_prealloc_list[j]); j 535 fs/ext4/resize.c int reserved_gdb, i, j, err = 0, err2; j 570 fs/ext4/resize.c for (j = 0; j < gdblocks; j++, block++) { j 591 fs/ext4/resize.c s_group_desc, j)->b_data, gdb->b_size); j 680 fs/ext4/resize.c for (j = 0; j < GROUP_TABLE_COUNT; j++) { j 681 fs/ext4/resize.c count = group_table_count[j]; j 682 fs/ext4/resize.c start = (&group_data[0].block_bitmap)[j]; j 685 fs/ext4/resize.c block += group_table_count[j]; j 686 fs/ext4/resize.c if (block == (&group_data[i].block_bitmap)[j]) { j 687 fs/ext4/resize.c count += group_table_count[j]; j 698 fs/ext4/resize.c count = group_table_count[j]; j 699 fs/ext4/resize.c start = (&group_data[i].block_bitmap)[j]; j 2347 fs/ext4/super.c int size, i, j; j 2368 fs/ext4/super.c for (j = sbi->s_flex_groups_allocated; j < i; j++) j 2369 fs/ext4/super.c kvfree(new_groups[j]); j 3468 fs/ext4/super.c int s, j, count = 0; j 3491 fs/ext4/super.c for (j = 0; j < sbi->s_itb_per_group; j++, b++) { j 3503 fs/ext4/super.c j = ext4_bg_num_gdb(sb, grp); j 3504 fs/ext4/super.c if (s + j > EXT4_BLOCKS_PER_GROUP(sb)) { j 3506 fs/ext4/super.c "descriptor blocks: %d", j); j 3507 fs/ext4/super.c j = EXT4_BLOCKS_PER_GROUP(sb) - s; j 3509 fs/ext4/super.c count += j; j 3510 fs/ext4/super.c for (; j > 0; j--) j 5308 fs/ext4/super.c int i, j; j 5333 fs/ext4/super.c for (j = 0; j < i; j++) j 5334 fs/ext4/super.c kfree(old_opts.s_qf_names[j]); j 667 fs/f2fs/checkpoint.c block_t start_blk, orphan_blocks, i, j; j 714 fs/f2fs/checkpoint.c for (j = 0; j < le32_to_cpu(orphan_blk->entry_count); j++) { j 715 fs/f2fs/checkpoint.c nid_t ino = le32_to_cpu(orphan_blk->ino[j]); j 283 fs/f2fs/debug.c int j; j 426 fs/f2fs/debug.c for (j = 0; j < si->util_valid; j++) j 430 fs/f2fs/debug.c for (j = 0; j < si->util_invalid; j++) j 434 fs/f2fs/debug.c for (j = 0; j < si->util_free; j++) j 3435 fs/f2fs/segment.c int i, j, offset; j 3469 fs/f2fs/segment.c for (j = 0; j < blk_off; j++) { j 3472 fs/f2fs/segment.c seg_i->sum_blk->entries[j] = *s; j 3614 fs/f2fs/segment.c int i, j; j 3639 fs/f2fs/segment.c for (j = 0; j < blkoff; j++) { j 3647 fs/f2fs/segment.c *summary = seg_i->sum_blk->entries[j]; j 1588 fs/f2fs/super.c int i, j; j 1606 fs/f2fs/super.c for (j = 0; j < i; j++) j 1607 fs/f2fs/super.c kvfree(org_mount_opt.s_qf_names[j]); j 2668 fs/f2fs/super.c int i, j; j 2723 fs/f2fs/super.c for (j = i + 1; j < NR_CURSEG_NODE_TYPE; j++) { j 2725 fs/f2fs/super.c le32_to_cpu(ckpt->cur_node_segno[j])) { j 2727 fs/f2fs/super.c i, j, j 2737 fs/f2fs/super.c for (j = i + 1; j < NR_CURSEG_DATA_TYPE; j++) { j 2739 fs/f2fs/super.c le32_to_cpu(ckpt->cur_data_segno[j])) { j 2741 fs/f2fs/super.c i, j, j 2748 fs/f2fs/super.c for (j = 0; j < NR_CURSEG_DATA_TYPE; j++) { j 2750 fs/f2fs/super.c le32_to_cpu(ckpt->cur_data_segno[j])) { j 2752 fs/f2fs/super.c i, j, j 3319 fs/f2fs/super.c int j; j 3331 fs/f2fs/super.c for (j = HOT; j < n; j++) { j 3332 fs/f2fs/super.c init_rwsem(&sbi->write_io[i][j].io_rwsem); j 3333 fs/f2fs/super.c sbi->write_io[i][j].sbi = sbi; j 3334 fs/f2fs/super.c sbi->write_io[i][j].bio = NULL; j 3335 fs/f2fs/super.c spin_lock_init(&sbi->write_io[i][j].io_lock); j 3336 fs/f2fs/super.c INIT_LIST_HEAD(&sbi->write_io[i][j].io_list); j 638 fs/f2fs/sysfs.c int i, j; j 648 fs/f2fs/sysfs.c for (j = 0; j < SIT_VBLOCK_MAP_SIZE; j++) j 649 fs/f2fs/sysfs.c seq_printf(seq, " %.2x", se->cur_valid_map[j]); j 361 fs/fat/dir.c int chi, chl, i, j, k; j 378 fs/fat/dir.c for (i = 0, j = 0; i < 8;) { j 383 fs/fat/dir.c &uni_name[j++], opt_shortname, j 391 fs/fat/dir.c uni_len = j; j 394 fs/fat/dir.c uni_len = j; j 407 fs/fat/dir.c j = uni_len; j 408 fs/fat/dir.c fat_short2uni(nls_disk, ".", 1, &uni_name[j++]); j 419 fs/fat/dir.c &uni_name[j++], opt_shortname, j 428 fs/fat/dir.c uni_len = j; j 431 fs/fat/dir.c uni_len = j; j 376 fs/file.c unsigned int i, j = 0; j 380 fs/file.c i = j * BITS_PER_LONG; j 383 fs/file.c set = fdt->open_fds[j++]; j 214 fs/freevxfs/vxfs_super.c u32 j; j 250 fs/freevxfs/vxfs_super.c j = fs32_to_cpu(infp, rsbp->vs_version); j 251 fs/freevxfs/vxfs_super.c if ((j < 2 || j > 4) && !silent) { j 252 fs/freevxfs/vxfs_super.c printk(KERN_NOTICE "vxfs: unsupported VxFS version (%d)\n", j); j 257 fs/freevxfs/vxfs_super.c printk(KERN_DEBUG "vxfs: supported VxFS version (%d)\n", j); j 267 fs/freevxfs/vxfs_super.c j = fs32_to_cpu(infp, rsbp->vs_bsize); j 268 fs/freevxfs/vxfs_super.c if (!sb_set_blocksize(sbp, j)) { j 216 fs/hfs/bitmap.c int j = 32 - i; j 217 fs/hfs/bitmap.c mask = 0xffffffffU << j; j 218 fs/hfs/bitmap.c if (j > count) { j 224 fs/hfs/bitmap.c count -= j; j 196 fs/hfsplus/bitmap.c int j = 32 - i; j 197 fs/hfsplus/bitmap.c mask = 0xffffffffU << j; j 198 fs/hfsplus/bitmap.c if (j > count) { j 204 fs/hfsplus/bitmap.c count -= j; j 363 fs/hpfs/alloc.c int i, j; j 367 fs/hpfs/alloc.c for (j = 0; j < 512; j++) { j 369 fs/hpfs/alloc.c if (!le32_to_cpu(bmp[j])) continue; j 370 fs/hpfs/alloc.c for (k = le32_to_cpu(bmp[j]); k; k >>= 1) if (k & 1) if (!--n) { j 388 fs/hpfs/alloc.c for (j = 0; j < 512; j++) { j 390 fs/hpfs/alloc.c if (!le32_to_cpu(bmp[j])) continue; j 392 fs/hpfs/alloc.c if ((le32_to_cpu(bmp[j]) & k) == k) { j 406 fs/hpfs/anode.c int i, j, nodes; j 435 fs/hpfs/anode.c for (j = i + 1; j < btree->n_used_nodes; j++) j 436 fs/hpfs/anode.c hpfs_ea_remove(s, le32_to_cpu(btree->u.internal[j].down), 1, 0); j 469 fs/hpfs/anode.c for (j = i + 1; j < btree->n_used_nodes; j++) j 470 fs/hpfs/anode.c hpfs_free_sectors(s, le32_to_cpu(btree->u.external[j].disk_secno), le32_to_cpu(btree->u.external[j].length)); j 55 fs/hpfs/dnode.c loff_t **i, **j; j 61 fs/hpfs/dnode.c for (j = i + 1; *j; j++) ; j 62 fs/hpfs/dnode.c *i = *(j - 1); j 63 fs/hpfs/dnode.c *(j - 1) = NULL; j 64 fs/hpfs/dnode.c if (j - 1 == hpfs_inode->i_rddir_off) { j 95 fs/hpfs/name.c int i,j; j 100 fs/hpfs/name.c for (j = i + 1; j < len; j++) j 101 fs/hpfs/name.c if (name[j] == '.' || no_dos_char(name[i])) return 1; j 102 fs/hpfs/name.c return j - i > 4; j 3398 fs/io_uring.c int i, j; j 3406 fs/io_uring.c for (j = 0; j < imu->nr_bvecs; j++) j 3407 fs/io_uring.c put_user_page(imu->bvec[j].bv_page); j 3451 fs/io_uring.c int i, j, got_pages = 0; j 3533 fs/io_uring.c for (j = 0; j < nr_pages; j++) { j 3534 fs/io_uring.c struct vm_area_struct *vma = vmas[j]; j 3561 fs/io_uring.c for (j = 0; j < nr_pages; j++) { j 3565 fs/io_uring.c imu->bvec[j].bv_page = pages[j]; j 3566 fs/io_uring.c imu->bvec[j].bv_len = vec_len; j 3567 fs/io_uring.c imu->bvec[j].bv_offset = off; j 92 fs/jbd2/commit.c static void jbd2_commit_block_csum_set(journal_t *j, struct buffer_head *bh) j 97 fs/jbd2/commit.c if (!jbd2_journal_has_csum_v2or3(j)) j 104 fs/jbd2/commit.c csum = jbd2_chksum(j, j->j_csum_seed, bh->b_data, j->j_blocksize); j 317 fs/jbd2/commit.c static void write_tag_block(journal_t *j, journal_block_tag_t *tag, j 321 fs/jbd2/commit.c if (jbd2_has_feature_64bit(j)) j 325 fs/jbd2/commit.c static void jbd2_block_tag_csum_set(journal_t *j, journal_block_tag_t *tag, j 334 fs/jbd2/commit.c if (!jbd2_journal_has_csum_v2or3(j)) j 339 fs/jbd2/commit.c csum32 = jbd2_chksum(j, j->j_csum_seed, (__u8 *)&seq, sizeof(seq)); j 340 fs/jbd2/commit.c csum32 = jbd2_chksum(j, csum32, addr + offset_in_page(bh->b_data), j 344 fs/jbd2/commit.c if (jbd2_has_feature_csum3(j)) j 121 fs/jbd2/journal.c static int jbd2_verify_csum_type(journal_t *j, journal_superblock_t *sb) j 123 fs/jbd2/journal.c if (!jbd2_journal_has_csum_v2or3_feature(j)) j 129 fs/jbd2/journal.c static __be32 jbd2_superblock_csum(journal_t *j, journal_superblock_t *sb) j 136 fs/jbd2/journal.c csum = jbd2_chksum(j, ~0, (char *)sb, sizeof(journal_superblock_t)); j 855 fs/jbd2/journal.c void jbd2_descriptor_block_csum_set(journal_t *j, struct buffer_head *bh) j 860 fs/jbd2/journal.c if (!jbd2_journal_has_csum_v2or3(j)) j 863 fs/jbd2/journal.c tail = (struct jbd2_journal_block_tail *)(bh->b_data + j->j_blocksize - j 866 fs/jbd2/journal.c csum = jbd2_chksum(j, j->j_csum_seed, bh->b_data, j->j_blocksize); j 174 fs/jbd2/recovery.c static int jbd2_descriptor_block_csum_verify(journal_t *j, void *buf) j 180 fs/jbd2/recovery.c if (!jbd2_journal_has_csum_v2or3(j)) j 183 fs/jbd2/recovery.c tail = (struct jbd2_journal_block_tail *)(buf + j->j_blocksize - j 187 fs/jbd2/recovery.c calculated = jbd2_chksum(j, j->j_csum_seed, buf, j->j_blocksize); j 378 fs/jbd2/recovery.c static int jbd2_commit_block_csum_verify(journal_t *j, void *buf) j 384 fs/jbd2/recovery.c if (!jbd2_journal_has_csum_v2or3(j)) j 390 fs/jbd2/recovery.c calculated = jbd2_chksum(j, j->j_csum_seed, buf, j->j_blocksize); j 396 fs/jbd2/recovery.c static int jbd2_block_tag_csum_verify(journal_t *j, journal_block_tag_t *tag, j 403 fs/jbd2/recovery.c if (!jbd2_journal_has_csum_v2or3(j)) j 407 fs/jbd2/recovery.c csum32 = jbd2_chksum(j, j->j_csum_seed, (__u8 *)&seq, sizeof(seq)); j 408 fs/jbd2/recovery.c csum32 = jbd2_chksum(j, csum32, buf, j->j_blocksize); j 410 fs/jbd2/recovery.c if (jbd2_has_feature_csum3(j)) j 3375 fs/jfs/jfs_dmap.c int i, i0 = true, j, j0 = true, k, n; j 3430 fs/jfs/jfs_dmap.c for (j = 0; j < k && i < agno; j++, i++) { j 3480 fs/jfs/jfs_dmap.c j = (blkno & (MAXL1SIZE - 1)) >> L2MAXL0SIZE; j 3481 fs/jfs/jfs_dmap.c l1leaf = l1dcp->stree + CTLLEAFIND + j; j 3493 fs/jfs/jfs_dmap.c j = 0; j 3501 fs/jfs/jfs_dmap.c for (; j < LPERCTL; j++) { j 3587 fs/jfs/jfs_dmap.c if (j > 0) j 3603 fs/jfs/jfs_dmap.c *l2leaf = dbInitDmapCtl(l1dcp, 1, ++j); j 2157 fs/jfs/jfs_imap.c int i, j; j 2277 fs/jfs/jfs_imap.c for (j = 0; j < INOSPERPAGE; j++, dp++, ino++) { j 129 fs/kernfs/dir.c int i, j; j 158 fs/kernfs/dir.c for (kn = kn_to, j = 0; j < i; j++) j 79 fs/minix/bitmap.c int j; j 82 fs/minix/bitmap.c j = minix_find_first_zero_bit(bh->b_data, bits_per_zone); j 83 fs/minix/bitmap.c if (j < bits_per_zone) { j 84 fs/minix/bitmap.c minix_set_bit(j, bh->b_data); j 87 fs/minix/bitmap.c j += i * bits_per_zone + sbi->s_firstdatazone-1; j 88 fs/minix/bitmap.c if (j < sbi->s_firstdatazone || j >= sbi->s_nzones) j 90 fs/minix/bitmap.c return j; j 220 fs/minix/bitmap.c unsigned long j; j 227 fs/minix/bitmap.c j = bits_per_zone; j 233 fs/minix/bitmap.c j = minix_find_first_zero_bit(bh->b_data, bits_per_zone); j 234 fs/minix/bitmap.c if (j < bits_per_zone) j 237 fs/minix/bitmap.c if (!bh || j >= bits_per_zone) { j 242 fs/minix/bitmap.c if (minix_test_and_set_bit(j, bh->b_data)) { /* shouldn't happen */ j 250 fs/minix/bitmap.c j += i * bits_per_zone; j 251 fs/minix/bitmap.c if (!j || j > sbi->s_ninodes) { j 256 fs/minix/bitmap.c inode->i_ino = j; j 467 fs/nfs/callback_proc.c int i, j; j 487 fs/nfs/callback_proc.c for (j = 0; j < rclist->rcl_nrefcalls; j++) { j 488 fs/nfs/callback_proc.c ref = &rclist->rcl_refcalls[j]; j 455 fs/nfs/filelayout/filelayout.c u32 j, idx; j 463 fs/nfs/filelayout/filelayout.c j = nfs4_fl_calc_j_index(lseg, offset); j 464 fs/nfs/filelayout/filelayout.c idx = nfs4_fl_calc_ds_index(lseg, j); j 480 fs/nfs/filelayout/filelayout.c fh = nfs4_fl_select_ds_fh(lseg, j); j 502 fs/nfs/filelayout/filelayout.c u32 j, idx; j 506 fs/nfs/filelayout/filelayout.c j = nfs4_fl_calc_j_index(lseg, offset); j 507 fs/nfs/filelayout/filelayout.c idx = nfs4_fl_calc_ds_index(lseg, j); j 524 fs/nfs/filelayout/filelayout.c fh = nfs4_fl_select_ds_fh(lseg, j); j 989 fs/nfs/filelayout/filelayout.c static u32 select_bucket_index(struct nfs4_filelayout_segment *fl, u32 j) j 992 fs/nfs/filelayout/filelayout.c return nfs4_fl_calc_ds_index(&fl->generic_hdr, j); j 994 fs/nfs/filelayout/filelayout.c return j; j 1005 fs/nfs/filelayout/filelayout.c u32 i, j; j 1016 fs/nfs/filelayout/filelayout.c j = nfs4_fl_calc_j_index(lseg, req_offset(req)); j 1017 fs/nfs/filelayout/filelayout.c i = select_bucket_index(fl, j); j 105 fs/nfs/filelayout/filelayout.h nfs4_fl_select_ds_fh(struct pnfs_layout_segment *lseg, u32 j); j 108 fs/nfs/filelayout/filelayout.h u32 nfs4_fl_calc_ds_index(struct pnfs_layout_segment *lseg, u32 j); j 154 fs/nfs/filelayout/filelayoutdev.c int j; j 162 fs/nfs/filelayout/filelayoutdev.c for (j = 0; j < mp_count; j++) { j 236 fs/nfs/filelayout/filelayoutdev.c nfs4_fl_calc_ds_index(struct pnfs_layout_segment *lseg, u32 j) j 238 fs/nfs/filelayout/filelayoutdev.c return FILELAYOUT_LSEG(lseg)->dsaddr->stripe_indices[j]; j 242 fs/nfs/filelayout/filelayoutdev.c nfs4_fl_select_ds_fh(struct pnfs_layout_segment *lseg, u32 j) j 254 fs/nfs/filelayout/filelayoutdev.c i = nfs4_fl_calc_ds_index(lseg, j); j 256 fs/nfs/filelayout/filelayoutdev.c i = j; j 159 fs/nfs/flexfilelayout/flexfilelayout.c int i, j; j 165 fs/nfs/flexfilelayout/flexfilelayout.c for (j = 0; j < m2->fh_versions_cnt; j++) { j 167 fs/nfs/flexfilelayout/flexfilelayout.c &m2->fh_versions[j]) == 0) { j 352 fs/nfs/flexfilelayout/flexfilelayout.c int i, j; j 355 fs/nfs/flexfilelayout/flexfilelayout.c for (j = i + 1; j < fls->mirror_array_cnt; j++) j 357 fs/nfs/flexfilelayout/flexfilelayout.c fls->mirror_array[j]->efficiency) j 359 fs/nfs/flexfilelayout/flexfilelayout.c fls->mirror_array[j]); j 421 fs/nfs/flexfilelayout/flexfilelayout.c int j; j 473 fs/nfs/flexfilelayout/flexfilelayout.c for (j = 0; j < fh_count; j++) { j 475 fs/nfs/flexfilelayout/flexfilelayout.c &fls->mirror_array[i]->fh_versions[j]); j 398 fs/nfsd/nfs4acl.c int i, j; j 410 fs/nfsd/nfs4acl.c j = ++i; j 411 fs/nfsd/nfs4acl.c while (pacl->a_entries[j].e_tag == ACL_GROUP) j 412 fs/nfsd/nfs4acl.c j++; j 413 fs/nfsd/nfs4acl.c sort_pacl_range(pacl, i, j-1); j 508 fs/nilfs2/alloc.c unsigned long i, j; j 532 fs/nilfs2/alloc.c for (j = 0; j < n; j++, desc++, group++) { j 736 fs/nilfs2/alloc.c int i, j, k, ret; j 739 fs/nilfs2/alloc.c for (i = 0; i < nitems; i = j) { j 761 fs/nilfs2/alloc.c j = i; j 769 fs/nilfs2/alloc.c (unsigned long long)entry_nrs[j]); j 774 fs/nilfs2/alloc.c j++; j 775 fs/nilfs2/alloc.c if (j >= nitems || entry_nrs[j] < group_min_nr || j 776 fs/nilfs2/alloc.c entry_nrs[j] >= group_min_nr + epg) { j 779 fs/nilfs2/alloc.c group_offset = entry_nrs[j] - group_min_nr; j 791 fs/nilfs2/alloc.c last_nrs[nempties++] = entry_nrs[j - 1]; j 428 fs/nilfs2/dat.c int i, j, n, ret; j 441 fs/nilfs2/dat.c for (j = i, n = 0; j 442 fs/nilfs2/dat.c j < nvi && vinfo->vi_vblocknr >= first && j 444 fs/nilfs2/dat.c j++, n++, vinfo = (void *)vinfo + visz) { j 227 fs/nilfs2/direct.c int ret, i, j; j 242 fs/nilfs2/direct.c for (i = 0, j = 0; i < NILFS_DIRECT_NBLOCKS; i++) { j 243 fs/nilfs2/direct.c if ((j < n) && (i == keys[j])) { j 245 fs/nilfs2/direct.c cpu_to_le64(ptrs[j]) : j 247 fs/nilfs2/direct.c j++; j 312 fs/nilfs2/sufile.c int ret, j; j 362 fs/nilfs2/sufile.c for (j = 0; j < nsus; j++, su = (void *)su + susz, segnum++) { j 654 fs/nilfs2/sufile.c int j; j 686 fs/nilfs2/sufile.c for (j = 0; j < n; j++, su = (void *)su + susz) { j 689 fs/nilfs2/sufile.c nilfs_segment_is_active(nilfs, segnum + j)) { j 697 fs/nilfs2/sufile.c for (su = su2, j = 0; j < n; j++, su = (void *)su + susz) { j 823 fs/nilfs2/sufile.c int ret, i, j; j 850 fs/nilfs2/sufile.c for (j = 0; j < n; j 851 fs/nilfs2/sufile.c j++, su = (void *)su + susz, si = (void *)si + sisz) { j 856 fs/nilfs2/sufile.c if (nilfs_segment_is_active(nilfs, segnum + j)) j 1074 fs/ntfs/runlist.c s8 j; j 1081 fs/ntfs/runlist.c j = (n >> 8 * (i - 1)) & 0xff; j 1083 fs/ntfs/runlist.c if ((n < 0 && j >= 0) || (n > 0 && j < 0)) j 1243 fs/ntfs/runlist.c s8 j; j 1253 fs/ntfs/runlist.c j = (n >> 8 * (i - 1)) & 0xff; j 1255 fs/ntfs/runlist.c if (n < 0 && j >= 0) { j 1260 fs/ntfs/runlist.c } else if (n > 0 && j < 0) { j 2214 fs/ocfs2/alloc.c int i, j, ret = 0; j 2233 fs/ocfs2/alloc.c for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { j 2234 fs/ocfs2/alloc.c if (le64_to_cpu(el->l_recs[j].e_blkno) == blkno) { j 2235 fs/ocfs2/alloc.c if (j == 0) { j 2253 fs/ocfs2/alloc.c *cpos = le32_to_cpu(el->l_recs[j - 1].e_cpos); j 2255 fs/ocfs2/alloc.c &el->l_recs[j - 1]); j 2809 fs/ocfs2/alloc.c int i, j, ret = 0; j 2832 fs/ocfs2/alloc.c for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { j 2833 fs/ocfs2/alloc.c if (le64_to_cpu(el->l_recs[j].e_blkno) == blkno) { j 2834 fs/ocfs2/alloc.c if (j == (next_free - 1)) { j 2852 fs/ocfs2/alloc.c *cpos = le32_to_cpu(el->l_recs[j + 1].e_cpos); j 1671 fs/ocfs2/cluster/heartbeat.c int i, j; j 1713 fs/ocfs2/cluster/heartbeat.c for (j = 0; j 1714 fs/ocfs2/cluster/heartbeat.c (j < spp) && ((j + last_slot) < reg->hr_blocks); j 1715 fs/ocfs2/cluster/heartbeat.c j++) { j 1716 fs/ocfs2/cluster/heartbeat.c BUG_ON((j + last_slot) >= reg->hr_blocks); j 1718 fs/ocfs2/cluster/heartbeat.c slot = ®->hr_slots[j + last_slot]; j 3636 fs/ocfs2/dir.c int i, j, num_used; j 3655 fs/ocfs2/dir.c for (j = 0; j < num_used; j++) { j 3656 fs/ocfs2/dir.c dx_entry = &orig_list->de_entries[j]; j 4005 fs/ocfs2/dir.c int ret, num_dx_leaves, i, j, did_quota = 0; j 4072 fs/ocfs2/dir.c j = __ocfs2_dx_dir_hash_idx(osb, j 4074 fs/ocfs2/dir.c target_leaf = (struct ocfs2_dx_leaf *)dx_leaves[j]->b_data; j 964 fs/ocfs2/dlm/dlmdomain.c int localnr, i, j, foundit; j 999 fs/ocfs2/dlm/dlmdomain.c for (j = 0; j <= qr->qr_numregions; ++j) { j 1022 fs/ocfs2/dlm/dlmdomain.c for (j = 0; j < localnr; ++j) { j 1160 fs/ocfs2/dlm/dlmdomain.c int i, j; j 1163 fs/ocfs2/dlm/dlmdomain.c for (j = 0; j < qn->qn_numnodes; ++j) j 1164 fs/ocfs2/dlm/dlmdomain.c mlog(0, "Node %3d, %pI4:%u\n", qn->qn_nodes[j].ni_nodenum, j 1165 fs/ocfs2/dlm/dlmdomain.c &(qn->qn_nodes[j].ni_ipv4_address), j 1166 fs/ocfs2/dlm/dlmdomain.c ntohs(qn->qn_nodes[j].ni_ipv4_port)); j 1171 fs/ocfs2/dlm/dlmdomain.c for (j = 0; j < qn->qn_numnodes; ++j) { j 1172 fs/ocfs2/dlm/dlmdomain.c if (qn->qn_nodes[j].ni_nodenum == i) { j 1173 fs/ocfs2/dlm/dlmdomain.c remote = &(qn->qn_nodes[j]); j 1806 fs/ocfs2/dlm/dlmrecovery.c int i, j, bad; j 1842 fs/ocfs2/dlm/dlmrecovery.c for (j = DLM_GRANTED_LIST; j <= DLM_BLOCKED_LIST; j++) { j 1843 fs/ocfs2/dlm/dlmrecovery.c tmpq = dlm_list_idx_to_ptr(res, j); j 1897 fs/ocfs2/dlm/dlmrecovery.c j, ml->list, res->lockname.len, j 69 fs/ocfs2/journal.h static inline unsigned long ocfs2_inc_trans_id(struct ocfs2_journal *j) j 73 fs/ocfs2/journal.h old_id = j->j_trans_id++; j 74 fs/ocfs2/journal.h if (unlikely(!j->j_trans_id)) j 75 fs/ocfs2/journal.h j->j_trans_id = 1; j 6349 fs/ocfs2/xattr.c int ret = 0, i, j; j 6362 fs/ocfs2/xattr.c for (i = 0, j = 0; i < le16_to_cpu(xh->xh_count); i++, j++) { j 6366 fs/ocfs2/xattr.c xe = &new_xh->xh_entries[j]; j 6380 fs/ocfs2/xattr.c j--; j 6393 fs/ocfs2/xattr.c ret = func(sb, new_bh, new_xh, j, &new_xv, &value_bh, para); j 6840 fs/ocfs2/xattr.c int i, j, ret = 0; j 6868 fs/ocfs2/xattr.c for (j = 0; j < bpb; j++) j 6869 fs/ocfs2/xattr.c memcpy(bucket_block(args->new_bucket, j), j 6870 fs/ocfs2/xattr.c bucket_block(args->old_bucket, j), j 12 fs/proc/softirqs.c int i, j; j 21 fs/proc/softirqs.c for_each_possible_cpu(j) j 22 fs/proc/softirqs.c seq_printf(p, " %10u", kstat_softirqs_cpu(i, j)); j 109 fs/proc/stat.c int i, j; j 138 fs/proc/stat.c for (j = 0; j < NR_SOFTIRQS; j++) { j 139 fs/proc/stat.c unsigned int softirq_stat = kstat_softirqs_cpu(j, i); j 141 fs/proc/stat.c per_softirq_sums[j] += softirq_stat; j 157 fs/qnx4/inode.c int i, j; j 164 fs/qnx4/inode.c for (j = 0; j < rl; j++) { j 165 fs/qnx4/inode.c bh = sb_bread(sb, rd + j); /* root dir, first block */ j 93 fs/reiserfs/fix_node.c int j; j 102 fs/reiserfs/fix_node.c j = old_item_num(new_num, vn->vn_affected_item_num, j 105 fs/reiserfs/fix_node.c vi->vi_item_len += ih_item_len(ih + j) + IH_SIZE; j 106 fs/reiserfs/fix_node.c vi->vi_ih = ih + j; j 107 fs/reiserfs/fix_node.c vi->vi_item = ih_item_body(Sh, ih + j); j 130 fs/reiserfs/hashes.c int j, pow; j 144 fs/reiserfs/hashes.c for (pow = 1, j = i; j < len - 1; j++) j 151 fs/reiserfs/hashes.c for (pow = 1, j = i; j < len - 1; j++) j 158 fs/reiserfs/hashes.c for (pow = 1, j = i; j < len - 1; j++) j 415 fs/reiserfs/ibalance.c int i, j; j 418 fs/reiserfs/ibalance.c (j = j 419 fs/reiserfs/ibalance.c B_NR_ITEMS(src_bi->bi_bh)) + 1) ? 0 : j - cpy_num + j 423 fs/reiserfs/ibalance.c j + 1 - cpy_num + del_par, i, j 3107 fs/reiserfs/inode.c struct reiserfs_journal *j = SB_JOURNAL(inode->i_sb); j 3110 fs/reiserfs/inode.c spin_lock(&j->j_dirty_buffers_lock); j 3152 fs/reiserfs/inode.c spin_unlock(&j->j_dirty_buffers_lock); j 3233 fs/reiserfs/inode.c struct reiserfs_journal *j = SB_JOURNAL(inode->i_sb); j 3239 fs/reiserfs/inode.c spin_lock(&j->j_dirty_buffers_lock); j 3255 fs/reiserfs/inode.c spin_unlock(&j->j_dirty_buffers_lock); j 136 fs/reiserfs/item_ops.c int j = 0; j 140 fs/reiserfs/item_ops.c while (j < ih_item_len(ih)) j 141 fs/reiserfs/item_ops.c printk("%c", item[j++]); j 262 fs/reiserfs/item_ops.c int j; j 273 fs/reiserfs/item_ops.c for (j = 0; j < I_UNFM_NUM(ih); j++) { j 274 fs/reiserfs/item_ops.c if (sequence_finished(prev, &num, get_block_num(unp, j))) { j 276 fs/reiserfs/item_ops.c start_new_sequence(&prev, &num, get_block_num(unp, j)); j 463 fs/reiserfs/item_ops.c int i, j; j 483 fs/reiserfs/item_ops.c j = old_entry_num(is_affected, i, vn->vn_pos_in_item, j 486 fs/reiserfs/item_ops.c (j ? deh_location(&deh[j - 1]) : ih_item_len(vi->vi_ih)) - j 487 fs/reiserfs/item_ops.c deh_location(&deh[j]) + DEH_SIZE; j 315 fs/reiserfs/journal.c int i, j; j 319 fs/reiserfs/journal.c for (j = 0; j < (JOURNAL_NUM_BITMAPS * 3); j++) { j 748 fs/reiserfs/journal.c static inline int __add_jh(struct reiserfs_journal *j, struct buffer_head *bh, j 754 fs/reiserfs/journal.c spin_lock(&j->j_dirty_buffers_lock); j 756 fs/reiserfs/journal.c spin_unlock(&j->j_dirty_buffers_lock); j 765 fs/reiserfs/journal.c spin_lock(&j->j_dirty_buffers_lock); j 774 fs/reiserfs/journal.c jh->jl = j->j_current_jl; j 780 fs/reiserfs/journal.c spin_unlock(&j->j_dirty_buffers_lock); j 795 fs/reiserfs/journal.c struct reiserfs_journal *j, j 801 fs/reiserfs/journal.c int ret = j->j_errno; j 952 fs/reiserfs/journal.c struct reiserfs_journal *j = SB_JOURNAL(s); j 954 fs/reiserfs/journal.c if (atomic_read(&j->j_async_throttle)) { j 2327 fs/reiserfs/journal.c int i, j; j 2337 fs/reiserfs/journal.c j = 1; j 2344 fs/reiserfs/journal.c bhlist[j++] = bh; j 2346 fs/reiserfs/journal.c ll_rw_block(REQ_OP_READ, 0, j, bhlist); j 2347 fs/reiserfs/journal.c for (i = 1; i < j; i++) j 318 fs/reiserfs/lbalance.c int i, j; j 364 fs/reiserfs/lbalance.c j = location = (dest_before == 0) ? dest->b_size : ih_location(ih - 1); j 375 fs/reiserfs/lbalance.c RFALSE(free_space < j - last_inserted_loc, j 377 fs/reiserfs/lbalance.c free_space, j - last_inserted_loc); j 380 fs/reiserfs/lbalance.c dest->b_data + last_loc + j - last_inserted_loc, j 386 fs/reiserfs/lbalance.c j - last_inserted_loc); j 390 fs/reiserfs/lbalance.c set_blkh_free_space(blkh, free_space - (j - last_inserted_loc)); j 402 fs/reiserfs/lbalance.c dc_size(t_dc) + (j - last_inserted_loc + j 1245 fs/reiserfs/lbalance.c int i, j; j 1274 fs/reiserfs/lbalance.c j = (first == 0) ? bh->b_size : ih_location(ih - 1); j 1280 fs/reiserfs/lbalance.c memmove(bh->b_data + last_loc + j - last_removed_loc, j 1289 fs/reiserfs/lbalance.c ih_location(&ih[i - first]) + (j - j 1295 fs/reiserfs/lbalance.c blkh_free_space(blkh) + (j - last_removed_loc + j 1304 fs/reiserfs/lbalance.c dc_size(t_dc) - (j - last_removed_loc + j 33 fs/reiserfs/namei.c int rbound, lbound, j; j 38 fs/reiserfs/namei.c for (j = (rbound + lbound) / 2; lbound <= rbound; j 39 fs/reiserfs/namei.c j = (rbound + lbound) / 2) { j 40 fs/reiserfs/namei.c if (off < deh_offset(deh + j)) { j 41 fs/reiserfs/namei.c rbound = j - 1; j 44 fs/reiserfs/namei.c if (off > deh_offset(deh + j)) { j 45 fs/reiserfs/namei.c lbound = j + 1; j 49 fs/reiserfs/namei.c de->de_entry_num = j; j 169 fs/reiserfs/stree.c int rbound, lbound, j; j 171 fs/reiserfs/stree.c for (j = ((rbound = num - 1) + (lbound = 0)) / 2; j 172 fs/reiserfs/stree.c lbound <= rbound; j = (rbound + lbound) / 2) j 174 fs/reiserfs/stree.c ((struct reiserfs_key *)((char *)base + j * width), j 177 fs/reiserfs/stree.c lbound = j + 1; j 180 fs/reiserfs/stree.c rbound = j - 1; j 183 fs/reiserfs/stree.c *pos = j; j 533 fs/reiserfs/stree.c int i, j; j 546 fs/reiserfs/stree.c for (j = 0; j < i; j++) { j 552 fs/reiserfs/stree.c if (!buffer_uptodate(bh[j])) { j 555 fs/reiserfs/stree.c ll_rw_block(REQ_OP_READ, REQ_RAHEAD, 1, bh + j); j 557 fs/reiserfs/stree.c brelse(bh[j]); j 2239 fs/reiserfs/super.c int j; j 2240 fs/reiserfs/super.c for (j = 0; j < REISERFS_MAXQUOTAS; j++) j 2241 fs/reiserfs/super.c kfree(qf_names[j]); j 181 fs/reiserfs/tail_conversion.c struct reiserfs_journal *j = SB_JOURNAL(inode->i_sb); j 182 fs/reiserfs/tail_conversion.c spin_lock(&j->j_dirty_buffers_lock); j 185 fs/reiserfs/tail_conversion.c spin_unlock(&j->j_dirty_buffers_lock); j 156 fs/romfs/super.c int j, ino, nextfh; j 185 fs/romfs/super.c j = romfs_dev_strnlen(i->i_sb, offset + ROMFH_SIZE, j 187 fs/romfs/super.c if (j < 0) j 190 fs/romfs/super.c ret = romfs_dev_read(i->i_sb, offset + ROMFH_SIZE, fsname, j); j 193 fs/romfs/super.c fsname[j] = '\0'; j 199 fs/romfs/super.c if (!dir_emit(ctx, fsname, j, ino, j 513 fs/select.c unsigned long in, out, ex, all_bits, bit = 1, j; j 524 fs/select.c for (j = 0; j < BITS_PER_LONG; ++j, ++i, bit <<= 1) { j 1006 fs/select.c int j; j 1008 fs/select.c for (j = 0; j < walk->len; j++, ufds++) j 1009 fs/select.c if (__put_user(fds[j].revents, &ufds->revents)) j 199 fs/squashfs/cache.c int i, j; j 206 fs/squashfs/cache.c for (j = 0; j < cache->pages; j++) j 207 fs/squashfs/cache.c kfree(cache->entry[i].data[j]); j 226 fs/squashfs/cache.c int i, j; j 264 fs/squashfs/cache.c for (j = 0; j < cache->pages; j++) { j 265 fs/squashfs/cache.c entry->data[j] = kmalloc(PAGE_SIZE, GFP_KERNEL); j 266 fs/squashfs/cache.c if (entry->data[j] == NULL) { j 953 fs/ubifs/lprops.c int i = 0, j, err = 0; j 983 fs/ubifs/lprops.c for (j = 0; j < i; j++) { j 984 fs/ubifs/lprops.c lp = heap->arr[j]; j 602 fs/ubifs/lpt.c int lnum, err = 0, node_sz, iopos, i, j, cnt, len, alen, row; j 751 fs/ubifs/lpt.c for (j = 0; j < UBIFS_LPT_FANOUT; j++) { j 757 fs/ubifs/lpt.c nnode->nbranch[j].lnum = blnum; j 758 fs/ubifs/lpt.c nnode->nbranch[j].offs = boffs; j 762 fs/ubifs/lpt.c nnode->nbranch[j].lnum = 0; j 763 fs/ubifs/lpt.c nnode->nbranch[j].offs = 0; j 158 fs/udf/partition.c int i, j, k, l; j 173 fs/udf/partition.c for (j = 0; j < 4; j++) j 174 fs/udf/partition.c if (sdata->s_spar_map[j] != NULL) { j 176 fs/udf/partition.c sdata->s_spar_map[j]->b_data; j 192 fs/udf/partition.c for (; j < 4; j++) { j 194 fs/udf/partition.c bh = sdata->s_spar_map[j]; j 235 fs/udf/partition.c for (; j < 4; j++) { j 236 fs/udf/partition.c bh = sdata->s_spar_map[j]; j 248 fs/ufs/balloc.c unsigned pos, j, lblock; j 282 fs/ufs/balloc.c for (j = 0; j < pos; ++j) j 292 fs/ufs/balloc.c if (j >= lblock) j 294 fs/ufs/balloc.c pos = (i - beg) + j; j 315 fs/ufs/balloc.c ++j; j 594 fs/ufs/balloc.c unsigned oldcg, i, j, k, allocsize; j 612 fs/ufs/balloc.c for (j = 1; j < uspi->s_ncg; j *= 2) { j 613 fs/ufs/balloc.c cgno += j; j 624 fs/ufs/balloc.c for (j = 2; j < uspi->s_ncg; j++) { j 36 fs/ufs/cylinder.c unsigned i, j; j 73 fs/ufs/cylinder.c for (j = 1; j < i; j++) j 74 fs/ufs/cylinder.c brelse (sbi->s_ucg[j]); j 133 fs/ufs/cylinder.c unsigned cg, i, j; j 177 fs/ufs/cylinder.c for (j = i; j > 0; j--) { j 178 fs/ufs/cylinder.c sbi->s_cgno[j] = sbi->s_cgno[j-1]; j 179 fs/ufs/cylinder.c sbi->s_ucpi[j] = sbi->s_ucpi[j-1]; j 193 fs/ufs/cylinder.c for (j = sbi->s_cg_loaded - 1; j > 0; j--) { j 194 fs/ufs/cylinder.c sbi->s_cgno[j] = sbi->s_cgno[j-1]; j 195 fs/ufs/cylinder.c sbi->s_ucpi[j] = sbi->s_ucpi[j-1]; j 181 fs/ufs/ialloc.c unsigned cg, bit, i, j, start; j 212 fs/ufs/ialloc.c for ( j = 1; j < uspi->s_ncg; j <<= 1 ) { j 213 fs/ufs/ialloc.c i += j; j 226 fs/ufs/ialloc.c for (j = 2; j < uspi->s_ncg; j++) { j 23 fs/ufs/util.c unsigned i, j ; j 42 fs/ufs/util.c for (j = 0; j < i; j++) j 43 fs/ufs/util.c brelse (ubh->bh[j]); j 51 fs/ufs/util.c unsigned i, j; j 67 fs/ufs/util.c for (j = 0; j < i; j++) j 68 fs/ufs/util.c brelse (USPI_UBH(uspi)->bh[j]); j 1604 fs/unicode/mkutf8data.c int j; j 1643 fs/unicode/mkutf8data.c j = 0; j 1644 fs/unicode/mkutf8data.c while (ages[j] < trees[i].maxage) j 1645 fs/unicode/mkutf8data.c j++; j 1646 fs/unicode/mkutf8data.c trees[i].maxage = ages[j-1]; j 2497 fs/unicode/mkutf8data.c int j; j 2514 fs/unicode/mkutf8data.c for (j = 0; dc[j]; j++) j 2515 fs/unicode/mkutf8data.c mapping[i++] = dc[j]; j 2552 fs/unicode/mkutf8data.c int j; j 2568 fs/unicode/mkutf8data.c for (j = 0; dc[j]; j++) j 2569 fs/unicode/mkutf8data.c mapping[i++] = dc[j]; j 3279 fs/unicode/mkutf8data.c int j; j 3336 fs/unicode/mkutf8data.c for (j = i; j != i + 16; j++) j 3337 fs/unicode/mkutf8data.c fprintf(file, "0x%.2x%s", utf8data[j], j 3338 fs/unicode/mkutf8data.c (j < utf8data_size -1 ? "," : "")); j 179 fs/unicode/utf8-selftest.c int j = 0; j 189 fs/unicode/utf8-selftest.c test_f((c == nfdi_test_data[i].dec[j]), j 191 fs/unicode/utf8-selftest.c c, nfdi_test_data[i].dec[j]); j 192 fs/unicode/utf8-selftest.c j++; j 195 fs/unicode/utf8-selftest.c test((j == nlen)); j 215 fs/unicode/utf8-selftest.c int j = 0; j 225 fs/unicode/utf8-selftest.c test_f((c == nfdicf_test_data[i].ncf[j]), j 227 fs/unicode/utf8-selftest.c c, nfdicf_test_data[i].ncf[j]); j 228 fs/unicode/utf8-selftest.c j++; j 231 fs/unicode/utf8-selftest.c test((j == nlen)); j 1102 fs/xfs/libxfs/xfs_alloc.c int j; /* result code, temporary */ j 1211 fs/xfs/libxfs/xfs_alloc.c for (j = 1, blen = 0, bdiff = 0; j 1212 fs/xfs/libxfs/xfs_alloc.c !error && j && (blen < args->maxlen || bdiff > 0); j 1213 fs/xfs/libxfs/xfs_alloc.c error = xfs_btree_increment(cnt_cur, 0, &j)) { j 1441 fs/xfs/libxfs/xfs_alloc.c j = 1; j 1443 fs/xfs/libxfs/xfs_alloc.c j = 0; j 1463 fs/xfs/libxfs/xfs_alloc.c if (j) j 264 fs/xfs/libxfs/xfs_bmap.c int i, j, dmxr; j 289 fs/xfs/libxfs/xfs_bmap.c for (j = i+1; j <= be16_to_cpu(block->bb_numrecs); j++) { j 291 fs/xfs/libxfs/xfs_bmap.c thispa = XFS_BMAP_BROOT_PTR_ADDR(mp, block, j, sz); j 293 fs/xfs/libxfs/xfs_bmap.c thispa = XFS_BMBT_PTR_ADDR(mp, block, j, dmxr); j 296 fs/xfs/libxfs/xfs_bmap.c __func__, j, i, j 323 fs/xfs/libxfs/xfs_bmap.c xfs_extnum_t i=0, j; /* index into the extents list */ j 427 fs/xfs/libxfs/xfs_bmap.c for (j = 1; j < num_recs; j++) { j 428 fs/xfs/libxfs/xfs_bmap.c nextp = XFS_BMBT_REC_ADDR(mp, block, j + 1); j 1175 fs/xfs/libxfs/xfs_bmap.c xfs_extnum_t i, j; j 1253 fs/xfs/libxfs/xfs_bmap.c for (j = 0; j < num_recs; j++, frp++, i++) { j 276 fs/xfs/libxfs/xfs_ialloc.c int i, j; j 324 fs/xfs/libxfs/xfs_ialloc.c for (j = 0; j < nbufs; j++) { j 329 fs/xfs/libxfs/xfs_ialloc.c (j * M_IGEO(mp)->blocks_per_cluster)); j 1132 fs/xfs/libxfs/xfs_ialloc.c int i, j; j 1166 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_get_rec(cur, &rec, &j); j 1169 fs/xfs/libxfs/xfs_ialloc.c XFS_WANT_CORRUPTED_GOTO(mp, j == 1, error0); j 1304 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_get_rec(cur, &rec, &j); j 1308 fs/xfs/libxfs/xfs_ialloc.c if (j == 1 && rec.ir_freecount > 0) { j 1386 fs/xfs/libxfs/xfs_ialloc.c int i, j; j 1412 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_lookup(rcur, pagino, XFS_LOOKUP_GE, &j); j 1415 fs/xfs/libxfs/xfs_ialloc.c if (j == 1) { j 1416 fs/xfs/libxfs/xfs_ialloc.c error = xfs_inobt_get_rec(rcur, &rrec, &j); j 1419 fs/xfs/libxfs/xfs_ialloc.c XFS_WANT_CORRUPTED_GOTO(lcur->bc_mp, j == 1, error_rcur); j 1422 fs/xfs/libxfs/xfs_ialloc.c XFS_WANT_CORRUPTED_GOTO(lcur->bc_mp, i == 1 || j == 1, error_rcur); j 1423 fs/xfs/libxfs/xfs_ialloc.c if (i == 1 && j == 1) { j 1436 fs/xfs/libxfs/xfs_ialloc.c } else if (j == 1) { j 442 fs/xfs/xfs_inode.c int attempts = 0, i, j, try_lock; j 481 fs/xfs/xfs_inode.c for (j = (i - 1); j >= 0 && !try_lock; j--) { j 482 fs/xfs/xfs_inode.c lp = &ips[j]->i_itemp->ili_item; j 509 fs/xfs/xfs_inode.c for (j = i - 1; j >= 0; j--) { j 515 fs/xfs/xfs_inode.c if (j != (i - 1) && ips[j] == ips[j + 1]) j 518 fs/xfs/xfs_inode.c xfs_iunlock(ips[j], lock_mode); j 2526 fs/xfs/xfs_inode.c int i, j; j 2541 fs/xfs/xfs_inode.c for (j = 0; j < nbufs; j++, inum += igeo->inodes_per_cluster) { j 2989 fs/xfs/xfs_inode.c int i, j; j 3016 fs/xfs/xfs_inode.c for (j = 1; j < *num_inodes; j++) { j 3017 fs/xfs/xfs_inode.c if (i_tab[j]->i_ino < i_tab[j-1]->i_ino) { j 3018 fs/xfs/xfs_inode.c struct xfs_inode *temp = i_tab[j]; j 3019 fs/xfs/xfs_inode.c i_tab[j] = i_tab[j-1]; j 3020 fs/xfs/xfs_inode.c i_tab[j-1] = temp; j 179 fs/xfs/xfs_iwalk.c unsigned int i, j; j 202 fs/xfs/xfs_iwalk.c for (j = 0; j < XFS_INODES_PER_CHUNK; j++) { j 207 fs/xfs/xfs_iwalk.c if (XFS_INOBT_MASK(j) & irec->ir_free) j 211 fs/xfs/xfs_iwalk.c ino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino + j); j 1611 fs/xfs/xfs_log.c int i, j, k; j 1631 fs/xfs/xfs_log.c j = i / (XLOG_HEADER_CYCLE_SIZE / BBSIZE); j 1633 fs/xfs/xfs_log.c xhdr[j].hic_xheader.xh_cycle_data[k] = *(__be32 *)dp; j 3813 fs/xfs/xfs_log.c int len, i, j, k, op_len; j 3854 fs/xfs/xfs_log.c j = idx / (XLOG_HEADER_CYCLE_SIZE / BBSIZE); j 3857 fs/xfs/xfs_log.c xhdr[j].hic_xheader.xh_cycle_data[k]); j 3878 fs/xfs/xfs_log.c j = idx / (XLOG_HEADER_CYCLE_SIZE / BBSIZE); j 3880 fs/xfs/xfs_log.c op_len = be32_to_cpu(xhdr[j].hic_xheader.xh_cycle_data[k]); j 376 fs/xfs/xfs_log_recover.c xfs_daddr_t i, j; j 407 fs/xfs/xfs_log_recover.c for (j = 0; j < bcount; j++) { j 410 fs/xfs/xfs_log_recover.c *new_blk = i+j; j 1589 fs/xfs/xfs_log_recover.c int i, j = 0; j 1616 fs/xfs/xfs_log_recover.c j = start_block - balign; j 1623 fs/xfs/xfs_log_recover.c endcount = bcount - j; j 1630 fs/xfs/xfs_log_recover.c if (j == 0 && (start_block + endcount > ealign)) { j 1639 fs/xfs/xfs_log_recover.c for (; j < endcount; j++) { j 1640 fs/xfs/xfs_log_recover.c xlog_add_record(log, offset, cycle, i+j, j 1648 fs/xfs/xfs_log_recover.c j = 0; j 5107 fs/xfs/xfs_log_recover.c int i, j, k; j 5118 fs/xfs/xfs_log_recover.c j = i / (XLOG_HEADER_CYCLE_SIZE / BBSIZE); j 5120 fs/xfs/xfs_log_recover.c *(__be32 *)dp = xhdr[j].hic_xheader.xh_cycle_data[k]; j 831 fs/xfs/xfs_qm.c int j; j 841 fs/xfs/xfs_qm.c j = (int)XFS_FSB_TO_B(mp, XFS_DQUOT_CLUSTER_SIZE_FSB) / j 843 fs/xfs/xfs_qm.c ASSERT(mp->m_quotainfo->qi_dqperchunk == j); j 846 fs/xfs/xfs_qm.c for (j = 0; j < mp->m_quotainfo->qi_dqperchunk; j++) { j 849 fs/xfs/xfs_qm.c ddq = (struct xfs_disk_dquot *)&dqb[j]; j 857 fs/xfs/xfs_qm.c fa = xfs_dqblk_verify(mp, &dqb[j], id + j, type); j 859 fs/xfs/xfs_qm.c xfs_dqblk_repair(mp, &dqb[j], id + j, type); j 877 fs/xfs/xfs_qm.c xfs_update_cksum((char *)&dqb[j], j 433 fs/xfs/xfs_rtalloc.c int j; /* secondary loop control */ j 514 fs/xfs/xfs_rtalloc.c for (j = -1; j > i; j--) { j 521 fs/xfs/xfs_rtalloc.c bbno + j, rbpp, rsb, &any); j 536 fs/xfs/xfs_rtalloc.c tp, bbno + j, minlen, maxlen, j 21 fs/xfs/xfs_stats.c int i, j; j 59 fs/xfs/xfs_stats.c for (i = j = 0; i < ARRAY_SIZE(xstats); i++) { j 63 fs/xfs/xfs_stats.c for (; j < xstats[i].endpoint; j++) j 65 fs/xfs/xfs_stats.c counter_val(stats, j)); j 122 fs/xfs/xfs_stats.c int j; j 125 fs/xfs/xfs_stats.c for (j = XFSSTAT_START_XQMSTAT; j < XFSSTAT_END_XQMSTAT; j++) j 126 fs/xfs/xfs_stats.c seq_printf(m, " %u", counter_val(xfsstats.xs_stats, j)); j 662 fs/xfs/xfs_sysfs.c int i, j; j 665 fs/xfs/xfs_sysfs.c for (j = 0; j < XFS_ERR_ERRNO_MAX; j++) { j 666 fs/xfs/xfs_sysfs.c cfg = &mp->m_error_cfg[i][j]; j 71 fs/xfs/xfs_trans_dquot.c int i, j; j 87 fs/xfs/xfs_trans_dquot.c for (j = 0; j < XFS_QM_TRANS_DQTYPES; j++) { j 88 fs/xfs/xfs_trans_dquot.c oqa = otp->t_dqinfo->dqs[j]; j 89 fs/xfs/xfs_trans_dquot.c nqa = ntp->t_dqinfo->dqs[j]; j 309 fs/xfs/xfs_trans_dquot.c int i, j; j 320 fs/xfs/xfs_trans_dquot.c for (j = 0; j < XFS_QM_TRANS_DQTYPES; j++) { j 321 fs/xfs/xfs_trans_dquot.c qa = tp->t_dqinfo->dqs[j]; j 491 fs/xfs/xfs_trans_dquot.c int i, j; j 499 fs/xfs/xfs_trans_dquot.c for (j = 0; j < XFS_QM_TRANS_DQTYPES; j++) { j 500 fs/xfs/xfs_trans_dquot.c qa = tp->t_dqinfo->dqs[j]; j 108 include/drm/drm_edid.h u8 j; /* need to divide by 2 */ j 648 include/linux/fb.h u32 i, j; j 654 include/linux/fb.h for (j = 0; j < s_pitch; j++) j 274 include/linux/jbd2.h #define JBD2_HAS_COMPAT_FEATURE(j,mask) \ j 275 include/linux/jbd2.h ((j)->j_format_version >= 2 && \ j 276 include/linux/jbd2.h ((j)->j_superblock->s_feature_compat & cpu_to_be32((mask)))) j 277 include/linux/jbd2.h #define JBD2_HAS_RO_COMPAT_FEATURE(j,mask) \ j 278 include/linux/jbd2.h ((j)->j_format_version >= 2 && \ j 279 include/linux/jbd2.h ((j)->j_superblock->s_feature_ro_compat & cpu_to_be32((mask)))) j 280 include/linux/jbd2.h #define JBD2_HAS_INCOMPAT_FEATURE(j,mask) \ j 281 include/linux/jbd2.h ((j)->j_format_version >= 2 && \ j 282 include/linux/jbd2.h ((j)->j_superblock->s_feature_incompat & cpu_to_be32((mask)))) j 1170 include/linux/jbd2.h #define jbd2_might_wait_for_commit(j) \ j 1172 include/linux/jbd2.h rwsem_acquire(&j->j_trans_commit_map, 0, 0, _THIS_IP_); \ j 1173 include/linux/jbd2.h rwsem_release(&j->j_trans_commit_map, 1, _THIS_IP_); \ j 1178 include/linux/jbd2.h static inline bool jbd2_has_feature_##name(journal_t *j) \ j 1180 include/linux/jbd2.h return ((j)->j_format_version >= 2 && \ j 1181 include/linux/jbd2.h ((j)->j_superblock->s_feature_compat & \ j 1184 include/linux/jbd2.h static inline void jbd2_set_feature_##name(journal_t *j) \ j 1186 include/linux/jbd2.h (j)->j_superblock->s_feature_compat |= \ j 1189 include/linux/jbd2.h static inline void jbd2_clear_feature_##name(journal_t *j) \ j 1191 include/linux/jbd2.h (j)->j_superblock->s_feature_compat &= \ j 1196 include/linux/jbd2.h static inline bool jbd2_has_feature_##name(journal_t *j) \ j 1198 include/linux/jbd2.h return ((j)->j_format_version >= 2 && \ j 1199 include/linux/jbd2.h ((j)->j_superblock->s_feature_ro_compat & \ j 1202 include/linux/jbd2.h static inline void jbd2_set_feature_##name(journal_t *j) \ j 1204 include/linux/jbd2.h (j)->j_superblock->s_feature_ro_compat |= \ j 1207 include/linux/jbd2.h static inline void jbd2_clear_feature_##name(journal_t *j) \ j 1209 include/linux/jbd2.h (j)->j_superblock->s_feature_ro_compat &= \ j 1214 include/linux/jbd2.h static inline bool jbd2_has_feature_##name(journal_t *j) \ j 1216 include/linux/jbd2.h return ((j)->j_format_version >= 2 && \ j 1217 include/linux/jbd2.h ((j)->j_superblock->s_feature_incompat & \ j 1220 include/linux/jbd2.h static inline void jbd2_set_feature_##name(journal_t *j) \ j 1222 include/linux/jbd2.h (j)->j_superblock->s_feature_incompat |= \ j 1225 include/linux/jbd2.h static inline void jbd2_clear_feature_##name(journal_t *j) \ j 1227 include/linux/jbd2.h (j)->j_superblock->s_feature_incompat &= \ j 1550 include/linux/jbd2.h static inline bool jbd2_journal_has_csum_v2or3_feature(journal_t *j) j 1552 include/linux/jbd2.h return jbd2_has_feature_csum2(j) || jbd2_has_feature_csum3(j); j 291 include/linux/jiffies.h extern unsigned int jiffies_to_msecs(const unsigned long j); j 292 include/linux/jiffies.h extern unsigned int jiffies_to_usecs(const unsigned long j); j 294 include/linux/jiffies.h static inline u64 jiffies_to_nsecs(const unsigned long j) j 296 include/linux/jiffies.h return (u64)jiffies_to_usecs(j) * NSEC_PER_USEC; j 299 include/linux/jiffies.h extern u64 jiffies64_to_nsecs(u64 j); j 300 include/linux/jiffies.h extern u64 jiffies64_to_msecs(u64 j); j 3445 include/linux/netdevice.h static inline bool netif_attr_test_mask(unsigned long j, j 3449 include/linux/netdevice.h cpu_max_bits_warn(j, nr_bits); j 3450 include/linux/netdevice.h return test_bit(j, mask); j 3461 include/linux/netdevice.h static inline bool netif_attr_test_online(unsigned long j, j 3465 include/linux/netdevice.h cpu_max_bits_warn(j, nr_bits); j 3468 include/linux/netdevice.h return test_bit(j, online_mask); j 3470 include/linux/netdevice.h return (j < nr_bits); j 208 include/linux/timer.h unsigned long __round_jiffies(unsigned long j, int cpu); j 209 include/linux/timer.h unsigned long __round_jiffies_relative(unsigned long j, int cpu); j 210 include/linux/timer.h unsigned long round_jiffies(unsigned long j); j 211 include/linux/timer.h unsigned long round_jiffies_relative(unsigned long j); j 213 include/linux/timer.h unsigned long __round_jiffies_up(unsigned long j, int cpu); j 214 include/linux/timer.h unsigned long __round_jiffies_up_relative(unsigned long j, int cpu); j 215 include/linux/timer.h unsigned long round_jiffies_up(unsigned long j); j 216 include/linux/timer.h unsigned long round_jiffies_up_relative(unsigned long j); j 172 include/linux/tpm_eventlog.h int j; j 229 include/linux/tpm_eventlog.h for (j = 0; j < efispecid->num_algs; j++) { j 230 include/linux/tpm_eventlog.h if (halg == efispecid->digest_sizes[j].alg_id) { j 232 include/linux/tpm_eventlog.h efispecid->digest_sizes[j].digest_size; j 237 include/linux/tpm_eventlog.h if (j == efispecid->num_algs) { j 298 kernel/audit_tree.c int i, j; j 304 kernel/audit_tree.c for (i = j = 0; j < old->count; i++, j++) { j 305 kernel/audit_tree.c if (!old->owners[j].owner) { j 309 kernel/audit_tree.c owner = old->owners[j].owner; j 311 kernel/audit_tree.c new->owners[i].index = old->owners[j].index - j + i; j 315 kernel/audit_tree.c list_replace_init(&old->owners[j].list, &new->owners[i].list); j 290 kernel/auditfilter.c int j; j 291 kernel/auditfilter.c for (j = 0; j < AUDIT_BITMASK_SIZE; j++) j 292 kernel/auditfilter.c entry->rule.mask[j] |= class[j]; j 503 kernel/bpf/verifier.c int j; j 505 kernel/bpf/verifier.c for (j = 0; j < BPF_REG_SIZE; j++) { j 506 kernel/bpf/verifier.c if (state->stack[i].slot_type[j] != STACK_INVALID) j 508 kernel/bpf/verifier.c types_buf[j] = slot_type_char[ j 509 kernel/bpf/verifier.c state->stack[i].slot_type[j]]; j 1635 kernel/bpf/verifier.c int i, j; j 1643 kernel/bpf/verifier.c for (j = 0; j < BPF_REG_FP; j++) { j 1644 kernel/bpf/verifier.c reg = &func->regs[j]; j 1649 kernel/bpf/verifier.c for (j = 0; j < func->allocated_stack / BPF_REG_SIZE; j++) { j 1650 kernel/bpf/verifier.c if (func->stack[j].slot_type[0] != STACK_SPILL) j 1652 kernel/bpf/verifier.c reg = &func->stack[j].spilled_ptr; j 2978 kernel/bpf/verifier.c int err, min_off, max_off, i, j, slot, spi; j 3069 kernel/bpf/verifier.c for (j = 0; j < BPF_REG_SIZE; j++) j 3070 kernel/bpf/verifier.c state->stack[spi].slot_type[j] = STACK_MISC; j 6802 kernel/bpf/verifier.c int i, j; j 6821 kernel/bpf/verifier.c for (j = 0; j < BPF_REG_SIZE; j++) j 6822 kernel/bpf/verifier.c st->stack[i].slot_type[j] = STACK_INVALID; j 7312 kernel/bpf/verifier.c int i, j, err, states_cnt = 0; j 7492 kernel/bpf/verifier.c for (j = 0; j <= cur->curframe; j++) { j 7493 kernel/bpf/verifier.c for (i = j < cur->curframe ? BPF_REG_6 : 0; i < BPF_REG_FP; i++) j 7494 kernel/bpf/verifier.c cur->frame[j]->regs[i].parent = &new->frame[j]->regs[i]; j 7496 kernel/bpf/verifier.c cur->frame[j]->regs[i].live = REG_LIVE_NONE; j 7500 kernel/bpf/verifier.c for (j = 0; j <= cur->curframe; j++) { j 7501 kernel/bpf/verifier.c struct bpf_func_state *frame = cur->frame[j]; j 7502 kernel/bpf/verifier.c struct bpf_func_state *newframe = new->frame[j]; j 7978 kernel/bpf/verifier.c int i, j, err; j 8075 kernel/bpf/verifier.c for (j = 0; j < env->used_map_cnt; j++) { j 8076 kernel/bpf/verifier.c if (env->used_maps[j] == map) { j 8077 kernel/bpf/verifier.c aux->map_index = j; j 8232 kernel/bpf/verifier.c int i, j; j 8239 kernel/bpf/verifier.c for (j = i; j < env->subprog_cnt; j++) j 8240 kernel/bpf/verifier.c if (env->subprog_info[j].start >= off + cnt) j 8245 kernel/bpf/verifier.c if (env->subprog_info[j].start != off + cnt) j 8246 kernel/bpf/verifier.c j--; j 8248 kernel/bpf/verifier.c if (j > i) { j 8253 kernel/bpf/verifier.c move = env->subprog_cnt + 1 - j; j 8256 kernel/bpf/verifier.c env->subprog_info + j, j 8258 kernel/bpf/verifier.c env->subprog_cnt -= j - i; j 8262 kernel/bpf/verifier.c move = aux->func_info_cnt - j; j 8265 kernel/bpf/verifier.c aux->func_info + j, j 8267 kernel/bpf/verifier.c aux->func_info_cnt -= j - i; j 8449 kernel/bpf/verifier.c int j; j 8451 kernel/bpf/verifier.c j = 0; j 8452 kernel/bpf/verifier.c while (i + j < insn_cnt && !aux_data[i + j].seen) j 8453 kernel/bpf/verifier.c j++; j 8454 kernel/bpf/verifier.c if (!j) j 8457 kernel/bpf/verifier.c err = verifier_remove_insns(env, i, j); j 8745 kernel/bpf/verifier.c int i, j, subprog_start, subprog_end = 0, len, subprog; j 8836 kernel/bpf/verifier.c for (j = 0; j < func[i]->len; j++, insn++) { j 5968 kernel/cgroup/cgroup.c int i, j, ret; j 5979 kernel/cgroup/cgroup.c for_each_subsys(ss, j) { j 5980 kernel/cgroup/cgroup.c if (j >= i) j 739 kernel/cgroup/cpuset.c int i, j, k; /* indices for partition finding loops */ j 821 kernel/cgroup/cpuset.c for (j = 0; j < csn; j++) { j 822 kernel/cgroup/cpuset.c struct cpuset *b = csa[j]; j 878 kernel/cgroup/cpuset.c for (j = i; j < csn; j++) { j 879 kernel/cgroup/cpuset.c struct cpuset *b = csa[j]; j 1496 kernel/debug/kdb/kdb_main.c int j; j 1542 kernel/debug/kdb/kdb_main.c for (j = 0; j < bytesperword; j++) j 217 kernel/gcov/gcc_3_4.c unsigned int j; j 220 kernel/gcov/gcc_3_4.c for (j = 0; j < dest->counts[i].num; j++) { j 221 kernel/gcov/gcc_3_4.c dest->counts[i].values[j] += j 222 kernel/gcov/gcc_3_4.c source->counts[i].values[j]; j 847 kernel/irq/irqdesc.c int i, j; j 849 kernel/irq/irqdesc.c for (i = from, j = cnt; j > 0; i++, j--) { j 465 kernel/irq/proc.c int i = *(loff_t *) v, j; j 477 kernel/irq/proc.c for (prec = 3, j = 1000; prec < 10 && j <= nr_irqs; ++prec) j 478 kernel/irq/proc.c j *= 10; j 481 kernel/irq/proc.c for_each_online_cpu(j) j 482 kernel/irq/proc.c seq_printf(p, "CPU%-8d", j); j 492 kernel/irq/proc.c for_each_online_cpu(j) j 493 kernel/irq/proc.c any_count |= *per_cpu_ptr(desc->kstat_irqs, j); j 499 kernel/irq/proc.c for_each_online_cpu(j) j 501 kernel/irq/proc.c *per_cpu_ptr(desc->kstat_irqs, j) : 0); j 188 kernel/kexec_core.c unsigned long j; j 192 kernel/kexec_core.c for (j = 0; j < i; j++) { j 195 kernel/kexec_core.c pstart = image->segment[j].mem; j 196 kernel/kexec_core.c pend = pstart + image->segment[j].memsz; j 710 kernel/kexec_file.c int ret = 0, i, j, zero_buf_sz, sha_region_sz; j 753 kernel/kexec_file.c for (j = i = 0; i < image->nr_segments; i++) { j 788 kernel/kexec_file.c sha_regions[j].start = ksegment->mem; j 789 kernel/kexec_file.c sha_regions[j].len = ksegment->memsz; j 790 kernel/kexec_file.c j++; j 1172 kernel/kexec_file.c int i, j; j 1195 kernel/kexec_file.c for (j = i; j < mem->nr_ranges - 1; j++) { j 1196 kernel/kexec_file.c mem->ranges[j].start = j 1197 kernel/kexec_file.c mem->ranges[j+1].start; j 1198 kernel/kexec_file.c mem->ranges[j].end = j 1199 kernel/kexec_file.c mem->ranges[j+1].end; j 1227 kernel/kexec_file.c j = i + 1; j 1228 kernel/kexec_file.c if (j < mem->nr_ranges) { j 1230 kernel/kexec_file.c for (i = mem->nr_ranges - 1; i >= j; i--) j 1234 kernel/kexec_file.c mem->ranges[j].start = temp_range.start; j 1235 kernel/kexec_file.c mem->ranges[j].end = temp_range.end; j 2741 kernel/locking/lockdep.c int i, j, id; j 2750 kernel/locking/lockdep.c for (j = 0; j < chain->depth - 1; j++, i++) { j 2753 kernel/locking/lockdep.c if (DEBUG_LOCKS_WARN_ON(chain_hlocks[chain->base + j] != id)) { j 2803 kernel/locking/lockdep.c int i, j; j 2833 kernel/locking/lockdep.c for (j = 0; j < chain->depth - 1; j++, i++) { j 2835 kernel/locking/lockdep.c chain_hlocks[chain->base + j] = lock_id; j 2837 kernel/locking/lockdep.c chain_hlocks[chain->base + j] = class - lock_classes; j 5081 kernel/locking/lockdep.c int i, j; j 5086 kernel/locking/lockdep.c for (j = 0; j < NR_LOCKDEP_CACHING_CLASSES; j++) j 5087 kernel/locking/lockdep.c if (lock->class_cache[j] == class) j 5099 kernel/locking/lockdep.c int j; j 5104 kernel/locking/lockdep.c for (j = 0; j < MAX_LOCKDEP_SUBCLASSES; j++) { j 5108 kernel/locking/lockdep.c class = look_up_lock_class(lock, j); j 842 kernel/locking/locktorture.c int i, j; j 1015 kernel/locking/locktorture.c for (i = 0, j = 0; i < cxt.nrealwriters_stress || j 1016 kernel/locking/locktorture.c j < cxt.nrealreaders_stress; i++, j++) { j 1027 kernel/locking/locktorture.c if (cxt.cur_ops->readlock == NULL || (j >= cxt.nrealreaders_stress)) j 1030 kernel/locking/locktorture.c firsterr = torture_create_kthread(lock_torture_reader, &cxt.lrsa[j], j 1031 kernel/locking/locktorture.c reader_tasks[j]); j 411 kernel/module.c unsigned int j; j 413 kernel/module.c for (j = 0; j < arrsize; j++) { j 414 kernel/module.c if (fn(&arr[j], owner, data)) j 2068 kernel/power/snapshot.c int j; j 2070 kernel/power/snapshot.c for (j = 0; j < PAGE_SIZE / sizeof(long); j++) { j 2071 kernel/power/snapshot.c buf[j] = memory_bm_next_pfn(bm); j 2072 kernel/power/snapshot.c if (unlikely(buf[j] == BM_END_OF_MAP)) j 2075 kernel/power/snapshot.c page_key_read(buf + j); j 2219 kernel/power/snapshot.c int j; j 2221 kernel/power/snapshot.c for (j = 0; j < PAGE_SIZE / sizeof(long); j++) { j 2222 kernel/power/snapshot.c if (unlikely(buf[j] == BM_END_OF_MAP)) j 2226 kernel/power/snapshot.c page_key_memorize(buf + j); j 2228 kernel/power/snapshot.c if (pfn_valid(buf[j]) && memory_bm_pfn_present(bm, buf[j])) j 2229 kernel/power/snapshot.c memory_bm_set_bit(bm, buf[j]); j 249 kernel/profile.c int i, j, cpu; j 252 kernel/profile.c j = per_cpu(cpu_profile_flip, get_cpu()); j 256 kernel/profile.c struct profile_hit *hits = per_cpu(cpu_profile_hits, cpu)[j]; j 288 kernel/profile.c int i, j, cpu; j 307 kernel/profile.c for (j = 0; j < PROFILE_GRPSZ; ++j) { j 308 kernel/profile.c if (hits[i + j].pc == pc) { j 309 kernel/profile.c hits[i + j].hits += nr_hits; j 311 kernel/profile.c } else if (!hits[i + j].hits) { j 312 kernel/profile.c hits[i + j].pc = pc; j 313 kernel/profile.c hits[i + j].hits = nr_hits; j 66 kernel/range.c int i, j; j 71 kernel/range.c for (j = 0; j < az; j++) { j 72 kernel/range.c if (!range[j].end) j 75 kernel/range.c if (start <= range[j].start && end >= range[j].end) { j 76 kernel/range.c range[j].start = 0; j 77 kernel/range.c range[j].end = 0; j 81 kernel/range.c if (start <= range[j].start && end < range[j].end && j 82 kernel/range.c range[j].start < end) { j 83 kernel/range.c range[j].start = end; j 88 kernel/range.c if (start > range[j].start && end >= range[j].end && j 89 kernel/range.c range[j].end > start) { j 90 kernel/range.c range[j].end = start; j 94 kernel/range.c if (start > range[j].start && end < range[j].end) { j 101 kernel/range.c range[i].end = range[j].end; j 107 kernel/range.c range[j].end = start; j 127 kernel/range.c int i, j, k = az - 1, nr_range = az; j 132 kernel/range.c for (j = k; j > i; j--) { j 133 kernel/range.c if (range[j].end) { j 134 kernel/range.c k = j; j 138 kernel/range.c if (j == i) j 516 kernel/rcu/rcu.h static inline void rcu_fwd_progress_check(unsigned long j) { } j 523 kernel/rcu/rcu.h void rcu_fwd_progress_check(unsigned long j); j 413 kernel/rcu/rcu_segcblist.c int i, j; j 434 kernel/rcu/rcu_segcblist.c for (j = RCU_WAIT_TAIL; j < i; j++) j 435 kernel/rcu/rcu_segcblist.c WRITE_ONCE(rsclp->tails[j], rsclp->tails[RCU_DONE_TAIL]); j 443 kernel/rcu/rcu_segcblist.c for (j = RCU_WAIT_TAIL; i < RCU_NEXT_TAIL; i++, j++) { j 444 kernel/rcu/rcu_segcblist.c if (rsclp->tails[j] == rsclp->tails[RCU_NEXT_TAIL]) j 446 kernel/rcu/rcu_segcblist.c WRITE_ONCE(rsclp->tails[j], rsclp->tails[i]); j 447 kernel/rcu/rcu_segcblist.c rsclp->gp_seq[j] = rsclp->gp_seq[i]; j 487 kernel/rcu/rcuperf.c int j; j 523 kernel/rcu/rcuperf.c j = writer_n_durations[i]; j 525 kernel/rcu/rcuperf.c perf_type, PERF_FLAG, i, j); j 526 kernel/rcu/rcuperf.c ngps += j; j 544 kernel/rcu/rcuperf.c for (j = 0; j <= writer_n_durations[i]; j++) { j 545 kernel/rcu/rcuperf.c wdp = &wdpp[j]; j 548 kernel/rcu/rcuperf.c i, j, *wdp); j 549 kernel/rcu/rcuperf.c if (j % 100 == 0) j 1239 kernel/rcu/rcutorture.c int j; j 1248 kernel/rcu/rcutorture.c for (j = 0; j < i; j++) { j 1250 kernel/rcu/rcutorture.c rcutorture_one_extend(readstate, mask, trsp, &rtrsp[j]); j 1252 kernel/rcu/rcutorture.c return &rtrsp[j]; j 1684 kernel/rcu/rcutorture.c int j; j 1692 kernel/rcu/rcutorture.c for (j = 0; j <= i; j++) { j 1693 kernel/rcu/rcutorture.c gps = n_launders_hist[j].launder_gp_seq; j 1695 kernel/rcu/rcutorture.c j + 1, FWD_CBS_HIST_DIV, n_launders_hist[j].n_launders, j 444 kernel/rcu/tree.c unsigned long j; j 452 kernel/rcu/tree.c j = READ_ONCE(jiffies_till_first_fqs) + j 454 kernel/rcu/tree.c if (j < HZ / 10 + nr_cpu_ids / RCU_JIFFIES_FQS_DIV) j 455 kernel/rcu/tree.c j = HZ / 10 + nr_cpu_ids / RCU_JIFFIES_FQS_DIV; j 456 kernel/rcu/tree.c pr_info("RCU calculated value of scheduler-enlistment delay is %ld jiffies.\n", j); j 457 kernel/rcu/tree.c WRITE_ONCE(jiffies_to_sched_qs, j); j 462 kernel/rcu/tree.c ulong j; j 463 kernel/rcu/tree.c int ret = kstrtoul(val, 0, &j); j 466 kernel/rcu/tree.c WRITE_ONCE(*(ulong *)kp->arg, (j > HZ) ? HZ : j); j 474 kernel/rcu/tree.c ulong j; j 475 kernel/rcu/tree.c int ret = kstrtoul(val, 0, &j); j 478 kernel/rcu/tree.c WRITE_ONCE(*(ulong *)kp->arg, (j > HZ) ? HZ : (j ?: 1)); j 1623 kernel/rcu/tree.c unsigned long j; j 1628 kernel/rcu/tree.c j = READ_ONCE(jiffies_till_first_fqs); j 1632 kernel/rcu/tree.c rcu_state.jiffies_force_qs = jiffies + j; j 1634 kernel/rcu/tree.c jiffies + (j ? 3 * j : 2)); j 1641 kernel/rcu/tree.c rcu_state.gp_wq, rcu_gp_fqs_check_wake(&gf), j); j 1662 kernel/rcu/tree.c j = READ_ONCE(jiffies_till_next_fqs); j 1672 kernel/rcu/tree.c j = jiffies; j 1674 kernel/rcu/tree.c j = 1; j 1676 kernel/rcu/tree.c j = rcu_state.jiffies_force_qs - j; j 3348 kernel/rcu/tree.c int j; j 3369 kernel/rcu/tree.c for (j = 0; j < num_rcu_lvl[i]; j++, rnp++) { j 3381 kernel/rcu/tree.c rnp->grplo = j * cpustride; j 3382 kernel/rcu/tree.c rnp->grphi = (j + 1) * cpustride - 1; j 3390 kernel/rcu/tree.c rnp->grpnum = j % levelspread[i - 1]; j 3393 kernel/rcu/tree.c j / levelspread[i - 1]; j 435 kernel/rcu/tree.h unsigned long j); j 1692 kernel/rcu/tree_plugin.h unsigned long j) j 1708 kernel/rcu/tree_plugin.h WRITE_ONCE(rdp->nocb_bypass_first, j); j 1722 kernel/rcu/tree_plugin.h unsigned long j) j 1728 kernel/rcu/tree_plugin.h return rcu_nocb_do_flush_bypass(rdp, rhp, j); j 1735 kernel/rcu/tree_plugin.h static void rcu_nocb_try_flush_bypass(struct rcu_data *rdp, unsigned long j) j 1741 kernel/rcu/tree_plugin.h WARN_ON_ONCE(!rcu_nocb_do_flush_bypass(rdp, NULL, j)); j 1767 kernel/rcu/tree_plugin.h unsigned long j = jiffies; j 1786 kernel/rcu/tree_plugin.h if (j == rdp->nocb_nobypass_last) { j 1789 kernel/rcu/tree_plugin.h WRITE_ONCE(rdp->nocb_nobypass_last, j); j 1808 kernel/rcu/tree_plugin.h WARN_ON_ONCE(!rcu_nocb_flush_bypass(rdp, NULL, j)); j 1815 kernel/rcu/tree_plugin.h if ((ncbs && j != READ_ONCE(rdp->nocb_bypass_first)) || j 1818 kernel/rcu/tree_plugin.h if (!rcu_nocb_flush_bypass(rdp, rhp, j)) { j 1826 kernel/rcu/tree_plugin.h if (j != rdp->nocb_gp_adv_time && j 1830 kernel/rcu/tree_plugin.h rdp->nocb_gp_adv_time = j; j 1843 kernel/rcu/tree_plugin.h WRITE_ONCE(rdp->nocb_bypass_first, j); j 1877 kernel/rcu/tree_plugin.h unsigned long j; j 1906 kernel/rcu/tree_plugin.h j = jiffies; j 1907 kernel/rcu/tree_plugin.h if (j != rdp->nocb_gp_adv_time && j 1911 kernel/rcu/tree_plugin.h rdp->nocb_gp_adv_time = j; j 1951 kernel/rcu/tree_plugin.h unsigned long j = jiffies; j 1969 kernel/rcu/tree_plugin.h (time_after(j, READ_ONCE(rdp->nocb_bypass_first) + 1) || j 1972 kernel/rcu/tree_plugin.h (void)rcu_nocb_try_flush_bypass(rdp, j); j 2033 kernel/rcu/tree_plugin.h mod_timer(&my_rdp->nocb_bypass_timer, j + 2); j 2499 kernel/rcu/tree_plugin.h unsigned long j) j 102 kernel/rcu/tree_stall.h unsigned long j = jiffies; j 105 kernel/rcu/tree_stall.h rcu_state.gp_start = j; j 108 kernel/rcu/tree_stall.h smp_store_release(&rcu_state.jiffies_stall, j + j1); /* ^^^ */ j 109 kernel/rcu/tree_stall.h rcu_state.jiffies_resched = j + j1 / 2; j 127 kernel/rcu/tree_stall.h unsigned long j; j 131 kernel/rcu/tree_stall.h j = READ_ONCE(rcu_state.jiffies_kick_kthreads); j 132 kernel/rcu/tree_stall.h if (time_after(jiffies, j) && rcu_state.gp_kthread && j 138 kernel/rcu/tree_stall.h WRITE_ONCE(rcu_state.jiffies_kick_kthreads, j + HZ); j 336 kernel/rcu/tree_stall.h unsigned long j; j 338 kernel/rcu/tree_stall.h j = jiffies - READ_ONCE(rcu_state.gp_activity); j 339 kernel/rcu/tree_stall.h if (j > 2 * HZ) { j 341 kernel/rcu/tree_stall.h rcu_state.name, j, j 359 kernel/rcu/tree_stall.h unsigned long j; j 403 kernel/rcu/tree_stall.h j = jiffies; j 406 kernel/rcu/tree_stall.h rcu_state.name, j - gpa, j, gpa, j 482 kernel/rcu/tree_stall.h unsigned long j; j 491 kernel/rcu/tree_stall.h j = jiffies; j 519 kernel/rcu/tree_stall.h ULONG_CMP_LT(j, js) || j 534 kernel/rcu/tree_stall.h ULONG_CMP_GE(j, js + RCU_STALL_RAT_DELAY) && j 555 kernel/rcu/tree_stall.h unsigned long j; j 562 kernel/rcu/tree_stall.h j = jiffies; j 563 kernel/rcu/tree_stall.h ja = j - READ_ONCE(rcu_state.gp_activity); j 564 kernel/rcu/tree_stall.h jr = j - READ_ONCE(rcu_state.gp_req_activity); j 565 kernel/rcu/tree_stall.h jw = j - READ_ONCE(rcu_state.gp_wake_time); j 609 kernel/rcu/tree_stall.h unsigned long j; j 616 kernel/rcu/tree_stall.h j = jiffies; /* Expensive access, and in common case don't get here. */ j 617 kernel/rcu/tree_stall.h if (time_before(j, READ_ONCE(rcu_state.gp_req_activity) + gpssdelay) || j 618 kernel/rcu/tree_stall.h time_before(j, READ_ONCE(rcu_state.gp_activity) + gpssdelay) || j 623 kernel/rcu/tree_stall.h j = jiffies; j 626 kernel/rcu/tree_stall.h time_before(j, READ_ONCE(rcu_state.gp_req_activity) + gpssdelay) || j 627 kernel/rcu/tree_stall.h time_before(j, READ_ONCE(rcu_state.gp_activity) + gpssdelay) || j 636 kernel/rcu/tree_stall.h j = jiffies; j 639 kernel/rcu/tree_stall.h time_before(j, rcu_state.gp_req_activity + gpssdelay) || j 640 kernel/rcu/tree_stall.h time_before(j, rcu_state.gp_activity + gpssdelay) || j 660 kernel/rcu/tree_stall.h void rcu_fwd_progress_check(unsigned long j) j 677 kernel/rcu/tree_stall.h rcu_check_gp_start_stall(rdp->mynode, rdp, j); j 347 kernel/rcu/update.c int j; j 358 kernel/rcu/update.c for (j = 0; j < i; j++) j 359 kernel/rcu/update.c if (crcu_array[j] == crcu_array[i]) j 361 kernel/rcu/update.c if (j == i) j 370 kernel/rcu/update.c for (j = 0; j < i; j++) j 371 kernel/rcu/update.c if (crcu_array[j] == crcu_array[i]) j 373 kernel/rcu/update.c if (j == i) j 126 kernel/relay.c unsigned int i, j, n_pages; j 150 kernel/relay.c for (j = 0; j < i; j++) j 151 kernel/relay.c __free_page(buf->page_array[j]); j 504 kernel/sched/cpufreq_schedutil.c unsigned int j; j 506 kernel/sched/cpufreq_schedutil.c for_each_cpu(j, policy->cpus) { j 507 kernel/sched/cpufreq_schedutil.c struct sugov_cpu *j_sg_cpu = &per_cpu(sugov_cpu, j); j 1470 kernel/sched/topology.c int i,j; j 1481 kernel/sched/topology.c for (j = 0; j < nr_node_ids; j++) j 1482 kernel/sched/topology.c printk(KERN_CONT "%02d ", node_distance(i,j)); j 1560 kernel/sched/topology.c int i, j, k; j 1579 kernel/sched/topology.c for (j = 0; j < nr_node_ids; j++) { j 1645 kernel/sched/topology.c for (j = 0; j < nr_node_ids; j++) { j 1650 kernel/sched/topology.c sched_domains_numa_masks[i][j] = mask; j 1653 kernel/sched/topology.c if (node_distance(j, k) > sched_domains_numa_distance[i]) j 1687 kernel/sched/topology.c for (j = 1; j < level; i++, j++) { j 1692 kernel/sched/topology.c .numa_level = j, j 1708 kernel/sched/topology.c int i, j; j 1711 kernel/sched/topology.c for (j = 0; j < nr_node_ids; j++) { j 1712 kernel/sched/topology.c if (node_distance(j, node) <= sched_domains_numa_distance[i]) j 1713 kernel/sched/topology.c cpumask_set_cpu(cpu, sched_domains_numa_masks[i][j]); j 1720 kernel/sched/topology.c int i, j; j 1723 kernel/sched/topology.c for (j = 0; j < nr_node_ids; j++) j 1724 kernel/sched/topology.c cpumask_clear_cpu(cpu, sched_domains_numa_masks[i][j]); j 1738 kernel/sched/topology.c int i, j = cpu_to_node(cpu); j 1741 kernel/sched/topology.c cpu = cpumask_any_and(cpus, sched_domains_numa_masks[i][j]); j 1753 kernel/sched/topology.c int j; j 1774 kernel/sched/topology.c for_each_cpu(j, cpu_map) { j 1781 kernel/sched/topology.c GFP_KERNEL, cpu_to_node(j)); j 1785 kernel/sched/topology.c *per_cpu_ptr(sdd->sd, j) = sd; j 1788 kernel/sched/topology.c GFP_KERNEL, cpu_to_node(j)); j 1792 kernel/sched/topology.c *per_cpu_ptr(sdd->sds, j) = sds; j 1795 kernel/sched/topology.c GFP_KERNEL, cpu_to_node(j)); j 1801 kernel/sched/topology.c *per_cpu_ptr(sdd->sg, j) = sg; j 1804 kernel/sched/topology.c GFP_KERNEL, cpu_to_node(j)); j 1809 kernel/sched/topology.c sgc->id = j; j 1812 kernel/sched/topology.c *per_cpu_ptr(sdd->sgc, j) = sgc; j 1822 kernel/sched/topology.c int j; j 1827 kernel/sched/topology.c for_each_cpu(j, cpu_map) { j 1831 kernel/sched/topology.c sd = *per_cpu_ptr(sdd->sd, j); j 1834 kernel/sched/topology.c kfree(*per_cpu_ptr(sdd->sd, j)); j 1838 kernel/sched/topology.c kfree(*per_cpu_ptr(sdd->sds, j)); j 1840 kernel/sched/topology.c kfree(*per_cpu_ptr(sdd->sg, j)); j 1842 kernel/sched/topology.c kfree(*per_cpu_ptr(sdd->sgc, j)); j 1928 kernel/sched/topology.c int i, j, asym_level = 0; j 1959 kernel/sched/topology.c for_each_cpu_and(j, tl->mask(i), cpu_map) { j 1962 kernel/sched/topology.c capacity = arch_scale_cpu_capacity(j); j 2225 kernel/sched/topology.c int i, j, n; j 2251 kernel/sched/topology.c for (j = 0; j < n && !new_topology; j++) { j 2252 kernel/sched/topology.c if (cpumask_equal(doms_cur[i], doms_new[j]) && j 2253 kernel/sched/topology.c dattrs_equal(dattr_cur, i, dattr_new, j)) { j 2283 kernel/sched/topology.c for (j = 0; j < n && !new_topology; j++) { j 2284 kernel/sched/topology.c if (cpumask_equal(doms_new[i], doms_cur[j]) && j 2285 kernel/sched/topology.c dattrs_equal(dattr_new, i, dattr_cur, j)) j 2297 kernel/sched/topology.c for (j = 0; j < n && !sched_energy_update; j++) { j 2298 kernel/sched/topology.c if (cpumask_equal(doms_new[i], doms_cur[j]) && j 2299 kernel/sched/topology.c cpu_rq(cpumask_first(doms_cur[j]))->rd->pd) { j 376 kernel/time/time.c unsigned int jiffies_to_msecs(const unsigned long j) j 379 kernel/time/time.c return (MSEC_PER_SEC / HZ) * j; j 381 kernel/time/time.c return (j + (HZ / MSEC_PER_SEC) - 1)/(HZ / MSEC_PER_SEC); j 384 kernel/time/time.c return (HZ_TO_MSEC_MUL32 * j + (1ULL << HZ_TO_MSEC_SHR32) - 1) >> j 387 kernel/time/time.c return DIV_ROUND_UP(j * HZ_TO_MSEC_NUM, HZ_TO_MSEC_DEN); j 393 kernel/time/time.c unsigned int jiffies_to_usecs(const unsigned long j) j 402 kernel/time/time.c return (USEC_PER_SEC / HZ) * j; j 405 kernel/time/time.c return (HZ_TO_USEC_MUL32 * j) >> HZ_TO_USEC_SHR32; j 407 kernel/time/time.c return (j * HZ_TO_USEC_NUM) / HZ_TO_USEC_DEN; j 780 kernel/time/time.c u64 jiffies64_to_nsecs(u64 j) j 783 kernel/time/time.c return (NSEC_PER_SEC / HZ) * j; j 785 kernel/time/time.c return div_u64(j * HZ_TO_NSEC_NUM, HZ_TO_NSEC_DEN); j 790 kernel/time/time.c u64 jiffies64_to_msecs(const u64 j) j 793 kernel/time/time.c return (MSEC_PER_SEC / HZ) * j; j 795 kernel/time/time.c return div_u64(j * HZ_TO_MSEC_NUM, HZ_TO_MSEC_DEN); j 273 kernel/time/timer.c static unsigned long round_jiffies_common(unsigned long j, int cpu, j 277 kernel/time/timer.c unsigned long original = j; j 287 kernel/time/timer.c j += cpu * 3; j 289 kernel/time/timer.c rem = j % HZ; j 299 kernel/time/timer.c j = j - rem; j 301 kernel/time/timer.c j = j - rem + HZ; j 304 kernel/time/timer.c j -= cpu * 3; j 310 kernel/time/timer.c return time_is_after_jiffies(j) ? j : original; j 333 kernel/time/timer.c unsigned long __round_jiffies(unsigned long j, int cpu) j 335 kernel/time/timer.c return round_jiffies_common(j, cpu, false); j 359 kernel/time/timer.c unsigned long __round_jiffies_relative(unsigned long j, int cpu) j 364 kernel/time/timer.c return round_jiffies_common(j + j0, cpu, false) - j0; j 383 kernel/time/timer.c unsigned long round_jiffies(unsigned long j) j 385 kernel/time/timer.c return round_jiffies_common(j, raw_smp_processor_id(), false); j 404 kernel/time/timer.c unsigned long round_jiffies_relative(unsigned long j) j 406 kernel/time/timer.c return __round_jiffies_relative(j, raw_smp_processor_id()); j 420 kernel/time/timer.c unsigned long __round_jiffies_up(unsigned long j, int cpu) j 422 kernel/time/timer.c return round_jiffies_common(j, cpu, true); j 436 kernel/time/timer.c unsigned long __round_jiffies_up_relative(unsigned long j, int cpu) j 441 kernel/time/timer.c return round_jiffies_common(j + j0, cpu, true) - j0; j 454 kernel/time/timer.c unsigned long round_jiffies_up(unsigned long j) j 456 kernel/time/timer.c return round_jiffies_common(j, raw_smp_processor_id(), true); j 469 kernel/time/timer.c unsigned long round_jiffies_up_relative(unsigned long j) j 471 kernel/time/timer.c return __round_jiffies_up_relative(j, raw_smp_processor_id()); j 3209 kernel/trace/trace_events_hist.c unsigned int n, i, j; j 3215 kernel/trace/trace_events_hist.c j = target_hist_data->n_vals; j 3219 kernel/trace/trace_events_hist.c target_hist_field = target_hist_data->fields[j + n]; j 3469 kernel/trace/trace_events_hist.c unsigned int i, j, var_idx; j 3472 kernel/trace/trace_events_hist.c for (i = 0, j = field_var_str_start; i < n_field_vars; i++) { j 3481 kernel/trace/trace_events_hist.c char *str = elt_data->field_var_str[j++]; j 4580 kernel/trace/trace_events_hist.c unsigned int i, j = 1; j 4591 kernel/trace/trace_events_hist.c for (i = 0, j = 1; i < TRACING_MAP_VALS_MAX && j 4592 kernel/trace/trace_events_hist.c j < TRACING_MAP_VALS_MAX; i++) { j 4600 kernel/trace/trace_events_hist.c ret = create_val_field(hist_data, j++, file, field_str); j 4707 kernel/trace/trace_events_hist.c unsigned int i, j = hist_data->n_vals; j 4716 kernel/trace/trace_events_hist.c ret = create_var_field(hist_data, j++, file, var_name, expr); j 4740 kernel/trace/trace_events_hist.c unsigned int i, j, n_vars = 0; j 4745 kernel/trace/trace_events_hist.c for (j = 0; j < TRACING_MAP_VARS_MAX; j++) { j 4835 kernel/trace/trace_events_hist.c unsigned int i, j, k; j 4879 kernel/trace/trace_events_hist.c for (j = 1, k = 1; j < hist_data->n_fields; j++) { j 4882 kernel/trace/trace_events_hist.c hist_field = hist_data->fields[j]; j 4901 kernel/trace/trace_events_hist.c if (j == hist_data->n_fields) { j 5079 kernel/trace/trace_events_hist.c unsigned int i, j; j 5097 kernel/trace/trace_events_hist.c for (j = 0; j < data->n_params; j++) { j 5098 kernel/trace/trace_events_hist.c if (strcmp(data->params[j], data_test->params[j]) != 0) j 845 kernel/trace/trace_probe.c int i, j; j 865 kernel/trace/trace_probe.c for (j = 1; j < parg->count; j++) j 884 kernel/trace/trace_probe.c for (j = 0; j < parg->count; j++) j 886 kernel/trace/trace_probe.c fmt, parg->name, j); j 221 kernel/trace/trace_probe_tmpl.h int i, j; j 234 kernel/trace/trace_probe_tmpl.h for (j = 0; j < a->count; j++) { j 237 kernel/trace/trace_probe_tmpl.h trace_seq_putc(s, j == a->count - 1 ? '}' : ','); j 207 kernel/tracepoint.c int j = 0; j 216 kernel/tracepoint.c new[j++] = old[i]; j 486 lib/assoc_array.c int slot, next_slot, free_slot, i, j; j 634 lib/assoc_array.c for (j = i + 1; j < ASSOC_ARRAY_FAN_OUT + 1; j++) j 635 lib/assoc_array.c if (edit->segment_cache[j] == slot) j 639 lib/assoc_array.c pr_devel("same slot: %x %x [%02x]\n", i, j, slot); j 641 lib/assoc_array.c BUG_ON(j >= ASSOC_ARRAY_FAN_OUT + 1); j 350 lib/bch.c int i, j, s; j 369 lib/bch.c for (j = 0; j < 2*t; j += 2) j 370 lib/bch.c syn[j] ^= a_pow(bch, (j+1)*(i+s)); j 377 lib/bch.c for (j = 0; j < t; j++) j 378 lib/bch.c syn[2*j+1] = gf_sqr(bch, syn[j]); j 391 lib/bch.c unsigned int i, j, tmp, l, pd = 1, d = syn[0]; j 412 lib/bch.c for (j = 0; j <= pelp->deg; j++) { j 413 lib/bch.c if (pelp->c[j]) { j 414 lib/bch.c l = a_log(bch, pelp->c[j]); j 415 lib/bch.c elp->c[j+k] ^= a_pow(bch, tmp+l); j 430 lib/bch.c for (j = 1; j <= elp->deg; j++) j 431 lib/bch.c d ^= gf_mul(bch, elp->c[j], syn[2*i+2-j]); j 522 lib/bch.c int i, j, k; j 526 lib/bch.c j = a_log(bch, b); j 534 lib/bch.c (b ? bch->a_pow_tab[mod_s(bch, j)] : 0); j 535 lib/bch.c j++; j 542 lib/bch.c for (j = 8; j != 0; j >>= 1, mask ^= (mask << j)) { j 543 lib/bch.c for (k = 0; k < 16; k = (k+j+1) & ~j) { j 544 lib/bch.c t = ((rows[k] >> j)^rows[k+j]) & mask; j 545 lib/bch.c rows[k] ^= (t << j); j 546 lib/bch.c rows[k+j] ^= t; j 726 lib/bch.c unsigned int i, j, *c = a->c; j 738 lib/bch.c for (j = a->deg; j >= d; j--) { j 739 lib/bch.c if (c[j]) { j 740 lib/bch.c la = a_log(bch, c[j]); j 741 lib/bch.c p = j-d; j 810 lib/bch.c int i, j; j 825 lib/bch.c for (j = z->deg; j >= 0; j--) { j 826 lib/bch.c out->c[j] ^= z->c[j]; j 827 lib/bch.c z->c[2*j] = gf_sqr(bch, z->c[j]); j 828 lib/bch.c z->c[2*j+1] = 0; j 928 lib/bch.c unsigned int i, j, syn, syn0, count = 0; j 938 lib/bch.c for (j = 1, syn = syn0; j <= p->deg; j++) { j 939 lib/bch.c m = bch->cache[j]; j 941 lib/bch.c syn ^= a_pow(bch, m+j*i); j 1091 lib/bch.c int i, j, b, d; j 1109 lib/bch.c for (j = 0; j < ecclen; j++) { j 1110 lib/bch.c hi = (d < 31) ? g[j] << (d+1) : 0; j 1111 lib/bch.c lo = (j+1 < plen) ? j 1112 lib/bch.c g[j+1] >> (31-d) : 0; j 1113 lib/bch.c tab[j] ^= hi|lo; j 1126 lib/bch.c int i, j, r; j 1131 lib/bch.c for (j = 0, sum = 0; j < m; j++) j 1132 lib/bch.c sum ^= a_pow(bch, i*(1 << j)); j 1179 lib/bch.c unsigned int i, j, nbits, r, word, *roots; j 1196 lib/bch.c for (j = 0, r = 2*i+1; j < m; j++) { j 1209 lib/bch.c for (j = g->deg; j > 0; j--) j 1210 lib/bch.c g->c[j] = gf_mul(bch, g->c[j], r)^g->c[j-1]; j 1222 lib/bch.c for (j = 0, word = 0; j < nbits; j++) { j 1223 lib/bch.c if (g->c[n-1-j]) j 1224 lib/bch.c word |= 1u << (31-j); j 713 lib/crc32test.c int i, j; j 721 lib/crc32test.c for (j = 0; j <= test[i].length; ++j) { j 723 lib/crc32test.c u32 len1 = j, len2 = test[i].length - j; j 803 lib/crc32test.c int i, j; j 811 lib/crc32test.c for (j = 0; j <= test[i].length; ++j) { j 813 lib/crc32test.c u32 len1 = j, len2 = test[i].length - j; j 31 lib/crc8.c int i, j; j 39 lib/crc8.c for (j = 0; j < i; j++) j 40 lib/crc8.c table[i+j] = table[j] ^ t; j 53 lib/crc8.c int i, j; j 60 lib/crc8.c for (j = 0; j < CRC8_TABLE_SIZE; j += 2*i) j 61 lib/crc8.c table[i+j] = table[j] ^ t; j 189 lib/crypto/aes.c u32 rc, i, j; j 236 lib/crypto/aes.c for (i = 4, j = key_len + 20; j > 0; i += 4, j -= 4) { j 237 lib/crypto/aes.c ctx->key_dec[i] = inv_mix_columns(ctx->key_enc[j]); j 238 lib/crypto/aes.c ctx->key_dec[i + 1] = inv_mix_columns(ctx->key_enc[j + 1]); j 239 lib/crypto/aes.c ctx->key_dec[i + 2] = inv_mix_columns(ctx->key_enc[j + 2]); j 240 lib/crypto/aes.c ctx->key_dec[i + 3] = inv_mix_columns(ctx->key_enc[j + 3]); j 15 lib/crypto/arc4.c int i, j = 0, k = 0; j 26 lib/crypto/arc4.c j = (j + in_key[k] + a) & 0xff; j 27 lib/crypto/arc4.c ctx->S[i] = ctx->S[j]; j 28 lib/crypto/arc4.c ctx->S[j] = a; j 162 lib/decompress_bunzip2.c i, j, k, t, runPos, symCount, symTotal, nSelectors, *byteCount; j 176 lib/decompress_bunzip2.c j = get_bits(bd, 24); j 178 lib/decompress_bunzip2.c if ((i == 0x177245) && (j == 0x385090)) j 180 lib/decompress_bunzip2.c if ((i != 0x314159) || (j != 0x265359)) j 200 lib/decompress_bunzip2.c for (j = 0; j < 16; j++) j 201 lib/decompress_bunzip2.c if (k&(1 << (15-j))) j 202 lib/decompress_bunzip2.c symToByte[symTotal++] = (16*i)+j; j 221 lib/decompress_bunzip2.c for (j = 0; get_bits(bd, 1); j++) j 222 lib/decompress_bunzip2.c if (j >= groupCount) j 225 lib/decompress_bunzip2.c uc = mtfSymbol[j]; j 226 lib/decompress_bunzip2.c for (; j; j--) j 227 lib/decompress_bunzip2.c mtfSymbol[j] = mtfSymbol[j-1]; j 234 lib/decompress_bunzip2.c for (j = 0; j < groupCount; j++) { j 296 lib/decompress_bunzip2.c hufGroup = bd->groups+j; j 382 lib/decompress_bunzip2.c j = get_bits(bd, hufGroup->maxLen); j 390 lib/decompress_bunzip2.c j = (bd->inbufBits >> bd->inbufBitCount)& j 396 lib/decompress_bunzip2.c while (j > limit[i]) j 401 lib/decompress_bunzip2.c || (((unsigned)(j = (j>>(hufGroup->maxLen-i))-base[i])) j 404 lib/decompress_bunzip2.c nextSym = hufGroup->permute[j]; j 487 lib/decompress_bunzip2.c j = 0; j 489 lib/decompress_bunzip2.c k = j+byteCount[i]; j 490 lib/decompress_bunzip2.c byteCount[i] = j; j 491 lib/decompress_bunzip2.c j = k; j 633 lib/decompress_bunzip2.c unsigned int i, j, c; j 657 lib/decompress_bunzip2.c for (j = 8; j; j--) j 68 lib/earlycpio.c int i, j; j 80 lib/earlycpio.c j = 6; /* The magic field is only 6 characters */ j 84 lib/earlycpio.c while (j--) { j 103 lib/earlycpio.c j = 8; /* All other fields are 8 characters */ j 40 lib/gen_crc32table.c unsigned i, j; j 47 lib/gen_crc32table.c for (j = 0; j < LE_TABLE_SIZE; j += 2 * i) j 48 lib/gen_crc32table.c tab[0][i + j] = crc ^ tab[0][j]; j 52 lib/gen_crc32table.c for (j = 1; j < LE_TABLE_ROWS; j++) { j 54 lib/gen_crc32table.c tab[j][i] = crc; j 74 lib/gen_crc32table.c unsigned i, j; j 81 lib/gen_crc32table.c for (j = 0; j < i; j++) j 82 lib/gen_crc32table.c crc32table_be[0][i + j] = crc ^ crc32table_be[0][j]; j 86 lib/gen_crc32table.c for (j = 1; j < BE_TABLE_ROWS; j++) { j 88 lib/gen_crc32table.c crc32table_be[j][i] = crc; j 95 lib/gen_crc32table.c int i, j; j 97 lib/gen_crc32table.c for (j = 0 ; j < rows; j++) { j 102 lib/gen_crc32table.c printf("%s(0x%8.8xL), ", trans, table[j][i]); j 104 lib/gen_crc32table.c printf("%s(0x%8.8xL)},\n", trans, table[j][len - 1]); j 25 lib/gen_crc64table.c uint64_t i, j, c, crc; j 31 lib/gen_crc64table.c for (j = 0; j < 8; j++) { j 111 lib/hexdump.c int j, lx = 0; j 137 lib/hexdump.c for (j = 0; j < ngroups; j++) { j 139 lib/hexdump.c "%s%16.16llx", j ? " " : "", j 140 lib/hexdump.c get_unaligned(ptr8 + j)); j 148 lib/hexdump.c for (j = 0; j < ngroups; j++) { j 150 lib/hexdump.c "%s%8.8x", j ? " " : "", j 151 lib/hexdump.c get_unaligned(ptr4 + j)); j 159 lib/hexdump.c for (j = 0; j < ngroups; j++) { j 161 lib/hexdump.c "%s%4.4x", j ? " " : "", j 162 lib/hexdump.c get_unaligned(ptr2 + j)); j 168 lib/hexdump.c for (j = 0; j < len; j++) { j 171 lib/hexdump.c ch = ptr[j]; j 180 lib/hexdump.c if (j) j 191 lib/hexdump.c for (j = 0; j < len; j++) { j 194 lib/hexdump.c ch = ptr[j]; j 342 lib/inflate.c register unsigned j; /* counter */ j 394 lib/inflate.c for (j = 1; j <= BMAX; j++) j 395 lib/inflate.c if (c[j]) j 397 lib/inflate.c k = j; /* minimum code length */ j 398 lib/inflate.c if ((unsigned)l < j) j 399 lib/inflate.c l = j; j 411 lib/inflate.c for (y = 1 << j; j < i; j++, y <<= 1) j 412 lib/inflate.c if ((y -= c[j]) < 0) { j 425 lib/inflate.c x[1] = j = 0; j 428 lib/inflate.c *xp++ = (j += *p++); j 436 lib/inflate.c if ((j = *p++) != 0) j 437 lib/inflate.c v[x[j]++] = i; j 471 lib/inflate.c if ((f = 1 << (j = k - w)) > a + 1) /* try a k-w bit table */ j 476 lib/inflate.c if (j < z) j 477 lib/inflate.c while (++j < z) /* try smaller tables up to z bits */ j 485 lib/inflate.c z = 1 << j; /* table entries for j-bit table */ j 508 lib/inflate.c r.e = (uch)(16 + j); /* bits in this table */ j 510 lib/inflate.c j = i >> (w - l); /* (get around Turbo C bug) */ j 511 lib/inflate.c u[h-1][j] = r; /* connect to last table */ j 536 lib/inflate.c for (j = i >> w; j < z; j += f) j 537 lib/inflate.c q[j] = r; j 540 lib/inflate.c for (j = 1 << (k - 1); i & j; j >>= 1) j 541 lib/inflate.c i ^= j; j 542 lib/inflate.c i ^= j; j 833 lib/inflate.c unsigned j; j 888 lib/inflate.c for (j = 0; j < nb; j++) j 891 lib/inflate.c ll[border[j]] = (unsigned)b & 7; j 894 lib/inflate.c for (; j < 19; j++) j 895 lib/inflate.c ll[border[j]] = 0; j 918 lib/inflate.c j = (td = tl + ((unsigned)b & m))->b; j 919 lib/inflate.c DUMPBITS(j) j 920 lib/inflate.c j = td->v.n; j 921 lib/inflate.c if (j < 16) /* length of code in bits (0..15) */ j 922 lib/inflate.c ll[i++] = l = j; /* save last length in l */ j 923 lib/inflate.c else if (j == 16) /* repeat last length 3 to 6 times */ j 926 lib/inflate.c j = 3 + ((unsigned)b & 3); j 928 lib/inflate.c if ((unsigned)i + j > n) { j 932 lib/inflate.c while (j--) j 935 lib/inflate.c else if (j == 17) /* 3 to 10 zero length codes */ j 938 lib/inflate.c j = 3 + ((unsigned)b & 7); j 940 lib/inflate.c if ((unsigned)i + j > n) { j 944 lib/inflate.c while (j--) j 951 lib/inflate.c j = 11 + ((unsigned)b & 0x7f); j 953 lib/inflate.c if ((unsigned)i + j > n) { j 957 lib/inflate.c while (j--) j 64 lib/interval_tree_test.c int i, j; j 87 lib/interval_tree_test.c for (j = 0; j < nnodes; j++) j 88 lib/interval_tree_test.c interval_tree_insert(nodes + j, &root); j 89 lib/interval_tree_test.c for (j = 0; j < nnodes; j++) j 90 lib/interval_tree_test.c interval_tree_remove(nodes + j, &root); j 101 lib/interval_tree_test.c for (j = 0; j < nnodes; j++) j 102 lib/interval_tree_test.c interval_tree_insert(nodes + j, &root); j 108 lib/interval_tree_test.c for (j = 0; j < nsearches; j++) { j 109 lib/interval_tree_test.c unsigned long start = search_all ? 0 : queries[j]; j 110 lib/interval_tree_test.c unsigned long last = search_all ? max_endpoint : queries[j]; j 422 lib/kobject_uevent.c int i, j; j 437 lib/kobject_uevent.c for (j = i; j < env->envp_idx - 1; j++) j 438 lib/kobject_uevent.c env->envp[j] = env->envp[j + 1] - len; j 25 lib/mpi/generic_mpih-add1.c mpi_size_t j; j 29 lib/mpi/generic_mpih-add1.c j = -size; j 32 lib/mpi/generic_mpih-add1.c s1_ptr -= j; j 33 lib/mpi/generic_mpih-add1.c s2_ptr -= j; j 34 lib/mpi/generic_mpih-add1.c res_ptr -= j; j 38 lib/mpi/generic_mpih-add1.c y = s2_ptr[j]; j 39 lib/mpi/generic_mpih-add1.c x = s1_ptr[j]; j 44 lib/mpi/generic_mpih-add1.c res_ptr[j] = y; j 45 lib/mpi/generic_mpih-add1.c } while (++j); j 24 lib/mpi/generic_mpih-mul1.c mpi_size_t j; j 29 lib/mpi/generic_mpih-mul1.c j = -s1_size; j 32 lib/mpi/generic_mpih-mul1.c s1_ptr -= j; j 33 lib/mpi/generic_mpih-mul1.c res_ptr -= j; j 37 lib/mpi/generic_mpih-mul1.c umul_ppmm(prod_high, prod_low, s1_ptr[j], s2_limb); j 40 lib/mpi/generic_mpih-mul1.c res_ptr[j] = prod_low; j 41 lib/mpi/generic_mpih-mul1.c } while (++j); j 24 lib/mpi/generic_mpih-mul2.c mpi_size_t j; j 30 lib/mpi/generic_mpih-mul2.c j = -s1_size; j 31 lib/mpi/generic_mpih-mul2.c res_ptr -= j; j 32 lib/mpi/generic_mpih-mul2.c s1_ptr -= j; j 36 lib/mpi/generic_mpih-mul2.c umul_ppmm(prod_high, prod_low, s1_ptr[j], s2_limb); j 41 lib/mpi/generic_mpih-mul2.c x = res_ptr[j]; j 44 lib/mpi/generic_mpih-mul2.c res_ptr[j] = prod_low; j 45 lib/mpi/generic_mpih-mul2.c } while (++j); j 24 lib/mpi/generic_mpih-mul3.c mpi_size_t j; j 30 lib/mpi/generic_mpih-mul3.c j = -s1_size; j 31 lib/mpi/generic_mpih-mul3.c res_ptr -= j; j 32 lib/mpi/generic_mpih-mul3.c s1_ptr -= j; j 36 lib/mpi/generic_mpih-mul3.c umul_ppmm(prod_high, prod_low, s1_ptr[j], s2_limb); j 41 lib/mpi/generic_mpih-mul3.c x = res_ptr[j]; j 44 lib/mpi/generic_mpih-mul3.c res_ptr[j] = prod_low; j 45 lib/mpi/generic_mpih-mul3.c } while (++j); j 24 lib/mpi/generic_mpih-sub1.c mpi_size_t j; j 28 lib/mpi/generic_mpih-sub1.c j = -size; j 31 lib/mpi/generic_mpih-sub1.c s1_ptr -= j; j 32 lib/mpi/generic_mpih-sub1.c s2_ptr -= j; j 33 lib/mpi/generic_mpih-sub1.c res_ptr -= j; j 37 lib/mpi/generic_mpih-sub1.c y = s2_ptr[j]; j 38 lib/mpi/generic_mpih-sub1.c x = s1_ptr[j]; j 43 lib/mpi/generic_mpih-sub1.c res_ptr[j] = y; j 44 lib/mpi/generic_mpih-sub1.c } while (++j); j 38 lib/mpi/mpicoder.c int i, j; j 67 lib/mpi/mpicoder.c for (j = nlimbs; j > 0; j--) { j 74 lib/mpi/mpicoder.c val->d[j - 1] = a; j 334 lib/mpi/mpicoder.c int x, j, z, lzeros, ents; j 393 lib/mpi/mpicoder.c j = nlimbs - 1; j 406 lib/mpi/mpicoder.c val->d[j--] = a; j 739 lib/objagg.c int j; j 745 lib/objagg.c for (j = 0; j < graph->nodes_count; j++) { j 746 lib/objagg.c if (!objagg_tmp_graph_is_edge(graph, index, j)) j 748 lib/objagg.c node = &graph->nodes[j]; j 785 lib/objagg.c int i, j; j 812 lib/objagg.c for (j = 0; j < nodes_count; j++) { j 813 lib/objagg.c if (i == j) j 816 lib/objagg.c node = &graph->nodes[j]; j 820 lib/objagg.c objagg_tmp_graph_edge_set(graph, i, j); j 849 lib/objagg.c int j; j 871 lib/objagg.c for (j = 0; j < graph->nodes_count; j++) { j 872 lib/objagg.c if (!objagg_tmp_graph_is_edge(graph, index, j)) j 874 lib/objagg.c node = &graph->nodes[j]; j 30 lib/oid_registry.c unsigned i, j, k, hash; j 48 lib/oid_registry.c j = (i + k) / 2; j 50 lib/oid_registry.c xhash = oid_search_table[j].hash; j 52 lib/oid_registry.c k = j; j 56 lib/oid_registry.c i = j + 1; j 60 lib/oid_registry.c oid = oid_search_table[j].oid; j 63 lib/oid_registry.c k = j; j 67 lib/oid_registry.c i = j + 1; j 78 lib/oid_registry.c k = j; j 82 lib/oid_registry.c i = j + 1; j 55 lib/raid6/mktables.c int i, j, k; j 68 lib/raid6/mktables.c for (j = 0; j < 256; j += 8) { j 71 lib/raid6/mktables.c printf("0x%02x,%c", gfmul(i, j + k), j 87 lib/raid6/mktables.c for (j = 0; j < 16; j += 8) { j 90 lib/raid6/mktables.c printf("0x%02x,%c", gfmul(i, j + k), j 93 lib/raid6/mktables.c for (j = 0; j < 16; j += 8) { j 96 lib/raid6/mktables.c printf("0x%02x,%c", gfmul(i, (j + k) << 4), j 112 lib/raid6/mktables.c for (j = 0; j < 8; j++) { j 113 lib/raid6/mktables.c exptbl[i + j] = v; j 114 lib/raid6/mktables.c printf("0x%02x,%c", v, (j == 7) ? '\n' : ' '); j 130 lib/raid6/mktables.c for (j = 0; j < 8; j++) { j 133 lib/raid6/mktables.c if (exptbl[k] == (i + j)) { j 137 lib/raid6/mktables.c printf("0x%02x,%c", v, (j == 7) ? '\n' : ' '); j 150 lib/raid6/mktables.c for (j = 0; j < 8; j++) { j 151 lib/raid6/mktables.c invtbl[i + j] = v = gfpow(i + j, 254); j 152 lib/raid6/mktables.c printf("0x%02x,%c", v, (j == 7) ? '\n' : ' '); j 165 lib/raid6/mktables.c for (j = 0; j < 8; j++) j 166 lib/raid6/mktables.c printf("0x%02x,%c", invtbl[exptbl[i + j] ^ 1], j 167 lib/raid6/mktables.c (j == 7) ? '\n' : ' '); j 31 lib/raid6/test/test.c int i, j; j 34 lib/raid6/test/test.c for (j = 0; j < PAGE_SIZE; j++) j 35 lib/raid6/test/test.c data[i][j] = rand(); j 53 lib/raid6/test/test.c static int test_disks(int i, int j) j 61 lib/raid6/test/test.c dataptrs[j] = recovj; j 63 lib/raid6/test/test.c raid6_dual_recov(NDISKS, PAGE_SIZE, i, j, (void **)&dataptrs); j 66 lib/raid6/test/test.c errb = memcmp(data[j], recovj, PAGE_SIZE); j 68 lib/raid6/test/test.c if (i < NDISKS-2 && j == NDISKS-1) { j 76 lib/raid6/test/test.c j, disk_type(j), j 83 lib/raid6/test/test.c dataptrs[j] = data[j]; j 92 lib/raid6/test/test.c int i, j, p1, p2; j 120 lib/raid6/test/test.c for (j = i+1; j < NDISKS; j++) j 121 lib/raid6/test/test.c err += test_disks(i, j); j 137 lib/raid6/test/test.c for (j = i+1; j < NDISKS; j++) j 138 lib/raid6/test/test.c err += test_disks(i, j); j 426 lib/random32.c int i, j, errors = 0, runs = 0; j 450 lib/random32.c for (j = 0; j < test2[i].iteration - 1; j++) j 244 lib/rbtree_test.c int i, j; j 260 lib/rbtree_test.c for (j = 0; j < nnodes; j++) j 261 lib/rbtree_test.c insert(nodes + j, &root); j 262 lib/rbtree_test.c for (j = 0; j < nnodes; j++) j 263 lib/rbtree_test.c erase(nodes + j, &root); j 276 lib/rbtree_test.c for (j = 0; j < nnodes; j++) j 277 lib/rbtree_test.c insert_cached(nodes + j, &root); j 278 lib/rbtree_test.c for (j = 0; j < nnodes; j++) j 279 lib/rbtree_test.c erase_cached(nodes + j, &root); j 335 lib/rbtree_test.c for (j = 0; j < nnodes; j++) { j 336 lib/rbtree_test.c check(j); j 337 lib/rbtree_test.c insert(nodes + j, &root); j 339 lib/rbtree_test.c for (j = 0; j < nnodes; j++) { j 340 lib/rbtree_test.c check(nnodes - j); j 341 lib/rbtree_test.c erase(nodes + j, &root); j 353 lib/rbtree_test.c for (j = 0; j < nnodes; j++) j 354 lib/rbtree_test.c insert_augmented(nodes + j, &root); j 355 lib/rbtree_test.c for (j = 0; j < nnodes; j++) j 356 lib/rbtree_test.c erase_augmented(nodes + j, &root); j 368 lib/rbtree_test.c for (j = 0; j < nnodes; j++) j 369 lib/rbtree_test.c insert_augmented_cached(nodes + j, &root); j 370 lib/rbtree_test.c for (j = 0; j < nnodes; j++) j 371 lib/rbtree_test.c erase_augmented_cached(nodes + j, &root); j 382 lib/rbtree_test.c for (j = 0; j < nnodes; j++) { j 383 lib/rbtree_test.c check_augmented(j); j 384 lib/rbtree_test.c insert_augmented(nodes + j, &root); j 386 lib/rbtree_test.c for (j = 0; j < nnodes; j++) { j 387 lib/rbtree_test.c check_augmented(nnodes - j); j 388 lib/rbtree_test.c erase_augmented(nodes + j, &root); j 15 lib/reed_solomon/decode_rs.c int i, j, r, k, pad; j 64 lib/reed_solomon/decode_rs.c for (j = 1; j < len; j++) { j 67 lib/reed_solomon/decode_rs.c syn[i] = (((uint16_t) data[j]) ^ j 70 lib/reed_solomon/decode_rs.c syn[i] = ((((uint16_t) data[j]) ^ j 78 lib/reed_solomon/decode_rs.c for (j = 0; j < nroots; j++) { j 81 lib/reed_solomon/decode_rs.c syn[i] = ((uint16_t) par[j]) & msk; j 83 lib/reed_solomon/decode_rs.c syn[i] = (((uint16_t) par[j]) & msk) ^ j 115 lib/reed_solomon/decode_rs.c for (j = i + 1; j > 0; j--) { j 116 lib/reed_solomon/decode_rs.c tmp = index_of[lambda[j - 1]]; j 118 lib/reed_solomon/decode_rs.c lambda[j] ^= j 202 lib/reed_solomon/decode_rs.c for (j = deg_lambda; j > 0; j--) { j 203 lib/reed_solomon/decode_rs.c if (reg[j] != nn) { j 204 lib/reed_solomon/decode_rs.c reg[j] = rs_modnn(rs, reg[j] + j); j 205 lib/reed_solomon/decode_rs.c q ^= alpha_to[reg[j]]; j 239 lib/reed_solomon/decode_rs.c for (j = i; j >= 0; j--) { j 240 lib/reed_solomon/decode_rs.c if ((s[i - j] != nn) && (lambda[j] != nn)) j 242 lib/reed_solomon/decode_rs.c alpha_to[rs_modnn(rs, s[i - j] + lambda[j])]; j 253 lib/reed_solomon/decode_rs.c for (j = count - 1; j >= 0; j--) { j 258 lib/reed_solomon/decode_rs.c i * root[j])]; j 263 lib/reed_solomon/decode_rs.c b[j] = 0; j 267 lib/reed_solomon/decode_rs.c num2 = alpha_to[rs_modnn(rs, root[j] * (fcr - 1) + nn)]; j 275 lib/reed_solomon/decode_rs.c i * root[j])]; j 279 lib/reed_solomon/decode_rs.c b[j] = alpha_to[rs_modnn(rs, index_of[num1] + j 291 lib/reed_solomon/decode_rs.c for (j = 0; j < count; j++) { j 292 lib/reed_solomon/decode_rs.c if (b[j] == 0) j 295 lib/reed_solomon/decode_rs.c k = (fcr + i) * prim * (nn-loc[j]-1); j 296 lib/reed_solomon/decode_rs.c tmp ^= alpha_to[rs_modnn(rs, index_of[b[j]] + k)]; j 308 lib/reed_solomon/decode_rs.c j = 0; j 311 lib/reed_solomon/decode_rs.c corr[j] = b[i]; j 312 lib/reed_solomon/decode_rs.c eras_pos[j++] = loc[i] - pad; j 14 lib/reed_solomon/encode_rs.c int i, j, pad; j 32 lib/reed_solomon/encode_rs.c for (j = 1; j < nroots; j++) { j 33 lib/reed_solomon/encode_rs.c par[j] ^= alpha_to[rs_modnn(rs, fb + j 34 lib/reed_solomon/encode_rs.c genpoly[nroots - j])]; j 73 lib/reed_solomon/reed_solomon.c int i, j, sr, root, iprim; j 138 lib/reed_solomon/reed_solomon.c for (j = i; j > 0; j--) { j 139 lib/reed_solomon/reed_solomon.c if (rs->genpoly[j] != 0) { j 140 lib/reed_solomon/reed_solomon.c rs->genpoly[j] = rs->genpoly[j -1] ^ j 142 lib/reed_solomon/reed_solomon.c rs->index_of[rs->genpoly[j]] + root)]; j 144 lib/reed_solomon/reed_solomon.c rs->genpoly[j] = rs->genpoly[j - 1]; j 238 lib/reed_solomon/test_rslib.c int i, j; j 243 lib/reed_solomon/test_rslib.c for (j = 1; j < len; j++) { j 245 lib/reed_solomon/test_rslib.c syn[i] = data[j]; j 247 lib/reed_solomon/test_rslib.c syn[i] = data[j] ^ j 272 lib/reed_solomon/test_rslib.c int i, j; j 274 lib/reed_solomon/test_rslib.c for (j = 0; j < trials; j++) { j 375 lib/reed_solomon/test_rslib.c int derrs, j; j 377 lib/reed_solomon/test_rslib.c for (j = 0; j < trials; j++) { j 420 lib/scatterlist.c unsigned int j, chunk_size; j 424 lib/scatterlist.c for (j = cur_page + 1; j < n_pages; j++) { j 427 lib/scatterlist.c page_to_pfn(pages[j]) != j 428 lib/scatterlist.c page_to_pfn(pages[j - 1]) + 1) j 432 lib/scatterlist.c chunk_size = ((j - cur_page) << PAGE_SHIFT) - offset; j 437 lib/scatterlist.c cur_page = j; j 227 lib/seq_buf.c int i, j; j 234 lib/seq_buf.c for (i = 0, j = 0; i < start_len; i++) { j 236 lib/seq_buf.c for (i = start_len-1, j = 0; i >= 0; i--) { j 238 lib/seq_buf.c hex[j++] = hex_asc_hi(data[i]); j 239 lib/seq_buf.c hex[j++] = hex_asc_lo(data[i]); j 241 lib/seq_buf.c if (WARN_ON_ONCE(j == 0 || j/2 > len)) j 245 lib/seq_buf.c len -= j / 2; j 246 lib/seq_buf.c hex[j++] = ' '; j 248 lib/seq_buf.c seq_buf_putmem(s, hex, j); j 79 lib/sg_split.c int i, j; j 86 lib/sg_split.c for (j = 0; j < split->nents; j++, out_sg++) { j 88 lib/sg_split.c if (!j) { j 105 lib/sg_split.c int i, j; j 112 lib/sg_split.c for (j = 0; j < split->nents; j++, out_sg++) { j 115 lib/sg_split.c if (!j) { j 52 lib/string_helpers.c int i = 0, j; j 98 lib/string_helpers.c for (j = 0; sf_cap*10 < 1000; j++) j 111 lib/string_helpers.c remainder += rounding[j]; j 117 lib/string_helpers.c if (j) { j 119 lib/string_helpers.c tmp[j+1] = '\0'; j 322 lib/test_bpf.c int i, j; j 331 lib/test_bpf.c for (j = 0; j < plen; j++) j 332 lib/test_bpf.c insn[i + j] = __BPF_JUMP(BPF_JMP | BPF_JA, j 333 lib/test_bpf.c plen - 1 - j, 0, 0); j 334 lib/test_bpf.c for (j = 0; j < rlen; j++) j 335 lib/test_bpf.c insn[i + j] = __BPF_JUMP(BPF_JMP | BPF_JA, rlen - 1 - j, j 150 lib/test_hash.c int i, j; j 155 lib/test_hash.c for (j = SIZE; j > 0; --j) { j 156 lib/test_hash.c buf[j] = '\0'; j 158 lib/test_hash.c for (i = 0; i <= j; i++) { j 160 lib/test_hash.c u32 h0 = full_name_hash(buf+i, buf+i, j-i); j 163 lib/test_hash.c if (hashlen_len(hashlen) != j-i) { j 166 lib/test_hash.c i, j, hashlen_len(hashlen), j-i); j 173 lib/test_hash.c i, j, hashlen_hash(hashlen), h0); j 109 lib/test_ida.c unsigned long i, j; j 111 lib/test_ida.c for (j = 1; j < 65537; j *= 2) { j 112 lib/test_ida.c unsigned long base = (1UL << 31) - j; j 113 lib/test_ida.c for (i = 0; i < j; i++) { j 273 lib/test_rhashtable.c unsigned int i, j, k; j 326 lib/test_rhashtable.c j = i - 1; j 328 lib/test_rhashtable.c if (WARN(pos == &rhl_test_objects[j].list_node, "old element found, should be gone")) j 370 lib/test_rhashtable.c for (j = 0; j < entries; j++) { j 9 lib/test_string.c unsigned i, j, k; j 17 lib/test_string.c for (j = 0; j < 256; j++) { j 19 lib/test_string.c memset16(p + i, 0xb1b2, j); j 25 lib/test_string.c } else if (k < i + j) { j 39 lib/test_string.c return (i << 24) | (j << 16) | k | 0x8000; j 45 lib/test_string.c unsigned i, j, k; j 53 lib/test_string.c for (j = 0; j < 256; j++) { j 55 lib/test_string.c memset32(p + i, 0xb1b2b3b4, j); j 61 lib/test_string.c } else if (k < i + j) { j 75 lib/test_string.c return (i << 24) | (j << 16) | k | 0x8000; j 81 lib/test_string.c unsigned i, j, k; j 89 lib/test_string.c for (j = 0; j < 256; j++) { j 91 lib/test_string.c memset64(p + i, 0xb1b2b3b4b5b6b7b8ULL, j); j 97 lib/test_string.c } else if (k < i + j) { j 111 lib/test_string.c return (i << 24) | (j << 16) | k | 0x8000; j 148 lib/test_string.c int i, j; j 151 lib/test_string.c for (j = 0; j < strlen(test_string) + 2; j++) { j 152 lib/test_string.c result = strnchr(test_string, j, test_string[i]); j 153 lib/test_string.c if (j <= i) { j 156 lib/test_string.c return ((i + 'a') << 8) | j; j 159 lib/test_string.c return ((i + 'a') << 8) | j; j 55 lib/test_ubsan.c volatile int i = 4, j = 5; j 58 lib/test_ubsan.c arr[j] = i; j 368 lib/test_vmalloc.c int i, j, x; j 374 lib/test_vmalloc.c j = rnd % i; j 378 lib/test_vmalloc.c arr[i] = arr[j]; j 379 lib/test_vmalloc.c arr[j] = x; j 387 lib/test_vmalloc.c int index, i, j; j 416 lib/test_vmalloc.c for (j = 0; j < test_repeat_count; j++) { j 149 lib/test_xarray.c unsigned long i, j; j 152 lib/test_xarray.c for (j = 0; j < 1024; j++) { j 153 lib/test_xarray.c void *entry = xa_load(xa, j); j 154 lib/test_xarray.c if (j < i) j 155 lib/test_xarray.c XA_BUG_ON(xa, xa_to_value(entry) != j); j 163 lib/test_xarray.c for (j = 0; j < 1024; j++) { j 164 lib/test_xarray.c void *entry = xa_load(xa, j); j 165 lib/test_xarray.c if (j >= i) j 166 lib/test_xarray.c XA_BUG_ON(xa, xa_to_value(entry) != j); j 471 lib/test_xarray.c unsigned long i, j; j 474 lib/test_xarray.c for (j = i; j < 2 * i + 17; j++) { j 475 lib/test_xarray.c xas_set(&xas, j); j 478 lib/test_xarray.c xas_store(&xas, xa_mk_index(j)); j 494 lib/test_xarray.c j = i; j 496 lib/test_xarray.c XA_BUG_ON(xa, entry != xa_mk_index(j)); j 498 lib/test_xarray.c j++; j 575 lib/test_xarray.c unsigned long i, j, k; j 621 lib/test_xarray.c for (j = 0; j < max_order; j++) { j 623 lib/test_xarray.c xa_store_order(xa, 0, j, xa_mk_index(j), GFP_KERNEL); j 627 lib/test_xarray.c if ((i < k) && (j < k)) j 630 lib/test_xarray.c XA_BUG_ON(xa, entry != xa_mk_index(j)); j 873 lib/test_xarray.c unsigned int i, j; j 891 lib/test_xarray.c for (j = 0; j < min; j++) j 892 lib/test_xarray.c xa_store_index(xa, j, GFP_KERNEL); j 895 lib/test_xarray.c for (j = 0; j < min; j++) j 896 lib/test_xarray.c xa_store_index(xa, min + j, GFP_KERNEL); j 944 lib/test_xarray.c unsigned int i, j; j 949 lib/test_xarray.c for (j = 0; j < index; j++) { j 950 lib/test_xarray.c XA_STATE(xas, xa, j + index); j 981 lib/test_xarray.c unsigned long i, j, k; j 992 lib/test_xarray.c for (j = 0; j < i; j++) { j 993 lib/test_xarray.c XA_BUG_ON(xa, xa_store_index(xa, j, GFP_KERNEL) != j 995 lib/test_xarray.c xa_set_mark(xa, j, XA_MARK_0); j 1000 lib/test_xarray.c if (k <= j) j 1001 lib/test_xarray.c XA_BUG_ON(xa, index != j); j 1010 lib/test_xarray.c if (k <= j) j 1011 lib/test_xarray.c XA_BUG_ON(xa, index != j); j 1017 lib/test_xarray.c xa_erase_index(xa, j); j 1018 lib/test_xarray.c XA_BUG_ON(xa, xa_get_mark(xa, j, XA_MARK_0)); j 1030 lib/test_xarray.c unsigned long i, j, index; j 1038 lib/test_xarray.c j = 0; j 1041 lib/test_xarray.c XA_BUG_ON(xa, index != j++); j 1051 lib/test_xarray.c unsigned long i, j, k; j 1055 lib/test_xarray.c for (j = 0; j < 100; j++) { j 1058 lib/test_xarray.c xas_set(&xas, j); j 1061 lib/test_xarray.c if (j > k) j 1492 lib/test_xarray.c unsigned long i, j; j 1495 lib/test_xarray.c for (j = i; j < 128; j++) { j 1496 lib/test_xarray.c __check_store_range(xa, i, j); j 1497 lib/test_xarray.c __check_store_range(xa, 128 + i, 128 + j); j 1498 lib/test_xarray.c __check_store_range(xa, 4095 + i, 4095 + j); j 1499 lib/test_xarray.c __check_store_range(xa, 4096 + i, 4096 + j); j 1500 lib/test_xarray.c __check_store_range(xa, 123456 + i, 123456 + j); j 1501 lib/test_xarray.c __check_store_range(xa, (1 << 24) + i, (1 << 24) + j); j 96 lib/ts_bm.c static int subpattern(u8 *pattern, int i, int j, int g) j 98 lib/ts_bm.c int x = i+g-1, y = j+g-1, ret = 0; j 106 lib/ts_bm.c ret = pattern[i-1] != pattern[j-1]; j 116 lib/ts_bm.c int i, j, g; j 133 lib/ts_bm.c for (j = i-1; j >= 1-g ; j--) j 134 lib/ts_bm.c if (subpattern(bm->pattern, i, j, g)) { j 135 lib/ts_bm.c bm->good_shift[g] = bm->patlen-j-g; j 58 lib/ucs2_string.c unsigned long j = 0; j 64 lib/ucs2_string.c j += 3; j 66 lib/ucs2_string.c j += 2; j 68 lib/ucs2_string.c j += 1; j 71 lib/ucs2_string.c return j; j 86 lib/ucs2_string.c unsigned long j = 0; j 96 lib/ucs2_string.c dest[j++] = 0xe0 | (c & 0xf000) >> 12; j 97 lib/ucs2_string.c dest[j++] = 0x80 | (c & 0x0fc0) >> 6; j 98 lib/ucs2_string.c dest[j++] = 0x80 | (c & 0x003f); j 103 lib/ucs2_string.c dest[j++] = 0xc0 | (c & 0x7c0) >> 6; j 104 lib/ucs2_string.c dest[j++] = 0x80 | (c & 0x03f); j 107 lib/ucs2_string.c dest[j++] = c & 0x7f; j 111 lib/ucs2_string.c dest[j] = '\0'; j 112 lib/ucs2_string.c return j; j 1299 lib/vsprintf.c int i, j, range; j 1322 lib/vsprintf.c for (j = i; j < range; j++) { j 1323 lib/vsprintf.c if (in6.s6_addr16[j] != 0) j 2009 lib/xarray.c unsigned i, j; j 2024 lib/xarray.c for (j = 0; j < XA_MARK_LONGS; j++) j 2025 lib/xarray.c pr_cont(" %lx", node->marks[i][j]); j 35 lib/xz/xz_crc32.c uint32_t j; j 40 lib/xz/xz_crc32.c for (j = 0; j < 8; ++j) j 100 lib/xz/xz_dec_bcj.c uint32_t j; j 136 lib/xz/xz_dec_bcj.c j = mask_to_bit_num[prev_mask] * 8; j 137 lib/xz/xz_dec_bcj.c b = (uint8_t)(dest >> (24 - j)); j 141 lib/xz/xz_dec_bcj.c src = dest ^ (((uint32_t)1 << (32 - j)) - 1); j 198 lib/xz/xz_dec_bcj.c size_t j; j 231 lib/xz/xz_dec_bcj.c for (j = 0; j < 6; ++j) j 232 lib/xz/xz_dec_bcj.c instr |= (uint64_t)(buf[i + j + byte_pos]) j 233 lib/xz/xz_dec_bcj.c << (8 * j); j 253 lib/xz/xz_dec_bcj.c for (j = 0; j < 6; j++) j 254 lib/xz/xz_dec_bcj.c buf[i + j + byte_pos] j 255 lib/xz/xz_dec_bcj.c = (uint8_t)(instr >> (8 * j)); j 378 lib/zlib_deflate/deftree.c int j = k << 1; /* left son of k */ j 379 lib/zlib_deflate/deftree.c while (j <= s->heap_len) { j 381 lib/zlib_deflate/deftree.c if (j < s->heap_len && j 382 lib/zlib_deflate/deftree.c smaller(tree, s->heap[j+1], s->heap[j], s->depth)) { j 383 lib/zlib_deflate/deftree.c j++; j 386 lib/zlib_deflate/deftree.c if (smaller(tree, v, s->heap[j], s->depth)) break; j 389 lib/zlib_deflate/deftree.c s->heap[k] = s->heap[j]; k = j; j 392 lib/zlib_deflate/deftree.c j <<= 1; j 114 mm/cma.c unsigned j; j 117 mm/cma.c for (j = pageblock_nr_pages; j; --j, pfn++) { j 4218 mm/memcontrol.c int i, j, size, entries; j 4263 mm/memcontrol.c for (i = 0, j = 0; i < thresholds->primary->size; i++) { j 4267 mm/memcontrol.c new->entries[j] = thresholds->primary->entries[i]; j 4268 mm/memcontrol.c if (new->entries[j].threshold <= usage) { j 4276 mm/memcontrol.c j++; j 329 mm/mmap.c int i = 0, j, bug = 0; j 364 mm/mmap.c j = 0; j 366 mm/mmap.c j++; j 367 mm/mmap.c if (i != j) { j 368 mm/mmap.c pr_emerg("backwards %d, forwards %d\n", j, i); j 1694 mm/page_alloc.c u64 j; j 1701 mm/page_alloc.c for_each_free_mem_pfn_range_in_zone(j, zone, spfn, epfn) { j 1706 mm/page_alloc.c *i = j; j 1730 mm/page_alloc.c u64 j = *i; j 1733 mm/page_alloc.c for_each_free_mem_pfn_range_in_zone_from(j, zone, start_pfn, end_pfn) { j 1749 mm/page_alloc.c swap(j, *i); j 1751 mm/page_alloc.c for_each_free_mem_pfn_range_in_zone_from(j, zone, &spfn, &epfn) { j 6757 mm/page_alloc.c enum zone_type j; j 6763 mm/page_alloc.c for (j = 0; j < MAX_NR_ZONES; j++) { j 6764 mm/page_alloc.c struct zone *zone = pgdat->node_zones + j; j 6777 mm/page_alloc.c if (!is_highmem_idx(j)) { j 6783 mm/page_alloc.c zone_names[j], memmap_pages); j 6786 mm/page_alloc.c zone_names[j], memmap_pages, freesize); j 6790 mm/page_alloc.c if (j == 0 && freesize > dma_reserve) { j 6796 mm/page_alloc.c if (!is_highmem_idx(j)) j 6808 mm/page_alloc.c zone_init_internals(zone, j, nid, freesize); j 6816 mm/page_alloc.c memmap_init(size, nid, j, zone_start_pfn); j 7672 mm/page_alloc.c enum zone_type i, j; j 7684 mm/page_alloc.c for (j = i; j < MAX_NR_ZONES; j++) { j 7685 mm/page_alloc.c if (zone->lowmem_reserve[j] > max) j 7686 mm/page_alloc.c max = zone->lowmem_reserve[j]; j 7712 mm/page_alloc.c enum zone_type j, idx; j 7715 mm/page_alloc.c for (j = 0; j < MAX_NR_ZONES; j++) { j 7716 mm/page_alloc.c struct zone *zone = pgdat->node_zones + j; j 7719 mm/page_alloc.c zone->lowmem_reserve[j] = 0; j 7721 mm/page_alloc.c idx = j; j 7730 mm/page_alloc.c lower_zone->lowmem_reserve[j] = 0; j 7732 mm/page_alloc.c lower_zone->lowmem_reserve[j] = j 2838 mm/percpu.c int unit, i, j, rc = 0; j 2866 mm/percpu.c j = 0; j 2880 mm/percpu.c pages[j++] = virt_to_page(ptr); j 2923 mm/percpu.c while (--j >= 0) j 2924 mm/percpu.c free_fn(page_address(pages[j]), PAGE_SIZE); j 116 mm/shuffle.c unsigned long j; j 137 mm/shuffle.c j = z->zone_start_pfn + j 140 mm/shuffle.c page_j = shuffle_valid_page(j, order); j 162 mm/shuffle.c pr_debug("%s: swap: %#lx -> %#lx\n", __func__, i, j); j 3199 mm/slub.c int j; j 3201 mm/slub.c for (j = 0; j < i; j++) j 3202 mm/slub.c memset(p[j], 0, s->object_size); j 1011 mm/swap.c int i, j; j 1013 mm/swap.c for (i = 0, j = 0; i < pagevec_count(pvec); i++) { j 1016 mm/swap.c pvec->pages[j++] = page; j 1018 mm/swap.c pvec->nr = j; j 73 mm/swap_state.c unsigned int i, j, nr; j 90 mm/swap_state.c for (j = 0; j < nr; j++) j 91 mm/swap_state.c ret += spaces[j].nrpages; j 3010 mm/swapfile.c unsigned int j, k; j 3069 mm/swapfile.c j = (k + col) % SWAP_CLUSTER_COLS; j 3071 mm/swapfile.c idx = i * SWAP_CLUSTER_COLS + j; j 63 mm/truncate.c int i, j; j 70 mm/truncate.c for (j = 0; j < pagevec_count(pvec); j++) j 71 mm/truncate.c if (xa_is_value(pvec->pages[j])) j 74 mm/truncate.c if (j == pagevec_count(pvec)) j 78 mm/truncate.c lock = !dax && indices[j] < end; j 82 mm/truncate.c for (i = j; i < pagevec_count(pvec); i++) { j 87 mm/truncate.c pvec->pages[j++] = page; j 104 mm/truncate.c pvec->nr = j; j 130 net/8021q/vlan_core.c int i, j; j 133 net/8021q/vlan_core.c for (j = 0; j < VLAN_GROUP_ARRAY_SPLIT_PARTS; j++) j 134 net/8021q/vlan_core.c kfree(grp->vlan_devices_arrays[i][j]); j 286 net/9p/trans_xen.c int i, j; j 298 net/9p/trans_xen.c for (j = 0; j < (1 << XEN_9PFS_RING_ORDER); j++) { j 301 net/9p/trans_xen.c ref = priv->rings[i].intf->ref[j]; j 37 net/atm/atm_sysfs.c int i, j, count = 0; j 41 net/atm/atm_sysfs.c for (i = 0, j = 0; i < ATM_ESA_LEN; ++i, ++j) { j 42 net/atm/atm_sysfs.c if (j == *fmt) { j 46 net/atm/atm_sysfs.c j = 0; j 150 net/atm/atm_sysfs.c int i, j, err; j 170 net/atm/atm_sysfs.c for (j = 0; j < i; j++) j 171 net/atm/atm_sysfs.c device_remove_file(cdev, atm_attrs[j]); j 721 net/atm/clip.c int i, j; j 725 net/atm/clip.c for (j = fields[i]; j; j--) j 1357 net/atm/lec.c int i, j, offset; j 1368 net/atm/lec.c for (j = 0; j < ATM_ESA_LEN; j++) { j 1371 net/atm/lec.c rulla->atm_addr[j] & 0xff); j 1397 net/atm/lec.c for (j = 0; j < ATM_ESA_LEN; j++) { j 1399 net/atm/lec.c rulla->atm_addr[j] & 0xff); j 1422 net/atm/lec.c for (j = 0; j < ATM_ESA_LEN; j++) { j 1424 net/atm/lec.c rulla->atm_addr[j] & 0xff); j 1447 net/atm/lec.c for (j = 0; j < ATM_ESA_LEN; j++) { j 1449 net/atm/lec.c rulla->atm_addr[j] & 0xff); j 516 net/batman-adv/distributed-arp-table.c int j; j 523 net/batman-adv/distributed-arp-table.c for (j = 0; j < select; j++) j 524 net/batman-adv/distributed-arp-table.c if (res[j].orig_node == candidate) j 527 net/batman-adv/distributed-arp-table.c if (j < select) j 64 net/bridge/br_stp_bpdu.c static inline void br_set_ticks(unsigned char *dest, int j) j 66 net/bridge/br_stp_bpdu.c unsigned long ticks = (STP_HZ * j)/ HZ; j 649 net/bridge/netfilter/ebtables.c unsigned int i, j, hook = 0, hookmask = 0; j 703 net/bridge/netfilter/ebtables.c j = 0; j 704 net/bridge/netfilter/ebtables.c ret = EBT_WATCHER_ITERATE(e, ebt_check_watcher, &tgpar, &j); j 751 net/bridge/netfilter/ebtables.c EBT_WATCHER_ITERATE(e, ebt_cleanup_watcher, net, &j); j 831 net/bridge/netfilter/ebtables.c unsigned int i, j, k, udc_cnt; j 847 net/bridge/netfilter/ebtables.c for (j = i + 1; j < NF_BR_NUMHOOKS; j++) { j 848 net/bridge/netfilter/ebtables.c if (!newinfo->hook_entry[j]) j 850 net/bridge/netfilter/ebtables.c if (newinfo->hook_entry[j] <= newinfo->hook_entry[i]) j 853 net/bridge/netfilter/ebtables.c i = j; j 858 net/bridge/netfilter/ebtables.c j = 0; /* holds the up to now counted entries for the chain */ j 865 net/bridge/netfilter/ebtables.c &i, &j, &k, &udc_cnt); j 870 net/bridge/netfilter/ebtables.c if (i != j) j 2046 net/bridge/netfilter/ebtables.c unsigned int i, j, startoff, next_expected_off, new_offset = 0; j 2103 net/bridge/netfilter/ebtables.c for (i = 0, j = 1 ; j < 4 ; j++, i++) { j 2108 net/bridge/netfilter/ebtables.c if (offsets[i] > offsets[j]) j 2112 net/bridge/netfilter/ebtables.c size = offsets[j] - offsets[i]; j 2119 net/bridge/netfilter/ebtables.c offsets_update[i], offsets[j] + new_offset); j 2120 net/bridge/netfilter/ebtables.c offsets_update[i] = offsets[j] + new_offset; j 124 net/can/proc.c unsigned long j = jiffies; /* snapshot */ j 131 net/can/proc.c if (j < pkg_stats->jiffies_init) j 151 net/can/proc.c pkg_stats->total_tx_rate = calc_rate(pkg_stats->jiffies_init, j, j 153 net/can/proc.c pkg_stats->total_rx_rate = calc_rate(pkg_stats->jiffies_init, j, j 912 net/ceph/crush/mapper.c int i, j; j 1013 net/ceph/crush/mapper.c j = 0; j 1037 net/ceph/crush/mapper.c o+osize, j, j 1059 net/ceph/crush/mapper.c o+osize, j, j 69 net/ceph/osdmap.c int j; j 78 net/ceph/osdmap.c for (j = 0; j < b->h.size; j++) { j 79 net/ceph/osdmap.c b->item_weights[j] = ceph_decode_32(p); j 80 net/ceph/osdmap.c b->sum_weights[j] = ceph_decode_32(p); j 90 net/ceph/osdmap.c int j; j 97 net/ceph/osdmap.c for (j = 0; j < b->num_nodes; j++) j 98 net/ceph/osdmap.c b->node_weights[j] = ceph_decode_32(p); j 107 net/ceph/osdmap.c int j; j 116 net/ceph/osdmap.c for (j = 0; j < b->h.size; j++) { j 117 net/ceph/osdmap.c b->item_weights[j] = ceph_decode_32(p); j 118 net/ceph/osdmap.c b->straws[j] = ceph_decode_32(p); j 128 net/ceph/osdmap.c int j; j 134 net/ceph/osdmap.c for (j = 0; j < b->h.size; j++) j 135 net/ceph/osdmap.c b->item_weights[j] = ceph_decode_32(p); j 156 net/ceph/osdmap.c int i, j; j 163 net/ceph/osdmap.c for (j = 0; j < arg->weight_set_size; j++) j 164 net/ceph/osdmap.c kfree(arg->weight_set[j].weights); j 346 net/ceph/osdmap.c int i, j; j 437 net/ceph/osdmap.c for (j = 0; j < b->size; j++) j 438 net/ceph/osdmap.c b->items[j] = ceph_decode_32(p); j 506 net/ceph/osdmap.c for (j = 0; j < r->len; j++) { j 507 net/ceph/osdmap.c r->steps[j].op = ceph_decode_32(p); j 508 net/ceph/osdmap.c r->steps[j].arg1 = ceph_decode_32(p); j 509 net/ceph/osdmap.c r->steps[j].arg2 = ceph_decode_32(p); j 2383 net/ceph/osdmap.c int i, j; j 2417 net/ceph/osdmap.c for (j = 0; j < raw->size; j++) { j 2418 net/ceph/osdmap.c int osd = raw->osds[j]; j 2429 net/ceph/osdmap.c pos = j; j 2107 net/core/dev.c int i, j; j 2109 net/core/dev.c for (i = count, j = offset; i--; j++) { j 2110 net/core/dev.c if (!remove_xps_queue(dev_maps, tci, j)) j 2139 net/core/dev.c int i, j; j 2141 net/core/dev.c for (j = -1; j = netif_attrmask_next(j, mask, nr_ids), j 2142 net/core/dev.c j < nr_ids;) j 2143 net/core/dev.c active |= remove_xps_queue_cpu(dev, dev_maps, j, offset, j 2245 net/core/dev.c int i, j, tci, numa_node_id = -2; j 2284 net/core/dev.c for (j = -1; j = netif_attrmask_next_and(j, online_mask, mask, nr_ids), j 2285 net/core/dev.c j < nr_ids;) { j 2293 net/core/dev.c tci = j * num_tc + tc; j 2297 net/core/dev.c map = expand_xps_map(map, j, index, is_rxqs_map); j 2314 net/core/dev.c for (j = -1; j = netif_attrmask_next(j, possible_mask, nr_ids), j 2315 net/core/dev.c j < nr_ids;) { j 2317 net/core/dev.c for (i = tc, tci = j * num_tc; dev_maps && i--; tci++) { j 2326 net/core/dev.c tci = j * num_tc + tc; j 2328 net/core/dev.c if (netif_attr_test_mask(j, mask, nr_ids) && j 2329 net/core/dev.c netif_attr_test_online(j, online_mask, nr_ids)) { j 2342 net/core/dev.c numa_node_id = cpu_to_node(j); j 2343 net/core/dev.c else if (numa_node_id != cpu_to_node(j)) j 2370 net/core/dev.c for (j = -1; j = netif_attrmask_next(j, possible_mask, nr_ids), j 2371 net/core/dev.c j < nr_ids;) { j 2372 net/core/dev.c for (i = num_tc, tci = j * num_tc; i--; tci++) { j 2398 net/core/dev.c for (j = -1; j = netif_attrmask_next(j, possible_mask, nr_ids), j 2399 net/core/dev.c j < nr_ids;) { j 2400 net/core/dev.c for (i = tc, tci = j * num_tc; i--; tci++) j 2402 net/core/dev.c if (!netif_attr_test_mask(j, mask, nr_ids) || j 2403 net/core/dev.c !netif_attr_test_online(j, online_mask, nr_ids)) j 2419 net/core/dev.c for (j = -1; j = netif_attrmask_next(j, possible_mask, nr_ids), j 2420 net/core/dev.c j < nr_ids;) { j 2421 net/core/dev.c for (i = num_tc, tci = j * num_tc; i--; tci++) { j 2286 net/core/devlink.c int i, j; j 2308 net/core/devlink.c j = 0; j 2312 net/core/devlink.c if (!j) j 2316 net/core/devlink.c j++; j 1975 net/core/filter.c int i, j = 0; j 1989 net/core/filter.c for (i = 0; i < from_size / sizeof(__be32); i++, j++) j 1990 net/core/filter.c sp->diff[j] = ~from[i]; j 1991 net/core/filter.c for (i = 0; i < to_size / sizeof(__be32); i++, j++) j 1992 net/core/filter.c sp->diff[j] = to[i]; j 1332 net/core/net-sysfs.c int j, len, num_tc = 1, tc = 0; j 1351 net/core/net-sysfs.c for (j = -1; j = netif_attrmask_next(j, NULL, dev->num_rx_queues), j 1352 net/core/net-sysfs.c j < dev->num_rx_queues;) { j 1353 net/core/net-sysfs.c int i, tci = j * num_tc + tc; j 1362 net/core/net-sysfs.c set_bit(j, mask); j 2940 net/core/skbuff.c int i, j = 0; j 2964 net/core/skbuff.c j = 1; j 2984 net/core/skbuff.c skb_shinfo(to)->frags[j] = skb_shinfo(from)->frags[i]; j 2985 net/core/skbuff.c size = min_t(int, skb_frag_size(&skb_shinfo(to)->frags[j]), j 2987 net/core/skbuff.c skb_frag_size_set(&skb_shinfo(to)->frags[j], size); j 2989 net/core/skbuff.c skb_frag_ref(to, j); j 2990 net/core/skbuff.c j++; j 2992 net/core/skbuff.c skb_shinfo(to)->nr_frags = j; j 299 net/core/sock_reuseport.c int i, j; j 301 net/core/sock_reuseport.c i = j = reciprocal_scale(hash, socks); j 306 net/core/sock_reuseport.c if (i == j) j 1343 net/ipv4/arp.c int k, j; j 1355 net/ipv4/arp.c for (k = 0, j = 0; k < HBUFFERLEN - 3 && j < dev->addr_len; j++) { j 1356 net/ipv4/arp.c hbuffer[k++] = hex_asc_hi(n->ha[j]); j 1357 net/ipv4/arp.c hbuffer[k++] = hex_asc_lo(n->ha[j]); j 562 net/ipv4/fib_trie.c unsigned long j, k; j 609 net/ipv4/fib_trie.c for (k = child_length(inode), j = k / 2; j;) { j 610 net/ipv4/fib_trie.c put_child(node1, --j, get_child(inode, --k)); j 611 net/ipv4/fib_trie.c put_child(node0, j, get_child(inode, j)); j 612 net/ipv4/fib_trie.c put_child(node1, --j, get_child(inode, --k)); j 613 net/ipv4/fib_trie.c put_child(node0, j, get_child(inode, j)); j 2102 net/ipv4/igmp.c int j; j 2106 net/ipv4/igmp.c for (j = 0; j < i; j++) j 2107 net/ipv4/igmp.c (void) ip_mc_del1_src(pmc, sfmode, &psfsrc[j]); j 2302 net/ipv4/igmp.c int i, j, rv; j 2368 net/ipv4/igmp.c for (j = i+1; j < psl->sl_count; j++) j 2369 net/ipv4/igmp.c psl->sl_addr[j-1] = psl->sl_addr[j]; j 2412 net/ipv4/igmp.c for (j = psl->sl_count-1; j >= i; j--) j 2413 net/ipv4/igmp.c psl->sl_addr[j+1] = psl->sl_addr[j]; j 1162 net/ipv4/netfilter/arp_tables.c unsigned int i, j; j 1175 net/ipv4/netfilter/arp_tables.c j = 0; j 1187 net/ipv4/netfilter/arp_tables.c ++j; j 1191 net/ipv4/netfilter/arp_tables.c if (j != compatr->num_entries) j 1242 net/ipv4/netfilter/arp_tables.c if (j-- == 0) j 523 net/ipv4/netfilter/ip_tables.c unsigned int j; j 530 net/ipv4/netfilter/ip_tables.c j = 0; j 541 net/ipv4/netfilter/ip_tables.c ++j; j 562 net/ipv4/netfilter/ip_tables.c if (j-- == 0) j 1296 net/ipv4/netfilter/ip_tables.c unsigned int j; j 1318 net/ipv4/netfilter/ip_tables.c j = 0; j 1323 net/ipv4/netfilter/ip_tables.c ++j; j 1347 net/ipv4/netfilter/ip_tables.c if (j-- == 0) j 1396 net/ipv4/netfilter/ip_tables.c unsigned int i, j; j 1409 net/ipv4/netfilter/ip_tables.c j = 0; j 1421 net/ipv4/netfilter/ip_tables.c ++j; j 1425 net/ipv4/netfilter/ip_tables.c if (j != compatr->num_entries) j 1481 net/ipv4/netfilter/ip_tables.c if (j-- == 0) j 590 net/ipv4/netfilter/ipt_CLUSTERIP.c int j, k; j 592 net/ipv4/netfilter/ipt_CLUSTERIP.c for (k = 0, j = 0; k < HBUFFERLEN - 3 && j < ETH_ALEN; j++) { j 593 net/ipv4/netfilter/ipt_CLUSTERIP.c hbuffer[k++] = hex_asc_hi(payload->src_hw[j]); j 594 net/ipv4/netfilter/ipt_CLUSTERIP.c hbuffer[k++] = hex_asc_lo(payload->src_hw[j]); j 404 net/ipv4/nexthop.c unsigned int i, j; j 425 net/ipv4/nexthop.c for (j = i + 1; j < len; ++j) { j 426 net/ipv4/nexthop.c if (nhg[i].id == nhg[j].id) { j 712 net/ipv4/nexthop.c int i, j; j 732 net/ipv4/nexthop.c for (i = 0, j = 0; i < nhg->num_nh; ++i) { j 740 net/ipv4/nexthop.c new_nhges[j].nh_parent = nhges[i].nh_parent; j 741 net/ipv4/nexthop.c new_nhges[j].nh = nhges[i].nh; j 742 net/ipv4/nexthop.c new_nhges[j].weight = nhges[i].weight; j 743 net/ipv4/nexthop.c list_add(&new_nhges[j].nh_list, &new_nhges[j].nh->grp_list); j 744 net/ipv4/nexthop.c j++; j 298 net/ipv4/proc.c int j; j 302 net/ipv4/proc.c for (j = 0; j < count; ++j) j 304 net/ipv4/proc.c type[j] & 0x100 ? "Out" : "In", j 305 net/ipv4/proc.c type[j] & 0xff); j 307 net/ipv4/proc.c for (j = 0; j < count; ++j) j 308 net/ipv4/proc.c seq_printf(seq, " %lu", vals[j]); j 341 net/ipv4/route.c unsigned int i, j; j 349 net/ipv4/route.c for (j = 0; j < 256; j++) { j 350 net/ipv4/route.c dst[j].o_bytes += src[j].o_bytes; j 351 net/ipv4/route.c dst[j].o_packets += src[j].o_packets; j 352 net/ipv4/route.c dst[j].i_bytes += src[j].i_bytes; j 353 net/ipv4/route.c dst[j].i_packets += src[j].i_packets; j 1672 net/ipv4/tcp_input.c int i, j; j 1742 net/ipv4/tcp_input.c for (j = 0; j < i; j++) { j 1743 net/ipv4/tcp_input.c if (after(sp[j].start_seq, sp[j + 1].start_seq)) { j 1744 net/ipv4/tcp_input.c swap(sp[j], sp[j + 1]); j 1747 net/ipv4/tcp_input.c if (j == first_sack_index) j 1748 net/ipv4/tcp_input.c first_sack_index = j + 1; j 1840 net/ipv4/tcp_input.c for (j = 0; j < used_sacks; j++) j 1841 net/ipv4/tcp_input.c tp->recv_sack_cache[i++] = sp[j]; j 337 net/ipv6/mcast.c int i, j, rv; j 405 net/ipv6/mcast.c for (j = i+1; j < psl->sl_count; j++) j 406 net/ipv6/mcast.c psl->sl_addr[j-1] = psl->sl_addr[j]; j 443 net/ipv6/mcast.c for (j = psl->sl_count-1; j >= i; j--) j 444 net/ipv6/mcast.c psl->sl_addr[j+1] = psl->sl_addr[j]; j 2362 net/ipv6/mcast.c int j; j 2366 net/ipv6/mcast.c for (j = 0; j < i; j++) j 2367 net/ipv6/mcast.c ip6_mc_del1_src(pmc, sfmode, &psfsrc[j]); j 542 net/ipv6/netfilter/ip6_tables.c unsigned int j; j 549 net/ipv6/netfilter/ip6_tables.c j = 0; j 560 net/ipv6/netfilter/ip6_tables.c ++j; j 580 net/ipv6/netfilter/ip6_tables.c if (j-- == 0) j 1312 net/ipv6/netfilter/ip6_tables.c unsigned int j; j 1334 net/ipv6/netfilter/ip6_tables.c j = 0; j 1339 net/ipv6/netfilter/ip6_tables.c ++j; j 1363 net/ipv6/netfilter/ip6_tables.c if (j-- == 0) j 1411 net/ipv6/netfilter/ip6_tables.c unsigned int i, j; j 1424 net/ipv6/netfilter/ip6_tables.c j = 0; j 1436 net/ipv6/netfilter/ip6_tables.c ++j; j 1440 net/ipv6/netfilter/ip6_tables.c if (j != compatr->num_entries) j 1490 net/ipv6/netfilter/ip6_tables.c if (j-- == 0) j 2892 net/mac80211/cfg.c int j; j 2906 net/mac80211/cfg.c for (j = 0; j < IEEE80211_HT_MCS_MASK_LEN; j++) { j 2907 net/mac80211/cfg.c if (~sdata->rc_rateidx_mcs_mask[i][j]) { j 2913 net/mac80211/cfg.c for (j = 0; j < NL80211_VHT_NSS_MAX; j++) { j 2914 net/mac80211/cfg.c if (~sdata->rc_rateidx_vht_mcs_mask[i][j]) { j 405 net/mac80211/ibss.c int i, j; j 454 net/mac80211/ibss.c for (j = 0; j < sband->n_bitrates; j++) { j 456 net/mac80211/ibss.c if ((rate_flags & sband->bitrates[j].flags) j 460 net/mac80211/ibss.c brate = DIV_ROUND_UP(sband->bitrates[j].bitrate, j 464 net/mac80211/ibss.c basic_rates |= BIT(j); j 505 net/mac80211/key.c int i, j, err; j 548 net/mac80211/key.c for (j = 0; j < IEEE80211_CCMP_PN_LEN; j++) j 549 net/mac80211/key.c key->u.ccmp.rx_pn[i][j] = j 550 net/mac80211/key.c seq[IEEE80211_CCMP_PN_LEN - j - 1]; j 568 net/mac80211/key.c for (j = 0; j < IEEE80211_CCMP_256_PN_LEN; j++) j 569 net/mac80211/key.c key->u.ccmp.rx_pn[i][j] = j 570 net/mac80211/key.c seq[IEEE80211_CCMP_256_PN_LEN - j - 1]; j 590 net/mac80211/key.c for (j = 0; j < IEEE80211_CMAC_PN_LEN; j++) j 591 net/mac80211/key.c key->u.aes_cmac.rx_pn[j] = j 592 net/mac80211/key.c seq[IEEE80211_CMAC_PN_LEN - j - 1]; j 610 net/mac80211/key.c for (j = 0; j < IEEE80211_GMAC_PN_LEN; j++) j 611 net/mac80211/key.c key->u.aes_gmac.rx_pn[j] = j 612 net/mac80211/key.c seq[IEEE80211_GMAC_PN_LEN - j - 1]; j 629 net/mac80211/key.c for (j = 0; j < IEEE80211_GCMP_PN_LEN; j++) j 630 net/mac80211/key.c key->u.gcmp.rx_pn[i][j] = j 631 net/mac80211/key.c seq[IEEE80211_GCMP_PN_LEN - j - 1]; j 653 net/mac80211/key.c for (j = 0; j < seq_len; j++) j 654 net/mac80211/key.c key->u.gen.rx_pn[i][j] = j 655 net/mac80211/key.c seq[seq_len - j - 1]; j 1008 net/mac80211/main.c int j; j 1012 net/mac80211/main.c for (j = 0; j < c->n_limits; j++) j 1013 net/mac80211/main.c if ((c->limits[j].types & BIT(NL80211_IFTYPE_ADHOC)) && j 1014 net/mac80211/main.c c->limits[j].max > 1) j 3115 net/mac80211/mlme.c int i, j; j 3136 net/mac80211/mlme.c for (j = 0; j < sband->n_bitrates; j++) { j 3140 net/mac80211/mlme.c br = &sband->bitrates[j]; j 3144 net/mac80211/mlme.c *rates |= BIT(j); j 3146 net/mac80211/mlme.c *basic_rates |= BIT(j); j 3149 net/mac80211/mlme.c *min_rate_index = j; j 402 net/mac80211/rate.c int j; j 405 net/mac80211/rate.c for (j = *rate_idx; j >= 0; j--) { j 406 net/mac80211/rate.c if (mask & (1 << j)) { j 408 net/mac80211/rate.c *rate_idx = j; j 414 net/mac80211/rate.c for (j = *rate_idx + 1; j < n_bitrates; j++) { j 415 net/mac80211/rate.c if (mask & (1 << j)) { j 417 net/mac80211/rate.c *rate_idx = j; j 426 net/mac80211/rate.c int i, j; j 438 net/mac80211/rate.c for (j = rbit; j >= 0; j--) j 439 net/mac80211/rate.c if (mcs_mask[i] & BIT(j)) { j 440 net/mac80211/rate.c *rate_idx = i * 8 + j; j 451 net/mac80211/rate.c for (j = rbit; j < 8; j++) j 452 net/mac80211/rate.c if (mcs_mask[i] & BIT(j)) { j 453 net/mac80211/rate.c *rate_idx = i * 8 + j; j 463 net/mac80211/rate.c int i, j; j 474 net/mac80211/rate.c for (j = rbit; j >= 0; j--) { j 475 net/mac80211/rate.c if (vht_mask[i] & BIT(j)) { j 476 net/mac80211/rate.c *rate_idx = (i << 4) | j; j 488 net/mac80211/rate.c for (j = rbit; j < 16; j++) { j 489 net/mac80211/rate.c if (vht_mask[i] & BIT(j)) { j 490 net/mac80211/rate.c *rate_idx = (i << 4) | j; j 95 net/mac80211/rc80211_minstrel.c int j; j 99 net/mac80211/rc80211_minstrel.c for (j = MAX_THR_RATES; j > 0; --j) { j 100 net/mac80211/rc80211_minstrel.c tmp_mrs = &mi->r[tp_list[j - 1]].stats; j 102 net/mac80211/rc80211_minstrel.c minstrel_get_tp_avg(&mi->r[tp_list[j - 1]], tmp_mrs->prob_ewma)) j 106 net/mac80211/rc80211_minstrel.c if (j < MAX_THR_RATES - 1) j 107 net/mac80211/rc80211_minstrel.c memmove(&tp_list[j + 1], &tp_list[j], MAX_THR_RATES - (j + 1)); j 108 net/mac80211/rc80211_minstrel.c if (j < MAX_THR_RATES) j 109 net/mac80211/rc80211_minstrel.c tp_list[j] = i; j 388 net/mac80211/rc80211_minstrel_ht.c int j = MAX_THR_RATES; j 396 net/mac80211/rc80211_minstrel_ht.c tmp_group = tp_list[j - 1] / MCS_GROUP_RATES; j 397 net/mac80211/rc80211_minstrel_ht.c tmp_idx = tp_list[j - 1] % MCS_GROUP_RATES; j 404 net/mac80211/rc80211_minstrel_ht.c j--; j 405 net/mac80211/rc80211_minstrel_ht.c } while (j > 0); j 407 net/mac80211/rc80211_minstrel_ht.c if (j < MAX_THR_RATES - 1) { j 408 net/mac80211/rc80211_minstrel_ht.c memmove(&tp_list[j + 1], &tp_list[j], (sizeof(*tp_list) * j 409 net/mac80211/rc80211_minstrel_ht.c (MAX_THR_RATES - (j + 1)))); j 411 net/mac80211/rc80211_minstrel_ht.c if (j < MAX_THR_RATES) j 412 net/mac80211/rc80211_minstrel_ht.c tp_list[j] = index; j 675 net/mac80211/rc80211_minstrel_ht.c int group, i, j, cur_prob; j 708 net/mac80211/rc80211_minstrel_ht.c for (j = 0; j < ARRAY_SIZE(tmp_cck_tp_rate); j++) j 709 net/mac80211/rc80211_minstrel_ht.c tmp_cck_tp_rate[j] = MINSTREL_CCK_GROUP * MCS_GROUP_RATES; j 716 net/mac80211/rc80211_minstrel_ht.c for (j = 0; j < ARRAY_SIZE(tmp_mcs_tp_rate); j++) j 717 net/mac80211/rc80211_minstrel_ht.c tmp_mcs_tp_rate[j] = index; j 729 net/mac80211/rc80211_minstrel_ht.c for(j = 0; j < MAX_THR_RATES; j++) j 730 net/mac80211/rc80211_minstrel_ht.c tmp_group_tp_rate[j] = MCS_GROUP_RATES * group; j 1608 net/mac80211/rc80211_minstrel_ht.c int i, j; j 1623 net/mac80211/rc80211_minstrel_ht.c for (j = 0; j < ARRAY_SIZE(bitrates); j++) { j 1624 net/mac80211/rc80211_minstrel_ht.c if (rate->bitrate != bitrates[j]) j 1627 net/mac80211/rc80211_minstrel_ht.c mp->cck_rates[j] = i; j 1700 net/mac80211/rc80211_minstrel_ht.c int i, j, prob, tp_avg; j 1706 net/mac80211/rc80211_minstrel_ht.c j = mi->max_tp_rate[0] % MCS_GROUP_RATES; j 1707 net/mac80211/rc80211_minstrel_ht.c prob = mi->groups[i].rates[j].prob_ewma; j 1710 net/mac80211/rc80211_minstrel_ht.c tp_avg = minstrel_ht_get_tp_avg(mi, i, j, prob) * 10; j 35 net/mac80211/rc80211_minstrel_ht_debugfs.c unsigned int j, tp_max, tp_avg, eprob, tx_time; j 53 net/mac80211/rc80211_minstrel_ht_debugfs.c for (j = 0; j < MCS_GROUP_RATES; j++) { j 54 net/mac80211/rc80211_minstrel_ht_debugfs.c struct minstrel_rate_stats *mrs = &mi->groups[i].rates[j]; j 56 net/mac80211/rc80211_minstrel_ht_debugfs.c int idx = i * MCS_GROUP_RATES + j; j 59 net/mac80211/rc80211_minstrel_ht_debugfs.c if (!(mi->supported[i] & BIT(j))) j 72 net/mac80211/rc80211_minstrel_ht_debugfs.c p += sprintf(p, "%cP ", j < 4 ? 'L' : 'S'); j 83 net/mac80211/rc80211_minstrel_ht_debugfs.c p += sprintf(p, " MCS%-2u", (mg->streams - 1) * 8 + j); j 85 net/mac80211/rc80211_minstrel_ht_debugfs.c p += sprintf(p, " MCS%-1u/%1u", j, mg->streams); j 87 net/mac80211/rc80211_minstrel_ht_debugfs.c int r = bitrates[j % 4]; j 95 net/mac80211/rc80211_minstrel_ht_debugfs.c duration = mg->duration[j]; j 100 net/mac80211/rc80211_minstrel_ht_debugfs.c tp_max = minstrel_ht_get_tp_avg(mi, i, j, MINSTREL_FRAC(100, 100)); j 101 net/mac80211/rc80211_minstrel_ht_debugfs.c tp_avg = minstrel_ht_get_tp_avg(mi, i, j, mrs->prob_ewma); j 182 net/mac80211/rc80211_minstrel_ht_debugfs.c unsigned int j, tp_max, tp_avg, eprob, tx_time; j 200 net/mac80211/rc80211_minstrel_ht_debugfs.c for (j = 0; j < MCS_GROUP_RATES; j++) { j 201 net/mac80211/rc80211_minstrel_ht_debugfs.c struct minstrel_rate_stats *mrs = &mi->groups[i].rates[j]; j 203 net/mac80211/rc80211_minstrel_ht_debugfs.c int idx = i * MCS_GROUP_RATES + j; j 206 net/mac80211/rc80211_minstrel_ht_debugfs.c if (!(mi->supported[i] & BIT(j))) j 219 net/mac80211/rc80211_minstrel_ht_debugfs.c p += sprintf(p, "%cP,", j < 4 ? 'L' : 'S'); j 230 net/mac80211/rc80211_minstrel_ht_debugfs.c p += sprintf(p, ",MCS%-2u,", (mg->streams - 1) * 8 + j); j 232 net/mac80211/rc80211_minstrel_ht_debugfs.c p += sprintf(p, ",MCS%-1u/%1u,", j, mg->streams); j 234 net/mac80211/rc80211_minstrel_ht_debugfs.c int r = bitrates[j % 4]; j 240 net/mac80211/rc80211_minstrel_ht_debugfs.c duration = mg->duration[j]; j 245 net/mac80211/rc80211_minstrel_ht_debugfs.c tp_max = minstrel_ht_get_tp_avg(mi, i, j, MINSTREL_FRAC(100, 100)); j 246 net/mac80211/rc80211_minstrel_ht_debugfs.c tp_avg = minstrel_ht_get_tp_avg(mi, i, j, mrs->prob_ewma); j 1186 net/mac80211/rx.c int index, i, j; j 1199 net/mac80211/rx.c for (j = (index + 1) % tid_agg_rx->buf_size; j != index; j 1200 net/mac80211/rx.c j = (j + 1) % tid_agg_rx->buf_size) { j 1201 net/mac80211/rx.c if (!ieee80211_rx_reorder_ready(tid_agg_rx, j)) { j 1206 net/mac80211/rx.c !time_after(jiffies, tid_agg_rx->reorder_time[j] + j 1211 net/mac80211/rx.c for (i = (index + 1) % tid_agg_rx->buf_size; i != j; j 1217 net/mac80211/rx.c ieee80211_release_reorder_frame(sdata, tid_agg_rx, j, j 1235 net/mac80211/rx.c j = index = tid_agg_rx->head_seq_num % tid_agg_rx->buf_size; j 1237 net/mac80211/rx.c for (; j != (index - 1) % tid_agg_rx->buf_size; j 1238 net/mac80211/rx.c j = (j + 1) % tid_agg_rx->buf_size) { j 1239 net/mac80211/rx.c if (ieee80211_rx_reorder_ready(tid_agg_rx, j)) j 1247 net/mac80211/rx.c tid_agg_rx->reorder_time[j] + 1 + j 85 net/mac80211/tkip.c int i, j; j 95 net/mac80211/tkip.c j = 2 * (i & 1); j 96 net/mac80211/tkip.c p1k[0] += tkipS(p1k[4] ^ get_unaligned_le16(tk + 0 + j)); j 97 net/mac80211/tkip.c p1k[1] += tkipS(p1k[0] ^ get_unaligned_le16(tk + 4 + j)); j 98 net/mac80211/tkip.c p1k[2] += tkipS(p1k[1] ^ get_unaligned_le16(tk + 8 + j)); j 99 net/mac80211/tkip.c p1k[3] += tkipS(p1k[2] ^ get_unaligned_le16(tk + 12 + j)); j 100 net/mac80211/tkip.c p1k[4] += tkipS(p1k[3] ^ get_unaligned_le16(tk + 0 + j)) + i; j 1933 net/mac80211/util.c int i, j, shift; j 1960 net/mac80211/util.c for (j = 0; j < num_rates; j++) { j 1962 net/mac80211/util.c if ((rate_flags & sband->bitrates[j].flags) j 1966 net/mac80211/util.c brate = DIV_ROUND_UP(sband->bitrates[j].bitrate, j 1970 net/mac80211/util.c supp_rates |= BIT(j); j 1972 net/mac80211/util.c *basic_rates |= BIT(j); j 3077 net/mac80211/util.c int brate, rate, i, j, count = 0; j 3084 net/mac80211/util.c for (j = 0; j < sband->n_bitrates; j++) { j 3085 net/mac80211/util.c br = &sband->bitrates[j]; j 3091 net/mac80211/util.c *rates |= BIT(j); j 225 net/netfilter/core.c unsigned int i, j, skip = 0, hook_entries; j 253 net/netfilter/core.c for (i = 0, j = 0; i < old->num_hook_entries; i++) { j 256 net/netfilter/core.c new->hooks[j] = old->hooks[i]; j 257 net/netfilter/core.c new_ops[j] = (void *)orig_ops[i]; j 258 net/netfilter/core.c j++; j 354 net/netfilter/ipset/ip_set_hash_gen.h int i, j; j 358 net/netfilter/ipset/ip_set_hash_gen.h for (i = 0, j = -1; i < NLEN && h->nets[i].cidr[n]; i++) { j 359 net/netfilter/ipset/ip_set_hash_gen.h if (j != -1) { j 362 net/netfilter/ipset/ip_set_hash_gen.h j = i; j 368 net/netfilter/ipset/ip_set_hash_gen.h if (j != -1) { j 369 net/netfilter/ipset/ip_set_hash_gen.h for (; i > j; i--) j 381 net/netfilter/ipset/ip_set_hash_gen.h u8 i, j, net_end = NLEN - 1; j 390 net/netfilter/ipset/ip_set_hash_gen.h for (j = i; j < net_end && h->nets[j].cidr[n]; j++) j 391 net/netfilter/ipset/ip_set_hash_gen.h h->nets[j].cidr[n] = h->nets[j + 1].cidr[n]; j 392 net/netfilter/ipset/ip_set_hash_gen.h h->nets[j].cidr[n] = 0; j 517 net/netfilter/ipset/ip_set_hash_gen.h u32 i, j, d; j 530 net/netfilter/ipset/ip_set_hash_gen.h for (j = 0, d = 0; j < n->pos; j++) { j 531 net/netfilter/ipset/ip_set_hash_gen.h if (!test_bit(j, n->used)) { j 535 net/netfilter/ipset/ip_set_hash_gen.h data = ahash_data(n, j, dsize); j 538 net/netfilter/ipset/ip_set_hash_gen.h pr_debug("expired %u/%u\n", i, j); j 539 net/netfilter/ipset/ip_set_hash_gen.h clear_bit(j, n->used); j 566 net/netfilter/ipset/ip_set_hash_gen.h for (j = 0, d = 0; j < n->pos; j++) { j 567 net/netfilter/ipset/ip_set_hash_gen.h if (!test_bit(j, n->used)) j 569 net/netfilter/ipset/ip_set_hash_gen.h data = ahash_data(n, j, dsize); j 657 net/netfilter/ipset/ip_set_hash_gen.h u32 i, j, r, nr, key; j 710 net/netfilter/ipset/ip_set_hash_gen.h for (j = 0; j < n->pos; j++) { j 711 net/netfilter/ipset/ip_set_hash_gen.h if (!test_bit(j, n->used)) j 713 net/netfilter/ipset/ip_set_hash_gen.h data = ahash_data(n, j, dsize); j 828 net/netfilter/ipset/ip_set_hash_gen.h u32 i, j, r; j 839 net/netfilter/ipset/ip_set_hash_gen.h for (j = 0; j < n->pos; j++) { j 840 net/netfilter/ipset/ip_set_hash_gen.h if (!test_bit(j, n->used)) j 842 net/netfilter/ipset/ip_set_hash_gen.h data = ahash_data(n, j, set->dsize); j 863 net/netfilter/ipset/ip_set_hash_gen.h int i, j = -1, ret; j 911 net/netfilter/ipset/ip_set_hash_gen.h if (j == -1) { j 913 net/netfilter/ipset/ip_set_hash_gen.h j = i; j 921 net/netfilter/ipset/ip_set_hash_gen.h j = i; j 928 net/netfilter/ipset/ip_set_hash_gen.h if (SET_ELEM_EXPIRED(set, data) && j == -1) { j 929 net/netfilter/ipset/ip_set_hash_gen.h j = i; j 934 net/netfilter/ipset/ip_set_hash_gen.h if (j == -1) j 935 net/netfilter/ipset/ip_set_hash_gen.h j = 0; j 936 net/netfilter/ipset/ip_set_hash_gen.h data = ahash_data(n, j, set->dsize); j 976 net/netfilter/ipset/ip_set_hash_gen.h j = n->pos++; j 977 net/netfilter/ipset/ip_set_hash_gen.h data = ahash_data(n, j, set->dsize); j 999 net/netfilter/ipset/ip_set_hash_gen.h set_bit(j, n->used); j 1054 net/netfilter/ipset/ip_set_hash_gen.h int i, j, k, r, ret = -IPSET_ERR_EXIST; j 1090 net/netfilter/ipset/ip_set_hash_gen.h for (j = 0; j < IPSET_NET_COUNT; j++) j 1092 net/netfilter/ipset/ip_set_hash_gen.h NCIDR_PUT(DCIDR_GET(d->cidr, j)), j); j 1124 net/netfilter/ipset/ip_set_hash_gen.h for (j = 0, k = 0; j < n->pos; j++) { j 1125 net/netfilter/ipset/ip_set_hash_gen.h if (!test_bit(j, n->used)) j 1127 net/netfilter/ipset/ip_set_hash_gen.h data = ahash_data(n, j, dsize); j 1180 net/netfilter/ipset/ip_set_hash_gen.h int ret, i, j = 0, k; j 1182 net/netfilter/ipset/ip_set_hash_gen.h int ret, i, j = 0; j 1187 net/netfilter/ipset/ip_set_hash_gen.h for (; j < NLEN && h->nets[j].cidr[0] && !multi; j++) { j 1190 net/netfilter/ipset/ip_set_hash_gen.h mtype_data_netmask(d, NCIDR_GET(h->nets[j].cidr[0]), false); j 1196 net/netfilter/ipset/ip_set_hash_gen.h mtype_data_netmask(d, NCIDR_GET(h->nets[j].cidr[0])); j 262 net/netfilter/ipvs/ip_vs_lblc.c int i, j; j 264 net/netfilter/ipvs/ip_vs_lblc.c for (i = 0, j = tbl->rover; i < IP_VS_LBLC_TAB_SIZE; i++) { j 265 net/netfilter/ipvs/ip_vs_lblc.c j = (j + 1) & IP_VS_LBLC_TAB_MASK; j 268 net/netfilter/ipvs/ip_vs_lblc.c hlist_for_each_entry_safe(en, next, &tbl->bucket[j], list) { j 279 net/netfilter/ipvs/ip_vs_lblc.c tbl->rover = j; j 300 net/netfilter/ipvs/ip_vs_lblc.c int i, j; j 320 net/netfilter/ipvs/ip_vs_lblc.c for (i = 0, j = tbl->rover; i < IP_VS_LBLC_TAB_SIZE; i++) { j 321 net/netfilter/ipvs/ip_vs_lblc.c j = (j + 1) & IP_VS_LBLC_TAB_MASK; j 324 net/netfilter/ipvs/ip_vs_lblc.c hlist_for_each_entry_safe(en, next, &tbl->bucket[j], list) { j 336 net/netfilter/ipvs/ip_vs_lblc.c tbl->rover = j; j 425 net/netfilter/ipvs/ip_vs_lblcr.c int i, j; j 429 net/netfilter/ipvs/ip_vs_lblcr.c for (i = 0, j = tbl->rover; i < IP_VS_LBLCR_TAB_SIZE; i++) { j 430 net/netfilter/ipvs/ip_vs_lblcr.c j = (j + 1) & IP_VS_LBLCR_TAB_MASK; j 433 net/netfilter/ipvs/ip_vs_lblcr.c hlist_for_each_entry_safe(en, next, &tbl->bucket[j], list) { j 443 net/netfilter/ipvs/ip_vs_lblcr.c tbl->rover = j; j 464 net/netfilter/ipvs/ip_vs_lblcr.c int i, j; j 484 net/netfilter/ipvs/ip_vs_lblcr.c for (i = 0, j = tbl->rover; i < IP_VS_LBLCR_TAB_SIZE; i++) { j 485 net/netfilter/ipvs/ip_vs_lblcr.c j = (j + 1) & IP_VS_LBLCR_TAB_MASK; j 488 net/netfilter/ipvs/ip_vs_lblcr.c hlist_for_each_entry_safe(en, next, &tbl->bucket[j], list) { j 500 net/netfilter/ipvs/ip_vs_lblcr.c tbl->rover = j; j 337 net/netfilter/nf_nat_core.c u32 minip, maxip, j, dist; j 367 net/netfilter/nf_nat_core.c j = jhash2((u32 *)&tuple->src.u3, sizeof(tuple->src.u3) / sizeof(u32), j 386 net/netfilter/nf_nat_core.c htonl(minip + reciprocal_scale(j, dist)); j 391 net/netfilter/nf_nat_core.c j ^= (__force u32)tuple->dst.u3.all[i]; j 270 net/netfilter/nf_tables_core.c int err, i, j = 0; j 278 net/netfilter/nf_tables_core.c for (j = 0; j < ARRAY_SIZE(nft_basic_types); j++) { j 279 net/netfilter/nf_tables_core.c err = nft_register_expr(nft_basic_types[j]); j 287 net/netfilter/nf_tables_core.c while (j-- > 0) j 288 net/netfilter/nf_tables_core.c nft_unregister_expr(nft_basic_types[j]); j 696 net/netfilter/nfnetlink_cthelper.c int j = 0, ret; j 715 net/netfilter/nfnetlink_cthelper.c j++; j 739 net/netfilter/nfnetlink_cthelper.c return (found || j == 0) ? 0 : ret; j 1589 net/netfilter/x_tables.c unsigned int j; j 1592 net/netfilter/x_tables.c for (j = 0; j < *pos; ++j) j 35 net/netfilter/xt_TCPOPTSTRIP.c unsigned int optl, i, j; j 72 net/netfilter/xt_TCPOPTSTRIP.c for (j = 0; j < optl; ++j) { j 73 net/netfilter/xt_TCPOPTSTRIP.c o = opt[i+j]; j 75 net/netfilter/xt_TCPOPTSTRIP.c if ((i + j) % 2 == 0) { j 291 net/netlink/genetlink.c int i, j; j 302 net/netlink/genetlink.c for (j = i + 1; j < n_ops; j++) j 303 net/netlink/genetlink.c if (ops[i].cmd == ops[j].cmd) j 192 net/netrom/af_netrom.c unsigned char i, j; j 197 net/netrom/af_netrom.c j = id % 256; j 199 net/netrom/af_netrom.c if (i != 0 && j != 0) { j 200 net/netrom/af_netrom.c if ((sk=nr_find_socket(i, j)) == NULL) j 2269 net/openvswitch/datapath.c int i, j = 0; j 2280 net/openvswitch/datapath.c j = 0; j 2282 net/openvswitch/datapath.c if (j >= skip && j 2292 net/openvswitch/datapath.c j++; j 2300 net/openvswitch/datapath.c cb->args[1] = j; j 1353 net/packet/af_packet.c unsigned int i, j, room = ROOM_NONE; j 1365 net/packet/af_packet.c i = j = min_t(int, po->rollover->sock, num - 1); j 1370 net/packet/af_packet.c if (i != j) j 1380 net/packet/af_packet.c } while (i != j); j 534 net/rds/connection.c int j; j 555 net/rds/connection.c for (j = 0; j < npaths; j++) { j 556 net/rds/connection.c cp = &conn->c_path[j]; j 109 net/rds/ib_fmr.c int i, j; j 165 net/rds/ib_fmr.c for (j = 0; j < dma_len; j += PAGE_SIZE) j 167 net/rds/ib_fmr.c (dma_addr & PAGE_MASK) + j; j 853 net/rds/ib_send.c u32 j; j 920 net/rds/ib_send.c for (j = 0; j < send->s_rdma_wr.wr.num_sge && j 921 net/rds/ib_send.c scat != &op->op_sg[op->op_count]; j++) { j 923 net/rds/ib_send.c send->s_sge[j].addr = sg_dma_address(scat); j 924 net/rds/ib_send.c send->s_sge[j].length = len; j 925 net/rds/ib_send.c send->s_sge[j].lkey = ic->i_pd->local_dma_lkey; j 582 net/rds/rdma.c unsigned int i, j; j 687 net/rds/rdma.c for (j = 0; j < nr; j++) { j 691 net/rds/rdma.c sg = &op->op_sg[op->op_nents + j]; j 692 net/rds/rdma.c sg_set_page(sg, pages[j], j 575 net/rds/recv.c int i, j; j 581 net/rds/recv.c j = rs->rs_rx_trace[i]; j 582 net/rds/recv.c t.rx_trace_pos[i] = j; j 583 net/rds/recv.c t.rx_trace[i] = inc->i_rx_lat_trace[j + 1] - j 584 net/rds/recv.c inc->i_rx_lat_trace[j]; j 379 net/rds/tcp.c int i, j; j 410 net/rds/tcp.c for (j = 0; j < i; j++) j 411 net/rds/tcp.c rds_tcp_conn_free(conn->c_path[j].cp_transport_data); j 106 net/rose/af_rose.c unsigned int i, j; j 112 net/rose/af_rose.c j = i / 2; j 115 net/rose/af_rose.c if ((addr1->rose_addr[j] & 0x0F) != (addr2->rose_addr[j] & 0x0F)) j 118 net/rose/af_rose.c if ((addr1->rose_addr[j] & 0xF0) != (addr2->rose_addr[j] & 0xF0)) j 199 net/rxrpc/call_object.c unsigned long j = now + MAX_JIFFY_OFFSET; j 201 net/rxrpc/call_object.c call->ack_at = j; j 202 net/rxrpc/call_object.c call->ack_lost_at = j; j 203 net/rxrpc/call_object.c call->resend_at = j; j 204 net/rxrpc/call_object.c call->ping_at = j; j 205 net/rxrpc/call_object.c call->expect_rx_by = j; j 206 net/rxrpc/call_object.c call->expect_req_by = j; j 207 net/rxrpc/call_object.c call->expect_term_by = j; j 401 net/rxrpc/conn_event.c unsigned long j = jiffies, next_j; j 406 net/rxrpc/conn_event.c next_j = j + LONG_MAX; j 418 net/rxrpc/conn_event.c if (time_before(j, ack_at)) { j 431 net/rxrpc/conn_event.c j = jiffies; j 432 net/rxrpc/conn_event.c if (time_before_eq(next_j, j)) j 416 net/rxrpc/input.c unsigned int j, nr_subpackets; j 469 net/rxrpc/input.c for (j = 0; j < nr_subpackets; j++) { j 470 net/rxrpc/input.c rxrpc_serial_t serial = sp->hdr.serial + j; j 471 net/rxrpc/input.c rxrpc_seq_t seq = seq0 + j; j 473 net/rxrpc/input.c bool terminal = (j == nr_subpackets - 1); j 475 net/rxrpc/input.c u8 flags, annotation = j; j 478 net/rxrpc/input.c j, serial, seq, terminal, last); j 499 net/rxrpc/input.c if (test_bit(j, sp->rx_req_ack)) j 644 net/rxrpc/sendmsg.c unsigned long now, j; j 719 net/rxrpc/sendmsg.c j = msecs_to_jiffies(p.call.timeouts.normal); j 720 net/rxrpc/sendmsg.c if (p.call.timeouts.normal > 0 && j == 0) j 721 net/rxrpc/sendmsg.c j = 1; j 722 net/rxrpc/sendmsg.c WRITE_ONCE(call->next_rx_timo, j); j 725 net/rxrpc/sendmsg.c j = msecs_to_jiffies(p.call.timeouts.idle); j 726 net/rxrpc/sendmsg.c if (p.call.timeouts.idle > 0 && j == 0) j 727 net/rxrpc/sendmsg.c j = 1; j 728 net/rxrpc/sendmsg.c WRITE_ONCE(call->next_req_timo, j); j 732 net/rxrpc/sendmsg.c j = msecs_to_jiffies(p.call.timeouts.hard); j 734 net/rxrpc/sendmsg.c j += now; j 735 net/rxrpc/sendmsg.c WRITE_ONCE(call->expect_term_by, j); j 736 net/rxrpc/sendmsg.c rxrpc_reduce_call_timer(call, j, now, j 3439 net/sched/cls_api.c int i, j, k, err = 0; j 3447 net/sched/cls_api.c j = 0; j 3451 net/sched/cls_api.c entry = &flow_action->entries[j]; j 3518 net/sched/cls_api.c entry = &flow_action->entries[++j]; j 3574 net/sched/cls_api.c j++; j 118 net/sched/cls_u32.c int j; j 131 net/sched/cls_u32.c j = 0; j 163 net/sched/cls_u32.c __this_cpu_inc(n->pf->kcnts[j]); j 164 net/sched/cls_u32.c j++; j 1356 net/sched/sch_cake.c static void cake_heap_swap(struct cake_sched_data *q, u16 i, u16 j) j 1359 net/sched/sch_cake.c struct cake_heap_entry jj = q->overflow_heap[j]; j 1362 net/sched/sch_cake.c q->overflow_heap[j] = ii; j 1364 net/sched/sch_cake.c q->tins[ii.t].overflow_idx[ii.b] = j; j 2663 net/sched/sch_cake.c int i, j, err; j 2711 net/sched/sch_cake.c for (j = 0; j < CAKE_QUEUES; j++) { j 2712 net/sched/sch_cake.c struct cake_flow *flow = b->flows + j; j 2713 net/sched/sch_cake.c u32 k = j * CAKE_MAX_TINS + i; j 2719 net/sched/sch_cake.c q->overflow_heap[k].b = j; j 2720 net/sched/sch_cake.c b->overflow_idx[j] = k; j 3022 net/sched/sch_cake.c unsigned int i, j; j 3030 net/sched/sch_cake.c for (j = 0; j < CAKE_QUEUES; j++) { j 3031 net/sched/sch_cake.c if (list_empty(&b->flows[j].flowchain) || j 3036 net/sched/sch_cake.c if (arg->fn(sch, i * CAKE_QUEUES + j + 1, arg) < 0) { j 64 net/sched/sch_mqprio.c int i, j; j 103 net/sched/sch_mqprio.c for (j = i + 1; j < qopt->num_tc; j++) { j 104 net/sched/sch_mqprio.c if (last > qopt->offset[j]) j 1415 net/sched/sch_qfq.c int i, j, err; j 1442 net/sched/sch_qfq.c for (j = 0; j < QFQ_MAX_SLOTS; j++) j 1443 net/sched/sch_qfq.c INIT_HLIST_HEAD(&grp->slots[j]); j 908 net/sched/sch_taprio.c int i, j; j 958 net/sched/sch_taprio.c for (j = i + 1; j < qopt->num_tc; j++) { j 959 net/sched/sch_taprio.c if (last > qopt->offset[j]) { j 233 net/sunrpc/auth_gss/gss_mech_switch.c int j, i = 0; j 237 net/sunrpc/auth_gss/gss_mech_switch.c for (j = 0; j < pos->gm_pf_num; j++) { j 242 net/sunrpc/auth_gss/gss_mech_switch.c array_ptr[i++] = pos->gm_pfs[j].pseudoflavor; j 40 net/sunrpc/stats.c unsigned int i, j; j 60 net/sunrpc/stats.c for (j = 0; j < vers->nrprocs; j++) j 61 net/sunrpc/stats.c seq_printf(seq, " %u", vers->counts[j]); j 87 net/sunrpc/stats.c unsigned int i, j; j 108 net/sunrpc/stats.c for (j = 0; j < vers->vs_nproc; j++) j 109 net/sunrpc/stats.c seq_printf(seq, " %u", vers->vs_count[j]); j 200 net/sunrpc/xprtsock.c int j; j 203 net/sunrpc/xprtsock.c for (j = 0; j < count && j < 128; j += 4) { j 204 net/sunrpc/xprtsock.c if (!(j & 31)) { j 205 net/sunrpc/xprtsock.c if (j) j 207 net/sunrpc/xprtsock.c dprintk("0x%04x ", j); j 210 net/sunrpc/xprtsock.c buf[j], buf[j+1], buf[j+2], buf[j+3]); j 550 net/tls/tls_sw.c u32 i, j, bytes = 0, apply = msg_opl->apply_bytes; j 602 net/tls/tls_sw.c j = msg_npl->sg.start; j 603 net/tls/tls_sw.c nsge = sk_msg_elem(msg_npl, j); j 606 net/tls/tls_sw.c sk_msg_iter_var_next(j); j 607 net/tls/tls_sw.c nsge = sk_msg_elem(msg_npl, j); j 615 net/tls/tls_sw.c sk_msg_iter_var_next(j); j 619 net/tls/tls_sw.c nsge = sk_msg_elem(msg_npl, j); j 622 net/tls/tls_sw.c msg_npl->sg.end = j; j 623 net/tls/tls_sw.c msg_npl->sg.curr = j; j 636 net/tls/tls_sw.c u32 i, j; j 640 net/tls/tls_sw.c j = msg_npl->sg.start; j 643 net/tls/tls_sw.c nsge = sk_msg_elem(msg_npl, j); j 549 net/wireless/core.c int i, j; j 584 net/wireless/core.c for (j = 0; j < c->n_limits; j++) { j 585 net/wireless/core.c u16 types = c->limits[j].types; j 592 net/wireless/core.c if (WARN_ON(!c->limits[j].max)) j 601 net/wireless/core.c c->limits[j].max > 1)) j 606 net/wireless/core.c c->limits[j].max > 1)) j 624 net/wireless/core.c cnt += c->limits[j].max; j 924 net/wireless/core.c u8 supported_on_all, j; j 928 net/wireless/core.c for (j = 0; j < wiphy->extended_capabilities_len; j++) { j 929 net/wireless/core.c if (capab[0].extended_capabilities_len > j) j 931 net/wireless/core.c capab[0].extended_capabilities[j]; j 935 net/wireless/core.c if (j >= capab[i].extended_capabilities_len) { j 940 net/wireless/core.c capab[i].extended_capabilities[j]; j 942 net/wireless/core.c if (WARN_ON(wiphy->extended_capabilities[j] & j 110 net/wireless/ibss.c int j; j 120 net/wireless/ibss.c for (j = 0; j < sband->n_bitrates; j++) { j 121 net/wireless/ibss.c if (sband->bitrates[j].flags & flag) j 122 net/wireless/ibss.c params->basic_rates |= BIT(j); j 218 net/wireless/lib80211_crypt_tkip.c int i, j; j 228 net/wireless/lib80211_crypt_tkip.c j = 2 * (i & 1); j 229 net/wireless/lib80211_crypt_tkip.c TTAK[0] += _S_(TTAK[4] ^ Mk16(TK[1 + j], TK[0 + j])); j 230 net/wireless/lib80211_crypt_tkip.c TTAK[1] += _S_(TTAK[0] ^ Mk16(TK[5 + j], TK[4 + j])); j 231 net/wireless/lib80211_crypt_tkip.c TTAK[2] += _S_(TTAK[1] ^ Mk16(TK[9 + j], TK[8 + j])); j 232 net/wireless/lib80211_crypt_tkip.c TTAK[3] += _S_(TTAK[2] ^ Mk16(TK[13 + j], TK[12 + j])); j 233 net/wireless/lib80211_crypt_tkip.c TTAK[4] += _S_(TTAK[3] ^ Mk16(TK[1 + j], TK[0 + j])) + i; j 867 net/wireless/nl80211.c int j; j 874 net/wireless/nl80211.c for (j = 0; j < IEEE80211_NUM_ACS; j++) { j 875 net/wireless/nl80211.c struct nlattr *nl_wmm_rule = nla_nest_start_noflag(msg, j); j 881 net/wireless/nl80211.c rule->wmm_rule.client[j].cw_min) || j 883 net/wireless/nl80211.c rule->wmm_rule.client[j].cw_max) || j 885 net/wireless/nl80211.c rule->wmm_rule.client[j].aifsn) || j 887 net/wireless/nl80211.c rule->wmm_rule.client[j].cot)) j 1347 net/wireless/nl80211.c int i, j; j 1369 net/wireless/nl80211.c for (j = 0; j < c->n_limits; j++) { j 1372 net/wireless/nl80211.c nl_limit = nla_nest_start_noflag(msg, j + 1); j 1376 net/wireless/nl80211.c c->limits[j].max)) j 1379 net/wireless/nl80211.c c->limits[j].types)) j 7598 net/wireless/nl80211.c int j; j 7602 net/wireless/nl80211.c for (j = 0; j < wiphy->bands[band]->n_channels; j++) { j 7605 net/wireless/nl80211.c chan = &wiphy->bands[band]->channels[j]; j 8074 net/wireless/nl80211.c int j; j 8078 net/wireless/nl80211.c for (j = 0; j < wiphy->bands[band]->n_channels; j++) { j 8081 net/wireless/nl80211.c chan = &wiphy->bands[band]->channels[j]; j 11764 net/wireless/nl80211.c int i, j, pat_len; j 11793 net/wireless/nl80211.c for (j = 0; j < rule->n_patterns; j++) { j 11794 net/wireless/nl80211.c nl_pat = nla_nest_start_noflag(msg, j + 1); j 11797 net/wireless/nl80211.c pat_len = rule->patterns[j].pattern_len; j 11800 net/wireless/nl80211.c rule->patterns[j].mask) || j 11802 net/wireless/nl80211.c rule->patterns[j].pattern) || j 11804 net/wireless/nl80211.c rule->patterns[j].pkt_offset)) j 11848 net/wireless/nl80211.c int i, j; j 11856 net/wireless/nl80211.c for (j = 0; j < rule->n_patterns; j++) j 11857 net/wireless/nl80211.c kfree(rule->patterns[j].mask); j 11962 net/wireless/nl80211.c int err, rem_rule, n_rules = 0, i, j; j 12015 net/wireless/nl80211.c for (j = 0; j < tmp_rule->n_patterns; j++) j 12016 net/wireless/nl80211.c kfree(tmp_rule->patterns[j].mask); j 16520 net/wireless/nl80211.c int i, j; j 16555 net/wireless/nl80211.c for (j = 0; j < match->n_channels; j++) { j 16556 net/wireless/nl80211.c if (nla_put_u32(msg, j, match->channels[j])) { j 2684 net/wireless/reg.c int i, j, band; j 2697 net/wireless/reg.c for (j = 0; j < src_sband->n_channels; j++) { j 2698 net/wireless/reg.c src_chan = &src_sband->channels[j]; j 2169 net/wireless/scan.c int j; j 2174 net/wireless/scan.c for (j = 0; j < wiphy->bands[band]->n_channels; j++) { j 2176 net/wireless/scan.c if (wiphy->bands[band]->channels[j].flags & j 2186 net/wireless/scan.c int wiphy_freq = wiphy->bands[band]->channels[j].center_freq; j 2200 net/wireless/scan.c creq->channels[i] = &wiphy->bands[band]->channels[j]; j 99 net/wireless/sme.c int i = 0, j; j 108 net/wireless/sme.c for (j = 0; j < bands->n_channels; j++) { j 109 net/wireless/sme.c channel = &bands->channels[j]; j 1725 net/wireless/util.c int i, j, iftype; j 1779 net/wireless/util.c for (j = 0; j < c->n_limits; j++) { j 1780 net/wireless/util.c all_iftypes |= limits[j].types; j 1781 net/wireless/util.c if (!(limits[j].types & BIT(iftype))) j 1783 net/wireless/util.c if (limits[j].max < params->iftype_num[iftype]) j 1785 net/wireless/util.c limits[j].max -= params->iftype_num[iftype]; j 1854 net/wireless/util.c int i, j; j 1868 net/wireless/util.c for (j = 0; j < sband->n_bitrates; j++) { j 1869 net/wireless/util.c if (sband->bitrates[j].bitrate == rate) { j 1871 net/wireless/util.c *mask |= BIT(j); j 4318 net/xfrm/xfrm_policy.c int i, j, n = 0; j 4328 net/xfrm/xfrm_policy.c for (j = 0, mp = m; j < num_migrate; j++, mp++) { j 4356 net/xfrm/xfrm_policy.c int i, j; j 4367 net/xfrm/xfrm_policy.c for (j = i + 1; j < num_migrate; j++) { j 4368 net/xfrm/xfrm_policy.c if (!memcmp(&m[i].old_daddr, &m[j].old_daddr, j 4370 net/xfrm/xfrm_policy.c !memcmp(&m[i].old_saddr, &m[j].old_saddr, j 4372 net/xfrm/xfrm_policy.c m[i].proto == m[j].proto && j 4373 net/xfrm/xfrm_policy.c m[i].mode == m[j].mode && j 4374 net/xfrm/xfrm_policy.c m[i].reqid == m[j].reqid && j 4375 net/xfrm/xfrm_policy.c m[i].old_family == m[j].old_family) j 153 samples/auxdisplay/cfag12864b-example.c unsigned char i, j, n; j 156 samples/auxdisplay/cfag12864b-example.c for (j = 0; j < CFAG12864B_WIDTH / CFAG12864B_BPB; j++) { j 158 samples/auxdisplay/cfag12864b-example.c j] = 0; j 161 samples/auxdisplay/cfag12864b-example.c j * CFAG12864B_BPB + n]) j 163 samples/auxdisplay/cfag12864b-example.c CFAG12864B_BPB + j] |= j 188 samples/auxdisplay/cfag12864b-example.c unsigned short i, j; j 201 samples/auxdisplay/cfag12864b-example.c for (j = 0; j < CFAG12864B_HEIGHT; j += 2) j 202 samples/auxdisplay/cfag12864b-example.c cfag12864b_set(i, j); j 214 samples/auxdisplay/cfag12864b-example.c for (j = 0; j < CFAG12864B_HEIGHT; j += 2) j 215 samples/auxdisplay/cfag12864b-example.c matrix[j * CFAG12864B_WIDTH + i] = 1; j 227 samples/auxdisplay/cfag12864b-example.c for (j = 0; j < CFAG12864B_HEIGHT; j++) j 228 samples/auxdisplay/cfag12864b-example.c cfag12864b_unset(i, j); j 234 samples/auxdisplay/cfag12864b-example.c for (j = 0; j < CFAG12864B_HEIGHT; j ++) j 235 samples/auxdisplay/cfag12864b-example.c cfag12864b_not(i, j); j 352 samples/bpf/bpf_load.c int j, map_idx; j 564 samples/bpf/bpf_load.c int j; j 568 samples/bpf/bpf_load.c for (j = 0; j < MAX_MAPS; j++) j 569 samples/bpf/bpf_load.c map_data[j].fd = -1; j 41 samples/bpf/cpustat_user.c int i, j; j 64 samples/bpf/cpustat_user.c for (j = 0; j < MAX_CPU; j++) { j 65 samples/bpf/cpustat_user.c data = &stat_data[j]; j 67 samples/bpf/cpustat_user.c printf("CPU-%-6d ", j); j 39 samples/bpf/lathist_user.c int i, j; j 44 samples/bpf/lathist_user.c for (j = 0; j < MAX_CPU; j++) { j 45 samples/bpf/lathist_user.c hist = &cpu_hist[j]; j 51 samples/bpf/lathist_user.c printf("CPU %d\n", j); j 164 samples/connector/ucon.c int i, j; j 176 samples/connector/ucon.c for (j=0; j<10; ++j) { j 55 samples/kfifo/bytestream-example.c unsigned char i, j; j 96 samples/kfifo/bytestream-example.c j = 0; j 99 samples/kfifo/bytestream-example.c if (i != expected_result[j++]) { j 104 samples/kfifo/bytestream-example.c if (j != ARRAY_SIZE(expected_result)) { j 55 samples/kfifo/inttype-example.c int i, j; j 89 samples/kfifo/inttype-example.c j = 0; j 92 samples/kfifo/inttype-example.c if (i != expected_result[j++]) { j 97 samples/kfifo/inttype-example.c if (j != ARRAY_SIZE(expected_result)) { j 171 samples/livepatch/livepatch-shadow-mod.c unsigned long j; j 173 samples/livepatch/livepatch-shadow-mod.c j = jiffies; j 174 samples/livepatch/livepatch-shadow-mod.c pr_info("%s: jiffies = %lx\n", __func__, j); j 180 samples/livepatch/livepatch-shadow-mod.c if (dummy_check(d, j)) { j 1853 scripts/dtc/checks.c int j; j 1855 scripts/dtc/checks.c for (j = 0; j < cc->num_prereqs; j++) j 1856 scripts/dtc/checks.c if (cc->prereq[j] == c) j 298 scripts/dtc/flattree.c int j; j 306 scripts/dtc/flattree.c for (j = 0; j < reservenum; j++) { j 73 scripts/dtc/srcpos.c int diff = initial_pathlen - slashes, i, j; j 78 scripts/dtc/srcpos.c for (i = 0, j = 0; i != diff; i++) { j 79 scripts/dtc/srcpos.c res[j++] = '.'; j 80 scripts/dtc/srcpos.c res[j++] = '.'; j 81 scripts/dtc/srcpos.c res[j++] = '/'; j 83 scripts/dtc/srcpos.c strcpy(res + j, p1); j 186 scripts/dtc/util.c int j = *i + 1; j 219 scripts/dtc/util.c j--; /* need to re-read the first digit as j 221 scripts/dtc/util.c val = get_oct_char(s, &j); j 224 scripts/dtc/util.c val = get_hex_char(s, &j); j 230 scripts/dtc/util.c (*i) = j; j 15 scripts/dtc/util.h #define PRINTF(i, j) __attribute__((format (printf, i, j))) j 18 scripts/dtc/util.h #define PRINTF(i, j) j 602 scripts/kallsyms.c unsigned int i, j, c; j 605 scripts/kallsyms.c for (j = 0; j < table[i].len; j++) { j 606 scripts/kallsyms.c c = table[i].sym[j]; j 56 scripts/kconfig/lxdialog/menubox.c int j; j 61 scripts/kconfig/lxdialog/menubox.c j = first_alpha(menu_item, "YyNnMmHh"); j 80 scripts/kconfig/lxdialog/menubox.c mvwaddch(win, line_y, item_x + j, menu_item[j]); j 174 scripts/kconfig/lxdialog/menubox.c int i, j, x, y, box_x, box_y; j 280 scripts/kconfig/lxdialog/menubox.c j = first_alpha(item_str(), "YyNnMmHh"); j 281 scripts/kconfig/lxdialog/menubox.c if (key == tolower(item_str()[j])) j 287 scripts/kconfig/lxdialog/menubox.c j = first_alpha(item_str(), "YyNnMmHh"); j 288 scripts/kconfig/lxdialog/menubox.c if (key == tolower(item_str()[j])) j 231 scripts/kconfig/lxdialog/util.c int i, j; j 236 scripts/kconfig/lxdialog/util.c for (j = 0; j < width; j++) j 467 scripts/kconfig/lxdialog/util.c int i, j; j 472 scripts/kconfig/lxdialog/util.c for (j = 0; j < width; j++) j 473 scripts/kconfig/lxdialog/util.c if (!i && !j) j 475 scripts/kconfig/lxdialog/util.c else if (i == height - 1 && !j) j 477 scripts/kconfig/lxdialog/util.c else if (!i && j == width - 1) j 479 scripts/kconfig/lxdialog/util.c else if (i == height - 1 && j == width - 1) j 485 scripts/kconfig/lxdialog/util.c else if (!j) j 487 scripts/kconfig/lxdialog/util.c else if (j == width - 1) j 704 scripts/kconfig/menu.c int i, j; j 742 scripts/kconfig/menu.c for (j = 4; --i >= 0; j += 2) { j 746 scripts/kconfig/menu.c str_printf(r, "%*c-> %s", j, ' ', j 232 scripts/mod/file2alias.c unsigned int init = *bcd, i, j; j 245 scripts/mod/file2alias.c for (j=0 ; j < i ; j++) j 256 scripts/mod/file2alias.c for (c=1,j=0 ; j < i ; j++) j 584 scripts/mod/file2alias.c int j; j 590 scripts/mod/file2alias.c for (j = 0; j < sizeof(acpi_id); j++) j 591 scripts/mod/file2alias.c acpi_id[j] = toupper((*id)[j]); j 608 scripts/mod/file2alias.c unsigned int j; j 611 scripts/mod/file2alias.c for (j = 0; j < PNP_MAX_DEVICES; j++) { j 612 scripts/mod/file2alias.c const char *id = (char *)(*devs)[j].id; j 965 scripts/mod/file2alias.c int i, j; j 970 scripts/mod/file2alias.c for (j = 0; j < 4; j++) { j 971 scripts/mod/file2alias.c if ((*matches)[j].slot && j 972 scripts/mod/file2alias.c (*matches)[j].slot == dmi_fields[i].field) { j 976 scripts/mod/file2alias.c (*matches)[j].substr); j 128 scripts/pnmtologo.c unsigned int i, j; j 178 scripts/pnmtologo.c for (j = 0; j < logo_width; j++) j 179 scripts/pnmtologo.c logo_data[i][j].red = logo_data[i][j].green = j 180 scripts/pnmtologo.c logo_data[i][j].blue = 255*(1-get_number(fp)); j 187 scripts/pnmtologo.c for (j = 0; j < logo_width; j++) j 188 scripts/pnmtologo.c logo_data[i][j].red = logo_data[i][j].green = j 189 scripts/pnmtologo.c logo_data[i][j].blue = get_number255(fp, maxval); j 196 scripts/pnmtologo.c for (j = 0; j < logo_width; j++) { j 197 scripts/pnmtologo.c logo_data[i][j].red = get_number255(fp, maxval); j 198 scripts/pnmtologo.c logo_data[i][j].green = get_number255(fp, maxval); j 199 scripts/pnmtologo.c logo_data[i][j].blue = get_number255(fp, maxval); j 285 scripts/pnmtologo.c unsigned int i, j; j 290 scripts/pnmtologo.c for (j = 0; j < logo_width; j++) j 291 scripts/pnmtologo.c if (!is_black(logo_data[i][j]) && !is_white(logo_data[i][j])) j 299 scripts/pnmtologo.c for (j = 0; j < logo_width;) { j 300 scripts/pnmtologo.c for (val = 0, bit = 0x80; bit && j < logo_width; j++, bit >>= 1) j 301 scripts/pnmtologo.c if (logo_data[i][j].red) j 313 scripts/pnmtologo.c unsigned int i, j, k; j 318 scripts/pnmtologo.c for (j = 0; j < logo_width; j++) { j 320 scripts/pnmtologo.c if (is_equal(logo_data[i][j], clut_vga16[k])) j 333 scripts/pnmtologo.c for (j = 0; j < logo_width; j++) { j 335 scripts/pnmtologo.c if (is_equal(logo_data[i][j], clut_vga16[k])) j 338 scripts/pnmtologo.c if (++j < logo_width) { j 340 scripts/pnmtologo.c if (is_equal(logo_data[i][j], clut_vga16[k])) j 353 scripts/pnmtologo.c unsigned int i, j, k; j 357 scripts/pnmtologo.c for (j = 0; j < logo_width; j++) { j 359 scripts/pnmtologo.c if (is_equal(logo_data[i][j], logo_clut[k])) j 366 scripts/pnmtologo.c logo_clut[logo_clutsize++] = logo_data[i][j]; j 375 scripts/pnmtologo.c for (j = 0; j < logo_width; j++) { j 377 scripts/pnmtologo.c if (is_equal(logo_data[i][j], logo_clut[k])) j 399 scripts/pnmtologo.c unsigned int i, j; j 403 scripts/pnmtologo.c for (j = 0; j < logo_width; j++) j 404 scripts/pnmtologo.c if (!is_gray(logo_data[i][j])) j 412 scripts/pnmtologo.c for (j = 0; j < logo_width; j++) j 413 scripts/pnmtologo.c write_hex(logo_data[i][j].red); j 46 scripts/selinux/genheaders/genheaders.c int i, j; j 65 scripts/selinux/genheaders/genheaders.c for (j = 0; map->perms[j]; j++) j 66 scripts/selinux/genheaders/genheaders.c map->perms[j] = stoupperx(map->perms[j]); j 123 scripts/selinux/genheaders/genheaders.c for (j = 0; map->perms[j]; j++) { j 124 scripts/selinux/genheaders/genheaders.c if (j >= 32) { j 126 scripts/selinux/genheaders/genheaders.c map->name, map->perms[j]); j 130 scripts/selinux/genheaders/genheaders.c 39-len, map->perms[j], 1U<<j); j 41 scripts/selinux/mdp/mdp.c int i, j, mls = 0; j 79 scripts/selinux/mdp/mdp.c for (j = 0; map->perms[j]; j++) j 80 scripts/selinux/mdp/mdp.c fprintf(fout, "\t%s\n", map->perms[j]); j 100 scripts/selinux/mdp/mdp.c for (j = 0; map->perms[j]; j++) j 101 scripts/selinux/mdp/mdp.c fprintf(fout, "\t%s\n", map->perms[j]); j 111 security/apparmor/include/label.h int i, j; j 166 security/apparmor/include/label.h (I).j++; \ j 167 security/apparmor/include/label.h if ((I).j >= (L2)->size) { \ j 169 security/apparmor/include/label.h (I).j = 0; \ j 176 security/apparmor/include/label.h for ((I).i = (I).j = 0; \ j 177 security/apparmor/include/label.h ((P1) = (L1)->vec[(I).i]) && ((P2) = (L2)->vec[(I).j]); \ j 197 security/apparmor/include/label.h for ((I).i = (I).j = 0; \ j 202 security/apparmor/include/label.h for ((I).i = (I).j = 0; \ j 279 security/apparmor/label.c int pos, j; j 295 security/apparmor/label.c for (j = i - dups; j > pos; j--) j 296 security/apparmor/label.c vec[j] = vec[j - 1]; j 511 security/apparmor/label.c AA_BUG(I->j < 0); j 512 security/apparmor/label.c AA_BUG(I->j > sub->size); j 514 security/apparmor/label.c while (I->j < sub->size && I->i < set->size) { j 515 security/apparmor/label.c int res = profile_cmp(sub->vec[I->j], set->vec[I->i]); j 518 security/apparmor/label.c (I->j)++; j 523 security/apparmor/label.c return sub->vec[(I->j)++]; j 526 security/apparmor/label.c if (I->j < sub->size) j 527 security/apparmor/label.c return sub->vec[(I->j)++]; j 941 security/apparmor/label.c AA_BUG(I->j < 0); j 942 security/apparmor/label.c AA_BUG(I->j > b->size); j 945 security/apparmor/label.c if (I->j < b->size) { j 946 security/apparmor/label.c int res = profile_cmp(a->vec[I->i], b->vec[I->j]); j 949 security/apparmor/label.c return b->vec[(I->j)++]; j 951 security/apparmor/label.c (I->j)++; j 957 security/apparmor/label.c if (I->j < b->size) j 958 security/apparmor/label.c return b->vec[(I->j)++]; j 1537 security/apparmor/lsm.c u32 i, j; j 1540 security/apparmor/lsm.c for_each_cpu_buffer(j) { j 1541 security/apparmor/lsm.c kfree(per_cpu(aa_buffers, i).buf[j]); j 1542 security/apparmor/lsm.c per_cpu(aa_buffers, i).buf[j] = NULL; j 1549 security/apparmor/lsm.c u32 i, j; j 1552 security/apparmor/lsm.c for_each_cpu_buffer(j) { j 1565 security/apparmor/lsm.c per_cpu(aa_buffers, i).buf[j] = buffer; j 220 security/apparmor/match.c size_t j, k; j 222 security/apparmor/match.c for (j = i; j 223 security/apparmor/match.c (BASE_TABLE(dfa)[j] & MATCH_FLAG_DIFF_ENCODE) && j 224 security/apparmor/match.c !(BASE_TABLE(dfa)[j] & MARK_DIFF_ENCODE); j 225 security/apparmor/match.c j = k) { j 226 security/apparmor/match.c k = DEFAULT_TABLE(dfa)[j]; j 227 security/apparmor/match.c if (j == k) j 229 security/apparmor/match.c if (k < j) j 231 security/apparmor/match.c BASE_TABLE(dfa)[j] |= MARK_DIFF_ENCODE; j 494 security/apparmor/policy_unpack.c int c, j, pos, size2 = unpack_strdup(e, &str, NULL); j 506 security/apparmor/policy_unpack.c for (c = j = 0; j < size2 - 1; j++) { j 507 security/apparmor/policy_unpack.c if (!str[j]) { j 508 security/apparmor/policy_unpack.c pos = j; j 156 security/apparmor/resource.c int j; j 158 security/apparmor/resource.c for (j = 0, mask = 1; j < RLIM_NLIMITS; j++, j 161 security/apparmor/resource.c rlim = current->signal->rlim + j; j 162 security/apparmor/resource.c initrlim = init_task.signal->rlim + j; j 172 security/apparmor/resource.c int j; j 176 security/apparmor/resource.c for (j = 0, mask = 1; j < RLIM_NLIMITS; j++, mask <<= 1) { j 180 security/apparmor/resource.c rlim = current->signal->rlim + j; j 182 security/apparmor/resource.c new->rlimits.limits[j].rlim_max); j 169 security/integrity/ima/ima_template.c int i = 0, j = 0; j 174 security/integrity/ima/ima_template.c j++; j 178 security/integrity/ima/ima_template.c return j + 1; j 191 security/loadpin/loadpin.c int i, j; j 211 security/loadpin/loadpin.c for (j = 0; j < ARRAY_SIZE(ignore_read_file_id); j++) { j 212 security/loadpin/loadpin.c if (strcmp(cur, kernel_read_file_str[j]) == 0) { j 214 security/loadpin/loadpin.c kernel_read_file_str[j]); j 215 security/loadpin/loadpin.c ignore_read_file_id[j] = 1; j 1192 security/selinux/ss/policydb.c int rc, i, j, depth; j 1212 security/selinux/ss/policydb.c for (j = 0; j < nexpr; j++) { j 1957 security/selinux/ss/policydb.c int i, j, rc; j 2009 security/selinux/ss/policydb.c for (j = 0; j < nel2; j++) { j 2071 security/selinux/ss/policydb.c int i, j, rc; j 2085 security/selinux/ss/policydb.c for (j = 0; j < nel; j++) { j 2258 security/selinux/ss/policydb.c int i, j, rc; j 2383 security/selinux/ss/policydb.c for (j = 0; j < nel; j++) { j 3078 security/selinux/ss/policydb.c unsigned int i, j, rc; j 3156 security/selinux/ss/policydb.c for (j = 0; j < 4; j++) j 3157 security/selinux/ss/policydb.c nodebuf[j] = c->u.node6.addr[j]; /* network order */ j 3158 security/selinux/ss/policydb.c for (j = 0; j < 4; j++) j 3159 security/selinux/ss/policydb.c nodebuf[j + 4] = c->u.node6.mask[j]; /* network order */ j 105 security/selinux/ss/services.c u16 i, j; j 122 security/selinux/ss/services.c j = 0; j 123 security/selinux/ss/services.c while (map[j].name) { j 124 security/selinux/ss/services.c struct security_class_mapping *p_in = map + (j++); j 125 security/selinux/ss/services.c struct selinux_mapping *p_out = out_map->mapping + j; j 627 security/selinux/ss/services.c unsigned int i, j; j 654 security/selinux/ss/services.c ebitmap_for_each_positive_bit(tattr, tnode, j) { j 656 security/selinux/ss/services.c avkey.target_type = j + 1; j 1013 security/selinux/ss/services.c unsigned int i, j; j 1060 security/selinux/ss/services.c ebitmap_for_each_positive_bit(tattr, tnode, j) { j 1062 security/selinux/ss/services.c avkey.target_type = j + 1; j 2562 security/selinux/ss/services.c int rc = 0, i, j; j 2597 security/selinux/ss/services.c ebitmap_for_each_positive_bit(&role->types, tnode, j) { j 2598 security/selinux/ss/services.c usercon.type = j + 1; j 2636 security/selinux/ss/services.c for (i = 0, j = 0; i < mynel; i++) { j 2644 security/selinux/ss/services.c mysids2[j++] = mysids[i]; j 2650 security/selinux/ss/services.c *nel = j; j 803 security/tomoyo/condition.c u8 j; j 835 security/tomoyo/condition.c for (j = 0; j < 2; j++) { j 836 security/tomoyo/condition.c const u8 index = j ? right : left; j 1043 security/tomoyo/condition.c max_v[j] = value; j 1044 security/tomoyo/condition.c min_v[j] = value; j 1058 security/tomoyo/condition.c is_bitop[j] = true; j 684 security/tomoyo/util.c int j; j 756 security/tomoyo/util.c j = 0; j 759 security/tomoyo/util.c while (isdigit(filename[j])) j 760 security/tomoyo/util.c j++; j 762 security/tomoyo/util.c while (isxdigit(filename[j])) j 763 security/tomoyo/util.c j++; j 765 security/tomoyo/util.c while (tomoyo_alphabet_char(filename[j])) j 766 security/tomoyo/util.c j++; j 768 security/tomoyo/util.c for (i = 1; i <= j; i++) { j 32 sound/drivers/pcm-indirect2.c int j; j 63 sound/drivers/pcm-indirect2.c for (j = 0; j < 8; j++) { j 64 sound/drivers/pcm-indirect2.c for (i = j * 8; i < (j + 1) * 8; i++) j 77 sound/drivers/pcm-indirect2.c for (j = 0; j < 8; j++) { j 79 sound/drivers/pcm-indirect2.c for (i = j * 8; i < (j + 1) * 8; i++) j 90 sound/drivers/pcm-indirect2.c for (j = 0; j < 8; j++) { j 91 sound/drivers/pcm-indirect2.c if (rec->min_adds[j] != 0) j 92 sound/drivers/pcm-indirect2.c snd_printk(KERN_DEBUG "%u: %u", j, rec->min_adds[j]); j 96 sound/drivers/pcm-indirect2.c for (j = 0; j < 8; j++) { j 97 sound/drivers/pcm-indirect2.c if (rec->mul_adds[j] != 0) j 98 sound/drivers/pcm-indirect2.c snd_printk(KERN_DEBUG "%u: %u", j, rec->mul_adds[j]); j 159 sound/firewire/dice/dice-extension.c int j; j 161 sound/firewire/dice/dice-extension.c for (j = i + 1; j < 9; ++j) { j 162 sound/firewire/dice/dice-extension.c if (pointers[i * 2] == pointers[j * 2]) { j 398 sound/firewire/dice/dice-pcm.c int i, j; j 403 sound/firewire/dice/dice-pcm.c for (j = 0; j < SND_DICE_RATE_MODE_COUNT; ++j) { j 404 sound/firewire/dice/dice-pcm.c if (dice->tx_pcm_chs[i][j] > 0) j 406 sound/firewire/dice/dice-pcm.c if (dice->rx_pcm_chs[i][j] > 0) j 254 sound/firewire/dice/dice-proc.c int i, j; j 262 sound/firewire/dice/dice-proc.c for (j = 0; j < SND_DICE_RATE_MODE_COUNT; ++j) j 263 sound/firewire/dice/dice-proc.c snd_iprintf(buffer, "\t%u", dice->tx_pcm_chs[i][j]); j 273 sound/firewire/dice/dice-proc.c for (j = 0; j < SND_DICE_RATE_MODE_COUNT; ++j) j 274 sound/firewire/dice/dice-proc.c snd_iprintf(buffer, "\t%u", dice->rx_pcm_chs[i][j]); j 50 sound/firewire/oxfw/oxfw-pcm.c int i, j, err; j 66 sound/firewire/oxfw/oxfw-pcm.c for (j = 0; j < ARRAY_SIZE(list); j++) { j 67 sound/firewire/oxfw/oxfw-pcm.c if (list[j] == formation.pcm) j 70 sound/firewire/oxfw/oxfw-pcm.c if (j == ARRAY_SIZE(list)) { j 221 sound/hda/hdmi_chmap.c int i, j; j 228 sound/hda/hdmi_chmap.c for (j = 0; j < ARRAY_SIZE(p->speakers); j++) j 229 sound/hda/hdmi_chmap.c if (p->speakers[j]) { j 231 sound/hda/hdmi_chmap.c p->spk_mask |= p->speakers[j]; j 249 sound/hda/hdmi_chmap.c int i, j; j 251 sound/hda/hdmi_chmap.c for (i = 0, j = 0; i < ARRAY_SIZE(cea_speaker_allocation_names); i++) { j 253 sound/hda/hdmi_chmap.c j += scnprintf(buf + j, buflen - j, " %s", j 256 sound/hda/hdmi_chmap.c buf[j] = '\0'; /* necessary when j == 0 */ j 68 sound/hda/intel-nhlt.c u8 j; j 75 sound/hda/intel-nhlt.c for (j = 0; j < nhlt->endpoint_count; j++) { j 435 sound/pci/ac97/ac97_pcm.c int i, j, k; j 458 sound/pci/ac97/ac97_pcm.c for (j = 0; j < i; j++) { j 459 sound/pci/ac97/ac97_pcm.c if (bus->codec[j]) j 460 sound/pci/ac97/ac97_pcm.c avail_slots[1][i] &= ~avail_slots[1][j]; j 480 sound/pci/ac97/ac97_pcm.c for (j = 0; j < 4 && slots; j++) { j 481 sound/pci/ac97/ac97_pcm.c if (!bus->codec[j]) j 485 sound/pci/ac97/ac97_pcm.c tmp = spdif_slots[j]; j 487 sound/pci/ac97/ac97_pcm.c tmp = avail_slots[pcm->stream][j]; j 493 sound/pci/ac97/ac97_pcm.c tmp &= ~rpcms[k].r[0].rslots[j]; j 500 sound/pci/ac97/ac97_pcm.c rpcm->r[0].rslots[j] = tmp; j 501 sound/pci/ac97/ac97_pcm.c rpcm->r[0].codec[j] = bus->codec[j]; j 502 sound/pci/ac97/ac97_pcm.c rpcm->r[0].rate_table[j] = rate_table[pcm->stream][j]; j 506 sound/pci/ac97/ac97_pcm.c rates = get_rates(rpcm, j, tmp, 0); j 508 sound/pci/ac97/ac97_pcm.c avail_slots[pcm->stream][j] &= ~tmp; j 1864 sound/pci/ali5451/ali5451.c int i, j; j 1891 sound/pci/ali5451/ali5451.c for (j = 0; j < ALI_CHANNEL_REGS; j++) j 1892 sound/pci/ali5451/ali5451.c im->channel_regs[i][j] = inl(ALI_REG(chip, j*4 + 0xe0)); j 1907 sound/pci/ali5451/ali5451.c int i, j; j 1917 sound/pci/ali5451/ali5451.c for (j = 0; j < ALI_CHANNEL_REGS; j++) j 1918 sound/pci/ali5451/ali5451.c outl(im->channel_regs[i][j], ALI_REG(chip, j*4 + 0xe0)); j 2521 sound/pci/asihpi/asihpi.c int i, j; j 2546 sound/pci/asihpi/asihpi.c for (j = 1; j < 8; j++) { j 2548 sound/pci/asihpi/asihpi.c j, HPI_SAMPLECLOCK_SOURCE_AESEBU_INPUT, j 2553 sound/pci/asihpi/asihpi.c clkcache->s[i].index = j; j 2555 sound/pci/asihpi/asihpi.c j+HPI_SAMPLECLOCK_SOURCE_LAST]; j 635 sound/pci/asihpi/hpi6000.c u32 j = 0; j 719 sound/pci/asihpi/hpi6000.c for (j = 0; j < 32; j++) { j 779 sound/pci/asihpi/hpi6000.c for (j = 0; j < 32; j++) { j 897 sound/pci/asihpi/hpi6000.c for (j = 0; j < 32; j++) { j 1836 sound/pci/asihpi/hpi6205.c u32 i = 0, j = 0; j 1849 sound/pci/asihpi/hpi6205.c for (j = 0; j < 32; j++) { j 50 sound/pci/asihpi/hpidebug.c int j; j 59 sound/pci/asihpi/hpidebug.c for (i = 0, j = 0; j < lines; j++) { j 1413 sound/pci/asihpi/hpifunc.c unsigned int sub_string_index = 0, j = 0; j 1444 sound/pci/asihpi/hpifunc.c for (j = 0; j < 8; j++) { j 1445 sound/pci/asihpi/hpifunc.c c = hr.u.cu.chars8.sz_data[j]; j 1446 sound/pci/asihpi/hpifunc.c psz_string[sub_string_index + j] = c; j 1458 sound/pci/asihpi/hpifunc.c && ((sub_string_index + j) < string_length) j 1461 sound/pci/asihpi/hpifunc.c psz_string[sub_string_index + j] = c; j 776 sound/pci/au88x0/au88x0_core.c static void vortex_fifo_adbinitialize(vortex_t * vortex, int fifo, int j) j 781 sound/pci/au88x0/au88x0_core.c (FIFO_U1 | ((j & FIFO_MASK) << 0xb))); j 784 sound/pci/au88x0/au88x0_core.c (FIFO_U1 | ((j & FIFO_MASK) << 0xc))); j 877 sound/pci/au88x0/au88x0_core.c static void vortex_fifo_wtinitialize(vortex_t * vortex, int fifo, int j) j 882 sound/pci/au88x0/au88x0_core.c (FIFO_U1 | ((j & FIFO_MASK) << 0xb))); j 885 sound/pci/au88x0/au88x0_core.c (FIFO_U1 | ((j & FIFO_MASK) << 0xc))); j 21 sound/pci/au88x0/au88x0_synth.c static void vortex_fifo_wtinitialize(vortex_t * vortex, int fifo, int j); j 351 sound/pci/ca0106/ca0106_proc.c int i,j; j 356 sound/pci/ca0106/ca0106_proc.c for (j = 0; j < 4; j++) { j 357 sound/pci/ca0106/ca0106_proc.c value = snd_ca0106_ptr_read(emu, i, j); j 369 sound/pci/ca0106/ca0106_proc.c int i,j; j 374 sound/pci/ca0106/ca0106_proc.c for (j = 0; j < 4; j++) { j 375 sound/pci/ca0106/ca0106_proc.c value = snd_ca0106_ptr_read(emu, i, j); j 48 sound/pci/cs46xx/dsp_spos.c unsigned int i = 0, j, nreallocated = 0; j 69 sound/pci/cs46xx/dsp_spos.c for (j = 0;j < ARRAY_SIZE(wide_opcodes); ++j) { j 70 sound/pci/cs46xx/dsp_spos.c if (wide_opcodes[j] == wide_op) { j 526 sound/pci/cs46xx/dsp_spos.c int i,j; j 535 sound/pci/cs46xx/dsp_spos.c for (j = 0; j < ins->modules[i].nsegments; ++ j) { j 536 sound/pci/cs46xx/dsp_spos.c struct dsp_segment_desc * desc = (ins->modules[i].segments + j); j 549 sound/pci/cs46xx/dsp_spos.c int i, j, col; j 557 sound/pci/cs46xx/dsp_spos.c for (col = 0,j = 0;j < ins->tasks[i].size; j++,col++) { j 563 sound/pci/cs46xx/dsp_spos.c val = readl(dst + (ins->tasks[i].address + j) * sizeof(u32)); j 63 sound/pci/cs46xx/dsp_spos_scb_lib.c int j,col; j 69 sound/pci/cs46xx/dsp_spos_scb_lib.c for (col = 0,j = 0;j < 0x10; j++,col++) { j 74 sound/pci/cs46xx/dsp_spos_scb_lib.c snd_iprintf(buffer,"%08x ",readl(dst + (scb->address + j) * sizeof(u32))); j 652 sound/pci/ctxfi/ctatc.c int err, i, j, n_sum, multi; j 697 sound/pci/ctxfi/ctatc.c for (j = 0; j < atc->msr; j++) { j 698 sound/pci/ctxfi/ctatc.c amixer = apcm->amixers[apcm->n_srcc+j*multi+i]; j 705 sound/pci/ctxfi/ctatc.c srcimp = apcm->srcimps[apcm->n_srcc+j*multi+i]; j 1495 sound/pci/ctxfi/ctatc.c int i, j; j 1499 sound/pci/ctxfi/ctatc.c for (i = MIX_WAVE_FRONT, j = LINEO1; i <= MIX_SPDIF_OUT; i++, j++) { j 1501 sound/pci/ctxfi/ctatc.c dao = container_of(atc->daios[j], struct dao, daio); j 1537 sound/pci/ctxfi/ctatc.c for (i = MIX_PCMI_FRONT, j = 0; i <= MIX_PCMI_SURROUND; i++, j += 2) { j 1538 sound/pci/ctxfi/ctatc.c sum = atc->pcm[j]; j 1540 sound/pci/ctxfi/ctatc.c sum = atc->pcm[j+1]; j 370 sound/pci/ctxfi/ctmixer.c int i, j, val, oval, change = 0; j 387 sound/pci/ctxfi/ctmixer.c for (j = 1; j < 4; j++) { j 389 sound/pci/ctxfi/ctmixer.c amixers[(type+j)*CHN_NUM+i]; j 936 sound/pci/ctxfi/ctmixer.c enum CT_AMIXER_CTL i, j; j 953 sound/pci/ctxfi/ctmixer.c for (i = AMIXER_WAVE_F, j = AMIXER_MASTER_F; j 954 sound/pci/ctxfi/ctmixer.c i <= AMIXER_WAVE_S; i++, j++) { j 956 sound/pci/ctxfi/ctmixer.c amix_s = mixer->amixers[j*CHN_NUM]; j 959 sound/pci/ctxfi/ctmixer.c amix_s = mixer->amixers[j*CHN_NUM+1]; j 26 sound/pci/ctxfi/ctresource.c int i, j, k, n; j 30 sound/pci/ctxfi/ctresource.c j = i / 8; j 32 sound/pci/ctxfi/ctresource.c if (rscs[j] & ((u8)1 << k)) { j 47 sound/pci/ctxfi/ctresource.c j = i / 8; j 49 sound/pci/ctxfi/ctresource.c rscs[j] |= ((u8)1 << k); j 60 sound/pci/ctxfi/ctresource.c unsigned int i, j, k, n; j 64 sound/pci/ctxfi/ctresource.c j = i / 8; j 66 sound/pci/ctxfi/ctresource.c rscs[j] &= ~((u8)1 << k); j 341 sound/pci/emu10k1/emufx.c unsigned int i, j; j 366 sound/pci/emu10k1/emufx.c for (j = 0; j < 5; j++) j 367 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[j * ctl->vcount + i], 0, bass_table[val][j]); j 374 sound/pci/emu10k1/emufx.c for (j = 0; j < 5; j++) j 375 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[j * ctl->vcount + i], 0, treble_table[val][j]); j 784 sound/pci/emu10k1/emufx.c unsigned int i, j; j 832 sound/pci/emu10k1/emufx.c for (j = 0; j < 32; j++) { j 833 sound/pci/emu10k1/emufx.c nctl->gpr[j] = gctl->gpr[j]; j 834 sound/pci/emu10k1/emufx.c nctl->value[j] = ~gctl->value[j]; /* inverted, we want to write new value in gpr_ctl_put() */ j 835 sound/pci/emu10k1/emufx.c val->value.integer.value[j] = gctl->value[j]; j 902 sound/pci/emu10k1/emufx.c unsigned int i = 0, j; j 925 sound/pci/emu10k1/emufx.c for (j = 0; j < 32; j++) { j 926 sound/pci/emu10k1/emufx.c gctl->gpr[j] = ctl->gpr[j]; j 927 sound/pci/emu10k1/emufx.c gctl->value[j] = ctl->value[j]; j 1491 sound/pci/emu10k1/emufx.c int j; j 1492 sound/pci/emu10k1/emufx.c for (j = 0; j < 2; j++) { j 1493 sound/pci/emu10k1/emufx.c controls[nctl + 0].gpr[z * 2 + j] = BASS_GPR + z * 2 + j; j 1494 sound/pci/emu10k1/emufx.c controls[nctl + 1].gpr[z * 2 + j] = TREBLE_GPR + z * 2 + j; j 1498 sound/pci/emu10k1/emufx.c int j, k, l, d; j 1499 sound/pci/emu10k1/emufx.c for (j = 0; j < 2; j++) { /* left/right */ j 1500 sound/pci/emu10k1/emufx.c k = 0xb0 + (z * 8) + (j * 4); j 1501 sound/pci/emu10k1/emufx.c l = 0xe0 + (z * 8) + (j * 4); j 1502 sound/pci/emu10k1/emufx.c d = playback + SND_EMU10K1_PLAYBACK_CHANNELS + z * 2 + j; j 1504 sound/pci/emu10k1/emufx.c A_OP(icode, &ptr, iMAC0, A_C_00000000, A_C_00000000, A_GPR(d), A_GPR(BASS_GPR + 0 + j)); j 1505 sound/pci/emu10k1/emufx.c A_OP(icode, &ptr, iMACMV, A_GPR(k+1), A_GPR(k), A_GPR(k+1), A_GPR(BASS_GPR + 4 + j)); j 1506 sound/pci/emu10k1/emufx.c A_OP(icode, &ptr, iMACMV, A_GPR(k), A_GPR(d), A_GPR(k), A_GPR(BASS_GPR + 2 + j)); j 1507 sound/pci/emu10k1/emufx.c A_OP(icode, &ptr, iMACMV, A_GPR(k+3), A_GPR(k+2), A_GPR(k+3), A_GPR(BASS_GPR + 8 + j)); j 1508 sound/pci/emu10k1/emufx.c A_OP(icode, &ptr, iMAC0, A_GPR(k+2), A_GPR_ACCU, A_GPR(k+2), A_GPR(BASS_GPR + 6 + j)); j 1511 sound/pci/emu10k1/emufx.c A_OP(icode, &ptr, iMAC0, A_C_00000000, A_C_00000000, A_GPR(k+2), A_GPR(TREBLE_GPR + 0 + j)); j 1512 sound/pci/emu10k1/emufx.c A_OP(icode, &ptr, iMACMV, A_GPR(l+1), A_GPR(l), A_GPR(l+1), A_GPR(TREBLE_GPR + 4 + j)); j 1513 sound/pci/emu10k1/emufx.c A_OP(icode, &ptr, iMACMV, A_GPR(l), A_GPR(k+2), A_GPR(l), A_GPR(TREBLE_GPR + 2 + j)); j 1514 sound/pci/emu10k1/emufx.c A_OP(icode, &ptr, iMACMV, A_GPR(l+3), A_GPR(l+2), A_GPR(l+3), A_GPR(TREBLE_GPR + 8 + j)); j 1515 sound/pci/emu10k1/emufx.c A_OP(icode, &ptr, iMAC0, A_GPR(l+2), A_GPR_ACCU, A_GPR(l+2), A_GPR(TREBLE_GPR + 6 + j)); j 2213 sound/pci/emu10k1/emufx.c int j; j 2214 sound/pci/emu10k1/emufx.c for (j = 0; j < 2; j++) { j 2215 sound/pci/emu10k1/emufx.c controls[i + 0].gpr[z * 2 + j] = BASS_GPR + z * 2 + j; j 2216 sound/pci/emu10k1/emufx.c controls[i + 1].gpr[z * 2 + j] = TREBLE_GPR + z * 2 + j; j 2220 sound/pci/emu10k1/emufx.c int j, k, l, d; j 2221 sound/pci/emu10k1/emufx.c for (j = 0; j < 2; j++) { /* left/right */ j 2222 sound/pci/emu10k1/emufx.c k = 0xa0 + (z * 8) + (j * 4); j 2223 sound/pci/emu10k1/emufx.c l = 0xd0 + (z * 8) + (j * 4); j 2224 sound/pci/emu10k1/emufx.c d = playback + SND_EMU10K1_PLAYBACK_CHANNELS + z * 2 + j; j 2226 sound/pci/emu10k1/emufx.c OP(icode, &ptr, iMAC0, C_00000000, C_00000000, GPR(d), GPR(BASS_GPR + 0 + j)); j 2227 sound/pci/emu10k1/emufx.c OP(icode, &ptr, iMACMV, GPR(k+1), GPR(k), GPR(k+1), GPR(BASS_GPR + 4 + j)); j 2228 sound/pci/emu10k1/emufx.c OP(icode, &ptr, iMACMV, GPR(k), GPR(d), GPR(k), GPR(BASS_GPR + 2 + j)); j 2229 sound/pci/emu10k1/emufx.c OP(icode, &ptr, iMACMV, GPR(k+3), GPR(k+2), GPR(k+3), GPR(BASS_GPR + 8 + j)); j 2230 sound/pci/emu10k1/emufx.c OP(icode, &ptr, iMAC0, GPR(k+2), GPR_ACCU, GPR(k+2), GPR(BASS_GPR + 6 + j)); j 2233 sound/pci/emu10k1/emufx.c OP(icode, &ptr, iMAC0, C_00000000, C_00000000, GPR(k+2), GPR(TREBLE_GPR + 0 + j)); j 2234 sound/pci/emu10k1/emufx.c OP(icode, &ptr, iMACMV, GPR(l+1), GPR(l), GPR(l+1), GPR(TREBLE_GPR + 4 + j)); j 2235 sound/pci/emu10k1/emufx.c OP(icode, &ptr, iMACMV, GPR(l), GPR(k+2), GPR(l), GPR(TREBLE_GPR + 2 + j)); j 2236 sound/pci/emu10k1/emufx.c OP(icode, &ptr, iMACMV, GPR(l+3), GPR(l+2), GPR(l+3), GPR(TREBLE_GPR + 8 + j)); j 2237 sound/pci/emu10k1/emufx.c OP(icode, &ptr, iMAC0, GPR(l+2), GPR_ACCU, GPR(l+2), GPR(TREBLE_GPR + 6 + j)); j 471 sound/pci/emu10k1/emuproc.c int i,j; j 479 sound/pci/emu10k1/emuproc.c for (j = 0; j < voices; j++) { j 481 sound/pci/emu10k1/emuproc.c value = snd_ptr_read(emu, 0, i, j); j 483 sound/pci/emu10k1/emuproc.c value = snd_ptr_read(emu, 0x20, i, j); j 38 sound/pci/emu10k1/voice.c int i, j, k, first_voice, last_voice, skip; j 42 sound/pci/emu10k1/voice.c for (i = emu->next_free_voice, j = 0; j < NUM_G ; i += number, j += number) { j 636 sound/pci/hda/hda_auto_parser.c int i, j, idx = 0; j 643 sound/pci/hda/hda_auto_parser.c for (j = 0; j < i; j++) j 644 sound/pci/hda/hda_auto_parser.c if (pfx == check_output_pfx(codec, pins[j])) j 4020 sound/pci/hda/hda_codec.c int i, j; j 4022 sound/pci/hda/hda_codec.c for (i = 0, j = 0; i < ARRAY_SIZE(bits); i++) j 4024 sound/pci/hda/hda_codec.c j += scnprintf(buf + j, buflen - j, " %d", bits[i]); j 4026 sound/pci/hda/hda_codec.c buf[j] = '\0'; /* necessary when j == 0 */ j 359 sound/pci/hda/hda_eld.c int i, j; j 361 sound/pci/hda/hda_eld.c for (i = 0, j = 0; i < ARRAY_SIZE(alsa_rates); i++) j 363 sound/pci/hda/hda_eld.c j += scnprintf(buf + j, buflen - j, " %d", j 366 sound/pci/hda/hda_eld.c buf[j] = '\0'; /* necessary when j == 0 */ j 1356 sound/pci/hda/hda_generic.c int i, j; j 1383 sound/pci/hda/hda_generic.c for (j = 1; j < num_outs; j++) { j 1384 sound/pci/hda/hda_generic.c if (is_reachable_path(codec, dacs[j], pin)) { j 1385 sound/pci/hda/hda_generic.c dacs[0] = dacs[j]; j 1386 sound/pci/hda/hda_generic.c dacs[j] = 0; j 1387 sound/pci/hda/hda_generic.c invalidate_nid_path(codec, path_idx[j]); j 1388 sound/pci/hda/hda_generic.c path_idx[j] = 0; j 1510 sound/pci/hda/hda_generic.c int type, i, j, num_pins, old_pins; j 1533 sound/pci/hda/hda_generic.c for (j = 0; j < spec->multi_ios; j++) { j 1534 sound/pci/hda/hda_generic.c if (nid == spec->multi_io[j].pin) j 1537 sound/pci/hda/hda_generic.c if (j < spec->multi_ios) j 3282 sound/pci/hda/hda_generic.c int j, idx; j 3289 sound/pci/hda/hda_generic.c for (j = i - 1; j >= 0; j--) { j 3290 sound/pci/hda/hda_generic.c if (spec->input_labels[j] && j 3291 sound/pci/hda/hda_generic.c !strcmp(spec->input_labels[j], label)) { j 3292 sound/pci/hda/hda_generic.c idx = spec->input_label_idxs[j] + 1; j 587 sound/pci/hda/patch_hdmi.c int i, j; j 597 sound/pci/hda/patch_hdmi.c for (j = 1; j < 1000; j++) { j 608 sound/pci/hda/patch_hdmi.c i, size, j); j 3748 sound/pci/hda/patch_hdmi.c int i, j; j 3761 sound/pci/hda/patch_hdmi.c for (j = 0 + i % 2; j < 8; j += 2) { j 3762 sound/pci/hda/patch_hdmi.c int chan_idx = 7 - atihdmi_paired_swap_fc_lfe(j); j 3769 sound/pci/hda/patch_hdmi.c int comp_chan_idx = 7 - atihdmi_paired_swap_fc_lfe(j + 1); j 101 sound/pci/ice1712/aureon.c int i, j; j 138 sound/pci/ice1712/aureon.c for (j = 0; j < 3; j++) { j 139 sound/pci/ice1712/aureon.c switch (j) { j 529 sound/pci/ice1712/aureon.c int i, j; j 555 sound/pci/ice1712/aureon.c for (j = 0; j < size; j++) { j 571 sound/pci/ice1712/aureon.c buffer[j] = outdata; j 198 sound/pci/ice1712/quartet.c int i, j, pos; j 201 sound/pci/ice1712/quartet.c for (j = 0; j < 8; ++j) { j 202 sound/pci/ice1712/quartet.c if (value & (1 << (31-(i*8 + j)))) j 113 sound/pci/lola/lola_clock.c int i, j, nitems, nb_verbs, idx, idx_list; j 157 sound/pci/lola/lola_clock.c for (j = 0; j < 4; j++) { j 158 sound/pci/lola/lola_clock.c unsigned char type = items[j] >> 8; j 159 sound/pci/lola/lola_clock.c unsigned int freq = items[j] & 0xff; j 176 sound/pci/lola/lola_clock.c if (items[j] & 0x80) j 51 sound/pci/lola/lola_proc.c int i, j, num_clocks; j 68 sound/pci/lola/lola_proc.c for (j = 0; j < 4; j++) { j 69 sound/pci/lola/lola_proc.c unsigned char type = items[j] >> 8; j 70 sound/pci/lola/lola_proc.c unsigned int freq = items[j] & 0xff; j 71 sound/pci/lola/lola_proc.c if (i + j >= num_clocks) j 83 sound/pci/lola/lola_proc.c i + j, type, name, freq); j 909 sound/pci/lx6464es/lx6464es.c int i, j; j 918 sound/pci/lx6464es/lx6464es.c for (j = 0; j != 8; ++j) j 919 sound/pci/lx6464es/lx6464es.c snd_iprintf(buffer, "%08x ", levels[i*8+j]); j 930 sound/pci/lx6464es/lx6464es.c for (j = 0; j != 8; ++j) j 931 sound/pci/lx6464es/lx6464es.c snd_iprintf(buffer, "%08x ", levels[i*8+j]); j 275 sound/pci/mixart/mixart.c int j; j 285 sound/pci/mixart/mixart.c j = (chip->chip_idx * MIXART_MAX_STREAM_PER_CARD) + (pcm_number * (MIXART_PLAYBACK_STREAMS + MIXART_CAPTURE_STREAMS)) + i; j 286 sound/pci/mixart/mixart.c if(capture) j += MIXART_PLAYBACK_STREAMS; /* in the array capture is behind playback */ j 288 sound/pci/mixart/mixart.c buf->sgroup_req.flow_entry[i] = j; j 291 sound/pci/mixart/mixart.c flowinfo[j].bufferinfo_array_phy_address = (u32)chip->mgr->bufferinfo.addr + (j * sizeof(struct mixart_bufferinfo)); j 292 sound/pci/mixart/mixart.c flowinfo[j].bufferinfo_count = 1; /* 1 will set the miXart to ring-buffer mode ! */ j 295 sound/pci/mixart/mixart.c bufferinfo[j].buffer_address = 0; /* buffer is not yet allocated */ j 296 sound/pci/mixart/mixart.c bufferinfo[j].available_length = 0; /* buffer is not yet allocated */ j 299 sound/pci/mixart/mixart.c bufferinfo[j].buffer_id = (chip->chip_idx << MIXART_NOTIFY_CARD_OFFSET) + (pcm_number << MIXART_NOTIFY_PCM_OFFSET ) + i; j 301 sound/pci/mixart/mixart.c bufferinfo[j].buffer_id |= MIXART_NOTIFY_CAPT_MASK; j 921 sound/pci/mixart/mixart_mixer.c int i, j; j 924 sound/pci/mixart/mixart_mixer.c j = idx; j 926 sound/pci/mixart/mixart_mixer.c j += MIXART_PLAYBACK_STREAMS; j 928 sound/pci/mixart/mixart_mixer.c if (chip->digital_playback_active[j][i] != j 930 sound/pci/mixart/mixart_mixer.c chip->digital_playback_active[j][i] = j 191 sound/pci/oxygen/oxygen_lib.c int i, j; j 202 sound/pci/oxygen/oxygen_lib.c for (j = 0; j < 0x10; ++j) j 203 sound/pci/oxygen/oxygen_lib.c snd_iprintf(buffer, " %02x", oxygen_read8(chip, i + j)); j 212 sound/pci/oxygen/oxygen_lib.c for (j = 0; j < 0x10; j += 2) j 214 sound/pci/oxygen/oxygen_lib.c oxygen_read_ac97(chip, 0, i + j)); j 222 sound/pci/oxygen/oxygen_lib.c for (j = 0; j < 0x10; j += 2) j 224 sound/pci/oxygen/oxygen_lib.c oxygen_read_ac97(chip, 1, i + j)); j 1046 sound/pci/oxygen/oxygen_mixer.c int j, err; j 1077 sound/pci/oxygen/oxygen_mixer.c j = match_string(known_ctl_names, CONTROL_COUNT, ctl->id.name); j 1078 sound/pci/oxygen/oxygen_mixer.c if (j >= 0) { j 1079 sound/pci/oxygen/oxygen_mixer.c chip->controls[j] = ctl; j 694 sound/pci/pcxhr/pcxhr.c int i, j, err; j 710 sound/pci/pcxhr/pcxhr.c for (j = 0; j < chip->nb_streams_capt; j++) { j 711 sound/pci/pcxhr/pcxhr.c if (pcxhr_stream_scheduled_get_pipe(&chip->capture_stream[j], &pipe)) j 714 sound/pci/pcxhr/pcxhr.c for (j = 0; j < chip->nb_streams_play; j++) { j 715 sound/pci/pcxhr/pcxhr.c if (pcxhr_stream_scheduled_get_pipe(&chip->playback_stream[j], &pipe)) { j 747 sound/pci/pcxhr/pcxhr.c for (j = 0; j < chip->nb_streams_capt; j++) { j 748 sound/pci/pcxhr/pcxhr.c stream = &chip->capture_stream[j]; j 754 sound/pci/pcxhr/pcxhr.c for (j = 0; j < chip->nb_streams_play; j++) { j 755 sound/pci/pcxhr/pcxhr.c stream = &chip->playback_stream[j]; j 766 sound/pci/pcxhr/pcxhr.c for (j = 0; j < chip->nb_streams_capt; j++) { j 767 sound/pci/pcxhr/pcxhr.c stream = &chip->capture_stream[j]; j 771 sound/pci/pcxhr/pcxhr.c for (j = 0; j < chip->nb_streams_play; j++) { j 772 sound/pci/pcxhr/pcxhr.c stream = &chip->playback_stream[j]; j 795 sound/pci/pcxhr/pcxhr.c for(j = 0; j < chip->nb_streams_capt; j++) { j 796 sound/pci/pcxhr/pcxhr.c stream = &chip->capture_stream[j]; j 800 sound/pci/pcxhr/pcxhr.c for (j = 0; j < chip->nb_streams_play; j++) { j 801 sound/pci/pcxhr/pcxhr.c stream = &chip->playback_stream[j]; j 1038 sound/pci/pcxhr/pcxhr_core.c int i, j; j 1091 sound/pci/pcxhr/pcxhr_core.c for (j = 0; j < nb_stream; j++) { j 1101 sound/pci/pcxhr/pcxhr_core.c for (j = 0; j < nb_audio; j++) { j 1269 sound/pci/pcxhr/pcxhr_core.c int i, j; j 1316 sound/pci/pcxhr/pcxhr_core.c for (j = 0; j < chip->nb_streams_capt; j++) j 1318 sound/pci/pcxhr/pcxhr_core.c &chip->capture_stream[j], j 1323 sound/pci/pcxhr/pcxhr_core.c for (j = 0; j < chip->nb_streams_play; j++) j 1325 sound/pci/pcxhr/pcxhr_core.c &chip->playback_stream[j], j 231 sound/pci/pcxhr/pcxhr_hwdep.c int err, i, j; j 243 sound/pci/pcxhr/pcxhr_hwdep.c for(j = 0; j < chip->nb_streams_play; j++) j 244 sound/pci/pcxhr/pcxhr_hwdep.c chip->playback_stream[j].pipe = pipe; j 246 sound/pci/pcxhr/pcxhr_hwdep.c for (j = 0; j < chip->nb_streams_capt; j++) { j 247 sound/pci/pcxhr/pcxhr_hwdep.c pipe = &chip->capture_pipe[j]; j 248 sound/pci/pcxhr/pcxhr_hwdep.c err = pcxhr_dsp_allocate_pipe(mgr, pipe, 1, i*2 + j); j 251 sound/pci/pcxhr/pcxhr_hwdep.c chip->capture_stream[j].pipe = pipe; j 259 sound/pci/pcxhr/pcxhr_hwdep.c int i, j; j 269 sound/pci/pcxhr/pcxhr_hwdep.c for (j = 0; j < chip->nb_streams_capt; j++) j 270 sound/pci/pcxhr/pcxhr_hwdep.c capture_mask |= 1 << chip->capture_pipe[j].first_audio; j 432 sound/pci/pcxhr/pcxhr_mixer.c int i, j; j 435 sound/pci/pcxhr/pcxhr_mixer.c j = idx; j 437 sound/pci/pcxhr/pcxhr_mixer.c if (chip->digital_playback_active[j][i] != j 439 sound/pci/pcxhr/pcxhr_mixer.c chip->digital_playback_active[j][i] = j 1045 sound/pci/pcxhr/pcxhr_mixer.c int j; j 1047 sound/pci/pcxhr/pcxhr_mixer.c for (j = 0; j < PCXHR_PLAYBACK_STREAMS; j++) { j 1048 sound/pci/pcxhr/pcxhr_mixer.c chip->digital_playback_active[j][i] = 1; j 1049 sound/pci/pcxhr/pcxhr_mixer.c chip->digital_playback_volume[j][i] = j 826 sound/pci/riptide/riptide.c int i, j; j 863 sound/pci/riptide/riptide.c for (j = 0, time = 0; time < CMDIF_TIMEOUT; j++, time += 2) { j 864 sound/pci/riptide/riptide.c cmdport = &(hwport->port[j % 2]); j 945 sound/pci/riptide/riptide.c int i, j = 0; j 950 sound/pci/riptide/riptide.c o[j++] = sink[i]; j 951 sound/pci/riptide/riptide.c o[j++] = i; j 954 sound/pci/riptide/riptide.c return j; j 1082 sound/pci/riptide/riptide.c int i, j; j 1096 sound/pci/riptide/riptide.c for (j = 0; j < data->pages; j++) { j 1097 sound/pci/riptide/riptide.c c = &data->sgdbuf[j]; j 1125 sound/pci/riptide/riptide.c j = 0; j 1127 sound/pci/riptide/riptide.c j++; j 1132 sound/pci/riptide/riptide.c if (j > 0) j 1378 sound/pci/riptide/riptide.c int i, j; j 1407 sound/pci/riptide/riptide.c j = 0; j 1412 sound/pci/riptide/riptide.c } while (i != rptr.retlongs[1] && j++ < MAX_WRITE_RETRY); j 1413 sound/pci/riptide/riptide.c if (j > MAX_WRITE_RETRY) j 1476 sound/pci/riptide/riptide.c unsigned int i, j, size, pages, f, pt, period; j 1491 sound/pci/riptide/riptide.c j = 0; j 1501 sound/pci/riptide/riptide.c ofs = j << PAGE_SHIFT; j 1506 sound/pci/riptide/riptide.c j++; j 4596 sound/pci/rme9652/hdsp.c int i, j, channels, ofs; j 4601 sound/pci/rme9652/hdsp.c for (i = 0, j = 0; i < 26; ++i) { j 4604 sound/pci/rme9652/hdsp.c ofs = HDSP_9652_peakBase - j * 4; j 4613 sound/pci/rme9652/hdsp.c ofs = HDSP_9652_rmsBase + j * 8; j 4625 sound/pci/rme9652/hdsp.c j++; j 4632 sound/pci/rme9652/hdsp.c int i, j; j 4639 sound/pci/rme9652/hdsp.c for (i = 0, j = 0; i < 16; ++i, ++j) { j 4640 sound/pci/rme9652/hdsp.c if (copy_u32_le(&peak_rms->input_peaks[i], &m->input_peak[j])) j 4642 sound/pci/rme9652/hdsp.c if (copy_u32_le(&peak_rms->playback_peaks[i], &m->playback_peak[j])) j 4644 sound/pci/rme9652/hdsp.c if (copy_u32_le(&peak_rms->output_peaks[i], &m->output_peak[j])) j 4646 sound/pci/rme9652/hdsp.c if (copy_u64_le(&peak_rms->input_rms[i], &m->input_rms_low[j], j 4647 sound/pci/rme9652/hdsp.c &m->input_rms_high[j])) j 4649 sound/pci/rme9652/hdsp.c if (copy_u64_le(&peak_rms->playback_rms[i], &m->playback_rms_low[j], j 4650 sound/pci/rme9652/hdsp.c &m->playback_rms_high[j])) j 4652 sound/pci/rme9652/hdsp.c if (copy_u64_le(&peak_rms->output_rms[i], &m->output_rms_low[j], j 4653 sound/pci/rme9652/hdsp.c &m->output_rms_high[j])) j 1784 sound/pci/rme9652/hdspm.c int i, j; j 1795 sound/pci/rme9652/hdspm.c for (j = 0; j < HDSPM_MIXER_CHANNELS; j++) { j 1796 sound/pci/rme9652/hdspm.c hdspm_write_in_gain(hdspm, i, j, gain); j 1797 sound/pci/rme9652/hdspm.c hdspm_write_pb_gain(hdspm, i, j, gain); j 5238 sound/pci/rme9652/hdspm.c int j,i; j 5240 sound/pci/rme9652/hdspm.c for (i = 0; i < 256 /* 1024*64 */; i += j) { j 5242 sound/pci/rme9652/hdspm.c for (j = 0; j < 16; j += 4) j 5243 sound/pci/rme9652/hdspm.c snd_iprintf(buffer, "%08X ", hdspm_read(hdspm, i + j)); j 95 sound/ppc/beep.c int i, j, f; j 140 sound/ppc/beep.c j = 0; j 143 sound/ppc/beep.c p[0] = p[1] = beep_wform[j >> 8] * beep->volume; j 144 sound/ppc/beep.c j = (j + f) & 0xffff; j 623 sound/ppc/tumbler.c int i, j, vol; j 635 sound/ppc/tumbler.c for (j = 0; j < 3; j++) j 636 sound/ppc/tumbler.c block[i * 3 + j] = (vol >> ((2 - j) * 8)) & 0xff; j 18 sound/soc/codecs/adau-utils.c unsigned int r, n, m, i, j; j 32 sound/soc/codecs/adau-utils.c j = gcd(i, freq_in); j 33 sound/soc/codecs/adau-utils.c n = i / j; j 34 sound/soc/codecs/adau-utils.c m = freq_in / j; j 1701 sound/soc/codecs/cs43130.c int i, j = 0, tmp; j 1707 sound/soc/codecs/cs43130.c tmp = scnprintf(buf + j, PAGE_SIZE - j, "%u\n", j 1712 sound/soc/codecs/cs43130.c j += tmp; j 1715 sound/soc/codecs/cs43130.c return j; j 2165 sound/soc/codecs/cs43130.c int i, j; j 2176 sound/soc/codecs/cs43130.c for (j = 0; j < 8; j++) j 2177 sound/soc/codecs/cs43130.c irq_occurrence += (stickies[i] >> j) & 1; j 42 sound/soc/codecs/es7134.c int i, j; j 50 sound/soc/codecs/es7134.c for (j = 0; j < mode->mclk_fs_num; j++) { j 51 sound/soc/codecs/es7134.c if (mode->mclk_fs[j] == mfs) j 53 sound/soc/codecs/es7241.c int j; j 58 sound/soc/codecs/es7241.c for (j = 0; j < mode->slv_mfs_num; j++) { j 59 sound/soc/codecs/es7241.c if (mode->slv_mfs[j] == mfs) j 1038 sound/soc/codecs/hdac_hdmi.c int i, j; j 1043 sound/soc/codecs/hdac_hdmi.c for (j = 0; j < hdmi->num_cvt; j++) { j 1046 sound/soc/codecs/hdac_hdmi.c se->texts[j + 1], j 1047 sound/soc/codecs/hdac_hdmi.c widgets[j].name, NULL); j 1082 sound/soc/codecs/hdac_hdmi.c int ret, i = 0, num_routes = 0, j; j 1108 sound/soc/codecs/hdac_hdmi.c for (j = 0; j < pin->num_ports; j++) { j 1110 sound/soc/codecs/hdac_hdmi.c pin->nid, pin->ports[j].id); j 1112 sound/soc/codecs/hdac_hdmi.c snd_soc_dapm_output, &pin->ports[j], j 1119 sound/soc/codecs/hdac_hdmi.c pin->ports[j].output_pin = widgets[i].name; j 1126 sound/soc/codecs/hdac_hdmi.c for (j = 0; j < pin->num_ports; j++) { j 1128 sound/soc/codecs/hdac_hdmi.c pin->nid, pin->ports[j].id); j 1130 sound/soc/codecs/hdac_hdmi.c &pin->ports[j], &widgets[i], j 1152 sound/soc/codecs/hdac_hdmi.c for (j = 0; j < pin->num_ports; j++) { j 1679 sound/soc/codecs/hdac_hdmi.c int i = 0, j; j 1690 sound/soc/codecs/hdac_hdmi.c for (j = 0; j < pin->num_ports; j++) { j 1692 sound/soc/codecs/hdac_hdmi.c pin->nid, pin->ports[j].id); j 1724 sound/soc/codecs/hdac_hdmi.c int i = 0, j, ret; j 1739 sound/soc/codecs/hdac_hdmi.c for (j = 0; j < pin->num_ports; j++) { j 1741 sound/soc/codecs/hdac_hdmi.c pin->nid, pin->ports[j].id); j 1749 sound/soc/codecs/hdac_hdmi.c pin->ports[j].jack_pin = widgets[i].name; j 1750 sound/soc/codecs/hdac_hdmi.c pin->ports[j].dapm = dapm; j 1753 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_fill_route(&route[i], pin->ports[j].jack_pin, j 1754 sound/soc/codecs/hdac_hdmi.c NULL, pin->ports[j].output_pin, NULL); j 1781 sound/soc/codecs/hdac_hdmi.c for (j = 0; j < pin->num_ports; j++) j 1782 sound/soc/codecs/hdac_hdmi.c snd_soc_dapm_disable_pin(pin->ports[j].dapm, j 1783 sound/soc/codecs/hdac_hdmi.c pin->ports[j].jack_pin); j 1560 sound/soc/codecs/max98088.c int i, j; j 1584 sound/soc/codecs/max98088.c for (j = 0; j < max98088->eq_textcnt; j++) { j 1585 sound/soc/codecs/max98088.c if (strcmp(cfg[i].name, max98088->eq_texts[j]) == 0) j 1589 sound/soc/codecs/max98088.c if (j != max98088->eq_textcnt) j 1575 sound/soc/codecs/max98095.c int i, j; j 1599 sound/soc/codecs/max98095.c for (j = 0; j < max98095->eq_textcnt; j++) { j 1600 sound/soc/codecs/max98095.c if (strcmp(cfg[i].name, max98095->eq_texts[j]) == 0) j 1604 sound/soc/codecs/max98095.c if (j != max98095->eq_textcnt) j 1726 sound/soc/codecs/max98095.c int i, j; j 1751 sound/soc/codecs/max98095.c for (j = 0; j < max98095->bq_textcnt; j++) { j 1752 sound/soc/codecs/max98095.c if (strcmp(cfg[i].name, max98095->bq_texts[j]) == 0) j 1756 sound/soc/codecs/max98095.c if (j != max98095->bq_textcnt) j 188 sound/soc/codecs/tas2552.c u8 j; j 196 sound/soc/codecs/tas2552.c j = t / pll_clkin; j 220 sound/soc/codecs/tas2552.c TAS2552_PLL_J_MASK, j); j 243 sound/soc/codecs/tlv320aic23.c int i, j; j 262 sound/soc/codecs/tlv320aic23.c for (j = 0; j < ARRAY_SIZE(sr_adc_mult_table); j 263 sound/soc/codecs/tlv320aic23.c j++, mask >>= 1) { j 269 sound/soc/codecs/tlv320aic23.c adc = base * sr_adc_mult_table[j]; j 270 sound/soc/codecs/tlv320aic23.c dac = base * sr_dac_mult_table[j]; j 276 sound/soc/codecs/tlv320aic23.c best_j = j; j 285 sound/soc/codecs/tlv320aic23.c best_j = j; j 35 sound/soc/codecs/tlv320aic32x4-clk.c u8 j; j 93 sound/soc/codecs/tlv320aic32x4-clk.c settings->j = val; j 125 sound/soc/codecs/tlv320aic32x4-clk.c ret = regmap_write(pll->regmap, AIC32X4_PLLJ, settings->j); j 149 sound/soc/codecs/tlv320aic32x4-clk.c ((settings->j * 10000) + settings->d); j 187 sound/soc/codecs/tlv320aic32x4-clk.c settings->j = (u32) multiplier / 10000; j 1050 sound/soc/codecs/tlv320aic3x.c u8 data, j, r, p, pll_q, pll_p = 1, pll_r = 1, pll_j = 1; j 1130 sound/soc/codecs/tlv320aic3x.c for (j = 4; j <= 55; j++) { j 1135 sound/soc/codecs/tlv320aic3x.c int tmp_clk = (1000 * j * r) / p; j 1142 sound/soc/codecs/tlv320aic3x.c pll_j = j; pll_d = 0; j 1155 sound/soc/codecs/tlv320aic3x.c j = codec_clk * p / 1000; j 1157 sound/soc/codecs/tlv320aic3x.c if (j < 4 || j > 11) j 1161 sound/soc/codecs/tlv320aic3x.c d = ((2048 * p * fsref) - j * aic3x->sysclk) j 1164 sound/soc/codecs/tlv320aic3x.c clk = (10000 * j + d) / (10 * p); j 1169 sound/soc/codecs/tlv320aic3x.c pll_j = j; pll_d = d; pll_r = 1; pll_p = p; j 130 sound/soc/codecs/uda1334.c int i, j = 0; j 153 sound/soc/codecs/uda1334.c uda1334->rate_constraint_list[j++] = val; j 1616 sound/soc/codecs/wcd9335.c int val, j; j 1619 sound/soc/codecs/wcd9335.c for (j = 0; j < WCD9335_NUM_INTERPOLATORS; j++) { j 1621 sound/soc/codecs/wcd9335.c WCD9335_CDC_RX_INP_MUX_RX_INT_CFG1(j)) & j 1626 sound/soc/codecs/wcd9335.c WCD9335_CDC_RX_PATH_MIX_CTL(j), j 1643 sound/soc/codecs/wcd9335.c int inp, j; j 1652 sound/soc/codecs/wcd9335.c for (j = 0; j < WCD9335_NUM_INTERPOLATORS; j++) { j 1654 sound/soc/codecs/wcd9335.c WCD9335_CDC_RX_INP_MUX_RX_INT_CFG0(j)); j 1656 sound/soc/codecs/wcd9335.c WCD9335_CDC_RX_INP_MUX_RX_INT_CFG1(j)); j 1668 sound/soc/codecs/wcd9335.c if ((j == 0) && (rate == 44100)) j 1673 sound/soc/codecs/wcd9335.c WCD9335_CDC_RX_PATH_CTL(j), j 3969 sound/soc/codecs/wcd9335.c int i, j, port_id; j 3975 sound/soc/codecs/wcd9335.c for (i = WCD9335_SLIM_PGD_PORT_INT_STATUS_RX_0, j = 0; j 3976 sound/soc/codecs/wcd9335.c i <= WCD9335_SLIM_PGD_PORT_INT_STATUS_TX_1; i++, j++) { j 3978 sound/soc/codecs/wcd9335.c status |= ((u32)val << (8 * j)); j 3981 sound/soc/codecs/wcd9335.c for_each_set_bit(j, &status, 32) { j 3982 sound/soc/codecs/wcd9335.c tx = (j >= 16 ? true : false); j 3983 sound/soc/codecs/wcd9335.c port_id = (tx ? j - 16 : j); j 3985 sound/soc/codecs/wcd9335.c WCD9335_SLIM_PGD_PORT_INT_RX_SOURCE0 + j, &val); j 4031 sound/soc/codecs/wcd9335.c WCD9335_SLIM_PGD_PORT_INT_CLR_RX_0 + (j / 8), j 4032 sound/soc/codecs/wcd9335.c BIT(j % 8)); j 538 sound/soc/codecs/wm2000.c int i, j; j 563 sound/soc/codecs/wm2000.c for (j = 0; j < ARRAY_SIZE(anc_transitions[j].step); j++) { j 564 sound/soc/codecs/wm2000.c if (!anc_transitions[i].step[j]) j 566 sound/soc/codecs/wm2000.c ret = anc_transitions[i].step[j](i2c, j 98 sound/soc/codecs/wm8524.c int i, j = 0; j 120 sound/soc/codecs/wm8524.c wm8524->rate_constraint_list[j++] = val; j 1975 sound/soc/codecs/wm8904.c int ret, i, j; j 1985 sound/soc/codecs/wm8904.c for (j = 0; j < wm8904->num_retune_mobile_texts; j++) { j 1987 sound/soc/codecs/wm8904.c wm8904->retune_mobile_texts[j]) == 0) j 1991 sound/soc/codecs/wm8904.c if (j != wm8904->num_retune_mobile_texts) j 631 sound/soc/codecs/wm8960.c int i, j, k; j 645 sound/soc/codecs/wm8960.c for (j = 0; j < ARRAY_SIZE(dac_divs); ++j) { j 646 sound/soc/codecs/wm8960.c if (sysclk != dac_divs[j] * lrclk) j 652 sound/soc/codecs/wm8960.c *dac_idx = j; j 658 sound/soc/codecs/wm8960.c *dac_idx = j; j 666 sound/soc/codecs/wm8960.c if (j != ARRAY_SIZE(dac_divs)) j 701 sound/soc/codecs/wm8960.c int i, j, k; j 713 sound/soc/codecs/wm8960.c for (j = 0; j < ARRAY_SIZE(dac_divs); ++j) { j 714 sound/soc/codecs/wm8960.c sysclk = lrclk * dac_divs[j]; j 724 sound/soc/codecs/wm8960.c *dac_idx = j; j 730 sound/soc/codecs/wm8960.c *dac_idx = j; j 746 sound/soc/codecs/wm8960.c int i, j, k; j 779 sound/soc/codecs/wm8960.c ret = wm8960_configure_sysclk(wm8960, freq_out, &i, &j, &k); j 788 sound/soc/codecs/wm8960.c freq_out = wm8960_configure_pll(component, freq_in, &i, &j, &k); j 800 sound/soc/codecs/wm8960.c snd_soc_component_update_bits(component, WM8960_CLOCK1, 0x7 << 3, j << 3); j 801 sound/soc/codecs/wm8960.c snd_soc_component_update_bits(component, WM8960_CLOCK1, 0x7 << 6, j << 6); j 3220 sound/soc/codecs/wm8994.c int ret, i, j; j 3230 sound/soc/codecs/wm8994.c for (j = 0; j < wm8994->num_retune_mobile_texts; j++) { j 3232 sound/soc/codecs/wm8994.c wm8994->retune_mobile_texts[j]) == 0) j 3236 sound/soc/codecs/wm8994.c if (j != wm8994->num_retune_mobile_texts) j 2553 sound/soc/codecs/wm8996.c int ret, i, j; j 2563 sound/soc/codecs/wm8996.c for (j = 0; j < wm8996->num_retune_mobile_texts; j++) { j 2565 sound/soc/codecs/wm8996.c wm8996->retune_mobile_texts[j]) == 0) j 2569 sound/soc/codecs/wm8996.c if (j != wm8996->num_retune_mobile_texts) j 3455 sound/soc/codecs/wm_adsp.c int i, j; j 3487 sound/soc/codecs/wm_adsp.c for (j = 0; j < desc->num_sample_rates; ++j) j 3488 sound/soc/codecs/wm_adsp.c if (desc->sample_rates[j] == params->codec.sample_rate) j 3618 sound/soc/codecs/wm_adsp.c int i, j; j 3622 sound/soc/codecs/wm_adsp.c for (j = 0; j < data_word_size; j++) j 142 sound/soc/fsl/fsl_esai.c u32 psr, pm = 999, maxfp, prod, sub, savesub, i, j; j 174 sound/soc/fsl/fsl_esai.c for (j = 1; j <= maxfp; j++) { j 176 sound/soc/fsl/fsl_esai.c prod = (psr ? 1 : 8) * i * j; j 192 sound/soc/fsl/fsl_esai.c fp = j; j 289 sound/soc/intel/baytrail/sst-baytrail-dsp.c int ret = -ENODEV, i, j, region_count; j 327 sound/soc/intel/baytrail/sst-baytrail-dsp.c for (j = 0; j < region[i].blocks; j++) { j 329 sound/soc/intel/baytrail/sst-baytrail-dsp.c region[i].type, NULL, j, sst); j 179 sound/soc/intel/boards/kbl_da7219_max98927.c int ret = 0, j; j 181 sound/soc/intel/boards/kbl_da7219_max98927.c for (j = 0; j < runtime->num_codecs; j++) { j 182 sound/soc/intel/boards/kbl_da7219_max98927.c struct snd_soc_dai *codec_dai = runtime->codec_dais[j]; j 224 sound/soc/intel/boards/kbl_da7219_max98927.c int j, ret; j 226 sound/soc/intel/boards/kbl_da7219_max98927.c for (j = 0; j < rtd->num_codecs; j++) { j 227 sound/soc/intel/boards/kbl_da7219_max98927.c struct snd_soc_dai *codec_dai = rtd->codec_dais[j]; j 473 sound/soc/intel/boards/kbl_rt5663_max98927.c int ret = 0, j; j 475 sound/soc/intel/boards/kbl_rt5663_max98927.c for_each_rtd_codec_dai(rtd, j, codec_dai) { j 335 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c int ret = 0, j; j 337 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c for_each_rtd_codec_dai(rtd, j, codec_dai) { j 615 sound/soc/intel/haswell/sst-haswell-dsp.c int ret = -ENODEV, i, j, region_count; j 666 sound/soc/intel/haswell/sst-haswell-dsp.c for (j = 0; j < region[i].blocks; j++) { j 668 sound/soc/intel/haswell/sst-haswell-dsp.c region[i].type, &sst_hsw_ops, j, sst); j 93 sound/soc/intel/skylake/skl-nhlt.c u8 j; j 101 sound/soc/intel/skylake/skl-nhlt.c for (j = 0; j < nhlt->endpoint_count; j++) { j 207 sound/soc/intel/skylake/skl-nhlt.c int i, j; j 235 sound/soc/intel/skylake/skl-nhlt.c for (j = i; j < fmt->fmt_count; j++) { j 236 sound/soc/intel/skylake/skl-nhlt.c fmt_cfg = &fmt->fmt_config[j]; j 247 sound/soc/intel/skylake/skl-nhlt.c for (j = 0; (j < SKL_MAX_CLK_RATES) && j 248 sound/soc/intel/skylake/skl-nhlt.c (sclk[id].rate_cfg[j].rate != 0); j++) { j 249 sound/soc/intel/skylake/skl-nhlt.c if (sclk[id].rate_cfg[j].rate == rate) { j 138 sound/soc/intel/skylake/skl-sst-utils.c int j, i, word1_mask, word2_mask = 0, pvt_id; j 140 sound/soc/intel/skylake/skl-sst-utils.c for (j = 0; j < MAX_INSTANCE_BUFF; j++) { j 144 sound/soc/intel/skylake/skl-sst-utils.c pvt_id = skl_getid_32(module, &module->pvt_id[j], j 293 sound/soc/mediatek/common/mtk-btcvsd.c unsigned int i, j; j 305 sound/soc/mediatek/common/mtk-btcvsd.c for (j = 0; j < blk_num; j++) { j 45 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c int ret = 0, j; j 52 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c for (j = 0; j < rtd->num_codecs; j++) { j 53 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c struct snd_soc_dai *codec_dai = rtd->codec_dais[j]; j 83 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c int ret = 0, j; j 85 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c for (j = 0; j < rtd->num_codecs; j++) { j 86 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c struct snd_soc_dai *codec_dai = rtd->codec_dais[j]; j 115 sound/soc/meson/axg-card.c int i, j; j 121 sound/soc/meson/axg-card.c for_each_link_codecs(link, j, codec) j 358 sound/soc/meson/axg-pdm.c int i, j; j 374 sound/soc/meson/axg-pdm.c for (j = 0; j < lpf[i].tap_num; j++) j 375 sound/soc/meson/axg-pdm.c regmap_write(priv->map, PDM_COEFF_DATA, lpf[i].tap[j]); j 300 sound/soc/meson/axg-spdifin.c int i, j; j 311 sound/soc/meson/axg-spdifin.c for (j = 0; j < 4; j++) { j 312 sound/soc/meson/axg-spdifin.c unsigned int offset = i * 4 + j; j 315 sound/soc/meson/axg-spdifin.c (val >> (j * 8)) & 0xff; j 35 sound/soc/meson/axg-tdm-formatter.c int i, j; j 45 sound/soc/meson/axg-tdm-formatter.c for (j = find_first_bit(&mask, 32); j 46 sound/soc/meson/axg-tdm-formatter.c (j < 32) && ch; j 47 sound/soc/meson/axg-tdm-formatter.c j = find_next_bit(&mask, 32, j + 1)) { j 48 sound/soc/meson/axg-tdm-formatter.c val |= 1 << j; j 311 sound/soc/qcom/qdsp6/q6routing.c int j, topology, num_copps = 0; j 349 sound/soc/qcom/qdsp6/q6routing.c for_each_set_bit(j, &session->copp_map, MAX_COPPS_PER_PORT) { j 351 sound/soc/qcom/qdsp6/q6routing.c payload.copp_idx[num_copps] = j; j 44 sound/soc/qcom/sdm845.c int ret = 0, j; j 92 sound/soc/qcom/sdm845.c for (j = 0; j < rtd->num_codecs; j++) { j 93 sound/soc/qcom/sdm845.c struct snd_soc_dai *codec_dai = rtd->codec_dais[j]; j 231 sound/soc/qcom/sdm845.c int j; j 271 sound/soc/qcom/sdm845.c for (j = 0; j < rtd->num_codecs; j++) { j 272 sound/soc/qcom/sdm845.c codec_dai = rtd->codec_dais[j]; j 74 sound/soc/samsung/s3c24xx_uda134x.c int i, j; j 80 sound/soc/samsung/s3c24xx_uda134x.c for (j = 1; j < 33; j++) j 81 sound/soc/samsung/s3c24xx_uda134x.c rates[i*33 + j] = clk_get_rate(priv->pclk) / j 82 sound/soc/samsung/s3c24xx_uda134x.c (j * fs); j 1069 sound/soc/sh/rcar/core.c int i, j; j 1086 sound/soc/sh/rcar/core.c j = 0; j 1092 sound/soc/sh/rcar/core.c j++; j 120 sound/soc/sh/rcar/ctu.c int i, j; j 144 sound/soc/sh/rcar/ctu.c for (j = 0; j < RSND_MAX_CHANNELS; j++) j 145 sound/soc/sh/rcar/ctu.c rsnd_mod_write(mod, CTU_SVxxR(i, j), rsnd_kctrl_valm(ctu->sv[i], j)); j 511 sound/soc/sh/rcar/dma.c #define RDMA_SSIU_I_N(addr, i, j) (addr ##_reg - 0x00441000 + (0x1000 * (i)) + (((j) / 4) * 0xA000) + (((j) % 4) * 0x400) - (0x4000 * ((i) / 9) * ((j) / 4))) j 512 sound/soc/sh/rcar/dma.c #define RDMA_SSIU_O_N(addr, i, j) RDMA_SSIU_I_N(addr, i, j) j 514 sound/soc/sh/rcar/dma.c #define RDMA_SSIU_I_P(addr, i, j) (addr ##_reg - 0x00141000 + (0x1000 * (i)) + (((j) / 4) * 0xA000) + (((j) % 4) * 0x400) - (0x4000 * ((i) / 9) * ((j) / 4))) j 515 sound/soc/sh/rcar/dma.c #define RDMA_SSIU_O_P(addr, i, j) RDMA_SSIU_I_P(addr, i, j) j 230 sound/soc/sh/rcar/rsnd.h #define CTU_SVxxR(i, j) (CTU_SV00R + (i * 8) + (j)) j 236 sound/soc/sh/rcar/ssi.c int j, ret; j 240 sound/soc/sh/rcar/ssi.c for (j = 0; j < ARRAY_SIZE(ssi_clk_mul_table); j++) { j 248 sound/soc/sh/rcar/ssi.c if (j == 0) j 251 sound/soc/sh/rcar/ssi.c main_rate = width * param1 * param2 * ssi_clk_mul_table[j]; j 258 sound/soc/sh/rcar/ssi.c *idx = j; j 445 sound/soc/sh/rcar/ssiu.c int j; j 452 sound/soc/sh/rcar/ssiu.c for (j = 0; j < nr; j++) { j 453 sound/soc/sh/rcar/ssiu.c if (list[j] > i) j 455 sound/soc/sh/rcar/ssiu.c ssiu->id = j; j 1712 sound/soc/soc-core.c int i, j = 0; j 1717 sound/soc/soc-core.c name[j++] = name[i]; j 1719 sound/soc/soc-core.c name[j++] = '_'; j 1722 sound/soc/soc-core.c name[j] = '\0'; j 2387 sound/soc/soc-core.c int j; j 2389 sound/soc/soc-core.c for_each_rtd_codec_dai(rtd, j, codec_dai) { j 2990 sound/soc/soc-core.c int i, j, num_widgets, ret; j 3029 sound/soc/soc-core.c for (j = 0; j < ARRAY_SIZE(simple_widgets); j++) { j 3030 sound/soc/soc-core.c if (!strncmp(template, simple_widgets[j].name, j 3031 sound/soc/soc-core.c strlen(simple_widgets[j].name))) { j 3032 sound/soc/soc-core.c widgets[i] = simple_widgets[j]; j 3037 sound/soc/soc-core.c if (j >= ARRAY_SIZE(simple_widgets)) { j 1201 sound/soc/soc-topology.c int count, i, j; j 1241 sound/soc/soc-topology.c for (j = 0; j < i; j++) j 1242 sound/soc/soc-topology.c kfree(routes[j]); j 326 sound/soc/sof/topology.c int j; j 334 sound/soc/sof/topology.c for (j = 0; j < size ; j++) j 335 sound/soc/sof/topology.c scontrol->volume_table[j] = vol_compute_gain(j, tlv); j 850 sound/soc/sof/topology.c int i, j; j 857 sound/soc/sof/topology.c for (j = 0; j < count; j++) { j 859 sound/soc/sof/topology.c if (tokens[j].type != SND_SOC_TPLG_TUPLE_TYPE_UUID) j 863 sound/soc/sof/topology.c if (tokens[j].token != le32_to_cpu(elem->token)) j 867 sound/soc/sof/topology.c tokens[j].get_token(elem, object, tokens[j].offset, j 868 sound/soc/sof/topology.c tokens[j].size); j 880 sound/soc/sof/topology.c int i, j; j 887 sound/soc/sof/topology.c for (j = 0; j < count; j++) { j 889 sound/soc/sof/topology.c if (tokens[j].type != SND_SOC_TPLG_TUPLE_TYPE_STRING) j 893 sound/soc/sof/topology.c if (tokens[j].token != le32_to_cpu(elem->token)) j 897 sound/soc/sof/topology.c tokens[j].get_token(elem, object, tokens[j].offset, j 898 sound/soc/sof/topology.c tokens[j].size); j 912 sound/soc/sof/topology.c int i, j; j 921 sound/soc/sof/topology.c for (j = 0; j < count; j++) { j 923 sound/soc/sof/topology.c if (!(tokens[j].type == SND_SOC_TPLG_TUPLE_TYPE_WORD || j 924 sound/soc/sof/topology.c tokens[j].type == SND_SOC_TPLG_TUPLE_TYPE_SHORT || j 925 sound/soc/sof/topology.c tokens[j].type == SND_SOC_TPLG_TUPLE_TYPE_BYTE || j 926 sound/soc/sof/topology.c tokens[j].type == SND_SOC_TPLG_TUPLE_TYPE_BOOL)) j 930 sound/soc/sof/topology.c if (tokens[j].token != le32_to_cpu(elem->token)) j 938 sound/soc/sof/topology.c switch (tokens[j].token) { j 968 sound/soc/sof/topology.c tokens[j].get_token(elem, object, j 969 sound/soc/sof/topology.c offset + tokens[j].offset, j 970 sound/soc/sof/topology.c tokens[j].size); j 2556 sound/soc/sof/topology.c int ret, j; j 2625 sound/soc/sof/topology.c for (j = 0; j < ipc_config->dmic.num_pdm_active; j++) { j 2627 sound/soc/sof/topology.c ipc_config->dmic.pdm[j].id, j 2628 sound/soc/sof/topology.c ipc_config->dmic.pdm[j].enable_mic_a, j 2629 sound/soc/sof/topology.c ipc_config->dmic.pdm[j].enable_mic_b); j 2631 sound/soc/sof/topology.c ipc_config->dmic.pdm[j].id, j 2632 sound/soc/sof/topology.c ipc_config->dmic.pdm[j].polarity_mic_a, j 2633 sound/soc/sof/topology.c ipc_config->dmic.pdm[j].polarity_mic_b); j 2635 sound/soc/sof/topology.c ipc_config->dmic.pdm[j].id, j 2636 sound/soc/sof/topology.c ipc_config->dmic.pdm[j].clk_edge, j 2637 sound/soc/sof/topology.c ipc_config->dmic.pdm[j].skew); j 149 sound/soc/sprd/sprd-pcm-compress.c int ret, j; j 215 sound/soc/sprd/sprd-pcm-compress.c for (j = 0; j < sg_num; j++, sgt++) { j 208 sound/soc/sprd/sprd-pcm-dma.c int ret, i, j, sg_num; j 262 sound/soc/sprd/sprd-pcm-dma.c for (j = 0; j < sg_num; j++, sgt++) { j 267 sound/soc/sprd/sprd-pcm-dma.c i * dma_private->dma_addr_offset + sg_len * j; j 215 sound/soc/sti/sti_uniperif.c int i, j, k; j 226 sound/soc/sti/sti_uniperif.c for (i = 0, j = 0, k = 0; (i < slots_num) && (k < WORD_MAX); i++) { j 228 sound/soc/sti/sti_uniperif.c word16_pos[j] = i * slot_width; j 231 sound/soc/sti/sti_uniperif.c word16_pos[j + 1] = word16_pos[j] + 2; j 232 sound/soc/sti/sti_uniperif.c j++; j 234 sound/soc/sti/sti_uniperif.c j++; j 236 sound/soc/sti/sti_uniperif.c if (j > 3) { j 241 sound/soc/sti/sti_uniperif.c j = 0; j 605 sound/soc/uniphier/aio-cpu.c int ret, i, j; j 655 sound/soc/uniphier/aio-cpu.c for (j = 0; j < ARRAY_SIZE(aio->sub); j++) { j 656 sound/soc/uniphier/aio-cpu.c struct uniphier_aio_sub *sub = &aio->sub[j]; j 72 sound/soc/uniphier/aio-dma.c int i, j; j 77 sound/soc/uniphier/aio-dma.c for (j = 0; j < ARRAY_SIZE(aio->sub); j++) { j 78 sound/soc/uniphier/aio-dma.c struct uniphier_aio_sub *sub = &aio->sub[j]; j 82 sound/usb/line6/playback.c int i, j; j 87 sound/usb/line6/playback.c for (j = 0; j < bytes_per_frame / 2; ++j) j 88 sound/usb/line6/playback.c po[j] = pi[j]; j 90 sound/usb/line6/playback.c for (; j < bytes_per_frame; ++j) j 91 sound/usb/line6/playback.c po[j] = 0; j 359 sound/usb/midi.c unsigned int i, j; j 370 sound/usb/midi.c for (j = 0; j < INPUT_URBS; ++j) { j 371 sound/usb/midi.c if (atomic_read(&in->urbs[j]->use_count)) j 373 sound/usb/midi.c in->urbs[j]->dev = umidi->dev; j 374 sound/usb/midi.c snd_usbmidi_submit_urb(in->urbs[j], GFP_ATOMIC); j 1143 sound/usb/midi.c int i, j; j 1147 sound/usb/midi.c for (j = 0; j < 0x10; ++j) j 1148 sound/usb/midi.c if (umidi->endpoints[i].out->ports[j].substream == substream) { j 1149 sound/usb/midi.c port = &umidi->endpoints[i].out->ports[j]; j 1488 sound/usb/midi.c unsigned int i, j; j 1507 sound/usb/midi.c for (j = 0; j < OUTPUT_URBS; ++j) j 1508 sound/usb/midi.c usb_kill_urb(ep->out->urbs[j].urb); j 1518 sound/usb/midi.c for (j = 0; j < INPUT_URBS; ++j) j 1519 sound/usb/midi.c usb_kill_urb(ep->in->urbs[j]); j 1788 sound/usb/midi.c int i, j, err; j 1807 sound/usb/midi.c for (j = 0; j < 0x10; ++j) { j 1808 sound/usb/midi.c if (endpoints[i].out_cables & (1 << j)) { j 1812 sound/usb/midi.c &umidi->endpoints[i].out->ports[j].substream); j 1815 sound/usb/midi.c if (endpoints[i].in_cables & (1 << j)) { j 1819 sound/usb/midi.c &umidi->endpoints[i].in->ports[j].substream); j 2270 sound/usb/midi.c unsigned int i, j; j 2278 sound/usb/midi.c for (j = 0; j < INPUT_URBS; ++j) j 2279 sound/usb/midi.c usb_kill_urb(ep->in->urbs[j]); j 1873 sound/usb/mixer.c int channels, i, j; j 1931 sound/usb/mixer.c for (j = 0; j < channels; j++) { j 1935 sound/usb/mixer.c csize * (j+1), csize); j 1937 sound/usb/mixer.c ch_bits |= (1 << j); j 1958 sound/usb/mixer.c for (j = 0; j < channels; j++) { j 1962 sound/usb/mixer.c csize * (j+1), csize); j 1964 sound/usb/mixer.c ch_bits |= (1 << j); j 1966 sound/usb/mixer.c ch_read_only |= (1 << j); j 801 sound/usb/mixer_scarlett_gen2.c int i, j; j 807 sound/usb/mixer_scarlett_gen2.c for (i = 0, j = mix_num * num_mixer_in; i < num_mixer_in; i++, j++) j 809 sound/usb/mixer_scarlett_gen2.c scarlett2_mixer_values[private->mix[j]] j 872 sound/usb/mixer_scarlett_gen2.c int j = scarlett2_get_port_start_num(ports, j 880 sound/usb/mixer_scarlett_gen2.c channel++, i++, j++) j 890 sound/usb/mixer_scarlett_gen2.c ports, private->mux[j] j 895 sound/usb/mixer_scarlett_gen2.c j += ports[port_type].num[SCARLETT2_PORT_OUT] - j 1541 sound/usb/mixer_scarlett_gen2.c int err, i, j; j 1549 sound/usb/mixer_scarlett_gen2.c for (j = 0; j < num_inputs; j++, index++) { j 1552 sound/usb/mixer_scarlett_gen2.c 'A' + i, j + 1); j 1293 sound/usb/mixer_us16x08.c int i, j; j 1353 sound/usb/mixer_us16x08.c for (j = 0; j < SND_US16X08_MAX_CHANNELS; j++) { j 1354 sound/usb/mixer_us16x08.c elem->cache_val[j] = j 224 sound/usb/usx2y/usbusx2y.c int j, send = us428ctls->p4outSent + 1; j 227 sound/usb/usx2y/usbusx2y.c for (j = 0; j < URBS_AsyncSeq && !err; ++j) j 228 sound/usb/usx2y/usbusx2y.c if (0 == usX2Y->AS04.urb[j]->status) { j 230 sound/usb/usx2y/usbusx2y.c usb_fill_bulk_urb(usX2Y->AS04.urb[j], usX2Y->dev, j 234 sound/usb/usx2y/usbusx2y.c err = usb_submit_urb(usX2Y->AS04.urb[j], GFP_ATOMIC); j 393 sound/x86/intel_hdmi_audio.c int i, j; j 400 sound/x86/intel_hdmi_audio.c for (j = 0; j < ARRAY_SIZE(p->speakers); j++) j 401 sound/x86/intel_hdmi_audio.c if (p->speakers[j]) { j 403 sound/x86/intel_hdmi_audio.c p->spk_mask |= p->speakers[j]; j 837 tools/bpf/bpftool/prog.c size_t i, j; j 845 tools/bpf/bpftool/prog.c for (j = i; j < i + 16 && j < size; j++) j 846 tools/bpf/bpftool/prog.c fprintf(f, "%02x%s", *(uint8_t *)(data + j), j 847 tools/bpf/bpftool/prog.c j % 2 ? " " : ""); j 848 tools/bpf/bpftool/prog.c for (; j < i + 16; j++) j 849 tools/bpf/bpftool/prog.c fprintf(f, " %s", j % 2 ? " " : ""); j 853 tools/bpf/bpftool/prog.c for (j = i; j < i + 16 && j < size; j++) { j 854 tools/bpf/bpftool/prog.c c = *(char *)(data + j); j 857 tools/bpf/bpftool/prog.c fprintf(f, "%c%s", c, j == i + 7 ? " " : ""); j 1106 tools/bpf/bpftool/prog.c unsigned int i, j; j 1256 tools/bpf/bpftool/prog.c j = 0; j 1257 tools/bpf/bpftool/prog.c while (j < old_map_fds && map_replace[j].name) { j 1260 tools/bpf/bpftool/prog.c if (!strcmp(bpf_map__name(map), map_replace[j].name)) { j 1261 tools/bpf/bpftool/prog.c map_replace[j].idx = i; j 1266 tools/bpf/bpftool/prog.c if (map_replace[j].idx == -1) { j 1267 tools/bpf/bpftool/prog.c p_err("unable to find map '%s'", map_replace[j].name); j 1270 tools/bpf/bpftool/prog.c j++; j 1273 tools/bpf/bpftool/prog.c if (j) j 1278 tools/bpf/bpftool/prog.c j = 0; j 1284 tools/bpf/bpftool/prog.c if (j < old_map_fds && idx == map_replace[j].idx) { j 1285 tools/bpf/bpftool/prog.c err = bpf_map__reuse_fd(map, map_replace[j++].fd); j 1292 tools/bpf/bpftool/prog.c if (j < old_map_fds && map_replace[j].idx == idx) { j 1301 tools/bpf/bpftool/prog.c if (j < old_map_fds) { j 1302 tools/bpf/bpftool/prog.c p_err("map idx '%d' not used", map_replace[j].idx); j 139 tools/firmware/ihex2fw.c int i, j; j 182 tools/firmware/ihex2fw.c for (j = 0; j < record->len; j++, i += 2) j 183 tools/firmware/ihex2fw.c record->data[j] = hex(data + i, &crc); j 32 tools/gpio/gpio-hammer.c int i, j; j 63 tools/gpio/gpio-hammer.c j = 0; j 78 tools/gpio/gpio-hammer.c fprintf(stdout, "[%c] ", swirr[j]); j 79 tools/gpio/gpio-hammer.c j++; j 80 tools/gpio/gpio-hammer.c if (j == sizeof(swirr)-1) j 81 tools/gpio/gpio-hammer.c j = 0; j 270 tools/hv/hv_kvp_daemon.c int j, k; j 295 tools/hv/hv_kvp_daemon.c j = i; j 296 tools/hv/hv_kvp_daemon.c k = j + 1; j 298 tools/hv/hv_kvp_daemon.c strcpy(record[j].key, record[k].key); j 299 tools/hv/hv_kvp_daemon.c strcpy(record[j].value, record[k].value); j 300 tools/hv/hv_kvp_daemon.c j++; j 1101 tools/hv/hv_kvp_daemon.c int j = 0; j 1156 tools/hv/hv_kvp_daemon.c } else if (j == 0) { j 1157 tools/hv/hv_kvp_daemon.c ++j; j 1159 tools/hv/hv_kvp_daemon.c snprintf(sub_str, sizeof(sub_str), "_%d", j++); j 334 tools/iio/iio_generic_buffer.c unsigned long long j; j 636 tools/iio/iio_generic_buffer.c for (j = 0; j < num_loops || num_loops < 0; j++) { j 1453 tools/lib/bpf/btf.c int i, j, r, rec_size; j 1468 tools/lib/bpf/btf.c for (j = 0; j < vlen; j++) { j 1480 tools/lib/bpf/btf.c for (j = 0; j < vlen; j++) { j 1492 tools/lib/bpf/btf.c for (j = 0; j < vlen; j++) { j 1621 tools/lib/bpf/btf.c int i, j, err = 0, grp_idx; j 1692 tools/lib/bpf/btf.c for (j = grp_idx; j < i; j++) j 1693 tools/lib/bpf/btf.c strs.ptrs[j].new_off = new_off; j 251 tools/lib/bpf/btf_dump.c int i, j, n = btf__get_nr_types(d->btf); j 286 tools/lib/bpf/btf_dump.c for (j = 0; j < vlen; j++, m++) j 293 tools/lib/bpf/btf_dump.c for (j = 0; j < vlen; j++, p++) j 300 tools/lib/bpf/btf_dump.c for (j = 0; j < vlen; j++, v++) j 1368 tools/lib/bpf/libbpf.c int i, j, vlen; j 1402 tools/lib/bpf/libbpf.c for (j = 0; j < vlen; j++, v++, m++) { j 2210 tools/lib/bpf/libbpf.c size_t j; j 2217 tools/lib/bpf/libbpf.c for (j = 0; j < i; j++) j 2218 tools/lib/bpf/libbpf.c zclose(obj->maps[j].fd); j 3021 tools/lib/bpf/libbpf.c int i, j, err; j 3063 tools/lib/bpf/libbpf.c for (i = 0, j = 0; i < cand_ids->len; i++) { j 3082 tools/lib/bpf/libbpf.c if (j == 0) { j 3094 tools/lib/bpf/libbpf.c cand_ids->data[j++] = cand_spec.spec[0].type_id; j 3097 tools/lib/bpf/libbpf.c cand_ids->len = j; j 48 tools/lib/subcmd/help.c unsigned int i, j; j 53 tools/lib/subcmd/help.c for (i = j = 1; i < cmds->cnt; i++) j 55 tools/lib/subcmd/help.c cmds->names[j++] = cmds->names[i]; j 57 tools/lib/subcmd/help.c cmds->cnt = j; j 110 tools/lib/subcmd/help.c int i, j; j 122 tools/lib/subcmd/help.c for (j = 0; j < cols; j++) { j 123 tools/lib/subcmd/help.c unsigned int n = j * rows + i; j 128 tools/lib/subcmd/help.c if (j == cols-1 || n + rows >= cmds->cnt) j 4572 tools/lib/traceevent/event-parse.c int i, j, range; j 4595 tools/lib/traceevent/event-parse.c for (j = i; j < range; j++) { j 4596 tools/lib/traceevent/event-parse.c if (in6.s6_addr16[j] != 0) j 4647 tools/lib/traceevent/event-parse.c int j; j 4649 tools/lib/traceevent/event-parse.c for (j = 0; j < 16; j += 2) { j 4650 tools/lib/traceevent/event-parse.c trace_seq_printf(s, "%02x%02x", buf[j], buf[j+1]); j 4651 tools/lib/traceevent/event-parse.c if (i == 'I' && j < 14) j 191 tools/perf/arch/powerpc/util/kvm-stat.c int i, j = *argc; j 198 tools/perf/arch/powerpc/util/kvm-stat.c tmp = calloc(j + 1, sizeof(char *)); j 202 tools/perf/arch/powerpc/util/kvm-stat.c for (i = 0; i < j; i++) j 205 tools/perf/arch/powerpc/util/kvm-stat.c parse_options(j, tmp, event_options, NULL, PARSE_OPT_KEEP_UNKNOWN); j 208 tools/perf/arch/powerpc/util/kvm-stat.c argv[j++] = strdup("-e"); j 209 tools/perf/arch/powerpc/util/kvm-stat.c argv[j++] = strdup("trace_imc/trace_cycles/"); j 228 tools/perf/bench/epoll-ctl.c unsigned int i, j; j 242 tools/perf/bench/epoll-ctl.c for (j = 0; j < nfds; j++) { j 243 tools/perf/bench/epoll-ctl.c w->fdmap[j] = eventfd(0, EFD_NONBLOCK); j 244 tools/perf/bench/epoll-ctl.c if (w->fdmap[j] < 0) j 303 tools/perf/bench/epoll-ctl.c int j, ret = 0; j 392 tools/perf/bench/epoll-ctl.c for (j = 0; j < EPOLL_NR_OPS; j++) { j 393 tools/perf/bench/epoll-ctl.c t[j] = worker[i].ops[j]; j 394 tools/perf/bench/epoll-ctl.c update_stats(&all_stats[j], t[j]); j 172 tools/perf/bench/epoll-wait.c size_t j = i + rand() / (RAND_MAX / (n - i) + 1); j 173 tools/perf/bench/epoll-wait.c j *= size; j 175 tools/perf/bench/epoll-wait.c memcpy(aux, &carray[j], size); j 176 tools/perf/bench/epoll-wait.c memcpy(&carray[j], &carray[i*size], size); j 297 tools/perf/bench/epoll-wait.c unsigned int i, j; j 328 tools/perf/bench/epoll-wait.c for (j = 0; j < nfds; j++) { j 332 tools/perf/bench/epoll-wait.c w->fdmap[j] = eventfd(0, EFD_NONBLOCK); j 333 tools/perf/bench/epoll-wait.c if (w->fdmap[j] < 0) j 336 tools/perf/bench/epoll-wait.c ev.data.fd = w->fdmap[j]; j 340 tools/perf/bench/epoll-wait.c w->fdmap[j], &ev); j 371 tools/perf/bench/epoll-wait.c size_t i, j, iter; j 392 tools/perf/bench/epoll-wait.c for (j = 0; j < nfds; j++) { j 394 tools/perf/bench/epoll-wait.c sz = write(w->fdmap[j], &val, sizeof(val)); j 118 tools/perf/bench/futex-requeue.c unsigned int i, j; j 159 tools/perf/bench/futex-requeue.c for (j = 0; j < bench_repeat && !done; j++) { j 194 tools/perf/bench/futex-requeue.c j + 1, nrequeued, nthreads, runtime.tv_usec / (double)USEC_PER_MSEC); j 224 tools/perf/bench/futex-wake-parallel.c unsigned int i, j; j 280 tools/perf/bench/futex-wake-parallel.c for (j = 0; j < bench_repeat && !done; j++) { j 308 tools/perf/bench/futex-wake-parallel.c print_run(waking_worker, j); j 124 tools/perf/bench/futex-wake.c unsigned int i, j; j 164 tools/perf/bench/futex-wake.c for (j = 0; j < bench_repeat && !done; j++) { j 192 tools/perf/bench/futex-wake.c j + 1, nwoken, nthreads, runtime.tv_usec / (double)USEC_PER_MSEC); j 798 tools/perf/bench/numa.c int j; j 811 tools/perf/bench/numa.c for (j = start; j < end; j++) j 812 tools/perf/bench/numa.c val = access_data(data + j, val); j 85 tools/perf/bench/sched-messaging.c unsigned int i, j; j 91 tools/perf/bench/sched-messaging.c for (j = 0; j < ctx->num_fds; j++) { j 95 tools/perf/bench/sched-messaging.c ret = write(ctx->out_fds[j], data + done, j 2496 tools/perf/builtin-c2c.c int i, j, olen = strlen(orig); j 2503 tools/perf/builtin-c2c.c j = len / 2 - olen / 2; j 2505 tools/perf/builtin-c2c.c for (i = 0; i < j - 1; i++) j 2894 tools/perf/builtin-c2c.c int rec_argc, i = 0, j; j 2937 tools/perf/builtin-c2c.c for (j = 0; j < PERF_MEM_EVENTS__MAX; j++) { j 2938 tools/perf/builtin-c2c.c if (!perf_mem_events[j].record) j 2941 tools/perf/builtin-c2c.c if (!perf_mem_events[j].supported) { j 2943 tools/perf/builtin-c2c.c perf_mem_events[j].name); j 2949 tools/perf/builtin-c2c.c rec_argv[i++] = perf_mem_events__name(j); j 2958 tools/perf/builtin-c2c.c for (j = 0; j < argc; j++, i++) j 2959 tools/perf/builtin-c2c.c rec_argv[i] = argv[j]; j 2964 tools/perf/builtin-c2c.c j = 0; j 2966 tools/perf/builtin-c2c.c while (rec_argv[j]) { j 2967 tools/perf/builtin-c2c.c pr_debug("%s ", rec_argv[j]); j 2968 tools/perf/builtin-c2c.c j++; j 1848 tools/perf/builtin-kmem.c unsigned int rec_argc, i, j; j 1866 tools/perf/builtin-kmem.c for (j = 0; j < ARRAY_SIZE(slab_events); j++, i++) j 1867 tools/perf/builtin-kmem.c rec_argv[i] = strdup(slab_events[j]); j 1872 tools/perf/builtin-kmem.c for (j = 0; j < ARRAY_SIZE(page_events); j++, i++) j 1873 tools/perf/builtin-kmem.c rec_argv[i] = strdup(page_events[j]); j 1876 tools/perf/builtin-kmem.c for (j = 1; j < (unsigned int)argc; j++, i++) j 1877 tools/perf/builtin-kmem.c rec_argv[i] = argv[j]; j 162 tools/perf/builtin-kvm.c int j; j 171 tools/perf/builtin-kvm.c for (j = 0; j < event->max_vcpu; ++j) { j 172 tools/perf/builtin-kvm.c event->vcpu[j].time = 0; j 173 tools/perf/builtin-kvm.c init_stats(&event->vcpu[j].stats); j 1184 tools/perf/builtin-kvm.c unsigned int rec_argc, i, j, events_tp_size; j 1219 tools/perf/builtin-kvm.c for (j = 0; j < events_tp_size; j++) { j 1221 tools/perf/builtin-kvm.c rec_argv[i++] = STRDUP_FAIL_EXIT(kvm_events_tp[j]); j 1227 tools/perf/builtin-kvm.c for (j = 1; j < (unsigned int)argc; j++, i++) j 1228 tools/perf/builtin-kvm.c rec_argv[i] = argv[j]; j 1528 tools/perf/builtin-kvm.c int rec_argc, i = 0, j, ret; j 1540 tools/perf/builtin-kvm.c for (j = 1; j < argc; j++, i++) j 1541 tools/perf/builtin-kvm.c rec_argv[i] = argv[j]; j 1550 tools/perf/builtin-kvm.c int rec_argc, i = 0, j; j 1558 tools/perf/builtin-kvm.c for (j = 1; j < argc; j++, i++) j 1559 tools/perf/builtin-kvm.c rec_argv[i] = argv[j]; j 1569 tools/perf/builtin-kvm.c int rec_argc, i = 0, j; j 1577 tools/perf/builtin-kvm.c for (j = 1; j < argc; j++, i++) j 1578 tools/perf/builtin-kvm.c rec_argv[i] = argv[j]; j 916 tools/perf/builtin-lock.c unsigned int rec_argc, i, j, ret; j 939 tools/perf/builtin-lock.c for (j = 0; j < ARRAY_SIZE(lock_tracepoints); j++) { j 941 tools/perf/builtin-lock.c rec_argv[i++] = strdup(lock_tracepoints[j].name); j 944 tools/perf/builtin-lock.c for (j = 1; j < (unsigned int)argc; j++, i++) j 945 tools/perf/builtin-lock.c rec_argv[i] = argv[j]; j 41 tools/perf/builtin-mem.c int j; j 51 tools/perf/builtin-mem.c for (j = 0; j < PERF_MEM_EVENTS__MAX; j++) { j 52 tools/perf/builtin-mem.c struct perf_mem_event *e = &perf_mem_events[j]; j 57 tools/perf/builtin-mem.c verbose > 0 ? perf_mem_events__name(j) : "", j 73 tools/perf/builtin-mem.c int rec_argc, i = 0, j; j 113 tools/perf/builtin-mem.c for (j = 0; j < PERF_MEM_EVENTS__MAX; j++) { j 114 tools/perf/builtin-mem.c if (!perf_mem_events[j].record) j 117 tools/perf/builtin-mem.c if (!perf_mem_events[j].supported) { j 119 tools/perf/builtin-mem.c perf_mem_events__name(j)); j 125 tools/perf/builtin-mem.c rec_argv[i++] = perf_mem_events__name(j); j 134 tools/perf/builtin-mem.c for (j = 0; j < argc; j++, i++) j 135 tools/perf/builtin-mem.c rec_argv[i] = argv[j]; j 140 tools/perf/builtin-mem.c while (rec_argv[j]) { j 141 tools/perf/builtin-mem.c pr_debug("%s ", rec_argv[j]); j 142 tools/perf/builtin-mem.c j++; j 282 tools/perf/builtin-mem.c int ret, i = 0, j, rep_argc; j 311 tools/perf/builtin-mem.c for (j = 1; j < argc; j++, i++) j 312 tools/perf/builtin-mem.c rep_argv[i] = argv[j]; j 503 tools/perf/builtin-sched.c unsigned long i, j; j 507 tools/perf/builtin-sched.c j = i + 1; j 508 tools/perf/builtin-sched.c if (j == sched->nr_tasks) j 509 tools/perf/builtin-sched.c j = 0; j 510 tools/perf/builtin-sched.c task2 = sched->tasks[j]; j 1928 tools/perf/builtin-sched.c u32 i, j; j 1934 tools/perf/builtin-sched.c for (i = 0, j = 0; i < ncpus; ++i) { j 1935 tools/perf/builtin-sched.c printf("%x", j++); j 1936 tools/perf/builtin-sched.c if (j > 15) j 1937 tools/perf/builtin-sched.c j = 0; j 2255 tools/perf/builtin-sched.c int i, j = __roundup_pow_of_two(cpu+1); j 2258 tools/perf/builtin-sched.c p = realloc(idle_threads, j * sizeof(struct thread *)); j 2263 tools/perf/builtin-sched.c for (i = idle_max_cpu; i < j; ++i) j 2266 tools/perf/builtin-sched.c idle_max_cpu = j; j 3309 tools/perf/builtin-sched.c unsigned int rec_argc, i, j; j 3337 tools/perf/builtin-sched.c for (j = 1; j < (unsigned int)argc; j++, i++) j 3338 tools/perf/builtin-sched.c rec_argv[i] = argv[j]; j 328 tools/perf/builtin-script.c int j; j 329 tools/perf/builtin-script.c for (j = 0; j < OUTPUT_TYPE_MAX; ++j) { j 330 tools/perf/builtin-script.c if (output[j].user_set) j 518 tools/perf/builtin-script.c unsigned int j; j 521 tools/perf/builtin-script.c for (j = 0; j < OUTPUT_TYPE_MAX; ++j) { j 522 tools/perf/builtin-script.c evsel = perf_session__find_first_evtype(session, attr_type(j)); j 528 tools/perf/builtin-script.c if (!evsel && output[j].user_set && !output[j].wildcard_set && j 529 tools/perf/builtin-script.c j != OUTPUT_TYPE_SYNTH) { j 532 tools/perf/builtin-script.c event_type(j)); j 536 tools/perf/builtin-script.c if (evsel && output[j].fields && j 567 tools/perf/builtin-script.c j = PERF_TYPE_TRACEPOINT; j 570 tools/perf/builtin-script.c if (evsel->core.attr.type != j) j 574 tools/perf/builtin-script.c output[j].fields |= PERF_OUTPUT_IP; j 575 tools/perf/builtin-script.c output[j].fields |= PERF_OUTPUT_SYM; j 576 tools/perf/builtin-script.c output[j].fields |= PERF_OUTPUT_SYMOFFSET; j 577 tools/perf/builtin-script.c output[j].fields |= PERF_OUTPUT_DSO; j 2653 tools/perf/builtin-script.c int j; j 2716 tools/perf/builtin-script.c for (j = 0; j < OUTPUT_TYPE_MAX; ++j) { j 2717 tools/perf/builtin-script.c output[j].fields = 0; j 2718 tools/perf/builtin-script.c output[j].user_set = true; j 2719 tools/perf/builtin-script.c output[j].wildcard_set = true; j 2759 tools/perf/builtin-script.c for (j = 0; j < OUTPUT_TYPE_MAX; ++j) { j 2760 tools/perf/builtin-script.c if (output[j].invalid_fields & all_output_options[i].field) { j 2762 tools/perf/builtin-script.c all_output_options[i].str, event_type(j)); j 2765 tools/perf/builtin-script.c output[j].fields &= ~all_output_options[i].field; j 2766 tools/perf/builtin-script.c output[j].user_set_fields &= ~all_output_options[i].field; j 2768 tools/perf/builtin-script.c output[j].fields |= all_output_options[i].field; j 2769 tools/perf/builtin-script.c output[j].user_set_fields |= all_output_options[i].field; j 2771 tools/perf/builtin-script.c output[j].user_set = true; j 2772 tools/perf/builtin-script.c output[j].wildcard_set = true; j 3416 tools/perf/builtin-script.c int i, j, err = 0; j 3656 tools/perf/builtin-script.c j = 0; j 3677 tools/perf/builtin-script.c __argv[j++] = "/bin/sh"; j 3678 tools/perf/builtin-script.c __argv[j++] = rec_script_path; j 3680 tools/perf/builtin-script.c __argv[j++] = "-a"; j 3681 tools/perf/builtin-script.c __argv[j++] = "-q"; j 3682 tools/perf/builtin-script.c __argv[j++] = "-o"; j 3683 tools/perf/builtin-script.c __argv[j++] = "-"; j 3685 tools/perf/builtin-script.c __argv[j++] = argv[i]; j 3686 tools/perf/builtin-script.c __argv[j++] = NULL; j 3703 tools/perf/builtin-script.c j = 0; j 3704 tools/perf/builtin-script.c __argv[j++] = "/bin/sh"; j 3705 tools/perf/builtin-script.c __argv[j++] = rep_script_path; j 3707 tools/perf/builtin-script.c __argv[j++] = argv[i]; j 3708 tools/perf/builtin-script.c __argv[j++] = "-i"; j 3709 tools/perf/builtin-script.c __argv[j++] = "-"; j 3710 tools/perf/builtin-script.c __argv[j++] = NULL; j 3723 tools/perf/builtin-script.c j = 0; j 3741 tools/perf/builtin-script.c __argv[j++] = "/bin/sh"; j 3742 tools/perf/builtin-script.c __argv[j++] = script_path; j 3744 tools/perf/builtin-script.c __argv[j++] = "-a"; j 3746 tools/perf/builtin-script.c __argv[j++] = argv[i]; j 3747 tools/perf/builtin-script.c __argv[j++] = NULL; j 1778 tools/perf/builtin-timechart.c unsigned int rec_argc, i, j; j 1860 tools/perf/builtin-timechart.c for (j = 0; j < (unsigned int)argc; j++) j 1861 tools/perf/builtin-timechart.c *p++ = argv[j]; j 2571 tools/perf/builtin-trace.c unsigned int rec_argc, i, j; j 2595 tools/perf/builtin-trace.c j = 0; j 2597 tools/perf/builtin-trace.c rec_argv[j++] = record_args[i]; j 2601 tools/perf/builtin-trace.c rec_argv[j++] = sc_args[i]; j 2605 tools/perf/builtin-trace.c rec_argv[j++] = "raw_syscalls:sys_enter,raw_syscalls:sys_exit"; j 2607 tools/perf/builtin-trace.c rec_argv[j++] = "syscalls:sys_enter,syscalls:sys_exit"; j 2617 tools/perf/builtin-trace.c rec_argv[j++] = majpf_args[i]; j 2621 tools/perf/builtin-trace.c rec_argv[j++] = minpf_args[i]; j 2624 tools/perf/builtin-trace.c rec_argv[j++] = argv[i]; j 2626 tools/perf/builtin-trace.c return cmd_record(j, rec_argv); j 149 tools/perf/jvmti/libjvmti.c int j, i = 0; j 160 tools/perf/jvmti/libjvmti.c for (j = 0; i < (max_length - 1) && file_name && j < strlen(file_name); j++, i++) j 161 tools/perf/jvmti/libjvmti.c result[i] = file_name[j]; j 516 tools/perf/pmu-events/jevents.c int i, j, len; j 547 tools/perf/pmu-events/jevents.c for (j = 0; j < obj->size; j += 2) { j 552 tools/perf/pmu-events/jevents.c field = tok + j; j 553 tools/perf/pmu-events/jevents.c EXPECT(field->type == JSMN_STRING, tok + j, j 555 tools/perf/pmu-events/jevents.c val = tok + j + 1; j 556 tools/perf/pmu-events/jevents.c EXPECT(val->type == JSMN_STRING, tok + j + 1, j 684 tools/perf/pmu-events/jevents.c tok += j; j 389 tools/perf/tests/builtin-test.c #define for_each_test(j, t) \ j 390 tools/perf/tests/builtin-test.c for (j = 0; j < ARRAY_SIZE(tests); j++) \ j 391 tools/perf/tests/builtin-test.c for (t = &tests[j][0]; t->func; t++) j 564 tools/perf/tests/builtin-test.c unsigned int j; j 568 tools/perf/tests/builtin-test.c for_each_test(j, t) { j 575 tools/perf/tests/builtin-test.c for_each_test(j, t) { j 669 tools/perf/tests/builtin-test.c unsigned int j; j 673 tools/perf/tests/builtin-test.c for_each_test(j, t) { j 43 tools/perf/tests/mmap-basic.c expected_nr_events[nsyscalls], i, j; j 110 tools/perf/tests/mmap-basic.c for (j = 0; j < expected_nr_events[i]; ++j) { j 2634 tools/perf/ui/browsers/hists.c int n, j; j 2645 tools/perf/ui/browsers/hists.c j = sprintf(tstr, " in "); j 2646 tools/perf/ui/browsers/hists.c j += timestamp__scnprintf_usec(he->time, tstr + j, j 2647 tools/perf/ui/browsers/hists.c sizeof tstr - j); j 2648 tools/perf/ui/browsers/hists.c j += sprintf(tstr + j, "-"); j 2650 tools/perf/ui/browsers/hists.c tstr + j, sizeof tstr - j); j 1287 tools/perf/util/bpf-loader.c unsigned int i, j; j 1294 tools/perf/util/bpf-loader.c for (j = 0; j < length; j++) { j 1295 tools/perf/util/bpf-loader.c unsigned int idx = start + j; j 116 tools/perf/util/branch.c int i, j = 0, printed = 0; j 126 tools/perf/util/branch.c printed += count_str_scnprintf(j++, "COND_FWD", bf + printed, size - printed); j 129 tools/perf/util/branch.c printed += count_str_scnprintf(j++, "COND_BWD", bf + printed, size - printed); j 136 tools/perf/util/branch.c printed += count_str_scnprintf(j++, branch_type_name(i), bf + printed, size - printed); j 140 tools/perf/util/branch.c printed += count_str_scnprintf(j++, "CROSS_4K", bf + printed, size - printed); j 143 tools/perf/util/branch.c printed += count_str_scnprintf(j++, "CROSS_2M", bf + printed, size - printed); j 2379 tools/perf/util/cs-etm.c int i, j, cpu = 0; j 2386 tools/perf/util/cs-etm.c for (j = 0; j < CS_ETM_PRIV_MAX; j++, i++) j 2387 tools/perf/util/cs-etm.c fprintf(stdout, cs_etm_priv_fmts[j], val[i]); j 2389 tools/perf/util/cs-etm.c for (j = 0; j < CS_ETMV4_PRIV_MAX; j++, i++) j 2390 tools/perf/util/cs-etm.c fprintf(stdout, cs_etmv4_priv_fmts[j], val[i]); j 2410 tools/perf/util/cs-etm.c int i, j, k; j 2466 tools/perf/util/cs-etm.c for (j = 0; j < num_cpu; j++) { j 2468 tools/perf/util/cs-etm.c metadata[j] = zalloc(sizeof(*metadata[j]) * j 2470 tools/perf/util/cs-etm.c if (!metadata[j]) { j 2475 tools/perf/util/cs-etm.c metadata[j][k] = ptr[i + k]; j 2478 tools/perf/util/cs-etm.c idx = metadata[j][CS_ETM_ETMTRACEIDR]; j 2481 tools/perf/util/cs-etm.c metadata[j] = zalloc(sizeof(*metadata[j]) * j 2483 tools/perf/util/cs-etm.c if (!metadata[j]) { j 2488 tools/perf/util/cs-etm.c metadata[j][k] = ptr[i + k]; j 2491 tools/perf/util/cs-etm.c idx = metadata[j][CS_ETMV4_TRCTRACEIDR]; j 2513 tools/perf/util/cs-etm.c inode->priv = metadata[j]; j 2611 tools/perf/util/cs-etm.c for (j = 0; j < num_cpu; j++) j 2612 tools/perf/util/cs-etm.c zfree(&metadata[j]); j 575 tools/perf/util/header.c int ret, j; j 604 tools/perf/util/header.c for (j = 0; j < perf_env.nr_cpus_avail; j++) { j 605 tools/perf/util/header.c ret = do_write(ff, &perf_env.cpu[j].core_id, j 606 tools/perf/util/header.c sizeof(perf_env.cpu[j].core_id)); j 609 tools/perf/util/header.c ret = do_write(ff, &perf_env.cpu[j].socket_id, j 610 tools/perf/util/header.c sizeof(perf_env.cpu[j].socket_id)); j 628 tools/perf/util/header.c for (j = 0; j < perf_env.nr_cpus_avail; j++) { j 629 tools/perf/util/header.c ret = do_write(ff, &perf_env.cpu[j].die_id, j 630 tools/perf/util/header.c sizeof(perf_env.cpu[j].die_id)); j 1598 tools/perf/util/header.c u32 nre, sz, nr, i, j; j 1656 tools/perf/util/header.c for (j = 0 ; j < nr; j++) { j 1680 tools/perf/util/header.c u32 j; j 1698 tools/perf/util/header.c for (j = 0, id = evsel->core.id; j < evsel->core.ids; j++, id++) { j 1699 tools/perf/util/header.c if (j) j 3537 tools/perf/util/header.c int nr_attrs, nr_ids, i, j; j 3611 tools/perf/util/header.c for (j = 0; j < nr_ids; j++) { j 3615 tools/perf/util/header.c perf_evlist__id_add(&session->evlist->core, &evsel->core, 0, j, f_id); j 659 tools/perf/util/hist.c int j; j 662 tools/perf/util/hist.c j = he->num_res++; j 664 tools/perf/util/hist.c j = random_max(symbol_conf.res_sample); j 666 tools/perf/util/hist.c r = &he->res_samples[j]; j 2331 tools/perf/util/intel-pt.c unsigned i, j; j 2344 tools/perf/util/intel-pt.c for (j = 0; i > 0; j++) { j 2349 tools/perf/util/intel-pt.c for (; j < pt->queues.nr_queues; j++) { j 2350 tools/perf/util/intel-pt.c if (pt->queues.queue_array[j].cpu == cpu) j 2351 tools/perf/util/intel-pt.c return pt->queues.queue_array[j].priv; j 51 tools/perf/util/levenshtein.c int i, j; j 53 tools/perf/util/levenshtein.c for (j = 0; j <= len2; j++) j 54 tools/perf/util/levenshtein.c row1[j] = j * a; j 59 tools/perf/util/levenshtein.c for (j = 0; j < len2; j++) { j 61 tools/perf/util/levenshtein.c row2[j + 1] = row1[j] + s * (string1[i] != string2[j]); j 63 tools/perf/util/levenshtein.c if (i > 0 && j > 0 && string1[i - 1] == string2[j] && j 64 tools/perf/util/levenshtein.c string1[i] == string2[j - 1] && j 65 tools/perf/util/levenshtein.c row2[j + 1] > row0[j - 1] + w) j 66 tools/perf/util/levenshtein.c row2[j + 1] = row0[j - 1] + w; j 68 tools/perf/util/levenshtein.c if (row2[j + 1] > row1[j + 1] + d) j 69 tools/perf/util/levenshtein.c row2[j + 1] = row1[j + 1] + d; j 71 tools/perf/util/levenshtein.c if (row2[j + 1] > row2[j] + a) j 72 tools/perf/util/levenshtein.c row2[j + 1] = row2[j] + a; j 2119 tools/perf/util/machine.c int i, j, off; j 2136 tools/perf/util/machine.c for (j = chash[h]; j < i && i + off < nr; j++, off++) j 2137 tools/perf/util/machine.c if (l[j].from != l[i + off].from) { j 2142 tools/perf/util/machine.c j = nr - (i + off); j 2143 tools/perf/util/machine.c if (j > 0) { j 2148 tools/perf/util/machine.c j * sizeof(*iter)); j 2151 tools/perf/util/machine.c j * sizeof(*l)); j 2188 tools/perf/util/machine.c int lbr_nr = lbr_stack->nr, j, k; j 2203 tools/perf/util/machine.c for (j = 0; j < mix_chain_nr; j++) { j 2209 tools/perf/util/machine.c if (j < i + 1) j 2210 tools/perf/util/machine.c ip = chain->ips[j]; j 2211 tools/perf/util/machine.c else if (j > i + 1) { j 2212 tools/perf/util/machine.c k = j - i - 2; j 2224 tools/perf/util/machine.c if (j < lbr_nr) { j 2225 tools/perf/util/machine.c k = lbr_nr - j - 1; j 2230 tools/perf/util/machine.c else if (j > lbr_nr) j 2231 tools/perf/util/machine.c ip = chain->ips[i + 1 - (j - lbr_nr)]; j 2287 tools/perf/util/machine.c int i, j, err, nr_entries; j 2392 tools/perf/util/machine.c j = i; j 2394 tools/perf/util/machine.c j = chain->nr - i - 1; j 2397 tools/perf/util/machine.c if (j == skip_idx) j 2400 tools/perf/util/machine.c ip = chain->ips[j]; j 2405 tools/perf/util/machine.c root_al, &cpumode, j); j 51 tools/perf/util/mem-events.c int j; j 63 tools/perf/util/mem-events.c for (j = 0; j < PERF_MEM_EVENTS__MAX; j++) { j 64 tools/perf/util/mem-events.c struct perf_mem_event *e = &perf_mem_events[j]; j 86 tools/perf/util/mem-events.c int j; j 91 tools/perf/util/mem-events.c for (j = 0; j < PERF_MEM_EVENTS__MAX; j++) { j 93 tools/perf/util/mem-events.c struct perf_mem_event *e = &perf_mem_events[j]; j 51 tools/perf/util/mem2node.c int i, j = 0, max = 0; j 82 tools/perf/util/mem2node.c if (j > 0) { j 83 tools/perf/util/mem2node.c struct phys_entry *prev = &entries[j - 1]; j 92 tools/perf/util/mem2node.c phys_entry__init(&entries[j++], start, bsize, n->node); j 97 tools/perf/util/mem2node.c tmp_entries = realloc(entries, sizeof(*entries) * j); j 101 tools/perf/util/mem2node.c for (i = 0; i < j; i++) { j 408 tools/perf/util/metricgroup.c int i, j; j 434 tools/perf/util/metricgroup.c for (j = 0; j < idnum; j++) { j 435 tools/perf/util/metricgroup.c pr_debug("found event %s\n", ids[j]); j 441 tools/perf/util/metricgroup.c if (!strcmp(ids[j], "duration_time")) { j 442 tools/perf/util/metricgroup.c if (j > 0) j 449 tools/perf/util/metricgroup.c j == 0 || no_group ? "{" : ",", j 450 tools/perf/util/metricgroup.c ids[j]); j 379 tools/perf/util/parse-events.c int i, j; j 383 tools/perf/util/parse-events.c for (j = 0; j < PERF_EVSEL__MAX_ALIASES && names[i][j]; j++) { j 384 tools/perf/util/parse-events.c n = strlen(names[i][j]); j 385 tools/perf/util/parse-events.c if (n > longest && !strncasecmp(str, names[i][j], n)) j 1392 tools/perf/util/pmu.c int len, j; j 1410 tools/perf/util/pmu.c j = 0; j 1428 tools/perf/util/pmu.c aliases[j].name = name; j 1430 tools/perf/util/pmu.c aliases[j].name = format_alias_or(buf, j 1433 tools/perf/util/pmu.c aliases[j].name = strdup(aliases[j].name); j 1434 tools/perf/util/pmu.c if (!aliases[j].name) j 1437 tools/perf/util/pmu.c aliases[j].desc = long_desc ? alias->long_desc : j 1439 tools/perf/util/pmu.c aliases[j].topic = alias->topic; j 1440 tools/perf/util/pmu.c aliases[j].str = alias->str; j 1441 tools/perf/util/pmu.c aliases[j].pmu = pmu->name; j 1442 tools/perf/util/pmu.c aliases[j].metric_expr = alias->metric_expr; j 1443 tools/perf/util/pmu.c aliases[j].metric_name = alias->metric_name; j 1444 tools/perf/util/pmu.c j++; j 1451 tools/perf/util/pmu.c aliases[j].name = s; j 1452 tools/perf/util/pmu.c j++; j 1455 tools/perf/util/pmu.c len = j; j 1457 tools/perf/util/pmu.c for (j = 0; j < len; j++) { j 1459 tools/perf/util/pmu.c if (j > 0 && !strcmp(aliases[j].name, aliases[j - 1].name)) j 1462 tools/perf/util/pmu.c printf("%s ", aliases[j].name); j 1465 tools/perf/util/pmu.c if (aliases[j].desc && !quiet_flag) { j 1468 tools/perf/util/pmu.c if (aliases[j].topic && (!topic || j 1469 tools/perf/util/pmu.c strcmp(topic, aliases[j].topic))) { j 1471 tools/perf/util/pmu.c aliases[j].topic); j 1472 tools/perf/util/pmu.c topic = aliases[j].topic; j 1474 tools/perf/util/pmu.c printf(" %-50s\n", aliases[j].name); j 1476 tools/perf/util/pmu.c wordwrap(aliases[j].desc, 8, columns, 0); j 1479 tools/perf/util/pmu.c printf("%*s%s/%s/ ", 8, "", aliases[j].pmu, aliases[j].str); j 1480 tools/perf/util/pmu.c if (aliases[j].metric_name) j 1481 tools/perf/util/pmu.c printf(" MetricName: %s", aliases[j].metric_name); j 1482 tools/perf/util/pmu.c if (aliases[j].metric_expr) j 1483 tools/perf/util/pmu.c printf(" MetricExpr: %s", aliases[j].metric_expr); j 1487 tools/perf/util/pmu.c printf(" %-50s [Kernel PMU event]\n", aliases[j].name); j 1493 tools/perf/util/pmu.c for (j = 0; j < len; j++) j 1494 tools/perf/util/pmu.c zfree(&aliases[j].name); j 10 tools/perf/util/print_binary.c size_t i, j, mask; j 29 tools/perf/util/print_binary.c for (j = 0; j < mask-(i & mask); j++) j 33 tools/perf/util/print_binary.c for (j = i & ~mask; j <= i; j++) j 34 tools/perf/util/print_binary.c printed += printer(BINARY_PRINT_CHAR_DATA, data[j], extra, fp); j 35 tools/perf/util/print_binary.c for (j = 0; j < mask-(i & mask); j++) j 2890 tools/perf/util/probe-event.c int ret, i, j, skipped = 0; j 2942 tools/perf/util/probe-event.c for (j = 0; j < num_matched_functions; j++) { j 2943 tools/perf/util/probe-event.c sym = syms[j]; j 3390 tools/perf/util/probe-event.c int i, j, ret = 0; j 3395 tools/perf/util/probe-event.c for (j = 0; j < npevs && !ret; j++) { j 3396 tools/perf/util/probe-event.c pev = &pevs[j]; j 3432 tools/perf/util/probe-event.c int i, j; j 3438 tools/perf/util/probe-event.c for (j = 0; j < pevs[i].ntevs; j++) j 3439 tools/perf/util/probe-event.c clear_probe_trace_event(&pevs[i].tevs[j]); j 567 tools/perf/util/synthetic-events.c int err = -1, thread, j; j 606 tools/perf/util/synthetic-events.c for (j = 0; j < threads->nr; ++j) { j 607 tools/perf/util/synthetic-events.c if ((int) comm_event->comm.pid == perf_thread_map__pid(threads, j)) { j 730 tools/perf/util/synthetic-events.c int m, n, i, j; j 781 tools/perf/util/synthetic-events.c for (j = i; j < thread_nr; j++) { j 782 tools/perf/util/synthetic-events.c args[j].num = num_per_thread; j 783 tools/perf/util/synthetic-events.c args[j].start = base + (j - i) * args[i].num; j 1429 tools/perf/util/synthetic-events.c u32 j; j 1431 tools/perf/util/synthetic-events.c for (j = 0; j < evsel->core.ids; j++) { j 1445 tools/perf/util/synthetic-events.c e->id = evsel->core.id[j]; j 61 tools/perf/util/syscalltbl.c int nr_entries = 0, i, j; j 72 tools/perf/util/syscalltbl.c for (i = 0, j = 0; i <= syscalltbl_native_max_id; ++i) { j 74 tools/perf/util/syscalltbl.c entries[j].name = syscalltbl_native[i]; j 75 tools/perf/util/syscalltbl.c entries[j].id = i; j 76 tools/perf/util/syscalltbl.c ++j; j 468 tools/perf/util/thread-stack.c size_t i, j; j 485 tools/perf/util/thread-stack.c for (i = 2, j = 1; i < sz && j <= ts->cnt; i++, j++) { j 486 tools/perf/util/thread-stack.c ip = ts->stack[ts->cnt - j].ret_addr; j 187 tools/perf/util/thread_map.c int i, j = 0; j 220 tools/perf/util/thread_map.c perf_thread_map__set_pid(threads, j++, atoi(namelist[i]->d_name)); j 244 tools/perf/util/unwind-libdw.c int j = i; j 247 tools/perf/util/unwind-libdw.c j = ui->idx - i - 1; j 249 tools/perf/util/unwind-libdw.c err = ui->entries[j].ip ? ui->cb(&ui->entries[j], ui->arg) : 0; j 694 tools/perf/util/unwind-libunwind-local.c int j = i; j 697 tools/perf/util/unwind-libunwind-local.c j = max_stack - i - 1; j 698 tools/perf/util/unwind-libunwind-local.c ret = ips[j] ? entry(ips[j], ui->thread, cb, arg) : 0; j 136 tools/perf/util/values.c int j; j 143 tools/perf/util/values.c for (j = values->counters_max; j < counters_max; j++) j 144 tools/perf/util/values.c value[j] = 0; j 204 tools/perf/util/values.c int i, j; j 215 tools/perf/util/values.c for (j = 0; j < values->counters; j++) j 216 tools/perf/util/values.c counterwidth[j] = strlen(values->countername[j]); j 226 tools/perf/util/values.c for (j = 0; j < values->counters; j++) { j 227 tools/perf/util/values.c width = snprintf(NULL, 0, "%" PRIu64, values->value[i][j]); j 228 tools/perf/util/values.c if (width > counterwidth[j]) j 229 tools/perf/util/values.c counterwidth[j] = width; j 234 tools/perf/util/values.c for (j = 0; j < values->counters; j++) j 235 tools/perf/util/values.c fprintf(fp, " %*s", counterwidth[j], values->countername[j]); j 241 tools/perf/util/values.c for (j = 0; j < values->counters; j++) j 243 tools/perf/util/values.c counterwidth[j], values->value[i][j]); j 253 tools/perf/util/values.c int i, j; j 269 tools/perf/util/values.c for (j = 0; j < values->counters; j++) { j 270 tools/perf/util/values.c width = strlen(values->countername[j]); j 273 tools/perf/util/values.c width = snprintf(NULL, 0, "%" PRIx64, values->counterrawid[j]); j 278 tools/perf/util/values.c for (j = 0; j < values->counters; j++) { j 279 tools/perf/util/values.c width = snprintf(NULL, 0, "%" PRIu64, values->value[i][j]); j 290 tools/perf/util/values.c for (j = 0; j < values->counters; j++) j 294 tools/perf/util/values.c namewidth, values->countername[j], j 295 tools/perf/util/values.c rawwidth, values->counterrawid[j], j 296 tools/perf/util/values.c countwidth, values->value[i][j]); j 132 tools/power/acpi/tools/acpidump/apmain.c int j; j 137 tools/power/acpi/tools/acpidump/apmain.c while ((j = j 139 tools/power/acpi/tools/acpidump/apmain.c switch (j) { j 556 tools/power/cpupower/lib/cpufreq.c unsigned int i, j = 0; j 563 tools/power/cpupower/lib/cpufreq.c if (j) { j 580 tools/power/cpupower/lib/cpufreq.c j = 1; j 204 tools/power/x86/intel-speed-select/isst-config.c int j, online, pkg_id, die_id = 0, skip = 0; j 222 tools/power/x86/intel-speed-select/isst-config.c for (j = 0; j < pkg_index; ++j) { j 223 tools/power/x86/intel-speed-select/isst-config.c if (max_packages[j] == pkg_id) { j 426 tools/power/x86/intel-speed-select/isst-config.c int j; j 428 tools/power/x86/intel-speed-select/isst-config.c for (j = 0; j < topo_max_cpus; ++j) { j 429 tools/power/x86/intel-speed-select/isst-config.c if (!CPU_ISSET_S(j, present_cpumask_size, present_cpumask)) j 432 tools/power/x86/intel-speed-select/isst-config.c if (cpu_map[j].pkg_id == pkg_id && j 433 tools/power/x86/intel-speed-select/isst-config.c cpu_map[j].die_id == die_id && j 434 tools/power/x86/intel-speed-select/isst-config.c cpu_map[j].punit_cpu_core == i) { j 435 tools/power/x86/intel-speed-select/isst-config.c CPU_SET_S(j, core_cpumask_size, j 370 tools/power/x86/intel-speed-select/isst-core.c int j; j 383 tools/power/x86/intel-speed-select/isst-core.c for (j = 0; j < 4; ++j) { j 384 tools/power/x86/intel-speed-select/isst-core.c bucket_info[j + (i * 4)].high_priority_cores_count = j 385 tools/power/x86/intel-speed-select/isst-core.c (resp >> (j * 8)) & 0xff; j 391 tools/power/x86/intel-speed-select/isst-core.c int j; j 404 tools/power/x86/intel-speed-select/isst-core.c for (j = 0; j < 4; ++j) { j 407 tools/power/x86/intel-speed-select/isst-core.c bucket_info[j + (i * 4)].sse_trl = j 408 tools/power/x86/intel-speed-select/isst-core.c (resp >> (j * 8)) & 0xff; j 411 tools/power/x86/intel-speed-select/isst-core.c bucket_info[j + (i * 4)].avx_trl = j 412 tools/power/x86/intel-speed-select/isst-core.c (resp >> (j * 8)) & 0xff; j 415 tools/power/x86/intel-speed-select/isst-core.c bucket_info[j + (i * 4)].avx512_trl = j 416 tools/power/x86/intel-speed-select/isst-core.c (resp >> (j * 8)) & 0xff; j 83 tools/power/x86/intel-speed-select/isst-display.c int i, j = 0; j 92 tools/power/x86/intel-speed-select/isst-display.c j += snprintf(&delimiters[j], sizeof(delimiters) - j, j 124 tools/power/x86/intel-speed-select/isst-display.c int j = 0; j 127 tools/power/x86/intel-speed-select/isst-display.c j += snprintf(&delimiters[j], sizeof(delimiters) - j, j 143 tools/power/x86/intel-speed-select/isst-display.c for (j = i; j > 0; --j) j 224 tools/power/x86/intel-speed-select/isst-display.c int j; j 228 tools/power/x86/intel-speed-select/isst-display.c for (j = 0; j < ISST_FACT_MAX_BUCKETS; ++j) { j 229 tools/power/x86/intel-speed-select/isst-display.c if (fact_bucket != 0xff && fact_bucket != j) j 232 tools/power/x86/intel-speed-select/isst-display.c if (!bucket_info[j].high_priority_cores_count) j 235 tools/power/x86/intel-speed-select/isst-display.c snprintf(header, sizeof(header), "bucket-%d", j); j 240 tools/power/x86/intel-speed-select/isst-display.c bucket_info[j].high_priority_cores_count); j 247 tools/power/x86/intel-speed-select/isst-display.c bucket_info[j].sse_trl * DISP_FREQ_MULTIPLIER); j 255 tools/power/x86/intel-speed-select/isst-display.c bucket_info[j].avx_trl * DISP_FREQ_MULTIPLIER); j 263 tools/power/x86/intel-speed-select/isst-display.c bucket_info[j].avx512_trl * j 322 tools/power/x86/intel-speed-select/isst-display.c int j; j 333 tools/power/x86/intel-speed-select/isst-display.c j = get_cpu_count(get_physical_die_id(cpu), j 335 tools/power/x86/intel-speed-select/isst-display.c snprintf(value, sizeof(value), "%d", j); j 391 tools/power/x86/intel-speed-select/isst-display.c for (j = 0; j < 8; ++j) { j 392 tools/power/x86/intel-speed-select/isst-display.c snprintf(header, sizeof(header), "bucket-%d", j); j 396 tools/power/x86/intel-speed-select/isst-display.c snprintf(value, sizeof(value), "%llu", (ctdp_level->buckets_info >> (j * 8)) & 0xff); j 402 tools/power/x86/intel-speed-select/isst-display.c ctdp_level->trl_sse_active_cores[j] * j 408 tools/power/x86/intel-speed-select/isst-display.c for (j = 0; j < 8; ++j) { j 409 tools/power/x86/intel-speed-select/isst-display.c snprintf(header, sizeof(header), "bucket-%d", j); j 413 tools/power/x86/intel-speed-select/isst-display.c snprintf(value, sizeof(value), "%llu", (ctdp_level->buckets_info >> (j * 8)) & 0xff); j 419 tools/power/x86/intel-speed-select/isst-display.c ctdp_level->trl_avx_active_cores[j] * j 426 tools/power/x86/intel-speed-select/isst-display.c for (j = 0; j < 8; ++j) { j 427 tools/power/x86/intel-speed-select/isst-display.c snprintf(header, sizeof(header), "bucket-%d", j); j 431 tools/power/x86/intel-speed-select/isst-display.c snprintf(value, sizeof(value), "%llu", (ctdp_level->buckets_info >> (j * 8)) & 0xff); j 437 tools/power/x86/intel-speed-select/isst-display.c ctdp_level->trl_avx_512_active_cores[j] * j 38 tools/testing/radix-tree/multiorder.c int i, j, err; j 51 tools/testing/radix-tree/multiorder.c for (j = 0; j < 256; j++) { j 53 tools/testing/radix-tree/multiorder.c if (j <= (index[i] | ((1 << order[i]) - 1))) j 56 tools/testing/radix-tree/multiorder.c xas_set(&xas, j); j 78 tools/testing/radix-tree/multiorder.c int i, j; j 97 tools/testing/radix-tree/multiorder.c for (j = 0; j < 256; j++) { j 103 tools/testing/radix-tree/multiorder.c if (j <= (index[k] | ((1 << order[k]) - 1))) j 107 tools/testing/radix-tree/multiorder.c xas_set(&xas, j); j 125 tools/testing/radix-tree/multiorder.c for (j = 0; j < 256; j++) { j 131 tools/testing/radix-tree/multiorder.c if (j <= (index[k] | ((1 << order[k]) - 1))) j 135 tools/testing/radix-tree/multiorder.c xas_set(&xas, j); j 122 tools/testing/radix-tree/regression1.c int j; j 124 tools/testing/radix-tree/regression1.c for (j = 0; j < 1000000; j++) { j 154 tools/testing/radix-tree/regression1.c int j; j 156 tools/testing/radix-tree/regression1.c for (j = 0; j < 100000000; j++) { j 204 tools/testing/radix-tree/test.c int j; j 218 tools/testing/radix-tree/test.c for (j = 0; j < RADIX_TREE_MAX_TAGS; j++) { j 219 tools/testing/radix-tree/test.c printf("tag %d: ", j); j 221 tools/testing/radix-tree/test.c printf("%016lx ", slot->tags[j][i]); j 235 tools/testing/radix-tree/test.c for (j = 0; j < RADIX_TREE_MAX_TAGS; j++) { j 236 tools/testing/radix-tree/test.c printf("tag %d: ", j); j 238 tools/testing/radix-tree/test.c printf("%016lx ", slot->tags[j][i]); j 365 tools/testing/selftests/bpf/prog_tests/core_reloc.c int j; j 367 tools/testing/selftests/bpf/prog_tests/core_reloc.c for (j = 0; j < test_case->input_len; j++) { j 369 tools/testing/selftests/bpf/prog_tests/core_reloc.c j, test_case->input[j]); j 371 tools/testing/selftests/bpf/prog_tests/core_reloc.c for (j = 0; j < test_case->output_len; j++) { j 373 tools/testing/selftests/bpf/prog_tests/core_reloc.c j, test_case->output[j], data.out[j]); j 7 tools/testing/selftests/bpf/prog_tests/map_lock.c int vars[17], i, j, rnd, key = 0; j 20 tools/testing/selftests/bpf/prog_tests/map_lock.c for (j = 2; j < 17; j++) { j 21 tools/testing/selftests/bpf/prog_tests/map_lock.c if (vars[j] == rnd) j 24 tools/testing/selftests/bpf/prog_tests/map_lock.c i, rnd, j, vars[j]); j 25 tools/testing/selftests/bpf/prog_tests/map_lock.c CHECK_FAIL(vars[j] != rnd); j 15 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c int i, j; j 97 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c for (j = 0; j < 20; ++j) j 98 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c sprintf(build_id + 2 * j, "%02x", j 99 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c id_offs[i].build_id[j] & 0xff); j 33 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c int i, j; j 132 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c for (j = 0; j < 20; ++j) j 133 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c sprintf(build_id + 2 * j, "%02x", j 134 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c id_offs[i].build_id[j] & 0xff); j 7 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c int i, j, bytes, efd, err, prog_fd[num_progs], pmu_fd[num_progs]; j 117 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c for (j = 0; j < i + 1; j++) j 118 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c if (CHECK(saved_prog_ids[j] != query->ids[j], j 121 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c j, saved_prog_ids[j], query->ids[j])) j 109 tools/testing/selftests/bpf/progs/btf_dump_test_case_syntax.c signal_t j; j 193 tools/testing/selftests/bpf/progs/btf_dump_test_case_syntax.c } j; j 16 tools/testing/selftests/bpf/progs/loop1.c int i, j, sum = 0, m; j 18 tools/testing/selftests/bpf/progs/loop1.c for (j = 0; j < 300; j++) j 19 tools/testing/selftests/bpf/progs/loop1.c for (i = 0; i < j; i++) { j 20 tools/testing/selftests/bpf/progs/loop1.c if (j & 1) j 23 tools/testing/selftests/bpf/progs/loop1.c m = j; j 173 tools/testing/selftests/bpf/test_lpm_map.c size_t i, j; j 199 tools/testing/selftests/bpf/test_lpm_map.c for (j = 0; j < t1->n_bits; ++j) j 200 tools/testing/selftests/bpf/test_lpm_map.c assert((t1->key[j / 8] & (1 << (7 - j % 8))) == j 201 tools/testing/selftests/bpf/test_lpm_map.c (t2->key[j / 8] & (1 << (7 - j % 8)))); j 211 tools/testing/selftests/bpf/test_lpm_map.c size_t i, j, n_matches, n_matches_after_delete, n_nodes, n_lookups; j 244 tools/testing/selftests/bpf/test_lpm_map.c for (j = 0; j < keysize; ++j) j 245 tools/testing/selftests/bpf/test_lpm_map.c value[j] = rand() & 0xff; j 257 tools/testing/selftests/bpf/test_lpm_map.c for (j = 0; j < keysize; ++j) j 258 tools/testing/selftests/bpf/test_lpm_map.c data[j] = rand() & 0xff; j 271 tools/testing/selftests/bpf/test_lpm_map.c for (j = 0; j < t->n_bits; ++j) j 272 tools/testing/selftests/bpf/test_lpm_map.c assert((t->key[j / 8] & (1 << (7 - j % 8))) == j 273 tools/testing/selftests/bpf/test_lpm_map.c (value[j / 8] & (1 << (7 - j % 8)))); j 285 tools/testing/selftests/bpf/test_lpm_map.c for (j = 0; j < i / 2; ++j) { j 294 tools/testing/selftests/bpf/test_lpm_map.c for (j = 0; j < keysize; ++j) j 295 tools/testing/selftests/bpf/test_lpm_map.c data[j] = rand() & 0xff; j 308 tools/testing/selftests/bpf/test_lpm_map.c for (j = 0; j < t->n_bits; ++j) j 309 tools/testing/selftests/bpf/test_lpm_map.c assert((t->key[j / 8] & (1 << (7 - j % 8))) == j 310 tools/testing/selftests/bpf/test_lpm_map.c (value[j / 8] & (1 << (7 - j % 8)))); j 704 tools/testing/selftests/bpf/test_lpm_map.c int i, j, ret, iter, key_size; j 715 tools/testing/selftests/bpf/test_lpm_map.c j = (iter < (info->iter / 2)) ? i : MAX_TEST_KEYS - i - 1; j 716 tools/testing/selftests/bpf/test_lpm_map.c key_p->prefixlen = info->key[j].prefixlen; j 717 tools/testing/selftests/bpf/test_lpm_map.c memcpy(key_p->data, &info->key[j].data, sizeof(__u32)); j 719 tools/testing/selftests/bpf/test_lpm_map.c __u32 value = j; j 129 tools/testing/selftests/bpf/test_maps.c int fd, i, j; j 132 tools/testing/selftests/bpf/test_maps.c for (j = 1; j <= 1 << 18; j <<= 1) { j 133 tools/testing/selftests/bpf/test_maps.c fd = bpf_create_map(BPF_MAP_TYPE_HASH, i, j, j 139 tools/testing/selftests/bpf/test_maps.c i, j, strerror(errno)); j 402 tools/testing/selftests/bpf/test_sockmap.c int j; j 404 tools/testing/selftests/bpf/test_sockmap.c for (j = 0; j < iov_length; j++) j 405 tools/testing/selftests/bpf/test_sockmap.c d[j] = k++; j 421 tools/testing/selftests/bpf/test_sockmap.c int i, j, bytes_cnt = 0; j 427 tools/testing/selftests/bpf/test_sockmap.c for (j = 0; j 428 tools/testing/selftests/bpf/test_sockmap.c j < msg->msg_iov[i].iov_len && size; j++) { j 429 tools/testing/selftests/bpf/test_sockmap.c if (d[j] != k++) { j 432 tools/testing/selftests/bpf/test_sockmap.c i, j, d[j], k - 1, d[j+1], k); j 39 tools/testing/selftests/bpf/test_tag.c int i, j = 0; j 43 tools/testing/selftests/bpf/test_tag.c BPF_LD_MAP_FD(j++ % BPF_REG_10, fd_map) j 140 tools/testing/selftests/bpf/test_verifier.c int i = 0, j, k = 0; j 144 tools/testing/selftests/bpf/test_verifier.c for (j = 0; j < PUSH_CNT; j++) { j 158 tools/testing/selftests/bpf/test_verifier.c for (j = 0; j < PUSH_CNT; j++) { j 78 tools/testing/selftests/powerpc/dscr/dscr_sysfs_test.c int i, j; j 82 tools/testing/selftests/powerpc/dscr/dscr_sysfs_test.c for (j = 0; j < DSCR_MAX; j++) { j 83 tools/testing/selftests/powerpc/dscr/dscr_sysfs_test.c set_default_dscr(j); j 84 tools/testing/selftests/powerpc/dscr/dscr_sysfs_test.c if (check_all_cpu_dscr_defaults(j)) j 57 tools/testing/selftests/powerpc/dscr/dscr_sysfs_thread_test.c int i, j; j 61 tools/testing/selftests/powerpc/dscr/dscr_sysfs_thread_test.c for (j = 0; j < DSCR_MAX; j++) { j 62 tools/testing/selftests/powerpc/dscr/dscr_sysfs_thread_test.c set_default_dscr(j); j 63 tools/testing/selftests/powerpc/dscr/dscr_sysfs_thread_test.c if (check_cpu_dscr_thread(j)) j 77 tools/testing/selftests/powerpc/math/fpu_signal.c int i, j, rc, threads; j 100 tools/testing/selftests/powerpc/math/fpu_signal.c for (j = 0; j < threads; j++) { j 101 tools/testing/selftests/powerpc/math/fpu_signal.c pthread_kill(tids[j], SIGUSR1); j 44 tools/testing/selftests/powerpc/math/vmx_preempt.c int i, j; j 47 tools/testing/selftests/powerpc/math/vmx_preempt.c for (j = 0; j < 4; j++) j 48 tools/testing/selftests/powerpc/math/vmx_preempt.c varray[i][j] = rand(); j 52 tools/testing/selftests/powerpc/math/vmx_signal.c int j; j 61 tools/testing/selftests/powerpc/math/vmx_signal.c for (j = 20; j < 32; j++) { j 62 tools/testing/selftests/powerpc/math/vmx_signal.c printf("%d | 0x%04x%04x%04x%04x | 0x%04x%04x%04x%04x\n", j, mc->v_regs->vrregs[j][0], j 63 tools/testing/selftests/powerpc/math/vmx_signal.c mc->v_regs->vrregs[j][1], mc->v_regs->vrregs[j][2], mc->v_regs->vrregs[j][3], j 64 tools/testing/selftests/powerpc/math/vmx_signal.c varray[j - 20][0], varray[j - 20][1], varray[j - 20][2], varray[j - 20][3]); j 74 tools/testing/selftests/powerpc/math/vmx_signal.c int i, j; j 85 tools/testing/selftests/powerpc/math/vmx_signal.c for (j = 0; j < 4; j++) j 86 tools/testing/selftests/powerpc/math/vmx_signal.c varray[i][j] = rand(); j 95 tools/testing/selftests/powerpc/math/vmx_signal.c int i, j, rc, threads; j 121 tools/testing/selftests/powerpc/math/vmx_signal.c for (j = 0; j < threads; j++) { j 122 tools/testing/selftests/powerpc/math/vmx_signal.c pthread_kill(tids[j], SIGUSR1); j 74 tools/testing/selftests/powerpc/math/vsx_preempt.c int i, j; j 78 tools/testing/selftests/powerpc/math/vsx_preempt.c for (j = 0; j < 4; j++) { j 79 tools/testing/selftests/powerpc/math/vsx_preempt.c varray[i][j] = rand(); j 81 tools/testing/selftests/powerpc/math/vsx_preempt.c if (varray[i][j] == 0) j 82 tools/testing/selftests/powerpc/math/vsx_preempt.c j--; j 96 tools/testing/selftests/powerpc/mm/subpage_prot.c long i, j, pages, err; j 121 tools/testing/selftests/powerpc/mm/subpage_prot.c for (j = 0; j < 16; j++, addr += 0x1000) { j 123 tools/testing/selftests/powerpc/mm/subpage_prot.c check_faulted(addr, i, j, 0); j 125 tools/testing/selftests/powerpc/mm/subpage_prot.c check_faulted(addr, i, j, 1); j 77 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c int i,j; j 122 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c j = *k; j 123 tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c *k = j; j 38 tools/testing/selftests/powerpc/security/rfi_flush.c for (unsigned long j = 0; j < zero_size; j += CACHELINE_SIZE) j 39 tools/testing/selftests/powerpc/security/rfi_flush.c load(p + j); j 94 tools/testing/selftests/powerpc/stringloops/memcmp.c unsigned long j; j 99 tools/testing/selftests/powerpc/stringloops/memcmp.c for (j = 0; j < alloc_size; j++) j 100 tools/testing/selftests/powerpc/stringloops/memcmp.c s1[j] = random(); j 120 tools/testing/selftests/powerpc/stringloops/memcmp.c unsigned long j; j 125 tools/testing/selftests/powerpc/stringloops/memcmp.c for (j = 0; j < alloc_size; j++) j 126 tools/testing/selftests/powerpc/stringloops/memcmp.c s1[j] = random(); j 133 tools/testing/selftests/powerpc/stringloops/memcmp.c for (j = 0; j < comp_size / 8; j++) { j 76 tools/testing/selftests/powerpc/stringloops/strlen.c unsigned long j; j 78 tools/testing/selftests/powerpc/stringloops/strlen.c for (j = 0; j < SIZE; j++) { j 84 tools/testing/selftests/powerpc/stringloops/strlen.c s[j] = c; j 86 tools/testing/selftests/powerpc/stringloops/strlen.c for (j = 0; j < sizeof(long); j++) { j 87 tools/testing/selftests/powerpc/stringloops/strlen.c s[SIZE - 1 - j] = 0; j 58 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vmx.c int i, j; j 70 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vmx.c for (j = 0; j < 4; j++) j 71 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vmx.c printf("%08x", ucp->uc_mcontext.v_regs->vrregs[VMX20 + i][j]); j 74 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vmx.c for (j = 0; j < 4; j++) j 75 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vmx.c printf("%08x", vms[i][j]); j 88 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vmx.c for (j = 0; j < 4; j++) j 89 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vmx.c printf("%08x", tm_ucp->uc_mcontext.v_regs->vrregs[VMX20 + i][j]); j 92 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vmx.c for (j = 0; j < 4; j++) j 93 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vmx.c printf("%08x", vms[NV_VMX_REGS + i][j]); j 59 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vsx.c int i, j; j 114 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vsx.c for (j = 0; j < 16; j++) j 115 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vsx.c printf("%02x", vsx[j]); j 117 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vsx.c for (j = 0; j < 4; j++) j 118 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vsx.c printf("%08x", vsxs[i][j]); j 138 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vsx.c for (j = 0; j < 16; j++) j 139 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vsx.c printf("%02x", vsx_tm[j]); j 141 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vsx.c for (j = 0; j < 4; j++) j 142 tools/testing/selftests/powerpc/tm/tm-signal-context-chk-vsx.c printf("%08x", vsxs[NV_VSX_REGS + i][j]); j 70 tools/testing/selftests/ptp/testptp.c int err, i, j; j 76 tools/testing/selftests/ptp/testptp.c for (j = 0; j < 5; j++) { j 77 tools/testing/selftests/ptp/testptp.c extts_request.flags = enable_flags[j]; j 108 tools/testing/selftests/ptrace/peeksiginfo.c int i, j, ret, exit_code = -1; j 131 tools/testing/selftests/ptrace/peeksiginfo.c for (j = 0; j < ret; j++, i++) { j 132 tools/testing/selftests/ptrace/peeksiginfo.c if (siginfo[j].si_code == si_code && j 133 tools/testing/selftests/ptrace/peeksiginfo.c siginfo[j].si_int == i) j 137 tools/testing/selftests/ptrace/peeksiginfo.c shared, i, siginfo[j].si_code, siginfo[j].si_int); j 239 tools/testing/selftests/rseq/basic_percpu_ops_test.c int i, j; j 252 tools/testing/selftests/rseq/basic_percpu_ops_test.c for (j = 1; j <= 100; j++) { j 255 tools/testing/selftests/rseq/basic_percpu_ops_test.c expected_sum += j; j 259 tools/testing/selftests/rseq/basic_percpu_ops_test.c node->data = j; j 621 tools/testing/selftests/rseq/param_test.c int i, j, ret; j 634 tools/testing/selftests/rseq/param_test.c for (j = 1; j <= 100; j++) { j 637 tools/testing/selftests/rseq/param_test.c expected_sum += j; j 641 tools/testing/selftests/rseq/param_test.c node->data = j; j 812 tools/testing/selftests/rseq/param_test.c int i, j, ret; j 831 tools/testing/selftests/rseq/param_test.c for (j = 1; j <= BUFFER_ITEM_PER_CPU; j++) { j 834 tools/testing/selftests/rseq/param_test.c expected_sum += j; j 845 tools/testing/selftests/rseq/param_test.c node->data = j; j 846 tools/testing/selftests/rseq/param_test.c buffer.c[i].array[j - 1] = node; j 1027 tools/testing/selftests/rseq/param_test.c int i, j, ret; j 1046 tools/testing/selftests/rseq/param_test.c for (j = 1; j <= MEMCPY_BUFFER_ITEM_PER_CPU; j++) { j 1047 tools/testing/selftests/rseq/param_test.c expected_sum += 2 * j + 1; j 1056 tools/testing/selftests/rseq/param_test.c buffer.c[i].array[j - 1].data1 = j; j 1057 tools/testing/selftests/rseq/param_test.c buffer.c[i].array[j - 1].data2 = j + 1; j 241 tools/testing/selftests/timers/freq-step.c int i, j, fails = 0; j 250 tools/testing/selftests/timers/freq-step.c for (j = 0; j < 5; j++) { j 43 tools/testing/selftests/timers/threadtest.c int i, j; j 63 tools/testing/selftests/timers/threadtest.c for (j = 0; j < size; j++) { j 64 tools/testing/selftests/timers/threadtest.c if (j == i) j 66 tools/testing/selftests/timers/threadtest.c printf("%lu:%lu\n", list[j].tv_sec, list[j].tv_nsec); j 67 tools/testing/selftests/timers/threadtest.c if (j == i+1) j 366 tools/testing/selftests/x86/ldt_gdt.c for (int j = 0; j < i; j++) { j 367 tools/testing/selftests/x86/ldt_gdt.c check_valid_segment(j, 1, AR_DPL3 | AR_TYPE_XOCODE | j 368 tools/testing/selftests/x86/ldt_gdt.c AR_S | AR_DB | AR_AVL, j, false); j 283 tools/thermal/tmon/sysfs.c int i, j, n, k = 0; j 305 tools/thermal/tmon/sysfs.c j = 0; /* index for cdev */ j 320 tools/thermal/tmon/sysfs.c &ptdata.tzi[k], i, j)) j 321 tools/thermal/tmon/sysfs.c j++; /* increment cdev index */ j 174 tools/thermal/tmon/tmon.c int j; j 177 tools/thermal/tmon/tmon.c for (j = 0; j < 32; j++) j 178 tools/thermal/tmon/tmon.c binding_str[j] = (ptdata.tzi[i].cdev_binding & 1<<j) ? j 185 tools/thermal/tmon/tmon.c for (j = 0; j < ptdata.tzi[i].nr_trip_pts; j++) { j 186 tools/thermal/tmon/tmon.c fprintf(tmon_log, "#\tTP%02d type:%s, temp:%lu\n", j, j 187 tools/thermal/tmon/tmon.c trip_type_name[ptdata.tzi[i].tp[j].type], j 188 tools/thermal/tmon/tmon.c ptdata.tzi[i].tp[j].temp); j 201 tools/thermal/tmon/tui.c int i, j, x, y = 0; j 211 tools/thermal/tmon/tui.c for (j = 0; j < ptdata.nr_cooling_dev; j++) { j 215 tools/thermal/tmon/tui.c mvwprintw(cooling_device_window, j + 2, 1, j 217 tools/thermal/tmon/tui.c ptdata.cdi[j].instance, j 218 tools/thermal/tmon/tui.c ptdata.cdi[j].type, j 219 tools/thermal/tmon/tui.c ptdata.cdi[j].cur_state, j 220 tools/thermal/tmon/tui.c ptdata.cdi[j].max_state); j 226 tools/thermal/tmon/tui.c for (j = 0; j < ptdata.nr_cooling_dev; j++) { j 228 tools/thermal/tmon/tui.c y = j; j 237 tools/thermal/tmon/tui.c cdev_inst = ptdata.cdi[j].instance; j 247 tools/thermal/tmon/tui.c i, j, trip_binding, y, j 278 tools/thermal/tmon/tui.c int j, x = 0, y = 0; j 294 tools/thermal/tmon/tui.c for (j = 0; j <= ptdata.nr_cooling_dev; j++) { j 295 tools/thermal/tmon/tui.c y = j % diag_dev_rows(); j 296 tools/thermal/tmon/tui.c if (y == 0 && j != 0) j 298 tools/thermal/tmon/tui.c if (j == ptdata.nr_cooling_dev) j 300 tools/thermal/tmon/tui.c mvwprintw(w, y+1, x+1, "%C-%.12s", 'A'+j, "Set Temp"); j 302 tools/thermal/tmon/tui.c mvwprintw(w, y+1, x+1, "%C-%.10s-%2d", 'A'+j, j 303 tools/thermal/tmon/tui.c ptdata.cdi[j].type, ptdata.cdi[j].instance); j 551 tools/thermal/tmon/tui.c int j; j 554 tools/thermal/tmon/tui.c for (j = 0; j < ptdata.tzi[tz].nr_trip_pts; j++) { j 555 tools/thermal/tmon/tui.c x = ptdata.tzi[tz].tp[j].temp / 1000; j 557 tools/thermal/tmon/tui.c "%c%d", trip_type_to_char(ptdata.tzi[tz].tp[j].type), j 560 tools/thermal/tmon/tui.c tz, j, ptdata.tzi[tz].tp[j].temp); j 603 tools/thermal/tmon/tui.c int i, j; j 629 tools/thermal/tmon/tui.c for (j = ptdata.tzi[i].nr_trip_pts - 1; j >= 0; j--) { j 636 tools/thermal/tmon/tui.c tp_pos = ptdata.tzi[i].nr_trip_pts - j - 1; j 638 tools/thermal/tmon/tui.c type = trip_type_to_char(ptdata.tzi[i].tp[j].type); j 643 tools/thermal/tmon/tui.c inst, j, type); j 237 tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c unsigned i, j; j 331 tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c for (j = 0; j < iobuf[i].cnt; ++j) { j 332 tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c io_prep_pwrite(iobuf[i].iocb[j], ep1, j 333 tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c iobuf[i].buf[j], j 336 tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c iobuf[i].iocb[j]->u.c.flags |= IOCB_FLAG_RESFD; j 337 tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c iobuf[i].iocb[j]->u.c.resfd = evfd; j 52 tools/usb/usbip/src/usbip_list.c int rc, j; j 104 tools/usb/usbip/src/usbip_list.c for (j = 0; j < udev.bNumInterfaces; j++) { j 108 tools/usb/usbip/src/usbip_list.c j); j 118 tools/usb/usbip/src/usbip_list.c printf("%11s: %2d - %s\n", "", j, class_name); j 163 tools/usb/usbip/src/usbipd.c struct list_head *j; j 177 tools/usb/usbip/src/usbipd.c list_for_each(j, &driver->edev_list) { j 178 tools/usb/usbip/src/usbipd.c edev = list_entry(j, struct usbip_exported_device, node); j 197 tools/usb/usbip/src/usbipd.c list_for_each(j, &driver->edev_list) { j 198 tools/usb/usbip/src/usbipd.c edev = list_entry(j, struct usbip_exported_device, node); j 331 tools/vm/page-types.c size_t i, j; j 333 tools/vm/page-types.c for (i = 0, j = 0; i < ARRAY_SIZE(page_flag_names); i++) { j 340 tools/vm/page-types.c buf[j++] = present ? page_flag_names[i][0] : '_'; j 821 tools/vm/page-types.c size_t i, j; j 860 tools/vm/page-types.c for (i = 0, j = 0; i < ARRAY_SIZE(page_flag_names); i++) { j 865 tools/vm/page-types.c if (++j > 3) { j 866 tools/vm/page-types.c j = 0; j 176 virt/kvm/irqchip.c u32 i, j, nr_rt_entries = 0; j 193 virt/kvm/irqchip.c for (j = 0; j < KVM_IRQCHIP_NUM_PINS; j++) j 194 virt/kvm/irqchip.c new->chip[i][j] = -1;