Home
last modified time | relevance | path

Searched refs:I2C_F_POLL (Results 1 – 25 of 41) sorted by relevance

12

/dports/misc/rump/buildrump.sh-b914579/src/sys/dev/i2c/
H A Dmt2131.c88 iic_acquire_bus(t, I2C_F_POLL); in mt2131_open()
90 iic_release_bus(t, I2C_F_POLL); in mt2131_open()
159 iic_acquire_bus(sc->tag, I2C_F_POLL); in mt2131_tune_dtv()
161 iic_release_bus(sc->tag, I2C_F_POLL); in mt2131_tune_dtv()
204 iic_release_bus(sc->tag, I2C_F_POLL); in mt2131_init()
216 NULL, 0, I2C_F_POLL); in mt2131_init()
217 iic_release_bus(sc->tag, I2C_F_POLL); in mt2131_init()
233 &r, 1, v, 1, I2C_F_POLL); in mt2131_read()
235 iic_release_bus(sc->tag, I2C_F_POLL); in mt2131_read()
251 b, sizeof(b), NULL, 0, I2C_F_POLL); in mt2131_write()
[all …]
H A Dm41st84.c312 iic_release_bus(sc->sc_tag, I2C_F_POLL); in strtc_clock_read()
321 iic_release_bus(sc->sc_tag, I2C_F_POLL); in strtc_clock_read()
334 &bcd[i], 1, I2C_F_POLL)) { in strtc_clock_read()
335 iic_release_bus(sc->sc_tag, I2C_F_POLL); in strtc_clock_read()
344 iic_release_bus(sc->sc_tag, I2C_F_POLL); in strtc_clock_read()
392 iic_release_bus(sc->sc_tag, I2C_F_POLL); in strtc_clock_write()
406 iic_release_bus(sc->sc_tag, I2C_F_POLL); in strtc_clock_write()
415 iic_release_bus(sc->sc_tag, I2C_F_POLL); in strtc_clock_write()
431 I2C_F_POLL)) { in strtc_clock_write()
441 iic_release_bus(sc->sc_tag, I2C_F_POLL); in strtc_clock_write()
[all …]
H A Drs5c372.c132 if (iic_acquire_bus(sc->sc_tag, I2C_F_POLL)) { in rs5c372rtc_reg_write()
142 cmdbuf, 1, &cmdbuf[1], 1, I2C_F_POLL)) { in rs5c372rtc_reg_write()
143 iic_release_bus(sc->sc_tag, I2C_F_POLL); in rs5c372rtc_reg_write()
149 iic_release_bus(sc->sc_tag, I2C_F_POLL); in rs5c372rtc_reg_write()
158 if (iic_acquire_bus(sc->sc_tag, I2C_F_POLL)) { in rs5c372rtc_clock_read()
166 cmdbuf, 1, bcd, RS5C372_NRTC_REGS, I2C_F_POLL)) { in rs5c372rtc_clock_read()
167 iic_release_bus(sc->sc_tag, I2C_F_POLL); in rs5c372rtc_clock_read()
173 iic_release_bus(sc->sc_tag, I2C_F_POLL); in rs5c372rtc_clock_read()
206 if (iic_acquire_bus(sc->sc_tag, I2C_F_POLL)) { in rs5c372rtc_clock_write()
215 iic_release_bus(sc->sc_tag, I2C_F_POLL); in rs5c372rtc_clock_write()
[all …]
H A Dmax6900.c325 &bcd[i], 1, I2C_F_POLL)) { in maxrtc_clock_read()
326 iic_release_bus(sc->sc_tag, I2C_F_POLL); in maxrtc_clock_read()
336 iic_release_bus(sc->sc_tag, I2C_F_POLL); in maxrtc_clock_read()
396 iic_release_bus(sc->sc_tag, I2C_F_POLL); in maxrtc_clock_write()
418 iic_release_bus(sc->sc_tag, I2C_F_POLL); in maxrtc_clock_write()
427 iic_release_bus(sc->sc_tag, I2C_F_POLL); in maxrtc_clock_write()
439 cmdbuf, 1, &bcd[i], 1, I2C_F_POLL)) { in maxrtc_clock_write()
440 iic_release_bus(sc->sc_tag, I2C_F_POLL); in maxrtc_clock_write()
452 iic_release_bus(sc->sc_tag, I2C_F_POLL); in maxrtc_clock_write()
474 iic_release_bus(sc->sc_tag, I2C_F_POLL); in maxrtc_clock_write()
[all …]
H A Dm41t00.c285 if (iic_acquire_bus(sc->sc_tag, I2C_F_POLL)) { in m41t00_clock_read()
298 &bcd[i], 1, I2C_F_POLL)) { in m41t00_clock_read()
299 iic_release_bus(sc->sc_tag, I2C_F_POLL); in m41t00_clock_read()
309 iic_release_bus(sc->sc_tag, I2C_F_POLL); in m41t00_clock_read()
350 if (iic_acquire_bus(sc->sc_tag, I2C_F_POLL)) { in m41t00_clock_write()
374 iic_release_bus(sc->sc_tag, I2C_F_POLL); in m41t00_clock_write()
383 iic_release_bus(sc->sc_tag, I2C_F_POLL); in m41t00_clock_write()
395 cmdbuf, 1, &bcd[i], 1, I2C_F_POLL)) { in m41t00_clock_write()
396 iic_release_bus(sc->sc_tag, I2C_F_POLL); in m41t00_clock_write()
408 iic_release_bus(sc->sc_tag, I2C_F_POLL); in m41t00_clock_write()
[all …]
H A Dpcf8583.c341 &bcd[i], 1, I2C_F_POLL))) { in pcfrtc_clock_read()
342 iic_release_bus(sc->sc_tag, I2C_F_POLL); in pcfrtc_clock_read()
352 iic_release_bus(sc->sc_tag, I2C_F_POLL); in pcfrtc_clock_read()
418 &bcd[i], 1, I2C_F_POLL))) { in pcfrtc_clock_write()
428 iic_release_bus(sc->sc_tag, I2C_F_POLL); in pcfrtc_clock_write()
454 cmdbuf, 1, rvp, 1, I2C_F_POLL)) { in pcfrtc_bootstrap_read()
455 iic_release_bus(tag, I2C_F_POLL); in pcfrtc_bootstrap_read()
464 iic_release_bus(tag, I2C_F_POLL); in pcfrtc_bootstrap_read()
489 cmdbuf, 1, rvp, 1, I2C_F_POLL)) { in pcfrtc_bootstrap_write()
490 iic_release_bus(tag, I2C_F_POLL); in pcfrtc_bootstrap_write()
[all …]
H A Dds1307.c425 iic_release_bus(sc->sc_tag, I2C_F_POLL); in dsrtc_clock_read_ymdhms()
495 iic_release_bus(sc->sc_tag, I2C_F_POLL); in dsrtc_clock_write_ymdhms()
506 iic_release_bus(sc->sc_tag, I2C_F_POLL); in dsrtc_clock_write_ymdhms()
543 I2C_F_POLL)) != 0) { in dsrtc_clock_write_ymdhms()
552 iic_release_bus(sc->sc_tag, I2C_F_POLL); in dsrtc_clock_write_ymdhms()
613 &reg, 1, buf, 4, I2C_F_POLL); in dsrtc_clock_read_timeval()
616 iic_release_bus(sc->sc_tag, I2C_F_POLL); in dsrtc_clock_read_timeval()
660 &buf, buflen, NULL, 0, I2C_F_POLL); in dsrtc_clock_write_timeval()
663 iic_release_bus(sc->sc_tag, I2C_F_POLL); in dsrtc_clock_write_timeval()
695 &reg, 1, buf, 2, I2C_F_POLL); in dsrtc_read_temp()
[all …]
H A Das3722.c109 iic_acquire_bus(ia->ia_tag, I2C_F_POLL); in as3722_match()
112 &reg, 1, &id1, 1, I2C_F_POLL); in as3722_match()
113 iic_release_bus(ia->ia_tag, I2C_F_POLL); in as3722_match()
138 iic_acquire_bus(sc->sc_i2c, I2C_F_POLL); in as3722_attach()
144 I2C_F_POLL); in as3722_attach()
146 __SHIFTIN(1, AS3722_WATCHDOG_CTRL_MODE), 0, I2C_F_POLL); in as3722_attach()
147 iic_release_bus(sc->sc_i2c, I2C_F_POLL); in as3722_attach()
202 const int flags = (cold ? I2C_F_POLL : 0); in as3722_wdt_setmode()
239 const int flags = (cold ? I2C_F_POLL : 0); in as3722_wdt_tickle()
255 const int flags = I2C_F_POLL; in as3722_poweroff()
[all …]
H A Dmcp980x.c146 if (iic_acquire_bus(sc->sc_tag, I2C_F_POLL) != 0) { in mcp980x_reg_read_2()
152 1, &rv, 2, I2C_F_POLL)) { in mcp980x_reg_read_2()
154 iic_release_bus(sc->sc_tag, I2C_F_POLL); in mcp980x_reg_read_2()
157 iic_release_bus(sc->sc_tag, I2C_F_POLL); in mcp980x_reg_read_2()
173 1, &rv, 1, I2C_F_POLL)) { in mcp980x_reg_read_1()
175 iic_release_bus(sc->sc_tag, I2C_F_POLL); in mcp980x_reg_read_1()
178 iic_release_bus(sc->sc_tag, I2C_F_POLL); in mcp980x_reg_read_1()
196 1, &beval, 2, I2C_F_POLL)) { in mcp980x_reg_write_2()
200 iic_release_bus(sc->sc_tag, I2C_F_POLL); in mcp980x_reg_write_2()
213 1, &val, 1, I2C_F_POLL)) { in mcp980x_reg_write_1()
[all …]
H A Dtvpll.c69 iic_acquire_bus(tvpll->tag, I2C_F_POLL); in tvpll_open()
72 NULL, 0, I2C_F_POLL); in tvpll_open()
73 iic_release_bus(tvpll->tag, I2C_F_POLL); in tvpll_open()
138 iic_acquire_bus(tvpll->tag, I2C_F_POLL); in tvpll_tune_dtv()
143 rv = iic_exec(tvpll->tag, I2C_OP_WRITE_WITH_STOP, tvpll->addr, ab, 2, NULL, 0, I2C_F_POLL); in tvpll_tune_dtv()
145 rv = iic_exec(tvpll->tag, I2C_OP_WRITE_WITH_STOP, tvpll->addr, b, 4, NULL, 0, I2C_F_POLL); in tvpll_tune_dtv()
146 iic_release_bus(tvpll->tag, I2C_F_POLL); in tvpll_tune_dtv()
H A Ds390.c198 if (iic_acquire_bus(sc->sc_tag, I2C_F_POLL)) { in s390rtc_read()
205 NULL, 0, buf, len, I2C_F_POLL)) { in s390rtc_read()
206 iic_release_bus(sc->sc_tag, I2C_F_POLL); in s390rtc_read()
212 iic_release_bus(sc->sc_tag, I2C_F_POLL); in s390rtc_read()
226 if (iic_acquire_bus(sc->sc_tag, I2C_F_POLL)) { in s390rtc_write()
237 NULL, 0, buf, len, I2C_F_POLL)) { in s390rtc_write()
238 iic_release_bus(sc->sc_tag, I2C_F_POLL); in s390rtc_write()
244 iic_release_bus(sc->sc_tag, I2C_F_POLL); in s390rtc_write()
H A Dr2025.c213 if (iic_acquire_bus(sc->sc_tag, I2C_F_POLL)) { in r2025rtc_reg_write()
223 cmdbuf, 1, buf, 1, I2C_F_POLL)) { in r2025rtc_reg_write()
224 iic_release_bus(sc->sc_tag, I2C_F_POLL); in r2025rtc_reg_write()
231 iic_release_bus(sc->sc_tag, I2C_F_POLL); in r2025rtc_reg_write()
243 if (iic_acquire_bus(sc->sc_tag, I2C_F_POLL)) { in r2025rtc_reg_read()
253 cmdbuf, 1, buf, 1, I2C_F_POLL)) { in r2025rtc_reg_read()
254 iic_release_bus(sc->sc_tag, I2C_F_POLL); in r2025rtc_reg_read()
263 iic_release_bus(sc->sc_tag, I2C_F_POLL); in r2025rtc_reg_read()
H A Dx1226.c290 if (iic_acquire_bus(sc->sc_tag, I2C_F_POLL)) { in xrtc_clock_read()
305 &bcd[i], 1, I2C_F_POLL)) { in xrtc_clock_read()
306 iic_release_bus(sc->sc_tag, I2C_F_POLL); in xrtc_clock_read()
315 iic_release_bus(sc->sc_tag, I2C_F_POLL); in xrtc_clock_read()
367 if (iic_acquire_bus(sc->sc_tag, I2C_F_POLL)) { in xrtc_clock_write()
381 iic_release_bus(sc->sc_tag, I2C_F_POLL); in xrtc_clock_write()
395 iic_release_bus(sc->sc_tag, I2C_F_POLL); in xrtc_clock_write()
409 &bcd[i], 1, I2C_F_POLL)) { in xrtc_clock_write()
421 iic_release_bus(sc->sc_tag, I2C_F_POLL); in xrtc_clock_write()
436 iic_release_bus(sc->sc_tag, I2C_F_POLL); in xrtc_clock_write()
[all …]
H A Dcx24227.c111 if (iic_acquire_bus(sc->tag, I2C_F_POLL) != 0) in cx24227_writereg()
118 r, 3, NULL, 0, I2C_F_POLL); in cx24227_writereg()
120 iic_release_bus(sc->tag, I2C_F_POLL); in cx24227_writereg()
133 if (iic_acquire_bus(sc->tag, I2C_F_POLL) != 0) in cx24227_readreg()
137 &reg, 1, r, 2, I2C_F_POLL); in cx24227_readreg()
139 iic_release_bus(sc->tag, I2C_F_POLL); in cx24227_readreg()
H A Dpcf8563.c94 iic_acquire_bus(sc->sc_tag, I2C_F_POLL); in pcf8563rtc_attach()
96 I2C_F_POLL); in pcf8563rtc_attach()
98 I2C_F_POLL); in pcf8563rtc_attach()
99 iic_release_bus(sc->sc_tag, I2C_F_POLL); in pcf8563rtc_attach()
131 const int flags = I2C_F_POLL; in pcf8563rtc_clock_read()
169 const int flags = I2C_F_POLL; in pcf8563rtc_clock_write()
H A Daxp20x.c194 &sc->sc_inputstatus, 1, I2C_F_POLL); in axp20x_attach()
200 &sc->sc_powermode, 1, I2C_F_POLL); in axp20x_attach()
208 error = axp20x_write(sc, AXP_ADC_EN1, &value, 1, I2C_F_POLL); in axp20x_attach()
213 error = axp20x_read(sc, AXP_ADC_EN2, &value, 1, I2C_F_POLL); in axp20x_attach()
219 error = axp20x_write(sc, AXP_ADC_EN2, &value, 1, I2C_F_POLL); in axp20x_attach()
327 if (axp20x_read(sc, AXP_DCDC2, &value, 1, I2C_F_POLL) == 0) { in axp20x_attach()
331 if (axp20x_read(sc, AXP_DCDC3, &value, 1, I2C_F_POLL) == 0) { in axp20x_attach()
335 if (axp20x_read(sc, AXP_LDO2_4, &value, 1, I2C_F_POLL) == 0) { in axp20x_attach()
342 if (axp20x_read(sc, AXP_LDO3, &value, 1, I2C_F_POLL) == 0) { in axp20x_attach()
534 poll ? I2C_F_POLL : 0); in axp20x_set_dcdc()
[all …]
H A Dddc.c105 if ((error = iic_acquire_bus(tag, I2C_F_POLL)) != 0) in ddc_read_edid_block()
111 edid, sizeof(edid), I2C_F_POLL)) != 0) { in ddc_read_edid_block()
112 iic_release_bus(tag, I2C_F_POLL); in ddc_read_edid_block()
115 iic_release_bus(tag, I2C_F_POLL); in ddc_read_edid_block()
H A Dmpl115a.c157 if (iic_acquire_bus(sc->sc_tag, I2C_F_POLL) != 0) { in mpl115a_reg_write_1()
163 &val, 1, I2C_F_POLL)) { in mpl115a_reg_write_1()
166 iic_release_bus(sc->sc_tag, I2C_F_POLL); in mpl115a_reg_write_1()
174 if (iic_acquire_bus(sc->sc_tag, I2C_F_POLL) != 0) { in mpl115a_reg_read_1()
184 1, &rv, 1, I2C_F_POLL)) { in mpl115a_reg_read_1()
186 iic_release_bus(sc->sc_tag, I2C_F_POLL); in mpl115a_reg_read_1()
189 iic_release_bus(sc->sc_tag, I2C_F_POLL); in mpl115a_reg_read_1()
H A Dlm75.c206 iic_acquire_bus(sc->sc_tag, I2C_F_POLL); in lmtemp_attach()
214 iic_release_bus(sc->sc_tag, I2C_F_POLL); in lmtemp_attach()
221 iic_release_bus(sc->sc_tag, I2C_F_POLL); in lmtemp_attach()
228 iic_release_bus(sc->sc_tag, I2C_F_POLL); in lmtemp_attach()
235 iic_release_bus(sc->sc_tag, I2C_F_POLL); in lmtemp_attach()
247 iic_release_bus(sc->sc_tag, I2C_F_POLL); in lmtemp_attach()
250 iic_release_bus(sc->sc_tag, I2C_F_POLL); in lmtemp_attach()
287 sc->sc_address, cmdbuf, 1, &cmdbuf[1], 1, I2C_F_POLL); in lmtemp_config_write()
299 sc->sc_address, cmdbuf, 1, &cmdbuf[1], 2, I2C_F_POLL); in lmtemp_temp_write()
586 iic_acquire_bus(sc->sc_tag, I2C_F_POLL); in sysctl_lm75_temp()
[all …]
H A Dspdmem_i2c.c170 &dummy, 1, NULL, 0, I2C_F_POLL); in spdmem_i2c_read()
172 &reg, 1, val, 1, I2C_F_POLL); in spdmem_i2c_read()
174 sc->sc_page0, &dummy, 1, NULL, 0, I2C_F_POLL); in spdmem_i2c_read()
177 &reg, 1, val, 1, I2C_F_POLL); in spdmem_i2c_read()
H A Dtps65217pmic.c594 if (iic_acquire_bus(sc->sc_tag, I2C_F_POLL) != 0) { in tps65217pmic_reg_read()
602 1, &rv, 1, I2C_F_POLL)) { in tps65217pmic_reg_read()
604 iic_release_bus(sc->sc_tag, I2C_F_POLL); in tps65217pmic_reg_read()
607 iic_release_bus(sc->sc_tag, I2C_F_POLL); in tps65217pmic_reg_read()
622 wbuf, 2, I2C_F_POLL)) { in tps65217pmic_reg_write_unlocked()
631 if (iic_acquire_bus(sc->sc_tag, I2C_F_POLL) != 0) { in tps65217pmic_reg_write()
638 iic_release_bus(sc->sc_tag, I2C_F_POLL); in tps65217pmic_reg_write()
646 if (iic_acquire_bus(sc->sc_tag, I2C_F_POLL) != 0) { in tps65217pmic_reg_write_l2()
655 iic_release_bus(sc->sc_tag, I2C_F_POLL); in tps65217pmic_reg_write_l2()
H A Dtitemp.c100 if (iic_acquire_bus(ia->ia_tag, I2C_F_POLL) != 0) in titemp_match()
103 TITEMP_MFID_REG, &mfid, I2C_F_POLL); in titemp_match()
104 iic_release_bus(ia->ia_tag, I2C_F_POLL); in titemp_match()
H A Dat24cxx.c426 if (iic_acquire_bus(tag, I2C_F_POLL) != 0) in seeprom_bootstrap_read()
441 cmdbuf, cmdlen, rvp, 1, I2C_F_POLL)) { in seeprom_bootstrap_read()
442 iic_release_bus(tag, I2C_F_POLL); in seeprom_bootstrap_read()
451 iic_release_bus(tag, I2C_F_POLL); in seeprom_bootstrap_read()
H A Dnxt2k.c77 if (iic_acquire_bus(nxt->tag, I2C_F_POLL) != 0) in nxt2k_writedata()
84 buffer, len + 1, NULL, 0, I2C_F_POLL); in nxt2k_writedata()
86 iic_release_bus(nxt->tag, I2C_F_POLL); in nxt2k_writedata()
96 if (iic_acquire_bus(nxt->tag, I2C_F_POLL) != 0) in nxt2k_readdata()
100 &reg, 1, data, len, I2C_F_POLL); in nxt2k_readdata()
102 iic_release_bus(nxt->tag, I2C_F_POLL); in nxt2k_readdata()
/dports/misc/rump/buildrump.sh-b914579/src/sys/dev/pci/
H A Dichsmb.c294 flags |= I2C_F_POLL; in ichsmb_i2c_exec()
342 if ((flags & I2C_F_POLL) == 0) in ichsmb_i2c_exec()
349 if (flags & I2C_F_POLL) { in ichsmb_i2c_exec()
444 if ((sc->sc_i2c_xfer.flags & I2C_F_POLL) == 0) in ichsmb_intr()

12