Lines Matching +full:0 +full:x4040
40 module_param(heartbeat, int, 0);
45 module_param(nowayout, bool, 0);
71 /* -- FPGA: Reset Control Register (32bit R/W) (Offset: 0x14) -- in pikawdt_reset()
80 unsigned reset = in_be32(pikawdt_private.fpga + 0x14); in pikawdt_reset()
83 out_be32(pikawdt_private.fpga + 0x14, reset); in pikawdt_reset()
117 if (test_and_set_bit(0, &pikawdt_private.open)) in pikawdt_open()
134 clear_bit(0, &pikawdt_private.open); in pikawdt_release()
135 pikawdt_private.expect_close = 0; in pikawdt_release()
136 return 0; in pikawdt_release()
146 return 0; in pikawdt_write()
152 pikawdt_private.expect_close = 0; in pikawdt_write()
154 for (i = 0; i < len; i++) { in pikawdt_write()
182 return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; in pikawdt_ioctl()
185 return put_user(0, p); in pikawdt_ioctl()
192 return 0; in pikawdt_ioctl()
238 pikawdt_private.fpga = of_iomap(np, 0); in pikawdt_init()
245 ident.firmware_version = in_be32(pikawdt_private.fpga + 0x1c) & 0xffff; in pikawdt_init()
255 fpga = of_iomap(np, 0); in pikawdt_init()
263 /* -- FPGA: POST Test Results Register 1 (32bit R/W) (Offset: 0x4040) -- in pikawdt_init()
267 post1 = in_be32(fpga + 0x40); in pikawdt_init()
268 if (post1 & 0x80000000) in pikawdt_init()
273 timer_setup(&pikawdt_private.timer, pikawdt_ping, 0); in pikawdt_init()
283 return 0; in pikawdt_init()