Lines Matching defs:resp
1312 unsigned char *resp;
1317 resp = kmalloc(IPMI_MAX_MSG_LENGTH, GFP_KERNEL);
1318 if (!resp)
1336 resp, IPMI_MAX_MSG_LENGTH);
1339 rv = ipmi_demangle_device_id(resp[0] >> 2, resp[1],
1340 resp + 2, resp_len - 2, &smi_info->device_id);
1343 unsigned char cc = *(resp + 2);
1355 kfree(resp);
1362 unsigned char *resp;
1366 resp = kmalloc(IPMI_MAX_MSG_LENGTH, GFP_KERNEL);
1367 if (!resp)
1383 resp, IPMI_MAX_MSG_LENGTH);
1386 resp[0] != (IPMI_NETFN_APP_REQUEST | 1) << 2 ||
1387 resp[1] != IPMI_GET_BMC_GLOBAL_ENABLES_CMD ||
1388 resp[2] != 0) {
1391 resp_len, resp[0], resp[1], resp[2]);
1395 *enables = resp[3];
1399 kfree(resp);
1409 unsigned char *resp;
1413 resp = kmalloc(IPMI_MAX_MSG_LENGTH, GFP_KERNEL);
1414 if (!resp)
1431 resp, IPMI_MAX_MSG_LENGTH);
1434 resp[0] != (IPMI_NETFN_APP_REQUEST | 1) << 2 ||
1435 resp[1] != IPMI_SET_BMC_GLOBAL_ENABLES_CMD) {
1438 resp_len, resp[0], resp[1]);
1443 if (resp[2] != 0)
1447 kfree(resp);
1528 unsigned char *resp;
1532 resp = kmalloc(IPMI_MAX_MSG_LENGTH, GFP_KERNEL);
1533 if (!resp)
1547 resp, IPMI_MAX_MSG_LENGTH);
1550 resp[0] != (IPMI_NETFN_APP_REQUEST | 1) << 2 ||
1551 resp[1] != IPMI_GET_BMC_GLOBAL_ENABLES_CMD ||
1552 resp[2] != 0) {
1558 if (resp[3] & IPMI_BMC_EVT_MSG_BUFF) {
1566 msg[2] = resp[3] | IPMI_BMC_EVT_MSG_BUFF;
1576 resp, IPMI_MAX_MSG_LENGTH);
1579 resp[0] != (IPMI_NETFN_APP_REQUEST | 1) << 2 ||
1580 resp[1] != IPMI_SET_BMC_GLOBAL_ENABLES_CMD) {
1586 if (resp[2] != 0)
1596 kfree(resp);