Lines Matching +full:0 +full:xfffffe00
26 #define THERM_START_CONVERT 0xee
27 #define THERM_RESET 0xaf
28 #define THERM_READ_CONFIG 0xac
29 #define THERM_READ_TEMP 0xaa
30 #define THERM_READ_TL 0xa2
31 #define THERM_READ_TH 0xa1
32 #define THERM_WRITE_CONFIG 0x0c
33 #define THERM_WRITE_TL 0x02
34 #define THERM_WRITE_TH 0x01
53 nw_gpio_modify_op(GPIO_DSCLK, clk ? GPIO_DSCLK : 0); in netwinder_ds1620_set_clk()
58 nw_gpio_modify_op(GPIO_DATA, dat ? GPIO_DATA : 0); in netwinder_ds1620_set_data()
68 nw_gpio_modify_io(GPIO_DATA, dir ? GPIO_DATA : 0); in netwinder_ds1620_set_data_dir()
73 nw_cpld_modify(CPLD_DS_ENABLE, 0); in netwinder_ds1620_reset()
92 nw_gpio_modify_op(GPIO_FAN, i ? GPIO_FAN : 0); in netwinder_set_fan()
98 if ((system_rev & 0xf000) == 0x4000) in netwinder_get_fan()
112 for (i = 0; i < nr; i++) { in ds1620_send_bits()
114 netwinder_ds1620_set_clk(0); in ds1620_send_bits()
125 unsigned int value = 0, mask = 1; in ds1620_recv_bits()
128 netwinder_ds1620_set_data(0); in ds1620_recv_bits()
130 for (i = 0; i < nr; i++) { in ds1620_recv_bits()
131 netwinder_ds1620_set_clk(0); in ds1620_recv_bits()
152 netwinder_ds1620_set_data_dir(0); in ds1620_out()
176 netwinder_ds1620_set_data_dir(0); in ds1620_in()
194 if (val & 0x100) in cvt_9_to_int()
195 val |= 0xfffffe00; in cvt_9_to_int()
205 ds1620_out(THERM_START_CONVERT, 0, 0); in ds1620_write_state()
292 return put_user(i, uarg.i) ? -EFAULT : 0; in ds1620_ioctl()
295 i = ds1620_in(THERM_READ_CONFIG, 8) & 0xe3; in ds1620_ioctl()
297 return put_user(i, uarg.i) ? -EFAULT : 0; in ds1620_ioctl()
302 return put_user(i, uarg.i) ? -EFAULT : 0; in ds1620_ioctl()
318 return 0; in ds1620_ioctl()
343 th.hi >> 1, th.hi & 1 ? 5 : 0, in ds1620_proc_therm_show()
344 th.lo >> 1, th.lo & 1 ? 5 : 0, in ds1620_proc_therm_show()
345 temp >> 1, temp & 1 ? 5 : 0, in ds1620_proc_therm_show()
347 return 0; in ds1620_proc_therm_show()
372 ds1620_out(THERM_RESET, 0, 0); in ds1620_init()
374 ds1620_out(THERM_START_CONVERT, 0, 0); in ds1620_init()
382 th_start.lo = 0; in ds1620_init()
391 if (ret < 0) in ds1620_init()
395 if (!proc_create_single("therm", 0, NULL, ds1620_proc_therm_show)) in ds1620_init()
404 th.hi >> 1, th.hi & 1 ? 5 : 0, in ds1620_init()
405 th.lo >> 1, th.lo & 1 ? 5 : 0, in ds1620_init()
406 ret >> 1, ret & 1 ? 5 : 0, in ds1620_init()
409 return 0; in ds1620_init()