/openbmc/linux/arch/alpha/lib/ |
H A D | udiv-qrnnd.S | 44 #define n1 $17 macro 54 addq n1,n1,n1 55 bis n1,tmp,n1 57 cmpule d,n1,qb 58 subq n1,d,tmp 59 cmovne qb,tmp,n1 62 addq n1,n1,n1 63 bis n1,tmp,n1 65 cmpule d,n1,qb 66 subq n1,d,tmp [all …]
|
/openbmc/linux/arch/powerpc/math-emu/ |
H A D | udivmodti4.c | 11 _FP_W_TYPE n1, _FP_W_TYPE n0, in _fp_udivmodti4() argument 20 if (d0 > n1) in _fp_udivmodti4() 24 udiv_qrnnd (q0, n0, n1, n0, d0); in _fp_udivmodti4() 36 udiv_qrnnd (q1, n1, 0, n1, d0); in _fp_udivmodti4() 37 udiv_qrnnd (q0, n0, n1, n0, d0); in _fp_udivmodti4() 47 if (d0 > n1) in _fp_udivmodti4() 59 n1 = (n1 << bm) | (n0 >> (_FP_W_TYPE_SIZE - bm)); in _fp_udivmodti4() 63 udiv_qrnnd (q0, n0, n1, n0, d0); in _fp_udivmodti4() 79 /* From (n1 >= d0) /\ (the most significant bit of d0 is set), in _fp_udivmodti4() 80 conclude (the most significant bit of n1 is set) /\ (the in _fp_udivmodti4() [all …]
|
/openbmc/linux/lib/crypto/mpi/ |
H A D | mpih-div.c | 33 mpi_limb_t n1, n0, r; in mpihelp_mod_1() local 70 n1 = dividend_ptr[dividend_size - 1]; in mpihelp_mod_1() 71 r = n1 >> (BITS_PER_MPI_LIMB - normalization_steps); in mpihelp_mod_1() 75 * && divisor_limb > ((n1 << normalization_steps) in mpihelp_mod_1() 82 ((n1 << normalization_steps) in mpihelp_mod_1() 85 n1 = n0; in mpihelp_mod_1() 88 n1 << normalization_steps, in mpihelp_mod_1() 129 n1 = dividend_ptr[dividend_size - 1]; in mpihelp_mod_1() 130 r = n1 >> (BITS_PER_MPI_LIMB - normalization_steps); in mpihelp_mod_1() 134 * && divisor_limb > ((n1 << normalization_steps) in mpihelp_mod_1() [all …]
|
/openbmc/u-boot/arch/nios2/lib/ |
H A D | libgcc.c | 152 UWtype d0, d1, n0, n1, n2; in __udivmoddi4() local 159 n1 = nn.s.high; in __udivmoddi4() 164 if (d0 > n1) in __udivmoddi4() 168 udiv_qrnnd (q0, n0, n1, n0, d0); in __udivmoddi4() 180 udiv_qrnnd (q1, n1, 0, n1, d0); in __udivmoddi4() 181 udiv_qrnnd (q0, n0, n1, n0, d0); in __udivmoddi4() 198 if (d0 > n1) in __udivmoddi4() 210 n1 = (n1 << bm) | (n0 >> (W_TYPE_SIZE - bm)); in __udivmoddi4() 214 udiv_qrnnd (q0, n0, n1, n0, d0); in __udivmoddi4() 230 /* From (n1 >= d0) /\ (the most significant bit of d0 is set), in __udivmoddi4() [all …]
|
/openbmc/linux/tools/testing/selftests/wireguard/ |
H A D | netns.sh | 38 n1() { pretty 1 "$*"; maybe_exec ip netns exec $netns1 "$@"; } function 100 n1 wg set wg0 \ 121 n1 ping -c 10 -f -W 1 192.168.241.2 125 n1 ping6 -c 10 -f -W 1 fd00::2 130 n1 iperf3 -Z -t 3 -c 192.168.241.2 133 n1 iperf3 -s -1 -B fd00::1 & 138 n1 iperf3 -s -1 -B 192.168.241.1 & 145 n1 iperf3 -Z -t 3 -b 0 -u -c fd00::2 154 n1 iperf3 -Z -t 3 -p $(( 5200 + i )) -c 192.168.241.2 & 163 n1 wg set wg0 peer "$pub2" endpoint 127.0.0.1:2 [all …]
|
/openbmc/linux/drivers/clk/ |
H A D | clk-si570.c | 59 * @n1: Clock divider N1 71 unsigned int n1; member 88 * @n1: Divider N1 (output) 95 unsigned int *n1, unsigned int *hs_div) in si570_get_divs() argument 107 *n1 = ((reg[0] & N1_6_2_MASK) << 2) + ((reg[1] & N1_1_0_MASK) >> 6) + 1; in si570_get_divs() 109 if (*n1 > 1) in si570_get_divs() 110 *n1 &= ~1; in si570_get_divs() 139 err = si570_get_divs(data, &data->rfreq, &data->n1, &data->hs_div); in si570_get_defaults() 147 fdco = fout * data->n1 * data->hs_div; in si570_get_defaults() 167 reg[0] = ((data->n1 - 1) << 6) | in si570_update_rfreq() [all …]
|
/openbmc/linux/lib/math/ |
H A D | rational.c | 45 * n2/d2, n1/d1, and n0/d0 are our successively more accurate in rational_best_approximation() 51 unsigned long n, d, n0, d0, n1, d1, n2, d2; in rational_best_approximation() local 55 n1 = d0 = 1; in rational_best_approximation() 74 n2 = n0 + a * n1; in rational_best_approximation() 87 if (n1) in rational_best_approximation() 88 t = min(t, (max_numerator - n0) / n1); in rational_best_approximation() 95 n1 = n0 + t * n1; in rational_best_approximation() 100 n0 = n1; in rational_best_approximation() 101 n1 = n2; in rational_best_approximation() 105 *best_numerator = n1; in rational_best_approximation()
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | migration.c | 28 int n1; in FIXTURE() local 38 self->n1 = -1; in FIXTURE_SETUP() 43 if (self->n1 == -1) { in FIXTURE_SETUP() 44 self->n1 = n; in FIXTURE_SETUP() 63 int migrate(uint64_t *ptr, int n1, int n2) in migrate() argument 90 n2 = n1; in migrate() 91 n1 = tmp; in migrate() 123 if (self->nthreads < 2 || self->n1 < 0 || self->n2 < 0) 135 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0); 149 if (self->nthreads < 2 || self->n1 < 0 || self->n2 < 0) [all …]
|
/openbmc/linux/security/selinux/ss/ |
H A D | ebitmap.c | 33 const struct ebitmap_node *n1, *n2; in ebitmap_cmp() local 38 n1 = e1->node; in ebitmap_cmp() 40 while (n1 && n2 && in ebitmap_cmp() 41 (n1->startbit == n2->startbit) && in ebitmap_cmp() 42 !memcmp(n1->maps, n2->maps, EBITMAP_SIZE / 8)) { in ebitmap_cmp() 43 n1 = n1->next; in ebitmap_cmp() 47 if (n1 || n2) in ebitmap_cmp() 223 const struct ebitmap_node *n1, *n2; in ebitmap_contains() local 229 n1 = e1->node; in ebitmap_contains() 232 while (n1 && n2 && (n1->startbit <= n2->startbit)) { in ebitmap_contains() [all …]
|
/openbmc/qemu/hw/ssi/ |
H A D | pnv_spi.c | 175 /* Handle the N1 portion of the frame first */ in spi_response() 258 * Calculate the N1 counters based on passed in opcode and 263 * N1 bits: Number of bits in the payload data that are significant 265 * N1_bytes: Total count of payload bytes for the N1 (portion of the) frame. 266 * N1_tx: Total number of bytes taken from TDR for N1 267 * N1_rx: Total number of bytes taken from the payload for N1 289 /* If tx count control for N1 is set, load the tx value */ in calculate_N1() 293 /* If rx count control for N1 is set, load the rx value */ in calculate_N1() 317 /* If rx count control for N1 is set, load the rx value */ in calculate_N1() 325 * Enforce an upper limit on the size of N1 that is equal to the known size in calculate_N1() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | nv40.c | 63 int N1 = (coef & 0x0000ff00) >> 8; in read_pll_2() local 69 khz = ref * N1 / M1; in read_pll_2() 125 int *N1, int *M1, int *N2, int *M2, int *log2P) in nv40_clk_calc_pll() argument 138 ret = nv04_pll_calc(subdev, &pll, khz, N1, M1, N2, M2, log2P); in nv40_clk_calc_pll() 151 int N1, M1, N2, M2, log2P; in nv40_clk_calc() local 156 &N1, &M1, &N2, &M2, &log2P); in nv40_clk_calc() 162 clk->npll_coef = (N1 << 8) | M1; in nv40_clk_calc() 165 clk->npll_coef = (N2 << 24) | (M2 << 16) | (N1 << 8) | M1; in nv40_clk_calc() 171 &N1, &M1, NULL, NULL, &log2P); in nv40_clk_calc() 175 clk->spll = 0xc0000000 | (log2P << 16) | (N1 << 8) | M1; in nv40_clk_calc()
|
H A D | pllnv04.c | 151 int M1, N1, M2, N2, log2P; in getMNP_double() local 170 for (N1 = minN1; N1 <= maxN1; N1++) { in getMNP_double() 171 calcclk1 = crystal * N1 / M1; in getMNP_double() 211 *pN1 = N1; in getMNP_double() 228 int *N1, int *M1, int *N2, int *M2, int *P) in nv04_pll_calc() argument 233 ret = getMNP_single(subdev, info, freq, N1, M1, P); in nv04_pll_calc() 239 ret = getMNP_double(subdev, info, freq, N1, M1, N2, M2, P); in nv04_pll_calc()
|
/openbmc/u-boot/drivers/thermal/ |
H A D | imx_thermal.c | 57 int t1, n1; in read_cpu_temperature() local 68 n1 = fuse >> 20; in read_cpu_temperature() 74 * slope = (FACTOR2 - FACTOR1 * n1) / FACTOR0 in read_cpu_temperature() 77 * (Nmeas - n1) / (Tmeas - t1 - offset) = slope in read_cpu_temperature() 81 * Tmeas = (Nmeas - n1) / slope + t1 + offset in read_cpu_temperature() 82 * milli_Tmeas = 1000000 * (Nmeas - n1) / slope + 1000000 * t1 + OFFSET in read_cpu_temperature() 83 * milli_Tmeas = -1000000 * (n1 - Nmeas) / slope + 1000000 * t1 + OFFSET in read_cpu_temperature() 85 * milli_Tmeas = (n1 - Nmeas) * c1 + 1000000 * t1 + OFFSET in read_cpu_temperature() 86 * Let constant c2 = n1 *c1 + 1000000 * t1 in read_cpu_temperature() 92 temp64 = div_s64_rem(temp64, FACTOR1 * n1 - FACTOR2, &rem); in read_cpu_temperature() [all …]
|
/openbmc/qemu/include/hw/ssi/ |
H A D | pnv_spi.h | 49 /* N1/N2_bits specifies the size of the N1/N2 segment of a frame in bits.*/ 52 /* Number of bytes in a payload for the N1/N2 frame segment.*/ 55 /* Number of N1/N2 bytes marked for transmit */ 58 /* Number of N1/N2 bytes marked for receive */
|
/openbmc/openbmc/poky/meta/conf/machine/include/arm/armv8-2a/ |
H A D | tune-neoversen1.inc | 2 # Tune Settings for Neoverse-N1 6 TUNEVALID[neoversen1] = "Enable Neoverse-N1 specific processor optimizations" 7 # Note: Neoverse was called Ares, and GCC will accept "ares" in place of "neoverse-n1" 8 TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'neoversen1', ' -mcpu=neoverse-n1', '', d)}"
|
/openbmc/linux/drivers/clk/meson/ |
H A D | clk-dualdiv.c | 41 return DIV_ROUND_CLOSEST(parent_rate, p->n1); in __dualdiv_param_to_rate() 44 p->n1 * p->m1 + p->n2 * p->m2); in __dualdiv_param_to_rate() 55 setting.n1 = meson_parm_read(clk->map, &dualdiv->n1) + 1; in meson_clk_dualdiv_recalc_rate() 74 for (i = 0; table[i].n1; i++) { in __dualdiv_get_setting() 120 meson_parm_write(clk->map, &dualdiv->n1, setting->n1 - 1); in meson_clk_dualdiv_set_rate()
|
/openbmc/qemu/util/ |
H A D | fifo8.c | 118 uint32_t n1, n2 = 0; in fifo8_peekpop_buf() local 126 buf = fifo8_peekpop_bufptr(fifo, len, 0, &n1, do_pop); in fifo8_peekpop_buf() 128 memcpy(dest, buf, n1); in fifo8_peekpop_buf() 132 len -= n1; in fifo8_peekpop_buf() 135 buf = fifo8_peekpop_bufptr(fifo, len, do_pop ? 0 : n1, &n2, do_pop); in fifo8_peekpop_buf() 137 memcpy(&dest[n1], buf, n2); in fifo8_peekpop_buf() 141 return n1 + n2; in fifo8_peekpop_buf()
|
/openbmc/linux/arch/mips/bcm63xx/ |
H A D | cpu.c | 164 unsigned int tmp, n1, n2, m1; in detect_cpu_clock() local 166 /* 16MHz * (N1 + 1) * (N2 + 2) / (M1_CPU + 1) */ in detect_cpu_clock() 168 n1 = (tmp & MIPSPLLCTL_N1_MASK) >> MIPSPLLCTL_N1_SHIFT; in detect_cpu_clock() 171 n1 += 1; in detect_cpu_clock() 174 return (16 * 1000000 * n1 * n2) / m1; in detect_cpu_clock() 179 unsigned int tmp, n1, n2, m1; in detect_cpu_clock() local 181 /* 16MHz * N1 * N2 / M1_CPU */ in detect_cpu_clock() 183 n1 = (tmp & DMIPSPLLCFG_N1_MASK) >> DMIPSPLLCFG_N1_SHIFT; in detect_cpu_clock() 186 return (16 * 1000000 * n1 * n2) / m1; in detect_cpu_clock()
|
/openbmc/linux/tools/testing/selftests/kvm/lib/ |
H A D | elf.c | 137 for (unsigned int n1 = 0; n1 < hdr.e_phnum; n1++) { in kvm_vm_elf_load() local 139 offset = hdr.e_phoff + (n1 * hdr.e_phentsize); in kvm_vm_elf_load() 145 n1, filename, (intmax_t) offset_rv, errno); in kvm_vm_elf_load() 159 n1, (uint64_t) phdr.p_memsz); in kvm_vm_elf_load() 172 n1, seg_vstart, vaddr); in kvm_vm_elf_load() 188 n1, errno, (intmax_t) offset_rv, in kvm_vm_elf_load()
|
/openbmc/linux/drivers/thermal/ |
H A D | imx_thermal.c | 389 int n1; in imx_init_calib() local 399 * Tmeas = ( Nmeas - n1) + 25; n1 is the fuse value for 25C. in imx_init_calib() 408 * (aka N1) at this temperature is provided in bits [31:20] in the in imx_init_calib() 413 * T = T1 + (N - N1) / (0.4148468 - 0.0015423 * N1) °C + 3.580661 °C in imx_init_calib() 414 * = [T1' - N1 / (0.4148468 - 0.0015423 * N1) °C] + N / (0.4148468 - 0.0015423 * N1) °C in imx_init_calib() 415 * = [T1' + N1 / (0.0015423 * N1 - 0.4148468) °C] - N / (0.0015423 * N1 - 0.4148468) °C in imx_init_calib() 421 * c1 = 1 / (0.0015423 * N1 - 0.4297157) °C in imx_init_calib() 422 * c2 = T1' + N1 / (0.0015423 * N1 - 0.4148468) °C in imx_init_calib() 423 * = T1' + N1 * c1 in imx_init_calib() 425 n1 = ocotp_ana1 >> 20; in imx_init_calib() [all …]
|
/openbmc/linux/scripts/coccinelle/iterators/ |
H A D | for_each_child.cocci | 25 expression list [n1] es; 55 expression list [r.n1] es; 84 expression list [r.n1] es; 117 expression list [r.n1] es; 150 expression list[r.n1] es; 173 expression list[r.n1] es; 188 expression list[r.n1] es; 219 expression list[r.n1] es; 243 expression list[r.n1] es; 277 expression list[r.n1] es;
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-security/keyutils/files/ |
H A D | 0002-tests-Use-head-n1-for-busybox-compatibility.patch | 4 Subject: [PATCH 2/2] tests: Use `head -n1` for busybox compatibility 23 + seskeyring="`tail -2 $OUTPUTFILE | head -n1`" 32 +seskeyring="`tail -2 $OUTPUTFILE | head -n1`" 45 +keyring1="`grep -n keyring $OUTPUTFILE | cut -d: -f1 | head -n1`" 58 + my_logline="`tail -2 $watch_log | head -n1`"
|
/openbmc/qemu/target/xtensa/ |
H A D | win_helper.c | 43 uint32_t n1 = env->config->nareg - phys; in copy_window_from_phys() local 45 n1 * sizeof(uint32_t)); in copy_window_from_phys() 46 memcpy(env->regs + window + n1, env->phys_regs, in copy_window_from_phys() 47 (n - n1) * sizeof(uint32_t)); in copy_window_from_phys() 59 uint32_t n1 = env->config->nareg - phys; in copy_phys_from_window() local 61 n1 * sizeof(uint32_t)); in copy_phys_from_window() 62 memcpy(env->phys_regs, env->regs + window + n1, in copy_phys_from_window() 63 (n - n1) * sizeof(uint32_t)); in copy_phys_from_window()
|
/openbmc/openbmc/meta-ampere/meta-mitchell/recipes-phosphor/sensors/phosphor-virtual-sensor/ |
H A D | mtmitchell_virtual_sensor_config.json | 133 "ParamName": "n1", 295 …"Expression": "maxIgnoreNaN(n0, n1, n2, n3, n4, n5, n6, n7, n8, n9, n10, n11, n12, n13, n14, n15, … 322 "ParamName": "n1", 344 "Expression": "maxIgnoreNaN(n1, n2, n3)" 374 "ParamName": "n1", 480 … "Expression": "maxIgnoreNaN(n0, n1, n2, n3, n4, n5, n6, n7, n8, n9, n10, n11, n12, n13, n14, n15)" 510 "ParamName": "n1", 616 … "Expression": "maxIgnoreNaN(n0, n1, n2, n3, n4, n5, n6, n7, n8, n9, n10, n11, n12, n13, n14, n15)"
|
/openbmc/linux/mm/damon/ |
H A D | dbgfs-test.h | 98 char * const valid_inputs[] = {"1 10 20\n 1 20 30\n1 35 45", in damon_dbgfs_test_set_init_regions() 103 char * const valid_expects[] = {"1 10 20\n1 20 30\n1 35 45\n", in damon_dbgfs_test_set_init_regions() 105 "0 39 59\n0 70 134\n1 10 20\n1 20 25\n", in damon_dbgfs_test_set_init_regions() 109 "0 10 20\n1 30 40\n 0 5 8"}; /* not sorted by address */ in damon_dbgfs_test_set_init_regions()
|