Lines Matching refs:chnl_id

32 	pr_info("%s: id %d\n", __func__, new_proto->chnl_id);  in add_channel_to_table()
34 st_gdata->list[new_proto->chnl_id] = new_proto; in add_channel_to_table()
35 st_gdata->is_registered[new_proto->chnl_id] = true; in add_channel_to_table()
41 pr_info("%s: id %d\n", __func__, proto->chnl_id); in remove_channel_from_table()
43 st_gdata->is_registered[proto->chnl_id] = false; in remove_channel_from_table()
92 static void st_send_frame(unsigned char chnl_id, struct st_data_s *st_gdata) in st_send_frame() argument
94 pr_debug(" %s(prot:%d) ", __func__, chnl_id); in st_send_frame()
98 || st_gdata->is_registered[chnl_id] == false)) { in st_send_frame()
100 chnl_id); in st_send_frame()
110 if (likely(st_gdata->list[chnl_id]->recv != NULL)) { in st_send_frame()
112 (st_gdata->list[chnl_id]->recv in st_send_frame()
113 (st_gdata->list[chnl_id]->priv_data, st_gdata->rx_skb) in st_send_frame()
115 pr_err(" proto stack %d's ->recv failed", chnl_id); in st_send_frame()
120 pr_err(" proto stack %d's ->recv null", chnl_id); in st_send_frame()
153 unsigned char chnl_id, int len) in st_check_data_len() argument
165 st_send_frame(chnl_id, st_gdata); in st_check_data_len()
293 __func__, proto->chnl_id); in st_int_recv()
294 st_check_data_len(st_gdata, proto->chnl_id, in st_int_recv()
541 if (new_proto->chnl_id >= ST_MAX_CHANNELS) { in st_register()
542 pr_err("chnl_id %d not supported", new_proto->chnl_id); in st_register()
546 if (st_gdata->is_registered[new_proto->chnl_id] == true) { in st_register()
547 pr_err("chnl_id %d already registered", new_proto->chnl_id); in st_register()
555 pr_info(" ST_REG_IN_PROGRESS:%d ", new_proto->chnl_id); in st_register()
566 pr_info(" chnl_id list empty :%d ", new_proto->chnl_id); in st_register()
614 if (st_gdata->is_registered[new_proto->chnl_id] == true) { in st_register()
616 new_proto->chnl_id); in st_register()
650 pr_debug("%s: %d ", __func__, proto->chnl_id); in st_unregister()
653 if (!st_gdata || proto->chnl_id >= ST_MAX_CHANNELS) { in st_unregister()
654 pr_err(" chnl_id %d not supported", proto->chnl_id); in st_unregister()
660 if (st_gdata->is_registered[proto->chnl_id] == false) { in st_unregister()
661 pr_err(" chnl_id %d not registered", proto->chnl_id); in st_unregister()