Home
last modified time | relevance | path

Searched full:j (Results 1 – 25 of 3271) sorted by relevance

12345678910>>...131

/linux/fs/bcachefs/
H A Djournal.c30 static inline bool journal_seq_unwritten(struct journal *j, u64 seq) in journal_seq_unwritten() argument
32 return seq > j->seq_ondisk; in journal_seq_unwritten()
40 static inline unsigned nr_unwritten_journal_entries(struct journal *j) in nr_unwritten_journal_entries() argument
42 return atomic64_read(&j->seq) - j->seq_ondisk; in nr_unwritten_journal_entries()
45 static bool journal_entry_is_open(struct journal *j) in journal_entry_is_open() argument
47 return __journal_entry_is_open(j->reservations); in journal_entry_is_open()
50 static void bch2_journal_buf_to_text(struct printbuf *out, struct journal *j, u64 seq) in bch2_journal_buf_to_text() argument
52 union journal_res_state s = READ_ONCE(j->reservations); in bch2_journal_buf_to_text()
54 struct journal_buf *buf = j->buf + i; in bch2_journal_buf_to_text()
88 static void bch2_journal_bufs_to_text(struct printbuf *out, struct journal *j) in bch2_journal_bufs_to_text() argument
[all …]
H A Djournal_reclaim.c37 unsigned bch2_journal_dev_buckets_available(struct journal *j, in bch2_journal_dev_buckets_available() argument
54 void bch2_journal_set_watermark(struct journal *j) in bch2_journal_set_watermark() argument
56 struct bch_fs *c = container_of(j, struct bch_fs, journal); in bch2_journal_set_watermark()
57 bool low_on_space = j->space[journal_space_clean].total * 4 <= in bch2_journal_set_watermark()
58 j->space[journal_space_total].total; in bch2_journal_set_watermark()
59 bool low_on_pin = fifo_free(&j->pin) < j->pin.size / 4; in bch2_journal_set_watermark()
70 mod_bit(JOURNAL_space_low, &j->flags, low_on_space || low_on_pin); in bch2_journal_set_watermark()
72 swap(watermark, j->watermark); in bch2_journal_set_watermark()
73 if (watermark > j->watermark) in bch2_journal_set_watermark()
74 journal_wake(j); in bch2_journal_set_watermark()
[all …]
H A Djournal_io.c49 struct journal_replay *j) in bch2_journal_ptrs_to_text() argument
51 darray_for_each(j->ptrs, i) { in bch2_journal_ptrs_to_text()
52 if (i != j->ptrs.data) in bch2_journal_ptrs_to_text()
60 struct journal_replay *j) in bch2_journal_replay_to_text() argument
62 prt_printf(out, "seq %llu ", le64_to_cpu(j->j.seq)); in bch2_journal_replay_to_text()
64 bch2_journal_ptrs_to_text(out, c, j); in bch2_journal_replay_to_text()
66 for_each_jset_entry_type(entry, &j->j, BCH_JSET_ENTRY_datetime) { in bch2_journal_replay_to_text()
84 static bool jset_csum_good(struct bch_fs *c, struct jset *j, struct bch_csum *csum) in jset_csum_good() argument
86 if (!bch2_checksum_type_valid(c, JSET_CSUM_TYPE(j))) { in jset_csum_good()
91 *csum = csum_vstruct(c, JSET_CSUM_TYPE(j), journal_nonce(j), j); in jset_csum_good()
[all …]
H A Djournal.h118 static inline void journal_wake(struct journal *j) in journal_wake() argument
120 wake_up(&j->wait); in journal_wake()
121 closure_wake_up(&j->async_wait); in journal_wake()
124 static inline struct journal_buf *journal_cur_buf(struct journal *j) in journal_cur_buf() argument
126 return j->buf + j->reservations.idx; in journal_cur_buf()
131 static inline u64 journal_last_seq(struct journal *j) in journal_last_seq() argument
133 return j->pin.front; in journal_last_seq()
136 static inline u64 journal_cur_seq(struct journal *j) in journal_cur_seq() argument
138 return atomic64_read(&j->seq); in journal_cur_seq()
141 static inline u64 journal_last_unwritten_seq(struct journal *j) in journal_last_unwritten_seq() argument
[all …]
/linux/drivers/staging/media/atomisp/pci/isp/kernels/eed1_8/
H A Dia_css_eed1_8.host.c85 unsigned int i, j, base; in ia_css_eed1_8_vmem_encode() local
121 for (j = 0; j < IA_CSS_NUMBER_OF_DEW_ENHANCE_SEGMENTS; j++) { in ia_css_eed1_8_vmem_encode()
122 assert(from->dew_enhance_seg_x[j] > -1); in ia_css_eed1_8_vmem_encode()
123 assert(from->dew_enhance_seg_y[j] > -1); 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()
127 assert(from->dew_enhance_seg_x[j] > from->dew_enhance_seg_x[j - 1]); in ia_css_eed1_8_vmem_encode()
128 assert(from->dew_enhance_seg_y[j] > from->dew_enhance_seg_y[j - 1]); in ia_css_eed1_8_vmem_encode()
143 for (j = 1; j < NUMBER_OF_CHGRINV_POINTS; j++) { in ia_css_eed1_8_vmem_encode()
144 assert(chgrinv_x[j] > chgrinv_x[j - 1]); in ia_css_eed1_8_vmem_encode()
147 for (j = 1; j < NUMBER_OF_TCINV_POINTS; j++) { in ia_css_eed1_8_vmem_encode()
[all …]
/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_csr.c64 u32 i, j; in fbnic_csr_get_regs_rpc_ram() local
71 for (j = 0; j < FBNIC_RPC_TCAM_ACT_DW_PER_ENTRY; j++) in fbnic_csr_get_regs_rpc_ram()
72 *(data++) = rd32(fbd, FBNIC_RPC_TCAM_ACT(i, j)); in fbnic_csr_get_regs_rpc_ram()
77 for (j = 0; j < FBNIC_RPC_TCAM_MACDA_DW_PER_ENTRY; j++) in fbnic_csr_get_regs_rpc_ram()
78 *(data++) = rd32(fbd, FBNIC_RPC_TCAM_MACDA(i, j)); in fbnic_csr_get_regs_rpc_ram()
83 for (j = 0; j < FBNIC_RPC_TCAM_OUTER_IPSRC_DW_PER_ENTRY; j++) in fbnic_csr_get_regs_rpc_ram()
84 *(data++) = rd32(fbd, FBNIC_RPC_TCAM_OUTER_IPSRC(i, j)); in fbnic_csr_get_regs_rpc_ram()
89 for (j = 0; j < FBNIC_RPC_TCAM_OUTER_IPDST_DW_PER_ENTRY; j++) in fbnic_csr_get_regs_rpc_ram()
90 *(data++) = rd32(fbd, FBNIC_RPC_TCAM_OUTER_IPDST(i, j)); in fbnic_csr_get_regs_rpc_ram()
95 for (j = 0; j < FBNIC_RPC_TCAM_IPSRC_DW_PER_ENTRY; j++) in fbnic_csr_get_regs_rpc_ram()
[all …]
/linux/tools/perf/util/
H A Dlevenshtein.c25 * In other words, at the start of the big loop, row2[j + 1] contains the
27 * "i" and the substring of string2 of length "j + 1".
32 * i (in string1) and j (in string2), respectively, given that the last
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()
63 if (i > 0 && j > 0 && string1[i - 1] == string2[j] && in levenshtein()
64 string1[i] == string2[j - 1] && in levenshtein()
[all …]
H A Dvalues.c136 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()
144 value[j] = 0; 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()
216 counterwidth[j] = strlen(values->countername[j]); in perf_read_values__display_pretty()
226 for (j = 0; j < values->counters; j++) { in perf_read_values__display_pretty()
227 width = snprintf(NULL, 0, "%" PRIu64, values->value[i][j]); in perf_read_values__display_pretty()
228 if (width > counterwidth[j]) in perf_read_values__display_pretty()
229 counterwidth[j] = width; in perf_read_values__display_pretty()
[all …]
H A Dcs-etm-base.c64 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()
85 fprintf(stdout, cs_etm_priv_fmts[j], val[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()
91 fprintf(stdout, cs_etmv4_priv_fmts[j], val[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()
112 fprintf(stdout, cs_etm_priv_fmts[j], val[i]); in cs_etm__print_cpu_metadata_v1()
[all …]
/linux/tools/testing/selftests/net/
H A Dreuseaddr_ports_exhausted.c84 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()
96 if (fd[j] != -1) in TEST()
97 close(fd[j]); in TEST()
104 int i, j, fd[2]; in TEST() local
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()
[all …]
/linux/drivers/video/logo/
H A Dpnmtologo.c124 unsigned int i, j; in read_image() local
174 for (j = 0; j < logo_width; j++) in read_image()
175 logo_data[i][j].red = logo_data[i][j].green = in read_image()
176 logo_data[i][j].blue = 255*(1-get_number(fp)); in read_image()
183 for (j = 0; j < logo_width; j++) in read_image()
184 logo_data[i][j].red = logo_data[i][j].green = in read_image()
185 logo_data[i][j].blue = get_number255(fp, maxval); in read_image()
192 for (j = 0; j < logo_width; j++) { in read_image()
193 logo_data[i][j].red = get_number255(fp, maxval); in read_image()
194 logo_data[i][j].green = get_number255(fp, maxval); in read_image()
[all …]
/linux/lib/
H A Dgen_crc32table.c34 * fact that crctable[i^j] = crctable[i] ^ crctable[j].
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()
[all …]
/linux/kernel/
H A Drange.c67 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()
77 range[j].start = 0; in subtract_range()
78 range[j].end = 0; in subtract_range()
82 if (start <= range[j].start && end < range[j].end && in subtract_range()
83 range[j].start < end) { in subtract_range()
84 range[j].start = end; in subtract_range()
89 if (start > range[j].start && end >= range[j].end && in subtract_range()
[all …]
/linux/lib/raid6/
H A Dmktables.c55 int i, j, k; in main() local
70 for (j = 0; j < 256; j += 8) { in main()
73 printf("0x%02x,%c", gfmul(i, j + k), in main()
89 for (j = 0; j < 16; j += 8) { in main()
92 printf("0x%02x,%c", gfmul(i, j + k), in main()
95 for (j = 0; j < 16; j += 8) { in main()
98 printf("0x%02x,%c", gfmul(i, (j + k) << 4), in main()
114 for (j = 0; j < 8; j++) { in main()
115 exptbl[i + j] = v; in main()
116 printf("0x%02x,%c", v, (j == 7) ? '\n' : ' '); in main()
[all …]
/linux/drivers/md/bcache/
H A Djournal.c42 struct jset *j, *data = ca->set->journal.w[0].data; in journal_read_bucket() local
73 j = data; in journal_read_bucket()
76 size_t blocks, bytes = set_bytes(j); in journal_read_bucket()
78 if (j->magic != jset_magic(&ca->sb)) { in journal_read_bucket()
93 if (j->csum != csum_set(j)) { in journal_read_bucket()
99 blocks = set_blocks(j, block_bytes(ca)); in journal_read_bucket()
103 * i->j.seq, the node on head has the smallest (oldest) in journal_read_bucket()
110 * i->j.seq < j->last_seq, it means the oldest jset in journal_read_bucket()
112 * this list. Otherwise, j is a candidate jset for in journal_read_bucket()
118 if (i->j.seq >= j->last_seq) in journal_read_bucket()
[all …]
H A Dbset.c372 * return array index next to j when does in-order traverse
375 static unsigned int inorder_next(unsigned int j, unsigned int size) in inorder_next() argument
377 if (j * 2 + 1 < size) { in inorder_next()
378 j = j * 2 + 1; in inorder_next()
380 while (j * 2 < size) in inorder_next()
381 j *= 2; in inorder_next()
383 j >>= ffz(j) + 1; in inorder_next()
385 return j; in inorder_next()
389 * return array index previous to j when does in-order traverse
392 static unsigned int inorder_prev(unsigned int j, unsigned int size) in inorder_prev() argument
[all …]
/linux/lib/reed_solomon/
H A Ddecode_rs.c15 int i, j, r, k, pad; variable
64 for (j = 1; j < len; j++) {
67 syn[i] = (((uint16_t) data[j]) ^
70 syn[i] = ((((uint16_t) data[j]) ^
78 for (j = 0; j < nroots; j++) {
81 syn[i] = ((uint16_t) par[j]) & msk;
83 syn[i] = (((uint16_t) par[j]) & msk) ^
115 for (j = i + 1; j > 0; j--) {
116 tmp = index_of[lambda[j - 1]];
118 lambda[j] ^=
[all …]
/linux/tools/testing/selftests/arm64/mte/
H A Dcheck_buffer_fill.c31 int i, j, item; in check_buffer_by_byte() local
43 for (j = 0; j < sizes[i]; j++) in check_buffer_by_byte()
44 ptr[j] = '1'; in check_buffer_by_byte()
48 for (j = 0; j < sizes[i] && !err; j++) { in check_buffer_by_byte()
49 if (ptr[j] != '1') in check_buffer_by_byte()
67 int i, j, ite in check_buffer_underflow_by_byte() local
162 int i, j, item, last_index; check_buffer_overflow_by_byte() local
264 int j, result = KSFT_PASS; check_buffer_by_block_iterate() local
[all...]
/linux/drivers/net/ethernet/sunplus/
H A Dspl2sw_desc.c17 u32 i, j; in spl2sw_rx_descs_flush() local
22 for (j = 0; j < comm->rx_desc_num[i]; j++) { in spl2sw_rx_descs_flush()
23 rx_desc[j].addr1 = rx_skbinfo[j].mapping; in spl2sw_rx_descs_flush()
24 rx_desc[j].cmd2 = (j == comm->rx_desc_num[i] - 1) ? in spl2sw_rx_descs_flush()
28 rx_desc[j].cmd1 = RXD_OWN; in spl2sw_rx_descs_flush()
64 u32 i, j; in spl2sw_rx_descs_clean() local
72 for (j = 0; j < comm->rx_desc_num[i]; j++) { in spl2sw_rx_descs_clean()
73 rx_desc[j].cmd1 = 0; in spl2sw_rx_descs_clean()
75 rx_desc[j].cmd2 = 0; in spl2sw_rx_descs_clean()
76 rx_desc[j].addr1 = 0; in spl2sw_rx_descs_clean()
[all …]
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Dchannel.c224 return (ccode[0] == 'J' && in brcms_c_japan_ccode()
233 int j; in brcms_c_channel_min_txpower_limits_with_local_constraint() local
236 for (j = 0; j < WL_TX_POWER_CCK_NUM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint()
237 txpwr->cck[j] = min(txpwr->cck[j], local_constraint_qdbm); 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()
241 txpwr->ofdm[j] = min(txpwr->ofdm[j], local_constraint_qdbm); 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()
245 txpwr->ofdm_cdd[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
246 min(txpwr->ofdm_cdd[j], local_constraint_qdbm); 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()
[all …]
/linux/net/ipv4/
H A Dudp_tunnel_nic.c133 unsigned int i, j; in udp_tunnel_nic_is_empty() local
136 for (j = 0; j < info->tables[i].n_entries; j++) in udp_tunnel_nic_is_empty()
137 if (!udp_tunnel_nic_entry_is_free(&utn->entries[i][j])) in udp_tunnel_nic_is_empty()
146 unsigned int i, j; in udp_tunnel_nic_should_replay() local
156 for (j = 0; j < table->n_entries; j++) in udp_tunnel_nic_should_replay()
157 if (udp_tunnel_nic_entry_is_free(&utn->entries[i][j])) in udp_tunnel_nic_should_replay()
242 unsigned int i, j; in udp_tunnel_nic_device_sync_by_port() local
245 for (j = 0; j < info->tables[i].n_entries; j++) in udp_tunnel_nic_device_sync_by_port()
246 udp_tunnel_nic_device_sync_one(dev, utn, i, j); in udp_tunnel_nic_device_sync_by_port()
254 unsigned int i, j; in udp_tunnel_nic_device_sync_by_table() local
[all …]
/linux/tools/arch/x86/tools/
H A Dgen-insn-attr-x86.awk244 function convert_operands(count,opnd, i,j,imm,mod)
248 for (j = 1; j <= count; j++) {
249 i = opnd[j]
386 for (j = 0; j < max_lprefix; j++)
387 if (etable[i,j])
388 print " ["i"]["j"]
[all...]
/linux/drivers/net/wireless/realtek/rtw89/
H A Dutil.c34 u8 i, j; in rtw89_linear_2_db() local
38 for (j = 0; j < 8; j++) { in rtw89_linear_2_db()
40 (val << RTW89_LINEAR_FRAC_BITS) <= db_invert_table[i][j]) in rtw89_linear_2_db()
42 else if (i > FRAC_ROW_MAX && val <= db_invert_table[i][j]) in rtw89_linear_2_db()
51 if (j == 0 && i == 0) in rtw89_linear_2_db()
54 if (i == NORM_ROW_MIN && j == 0) { in rtw89_linear_2_db()
58 j = 7; in rtw89_linear_2_db()
67 if (j == 0) { in rtw89_linear_2_db()
68 if (db_invert_table[i][j] - val > in rtw89_linear_2_db()
71 j = 7; in rtw89_linear_2_db()
[all …]
/linux/drivers/acpi/acpica/
H A Dutbuffer.c37 u32 j; in acpi_ut_dump_buffer() local
64 for (j = 0; j < 16;) { in acpi_ut_dump_buffer()
65 if (i + j >= count) { in acpi_ut_dump_buffer()
70 j += display; in acpi_ut_dump_buffer()
79 buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
85 &buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
92 &buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
99 &buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
103 &buffer[(acpi_size)i + j + in acpi_ut_dump_buffer()
109 j += display; in acpi_ut_dump_buffer()
[all …]
/linux/lib/raid6/test/
H A Dtest.c30 int i, j; in makedata() local
33 for (j = 0; j < PAGE_SIZE; j++) in makedata()
34 data[i][j] = rand(); in makedata()
52 static int test_disks(int i, int j) in test_disks() argument
60 dataptrs[j] = recovj; in test_disks()
62 raid6_dual_recov(NDISKS, PAGE_SIZE, i, j, (void **)&dataptrs); in test_disks()
65 errb = memcmp(data[j], recovj, PAGE_SIZE); in test_disks()
67 if (i < NDISKS-2 && j == NDISKS-1) { in test_disks()
75 j, disk_type(j), in test_disks()
82 dataptrs[j] = data[j]; in test_disks()
[all …]

12345678910>>...131