Lines Matching defs:port
124 struct slim_port *port)
132 if (port->direction == SLIM_PORT_SINK)
135 wbuf[0] = port->id;
136 wbuf[1] = port->ch.id;
137 port->ch.state = SLIM_CH_STATE_ASSOCIATED;
138 port->state = SLIM_PORT_UNCONFIGURED;
144 struct slim_port *port)
152 wbuf[0] = port->id;
153 port->ch.state = SLIM_CH_STATE_DISCONNECTED;
154 port->state = SLIM_PORT_DISCONNECTED;
160 struct slim_port *port)
169 wbuf[0] = port->ch.id;
175 port->ch.state = SLIM_CH_STATE_REMOVED;
206 struct slim_port *port;
215 rt->ports = kcalloc(num_ports, sizeof(*port), GFP_KERNEL);
241 port = &rt->ports[i];
242 port->state = SLIM_PORT_DISCONNECTED;
243 port->id = port_id;
244 port->ch.prrate = slim_get_prate_code(cfg->rate);
245 port->ch.id = cfg->chs[i];
246 port->ch.data_fmt = SLIM_CH_DATA_FMT_NOT_DEFINED;
247 port->ch.aux_fmt = SLIM_CH_AUX_FMT_NOT_APPLICABLE;
248 port->ch.state = SLIM_CH_STATE_ALLOCATED;
251 port->direction = SLIM_PORT_SINK;
253 port->direction = SLIM_PORT_SOURCE;
255 slim_connect_port_channel(rt, port);
264 struct slim_port *port)
272 wbuf[0] = port->ch.id;
273 wbuf[1] = port->ch.prrate;
279 wbuf[2] = port->ch.data_fmt | (port->ch.aux_fmt << 4);
281 port->ch.state = SLIM_CH_STATE_CONTENT_DEFINED;
299 struct slim_port *port)
307 port->ch.seg_dist = slim_get_segdist_code(stream->ratem);
309 wbuf[0] = port->ch.id;
310 wbuf[1] = port->ch.seg_dist & 0xFF;
311 wbuf[2] = (stream->prot << 4) | ((port->ch.seg_dist & 0xF00) >> 8);
317 port->ch.state = SLIM_CH_STATE_DEFINED;
323 struct slim_port *port)
333 wbuf[0] = port->ch.id;
334 port->ch.state = SLIM_CH_STATE_ACTIVE;
374 struct slim_port *port = &stream->ports[i];
376 slim_define_channel(stream, port);
377 slim_define_channel_content(stream, port);
381 struct slim_port *port = &stream->ports[i];
383 slim_activate_channel(stream, port);
384 port->state = SLIM_PORT_CONFIGURED;