Lines Matching full:ipmi

12 #include <linux/ipmi.h>
136 struct aem_ipmi_data ipmi; member
225 /* Data structures to talk to the IPMI layer */
254 /* Functions to talk to the IPMI layer */
256 /* Initialize IPMI address, message buffers and user data */
265 /* Initialize IPMI address */ in aem_init_ipmi_data()
275 /* Create IPMI messaging interface user */ in aem_init_ipmi_data()
280 "Unable to register user with IPMI interface %d\n", in aem_init_ipmi_data()
288 /* Send an IPMI command */
312 /* Dispatch IPMI messages to callers */
356 struct aem_ipmi_data *ipmi = &data->ipmi; in aem_read_sensor() local
376 ipmi->tx_message.cmd = AEM_ELEMENT_CMD; in aem_read_sensor()
377 ipmi->tx_message.data = (char *)&rs_req; in aem_read_sensor()
378 ipmi->tx_message.data_len = sizeof(rs_req); in aem_read_sensor()
381 ipmi->rx_msg_data = rs_resp; in aem_read_sensor()
382 ipmi->rx_msg_len = rs_size; in aem_read_sensor()
384 aem_send_message(ipmi); in aem_read_sensor()
386 res = wait_for_completion_timeout(&ipmi->read_complete, IPMI_TIMEOUT); in aem_read_sensor()
392 if (ipmi->rx_result || ipmi->rx_msg_len != rs_size || in aem_read_sensor()
482 ipmi_destroy_user(data->ipmi.user); in aem_delete()
557 /* Set up IPMI interface */ in aem_init_aem1_inst()
558 res = aem_init_ipmi_data(&data->ipmi, probe->interface, in aem_init_aem1_inst()
567 "Unable to register hwmon device for IPMI interface %d\n", in aem_init_aem1_inst()
588 dev_info(data->ipmi.bmc_device, "Found AEM v%d.%d at 0x%X\n", in aem_init_aem1_inst()
598 ipmi_destroy_user(data->ipmi.user); in aem_init_aem1_inst()
699 /* Set up IPMI interface */ in aem_init_aem2_inst()
700 res = aem_init_ipmi_data(&data->ipmi, probe->interface, in aem_init_aem2_inst()
709 "Unable to register hwmon device for IPMI interface %d\n", in aem_init_aem2_inst()
730 dev_info(data->ipmi.bmc_device, "Found AEM v%d.%d at 0x%X\n", in aem_init_aem2_inst()
740 ipmi_destroy_user(data->ipmi.user); in aem_init_aem2_inst()
800 if (p1->ipmi.interface == iface) in aem_bmc_gone()