Home
last modified time | relevance | path

Searched +full:s +full:- +full:mode (Results 1 – 25 of 1098) sorted by relevance

12345678910>>...44

/openbmc/qemu/hw/display/
H A Dbochs-display.c5 * See the COPYING file in the top-level directory.
12 #include "hw/qdev-properties.h"
14 #include "hw/display/bochs-vbe.h"
20 #include "ui/qemu-pixman.h"
56 BochsDisplayMode mode; member
59 #define TYPE_BOCHS_DISPLAY "bochs-display"
63 .name = "bochs-display",
75 BochsDisplayState *s = ptr; in bochs_display_vbe_read() local
82 return s->vgamem / (64 * KiB); in bochs_display_vbe_read()
85 if (index >= ARRAY_SIZE(s->vbe_regs)) { in bochs_display_vbe_read()
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/makedevs/makedevs/
H A Dmakedevs.c2 * SPDX-License-Identifier: GPL-2.0-only
30 /* These are all stolen from busybox's libbb to make
33 * -Erik
51 static void verror_msg(const char *s, va_list p) in verror_msg() argument
54 fprintf(stderr, "%s: ", app_name); in verror_msg()
55 vfprintf(stderr, s, p); in verror_msg()
58 static void error_msg_and_die(const char *s, ...) in error_msg_and_die() argument
62 va_start(p, s); in error_msg_and_die()
63 verror_msg(s, p); in error_msg_and_die()
69 static void vperror_msg(const char *s, va_list p) in vperror_msg() argument
[all …]
/openbmc/linux/drivers/parport/
H A Dieee1284.c2 * IEEE-1284 implementation for parport.
5 * Carsten Gross <carsten@sol.wohnheim.uni-ulm.de>
10 * read/write requests to low-level drivers.
38 up (&port->physport->ieee1284.irq); in parport_ieee1284_wakeup()
49 * parport_wait_event - wait for an event on a parallel port
61 * what it's doing as soon as it can.
68 if (!port->physport->cad->timeout) in parport_wait_event()
73 timer_setup(&port->timer, timeout_waiting_on_port, 0); in parport_wait_event()
74 mod_timer(&port->timer, jiffies + timeout); in parport_wait_event()
75 ret = down_interruptible (&port->physport->ieee1284.irq); in parport_wait_event()
[all …]
/openbmc/qemu/hw/sd/
H A Dssi-sd.c4 * Copyright (c) 2007-2009 CodeSourcery.
10 * Validated with U-Boot v2021.01 and Linux v5.10 mmc_spi driver
14 * Contributions after 2012-01-13 are licensed under the terms of the
22 #include "hw/qdev-properties.h"
25 #include "qemu/crc-ccitt.h"
57 uint32_t mode; member
70 #define TYPE_SSI_SD "ssi-sd"
97 /* dummy value - don't care */ in OBJECT_DECLARE_SIMPLE_TYPE()
105 ssi_sd_state *s = SSI_SD(dev); in OBJECT_DECLARE_SIMPLE_TYPE() local
116 * - CMD12 issued at the timing that end bit of CMD12 and end bit of in OBJECT_DECLARE_SIMPLE_TYPE()
[all …]
/openbmc/linux/arch/mips/cavium-octeon/executive/
H A Dcvmx-spi.c7 * Copyright (c) 2003-2008 Cavium Networks
14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
34 #include <asm/octeon/cvmx-config.h>
36 #include <asm/octeon/cvmx-pko.h>
37 #include <asm/octeon/cvmx-spi.h>
39 #include <asm/octeon/cvmx-spxx-defs.h>
40 #include <asm/octeon/cvmx-stxx-defs.h>
41 #include <asm/octeon/cvmx-srxx-defs.h>
96 * @mode: The operating mode for the SPI interface. The interface
[all …]
/openbmc/u-boot/cmd/
H A Dregulator.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2014-2015 Samsung Electronics
9 #include <dm/uclass-internal.h>
20 printf("Error: %d (%s)\n", ret, errno_str(ret)); in failure()
29 int ret = -ENXIO; in do_dev()
36 printf("Can't get the regulator: %s!\n", name); in do_dev()
47 printf("%s: no regulator platform data!\n", currdev->name); in do_dev()
51 printf("dev: %s @ %s\n", uc_pdata->name, currdev->name); in do_dev()
73 pr_err("Regulator: %s - missing platform data!\n", currdev->name); in curr_dev_and_platdata()
77 if (!allow_type_fixed && (*uc_pdata)->type == REGULATOR_TYPE_FIXED) { in curr_dev_and_platdata()
[all …]
/openbmc/linux/usr/
H A Dgen_init_cpio.c1 // SPDX-License-Identifier: GPL-2.0
23 #define xstr(s) #s argument
24 #define str(s) xstr(s) argument
71 static void push_hdr(const char *s) in push_hdr() argument
73 fputs(s, stdout); in push_hdr()
79 char s[256]; in cpio_trailer() local
82 sprintf(s, "%s%08X%08X%08lX%08lX%08X%08lX" in cpio_trailer()
86 0, /* mode */ in cpio_trailer()
98 push_hdr(s); in cpio_trailer()
108 unsigned int mode, uid_t uid, gid_t gid) in cpio_mkslink() argument
[all …]
/openbmc/qemu/block/
H A Dreplication.c12 * See the COPYING file in the top-level directory.
22 #include "system/block-backend.h"
36 ReplicationMode mode; member
50 static void replication_start(ReplicationState *rs, ReplicationMode mode,
57 #define REPLICATION_MODE "mode"
58 #define REPLICATION_TOP_ID "top-id"
86 BDRVReplicationState *s = bs->opaque; in replication_open() local
88 const char *mode; in replication_open() local
96 ret = -EINVAL; in replication_open()
102 mode = qemu_opt_get(opts, REPLICATION_MODE); in replication_open()
[all …]
/openbmc/u-boot/board/samsung/common/
H A Dmisc.c1 // SPDX-License-Identifier: GPL-2.0+
54 offset = snprintf(buf, buf_size, "%s", alt_setting); in set_dfu_alt_info()
64 offset += snprintf(buf + offset, buf_size - offset, in set_dfu_alt_info()
65 "%s%s", alt_sep, alt_setting); in set_dfu_alt_info()
103 sprintf(info, "%s%s", bdname, bdtype); in set_board_info()
106 snprintf(info, ARRAY_SIZE(info), "%s%x-%s%s.dtb", in set_board_info()
123 printf("%s: Not found\n", KEY_PWR_PMIC_NAME); in power_key_pressed()
217 "env default -a; saveenv",
230 lcd_printf("%s\n\t", U_BOOT_VERSION); in display_board_info()
233 lcd_printf("\tBoard name: %s\n", CONFIG_SYS_BOARD); in display_board_info()
[all …]
/openbmc/qemu/hw/net/can/
H A Dcan_sja1000.c2 * CAN device - SJA1000 chip emulation for QEMU
4 * Copyright (c) 2013-2014 Jin Yang
5 * Copyright (c) 2014-2018 Pavel Pisa
52 static void can_sja_software_reset(CanSJA1000State *s) in can_sja_software_reset() argument
54 s->mode &= ~0x31; in can_sja_software_reset()
55 s->mode |= 0x01; in can_sja_software_reset()
56 s->status_pel &= ~0x37; in can_sja_software_reset()
57 s->status_pel |= 0x34; in can_sja_software_reset()
59 s->rxbuf_start = 0x00; in can_sja_software_reset()
60 s->rxmsg_cnt = 0x00; in can_sja_software_reset()
[all …]
/openbmc/linux/drivers/input/touchscreen/
H A Dcyttsp4_core.c1 // SPDX-License-Identifier: GPL-2.0-only
71 max = (CY_MAX_PRBUF_SIZE - 1) - sizeof(CY_PR_TRUNCATED); in cyttsp4_pr_buf()
77 dev_vdbg(dev, "%s: %s[0..%d]=%s%s\n", __func__, data_name, size - 1, in cyttsp4_pr_buf()
86 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_load_status_regs()
87 struct device *dev = cd->dev; in cyttsp4_load_status_regs()
90 rc = cyttsp4_adap_read(cd, CY_REG_BASE, si->si_ofs.mode_size, in cyttsp4_load_status_regs()
91 si->xy_mode); in cyttsp4_load_status_regs()
93 dev_err(dev, "%s: fail read mode regs r=%d\n", in cyttsp4_load_status_regs()
96 cyttsp4_pr_buf(dev, cd->pr_buf, si->xy_mode, in cyttsp4_load_status_regs()
97 si->si_ofs.mode_size, "xy_mode"); in cyttsp4_load_status_regs()
[all …]
/openbmc/linux/net/netfilter/
H A Dnf_conntrack_standalone.c1 // SPDX-License-Identifier: GPL-2.0
35 print_tuple(struct seq_file *s, const struct nf_conntrack_tuple *tuple, in print_tuple() argument
38 switch (tuple->src.l3num) { in print_tuple()
40 seq_printf(s, "src=%pI4 dst=%pI4 ", in print_tuple()
41 &tuple->src.u3.ip, &tuple->dst.u3.ip); in print_tuple()
44 seq_printf(s, "src=%pI6 dst=%pI6 ", in print_tuple()
45 tuple->src.u3.ip6, tuple->dst.u3.ip6); in print_tuple()
51 switch (l4proto->l4proto) { in print_tuple()
53 seq_printf(s, "type=%u code=%u id=%u ", in print_tuple()
54 tuple->dst.u.icmp.type, in print_tuple()
[all …]
/openbmc/qemu/hw/i2c/
H A Dsmbus_slave.c26 do { printf("smbus(%02x): " fmt , dev->i2c.address, ## __VA_ARGS__); } while (0)
29 fprintf(stderr, "%s: smbus: error: " fmt , qom_path, ## __VA_ARGS__); \
35 fprintf(stderr, "%s: smbus: error: " fmt , qom_path, ## __VA_ARGS__); \
44 SMBUS_CONFUSED = -1
52 if (sc->quick_cmd) { in smbus_do_quick_cmd()
53 sc->quick_cmd(dev, recv); in smbus_do_quick_cmd()
61 DPRINTF("Command %d len %d\n", dev->data_buf[0], dev->data_len); in smbus_do_write()
62 if (sc->write_data) { in smbus_do_write()
63 sc->write_data(dev, dev->data_buf, dev->data_len); in smbus_do_write()
67 static int smbus_i2c_event(I2CSlave *s, enum i2c_event event) in smbus_i2c_event() argument
[all …]
/openbmc/linux/Documentation/fb/
H A Dsisfb.rst8 - SiS 300 series: SiS 300/305, 540, 630(S), 730(S)
9 - SiS 315 series: SiS 315/H/PRO, 55x, (M)65x, 740, (M)661(F/M)X, (M)741(GX)
10 - SiS 330 series: SiS 330 ("Xabre"), (M)760
16 sisfb is eg. useful if you want a high-resolution text console. Besides that,
38 Well, it depends: If compiled statically into the kernel, use lilo's append
39 statement to add the parameters to the kernel command line. Please see lilo's
40 (or GRUB's) documentation for more information. If sisfb is a kernel module,
46 append="video=sisfb:mode:1024x768x16,mem:12288,rate:75"
50 modprobe sisfb mode=1024x768x16 rate=75 mem=12288
54 the parameter format is video=sisfb:mode:none or video=sisfb:mode:1024x768x16
[all …]
/openbmc/qemu/hw/timer/
H A Dstellaris-gptm.c15 #include "hw/qdev-clock.h"
16 #include "hw/timer/stellaris-gptm.h"
18 static void gptm_update_irq(gptm_state *s) in gptm_update_irq() argument
21 level = (s->state & s->mask) != 0; in gptm_update_irq()
22 qemu_set_irq(s->irq, level); in gptm_update_irq()
25 static void gptm_stop(gptm_state *s, int n) in gptm_stop() argument
27 timer_del(s->timer[n]); in gptm_stop()
30 static void gptm_reload(gptm_state *s, int n, int reset) in gptm_reload() argument
36 tick = s->tick[n]; in gptm_reload()
39 if (s->config == 0) { in gptm_reload()
[all …]
/openbmc/qemu/hw/usb/
H A Ddev-storage.c12 #include "qemu/error-report.h"
15 #include "qemu/config-file.h"
19 #include "hw/qdev-properties.h"
180 static void usb_msd_packet_complete(MSDState *s, int status) in usb_msd_packet_complete() argument
182 USBPacket *p = s->packet; in usb_msd_packet_complete()
185 * Set s->packet to NULL before calling usb_packet_complete in usb_msd_packet_complete()
190 p->status = status; in usb_msd_packet_complete()
191 s->packet = NULL; in usb_msd_packet_complete()
192 usb_packet_complete(&s->dev, p); in usb_msd_packet_complete()
195 static void usb_msd_fatal_error(MSDState *s) in usb_msd_fatal_error() argument
[all …]
/openbmc/linux/drivers/gpu/drm/sti/
H A Dsti_mixer.c1 // SPDX-License-Identifier: GPL-2.0
56 switch (mixer->id) { in sti_mixer_to_str()
68 return readl(mixer->regs + reg_id); in sti_mixer_reg_read()
74 writel(val, mixer->regs + reg_id); in sti_mixer_reg_write()
77 #define DBGFS_DUMP(reg) seq_printf(s, "\n %-25s 0x%08X", #reg, \
80 static void mixer_dbg_ctl(struct seq_file *s, int val) in mixer_dbg_ctl() argument
87 seq_puts(s, "\tEnabled: "); in mixer_dbg_ctl()
90 seq_printf(s, "%s ", disp_layer[i]); in mixer_dbg_ctl()
98 seq_puts(s, "CURS "); in mixer_dbg_ctl()
102 seq_puts(s, "Nothing"); in mixer_dbg_ctl()
[all …]
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_probe_helper.c2 * Copyright (c) 2006-2008 Intel Corporation
56 * track of a per-connector hpd interrupt.
70 drm_mode_validate_flag(const struct drm_display_mode *mode, in drm_mode_validate_flag() argument
73 if ((mode->flags & DRM_MODE_FLAG_INTERLACE) && in drm_mode_validate_flag()
77 if ((mode->flags & DRM_MODE_FLAG_DBLSCAN) && in drm_mode_validate_flag()
81 if ((mode->flags & DRM_MODE_FLAG_3D_MASK) && in drm_mode_validate_flag()
89 drm_mode_validate_pipeline(struct drm_display_mode *mode, in drm_mode_validate_pipeline() argument
94 struct drm_device *dev = connector->dev; in drm_mode_validate_pipeline()
99 ret = drm_connector_mode_valid(connector, mode, ctx, status); in drm_mode_validate_pipeline()
108 *status = drm_encoder_mode_valid(encoder, mode); in drm_mode_validate_pipeline()
[all …]
/openbmc/linux/tools/spi/
H A Dspidev_test.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Cross-compile with cross-gcc -I/path/to/cross-kernel/include
28 static void pabort(const char *s) in pabort() argument
31 perror(s); in pabort()
33 printf("%s\n", s); in pabort()
39 static uint32_t mode; variable
70 printf("%s | ", prefix); in hex_dump()
71 while (length-- > 0) { in hex_dump()
85 printf("%s | ", prefix); in hex_dump()
91 * Unescape - process hexadecimal escape character
[all …]
/openbmc/linux/tools/perf/util/
H A Dparse-branch-options.c1 // SPDX-License-Identifier: GPL-2.0
4 #include <subcmd/parse-options.h>
5 #include "util/parse-branch-options.h"
10 { .name = n, .mode = (m) }
16 int mode; member
42 int parse_branch_str(const char *str, __u64 *mode) in parse_branch_str() argument
50 char *p, *s; in parse_branch_str() local
55 *mode = PERF_SAMPLE_BRANCH_ANY; in parse_branch_str()
59 /* because str is read-only */ in parse_branch_str()
60 s = os = strdup(str); in parse_branch_str()
[all …]
/openbmc/linux/Documentation/virt/kvm/
H A Dvcpu-requests.rst1 .. SPDX-License-Identifier: GPL-2.0
46 ----------
48 The goal of a VCPU kick is to bring a VCPU thread out of guest mode in
50 a guest mode exit. However, a VCPU thread may not be in guest mode at the
51 time of the kick. Therefore, depending on the mode and state of the VCPU
55 1) Send an IPI. This forces a guest mode exit.
57 mode that wait on waitqueues. Waking them removes the threads from
60 3) Nothing. When the VCPU is not in guest mode and the VCPU thread is not
63 VCPU Mode
64 ---------
[all …]
/openbmc/qemu/hw/9pfs/
H A Dtrace-events6 …_version(uint16_t tag, uint8_t id, int32_t msize, char* version) "tag %d id %d msize %d version %s"
7 …n_return(uint16_t tag, uint8_t id, int32_t msize, char* version) "tag %d id %d msize %d version %s"
8 …nt32_t fid, int32_t afid, char* uname, char* aname) "tag %u id %u fid %d afid %d uname %s aname %s"
11 …urn(uint16_t tag, uint8_t id, int32_t mode, int32_t atime, int32_t mtime, int64_t length) "tag %d …
13 …id, uint64_t result_mask, uint32_t mode, uint32_t uid, uint32_t gid) "tag %d id %d getattr={result…
14 …ewfid, uint16_t nwnames, const char* wnames) "tag=%d id=%d fid=%d newfid=%d nwnames=%d wnames={%s}"
16 …(uint16_t tag, uint8_t id, int32_t fid, int32_t mode, const char* oflags) "tag=%d id=%d fid=%d mod…
18 …uint8_t id, int32_t dfid, int32_t flags, int32_t mode, uint32_t gid) "tag %d id %d dfid %d flags %…
28 …_t id, int32_t fid, char* name, int32_t perm, int8_t mode) "tag %d id %d fid %d name %s perm %d mo…
30 …32_t fid, char* name, char* symname, uint32_t gid) "tag %d id %d fid %d name %s symname %s gid %u"
[all …]
/openbmc/linux/drivers/crypto/caam/
H A Derror.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright 2009-2011 Freescale Semiconductor, Inc.
27 * make sure the scatterlist's page in caam_dump_sg()
36 buf = it_page + it->offset; in caam_dump_sg()
37 len = min_t(size_t, tlen, it->length); in caam_dump_sg()
40 tlen -= len; in caam_dump_sg()
82 …he input or output sequence length below 0. This error may result if a built-in PROTOCOL Command h…
91 { 0x1B, "Job failed due to Fail Mode" },
93 …{ 0x1D, "DECO tried to copy a key from another DECO but the other DECO's Key Registers were locked…
95 …rom itself or from another DECO but the two Non-SEQ LIODN values didn't match or the 'shared from'…
[all …]
/openbmc/linux/Documentation/arch/arm64/
H A Dmemory-tagging-extension.rst8 Date: 2020-02-25
18 (Top Byte Ignore) feature and allows software to access a 4-bit
19 allocation tag for each 16-byte granule in the physical address space.
20 Such memory range must be mapped with the Normal-Tagged memory
21 attribute. A logical tag is derived from bits 59-56 of the virtual
34 --------
40 ``PROT_MTE`` - Pages allow access to the MTE allocation tags.
43 user address space and preserved on copy-on-write. ``MAP_SHARED`` is
47 RAM-based file mappings (``tmpfs``, ``memfd``). Passing it to other
48 types of mapping will result in ``-EINVAL`` returned by these system
[all …]
/openbmc/qemu/docs/specs/
H A Driscv-aia.rst1 .. _riscv-aia:
3 RISC-V AIA support for RISC-V machines
7 RISC-V machine for TCG and KVM accelerators.
11 - "aia=aplic": adds one or more APLIC (Advanced Platform Level Interrupt Controller)
13 - "aia=aplic-imsic": adds one or more APLIC device and an IMSIC (Incoming MSI
18 emulated in userspace versus what is being emulated by an in-kernel irqchip.
20 When running TCG, all controllers are emulated in userspace, including machine mode
21 (m-mode) APLIC and IMSIC (when applicable).
25 - no m-mode is provided, so there is no m-mode APLIC or IMSIC emulation regardless of
26 the AIA mode chosen
[all …]

12345678910>>...44