/openbmc/linux/drivers/perf/amlogic/ |
H A D | meson_g12_ddr_pmu.c | 44 PMU_FORMAT_ATTR(arm, "config1:0"); 45 PMU_FORMAT_ATTR(gpu, "config1:1"); 46 PMU_FORMAT_ATTR(pcie, "config1:2"); 47 PMU_FORMAT_ATTR(hdcp, "config1:3"); 48 PMU_FORMAT_ATTR(hevc_front, "config1:4"); 49 PMU_FORMAT_ATTR(usb3_0, "config1:6"); 50 PMU_FORMAT_ATTR(device, "config1:7"); 51 PMU_FORMAT_ATTR(hevc_back, "config1:8"); 52 PMU_FORMAT_ATTR(h265enc, "config1:9"); 53 PMU_FORMAT_ATTR(vpu_read1, "config1:16"); [all …]
|
H A D | meson_ddr_pmu_core.c | 121 u64 config1 = event->attr.config1; in meson_ddr_perf_event_init() local 135 hweight64(config1) + hweight64(config2) > MAX_AXI_PORTS_OF_CHANNEL) in meson_ddr_perf_event_init() 153 u64 config1 = event->attr.config1; in meson_ddr_perf_event_add() local 158 (const unsigned long *)&config1, in meson_ddr_perf_event_add() 159 BITS_PER_TYPE(config1)) in meson_ddr_perf_event_add() 299 char value[20]; // config1:xxx, 20 is enough in meson_ddr_perf_format_attr_visible() 304 if (sscanf(value, "config1:%d", &id) == 1) in meson_ddr_perf_format_attr_visible()
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-event_source-devices-iommu | 7 perf_event_attr.config1 or perf_event_attr.config2 for 12 perf_event_attr.config, perf_event_attr.config1, 20 filter_requester_en = "config1:0" - Enable Requester ID filter 21 filter_domain_en = "config1:1" - Enable Domain ID filter 22 filter_pasid_en = "config1:2" - Enable PASID filter 23 filter_ats_en = "config1:3" - Enable Address Type filter 24 filter_page_table_en= "config1:4" - Enable Page Table Level filter 25 filter_requester_id = "config1:16-31" - Requester ID filter 26 filter_domain = "config1:32-47" - Domain ID filter
|
H A D | sysfs-bus-event_source-devices-dsa | 7 perf_event_attr.config1 for the IDXD DSA pmu. (See also 11 perf_event_attr.config or perf_event_attr.config1. 18 filter_wq = "config1:0-31" - workqueue filter 19 filter_tc = "config1:32-39" - traffic class filter 20 filter_pgsz = "config1:40-43" - page size filter 21 filter_sz = "config1:44-51" - transfer size filter 22 filter_eng = "config1:52-59" - engine filter
|
/openbmc/u-boot/drivers/mtd/nand/raw/ |
H A D | mxc_nand_spl.c | 89 int config1; in nfc_nand_init() 97 config1 = readnfc(&nfc->config1) | NFC_V1_V2_CONFIG1_ECC_EN | in nfc_nand_init() 105 config1 &= ~NFC_V2_CONFIG1_ECC_MODE_4; in nfc_nand_init() 107 config1 |= NFC_V2_CONFIG1_ECC_MODE_4; in nfc_nand_init() 108 writenfc(config1, &nfc->config1); in nfc_nand_init() 115 &nfc->config1); in nfc_nand_init() 166 int config1 = readnfc(&nfc->config1); in nfc_nand_data_output() local 167 config1 &= ~NFC_V3_CONFIG1_RBA_MASK; in nfc_nand_data_output() 168 writenfc(config1, &nfc->config1); in nfc_nand_data_output() 212 int config1 = readnfc(&nfc->config1); in nfc_nand_read_page() [all …]
|
H A D | mxc_nand.c | 199 uint32_t tmp = readnfc(&host->regs->config1); 202 writenfc(tmp, &host->regs->config1); 207 uint32_t config1 = readnfc(&host->regs->config1); local 209 config1 |= NFC_CONFIG1_SP_EN; 211 config1 &= ~NFC_CONFIG1_SP_EN; 212 writenfc(config1, &host->regs->config1); 233 uint32_t tmp = readnfc(&host->regs->config1); 236 writenfc(tmp, &host->regs->config1); 241 uint32_t config1 = readnfc(&host->regs->config1); local 243 config1 |= NFC_CONFIG1_SP_EN; [all …]
|
/openbmc/linux/drivers/phy/socionext/ |
H A D | phy-uniphier-usb2.c | 36 struct uniphier_u2phy_param config1; member 77 regmap_write(priv->regmap, priv->data->config1.offset, in uniphier_u2phy_init() 78 priv->data->config1.value); in uniphier_u2phy_init() 187 .config1 = { SG_USBPHY12PLL, 0x00010010 }, 191 .config1 = { SG_USBPHY12PLL, 0x00010010 }, 195 .config1 = { SG_USBPHY34PLL, 0x00010010 }, 199 .config1 = { SG_USBPHY34PLL, 0x00010010 }, 207 .config1 = { SG_USBPHY1CTRL2, 0x00000106 }, 211 .config1 = { SG_USBPHY2CTRL2, 0x00000106 }, 215 .config1 = { SG_USBPHY3CTRL2, 0x00000106 },
|
H A D | phy-uniphier-usb3hs.c | 82 u32 config1; member 255 u32 config0, config1; in uniphier_u3hsphy_init() local 275 || (!priv->data->config0 && !priv->data->config1)) in uniphier_u3hsphy_init() 279 config1 = priv->data->config1; in uniphier_u3hsphy_init() 286 writel(config1, priv->base + HSPHY_CFG1); in uniphier_u3hsphy_init() 418 .config1 = 0x00000106, 430 .config1 = 0x00000106,
|
/openbmc/linux/arch/powerpc/platforms/83xx/ |
H A D | suspend.c | 62 u32 config1; member 123 u32 reg_cfg1 = in_be32(&pmc_regs->config1); in mpc83xx_change_state() 133 out_be32(&pmc_regs->config1, reg_cfg1); in mpc83xx_change_state() 185 out_be32(&pmc_regs->config1, in mpc83xx_suspend_enter() 186 in_be32(&pmc_regs->config1) | PMCCR1_PME_EN); in mpc83xx_suspend_enter() 206 out_be32(&pmc_regs->config1, in mpc83xx_suspend_enter() 207 in_be32(&pmc_regs->config1) | PMCCR1_POWER_OFF); in mpc83xx_suspend_enter() 213 out_be32(&pmc_regs->config1, in mpc83xx_suspend_enter() 214 in_be32(&pmc_regs->config1) & ~PMCCR1_POWER_OFF); in mpc83xx_suspend_enter() 228 out_be32(&pmc_regs->config1, in mpc83xx_suspend_enter() [all …]
|
/openbmc/u-boot/board/qemu-mips/ |
H A D | qemu-mips.c | 27 u32 config1; in checkboard() local 42 config1 = read_c0_config1(); in checkboard() 43 if (config1 & 1) in checkboard() 55 config1 = read_c0_config1(); in checkboard() 56 if (config1 & 1) in checkboard()
|
/openbmc/u-boot/arch/mips/mach-mscc/include/mach/ |
H A D | tlb.h | 34 register u32 config1; in get_tlb_count() local 36 config1 = read_c0_config1(); in get_tlb_count() 37 config1 >>= TLB_COUNT_OFF; in get_tlb_count() 38 config1 &= TLB_COUNT_MASK; in get_tlb_count() 40 return 1 + config1; in get_tlb_count()
|
/openbmc/linux/tools/testing/selftests/powerpc/pmu/event_code_tests/ |
H A D | group_constraint_thresh_cmp_test.c | 43 /* Add the thresh_cmp value for leader in config1 */ in group_constraint_thresh_cmp() 44 leader.attr.config1 = 1000; in group_constraint_thresh_cmp() 49 /* Add the different thresh_cmp value from the leader event in config1 */ in group_constraint_thresh_cmp() 50 event.attr.config1 = 2000; in group_constraint_thresh_cmp() 60 /* Add the same thresh_cmp value for leader and sibling event in config1 */ in group_constraint_thresh_cmp() 61 event.attr.config1 = 1000; in group_constraint_thresh_cmp()
|
/openbmc/linux/drivers/staging/iio/addac/ |
H A D | adt7316.c | 89 * ADT7316 config1 184 u8 config1; member 228 return sprintf(buf, "%d\n", !!(chip->config1 & ADT7316_EN)); in adt7316_show_enabled() 234 u8 config1; in _adt7316_store_enabled() local 238 config1 = chip->config1 | ADT7316_EN; in _adt7316_store_enabled() 240 config1 = chip->config1 & ~ADT7316_EN; in _adt7316_store_enabled() 242 ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG1, config1); in _adt7316_store_enabled() 246 chip->config1 = config1; in _adt7316_store_enabled() 286 return sprintf(buf, "%d\n", !!(chip->config1 & ADT7516_SEL_EX_TEMP)); in adt7316_show_select_ex_temp() 296 u8 config1; in adt7316_store_select_ex_temp() local [all …]
|
/openbmc/linux/drivers/perf/hisilicon/ |
H A D | hisi_uncore_sllc_pmu.c | 45 HISI_PMU_EVENT_ATTR_EXTRACTOR(tgtid_min, config1, 10, 0); 46 HISI_PMU_EVENT_ATTR_EXTRACTOR(tgtid_max, config1, 21, 11); 47 HISI_PMU_EVENT_ATTR_EXTRACTOR(srcid_cmd, config1, 32, 22); 48 HISI_PMU_EVENT_ATTR_EXTRACTOR(srcid_msk, config1, 43, 33); 49 HISI_PMU_EVENT_ATTR_EXTRACTOR(tracetag_en, config1, 44, 44); 154 if (event->attr.config1 != 0x0) { in hisi_sllc_pmu_enable_filter() 163 if (event->attr.config1 != 0x0) { in hisi_sllc_pmu_clear_filter() 323 HISI_PMU_FORMAT_ATTR(tgtid_min, "config1:0-10"), 324 HISI_PMU_FORMAT_ATTR(tgtid_max, "config1:11-21"), 325 HISI_PMU_FORMAT_ATTR(srcid_cmd, "config1:22-32"), [all …]
|
H A D | hisi_uncore_pa_pmu.c | 49 HISI_PMU_EVENT_ATTR_EXTRACTOR(tgtid_cmd, config1, 10, 0); 50 HISI_PMU_EVENT_ATTR_EXTRACTOR(tgtid_msk, config1, 21, 11); 51 HISI_PMU_EVENT_ATTR_EXTRACTOR(srcid_cmd, config1, 32, 22); 52 HISI_PMU_EVENT_ATTR_EXTRACTOR(srcid_msk, config1, 43, 33); 53 HISI_PMU_EVENT_ATTR_EXTRACTOR(tracetag_en, config1, 44, 44); 135 if (event->attr.config1 != 0x0) { in hisi_pa_pmu_enable_filter() 144 if (event->attr.config1 != 0x0) { in hisi_pa_pmu_disable_filter() 308 HISI_PMU_FORMAT_ATTR(tgtid_cmd, "config1:0-10"), 309 HISI_PMU_FORMAT_ATTR(tgtid_msk, "config1:11-21"), 310 HISI_PMU_FORMAT_ATTR(srcid_cmd, "config1:22-32"), [all …]
|
H A D | hisi_uncore_hha_pmu.c | 54 HISI_PMU_EVENT_ATTR_EXTRACTOR(srcid_cmd, config1, 10, 0); 55 HISI_PMU_EVENT_ATTR_EXTRACTOR(srcid_msk, config1, 21, 11); 56 HISI_PMU_EVENT_ATTR_EXTRACTOR(tracetag_en, config1, 22, 22); 57 HISI_PMU_EVENT_ATTR_EXTRACTOR(datasrc_skt, config1, 23, 23); 143 if (event->attr.config1 != 0x0) { in hisi_hha_pmu_enable_filter() 152 if (event->attr.config1 != 0x0) { in hisi_hha_pmu_disable_filter() 349 HISI_PMU_FORMAT_ATTR(srcid_cmd, "config1:0-10"), 350 HISI_PMU_FORMAT_ATTR(srcid_msk, "config1:11-21"), 351 HISI_PMU_FORMAT_ATTR(tracetag_en, "config1:22"), 352 HISI_PMU_FORMAT_ATTR(datasrc_skt, "config1:23"),
|
H A D | hisi_uncore_l3c_pmu.c | 58 HISI_PMU_EVENT_ATTR_EXTRACTOR(tt_core, config1, 7, 0); 59 HISI_PMU_EVENT_ATTR_EXTRACTOR(tt_req, config1, 10, 8); 60 HISI_PMU_EVENT_ATTR_EXTRACTOR(datasrc_cfg, config1, 15, 11); 61 HISI_PMU_EVENT_ATTR_EXTRACTOR(datasrc_skt, config1, 16, 16); 209 if (event->attr.config1 != 0x0) { in hisi_l3c_pmu_enable_filter() 218 if (event->attr.config1 != 0x0) { in hisi_l3c_pmu_disable_filter() 397 HISI_PMU_FORMAT_ATTR(tt_core, "config1:0-7"), 398 HISI_PMU_FORMAT_ATTR(tt_req, "config1:8-10"), 399 HISI_PMU_FORMAT_ATTR(datasrc_cfg, "config1:11-15"), 400 HISI_PMU_FORMAT_ATTR(datasrc_skt, "config1:16"),
|
H A D | hisi_uncore_uc_pmu.c | 49 HISI_PMU_EVENT_ATTR_EXTRACTOR(rd_req_en, config1, 0, 0); 50 HISI_PMU_EVENT_ATTR_EXTRACTOR(uring_channel, config1, 5, 4); 51 HISI_PMU_EVENT_ATTR_EXTRACTOR(srcid, config1, 19, 6); 52 HISI_PMU_EVENT_ATTR_EXTRACTOR(srcid_en, config1, 20, 20); 211 if (event->attr.config1 == 0) in hisi_uc_pmu_enable_filter() 221 if (event->attr.config1 == 0) in hisi_uc_pmu_disable_filter() 405 HISI_PMU_FORMAT_ATTR(rd_req_en, "config1:0-0"), 406 HISI_PMU_FORMAT_ATTR(uring_channel, "config1:4-5"), 407 HISI_PMU_FORMAT_ATTR(srcid, "config1:6-19"), 408 HISI_PMU_FORMAT_ATTR(srcid_en, "config1:20-20"),
|
/openbmc/linux/drivers/hwmon/ |
H A D | lm90.c | 1835 static const char *lm90_detect_max1617(struct i2c_client *client, int config1) in lm90_detect_max1617() argument 1843 if (config1 & 0x3f) in lm90_detect_max1617() 1895 (config1 | 0xff00)) in lm90_detect_max1617() 1906 int config1, int convrate) in lm90_detect_national() argument 1915 if ((config1 & 0x2a) || (config2 & 0xf8) || convrate > 0x09) in lm90_detect_national() 1940 static const char *lm90_detect_on(struct i2c_client *client, int chip_id, int config1, in lm90_detect_on() argument 1948 if ((address == 0x4c || address == 0x4d) && !(config1 & 0x1b) && in lm90_detect_on() 1959 int chip_id, int config1, int convrate) in lm90_detect_analog() argument 2011 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8)) in lm90_detect_analog() 2017 (config1 & 0x0b) == 0x08 && convrate <= 0x0a) in lm90_detect_analog() [all …]
|
/openbmc/linux/arch/x86/events/intel/ |
H A D | uncore_nhmex.c | 197 DEFINE_UNCORE_FORMAT_ATTR(match, match, "config1:0-63"); 372 reg1->config = event->attr.config1; in nhmex_bbox_hw_config() 457 reg1->config = event->attr.config1; in nhmex_sbox_hw_config() 674 u64 config1 = reg1->config; in nhmex_mbox_get_constraint() local 687 __BITS_VALUE(config1, i, 32))) in nhmex_mbox_get_constraint() 726 config1 = nhmex_mbox_alter_er(event, idx[0], false); in nhmex_mbox_get_constraint() 776 * config1 to pass two MSRs' config. in nhmex_mbox_hw_config() 781 if (event->attr.config1 & ~er->valid_mask) in nhmex_mbox_hw_config() 798 reg1->config = event->attr.config1; in nhmex_mbox_hw_config() 874 DEFINE_UNCORE_FORMAT_ATTR(dsp, dsp, "config1:0-31"); [all …]
|
/openbmc/linux/Documentation/admin-guide/perf/ |
H A D | xgene-pmu.rst | 19 config1 (agent ID) fields of the perf_event_attr structure. The "events" 30 to a corresponding bit in "config1" field. By default, the event will be 31 counted for all agent requests (config1 = 0x0). For all the supported agents of 46 / # perf stat -a -e l3c0/read-miss,config1=0xfffffffffffffffe/ sleep 1
|
/openbmc/linux/drivers/iommu/intel/ |
H A D | perfmon.c | 96 IOMMU_PMU_ATTR(filter_requester_id_en, "config1:0", IOMMU_PMU_FILTER_REQUESTER_ID); 97 IOMMU_PMU_ATTR(filter_domain_en, "config1:1", IOMMU_PMU_FILTER_DOMAIN); 98 IOMMU_PMU_ATTR(filter_pasid_en, "config1:2", IOMMU_PMU_FILTER_PASID); 99 IOMMU_PMU_ATTR(filter_ats_en, "config1:3", IOMMU_PMU_FILTER_ATS); 100 IOMMU_PMU_ATTR(filter_page_table_en, "config1:4", IOMMU_PMU_FILTER_PAGE_TABLE); 101 IOMMU_PMU_ATTR(filter_requester_id, "config1:16-31", IOMMU_PMU_FILTER_REQUESTER_ID); 102 IOMMU_PMU_ATTR(filter_domain, "config1:32-47", IOMMU_PMU_FILTER_DOMAIN); 435 iommu_pmu_set_filter(requester_id, event->attr.config1, in iommu_pmu_assign_event() 437 event->attr.config1); in iommu_pmu_assign_event() 438 iommu_pmu_set_filter(domain, event->attr.config1, in iommu_pmu_assign_event() [all …]
|
/openbmc/linux/drivers/net/ethernet/seeq/ |
H A D | ether3.c | 119 ether3_outw(priv(dev)->regs.config1 | CFG1_LOCBUFMEM, REG_CONFIG1); in ether3_setbuffer() 273 priv(dev)->regs.config1 = CFG1_RECVCOMPSTAT0|CFG1_DMABURST8; in ether3_init_2() 280 ether3_outw(priv(dev)->regs.config1 | CFG1_BUFSELSTAT0, REG_CONFIG1); in ether3_init_2() 285 priv(dev)->regs.config1 |= CFG1_RECVPROMISC; in ether3_init_2() 287 priv(dev)->regs.config1 |= CFG1_RECVSPECBRMULTI; in ether3_init_2() 289 priv(dev)->regs.config1 |= CFG1_RECVSPECBROAD; in ether3_init_2() 296 ether3_outw(priv(dev)->regs.config1 | CFG1_TRANSEND, REG_CONFIG1); in ether3_init_2() 302 ether3_outw(priv(dev)->regs.config1 | CFG1_LOCBUFMEM, REG_CONFIG1); in ether3_init_2() 331 ether3_outw(priv(dev)->regs.config1 | CFG1_BUFSELSTAT0, REG_CONFIG1); in ether3_init_for_open() 340 ether3_outw(priv(dev)->regs.config1 | CFG1_TRANSEND, REG_CONFIG1); in ether3_init_for_open() [all …]
|
/openbmc/linux/arch/mips/mm/ |
H A D | c-octeon.c | 174 unsigned int config1; in probe_octeon() local 178 config1 = read_c0_config1(); in probe_octeon() 182 c->icache.linesz = 2 << ((config1 >> 19) & 7); in probe_octeon() 183 c->icache.sets = 64 << ((config1 >> 22) & 7); in probe_octeon() 184 c->icache.ways = 1 + ((config1 >> 16) & 7); in probe_octeon() 202 c->icache.linesz = 2 << ((config1 >> 19) & 7); in probe_octeon()
|
/openbmc/linux/tools/perf/tests/ |
H A D | pmu.c | 20 { "krava11", "config1:0,2,4,6,8,20-28\n", }, 21 { "krava12", "config1:63\n", }, 22 { "krava13", "config1:45-47\n", }, 185 if (attr.config1 != 0x8000400000000145) in test__pmu()
|