Home
last modified time | relevance | path

Searched +full:p +full:- +full:256 (Results 1 – 25 of 1036) sorted by relevance

12345678910>>...42

/Linux-v6.1/lib/
Dtest_string.c1 // SPDX-License-Identifier: GPL-2.0-only
10 u16 v, *p; in memset16_selftest() local
12 p = kmalloc(256 * 2 * 2, GFP_KERNEL); in memset16_selftest()
13 if (!p) in memset16_selftest()
14 return -1; in memset16_selftest()
16 for (i = 0; i < 256; i++) { in memset16_selftest()
17 for (j = 0; j < 256; j++) { in memset16_selftest()
18 memset(p, 0xa1, 256 * 2 * sizeof(v)); in memset16_selftest()
19 memset16(p + i, 0xb1b2, j); in memset16_selftest()
21 v = p[k]; in memset16_selftest()
[all …]
Dcrc64.c1 // SPDX-License-Identifier: GPL-2.0
3 * Normal 64-bit CRC calculation.
5 * This is a basic crc64 implementation following ECMA-182 specification,
7 * https://www.ecma-international.org/publications/standards/Ecma-182.htm
10 * algorithm, here the CRC64 code is also inspired by the table-driven
15 * crc64table[256] is the lookup table of a table-driven 64-bit CRC
17 * time. The polynomial of crc64 arithmetic is from ECMA-182 specification
25 * crc64rocksoft[256] table is from the Rocksoft specification polynomial
45 * crc64_be - Calculate bitwise big-endian ECMA-182 CRC64
48 * @p: pointer to buffer over which CRC64 is run
[all …]
/Linux-v6.1/lib/raid6/
Drecov_s390xc.c1 // SPDX-License-Identifier: GPL-2.0
3 * RAID-6 data recovery in dual failure mode based on the XC instruction.
14 typedef struct { u8 _[256]; } addrtype; in xor_block()
17 " xc 0(256,%[p1]),0(%[p2])\n" in xor_block()
26 u8 *p, *q, *dp, *dq; in raid6_2data_recov_s390xc() local
27 const u8 *pbmul; /* P multiplier table for B data */ in raid6_2data_recov_s390xc()
31 p = (u8 *)ptrs[disks-2]; in raid6_2data_recov_s390xc()
32 q = (u8 *)ptrs[disks-1]; in raid6_2data_recov_s390xc()
36 delta p and delta q */ in raid6_2data_recov_s390xc()
39 ptrs[disks-2] = dp; in raid6_2data_recov_s390xc()
[all …]
/Linux-v6.1/crypto/
Decrdsa_defs.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Definitions of EC-RDSA Curve Parameters
22 * EC-RDSA uses its own set of curves.
24 * cp256{a,b,c} curves first defined for GOST R 34.10-2001 in RFC 4357 (as
25 * 256-bit {A,B,C}-ParamSet), but inherited for GOST R 34.10-2012 and
26 * proposed for use in R 50.1.114-2016 and RFC 7836 as the 256-bit curves.
35 static u64 cp256a_p[] = { /* p = 2^256 - 617 */
41 static u64 cp256a_a[] = { /* a = p - 3 */
53 .ndigits = 256 / 64,
55 .p = cp256a_p,
[all …]
Dgf128mul.c1 /* gf128mul.c - GF(2^128) multiplication functions
17 ---------------------------------------------------------------------------
44 ---------------------------------------------------------------------------
94 * 16-bit value that must be XOR-ed into the low-degree end of the
98 * the "be" convention where the highest-order bit is the coefficient of
99 * the highest-degree polynomial term, and one for the "le" convention
100 * where the highest-order bit is the coefficient of the lowest-degree
129 static const u16 gf128mul_table_le[256] = gf128mul_dat(xda_le);
130 static const u16 gf128mul_table_be[256] = gf128mul_dat(xda_be);
134 * the polynomial field representation. They use 64-bit word operations
[all …]
/Linux-v6.1/tools/testing/selftests/tc-testing/tc-tests/qdiscs/
Dfq_codel.json18 …"matchPattern": "qdisc fq_codel 1: root refcnt [0-9]+ limit 10240p flows 1024 quantum.*target 5ms …
41 …"matchPattern": "qdisc fq_codel 1: root refcnt [0-9]+ limit 1000p flows 1024 quantum.*target 5ms i…
64 …"matchPattern": "qdisc fq_codel 1: root refcnt [0-9]+ limit 10240p flows 1024 quantum.*target 5ms …
87 …"matchPattern": "qdisc fq_codel 1: root refcnt [0-9]+ limit 10240p flows 1024 quantum.*target 2ms …
110 …"matchPattern": "qdisc fq_codel 1: root refcnt [0-9]+ limit 10240p flows 1024 quantum.*target 5ms …
133 …"matchPattern": "qdisc fq_codel 1: root refcnt [0-9]+ limit 10240p flows 1024 quantum 9000 target …
156 …"matchPattern": "qdisc fq_codel 1: root refcnt [0-9]+ limit 10240p flows 1024 quantum.*target 5ms …
179 …"matchPattern": "qdisc fq_codel 1: root refcnt [0-9]+ limit 10240p flows 1024 quantum.*target 5ms …
202 …"matchPattern": "qdisc fq_codel 1: root refcnt [0-9]+ limit 10240p flows 1024 quantum.*target 5ms …
222 …"cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq_codel limit 1000 flows 256 drop_batch …
[all …]
/Linux-v6.1/drivers/s390/crypto/
Dzcrypt_cex2a.h1 /* SPDX-License-Identifier: GPL-2.0+ */
19 * Note that all unsigned char arrays are right-justified and left-padded
42 /* Mod-Exp, with a small modulus */
52 /* Mod-Exp, with a large modulus */
57 unsigned char exponent[256];
58 unsigned char modulus[256];
59 unsigned char message[256];
62 /* Mod-Exp, with a larger modulus */
77 unsigned char p[64]; member
90 unsigned char p[128]; member
[all …]
Dzcrypt_msgtype50.c1 // SPDX-License-Identifier: GPL-2.0+
47 * Note that all unsigned char arrays are right-justified and left-padded
70 /* Mod-Exp, with a small modulus */
80 /* Mod-Exp, with a large modulus */
85 unsigned char exponent[256];
86 unsigned char modulus[256];
87 unsigned char message[256];
90 /* Mod-Exp, with a larger modulus */
105 unsigned char p[64]; member
118 unsigned char p[128]; member
[all …]
/Linux-v6.1/fs/jffs2/
Dcompr_rubin.c2 * JFFS2 -- Journalling Flash File System, Version 2.
4 * Copyright © 2001-2007 Red Hat, Inc.
5 * Copyright © 2004-2010 David Woodhouse <dwmw2@infradead.org>
23 #define UPPER_BIT_RUBIN (((long) 1)<<(RUBIN_REG_SIZE-1))
24 #define LOWER_BITS_RUBIN ((((long) 1)<<(RUBIN_REG_SIZE-1))-1)
38 unsigned long p; member
51 pp->buf = buf; in init_pushpull()
52 pp->buflen = buflen; in init_pushpull()
53 pp->ofs = ofs; in init_pushpull()
54 pp->reserve = reserve; in init_pushpull()
[all …]
/Linux-v6.1/Documentation/userspace-api/media/rc/
Dkeytable.c.rst1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
6 .. code-block:: c
8 /* keytable.c - This program allows checking/replacing keys at IR
10 Copyright (C) 2006-2009 Mauro Carvalho Chehab <mchehab@kernel.org>
35 struct parse_key *p;
37 for (p=keynames;p->name!=NULL;p++) {
38 if (p->value == (unsigned)codes[1]) {
39 printf("scancode 0x%04x = %s (0x%02x)\\n", codes[0], p->name, codes[1]);
52 struct parse_key *p;
54 for (p=keynames;p->name!=NULL;p++) {
[all …]
/Linux-v6.1/drivers/isdn/mISDN/
Ddsp_audio.c20 /* ulaw[unsigned char] -> signed 16-bit */
21 s32 dsp_audio_ulaw_to_s32[256];
22 /* alaw[unsigned char] -> signed 16-bit */
23 s32 dsp_audio_alaw_to_s32[256];
28 /* signed 16-bit -> law */
32 /* alaw -> ulaw */
33 u8 dsp_audio_alaw_to_ulaw[256];
34 /* ulaw -> alaw */
35 static u8 dsp_audio_ulaw_to_alaw[256];
61 pcm_val = -pcm_val; in linear2alaw()
[all …]
/Linux-v6.1/security/selinux/ss/
Davtab.h1 /* SPDX-License-Identifier: GPL-2.0-only */
52 * extended permissions may be used to provide 256 bits of permissions.
55 /* These are not flags. All 256 values may be used */
61 * if 256 bits is not adequate as is often the case with ioctls, then
66 /* 256 bits of permissions */
100 const struct avtab_datum *d, void *p),
101 void *p);
104 int avtab_write_item(struct policydb *p, const struct avtab_node *cur, void *fp);
105 int avtab_write(struct policydb *p, struct avtab *a, void *fp);
/Linux-v6.1/drivers/tty/vt/
Dconmakehash.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 * Copyright (C) 1995-1997 H. Peter Anvin
20 #define MAX_FONTLEN 256
33 char *p = *p0; in getunicode() local
35 while (*p == ' ' || *p == '\t') in getunicode()
36 p++; in getunicode()
37 if (*p != 'U' || p[1] != '+' || in getunicode()
38 !isxdigit(p[2]) || !isxdigit(p[3]) || !isxdigit(p[4]) || in getunicode()
39 !isxdigit(p[5]) || isxdigit(p[6])) in getunicode()
40 return -1; in getunicode()
[all …]
/Linux-v6.1/arch/arm/mach-shmobile/
Dpm-rcar-gen2.c1 // SPDX-License-Identifier: GPL-2.0
3 * R-Car Generation 2 Power management support
5 * Copyright (C) 2013 - 2015 Renesas Electronics Corporation
18 #include "rcar-gen2.h"
33 #define CA15RESCNT_CPUS 0xf /* CPU0-3 */
35 #define CA7RESCNT_CPUS 0xf /* CPU0-3 */
37 /* On-chip RAM */
47 void __iomem *p; in rcar_gen2_pm_init() local
60 if (of_device_is_compatible(np, "arm,cortex-a15")) in rcar_gen2_pm_init()
62 else if (of_device_is_compatible(np, "arm,cortex-a7")) in rcar_gen2_pm_init()
[all …]
/Linux-v6.1/drivers/clk/sunxi/
Dclk-sun9i-core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2014 Chen-Yu Tsai
5 * Chen-Yu Tsai <wens@csie.org>
9 #include <linux/clk-provider.h>
14 #include "clk-factors.h"
18 * sun9i_a80_get_pll4_factors() - calculates n, p, m factors for PLL4
20 * rate = (parent_rate * n >> p) / (m + 1);
23 * p and m are named div1 and div2 in Allwinner's SDK
30 int p = 1; in sun9i_a80_get_pll4_factors() local
33 n = DIV_ROUND_UP(req->rate, 6000000); in sun9i_a80_get_pll4_factors()
[all …]
/Linux-v6.1/fs/hpfs/
Dmap.c1 // SPDX-License-Identifier: GPL-2.0
5 * Mikulas Patocka (mikulas@artax.karlin.mff.cuni.cz), 1998-1999
14 return hpfs_map_4sectors(s, hpfs_sb(s)->sb_dmap, qbh, 0); in hpfs_map_dnode_bitmap()
22 unsigned n_bands = (hpfs_sb(s)->sb_fs_size + 0x3fff) >> 14; in hpfs_map_bitmap()
23 if (hpfs_sb(s)->sb_chk) if (bmp_block >= n_bands) { in hpfs_map_bitmap()
27 sec = le32_to_cpu(hpfs_sb(s)->sb_bmp_dir[bmp_block]); in hpfs_map_bitmap()
28 if (!sec || sec > hpfs_sb(s)->sb_fs_size-4) { in hpfs_map_bitmap()
29 hpfs_error(s, "invalid bitmap block pointer %08x -> %08x at %s", bmp_block, sec, id); in hpfs_map_bitmap()
40 unsigned n_bands = (hpfs_sb(s)->sb_fs_size + 0x3fff) >> 14; in hpfs_prefetch_bitmap()
43 to_prefetch = le32_to_cpu(hpfs_sb(s)->sb_bmp_dir[bmp_block]); in hpfs_prefetch_bitmap()
[all …]
/Linux-v6.1/arch/x86/mm/
Dtestmmiotrace.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Written by Pekka Paalanen, 2008-2009 <pq@iki.fi>
16 "(or 8 MB if read_far is non-zero).");
20 MODULE_PARM_DESC(read_far, " Offset of a 32-bit read within 8 MB "
33 static void do_write_test(void __iomem *p) in do_write_test() argument
39 for (i = 0; i < 256; i++) in do_write_test()
40 iowrite8(i, p + i); in do_write_test()
43 iowrite16(v16(i), p + i); in do_write_test()
46 iowrite32(v32(i), p + i); in do_write_test()
49 static void do_read_test(void __iomem *p) in do_read_test() argument
[all …]
/Linux-v6.1/drivers/watchdog/
Dat91rm9200_wdt.c1 // SPDX-License-Identifier: GPL-2.0+
19 #include <linux/mfd/syscon/atmel-st.h>
33 #define WDT_MAX_TIME 256 /* seconds */
110 return -EBUSY; in at91_wdt_open()
137 * All counting occurs at SLOW_CLOCK / 128 = 256 Hz in at91_wdt_settimeout()
139 * Since WDV is a 16-bit counter, the maximum period is in at91_wdt_settimeout()
140 * 65536 / 256 = 256 seconds. in at91_wdt_settimeout()
143 return -EINVAL; in at91_wdt_settimeout()
157 * Handle commands from user-space.
163 int __user *p = argp; in at91_wdt_ioctl() local
[all …]
/Linux-v6.1/drivers/usb/dwc2/
Dparams.c1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (C) 2004-2016 Synopsys, Inc.
15 struct dwc2_core_params *p = &hsotg->params; in dwc2_set_bcm_params() local
17 p->host_rx_fifo_size = 774; in dwc2_set_bcm_params()
18 p->max_transfer_size = 65535; in dwc2_set_bcm_params()
19 p->max_packet_count = 511; in dwc2_set_bcm_params()
20 p->ahbcfg = 0x10; in dwc2_set_bcm_params()
25 struct dwc2_core_params *p = &hsotg->params; in dwc2_set_his_params() local
27 p->otg_caps.hnp_support = false; in dwc2_set_his_params()
28 p->otg_caps.srp_support = false; in dwc2_set_his_params()
[all …]
/Linux-v6.1/arch/arm/mach-tegra/
Diomap.h1 /* SPDX-License-Identifier: GPL-2.0-only */
47 #define TEGRA_SB_SIZE 256
89 * two 256MB io windows (that actually only use about 64KB
113 #define IO_TO_VIRT_BETWEEN(p, st, sz) ((p) >= (st) && (p) < ((st) + (sz))) argument
114 #define IO_TO_VIRT_XLATE(p, pst, vst) (((p) - (pst) + (vst))) argument
/Linux-v6.1/drivers/media/dvb-frontends/
Dstv0367.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Driver for ST STV0367 DVB-T & DVB-C demodulator IC.
39 /* DVB-C */
58 /* DVB-T */
84 /* DVB-C */
86 /* DVB-T */
98 /* RF Level (for RF AGC->AGC1) Lookup Table, depends on the board and tuner.*/
110 /* RF Level (for IF AGC->AGC2) Lookup Table, depends on the board and tuner.*/
126 .addr = state->config->demod_address, in stv0367_writeregs()
137 return -EINVAL; in stv0367_writeregs()
[all …]
/Linux-v6.1/drivers/s390/char/
Dkeyboard.c1 // SPDX-License-Identifier: GPL-2.0
37 255, ARRAY_SIZE(func_table) - 1, NR_FN_HANDLER - 1, 0,
38 NR_DEAD - 1, 0, 0, 0, 0, 0, 0, 0, 0, 0
62 '-', /* dead_stroke */
83 kbd->key_maps = kzalloc(sizeof(ebc_key_maps), GFP_KERNEL); in kbd_alloc()
84 if (!kbd->key_maps) in kbd_alloc()
88 kbd->key_maps[i] = kmemdup(ebc_key_maps[i], in kbd_alloc()
91 if (!kbd->key_maps[i]) in kbd_alloc()
95 kbd->func_table = kzalloc(sizeof(ebc_func_table), GFP_KERNEL); in kbd_alloc()
96 if (!kbd->func_table) in kbd_alloc()
[all …]
/Linux-v6.1/arch/arm64/crypto/
Dsha3-ce-glue.c1 // SPDX-License-Identifier: GPL-2.0
3 * sha3-ce-glue.c - core SHA-3 transform using v8.2 Crypto Extensions
26 MODULE_ALIAS_CRYPTO("sha3-224");
27 MODULE_ALIAS_CRYPTO("sha3-256");
28 MODULE_ALIAS_CRYPTO("sha3-384");
29 MODULE_ALIAS_CRYPTO("sha3-512");
38 unsigned int digest_size = crypto_shash_digestsize(desc->tfm); in sha3_update()
43 if ((sctx->partial + len) >= sctx->rsiz) { in sha3_update()
46 if (sctx->partial) { in sha3_update()
47 int p = sctx->rsiz - sctx->partial; in sha3_update() local
[all …]
/Linux-v6.1/scripts/
Dkallsyms.c8 * Usage: nm -n vmlinux | scripts/kallsyms [--all-symbols] > symbols.S
72 "__per_cpu_start", "__per_cpu_end", -1ULL, 0
84 static unsigned char best_table[256][2];
85 static unsigned char best_table_len[256];
90 fprintf(stderr, "Usage: kallsyms [--all-symbols] [--absolute-percpu] " in usage()
91 "[--base-relative] in.map > out.S\n"); in usage()
97 return (char *)s->sym + 1; in sym_name()
108 * when --all-symbols is specified so exclude them to get a in is_ignored_symbol()
128 "__kvm_nvhe_$", /* arm64 local symbols in non-VHE KVM namespace */ in is_ignored_symbol()
129 "__kvm_nvhe_.L", /* arm64 local symbols in non-VHE KVM namespace */ in is_ignored_symbol()
[all …]
/Linux-v6.1/tools/testing/selftests/ftrace/test.d/kprobe/
Dmultiple_kprobes.tc2 # SPDX-License-Identifier: GPL-2.0
8 case `uname -m` in
15 echo "Setup up kprobes on first available 256 text symbols"
16 grep -i " t " /proc/kallsyms | cut -f3 -d" " | grep -v .*\\..* | \
18 echo p ${i}+${OFFS} >> kprobe_events && N=$((N+1)) ||:
19 test $N -eq 256 && break
22 L=`cat kprobe_events | wc -l`
23 if [ $L -ne 256 ]; then
24 echo "The number of kprobes events ($L) is not 256"

12345678910>>...42