/openbmc/entity-manager/test/ |
H A D | test_entity-manager.cpp | 14 nlohmann::json j = {{"foo", "$bus"}}; in TEST() local 15 auto it = j.begin(); in TEST() 22 EXPECT_EQ(expected, j["foo"]); in TEST() 27 nlohmann::json j = {{"foo", "$TEST"}}; in TEST() local 28 auto it = j.begin(); in TEST() 35 EXPECT_EQ(expected, j["foo"]); in TEST() 40 nlohmann::json j = {{"foo", "the $TEST"}}; in TEST() local 41 auto it = j.begin(); in TEST() 48 EXPECT_EQ(expected, j["foo"]); in TEST() 53 nlohmann::json j = {{"foo", "the $TEST worked"}}; in TEST() local [all …]
|
/openbmc/linux/drivers/staging/media/atomisp/pci/isp/kernels/eed1_8/ |
H A D | ia_css_eed1_8.host.c | 94 unsigned int i, j, base; in ia_css_eed1_8_vmem_encode() local 130 for (j = 0; j < IA_CSS_NUMBER_OF_DEW_ENHANCE_SEGMENTS; j++) { in ia_css_eed1_8_vmem_encode() 131 assert(from->dew_enhance_seg_x[j] > -1); in ia_css_eed1_8_vmem_encode() 132 assert(from->dew_enhance_seg_y[j] > -1); 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() 136 assert(from->dew_enhance_seg_x[j] > from->dew_enhance_seg_x[j - 1]); in ia_css_eed1_8_vmem_encode() 137 assert(from->dew_enhance_seg_y[j] > from->dew_enhance_seg_y[j - 1]); in ia_css_eed1_8_vmem_encode() 152 for (j = 1; j < NUMBER_OF_CHGRINV_POINTS; j++) { in ia_css_eed1_8_vmem_encode() 153 assert(chgrinv_x[j] > chgrinv_x[j - 1]); in ia_css_eed1_8_vmem_encode() 156 for (j = 1; j < NUMBER_OF_TCINV_POINTS; j++) { in ia_css_eed1_8_vmem_encode() [all …]
|
/openbmc/linux/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() 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 …]
|
/openbmc/linux/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() 63 if (i > 0 && j > 0 && string1[i - 1] == string2[j] && in levenshtein() 64 string1[i] == string2[j - 1] && 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() [all …]
|
/openbmc/linux/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() 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 …]
|
/openbmc/qemu/tests/tcg/hexagon/ |
H A D | v69_hvx.c | 62 for (int j = 0; j < MAX_VEC_SIZE_BYTES / 2; j++) { in test_vasrvuhubrndsat() local 67 shamt = buffer1[i].ub[2 * j + 0] & 0x7; in test_vasrvuhubrndsat() 68 byte0 = fVSATUB(fVROUND(buffer0[2 * i + 0].uh[j], shamt) >> shamt); in test_vasrvuhubrndsat() 69 shamt = buffer1[i].ub[2 * j + 1] & 0x7; in test_vasrvuhubrndsat() 70 byte1 = fVSATUB(fVROUND(buffer0[2 * i + 1].uh[j], shamt) >> shamt); in test_vasrvuhubrndsat() 71 expect[i].uh[j] = (byte1 << 8) | (byte0 & 0xff); in test_vasrvuhubrndsat() 99 for (int j = 0; j < MAX_VEC_SIZE_BYTES / 2; j++) { in test_vasrvuhubsat() local 104 shamt = buffer1[i].ub[2 * j + 0] & 0x7; in test_vasrvuhubsat() 105 byte0 = fVSATUB(buffer0[2 * i + 0].uh[j] >> shamt); in test_vasrvuhubsat() 106 shamt = buffer1[i].ub[2 * j + 1] & 0x7; in test_vasrvuhubsat() [all …]
|
H A D | hvx_misc.h | 21 static inline void check(int line, int i, int j, in check() argument 26 line, i, j, result, expect); in check() 58 for (int j = 0; j < MAX_VEC_SIZE_BYTES / FIELDSZ; j++) { \ 59 check(line, i, j, output[i].FIELD[j], expect[i].FIELD[j]); \ 74 for (int j = 0; j < MAX_VEC_SIZE_BYTES; j++) { in init_buffers() local 75 buffer0[i].b[j] = counter0++; in init_buffers() 76 buffer1[i].b[j] = counter1++; in init_buffers() 78 for (int j = 0; j < MAX_VEC_SIZE_BYTES / 4; j++) { in init_buffers() local 79 mask[i].w[j] = (i + j % MASKMOD == 0) ? 0 : 1; in init_buffers() 108 for (int j = 0; j < MAX_VEC_SIZE_BYTES / FIELDSZ; j++) { \ [all …]
|
/openbmc/linux/drivers/video/logo/ |
H A D | pnmtologo.c | 124 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 …]
|
/openbmc/u-boot/drivers/dma/ |
H A D | keystone_nav.c | 39 int j, num; in num_of_desc_to_reg() local 41 for (j = 0, num = 32; j < 15; j++, num *= 2) { in num_of_desc_to_reg() 43 return j; in num_of_desc_to_reg() 51 u32 j; in _qm_init() local 68 for (j = 0; j < HDESC_NUM; j++) in _qm_init() 69 qm_push(&desc_pool[j], qm_cfg->qpool_num); in _qm_init() 81 u32 j; in qm_close() local 91 for (j = 0; j < qm_cfg->region_num; j++) { in qm_close() 92 qm_cfg->desc_mem[j].base_addr = 0; in qm_close() 93 qm_cfg->desc_mem[j].start_idx = 0; in qm_close() [all …]
|
/openbmc/linux/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() 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 …]
|
/openbmc/u-boot/examples/standalone/ |
H A D | smc91111_eeprom.c | 36 int c, i, j, done, line, reg, value, start, what; in smc91111_eeprom() local 166 j = 0; in smc91111_eeprom() 168 j = input[i] - 0x30; in smc91111_eeprom() 169 if (j >= 0xA) { in smc91111_eeprom() 170 j -= 0x07; in smc91111_eeprom() 172 reg = (reg * 0x10) + j; in smc91111_eeprom() 185 j = 0; in smc91111_eeprom() 187 j = input[i] - 0x30; in smc91111_eeprom() 188 if (j >= 0xA) { in smc91111_eeprom() 189 j -= 0x07; in smc91111_eeprom() [all …]
|
/openbmc/linux/lib/reed_solomon/ |
H A D | decode_rs.c | 15 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 …]
|
/openbmc/linux/lib/ |
H 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() 88 crc32table_be[j][i] = crc; in crc32init_be() [all …]
|
/openbmc/linux/tools/testing/selftests/arm64/mte/ |
H A D | check_buffer_fill.c | 31 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, item, last_index; in check_buffer_underflow_by_byte() local 83 for (j = sizes[i] - 1; (j >= -underflow_range) && in check_buffer_underflow_by_byte() 84 (!cur_mte_cxt.fault_valid); j--) { in check_buffer_underflow_by_byte() 85 ptr[j] = '1'; in check_buffer_underflow_by_byte() 86 last_index = j; in check_buffer_underflow_by_byte() [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-int128.c | 49 int i, j; in test_and() local 52 for (j = 0; j < ARRAY_SIZE(tests); ++j) { in test_and() 54 Int128 b = expand(tests[j]); in test_and() 55 Int128 r = expand(tests[i] & tests[j]); in test_and() 65 int i, j; in test_add() local 68 for (j = 0; j < ARRAY_SIZE(tests); ++j) { in test_add() 70 Int128 b = expand(tests[j]); in test_add() 71 Int128 r = expand(tests[i] + tests[j]); in test_add() 81 int i, j; in test_sub() local 84 for (j = 0; j < ARRAY_SIZE(tests); ++j) { in test_sub() [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A D | channel.c | 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() 250 txpwr->ofdm_40_siso[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint() [all …]
|
/openbmc/qemu/tests/tcg/mips/user/ase/msa/int-dot-product/ |
H A D | test_msa_dpadd_u_w.c | 40 uint32_t i, j; in main() local 165 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main() 166 do_msa_DPADD_U_W(b128_pattern[i], b128_pattern[j], in main() 167 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main() 172 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main() 173 do_msa_DPADD_U_W(b128_random[i], b128_random[j], in main() 176 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main() 181 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main() 182 do_msa_DPADD_U_W__DDT(b128_random[i], b128_random[j], in main() 188 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main() [all …]
|
H A D | test_msa_dpsub_u_d.c | 40 uint32_t i, j; in main() local 165 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main() 166 do_msa_DPSUB_U_D(b128_pattern[i], b128_pattern[j], in main() 167 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main() 172 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main() 173 do_msa_DPSUB_U_D(b128_random[i], b128_random[j], in main() 176 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main() 181 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main() 182 do_msa_DPSUB_U_D__DDT(b128_random[i], b128_random[j], in main() 188 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main() [all …]
|
H A D | test_msa_dpadd_u_d.c | 40 uint32_t i, j; in main() local 165 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main() 166 do_msa_DPADD_U_D(b128_pattern[i], b128_pattern[j], in main() 167 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main() 172 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main() 173 do_msa_DPADD_U_D(b128_random[i], b128_random[j], in main() 176 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main() 181 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main() 182 do_msa_DPADD_U_D__DDT(b128_random[i], b128_random[j], in main() 188 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main() [all …]
|
/openbmc/qemu/tests/tcg/mips/user/ase/msa/fixed-multiply/ |
H A D | test_msa_msub_q_h.c | 42 uint32_t i, j; in main() local 167 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main() 168 do_msa_MSUB_Q_H(b128_pattern[i], b128_pattern[j], in main() 169 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main() 174 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main() 175 do_msa_MSUB_Q_H(b128_random[i], b128_random[j], in main() 178 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main() 183 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main() 184 do_msa_MSUB_Q_H__DDT(b128_random[i], b128_random[j], in main() 190 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main() [all …]
|
H A D | test_msa_msubr_q_w.c | 42 uint32_t i, j; in main() local 167 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main() 168 do_msa_MADDR_Q_W(b128_pattern[i], b128_pattern[j], in main() 169 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main() 174 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main() 175 do_msa_MADDR_Q_W(b128_random[i], b128_random[j], in main() 178 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main() 183 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main() 184 do_msa_MADDR_Q_W__DDT(b128_random[i], b128_random[j], in main() 190 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main() [all …]
|
/openbmc/qemu/tests/tcg/mips/user/ase/msa/bit-move/ |
H A D | test_msa_binsr_w.c | 40 uint32_t i, j; in main() local 165 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main() 166 do_msa_BINSR_W(b128_pattern[i], b128_pattern[j], in main() 167 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main() 172 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main() 173 do_msa_BINSR_W(b128_random[i], b128_random[j], in main() 176 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main() 181 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main() 182 do_msa_BINSR_W__DDT(b128_random[i], b128_random[j], in main() 188 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main() [all …]
|
H A D | test_msa_binsl_d.c | 40 uint32_t i, j; in main() local 165 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main() 166 do_msa_BINSL_D(b128_pattern[i], b128_pattern[j], in main() 167 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main() 172 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main() 173 do_msa_BINSL_D(b128_random[i], b128_random[j], in main() 176 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main() 181 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main() 182 do_msa_BINSL_D__DDT(b128_random[i], b128_random[j], in main() 188 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main() [all …]
|
H A D | test_msa_bmz_v.c | 40 uint32_t i, j; in main() local 165 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main() 166 do_msa_BMZ_V(b128_pattern[i], b128_pattern[j], in main() 167 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main() 172 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main() 173 do_msa_BMZ_V(b128_random[i], b128_random[j], in main() 176 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main() 181 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main() 182 do_msa_BMZ_V__DDT(b128_random[i], b128_random[j], in main() 188 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main() [all …]
|
/openbmc/qemu/tests/tcg/mips/user/ase/msa/pack/ |
H A D | test_msa_vshf_d.c | 40 uint32_t i, j; in main() local 165 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main() 166 do_msa_VSHF_D(b128_pattern[i], b128_pattern[j], in main() 167 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main() 172 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main() 173 do_msa_VSHF_D(b128_random[i], b128_random[j], in main() 176 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main() 181 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main() 182 do_msa_VSHF_D__DDT(b128_random[i], b128_random[j], in main() 188 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main() [all …]
|