Lines Matching refs:idx
3510 void qdf_trace_msg_cmn(unsigned int idx, in qdf_trace_msg_cmn() argument
3519 if (idx < 0 || idx >= MAX_PRINT_CONFIG_SUPPORTED) { in qdf_trace_msg_cmn()
3520 pr_info("%s: Invalid index - %d\n", __func__, idx); in qdf_trace_msg_cmn()
3525 if (!print_ctrl_obj[idx].in_use) { in qdf_trace_msg_cmn()
3550 if (print_ctrl_obj[idx].cat_info[category].category_verbose_mask & in qdf_trace_msg_cmn()
3600 QDF_STATUS qdf_print_ctrl_cleanup(unsigned int idx) in qdf_print_ctrl_cleanup() argument
3604 if (idx < 0 || idx >= MAX_PRINT_CONFIG_SUPPORTED) { in qdf_print_ctrl_cleanup()
3605 pr_info("%s: Invalid index - %d\n", __func__, idx); in qdf_print_ctrl_cleanup()
3614 print_ctrl_obj[idx].cat_info[i].category_verbose_mask = in qdf_print_ctrl_cleanup()
3617 print_ctrl_obj[idx].custom_print = NULL; in qdf_print_ctrl_cleanup()
3618 print_ctrl_obj[idx].custom_ctxt = NULL; in qdf_print_ctrl_cleanup()
3619 qdf_print_clean_node_flag(idx); in qdf_print_ctrl_cleanup()
3620 print_ctrl_obj[idx].in_use = false; in qdf_print_ctrl_cleanup()
3631 int idx = -1; in qdf_print_ctrl_register() local
3636 idx = i; in qdf_print_ctrl_register()
3642 if (idx == -1) { in qdf_print_ctrl_register()
3645 return idx; in qdf_print_ctrl_register()
3648 print_ctrl_obj[idx].in_use = true; in qdf_print_ctrl_register()
3661 qdf_str_lcopy(print_ctrl_obj[idx].name, pctrl_name, in qdf_print_ctrl_register()
3662 sizeof(print_ctrl_obj[idx].name)); in qdf_print_ctrl_register()
3666 print_ctrl_obj[idx].custom_print = custom_print_handler; in qdf_print_ctrl_register()
3669 print_ctrl_obj[idx].custom_ctxt = custom_ctx; in qdf_print_ctrl_register()
3675 print_ctrl_obj[idx].cat_info[i] in qdf_print_ctrl_register()
3682 print_ctrl_obj[idx].cat_info[i] in qdf_print_ctrl_register()
3685 print_ctrl_obj[idx].cat_info[i] in qdf_print_ctrl_register()
3692 return idx; in qdf_print_ctrl_register()
4067 QDF_STATUS qdf_print_set_category_verbose(unsigned int idx, in qdf_print_set_category_verbose() argument
4073 if (idx < 0 || idx >= MAX_PRINT_CONFIG_SUPPORTED) { in qdf_print_set_category_verbose()
4074 pr_err("%s: Invalid index - %d\n", __func__, idx); in qdf_print_set_category_verbose()
4079 if (!print_ctrl_obj[idx].in_use) { in qdf_print_set_category_verbose()
4097 print_ctrl_obj[idx].cat_info[category].category_verbose_mask = in qdf_print_set_category_verbose()
4103 print_ctrl_obj[idx].cat_info[category].category_verbose_mask = in qdf_print_set_category_verbose()
4109 if (print_ctrl_obj[idx].cat_info[category].category_verbose_mask in qdf_print_set_category_verbose()
4111 print_ctrl_obj[idx].cat_info[category] in qdf_print_set_category_verbose()
4116 print_ctrl_obj[idx].cat_info[category].category_verbose_mask |= in qdf_print_set_category_verbose()
4122 idx, in qdf_print_set_category_verbose()
4124 print_ctrl_obj[idx].cat_info[category].category_verbose_mask); in qdf_print_set_category_verbose()
4142 QDF_TRACE_LEVEL qdf_print_get_category_verbose(unsigned int idx, in qdf_print_get_category_verbose() argument
4146 if (idx < 0 || idx >= MAX_PRINT_CONFIG_SUPPORTED) { in qdf_print_get_category_verbose()
4147 pr_info("%s: Invalid index - %d\n", __func__, idx); in qdf_print_get_category_verbose()
4152 if (!print_ctrl_obj[idx].in_use) { in qdf_print_get_category_verbose()
4163 return print_ctrl_obj[idx].cat_info[category].category_verbose_mask; in qdf_print_get_category_verbose()
4168 bool qdf_print_is_category_enabled(unsigned int idx, QDF_MODULE_ID category) in qdf_print_is_category_enabled() argument
4172 verbose_mask = qdf_print_get_category_verbose(idx, category); in qdf_print_is_category_enabled()
4182 bool qdf_print_is_verbose_enabled(unsigned int idx, QDF_MODULE_ID category, in qdf_print_is_verbose_enabled() argument
4188 if (idx < 0 || idx >= MAX_PRINT_CONFIG_SUPPORTED) { in qdf_print_is_verbose_enabled()
4189 pr_info("%s: Invalid index - %d\n", __func__, idx); in qdf_print_is_verbose_enabled()
4194 if (!print_ctrl_obj[idx].in_use) { in qdf_print_is_verbose_enabled()
4209 if (print_ctrl_obj[idx].cat_info[category] in qdf_print_is_verbose_enabled()
4214 (print_ctrl_obj[idx].cat_info[category].category_verbose_mask & in qdf_print_is_verbose_enabled()
4224 QDF_STATUS qdf_print_set_node_flag(unsigned int idx, uint8_t enable) in qdf_print_set_node_flag() argument
4227 if (idx < 0 || idx >= MAX_PRINT_CONFIG_SUPPORTED) { in qdf_print_set_node_flag()
4228 pr_info("%s: Invalid index - %d\n", __func__, idx); in qdf_print_set_node_flag()
4233 if (!print_ctrl_obj[idx].in_use) { in qdf_print_set_node_flag()
4244 print_ctrl_obj[idx].dbglvlmac_on = enable; in qdf_print_set_node_flag()
4253 bool qdf_print_get_node_flag(unsigned int idx) in qdf_print_get_node_flag() argument
4258 if (idx < 0 || idx >= MAX_PRINT_CONFIG_SUPPORTED) { in qdf_print_get_node_flag()
4259 pr_info("%s: Invalid index - %d\n", __func__, idx); in qdf_print_get_node_flag()
4264 if (!print_ctrl_obj[idx].in_use) { in qdf_print_get_node_flag()
4269 if (print_ctrl_obj[idx].dbglvlmac_on) in qdf_print_get_node_flag()
4276 void qdf_print_clean_node_flag(unsigned int idx) in qdf_print_clean_node_flag() argument
4279 print_ctrl_obj[idx].dbglvlmac_on = 0; in qdf_print_clean_node_flag()
4284 void qdf_print_clean_node_flag(unsigned int idx) in qdf_print_clean_node_flag() argument
4291 void QDF_PRINT_INFO(unsigned int idx, QDF_MODULE_ID module, in QDF_PRINT_INFO() argument