Lines Matching refs:SEL_BYTE
62 #define SEL_BYTE(n) (n-3) /* So we can refer to byte positions in log entries (byte 3 is at index 0… macro
97 if (evt[2] == rec->value[SEL_BYTE(3)] in ipmi_sel_oem_match()
98 && ((rec->value[SEL_BYTE(4)] < 0) in ipmi_sel_oem_match()
99 || (evt[3] == rec->value[SEL_BYTE(4)])) in ipmi_sel_oem_match()
100 && ((rec->value[SEL_BYTE(5)] < 0) in ipmi_sel_oem_match()
101 || (evt[4] == rec->value[SEL_BYTE(5)])) in ipmi_sel_oem_match()
102 && ((rec->value[SEL_BYTE(6)] < 0) in ipmi_sel_oem_match()
103 || (evt[5] == rec->value[SEL_BYTE(6)])) in ipmi_sel_oem_match()
104 && ((rec->value[SEL_BYTE(7)] < 0) in ipmi_sel_oem_match()
105 || (evt[6] == rec->value[SEL_BYTE(7)])) in ipmi_sel_oem_match()
106 && ((rec->value[SEL_BYTE(11)] < 0) in ipmi_sel_oem_match()
107 || (evt[10] == rec->value[SEL_BYTE(11)])) in ipmi_sel_oem_match()
108 && ((rec->value[SEL_BYTE(12)] < 0) in ipmi_sel_oem_match()
109 || (evt[11] == rec->value[SEL_BYTE(12)]))) { in ipmi_sel_oem_match()
163 if (sel_oem_msg[j].value[SEL_BYTE(k)] == -3) { in ipmi_sel_oem_init()
164 free(sel_oem_msg[j].string[SEL_BYTE(k)]); in ipmi_sel_oem_init()
165 sel_oem_msg[j].string[SEL_BYTE(k)] = NULL; in ipmi_sel_oem_init()
175 if ((sel_oem_msg[i].value[SEL_BYTE(byte)] = in ipmi_sel_oem_init()
176 ipmi_sel_oem_readval(buf[SEL_BYTE(byte)])) == -3) { in ipmi_sel_oem_init()
177 sel_oem_msg[i].string[SEL_BYTE(byte)] = in ipmi_sel_oem_init()
178 (char *)malloc(strlen(buf[SEL_BYTE(byte)]) + 1); in ipmi_sel_oem_init()
179 strcpy(sel_oem_msg[i].string[SEL_BYTE(byte)], in ipmi_sel_oem_init()
180 buf[SEL_BYTE(byte)]); in ipmi_sel_oem_init()
183 sel_oem_msg[i].text = (char *)malloc(strlen(buf[SEL_BYTE(17)]) + 1); in ipmi_sel_oem_init()
184 strcpy(sel_oem_msg[i].text, buf[SEL_BYTE(17)]); in ipmi_sel_oem_init()
204 if (sel_oem_msg[i].value[SEL_BYTE(j)] == -3) { in ipmi_sel_oem_message()
206 sel_oem_msg[i].string[SEL_BYTE(j)], in ipmi_sel_oem_message()
207 ((uint8_t *)evt)[SEL_BYTE(j)]); in ipmi_sel_oem_message()