Lines Matching full:rcvr
704 struct cmd_rcvr *rcvr, *rcvr2; in clean_up_interface_data() local
721 list_for_each_entry_safe(rcvr, rcvr2, &list, link) in clean_up_interface_data()
722 kfree(rcvr); in clean_up_interface_data()
1331 struct cmd_rcvr *rcvr; in _ipmi_destroy_user() local
1380 list_for_each_entry_rcu(rcvr, &intf->cmd_rcvrs, link, in _ipmi_destroy_user()
1382 if (rcvr->user == user) { in _ipmi_destroy_user()
1383 list_del_rcu(&rcvr->link); in _ipmi_destroy_user()
1384 rcvr->next = rcvrs; in _ipmi_destroy_user()
1385 rcvrs = rcvr; in _ipmi_destroy_user()
1391 rcvr = rcvrs; in _ipmi_destroy_user()
1392 rcvrs = rcvr->next; in _ipmi_destroy_user()
1393 kfree(rcvr); in _ipmi_destroy_user()
1658 struct cmd_rcvr *rcvr; in find_cmd_rcvr() local
1660 list_for_each_entry_rcu(rcvr, &intf->cmd_rcvrs, link, in find_cmd_rcvr()
1662 if ((rcvr->netfn == netfn) && (rcvr->cmd == cmd) in find_cmd_rcvr()
1663 && (rcvr->chans & (1 << chan))) in find_cmd_rcvr()
1664 return rcvr; in find_cmd_rcvr()
1674 struct cmd_rcvr *rcvr; in is_cmd_rcvr_exclusive() local
1676 list_for_each_entry_rcu(rcvr, &intf->cmd_rcvrs, link, in is_cmd_rcvr_exclusive()
1678 if ((rcvr->netfn == netfn) && (rcvr->cmd == cmd) in is_cmd_rcvr_exclusive()
1679 && (rcvr->chans & chans)) in is_cmd_rcvr_exclusive()
1691 struct cmd_rcvr *rcvr; in ipmi_register_for_cmd() local
1698 rcvr = kmalloc(sizeof(*rcvr), GFP_KERNEL); in ipmi_register_for_cmd()
1699 if (!rcvr) { in ipmi_register_for_cmd()
1703 rcvr->cmd = cmd; in ipmi_register_for_cmd()
1704 rcvr->netfn = netfn; in ipmi_register_for_cmd()
1705 rcvr->chans = chans; in ipmi_register_for_cmd()
1706 rcvr->user = user; in ipmi_register_for_cmd()
1717 list_add_rcu(&rcvr->link, &intf->cmd_rcvrs); in ipmi_register_for_cmd()
1722 kfree(rcvr); in ipmi_register_for_cmd()
1736 struct cmd_rcvr *rcvr; in ipmi_unregister_for_cmd() local
1748 rcvr = find_cmd_rcvr(intf, netfn, cmd, i); in ipmi_unregister_for_cmd()
1749 if (rcvr == NULL) in ipmi_unregister_for_cmd()
1751 if (rcvr->user == user) { in ipmi_unregister_for_cmd()
1753 rcvr->chans &= ~chans; in ipmi_unregister_for_cmd()
1754 if (rcvr->chans == 0) { in ipmi_unregister_for_cmd()
1755 list_del_rcu(&rcvr->link); in ipmi_unregister_for_cmd()
1756 rcvr->next = rcvrs; in ipmi_unregister_for_cmd()
1757 rcvrs = rcvr; in ipmi_unregister_for_cmd()
1766 rcvr = rcvrs; in ipmi_unregister_for_cmd()
1767 rcvrs = rcvr->next; in ipmi_unregister_for_cmd()
1768 kfree(rcvr); in ipmi_unregister_for_cmd()
3877 struct cmd_rcvr *rcvr; in handle_ipmb_get_msg_cmd() local
3902 rcvr = find_cmd_rcvr(intf, netfn, cmd, chan); in handle_ipmb_get_msg_cmd()
3903 if (rcvr) { in handle_ipmb_get_msg_cmd()
3904 user = rcvr->user; in handle_ipmb_get_msg_cmd()
3991 struct cmd_rcvr *rcvr; in handle_ipmb_direct_rcv_cmd() local
4001 rcvr = find_cmd_rcvr(intf, netfn, cmd, 0); in handle_ipmb_direct_rcv_cmd()
4002 if (rcvr) { in handle_ipmb_direct_rcv_cmd()
4003 user = rcvr->user; in handle_ipmb_direct_rcv_cmd()
4177 struct cmd_rcvr *rcvr; in handle_lan_get_msg_cmd() local
4202 rcvr = find_cmd_rcvr(intf, netfn, cmd, chan); in handle_lan_get_msg_cmd()
4203 if (rcvr) { in handle_lan_get_msg_cmd()
4204 user = rcvr->user; in handle_lan_get_msg_cmd()
4276 struct cmd_rcvr *rcvr; in handle_oem_get_msg_cmd() local
4309 rcvr = find_cmd_rcvr(intf, netfn, cmd, chan); in handle_oem_get_msg_cmd()
4310 if (rcvr) { in handle_oem_get_msg_cmd()
4311 user = rcvr->user; in handle_oem_get_msg_cmd()