Home
last modified time | relevance | path

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

1234

/Linux-v5.10/drivers/misc/cardreader/
Drtsx_pcr.c60 static inline void rtsx_pci_disable_aspm(struct rtsx_pcr *pcr) in rtsx_pci_disable_aspm() argument
62 pcie_capability_clear_and_set_word(pcr->pci, PCI_EXP_LNKCTL, in rtsx_pci_disable_aspm()
66 static int rtsx_comm_set_ltr_latency(struct rtsx_pcr *pcr, u32 latency) in rtsx_comm_set_ltr_latency() argument
68 rtsx_pci_write_register(pcr, MSGTXDATA0, in rtsx_comm_set_ltr_latency()
70 rtsx_pci_write_register(pcr, MSGTXDATA1, in rtsx_comm_set_ltr_latency()
72 rtsx_pci_write_register(pcr, MSGTXDATA2, in rtsx_comm_set_ltr_latency()
74 rtsx_pci_write_register(pcr, MSGTXDATA3, in rtsx_comm_set_ltr_latency()
76 rtsx_pci_write_register(pcr, LTR_CTL, LTR_TX_EN_MASK | in rtsx_comm_set_ltr_latency()
82 int rtsx_set_ltr_latency(struct rtsx_pcr *pcr, u32 latency) in rtsx_set_ltr_latency() argument
84 return rtsx_comm_set_ltr_latency(pcr, latency); in rtsx_set_ltr_latency()
[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 …]
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 …]
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 rtsx5261_fetch_vendor_settings(struct rtsx_pcr *pcr) in rtsx5261_fetch_vendor_settings() argument
62 struct pci_dev *pdev = pcr->pci; in rtsx5261_fetch_vendor_settings()
[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 …]
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.h58 int __rtsx_pci_write_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 val);
59 int __rtsx_pci_read_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 *val);
61 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);
[all …]
/Linux-v5.10/drivers/mmc/host/
Drtsx_pci_sdmmc.c26 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 …]
/Linux-v5.10/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 …]
/Linux-v5.10/include/linux/
Drtsx_pci.h89 #define rtsx_pci_writel(pcr, reg, value) \ argument
90 iowrite32(value, (pcr)->remap_addr + reg)
91 #define rtsx_pci_readl(pcr, reg) \ argument
92 ioread32((pcr)->remap_addr + reg)
93 #define rtsx_pci_writew(pcr, reg, value) \ argument
94 iowrite16(value, (pcr)->remap_addr + reg)
95 #define rtsx_pci_readw(pcr, reg) \ argument
96 ioread16((pcr)->remap_addr + reg)
97 #define rtsx_pci_writeb(pcr, reg, value) \ argument
98 iowrite8(value, (pcr)->remap_addr + reg)
[all …]
/Linux-v5.10/sound/soc/ti/
Ddavinci-i2s.c136 u32 pcr; member
183 davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_PCR_REG, dev->pcr ^ m); in toggle_clock()
184 davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_PCR_REG, dev->pcr); in toggle_clock()
198 if (dev->pcr & (DAVINCI_MCBSP_PCR_FSXM | DAVINCI_MCBSP_PCR_FSRM)) { in davinci_mcbsp_start()
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()
[all …]
/Linux-v5.10/security/integrity/ima/
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()
189 tpmresult = ima_pcr_extend(digests_arg, entry->pcr); in ima_add_template_entry()
Dima_api.c104 const unsigned char *filename, int pcr) in ima_store_template() argument
121 entry->pcr = pcr; in ima_store_template()
187 int mask, enum ima_hooks func, int *pcr, in ima_get_action() argument
195 return ima_match_policy(inode, cred, secid, func, mask, flags, pcr, in ima_get_action()
299 int xattr_len, const struct modsig *modsig, int pcr, in ima_store_measurement() argument
321 if (iint->measured_pcrs & (0x1 << pcr) && !modsig) in ima_store_measurement()
331 result = ima_store_template(entry, violation, inode, filename, pcr); in ima_store_measurement()
334 iint->measured_pcrs |= (0x1 << pcr); in ima_store_measurement()
Dima.h100 int pcr; member
256 int mask, enum ima_hooks func, int *pcr,
266 int xattr_len, const struct modsig *modsig, int pcr,
270 int pcr, const char *keyring);
278 const unsigned char *filename, int pcr);
284 enum ima_hooks func, int mask, int flags, int *pcr,
309 const struct modsig *modsig, int pcr);
326 const struct modsig *modsig, int pcr) in ima_check_blacklist() argument
Dima_main.c207 int pcr = CONFIG_IMA_MEASURE_PCR_IDX; in process_measurement() local
221 action = ima_get_action(inode, cred, secid, mask, func, &pcr, in process_measurement()
283 if ((action & IMA_MEASURE) && (iint->measured_pcrs & (0x1 << pcr))) in process_measurement()
339 xattr_value, xattr_len, modsig, pcr, in process_measurement()
342 rc = ima_check_blacklist(iint, modsig, pcr); in process_measurement()
425 int pcr; in ima_file_mprotect() local
435 MMAP_CHECK, &pcr, &template, 0); in ima_file_mprotect()
795 int pcr, const char *keyring) in process_buffer_measurement() argument
827 &pcr, &template, keyring); in process_buffer_measurement()
832 if (!pcr) in process_buffer_measurement()
[all …]
/Linux-v5.10/arch/powerpc/platforms/86xx/
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-v5.10/sound/firewire/
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-v5.10/net/atm/
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-v5.10/drivers/video/fbdev/
Dimxfb.c163 u_int pcr; member
359 u32 pcr = 0; in imxfb_check_var() local
395 pcr = (unsigned int)tmp; in imxfb_check_var()
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()
411 pcr |= PCR_BPIX_12; in imxfb_check_var()
413 pcr |= PCR_BPIX_16; in imxfb_check_var()
415 if (imxfb_mode->pcr & PCR_TFT) in imxfb_check_var()
[all …]
/Linux-v5.10/drivers/pinctrl/
Dpinctrl-coh901.c77 u32 pcr; member
242 val = readl(U300_PIN_REG(offset, pcr)); in u300_gpio_direction_input()
245 writel(val, U300_PIN_REG(offset, pcr)); in u300_gpio_direction_input()
259 val = readl(U300_PIN_REG(offset, pcr)); in u300_gpio_direction_output()
272 writel(val, U300_PIN_REG(offset, pcr)); in u300_gpio_direction_output()
293 drmode = readl(U300_PIN_REG(offset, pcr)); in u300_gpio_config_get()
358 val = readl(U300_PIN_REG(offset, pcr)); in u300_gpio_config_set()
363 writel(val, U300_PIN_REG(offset, pcr)); in u300_gpio_config_set()
366 val = readl(U300_PIN_REG(offset, pcr)); in u300_gpio_config_set()
371 writel(val, U300_PIN_REG(offset, pcr)); in u300_gpio_config_set()
[all …]
/Linux-v5.10/drivers/atm/
Dhorizon.c2063 static int atm_pcr_check (struct atm_trafprm * tp, unsigned int pcr) { in atm_pcr_check() argument
2069 else if (tp->min_pcr && tp->min_pcr > pcr) in atm_pcr_check()
2079 else if (tp->max_pcr && tp->max_pcr != ATM_MAX_PCR && tp->max_pcr < pcr) in atm_pcr_check()
2087 pcr, tp->min_pcr, tp->pcr, tp->max_pcr); in atm_pcr_check()
2224 int pcr = atm_pcr_goal (txtp); in hrz_open() local
2226 if (!pcr) { in hrz_open()
2236 pcr = dev->tx_avail; in hrz_open()
2237 } else if (pcr < 0) { in hrz_open()
2239 pcr = -pcr; in hrz_open()
2243 error = make_rate_with_tolerance (dev, pcr, r, 10, in hrz_open()
[all …]
/Linux-v5.10/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()

1234