| /linux/drivers/misc/cardreader/ |
| A D | rtsx_pcr.c | 112 pcr->ops->set_aspm(pcr, false); in rtsx_disable_aspm() 295 return pcr->ops->stop_cmd(pcr); in rtsx_pci_stop_cmd() 949 pcr->ops->process_ocp(pcr); in rtsx_pci_process_ocp() 1059 pcr->irq = pcr->pci->irq; in rtsx_pci_acquire_irq() 1082 pcr->ops->turn_off_led(pcr); in rtsx_pci_power_off() 1101 pcr->ops->enable_ocp(pcr); in rtsx_pci_enable_ocp() 1114 pcr->ops->disable_ocp(pcr); in rtsx_pci_disable_ocp() 1125 pcr->ops->init_ocp(pcr); in rtsx_pci_init_ocp() 1354 pcr->card_exist = pcr->ops->cd_deglitch(pcr); in rtsx_pci_init_hw() 1554 handle->pcr = pcr; in rtsx_pci_probe() [all …]
|
| A D | rts5249.c | 77 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() 546 pcr->flags = 0; in rts5249_init_params() [all …]
|
| A D | rts5227.c | 108 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 D | rts5264.c | 66 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() 591 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x01, 0x00); in rts5264_extra_init_hw() 595 rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x01, 0x00); in rts5264_extra_init_hw() 855 pcr->flags = 0; in rts5264_init_params() [all …]
|
| A D | rts5261.c | 69 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() 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() 772 pcr->num_slots = 1; in rts5261_init_params() 775 pcr->flags = 0; in rts5261_init_params() [all …]
|
| A D | rts5228.c | 102 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 D | rts5260.c | 260 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 D | rts5229.c | 36 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 D | rts5209.c | 20 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 D | rtl8411.c | 51 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 D | rtsx_pcr.h | 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); 72 void rts525a_init_params(struct rtsx_pcr *pcr); 120 int rtsx_gops_pm_reset(struct rtsx_pcr *pcr); [all …]
|
| /linux/drivers/mmc/host/ |
| A D | rtsx_pci_sdmmc.c | 151 struct rtsx_pcr *pcr = host->pcr; in sd_pre_dma_transfer() local 202 struct rtsx_pcr *pcr = host->pcr; in sdmmc_post_req() local 213 struct rtsx_pcr *pcr = host->pcr; in sd_send_cmd_get_rsp() local 331 struct rtsx_pcr *pcr = host->pcr; in sd_read_data() local 385 struct rtsx_pcr *pcr = host->pcr; in sd_write_data() local 431 struct rtsx_pcr *pcr = host->pcr; in sd_read_long_data() local 489 struct rtsx_pcr *pcr = host->pcr; in sd_write_long_data() local 619 struct rtsx_pcr *pcr = host->pcr; in sd_change_phase() local 1497 pcr = handle->pcr; in rtsx_pci_sdmmc_drv_probe() 1508 host->pcr = pcr; in rtsx_pci_sdmmc_drv_probe() [all …]
|
| /linux/include/linux/ |
| A D | rtsx_pci.h | 1080 #define rtsx_pci_init_cmd(pcr) ((pcr)->ci = 0) argument 1283 #define CHK_PCI_PID(pcr, pid) ((pcr)->pci->device == (pid)) argument 1284 #define PCI_VID(pcr) ((pcr)->pci->vendor) argument 1285 #define PCI_PID(pcr) ((pcr)->pci->device) argument 1287 (CHK_PCI_PID(pcr, pid) && (pcr)->ic_version == (ver)) 1289 (CHK_PCI_PID(pcr, pid) && (pcr)->ic_version > (ver)) 1296 #define SDR104_TX_PHASE(pcr) SDR104_PHASE((pcr)->tx_initial_phase) argument 1297 #define SDR50_TX_PHASE(pcr) SDR50_PHASE((pcr)->tx_initial_phase) argument 1298 #define DDR50_TX_PHASE(pcr) DDR50_PHASE((pcr)->tx_initial_phase) argument 1300 #define SDR50_RX_PHASE(pcr) SDR50_PHASE((pcr)->rx_initial_phase) argument [all …]
|
| /linux/security/integrity/ima/ |
| A D | ima_queue.c | 49 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 D | ima_api.c | 104 const unsigned char *filename, int pcr) in ima_store_template() argument 121 entry->pcr = pcr; in ima_store_template() 191 enum ima_hooks func, int *pcr, in ima_get_action() argument 200 flags, pcr, template_desc, func_data, in ima_get_action() 351 int xattr_len, const struct modsig *modsig, int pcr, in ima_store_measurement() argument 373 if (iint->measured_pcrs & (0x1 << pcr) && !modsig) in ima_store_measurement() 383 result = ima_store_template(entry, violation, inode, filename, pcr); in ima_store_measurement() 386 iint->measured_pcrs |= (0x1 << pcr); in ima_store_measurement()
|
| A D | ima.h | 107 int pcr; member 373 enum ima_hooks func, int *pcr, 383 int xattr_len, const struct modsig *modsig, int pcr, 388 int pcr, const char *func_data, 397 const unsigned char *filename, int pcr); 404 int mask, int flags, int *pcr, 429 const struct modsig *modsig, int pcr); 447 const struct modsig *modsig, int pcr) in ima_check_blacklist() argument
|
| A D | ima_main.c | 220 int pcr = CONFIG_IMA_MEASURE_PCR_IDX; in process_measurement() local 236 mask, func, &pcr, &template_desc, NULL, in process_measurement() 381 xattr_value, xattr_len, modsig, pcr, in process_measurement() 384 rc = ima_check_blacklist(iint, modsig, pcr); in process_measurement() 494 int pcr; in ima_file_mprotect() local 505 &pcr, &template, NULL, NULL); in ima_file_mprotect() 508 MMAP_CHECK_REQPROT, &pcr, &template, NULL, in ima_file_mprotect() 951 int pcr, const char *func_data, in process_buffer_measurement() argument 995 secid, 0, func, &pcr, &template, in process_buffer_measurement() 1001 if (!pcr) in process_buffer_measurement() [all …]
|
| /linux/sound/soc/ti/ |
| A D | davinci-i2s.c | 133 u32 pcr; member 283 unsigned int pcr; in davinci_i2s_set_dai_fmt() local 314 pcr = DAVINCI_MCBSP_PCR_FSXM | in davinci_i2s_set_dai_fmt() 329 pcr = DAVINCI_MCBSP_PCR_FSRM | DAVINCI_MCBSP_PCR_FSXM; in davinci_i2s_set_dai_fmt() 330 pcr |= DAVINCI_MCBSP_PCR_SCLKME; in davinci_i2s_set_dai_fmt() 334 pcr = DAVINCI_MCBSP_PCR_CLKXM | in davinci_i2s_set_dai_fmt() 345 pcr = 0; in davinci_i2s_set_dai_fmt() 407 pcr |= (DAVINCI_MCBSP_PCR_FSXP | DAVINCI_MCBSP_PCR_FSRP); in davinci_i2s_set_dai_fmt() 437 pcr ^= (DAVINCI_MCBSP_PCR_FSXP | DAVINCI_MCBSP_PCR_FSRP); in davinci_i2s_set_dai_fmt() 439 dev->pcr = pcr; in davinci_i2s_set_dai_fmt() [all …]
|
| /linux/arch/powerpc/platforms/86xx/ |
| A D | mpc86xx_smp.c | 38 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/sound/firewire/ |
| A D | cmp.c | 75 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/drivers/video/fbdev/ |
| A D | imxfb.c | 44 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 …]
|
| /linux/net/atm/ |
| A D | atm_misc.c | 78 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/media/platform/ti/omap3isp/ |
| A D | isph3a_af.c | 29 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/drivers/media/test-drivers/vidtv/ |
| A D | vidtv_pes.c | 183 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()
|
| /linux/arch/sparc/kernel/ |
| A D | perf_event.c | 108 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 …]
|