/linux/arch/powerpc/platforms/embedded6xx/ |
H A D | usbgecko_udbg.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (C) 2008-2009 The GameCube Linux Team 33 #define EXI_CR_TLEN(len) (((len)-1)<<4) 95 * Tries to transmit a character. 104 * Transmits a character. 117 while (!ug_is_txfifo_ready() && count--) in ug_putc() 132 * Tries to receive a character. 133 * If a character is unavailable the function returns -1. 141 return -1; in ug_raw_getc() 145 * Receives a character. [all …]
|
/linux/Documentation/arch/arm/ |
H A D | setup.rst | 46 These two together describe the character size of the dummy console, 47 or VGA console character size. They should not be used for any other 51 the equivalent character size of your fbcon display. This then allows 55 This describes the character position of cursor on VGA console, and 77 is non-contiguous from the processors point of view. 95 system 64-bit serial number 101 0-66 MHz. If no params are passed or a value of zero is passed, 104 paths[8][128]
|
/linux/drivers/usb/serial/ |
H A D | keyspan_usa67msg.h | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 5 Copyright (c) 1998-2007 InnoSys Incorporated. All Rights Reserved 6 This file is available under a BSD-style copyright 19 Copyright (c) 1998-2007 InnoSys Incorporated. All Rights Reserved 21 This file is available under a BSD-style copyright 48 USB OUT (host -> USAxx, transmit) messages contain a 56 USB IN (USAxx -> host, receive) messages begin with a status 92 128 characters, starting at the first character of the 93 message in which OVERRUN was reported; the lost character(s) 94 would have been received between the 128th and 129th [all …]
|
H A D | keyspan_usa26msg.h | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 5 Copyright (C) 1998-2000 InnoSys Incorporated. All Rights Reserved 6 This file is available under a BSD-style copyright 19 Copyright (C) 1998-2000 InnoSys Incorporated. All Rights Reserved 21 This file is available under a BSD-style copyright 44 USB OUT (host -> USAxx, transmit) messages contain a 52 USB IN (USAxx -> host, receive) messages begin with a status 88 128 characters, starting at the first character of the 89 message in which OVERRUN was reported; the lost character(s) 90 would have been received between the 128th and 129th [all …]
|
H A D | keyspan_usa49msg.h | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 5 Copyright (C) 1998-2000 InnoSys Incorporated. All Rights Reserved 6 This file is available under a BSD-style copyright 19 Copyright (C) 1998-2000 InnoSys Incorporated. All Rights Reserved 21 This file is available under a BSD-style copyright 44 USB OUT (host -> USAxx, transmit) messages contain a 52 USB IN (USAxx -> host, receive) messages begin with a status 88 128 characters, starting at the first character of the 89 message in which OVERRUN was reported; the lost character(s) 90 would have been received between the 128th and 129th [all …]
|
/linux/fs/udf/ |
H A D | ecma_167.h | 4 * This file is based on ECMA-167 3rd edition (June 1997) 7 * Copyright (c) 2001-2002 Ben Fennema 8 * Copyright (c) 2017-2019 Pali Rohár <pali@kernel.org> 38 * ECMA-167r3 defines and structure definitions 46 /* Character sets and coding - d-characters (ECMA 167r3 1/7.2) */ 49 /* Character set specification (ECMA 167r3 1/7.2.1) */ 55 /* Character Set Type (ECMA 167r3 1/7.2.1.1) */ 66 /* Fixed-length character fields - d-string (EMCA 167r3 1/7.2.12) */ 116 #define VSD_STD_ID_CD001 "CD001" /* (ECMA-119) */ 117 #define VSD_STD_ID_CDW02 "CDW02" /* (ECMA-168) */ [all …]
|
/linux/tools/testing/selftests/prctl/ |
H A D | set-anon-vma-name-test.c | 1 // SPDX-License-Identifier: GPL-2.0 32 return -errno; in rename_vma() 40 char line_buf[512], name[128], mode[8]; in was_renaming_successful() 44 char target_buf[128]; in was_renaming_successful() 57 sscanf_res = sscanf(line_buf, "%lx-%lx %7s %lx %u:%u %u %s", &start_addr, in was_renaming_successful() 79 self->ptr_anon = mmap(NULL, AREA_SIZE, PROT_READ | PROT_WRITE, in FIXTURE_SETUP() 81 ASSERT_NE(self->ptr_anon, NULL); in FIXTURE_SETUP() 82 self->ptr_not_anon = mmap(NULL, AREA_SIZE, PROT_READ | PROT_WRITE, in FIXTURE_SETUP() 84 ASSERT_NE(self->ptr_not_anon, NULL); in FIXTURE_SETUP() 88 munmap(self->ptr_anon, AREA_SIZE); in FIXTURE_TEARDOWN() [all …]
|
/linux/scripts/dtc/ |
H A D | util.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 57 memcpy(d, s, len - 1); in xavsprintf_append() 58 d[len - 1] = '\0'; in xavsprintf_append() 65 int n, size = 0; /* start with 128 bytes */ in xavsprintf_append() 120 if ((lenp > 0) && (path[lenp-1] == '/')) { in util_is_printable_string() 122 len- in util_is_printable_string() [all...] |
/linux/Documentation/admin-guide/device-mapper/ |
H A D | zero.rst | 2 dm-zero 5 Device-Mapper's "zero" target provides a block-device that always returns 7 /dev/zero, but as a block-device instead of a character-device. 9 Dm-zero has no target-specific parameters. 11 One very interesting use of dm-zero is for creating "sparse" devices in 12 conjunction with dm-snapshot. A sparse device reports a device-size larger 20 To create a sparse device, start by creating a dm-zero device that's the 27 Then create a snapshot of the zero device, using any available block-device as 32 echo "0 $TEN_TERABYTES snapshot /dev/mapper/zero1 /dev/sdb1 p 128" | \
|
/linux/drivers/infiniband/hw/hfi1/ |
H A D | eprom.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 13 * partition 0: the first 128K, visible from PCI ROM BAR 17 #define P0_SIZE (128 * 1024) 24 #define EP_PAGE_MASK (EP_PAGE_SIZE - 1) 75 * command address range. Note that '>' is correct below - the end in read_length() 79 return -EINVAL; in read_length() 91 bytes = EP_PAGE_SIZE - start_offset; in read_length() 102 len -= bytes; in read_length() 113 len -= EP_PAGE_SIZE; in read_length() 134 if (dd->pcidev->device != PCI_DEVICE_ID_INTEL0) in eprom_init() [all …]
|
/linux/include/uapi/mtd/ |
H A D | ubi-user.h | 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 33 * &struct ubi_attach_req object - UBI will attach the MTD device specified in 46 * UBI volumes are created via the %UBI_IOCMKVOL ioctl command of UBI character 53 * To delete a volume, the %UBI_IOCRMVOL ioctl command of the UBI character 54 * device should be used. A pointer to the 32-bit volume ID hast to be passed 57 * UBI volume re-size 60 * To re-size a volume, the %UBI_IOCRSVOL ioctl command of the UBI character 64 * UBI volumes re-name 67 * To re-name several volumes atomically at one go, the %UBI_IOCRNVOL command [all …]
|
/linux/Documentation/admin-guide/aoe/ |
H A D | aoe.rst | 11 http://support.coraid.com/support/linux/EtherDrive-2.6-HOWTO.html 16 http://support.coraid.com/support/linux/EtherDrive-2.6-HOWTO-5.html#ss5.19 23 The scripts in this Documentation/admin-guide/aoe directory are intended to 35 There is a udev-install.sh script that shows how to install these 59 In the future these character devices may disappear and be replaced 86 a convenient way. Users with aoetools should use the aoe-stat 89 root@makki root# sh Documentation/admin-guide/aoe/status.sh 114 whitespace-separated list. Unlike the old character device, the 118 interfaces. The aoetools package provides an aoe-discover script 125 There is a boot option for the built-in aoe driver and a [all …]
|
/linux/lib/ |
H A D | test-kstrtox.c | 36 rv = fn(t->str, t->base, &tmp); \ 38 WARN(1, "str '%s', base %u, expected -E, got %d/" fmt "\n", \ 39 t->str, t->base, rv, tmp); \ 54 rv = fn(t->str, t->base, &res); \ 57 t->str, t->base, t->expected_res, rv); \ 60 if (res != t->expected_res) { \ 62 t->str, t->base, t->expected_res, res); \ 75 {"128", 10, 128ULL}, in test_kstrtoull_ok() 174 {"-", 0}, in test_kstrtoull_fail() 175 {"-", 8}, in test_kstrtoull_fail() [all …]
|
/linux/drivers/s390/char/ |
H A D | keyboard.c | 1 // SPDX-License-Identifier: GPL-2.0 38 255, ARRAY_SIZE(func_table) - 1, NR_FN_HANDLER - 1, 0, 39 NR_DEAD - 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 63 '-', /* dead_stroke */ 84 kbd->key_maps = kzalloc(sizeof(ebc_key_maps), GFP_KERNEL); in kbd_alloc() 85 if (!kbd->key_maps) in kbd_alloc() 89 kbd->key_maps[i] = kmemdup(ebc_key_maps[i], in kbd_alloc() 92 if (!kbd->key_maps[i]) in kbd_alloc() 96 kbd->func_table = kzalloc(sizeof(ebc_func_table), GFP_KERNEL); in kbd_alloc() 97 if (!kbd->func_table) in kbd_alloc() [all …]
|
/linux/samples/check-exec/ |
H A D | inc.c | 1 // SPDX-License-Identifier: BSD-3-Clause 5 * - "?" to initialize a counter from user's input; 6 * - "+" to increment the counter (which is set to 0 by default). 8 * See tools/testing/selftests/exec/check-exec-tests.sh and 9 * Documentation/userspace-api/check_exec.rst 39 /* Each command is the first character of a line. */ in interpret_buffer() 65 fprintf(stderr, "# ERROR: Unknown character '%c'\n", in interpret_buffer() 80 char buf[128] = {}; in interpret_stream() 96 buf_size = fread(buf, 1, buf_size - 1, script); in interpret_stream() 102 fprintf(stderr, "usage: %s <script.inc> | -i | -c <command>\n\n", in print_usage() [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-driver-ppi | 9 'find /sys/ -name 'pcrs''. For the detail information of PPI, 14 In Linux 4.2 ppi was moved to the character device directory. 31 executed in the pre-OS environment. It is the only input from 32 the OS to the pre-OS environment. The request should be an 49 This attribute shows the platform-specific action that should 60 operation to be executed in the pre-OS environment by the BIOS 71 operation to be executed in the pre-OS environment by the BIOS 72 for the verdor specific requests, i.e. requests from 128 to
|
/linux/drivers/platform/x86/hp/hp-bioscfg/ |
H A D | biosattr-interface.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * for use with hp-bioscfg driver. 6 * Copyright (c) 2022 Hewlett-Packard Inc. 14 * were introduced that exceeds 128-byte data size. Changes to handle 34 * -ENODEV if device is not found 35 * -EINVAL if the instance of 'Setup Admin' password is not found. 36 * -ENOMEM unable to allocate memory 51 ret = -EINVAL; in hp_set_attribute() 68 ret = -ENOMEM; in hp_set_attribute() 76 ret = -EINVAL; in hp_set_attribute() [all …]
|
/linux/tools/lib/subcmd/ |
H A D | run-command.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include "subcmd-util.h" 13 #include "run-command.h" 14 #include "exec-cmd.h" 16 #define STRERR_BUFSIZE 128 39 * that have been passed in via ->in and ->out. in start_command() 42 need_in = !cmd->no_stdin && cmd->in < 0; in start_command() 45 if (cmd->out > 0) in start_command() 46 close(cmd->out); in start_command() 47 return -ERR_RUN_COMMAND_PIPE; in start_command() [all …]
|
/linux/drivers/firmware/efi/libstub/ |
H A D | vsprintf.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* -*- linux-c -*- ------------------------------------------------------- * 5 * Copyright 2007 rPath, Inc. - All Rights Reserved 7 * ----------------------------------------------------------------------- */ 10 * Oh, it's a waste of space, but oh-so-yummy for debugging. 28 i = i * 10 + *((*s)++) - '0'; in skip_atoi() 44 *--end = '0' + (r - q * 10); in put_dec_full4() 47 *--end = '0' + r; in put_dec_full4() 55 * holds for all x < 1,128,869,999. The largest value this 57 * (second call in the put_dec code, assuming n is all-ones). [all …]
|
/linux/include/linux/ |
H A D | hil.h | 5 * Hewlett Packard Human Interface Loop (HP-HIL) Protocol -- header. 33 * HP-HIL Technical Reference Manual. Hewlett Packard Product No. 45918A 57 * implementing a software MLC to run HIL devices on a non-parisc machine. 109 HIL_ERR_OB = 0x00000800, /* MLC is busy sending an auto-poll, 131 /* This gives us a 32-bit "packet" 140 HIL_CMD_EPT = 0x01, /* Enter Pass-Thru Mode */ 141 HIL_CMD_ELB = 0x02, /* Enter Loop-Back Mode */ 181 /* 0x80 to 0xEF device-specific commands */ 226 #define HIL_IDD_DID_TYPE_CHAR 0x40 /* Character Entry */ 254 #define HIL_IDD_HEADER_2X_AXIS 0x80 /* Two sets of 1-3 axis */ [all …]
|
H A D | serial_core.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 25 ((port)->cons && (port)->cons->index == (port)->line) 37 * struct uart_ops - [all...] |
/linux/tools/perf/util/ |
H A D | addr2line.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <subcmd/run-command.h> 47 if (a2l->pid != -1) { in addr2line_subprocess_cleanup() 48 kill(a2l->pid, SIGKILL); in addr2line_subprocess_cleanup() 50 a2l->pid = -1; in addr2line_subprocess_cleanup() 51 close(a2l->in); in addr2line_subprocess_cleanup() 52 close(a2l->out); in addr2line_subprocess_cleanup() 63 "-e", binary_path, in addr2line_subprocess_init() 64 "-a", "-i", "-f", NULL in addr2line_subprocess_init() 74 a2l->pid = -1; in addr2line_subprocess_init() [all …]
|
/linux/drivers/gpu/drm/tests/ |
H A D | drm_connector_test.c | 1 // SPDX-License-Identifier: GPL-2.0 74 strscpy(priv->ddc.name, "dummy-connector-ddc", sizeof(priv->ddc.name)); in drm_test_connector_init() 75 priv->ddc.owner = THIS_MODULE; in drm_test_connector_init() 76 priv->ddc.algo = &dummy_ddc_algorithm; in drm_test_connector_init() 77 priv->ddc.dev.parent = dev; in drm_test_connector_init() 79 ret = i2c_add_adapter(&priv->ddc); in drm_test_connector_init() 82 ret = kunit_add_action_or_reset(test, i2c_del_adapter_wrapper, &priv->ddc); in drm_test_connector_init() 85 test->priv = priv; in drm_test_connector_init() 95 struct drm_connector_init_priv *priv = test->priv; in drm_test_drmm_connector_init() 98 ret = drmm_connector_init(&priv->drm, &priv->connector, in drm_test_drmm_connector_init() [all …]
|
/linux/arch/x86/kernel/cpu/mce/ |
H A D | dev-mcelog.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 static char mce_helper[128]; 42 if (mce->kflags & MCE_HANDLED_CEC) in dev_mce_log() 47 entry = mcelog->next; in dev_mce_log() 53 if (entry >= mcelog->len) { in dev_mce_log() 54 set_bit(MCE_OVERFLOW, (unsigned long *)&mcelog->flags); in dev_mce_log() 58 mcelog->next = entry + 1; in dev_mce_log() 60 memcpy(mcelog->entry + entry, mce, sizeof(struct mce)); in dev_mce_log() 61 mcelog->entry[entry].finished = 1; in dev_mce_log() 62 mcelog->entry[entry].kflags = 0; in dev_mce_log() [all …]
|
/linux/include/uapi/linux/ |
H A D | map_to_7segment.h | 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 10 * of (ASCII) characters to a 7-segments notation. 15 * Notation: +-a-+ 17 * +-g-+ 19 * +-d-+ 23 * Register a map variable, and fill it with a character set: 45 * return -EINVAL; 52 * 2005-05-31 RFC linux-kernel@vger.kernel.org 67 unsigned char table[128]; 72 return c >= 0 && c < sizeof(map->table) ? map->table[c] : -EINVAL; in map_to_seg7() [all …]
|