Lines Matching defs:len
9 uint64_t len;
26 trto_regs tr(uint16_t *addr, uint16_t *codepage, uint8_t *dest, uint64_t len,
31 register uint64_t length asm("3") = len;
47 regs.len = length;
55 int run_test(void *srcaddr, void *tableaddr, void *desaddr, uint64_t len,
61 assert(len <= sizeof src);
66 regs = tr(srcaddr, tableaddr, desaddr, len, testbyte);
70 if ((uint64_t)srcaddr + (len - regs.len) != regs.srcaddr)
72 if ((uint64_t)desaddr + ((len - regs.len)/2) != regs.desaddr)
74 if (regs.cc == 0 && regs.len != 0)
76 printf("%u bytes translated\n", ((unsigned)(len - regs.len)/2));
78 for (i = 0; i < len/2; i++) {
92 /* Test 1 : len == 0 */
105 /* Test 2 : len > 0, testbyte not matching */
116 /* Test 3 : len > 0 , testbyte matching */