Lines Matching refs:p
205 u8 *p, in altera_execute() argument
267 first_word = get_unaligned_be32(&p[0]); in altera_execute()
272 action_table = get_unaligned_be32(&p[4]); in altera_execute()
273 proc_table = get_unaligned_be32(&p[8]); in altera_execute()
274 str_table = get_unaligned_be32(&p[4 + delta]); in altera_execute()
275 sym_table = get_unaligned_be32(&p[16 + delta]); in altera_execute()
276 data_sect = get_unaligned_be32(&p[20 + delta]); in altera_execute()
277 code_sect = get_unaligned_be32(&p[24 + delta]); in altera_execute()
278 debug_sect = get_unaligned_be32(&p[28 + delta]); in altera_execute()
279 action_count = get_unaligned_be32(&p[40 + delta]); in altera_execute()
280 proc_count = get_unaligned_be32(&p[44 + delta]); in altera_execute()
281 sym_count = get_unaligned_be32(&p[48 + (2 * delta)]); in altera_execute()
327 value = get_unaligned_be32(&p[offset + 3 + delta]); in altera_execute()
329 attrs[i] = p[offset]; in altera_execute()
338 var_size[i] = get_unaligned_be32(&p[offset + 7 + delta]); in altera_execute()
356 uncomp_size = get_unaligned_le32(&p[data_sect + value]); in altera_execute()
367 if (altera_shrink(&p[data_sect + value], in altera_execute()
380 vars[i] = value + data_sect + (long)p; in altera_execute()
438 name_id = get_unaligned_be32(&p[action_table + in altera_execute()
441 name = &p[str_table + name_id]; in altera_execute()
446 get_unaligned_be32(&p[action_table + in altera_execute()
464 (p[proc_table + in altera_execute()
475 i = get_unaligned_be32(&p[proc_table + in altera_execute()
487 i = get_unaligned_be32(&p[proc_table + in altera_execute()
496 get_unaligned_be32(&p[proc_table + in altera_execute()
510 opcode = (p[pc] & 0xff); in altera_execute()
519 args[i] = get_unaligned_be32(&p[pc]); in altera_execute()
633 i = get_unaligned_be32(&p[proc_table + in altera_execute()
638 i = get_unaligned_be32(&p[proc_table + in altera_execute()
648 &p[proc_table + in altera_execute()
1018 &p[str_table + args[0]], in altera_execute()
1113 get_unaligned_be32(&p[long_tmp]); in altera_execute()
1454 name = &p[str_table + args[0]]; in altera_execute()
1480 get_unaligned_be32(&p[long_tmp]); in altera_execute()
1606 name = &p[str_table + args[0]]; in altera_execute()
2091 static int altera_get_note(u8 *p, s32 program_size, s32 *offset, in altera_get_note() argument
2116 first_word = get_unaligned_be32(&p[0]); in altera_get_note()
2120 note_strings = get_unaligned_be32(&p[8 + delta]); in altera_get_note()
2121 note_table = get_unaligned_be32(&p[12 + delta]); in altera_get_note()
2122 note_count = get_unaligned_be32(&p[44 + (2 * delta)]); in altera_get_note()
2138 key_ptr = &p[note_strings + in altera_get_note()
2140 &p[note_table + (8 * i)])]; in altera_get_note()
2144 value_ptr = &p[note_strings + in altera_get_note()
2146 &p[note_table + (8 * i) + 4])]; in altera_get_note()
2165 strscpy(key, &p[note_strings + in altera_get_note()
2167 &p[note_table + (8 * i)])], in altera_get_note()
2171 strscpy(value, &p[note_strings + in altera_get_note()
2173 &p[note_table + (8 * i) + 4])], in altera_get_note()
2183 static int altera_check_crc(u8 *p, s32 program_size) in altera_check_crc() argument
2198 first_word = get_unaligned_be32(&p[0]); in altera_check_crc()
2202 crc_section = get_unaligned_be32(&p[32 + delta]); in altera_check_crc()
2212 local_expected = (u16)get_unaligned_be16(&p[crc_section]); in altera_check_crc()
2215 databyte = p[i]; in altera_check_crc()
2258 static int altera_get_file_info(u8 *p, in altera_get_file_info() argument
2271 first_word = get_unaligned_be32(&p[0]); in altera_get_file_info()
2280 *action_count = get_unaligned_be32(&p[48]); in altera_get_file_info()
2281 *procedure_count = get_unaligned_be32(&p[52]); in altera_get_file_info()
2288 static int altera_get_act_info(u8 *p, in altera_get_act_info() argument
2314 first_word = get_unaligned_be32(&p[0]); in altera_get_act_info()
2319 action_table = get_unaligned_be32(&p[4]); in altera_get_act_info()
2320 proc_table = get_unaligned_be32(&p[8]); in altera_get_act_info()
2321 str_table = get_unaligned_be32(&p[12]); in altera_get_act_info()
2322 note_strings = get_unaligned_be32(&p[16]); in altera_get_act_info()
2323 action_count = get_unaligned_be32(&p[48]); in altera_get_act_info()
2324 proc_count = get_unaligned_be32(&p[52]); in altera_get_act_info()
2329 act_name_id = get_unaligned_be32(&p[action_table + (12 * index)]); in altera_get_act_info()
2330 act_desc_id = get_unaligned_be32(&p[action_table + (12 * index) + 4]); in altera_get_act_info()
2331 act_proc_id = get_unaligned_be32(&p[action_table + (12 * index) + 8]); in altera_get_act_info()
2333 *name = &p[str_table + act_name_id]; in altera_get_act_info()
2336 *description = &p[str_table + act_desc_id]; in altera_get_act_info()
2340 &p[proc_table + (13 * act_proc_id)]); in altera_get_act_info()
2342 (p[proc_table + (13 * act_proc_id) + 8] & 0x03); in altera_get_act_info()
2351 procptr->name = &p[str_table + act_proc_name]; in altera_get_act_info()
2367 &p[proc_table + (13 * act_proc_id) + 4]); in altera_get_act_info()