Lines Matching refs:sla_id
81 static int validate_sla_id(struct adf_accel_dev *accel_dev, int sla_id) in validate_sla_id() argument
85 if (sla_id <= RL_SLA_EMPTY_ID || sla_id >= RL_NODES_CNT_MAX) { in validate_sla_id()
90 sla = accel_dev->rate_limiting->sla[sla_id]; in validate_sla_id()
686 sla->sla_id = ret; in add_new_sla_entry()
768 int i, sla_id, node_id; in clear_sla() local
771 sla_id = sla->sla_id; in clear_sla()
787 rl_data->sla[sla_id] = NULL; in clear_sla()
794 int sla_id; in free_all_sla() local
798 for (sla_id = 0; sla_id < RL_NODES_CNT_MAX; sla_id++) { in free_all_sla()
799 if (!rl_data->sla[sla_id]) in free_all_sla()
802 kfree(rl_data->sla[sla_id]); in free_all_sla()
803 rl_data->sla[sla_id] = NULL; in free_all_sla()
844 ret = validate_sla_id(accel_dev, sla_in->sla_id); in add_update_sla()
848 sla = rl_data->sla[sla_in->sla_id]; in add_update_sla()
880 rl_data->sla[sla->sla_id] = sla; in add_update_sla()
883 sla_in->sla_id = sla->sla_id; in add_update_sla()
888 sla_in->sla_id = -1; in add_update_sla()
945 ret = validate_sla_id(accel_dev, sla_in->sla_id); in adf_rl_get_sla()
949 sla = accel_dev->rate_limiting->sla[sla_in->sla_id]; in adf_rl_get_sla()
956 sla_in->parent_id = sla->parent->sla_id; in adf_rl_get_sla()
984 enum adf_base_services srv, int sla_id) in adf_rl_get_capability_remaining() argument
993 if (sla_id > RL_SLA_EMPTY_ID && !validate_sla_id(accel_dev, sla_id)) { in adf_rl_get_capability_remaining()
994 sla = rl_data->sla[sla_id]; in adf_rl_get_capability_remaining()
1024 int adf_rl_remove_sla(struct adf_accel_dev *accel_dev, u32 sla_id) in adf_rl_remove_sla() argument
1031 ret = validate_sla_id(accel_dev, sla_id); in adf_rl_remove_sla()
1035 sla = rl_data->sla[sla_id]; in adf_rl_remove_sla()