Lines Matching refs:proto
51 struct st_proto_s *proto) in remove_channel_from_table() argument
53 pr_info("%s: id %d\n", __func__, proto->chnl_id); in remove_channel_from_table()
55 st_gdata->is_registered[proto->chnl_id] = false; in remove_channel_from_table()
241 struct st_proto_s *proto; in st_int_recv() local
287 proto = st_gdata->list[st_gdata->rx_chnl]; in st_int_recv()
290 [proto->offset_len_in_hdr]; in st_int_recv()
292 if (proto->len_size == 1)/* 1 byte len field */ in st_int_recv()
294 else if (proto->len_size == 2) in st_int_recv()
300 __func__, proto->chnl_id); in st_int_recv()
301 st_check_data_len(st_gdata, proto->chnl_id, in st_int_recv()
304 proto->offset_len_in_hdr, payload_len); in st_int_recv()
621 long st_unregister(struct st_proto_s *proto) in st_unregister() argument
627 pr_debug("%s: %d ", __func__, proto->chnl_id); in st_unregister()
630 if (!st_gdata || proto->chnl_id >= ST_MAX_CHANNELS) { in st_unregister()
631 pr_err(" chnl_id %d not supported", proto->chnl_id); in st_unregister()
637 if (st_gdata->is_registered[proto->chnl_id] == false) { in st_unregister()
638 pr_err(" chnl_id %d not registered", proto->chnl_id); in st_unregister()
646 remove_channel_from_table(st_gdata, proto); in st_unregister()