Home
last modified time | relevance | path

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

1234

/linux-6.3-rc2/drivers/misc/cardreader/
A Drtsx_pcr.c110 pcr->ops->set_aspm(pcr, false); in rtsx_disable_aspm()
293 return pcr->ops->stop_cmd(pcr); in rtsx_pci_stop_cmd()
944 pcr->ops->process_ocp(pcr); in rtsx_pci_process_ocp()
1051 pcr->irq = pcr->pci->irq; in rtsx_pci_acquire_irq()
1074 pcr->ops->turn_off_led(pcr); in rtsx_pci_power_off()
1093 pcr->ops->enable_ocp(pcr); in rtsx_pci_enable_ocp()
1106 pcr->ops->disable_ocp(pcr); in rtsx_pci_disable_ocp()
1117 pcr->ops->init_ocp(pcr); in rtsx_pci_init_ocp()
1336 pcr->card_exist = pcr->ops->cd_deglitch(pcr); in rtsx_pci_init_hw()
1488 handle->pcr = pcr; in rtsx_pci_probe()
[all …]
A Drts5249.c77 if (CHK_PCI_PID(pcr, PID_524A) || CHK_PCI_PID(pcr, PID_525A)) in rtsx_base_fetch_vendor_settings()
100 if (CHK_PCI_PID(pcr, PID_524A) || CHK_PCI_PID(pcr, PID_525A)) { in rts5249_init_from_cfg()
212 rtsx_pci_write_register(pcr, 0xFF04, 0xFF, (u8)PCI_VID(pcr)); in rts52xa_save_content_from_efuse()
214 rtsx_pci_write_register(pcr, 0xFF06, 0xFF, (u8)PCI_PID(pcr)); in rts52xa_save_content_from_efuse()
267 rtsx_pci_write_register(pcr, 0xFF04, 0xFF, (u8)PCI_VID(pcr)); in rts52xa_save_content_to_autoload_space()
269 rtsx_pci_write_register(pcr, 0xFF06, 0xFF, (u8)PCI_PID(pcr)); in rts52xa_save_content_to_autoload_space()
283 if (CHK_PCI_PID(pcr, PID_524A) || CHK_PCI_PID(pcr, PID_525A)) in rts5249_extra_init_hw()
306 if (CHK_PCI_PID(pcr, PID_524A) || CHK_PCI_PID(pcr, PID_525A)) { in rts5249_extra_init_hw()
342 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x10, 0x00); in rts5249_extra_init_hw()
589 pcr->flags = 0; in rts5249_init_params()
[all …]
A Drts5227.c151 rtsx_pci_init_cmd(pcr); in rts5227_extra_init_hw()
180 if (pcr->rtd3_en) { in rts5227_extra_init_hw()
205 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, pcr->reg_pm_ctrl3, 0x10, 0x00); in rts5227_extra_init_hw()
246 if (pcr->option.ocp_en) in rts5227_card_power_on()
249 rtsx_pci_init_cmd(pcr); in rts5227_card_power_on()
262 rtsx_pci_init_cmd(pcr); in rts5227_card_power_on()
278 if (pcr->option.ocp_en) in rts5227_card_power_off()
377 pcr->num_slots = 2; in rts5227_init_params()
380 pcr->flags = 0; in rts5227_init_params()
389 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()
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 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()
256 rts5261_stop_cmd(pcr); in rts5261_card_before_power_off()
349 rtsx_pci_get_ocpstat(pcr, &pcr->ocp_stat); in rts5261_process_ocp()
355 pcr->ocp_stat = 0; in rts5261_process_ocp()
570 if (pcr->rtd3_en) { in rts5261_extra_init_hw()
571 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x01, 0x01); in rts5261_extra_init_hw()
576 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x01, 0x00); in rts5261_extra_init_hw()
816 pcr->num_slots = 1; in rts5261_init_params()
819 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()
492 if (pcr->rtd3_en) { in rts5228_extra_init_hw()
493 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x01, 0x01); in rts5228_extra_init_hw()
498 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x01, 0x00); in rts5228_extra_init_hw()
502 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, D3_DELINK_MODE_EN, 0x00); in rts5228_extra_init_hw()
730 pcr->num_slots = 1; in rts5228_init_params()
733 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.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);
119 int rtsx_gops_pm_reset(struct rtsx_pcr *pcr);
[all …]
/linux-6.3-rc2/drivers/mmc/host/
A Drtsx_pci_sdmmc.c150 struct rtsx_pcr *pcr = host->pcr; in sd_pre_dma_transfer() local
201 struct rtsx_pcr *pcr = host->pcr; in sdmmc_post_req() local
212 struct rtsx_pcr *pcr = host->pcr; in sd_send_cmd_get_rsp() local
330 struct rtsx_pcr *pcr = host->pcr; in sd_read_data() local
384 struct rtsx_pcr *pcr = host->pcr; in sd_write_data() local
430 struct rtsx_pcr *pcr = host->pcr; in sd_read_long_data() local
488 struct rtsx_pcr *pcr = host->pcr; in sd_write_long_data() local
618 struct rtsx_pcr *pcr = host->pcr; in sd_change_phase() local
1482 pcr = handle->pcr; in rtsx_pci_sdmmc_drv_probe()
1493 host->pcr = pcr; in rtsx_pci_sdmmc_drv_probe()
[all …]
/linux-6.3-rc2/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-6.3-rc2/include/linux/
A Drtsx_pci.h1074 #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-6.3-rc2/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-6.3-rc2/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.c105 const unsigned char *filename, int pcr) in ima_store_template() argument
122 entry->pcr = pcr; in ima_store_template()
192 enum ima_hooks func, int *pcr, in ima_get_action() argument
201 flags, pcr, template_desc, func_data, in ima_get_action()
343 int xattr_len, const struct modsig *modsig, int pcr, in ima_store_measurement() argument
365 if (iint->measured_pcrs & (0x1 << pcr) && !modsig) in ima_store_measurement()
375 result = ima_store_template(entry, violation, inode, filename, pcr); in ima_store_measurement()
378 iint->measured_pcrs |= (0x1 << pcr); in ima_store_measurement()
A Dima.h99 int pcr; member
260 enum ima_hooks func, int *pcr,
270 int xattr_len, const struct modsig *modsig, int pcr,
275 int pcr, const char *func_data,
284 const unsigned char *filename, int pcr);
291 int mask, int flags, int *pcr,
316 const struct modsig *modsig, int pcr);
334 const struct modsig *modsig, int pcr) in ima_check_blacklist() argument
A Dima_main.c213 int pcr = CONFIG_IMA_MEASURE_PCR_IDX; in process_measurement() local
229 mask, func, &pcr, &template_desc, NULL, in process_measurement()
350 xattr_value, xattr_len, modsig, pcr, in process_measurement()
353 rc = ima_check_blacklist(iint, modsig, pcr); in process_measurement()
461 int pcr; in ima_file_mprotect() local
472 &pcr, &template, NULL, NULL); in ima_file_mprotect()
475 MMAP_CHECK_REQPROT, &pcr, &template, NULL, in ima_file_mprotect()
913 int pcr, const char *func_data, in process_buffer_measurement() argument
955 secid, 0, func, &pcr, &template, in process_buffer_measurement()
961 if (!pcr) in process_buffer_measurement()
[all …]
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/drivers/video/fbdev/
A Dimxfb.c52 u32 pcr; member
174 u_int pcr; member
370 u32 pcr = 0; in imxfb_check_var() local
408 if (--pcr > 0x3F) { in imxfb_check_var()
409 pcr = 0x3F; in imxfb_check_var()
411 lcd_clk / pcr); in imxfb_check_var()
432 pcr |= PCR_BPIX_8; in imxfb_check_var()
438 pcr |= imxfb_mode->pcr & ~(0x3f | (7 << 25)); in imxfb_check_var()
440 fbi->pcr = pcr; in imxfb_check_var()
727 u32 pcr; in imxfb_of_read_mode() local
[all …]
/linux-6.3-rc2/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-6.3-rc2/drivers/media/test-drivers/vidtv/
A 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()
/linux-6.3-rc2/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()
/linux-6.3-rc2/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 …]

Completed in 91 milliseconds

1234