Home
last modified time | relevance | path

Searched full:pair (Results 1 – 25 of 1022) sorted by relevance

12345678910>>...41

/linux/arch/riscv/kernel/
H A Dsys_hwprobe.c32 static void hwprobe_arch_id(struct riscv_hwprobe *pair, in hwprobe_arch_id() argument
39 if (pair->key != RISCV_HWPROBE_KEY_MVENDORID && in hwprobe_arch_id()
40 pair->key != RISCV_HWPROBE_KEY_MIMPID && in hwprobe_arch_id()
41 pair->key != RISCV_HWPROBE_KEY_MARCHID) in hwprobe_arch_id()
47 switch (pair->key) { in hwprobe_arch_id()
75 pair->value = id; in hwprobe_arch_id()
78 static void hwprobe_isa_ext0(struct riscv_hwprobe *pair, in hwprobe_isa_ext0() argument
84 pair->value = 0; in hwprobe_isa_ext0()
86 pair->value |= RISCV_HWPROBE_IMA_FD; in hwprobe_isa_ext0()
89 pair->value |= RISCV_HWPROBE_IMA_C; in hwprobe_isa_ext0()
[all …]
/linux/sound/soc/fsl/
H A Dfsl_asrc_m2m.c33 struct fsl_asrc_pair *pair = (struct fsl_asrc_pair *)data; in asrc_input_dma_callback() local
35 complete(&pair->complete[IN]); in asrc_input_dma_callback()
41 struct fsl_asrc_pair *pair = (struct fsl_asrc_pair *)data; in asrc_output_dma_callback() local
43 complete(&pair->complete[OUT]); in asrc_output_dma_callback()
48 *@pair: Structure pointer of fsl_asrc_pair
52 static void asrc_read_last_fifo(struct fsl_asrc_pair *pair, void *dma_vaddr, u32 *length) in asrc_read_last_fifo() argument
54 struct fsl_asrc *asrc = pair->asrc; in asrc_read_last_fifo()
55 enum asrc_pair_index index = pair->index; in asrc_read_last_fifo()
61 width = snd_pcm_format_physical_width(pair->sample_format[OUT]); in asrc_read_last_fifo()
69 size = asrc->get_output_fifo_size(pair); in asrc_read_last_fifo()
101 asrc_dmaconfig(struct fsl_asrc_pair * pair,struct dma_chan * chan,u32 dma_addr,dma_addr_t buf_addr,u32 buf_len,int dir,int width) asrc_dmaconfig() argument
186 asrc_m2m_device_run(struct fsl_asrc_pair * pair,struct snd_compr_task_runtime * task) asrc_m2m_device_run() argument
299 struct fsl_asrc_pair *pair; fsl_asrc_m2m_comp_open() local
344 struct fsl_asrc_pair *pair = runtime->private_data; fsl_asrc_m2m_comp_release() local
362 struct fsl_asrc_pair *pair = runtime->private_data; fsl_asrc_m2m_comp_set_params() local
467 struct fsl_asrc_pair *pair = runtime->private_data; fsl_asrc_m2m_comp_task_create() local
536 struct fsl_asrc_pair *pair = runtime->private_data; fsl_asrc_m2m_comp_task_start() local
552 struct fsl_asrc_pair *pair = runtime->private_data; fsl_asrc_m2m_comp_task_free() local
639 struct fsl_asrc_pair *pair; fsl_asrc_m2m_suspend() local
667 struct fsl_asrc_pair *pair; fsl_asrc_m2m_resume() local
[all...]
H A Dfsl_asrc_dma.c46 struct fsl_asrc_pair *pair = runtime->private_data; in fsl_asrc_dma_complete() local
48 pair->pos += snd_pcm_lib_period_bytes(substream); in fsl_asrc_dma_complete()
49 if (pair->pos >= snd_pcm_lib_buffer_bytes(substream)) in fsl_asrc_dma_complete()
50 pair->pos = 0; in fsl_asrc_dma_complete()
60 struct fsl_asrc_pair *pair = runtime->private_data; in fsl_asrc_dma_prepare_and_submit() local
68 pair->pos = 0; in fsl_asrc_dma_prepare_and_submit()
69 pair->desc[!dir] = dmaengine_prep_dma_cyclic( in fsl_asrc_dma_prepare_and_submit()
70 pair->dma_chan[!dir], runtime->dma_addr, in fsl_asrc_dma_prepare_and_submit()
74 if (!pair->desc[!dir]) { in fsl_asrc_dma_prepare_and_submit()
79 pair->desc[!dir]->callback = fsl_asrc_dma_complete; in fsl_asrc_dma_prepare_and_submit()
[all …]
H A Dfsl_asrc.c26 dev_err(&asrc->pdev->dev, "Pair %c: " fmt, 'A' + index, ##__VA_ARGS__)
29 dev_dbg(&asrc->pdev->dev, "Pair %c: " fmt, 'A' + index, ##__VA_ARGS__)
32 dev_warn(&asrc->pdev->dev, "Pair %c: " fmt, 'A' + index, ##__VA_ARGS__)
212 * fsl_asrc_request_pair - Request ASRC pair
214 * @pair: pointer to pair
216 * It assigns pair by the order of A->C->B because allocation of pair B,
217 * within range [ANCA, ANCA+ANCB-1], depends on the channels of pair A
218 * while pair A and pair C are comparatively independent.
220 static int fsl_asrc_request_pair(int channels, struct fsl_asrc_pair *pair) in fsl_asrc_request_pair() argument
223 struct fsl_asrc *asrc = pair->asrc; in fsl_asrc_request_pair()
[all …]
H A Dfsl_easrc.c554 ctx = easrc->pair[ctx_id]; in fsl_easrc_prefilter_config()
923 struct fsl_asrc_pair *ctx = easrc->pair[ctx_id]; in fsl_easrc_config_slot()
986 struct fsl_asrc_pair *ctx = easrc->pair[ctx_id]; in fsl_easrc_release_slot()
1040 ctx = easrc->pair[ctx_id]; in fsl_easrc_config_context()
1310 if (easrc->pair[i]) in fsl_easrc_request_context()
1327 easrc->pair[index] = ctx; in fsl_easrc_request_context()
1353 easrc->pair[ctx->index] = NULL; in fsl_easrc_release_context()
1919 static unsigned int fsl_easrc_get_output_fifo_size(struct fsl_asrc_pair *pair) in fsl_easrc_get_output_fifo_size() argument
1921 struct fsl_asrc *asrc = pair->asrc; in fsl_easrc_get_output_fifo_size()
1922 enum asrc_pair_index index = pair->index; in fsl_easrc_get_output_fifo_size()
[all …]
/linux/rust/syn/
H A Dpunctuated.rs206 /// Removes the last punctuated pair from this sequence, or `None` if the
208 pub fn pop(&mut self) -> Option<Pair<T, P>> { in pop()
210 self.last.take().map(|t| Pair::End(*t)) in pop()
212 self.inner.pop().map(|(t, p)| Pair::Punctuated(t, p)) in pop()
479 impl<T, P> FromIterator<Pair<T, P>> for Punctuated<T, P> {
480 fn from_iter<I: IntoIterator<Item = Pair<T, P>>>(i: I) -> Self { in from_iter()
487 impl<T, P> Extend<Pair<T, P>> for Punctuated<T, P>
491 fn extend<I: IntoIterator<Item = Pair<T, P>>>(&mut self, i: I) { in extend()
501 I: Iterator<Item = Pair<T, P>>, in do_extend()
504 for pair in i { in do_extend()
[all …]
/linux/tools/sched_ext/
H A Dscx_pair.bpf.c3 * A demo sched_ext core-scheduler which always makes every sibling CPU pair
22 * 1. *Pair CPU*: The CPU that it synchronizes with when making scheduling
26 * 2. *Pair ID*: Each CPU pair is assigned a Pair ID, which is used to access
27 * a struct pair_ctx object that is shared between the pair.
28 * 3. *In-pair-index*: An index, 0 or 1, that is assigned to each core in the
29 * pair. Each struct pair_ctx has an active_mask field,
31 * in the pair currently has an actively running task.
33 * to each CPU in the pair.
44 * exactly one cgroup. At a high level, the idea with the pair scheduler is to
45 * always schedule tasks from the same cgroup within a given CPU pair. When a
[all …]
/linux/tools/perf/tests/
H A Dvmlinux-kallsyms.c129 struct map *pair = maps__find_by_name(args->kallsyms.kmaps, in test__vmlinux_matches_kallsyms_cb1() local
132 if (pair) { in test__vmlinux_matches_kallsyms_cb1()
133 map__set_priv(pair); in test__vmlinux_matches_kallsyms_cb1()
134 map__put(pair); in test__vmlinux_matches_kallsyms_cb1()
148 struct map *pair; in test__vmlinux_matches_kallsyms_cb2() local
152 pair = maps__find(args->kallsyms.kmaps, mem_start); in test__vmlinux_matches_kallsyms_cb2()
154 if (pair != NULL && !map__priv(pair) && map__start(pair) == mem_start) { in test__vmlinux_matches_kallsyms_cb2()
164 if (mem_end != map__end(pair)) in test__vmlinux_matches_kallsyms_cb2()
289 struct symbol *pair, *first_pair; test__vmlinux_matches_kallsyms() local
[all...]
/linux/tools/perf/
H A Dbuiltin-diff.c278 static double compute_delta(struct hist_entry *he, struct hist_entry *pair) in compute_delta() argument
281 double new_percent = period_percent(pair, pair->stat.period); in compute_delta()
283 pair->diff.period_ratio_delta = new_percent - old_percent; in compute_delta()
284 pair->diff.computed = true; in compute_delta()
285 return pair->diff.period_ratio_delta; in compute_delta()
288 static double compute_ratio(struct hist_entry *he, struct hist_entry *pair) in compute_ratio() argument
291 double new_period = pair->stat.period; in compute_ratio()
293 pair->diff.computed = true; in compute_ratio()
294 pair in compute_ratio()
298 compute_wdiff(struct hist_entry * he,struct hist_entry * pair) compute_wdiff() argument
310 formula_delta(struct hist_entry * he,struct hist_entry * pair,char * buf,size_t size) formula_delta() argument
327 formula_ratio(struct hist_entry * he,struct hist_entry * pair,char * buf,size_t size) formula_ratio() argument
336 formula_wdiff(struct hist_entry * he,struct hist_entry * pair,char * buf,size_t size) formula_wdiff() argument
347 formula_fprintf(struct hist_entry * he,struct hist_entry * pair,char * buf,size_t size) formula_fprintf() argument
508 struct hist_entry *pair; get_pair_data() local
620 compute_cycles_diff(struct hist_entry * he,struct hist_entry * pair) compute_cycles_diff() argument
659 struct hist_entry *pair = get_block_pair(he, hists_pair); block_hists_match() local
683 struct hist_entry *he, *pair; hists__precompute() local
1337 cycles_printf(struct hist_entry * he,struct hist_entry * pair,struct perf_hpp * hpp,int width) cycles_printf() argument
1387 struct hist_entry *pair = get_pair_fmt(he, dfmt); __hpp__color_compare() local
1506 struct hist_entry *pair = get_pair_fmt(he, dfmt); hpp__color_cycles_hist() local
1572 hpp__entry_pair(struct hist_entry * he,struct hist_entry * pair,int idx,char * buf,size_t size) hpp__entry_pair() argument
1639 struct hist_entry *pair = get_pair_fmt(he, dfmt); __hpp__entry_global() local
[all...]
/linux/tools/testing/selftests/riscv/hwprobe/
H A Dcbo.c109 struct riscv_hwprobe pair = { in test_zicbop() local
128 rc = riscv_hwprobe(&pair, 1, sizeof(cpu_set_t), (unsigned long *)cpus, 0); in test_zicbop()
129 block_size = pair.value; in test_zicbop()
130 ksft_test_result(rc == 0 && pair.key == RISCV_HWPROBE_KEY_ZICBOP_BLOCK_SIZE && in test_zicbop()
154 struct riscv_hwprobe pair = { in test_zicbom() local
161 rc = riscv_hwprobe(&pair, 1, sizeof(cpu_set_t), (unsigned long *)cpus, 0); in test_zicbom()
162 block_size = pair.value; in test_zicbom()
163 ksft_test_result(rc == 0 && pair.key == RISCV_HWPROBE_KEY_ZICBOM_BLOCK_SIZE && in test_zicbom()
178 struct riscv_hwprobe pair = { in test_zicboz() local
186 rc = riscv_hwprobe(&pair, 1, sizeof(cpu_set_t), (unsigned long *)cpus, 0); in test_zicboz()
[all …]
/linux/tools/testing/selftests/riscv/vector/
H A Dv_helpers.c13 struct riscv_hwprobe pair; in is_xtheadvector_supported() local
15 pair.key = RISCV_HWPROBE_KEY_VENDOR_EXT_THEAD_0; in is_xtheadvector_supported()
16 riscv_hwprobe(&pair, 1, 0, NULL, 0); in is_xtheadvector_supported()
17 return pair.value & RISCV_HWPROBE_VENDOR_EXT_XTHEADVECTOR; in is_xtheadvector_supported()
22 struct riscv_hwprobe pair; in is_vector_supported() local
24 pair.key = RISCV_HWPROBE_KEY_IMA_EXT_0; in is_vector_supported()
25 riscv_hwprobe(&pair, 1, 0, NULL, 0); in is_vector_supported()
26 return pair.value & RISCV_HWPROBE_EXT_ZVE32X; in is_vector_supported()
/linux/arch/riscv/include/asm/
H A Dhwprobe.h34 static inline bool riscv_hwprobe_pair_cmp(struct riscv_hwprobe *pair, in riscv_hwprobe_pair_cmp() argument
37 if (pair->key != other_pair->key) in riscv_hwprobe_pair_cmp()
40 if (hwprobe_key_is_bitmask(pair->key)) in riscv_hwprobe_pair_cmp()
41 return (pair->value & other_pair->value) == other_pair->value; in riscv_hwprobe_pair_cmp()
43 return pair->value == other_pair->value; in riscv_hwprobe_pair_cmp()
/linux/arch/mips/include/asm/
H A Dmaar.h28 * write_maar_pair() - write to a pair of MAARs
29 * @idx: The index of the pair (ie. use MAARs idx*2 & (idx*2)+1).
30 * @lower: The lowest address that the MAAR pair will affect. Must be
32 * @upper: The highest address that the MAAR pair will affect. Must be
37 * Program the pair of MAAR registers specified by idx to apply the attributes
88 * @lower: The lowest address that the MAAR pair will affect. Must be
90 * @upper: The highest address that the MAAR pair will affect. Must be
95 * Describes the configuration of a pair of Memory Accessibility Attribute
/linux/drivers/misc/vmw_vmci/
H A Dvmci_queue_pair.h35 u64 ppn_va; /* Start VA of queue pair PPNs. */
44 u64 va; /* Start VA of queue pair PPNs. */
98 * struct vmci_qp_page_store describes how the memory of a given queue pair
99 * is backed. When the queue pair is between the host and a guest, the
102 * queue pair is mapped into the VMX address space.
105 /* Reference to pages backing the queue pair. */
114 * pair of end points, A & B. One queue is used by end point A to transmit
/linux/arch/riscv/include/asm/vendor_extensions/
H A Dvendor_hwprobe.h14 pair->value |= RISCV_HWPROBE_VENDOR_EXT_##ext; \
23 * _extension_checks is an arbitrary C block to set the values of pair->value
26 #define VENDOR_EXTENSION_SUPPORTED(pair, cpus, per_hart_vendor_bitmap, _extension_checks) \ argument
34 (pair)->value &= ~missing; \
H A Dthead_hwprobe.h10 void hwprobe_isa_vendor_ext_thead_0(struct riscv_hwprobe *pair, const struct cpumask *cpus);
12 static inline void hwprobe_isa_vendor_ext_thead_0(struct riscv_hwprobe *pair, in hwprobe_isa_vendor_ext_thead_0() argument
15 pair->value = 0; in hwprobe_isa_vendor_ext_thead_0()
H A Dsifive_hwprobe.h10 void hwprobe_isa_vendor_ext_sifive_0(struct riscv_hwprobe *pair, const struct cpumask *cpus);
12 static inline void hwprobe_isa_vendor_ext_sifive_0(struct riscv_hwprobe *pair, in hwprobe_isa_vendor_ext_sifive_0() argument
15 pair->value = 0; in hwprobe_isa_vendor_ext_sifive_0()
H A Dmips_hwprobe.h13 void hwprobe_isa_vendor_ext_mips_0(struct riscv_hwprobe *pair, const struct cpumask *cpus);
15 static inline void hwprobe_isa_vendor_ext_mips_0(struct riscv_hwprobe *pair, in hwprobe_isa_vendor_ext_mips_0() argument
18 pair->value = 0; in hwprobe_isa_vendor_ext_mips_0()
/linux/Documentation/devicetree/bindings/arm/marvell/
H A Dcoherency-fabric.txt21 * For "marvell,coherency-fabric", the first pair for the coherency
22 fabric registers, second pair for the per-CPU fabric registers.
24 * For "marvell,armada-375-coherency-fabric", only one pair is needed
27 * For "marvell,armada-380-coherency-fabric", only one pair is needed
/linux/tools/memory-model/litmus-tests/
H A DREADME27 the order of a pair of writes, where each write is to a different
35 order of a pair of writes, where each write is to a different
58 Does a release-acquire pair suffice for the load-buffering
67 Does a unlock+lock pair provides ordering guarantee between a
75 in one process, and use an acquire load followed by a pair of
80 acquire load followed by a pair of spin_is_locked() calls
98 Does a unlock+lock pair provides ordering guarantee between a
182 For example, if the one process writes to a pair of variables, and
213 interleaving descriptions of the relation between a pair of consecutive
214 accesses with descriptions of the second access in the pair.
/linux/Documentation/livepatch/
H A Dshadow-vars.rst27 stored and retrieved through a <obj, id> pair.
49 - search hashtable for <obj, id> pair
52 - search hashtable for <obj, id> pair
65 - search hashtable for <obj, id> pair
75 - add <obj, id> pair to the global hashtable
117 for this <obj, id> pair.)
198 will use one that was already created for this <obj, id> pair.
/linux/tools/memory-model/
H A Dlock.cat17 * spin_trylock() read-modify-write event pair
19 * spin_trylock() RMW event pair
47 (* The litmus test is invalid if an LKR/LKW event is not part of an RMW pair *)
88 (* Utility macro to convert a single pair to a single-edge relation *)
89 let pair-to-relation p = p ++ 0
105 map pair-to-relation (possible-rfe-noncrit-lf e)
126 map pair-to-relation (possible-rf-ru e)
/linux/net/core/
H A Dnetprio_cgroup.c87 * netprio_prio - return the effective netprio of a cgroup-net_device pair
88 * @css: css part of the target pair
89 * @dev: net_device part of the target pair
104 * netprio_set_prio - set netprio on a cgroup-net_device pair
105 * @css: css part of the target pair
106 * @dev: net_device part of the target pair
109 * Set netprio to @prio on @css-@dev pair. Should be called under rtnl
/linux/arch/s390/include/asm/
H A Dcpacf.h420 : [src] "+&d" (s.pair), [dst] "+&d" (d.pair) in cpacf_km()
452 : [src] "+&d" (s.pair), [dst] "+&d" (d.pair) in cpacf_kmc()
480 : [src] "+&d" (s.pair) in cpacf_kimd()
505 : [src] "+&d" (s.pair) in cpacf_klmd()
534 : [r0] "+d" (*gr0), [src] "+&d" (s.pair) in _cpacf_kmac()
584 : [src] "+&d" (s.pair), [dst] "+&d" (d.pair), in cpacf_kmctr()
585 [ctr] "+&d" (c.pair) in cpacf_kmctr()
618 : [dst] "+&d" (d.pair) in cpacf_prno()
620 [seed] "d" (s.pair), [opc] "i" (CPACF_PRNO) in cpacf_prno()
644 : [ucbuf] "+&d" (u.pair), [cbuf] "+&d" (c.pair) in cpacf_trng()
[all …]
/linux/drivers/ata/
H A Dpata_ali.c209 struct ata_device *pair = ata_dev_pair(adev); in ali_set_piomode() local
214 if (pair) { in ali_set_piomode()
216 ata_timing_compute(pair, pair->pio_mode, &p, T, 1); in ali_set_piomode()
218 if (ata_dma_enabled(pair)) { in ali_set_piomode()
219 ata_timing_compute(pair, pair->dma_mode, &p, T, 1); in ali_set_piomode()
244 struct ata_device *pair = ata_dev_pair(adev); in ali_set_dmamode() local
263 if (pair) { in ali_set_dmamode()
265 ata_timing_compute(pair, pair->pio_mode, &p, T, 1); in ali_set_dmamode()
267 if (ata_dma_enabled(pair)) { in ali_set_dmamode()
268 ata_timing_compute(pair, pair->dma_mode, &p, T, 1); in ali_set_dmamode()

12345678910>>...41