Home
last modified time | relevance | path

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

12345678910>>...41

/linux/Documentation/userspace-api/media/cec/
H A Dcec-pin-error-inj.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
9 has low-level support for the CEC bus. Most hardware today will have
10 high-level CEC support where the hardware deals with driving the CEC bus,
19 Currently only the cec-gpio driver (when the CEC line is directly
20 connected to a pull-up GPIO line) and the AllWinner A10/A20 drm driver
25 now an ``error-inj`` file.
32 With ``cat error-inj`` you can see both the possible commands and the current
35 $ cat /sys/kernel/debug/cec/cec0/error-inj
38 # rx-clear clear all rx error injections
39 # tx-clear clear all tx error injections
[all …]
/linux/drivers/crypto/allwinner/sun4i-ss/
H A Dsun4i-ss-cipher.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * sun4i-ss-cipher.c - hardware cryptographic accelerator for Allwinner A20 SoC
5 * Copyright (C) 2013-2015 Corentin LABBE <clabbe.montjoie@gmail.com>
8 * keysize in CBC and ECB mode.
9 * Add support also for DES and 3DES in CBC and ECB mode.
13 #include "sun4i-ss.h"
18 struct sun4i_tfm_ctx *op = crypto_skcipher_ctx(tfm); in sun4i_ss_opti_poll() local
19 struct sun4i_ss_ctx *ss = op->ss; in sun4i_ss_opti_poll()
22 u32 mode = ctx->mode; in sun4i_ss_opti_poll() local
30 unsigned int ileft = areq->cryptlen; in sun4i_ss_opti_poll()
[all …]
H A Dsun4i-ss-hash.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * sun4i-ss-hash.c - hardware cryptographic accelerator for Allwinner A20 SoC
5 * Copyright (C) 2013-2015 Corentin LABBE <clabbe.montjoie@gmail.com>
11 #include "sun4i-ss.h"
20 struct sun4i_tfm_ctx *op = crypto_tfm_ctx(tfm); in sun4i_hash_crainit() local
21 struct ahash_alg *alg = __crypto_ahash_alg(tfm->__crt_alg); in sun4i_hash_crainit()
25 memset(op, 0, sizeof(struct sun4i_tfm_ctx)); in sun4i_hash_crainit()
28 op->ss = algt->ss; in sun4i_hash_crainit()
30 err = pm_runtime_resume_and_get(op->ss->dev); in sun4i_hash_crainit()
41 struct sun4i_tfm_ctx *op = crypto_tfm_ctx(tfm); in sun4i_hash_craexit() local
[all …]
/linux/drivers/spi/
H A Dspi-sn-f-ospi.c1 // SPDX-License-Identifier: GPL-2.0-only
16 #include <linux/spi/spi-mem.h>
117 static u32 f_ospi_get_dummy_cycle(const struct spi_mem_op *op) in f_ospi_get_dummy_cycle() argument
119 if (!op->dummy.nbytes) in f_ospi_get_dummy_cycle()
122 return (op->dummy.nbytes * 8) / op->dummy.buswidth; in f_ospi_get_dummy_cycle()
128 ospi->base + OSPI_IRQ); in f_ospi_clear_irq()
135 val = readl(ospi->base + OSPI_IRQ_STAT_EN); in f_ospi_enable_irq_status()
137 writel(val, ospi->base + OSPI_IRQ_STAT_EN); in f_ospi_enable_irq_status()
144 val = readl(ospi->base + OSPI_IRQ_STAT_EN); in f_ospi_disable_irq_status()
146 writel(val, ospi->base + OSPI_IRQ_STAT_EN); in f_ospi_disable_irq_status()
[all …]
H A Datmel-quadspi.c1 // SPDX-License-Identifier: GPL-2.0
11 * This driver is based on drivers/mtd/spi-nor/fsl-quadspi.c from Freescale.
17 #include <linux/dma-mapping.h>
29 #include <linux/spi/spi-mem.h>
33 #define QSPI_MR 0x0004 /* Mode Register */
49 #define QSPI_SMR 0x0040 /* Scrambling Mode Register */
59 #define QSPI_WPMR 0x00E4 /* Write Protection Mode Register */
80 /* Bitfields in QSPI_MR (Mode Register) */
91 #define QSPI_MR_NBBITS(n) ((((n) - 8) << 8) & QSPI_MR_NBBITS_MASK)
185 /* Bitfields in QSPI_SMR (Scrambling Mode Register) */
[all …]
H A Dspi-bcm-qspi.c1 // SPDX-License-Identifier: GPL-2.0-only
22 #include <linux/mtd/spi-nor.h>
25 #include "spi-bcm-qspi.h"
63 /* Override mode masks */
171 * to TXRAM and RXRAM when used as 32-bit registers respectively
179 u8 mode; member
257 return qspi->bspi_mode; in has_bspi()
260 /* hardware supports spcr3 and fast baud-rate */
264 ((qspi->mspi_maj_rev >= 1) && in bcm_qspi_has_fastbr()
265 (qspi->mspi_min_rev >= 5))) in bcm_qspi_has_fastbr()
[all …]
H A Dspi-dw-core.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <linux/dma-mapping.h>
18 #include <linux/spi/spi-mem.h>
23 #include "spi-dw.h"
66 snprintf(name, 32, "dw_spi%d", dws->host->bus_num); in dw_spi_debugfs_init()
67 dws->debugfs = debugfs_create_dir(name, NULL); in dw_spi_debugfs_init()
69 dws->regset.regs = dw_spi_dbgfs_regs; in dw_spi_debugfs_init()
70 dws->regset.nregs = ARRAY_SIZE(dw_spi_dbgfs_regs); in dw_spi_debugfs_init()
71 dws->regset.base = dws->regs; in dw_spi_debugfs_init()
72 debugfs_create_regset32("registers", 0400, dws->debugfs, &dws->regset); in dw_spi_debugfs_init()
[all …]
/linux/arch/x86/xen/
H A Defi.c1 // SPDX-License-Identifier: GPL-2.0
12 #include <xen/xen-ops.h>
19 #include "xen-ops.h"
49 struct xen_platform_op op = { in xen_efi_probe() local
56 union xenpf_efi_info *info = &op.u.firmware_info.u.efi_info; in xen_efi_probe()
58 if (!xen_initial_domain() || HYPERVISOR_platform_op(&op) < 0) in xen_efi_probe()
64 efi_systab_xen.tables = info->cfg.addr; in xen_efi_probe()
65 efi_systab_xen.nr_tables = info->cfg.nent; in xen_efi_probe()
67 op.cmd = XENPF_firmware_info; in xen_efi_probe()
68 op.u.firmware_info.type = XEN_FW_EFI_INFO; in xen_efi_probe()
[all …]
/linux/lib/zlib_inflate/
H A Dinffast.c1 /* inffast.c -- fast decoding
2 * Copyright (C) 1995-2004 Mark Adler
33 available, an end-of-block is encountered, or a data error is encountered.
40 state->mode == LEN
41 strm->avail_in >= 6
42 strm->avail_out >= 258
43 start >= strm->avail_out
44 state->bits < 8
46 On return, state->mode is one of:
48 LEN -- ran out of enough output space or enough available input
[all …]
/linux/fs/afs/
H A Dinode.c28 void afs_init_new_symlink(struct afs_vnode *vnode, struct afs_operation *op) in afs_init_new_symlink() argument
30 size_t size = strlen(op->create.symlink) + 1; in afs_init_new_symlink()
34 if (netfs_alloc_folioq_buffer(NULL, &vnode->directory, &dsize, size, in afs_init_new_symlink()
35 mapping_gfp_mask(vnode->netfs.inode.i_mapping)) < 0) in afs_init_new_symlink()
38 vnode->directory_size = dsize; in afs_init_new_symlink()
39 p = kmap_local_folio(folioq_folio(vnode->directory, 0), 0); in afs_init_new_symlink()
40 memcpy(p, op->create.symlink, size); in afs_init_new_symlink()
42 set_bit(AFS_VNODE_DIR_READ, &vnode->flags); in afs_init_new_symlink()
43 netfs_single_mark_inode_dirty(&vnode->netfs.inode); in afs_init_new_symlink()
64 if (!test_bit(AFS_VNODE_DIR_READ, &vnode->flags) || !afs_check_validity(vnode)) in afs_get_link()
[all …]
H A Dyfsclient.c1 // SPDX-License-Identifier: GPL-2.0-or-later
24 fid->vid = xdr_to_u64(x->volume); in xdr_decode_YFSFid()
25 fid->vnode = xdr_to_u64(x->vnode.lo); in xdr_decode_YFSFid()
26 fid->vnode_hi = ntohl(x->vnode.hi); in xdr_decode_YFSFid()
27 fid->unique = ntohl(x->vnode.unique); in xdr_decode_YFSFid()
49 x->volume = u64_to_xdr(fid->vid); in xdr_encode_YFSFid()
50 x->vnode.lo = u64_to_xdr(fid->vnode); in xdr_encode_YFSFid()
51 x->vnode.hi = htonl(fid->vnode_hi); in xdr_encode_YFSFid()
52 x->vnode.unique = htonl(fid->unique); in xdr_encode_YFSFid()
66 unsigned int pad = 4 - (len & 3); in xdr_encode_string()
[all …]
H A Dflock.c1 // SPDX-License-Identifier: GPL-2.0-or-later
27 _debug("STATE %u -> %u", vnode->lock_state, state); in afs_set_lock_state()
28 vnode->lock_state = state; in afs_set_lock_state()
38 _enter("{%llx:%llu}", vnode->fid.vid, vnode->fid.vnode); in afs_lock_may_be_available()
40 spin_lock(&vnode->lock); in afs_lock_may_be_available()
41 if (vnode->lock_state == AFS_VNODE_LOCK_WAITING_FOR_CB) in afs_lock_may_be_available()
44 spin_unlock(&vnode->lock); in afs_lock_may_be_available()
56 expires_at = ktime_add_ms(vnode->locked_at, AFS_LOCKWAIT * 1000 / 2); in afs_schedule_lock_extension()
64 queue_delayed_work(afs_lock_manager, &vnode->lock_work, duration_j); in afs_schedule_lock_extension()
73 struct afs_operation *op = call->op; in afs_lock_op_done() local
[all …]
/linux/tools/crypto/tcrypt/
H A Dtcrypt_speed_compare.py2 # SPDX-License-Identifier: GPL-2.0
28 mode=211
31 lsmod | grep pcrypt && modprobe -r pcrypt
32 dmesg -C
34 modprobe tcrypt mode=${mode} sec=${sec} num_mb=${num_mb}
38 lsmod | grep pcrypt && modprobe -r pcrypt
39 dmesg -C
41 modprobe tcrypt mode=${mode} sec=${sec} num_mb=${num_mb}
43 lsmod | grep pcrypt && modprobe -r pcrypt
49 grep 'average' -A2 -B0 --group-separator="" ${seq_num}_compare.log
[all …]
/linux/drivers/crypto/ccp/
H A Dccp-ops.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2013-2019 Advanced Micro Devices, Inc.
11 #include <linux/dma-mapping.h>
19 #include "ccp-dev.h"
56 #define CCP_NEW_JOBID(ccp) ((ccp->vdata->version == CCP_VERSION(3, 0)) ? \
61 return atomic_inc_return(&ccp->current_id) & CCP_JOBID_MASK; in ccp_gen_jobid()
66 if (wa->dma_count) in ccp_sg_free()
67 dma_unmap_sg(wa->dma_dev, wa->dma_sg_head, wa->nents, wa->dma_dir); in ccp_sg_free()
69 wa->dma_count = 0; in ccp_sg_free()
78 wa->sg = sg; in ccp_init_sg_workarea()
[all …]
H A Dccp-dev-v5.c1 // SPDX-License-Identifier: GPL-2.0-only
12 #include <linux/dma-mapping.h>
17 #include "ccp-dev.h"
31 if (cmd_q->lsb >= 0) { in ccp_lsb_alloc()
32 start = (u32)bitmap_find_next_zero_area(cmd_q->lsbmap, in ccp_lsb_alloc()
36 bitmap_set(cmd_q->lsbmap, start, count); in ccp_lsb_alloc()
37 return start + cmd_q->lsb * LSB_SIZE; in ccp_lsb_alloc()
42 ccp = cmd_q->ccp; in ccp_lsb_alloc()
44 mutex_lock(&ccp->sb_mutex); in ccp_lsb_alloc()
46 start = (u32)bitmap_find_next_zero_area(ccp->lsbmap, in ccp_lsb_alloc()
[all …]
/linux/drivers/ata/pata_parport/
H A Don20.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * (c) 1996-1998 Grant R. Guenther <grant@torque.net>
5 * on20.c is a low-level protocol driver for the
18 #define op(f) \ macro
33 * cont = 0 - access the IDE register file
34 * cont = 1 - access the IDE command set
43 op(1); vl(r); op(0); in on20_read_regr()
45 switch (pi->mode) { in on20_read_regr()
57 return -1; in on20_read_regr()
64 op(1); vl(r); in on20_write_regr()
[all …]
/linux/include/sound/
H A Dopl3.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
6 * Definitions of the OPL-3 registers.
9 * Hannu Savolainen 1993-1996
11 * The OPL-3 mode is switched on by writing 0x01, to the offset 5
15 * a bit mask defining which voices are used as 4 OP voices.
17 * The percussive mode is implemented in the left side only.
21 * A 4 OP voice can be created by setting the corresponding
25 * first voice on the right side to the 4 OP mode. The fourth
28 * If a voice is set to the 2 OP mode, it works like 2 OP modes
31 * even be left unconnected. This works with 4 OP voices also.
[all …]
/linux/drivers/video/fbdev/
H A Dcg14.c1 // SPDX-License-Identifier: GPL-2.0-only
98 u8 tms[2]; /* Test Mode Status Regs */
103 u32 tmr; /* Test Mode Read Back */
154 u8 mode; /* Mode Register */ member
169 * the screen in four parts, while operating in 24 bits mode. Each
197 int mode; member
203 struct cg14_regs __iomem *regs = par->regs; in __cg14_reset()
206 val = sbus_readb(&regs->mcr); in __cg14_reset()
208 sbus_writeb(val, &regs->mcr); in __cg14_reset()
213 struct cg14_par *par = (struct cg14_par *) info->par; in cg14_pan_display()
[all …]
/linux/Documentation/tee/
H A Dop-tee.rst1 .. SPDX-License-Identifier: GPL-2.0
4 OP-TEE (Open Portable Trusted Execution Environment)
7 The OP-TEE driver handles OP-TEE [1] based TEEs. Currently it is only the ARM
8 TrustZone based OP-TEE solution that is supported.
10 Lowest level of communication with OP-TEE builds on ARM SMC Calling
11 Convention (SMCCC) [2], which is the foundation for OP-TEE's SMC interface
12 [3] used internally by the driver. Stacked on top of that is OP-TEE Message
15 OP-TEE SMC interface provides the basic functions required by SMCCC and some
16 additional functions specific for OP-TEE. The most interesting functions are:
18 - OPTEE_SMC_FUNCID_CALLS_UID (part of SMCCC) returns the version information
[all …]
/linux/sound/soc/fsl/
H A Dmpc5200_psc_i2s.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // Freescale MPC5200 PSC in I2S mode
23 * This driver currently only supports the PSC running in I2S slave mode,
31 * PSC_I2S_FORMATS: audio formats supported by the PSC I2S mode
42 u32 mode; in psc_i2s_hw_params() local
44 dev_dbg(psc_dma->dev, "%s(substream=%p) p_size=%i p_bytes=%i" in psc_i2s_hw_params()
52 mode = MPC52xx_PSC_SICR_SIM_CODEC_8; in psc_i2s_hw_params()
55 mode = MPC52xx_PSC_SICR_SIM_CODEC_16; in psc_i2s_hw_params()
58 mode = MPC52xx_PSC_SICR_SIM_CODEC_24; in psc_i2s_hw_params()
61 mode = MPC52xx_PSC_SICR_SIM_CODEC_32; in psc_i2s_hw_params()
[all …]
/linux/drivers/sbus/char/
H A Ddisplay7seg.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* display7seg.c - Driver implementation for the 7-segment display
30 static int sol_compat = 0; /* Solaris compatibility mode */
32 /* Solaris compatibility flag -
34 * documented driver features (ref Sun doc 806-0180-03).
38 * 1) Device ALWAYS reverts to OBP-specified FLIPPED mode
44 * omitting above features, set this parameter to non-zero.
51 MODULE_DESCRIPTION("7-Segment Display driver for Sun Microsystems CP1400/1500");
61 * Register block address- see header for details
62 * -----------------------------------------
[all …]
/linux/sound/drivers/opl3/
H A Dopl3_synth.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) by Uros Bizjak <uros@kss-loka.si>
20 * There is 18 possible 2 OP voices
22 * The first OP is the modulator and 2nd is the carrier.
25 * with another voice to a 4 OP voice. For example voice 0
27 * used as operators 3 and 4 of the new 4 OP voice.
28 * In this case the 2 OP voice number 0 is the 'first half' and
41 /* ------------------------ */
51 { 0x11, 0x14, 0x00, 0x00 }, /* if the percussive mode */
63 static int snd_opl3_set_mode(struct snd_opl3 * opl3, int mode);
[all …]
/linux/drivers/mtd/spi-nor/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0
17 #include <linux/mtd/spi-nor.h>
31 * For everything but full-chip erase; probably could be much smaller, but kept
37 * For full-chip erase, calibrated to a 2MB flash (M25P16); should be scaled up
48 * spi_nor_get_cmd_ext() - Get the command opcode extension based on the
51 * @op: pointer to the 'struct spi_mem_op' whose properties
59 const struct spi_mem_op *op) in spi_nor_get_cmd_ext() argument
61 switch (nor->cmd_ext_type) { in spi_nor_get_cmd_ext()
63 return ~op->cmd.opcode; in spi_nor_get_cmd_ext()
66 return op->cmd.opcode; in spi_nor_get_cmd_ext()
[all …]
/linux/drivers/crypto/nx/
H A Dnx-aes-xcbc.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2011-2012 International Business Machines Inc.
33 struct nx_csbcpb *csbcpb = nx_ctx->csbcpb; in nx_xcbc_set_key()
37 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_128]; in nx_xcbc_set_key()
40 return -EINVAL; in nx_xcbc_set_key()
43 memcpy(csbcpb->cpb.aes_xcbc.key, in_key, key_len); in nx_xcbc_set_key()
49 * Based on RFC 3566, for a zero-length message:
61 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base); in nx_xcbc_empty()
62 struct nx_csbcpb *csbcpb = nx_ctx->csbcpb; in nx_xcbc_empty()
69 /* Change to ECB mode */ in nx_xcbc_empty()
[all …]
/linux/include/trace/events/
H A Dxen.h1 /* SPDX-License-Identifier: GPL-2.0 */
16 TP_PROTO(enum xen_lazy_mode mode),
17 TP_ARGS(mode),
19 __field(enum xen_lazy_mode, mode)
21 TP_fast_assign(__entry->mode = mode),
23 (__entry->mode == XEN_LAZY_MMU) ? "MMU" :
24 (__entry->mode == XEN_LAZY_CPU) ? "CPU" : "NONE")
28 TP_PROTO(enum xen_lazy_mode mode), \
29 TP_ARGS(mode))
40 __field(unsigned int, op)
[all …]

12345678910>>...41