Lines Matching +full:0 +full:b010

19 #define SIOX_STATUS_WDG			0x01
26 #define SIOX_STATUS_COUNTER 0x0e
29 * Each Siox-Device has a 4 bit type number that is neither 0 nor 15. This is
34 #define SIOX_STATUS_TYPE 0xf0
56 * status word as 0xa before (counter = 0b101), it is expected to get in siox_status_clean()
57 * back the counter bits as 0b010. in siox_status_clean()
65 return status_read ^ (~status_written & 0xe); in siox_status_clean()
71 return (status_clean & SIOX_STATUS_COUNTER) != 0; in siox_device_counter_error()
80 * against this value otherwise just rule out the invalid values 0b0000 in siox_device_type_error()
81 * and 0b1111. in siox_device_type_error()
88 case 0: in siox_device_type_error()
89 case 0xf: in siox_device_type_error()
99 return (status_clean & SIOX_STATUS_WDG) == 0; in siox_device_wdg_error()
132 unsigned int devno = 0; in siox_poll()
133 int unsync_error = 0; in siox_poll()
140 * The counter bits hold values from [0, 6]. 7 would be possible in siox_poll()
144 * with a stuck-at-0 error. But for the same reason (with s/0/1/) 0 in siox_poll()
147 if (++smaster->status > 0x0d) in siox_poll()
148 smaster->status = 0; in siox_poll()
150 memset(smaster->buf, 0, smaster->setbuf_len); in siox_poll()
152 /* prepare data pushed out to devices in buf[0..setbuf_len) */ in siox_poll()
189 unsync_error = 0; in siox_poll()
192 devno = 0; in siox_poll()
281 signed long timeout = 0; in siox_poll_thread()
288 return 0; in siox_poll_thread()
310 if (timeout > 0) in siox_poll_thread()
315 if (timeout > 0) in siox_poll_thread()
336 return 0; in __siox_start()
360 smaster->active = 0; in __siox_stop()
370 return 0; in __siox_stop()
509 return 0; in siox_match()
570 ret = kstrtoint(buf, 0, &active); in active_store()
571 if (ret < 0) in active_store()
579 if (ret < 0) in active_store()
598 size_t inbytes = 0, outbytes = 0; in device_add_store()
599 u8 statustype = 0; in device_add_store()
648 ret = kstrtou64(buf, 0, &val); in poll_interval_ns_store()
649 if (ret < 0) in poll_interval_ns_store()
756 smaster->active = 0; in siox_master_register()
968 return 0; in siox_init()