Home
last modified time | relevance | path

Searched refs:config1 (Results 1 – 25 of 93) sorted by relevance

1234

/OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/
H A Dmxc_nand_spl.c90 int config1; in nfc_nand_init()
98 config1 = readnfc(&nfc->config1) | NFC_V1_V2_CONFIG1_ECC_EN | in nfc_nand_init()
106 config1 &= ~NFC_V2_CONFIG1_ECC_MODE_4; in nfc_nand_init()
108 config1 |= NFC_V2_CONFIG1_ECC_MODE_4; in nfc_nand_init()
109 writenfc(config1, &nfc->config1); in nfc_nand_init()
116 &nfc->config1); in nfc_nand_init()
167 int config1 = readnfc(&nfc->config1); in nfc_nand_data_output() local
168 config1 &= ~NFC_V3_CONFIG1_RBA_MASK; in nfc_nand_data_output()
169 writenfc(config1, &nfc->config1); in nfc_nand_data_output()
213 int config1 = readnfc(&nfc->config1); in nfc_nand_read_page()
[all …]
H A Dmxc_nand.c200 uint32_t tmp = readnfc(&host->regs->config1);
203 writenfc(tmp, &host->regs->config1);
208 uint32_t config1 = readnfc(&host->regs->config1); local
210 config1 |= NFC_CONFIG1_SP_EN;
212 config1 &= ~NFC_CONFIG1_SP_EN;
213 writenfc(config1, &host->regs->config1);
234 uint32_t tmp = readnfc(&host->regs->config1);
237 writenfc(tmp, &host->regs->config1);
242 uint32_t config1 = readnfc(&host->regs->config1); local
244 config1 |= NFC_CONFIG1_SP_EN;
[all …]
H A Dmxc_nand.h83 u16 config1; member
96 u16 config1; member
110 u32 config1; member
/OK3568_Linux_fs/kernel/drivers/phy/socionext/
H A Dphy-uniphier-usb2.c36 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 Dphy-uniphier-usb3hs.c82 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,
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/83xx/
H A Dsuspend.c62 u32 config1; member
124 u32 reg_cfg1 = in_be32(&pmc_regs->config1); in mpc83xx_change_state()
134 out_be32(&pmc_regs->config1, reg_cfg1); in mpc83xx_change_state()
186 out_be32(&pmc_regs->config1, in mpc83xx_suspend_enter()
187 in_be32(&pmc_regs->config1) | PMCCR1_PME_EN); in mpc83xx_suspend_enter()
207 out_be32(&pmc_regs->config1, in mpc83xx_suspend_enter()
208 in_be32(&pmc_regs->config1) | PMCCR1_POWER_OFF); in mpc83xx_suspend_enter()
214 out_be32(&pmc_regs->config1, in mpc83xx_suspend_enter()
215 in_be32(&pmc_regs->config1) & ~PMCCR1_POWER_OFF); in mpc83xx_suspend_enter()
229 out_be32(&pmc_regs->config1, in mpc83xx_suspend_enter()
[all …]
/OK3568_Linux_fs/u-boot/board/qemu-mips/
H A Dqemu-mips.c28 u32 config1; in checkboard() local
43 config1 = read_c0_config1(); in checkboard()
44 if (config1 & 1) in checkboard()
56 config1 = read_c0_config1(); in checkboard()
57 if (config1 & 1) in checkboard()
/OK3568_Linux_fs/kernel/drivers/staging/iio/addac/
H A Dadt7316.c184 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
302 config1 = chip->config1 & (~ADT7516_SEL_EX_TEMP); in adt7316_store_select_ex_temp()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/seeq/
H A Dether3.c119 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 …]
/OK3568_Linux_fs/kernel/arch/mips/cavium-octeon/executive/
H A Dcvmx-pko.c311 union cvmx_pko_reg_queue_ptrs1 config1; in cvmx_pko_shutdown() local
312 config1.u64 = 0; in cvmx_pko_shutdown()
313 config1.s.qid7 = queue >> 7; in cvmx_pko_shutdown()
314 cvmx_write_csr(CVMX_PKO_REG_QUEUE_PTRS1, config1.u64); in cvmx_pko_shutdown()
347 union cvmx_pko_reg_queue_ptrs1 config1; in cvmx_pko_config_port() local
439 config1.u64 = 0; in cvmx_pko_config_port()
440 config1.s.idx3 = queue >> 3; in cvmx_pko_config_port()
441 config1.s.qid7 = (base_queue + queue) >> 7; in cvmx_pko_config_port()
543 cvmx_write_csr(CVMX_PKO_REG_QUEUE_PTRS1, config1.u64); in cvmx_pko_config_port()
/OK3568_Linux_fs/kernel/arch/mips/mm/
H A Dc-octeon.c171 unsigned int config1; in probe_octeon() local
175 config1 = read_c0_config1(); in probe_octeon()
179 c->icache.linesz = 2 << ((config1 >> 19) & 7); in probe_octeon()
180 c->icache.sets = 64 << ((config1 >> 22) & 7); in probe_octeon()
181 c->icache.ways = 1 + ((config1 >> 16) & 7); in probe_octeon()
199 c->icache.linesz = 2 << ((config1 >> 19) & 7); in probe_octeon()
H A Dc-r4k.c1111 unsigned long config1; in probe_pcache() local
1277 config1 = read_c0_config1(); in probe_pcache()
1278 lsize = (config1 >> 19) & 7; in probe_pcache()
1283 c->icache.sets = 64 << ((config1 >> 22) & 7); in probe_pcache()
1284 c->icache.ways = 1 + ((config1 >> 16) & 7); in probe_pcache()
1290 lsize = (config1 >> 10) & 7; in probe_pcache()
1295 c->dcache.sets = 64 << ((config1 >> 13) & 7); in probe_pcache()
1296 c->dcache.ways = 1 + ((config1 >> 7) & 7); in probe_pcache()
1330 config1 = read_c0_config1(); in probe_pcache()
1332 lsize = (config1 >> 19) & 7; in probe_pcache()
[all …]
H A Dsc-mips.c186 unsigned int config1, config2; in mips_sc_probe() local
203 config1 = read_c0_config1(); in mips_sc_probe()
204 if (!(config1 & MIPS_CONF_M)) in mips_sc_probe()
/OK3568_Linux_fs/kernel/arch/x86/events/intel/
H A Duncore_nhmex.c372 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()
781 if (event->attr.config1 & ~er->valid_mask) in nhmex_mbox_hw_config()
798 reg1->config = event->attr.config1; in nhmex_mbox_hw_config()
986 u64 config1; in nhmex_rbox_get_constraint() local
993 config1 = reg1->config; in nhmex_rbox_get_constraint()
1016 !((er->config ^ config1) & mask)) { in nhmex_rbox_get_constraint()
[all …]
/OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/
H A Dmxc_nand.c670 uint16_t config1; in mxc_nand_enable_hwecc_v1_v2() local
675 config1 = readw(NFC_V1_V2_CONFIG1); in mxc_nand_enable_hwecc_v1_v2()
678 config1 |= NFC_V1_V2_CONFIG1_ECC_EN; in mxc_nand_enable_hwecc_v1_v2()
680 config1 &= ~NFC_V1_V2_CONFIG1_ECC_EN; in mxc_nand_enable_hwecc_v1_v2()
682 writew(config1, NFC_V1_V2_CONFIG1); in mxc_nand_enable_hwecc_v1_v2()
1118 uint16_t config1 = 0; in preset_v1() local
1122 config1 |= NFC_V1_V2_CONFIG1_ECC_EN; in preset_v1()
1125 config1 |= NFC_V1_V2_CONFIG1_INT_MSK; in preset_v1()
1129 writew(config1, NFC_V1_V2_CONFIG1); in preset_v1()
1150 u16 config1; in mxc_nand_v2_setup_interface() local
[all …]
/OK3568_Linux_fs/kernel/Documentation/admin-guide/perf/
H A Dxgene-pmu.rst19 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
/OK3568_Linux_fs/kernel/drivers/hwmon/
H A Dlm90.c1462 int man_id, chip_id, config1, config2, convrate; in lm90_detect() local
1470 config1 = i2c_smbus_read_byte_data(client, LM90_REG_R_CONFIG1); in lm90_detect()
1472 if (man_id < 0 || chip_id < 0 || config1 < 0 || convrate < 0) in lm90_detect()
1483 if ((config1 & 0x2A) == 0x00 in lm90_detect()
1509 && (config1 & 0x3F) == 0x00 in lm90_detect()
1521 && (config1 & 0x1B) == 0x00 in lm90_detect()
1526 && (config1 & 0x1B) == 0x00 in lm90_detect()
1566 && (config1 & 0x1F) == (man_id & 0x0F) in lm90_detect()
1585 && (config1 & 0x10) == 0x00 in lm90_detect()
1598 && (config1 & 0x03) == 0x00 in lm90_detect()
[all …]
H A Dadm1026.c286 u8 config1; /* Register value */ member
435 data->config1 = adm1026_read_value(client, in adm1026_update_device()
437 if (data->config1 & CFG1_PWM_AFC) { in adm1026_update_device()
974 return sprintf(buf, "%d\n", (data->config1 & CFG1_THERM_HOT) >> 4); in show_temp_crit_enable()
992 data->config1 = (data->config1 & ~CFG1_THERM_HOT) | (val << 4); in set_temp_crit_enable()
993 adm1026_write_value(client, ADM1026_REG_CONFIG1, data->config1); in set_temp_crit_enable()
1358 data->config1 = (data->config1 & ~CFG1_PWM_AFC) in pwm1_enable_store()
1360 adm1026_write_value(client, ADM1026_REG_CONFIG1, data->config1); in pwm1_enable_store()
1726 data->config1 = adm1026_read_value(client, ADM1026_REG_CONFIG1); in adm1026_init_client()
1732 data->config1); in adm1026_init_client()
[all …]
/OK3568_Linux_fs/kernel/drivers/pcmcia/
H A Dvrc4171_card.c133 uint16_t config1; in vrc4171_set_multifunction_pin() local
135 config1 = inw(CONFIGURATION1); in vrc4171_set_multifunction_pin()
136 config1 &= ~SLOTB_CONFIG; in vrc4171_set_multifunction_pin()
140 config1 |= SLOTB_NONE; in vrc4171_set_multifunction_pin()
143 config1 |= SLOTB_PCCARD; in vrc4171_set_multifunction_pin()
146 config1 |= SLOTB_CF; in vrc4171_set_multifunction_pin()
149 config1 |= SLOTB_FLASHROM; in vrc4171_set_multifunction_pin()
155 outw(config1, CONFIGURATION1); in vrc4171_set_multifunction_pin()
/OK3568_Linux_fs/kernel/arch/mips/kernel/
H A Dcpu-probe.c461 unsigned int config1; in decode_config1() local
463 config1 = read_c0_config1(); in decode_config1()
465 if (config1 & MIPS_CONF1_MD) in decode_config1()
467 if (config1 & MIPS_CONF1_PC) in decode_config1()
469 if (config1 & MIPS_CONF1_WR) in decode_config1()
471 if (config1 & MIPS_CONF1_CA) in decode_config1()
473 if (config1 & MIPS_CONF1_EP) in decode_config1()
475 if (config1 & MIPS_CONF1_FP) { in decode_config1()
480 c->tlbsize = ((config1 & MIPS_CONF1_TLBS) >> 25) + 1; in decode_config1()
485 return config1 & MIPS_CONF_M; in decode_config1()
[all …]
/OK3568_Linux_fs/kernel/arch/powerpc/perf/
H A Dhv-gpci.c43 EVENT_DEFINE_RANGE_FORMAT(secondary_index, config1, 0, 15);
45 EVENT_DEFINE_RANGE_FORMAT(counter_info_version, config1, 16, 23);
47 EVENT_DEFINE_RANGE_FORMAT(length, config1, 24, 31);
49 EVENT_DEFINE_RANGE_FORMAT(offset, config1, 32, 63);
/OK3568_Linux_fs/kernel/Documentation/ABI/testing/
H A Dsysfs-bus-event_source-devices-format19 Example: 'config1:1,6-10,44'
21 perf_event_attr::config1.
/OK3568_Linux_fs/kernel/drivers/memory/
H A Domap-gpmc.c205 u32 config1; member
1811 u32 config1; in gpmc_cs_program_settings() local
1850 config1 = GPMC_CONFIG1_DEVICESIZE((p->device_width - 1)); in gpmc_cs_program_settings()
1853 config1 |= GPMC_CONFIG1_READTYPE_SYNC; in gpmc_cs_program_settings()
1855 config1 |= GPMC_CONFIG1_WRITETYPE_SYNC; in gpmc_cs_program_settings()
1857 config1 |= GPMC_CONFIG1_WAIT_READ_MON; in gpmc_cs_program_settings()
1859 config1 |= GPMC_CONFIG1_WAIT_WRITE_MON; in gpmc_cs_program_settings()
1861 config1 |= GPMC_CONFIG1_WAIT_PIN_SEL(p->wait_pin); in gpmc_cs_program_settings()
1863 config1 |= GPMC_CONFIG1_DEVICETYPE(GPMC_DEVICETYPE_NAND); in gpmc_cs_program_settings()
1865 config1 |= GPMC_CONFIG1_MUXTYPE(p->mux_add_data); in gpmc_cs_program_settings()
[all …]
/OK3568_Linux_fs/u-boot/arch/mips/mach-ath79/ar934x/
H A Dddr.c25 u32 config1; member
93 writel(memcfg->config1, ddr_regs + AR71XX_DDR_REG_CONFIG); in ar934x_ddr_init()
/OK3568_Linux_fs/u-boot/arch/arm/mach-rockchip/
H A Drockchip_smccc.c55 unsigned long config1, in sip_smc_set_suspend_mode() argument
60 res = __invoke_sip_fn_smc(SIP_SUSPEND_MODE, ctrl, config1, config2); in sip_smc_set_suspend_mode()

1234