• Home
  • Raw
  • Download

Lines Matching refs:rt

102 	struct slim_stream_runtime *rt;  in slim_stream_allocate()  local
104 rt = kzalloc(sizeof(*rt), GFP_KERNEL); in slim_stream_allocate()
105 if (!rt) in slim_stream_allocate()
108 rt->name = kasprintf(GFP_KERNEL, "slim-%s", name); in slim_stream_allocate()
109 if (!rt->name) { in slim_stream_allocate()
110 kfree(rt); in slim_stream_allocate()
114 rt->dev = dev; in slim_stream_allocate()
116 list_add_tail(&rt->node, &dev->stream_list); in slim_stream_allocate()
119 return rt; in slim_stream_allocate()
202 int slim_stream_prepare(struct slim_stream_runtime *rt, in slim_stream_prepare() argument
205 struct slim_controller *ctrl = rt->dev->ctrl; in slim_stream_prepare()
209 if (rt->ports) { in slim_stream_prepare()
210 dev_err(&rt->dev->dev, "Stream already Prepared\n"); in slim_stream_prepare()
215 rt->ports = kcalloc(num_ports, sizeof(*port), GFP_KERNEL); in slim_stream_prepare()
216 if (!rt->ports) in slim_stream_prepare()
219 rt->num_ports = num_ports; in slim_stream_prepare()
220 rt->rate = cfg->rate; in slim_stream_prepare()
221 rt->bps = cfg->bps; in slim_stream_prepare()
222 rt->direction = cfg->direction; in slim_stream_prepare()
226 dev_err(&rt->dev->dev, "Cannot get presence rate for rate %d Hz\n", in slim_stream_prepare()
237 rt->prot = SLIM_PROTO_PUSH; in slim_stream_prepare()
239 rt->prot = SLIM_PROTO_PULL; in slim_stream_prepare()
241 rt->prot = SLIM_PROTO_ISO; in slim_stream_prepare()
244 rt->ratem = cfg->rate/ctrl->a_framer->superfreq; in slim_stream_prepare()
248 port = &rt->ports[i]; in slim_stream_prepare()
262 slim_connect_port_channel(rt, port); in slim_stream_prepare()