Home
last modified time | relevance | path

Searched full:pcr (Results 1 – 25 of 176) sorted by relevance

12345678

/linux-6.14.4/drivers/misc/cardreader/
Drtsx_pcr.c64 static int rtsx_comm_set_ltr_latency(struct rtsx_pcr *pcr, u32 latency) in rtsx_comm_set_ltr_latency() argument
66 rtsx_pci_write_register(pcr, MSGTXDATA0, in rtsx_comm_set_ltr_latency()
68 rtsx_pci_write_register(pcr, MSGTXDATA1, in rtsx_comm_set_ltr_latency()
70 rtsx_pci_write_register(pcr, MSGTXDATA2, in rtsx_comm_set_ltr_latency()
72 rtsx_pci_write_register(pcr, MSGTXDATA3, in rtsx_comm_set_ltr_latency()
74 rtsx_pci_write_register(pcr, LTR_CTL, LTR_TX_EN_MASK | in rtsx_comm_set_ltr_latency()
80 int rtsx_set_ltr_latency(struct rtsx_pcr *pcr, u32 latency) in rtsx_set_ltr_latency() argument
82 return rtsx_comm_set_ltr_latency(pcr, latency); in rtsx_set_ltr_latency()
85 static void rtsx_comm_set_aspm(struct rtsx_pcr *pcr, bool enable) in rtsx_comm_set_aspm() argument
87 if (pcr->aspm_enabled == enable) in rtsx_comm_set_aspm()
[all …]
Drts5264.c17 static u8 rts5264_get_ic_version(struct rtsx_pcr *pcr) in rts5264_get_ic_version() argument
21 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5264_get_ic_version()
25 static void rts5264_fill_driving(struct rtsx_pcr *pcr, u8 voltage) in rts5264_fill_driving() argument
43 drive_sel = pcr->sd30_drive_sel_3v3; in rts5264_fill_driving()
46 drive_sel = pcr->sd30_drive_sel_1v8; in rts5264_fill_driving()
49 rtsx_pci_write_register(pcr, SD30_CLK_DRIVE_SEL, in rts5264_fill_driving()
51 rtsx_pci_write_register(pcr, SD30_CMD_DRIVE_SEL, in rts5264_fill_driving()
53 rtsx_pci_write_register(pcr, SD30_DAT_DRIVE_SEL, in rts5264_fill_driving()
57 static void rts5264_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) in rts5264_force_power_down() argument
60 rtsx_pci_write_register(pcr, AUTOLOAD_CFG_BASE + 1, MASK_8_BIT_DEF, 0); in rts5264_force_power_down()
[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 …]
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 …]
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 …]
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 rts5261_force_power_down(struct rtsx_pcr *pcr, u8 pm_state, bool runtime) in rts5261_force_power_down() argument
63 rtsx_pci_write_register(pcr, AUTOLOAD_CFG_BASE + 1, MASK_8_BIT_DEF, 0); in rts5261_force_power_down()
[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.h61 int __rtsx_pci_write_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 val);
62 int __rtsx_pci_read_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 *val);
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);
[all …]
/linux-6.14.4/drivers/mmc/host/
Drtsx_pci_sdmmc.c28 struct rtsx_pcr *pcr; member
58 rtsx_pci_write_register(host->pcr, CARD_STOP, in sd_clear_error()
75 rtsx_pci_read_register(host->pcr, start + i + j, in dump_reg_range()
93 return rtsx_pci_readl(host->pcr, RTSX_BIPR) & SD_EXIST; in sd_get_cd_int()
96 static void sd_cmd_set_sd_cmd(struct rtsx_pcr *pcr, struct mmc_command *cmd) in sd_cmd_set_sd_cmd() argument
98 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_CMD0, 0xFF, in sd_cmd_set_sd_cmd()
100 rtsx_pci_write_be32(pcr, SD_CMD1, cmd->arg); in sd_cmd_set_sd_cmd()
103 static void sd_cmd_set_data_len(struct rtsx_pcr *pcr, u16 blocks, u16 blksz) in sd_cmd_set_data_len() argument
105 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_BLOCK_CNT_L, 0xFF, blocks); in sd_cmd_set_data_len()
106 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_BLOCK_CNT_H, 0xFF, blocks >> 8); in sd_cmd_set_data_len()
[all …]
/linux-6.14.4/include/linux/
Drtsx_pci.h92 #define rtsx_pci_writel(pcr, reg, value) \ argument
93 iowrite32(value, (pcr)->remap_addr + reg)
94 #define rtsx_pci_readl(pcr, reg) \ argument
95 ioread32((pcr)->remap_addr + reg)
96 #define rtsx_pci_writew(pcr, reg, value) \ argument
97 iowrite16(value, (pcr)->remap_addr + reg)
98 #define rtsx_pci_readw(pcr, reg) \ argument
99 ioread16((pcr)->remap_addr + reg)
100 #define rtsx_pci_writeb(pcr, reg, value) \ argument
101 iowrite8(value, (pcr)->remap_addr + reg)
[all …]
/linux-6.14.4/net/atm/
Datm_misc.c50 * atm_pcr_goal returns the positive PCR if it should be rounded up, the
51 * negative PCR if it should be rounded down, and zero if the maximum available
57 * min max pcr result min max pcr result
70 * if pcr == z then z-
71 * else if min == x && pcr == - then x+
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-6.14.4/security/integrity/ima/
Dima_queue.c13 * in the pre-configured TPM PCR (if available).
25 /* pre-allocated array of tpm_digest structures to extend a PCR */
43 * and extending the TPM PCR aggregate. Since tpm_extend can take
56 int pcr) in ima_lookup_digest_entry() argument
67 if ((rc == 0) && (qe->entry->pcr == pcr)) { in ima_lookup_digest_entry()
85 size += sizeof(u32); /* pcr */ in get_binary_runtime_size()
145 static int ima_pcr_extend(struct tpm_digest *digests_arg, int pcr) in ima_pcr_extend() argument
152 result = tpm_pcr_extend(ima_tpm_chip, pcr, digests_arg); in ima_pcr_extend()
160 * extend the pcr.
191 if (ima_lookup_digest_entry(digest, entry->pcr)) { in ima_add_template_entry()
[all …]
Dima_init.c28 * the PCR register.
33 * list and extend the PCR register.
36 * not hardware based by invalidating the aggregate PCR value.
37 * (The aggregate PCR value is invalidated by adding one value to
38 * the measurement list and extending the aggregate PCR value with
40 * list and extend the aggregate PCR value with ff...ff's.
64 * PCR banks, allowing firmware to configure and enable different in ima_add_boot_aggregate()
71 * Ultimately select SHA1 also for TPM 2.0 if the SHA256 PCR bank in ima_add_boot_aggregate()
Dima_api.c92 * configured TPM PCR) over the hashes of the current list of measurement
97 * TPM PCR (called quote) can be retrieved using a TPM user space library
104 const unsigned char *filename, int pcr) in ima_store_template() argument
121 entry->pcr = pcr; in ima_store_template()
130 * By extending the PCR with 0xFF's instead of with zeroes, the PCR
172 * @pcr: pointer filled in if matched measure policy sets pcr=
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()
[all …]
/linux-6.14.4/drivers/media/test-drivers/vidtv/
Dvidtv_ts.c20 static u32 vidtv_ts_write_pcr_bits(u8 *to, u32 to_offset, u64 pcr) in vidtv_ts_write_pcr_bits() argument
22 /* Exact same from ffmpeg. PCR is a counter driven by a 27Mhz clock */ in vidtv_ts_write_pcr_bits()
29 div = div64_u64_rem(pcr, 300, &rem); in vidtv_ts_write_pcr_bits()
31 pcr_low = rem; /* pcr_low = pcr % 300 */ in vidtv_ts_write_pcr_bits()
32 pcr_high = div; /* pcr_high = pcr / 300 */ in vidtv_ts_write_pcr_bits()
102 ts_adap.PCR = 1; in vidtv_ts_pcr_write_into()
118 /* write the PCR optional */ in vidtv_ts_pcr_write_into()
121 args.pcr); in vidtv_ts_pcr_write_into()
Dvidtv_ts.h30 u8 PCR:1; member
53 * @pid: The TS PID for the PCR packets.
56 * @pcr: A sample from the system clock.
64 u64 pcr; member
96 * vidtv_ts_pcr_write_into - Write a PCR packet into a buffer.
99 * This function will write a PCR packet into a buffer. This is used to
Dvidtv_pes.c183 static u32 vidtv_pes_write_pcr_bits(u8 *to, u32 to_offset, u64 pcr) in vidtv_pes_write_pcr_bits() argument
185 /* Exact same from ffmpeg. PCR is a counter driven by a 27Mhz clock */ in vidtv_pes_write_pcr_bits()
192 div = div64_u64_rem(pcr, 300, &rem); in vidtv_pes_write_pcr_bits()
194 pcr_low = rem; /* pcr_low = pcr % 300 */ in vidtv_pes_write_pcr_bits()
195 pcr_high = div; /* pcr_high = pcr / 300 */ in vidtv_pes_write_pcr_bits()
222 ts_adap.PCR = 1; in vidtv_pes_write_stuffing()
243 /* write the optional PCR */ in vidtv_pes_write_stuffing()
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()
[all …]
Dvidtv_mux.h29 * This is used to decide when PCR or PSI packets should be sent. This will also
30 * provide storage for the clock, which is used to compute the value for the PCR.
35 * @clk: A 27Mhz clock from which we will drive the PCR. Updated proportionally
37 * @pcr_period_usecs: How often we should send PCR packets.
102 * @num_streamed_pcr: Number of PCR packets streamed.
107 * same PCR.
150 * @pcr_period_usecs: How often we should send PCR packets.
153 * same PCR.
/linux-6.14.4/Documentation/security/tpm/
Dtpm_event_log.rst14 time something gets hashed by it to any of the PCR registers. The events
15 are segregated by their type and contain the value of the hashed PCR
24 to a challenger. However, PCR contents are difficult to interpret;
25 therefore, attestation is typically more useful when the PCR contents
27 the measurement log contains a richer set of information than do the PCR
28 contents. The PCR contents are used to provide the validation of the
/linux-6.14.4/Documentation/ABI/stable/
Dsysfs-class-tpm97 PCR-00: 3A 3F 78 0F 11 A4 B4 99 69 FC AA 80 CD 6E 39 57 C3 3B 22 75
98 PCR-01: 3A 3F 78 0F 11 A4 B4 99 69 FC AA 80 CD 6E 39 57 C3 3B 22 75
99 PCR-02: 3A 3F 78 0F 11 A4 B4 99 69 FC AA 80 CD 6E 39 57 C3 3B 22 75
100 PCR-03: 3A 3F 78 0F 11 A4 B4 99 69 FC AA 80 CD 6E 39 57 C3 3B 22 75
101 PCR-04: 3A 3F 78 0F 11 A4 B4 99 69 FC AA 80 CD 6E 39 57 C3 3B 22 75
104 The number of PCRs and hex bytes needed to represent a PCR
198 What: /sys/class/tpm/tpmX/pcr-<H>/<N>
202 Description: produces output in compact hex representation for PCR
204 the PCR number and H is the crypto string
209 cat /sys/class/tpm/tpm0/pcr-sha256/7
/linux-6.14.4/drivers/video/fbdev/
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()
423 pcr |= FIELD_PREP(PCR_BPIX_MASK, PCR_BPIX_18); in imxfb_check_var()
429 pcr |= FIELD_PREP(PCR_BPIX_MASK, PCR_BPIX_12); in imxfb_check_var()
431 pcr |= FIELD_PREP(PCR_BPIX_MASK, PCR_BPIX_16); in imxfb_check_var()
[all …]
/linux-6.14.4/sound/firewire/
Dcmp.c24 /* PCR common fields */
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()
336 static __be32 pcr_break_modify(struct cmp_connection *c, __be32 pcr) in pcr_break_modify() argument
338 return pcr & ~cpu_to_be32(PCR_BCAST_CONN | PCR_P2P_CONN_MASK); in pcr_break_modify()

12345678