Lines Matching refs:proto
38 struct st_proto_s *proto) in remove_channel_from_table() argument
40 pr_info("%s: id %d\n", __func__, proto->chnl_id); in remove_channel_from_table()
42 st_gdata->is_registered[proto->chnl_id] = false; in remove_channel_from_table()
229 struct st_proto_s *proto; in st_int_recv() local
275 proto = st_gdata->list[st_gdata->rx_chnl]; in st_int_recv()
278 [proto->offset_len_in_hdr]; in st_int_recv()
280 if (proto->len_size == 1) /* 1 byte len field */ in st_int_recv()
282 else if (proto->len_size == 2) in st_int_recv()
288 __func__, proto->chnl_id); in st_int_recv()
289 st_check_data_len(st_gdata, proto->chnl_id, in st_int_recv()
292 proto->offset_len_in_hdr, payload_len); in st_int_recv()
639 long st_unregister(struct st_proto_s *proto) in st_unregister() argument
645 pr_debug("%s: %d ", __func__, proto->chnl_id); in st_unregister()
648 if (!st_gdata || proto->chnl_id >= ST_MAX_CHANNELS) { in st_unregister()
649 pr_err(" chnl_id %d not supported", proto->chnl_id); in st_unregister()
655 if (st_gdata->is_registered[proto->chnl_id] == false) { in st_unregister()
656 pr_err(" chnl_id %d not registered", proto->chnl_id); in st_unregister()
664 remove_channel_from_table(st_gdata, proto); in st_unregister()