Lines Matching refs:p

43 #define peidx_head(p)   (((p)->info))  argument
44 #define peidx_mid(p) (((p)->id)) argument
45 #define peidx_bottom(p) (((p)->regs)) argument
47 #define peidx_psp(p) (&(peidx_head(p)->proc_state_parameter)) argument
48 #define peidx_field_valid(p) (&(peidx_head(p)->valid)) argument
49 #define peidx_minstate_area(p) (&(peidx_bottom(p)->min_state_area)) argument
51 #define peidx_cache_check_num(p) (peidx_head(p)->valid.num_cache_check) argument
52 #define peidx_tlb_check_num(p) (peidx_head(p)->valid.num_tlb_check) argument
53 #define peidx_bus_check_num(p) (peidx_head(p)->valid.num_bus_check) argument
54 #define peidx_reg_file_check_num(p) (peidx_head(p)->valid.num_reg_file_check) argument
55 #define peidx_ms_check_num(p) (peidx_head(p)->valid.num_ms_check) argument
57 #define peidx_cache_check_idx(p, n) (n) argument
58 #define peidx_tlb_check_idx(p, n) (peidx_cache_check_idx(p, peidx_cache_check_num(p)) + n) argument
59 #define peidx_bus_check_idx(p, n) (peidx_tlb_check_idx(p, peidx_tlb_check_num(p)) + n) argument
60 #define peidx_reg_file_check_idx(p, n) (peidx_bus_check_idx(p, peidx_bus_check_num(p)) + n) argument
61 #define peidx_ms_check_idx(p, n) (peidx_reg_file_check_idx(p, peidx_reg_file_check_num(p)) + … argument
63 #define peidx_mod_error_info(p, name, n) \ argument
64 ({ int __idx = peidx_##name##_idx(p, n); \
66 if (peidx_##name##_num(p) > n) /*BUG*/ \
67 __ret = &(peidx_head(p)->info[__idx]); \
70 #define peidx_cache_check(p, n) peidx_mod_error_info(p, cache_check, n) argument
71 #define peidx_tlb_check(p, n) peidx_mod_error_info(p, tlb_check, n) argument
72 #define peidx_bus_check(p, n) peidx_mod_error_info(p, bus_check, n) argument
73 #define peidx_reg_file_check(p, n) peidx_mod_error_info(p, reg_file_check, n) argument
74 #define peidx_ms_check(p, n) peidx_mod_error_info(p, ms_check, n) argument