Home
last modified time | relevance | path

Searched refs:pair (Results 1 – 25 of 287) sorted by relevance

12345678910>>...12

/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()
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()
73 for (i = 0; i < size * pair->channels; i++) { in asrc_read_last_fifo()
[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 in fsl_asrc_dma_prepare_and_submit()
101 struct fsl_asrc_pair *pair = runtime->private_data; fsl_asrc_dma_trigger() local
138 struct fsl_asrc_pair *pair = runtime->private_data; fsl_asrc_dma_hw_params() local
326 struct fsl_asrc_pair *pair = runtime->private_data; fsl_asrc_dma_hw_free() local
351 struct fsl_asrc_pair *pair; fsl_asrc_dma_startup() local
423 struct fsl_asrc_pair *pair = runtime->private_data; fsl_asrc_dma_shutdown() local
444 struct fsl_asrc_pair *pair = runtime->private_data; fsl_asrc_dma_pcm_pointer() local
[all...]
H A Dfsl_asrc.c214 static int fsl_asrc_request_pair(int channels, struct fsl_asrc_pair *pair) in fsl_asrc_request_pair() argument
217 struct fsl_asrc *asrc = pair->asrc; in fsl_asrc_request_pair()
225 if (asrc->pair[i] != NULL) in fsl_asrc_request_pair()
242 asrc->pair[index] = pair; in fsl_asrc_request_pair()
243 pair->channels = channels; in fsl_asrc_request_pair()
244 pair->index = index; in fsl_asrc_request_pair()
258 static void fsl_asrc_release_pair(struct fsl_asrc_pair *pair) in fsl_asrc_release_pair() argument
260 struct fsl_asrc *asrc = pair->asrc; in fsl_asrc_release_pair()
261 enum asrc_pair_index index = pair->index; in fsl_asrc_release_pair()
270 asrc->channel_avail += pair->channels; in fsl_asrc_release_pair()
[all …]
/linux/arch/riscv/kernel/
H A Dsys_hwprobe.c27 static void hwprobe_arch_id(struct riscv_hwprobe *pair, in hwprobe_arch_id() argument
34 if (pair->key != RISCV_HWPROBE_KEY_MVENDORID && in hwprobe_arch_id()
35 pair->key != RISCV_HWPROBE_KEY_MIMPID && in hwprobe_arch_id()
36 pair->key != RISCV_HWPROBE_KEY_MARCHID) in hwprobe_arch_id()
42 switch (pair->key) { in hwprobe_arch_id()
70 pair->value = id; in hwprobe_arch_id()
73 static void hwprobe_isa_ext0(struct riscv_hwprobe *pair, in hwprobe_isa_ext0() argument
79 pair->value = 0; in hwprobe_isa_ext0()
81 pair->value |= RISCV_HWPROBE_IMA_FD; in hwprobe_isa_ext0()
84 pair->value |= RISCV_HWPROBE_IMA_C; in hwprobe_isa_ext0()
[all …]
/linux/tools/perf/tests/
H A Dvmlinux-kallsyms.c130 struct map *pair = maps__find_by_name(args->kallsyms.kmaps, in test__vmlinux_matches_kallsyms_cb1() local
133 if (pair) { in test__vmlinux_matches_kallsyms_cb1()
134 map__set_priv(pair); in test__vmlinux_matches_kallsyms_cb1()
135 map__put(pair); in test__vmlinux_matches_kallsyms_cb1()
149 struct map *pair; in test__vmlinux_matches_kallsyms_cb2() local
153 pair = maps__find(args->kallsyms.kmaps, mem_start); in test__vmlinux_matches_kallsyms_cb2()
155 if (pair != NULL && !map__priv(pair) && map__start(pair) == mem_start) { in test__vmlinux_matches_kallsyms_cb2()
165 if (mem_end != map__end(pair)) in test__vmlinux_matches_kallsyms_cb2()
167 map__start(pair), map__end(pair), map__pgoff(pair)); in test__vmlinux_matches_kallsyms_cb2()
169 map__set_priv(pair); in test__vmlinux_matches_kallsyms_cb2()
[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/perf/
H A Dbuiltin-diff.c280 static double compute_delta(struct hist_entry *he, struct hist_entry *pair) in compute_delta() argument
283 double new_percent = period_percent(pair, pair->stat.period); in compute_delta()
285 pair->diff.period_ratio_delta = new_percent - old_percent; in compute_delta()
286 pair->diff.computed = true; in compute_delta()
287 return pair->diff.period_ratio_delta; in compute_delta()
290 static double compute_ratio(struct hist_entry *he, struct hist_entry *pair) in compute_ratio() argument
293 double new_period = pair->stat.period; in compute_ratio()
295 pair->diff.computed = true; in compute_ratio()
296 pair->diff.period_ratio = new_period / old_period; in compute_ratio()
297 return pair->diff.period_ratio; in compute_ratio()
[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/include/linux/
H A Dethtool_netlink.h26 int ethnl_cable_test_result_with_src(struct phy_device *phydev, u8 pair,
28 int ethnl_cable_test_fault_length_with_src(struct phy_device *phydev, u8 pair,
30 int ethnl_cable_test_amplitude(struct phy_device *phydev, u8 pair, s16 mV);
62 u8 pair, u8 result, u32 src) in ethnl_cable_test_result_with_src() argument
68 u8 pair, u32 cm, u32 src) in ethnl_cable_test_fault_length_with_src() argument
74 u8 pair, s16 mV) in ethnl_cable_test_amplitude() argument
132 static inline int ethnl_cable_test_result(struct phy_device *phydev, u8 pair, in ethnl_cable_test_result() argument
135 return ethnl_cable_test_result_with_src(phydev, pair, result, in ethnl_cable_test_result()
140 u8 pair, u32 cm) in ethnl_cable_test_fault_length() argument
142 return ethnl_cable_test_fault_length_with_src(phydev, pair, cm, in ethnl_cable_test_fault_length()
/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/arch/riscv/include/asm/
H A Dhwprobe.h33 static inline bool riscv_hwprobe_pair_cmp(struct riscv_hwprobe *pair, in riscv_hwprobe_pair_cmp() argument
36 if (pair->key != other_pair->key) in riscv_hwprobe_pair_cmp()
39 if (hwprobe_key_is_bitmask(pair->key)) in riscv_hwprobe_pair_cmp()
40 return (pair->value & other_pair->value) == other_pair->value; in riscv_hwprobe_pair_cmp()
42 return pair->value == other_pair->value; in riscv_hwprobe_pair_cmp()
/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()
H A Dpata_cs5535.c94 struct ata_device *pair = ata_dev_pair(adev); in cs5535_set_piomode() local
100 if (pair) { in cs5535_set_piomode()
101 int pairmode = pair->pio_mode - XFER_PIO_0; in cs5535_set_piomode()
105 wrmsr(ATAC_CH0D0_PIO + 2 * pair->devno, in cs5535_set_piomode()
/linux/arch/riscv/include/asm/vendor_extensions/
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()
H A Dvendor_hwprobe.h14 pair->value |= RISCV_HWPROBE_VENDOR_EXT_##ext; \
26 #define VENDOR_EXTENSION_SUPPORTED(pair, cpus, per_hart_vendor_bitmap, _extension_checks) \ argument
34 (pair)->value &= ~missing; \
/linux/net/ethtool/
H A Dcabletest.c169 int ethnl_cable_test_result_with_src(struct phy_device *phydev, u8 pair, in ethnl_cable_test_result_with_src() argument
179 if (nla_put_u8(phydev->skb, ETHTOOL_A_CABLE_RESULT_PAIR, pair)) in ethnl_cable_test_result_with_src()
197 int ethnl_cable_test_fault_length_with_src(struct phy_device *phydev, u8 pair, in ethnl_cable_test_fault_length_with_src() argument
208 if (nla_put_u8(phydev->skb, ETHTOOL_A_CABLE_FAULT_LENGTH_PAIR, pair)) in ethnl_cable_test_fault_length_with_src()
251 cfg->pair = PHY_PAIR_ALL; in ethnl_act_cable_test_tdr_cfg()
274 cfg->pair = nla_get_u8(tb[ETHTOOL_A_CABLE_TEST_TDR_CFG_PAIR]); in ethnl_act_cable_test_tdr_cfg()
275 if (cfg->pair > ETHTOOL_A_CABLE_PAIR_D) { in ethnl_act_cable_test_tdr_cfg()
381 u8 pair, s16 mV) in ethnl_cable_test_amplitude() argument
391 if (nla_put_u8(phydev->skb, ETHTOOL_A_CABLE_AMPLITUDE_PAIR, pair)) in ethnl_cable_test_amplitude()
/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/samples/bpf/
H A Dtracex4.bpf.c12 struct pair { struct
20 __type(value, struct pair); argument
45 struct pair v = { in bpf_prog2()
/linux/fs/ntfs3/
H A Dlznt.c124 static inline size_t parse_pair(u16 pair, size_t *offset, size_t index) in parse_pair() argument
126 *offset = 1 + (pair >> (12 - index)); in parse_pair()
127 return 3 + (pair & ((1 << (12 - index)) - 1)); in parse_pair()
234 u16 pair; in decompress_chunk() local
258 pair = cmpr[1]; in decompress_chunk()
259 pair <<= 8; in decompress_chunk()
260 pair |= cmpr[0]; in decompress_chunk()
265 length = parse_pair(pair, &offset, index); in decompress_chunk()
/linux/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_dwb_scl.c690 int pair; in wbscl_set_scaler_filter() local
697 for (pair = 0; pair < tap_pairs; pair++) { in wbscl_set_scaler_filter()
698 even_coef = filter[phase * taps + 2 * pair]; in wbscl_set_scaler_filter()
699 if ((pair * 2 + 1) < taps) in wbscl_set_scaler_filter()
700 odd_coef = filter[phase * taps + 2 * pair + 1]; in wbscl_set_scaler_filter()
705 WBSCL_COEF_RAM_TAP_PAIR_IDX, pair, in wbscl_set_scaler_filter()
/linux/net/mctp/test/
H A Dsock-test.c361 const struct mctp_bind_pair_test *pair; in mctp_test_bind_conflicts() local
364 pair = test->param_value; in mctp_test_bind_conflicts()
367 mctp_test_bind_conflicts_inner(test, pair->bind1, pair->bind2); in mctp_test_bind_conflicts()
368 KUNIT_EXPECT_EQ(test, -bind_errno, pair->error); in mctp_test_bind_conflicts()
372 mctp_test_bind_conflicts_inner(test, pair->bind2, pair->bind1); in mctp_test_bind_conflicts()
373 KUNIT_EXPECT_EQ(test, -bind_errno, pair->error); in mctp_test_bind_conflicts()
/linux/drivers/iio/
H A Dindustrialio-backend.c518 struct iio_backend_buffer_pair *pair = arg; in iio_backend_free_buffer() local
520 iio_backend_void_op_call(pair->back, free_buffer, pair->buffer); in iio_backend_free_buffer()
542 struct iio_backend_buffer_pair *pair; in devm_iio_backend_request_buffer() local
545 pair = devm_kzalloc(dev, sizeof(*pair), GFP_KERNEL); in devm_iio_backend_request_buffer()
546 if (!pair) in devm_iio_backend_request_buffer()
554 pair->back = back; in devm_iio_backend_request_buffer()
555 pair->buffer = buffer; in devm_iio_backend_request_buffer()
557 return devm_add_action_or_reset(dev, iio_backend_free_buffer, pair); in devm_iio_backend_request_buffer()
/linux/tools/perf/scripts/python/
H A Dcompaction-times.py54 class pair: class
72 self.migrated = pair(0, 0, "moved", "failed")
73 self.fscan = pair(0,0, "scanned", "isolated")
74 self.mscan = pair(0,0, "scanned", "isolated")
216 pair(nr_migrated, nr_failed), None, None)
223 None, pair(nr_scanned, nr_taken), None)
230 None, None, pair(nr_scanned, nr_taken))

12345678910>>...12