Home
last modified time | relevance | path

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

12345678910>>...43

/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 Dspi-stm32-qspi.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) STMicroelectronics 2018 - All Rights Reserved
9 #include <linux/dma-mapping.h>
23 #include <linux/spi/spi-mem.h>
93 #define STM32_AUTOSUSPEND_DELAY -1
134 cr = readl_relaxed(qspi->io_base + QSPI_CR); in stm32_qspi_irq()
135 sr = readl_relaxed(qspi->io_base + QSPI_SR); in stm32_qspi_irq()
140 writel_relaxed(cr, qspi->io_base + QSPI_CR); in stm32_qspi_irq()
141 complete(&qspi->match_completion); in stm32_qspi_irq()
149 writel_relaxed(cr, qspi->io_base + QSPI_CR); in stm32_qspi_irq()
[all …]
H A Dspi-zynqmp-gqspi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Xilinx Zynq UltraScale+ MPSoC Quad-SPI (QSPI) controller driver
4 * (host mode only)
6 * Copyright (C) 2009 - 2015 Xilinx, Inc.
11 #include <linux/dma-mapping.h>
13 #include <linux/firmware/xlnx-zynqmp.h>
23 #include <linux/spi/spi-mem.h>
119 #define GQSPI_TX_FIFO_FILL (GQSPI_TXD_DEPTH -\
160 * struct qspi_platform_data - zynqmp qspi platform data structure
168 * struct zynqmp_qspi - Defines qspi driver instance
[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-mem.c1 // SPDX-License-Identifier: GPL-2.0+
12 #include <linux/spi/spi-mem.h>
20 * spi_controller_dma_map_mem_op_data() - DMA-map the buffer attached to a
23 * @op: the memory operation containing the buffer to map
24 * @sgt: a pointer to a non-initialized sg_table that will be filled by this
27 * Some controllers might want to do DMA on the data buffer embedded in @op.
28 * This helper prepares everything for you and provides a ready-to-use
32 * op->data.buf.{in,out} is DMA-able before calling this function.
37 const struct spi_mem_op *op, in spi_controller_dma_map_mem_op_data() argument
42 if (!op->data.nbytes) in spi_controller_dma_map_mem_op_data()
[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 …]
H A Dspi-mpc52xx.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * Note: this driver does not support the MPC5200 PSC in SPI mode. For
31 MODULE_DESCRIPTION("MPC52xx SPI (non-PSC) Driver");
104 if (ms->gpio_cs_count > 0) { in mpc52xx_spi_chipsel()
105 cs = spi_get_chipselect(ms->message->spi, 0); in mpc52xx_spi_chipsel()
106 gpiod_set_value(ms->gpio_cs[cs], value); in mpc52xx_spi_chipsel()
108 out_8(ms->regs + SPI_PORTDATA, value ? 0 : 0x08); in mpc52xx_spi_chipsel()
119 ms->rx_buf = ms->transfer->rx_buf; in mpc52xx_spi_start_transfer()
120 ms->tx_buf = ms->transfer->tx_buf; in mpc52xx_spi_start_transfer()
121 ms->len = ms->transfer->len; in mpc52xx_spi_start_transfer()
[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/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/arch/x86/kvm/
H A Demulate.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Generic x86 (32-bit and 64-bit) instruction decoder and emulator.
9 * Linux coding style, mod r/m decoder, segment base fixes, real-mode
18 * From: xen-unstable 10676:af9809f51f81a3c43f276f00c81a52ef558afda4
27 #include <asm/nospec-branch.h>
29 #include <asm/text-patching.h>
45 #define OpMem64 6ull /* Memory, 64-bit */
46 #define OpImmUByte 7ull /* Zero-extended 8-bit immediate */
49 #define OpImmByte 10ull /* 8-bit sign extended immediate */
51 #define OpImm 12ull /* Sign extended up to 32-bit immediate */
[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/drivers/crypto/ccp/
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/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/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>>...43