| /linux-6.15/fs/bcachefs/ |
| H A D | journal.c | 35 return atomic64_read(&j->seq) - j->seq_ondisk; in nr_unwritten_journal_entries() 170 j->err_seq = journal_cur_seq(j); in journal_error_check_stuck() 339 j->err_seq = journal_cur_seq(j); in bch2_journal_halt() 350 j->err_seq = journal_cur_seq(j); in bch2_journal_halt_locked() 438 (journal_cur_seq(j) == j->flushed_seq_ondisk in journal_entry_open() 532 wait_event(j->wait, journal_quiesced(j)); in journal_quiesce() 554 j->free_buf_size >= j->buf_size_want) in journal_buf_prealloc() 822 if (j->err_seq && seq >= j->err_seq) { in bch2_journal_flush_seq_async() 1484 j->reservations.idx = journal_cur_seq(j); in bch2_fs_journal_start() 1569 for (unsigned j = 0; j < le64_to_cpu(journal_buckets_v2->d[i].nr); j++) in bch2_dev_journal_init() local [all …]
|
| H A D | journal_reclaim.c | 64 bool low_on_pin = fifo_free(&j->pin) < j->pin.size / 4; in bch2_journal_set_watermark() 79 journal_wake(j); in bch2_journal_set_watermark() 237 j->space[i] = __journal_space_available(j, nr_devs_want, i); in bch2_journal_space_available() 263 journal_wake(j); in bch2_journal_space_available() 279 spin_lock(&j->lock); in should_discard_bucket() 335 j->pin.front <= j->seq_ondisk && in bch2_journal_reclaim_fast() 337 j->pin.front++; in bch2_journal_reclaim_fast() 469 journal_wake(j); in bch2_journal_pin_copy() 492 journal_wake(j); in bch2_journal_pin_set() 506 wait_event(j->pin_flush_wait, j->flush_in_progress != pin); in bch2_journal_pin_flush() [all …]
|
| H A D | journal.h | 120 wake_up(&j->wait); in journal_wake() 128 return j->pin.front; in journal_last_seq() 133 return atomic64_read(&j->seq); in journal_cur_seq() 138 return j->seq_ondisk + 1; in journal_last_unwritten_seq() 147 return j->buf + idx; in journal_cur_buf() 254 if (j->seq != j->last_seq) in journal_entry_empty() 257 vstruct_for_each(j, i) in journal_entry_empty() 300 spin_lock(&j->lock); in bch2_journal_buf_put() 302 spin_unlock(&j->lock); in bch2_journal_buf_put() 304 wake_up(&j->wait); in bch2_journal_buf_put() [all …]
|
| /linux-6.15/drivers/staging/media/atomisp/pci/isp/kernels/eed1_8/ |
| H A D | ia_css_eed1_8.host.c | 121 for (j = 0; j < IA_CSS_NUMBER_OF_DEW_ENHANCE_SEGMENTS; j++) { in ia_css_eed1_8_vmem_encode() 126 for (j = 1; j < IA_CSS_NUMBER_OF_DEW_ENHANCE_SEGMENTS; j++) { in ia_css_eed1_8_vmem_encode() 143 for (j = 1; j < NUMBER_OF_CHGRINV_POINTS; j++) { in ia_css_eed1_8_vmem_encode() 147 for (j = 1; j < NUMBER_OF_TCINV_POINTS; j++) { in ia_css_eed1_8_vmem_encode() 148 assert(tcinv_x[j] > tcinv_x[j - 1]); in ia_css_eed1_8_vmem_encode() 151 for (j = 1; j < NUMBER_OF_FCINV_POINTS; j++) { in ia_css_eed1_8_vmem_encode() 165 for (j = 0; j < IA_CSS_NUMBER_OF_DEW_ENHANCE_SEGMENTS; j++) { in ia_css_eed1_8_vmem_encode() 172 for (j = 0; j < (IA_CSS_NUMBER_OF_DEW_ENHANCE_SEGMENTS - 1); j++) { in ia_css_eed1_8_vmem_encode() 190 for (j = 0; j < NUMBER_OF_CHGRINV_POINTS; j++) { in ia_css_eed1_8_vmem_encode() 197 for (j = 0; j < NUMBER_OF_TCINV_POINTS; j++) { in ia_css_eed1_8_vmem_encode() [all …]
|
| /linux-6.15/tools/testing/selftests/net/ |
| H A D | reuseaddr_ports_exhausted.c | 84 int i, j, fd[2]; in TEST() local 89 for (j = 0; j < 2; j++) in TEST() 90 fd[j] = bind_port(_metadata, opts->reuseaddr[j], opts->reuseport[j]); in TEST() 95 for (j = 0; j < 2; j++) in TEST() 97 close(fd[j]); in TEST() 109 for (j = 0; j < 2; j++) in TEST() 110 fd[j] = bind_port(_metadata, opts->reuseaddr[j], opts->reuseport[j]); in TEST() 120 for (j = 0; j < 2; j++) in TEST() 135 for (j = 0; j < 2; j++) { in TEST() 139 fd[j] = bind_port(_metadata, opts->reuseaddr[j], opts->reuseport[j]); in TEST() [all …]
|
| /linux-6.15/tools/perf/util/ |
| H A D | levenshtein.c | 51 int i, j; in levenshtein() local 53 for (j = 0; j <= len2; j++) in levenshtein() 54 row1[j] = j * a; in levenshtein() 59 for (j = 0; j < len2; j++) { in levenshtein() 61 row2[j + 1] = row1[j] + s * (string1[i] != string2[j]); in levenshtein() 65 row2[j + 1] > row0[j - 1] + w) in levenshtein() 66 row2[j + 1] = row0[j - 1] + w; in levenshtein() 68 if (row2[j + 1] > row1[j + 1] + d) in levenshtein() 69 row2[j + 1] = row1[j + 1] + d; in levenshtein() 71 if (row2[j + 1] > row2[j] + a) in levenshtein() [all …]
|
| H A D | cs-etm-base.c | 64 int i = *offset, j, nr_params = 0, fmt_offset; in cs_etm__print_cpu_metadata_v0() local 84 for (j = fmt_offset; j < nr_params + fmt_offset; j++, i++) in cs_etm__print_cpu_metadata_v0() 90 for (j = fmt_offset; j < nr_params + fmt_offset; j++, i++) in cs_etm__print_cpu_metadata_v0() 99 int i = *offset, j, total_params = 0; in cs_etm__print_cpu_metadata_v1() local 107 for (j = 0; j < total_params; j++, i++) { in cs_etm__print_cpu_metadata_v1() 109 if (j >= CS_ETM_PRIV_MAX) in cs_etm__print_cpu_metadata_v1() 110 fprintf(stdout, param_unk_fmt, j, val[i]); in cs_etm__print_cpu_metadata_v1() 115 for (j = 0; j < total_params; j++, i++) { in cs_etm__print_cpu_metadata_v1() 117 if (j >= CS_ETMV4_PRIV_MAX) in cs_etm__print_cpu_metadata_v1() 123 for (j = 0; j < total_params; j++, i++) { in cs_etm__print_cpu_metadata_v1() [all …]
|
| H A D | values.c | 130 for (int j = values->counters_max; j < counters_max; j++) in perf_read_values__enlarge_counters() local 188 int i, j; in perf_read_values__display_pretty() local 199 for (j = 0; j < values->num_counters; j++) in perf_read_values__display_pretty() 210 for (j = 0; j < values->num_counters; j++) { in perf_read_values__display_pretty() 218 for (j = 0; j < values->num_counters; j++) in perf_read_values__display_pretty() 225 for (j = 0; j < values->num_counters; j++) in perf_read_values__display_pretty() 227 counterwidth[j], values->value[i][j]); in perf_read_values__display_pretty() 237 int i, j; in perf_read_values__display_raw() local 253 for (j = 0; j < values->num_counters; j++) { in perf_read_values__display_raw() 262 for (j = 0; j < values->num_counters; j++) { in perf_read_values__display_raw() [all …]
|
| /linux-6.15/lib/raid6/ |
| H A D | mktables.c | 55 int i, j, k; in main() local 70 for (j = 0; j < 256; j += 8) { in main() 89 for (j = 0; j < 16; j += 8) { in main() 95 for (j = 0; j < 16; j += 8) { in main() 114 for (j = 0; j < 8; j++) { in main() 115 exptbl[i + j] = v; in main() 132 for (j = 0; j < 8; j++) { in main() 135 if (exptbl[k] == (i + j)) { in main() 152 for (j = 0; j < 8; j++) { in main() 153 invtbl[i + j] = v = gfpow(i + j, 254); in main() [all …]
|
| /linux-6.15/drivers/video/logo/ |
| H A D | pnmtologo.c | 174 for (j = 0; j < logo_width; j++) in read_image() 183 for (j = 0; j < logo_width; j++) in read_image() 192 for (j = 0; j < logo_width; j++) { in read_image() 284 for (j = 0; j < logo_width; j++) in write_logo_mono() 293 for (j = 0; j < logo_width;) { in write_logo_mono() 312 for (j = 0; j < logo_width; j++) { in write_logo_vga16() 327 for (j = 0; j < logo_width; j++) { in write_logo_vga16() 351 for (j = 0; j < logo_width; j++) { in write_logo_clut224() 369 for (j = 0; j < logo_width; j++) { in write_logo_clut224() 397 for (j = 0; j < logo_width; j++) in write_logo_gray256() [all …]
|
| /linux-6.15/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_csr.c | 65 u32 i, j; in fbnic_csr_get_regs_rpc_ram() local 72 for (j = 0; j < FBNIC_RPC_TCAM_ACT_DW_PER_ENTRY; j++) in fbnic_csr_get_regs_rpc_ram() 78 for (j = 0; j < FBNIC_RPC_TCAM_MACDA_DW_PER_ENTRY; j++) in fbnic_csr_get_regs_rpc_ram() 84 for (j = 0; j < FBNIC_RPC_TCAM_OUTER_IPSRC_DW_PER_ENTRY; j++) in fbnic_csr_get_regs_rpc_ram() 90 for (j = 0; j < FBNIC_RPC_TCAM_OUTER_IPDST_DW_PER_ENTRY; j++) in fbnic_csr_get_regs_rpc_ram() 96 for (j = 0; j < FBNIC_RPC_TCAM_IPSRC_DW_PER_ENTRY; j++) in fbnic_csr_get_regs_rpc_ram() 102 for (j = 0; j < FBNIC_RPC_TCAM_IPDST_DW_PER_ENTRY; j++) in fbnic_csr_get_regs_rpc_ram() 108 for (j = 0; j < FBNIC_RPC_RSS_TBL_DW_PER_ENTRY; j++) in fbnic_csr_get_regs_rpc_ram() 119 int i, j; in fbnic_csr_get_regs() local 128 for (j = bound->start; j < bound->end; j++) in fbnic_csr_get_regs() [all …]
|
| /linux-6.15/drivers/acpi/acpica/ |
| H A D | utbuffer.c | 37 u32 j; in acpi_ut_dump_buffer() local 64 for (j = 0; j < 16;) { in acpi_ut_dump_buffer() 70 j += display; in acpi_ut_dump_buffer() 109 j += display; in acpi_ut_dump_buffer() 118 for (j = 0; j < 16; j++) { in acpi_ut_dump_buffer() 128 if (j == 0) { in acpi_ut_dump_buffer() 209 u32 j; in acpi_ut_dump_buffer_to_file() local 232 for (j = 0; j < 16;) { in acpi_ut_dump_buffer_to_file() 238 j += display; in acpi_ut_dump_buffer_to_file() 277 j += display; in acpi_ut_dump_buffer_to_file() [all …]
|
| /linux-6.15/lib/ |
| H A D | interval_tree_test.c | 77 for (j = 0; j < nnodes; j++) in basic_check() 79 for (j = 0; j < nnodes; j++) in basic_check() 102 for (j = 0; j < nnodes; j++) in search_check() 109 for (j = 0; j < nsearches; j++) { in search_check() 124 for (j = 0; j < nnodes; j++) in search_check() 156 for (j = 0; j < nnodes; j++) in intersection_range_check() 172 for (j = 0; j < nnodes; j++) { in intersection_range_check() 188 for (j = 0; j < nnodes; j++) in intersection_range_check() 255 for (j = 0; j < nnodes; j++) in span_iteration_check() 262 for (j = 0; j < nnodes; j++) in span_iteration_check() [all …]
|
| H A D | rbtree_test.c | 256 for (j = 0; j < nnodes; j++) in basic_check() 258 for (j = 0; j < nnodes; j++) in basic_check() 272 for (j = 0; j < nnodes; j++) in basic_check() 274 for (j = 0; j < nnodes; j++) in basic_check() 331 for (j = 0; j < nnodes; j++) { in basic_check() 335 for (j = 0; j < nnodes; j++) { in basic_check() 357 for (j = 0; j < nnodes; j++) in augmented_check() 359 for (j = 0; j < nnodes; j++) in augmented_check() 372 for (j = 0; j < nnodes; j++) in augmented_check() 374 for (j = 0; j < nnodes; j++) in augmented_check() [all …]
|
| /linux-6.15/lib/reed_solomon/ |
| H A D | decode_rs.c | 64 for (j = 1; j < len; j++) { 78 for (j = 0; j < nroots; j++) { 115 for (j = i + 1; j > 0; j--) { 202 for (j = deg_lambda; j > 0; j--) { 204 reg[j] = rs_modnn(rs, reg[j] + j); 239 for (j = i; j >= 0; j--) { 240 if ((s[i - j] != nn) && (lambda[j] != nn)) 242 alpha_to[rs_modnn(rs, s[i - j] + lambda[j])]; 253 for (j = count - 1; j >= 0; j--) { 291 for (j = 0; j < count; j++) { [all …]
|
| /linux-6.15/tools/testing/selftests/arm64/mte/ |
| H A D | check_buffer_fill.c | 43 for (j = 0; j < sizes[i]; j++) in check_buffer_by_byte() 48 for (j = 0; j < sizes[i] && !err; j++) { in check_buffer_by_byte() 91 for (j = 0; j < sizes[i]; j++) { in check_buffer_underflow_by_byte() 110 for (j = 0 ; j < underflow_range; j++) { in check_buffer_underflow_by_byte() 128 for (j = last_index ; j < 0 ; j++) { in check_buffer_underflow_by_byte() 189 for (j = 0; j < sizes[i]; j++) { in check_buffer_overflow_by_byte() 211 for (j = 0 ; j < overflow_size; j++) { in check_buffer_overflow_by_byte() 229 for (j = tagged_size ; j < last_index; j++) { in check_buffer_overflow_by_byte() 244 for (j = 0 ; j < overflow_size; j++) { in check_buffer_overflow_by_byte() 319 for (j = 0; j < size; j++) { in check_buffer_by_block_iterate() [all …]
|
| /linux-6.15/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
| H A D | channel.c | 236 for (j = 0; j < WL_TX_POWER_CCK_NUM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint() 240 for (j = 0; j < WL_TX_POWER_OFDM_NUM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint() 244 for (j = 0; j < BRCMS_NUM_RATES_OFDM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint() 249 for (j = 0; j < BRCMS_NUM_RATES_OFDM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint() 254 for (j = 0; j < BRCMS_NUM_RATES_OFDM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint() 259 for (j = 0; j < BRCMS_NUM_RATES_MCS_1_STREAM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint() 264 for (j = 0; j < BRCMS_NUM_RATES_MCS_1_STREAM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint() 269 for (j = 0; j < BRCMS_NUM_RATES_MCS_1_STREAM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint() 274 for (j = 0; j < BRCMS_NUM_RATES_MCS_2_STREAM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint() 279 for (j = 0; j < BRCMS_NUM_RATES_MCS_1_STREAM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint() [all …]
|
| /linux-6.15/drivers/media/platform/verisilicon/ |
| H A D | rockchip_av1_filmgrain.c | 245 s32 i, j; in rockchip_av1_generate_luma_grain_block() local 248 for (j = 0; j < 82; j++) { in rockchip_av1_generate_luma_grain_block() 264 for (j = 3; j < 82 - 3; j++) { in rockchip_av1_generate_luma_grain_block() 307 s32 i, j; in rockchip_av1_generate_chroma_grain_block() local 312 for (j = 0; j < 44; j++) { in rockchip_av1_generate_chroma_grain_block() 316 (*cb_grain_block)[i][j] = in rockchip_av1_generate_chroma_grain_block() 330 for (j = 0; j < 44; j++) { in rockchip_av1_generate_chroma_grain_block() 334 (*cr_grain_block)[i][j] = in rockchip_av1_generate_chroma_grain_block() 346 for (j = 3; j < 44 - 3; j++) { in rockchip_av1_generate_chroma_grain_block() 388 (*cb_grain_block)[i][j] = in rockchip_av1_generate_chroma_grain_block() [all …]
|
| /linux-6.15/kernel/ |
| H A D | range.c | 67 int i, j; in subtract_range() local 72 for (j = 0; j < az; j++) { in subtract_range() 73 if (!range[j].end) in subtract_range() 76 if (start <= range[j].start && end >= range[j].end) { in subtract_range() 78 range[j].end = 0; in subtract_range() 82 if (start <= range[j].start && end < range[j].end && in subtract_range() 89 if (start > range[j].start && end >= range[j].end && in subtract_range() 95 if (start > range[j].start && end < range[j].end) { in subtract_range() 133 for (j = k; j > i; j--) { in clean_sort_range() 135 k = j; in clean_sort_range() [all …]
|
| /linux-6.15/tools/testing/selftests/powerpc/math/ |
| H A D | vmx_signal.c | 52 int j; in signal_vmx_sig() local 61 for (j = 20; j < 32; j++) { in signal_vmx_sig() 62 printf("%d | 0x%04x%04x%04x%04x | 0x%04x%04x%04x%04x\n", j, mc->v_regs->vrregs[j][0], in signal_vmx_sig() 63 mc->v_regs->vrregs[j][1], mc->v_regs->vrregs[j][2], mc->v_regs->vrregs[j][3], in signal_vmx_sig() 64 varray[j - 20][0], varray[j - 20][1], varray[j - 20][2], varray[j - 20][3]); in signal_vmx_sig() 74 int i, j; in signal_vmx_c() local 85 for (j = 0; j < 4; j++) in signal_vmx_c() 86 varray[i][j] = rand(); in signal_vmx_c() 95 int i, j, rc, threads; in test_signal_vmx() local 124 for (j = 0; j < threads; j++) { in test_signal_vmx() [all …]
|
| /linux-6.15/arch/x86/tools/ |
| H A D | gen-insn-attr-x86.awk | 248 for (j = 1; j <= count; j++) { 249 i = opnd[j] 386 for (j = 0; j < max_lprefix; j++) 388 print " ["i"]["j"] = "etable[i,j]"," 395 for (j = 0; j < max_lprefix; j++) 397 print " ["i"]["j"] = "gtable[i,j]"," 404 for (j = 0; j < max_lprefix; j++) 406 print " ["i"]["j"] = "atable[i,j]"," 432 for (j = 0; j < max_lprefix; j++) 440 for (j = 0; j < max_lprefix; j++) [all …]
|
| /linux-6.15/tools/arch/x86/tools/ |
| H A D | gen-insn-attr-x86.awk | 248 for (j = 1; j <= count; j++) { 249 i = opnd[j] 386 for (j = 0; j < max_lprefix; j++) 388 print " ["i"]["j"] = "etable[i,j]"," 395 for (j = 0; j < max_lprefix; j++) 397 print " ["i"]["j"] = "gtable[i,j]"," 404 for (j = 0; j < max_lprefix; j++) 406 print " ["i"]["j"] = "atable[i,j]"," 432 for (j = 0; j < max_lprefix; j++) 440 for (j = 0; j < max_lprefix; j++) [all …]
|
| /linux-6.15/lib/raid6/test/ |
| H A D | test.c | 30 int i, j; in makedata() local 33 for (j = 0; j < PAGE_SIZE; j++) in makedata() 34 data[i][j] = rand(); in makedata() 60 dataptrs[j] = recovj; in test_disks() 75 j, disk_type(j), in test_disks() 82 dataptrs[j] = data[j]; in test_disks() 91 int i, j, p1, p2; in main() local 119 for (j = i+1; j < NDISKS; j++) in main() 120 err += test_disks(i, j); in main() 136 for (j = i+1; j < NDISKS; j++) in main() [all …]
|
| /linux-6.15/samples/auxdisplay/ |
| H A D | cfag12864b-example.c | 153 unsigned char i, j, n; in cfag12864b_format() local 156 for (j = 0; j < CFAG12864B_WIDTH / CFAG12864B_BPB; j++) { in cfag12864b_format() 158 j] = 0; in cfag12864b_format() 163 CFAG12864B_BPB + j] |= in cfag12864b_format() 188 unsigned short i, j; in example() local 201 for (j = 0; j < CFAG12864B_HEIGHT; j += 2) in example() 202 cfag12864b_set(i, j); in example() 214 for (j = 0; j < CFAG12864B_HEIGHT; j += 2) in example() 227 for (j = 0; j < CFAG12864B_HEIGHT; j++) in example() 234 for (j = 0; j < CFAG12864B_HEIGHT; j ++) in example() [all …]
|
| /linux-6.15/arch/x86/kernel/ |
| H A D | irq.c | 70 int j; in arch_show_interrupts() local 73 for_each_online_cpu(j) in arch_show_interrupts() 78 for_each_online_cpu(j) in arch_show_interrupts() 83 for_each_online_cpu(j) in arch_show_interrupts() 87 for_each_online_cpu(j) in arch_show_interrupts() 91 for_each_online_cpu(j) in arch_show_interrupts() 95 for_each_online_cpu(j) in arch_show_interrupts() 107 for_each_online_cpu(j) in arch_show_interrupts() 111 for_each_online_cpu(j) in arch_show_interrupts() 115 for_each_online_cpu(j) in arch_show_interrupts() [all …]
|