Home
last modified time | relevance | path

Searched +full:- +full:j (Results 1 – 25 of 1100) sorted by relevance

12345678910>>...44

/openbmc/entity-manager/test/
H A Dtest_entity-manager.cpp14 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 Dia_css_eed1_8.host.c1 // SPDX-License-Identifier: GPL-2.0
42 -7171, -256, -29, -3456, -1071, -475, -189, -102,
43 -48, -38, -10, -9, -7, -6, 0
61 -6364, -631, -126, -34, -13, -6, -4452, -2156, 0
77 -5244, -486, -86, -2849, -961, -400, -180, -86, 0
94 unsigned int i, j, base; in ia_css_eed1_8_vmem_encode() local
102 to->e_dew_enh_x[0][i] = 0; in ia_css_eed1_8_vmem_encode()
103 to->e_dew_enh_y[0][i] = 0; in ia_css_eed1_8_vmem_encode()
104 to->e_dew_enh_a[0][i] = 0; in ia_css_eed1_8_vmem_encode()
105 to->e_dew_enh_f[0][i] = 0; in ia_css_eed1_8_vmem_encode()
[all …]
/openbmc/u-boot/drivers/dma/
H A Dkeystone_nav.c1 // SPDX-License-Identifier: GPL-2.0+
5 * (C) Copyright 2012-2014
10 #include <asm/ti-common/keystone_nav.h>
30 * We are going to use only one type of descriptors - host packet
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
55 qm_cfg->mngr_cfg->link_ram_base0 = qm_cfg->i_lram; in _qm_init()
56 qm_cfg->mngr_cfg->link_ram_size0 = HDESC_NUM * 8 - 1; in _qm_init()
[all …]
/openbmc/linux/tools/perf/util/
H A Dlevenshtein.c1 // SPDX-License-Identifier: GPL-2.0
8 * This function implements the Damerau-Levenshtein algorithm to
25 * In other words, at the start of the big loop, row2[j + 1] contains the
26 * Damerau-Levenshtein distance between the substring of string1 of length
27 * "i" and the substring of string2 of length "j + 1".
29 * All the big loop does is determine the partial minimum-cost paths.
32 * i (in string1) and j (in string2), respectively, given that the last
37 * - w (as in "sWap")
38 * - s (as in "Substitution")
39 * - a (for insertion, AKA "Add")
[all …]
H A Dvalues.c1 // SPDX-License-Identifier: GPL-2.0
14 values->threads_max = 16; in perf_read_values_init()
15 values->pid = malloc(values->threads_max * sizeof(*values->pid)); in perf_read_values_init()
16 values->tid = malloc(values->threads_max * sizeof(*values->tid)); in perf_read_values_init()
17 values->value = zalloc(values->threads_max * sizeof(*values->value)); in perf_read_values_init()
18 if (!values->pid || !values->tid || !values->value) { in perf_read_values_init()
22 values->threads = 0; in perf_read_values_init()
24 values->counters_max = 16; in perf_read_values_init()
25 values->counterrawid = malloc(values->counters_max in perf_read_values_init()
26 * sizeof(*values->counterrawid)); in perf_read_values_init()
[all …]
/openbmc/linux/tools/testing/selftests/net/
H A Dreuseaddr_ports_exhausted.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Check if we can fully utilize 4-tuples for connect().
61 ASSERT_NE(-1, fd) TH_LOG("failed to open socket."); in bind_port()
73 if (bind(fd, (struct sockaddr *)&local_addr, len) == -1) { in bind_port()
75 return -1; in bind_port()
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()
92 ASSERT_NE(-1, fd[0]) TH_LOG("failed to bind."); in TEST()
93 EXPECT_EQ(-1, fd[1]) TH_LOG("should fail to bind."); in TEST()
[all …]
/openbmc/openbmc/meta-openembedded/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth/
H A D0002-fluid_synth_nwrite_float-Allow-zero-pointer-for-left.patch2 From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
14 Upstream-Status: Submitted [1]
18 Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
19 ---
20 src/synth/fluid_synth.c | 69 ++++++++++++++++++++++++++++-------------
21 1 file changed, 48 insertions(+), 21 deletions(-)
23 diff --git a/src/synth/fluid_synth.c b/src/synth/fluid_synth.c
[all …]
/openbmc/linux/lib/
H A Drbtree_test.c1 // SPDX-License-Identifier: GPL-2.0-only
14 __param(int, nnodes, 100, "Number of nodes in the rb-tree");
15 __param(int, perf_loops, 1000, "Number of iterations modifying the rb-tree");
16 __param(int, check_loops, 100, "Number of iterations modifying and verifying the rb-tree");
34 struct rb_node **new = &root->rb_root.rb_node, *parent = NULL; in insert()
35 u32 key = node->key; in insert()
39 if (key < rb_entry(parent, struct test_node, rb)->key) in insert()
40 new = &parent->rb_left; in insert()
42 new = &parent->rb_right; in insert()
45 rb_link_node(&node->rb, parent, new); in insert()
[all …]
H A Dgen_crc32table.c1 // SPDX-License-Identifier: GPL-2.0
31 * crc32init_le() - allocate and initialize LE table data
34 * 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()
70 * crc32init_be() - allocate and initialize BE table data
74 unsigned i, j; in crc32init_be() local
[all …]
/openbmc/linux/drivers/md/bcache/
H A Dbset.c1 // SPDX-License-Identifier: GPL-2.0
25 for (k = i->start; k < bset_bkey_last(i); k = next) { in bch_dump_bset()
29 (unsigned int) ((u64 *) k - i->d), i->keys); in bch_dump_bset()
31 if (b->ops->key_dump) in bch_dump_bset()
32 b->ops->key_dump(b, k); in bch_dump_bset()
37 bkey_cmp(k, b->ops->is_extents ? in bch_dump_bset()
48 for (i = 0; i <= b->nsets; i++) in bch_dump_bucket()
49 bch_dump_bset(b, b->set[i].data, in bch_dump_bucket()
50 bset_sector_offset(b, b->set[i].data)); in bch_dump_bucket()
60 if (b->ops->is_extents) in __bch_count_data()
[all …]
H A Djournal.c1 // SPDX-License-Identifier: GPL-2.0
20 * entries (same as garbage collection would), then we replay them - reinserting
30 struct closure *cl = bio->bi_private; in journal_read_endio()
38 struct journal_device *ja = &ca->journal; in journal_read_bucket()
39 struct bio *bio = &ja->bio; in journal_read_bucket()
42 struct jset *j, *data = ca->set->journal.w[0].data; in journal_read_bucket() local
46 sector_t bucket = bucket_to_sector(ca->set, ca->sb.d[bucket_index]); in journal_read_bucket()
52 while (offset < ca->sb.bucket_size) { in journal_read_bucket()
53 reread: left = ca->sb.bucket_size - offset; in journal_read_bucket()
56 bio_reset(bio, ca->bdev, REQ_OP_READ); in journal_read_bucket()
[all …]
/openbmc/linux/lib/raid6/
H A Dmktables.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* -*- linux-c -*- ------------------------------------------------------- *
4 * Copyright 2002-2007 H. Peter Anvin - All Rights Reserved
6 * ----------------------------------------------------------------------- */
11 * Make RAID-6 tables. This is a host user space program to be run at
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()
[all …]
/openbmc/linux/kernel/
H A Drange.c1 // SPDX-License-Identifier: GPL-2.0
54 (nr_range - (i + 1)) * sizeof(range[i])); in add_range_with_merge()
55 range[nr_range - 1].start = 0; in add_range_with_merge()
56 range[nr_range - 1].end = 0; in add_range_with_merge()
57 nr_range--; in add_range_with_merge()
58 i--; in add_range_with_merge()
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()
[all …]
/openbmc/u-boot/drivers/crypto/
H A Daspeed_acry.c1 // SPDX-License-Identifier: GPL-2.0-or-later
14 #include <u-boot/rsa-mod-exp.h>
55 int i, j; in aspeed_acry_mod_exp() local
63 return -ENOMEM; in aspeed_acry_mod_exp()
67 ptr = (u8 *)prop->public_exponent; in aspeed_acry_mod_exp()
68 for (i = prop->exp_len - 1, j = 0; i >= 0; --i) { in aspeed_acry_mod_exp()
69 ctx[j] = ptr[i]; in aspeed_acry_mod_exp()
70 j++; in aspeed_acry_mod_exp()
71 j = (j % 16) ? j : j + 32; in aspeed_acry_mod_exp()
74 ptr = (u8 *)prop->modulus; in aspeed_acry_mod_exp()
[all …]
/openbmc/linux/drivers/video/logo/
H A Dpnmtologo.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * (C) Copyright 2001-2003 by Geert Uytterhoeven <geert@linux-m68k.org>
100 val = 10*val+c-'0'; in get_number()
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()
[all …]
/openbmc/linux/drivers/net/ethernet/sunplus/
H A Dspl2sw_desc.c1 // SPDX-License-Identifier: GPL-2.0
17 u32 i, j; in spl2sw_rx_descs_flush() local
20 rx_desc = comm->rx_desc[i]; in spl2sw_rx_descs_flush()
21 rx_skbinfo = comm->rx_skb_info[i]; in spl2sw_rx_descs_flush()
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()
25 RXD_EOR | comm->rx_desc_buff_size : in spl2sw_rx_descs_flush()
26 comm->rx_desc_buff_size; in spl2sw_rx_descs_flush()
28 rx_desc[j].cmd1 = RXD_OWN; in spl2sw_rx_descs_flush()
[all …]
/openbmc/linux/lib/reed_solomon/
H A Ddecode_rs.c1 // SPDX-License-Identifier: GPL-2.0
13 struct rs_codec *rs = rsc->codec;
15 int i, j, r, k, pad; variable
16 int nn = rs->nn;
17 int nroots = rs->nroots;
18 int fcr = rs->fcr;
19 int prim = rs->prim;
20 int iprim = rs->iprim;
21 uint16_t *alpha_to = rs->alpha_to;
22 uint16_t *index_of = rs->index_of;
[all …]
/openbmc/u-boot/examples/standalone/
H A Dsmc91111_eeprom.c1 // SPDX-License-Identifier: GPL-2.0+
7 * - Wolfgang Denk, DENX Software Engineering, wd@denx.de
8 * Das U-Boot
9 * - Ladislav Michl ladis@linux-mips.org
10 * A rejected patch on the U-Boot mailing list
36 int c, i, j, done, line, reg, value, start, what; in smc91111_eeprom() local
46 printf ("Actual U-Boot ABI version %d\n", in smc91111_eeprom()
75 c -= ('a' - 'A'); in smc91111_eeprom()
88 case 0x03: /* ^C - break */ in smc91111_eeprom()
96 case 0x08: /* ^H - backspace */ in smc91111_eeprom()
[all …]
/openbmc/u-boot/lib/bzip2/
H A Dbzlib_blocksort.c2 /*-------------------------------------------------------------*/
3 /*--- Block sorting machinery ---*/
4 /*--- blocksort.c ---*/
5 /*-------------------------------------------------------------*/
7 /*--
9 library for lossless, block-sorting data compression.
11 Copyright (C) 1996-2002 Julian R Seward. All rights reserved.
47 Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>
60 --*/
64 /*---------------------------------------------*/
[all …]
/openbmc/linux/tools/testing/selftests/arm64/mte/
H A Dcheck_buffer_fill.c1 // SPDX-License-Identifier: GPL-2.0
17 1, 555, 1033, MT_GRANULE_SIZE - 1, MT_GRANULE_SIZE,
18 /* page size - 1*/ 0, /* page_size */ 0, /* page size + 1 */ 0
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
80 mte_initialize_current_context(mode, (uintptr_t)ptr, -underflow_range); in check_buffer_underflow_by_byte()
[all …]
/openbmc/qemu/target/riscv/
H A Dvcrypto_helper.c2 * RISC-V Vector Crypto Extension Helpers for QEMU.
21 #include "qemu/host-utils.h"
26 #include "crypto/aes-round.h"
29 #include "exec/exec-all.h"
30 #include "exec/helper-proto.h"
37 for (int j = 63; j >= 0; j--) { in clmul64() local
38 if ((y >> j) & 1) { in clmul64()
39 result ^= (x << j); in clmul64()
48 for (int j = 63; j >= 1; j--) { in clmulh64() local
49 if ((y >> j) & 1) { in clmulh64()
[all …]
/openbmc/u-boot/arch/arm/
H A Dconfig.mk1 # SPDX-License-Identifier: GPL-2.0+
3 # (C) Copyright 2000-2002
14 CFLAGS_NON_EFI := -fno-pic -ffixed-r9 -ffunction-sections -fdata-sections
15 CFLAGS_EFI := -fpic -fshort-wchar
17 LDFLAGS_FINAL += --gc-sections
18 PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections \
19 -fno-common -ffixed-r9
20 PLATFORM_RELFLAGS += $(call cc-option, -msoft-float) \
21 $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
24 LLVM_RELFLAGS := $(call cc-option,-mllvm,) \
[all …]
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Dchannel.c41 * maxpwr[0] - channels [34-48]
42 * maxpwr[1] - channels [52-60]
43 * maxpwr[2] - channels [62-64]
44 * maxpwr[3] - channels [100-140]
45 * maxpwr[4] - channels [149-165]
60 #define BRCM_2GHZ_2412_2462 REG_RULE(2412-10, 2462+10, 40, 0, 19, 0)
61 #define BRCM_2GHZ_2467_2472 REG_RULE(2467-10, 2472+10, 20, 0, 19, \
64 #define BRCM_5GHZ_5180_5240 REG_RULE(5180-10, 5240+10, 40, 0, 21, \
66 #define BRCM_5GHZ_5260_5320 REG_RULE(5260-10, 5320+10, 40, 0, 21, \
69 #define BRCM_5GHZ_5500_5700 REG_RULE(5500-10, 5700+10, 40, 0, 21, \
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-int128.c5 * See the COPYING.LIB file in the top-level directory.
32 #define MIDDLE (-1ULL & ~LOW & ~HIGH)
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()
[all …]
/openbmc/u-boot/lib/
H A Drc4.c1 // SPDX-License-Identifier: GPL-2.0+
5 * (C) Copyright 2008-2014 Rockchip Electronics
18 unsigned short i, j, t; in rc4_encode() local
21 j = 0; in rc4_encode()
24 j &= 0x0f; in rc4_encode()
25 k[i] = key[j]; in rc4_encode()
26 j++; in rc4_encode()
29 j = 0; in rc4_encode()
31 j = (j + s[i] + k[i]) % 256; in rc4_encode()
33 s[i] = s[j]; in rc4_encode()
[all …]

12345678910>>...44