Home
last modified time | relevance | path

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

12

/drivers/misc/cardreader/
A Drtsx_pcr.c112 pcr->ops->set_aspm(pcr, false); in rtsx_disable_aspm()
295 return pcr->ops->stop_cmd(pcr); in rtsx_pci_stop_cmd()
930 pcr->ops->process_ocp(pcr); in rtsx_pci_process_ocp()
1040 pcr->irq = pcr->pci->irq; in rtsx_pci_acquire_irq()
1063 pcr->ops->turn_off_led(pcr); in rtsx_pci_power_off()
1082 pcr->ops->enable_ocp(pcr); in rtsx_pci_enable_ocp()
1095 pcr->ops->disable_ocp(pcr); in rtsx_pci_disable_ocp()
1106 pcr->ops->init_ocp(pcr); in rtsx_pci_init_ocp()
1308 pcr->card_exist = pcr->ops->cd_deglitch(pcr); in rtsx_pci_init_hw()
1508 handle->pcr = pcr; in rtsx_pci_probe()
[all …]
A Drts5264.c66 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, in rts5264_force_power_down()
72 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x01, 0x00); in rts5264_force_power_down()
78 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x01, 0x01); in rts5264_force_power_down()
79 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, in rts5264_force_power_down()
396 rtsx_pci_get_ocpstat(pcr, &pcr->ocp_stat); in rts5264_process_ocp()
397 rts5264_get_ocpstat2(pcr, &pcr->ocp_stat2); in rts5264_process_ocp()
398 rts5264_get_ovpstat(pcr, &pcr->ovp_stat); in rts5264_process_ocp()
645 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x01, 0x00); in rts5264_extra_init_hw()
649 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x01, 0x00); in rts5264_extra_init_hw()
929 pcr->flags = 0; in rts5264_init_params()
[all …]
A Drts5249.c77 if (CHK_PCI_PID(pcr, PID_524A) || CHK_PCI_PID(pcr, PID_525A)) in rtsx_base_fetch_vendor_settings()
91 if (CHK_PCI_PID(pcr, PID_524A) || CHK_PCI_PID(pcr, PID_525A)) { in rts5249_init_from_cfg()
170 rtsx_pci_write_register(pcr, 0xFF04, 0xFF, (u8)PCI_VID(pcr)); in rts52xa_save_content_from_efuse()
172 rtsx_pci_write_register(pcr, 0xFF06, 0xFF, (u8)PCI_PID(pcr)); in rts52xa_save_content_from_efuse()
225 rtsx_pci_write_register(pcr, 0xFF04, 0xFF, (u8)PCI_VID(pcr)); in rts52xa_save_content_to_autoload_space()
227 rtsx_pci_write_register(pcr, 0xFF06, 0xFF, (u8)PCI_PID(pcr)); in rts52xa_save_content_to_autoload_space()
240 if (CHK_PCI_PID(pcr, PID_524A) || CHK_PCI_PID(pcr, PID_525A)) in rts5249_extra_init_hw()
263 if (CHK_PCI_PID(pcr, PID_524A) || CHK_PCI_PID(pcr, PID_525A)) { in rts5249_extra_init_hw()
299 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x10, 0x00); in rts5249_extra_init_hw()
300 if (CHK_PCI_PID(pcr, PID_524A) || CHK_PCI_PID(pcr, PID_525A)) { in rts5249_extra_init_hw()
[all …]
A Drts5261.c69 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, in rts5261_force_power_down()
75 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x01, 0x00); in rts5261_force_power_down()
349 rtsx_pci_get_ocpstat(pcr, &pcr->ocp_stat); in rts5261_process_ocp()
355 pcr->ocp_stat = 0; in rts5261_process_ocp()
526 if (pcr->rtd3_en) { in rts5261_extra_init_hw()
527 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x01, 0x01); in rts5261_extra_init_hw()
532 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x01, 0x00); in rts5261_extra_init_hw()
536 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, D3_DELINK_MODE_EN, 0x00); in rts5261_extra_init_hw()
772 pcr->num_slots = 1; in rts5261_init_params()
775 pcr->flags = 0; in rts5261_init_params()
[all …]
A Drts5228.c102 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, in rts5228_force_power_down()
108 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x01, 0x00); in rts5228_force_power_down()
376 rtsx_pci_get_ocpstat(pcr, &pcr->ocp_stat); in rts5228_process_ocp()
382 pcr->ocp_stat = 0; in rts5228_process_ocp()
451 if (pcr->rtd3_en) { in rts5228_extra_init_hw()
452 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x01, 0x01); in rts5228_extra_init_hw()
457 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x01, 0x00); in rts5228_extra_init_hw()
461 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, D3_DELINK_MODE_EN, 0x00); in rts5228_extra_init_hw()
689 pcr->num_slots = 1; in rts5228_init_params()
692 pcr->flags = 0; in rts5228_init_params()
[all …]
A Drts5227.c108 rtsx_pci_init_cmd(pcr); in rts5227_extra_init_hw()
137 if (pcr->rtd3_en) { in rts5227_extra_init_hw()
162 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, pcr->reg_pm_ctrl3, 0x10, 0x00); in rts5227_extra_init_hw()
203 if (pcr->option.ocp_en) in rts5227_card_power_on()
206 rtsx_pci_init_cmd(pcr); in rts5227_card_power_on()
219 rtsx_pci_init_cmd(pcr); in rts5227_card_power_on()
235 if (pcr->option.ocp_en) in rts5227_card_power_off()
334 pcr->num_slots = 2; in rts5227_init_params()
337 pcr->flags = 0; in rts5227_init_params()
346 pcr->ic_version = rts5227_get_ic_version(pcr); in rts5227_init_params()
[all …]
A Drts5260.c260 rts5260_stop_cmd(pcr); in rts5260_card_before_power_off()
274 if (pcr->option.ocp_en) in rts5260_card_power_off()
365 rtsx_pci_get_ocpstat(pcr, &pcr->ocp_stat); in rts5260_process_ocp()
366 rts5260_get_ocpstat2(pcr, &pcr->ocp_stat2); in rts5260_process_ocp()
373 pcr->ocp_stat = 0; in rts5260_process_ocp()
374 pcr->ocp_stat2 = 0; in rts5260_process_ocp()
512 rts5260_init_hw(pcr); in rts5260_extra_init_hw()
525 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x10, 0x00); in rts5260_extra_init_hw()
589 pcr->num_slots = 2; in rts5260_init_params()
591 pcr->flags = 0; in rts5260_init_params()
[all …]
A Drts5229.c36 pcr->sd30_drive_sel_1v8 = in rts5229_fetch_vendor_settings()
38 pcr->card_drive_sel &= 0x3F; in rts5229_fetch_vendor_settings()
43 pcr->sd30_drive_sel_3v3 = in rts5229_fetch_vendor_settings()
54 rtsx_pci_init_cmd(pcr); in rts5229_extra_init_hw()
104 rtsx_pci_init_cmd(pcr); in rts5229_card_power_on()
116 rtsx_pci_init_cmd(pcr); in rts5229_card_power_on()
126 rtsx_pci_init_cmd(pcr); in rts5229_card_power_off()
241 pcr->num_slots = 2; in rts5229_init_params()
244 pcr->flags = 0; in rts5229_init_params()
248 pcr->aspm_en = ASPM_L1_EN; in rts5229_init_params()
[all …]
A Drts5209.c20 val = rtsx_pci_readb(pcr, 0x1C); in rts5209_get_ic_version()
34 pcr->flags |= PCR_MS_PMOS; 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()
57 rtsx_pci_init_cmd(pcr); in rts5209_extra_init_hw()
114 rtsx_pci_init_cmd(pcr); in rts5209_card_power_on()
126 rtsx_pci_init_cmd(pcr); in rts5209_card_power_on()
145 rtsx_pci_init_cmd(pcr); in rts5209_card_power_off()
250 pcr->num_slots = 2; in rts5209_init_params()
253 pcr->flags = 0; in rts5209_init_params()
[all …]
A Drtl8411.c51 pcr->sd30_drive_sel_1v8 = in rtl8411_fetch_vendor_settings()
53 pcr->card_drive_sel &= 0x3F; in rtl8411_fetch_vendor_settings()
73 pcr->sd30_drive_sel_1v8 = in rtl8411b_fetch_vendor_settings()
75 pcr->sd30_drive_sel_3v3 = in rtl8411b_fetch_vendor_settings()
86 rtsx_pci_init_cmd(pcr); in rtl8411_extra_init_hw()
98 rtsx_pci_init_cmd(pcr); in rtl8411b_extra_init_hw()
100 if (rtl8411b_is_qfn48(pcr)) in rtl8411b_extra_init_hw()
137 rtsx_pci_init_cmd(pcr); in rtl8411_card_power_on()
465 pcr->num_slots = 2; in rtl8411_init_common_params()
466 pcr->flags = 0; in rtl8411_init_common_params()
[all …]
A Drtsx_pcr.h64 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);
72 void rts525a_init_params(struct rtsx_pcr *pcr);
120 int rtsx_gops_pm_reset(struct rtsx_pcr *pcr);
[all …]
/drivers/mmc/host/
A Drtsx_pci_sdmmc.c149 struct rtsx_pcr *pcr = host->pcr; in sd_pre_dma_transfer() local
200 struct rtsx_pcr *pcr = host->pcr; in sdmmc_post_req() local
211 struct rtsx_pcr *pcr = host->pcr; in sd_send_cmd_get_rsp() local
329 struct rtsx_pcr *pcr = host->pcr; in sd_read_data() local
383 struct rtsx_pcr *pcr = host->pcr; in sd_write_data() local
429 struct rtsx_pcr *pcr = host->pcr; in sd_read_long_data() local
487 struct rtsx_pcr *pcr = host->pcr; in sd_write_long_data() local
617 struct rtsx_pcr *pcr = host->pcr; in sd_change_phase() local
1495 pcr = handle->pcr; in rtsx_pci_sdmmc_drv_probe()
1506 host->pcr = pcr; in rtsx_pci_sdmmc_drv_probe()
[all …]
/drivers/tty/serial/8250/
A D8250_ni.c83 u8 pcr; in ni16550_enable_transceivers() local
86 pcr |= NI16550_PCR_TXVR_ENABLE_BIT; in ni16550_enable_transceivers()
95 u8 pcr; in ni16550_disable_transceivers() local
97 pcr = serial_port_in(port, NI16550_PCR_OFFSET); in ni16550_disable_transceivers()
98 pcr &= ~NI16550_PCR_TXVR_ENABLE_BIT; in ni16550_disable_transceivers()
100 serial_port_out(port, NI16550_PCR_OFFSET, pcr); in ni16550_disable_transceivers()
110 u8 pcr; in ni16550_rs485_config() local
112 pcr = serial_port_in(port, NI16550_PCR_OFFSET); in ni16550_rs485_config()
113 pcr &= ~NI16550_PCR_WIRE_MODE_MASK; in ni16550_rs485_config()
118 pcr |= NI16550_PCR_RS422; in ni16550_rs485_config()
[all …]
/drivers/video/fbdev/
A Dimxfb.c44 u32 pcr; member
181 u_int pcr; member
377 u32 pcr = 0; in imxfb_check_var() local
413 pcr = (unsigned int)tmp; in imxfb_check_var()
415 if (--pcr > PCR_PCD_MASK) { in imxfb_check_var()
416 pcr = PCR_PCD_MASK; in imxfb_check_var()
418 lcd_clk / pcr); in imxfb_check_var()
445 pcr |= imxfb_mode->pcr & ~(PCR_PCD_MASK | PCR_BPIX_MASK); in imxfb_check_var()
447 fbi->pcr = pcr; in imxfb_check_var()
749 u32 pcr; in imxfb_of_read_mode() local
[all …]
/drivers/media/platform/ti/omap3isp/
A 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()
A 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/
A Dvidtv_pes.c183 static u32 vidtv_pes_write_pcr_bits(u8 *to, u32 to_offset, u64 pcr) in vidtv_pes_write_pcr_bits() argument
192 div = div64_u64_rem(pcr, 300, &rem); in vidtv_pes_write_pcr_bits()
247 args->pcr); in vidtv_pes_write_stuffing()
249 *last_pcr = args->pcr; in vidtv_pes_write_stuffing()
311 .pcr = args->pcr, in vidtv_pes_write_into()
328 u64 last_pcr = args->pcr; in vidtv_pes_write_into()
A 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()
A Dvidtv_pes.h129 u64 pcr; member
174 u64 pcr; member
/drivers/mtd/nand/raw/
A Dstm32_fmc2_nand.c323 u32 pcr = 0, pcr_mask; in stm32_fmc2_nfc_setup() local
329 pcr |= FMC2_PCR_ECCALG; in stm32_fmc2_nfc_setup()
330 pcr |= FMC2_PCR_BCHECC; in stm32_fmc2_nfc_setup()
332 pcr |= FMC2_PCR_ECCALG; in stm32_fmc2_nfc_setup()
416 u32 pcr; in stm32_fmc2_nfc_set_buswidth_16() local
1370 u32 pcr; in stm32_fmc2_nfc_init() local
1379 pcr |= FMC2_PCR_PBKEN; in stm32_fmc2_nfc_init()
1382 pcr &= ~FMC2_PCR_PWID; in stm32_fmc2_nfc_init()
1390 pcr &= ~FMC2_PCR_WEN; in stm32_fmc2_nfc_init()
1397 pcr &= ~FMC2_PCR_TCLR; in stm32_fmc2_nfc_init()
[all …]
/drivers/atm/
A Diphase.c166 if (iavcc_r->pcr < dev->rate_limit) { in ia_hack_tcq()
362 srv_p->pcr = dev->LineRate; in init_abr_vc()
389 if (srv_p->pcr == 0) in ia_open_abr_vc()
391 if (srv_p->pcr > dev->LineRate) in ia_open_abr_vc()
392 srv_p->pcr = dev->LineRate; in ia_open_abr_vc()
395 if (srv_p->mcr > srv_p->pcr) in ia_open_abr_vc()
398 srv_p->icr = srv_p->pcr; in ia_open_abr_vc()
1791 ia_vcc->pcr = vcc->qos.txtp.pcr;
1803 if (ia_vcc->pcr > 60000)
1845 srv_p.pcr = vcc->qos.txtp.pcr;
[all …]
A 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/
A Dsunsab.h37 u8 pcr; /* Port Configuration Register */ member
73 u8 pcr; member
109 u8 pcr; member
/drivers/net/wan/
A 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/scsi/qla2xxx/
A Dqla_dbg.c815 wrt_reg_word(&reg->pcr, 0x2000); in qla2300_fw_dump()
818 wrt_reg_word(&reg->pcr, 0x2200); in qla2300_fw_dump()
821 wrt_reg_word(&reg->pcr, 0x2400); in qla2300_fw_dump()
824 wrt_reg_word(&reg->pcr, 0x2600); in qla2300_fw_dump()
827 wrt_reg_word(&reg->pcr, 0x2800); in qla2300_fw_dump()
830 wrt_reg_word(&reg->pcr, 0x2A00); in qla2300_fw_dump()
833 wrt_reg_word(&reg->pcr, 0x2C00); in qla2300_fw_dump()
836 wrt_reg_word(&reg->pcr, 0x2E00); in qla2300_fw_dump()
959 wrt_reg_word(&reg->pcr, 0x2000); in qla2100_fw_dump()
962 wrt_reg_word(&reg->pcr, 0x2100); in qla2100_fw_dump()
[all …]

Completed in 813 milliseconds

12