Home
last modified time | relevance | path

Searched refs:pat (Results 1 – 25 of 75) sorted by relevance

123

/linux/drivers/video/fbdev/core/
A Dsysfillrect.c103 pat = pat << left | pat >> right; in bitfill_unaligned()
111 pat = pat << left | pat >> right; in bitfill_unaligned()
113 pat = pat << left | pat >> right; in bitfill_unaligned()
115 pat = pat << left | pat >> right; in bitfill_unaligned()
117 pat = pat << left | pat >> right; in bitfill_unaligned()
122 pat = pat << left | pat >> right; in bitfill_unaligned()
215 pat = pat << left | pat >> right; in bitfill_unaligned_rev()
223 pat = pat << left | pat >> right; in bitfill_unaligned_rev()
225 pat = pat << left | pat >> right; in bitfill_unaligned_rev()
227 pat = pat << left | pat >> right; in bitfill_unaligned_rev()
[all …]
A Dcfbfillrect.c114 pat = pat << left | pat >> right; in bitfill_unaligned()
122 pat = pat << left | pat >> right; in bitfill_unaligned()
124 pat = pat << left | pat >> right; in bitfill_unaligned()
126 pat = pat << left | pat >> right; in bitfill_unaligned()
128 pat = pat << left | pat >> right; in bitfill_unaligned()
133 pat = pat << left | pat >> right; in bitfill_unaligned()
243 pat = pat << left | pat >> right; in bitfill_unaligned_rev()
252 pat = pat << left | pat >> right; in bitfill_unaligned_rev()
255 pat = pat << left | pat >> right; in bitfill_unaligned_rev()
258 pat = pat << left | pat >> right; in bitfill_unaligned_rev()
[all …]
A Dfbcon_rotate.h14 static inline int pattern_test_bit(u32 x, u32 y, u32 pitch, const char *pat) in pattern_test_bit() argument
18 pat +=index; in pattern_test_bit()
19 return (*pat) & (0x80 >> bit); in pattern_test_bit()
22 static inline void pattern_set_bit(u32 x, u32 y, u32 pitch, char *pat) in pattern_set_bit() argument
26 pat += index; in pattern_set_bit()
28 (*pat) |= 0x80 >> bit; in pattern_set_bit()
/linux/tools/perf/util/
A Dstring.c79 pat++; in __match_charclass()
84 while (*pat && *pat != ']') { /* Matching */ in __match_charclass()
86 if (*(pat - 1) <= c && c <= *(pat + 1)) in __match_charclass()
88 if (*(pat - 1) > *(pat + 1)) in __match_charclass()
100 pat++; in __match_charclass()
114 while (*str && *pat && *pat != '*') { in __match_glob()
128 pat++; in __match_glob()
131 if (__match_charclass(pat + 1, *str, &pat)) { in __match_glob()
137 pat++; in __match_glob()
144 pat++; in __match_glob()
[all …]
A Dutil.c117 static bool match_pat(char *file, const char **pat) in match_pat() argument
121 if (!pat) in match_pat()
124 while (pat[i]) { in match_pat()
125 if (strglobmatch(file, pat[i])) in match_pat()
148 static int rm_rf_depth_pat(const char *path, int depth, const char **pat) in rm_rf_depth_pat() argument
175 if (!match_pat(d->d_name, pat)) { in rm_rf_depth_pat()
191 ret = depth ? rm_rf_depth_pat(namebuf, depth - 1, pat) : 0; in rm_rf_depth_pat()
206 const char *pat[] = { in rm_rf_kcore_dir() local
215 return rm_rf_depth_pat(kcore_dir_path, 0, pat); in rm_rf_kcore_dir()
220 const char *pat[] = { in rm_rf_perf_data() local
[all …]
A Dstring2.h15 bool strglobmatch(const char *str, const char *pat);
16 bool strglobmatch_nocase(const char *str, const char *pat);
17 bool strlazymatch(const char *str, const char *pat);
/linux/lib/
A Dglob.c40 bool __pure glob_match(char const *pat, char const *str) in glob_match() argument
57 unsigned char d = *pat++; in glob_match()
65 if (*pat == '\0') /* Optimize trailing * case */ in glob_match()
67 back_pat = pat; in glob_match()
71 bool match = false, inverted = (*pat == '!'); in glob_match()
72 char const *class = pat + inverted; in glob_match()
100 pat = class; in glob_match()
104 d = *pat++; in glob_match()
117 pat = back_pat; in glob_match()
A Dglobtest.c15 char const *pat, *str; member
19 static bool __pure __init test(char const *pat, char const *str, bool expected) in test() argument
21 bool match = glob_match(pat, str); in test()
39 printk(message, pat, str, mismatch + 3*match); in test()
145 char const *pat = p; in glob_init() local
148 successes += test(pat, p, expected); in glob_init()
/linux/drivers/isdn/mISDN/
A Ddsp_tones.c378 struct pattern *pat; in dsp_tone_copy() local
398 if (!pat->seq[index]) { in dsp_tone_copy()
408 count -= pat->seq[index]; in dsp_tone_copy()
471 if (!pat->seq[index]) in dsp_tone_timeout()
479 dsp_tone_hw_message(dsp, pat->data[index], *(pat->siz[index])); in dsp_tone_timeout()
498 struct pattern *pat; in dsp_tone() local
515 pat = NULL; in dsp_tone()
519 pat = &pattern[i]; in dsp_tone()
524 if (!pat) { in dsp_tone()
532 tonet->pattern = pat; in dsp_tone()
[all …]
/linux/drivers/net/ethernet/intel/igc/
A Digc_diag.c39 u32 pat, val, before; in reg_pattern_test() local
44 for (pat = 0; pat < ARRAY_SIZE(test_pattern); pat++) { in reg_pattern_test()
46 wr32(reg, test_pattern[pat] & write); in reg_pattern_test()
48 if (val != (test_pattern[pat] & write & mask)) { in reg_pattern_test()
51 reg, val, test_pattern[pat] & write & mask); in reg_pattern_test()
/linux/arch/x86/mm/pat/
A Dmemtype.c241 static void pat_bp_init(u64 pat) in pat_bp_init() argument
256 wrmsrl(MSR_IA32_CR_PAT, pat); in pat_bp_init()
259 __init_cache_modes(pat); in pat_bp_init()
272 wrmsrl(MSR_IA32_CR_PAT, pat); in pat_ap_init()
277 u64 pat = 0; in init_cache_modes() local
292 rdmsrl(MSR_IA32_CR_PAT, pat); in init_cache_modes()
295 if (!pat) { in init_cache_modes()
318 __init_cache_modes(pat); in init_cache_modes()
333 u64 pat; in pat_init() local
400 pat_bp_init(pat); in pat_init()
[all …]
/linux/drivers/net/ethernet/intel/i40e/
A Di40e_diag.c19 u32 pat, val, orig_val; in i40e_diag_reg_pattern_test() local
24 pat = patterns[i]; in i40e_diag_reg_pattern_test()
25 wr32(hw, reg, (pat & mask)); in i40e_diag_reg_pattern_test()
27 if ((val & mask) != (pat & mask)) { in i40e_diag_reg_pattern_test()
30 __func__, reg, pat, val); in i40e_diag_reg_pattern_test()
/linux/drivers/gpu/drm/i915/gt/
A Dintel_gtt.c467 u64 pat; in bdw_setup_private_ppat() local
469 pat = GEN8_PPAT(0, GEN8_PPAT_WB | GEN8_PPAT_LLC) | /* for normal objects, no eLLC */ in bdw_setup_private_ppat()
479 pat |= GEN8_PPAT(2, GEN8_PPAT_WB | GEN8_PPAT_ELLC_OVERRIDE); in bdw_setup_private_ppat()
481 pat |= GEN8_PPAT(2, GEN8_PPAT_WT | GEN8_PPAT_LLCELLC); in bdw_setup_private_ppat()
483 intel_uncore_write(uncore, GEN8_PRIVATE_PAT_LO, lower_32_bits(pat)); in bdw_setup_private_ppat()
484 intel_uncore_write(uncore, GEN8_PRIVATE_PAT_HI, upper_32_bits(pat)); in bdw_setup_private_ppat()
489 u64 pat; in chv_setup_private_ppat() local
510 pat = GEN8_PPAT(0, CHV_PPAT_SNOOP) | in chv_setup_private_ppat()
519 intel_uncore_write(uncore, GEN8_PRIVATE_PAT_LO, lower_32_bits(pat)); in chv_setup_private_ppat()
520 intel_uncore_write(uncore, GEN8_PRIVATE_PAT_HI, upper_32_bits(pat)); in chv_setup_private_ppat()
/linux/drivers/media/test-drivers/vidtv/
A Dvidtv_psi.c914 if (p == pat->program) in vidtv_psi_pat_program_assign()
922 pat->num_pat = program_count; in vidtv_psi_pat_program_assign()
923 pat->program = p; in vidtv_psi_pat_program_assign()
941 pat = kzalloc(sizeof(*pat), GFP_KERNEL); in vidtv_psi_pat_table_init()
942 if (!pat) in vidtv_psi_pat_table_init()
945 pat->header.table_id = 0x0; in vidtv_psi_pat_table_init()
949 pat->header.current_next = 0x1; in vidtv_psi_pat_table_init()
951 pat->header.version = 0x1f; in vidtv_psi_pat_table_init()
959 return pat; in vidtv_psi_pat_table_init()
1490 program = pat->program; in vidtv_psi_pmt_create_sec_for_each_pat_entry()
[all …]
A Dvidtv_channel.c423 m->si.pat = vidtv_psi_pat_table_init(m->transport_stream_id); in vidtv_channel_si_init()
424 if (!m->si.pat) in vidtv_channel_si_init()
463 vidtv_psi_pat_program_assign(m->si.pat, programs); in vidtv_channel_si_init()
471 m->si.pmt_secs = vidtv_psi_pmt_create_sec_for_each_pat_entry(m->si.pat, in vidtv_channel_si_init()
478 m->si.pat->num_pmt); in vidtv_channel_si_init()
499 vidtv_psi_pat_table_destroy(m->si.pat); in vidtv_channel_si_init()
507 for (i = 0; i < m->si.pat->num_pmt; ++i) in vidtv_channel_si_destroy()
510 vidtv_psi_pat_table_destroy(m->si.pat); in vidtv_channel_si_destroy()
A Dvidtv_psi.h459 void vidtv_psi_pat_program_assign(struct vidtv_psi_table_pat *pat,
484 vidtv_psi_pmt_create_sec_for_each_pat_entry(struct vidtv_psi_table_pat *pat, u16 pcr_pid);
494 struct vidtv_psi_table_pat *pat);
505 void vidtv_psi_pat_table_update_sec_len(struct vidtv_psi_table_pat *pat);
541 struct vidtv_psi_table_pat *pat; member
A Dvidtv_mux.c78 struct vidtv_psi_table_pat_program *p = m->si.pat->program; in vidtv_mux_pid_ctx_init()
135 .pat = m->si.pat, in vidtv_mux_push_si()
178 for (i = 0; i < m->si.pat->num_pmt; ++i) { in vidtv_mux_push_si()
180 m->si.pat); in vidtv_mux_push_si()
/linux/sound/core/
A Dpcm_misc.c428 const unsigned char *pat; in snd_pcm_format_set_silence() local
435 pat = pcm_formats[(INT)format].silence; in snd_pcm_format_set_silence()
441 memset(data, *pat, bytes); in snd_pcm_format_set_silence()
449 memcpy(dst, pat, width); in snd_pcm_format_set_silence()
457 memcpy(dst, pat, 2); in snd_pcm_format_set_silence()
463 memcpy(dst, pat, 3); in snd_pcm_format_set_silence()
469 memcpy(dst, pat, 4); in snd_pcm_format_set_silence()
475 memcpy(dst, pat, 8); in snd_pcm_format_set_silence()
/linux/drivers/mtd/nand/raw/
A Dcafe_nand.c385 unsigned short syn[8], pat[4]; in cafe_nand_read_page() local
398 pat); in cafe_nand_read_page()
410 if (pat[i] > 0xff) in cafe_nand_read_page()
413 buf[0] ^= pat[i]; in cafe_nand_read_page()
415 buf[2047] ^= pat[i] >> 4; in cafe_nand_read_page()
416 oob[0] ^= pat[i] << 4; in cafe_nand_read_page()
423 oob[3*p/2 - 2048] ^= pat[i]; in cafe_nand_read_page()
426 buf[3*p/2] ^= pat[i] >> 4; in cafe_nand_read_page()
427 buf[3*p/2 + 1] ^= pat[i] << 4; in cafe_nand_read_page()
429 buf[3*p/2 - 1] ^= pat[i] >> 8; in cafe_nand_read_page()
[all …]
/linux/drivers/media/common/v4l2-tpg/
A Dv4l2-tpg-core.c114 unsigned pat; in tpg_alloc() local
118 for (pat = 0; pat < TPG_MAX_PAT_LINES; pat++) { in tpg_alloc()
122 tpg->lines[pat][plane] = in tpg_alloc()
124 if (!tpg->lines[pat][plane]) in tpg_alloc()
156 unsigned pat; in tpg_free() local
159 for (pat = 0; pat < TPG_MAX_PAT_LINES; pat++) in tpg_free()
161 vfree(tpg->lines[pat][plane]); in tpg_free()
162 tpg->lines[pat][plane] = NULL; in tpg_free()
1756 unsigned pat; in tpg_precalculate_line() local
1772 for (pat = 0; pat < tpg_get_pat_lines(tpg); pat++) { in tpg_precalculate_line()
[all …]
/linux/Documentation/sphinx/
A Dmaintainers_include.py80 pat = '(Documentation/([^\s\?\*]*)\.rst)'
81 m = re.search(pat, line)
84 line = re.sub(pat, ':doc:`%s <../%s>`' % (m.group(2), m.group(2)), line)
/linux/drivers/video/fbdev/
A Dwmt_ge_rops.c44 unsigned long fg, pat; in wmt_ge_fillrect() local
55 pat = pixel_to_pat(p->var.bits_per_pixel, fg); in wmt_ge_fillrect()
71 writel(pat, regbase + GE_PAT0C_OFF); in wmt_ge_fillrect()
/linux/tools/testing/selftests/bpf/
A Dtest_progs.c22 static bool glob_match(const char *str, const char *pat) in glob_match() argument
24 while (*str && *pat && *pat != '*') { in glob_match()
25 if (*str != *pat) in glob_match()
28 pat++; in glob_match()
31 if (*pat == '*') { in glob_match()
32 while (*pat == '*') in glob_match()
33 pat++; in glob_match()
34 if (!*pat) /* Tail wild card matches all */ in glob_match()
37 if (glob_match(str++, pat)) in glob_match()
40 return !*str && !*pat; in glob_match()
/linux/drivers/gpu/drm/omapdrm/
A Domap_dmm_priv.h104 struct pat { struct
135 struct pat *last_pat;
A Domap_dmm_tiler.c356 struct pat *pat; in dmm_txn_append() local
362 pat = alloc_dma(txn, sizeof(*pat), &pat_pa); in dmm_txn_append()
367 pat->area = *area; in dmm_txn_append()
370 pat->area.y0 += engine->tcm->y_offset; in dmm_txn_append()
371 pat->area.y1 += engine->tcm->y_offset; in dmm_txn_append()
373 pat->ctrl = (struct pat_ctrl){ in dmm_txn_append()
380 pat->data_pa = data_pa; in dmm_txn_append()
390 txn->last_pat = pat; in dmm_txn_append()

Completed in 46 milliseconds

123