Home
last modified time | relevance | path

Searched refs:pcr (Results 1 – 25 of 40) sorted by relevance

12

/drivers/misc/cardreader/
Drtsx_pcr.c62 static int rtsx_comm_set_ltr_latency(struct rtsx_pcr *pcr, u32 latency) in rtsx_comm_set_ltr_latency() argument
64 rtsx_pci_write_register(pcr, MSGTXDATA0, in rtsx_comm_set_ltr_latency()
66 rtsx_pci_write_register(pcr, MSGTXDATA1, in rtsx_comm_set_ltr_latency()
68 rtsx_pci_write_register(pcr, MSGTXDATA2, in rtsx_comm_set_ltr_latency()
70 rtsx_pci_write_register(pcr, MSGTXDATA3, in rtsx_comm_set_ltr_latency()
72 rtsx_pci_write_register(pcr, LTR_CTL, LTR_TX_EN_MASK | in rtsx_comm_set_ltr_latency()
78 int rtsx_set_ltr_latency(struct rtsx_pcr *pcr, u32 latency) in rtsx_set_ltr_latency() argument
80 return rtsx_comm_set_ltr_latency(pcr, latency); in rtsx_set_ltr_latency()
83 static void rtsx_comm_set_aspm(struct rtsx_pcr *pcr, bool enable) in rtsx_comm_set_aspm() argument
85 if (pcr->aspm_enabled == enable) in rtsx_comm_set_aspm()
[all …]
Drts5249.c16 static u8 rts5249_get_ic_version(struct rtsx_pcr *pcr) in rts5249_get_ic_version() argument
20 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5249_get_ic_version()
24 static void rts5249_fill_driving(struct rtsx_pcr *pcr, u8 voltage) in rts5249_fill_driving() argument
42 drive_sel = pcr->sd30_drive_sel_3v3; in rts5249_fill_driving()
45 drive_sel = pcr->sd30_drive_sel_1v8; in rts5249_fill_driving()
48 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_CLK_DRIVE_SEL, in rts5249_fill_driving()
50 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_CMD_DRIVE_SEL, in rts5249_fill_driving()
52 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_DAT_DRIVE_SEL, in rts5249_fill_driving()
56 static void rtsx_base_fetch_vendor_settings(struct rtsx_pcr *pcr) in rtsx_base_fetch_vendor_settings() argument
58 struct pci_dev *pdev = pcr->pci; in rtsx_base_fetch_vendor_settings()
[all …]
Drts5261.c18 static u8 rts5261_get_ic_version(struct rtsx_pcr *pcr) in rts5261_get_ic_version() argument
22 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5261_get_ic_version()
26 static void rts5261_fill_driving(struct rtsx_pcr *pcr, u8 voltage) in rts5261_fill_driving() argument
44 drive_sel = pcr->sd30_drive_sel_3v3; in rts5261_fill_driving()
47 drive_sel = pcr->sd30_drive_sel_1v8; in rts5261_fill_driving()
50 rtsx_pci_write_register(pcr, SD30_CLK_DRIVE_SEL, in rts5261_fill_driving()
53 rtsx_pci_write_register(pcr, SD30_CMD_DRIVE_SEL, in rts5261_fill_driving()
56 rtsx_pci_write_register(pcr, SD30_DAT_DRIVE_SEL, in rts5261_fill_driving()
60 static void rts5261_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) in rts5261_force_power_down() argument
63 rtsx_pci_write_register(pcr, AUTOLOAD_CFG_BASE + 1, MASK_8_BIT_DEF, 0); in rts5261_force_power_down()
[all …]
Drts5227.c17 static u8 rts5227_get_ic_version(struct rtsx_pcr *pcr) in rts5227_get_ic_version() argument
21 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5227_get_ic_version()
25 static void rts5227_fill_driving(struct rtsx_pcr *pcr, u8 voltage) in rts5227_fill_driving() argument
43 drive_sel = pcr->sd30_drive_sel_3v3; in rts5227_fill_driving()
46 drive_sel = pcr->sd30_drive_sel_1v8; in rts5227_fill_driving()
49 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_CLK_DRIVE_SEL, in rts5227_fill_driving()
51 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_CMD_DRIVE_SEL, in rts5227_fill_driving()
53 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_DAT_DRIVE_SEL, in rts5227_fill_driving()
57 static void rts5227_fetch_vendor_settings(struct rtsx_pcr *pcr) in rts5227_fetch_vendor_settings() argument
59 struct pci_dev *pdev = pcr->pci; in rts5227_fetch_vendor_settings()
[all …]
Drts5228.c19 static u8 rts5228_get_ic_version(struct rtsx_pcr *pcr) in rts5228_get_ic_version() argument
23 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5228_get_ic_version()
27 static void rts5228_fill_driving(struct rtsx_pcr *pcr, u8 voltage) in rts5228_fill_driving() argument
45 drive_sel = pcr->sd30_drive_sel_3v3; in rts5228_fill_driving()
48 drive_sel = pcr->sd30_drive_sel_1v8; in rts5228_fill_driving()
51 rtsx_pci_write_register(pcr, SD30_CLK_DRIVE_SEL, in rts5228_fill_driving()
54 rtsx_pci_write_register(pcr, SD30_CMD_DRIVE_SEL, in rts5228_fill_driving()
57 rtsx_pci_write_register(pcr, SD30_DAT_DRIVE_SEL, in rts5228_fill_driving()
61 static void rtsx5228_fetch_vendor_settings(struct rtsx_pcr *pcr) in rtsx5228_fetch_vendor_settings() argument
63 struct pci_dev *pdev = pcr->pci; in rtsx5228_fetch_vendor_settings()
[all …]
Drts5260.c19 static u8 rts5260_get_ic_version(struct rtsx_pcr *pcr) in rts5260_get_ic_version() argument
23 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5260_get_ic_version()
27 static void rts5260_fill_driving(struct rtsx_pcr *pcr, u8 voltage) in rts5260_fill_driving() argument
45 drive_sel = pcr->sd30_drive_sel_3v3; in rts5260_fill_driving()
48 drive_sel = pcr->sd30_drive_sel_1v8; in rts5260_fill_driving()
51 rtsx_pci_write_register(pcr, SD30_CLK_DRIVE_SEL, in rts5260_fill_driving()
54 rtsx_pci_write_register(pcr, SD30_CMD_DRIVE_SEL, in rts5260_fill_driving()
57 rtsx_pci_write_register(pcr, SD30_DAT_DRIVE_SEL, in rts5260_fill_driving()
61 static void rtsx_base_fetch_vendor_settings(struct rtsx_pcr *pcr) in rtsx_base_fetch_vendor_settings() argument
63 struct pci_dev *pdev = pcr->pci; in rtsx_base_fetch_vendor_settings()
[all …]
Drts5229.c16 static u8 rts5229_get_ic_version(struct rtsx_pcr *pcr) in rts5229_get_ic_version() argument
20 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5229_get_ic_version()
24 static void rts5229_fetch_vendor_settings(struct rtsx_pcr *pcr) in rts5229_fetch_vendor_settings() argument
26 struct pci_dev *pdev = pcr->pci; in rts5229_fetch_vendor_settings()
30 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG1, reg); in rts5229_fetch_vendor_settings()
35 pcr->aspm_en = rtsx_reg_to_aspm(reg); in rts5229_fetch_vendor_settings()
36 pcr->sd30_drive_sel_1v8 = in rts5229_fetch_vendor_settings()
38 pcr->card_drive_sel &= 0x3F; in rts5229_fetch_vendor_settings()
39 pcr->card_drive_sel |= rtsx_reg_to_card_drive_sel(reg); in rts5229_fetch_vendor_settings()
42 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG2, reg); in rts5229_fetch_vendor_settings()
[all …]
Drts5209.c16 static u8 rts5209_get_ic_version(struct rtsx_pcr *pcr) in rts5209_get_ic_version() argument
20 val = rtsx_pci_readb(pcr, 0x1C); in rts5209_get_ic_version()
24 static void rts5209_fetch_vendor_settings(struct rtsx_pcr *pcr) in rts5209_fetch_vendor_settings() argument
26 struct pci_dev *pdev = pcr->pci; in rts5209_fetch_vendor_settings()
30 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG1, reg); in rts5209_fetch_vendor_settings()
34 pcr->flags |= PCR_MS_PMOS; in rts5209_fetch_vendor_settings()
35 pcr->aspm_en = rts5209_reg_to_aspm(reg); in rts5209_fetch_vendor_settings()
39 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG2, reg); in rts5209_fetch_vendor_settings()
42 pcr->sd30_drive_sel_1v8 = in rts5209_fetch_vendor_settings()
44 pcr->sd30_drive_sel_3v3 = in rts5209_fetch_vendor_settings()
[all …]
Drtl8411.c18 static u8 rtl8411_get_ic_version(struct rtsx_pcr *pcr) in rtl8411_get_ic_version() argument
22 rtsx_pci_read_register(pcr, SYS_VER, &val); in rtl8411_get_ic_version()
26 static int rtl8411b_is_qfn48(struct rtsx_pcr *pcr) in rtl8411b_is_qfn48() argument
30 rtsx_pci_read_register(pcr, RTL8411B_PACKAGE_MODE, &val); in rtl8411b_is_qfn48()
38 static void rtl8411_fetch_vendor_settings(struct rtsx_pcr *pcr) in rtl8411_fetch_vendor_settings() argument
40 struct pci_dev *pdev = pcr->pci; in rtl8411_fetch_vendor_settings()
45 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG1, reg1); in rtl8411_fetch_vendor_settings()
50 pcr->aspm_en = rtsx_reg_to_aspm(reg1); in rtl8411_fetch_vendor_settings()
51 pcr->sd30_drive_sel_1v8 = in rtl8411_fetch_vendor_settings()
53 pcr->card_drive_sel &= 0x3F; in rtl8411_fetch_vendor_settings()
[all …]
Drtsx_pcr.h61 int __rtsx_pci_write_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 val);
62 int __rtsx_pci_read_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 *val);
64 void rts5209_init_params(struct rtsx_pcr *pcr);
65 void rts5229_init_params(struct rtsx_pcr *pcr);
66 void rtl8411_init_params(struct rtsx_pcr *pcr);
67 void rtl8402_init_params(struct rtsx_pcr *pcr);
68 void rts5227_init_params(struct rtsx_pcr *pcr);
69 void rts522a_init_params(struct rtsx_pcr *pcr);
70 void rts5249_init_params(struct rtsx_pcr *pcr);
71 void rts524a_init_params(struct rtsx_pcr *pcr);
[all …]
/drivers/mmc/host/
Drtsx_pci_sdmmc.c27 struct rtsx_pcr *pcr; member
57 rtsx_pci_write_register(host->pcr, CARD_STOP, in sd_clear_error()
74 rtsx_pci_read_register(host->pcr, start + i + j, in dump_reg_range()
92 return rtsx_pci_readl(host->pcr, RTSX_BIPR) & SD_EXIST; in sd_get_cd_int()
95 static void sd_cmd_set_sd_cmd(struct rtsx_pcr *pcr, struct mmc_command *cmd) in sd_cmd_set_sd_cmd() argument
97 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_CMD0, 0xFF, in sd_cmd_set_sd_cmd()
99 rtsx_pci_write_be32(pcr, SD_CMD1, cmd->arg); in sd_cmd_set_sd_cmd()
102 static void sd_cmd_set_data_len(struct rtsx_pcr *pcr, u16 blocks, u16 blksz) in sd_cmd_set_data_len() argument
104 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_BLOCK_CNT_L, 0xFF, blocks); in sd_cmd_set_data_len()
105 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_BLOCK_CNT_H, 0xFF, blocks >> 8); in sd_cmd_set_data_len()
[all …]
/drivers/memstick/host/
Drtsx_pci_ms.c20 struct rtsx_pcr *pcr; member
40 rtsx_pci_write_register(host->pcr, CARD_STOP, in ms_clear_error()
48 struct rtsx_pcr *pcr = host->pcr; in ms_print_debug_regs() local
53 rtsx_pci_init_cmd(pcr); in ms_print_debug_regs()
55 rtsx_pci_add_cmd(pcr, READ_REG_CMD, i, 0, 0); in ms_print_debug_regs()
57 rtsx_pci_add_cmd(pcr, READ_REG_CMD, i, 0, 0); in ms_print_debug_regs()
58 rtsx_pci_send_cmd(pcr, 100); in ms_print_debug_regs()
60 ptr = rtsx_pci_get_cmd_data(pcr); in ms_print_debug_regs()
75 struct rtsx_pcr *pcr = host->pcr; in ms_power_on() local
78 rtsx_pci_init_cmd(pcr); in ms_power_on()
[all …]
/drivers/video/fbdev/
Dimxfb.c53 u32 pcr; member
182 u_int pcr; member
378 u32 pcr = 0; in imxfb_check_var() local
414 pcr = (unsigned int)tmp; in imxfb_check_var()
416 if (--pcr > 0x3F) { in imxfb_check_var()
417 pcr = 0x3F; in imxfb_check_var()
419 lcd_clk / pcr); in imxfb_check_var()
424 pcr |= PCR_BPIX_18; in imxfb_check_var()
430 pcr |= PCR_BPIX_12; in imxfb_check_var()
432 pcr |= PCR_BPIX_16; in imxfb_check_var()
[all …]
/drivers/media/platform/ti/omap3isp/
Disph3a_af.c29 u32 pcr; in h3a_af_setup_regs() local
104 pcr = conf->rgb_pos << AF_RGBPOS_SHIFT; in h3a_af_setup_regs()
107 pcr |= AF_FVMODE; in h3a_af_setup_regs()
110 pcr |= AF_ALAW_EN; in h3a_af_setup_regs()
114 pcr |= AF_MED_EN; in h3a_af_setup_regs()
116 pcr |= conf->hmf.threshold << AF_MED_TH_SHIFT; in h3a_af_setup_regs()
120 AF_PCR_MASK, pcr); in h3a_af_setup_regs()
Disph3a_aewb.c28 u32 pcr; in h3a_aewb_setup_regs() local
44 pcr = conf->saturation_limit << ISPH3A_PCR_AEW_AVE2LMT_SHIFT; in h3a_aewb_setup_regs()
45 pcr |= !!conf->alaw_enable << ISPH3A_PCR_AEW_ALAW_EN_SHIFT; in h3a_aewb_setup_regs()
70 ISPH3A_PCR_AEW_MASK, pcr); in h3a_aewb_setup_regs()
/drivers/media/test-drivers/vidtv/
Dvidtv_pes.c182 static u32 vidtv_pes_write_pcr_bits(u8 *to, u32 to_offset, u64 pcr) in vidtv_pes_write_pcr_bits() argument
191 div = div64_u64_rem(pcr, 300, &rem); in vidtv_pes_write_pcr_bits()
246 args->pcr); in vidtv_pes_write_stuffing()
248 *last_pcr = args->pcr; in vidtv_pes_write_stuffing()
310 .pcr = args->pcr, in vidtv_pes_write_into()
327 u64 last_pcr = args->pcr; in vidtv_pes_write_into()
Dvidtv_ts.c20 static u32 vidtv_ts_write_pcr_bits(u8 *to, u32 to_offset, u64 pcr) in vidtv_ts_write_pcr_bits() argument
29 div = div64_u64_rem(pcr, 300, &rem); in vidtv_ts_write_pcr_bits()
121 args.pcr); in vidtv_ts_pcr_write_into()
Dvidtv_pes.h129 u64 pcr; member
174 u64 pcr; member
Dvidtv_ts.h64 u64 pcr; member
/drivers/mtd/nand/raw/
Dstm32_fmc2_nand.c312 u32 pcr = 0, pcr_mask; in stm32_fmc2_nfc_setup() local
318 pcr |= FMC2_PCR_ECCALG; in stm32_fmc2_nfc_setup()
319 pcr |= FMC2_PCR_BCHECC; in stm32_fmc2_nfc_setup()
321 pcr |= FMC2_PCR_ECCALG; in stm32_fmc2_nfc_setup()
327 pcr |= FIELD_PREP(FMC2_PCR_PWID, FMC2_PCR_PWID_BUSWIDTH_16); in stm32_fmc2_nfc_setup()
331 pcr |= FIELD_PREP(FMC2_PCR_ECCSS, FMC2_PCR_ECCSS_512); in stm32_fmc2_nfc_setup()
333 regmap_update_bits(nfc->regmap, FMC2_PCR, pcr_mask, pcr); in stm32_fmc2_nfc_setup()
399 u32 pcr; in stm32_fmc2_nfc_set_buswidth_16() local
401 pcr = set ? FIELD_PREP(FMC2_PCR_PWID, FMC2_PCR_PWID_BUSWIDTH_16) : in stm32_fmc2_nfc_set_buswidth_16()
404 regmap_update_bits(nfc->regmap, FMC2_PCR, FMC2_PCR_PWID, pcr); in stm32_fmc2_nfc_set_buswidth_16()
[all …]
/drivers/atm/
Diphase.c165 if (iavcc_r->pcr < dev->rate_limit) { in ia_hack_tcq()
361 srv_p->pcr = dev->LineRate; in init_abr_vc()
388 if (srv_p->pcr == 0) in ia_open_abr_vc()
390 if (srv_p->pcr > dev->LineRate) in ia_open_abr_vc()
391 srv_p->pcr = dev->LineRate; in ia_open_abr_vc()
394 if (srv_p->mcr > srv_p->pcr) in ia_open_abr_vc()
397 srv_p->icr = srv_p->pcr; in ia_open_abr_vc()
398 if ((srv_p->icr < srv_p->mcr) || (srv_p->icr > srv_p->pcr)) in ia_open_abr_vc()
430 f_abr_vc->f_pcr = cellrate_to_float(srv_p->pcr); in ia_open_abr_vc()
448 air = srv_p->pcr << (15 - srv_p->rif); in ia_open_abr_vc()
[all …]
Deni.c1250 static int comp_tx(struct eni_dev *eni_dev,int *pcr,int reserved,int *pre, in comp_tx() argument
1258 if (*pcr > 0) { in comp_tx()
1262 if (TS_CLOCK/pre_div[*pre]/64 <= *pcr) break; in comp_tx()
1263 div = pre_div[*pre]**pcr; in comp_tx()
1270 if (!*pcr) *pcr = eni_dev->tx_bw+reserved; in comp_tx()
1272 if (TS_CLOCK/pre_div[*pre]/64 > -*pcr) break; in comp_tx()
1274 div = pre_div[*pre]*-*pcr; in comp_tx()
1281 *pcr = TS_CLOCK/pre_div[*pre]/(*res+1); in comp_tx()
1282 DPRINTK("out pcr: %d (%d:%d)\n",*pcr,*pre,*res); in comp_tx()
1312 txtp->pcr = ATM_OC3_PCR; in reserve_or_set_tx()
[all …]
/drivers/tty/serial/
Dsunsab.h37 u8 pcr; /* Port Configuration Register */ member
73 u8 pcr; member
109 u8 pcr; member
/drivers/net/wan/
Dn2.c325 u8 cnt, pcr; in n2_run() local
404 pcr = PCR_ENWIN | PCR_VPM | (USE_BUS16BITS ? PCR_BUS16 : 0); in n2_run()
405 outb(pcr, io + N2_PCR); in n2_run()
429 pcr |= PCR_RUNSCA; /* run SCA */ in n2_run()
430 outb(pcr, io + N2_PCR); in n2_run()
/drivers/char/tpm/
Dtpm-sysfs.c342 int pcr; member
368 rc = tpm_pcr_read(chip, ha->pcr, &digest); in pcr_value_show()
421 .pcr = _pcr, \

12