| /linux/fs/bcachefs/ |
| A D | journal.c | 42 return atomic64_read(&j->seq) - j->seq_ondisk; in nr_unwritten_journal_entries() 167 j->err_seq = journal_cur_seq(j); in journal_error_check_stuck() 309 j->err_seq = journal_cur_seq(j); in bch2_journal_halt() 379 (journal_cur_seq(j) == j->flushed_seq_ondisk in journal_entry_open() 395 if (fifo_empty(&j->pin) && j->reclaim_thread) in journal_entry_open() 473 wait_event(j->wait, journal_quiesced(j)); in journal_quiesce() 689 if (j->err_seq && seq >= j->err_seq) { in bch2_journal_flush_seq_async() 1205 journal_cur_seq(j), j->last_empty_seq); in bch2_fs_journal_stop() 1285 j->reservations.idx = j->reservations.unwritten_idx = journal_cur_seq(j); in bch2_fs_journal_start() 1358 for (unsigned j = 0; j < le64_to_cpu(journal_buckets_v2->d[i].nr); j++) in bch2_dev_journal_init() local [all …]
|
| A D | journal_reclaim.c | 59 bool low_on_pin = fifo_free(&j->pin) < j->pin.size / 4; in bch2_journal_set_watermark() 74 journal_wake(j); in bch2_journal_set_watermark() 227 j->space[i] = __journal_space_available(j, nr_devs_want, i); in bch2_journal_space_available() 250 journal_wake(j); in bch2_journal_space_available() 259 spin_lock(&j->lock); in should_discard_bucket() 315 j->pin.front <= j->seq_ondisk && in bch2_journal_reclaim_fast() 317 j->pin.front++; in bch2_journal_reclaim_fast() 435 journal_wake(j); in bch2_journal_pin_copy() 458 journal_wake(j); in bch2_journal_pin_set() 472 wait_event(j->pin_flush_wait, j->flush_in_progress != pin); in bch2_journal_pin_flush() [all …]
|
| A D | journal.h | 120 wake_up(&j->wait); in journal_wake() 121 closure_wake_up(&j->async_wait); in journal_wake() 126 return j->buf + j->reservations.idx; in journal_cur_buf() 133 return j->pin.front; in journal_last_seq() 138 return atomic64_read(&j->seq); in journal_cur_seq() 143 return j->seq_ondisk + 1; in journal_last_unwritten_seq() 241 if (j->seq != j->last_seq) in journal_entry_empty() 244 vstruct_for_each(j, i) in journal_entry_empty() 285 spin_lock(&j->lock); in bch2_journal_buf_put() 287 spin_unlock(&j->lock); in bch2_journal_buf_put() [all …]
|
| /linux/drivers/staging/media/atomisp/pci/isp/kernels/eed1_8/ |
| A D | ia_css_eed1_8.host.c | 130 for (j = 0; j < IA_CSS_NUMBER_OF_DEW_ENHANCE_SEGMENTS; j++) { in ia_css_eed1_8_vmem_encode() 135 for (j = 1; j < IA_CSS_NUMBER_OF_DEW_ENHANCE_SEGMENTS; j++) { in ia_css_eed1_8_vmem_encode() 152 for (j = 1; j < NUMBER_OF_CHGRINV_POINTS; j++) { in ia_css_eed1_8_vmem_encode() 156 for (j = 1; j < NUMBER_OF_TCINV_POINTS; j++) { in ia_css_eed1_8_vmem_encode() 157 assert(tcinv_x[j] > tcinv_x[j - 1]); in ia_css_eed1_8_vmem_encode() 160 for (j = 1; j < NUMBER_OF_FCINV_POINTS; j++) { in ia_css_eed1_8_vmem_encode() 174 for (j = 0; j < IA_CSS_NUMBER_OF_DEW_ENHANCE_SEGMENTS; j++) { in ia_css_eed1_8_vmem_encode() 181 for (j = 0; j < (IA_CSS_NUMBER_OF_DEW_ENHANCE_SEGMENTS - 1); j++) { in ia_css_eed1_8_vmem_encode() 199 for (j = 0; j < NUMBER_OF_CHGRINV_POINTS; j++) { in ia_css_eed1_8_vmem_encode() 206 for (j = 0; j < NUMBER_OF_TCINV_POINTS; j++) { in ia_css_eed1_8_vmem_encode() [all …]
|
| /linux/tools/testing/selftests/net/ |
| 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/tools/perf/util/ |
| 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 …]
|
| 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 …]
|
| A D | values.c | 136 int j; in perf_read_values__enlarge_counters() local 143 for (j = values->counters_max; j < counters_max; j++) in perf_read_values__enlarge_counters() 204 int i, j; in perf_read_values__display_pretty() local 215 for (j = 0; j < values->counters; j++) in perf_read_values__display_pretty() 226 for (j = 0; j < values->counters; j++) { in perf_read_values__display_pretty() 234 for (j = 0; j < values->counters; j++) in perf_read_values__display_pretty() 241 for (j = 0; j < values->counters; j++) in perf_read_values__display_pretty() 243 counterwidth[j], values->value[i][j]); in perf_read_values__display_pretty() 269 for (j = 0; j < values->counters; j++) { in perf_read_values__display_raw() 278 for (j = 0; j < values->counters; j++) { in perf_read_values__display_raw() [all …]
|
| /linux/lib/raid6/ |
| 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/drivers/video/logo/ |
| 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/drivers/acpi/acpica/ |
| 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/lib/ |
| A D | gen_crc32table.c | 40 unsigned i, j; in crc32init_le_generic() local 47 for (j = 0; j < LE_TABLE_SIZE; j += 2 * i) in crc32init_le_generic() 48 tab[0][i + j] = crc ^ tab[0][j]; in crc32init_le_generic() 52 for (j = 1; j < LE_TABLE_ROWS; j++) { in crc32init_le_generic() 54 tab[j][i] = crc; in crc32init_le_generic() 74 unsigned i, j; in crc32init_be() local 81 for (j = 0; j < i; j++) in crc32init_be() 82 crc32table_be[0][i + j] = crc ^ crc32table_be[0][j]; in crc32init_be() 86 for (j = 1; j < BE_TABLE_ROWS; j++) { in crc32init_be() 95 int i, j; in output_table() local [all …]
|
| A D | rbtree_test.c | 260 for (j = 0; j < nnodes; j++) in rbtree_test_init() 262 for (j = 0; j < nnodes; j++) in rbtree_test_init() 276 for (j = 0; j < nnodes; j++) in rbtree_test_init() 278 for (j = 0; j < nnodes; j++) in rbtree_test_init() 335 for (j = 0; j < nnodes; j++) { in rbtree_test_init() 339 for (j = 0; j < nnodes; j++) { in rbtree_test_init() 353 for (j = 0; j < nnodes; j++) in rbtree_test_init() 355 for (j = 0; j < nnodes; j++) in rbtree_test_init() 368 for (j = 0; j < nnodes; j++) in rbtree_test_init() 370 for (j = 0; j < nnodes; j++) in rbtree_test_init() [all …]
|
| /linux/lib/reed_solomon/ |
| 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/tools/testing/selftests/arm64/mte/ |
| 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/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
| 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/drivers/media/platform/verisilicon/ |
| 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/drivers/net/wireless/realtek/rtw89/ |
| A D | util.c | 34 u8 i, j; in rtw89_linear_2_db() local 38 for (j = 0; j < 8; j++) { in rtw89_linear_2_db() 51 if (j == 0 && i == 0) in rtw89_linear_2_db() 58 j = 7; in rtw89_linear_2_db() 67 if (j == 0) { in rtw89_linear_2_db() 71 j = 7; in rtw89_linear_2_db() 76 j--; in rtw89_linear_2_db() 80 dB = (i << 3) + j + 1; in rtw89_linear_2_db() 89 u8 i, j; in rtw89_db_2_linear() local 97 j = (db - 1) & 0x7; in rtw89_db_2_linear() [all …]
|
| /linux/kernel/ |
| 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/tools/testing/selftests/powerpc/math/ |
| 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/tools/arch/x86/tools/ |
| 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/arch/x86/tools/ |
| 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/lib/raid6/test/ |
| 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/samples/auxdisplay/ |
| 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/arch/x86/kernel/ |
| A D | irq.c | 63 int j; in arch_show_interrupts() local 66 for_each_online_cpu(j) in arch_show_interrupts() 71 for_each_online_cpu(j) in arch_show_interrupts() 76 for_each_online_cpu(j) in arch_show_interrupts() 80 for_each_online_cpu(j) in arch_show_interrupts() 84 for_each_online_cpu(j) in arch_show_interrupts() 88 for_each_online_cpu(j) in arch_show_interrupts() 100 for_each_online_cpu(j) in arch_show_interrupts() 104 for_each_online_cpu(j) in arch_show_interrupts() 108 for_each_online_cpu(j) in arch_show_interrupts() [all …]
|