Home
last modified time | relevance | path

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

12345678910>>...18

/linux-6.6.21/sound/soc/fsl/
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 …]
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 …]
Dfsl_asrc_common.h89 struct fsl_asrc_pair *pair[PAIR_CTX_NUM]; member
96 struct dma_chan *(*get_dma_channel)(struct fsl_asrc_pair *pair, bool dir);
97 int (*request_pair)(int channels, struct fsl_asrc_pair *pair);
98 void (*release_pair)(struct fsl_asrc_pair *pair);
/linux-6.6.21/arch/riscv/kernel/
Dsys_riscv.c85 static void hwprobe_arch_id(struct riscv_hwprobe *pair, in hwprobe_arch_id() argument
95 switch (pair->key) { in hwprobe_arch_id()
122 pair->value = id; in hwprobe_arch_id()
125 static void hwprobe_isa_ext0(struct riscv_hwprobe *pair, in hwprobe_isa_ext0() argument
131 pair->value = 0; in hwprobe_isa_ext0()
133 pair->value |= RISCV_HWPROBE_IMA_FD; in hwprobe_isa_ext0()
136 pair->value |= RISCV_HWPROBE_IMA_C; in hwprobe_isa_ext0()
139 pair->value |= RISCV_HWPROBE_IMA_V; in hwprobe_isa_ext0()
149 pair->value |= RISCV_HWPROBE_EXT_ZBA; in hwprobe_isa_ext0()
154 pair->value |= RISCV_HWPROBE_EXT_ZBB; in hwprobe_isa_ext0()
[all …]
/linux-6.6.21/tools/perf/tests/
Dvmlinux-kallsyms.c217 struct symbol *pair, *first_pair; in test__vmlinux_matches_kallsyms() local
228 pair = first_pair; in test__vmlinux_matches_kallsyms()
230 if (pair && UM(pair->start) == mem_start) { in test__vmlinux_matches_kallsyms()
232 if (arch__compare_symbol_names(sym->name, pair->name) == 0) { in test__vmlinux_matches_kallsyms()
242 s64 skew = mem_end - UM(pair->end); in test__vmlinux_matches_kallsyms()
246 UM(pair->end)); in test__vmlinux_matches_kallsyms()
256 pair = machine__find_kernel_symbol_by_name(&kallsyms, sym->name, NULL); in test__vmlinux_matches_kallsyms()
257 if (pair) { in test__vmlinux_matches_kallsyms()
258 if (UM(pair->start) == mem_start) in test__vmlinux_matches_kallsyms()
262 mem_start, sym->name, pair->name); in test__vmlinux_matches_kallsyms()
[all …]
/linux-6.6.21/tools/perf/
Dbuiltin-diff.c279 static double compute_delta(struct hist_entry *he, struct hist_entry *pair) in compute_delta() argument
282 double new_percent = period_percent(pair, pair->stat.period); in compute_delta()
284 pair->diff.period_ratio_delta = new_percent - old_percent; in compute_delta()
285 pair->diff.computed = true; in compute_delta()
286 return pair->diff.period_ratio_delta; in compute_delta()
289 static double compute_ratio(struct hist_entry *he, struct hist_entry *pair) in compute_ratio() argument
292 double new_period = pair->stat.period; in compute_ratio()
294 pair->diff.computed = true; in compute_ratio()
295 pair->diff.period_ratio = new_period / old_period; in compute_ratio()
296 return pair->diff.period_ratio; in compute_ratio()
[all …]
/linux-6.6.21/arch/s390/include/asm/
Dcpacf.h266 : [src] "+&d" (s.pair), [dst] "+&d" (d.pair) in cpacf_km()
298 : [src] "+&d" (s.pair), [dst] "+&d" (d.pair) in cpacf_kmc()
326 : [src] "+&d" (s.pair) in cpacf_kimd()
351 : [src] "+&d" (s.pair) in cpacf_klmd()
379 : [src] "+&d" (s.pair) in cpacf_kmac()
413 : [src] "+&d" (s.pair), [dst] "+&d" (d.pair), in cpacf_kmctr()
414 [ctr] "+&d" (c.pair) in cpacf_kmctr()
447 : [dst] "+&d" (d.pair) in cpacf_prno()
449 [seed] "d" (s.pair), [opc] "i" (CPACF_PRNO) in cpacf_prno()
473 : [ucbuf] "+&d" (u.pair), [cbuf] "+&d" (c.pair) in cpacf_trng()
[all …]
/linux-6.6.21/include/linux/
Dethtool_netlink.h26 int ethnl_cable_test_result(struct phy_device *phydev, u8 pair, u8 result);
27 int ethnl_cable_test_fault_length(struct phy_device *phydev, u8 pair, u32 cm);
28 int ethnl_cable_test_amplitude(struct phy_device *phydev, u8 pair, s16 mV);
57 static inline int ethnl_cable_test_result(struct phy_device *phydev, u8 pair, in ethnl_cable_test_result() argument
64 u8 pair, u32 cm) in ethnl_cable_test_fault_length() argument
70 u8 pair, s16 mV) in ethnl_cable_test_amplitude() argument
/linux-6.6.21/drivers/ata/
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()
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()
Dpata_opti.c109 struct ata_device *pair = ata_dev_pair(adev); in opti_set_piomode() local
134 if (pair) { in opti_set_piomode()
136 u8 pair_addr = addr_timing[clock][pair->pio_mode - XFER_PIO_0]; in opti_set_piomode()
/linux-6.6.21/tools/testing/selftests/riscv/vector/
Dvstate_prctl.c83 struct riscv_hwprobe pair; in main() local
87 pair.key = RISCV_HWPROBE_KEY_IMA_EXT_0; in main()
88 rc = riscv_hwprobe(&pair, 1, 0, NULL, 0); in main()
94 if (pair.key != RISCV_HWPROBE_KEY_IMA_EXT_0) { in main()
99 if (!(pair.value & RISCV_HWPROBE_IMA_V)) { in main()
/linux-6.6.21/net/ethtool/
Dcabletest.c163 int ethnl_cable_test_result(struct phy_device *phydev, u8 pair, u8 result) in ethnl_cable_test_result() argument
172 if (nla_put_u8(phydev->skb, ETHTOOL_A_CABLE_RESULT_PAIR, pair)) in ethnl_cable_test_result()
186 int ethnl_cable_test_fault_length(struct phy_device *phydev, u8 pair, u32 cm) in ethnl_cable_test_fault_length() argument
196 if (nla_put_u8(phydev->skb, ETHTOOL_A_CABLE_FAULT_LENGTH_PAIR, pair)) in ethnl_cable_test_fault_length()
238 cfg->pair = PHY_PAIR_ALL; in ethnl_act_cable_test_tdr_cfg()
261 cfg->pair = nla_get_u8(tb[ETHTOOL_A_CABLE_TEST_TDR_CFG_PAIR]); in ethnl_act_cable_test_tdr_cfg()
262 if (cfg->pair > ETHTOOL_A_CABLE_PAIR_D) { in ethnl_act_cable_test_tdr_cfg()
361 u8 pair, s16 mV) in ethnl_cable_test_amplitude() argument
371 if (nla_put_u8(phydev->skb, ETHTOOL_A_CABLE_AMPLITUDE_PAIR, pair)) in ethnl_cable_test_amplitude()
/linux-6.6.21/samples/bpf/
Dtracex4.bpf.c12 struct pair { struct
20 __type(value, struct pair); argument
45 struct pair v = { in bpf_prog2()
/linux-6.6.21/Documentation/devicetree/bindings/arm/marvell/
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-6.6.21/fs/ntfs3/
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
255 pair = cmpr[1]; in decompress_chunk()
256 pair <<= 8; in decompress_chunk()
257 pair |= cmpr[0]; in decompress_chunk()
262 length = parse_pair(pair, &offset, index); in decompress_chunk()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_dwb_scl.c690 int pair; in wbscl_set_scaler_filter() local
694 for (pair = 0; pair < tap_pairs; pair++) { in wbscl_set_scaler_filter()
695 even_coef = filter[phase * taps + 2 * pair]; in wbscl_set_scaler_filter()
696 if ((pair * 2 + 1) < taps) in wbscl_set_scaler_filter()
697 odd_coef = filter[phase * taps + 2 * pair + 1]; in wbscl_set_scaler_filter()
702 WBSCL_COEF_RAM_TAP_PAIR_IDX, pair, in wbscl_set_scaler_filter()
/linux-6.6.21/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_ctl.c52 struct mdp5_ctl *pair; /* Paired CTL to be flushed together */ member
492 if (ctl->pair) { in fix_for_single_flush()
498 if (ctl->pair->flush_pending) { in fix_for_single_flush()
499 *flush_id = min_t(u32, ctl->id, ctl->pair->id); in fix_for_single_flush()
503 ctl->pair->flush_pending = false; in fix_for_single_flush()
603 ctlx->pair = NULL; in mdp5_ctl_pair()
604 ctly->pair = NULL; in mdp5_ctl_pair()
607 } else if ((ctlx->pair != NULL) || (ctly->pair != NULL)) { in mdp5_ctl_pair()
615 ctlx->pair = ctly; in mdp5_ctl_pair()
616 ctly->pair = ctlx; in mdp5_ctl_pair()
/linux-6.6.21/crypto/
Daegis128-neon-inner.c186 uint8x8x2_t pair; in vqtbl1q_u8() member
189 return vcombine_u8(vtbl2_u8(__a.pair, vget_low_u8(b)), in vqtbl1q_u8()
190 vtbl2_u8(__a.pair, vget_high_u8(b))); in vqtbl1q_u8()
197 uint8x8x2_t pair; in vqtbx1q_u8() member
200 return vcombine_u8(vtbx2_u8(vget_low_u8(v), __a.pair, vget_low_u8(b)), in vqtbx1q_u8()
201 vtbx2_u8(vget_high_u8(v), __a.pair, vget_high_u8(b))); in vqtbx1q_u8()
/linux-6.6.21/tools/perf/scripts/python/
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))
/linux-6.6.21/tools/memory-model/
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 *)
90 let pair-to-relation p = p ++ 0
91 in map pair-to-relation ((LKW * {r}) & loc & ext)
111 let pair-to-relation p = p ++ 0
112 in map pair-to-relation (((UL | IW) * {r}) & loc & ext)
/linux-6.6.21/lib/raid6/
Drecov_neon_inner.c20 uint8x8x2_t pair; in vqtbl1q_u8() member
23 return vcombine_u8(vtbl2_u8(__a.pair, vget_low_u8(b)), in vqtbl1q_u8()
24 vtbl2_u8(__a.pair, vget_high_u8(b))); in vqtbl1q_u8()
/linux-6.6.21/Documentation/devicetree/bindings/interrupt-controller/
Dmarvell,armada-370-xp-mpic.txt12 - reg: Should contain PMIC registers location and length. First pair
13 for the main interrupt registers, second pair for the per-CPU
14 interrupt registers. For this last pair, to be compliant with SMP
/linux-6.6.21/tools/perf/ui/
Dhist.c49 struct hist_entry *pair; in __hpp__fmt() local
54 list_for_each_entry(pair, &he->pairs.head, pairs.node) { in __hpp__fmt()
55 u64 period = get_field(pair); in __hpp__fmt()
56 u64 total = hists__total_period(pair->hists); in __hpp__fmt()
61 evsel = hists_to_evsel(pair->hists); in __hpp__fmt()
161 struct hist_entry *pair; in hist_entry__new_pair() local
166 list_for_each_entry(pair, &a->pairs.head, pairs.node) { in hist_entry__new_pair()
167 struct evsel *evsel = hists_to_evsel(pair->hists); in hist_entry__new_pair()
168 fa[evsel__group_idx(evsel)] = get_field(pair); in hist_entry__new_pair()
171 list_for_each_entry(pair, &b->pairs.head, pairs.node) { in hist_entry__new_pair()
[all …]
/linux-6.6.21/drivers/net/phy/
Dadin.c875 unsigned int pair) in adin_cable_test_report_pair() argument
881 ADIN1300_CDIAG_DTLD_RSLTS(pair)); in adin_cable_test_report_pair()
887 ret = ethnl_cable_test_result(phydev, pair, fault_rslt); in adin_cable_test_report_pair()
892 ADIN1300_CDIAG_FLT_DIST(pair)); in adin_cable_test_report_pair()
900 return ethnl_cable_test_fault_length(phydev, pair, ret * 100); in adin_cable_test_report_pair()
908 unsigned int pair; in adin_cable_test_report() local
911 for (pair = ETHTOOL_A_CABLE_PAIR_A; pair <= ETHTOOL_A_CABLE_PAIR_D; pair++) { in adin_cable_test_report()
912 ret = adin_cable_test_report_pair(phydev, pair); in adin_cable_test_report()

12345678910>>...18