/kernel/linux/linux-5.10/arch/mips/mm/ |
H A D | sc-mips.c | 122 unsigned int config2 = read_c0_config2(); in mips_sc_is_activated() local 137 if (config2 & (1 << 12)) in mips_sc_is_activated() 141 tmp = (config2 >> 4) & 0x0f; in mips_sc_is_activated() 186 unsigned int config1, config2; in mips_sc_probe() local 202 /* Does this MIPS32/MIPS64 CPU have a config2 register? */ in mips_sc_probe() 207 config2 = read_c0_config2(); in mips_sc_probe() 212 tmp = (config2 >> 8) & 0x0f; in mips_sc_probe() 218 tmp = (config2 >> 0) & 0x0f; in mips_sc_probe() 227 * According to config2 it would be 5-ways, but that is in mips_sc_probe() 236 * According to config2 i in mips_sc_probe() [all...] |
H A D | c-r4k.c | 1512 unsigned int config2, lsize; in probe_vcache() local 1517 config2 = read_c0_config2(); in probe_vcache() 1518 if ((lsize = ((config2 >> 20) & 15))) in probe_vcache() 1523 c->vcache.sets = 64 << ((config2 >> 24) & 15); in probe_vcache() 1524 c->vcache.ways = 1 + ((config2 >> 16) & 15); in probe_vcache() 1615 unsigned int config2, lsize; in loongson3_sc_init() local 1617 config2 = read_c0_config2(); in loongson3_sc_init() 1618 lsize = (config2 >> 4) & 15; in loongson3_sc_init() 1623 c->scache.sets = 64 << ((config2 >> 8) & 15); in loongson3_sc_init() 1624 c->scache.ways = 1 + (config2 in loongson3_sc_init() [all...] |
/kernel/linux/linux-6.6/arch/mips/mm/ |
H A D | sc-mips.c | 122 unsigned int config2 = read_c0_config2(); in mips_sc_is_activated() local 137 if (config2 & (1 << 12)) in mips_sc_is_activated() 141 tmp = (config2 >> 4) & 0x0f; in mips_sc_is_activated() 186 unsigned int config1, config2; in mips_sc_probe() local 202 /* Does this MIPS32/MIPS64 CPU have a config2 register? */ in mips_sc_probe() 207 config2 = read_c0_config2(); in mips_sc_probe() 212 tmp = (config2 >> 8) & 0x0f; in mips_sc_probe() 218 tmp = (config2 >> 0) & 0x0f; in mips_sc_probe() 227 * According to config2 it would be 5-ways, but that is in mips_sc_probe() 236 * According to config2 i in mips_sc_probe() [all...] |
H A D | c-r4k.c | 1357 unsigned int config2, lsize; in probe_vcache() local 1362 config2 = read_c0_config2(); in probe_vcache() 1363 if ((lsize = ((config2 >> 20) & 15))) in probe_vcache() 1368 c->vcache.sets = 64 << ((config2 >> 24) & 15); in probe_vcache() 1369 c->vcache.ways = 1 + ((config2 >> 16) & 15); in probe_vcache() 1460 unsigned int config2, lsize; in loongson3_sc_init() local 1462 config2 = read_c0_config2(); in loongson3_sc_init() 1463 lsize = (config2 >> 4) & 15; in loongson3_sc_init() 1468 c->scache.sets = 64 << ((config2 >> 8) & 15); in loongson3_sc_init() 1469 c->scache.ways = 1 + (config2 in loongson3_sc_init() [all...] |
/kernel/linux/linux-5.10/drivers/staging/iio/addac/ |
H A D | adt7316.c | 100 * ADT7316 config2 185 u8 config2; member 327 if (chip->config2 & ADT7316_AD_SINGLE_CH_MODE) in adt7316_show_mode() 340 u8 config2; in adt7316_store_mode() local 343 config2 = chip->config2 & (~ADT7316_AD_SINGLE_CH_MODE); in adt7316_store_mode() 345 config2 |= ADT7316_AD_SINGLE_CH_MODE; in adt7316_store_mode() 347 ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG2, config2); in adt7316_store_mode() 351 chip->config2 = config2; in adt7316_store_mode() 415 u8 config2; adt7316_store_ad_channel() local 493 u8 config2; adt7316_store_disable_averaging() local 532 u8 config2; adt7316_store_enable_smbus_timeout() local [all...] |
/kernel/linux/linux-6.6/drivers/staging/iio/addac/ |
H A D | adt7316.c | 100 * ADT7316 config2 185 u8 config2; member 327 if (chip->config2 & ADT7316_AD_SINGLE_CH_MODE) in adt7316_show_mode() 340 u8 config2; in adt7316_store_mode() local 343 config2 = chip->config2 & (~ADT7316_AD_SINGLE_CH_MODE); in adt7316_store_mode() 345 config2 |= ADT7316_AD_SINGLE_CH_MODE; in adt7316_store_mode() 347 ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG2, config2); in adt7316_store_mode() 351 chip->config2 = config2; in adt7316_store_mode() 415 u8 config2; adt7316_store_ad_channel() local 493 u8 config2; adt7316_store_disable_averaging() local 532 u8 config2; adt7316_store_enable_smbus_timeout() local [all...] |
/kernel/linux/linux-6.6/drivers/perf/amlogic/ |
H A D | meson_ddr_pmu_core.c | 122 u64 config2 = event->attr.config2; in meson_ddr_perf_event_init() local 135 hweight64(config1) + hweight64(config2) > MAX_AXI_PORTS_OF_CHANNEL) in meson_ddr_perf_event_init() 154 u64 config2 = event->attr.config2; in meson_ddr_perf_event_add() local 163 (const unsigned long *)&config2, in meson_ddr_perf_event_add() 164 BITS_PER_TYPE(config2)) in meson_ddr_perf_event_add() 307 if (sscanf(value, "config2:%d", &id) == 1) in meson_ddr_perf_format_attr_visible()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/seeq/ |
H A D | ether3.c | 176 ether3_outw(priv(dev)->regs.config2 |= CFG2_CTRLO, REG_CONFIG2); in ether3_ledoff() 187 if (priv(dev)->regs.config2 & CFG2_CTRLO) in ether3_ledon() 188 ether3_outw(priv(dev)->regs.config2 &= ~CFG2_CTRLO, REG_CONFIG2); in ether3_ledon() 274 priv(dev)->regs.config2 = CFG2_CTRLO|CFG2_RECVCRC|CFG2_ERRENCRC; in ether3_init_2() 301 ether3_outw(priv(dev)->regs.config2, REG_CONFIG2); in ether3_init_2() 337 priv(dev)->regs.config2 |= CFG2_CTRLO; in ether3_init_for_open() 345 ether3_outw(priv(dev)->regs.config2, REG_CONFIG2); in ether3_init_for_open() 471 priv(dev)->regs.config2 |= CFG2_CTRLO; in ether3_timeout() 473 ether3_outw(priv(dev)->regs.config2, REG_CONFIG2); in ether3_timeout()
|
H A D | ether3.h | 159 unsigned int config2; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/seeq/ |
H A D | ether3.c | 176 ether3_outw(priv(dev)->regs.config2 |= CFG2_CTRLO, REG_CONFIG2); in ether3_ledoff() 187 if (priv(dev)->regs.config2 & CFG2_CTRLO) in ether3_ledon() 188 ether3_outw(priv(dev)->regs.config2 &= ~CFG2_CTRLO, REG_CONFIG2); in ether3_ledon() 274 priv(dev)->regs.config2 = CFG2_CTRLO|CFG2_RECVCRC|CFG2_ERRENCRC; in ether3_init_2() 301 ether3_outw(priv(dev)->regs.config2, REG_CONFIG2); in ether3_init_2() 337 priv(dev)->regs.config2 |= CFG2_CTRLO; in ether3_init_for_open() 345 ether3_outw(priv(dev)->regs.config2, REG_CONFIG2); in ether3_init_for_open() 471 priv(dev)->regs.config2 |= CFG2_CTRLO; in ether3_timeout() 473 ether3_outw(priv(dev)->regs.config2, REG_CONFIG2); in ether3_timeout()
|
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
H A D | mxc_nand.c | 442 * complete by checking the INT bit of config2 register. 688 uint32_t config2; in mxc_nand_enable_hwecc_v3() local 693 config2 = readl(NFC_V3_CONFIG2); in mxc_nand_enable_hwecc_v3() 696 config2 |= NFC_V3_CONFIG2_ECC_EN; in mxc_nand_enable_hwecc_v3() 698 config2 &= ~NFC_V3_CONFIG2_ECC_EN; in mxc_nand_enable_hwecc_v3() 700 writel(config2, NFC_V3_CONFIG2); in mxc_nand_enable_hwecc_v3() 1270 uint32_t config2, config3; in preset_v3() local 1286 config2 = NFC_V3_CONFIG2_ONE_CYCLE | in preset_v3() 1296 config2 |= NFC_V3_CONFIG2_PS_2048; in preset_v3() 1297 config2 | in preset_v3() [all...] |
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/ |
H A D | mxc_nand.c | 439 * complete by checking the INT bit of config2 register. 685 uint32_t config2; in mxc_nand_enable_hwecc_v3() local 690 config2 = readl(NFC_V3_CONFIG2); in mxc_nand_enable_hwecc_v3() 693 config2 |= NFC_V3_CONFIG2_ECC_EN; in mxc_nand_enable_hwecc_v3() 695 config2 &= ~NFC_V3_CONFIG2_ECC_EN; in mxc_nand_enable_hwecc_v3() 697 writel(config2, NFC_V3_CONFIG2); in mxc_nand_enable_hwecc_v3() 1267 uint32_t config2, config3; in preset_v3() local 1283 config2 = NFC_V3_CONFIG2_ONE_CYCLE | in preset_v3() 1293 config2 |= NFC_V3_CONFIG2_PS_2048; in preset_v3() 1294 config2 | in preset_v3() [all...] |
/kernel/linux/linux-5.10/drivers/mmc/host/ |
H A D | au1xmmc.c | 197 u32 config2; in SEND_STOP() local 202 config2 = __raw_readl(HOST_CONFIG2(host)); in SEND_STOP() 203 __raw_writel(config2 | SD_CONFIG2_DF, HOST_CONFIG2(host)); in SEND_STOP() 743 u32 config2; in au1xmmc_set_ios() local 756 config2 = __raw_readl(HOST_CONFIG2(host)); in au1xmmc_set_ios() 759 config2 |= SD_CONFIG2_BB; in au1xmmc_set_ios() 762 config2 &= ~SD_CONFIG2_BB; in au1xmmc_set_ios() 763 config2 |= SD_CONFIG2_WB; in au1xmmc_set_ios() 766 config2 &= ~(SD_CONFIG2_WB | SD_CONFIG2_BB); in au1xmmc_set_ios() 769 __raw_writel(config2, HOST_CONFIG in au1xmmc_set_ios() [all...] |
/kernel/linux/linux-6.6/drivers/mmc/host/ |
H A D | au1xmmc.c | 197 u32 config2; in SEND_STOP() local 202 config2 = __raw_readl(HOST_CONFIG2(host)); in SEND_STOP() 203 __raw_writel(config2 | SD_CONFIG2_DF, HOST_CONFIG2(host)); in SEND_STOP() 743 u32 config2; in au1xmmc_set_ios() local 756 config2 = __raw_readl(HOST_CONFIG2(host)); in au1xmmc_set_ios() 759 config2 |= SD_CONFIG2_BB; in au1xmmc_set_ios() 762 config2 &= ~SD_CONFIG2_BB; in au1xmmc_set_ios() 763 config2 |= SD_CONFIG2_WB; in au1xmmc_set_ios() 766 config2 &= ~(SD_CONFIG2_WB | SD_CONFIG2_BB); in au1xmmc_set_ios() 769 __raw_writel(config2, HOST_CONFIG in au1xmmc_set_ios() [all...] |
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | lm90.c | 1908 int config2 = i2c_smbus_read_byte_data(client, LM90_REG_CONFIG2); in lm90_detect_national() local 1912 if (config2 < 0) in lm90_detect_national() 1915 if ((config1 & 0x2a) || (config2 & 0xf8) || convrate > 0x09) in lm90_detect_national() 1962 int config2 = i2c_smbus_read_byte_data(client, ADT7481_REG_CONFIG2); in lm90_detect_analog() local 1968 if (status < 0 || config2 < 0 || man_id2 < 0 || chip_id2 < 0) in lm90_detect_analog() 2088 !(config2 & 0x7f) && (convrate & 0x0f) <= 0x0b) { in lm90_detect_analog() 2095 address == 0x4c && !(config1 & 0x10) && !(config2 & 0x7f) && in lm90_detect_analog() 2105 !(config1 & 0x10) && !(config2 & 0x7f) && convrate <= 0x0a) in lm90_detect_analog() 2320 int config2 = i2c_smbus_read_byte_data(client, LM90_REG_CONFIG2); in lm90_detect_nuvoton() local 2324 if (config2 < in lm90_detect_nuvoton() 2344 int config2; lm90_detect_nxp() local [all...] |
/kernel/linux/linux-6.6/drivers/perf/ |
H A D | arm_dmc620_pmu.c | 179 #define ATTR_CFG_FLD_invert_CFG config2 182 #define ATTR_CFG_FLD_incr_CFG config2 185 #define ATTR_CFG_FLD_event_CFG config2 188 #define ATTR_CFG_FLD_clkdiv2_CFG config2
|
/kernel/linux/linux-5.10/arch/x86/events/intel/ |
H A D | uncore_nhmex.c | 198 DEFINE_UNCORE_FORMAT_ATTR(mask, mask, "config2:0-63"); 373 reg2->config = event->attr.config2; in nhmex_bbox_hw_config() 458 reg2->config = event->attr.config2; in nhmex_sbox_hw_config() 807 if (event->attr.config2 & NHMEX_M_PMON_MM_CFG_EN) in nhmex_mbox_hw_config() 808 reg2->config = event->attr.config2; in nhmex_mbox_hw_config() 871 DEFINE_UNCORE_FORMAT_ATTR(filter_cfg_en, filter_cfg_en, "config2:63"); 872 DEFINE_UNCORE_FORMAT_ATTR(filter_match, filter_match, "config2:0-33"); 873 DEFINE_UNCORE_FORMAT_ATTR(filter_mask, filter_mask, "config2:34-61"); 1026 er->config2 == reg2->config)) { in nhmex_rbox_get_constraint() 1030 er->config2 in nhmex_rbox_get_constraint() [all...] |
/kernel/linux/linux-6.6/arch/x86/events/intel/ |
H A D | uncore_nhmex.c | 198 DEFINE_UNCORE_FORMAT_ATTR(mask, mask, "config2:0-63"); 373 reg2->config = event->attr.config2; in nhmex_bbox_hw_config() 458 reg2->config = event->attr.config2; in nhmex_sbox_hw_config() 807 if (event->attr.config2 & NHMEX_M_PMON_MM_CFG_EN) in nhmex_mbox_hw_config() 808 reg2->config = event->attr.config2; in nhmex_mbox_hw_config() 871 DEFINE_UNCORE_FORMAT_ATTR(filter_cfg_en, filter_cfg_en, "config2:63"); 872 DEFINE_UNCORE_FORMAT_ATTR(filter_match, filter_match, "config2:0-33"); 873 DEFINE_UNCORE_FORMAT_ATTR(filter_mask, filter_mask, "config2:34-61"); 1026 er->config2 == reg2->config)) { in nhmex_rbox_get_constraint() 1030 er->config2 in nhmex_rbox_get_constraint() [all...] |
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | am53c974.c | 229 if (esp->config2 & ESP_CONFIG2_FENAB) in pci_esp_send_dma_cmd() 252 if (esp->config2 & ESP_CONFIG2_FENAB) in pci_esp_dma_length_limit() 421 esp->config2 |= ESP_CONFIG2_FENAB; in pci_esp_probe_one()
|
H A D | esp_scsi.c | 298 esp_write8(esp->config2, ESP_CFG2); in esp_reset_esp() 303 esp_write8(esp->config2, ESP_CFG2); in esp_reset_esp() 309 esp->config2 |= (ESP_CONFIG2_HME32 | ESP_CONFIG2_HMEFENAB); in esp_reset_esp() 315 esp_write8(esp->config2, ESP_CFG2); in esp_reset_esp() 343 esp_write8(esp->config2, ESP_CFG2); in esp_reset_esp() 1339 if (esp->rev == PCSCSI && (esp->config2 & ESP_CONFIG2_FENAB)) in esp_data_bytes_sent() 2219 if (esp->config2 == 0) { in esp_get_revision() 2220 esp->config2 = (ESP_CONFIG2_SCSI2ENAB | ESP_CONFIG2_REGPARITY); in esp_get_revision() 2221 esp_write8(esp->config2, ESP_CFG2); in esp_get_revision() 2226 esp->config2 in esp_get_revision() [all...] |
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | am53c974.c | 229 if (esp->config2 & ESP_CONFIG2_FENAB) in pci_esp_send_dma_cmd() 252 if (esp->config2 & ESP_CONFIG2_FENAB) in pci_esp_dma_length_limit() 421 esp->config2 |= ESP_CONFIG2_FENAB; in pci_esp_probe_one()
|
H A D | esp_scsi.c | 298 esp_write8(esp->config2, ESP_CFG2); in esp_reset_esp() 303 esp_write8(esp->config2, ESP_CFG2); in esp_reset_esp() 309 esp->config2 |= (ESP_CONFIG2_HME32 | ESP_CONFIG2_HMEFENAB); in esp_reset_esp() 315 esp_write8(esp->config2, ESP_CFG2); in esp_reset_esp() 343 esp_write8(esp->config2, ESP_CFG2); in esp_reset_esp() 1331 if (esp->rev == PCSCSI && (esp->config2 & ESP_CONFIG2_FENAB)) in esp_data_bytes_sent() 2208 if (esp->config2 == 0) { in esp_get_revision() 2209 esp->config2 = (ESP_CONFIG2_SCSI2ENAB | ESP_CONFIG2_REGPARITY); in esp_get_revision() 2210 esp_write8(esp->config2, ESP_CFG2); in esp_get_revision() 2215 esp->config2 in esp_get_revision() [all...] |
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | task_fd_query_user.c | 143 attr.config2 = offset; in test_nondebug_fs_kuprobe_common() 146 attr.config2 = addr; in test_nondebug_fs_kuprobe_common()
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A D | cpu-probe.c | 490 unsigned int config2; in decode_config2() local 492 config2 = read_c0_config2(); in decode_config2() 494 if (config2 & MIPS_CONF2_SL) in decode_config2() 497 return config2 & MIPS_CONF_M; in decode_config2() 866 unsigned int config2; in decode_guest_config2() local 868 probe_gc0_config(config2, config2, MIPS_CONF_M); in decode_guest_config2() 870 if (config2 & MIPS_CONF_M) in decode_guest_config2() 872 return config2 & MIPS_CONF_M; in decode_guest_config2() 1793 * XBurst misses a config2 registe in cpu_probe_ingenic() [all...] |
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | cpu-probe.c | 491 unsigned int config2; in decode_config2() local 493 config2 = read_c0_config2(); in decode_config2() 495 if (config2 & MIPS_CONF2_SL) in decode_config2() 498 return config2 & MIPS_CONF_M; in decode_config2() 867 unsigned int config2; in decode_guest_config2() local 869 probe_gc0_config(config2, config2, MIPS_CONF_M); in decode_guest_config2() 871 if (config2 & MIPS_CONF_M) in decode_guest_config2() 873 return config2 & MIPS_CONF_M; in decode_guest_config2() 1749 * XBurst misses a config2 registe in cpu_probe_ingenic() [all...] |