Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/drivers/video/fbdev/core/
Dsysfillrect.c26 unsigned long pat, unsigned n, int bits) in bitfill_aligned() argument
40 *dst = comp(pat, *dst, first); in bitfill_aligned()
46 *dst = comp(pat, *dst, first); in bitfill_aligned()
54 *dst++ = pat; in bitfill_aligned()
55 *dst++ = pat; in bitfill_aligned()
56 *dst++ = pat; in bitfill_aligned()
57 *dst++ = pat; in bitfill_aligned()
58 *dst++ = pat; in bitfill_aligned()
59 *dst++ = pat; in bitfill_aligned()
60 *dst++ = pat; in bitfill_aligned()
[all …]
Dcfbfillrect.c36 unsigned long pat, unsigned n, int bits, u32 bswapmask) in bitfill_aligned() argument
50 FB_WRITEL(comp(pat, FB_READL(dst), first), dst); in bitfill_aligned()
56 FB_WRITEL(comp(pat, FB_READL(dst), first), dst); in bitfill_aligned()
64 FB_WRITEL(pat, dst++); in bitfill_aligned()
65 FB_WRITEL(pat, dst++); in bitfill_aligned()
66 FB_WRITEL(pat, dst++); in bitfill_aligned()
67 FB_WRITEL(pat, dst++); in bitfill_aligned()
68 FB_WRITEL(pat, dst++); in bitfill_aligned()
69 FB_WRITEL(pat, dst++); in bitfill_aligned()
70 FB_WRITEL(pat, dst++); in bitfill_aligned()
[all …]
Dfbcon_rotate.h23 static inline int pattern_test_bit(u32 x, u32 y, u32 pitch, const char *pat) in pattern_test_bit() argument
27 pat +=index; in pattern_test_bit()
28 return (*pat) & (0x80 >> bit); in pattern_test_bit()
31 static inline void pattern_set_bit(u32 x, u32 y, u32 pitch, char *pat) in pattern_set_bit() argument
35 pat += index; in pattern_set_bit()
37 (*pat) |= 0x80 >> bit; in pattern_set_bit()
/kernel/linux/linux-5.10/tools/perf/util/
Dstring.c73 static bool __match_charclass(const char *pat, char c, const char **npat) in __match_charclass() argument
77 if (*pat == '!') { in __match_charclass()
79 pat++; in __match_charclass()
81 if (*pat++ == c) /* First character is special */ in __match_charclass()
84 while (*pat && *pat != ']') { /* Matching */ in __match_charclass()
85 if (*pat == '-' && *(pat + 1) != ']') { /* Range */ in __match_charclass()
86 if (*(pat - 1) <= c && c <= *(pat + 1)) in __match_charclass()
88 if (*(pat - 1) > *(pat + 1)) in __match_charclass()
90 pat += 2; in __match_charclass()
91 } else if (*pat++ == c) in __match_charclass()
[all …]
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 …]
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);
/kernel/linux/linux-5.10/lib/
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()
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()
/kernel/linux/linux-5.10/drivers/isdn/mISDN/
Ddsp_tones.c378 struct pattern *pat; in dsp_tone_copy() local
388 pat = (struct pattern *)tone->pattern; in dsp_tone_copy()
398 if (!pat->seq[index]) { in dsp_tone_copy()
403 if (count < pat->seq[index]) in dsp_tone_copy()
408 count -= pat->seq[index]; in dsp_tone_copy()
412 start = count % (*(pat->siz[index])); in dsp_tone_copy()
414 if (num + count > pat->seq[index]) in dsp_tone_copy()
415 num = pat->seq[index] - count; in dsp_tone_copy()
416 if (num + start > (*(pat->siz[index]))) in dsp_tone_copy()
417 num = (*(pat->siz[index])) - start; in dsp_tone_copy()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
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()
/kernel/linux/linux-5.10/arch/x86/mm/pat/
Dmemtype.c220 static void __init_cache_modes(u64 pat) in __init_cache_modes() argument
230 cache = pat_get_cache_mode((pat >> (i * 8)) & 7, in __init_cache_modes()
241 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()
262 static void pat_ap_init(u64 pat) in pat_ap_init() argument
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()
[all …]
/kernel/linux/linux-5.10/sound/core/
Dpcm_misc.c424 const unsigned char *pat; in snd_pcm_format_set_silence() local
431 pat = pcm_formats[(INT)format].silence; in snd_pcm_format_set_silence()
432 if (!width || !pat) in snd_pcm_format_set_silence()
437 memset(data, *pat, bytes); in snd_pcm_format_set_silence()
445 memcpy(dst, pat, width); in snd_pcm_format_set_silence()
453 memcpy(dst, pat, 2); in snd_pcm_format_set_silence()
459 memcpy(dst, pat, 3); in snd_pcm_format_set_silence()
465 memcpy(dst, pat, 4); in snd_pcm_format_set_silence()
471 memcpy(dst, pat, 8); in snd_pcm_format_set_silence()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dintel_gtt.c352 u64 pat; in bdw_setup_private_ppat() local
354 pat = GEN8_PPAT(0, GEN8_PPAT_WB | GEN8_PPAT_LLC) | /* for normal objects, no eLLC */ in bdw_setup_private_ppat()
363 intel_uncore_write(uncore, GEN8_PRIVATE_PAT_LO, lower_32_bits(pat)); in bdw_setup_private_ppat()
364 intel_uncore_write(uncore, GEN8_PRIVATE_PAT_HI, upper_32_bits(pat)); in bdw_setup_private_ppat()
369 u64 pat; in chv_setup_private_ppat() local
390 pat = GEN8_PPAT(0, CHV_PPAT_SNOOP) | in chv_setup_private_ppat()
399 intel_uncore_write(uncore, GEN8_PRIVATE_PAT_LO, lower_32_bits(pat)); in chv_setup_private_ppat()
400 intel_uncore_write(uncore, GEN8_PRIVATE_PAT_HI, upper_32_bits(pat)); in chv_setup_private_ppat()
/kernel/linux/linux-5.10/drivers/media/test-drivers/vidtv/
Dvidtv_psi.c776 vidtv_psi_pat_table_update_sec_len(struct vidtv_psi_table_pat *pat) in vidtv_psi_pat_table_update_sec_len() argument
787 for (i = 0; i < pat->num_pat; ++i) in vidtv_psi_pat_table_update_sec_len()
793 vidtv_psi_set_sec_len(&pat->header, length); in vidtv_psi_pat_table_update_sec_len()
906 vidtv_psi_pat_program_assign(struct vidtv_psi_table_pat *pat, in vidtv_psi_pat_program_assign() argument
916 if (p == pat->program) in vidtv_psi_pat_program_assign()
924 pat->num_pat = program_count; in vidtv_psi_pat_program_assign()
925 pat->program = p; in vidtv_psi_pat_program_assign()
928 vidtv_psi_pat_table_update_sec_len(pat); in vidtv_psi_pat_program_assign()
931 } while (vidtv_psi_get_sec_len(&pat->header) > MAX_SECTION_LEN); in vidtv_psi_pat_program_assign()
933 vidtv_psi_update_version_num(&pat->header); in vidtv_psi_pat_program_assign()
[all …]
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()
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
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()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
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()
419 oob[3*p/2 - 2048] ^= pat[i] >> 4; in cafe_nand_read_page()
420 oob[3*p/2 - 2047] ^= pat[i] << 4; in cafe_nand_read_page()
422 oob[3*p/2 - 2049] ^= pat[i] >> 8; in cafe_nand_read_page()
423 oob[3*p/2 - 2048] ^= pat[i]; in cafe_nand_read_page()
[all …]
/kernel/linux/linux-5.10/Documentation/sphinx/
Dmaintainers_include.py82 pat = '(Documentation/([^\s\?\*]*)\.rst)'
83 m = re.search(pat, line)
86 line = re.sub(pat, ':doc:`%s <../%s>`' % (m.group(2), m.group(2)), line)
/kernel/linux/linux-5.10/drivers/media/common/v4l2-tpg/
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()
128 tpg->downsampled_lines[pat][plane] = in tpg_alloc()
130 if (!tpg->downsampled_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()
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/
Dwmt_ge_rops.c43 unsigned long fg, pat; in wmt_ge_fillrect() local
54 pat = pixel_to_pat(p->var.bits_per_pixel, fg); in wmt_ge_fillrect()
70 writel(pat, regbase + GE_PAT0C_OFF); in wmt_ge_fillrect()
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/
Domap_dmm_priv.h104 struct pat { struct
135 struct pat *last_pat;
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()
/kernel/linux/linux-5.10/include/linux/
Dglob.h8 bool __pure glob_match(char const *pat, char const *str);

123