Home
last modified time | relevance | path

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

1234

/linux/drivers/misc/cardreader/
A Drtsx_pcr.c110 pcr->ops->set_aspm(pcr, false); in rtsx_disable_aspm()
1059 pcr->irq = pcr->pci->irq; in rtsx_pci_acquire_irq()
1167 pcr->ops->enable_ocp(pcr); in rtsx_pci_enable_ocp()
1191 pcr->ops->init_ocp(pcr); in rtsx_pci_init_ocp()
1410 pcr->card_exist = pcr->ops->cd_deglitch(pcr); in rtsx_pci_init_hw()
1562 handle->pcr = pcr; in rtsx_pci_probe()
1726 pcr = handle->pcr; in rtsx_pci_suspend()
1751 pcr = handle->pcr; in rtsx_pci_resume()
1780 pcr = handle->pcr; in rtsx_pci_shutdown()
1796 pcr = handle->pcr; in rtsx_pci_runtime_suspend()
[all …]
A Drts5249.c99 if (CHK_PCI_PID(pcr, PID_524A) || CHK_PCI_PID(pcr, PID_525A)) { in rts5249_init_from_cfg()
190 rtsx_pci_write_register(pcr, 0xFF04, 0xFF, (u8)PCI_VID(pcr)); in rts52xa_save_content_from_efuse()
192 rtsx_pci_write_register(pcr, 0xFF06, 0xFF, (u8)PCI_PID(pcr)); in rts52xa_save_content_from_efuse()
245 rtsx_pci_write_register(pcr, 0xFF04, 0xFF, (u8)PCI_VID(pcr)); in rts52xa_save_content_to_autoload_space()
247 rtsx_pci_write_register(pcr, 0xFF06, 0xFF, (u8)PCI_PID(pcr)); in rts52xa_save_content_to_autoload_space()
261 if (CHK_PCI_PID(pcr, PID_524A) || CHK_PCI_PID(pcr, PID_525A)) in rts5249_extra_init_hw()
284 if (CHK_PCI_PID(pcr, PID_524A) || CHK_PCI_PID(pcr, PID_525A)) in rts5249_extra_init_hw()
317 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x10, 0x00); in rts5249_extra_init_hw()
318 if (CHK_PCI_PID(pcr, PID_524A) || CHK_PCI_PID(pcr, PID_525A)) { in rts5249_extra_init_hw()
564 pcr->flags = 0; in rts5249_init_params()
[all …]
A Drts5261.c103 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, in rts5261_force_power_down()
272 rts5261_stop_cmd(pcr); in rts5261_card_before_power_off()
310 if (pcr->option.ocp_en) in rts5261_card_power_off()
365 rtsx_pci_get_ocpstat(pcr, &pcr->ocp_stat); in rts5261_process_ocp()
371 pcr->ocp_stat = 0; in rts5261_process_ocp()
539 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x10, 0x00); in rts5261_extra_init_hw()
674 clk, pcr->cur_clock); in rts5261_pci_switch_clock()
763 pcr->cur_clock = clk; in rts5261_pci_switch_clock()
778 pcr->num_slots = 1; in rts5261_init_params()
781 pcr->flags = 0; in rts5261_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()
547 rts5260_init_hw(pcr); in rts5260_extra_init_hw()
560 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x10, 0x00); in rts5260_extra_init_hw()
624 pcr->num_slots = 2; in rts5260_init_params()
626 pcr->flags = 0; in rts5260_init_params()
[all …]
A Drts5227.c149 rtsx_pci_init_cmd(pcr); in rts5227_extra_init_hw()
181 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, pcr->reg_pm_ctrl3, 0x10, 0x00); in rts5227_extra_init_hw()
222 if (pcr->option.ocp_en) in rts5227_card_power_on()
225 rtsx_pci_init_cmd(pcr); in rts5227_card_power_on()
238 rtsx_pci_init_cmd(pcr); in rts5227_card_power_on()
254 if (pcr->option.ocp_en) in rts5227_card_power_off()
284 rtsx_pci_init_cmd(pcr); in rts5227_switch_output_voltage()
353 pcr->num_slots = 2; in rts5227_init_params()
356 pcr->flags = 0; in rts5227_init_params()
365 pcr->ic_version = rts5227_get_ic_version(pcr); in rts5227_init_params()
[all …]
A Drts5228.c102 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, in rts5228_force_power_down()
276 rts5228_stop_cmd(pcr); in rts5228_card_before_power_off()
310 if (pcr->option.ocp_en) in rts5228_card_power_off()
368 rtsx_pci_get_ocpstat(pcr, &pcr->ocp_stat); in rts5228_process_ocp()
374 pcr->ocp_stat = 0; in rts5228_process_ocp()
483 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x10, 0x00); in rts5228_extra_init_hw()
613 clk, pcr->cur_clock); in rts5228_pci_switch_clock()
702 pcr->cur_clock = clk; in rts5228_pci_switch_clock()
713 pcr->num_slots = 1; in rts5228_init_params()
716 pcr->flags = 0; in rts5228_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.h61 void rts5209_init_params(struct rtsx_pcr *pcr);
62 void rts5229_init_params(struct rtsx_pcr *pcr);
63 void rtl8411_init_params(struct rtsx_pcr *pcr);
64 void rtl8402_init_params(struct rtsx_pcr *pcr);
65 void rts5227_init_params(struct rtsx_pcr *pcr);
66 void rts522a_init_params(struct rtsx_pcr *pcr);
67 void rts5249_init_params(struct rtsx_pcr *pcr);
68 void rts524a_init_params(struct rtsx_pcr *pcr);
69 void rts525a_init_params(struct rtsx_pcr *pcr);
116 int rtsx_gops_pm_reset(struct rtsx_pcr *pcr);
[all …]
/linux/drivers/mmc/host/
A Drtsx_pci_sdmmc.c153 struct rtsx_pcr *pcr = host->pcr; in sd_pre_dma_transfer() local
204 struct rtsx_pcr *pcr = host->pcr; in sdmmc_post_req() local
215 struct rtsx_pcr *pcr = host->pcr; in sd_send_cmd_get_rsp() local
333 struct rtsx_pcr *pcr = host->pcr; in sd_read_data() local
387 struct rtsx_pcr *pcr = host->pcr; in sd_write_data() local
433 struct rtsx_pcr *pcr = host->pcr; in sd_read_long_data() local
491 struct rtsx_pcr *pcr = host->pcr; in sd_write_long_data() local
621 struct rtsx_pcr *pcr = host->pcr; in sd_change_phase() local
1473 pcr = handle->pcr; in rtsx_pci_sdmmc_drv_probe()
1484 host->pcr = pcr; in rtsx_pci_sdmmc_drv_probe()
[all …]
/linux/drivers/memstick/host/
A Drtsx_pci_ms.c48 struct rtsx_pcr *pcr = host->pcr; in ms_print_debug_regs() local
75 struct rtsx_pcr *pcr = host->pcr; in ms_power_on() local
109 struct rtsx_pcr *pcr = host->pcr; in ms_power_off() local
131 struct rtsx_pcr *pcr = host->pcr; in ms_transfer_data() local
202 struct rtsx_pcr *pcr = host->pcr; in ms_write_bytes() local
270 struct rtsx_pcr *pcr = host->pcr; in ms_read_bytes() local
393 struct rtsx_pcr *pcr = host->pcr; in rtsx_pci_ms_handle_req() local
436 struct rtsx_pcr *pcr = host->pcr; in rtsx_pci_ms_set_param() local
542 pcr = handle->pcr; in rtsx_pci_ms_drv_probe()
554 host->pcr = pcr; in rtsx_pci_ms_drv_probe()
[all …]
/linux/include/linux/
A Drtsx_pci.h1071 #define rtsx_pci_init_cmd(pcr) ((pcr)->ci = 0) argument
1275 #define CHK_PCI_PID(pcr, pid) ((pcr)->pci->device == (pid)) argument
1276 #define PCI_VID(pcr) ((pcr)->pci->vendor) argument
1277 #define PCI_PID(pcr) ((pcr)->pci->device) argument
1279 (CHK_PCI_PID(pcr, pid) && (pcr)->ic_version == (ver))
1281 (CHK_PCI_PID(pcr, pid) && (pcr)->ic_version > (ver))
1288 #define SDR104_TX_PHASE(pcr) SDR104_PHASE((pcr)->tx_initial_phase) argument
1289 #define SDR50_TX_PHASE(pcr) SDR50_PHASE((pcr)->tx_initial_phase) argument
1290 #define DDR50_TX_PHASE(pcr) DDR50_PHASE((pcr)->tx_initial_phase) argument
1292 #define SDR50_RX_PHASE(pcr) SDR50_PHASE((pcr)->rx_initial_phase) argument
[all …]
/linux/sound/soc/ti/
A Ddavinci-i2s.c136 u32 pcr; member
223 unsigned int pcr; in davinci_i2s_set_dai_fmt() local
236 pcr = DAVINCI_MCBSP_PCR_FSXM | in davinci_i2s_set_dai_fmt()
242 pcr = DAVINCI_MCBSP_PCR_FSRM | DAVINCI_MCBSP_PCR_FSXM; in davinci_i2s_set_dai_fmt()
251 pcr |= DAVINCI_MCBSP_PCR_CLKXM | in davinci_i2s_set_dai_fmt()
255 pcr |= DAVINCI_MCBSP_PCR_SCLKME; in davinci_i2s_set_dai_fmt()
265 pcr = 0; in davinci_i2s_set_dai_fmt()
327 pcr |= (DAVINCI_MCBSP_PCR_FSXP | DAVINCI_MCBSP_PCR_FSRP); in davinci_i2s_set_dai_fmt()
357 pcr ^= (DAVINCI_MCBSP_PCR_FSXP | DAVINCI_MCBSP_PCR_FSRP); in davinci_i2s_set_dai_fmt()
359 dev->pcr = pcr; in davinci_i2s_set_dai_fmt()
[all …]
/linux/security/integrity/ima/
A Dima_queue.c49 int pcr) in ima_lookup_digest_entry() argument
60 if ((rc == 0) && (qe->entry->pcr == pcr)) { in ima_lookup_digest_entry()
138 static int ima_pcr_extend(struct tpm_digest *digests_arg, int pcr) in ima_pcr_extend() argument
145 result = tpm_pcr_extend(ima_tpm_chip, pcr, digests_arg); in ima_pcr_extend()
172 if (ima_lookup_digest_entry(digest, entry->pcr)) { in ima_add_template_entry()
190 tpmresult = ima_pcr_extend(digests_arg, entry->pcr); in ima_add_template_entry()
A Dima_api.c104 const unsigned char *filename, int pcr) in ima_store_template() argument
121 entry->pcr = pcr; in ima_store_template()
190 enum ima_hooks func, int *pcr, in ima_get_action() argument
199 flags, pcr, template_desc, func_data, in ima_get_action()
303 int xattr_len, const struct modsig *modsig, int pcr, in ima_store_measurement() argument
325 if (iint->measured_pcrs & (0x1 << pcr) && !modsig) in ima_store_measurement()
335 result = ima_store_template(entry, violation, inode, filename, pcr); in ima_store_measurement()
338 iint->measured_pcrs |= (0x1 << pcr); in ima_store_measurement()
A Dima.h99 int pcr; member
259 enum ima_hooks func, int *pcr,
269 int xattr_len, const struct modsig *modsig, int pcr,
274 int pcr, const char *func_data,
283 const unsigned char *filename, int pcr);
290 int mask, int flags, int *pcr,
315 const struct modsig *modsig, int pcr);
333 const struct modsig *modsig, int pcr) in ima_check_blacklist() argument
A Dima_main.c212 int pcr = CONFIG_IMA_MEASURE_PCR_IDX; in process_measurement() local
228 mask, func, &pcr, &template_desc, NULL, in process_measurement()
290 if ((action & IMA_MEASURE) && (iint->measured_pcrs & (0x1 << pcr))) in process_measurement()
346 xattr_value, xattr_len, modsig, pcr, in process_measurement()
349 rc = ima_check_blacklist(iint, modsig, pcr); in process_measurement()
442 int pcr; in ima_file_mprotect() local
453 &pcr, &template, NULL, NULL); in ima_file_mprotect()
865 int pcr, const char *func_data, in process_buffer_measurement() argument
910 secid, 0, func, &pcr, &template, in process_buffer_measurement()
916 if (!pcr) in process_buffer_measurement()
[all …]
/linux/sound/firewire/
A Dcmp.c75 int (*check)(struct cmp_connection *c, __be32 pcr), in pcr_modify() argument
162 __be32 pcr; in cmp_connection_check_used() local
167 pcr_address(c), &pcr, 4, 0); in cmp_connection_check_used()
169 *used = !!(pcr & cpu_to_be32(PCR_BCAST_CONN | in cmp_connection_check_used()
278 static int pcr_set_check(struct cmp_connection *c, __be32 pcr) in pcr_set_check() argument
280 if (pcr & cpu_to_be32(PCR_BCAST_CONN | in pcr_set_check()
285 if (!(pcr & cpu_to_be32(PCR_ONLINE))) { in pcr_set_check()
383 static __be32 pcr_break_modify(struct cmp_connection *c, __be32 pcr) in pcr_break_modify() argument
385 return pcr & ~cpu_to_be32(PCR_BCAST_CONN | PCR_P2P_CONN_MASK); in pcr_break_modify()
/linux/arch/powerpc/platforms/86xx/
A Dmpc86xx_smp.c38 unsigned long pcr; in smp_86xx_release_core() local
48 pcr = in_be32(mcm_vaddr + (MCM_PORT_CONFIG_OFFSET >> 2)); in smp_86xx_release_core()
49 pcr |= 1 << (nr + 24); in smp_86xx_release_core()
50 out_be32(mcm_vaddr + (MCM_PORT_CONFIG_OFFSET >> 2), pcr); in smp_86xx_release_core()
/linux/drivers/video/fbdev/
A Dimxfb.c163 u_int pcr; member
359 u32 pcr = 0; in imxfb_check_var() local
397 if (--pcr > 0x3F) { in imxfb_check_var()
398 pcr = 0x3F; in imxfb_check_var()
400 lcd_clk / pcr); in imxfb_check_var()
405 pcr |= PCR_BPIX_18; in imxfb_check_var()
421 pcr |= PCR_BPIX_8; in imxfb_check_var()
427 pcr |= imxfb_mode->pcr & ~(0x3f | (7 << 25)); in imxfb_check_var()
429 fbi->pcr = pcr; in imxfb_check_var()
722 u32 pcr; in imxfb_of_read_mode() local
[all …]
/linux/net/atm/
A Datm_misc.c78 if (tp->pcr && tp->pcr != ATM_MAX_PCR) in atm_pcr_goal()
79 return -tp->pcr; in atm_pcr_goal()
80 if (tp->min_pcr && !tp->pcr) in atm_pcr_goal()
/linux/drivers/atm/
A Dhorizon.c2087 pcr, tp->min_pcr, tp->pcr, tp->max_pcr); in atm_pcr_check()
2226 if (!pcr) { in hrz_open()
2239 pcr = -pcr; in hrz_open()
2267 if (!pcr) { in hrz_open()
2269 pcr = 1<<30; in hrz_open()
2272 pcr = -pcr; in hrz_open()
2306 bucket = mbs*(pcr-scr)/pcr; in hrz_open()
2307 if (bucket*pcr != mbs*(pcr-scr)) in hrz_open()
2355 if (!pcr) { in hrz_open()
2361 pcr = -pcr; in hrz_open()
[all …]
/linux/arch/sparc/kernel/
A Dperf_event.c108 u64 pcr[MAX_HWEVENTS]; member
740 u64 pcr; in sparc_vt_write_pmc() local
742 pcr = pcr_ops->read_pcr(idx); in sparc_vt_write_pmc()
744 pcr &= ~(PCR_N4_OV | PCR_N4_NTC); in sparc_vt_write_pmc()
748 pcr_ops->write_pcr(idx, pcr); in sparc_vt_write_pmc()
837 val = cpuc->pcr[pcr_index]; in sparc_pmu_enable_event()
840 cpuc->pcr[pcr_index] = val; in sparc_pmu_enable_event()
855 val = cpuc->pcr[pcr_index]; in sparc_pmu_disable_event()
858 cpuc->pcr[pcr_index] = val; in sparc_pmu_disable_event()
1059 u64 val = cpuc->pcr[i]; in sparc_pmu_disable()
[all …]
/linux/drivers/media/platform/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()

Completed in 787 milliseconds

1234