Lines Matching defs:info
62 struct hwsim_edge_info __rcu *info;
80 static int hwsim_add_one(struct genl_info *info, struct device *dev,
134 einfo = rcu_dereference(e->info);
177 static int hwsim_new_radio_nl(struct sk_buff *msg, struct genl_info *info)
179 return hwsim_add_one(info, &mac802154hwsim_dev->dev, false);
182 static int hwsim_del_radio_nl(struct sk_buff *msg, struct genl_info *info)
187 if (!info->attrs[MAC802154_HWSIM_ATTR_RADIO_ID])
190 idx = nla_get_u32(info->attrs[MAC802154_HWSIM_ATTR_RADIO_ID]);
247 einfo = rcu_dereference(e->info);
293 static int hwsim_get_radio_nl(struct sk_buff *msg, struct genl_info *info)
299 if (!info->attrs[MAC802154_HWSIM_ATTR_RADIO_ID])
301 idx = nla_get_u32(info->attrs[MAC802154_HWSIM_ATTR_RADIO_ID]);
314 res = hwsim_get_radio(skb, phy, info->snd_portid,
315 info->snd_seq, NULL, 0);
321 res = genlmsg_reply(skb, info);
396 rcu_assign_pointer(e->info, einfo);
407 einfo = rcu_dereference(e->info);
414 static int hwsim_new_edge_nl(struct sk_buff *msg, struct genl_info *info)
421 if (!info->attrs[MAC802154_HWSIM_ATTR_RADIO_ID] ||
422 !info->attrs[MAC802154_HWSIM_ATTR_RADIO_EDGE])
425 if (nla_parse_nested_deprecated(edge_attrs, MAC802154_HWSIM_EDGE_ATTR_MAX, info->attrs[MAC802154_HWSIM_ATTR_RADIO_EDGE], hwsim_edge_policy, NULL))
431 v0 = nla_get_u32(info->attrs[MAC802154_HWSIM_ATTR_RADIO_ID]);
476 static int hwsim_del_edge_nl(struct sk_buff *msg, struct genl_info *info)
483 if (!info->attrs[MAC802154_HWSIM_ATTR_RADIO_ID] ||
484 !info->attrs[MAC802154_HWSIM_ATTR_RADIO_EDGE])
487 if (nla_parse_nested_deprecated(edge_attrs, MAC802154_HWSIM_EDGE_ATTR_MAX, info->attrs[MAC802154_HWSIM_ATTR_RADIO_EDGE], hwsim_edge_policy, NULL))
493 v0 = nla_get_u32(info->attrs[MAC802154_HWSIM_ATTR_RADIO_ID]);
522 static int hwsim_set_edge_lqi(struct sk_buff *msg, struct genl_info *info)
531 if (!info->attrs[MAC802154_HWSIM_ATTR_RADIO_ID] ||
532 !info->attrs[MAC802154_HWSIM_ATTR_RADIO_EDGE])
535 if (nla_parse_nested_deprecated(edge_attrs, MAC802154_HWSIM_EDGE_ATTR_MAX, info->attrs[MAC802154_HWSIM_ATTR_RADIO_EDGE], hwsim_edge_policy, NULL))
542 v0 = nla_get_u32(info->attrs[MAC802154_HWSIM_ATTR_RADIO_ID]);
563 einfo_old = rcu_replace_pointer(e->info, einfo,
640 struct genl_info *info)
642 if (info)
643 genl_notify(&hwsim_genl_family, mcast_skb, info,
650 static void hwsim_mcast_new_radio(struct genl_info *info, struct hwsim_phy *phy)
669 hwsim_mcast_config_msg(mcast_skb, info);
732 static int hwsim_add_one(struct genl_info *info, struct device *dev,
814 hwsim_mcast_new_radio(info, phy);