Home | History | Annotate | Download | only in cmd

Lines Matching refs:len

15 void write_to_env_var(char *varname, u8 *result, ulong len)
21 str_output = malloc(len * 2 + 1);
24 for (i = 0; i < len; i++) {
68 void read_from_mem(ulong addr, u8 *result, ulong len)
72 src = map_sysmem(addr, len);
73 memcpy(result, src, len);
77 void write_to_mem(char *varname, u8 *result, ulong len)
83 buf = map_sysmem(addr, len);
84 memcpy(buf, result, len);
90 ulong len;
112 len = simple_strtoul(lenarg, NULL, 10);
114 src1 = malloc(len);
115 src2 = malloc(len);
118 read_from_mem(simple_strtoul(src1arg + 1, NULL, 16), src1, len);
123 read_from_mem(simple_strtoul(src2arg + 1, NULL, 16), src2, len);
127 result = malloc(len);
131 for (i = 0; i < len; i++)
135 for (i = 0; i < len; i++)
139 for (i = 0; i < len; i++)
145 for (i = 0; i < len; i++) {
158 write_to_mem(destarg + 1, result, len); /* Skip asterisk */
160 write_to_env_var(destarg, result, len);