Home
last modified time | relevance | path

Searched refs:sr (Results 1 – 25 of 38) sorted by relevance

12

/linux-4.19.296/drivers/rtc/
Drtc-isl1208.c261 int sr, dtr, atr, usr; in isl1208_rtc_proc() local
263 sr = isl1208_i2c_get_sr(client); in isl1208_rtc_proc()
264 if (sr < 0) { in isl1208_rtc_proc()
266 return sr; in isl1208_rtc_proc()
270 (sr & ISL1208_REG_SR_RTCF) ? " RTCF" : "", in isl1208_rtc_proc()
271 (sr & ISL1208_REG_SR_BAT) ? " BAT" : "", in isl1208_rtc_proc()
272 (sr & ISL1208_REG_SR_ALM) ? " ALM" : "", in isl1208_rtc_proc()
273 (sr & ISL1208_REG_SR_WRTC) ? " WRTC" : "", in isl1208_rtc_proc()
274 (sr & ISL1208_REG_SR_XTOSCB) ? " XTOSCB" : "", in isl1208_rtc_proc()
275 (sr & ISL1208_REG_SR_ARST) ? " ARST" : "", sr); in isl1208_rtc_proc()
[all …]
Drtc-rv3029c2.c182 int sr; in rv3029_set_sr() local
185 sr = rv3029_write_regs(dev, RV3029_STATUS, buf, 1); in rv3029_set_sr()
187 if (sr < 0) in rv3029_set_sr()
195 u8 sr; in rv3029_eeprom_busywait() local
198 ret = rv3029_get_sr(dev, &sr); in rv3029_eeprom_busywait()
201 if (!(sr & RV3029_STATUS_EEBUSY)) in rv3029_eeprom_busywait()
224 u8 sr; in rv3029_eeprom_enter() local
227 ret = rv3029_get_sr(dev, &sr); in rv3029_eeprom_enter()
230 if (sr & (RV3029_STATUS_VLOW1 | RV3029_STATUS_VLOW2)) { in rv3029_eeprom_enter()
234 sr &= ~RV3029_STATUS_VLOW1; in rv3029_eeprom_enter()
[all …]
Drtc-x1205.c148 static int x1205_get_status(struct i2c_client *client, unsigned char *sr) in x1205_get_status() argument
162 .buf = sr in x1205_get_status()
624 unsigned char sr; in x1205_probe() local
644 err = x1205_get_status(client, &sr); in x1205_probe()
646 if (sr & X1205_SR_RTCF) { in x1205_probe()
Drtc-at91sam9.c280 u32 sr, mr; in at91_rtc_cache_events() local
286 sr = rtt_readl(rtc, SR) & (mr >> 16); in at91_rtc_cache_events()
287 if (!sr) in at91_rtc_cache_events()
291 if (sr & AT91_RTT_ALMS) in at91_rtc_cache_events()
295 if (sr & AT91_RTT_RTTINC) in at91_rtc_cache_events()
Drtc-isl12026.c209 u8 sr; in isl12026_rtc_read_time() local
227 msgs[1].buf = &sr; in isl12026_rtc_read_time()
236 if (sr & ISL12026_REG_SR_RTCF) in isl12026_rtc_read_time()
238 if (sr & ISL12026_REG_SR_OSCF) in isl12026_rtc_read_time()
/linux-4.19.296/lib/reed_solomon/
Dreed_solomon.c73 int i, j, sr, root, iprim; in codec_init() local
107 sr = 1; in codec_init()
109 rs->index_of[sr] = i; in codec_init()
110 rs->alpha_to[i] = sr; in codec_init()
111 sr <<= 1; in codec_init()
112 if (sr & (1 << symsize)) in codec_init()
113 sr ^= gfpoly; in codec_init()
114 sr &= rs->nn; in codec_init()
117 sr = gffunc(0); in codec_init()
119 rs->index_of[sr] = i; in codec_init()
[all …]
/linux-4.19.296/drivers/misc/eeprom/
Dat25.c165 int sr; in at25_ee_write() local
215 sr = spi_w8r8(at25->spi, AT25_RDSR); in at25_ee_write()
216 if (sr < 0 || (sr & AT25_SR_nRDY)) { in at25_ee_write()
218 "rdsr --> %d (%02x)\n", sr, sr); in at25_ee_write()
223 if (!(sr & AT25_SR_nRDY)) in at25_ee_write()
227 if ((sr < 0) || (sr & AT25_SR_nRDY)) { in at25_ee_write()
312 int sr; in at25_probe() local
339 sr = spi_w8r8(spi, AT25_RDSR); in at25_probe()
340 if (sr < 0 || sr & AT25_SR_nRDY) { in at25_probe()
341 dev_dbg(&spi->dev, "rdsr --> %d (%02x)\n", sr, sr); in at25_probe()
/linux-4.19.296/drivers/i2c/busses/
Di2c-iop3xx.c115 u32 sr = __raw_readl(iop3xx_adap->ioaddr + SR_OFFSET); in iop3xx_i2c_irq_handler() local
117 if ((sr &= iop3xx_adap->SR_enabled)) { in iop3xx_i2c_irq_handler()
118 __raw_writel(sr, iop3xx_adap->ioaddr + SR_OFFSET); in iop3xx_i2c_irq_handler()
119 iop3xx_adap->SR_received |= sr; in iop3xx_i2c_irq_handler()
127 iop3xx_i2c_error(u32 sr) in iop3xx_i2c_error() argument
131 if ((sr & IOP3XX_ISR_BERRD)) { in iop3xx_i2c_error()
134 if ((sr & IOP3XX_ISR_ALD)) { in iop3xx_i2c_error()
144 u32 sr; in iop3xx_i2c_get_srstat() local
147 sr = iop3xx_adap->SR_received; in iop3xx_i2c_get_srstat()
151 return sr; in iop3xx_i2c_get_srstat()
[all …]
Di2c-sh_mobile.c130 int sr; member
440 unsigned char sr; in sh_mobile_i2c_isr() local
443 sr = iic_rd(pd, ICSR); in sh_mobile_i2c_isr()
444 pd->sr |= sr; /* remember state */ in sh_mobile_i2c_isr()
446 dev_dbg(pd->dev, "i2c_isr 0x%02x 0x%02x %s %d %d!\n", sr, pd->sr, in sh_mobile_i2c_isr()
453 else if (sr & (ICSR_AL | ICSR_TACK)) in sh_mobile_i2c_isr()
455 iic_wr(pd, ICSR, sr & ~(ICSR_AL | ICSR_TACK)); in sh_mobile_i2c_isr()
465 if (sr & ICSR_WAIT) /* TODO: add delay here to support slow acks */ in sh_mobile_i2c_isr()
466 iic_wr(pd, ICSR, sr & ~ICSR_WAIT); in sh_mobile_i2c_isr()
469 pd->sr |= SW_DONE; in sh_mobile_i2c_isr()
[all …]
Di2c-xiic.c259 u8 sr; in xiic_clear_rx_fifo() local
260 for (sr = xiic_getreg8(i2c, XIIC_SR_REG_OFFSET); in xiic_clear_rx_fifo()
261 !(sr & XIIC_SR_RX_FIFO_EMPTY_MASK); in xiic_clear_rx_fifo()
262 sr = xiic_getreg8(i2c, XIIC_SR_REG_OFFSET)) in xiic_clear_rx_fifo()
522 u8 sr = xiic_getreg8(i2c, XIIC_SR_REG_OFFSET); in xiic_bus_busy() local
524 return (sr & XIIC_SR_BUS_BUSY_MASK) ? -EBUSY : 0; in xiic_bus_busy()
757 u32 sr; in xiic_i2c_probe() local
818 sr = xiic_getreg32(i2c, XIIC_SR_REG_OFFSET); in xiic_i2c_probe()
819 if (!(sr & XIIC_SR_TX_FIFO_EMPTY_MASK)) in xiic_i2c_probe()
/linux-4.19.296/include/linux/power/
Dsmartreflex.h241 int (*enable)(struct omap_sr *sr);
242 int (*disable)(struct omap_sr *sr, int is_volt_reset);
243 int (*configure)(struct omap_sr *sr);
244 int (*notify)(struct omap_sr *sr, u32 status);
313 int sr_enable(struct omap_sr *sr, unsigned long volt);
314 void sr_disable(struct omap_sr *sr);
315 int sr_configure_errgen(struct omap_sr *sr);
316 int sr_disable_errgen(struct omap_sr *sr);
317 int sr_configure_minmax(struct omap_sr *sr);
/linux-4.19.296/drivers/char/hw_random/
Dstm32-rng.c51 u32 sr; in stm32_rng_read() local
57 sr = readl_relaxed(priv->base + RNG_SR); in stm32_rng_read()
60 if (!sr && wait) { in stm32_rng_read()
63 sr, sr, in stm32_rng_read()
67 "%s: timeout %x!\n", __func__, sr); in stm32_rng_read()
71 if (sr != RNG_SR_DRDY) { in stm32_rng_read()
72 if (WARN_ONCE(sr & (RNG_SR_SEIS | RNG_SR_CEIS), in stm32_rng_read()
73 "bad RNG status - %x\n", sr)) in stm32_rng_read()
/linux-4.19.296/drivers/sh/intc/
Dhandle.c261 struct intc_sense_reg *sr = desc->hw.sense_regs; in intc_get_sense_handle() local
264 for (i = 0; sr && enum_id && i < desc->hw.nr_sense_regs; i++) { in intc_get_sense_handle()
265 sr = desc->hw.sense_regs + i; in intc_get_sense_handle()
267 for (j = 0; j < ARRAY_SIZE(sr->enum_ids); j++) { in intc_get_sense_handle()
268 if (sr->enum_ids[j] != enum_id) in intc_get_sense_handle()
272 fn += (sr->reg_width >> 3) - 1; in intc_get_sense_handle()
274 BUG_ON((j + 1) * sr->field_width > sr->reg_width); in intc_get_sense_handle()
276 bit = sr->reg_width - ((j + 1) * sr->field_width); in intc_get_sense_handle()
278 return _INTC_MK(fn, 0, intc_get_reg(d, sr->reg), in intc_get_sense_handle()
279 0, sr->field_width, bit); in intc_get_sense_handle()
/linux-4.19.296/drivers/media/dvb-frontends/
Dtda10023.c167 static int tda10023_set_symbolrate (struct tda10023_state* state, u32 sr) in tda10023_set_symbolrate() argument
178 if (sr < (u32)(sysclk_x_10/984)) { in tda10023_set_symbolrate()
181 } else if (sr < (u32)(sysclk_x_10/640)) { in tda10023_set_symbolrate()
184 } else if (sr < (u32)(sysclk_x_10/492)) { in tda10023_set_symbolrate()
187 } else if (sr < (u32)(sysclk_x_10/320)) { in tda10023_set_symbolrate()
190 } else if (sr < (u32)(sysclk_x_10/246)) { in tda10023_set_symbolrate()
193 } else if (sr < (u32)(sysclk_x_10/160)) { in tda10023_set_symbolrate()
196 } else if (sr < (u32)(sysclk_x_10/123)) { in tda10023_set_symbolrate()
203 BDRI +=sr/2; in tda10023_set_symbolrate()
204 BDRI /=sr; in tda10023_set_symbolrate()
[all …]
Dmt312.c177 static int mt312_get_symbol_rate(struct mt312_state *state, u32 *sr) in mt312_get_symbol_rate() argument
554 u16 sr; in mt312_set_frontend() local
626 sr = mt312_div(p->symbol_rate * 4, 15625); in mt312_set_frontend()
629 buf[0] = (sr >> 8) & 0x3f; in mt312_set_frontend()
630 buf[1] = (sr >> 0) & 0xff; in mt312_set_frontend()
/linux-4.19.296/drivers/isdn/hisax/
Davm_pci.c185 bcs->hw.hdlc.ctrl.sr.mode); in write_ctrl()
188 bcs->hw.hdlc.ctrl.sr.xml); in write_ctrl()
191 bcs->hw.hdlc.ctrl.sr.cmd); in write_ctrl()
214 bcs->hw.hdlc.ctrl.sr.cmd = HDLC_CMD_XRS | HDLC_CMD_RRS; in modehdlc()
215 bcs->hw.hdlc.ctrl.sr.mode = HDLC_MODE_TRANS; in modehdlc()
223 bcs->hw.hdlc.ctrl.sr.cmd = HDLC_CMD_XRS | HDLC_CMD_RRS; in modehdlc()
224 bcs->hw.hdlc.ctrl.sr.mode = HDLC_MODE_TRANS; in modehdlc()
226 bcs->hw.hdlc.ctrl.sr.cmd = HDLC_CMD_XRS; in modehdlc()
228 bcs->hw.hdlc.ctrl.sr.cmd = 0; in modehdlc()
234 bcs->hw.hdlc.ctrl.sr.cmd = HDLC_CMD_XRS | HDLC_CMD_RRS; in modehdlc()
[all …]
Dhisax_fcpcipnp.c352 outb(bcs->ctrl.sr.mode, in __fcpnp_write_ctrl()
355 outb(bcs->ctrl.sr.xml, in __fcpnp_write_ctrl()
358 outb(bcs->ctrl.sr.cmd, in __fcpnp_write_ctrl()
394 bcs->ctrl.sr.cmd &= ~HDLC_CMD_XME; in hdlc_fill_fifo()
400 bcs->ctrl.sr.cmd |= HDLC_CMD_XME; in hdlc_fill_fifo()
406 bcs->ctrl.sr.xml = ((count == bcs->fifo_size) ? 0 : count); in hdlc_fill_fifo()
476 bcs->ctrl.sr.xml = 0; in hdlc_rpr_irq()
477 bcs->ctrl.sr.cmd |= HDLC_CMD_RRS; in hdlc_rpr_irq()
479 bcs->ctrl.sr.cmd &= ~HDLC_CMD_RRS; in hdlc_rpr_irq()
519 bcs->ctrl.sr.xml = 0; in hdlc_xdu_irq()
[all …]
Dhisax_fcpcipnp.h36 struct hdlc_stat_reg sr; member
/linux-4.19.296/drivers/isdn/hardware/mISDN/
Davmfritz.c126 struct hdlc_stat_reg sr; member
368 hdlc->ctrl.sr.cmd = HDLC_CMD_XRS | HDLC_CMD_RRS; in modehdlc()
369 hdlc->ctrl.sr.mode = mode | HDLC_MODE_TRANS; in modehdlc()
377 hdlc->ctrl.sr.cmd = HDLC_CMD_XRS | HDLC_CMD_RRS; in modehdlc()
378 hdlc->ctrl.sr.mode = mode | HDLC_MODE_TRANS; in modehdlc()
380 hdlc->ctrl.sr.cmd = HDLC_CMD_XRS; in modehdlc()
382 hdlc->ctrl.sr.cmd = 0; in modehdlc()
387 hdlc->ctrl.sr.cmd = HDLC_CMD_XRS | HDLC_CMD_RRS; in modehdlc()
388 hdlc->ctrl.sr.mode = mode | HDLC_MODE_ITF_FLG; in modehdlc()
390 hdlc->ctrl.sr.cmd = HDLC_CMD_XRS; in modehdlc()
[all …]
/linux-4.19.296/drivers/pwm/
Dpwm-imx.c142 u32 sr; in imx_pwm_wait_fifo_slot() local
144 sr = readl(imx->mmio_base + MX3_PWMSR); in imx_pwm_wait_fifo_slot()
145 fifoav = sr & MX3_PWMSR_FIFOAV_MASK; in imx_pwm_wait_fifo_slot()
151 sr = readl(imx->mmio_base + MX3_PWMSR); in imx_pwm_wait_fifo_slot()
152 if (fifoav == (sr & MX3_PWMSR_FIFOAV_MASK)) in imx_pwm_wait_fifo_slot()
/linux-4.19.296/crypto/
Dpoly1305_generic.c27 static inline u32 sr(u64 v, u_char n) in sr() function
149 d1 += sr(d0, 26); h0 = and(d0, 0x3ffffff); in poly1305_blocks()
150 d2 += sr(d1, 26); h1 = and(d1, 0x3ffffff); in poly1305_blocks()
151 d3 += sr(d2, 26); h2 = and(d2, 0x3ffffff); in poly1305_blocks()
152 d4 += sr(d3, 26); h3 = and(d3, 0x3ffffff); in poly1305_blocks()
153 h0 += sr(d4, 26) * 5; h4 = and(d4, 0x3ffffff); in poly1305_blocks()
/linux-4.19.296/fs/
Dioctl.c464 struct space_resv sr; in ioctl_preallocate() local
466 if (copy_from_user(&sr, argp, sizeof(sr))) in ioctl_preallocate()
469 switch (sr.l_whence) { in ioctl_preallocate()
473 sr.l_start += filp->f_pos; in ioctl_preallocate()
476 sr.l_start += i_size_read(inode); in ioctl_preallocate()
482 return vfs_fallocate(filp, FALLOC_FL_KEEP_SIZE, sr.l_start, sr.l_len); in ioctl_preallocate()
/linux-4.19.296/fs/ocfs2/
Dfile.c1935 struct ocfs2_space_resv *sr, in __ocfs2_change_file_space() argument
1971 switch (sr->l_whence) { in __ocfs2_change_file_space()
1975 sr->l_start += f_pos; in __ocfs2_change_file_space()
1978 sr->l_start += i_size_read(inode); in __ocfs2_change_file_space()
1984 sr->l_whence = 0; in __ocfs2_change_file_space()
1986 llen = sr->l_len > 0 ? sr->l_len - 1 : sr->l_len; in __ocfs2_change_file_space()
1988 if (sr->l_start < 0 in __ocfs2_change_file_space()
1989 || sr->l_start > max_off in __ocfs2_change_file_space()
1990 || (sr->l_start + llen) < 0 in __ocfs2_change_file_space()
1991 || (sr->l_start + llen) > max_off) { in __ocfs2_change_file_space()
[all …]
/linux-4.19.296/drivers/misc/cxl/
Dnative.c594 #define set_endian(sr) ((sr) |= CXL_PSL_SR_An_LE) argument
596 #define set_endian(sr) ((sr) &= ~(CXL_PSL_SR_An_LE)) argument
601 u64 sr = 0; in cxl_calculate_sr() local
603 set_endian(sr); in cxl_calculate_sr()
605 sr |= CXL_PSL_SR_An_MP; in cxl_calculate_sr()
607 sr |= CXL_PSL_SR_An_TC; in cxl_calculate_sr()
611 sr |= CXL_PSL_SR_An_R; in cxl_calculate_sr()
612 sr |= (mfmsr() & MSR_SF) | CXL_PSL_SR_An_HV; in cxl_calculate_sr()
614 sr |= CXL_PSL_SR_An_PR | CXL_PSL_SR_An_R; in cxl_calculate_sr()
616 sr |= CXL_PSL_SR_An_HV; in cxl_calculate_sr()
[all …]
/linux-4.19.296/include/misc/
Dcxllib.h105 u64 sr; member

12