Home
last modified time | relevance | path

Searched +full:se +full:- +full:pos (Results 1 – 25 of 63) sorted by relevance

123

/openbmc/linux/drivers/gpu/drm/i915/gvt/
H A Dgtt.c4 * Copyright(c) 2011-2016 Intel Corporation. All rights reserved.
62 vgpu_gmadr_is_aperture(vgpu, addr + size - 1)) in intel_gvt_ggtt_validate_range()
65 vgpu_gmadr_is_hidden(vgpu, addr + size - 1)) in intel_gvt_ggtt_validate_range()
76 struct drm_i915_private *i915 = vgpu->gvt->gt->i915; in intel_gvt_ggtt_gmadr_g2h()
78 if (drm_WARN(&i915->drm, !vgpu_gmadr_is_valid(vgpu, g_addr), in intel_gvt_ggtt_gmadr_g2h()
80 return -EACCES; in intel_gvt_ggtt_gmadr_g2h()
84 + (g_addr - vgpu_aperture_offset(vgpu)); in intel_gvt_ggtt_gmadr_g2h()
87 + (g_addr - vgpu_hidden_offset(vgpu)); in intel_gvt_ggtt_gmadr_g2h()
94 struct drm_i915_private *i915 = vgpu->gvt->gt->i915; in intel_gvt_ggtt_gmadr_h2g()
96 if (drm_WARN(&i915->drm, !gvt_gmadr_is_valid(vgpu->gvt, h_addr), in intel_gvt_ggtt_gmadr_h2g()
[all …]
/openbmc/linux/fs/hpfs/
H A Danode.c1 // SPDX-License-Identifier: GPL-2.0
5 * Mikulas Patocka (mikulas@artax.karlin.mff.cuni.cz), 1998-1999
18 anode_secno a = -1; in hpfs_bplus_lookup()
23 if (hpfs_sb(s)->sb_chk) if (hpfs_stop_cycles(s, a, &c1, &c2, "hpfs_bplus_lookup")) return -1; in hpfs_bplus_lookup()
25 for (i = 0; i < btree->n_used_nodes; i++) in hpfs_bplus_lookup()
26 if (le32_to_cpu(btree->u.internal[i].file_secno) > sec) { in hpfs_bplus_lookup()
27 a = le32_to_cpu(btree->u.internal[i].down); in hpfs_bplus_lookup()
29 if (!(anode = hpfs_map_anode(s, a, &bh))) return -1; in hpfs_bplus_lookup()
30 btree = &anode->btree; in hpfs_bplus_lookup()
35 return -1; in hpfs_bplus_lookup()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_debugfs.c46 * amdgpu_debugfs_process_reg_op - Handle MMIO register reads/writes
52 * @pos: Offset to seek to
60 * Bits 24..33: The SE or ME selector if needed
73 char __user *buf, size_t size, loff_t *pos) in amdgpu_debugfs_process_reg_op() argument
75 struct amdgpu_device *adev = file_inode(f)->i_private; in amdgpu_debugfs_process_reg_op()
84 if (size & 0x3 || *pos & 0x3 || in amdgpu_debugfs_process_reg_op()
85 ((*pos & (1ULL << 62)) && (*pos & (1ULL << 61)))) in amdgpu_debugfs_process_reg_op()
86 return -EINVAL; in amdgpu_debugfs_process_reg_op()
89 pm_pg_lock = (*pos >> 23) & 1; in amdgpu_debugfs_process_reg_op()
91 if (*pos & (1ULL << 62)) { in amdgpu_debugfs_process_reg_op()
[all …]
/openbmc/linux/sound/soc/
H A Dsoc-topology.c1 // SPDX-License-Identifier: GPL-2.0+
3 // soc-topology.c -- ALSA SoC Topology
29 #include <sound/soc-dapm.h>
30 #include <sound/soc-topology.h>
58 const u8 *pos; /* read position */ member
83 const u8 *end = tplg->pos + elem_size * count; in soc_tplg_check_elem_count()
85 if (end > tplg->fw->data + tplg->fw->size) { in soc_tplg_check_elem_count()
86 dev_err(tplg->dev, "ASoC: %s overflow end of data\n", in soc_tplg_check_elem_count()
88 return -EINVAL; in soc_tplg_check_elem_count()
94 dev_err(tplg->dev, in soc_tplg_check_elem_count()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/iio/frequency/
H A Dadi,admv1013.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Antoniu Miclaus <antoniu.miclaus@analog.com>
21 - adi,admv1013
26 spi-max-frequency:
34 clock-names:
36 - const: lo_in
38 vcm-supply:
42 vcc-drv-supply:
[all …]
H A Dadi,admv1014.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Antoniu Miclaus <antoniu.miclaus@analog.com>
21 - adi,admv1014
26 spi-max-frequency:
32 clock-names:
34 - const: lo_in
38 vcm-supply:
40 Common-mode voltage regulator.
[all …]
/openbmc/linux/arch/m68k/fpsp040/
H A Ddecbin.S5 | register A6 to extended-precision value in FP0.
9 | Output: Exact floating-point representation of the packed bcd value.
11 | Saves and Modifies: D2-D5
20 | Expected is a normal bcd (i.e. non-exceptional; all inf, zero,
25 | Set the sign according to SE. Subtract 16 to compensate
33 | assumed following the least-significant digit.
37 | bcd string. If SE is positive, count the leading zeros;
43 | SM = 0 a non-zero digit in the integer position
44 | SM = 1 a non-zero digit in Mant0, lsd of the fraction
47 | representation (ex. 0.1E2, 1E1, 10E0, 100E-1), is converted
[all …]
/openbmc/linux/kernel/trace/
H A Dtrace_events_synth.c1 // SPDX-License-Identifier: GPL-2.0
3 * trace_events_synth - synthetic trace events
29 C(INVALID_DYN_CMD, "Command must be of the form: s or -:[synthetic/]<name> field[;field] ..."),\
104 return ev->ops == &synth_event_ops; in is_synth_event()
116 return event->ref != 0; in synth_event_is_busy()
124 return strcmp(sev->name, event) == 0 && in synth_event_match()
137 struct synth_event *event = call->data; in synth_event_define_fields()
143 for (i = 0, n_u64 = 0; i < event->n_fields; i++) { in synth_event_define_fields()
144 size = event->fields[i]->size; in synth_event_define_fields()
145 is_signed = event->fields[i]->is_signed; in synth_event_define_fields()
[all …]
/openbmc/linux/drivers/crypto/cavium/cpt/
H A Dcptpf_main.c1 // SPDX-License-Identifier: GPL-2.0-only
16 #define DRV_NAME "thunder-cpt"
21 MODULE_PARM_DESC(num_vfs, "Number of VFs to enable(1-16)");
32 struct device *dev = &cpt->pdev->dev; in cpt_disable_cores()
35 coremask = (coremask << cpt->max_se_cores); in cpt_disable_cores()
38 grpmask = cpt_read_csr64(cpt->reg_base, CPTX_PF_GX_EN(0, grp)); in cpt_disable_cores()
39 cpt_write_csr64(cpt->reg_base, CPTX_PF_GX_EN(0, grp), in cpt_disable_cores()
42 grp = cpt_read_csr64(cpt->reg_base, CPTX_PF_EXEC_BUSY(0)); in cpt_disable_cores()
45 grp = cpt_read_csr64(cpt->reg_base, in cpt_disable_cores()
47 if (!timeout--) in cpt_disable_cores()
[all …]
/openbmc/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_main.c1 // SPDX-License-Identifier: GPL-2.0-only
26 /* SE microcode */
38 * nitrox_pci_tbl - PCI Device ID Table
49 MODULE_PARM_DESC(qlen, "Command queue length - default 2048");
52 * struct ucode - Firmware Header
61 char version[VERSION_LEN - 1];
68 * write_to_ucd_unit - Write Firmware to NITROX UCD unit
80 * ------------- in write_to_ucd_unit()
82 * ------------- in write_to_ucd_unit()
84 * ------------- in write_to_ucd_unit()
[all …]
/openbmc/linux/tools/perf/util/
H A Dsort.c1 // SPDX-License-Identifier: GPL-2.0
25 #include "mem-events.h"
28 #include "time-utils.h"
31 #include "trace-event.h"
36 #include <traceevent/event-parse.h>
66 * -t, --field-separator
92 return size - 1; in repsep_snprintf()
101 return -1; in cmp_null()
106 /* --sort pid */
111 return thread__tid(right->thread) - thread__tid(left->thread); in sort__thread_cmp()
[all …]
/openbmc/linux/arch/openrisc/kernel/
H A Dptrace.c1 // SPDX-License-Identifier: GPL-2.0-or-later
12 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
42 * (Each item is a 32-bit word)
44 * 31 GPRS r1-r31
56 membuf_write(&to, regs->gpr + 1, 31 * 4); in genregs_get()
57 membuf_store(&to, regs->pc); in genregs_get()
58 return membuf_store(&to, regs->sr); in genregs_get()
66 unsigned int pos, unsigned int count, in genregs_set() argument
73 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 0, 4); in genregs_set()
74 /* r1 - r31 */ in genregs_set()
[all …]
H A Dsetup.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
13 * This file handles the architecture-dependent parts of initialization
71 * initialize the boot-time allocator (with low memory only). in setup_memory()
76 memblock_reserve(__pa(_stext), _end - _stext); in setup_memory()
84 memblock_reserve(__pa(aligned_start), aligned_end - aligned_start); in setup_memory()
107 printk(KERN_INFO "CPU: OpenRISC-%x (revision %d) @%d MHz\n", in print_cpuinfo()
108 version, revision, cpuinfo->clock_frequency / 1000000); in print_cpuinfo()
112 "-- no UPR register... unable to detect configuration\n"); in print_cpuinfo()
118 "-- dcache: %4d bytes total, %2d bytes/line, %d way(s)\n", in print_cpuinfo()
[all …]
/openbmc/linux/Documentation/translations/sp_SP/process/
H A Dcoding-style.rst1 .. include:: ../disclaimer-sp.rst
3 :Original: :ref:`Documentation/process/coding-style.rst <submittingpatches>`
24 -----------
37 el código se mueva demasiado a la derecha y dificulta la lectura en una
49 sangría`` (``double-indenting``) en etiquetas ``case``. Por ejemplo:
51 .. code-block:: c
73 .. code-block:: c
80 .. code-block:: c
87 .. code-block:: c
99 espacios nunca se utilizan para la sangría, y el ejemplo anterior se rompe
[all …]
/openbmc/linux/drivers/s390/char/
H A Dhmcdrv_cache.c1 // SPDX-License-Identifier: GPL-2.0
3 * SE/HMC Drive (Read) Cache Functions
23 * struct hmcdrv_cache_entry - file cache (only used on read/dir)
25 * @content: kernel-space buffer, 4k aligned
27 * @ofs: start of content within file (-1 if no cached content)
50 .ofs = -1,
56 * hmcdrv_cache_get() - looks for file data/content in read cache
64 loff_t pos; /* position in cache (signed) */ in hmcdrv_cache_get() local
67 if ((ftp->id != hmcdrv_cache_file.id) || in hmcdrv_cache_get()
68 strcmp(hmcdrv_cache_file.fname, ftp->fname)) in hmcdrv_cache_get()
[all …]
/openbmc/linux/Documentation/translations/it_IT/process/
H A Dcoding-style.rst1 .. include:: ../disclaimer-ita.rst
3 :Original: :ref:`Documentation/process/coding-style.rst <codingstyle>`
24 ---------------
29 pi-greco a 3.
34 indentazione se questi sono larghi.
38 caratteri. La risposta a questa affermazione è che se vi servono più di 3
51 .. code-block:: c
73 .. code-block:: c
80 .. code-block:: c
87 .. code-block:: c
[all …]
/openbmc/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_misc.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 * of PCI-SCSI IO processors.
6 * Copyright (C) 1999-2001 Gerard Roudier <groudier@free.fr>
9 * Copyright (C) 1998-2000 Gerard Roudier
12 * a port of the FreeBSD ncr driver to Linux-1.2.13.
16 * Stefan Esser <se@mi.Uni-Koeln.de>
24 *-----------------------------------------------------------------------------
31 * A la VMS/CAM-3 queue management.
39 (ptr)->flink = (ptr); (ptr)->blink = (ptr); \
44 return (head->flink == head) ? 0 : head->flink; in sym_que_first()
[all …]
/openbmc/linux/drivers/comedi/drivers/
H A Djr3_pci.c1 // SPDX-License-Identifier: GPL-2.0+
6 * COMEDI - Linux Control and Measurement Device Interface
7 * Copyright (C) 2007 Anders Blomdell <anders.blomdell@control.lth.se>
12 * Author: Anders Blomdell <anders.blomdell@control.lth.se>
130 return get_s16(&sensor->command_word0) == 0; in is_complete()
140 set_u16(&sensor->transforms[num].link[i].link_type, in set_transforms()
141 transf->link[i].link_type); in set_transforms()
143 set_s16(&sensor->transforms[num].link[i].link_amount, in set_transforms()
144 transf->link[i].link_amount); in set_transforms()
146 if (transf->link[i].link_type == end_x_form) in set_transforms()
[all …]
/openbmc/linux/include/linux/
H A Dregset.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * User-mode machine state access
27 if (s->left) { in membuf_zero()
28 if (size > s->left) in membuf_zero()
29 size = s->left; in membuf_zero()
30 memset(s->p, 0, size); in membuf_zero()
31 s->p += size; in membuf_zero()
32 s->left -= size; in membuf_zero()
34 return s->left; in membuf_zero()
39 if (s->left) { in membuf_write()
[all …]
/openbmc/linux/drivers/char/
H A Dmisc.c1 // SPDX-License-Identifier: GPL-2.0
14 * Made things a lot mode modular - easy to compile in just one or two
17 * Support for loadable modules. 8-Sep-95 Philip Blundell <pjb27@cam.ac.uk>
20 * Alan Cox <alan@lxorguk.ukuu.org.uk> 21-Jan-96
22 * Dynamic minors and /proc/mice by Alessandro Rubini. 26-Mar-96
24 * Renamed to misc and miscdevice to be more accurate. Alan Cox 26-Mar-96
28 * adapted by Bjorn Ekwall <bj0rn@blox.se>
34 * Added devfs support. Richard Gooch <rgooch@atnf.csiro.au> 10-Jan-1998
70 ret = ida_alloc_max(&misc_minors_ida, DYNAMIC_MINORS - 1, GFP_KERNEL); in misc_minor_alloc()
72 ret = DYNAMIC_MINORS - ret - 1; in misc_minor_alloc()
[all …]
/openbmc/linux/scripts/
H A Dkallsyms.c8 * Usage: kallsyms [--all-symbols] [--absolute-percpu]
9 * [--base-relative] [--lto-clang] in.map > out.S
59 "__per_cpu_start", "__per_cpu_end", -1ULL, 0
78 fprintf(stderr, "Usage: kallsyms [--all-symbols] [--absolute-percpu] " in usage()
79 "[--base-relative] [--lto-clang] in.map > out.S\n"); in usage()
85 return (char *)s->sym + 1; in sym_name()
114 if (strcmp(sym, ar->start_sym) == 0) { in check_symbol_range()
115 ar->start = addr; in check_symbol_range()
117 } else if (strcmp(sym, ar->end_sym) == 0) { in check_symbol_range()
118 ar->end = addr; in check_symbol_range()
[all …]
/openbmc/linux/kernel/sched/
H A Dfair.c1 // SPDX-License-Identifier: GPL-2.0
43 #include <linux/memory-tiers.h>
61 * The initial- and re-scaling of tunables is configurable
65 * SCHED_TUNABLESCALING_NONE - unscaled, always *1
66 * SCHED_TUNABLESCALING_LOG - scaled logarithmical, *1+ilog(ncpus)
67 * SCHED_TUNABLESCALING_LINEAR - scaled linear, *ncpus
74 * Minimal preemption granularity for CPU-bound tasks:
108 return -cpu; in arch_asym_cpu_priority()
129 * Amount of runtime to allocate from global (tg) to local (per-cfs_rq) pool
188 lw->weight += inc; in update_load_add()
[all …]
/openbmc/linux/mm/
H A Dswapfile.c1 // SPDX-License-Identifier: GPL-2.0-only
22 #include <linux/blk-cgroup.h>
31 #include <linux/backing-dev.h>
67 static int least_priority = -1;
91 * swap_info_struct changes between not-full/full, it needs to
92 * add/remove itself to/from this list, but the swap_info_struct->lock
94 * before any swap_info_struct->lock.
136 swp_entry_t entry = swp_entry(si->type, offset); in __try_to_reclaim_swap()
163 struct rb_node *rb = rb_first(&sis->swap_extent_root); in first_se()
167 static inline struct swap_extent *next_se(struct swap_extent *se) in next_se() argument
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools/core/
H A D0005-adb-add-base64-implementation.patch3 Date: Fri, 15 Sep 2017 15:46:38 -0700
8 Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 ---
10 Upstream-Status: Pending
12 adb/adb_auth_client.c | 2 +-
14 2 files changed, 316 insertions(+), 1 deletion(-)
17 diff --git a/adb/adb_auth_client.c b/adb/adb_auth_client.c
19 --- a/adb/adb_auth_client.c
21 @@ -75,7 +75,7 @@ static void read_keys(const char *file, struct listnode *list)
25 - ret = __b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4);
[all …]
/openbmc/linux/net/ipv4/
H A Dfib_trie.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Robert Olsson <robert.olsson@its.uu.se> Uppsala Universitet
7 * Jens Laas <jens.laas@data.slu.se> Swedish University of
10 * Hans Liss <hans.liss@its.uu.se> Uppsala Universitet
12 * This work is based on the LPC-trie which is originally described in:
15 * Stefan Nilsson and Matti Tikkanen. Algorithmica, 33(1):19-33, 2002.
16 * https://www.csc.kth.se/~snilsson/software/dyntrie2/
18 * IP-address lookup using LC-tries. Stefan Nilsson and Gunnar Karlsson
19 * IEEE Journal on Selected Areas in Communications, 17(6):1083-1092, June 1999
84 .fi = fa->fa_info, in call_fib_entry_notifier()
[all …]

123