Home
last modified time | relevance | path

Searched refs:readb (Results 1 – 25 of 91) sorted by relevance

1234

/linux-4.19.296/drivers/char/
Dapplicom.c136 if((readb(loc + CONF_END_TEST) != 0x00) || in ac_register_board()
137 (readb(loc + CONF_END_TEST + 1) != 0x55) || in ac_register_board()
138 (readb(loc + CONF_END_TEST + 2) != 0xAA) || in ac_register_board()
139 (readb(loc + CONF_END_TEST + 3) != 0xFF)) in ac_register_board()
143 boardno = readb(loc + NUMCARD_OWNER_TO_PC); in ac_register_board()
163 byte_reset_it = readb(loc + RAM_IT_TO_PC); in ac_register_board()
316 boardname[serial] = readb(apbs[i].RamIO + TYPE_CARD + serial); in applicom_init()
323 (int)(readb(apbs[i].RamIO + VERS) >> 4), in applicom_init()
324 (int)(readb(apbs[i].RamIO + VERS) & 0xF)); in applicom_init()
326 serial = (readb(apbs[i].RamIO + SERIAL_NUMBER) << 16) + in applicom_init()
[all …]
Dtoshiba.c366 id = (0x100*(int) readb(bios+0xfffe))+((int) readb(bios+0xfffa)); in tosh_get_machine_id()
429 if (readb(bios+0xe010+i)!=signature[i]) { in tosh_probe()
461 major = readb(bios+0xe009)-'0'; in tosh_probe()
462 minor = ((readb(bios+0xe00b)-'0')*10)+(readb(bios+0xe00c)-'0'); in tosh_probe()
467 day = ((readb(bios+0xfff5)-'0')*10)+(readb(bios+0xfff6)-'0'); in tosh_probe()
468 month = ((readb(bios+0xfff8)-'0')*10)+(readb(bios+0xfff9)-'0'); in tosh_probe()
469 year = ((readb(bios+0xfffb)-'0')*10)+(readb(bios+0xfffc)-'0'); in tosh_probe()
/linux-4.19.296/drivers/rtc/
Drtc-ds1742.c95 second = readb(ioaddr + RTC_SECONDS) & RTC_SECONDS_MASK; in ds1742_rtc_read_time()
96 minute = readb(ioaddr + RTC_MINUTES); in ds1742_rtc_read_time()
97 hour = readb(ioaddr + RTC_HOURS); in ds1742_rtc_read_time()
98 day = readb(ioaddr + RTC_DATE); in ds1742_rtc_read_time()
99 week = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK; in ds1742_rtc_read_time()
100 month = readb(ioaddr + RTC_MONTH); in ds1742_rtc_read_time()
101 year = readb(ioaddr + RTC_YEAR); in ds1742_rtc_read_time()
102 century = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK; in ds1742_rtc_read_time()
129 *buf++ = readb(ioaddr + pos++); in ds1742_nvram_read()
177 sec = readb(ioaddr + RTC_SECONDS); in ds1742_rtc_probe()
[all …]
Drtc-stk17ta8.c81 flags = readb(pdata->ioaddr + RTC_FLAGS); in stk17ta8_rtc_set_time()
110 flags = readb(pdata->ioaddr + RTC_FLAGS); in stk17ta8_rtc_read_time()
112 second = readb(ioaddr + RTC_SECONDS) & RTC_SECONDS_MASK; in stk17ta8_rtc_read_time()
113 minute = readb(ioaddr + RTC_MINUTES); in stk17ta8_rtc_read_time()
114 hour = readb(ioaddr + RTC_HOURS); in stk17ta8_rtc_read_time()
115 day = readb(ioaddr + RTC_DATE); in stk17ta8_rtc_read_time()
116 week = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK; in stk17ta8_rtc_read_time()
117 month = readb(ioaddr + RTC_MONTH); in stk17ta8_rtc_read_time()
118 year = readb(ioaddr + RTC_YEAR); in stk17ta8_rtc_read_time()
119 century = readb(ioaddr + RTC_CENTURY); in stk17ta8_rtc_read_time()
[all …]
Drtc-sh.c117 tmp = readb(rtc->regbase + RCR1); in __sh_rtc_interrupt()
133 tmp = readb(rtc->regbase + RCR1); in __sh_rtc_alarm()
148 tmp = readb(rtc->regbase + RCR2); in __sh_rtc_periodic()
225 tmp = readb(rtc->regbase + RCR1); in sh_rtc_setaie()
242 tmp = readb(rtc->regbase + RCR1); in sh_rtc_proc()
245 tmp = readb(rtc->regbase + RCR2); in sh_rtc_proc()
259 tmp = readb(rtc->regbase + RCR1); in sh_rtc_setcie()
287 tmp = readb(rtc->regbase + RCR1); in sh_rtc_read_time()
292 sec128 = readb(rtc->regbase + R64CNT); in sh_rtc_read_time()
294 tm->tm_sec = bcd2bin(readb(rtc->regbase + RSECCNT)); in sh_rtc_read_time()
[all …]
Drtc-ds1553.c110 second = readb(ioaddr + RTC_SECONDS) & RTC_SECONDS_MASK; in ds1553_rtc_read_time()
111 minute = readb(ioaddr + RTC_MINUTES); in ds1553_rtc_read_time()
112 hour = readb(ioaddr + RTC_HOURS); in ds1553_rtc_read_time()
113 day = readb(ioaddr + RTC_DATE); in ds1553_rtc_read_time()
114 week = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK; in ds1553_rtc_read_time()
115 month = readb(ioaddr + RTC_MONTH); in ds1553_rtc_read_time()
116 year = readb(ioaddr + RTC_YEAR); in ds1553_rtc_read_time()
117 century = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK; in ds1553_rtc_read_time()
150 readb(ioaddr + RTC_FLAGS); /* clear interrupts */ in ds1553_rtc_update_alarm()
193 if (readb(ioaddr + RTC_FLAGS) & RTC_FLAGS_AF) { in ds1553_rtc_interrupt()
[all …]
Drtc-m48t35.c60 control = readb(&priv->reg->control); in m48t35_read_time()
62 tm->tm_sec = readb(&priv->reg->sec); in m48t35_read_time()
63 tm->tm_min = readb(&priv->reg->min); in m48t35_read_time()
64 tm->tm_hour = readb(&priv->reg->hour); in m48t35_read_time()
65 tm->tm_mday = readb(&priv->reg->date); in m48t35_read_time()
66 tm->tm_mon = readb(&priv->reg->month); in m48t35_read_time()
67 tm->tm_year = readb(&priv->reg->year); in m48t35_read_time()
125 control = readb(&priv->reg->control); in m48t35_set_time()
Drtc-pic32.c149 rtc_tm->tm_hour = readb(base + PIC32_RTCHOUR); in pic32_rtc_gettime()
150 rtc_tm->tm_min = readb(base + PIC32_RTCMIN); in pic32_rtc_gettime()
151 rtc_tm->tm_mon = readb(base + PIC32_RTCMON); in pic32_rtc_gettime()
152 rtc_tm->tm_mday = readb(base + PIC32_RTCDAY); in pic32_rtc_gettime()
153 rtc_tm->tm_year = readb(base + PIC32_RTCYEAR); in pic32_rtc_gettime()
154 rtc_tm->tm_sec = readb(base + PIC32_RTCSEC); in pic32_rtc_gettime()
216 alm_tm->tm_sec = readb(base + PIC32_ALRMSEC); in pic32_rtc_getalarm()
217 alm_tm->tm_min = readb(base + PIC32_ALRMMIN); in pic32_rtc_getalarm()
218 alm_tm->tm_hour = readb(base + PIC32_ALRMHOUR); in pic32_rtc_getalarm()
219 alm_tm->tm_mon = readb(base + PIC32_ALRMMON); in pic32_rtc_getalarm()
[all …]
Drtc-s3c.c147 tmp = readb(info->base + S3C2410_RTCALM) & ~S3C2410_RTCALM_ALMEN; in s3c_rtc_setaie()
201 rtc_tm->tm_min = readb(info->base + S3C2410_RTCMIN); in s3c_rtc_gettime()
202 rtc_tm->tm_hour = readb(info->base + S3C2410_RTCHOUR); in s3c_rtc_gettime()
203 rtc_tm->tm_mday = readb(info->base + S3C2410_RTCDATE); in s3c_rtc_gettime()
204 rtc_tm->tm_mon = readb(info->base + S3C2410_RTCMON); in s3c_rtc_gettime()
205 rtc_tm->tm_year = readb(info->base + S3C2410_RTCYEAR); in s3c_rtc_gettime()
206 rtc_tm->tm_sec = readb(info->base + S3C2410_RTCSEC); in s3c_rtc_gettime()
282 alm_tm->tm_sec = readb(info->base + S3C2410_ALMSEC); in s3c_rtc_getalarm()
283 alm_tm->tm_min = readb(info->base + S3C2410_ALMMIN); in s3c_rtc_getalarm()
284 alm_tm->tm_hour = readb(info->base + S3C2410_ALMHOUR); in s3c_rtc_getalarm()
[all …]
/linux-4.19.296/drivers/pci/hotplug/
Dibmphp_ebda.c251 ebda_sz = readb(io_mem); in ibmphp_access_ebda()
285 format = readb(io_mem + offset); in ibmphp_access_ebda()
304 num_ctlrs = readb(io_mem + sub_addr); in ibmphp_access_ebda()
360 rio_table_ptr->ver_num = readb(io_mem + offset); in ibmphp_access_ebda()
361 rio_table_ptr->scal_count = readb(io_mem + offset + 1); in ibmphp_access_ebda()
362 rio_table_ptr->riodev_count = readb(io_mem + offset + 2); in ibmphp_access_ebda()
414 rio_detail_ptr->rio_node_id = readb(io_mem + offset); in ebda_rio_table()
416 rio_detail_ptr->rio_type = readb(io_mem + offset + 5); in ebda_rio_table()
417 rio_detail_ptr->owner_id = readb(io_mem + offset + 6); in ebda_rio_table()
418 rio_detail_ptr->port0_node_connect = readb(io_mem + offset + 7); in ebda_rio_table()
[all …]
Dcpqphp_core.c68 return (readb(slot->p_sm_slot + SMBIOS_SLOT_WIDTH) == 0x06) ? 1 : 0; in is_slot64bit()
73 return (readb(slot->p_sm_slot + SMBIOS_SLOT_TYPE) == 0x0E) ? 1 : 0; in is_slot66mhz()
93 temp1 = readb(fp); in detect_SMBIOS_pointer()
94 temp2 = readb(fp+1); in detect_SMBIOS_pointer()
95 temp3 = readb(fp+2); in detect_SMBIOS_pointer()
96 temp4 = readb(fp+3); in detect_SMBIOS_pointer()
131 number_of_slots = readb(ctrl->hpc_reg + SLOT_MASK) & 0x0F; in init_SERR()
210 p_temp += readb(curr + SMBIOS_GENERIC_LENGTH); in get_subsequent_smbios_entry()
217 if (!previous_byte && !(readb(p_temp))) in get_subsequent_smbios_entry()
220 previous_byte = readb(p_temp); in get_subsequent_smbios_entry()
[all …]
Dcpqphp_nvram.c135 temp1 = readb(rom_start + 0xffea + 0); in check_for_compaq_ROM()
136 temp2 = readb(rom_start + 0xffea + 1); in check_for_compaq_ROM()
137 temp3 = readb(rom_start + 0xffea + 2); in check_for_compaq_ROM()
138 temp4 = readb(rom_start + 0xffea + 3); in check_for_compaq_ROM()
139 temp5 = readb(rom_start + 0xffea + 4); in check_for_compaq_ROM()
140 temp6 = readb(rom_start + 0xffea + 5); in check_for_compaq_ROM()
/linux-4.19.296/drivers/gpio/
Dgpio-pl061.c69 return !(readb(pl061->base + GPIODIR) & BIT(offset)); in pl061_get_direction()
79 gpiodir = readb(pl061->base + GPIODIR); in pl061_direction_input()
96 gpiodir = readb(pl061->base + GPIODIR); in pl061_direction_output()
114 return !!readb(pl061->base + (BIT(offset + 2))); in pl061_get_value()
149 gpioiev = readb(pl061->base + GPIOIEV); in pl061_irq_type()
150 gpiois = readb(pl061->base + GPIOIS); in pl061_irq_type()
151 gpioibe = readb(pl061->base + GPIOIBE); in pl061_irq_type()
222 pending = readb(pl061->base + GPIOMIS); in pl061_irq_handler()
240 gpioie = readb(pl061->base + GPIOIE) & ~mask; in pl061_irq_mask()
253 gpioie = readb(pl061->base + GPIOIE) | mask; in pl061_irq_unmask()
[all …]
/linux-4.19.296/drivers/i2c/busses/
Di2c-mpc.c95 if (readb(i2c->base + MPC_I2C_SR) & CSR_MIF) { in mpc_i2c_isr()
97 i2c->interrupt = readb(i2c->base + MPC_I2C_SR); in mpc_i2c_isr()
119 readb(i2c->base + MPC_I2C_DR); /* init xfer */ in mpc_i2c_fixup()
123 readb(i2c->base + MPC_I2C_DR); in mpc_i2c_fixup()
129 readb(i2c->base + MPC_I2C_DR); in mpc_i2c_fixup()
141 while (!(readb(i2c->base + MPC_I2C_SR) & CSR_MIF)) { in i2c_wait()
150 cmd_err = readb(i2c->base + MPC_I2C_SR); in i2c_wait()
229 val = readb(i2c->base + MPC_I2C_SR); in mpc_i2c_fixup_A004447()
240 val = readb(i2c->base + MPC_I2C_DR); in mpc_i2c_fixup_A004447()
248 val = readb(i2c->base + MPC_I2C_DR); in mpc_i2c_fixup_A004447()
[all …]
Di2c-emev2.c77 writeb((readb(priv->base + reg) & ~clear) | set, priv->base + reg); in em_clear_set_bit()
92 status = readb(priv->base + I2C_OFS_IICSE0); in em_i2c_wait_for_event()
111 if (readb(priv->base + I2C_OFS_IICACT0) & I2C_BIT_IICE0) { in em_i2c_reset()
116 while (readb(priv->base + I2C_OFS_IICACT0) == 1 && retr) in em_i2c_reset()
134 while (readb(priv->base + I2C_OFS_IICACT0) == 0 && retr) in em_i2c_reset()
178 msg->buf[count] = readb(priv->base + I2C_OFS_IIC0); in __em_i2c_xfer()
215 if (readb(priv->base + I2C_OFS_IICF0) & I2C_BIT_IICBSY) in em_i2c_xfer()
237 status = readb(priv->base + I2C_OFS_IICSE0); in em_i2c_slave_irq()
288 value = readb(priv->base + I2C_OFS_IIC0); in em_i2c_slave_irq()
Di2c-riic.c108 writeb((readb(riic->base + reg) & ~clear) | set, riic->base + reg); in riic_clear_set_bit()
122 if (readb(riic->base + RIIC_ICCR2) & ICCR2_BBSY) { in riic_xfer()
203 if (readb(riic->base + RIIC_ICSR2) & ICSR2_NACKF) { in riic_tend_isr()
205 readb(riic->base + RIIC_ICDRR); /* dummy read */ in riic_tend_isr()
233 readb(riic->base + RIIC_ICDRR); /* dummy read */ in riic_rdrf_isr()
251 *riic->buf = readb(riic->base + RIIC_ICDRR); in riic_rdrf_isr()
264 readb(riic->base + RIIC_ICSR2); in riic_stop_isr()
266 readb(riic->base + RIIC_ICIER); in riic_stop_isr()
Di2c-synquacer.c270 bsr = readb(i2c->base + SYNQUACER_I2C_REG_BSR); in synquacer_i2c_master_start()
271 bcr = readb(i2c->base + SYNQUACER_I2C_REG_BCR); in synquacer_i2c_master_start()
299 bsr = readb(i2c->base + SYNQUACER_I2C_REG_BSR); in synquacer_i2c_master_start()
300 bcr = readb(i2c->base + SYNQUACER_I2C_REG_BCR); in synquacer_i2c_master_start()
323 bsr = readb(i2c->base + SYNQUACER_I2C_REG_BSR); in synquacer_i2c_doxfer()
370 bcr = readb(i2c->base + SYNQUACER_I2C_REG_BCR); in synquacer_i2c_isr()
371 bsr = readb(i2c->base + SYNQUACER_I2C_REG_BSR); in synquacer_i2c_isr()
448 byte = readb(i2c->base + SYNQUACER_I2C_REG_DAR); in synquacer_i2c_isr()
/linux-4.19.296/drivers/edac/
Di82975x_edac.c354 drb[row][0] = readb(mch_window + I82975X_DRB + row); in dual_channel_active()
355 drb[row][1] = readb(mch_window + I82975X_DRB + row + 0x80); in dual_channel_active()
394 value = readb(mch_window + I82975X_DRB + index + in i82975x_init_csrows()
505 c0drb[0] = readb(mch_window + I82975X_DRB_CH0R0); in i82975x_probe1()
506 c0drb[1] = readb(mch_window + I82975X_DRB_CH0R1); in i82975x_probe1()
507 c0drb[2] = readb(mch_window + I82975X_DRB_CH0R2); in i82975x_probe1()
508 c0drb[3] = readb(mch_window + I82975X_DRB_CH0R3); in i82975x_probe1()
509 c1drb[0] = readb(mch_window + I82975X_DRB_CH1R0); in i82975x_probe1()
510 c1drb[1] = readb(mch_window + I82975X_DRB_CH1R1); in i82975x_probe1()
511 c1drb[2] = readb(mch_window + I82975X_DRB_CH1R2); in i82975x_probe1()
[all …]
Di3000_edac.c334 c0dra[0] = readb(window + I3000_C0DRA + 0); /* ranks 0,1 */ in i3000_probe1()
335 c0dra[1] = readb(window + I3000_C0DRA + 1); /* ranks 2,3 */ in i3000_probe1()
336 c1dra[0] = readb(window + I3000_C1DRA + 0); /* ranks 0,1 */ in i3000_probe1()
337 c1dra[1] = readb(window + I3000_C1DRA + 1); /* ranks 2,3 */ in i3000_probe1()
340 c0drb[i] = readb(window + I3000_C0DRB + i); in i3000_probe1()
341 c1drb[i] = readb(window + I3000_C1DRB + i); in i3000_probe1()
/linux-4.19.296/drivers/parport/
Dparport_ax88796.c60 return readb(dd->spp_data); in parport_ax88796_read_data()
75 unsigned int cpr = readb(dd->spp_cpr); in parport_ax88796_read_control()
97 unsigned int cpr = readb(dd->spp_cpr); in parport_ax88796_write_control()
126 unsigned int status = readb(dd->spp_spr); in parport_ax88796_read_status()
195 writeb((readb(cpr) & ~AX_CPR_nDOE), cpr); in parport_ax88796_data_forward()
204 writeb(readb(cpr) | AX_CPR_nDOE, cpr); in parport_ax88796_data_reverse()
215 s->u.ax88796.cpr = readb(dd->spp_cpr); in parport_ax88796_init_state()
224 s->u.ax88796.cpr = readb(dd->spp_cpr); in parport_ax88796_save_state()
Dparport_ip32.c342 unsigned int ecr = readb(priv->regs.ecr); in parport_ip32_dump_state()
360 oecr = readb(priv->regs.ecr); in parport_ip32_dump_state()
363 cnfgA = readb(priv->regs.cnfgA); in parport_ip32_dump_state()
364 cnfgB = readb(priv->regs.cnfgB); in parport_ip32_dump_state()
399 unsigned int dcr = i ? priv->dcr_cache : readb(priv->regs.dcr); in parport_ip32_dump_state()
418 unsigned int dsr = readb(priv->regs.dsr); in parport_ip32_dump_state()
804 return readb(priv->regs.ecr); in parport_ip32_read_econtrol()
870 return readb(priv->regs.data); in parport_ip32_read_data()
891 return readb(priv->regs.dsr); in parport_ip32_read_status()
1120 if (readb(priv->regs.dsr) & DSR_TIMEOUT) { in parport_ip32_epp_read()
[all …]
/linux-4.19.296/drivers/isdn/hisax/
Disurf.c39 return (readb(cs->hw.isurf.isac + offset)); in ReadISAC()
53 data[i] = readb(cs->hw.isurf.isac); in ReadISACfifo()
74 return (readb(cs->hw.isurf.isar + offset)); in ReadISAR()
92 val = readb(cs->hw.isurf.isar + ISAR_IRQBIT); in isurf_interrupt()
96 val = readb(cs->hw.isurf.isac + ISAC_ISTA); in isurf_interrupt()
100 val = readb(cs->hw.isurf.isar + ISAR_IRQBIT); in isurf_interrupt()
106 val = readb(cs->hw.isurf.isac + ISAC_ISTA); in isurf_interrupt()
/linux-4.19.296/drivers/irqchip/
Dirq-vt8500.c91 edge = readb(base + VT8500_ICDC + d->hwirq) & VT8500_EDGE; in vt8500_irq_mask()
98 dctr = readb(base + VT8500_ICDC + d->hwirq); in vt8500_irq_mask()
110 dctr = readb(base + VT8500_ICDC + d->hwirq); in vt8500_irq_unmask()
121 dctr = readb(base + VT8500_ICDC + d->hwirq); in vt8500_irq_set_type()
/linux-4.19.296/drivers/char/hw_random/
Dintel-rng.c157 return readb(mem + INTEL_RNG_HW_STATUS); in hwstatus_get()
173 data = !!(readb(mem + INTEL_RNG_STATUS) & in intel_rng_data_present()
186 *data = readb(mem + INTEL_RNG_DATA); in intel_rng_data_read()
260 mfc = readb(intel_rng_hw->mem + INTEL_FWH_MANUFACTURER_CODE_ADDRESS); in intel_rng_hw_init()
261 dvc = readb(intel_rng_hw->mem + INTEL_FWH_DEVICE_CODE_ADDRESS); in intel_rng_hw_init()
/linux-4.19.296/drivers/clk/h8300/
Dclk-h8s2678.c31 int mul = 1 << (readb(pll_clock->pllcr) & 3); in pll_recalc_rate()
68 val = readb(pll_clock->sckcr); in pll_set_rate()
71 val = readb(pll_clock->pllcr); in pll_set_rate()

1234