Lines Matching refs:region_name

35 devlink_region_get_by_name(struct devlink *devlink, const char *region_name)  in devlink_region_get_by_name()  argument
40 if (!strcmp(region->ops->name, region_name)) in devlink_region_get_by_name()
48 const char *region_name) in devlink_port_region_get_by_name() argument
53 if (!strcmp(region->ops->name, region_name)) in devlink_port_region_get_by_name()
477 const char *region_name; in devlink_nl_region_get_doit() local
493 region_name = nla_data(info->attrs[DEVLINK_ATTR_REGION_NAME]); in devlink_nl_region_get_doit()
495 region = devlink_port_region_get_by_name(port, region_name); in devlink_nl_region_get_doit()
497 region = devlink_region_get_by_name(devlink, region_name); in devlink_nl_region_get_doit()
597 const char *region_name; in devlink_nl_cmd_region_del() local
605 region_name = nla_data(info->attrs[DEVLINK_ATTR_REGION_NAME]); in devlink_nl_cmd_region_del()
617 region = devlink_port_region_get_by_name(port, region_name); in devlink_nl_cmd_region_del()
619 region = devlink_region_get_by_name(devlink, region_name); in devlink_nl_cmd_region_del()
643 const char *region_name; in devlink_nl_cmd_region_new() local
654 region_name = nla_data(info->attrs[DEVLINK_ATTR_REGION_NAME]); in devlink_nl_cmd_region_new()
665 region = devlink_port_region_get_by_name(port, region_name); in devlink_nl_cmd_region_new()
667 region = devlink_region_get_by_name(devlink, region_name); in devlink_nl_cmd_region_new()
877 const char *region_name; in devlink_nl_cmd_region_read_dumpit() local
907 region_name = nla_data(region_attr); in devlink_nl_cmd_region_read_dumpit()
910 region = devlink_port_region_get_by_name(port, region_name); in devlink_nl_cmd_region_read_dumpit()
912 region = devlink_region_get_by_name(devlink, region_name); in devlink_nl_cmd_region_read_dumpit()
998 err = nla_put_string(skb, DEVLINK_ATTR_REGION_NAME, region_name); in devlink_nl_cmd_region_read_dumpit()