/drivers/mfd/ |
D | rtsx_pcr.c | 70 static inline void rtsx_pci_enable_aspm(struct rtsx_pcr *pcr) in rtsx_pci_enable_aspm() argument 72 rtsx_pci_update_cfg_byte(pcr, pcr->pcie_cap + PCI_EXP_LNKCTL, in rtsx_pci_enable_aspm() 73 0xFC, pcr->aspm_en); in rtsx_pci_enable_aspm() 76 static inline void rtsx_pci_disable_aspm(struct rtsx_pcr *pcr) in rtsx_pci_disable_aspm() argument 78 rtsx_pci_update_cfg_byte(pcr, pcr->pcie_cap + PCI_EXP_LNKCTL, in rtsx_pci_disable_aspm() 82 void rtsx_pci_start_run(struct rtsx_pcr *pcr) in rtsx_pci_start_run() argument 85 if (pcr->remove_pci) in rtsx_pci_start_run() 88 if (pcr->state != PDEV_STAT_RUN) { in rtsx_pci_start_run() 89 pcr->state = PDEV_STAT_RUN; in rtsx_pci_start_run() 90 if (pcr->ops->enable_auto_blink) in rtsx_pci_start_run() [all …]
|
D | rts5249.c | 28 static u8 rts5249_get_ic_version(struct rtsx_pcr *pcr) in rts5249_get_ic_version() argument 32 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5249_get_ic_version() 36 static void rts5249_fill_driving(struct rtsx_pcr *pcr, u8 voltage) in rts5249_fill_driving() argument 54 drive_sel = pcr->sd30_drive_sel_3v3; in rts5249_fill_driving() 57 drive_sel = pcr->sd30_drive_sel_1v8; in rts5249_fill_driving() 60 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_CLK_DRIVE_SEL, in rts5249_fill_driving() 62 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_CMD_DRIVE_SEL, in rts5249_fill_driving() 64 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_DAT_DRIVE_SEL, in rts5249_fill_driving() 68 static void rtsx_base_fetch_vendor_settings(struct rtsx_pcr *pcr) in rtsx_base_fetch_vendor_settings() argument 72 rtsx_pci_read_config_dword(pcr, PCR_SETTING_REG1, ®); in rtsx_base_fetch_vendor_settings() [all …]
|
D | rts5227.c | 29 static u8 rts5227_get_ic_version(struct rtsx_pcr *pcr) in rts5227_get_ic_version() argument 33 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5227_get_ic_version() 37 static void rts5227_fill_driving(struct rtsx_pcr *pcr, u8 voltage) in rts5227_fill_driving() argument 55 drive_sel = pcr->sd30_drive_sel_3v3; in rts5227_fill_driving() 58 drive_sel = pcr->sd30_drive_sel_1v8; in rts5227_fill_driving() 61 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_CLK_DRIVE_SEL, in rts5227_fill_driving() 63 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_CMD_DRIVE_SEL, in rts5227_fill_driving() 65 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD30_DAT_DRIVE_SEL, in rts5227_fill_driving() 69 static void rts5227_fetch_vendor_settings(struct rtsx_pcr *pcr) in rts5227_fetch_vendor_settings() argument 73 rtsx_pci_read_config_dword(pcr, PCR_SETTING_REG1, ®); in rts5227_fetch_vendor_settings() [all …]
|
D | rts5229.c | 28 static u8 rts5229_get_ic_version(struct rtsx_pcr *pcr) in rts5229_get_ic_version() argument 32 rtsx_pci_read_register(pcr, DUMMY_REG_RESET_0, &val); in rts5229_get_ic_version() 36 static void rts5229_fetch_vendor_settings(struct rtsx_pcr *pcr) in rts5229_fetch_vendor_settings() argument 40 rtsx_pci_read_config_dword(pcr, PCR_SETTING_REG1, ®); in rts5229_fetch_vendor_settings() 41 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG1, reg); in rts5229_fetch_vendor_settings() 46 pcr->aspm_en = rtsx_reg_to_aspm(reg); in rts5229_fetch_vendor_settings() 47 pcr->sd30_drive_sel_1v8 = in rts5229_fetch_vendor_settings() 49 pcr->card_drive_sel &= 0x3F; in rts5229_fetch_vendor_settings() 50 pcr->card_drive_sel |= rtsx_reg_to_card_drive_sel(reg); in rts5229_fetch_vendor_settings() 52 rtsx_pci_read_config_dword(pcr, PCR_SETTING_REG2, ®); in rts5229_fetch_vendor_settings() [all …]
|
D | rts5209.c | 28 static u8 rts5209_get_ic_version(struct rtsx_pcr *pcr) in rts5209_get_ic_version() argument 32 val = rtsx_pci_readb(pcr, 0x1C); in rts5209_get_ic_version() 36 static void rts5209_fetch_vendor_settings(struct rtsx_pcr *pcr) in rts5209_fetch_vendor_settings() argument 40 rtsx_pci_read_config_dword(pcr, PCR_SETTING_REG1, ®); in rts5209_fetch_vendor_settings() 41 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG1, reg); in rts5209_fetch_vendor_settings() 45 pcr->flags |= PCR_MS_PMOS; in rts5209_fetch_vendor_settings() 46 pcr->aspm_en = rts5209_reg_to_aspm(reg); in rts5209_fetch_vendor_settings() 49 rtsx_pci_read_config_dword(pcr, PCR_SETTING_REG2, ®); in rts5209_fetch_vendor_settings() 50 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG2, reg); in rts5209_fetch_vendor_settings() 53 pcr->sd30_drive_sel_1v8 = in rts5209_fetch_vendor_settings() [all …]
|
D | rtl8411.c | 30 static u8 rtl8411_get_ic_version(struct rtsx_pcr *pcr) in rtl8411_get_ic_version() argument 34 rtsx_pci_read_register(pcr, SYS_VER, &val); in rtl8411_get_ic_version() 38 static int rtl8411b_is_qfn48(struct rtsx_pcr *pcr) in rtl8411b_is_qfn48() argument 42 rtsx_pci_read_register(pcr, RTL8411B_PACKAGE_MODE, &val); in rtl8411b_is_qfn48() 50 static void rtl8411_fetch_vendor_settings(struct rtsx_pcr *pcr) in rtl8411_fetch_vendor_settings() argument 55 rtsx_pci_read_config_dword(pcr, PCR_SETTING_REG1, ®1); in rtl8411_fetch_vendor_settings() 56 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG1, reg1); in rtl8411_fetch_vendor_settings() 61 pcr->aspm_en = rtsx_reg_to_aspm(reg1); in rtl8411_fetch_vendor_settings() 62 pcr->sd30_drive_sel_1v8 = in rtl8411_fetch_vendor_settings() 64 pcr->card_drive_sel &= 0x3F; in rtl8411_fetch_vendor_settings() [all …]
|
D | rtsx_pcr.h | 35 int __rtsx_pci_write_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 val); 36 int __rtsx_pci_read_phy_register(struct rtsx_pcr *pcr, u8 addr, u16 *val); 38 void rts5209_init_params(struct rtsx_pcr *pcr); 39 void rts5229_init_params(struct rtsx_pcr *pcr); 40 void rtl8411_init_params(struct rtsx_pcr *pcr); 41 void rtl8402_init_params(struct rtsx_pcr *pcr); 42 void rts5227_init_params(struct rtsx_pcr *pcr); 43 void rts522a_init_params(struct rtsx_pcr *pcr); 44 void rts5249_init_params(struct rtsx_pcr *pcr); 45 void rts524a_init_params(struct rtsx_pcr *pcr); [all …]
|
/drivers/mmc/host/ |
D | rtsx_pci_sdmmc.c | 38 struct rtsx_pcr *pcr; member 69 rtsx_pci_write_register(host->pcr, CARD_STOP, in sd_clear_error() 86 rtsx_pci_read_register(host->pcr, start + i + j, in dump_reg_range() 104 return rtsx_pci_readl(host->pcr, RTSX_BIPR) & SD_EXIST; in sd_get_cd_int() 107 static void sd_cmd_set_sd_cmd(struct rtsx_pcr *pcr, struct mmc_command *cmd) in sd_cmd_set_sd_cmd() argument 109 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_CMD0, 0xFF, in sd_cmd_set_sd_cmd() 111 rtsx_pci_write_be32(pcr, SD_CMD1, cmd->arg); in sd_cmd_set_sd_cmd() 114 static void sd_cmd_set_data_len(struct rtsx_pcr *pcr, u16 blocks, u16 blksz) in sd_cmd_set_data_len() argument 116 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_BLOCK_CNT_L, 0xFF, blocks); in sd_cmd_set_data_len() 117 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_BLOCK_CNT_H, 0xFF, blocks >> 8); in sd_cmd_set_data_len() [all …]
|
/drivers/memstick/host/ |
D | rtsx_pci_ms.c | 32 struct rtsx_pcr *pcr; member 52 rtsx_pci_write_register(host->pcr, CARD_STOP, in ms_clear_error() 60 struct rtsx_pcr *pcr = host->pcr; in ms_print_debug_regs() local 65 rtsx_pci_init_cmd(pcr); in ms_print_debug_regs() 67 rtsx_pci_add_cmd(pcr, READ_REG_CMD, i, 0, 0); in ms_print_debug_regs() 69 rtsx_pci_add_cmd(pcr, READ_REG_CMD, i, 0, 0); in ms_print_debug_regs() 70 rtsx_pci_send_cmd(pcr, 100); in ms_print_debug_regs() 72 ptr = rtsx_pci_get_cmd_data(pcr); in ms_print_debug_regs() 87 struct rtsx_pcr *pcr = host->pcr; in ms_power_on() local 90 rtsx_pci_init_cmd(pcr); in ms_power_on() [all …]
|
/drivers/video/fbdev/ |
D | imxfb.c | 163 u_int pcr; member 358 u32 pcr = 0; in imxfb_check_var() local 394 pcr = (unsigned int)tmp; in imxfb_check_var() 396 if (--pcr > 0x3F) { in imxfb_check_var() 397 pcr = 0x3F; in imxfb_check_var() 399 lcd_clk / pcr); in imxfb_check_var() 404 pcr |= PCR_BPIX_18; in imxfb_check_var() 410 pcr |= PCR_BPIX_12; in imxfb_check_var() 412 pcr |= PCR_BPIX_16; in imxfb_check_var() 414 if (imxfb_mode->pcr & PCR_TFT) in imxfb_check_var() [all …]
|
/drivers/pinctrl/ |
D | pinctrl-coh901.c | 77 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 …]
|
/drivers/atm/ |
D | horizon.c | 2078 static int atm_pcr_check (struct atm_trafprm * tp, unsigned int pcr) { in atm_pcr_check() argument 2084 else if (tp->min_pcr && tp->min_pcr > pcr) in atm_pcr_check() 2094 else if (tp->max_pcr && tp->max_pcr != ATM_MAX_PCR && tp->max_pcr < pcr) in atm_pcr_check() 2102 pcr, tp->min_pcr, tp->pcr, tp->max_pcr); in atm_pcr_check() 2239 int pcr = atm_pcr_goal (txtp); in hrz_open() local 2241 if (!pcr) { in hrz_open() 2251 pcr = dev->tx_avail; in hrz_open() 2252 } else if (pcr < 0) { in hrz_open() 2254 pcr = -pcr; in hrz_open() 2258 error = make_rate_with_tolerance (dev, pcr, r, 10, in hrz_open() [all …]
|
D | iphase.c | 164 if (iavcc_r->pcr < dev->rate_limit) { in ia_hack_tcq() 362 srv_p->pcr = dev->LineRate; in init_abr_vc() 389 if (srv_p->pcr == 0) in ia_open_abr_vc() 391 if (srv_p->pcr > dev->LineRate) in ia_open_abr_vc() 392 srv_p->pcr = dev->LineRate; in ia_open_abr_vc() 395 if (srv_p->mcr > srv_p->pcr) in ia_open_abr_vc() 398 srv_p->icr = srv_p->pcr; in ia_open_abr_vc() 399 if ((srv_p->icr < srv_p->mcr) || (srv_p->icr > srv_p->pcr)) in ia_open_abr_vc() 431 f_abr_vc->f_pcr = cellrate_to_float(srv_p->pcr); in ia_open_abr_vc() 449 air = srv_p->pcr << (15 - srv_p->rif); in ia_open_abr_vc() [all …]
|
D | firestream.c | 991 int pcr = atm_pcr_goal (txtp); in fs_open() local 993 fs_dprintk (FS_DEBUG_OPEN, "pcr = %d.\n", pcr); in fs_open() 998 if (pcr > 51840000/53/8) pcr = 51840000/53/8; in fs_open() 1000 if (pcr > 155520000/53/8) pcr = 155520000/53/8; in fs_open() 1002 if (!pcr) { in fs_open() 1007 if (pcr < 0) { in fs_open() 1009 pcr = -pcr; in fs_open() 1013 error = make_rate (pcr, r, &tmc0, NULL); in fs_open() 1019 fs_dprintk (FS_DEBUG_OPEN, "pcr = %d.\n", pcr); in fs_open()
|
D | zatm.c | 788 static int alloc_shaper(struct atm_dev *dev,int *pcr,int min,int max,int ubr) in alloc_shaper() argument 805 *pcr = 0; in alloc_shaper() 834 *pcr = i*ATM_OC3_PCR/m; in alloc_shaper() 836 if ((min && *pcr < min) || (max && *pcr > max)) return -EINVAL; in alloc_shaper() 837 if (zatm_dev->tx_bw < *pcr) return -EAGAIN; in alloc_shaper() 838 zatm_dev->tx_bw -= *pcr; in alloc_shaper() 841 DPRINTK("i = %d, m = %d, PCR = %d\n",i,m,*pcr); in alloc_shaper() 942 int uninitialized_var(pcr); in open_tx_first() 945 if ((zatm_vcc->shaper = alloc_shaper(vcc->dev,&pcr, in open_tx_first() 951 if (pcr > ATM_OC3_PCR) pcr = ATM_OC3_PCR; in open_tx_first() [all …]
|
D | ambassador.c | 1061 int pcr = atm_pcr_goal (txtp); in amb_open() local 1062 if (!pcr) { in amb_open() 1069 if (pcr < 0) { in amb_open() 1071 pcr = -pcr; in amb_open() 1075 error = make_rate (pcr, r, &tx_rate_bits, NULL); in amb_open() 1085 pcr = atm_pcr_goal (txtp); in amb_open() 1086 PRINTD (DBG_QOS, "pcr goal = %d", pcr); in amb_open() 1125 pcr = atm_pcr_goal (rxtp); in amb_open() 1126 PRINTD (DBG_QOS, "pcr goal = %d", pcr); in amb_open()
|
D | eni.c | 1250 static int comp_tx(struct eni_dev *eni_dev,int *pcr,int reserved,int *pre, in comp_tx() argument 1258 if (*pcr > 0) { in comp_tx() 1262 if (TS_CLOCK/pre_div[*pre]/64 <= *pcr) break; in comp_tx() 1263 div = pre_div[*pre]**pcr; in comp_tx() 1270 if (!*pcr) *pcr = eni_dev->tx_bw+reserved; in comp_tx() 1272 if (TS_CLOCK/pre_div[*pre]/64 > -*pcr) break; in comp_tx() 1274 div = pre_div[*pre]*-*pcr; in comp_tx() 1281 *pcr = TS_CLOCK/pre_div[*pre]/(*res+1); in comp_tx() 1282 DPRINTK("out pcr: %d (%d:%d)\n",*pcr,*pre,*res); in comp_tx() 1312 txtp->pcr = ATM_OC3_PCR; in reserve_or_set_tx() [all …]
|
D | iphase.h | 212 u32 pcr; member 250 u_short pcr; member 811 u32 pcr; /* Peak Cell Rate (24-bit) */ member
|
/drivers/media/platform/omap3isp/ |
D | isph3a_af.c | 32 u32 pcr; in h3a_af_setup_regs() local 107 pcr = conf->rgb_pos << AF_RGBPOS_SHIFT; in h3a_af_setup_regs() 110 pcr |= AF_FVMODE; in h3a_af_setup_regs() 113 pcr |= AF_ALAW_EN; in h3a_af_setup_regs() 117 pcr |= AF_MED_EN; in h3a_af_setup_regs() 119 pcr |= conf->hmf.threshold << AF_MED_TH_SHIFT; in h3a_af_setup_regs() 123 AF_PCR_MASK, pcr); in h3a_af_setup_regs()
|
D | isph3a_aewb.c | 31 u32 pcr; in h3a_aewb_setup_regs() local 47 pcr = conf->saturation_limit << ISPH3A_PCR_AEW_AVE2LMT_SHIFT; in h3a_aewb_setup_regs() 48 pcr |= !!conf->alaw_enable << ISPH3A_PCR_AEW_ALAW_EN_SHIFT; in h3a_aewb_setup_regs() 73 ISPH3A_PCR_AEW_MASK, pcr); in h3a_aewb_setup_regs()
|
/drivers/clk/at91/ |
D | pmc.c | 66 u32 pcr[PMC_MAX_IDS]; member 104 &pmc_cache.pcr[registered_ids[i]]); in pmc_suspend() 143 pmc_cache.pcr[registered_ids[i]] | in pmc_resume()
|
/drivers/tty/serial/ |
D | sunsab.h | 37 u8 pcr; /* Port Configuration Register */ member 73 u8 pcr; member 109 u8 pcr; member
|
/drivers/net/wan/ |
D | n2.c | 341 u8 cnt, pcr; in n2_run() local 420 pcr = PCR_ENWIN | PCR_VPM | (USE_BUS16BITS ? PCR_BUS16 : 0); in n2_run() 421 outb(pcr, io + N2_PCR); in n2_run() 445 pcr |= PCR_RUNSCA; /* run SCA */ in n2_run() 446 outb(pcr, io + N2_PCR); in n2_run()
|
/drivers/scsi/qla2xxx/ |
D | qla_dbg.c | 805 WRT_REG_WORD(®->pcr, 0x2000); in qla2300_fw_dump() 808 WRT_REG_WORD(®->pcr, 0x2200); in qla2300_fw_dump() 811 WRT_REG_WORD(®->pcr, 0x2400); in qla2300_fw_dump() 814 WRT_REG_WORD(®->pcr, 0x2600); in qla2300_fw_dump() 817 WRT_REG_WORD(®->pcr, 0x2800); in qla2300_fw_dump() 820 WRT_REG_WORD(®->pcr, 0x2A00); in qla2300_fw_dump() 823 WRT_REG_WORD(®->pcr, 0x2C00); in qla2300_fw_dump() 826 WRT_REG_WORD(®->pcr, 0x2E00); in qla2300_fw_dump() 966 WRT_REG_WORD(®->pcr, 0x2000); in qla2100_fw_dump() 969 WRT_REG_WORD(®->pcr, 0x2100); in qla2100_fw_dump() [all …]
|
/drivers/spi/ |
D | spi-au1550.c | 151 u32 pcr; in au1550_spi_reset_fifos() local 156 pcr = hw->regs->psc_spipcr; in au1550_spi_reset_fifos() 158 } while (pcr != 0); in au1550_spi_reset_fifos()
|