| /kernel/linux/linux-5.10/arch/x86/events/zhaoxin/ |
| D | core.c | 35 FIXED_EVENT_CONSTRAINT(0x0082, 1), /* unhalted core clock cycles */ 42 FIXED_EVENT_CONSTRAINT(0x0082, 1), /* unhalted core clock cycles */ 51 [C(L1D)] = { 52 [C(OP_READ)] = { 53 [C(RESULT_ACCESS)] = 0x0042, 54 [C(RESULT_MISS)] = 0x0538, 56 [C(OP_WRITE)] = { 57 [C(RESULT_ACCESS)] = 0x0043, 58 [C(RESULT_MISS)] = 0x0562, 60 [C(OP_PREFETCH)] = { [all …]
|
| /kernel/linux/linux-4.19/arch/sh/kernel/cpu/sh4a/ |
| D | perf_event.c | 4 * Copyright (C) 2009, 2010 Paul Mundt 21 #define CCBR_DUC (1 << 3) 22 #define CCBR_CMDS (1 << 1) 23 #define CCBR_PPCE (1 << 0) 45 #define PMCAT_OVF3 (1 << 27) 46 #define PMCAT_CNN3 (1 << 26) 47 #define PMCAT_CLR3 (1 << 25) 48 #define PMCAT_OVF2 (1 << 19) 49 #define PMCAT_CLR2 (1 << 17) 50 #define PMCAT_OVF1 (1 << 11) [all …]
|
| /kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh4a/ |
| D | perf_event.c | 5 * Copyright (C) 2009, 2010 Paul Mundt 18 #define CCBR_DUC (1 << 3) 19 #define CCBR_CMDS (1 << 1) 20 #define CCBR_PPCE (1 << 0) 42 #define PMCAT_OVF3 (1 << 27) 43 #define PMCAT_CNN3 (1 << 26) 44 #define PMCAT_CLR3 (1 << 25) 45 #define PMCAT_OVF2 (1 << 19) 46 #define PMCAT_CLR2 (1 << 17) 47 #define PMCAT_OVF1 (1 << 11) [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/perf/ |
| D | generic-compat-pmu.c | 28 * MMCR1[25] = pmc1combine[1] 30 * MMCR1[27] = pmc2combine[1] 32 * MMCR1[29] = pmc3combine[1] 34 * MMCR1[31] = pmc4combine[1] 97 #define C(x) PERF_COUNT_HW_CACHE_##x macro 101 * 0 means not supported, -1 means nonsensical, other values 104 static u64 generic_compat_cache_events[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = { 105 [ C(L1D) ] = { 106 [ C(OP_READ) ] = { 107 [ C(RESULT_ACCESS) ] = 0, [all …]
|
| D | power8-pmu.c | 43 * [ ] [ sample ] [cache] [ pmc ] [unit ] c m [ pmcxsel ] 74 * MMCRC[53:55] = cache_sel[1:3] (L2EVENT_SEL) 77 * MMCRC[47:49] = cache_sel[1:3] (L3EVENT_SEL0) 78 * else if cache_sel[0] == 1: 80 * else if cache_sel[1]: # L1 event 85 * MMCRA[63] = 1 (SAMPLE_ENABLE) 224 return -1; in power8_bhrb_filter_map() 227 return -1; in power8_bhrb_filter_map() 230 return -1; in power8_bhrb_filter_map() 238 return -1; in power8_bhrb_filter_map() [all …]
|
| D | power10-pmu.c | 39 * MMCR1[25] = pmc1combine[1] 41 * MMCR1[27] = pmc2combine[1] 43 * MMCR1[29] = pmc3combine[1] 45 * MMCR1[31] = pmc4combine[1] 61 * MMCR1[17] = cache_sel[1] 65 * MMCRA[63] = 1 (SAMPLE_ENABLE) 72 * MMCRA[SDAR_MODE] = sdar_mode[0:1] 240 return -1; in power10_bhrb_filter_map() 253 return -1; in power10_bhrb_filter_map() 261 return -1; in power10_bhrb_filter_map() [all …]
|
| D | e6500-pmu.c | 6 * Based on e500-pmu.c 21 [PERF_COUNT_HW_CPU_CYCLES] = 1, 28 #define C(x) PERF_COUNT_HW_CACHE_##x macro 32 * 0 means not supported, -1 means nonsensical, other values 35 static int e6500_cache_events[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = { 36 [C(L1D)] = { 38 [C(OP_READ)] = { 27, 222 }, 39 [C(OP_WRITE)] = { 28, 223 }, 40 [C(OP_PREFETCH)] = { 29, 0 }, 42 [C(L1I)] = { [all …]
|
| /kernel/linux/linux-5.10/arch/x86/kernel/cpu/ |
| D | centaur.c | 14 #define ACE_PRESENT (1 << 6) 15 #define ACE_ENABLED (1 << 7) 16 #define ACE_FCR (1 << 28) /* MSR_VIA_FCR */ 18 #define RNG_PRESENT (1 << 2) 19 #define RNG_ENABLED (1 << 3) 20 #define RNG_ENABLE (1 << 6) /* MSR_VIA_RNG */ 22 static void init_c3(struct cpuinfo_x86 *c) in init_c3() argument 49 c->x86_capability[CPUID_C000_0001_EDX] = cpuid_edx(0xC0000001); in init_c3() 53 if (c->x86_model >= 6 && c->x86_model <= 13) { in init_c3() 55 lo |= (1<<1 | 1<<7); in init_c3() [all …]
|
| /kernel/linux/linux-4.19/arch/x86/kernel/cpu/ |
| D | centaur.c | 13 #define ACE_PRESENT (1 << 6) 14 #define ACE_ENABLED (1 << 7) 15 #define ACE_FCR (1 << 28) /* MSR_VIA_FCR */ 17 #define RNG_PRESENT (1 << 2) 18 #define RNG_ENABLED (1 << 3) 19 #define RNG_ENABLE (1 << 6) /* MSR_VIA_RNG */ 28 static void init_c3(struct cpuinfo_x86 *c) in init_c3() argument 55 c->x86_capability[CPUID_C000_0001_EDX] = cpuid_edx(0xC0000001); in init_c3() 59 if (c->x86_model >= 6 && c->x86_model <= 13) { in init_c3() 61 lo |= (1<<1 | 1<<7); in init_c3() [all …]
|
| /kernel/linux/linux-4.19/arch/powerpc/perf/ |
| D | power8-pmu.c | 47 * [ ] [ sample ] [cache] [ pmc ] [unit ] c m [ pmcxsel ] 78 * MMCRC[53:55] = cache_sel[1:3] (L2EVENT_SEL) 81 * MMCRC[47:49] = cache_sel[1:3] (L3EVENT_SEL0) 82 * else if cache_sel[0] == 1: 84 * else if cache_sel[1]: # L1 event 89 * MMCRA[63] = 1 (SAMPLE_ENABLE) 228 return -1; in power8_bhrb_filter_map() 231 return -1; in power8_bhrb_filter_map() 234 return -1; in power8_bhrb_filter_map() 242 return -1; in power8_bhrb_filter_map() [all …]
|
| D | e6500-pmu.c | 5 * Based on e500-pmu.c 25 [PERF_COUNT_HW_CPU_CYCLES] = 1, 32 #define C(x) PERF_COUNT_HW_CACHE_##x macro 36 * 0 means not supported, -1 means nonsensical, other values 39 static int e6500_cache_events[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = { 40 [C(L1D)] = { 42 [C(OP_READ)] = { 27, 222 }, 43 [C(OP_WRITE)] = { 28, 223 }, 44 [C(OP_PREFETCH)] = { 29, 0 }, 46 [C(L1I)] = { [all …]
|
| D | power9-pmu.c | 44 * MMCR1[25] = pmc1combine[1] 46 * MMCR1[27] = pmc2combine[1] 48 * MMCR1[29] = pmc3combine[1] 50 * MMCR1[31] = pmc4combine[1] 67 * MMCRC[53:55] = cache_sel[1:3] (L2EVENT_SEL) 70 * MMCRC[47:49] = cache_sel[1:3] (L3EVENT_SEL0) 71 * else if cache_sel[0] == 1: 73 * else if cache_sel[1]: # L1 event 78 * MMCRA[63] = 1 (SAMPLE_ENABLE) 293 return -1; in power9_bhrb_filter_map() [all …]
|
| /kernel/linux/linux-4.19/arch/x86/events/intel/ |
| D | core.c | 53 FIXED_EVENT_CONSTRAINT(0x003c, 1), /* CPU_CLK_UNHALTED.CORE */ 71 FIXED_EVENT_CONSTRAINT(0x003c, 1), /* CPU_CLK_UNHALTED.CORE */ 95 FIXED_EVENT_CONSTRAINT(0x003c, 1), /* CPU_CLK_UNHALTED.CORE */ 107 FIXED_EVENT_CONSTRAINT(0x003c, 1), /* CPU_CLK_UNHALTED.CORE */ 134 FIXED_EVENT_CONSTRAINT(0x003c, 1), /* CPU_CLK_UNHALTED.CORE */ 176 FIXED_EVENT_CONSTRAINT(0x003c, 1), /* CPU_CLK_UNHALTED.CORE */ 184 FIXED_EVENT_CONSTRAINT(0x003c, 1), /* CPU_CLK_UNHALTED.CORE */ 191 FIXED_EVENT_CONSTRAINT(0x003c, 1), /* CPU_CLK_UNHALTED.CORE */ 266 "event=0x3c,umask=0x0,any=1"); /* cpu_clk_unhalted.thread_any */ 275 "event=0xd,umask=0x3,cmask=1", /* int_misc.recovery_cycles */ [all …]
|
| /kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh4/ |
| D | perf_event.c | 5 * Copyright (C) 2009 Paul Mundt 80 [PERF_COUNT_HW_BRANCH_MISSES] = -1, 81 [PERF_COUNT_HW_BUS_CYCLES] = -1, 84 #define C(x) PERF_COUNT_HW_CACHE_##x macro 91 [ C(L1D) ] = { 92 [ C(OP_READ) ] = { 93 [ C(RESULT_ACCESS) ] = 0x0001, 94 [ C(RESULT_MISS) ] = 0x0004, 96 [ C(OP_WRITE) ] = { 97 [ C(RESULT_ACCESS) ] = 0x0002, [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
| D | devlink_trap_control.sh | 12 # | | 2001:db8:1::1/64 | 15 # | | default via 2001:db8:1::2 | 22 # | 2001:db8:1::2/64 | 34 # | | 2001:db8:2::1/64 | 93 simple_if_init $h1 192.0.2.1/24 2001:db8:1::1/64 96 ip -6 route add default vrf v$h1 nexthop via 2001:db8:1::2 101 ip -6 route del default vrf v$h1 nexthop via 2001:db8:1::2 104 simple_if_fini $h1 192.0.2.1/24 2001:db8:1::1/64 109 simple_if_init $h2 198.51.100.1/24 2001:db8:2::1/64 120 simple_if_fini $h2 198.51.100.1/24 2001:db8:2::1/64 [all …]
|
| /kernel/linux/linux-5.10/drivers/media/firewire/ |
| D | firedtv-avc.c | 5 * Copyright (C) 2004 Andreas Monitzer <andy@monitzer.com> 6 * Copyright (C) 2008 Ben Backx <ben@bbackx.com> 7 * Copyright (C) 2008 Henrik Kurelid <henrik@kurelid.se> 88 #define LAST_OPERAND (509 - 1) 90 static inline void clear_operands(struct avc_command_frame *c, int from, int to) in clear_operands() argument 92 memset(&c->operand[from], 0, to - from + 1); in clear_operands() 95 static void pad_operands(struct avc_command_frame *c, int from) in pad_operands() argument 100 clear_operands(c, from, to); in pad_operands() 129 ", or a combination, or all = -1)"); 138 static int fake_ca_system_ids[4] = { -1, -1, -1, -1 }; [all …]
|
| /kernel/linux/linux-4.19/drivers/media/firewire/ |
| D | firedtv-avc.c | 4 * Copyright (C) 2004 Andreas Monitzer <andy@monitzer.com> 5 * Copyright (C) 2008 Ben Backx <ben@bbackx.com> 6 * Copyright (C) 2008 Henrik Kurelid <henrik@kurelid.se> 92 #define LAST_OPERAND (509 - 1) 94 static inline void clear_operands(struct avc_command_frame *c, int from, int to) in clear_operands() argument 96 memset(&c->operand[from], 0, to - from + 1); in clear_operands() 99 static void pad_operands(struct avc_command_frame *c, int from) in pad_operands() argument 104 clear_operands(c, from, to); in pad_operands() 133 ", or a combination, or all = -1)"); 142 static int fake_ca_system_ids[4] = { -1, -1, -1, -1 }; [all …]
|
| /kernel/linux/linux-4.19/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/ |
| D | tc_flower.sh | 4 # This test is for checking the A-TCAM and C-TCAM operation in Spectrum-2. 48 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 51 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 54 tc_check_packets "dev $h2 ingress" 101 1 60 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 66 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 198.51.100.1 -B 198.51.100.2 \ 69 tc_check_packets "dev $h2 ingress" 102 1 72 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 74 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 198.51.100.1 -B 198.51.100.2 \ 88 # one needs to be inserted into the C-TCAM. This test verifies [all …]
|
| /kernel/linux/linux-5.10/fs/jffs2/ |
| D | nodemgmt.c | 24 static int jffs2_rp_can_write(struct jffs2_sb_info *c) in jffs2_rp_can_write() argument 27 struct jffs2_mount_opts *opts = &c->mount_opts; in jffs2_rp_can_write() 29 avail = c->dirty_size + c->free_size + c->unchecked_size + in jffs2_rp_can_write() 30 c->erasing_size - c->resv_blocks_write * c->sector_size in jffs2_rp_can_write() 31 - c->nospc_dirty_size; in jffs2_rp_can_write() 34 jffs2_dbg(1, "rpsize %u, dirty_size %u, free_size %u, " in jffs2_rp_can_write() 37 opts->rp_size, c->dirty_size, c->free_size, in jffs2_rp_can_write() 38 c->erasing_size, c->unchecked_size, in jffs2_rp_can_write() 39 c->nr_erasing_blocks, avail, c->nospc_dirty_size); in jffs2_rp_can_write() 42 return 1; in jffs2_rp_can_write() [all …]
|
| /kernel/linux/linux-4.19/fs/jffs2/ |
| D | nodemgmt.c | 24 static int jffs2_rp_can_write(struct jffs2_sb_info *c) in jffs2_rp_can_write() argument 27 struct jffs2_mount_opts *opts = &c->mount_opts; in jffs2_rp_can_write() 29 avail = c->dirty_size + c->free_size + c->unchecked_size + in jffs2_rp_can_write() 30 c->erasing_size - c->resv_blocks_write * c->sector_size in jffs2_rp_can_write() 31 - c->nospc_dirty_size; in jffs2_rp_can_write() 34 jffs2_dbg(1, "rpsize %u, dirty_size %u, free_size %u, " in jffs2_rp_can_write() 37 opts->rp_size, c->dirty_size, c->free_size, in jffs2_rp_can_write() 38 c->erasing_size, c->unchecked_size, in jffs2_rp_can_write() 39 c->nr_erasing_blocks, avail, c->nospc_dirty_size); in jffs2_rp_can_write() 42 return 1; in jffs2_rp_can_write() [all …]
|
| /kernel/linux/linux-4.19/arch/sh/kernel/cpu/sh4/ |
| D | perf_event.c | 4 * Copyright (C) 2009 Paul Mundt 83 [PERF_COUNT_HW_BRANCH_MISSES] = -1, 84 [PERF_COUNT_HW_BUS_CYCLES] = -1, 87 #define C(x) PERF_COUNT_HW_CACHE_##x macro 94 [ C(L1D) ] = { 95 [ C(OP_READ) ] = { 96 [ C(RESULT_ACCESS) ] = 0x0001, 97 [ C(RESULT_MISS) ] = 0x0004, 99 [ C(OP_WRITE) ] = { 100 [ C(RESULT_ACCESS) ] = 0x0002, [all …]
|
| /kernel/linux/linux-5.10/fs/ubifs/ |
| D | lpt_commit.c | 5 * Copyright (C) 2006-2008 Nokia Corporation. 21 static int dbg_populate_lsave(struct ubifs_info *c); 25 * @c: UBIFS file-system description object 30 static struct ubifs_cnode *first_dirty_cnode(const struct ubifs_info *c, struct ubifs_nnode *nnode) in first_dirty_cnode() argument 32 ubifs_assert(c, nnode); in first_dirty_cnode() 33 while (1) { in first_dirty_cnode() 45 cont = 1; in first_dirty_cnode() 56 * @c: UBIFS file-system description object 61 static struct ubifs_cnode *next_dirty_cnode(const struct ubifs_info *c, struct ubifs_cnode *cnode) in next_dirty_cnode() argument 66 ubifs_assert(c, cnode); in next_dirty_cnode() [all …]
|
| D | key.h | 5 * Copyright (C) 2006-2008 Nokia Corporation. 26 * Lot's of the key helpers require a struct ubifs_info *c as the first parameter. 28 * different c->key_format. But right now, there is only one key type, UBIFS_SIMPLE_KEY_FMT. 38 * We use hash values as offset in directories, so values %0 and %1 are 86 * @c: UBIFS file-system description object 90 static inline void ino_key_init(const struct ubifs_info *c, in ino_key_init() argument 94 key->u32[1] = UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS; in ino_key_init() 99 * @c: UBIFS file-system description object 103 static inline void ino_key_init_flash(const struct ubifs_info *c, void *k, in ino_key_init_flash() argument 109 key->j32[1] = cpu_to_le32(UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS); in ino_key_init_flash() [all …]
|
| /kernel/linux/linux-5.10/arch/x86/events/intel/ |
| D | core.c | 56 FIXED_EVENT_CONSTRAINT(0x003c, 1), /* CPU_CLK_UNHALTED.CORE */ 74 FIXED_EVENT_CONSTRAINT(0x003c, 1), /* CPU_CLK_UNHALTED.CORE */ 98 FIXED_EVENT_CONSTRAINT(0x003c, 1), /* CPU_CLK_UNHALTED.CORE */ 110 FIXED_EVENT_CONSTRAINT(0x003c, 1), /* CPU_CLK_UNHALTED.CORE */ 137 FIXED_EVENT_CONSTRAINT(0x003c, 1), /* CPU_CLK_UNHALTED.CORE */ 179 FIXED_EVENT_CONSTRAINT(0x003c, 1), /* CPU_CLK_UNHALTED.CORE */ 187 FIXED_EVENT_CONSTRAINT(0x003c, 1), /* CPU_CLK_UNHALTED.CORE */ 194 FIXED_EVENT_CONSTRAINT(0x003c, 1), /* CPU_CLK_UNHALTED.CORE */ 247 FIXED_EVENT_CONSTRAINT(0x003c, 1), /* CPU_CLK_UNHALTED.CORE */ 251 METRIC_EVENT_CONSTRAINT(INTEL_TD_METRIC_BAD_SPEC, 1), [all …]
|
| /kernel/linux/linux-4.19/fs/ubifs/ |
| D | key.h | 4 * Copyright (C) 2006-2008 Nokia Corporation. 38 * Lot's of the key helpers require a struct ubifs_info *c as the first parameter. 40 * different c->key_format. But right now, there is only one key type, UBIFS_SIMPLE_KEY_FMT. 50 * We use hash values as offset in directories, so values %0 and %1 are 98 * @c: UBIFS file-system description object 102 static inline void ino_key_init(const struct ubifs_info *c, in ino_key_init() argument 106 key->u32[1] = UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS; in ino_key_init() 111 * @c: UBIFS file-system description object 115 static inline void ino_key_init_flash(const struct ubifs_info *c, void *k, in ino_key_init_flash() argument 121 key->j32[1] = cpu_to_le32(UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS); in ino_key_init_flash() [all …]
|