Home
last modified time | relevance | path

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

12345678910>>...41

/openbmc/qemu/tests/qemu-iotests/
H A D149.out1 # ================= dm-crypt aes-256-xts-plain64-sha1 =================
3 truncate TEST_DIR/luks-aes-256-xts-plain64-sha1.img --size 4194304MB
5-q -v luksFormat --type luks1 --cipher aes-xts-plain64 --key-size 512 --hash sha1 --key-slot 0 --k…
7 sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-p…
9 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
10 qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-
15 sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
16 qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-
21 sudo cryptsetup -q -v luksClose qiotest-145-aes-256-xts-plain64-sha1
23-io -c read -P 0xa7 100M 10M --object secret,id=sec0,data=MTIzNDU2,format=base64 --image-opts driv…
[all …]
H A D03766 for ((i=0;i<=$((sectors - 1));i++)); do
68 pattern=$(( ( (cur_sec % 256) + (cur_sec / 256)) % 256 ))
70 echo "$op -P $pattern $((cur_sec * 512)) 512"
74 backing_io 0 256 write | $QEMU_IO "$TEST_IMG" | _filter_qemu_io
78 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT 6G
82 $QEMU_IO -c "write -P 0x77 0 2k" "$TEST_IMG" | _filter_qemu_io
83 $QEMU_IO -c "write -P 0x88 6k 2k" "$TEST_IMG" | _filter_qemu_io
84 $QEMU_IO -c "write -P 0x99 9k 2k" "$TEST_IMG" | _filter_qemu_io
86 $QEMU_IO -c "read -P 0x77 0 2k" "$TEST_IMG" | _filter_qemu_io
88 $QEMU_IO -c "read -P 0x88 6k 2k" "$TEST_IMG" | _filter_qemu_io
[all …]
H A D03458 $QEMU_IO -c "write -P 0x55 0 1M" "$TEST_IMG" | _filter_qemu_io
62 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT 6G
66 $QEMU_IO -c "write -z 64k 192k" "$TEST_IMG" | _filter_qemu_io
67 $QEMU_IO -c "write -z 513k 13k" "$TEST_IMG" | _filter_qemu_io
73 $QEMU_IO -c "read -P 0x55 0 64k" "$TEST_IMG" | _filter_qemu_io
74 $QEMU_IO -c "read -P 0x0 64k 192k" "$TEST_IMG" | _filter_qemu_io
75 $QEMU_IO -c "read -P 0x55 256k 257k" "$TEST_IMG" | _filter_qemu_io
76 $QEMU_IO -c "read -P 0x0 513k 13k" "$TEST_IMG" | _filter_qemu_io
77 $QEMU_IO -c "read -P 0x55 526k 498k" "$TEST_IMG" | _filter_qemu_io
81 $QEMU_IO -c "write -P 0xa 60k 8k" "$TEST_IMG" | _filter_qemu_io
[all …]
H A D06640 # This tests qcow2-specific low-level functionality
46 _unsupported_imgopts 'compat=0.10' 'refcount_bits=1[^0-9]' data_file
57 $QEMU_IO -c "write 0 256k" -c "write -z 0 256k" -c "write 64M 512" \
58 -c "discard 0 $IMG_SIZE" -c "read -P 0 0 $IMG_SIZE" "$TEST_IMG" \
76 $QEMU_IO -c 'write -P 42 1M 256k' "$TEST_IMG" | _filter_qemu_io
77 orig_map=$($QEMU_IMG map --output=json "$TEST_IMG")
80 $QEMU_IO -c 'write -z 1M 256k' "$TEST_IMG" | _filter_qemu_io
83 $QEMU_IO -c "write -P 23 $(((1024 + 32) * 1024)) 192k" "$TEST_IMG" \
90 $QEMU_IO -c "read -P 0 $(( 1024 * 1024)) 32k" \
91 -c "read -P 23 $(((1024 + 32) * 1024)) 192k" \
[all …]
/openbmc/linux/lib/
H A 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 …]
H A 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 …]
/openbmc/linux/lib/raid6/
H A 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 …]
/openbmc/linux/net/sunrpc/auth_gss/
H A Dgss_krb5_mech.c1 // SPDX-License-Identifier: BSD-3-Clause
5 * Copyright (c) 2001-2008 The Regents of the University of Michigan.
36 * AES-128 with SHA-1 (RFC 3962)
41 .name = "aes128-cts",
54 .signalg = -1,
55 .sealalg = -1,
65 * AES-256 with SHA-1 (RFC 3962)
70 .name = "aes256-cts",
83 .signalg = -1,
84 .sealalg = -1,
[all …]
/openbmc/linux/crypto/
H A 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 …]
/openbmc/linux/tools/testing/selftests/tc-testing/tc-tests/qdiscs/
H A 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 …]
/openbmc/linux/drivers/s390/crypto/
H A Dzcrypt_msgtype50.c1 // SPDX-License-Identifier: GPL-2.0+
44 * Note that all unsigned char arrays are right-justified and left-padded
67 /* Mod-Exp, with a small modulus */
77 /* Mod-Exp, with a large modulus */
82 unsigned char exponent[256];
83 unsigned char modulus[256];
84 unsigned char message[256];
87 /* Mod-Exp, with a larger modulus */
102 unsigned char p[64]; member
115 unsigned char p[128]; member
[all …]
/openbmc/linux/fs/jffs2/
H A 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 …]
/openbmc/linux/Documentation/userspace-api/media/rc/
H A 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 …]
/openbmc/linux/drivers/isdn/mISDN/
H A 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 …]
/openbmc/linux/security/selinux/ss/
H A 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 */
106 const struct avtab_datum *d, void *p),
107 void *p);
110 int avtab_write_item(struct policydb *p, const struct avtab_node *cur, void *fp);
111 int avtab_write(struct policydb *p, struct avtab *a, void *fp);
/openbmc/linux/drivers/tty/vt/
H A 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 …]
/openbmc/linux/arch/arm/mach-shmobile/
H A 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 …]
/openbmc/linux/lib/crypto/
H A 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 …]
/openbmc/linux/mm/
H A Ddmapool_test.c2 #include <linux/dma-map-ops.h>
3 #include <linux/dma-mapping.h>
25 { .size = 256, .align = 256, .boundary = 0 },
40 static int dmapool_test_alloc(struct dma_pool_pair *p, int blocks) in dmapool_test_alloc() argument
45 p[i].v = dma_pool_alloc(pool, GFP_KERNEL, in dmapool_test_alloc()
46 &p[i].dma); in dmapool_test_alloc()
47 if (!p[i].v) in dmapool_test_alloc()
52 dma_pool_free(pool, p[i].v, p[i].dma); in dmapool_test_alloc()
57 for (--i; i >= 0; i--) in dmapool_test_alloc()
58 dma_pool_free(pool, p[i].v, p[i].dma); in dmapool_test_alloc()
[all …]
/openbmc/linux/drivers/clk/sunxi/
H A 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 …]
/openbmc/linux/arch/x86/mm/
H A 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 …]
/openbmc/linux/fs/hpfs/
H A 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 …]
/openbmc/qemu/host/include/i386/host/
H A Dbufferiszero.c.inc2 * SPDX-License-Identifier: GPL-2.0-or-later
13 /* Note that these vectorized functions may assume len >= 256. */
20 __m128i w = *(__m128i_u *)(buf + len - 16);
21 /* Align head/tail to 16-byte boundaries. */
22 const __m128i *p = QEMU_ALIGN_PTR_DOWN(buf + 16, 16);
23 const __m128i *e = QEMU_ALIGN_PTR_DOWN(buf + len - 1, 16);
27 v |= e[-1]; w |= e[-2];
29 v |= e[-3]; w |= e[-4];
31 v |= e[-5]; w |= e[-6];
33 v |= e[-7]; v |= w;
[all …]
/openbmc/linux/drivers/watchdog/
H A Dat91rm9200_wdt.c1 // SPDX-License-Identifier: GPL-2.0+
19 #include <linux/mfd/syscon/atmel-st.h>
32 #define WDT_MAX_TIME 256 /* seconds */
109 return -EBUSY; in at91_wdt_open()
136 * All counting occurs at SLOW_CLOCK / 128 = 256 Hz in at91_wdt_settimeout()
138 * Since WDV is a 16-bit counter, the maximum period is in at91_wdt_settimeout()
139 * 65536 / 256 = 256 seconds. in at91_wdt_settimeout()
142 return -EINVAL; in at91_wdt_settimeout()
156 * Handle commands from user-space.
162 int __user *p = argp; in at91_wdt_ioctl() local
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-security/nmap/files/
H A D0003-Fix-off-by-one-overflow-in-the-IP-protocol-table.patch4 Subject: [PATCH] Fix off-by-one overflow in the IP protocol table.
8 Upstream-Status: Backport [https://github.com/nmap/nmap/commit/efa0dc36f2ecade6ba8d2ed25dd4d5fbffde…
10 Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
11 ---
13 portlist.cc | 8 ++++----
14 protocols.cc | 6 +++---
16 scan_lists.cc | 10 +++++-----
17 5 files changed, 17 insertions(+), 12 deletions(-)
19 diff --git a/CHANGELOG b/CHANGELOG
21 --- a/CHANGELOG
[all …]

12345678910>>...41