| /drivers/rtc/ |
| A D | pcf8563.c | 61 tmp->tm_yday = 0; in rtc_get() 62 tmp->tm_isdst= 0; in rtc_get() 65 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 66 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 76 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 77 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 157 tmp->tm_yday = 0; in pcf8563_rtc_get() 161 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in pcf8563_rtc_get() 162 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in pcf8563_rtc_get() 172 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in pcf8563_rtc_set() [all …]
|
| A D | pt7c4338.c | 99 tmp->tm_yday = 0; in rtc_get() 100 tmp->tm_isdst = 0; in rtc_get() 102 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 103 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 112 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 113 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 178 tmp->tm_yday = 0; in pt7c4338_rtc_get() 181 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in pt7c4338_rtc_get() 182 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in pt7c4338_rtc_get() 190 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in pt7c4338_rtc_set() [all …]
|
| A D | ds3231.c | 97 tmp->tm_yday = 0; in rtc_get() 98 tmp->tm_isdst= 0; in rtc_get() 101 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 102 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 115 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 116 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 199 tmp->tm_yday = 0; in ds3231_rtc_get() 203 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in ds3231_rtc_get() 204 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in ds3231_rtc_get() 214 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in ds3231_rtc_set() [all …]
|
| A D | ds1337.c | 111 tmp->tm_yday = 0; in rtc_get() 112 tmp->tm_isdst= 0; in rtc_get() 115 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 116 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 129 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 130 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 241 tmp->tm_yday = 0; in ds1337_rtc_get() 245 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in ds1337_rtc_get() 246 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in ds1337_rtc_get() 256 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in ds1337_rtc_set() [all …]
|
| A D | mcfrtc.c | 32 rtc_to_tm(tim, tmp); in rtc_get() 34 tmp->tm_yday = 0; in rtc_get() 35 tmp->tm_isdst = 0; in rtc_get() 39 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 40 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 57 tmp->tm_year = 2027; in rtc_set() 61 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 62 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 71 months = tmp->tm_mon - 1; in rtc_set() 79 days += tmp->tm_mday - 1; in rtc_set() [all …]
|
| A D | isl1208.c | 103 tmp->tm_yday = 0; in isl1208_rtc_get() 104 tmp->tm_isdst= 0; in isl1208_rtc_get() 107 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in isl1208_rtc_get() 108 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in isl1208_rtc_get() 122 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in isl1208_rtc_set() 123 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in isl1208_rtc_set() 125 if (tmp->tm_year < 2000 || tmp->tm_year > 2099) in isl1208_rtc_set() 140 buf[RTC_MON_REG_ADDR] = bin2bcd(tmp->tm_mon); in isl1208_rtc_set() 141 buf[RTC_DAY_REG_ADDR] = bin2bcd(tmp->tm_wday); in isl1208_rtc_set() 144 buf[RTC_MIN_REG_ADDR] = bin2bcd(tmp->tm_min); in isl1208_rtc_set() [all …]
|
| A D | rx8025.c | 128 tmp->tm_sec = bcd2bin(sec & 0x7F); in rx8025_rtc_get() 129 tmp->tm_min = bcd2bin(min & 0x7F); in rx8025_rtc_get() 131 tmp->tm_hour = bcd2bin(hour & 0x3F); in rx8025_rtc_get() 137 tmp->tm_mon = bcd2bin (mon & 0x1F); in rx8025_rtc_get() 140 tmp->tm_yday = 0; in rx8025_rtc_get() 141 tmp->tm_isdst= 0; in rx8025_rtc_get() 144 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rx8025_rtc_get() 145 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rx8025_rtc_get() 169 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rx8025_rtc_set() 170 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rx8025_rtc_set() [all …]
|
| A D | mc146818.c | 112 if (tmp->tm_year < 70) in mc146818_get() 113 tmp->tm_year += 2000; in mc146818_get() 115 tmp->tm_year += 1900; in mc146818_get() 117 tmp->tm_yday = 0; in mc146818_get() 118 tmp->tm_isdst = 0; in mc146818_get() 123 rtc_calc_weekday(tmp); in mc146818_get() 126 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in mc146818_get() 127 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in mc146818_get() 137 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in mc146818_set() 138 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in mc146818_set() [all …]
|
| A D | ds1307.c | 97 int rtc_get (struct rtc_time *tmp) in rtc_get() argument 142 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get() 143 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get() 149 tmp->tm_yday = 0; in rtc_get() 150 tmp->tm_isdst= 0; in rtc_get() 153 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get() 154 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 162 int rtc_set (struct rtc_time *tmp) in rtc_set() argument 165 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 166 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() [all …]
|
| A D | ds1374.c | 86 unsigned char tmp; in rtc_get() local 99 tmp = rtc_read(RtcTodAddr[i]); in rtc_get() 100 time1 = (time1 << 8) | (tmp & 0xff); in rtc_get() 106 tmp = rtc_read(RtcTodAddr[i]); in rtc_get() 107 time2 = (time2 << 8) | (tmp & 0xff); in rtc_get() 135 int rtc_set (struct rtc_time *tmp){ in rtc_set() argument 141 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set() 142 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 144 if (tmp->tm_year < 1970 || tmp->tm_year > 2069) in rtc_set() 147 time = rtc_mktime(tmp); in rtc_set()
|
| /drivers/ddr/imx/imx8m/ |
| A D | ddr_init.c | 32 unsigned int tmp; in ddrc_inline_ecc_scrub() local 142 tmp >>= 8; in lpddr4_mr_read() 145 return tmp; in lpddr4_mr_read() 237 ddrc_w2r = (tmp > 0x3f) ? 0x3f : tmp; in update_umctl2_rank_space_setting() 244 ddrc_r2w = (tmp > 0x3f) ? 0x3f : tmp; in update_umctl2_rank_space_setting() 256 ddrc_w2r = (tmp > 0x3f) ? 0x3f : tmp; in update_umctl2_rank_space_setting() 267 ddrc_r2w = (tmp > 0x3f) ? 0x3f : tmp; in update_umctl2_rank_space_setting() 283 ddrc_wr_gap = (tmp > 0xf) ? 0xf : tmp; in update_umctl2_rank_space_setting() 290 ddrc_rd_gap = (tmp > 0xf) ? 0xf : tmp; in update_umctl2_rank_space_setting() 302 ddrc_wr_gap = (tmp > 0xf) ? 0xf : tmp; in update_umctl2_rank_space_setting() [all …]
|
| /drivers/mmc/ |
| A D | sdhci-cadence6.c | 158 u32 tmp; in sdhci_cdns6_reset_phy_dll() local 161 tmp = readl(reg); in sdhci_cdns6_reset_phy_dll() 162 tmp &= ~SDHCI_CDNS_HRS09_PHY_SW_RESET; in sdhci_cdns6_reset_phy_dll() 170 writel(tmp, reg); in sdhci_cdns6_reset_phy_dll() 174 ret = readl_poll_timeout(reg, tmp, (tmp & SDHCI_CDNS_HRS09_PHY_INIT_COMPLETE), in sdhci_cdns6_reset_phy_dll() 187 u32 tmp; in sdhci_cdns6_phy_adj() local 252 tmp &= ~(SDHCI_CDNS_HRS09_EXTENDED_WR_MODE | in sdhci_cdns6_phy_adj() 256 tmp |= sdhci_cdns6_ctrl_cfgs[0].val; in sdhci_cdns6_phy_adj() 261 tmp &= ~SDHCI_CDNS_HRS10_HCSDCLKADJ; in sdhci_cdns6_phy_adj() 262 tmp |= sdhci_cdns6_ctrl_cfgs[1].val; in sdhci_cdns6_phy_adj() [all …]
|
| A D | tmio-common.c | 275 u32 tmp; in tmio_sd_dma_start() local 331 u32 poll_flag, tmp; in tmio_sd_dma_xfer() local 407 u32 tmp; in tmio_sd_send_cmd() local 425 tmp = cmd->cmdidx; in tmio_sd_send_cmd() 438 tmp |= TMIO_SD_CMD_RD; in tmio_sd_send_cmd() 518 u32 val, tmp; in tmio_sd_set_bus_width() local 537 tmp |= val; in tmio_sd_set_bus_width() 546 u32 tmp; in tmio_sd_set_ddr_mode() local 564 u32 tmp, val = 0; in tmio_sd_set_clk_rate() local 614 tmp |= val; in tmio_sd_set_clk_rate() [all …]
|
| A D | sdhci-cadence.c | 44 u32 tmp; in sdhci_cdns_write_phy_reg() local 49 writel(tmp, reg); in sdhci_cdns_write_phy_reg() 51 tmp |= SDHCI_CDNS_HRS04_WR; in sdhci_cdns_write_phy_reg() 52 writel(tmp, reg); in sdhci_cdns_write_phy_reg() 54 ret = readl_poll_timeout(reg, tmp, tmp & SDHCI_CDNS_HRS04_ACK, 10); in sdhci_cdns_write_phy_reg() 58 tmp &= ~SDHCI_CDNS_HRS04_WR; in sdhci_cdns_write_phy_reg() 59 writel(tmp, reg); in sdhci_cdns_write_phy_reg() 91 u32 mode, tmp; in sdhci_cdns_set_control_reg() local 129 u32 tmp; in sdhci_cdns_set_tune_val() local 138 tmp = readl(reg); in sdhci_cdns_set_tune_val() [all …]
|
| /drivers/usb/musb-new/ |
| A D | musb_io.h | 40 u16 tmp; in musb_readb() local 43 tmp = __raw_readw(addr + (offset & ~1)); in musb_readb() 45 val = (tmp >> 8); in musb_readb() 47 val = tmp & 0xff; in musb_readb() 54 u16 tmp; in musb_writeb() local 56 tmp = __raw_readw(addr + (offset & ~1)); in musb_writeb() 58 tmp = (data << 8) | (tmp & 0xff); in musb_writeb() 60 tmp = (tmp & 0xff00) | data; in musb_writeb() 62 __raw_writew(tmp, addr + (offset & ~1)); in musb_writeb()
|
| /drivers/clk/imx/ |
| A D | clk-pll14xx.c | 218 u32 tmp, div_val; in clk_pll1416x_set_rate() local 240 tmp |= LOCK_SEL_MASK; in clk_pll1416x_set_rate() 244 tmp &= ~RST_MASK; in clk_pll1416x_set_rate() 248 tmp |= BYPASS_MASK; in clk_pll1416x_set_rate() 264 tmp |= RST_MASK; in clk_pll1416x_set_rate() 273 tmp &= ~BYPASS_MASK; in clk_pll1416x_set_rate() 283 u32 tmp, div_val; in clk_pll1443x_set_rate() local 307 tmp &= ~RST_MASK; in clk_pll1443x_set_rate() 311 tmp |= BYPASS_MASK; in clk_pll1443x_set_rate() 328 tmp |= RST_MASK; in clk_pll1443x_set_rate() [all …]
|
| /drivers/i2c/ |
| A D | davinci_i2c.c | 128 uint32_t tmp; in _davinci_i2c_read() local 153 if (tmp & I2C_STAT_XRDY) { in _davinci_i2c_read() 160 tmp = _poll_i2c_irq(i2c_base, in _davinci_i2c_read() 167 if (tmp & I2C_STAT_XRDY) { in _davinci_i2c_read() 198 if (tmp & I2C_STAT_RRDY) { in _davinci_i2c_read() 210 if (!(tmp & I2C_STAT_SCD)) { in _davinci_i2c_read() 226 uint32_t tmp; in _davinci_i2c_write() local 256 if (tmp & I2C_STAT_XRDY) { in _davinci_i2c_write() 269 if (tmp & I2C_STAT_XRDY) { in _davinci_i2c_write() 282 if (tmp & I2C_STAT_XRDY) in _davinci_i2c_write() [all …]
|
| /drivers/clk/ |
| A D | ics8n3qv01.c | 44 if (tmp < 0) { in ics8n3qv01_get_fout_calc() 47 return tmp; in ics8n3qv01_get_fout_calc() 50 val[i] = tmp; in ics8n3qv01_get_fout_calc() 118 int tmp; in ics8n3qv01_set_rate() local 146 if (tmp < 0) in ics8n3qv01_set_rate() 147 return tmp; in ics8n3qv01_set_rate() 163 if (tmp < 0) in ics8n3qv01_set_rate() 164 return tmp; in ics8n3qv01_set_rate() 165 reg[4] = tmp | 0x20; in ics8n3qv01_set_rate() 169 if (tmp < 0) in ics8n3qv01_set_rate() [all …]
|
| /drivers/usb/dwc3/ |
| A D | dwc3-uniphier.c | 38 u32 tmp; in uniphier_pro4_dwc3_init() local 40 tmp = readl(regs + UNIPHIER_PRO4_DWC3_RESET); in uniphier_pro4_dwc3_init() 41 tmp &= ~UNIPHIER_PRO4_DWC3_RESET_PHY_SS; in uniphier_pro4_dwc3_init() 43 writel(tmp, regs + UNIPHIER_PRO4_DWC3_RESET); in uniphier_pro4_dwc3_init() 53 u32 tmp; in uniphier_pro5_dwc3_init() local 55 tmp = readl(regs + UNIPHIER_PRO5_DWC3_RESET); in uniphier_pro5_dwc3_init() 56 tmp &= ~(UNIPHIER_PRO5_DWC3_RESET_PHY_S1 | in uniphier_pro5_dwc3_init() 59 writel(tmp, regs + UNIPHIER_PRO5_DWC3_RESET); in uniphier_pro5_dwc3_init() 69 u32 tmp; in uniphier_pxs2_dwc3_init() local 71 tmp = readl(regs + UNIPHIER_PXS2_DWC3_RESET); in uniphier_pxs2_dwc3_init() [all …]
|
| /drivers/ddr/marvell/axp/ |
| A D | ddr3_spd.c | 246 u32 tmp; in ddr3_spd_init() local 775 tmp = min(TREFI_USER / hclk_time, tmp); 779 reg |= tmp; 1099 if (tmp >= 2500) 1101 else if (tmp >= 1875 && tmp < 2500) 1103 else if (tmp >= 1500 && tmp < 1875) 1105 else if (tmp >= 1250 && tmp < 1500) 1107 else if (tmp >= 1070 && tmp < 1250) 1109 else if (tmp >= 935 && tmp < 1070) 1111 else if (tmp >= 833 && tmp < 935) [all …]
|
| /drivers/ata/ |
| A D | sata_mv.c | 317 u32 tmp; in mv_start_edma_engine() local 411 u32 tmp; in probe_port() local 429 tmp = (tmp & 0x0f0) | 0x300; in probe_port() 473 u32 tmp; in get_reqip() local 476 tmp = tmp >> EDMA_RQIPR_IPSHIFT; in get_reqip() 484 u32 tmp; in set_reqip() local 503 u32 tmp; in get_rspip() local 506 tmp = tmp >> EDMA_RSIPR_IPSHIFT; in get_rspip() 515 u32 tmp; in get_rspop() local 518 tmp = tmp >> EDMA_RSOPR_OPSHIFT; in get_rspop() [all …]
|
| /drivers/mtd/nand/raw/ |
| A D | mxc_nand_spl.c | 31 uint32_t tmp; in nfc_wait_ready() local 38 tmp = readnfc(&nfc->config2); in nfc_wait_ready() 39 tmp &= ~NFC_V1_V2_CONFIG2_INT; in nfc_wait_ready() 40 writenfc(tmp, &nfc->config2); in nfc_wait_ready() 46 tmp = readnfc(&nfc_ip->ipc); in nfc_wait_ready() 47 tmp &= ~NFC_V3_IPC_INT; in nfc_wait_ready() 48 writenfc(tmp, &nfc_ip->ipc); in nfc_wait_ready() 56 int tmp; in nfc_nand_init() local 64 tmp |= NFC_V3_CONFIG2_PS_4096; in nfc_nand_init() 68 tmp |= NFC_V3_CONFIG2_PS_512; in nfc_nand_init() [all …]
|
| /drivers/ram/thead/ |
| A D | th1520_ddr.c | 264 u32 tmp; in th1520_ddr_pll_config() local 301 u32 tmp; in th1520_ddr_ctrl_init() local 307 tmp == 0x00000000, in th1520_ddr_ctrl_init() 407 tmp == 0x00000001, in th1520_ddr_ctrl_init() 425 tmp == 0x00000020, in th1520_ddr_ctrl_init() 433 tmp == 0x00000020, in th1520_ddr_ctrl_init() 442 tmp == 0x00000020, in th1520_ddr_ctrl_init() 450 tmp == 0x00000020, in th1520_ddr_ctrl_init() 459 tmp == 0x00000020, in th1520_ddr_ctrl_init() 503 u32 tmp; in th1520_ddr_read_msg() local [all …]
|
| /drivers/usb/gadget/ |
| A D | epautoconf.c | 50 const char *tmp; in ep_matches() local 70 tmp = strrchr(ep->name, '-'); in ep_matches() 71 if (tmp) { in ep_matches() 77 if ('s' == tmp[2]) /* == "-iso" */ in ep_matches() 81 if ('b' != tmp[1]) /* != "-bulk" */ in ep_matches() 85 if ('s' != tmp[2]) /* != "-iso" */ in ep_matches() 89 tmp = ep->name + strlen(ep->name); in ep_matches() 93 tmp--; in ep_matches() 94 if (!isdigit(*tmp)) { in ep_matches() 96 if ('n' != *tmp) in ep_matches() [all …]
|
| /drivers/ram/cadence/ |
| A D | ddr_ctrl.c | 100 u16 tmp; in cdns_ddr_set_mr1() local 107 tmp = readw(reg); in cdns_ddr_set_mr1() 113 tmp |= odt_impedance; in cdns_ddr_set_mr1() 118 writew(tmp, reg); in cdns_ddr_set_mr1() 124 u16 tmp; in cdns_ddr_set_mr2() local 131 tmp = readw(reg); in cdns_ddr_set_mr2() 137 tmp |= dynamic_odt; in cdns_ddr_set_mr2() 142 writew(tmp, reg); in cdns_ddr_set_mr2() 203 u32 tmp; in cdns_ddr_enable_port_addr_range() local 224 tmp = readl(reg32); in cdns_ddr_enable_port_addr_range() [all …]
|