Lines Matching defs:channel
133 int type, int channel, int speed, size_t header_size,
139 type, channel, header_size);
145 ctx->channel = channel;
247 int channel, ret = -EIO, retry = 5;
251 for (channel = 0; channel < 32; channel++) {
252 if (!(channels_mask & 1 << channel))
257 bit = cpu_to_be32(1 << (31 - channel));
268 return allocate ? -EAGAIN : channel;
272 return channel;
284 channel--;
295 int generation, int channel)
300 mask = channel < 32 ? 1 << channel : 1 << (channel - 32);
301 offset = channel < 32 ? CSR_REGISTER_BASE + CSR_CHANNELS_AVAILABLE_HI :
308 * fw_iso_resource_manage() - Allocate or deallocate a channel and/or bandwidth
311 * @channels_mask: bitmask for channel allocation
312 * @channel: pointer for returning channel allocation result
317 * Out parameters: channel, bandwidth
321 * Allocates or deallocates at most one channel out of channels_mask.
322 * channels_mask is a bitfield with MSB for channel 63 and LSB for channel 0.
324 * channel 0 and LSB for channel 63.)
327 * Returns channel < 0 if no channel was allocated or deallocated.
331 * channel = -EAGAIN.
333 * If channel allocation fails, no bandwidth will be allocated either.
334 * If bandwidth allocation fails, no channel will be allocated either.
335 * But deallocations of channel and bandwidth are tried independently
339 u64 channels_mask, int *channel, int *bandwidth,
361 *channel = c;
376 *channel = ret;