stream 101 arch/alpha/kernel/err_ev6.c int source = -1, stream = -1, bits = -1; stream 137 arch/alpha/kernel/err_ev6.c stream = EXTRACT(c_stat, EV6__C_STAT__ISTREAM); stream 160 arch/alpha/kernel/err_ev6.c streamname[stream], bitsname[bits], sourcename[source]); stream 37 arch/arm/kernel/head-inflate-data.c struct z_stream_s stream, *strm = &stream; stream 156 arch/arm/mach-pxa/mainstone.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 163 arch/arm/mach-pxa/mainstone.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 116 arch/powerpc/kernel/nvram_64.c static struct z_stream_s stream; stream 324 arch/powerpc/kernel/nvram_64.c err = zlib_deflateInit2(&stream, COMPR_LEVEL, Z_DEFLATED, WINDOW_BITS, stream 329 arch/powerpc/kernel/nvram_64.c stream.next_in = in; stream 330 arch/powerpc/kernel/nvram_64.c stream.avail_in = inlen; stream 331 arch/powerpc/kernel/nvram_64.c stream.total_in = 0; stream 332 arch/powerpc/kernel/nvram_64.c stream.next_out = out; stream 333 arch/powerpc/kernel/nvram_64.c stream.avail_out = outlen; stream 334 arch/powerpc/kernel/nvram_64.c stream.total_out = 0; stream 336 arch/powerpc/kernel/nvram_64.c err = zlib_deflate(&stream, Z_FINISH); stream 340 arch/powerpc/kernel/nvram_64.c err = zlib_deflateEnd(&stream); stream 344 arch/powerpc/kernel/nvram_64.c if (stream.total_out >= stream.total_in) stream 347 arch/powerpc/kernel/nvram_64.c ret = stream.total_out; stream 614 arch/powerpc/kernel/nvram_64.c stream.workspace = kmalloc(zlib_deflate_workspacesize( stream 616 arch/powerpc/kernel/nvram_64.c if (!stream.workspace) { stream 626 arch/powerpc/kernel/nvram_64.c stream.workspace = NULL; stream 634 arch/powerpc/kernel/nvram_64.c kfree(stream.workspace); stream 154 arch/um/include/shared/os.h extern int os_pipe(int *fd, int stream, int close_on_exec); stream 372 arch/um/os-Linux/file.c int os_pipe(int *fds, int stream, int close_on_exec) stream 374 arch/um/os-Linux/file.c int err, type = stream ? SOCK_STREAM : SOCK_DGRAM; stream 47 crypto/cfb.c u8 *stream = PTR_ALIGN(tmp + 0, alignmask + 1); stream 53 crypto/cfb.c crypto_cfb_encrypt_one(tfm, iv, stream); stream 54 crypto/cfb.c crypto_xor_cpy(dst, stream, src, nbytes); stream 19 crypto/chacha_generic.c u8 stream[CHACHA_BLOCK_SIZE] __aligned(sizeof(long)); stream 22 crypto/chacha_generic.c chacha_block(state, stream, nrounds); stream 23 crypto/chacha_generic.c crypto_xor_cpy(dst, src, stream, CHACHA_BLOCK_SIZE); stream 29 crypto/chacha_generic.c chacha_block(state, stream, nrounds); stream 30 crypto/chacha_generic.c crypto_xor_cpy(dst, src, stream, bytes); stream 45 crypto/deflate.c struct z_stream_s *stream = &ctx->comp_stream; stream 47 crypto/deflate.c stream->workspace = vzalloc(zlib_deflate_workspacesize( stream 49 crypto/deflate.c if (!stream->workspace) { stream 54 crypto/deflate.c ret = zlib_deflateInit(stream, 3); stream 56 crypto/deflate.c ret = zlib_deflateInit2(stream, DEFLATE_DEF_LEVEL, Z_DEFLATED, stream 67 crypto/deflate.c vfree(stream->workspace); stream 74 crypto/deflate.c struct z_stream_s *stream = &ctx->decomp_stream; stream 76 crypto/deflate.c stream->workspace = vzalloc(zlib_inflate_workspacesize()); stream 77 crypto/deflate.c if (!stream->workspace) { stream 82 crypto/deflate.c ret = zlib_inflateInit(stream); stream 84 crypto/deflate.c ret = zlib_inflateInit2(stream, -DEFLATE_DEF_WINBITS); stream 92 crypto/deflate.c vfree(stream->workspace); stream 181 crypto/deflate.c struct z_stream_s *stream = &dctx->comp_stream; stream 183 crypto/deflate.c ret = zlib_deflateReset(stream); stream 189 crypto/deflate.c stream->next_in = (u8 *)src; stream 190 crypto/deflate.c stream->avail_in = slen; stream 191 crypto/deflate.c stream->next_out = (u8 *)dst; stream 192 crypto/deflate.c stream->avail_out = *dlen; stream 194 crypto/deflate.c ret = zlib_deflate(stream, Z_FINISH); stream 200 crypto/deflate.c *dlen = stream->total_out; stream 226 crypto/deflate.c struct z_stream_s *stream = &dctx->decomp_stream; stream 228 crypto/deflate.c ret = zlib_inflateReset(stream); stream 234 crypto/deflate.c stream->next_in = (u8 *)src; stream 235 crypto/deflate.c stream->avail_in = slen; stream 236 crypto/deflate.c stream->next_out = (u8 *)dst; stream 237 crypto/deflate.c stream->avail_out = *dlen; stream 239 crypto/deflate.c ret = zlib_inflate(stream, Z_SYNC_FLUSH); stream 245 crypto/deflate.c if (ret == Z_OK && !stream->avail_in && stream->avail_out) { stream 247 crypto/deflate.c stream->next_in = &zerostuff; stream 248 crypto/deflate.c stream->avail_in = 1; stream 249 crypto/deflate.c ret = zlib_inflate(stream, Z_FINISH); stream 256 crypto/deflate.c *dlen = stream->total_out; stream 35 crypto/salsa20_generic.c static void salsa20_block(u32 *state, __le32 *stream) stream 78 crypto/salsa20_generic.c stream[i] = cpu_to_le32(x[i] + state[i]); stream 87 crypto/salsa20_generic.c __le32 stream[SALSA20_BLOCK_SIZE / sizeof(__le32)]; stream 90 crypto/salsa20_generic.c salsa20_block(state, stream); stream 91 crypto/salsa20_generic.c crypto_xor_cpy(dst, src, (const u8 *)stream, stream 98 crypto/salsa20_generic.c salsa20_block(state, stream); stream 99 crypto/salsa20_generic.c crypto_xor_cpy(dst, src, (const u8 *)stream, bytes); stream 30 drivers/block/rsxx/cregs.c unsigned int stream; stream 50 drivers/block/rsxx/cregs.c unsigned int stream) stream 63 drivers/block/rsxx/cregs.c if (LITTLE_ENDIAN && stream) stream 76 drivers/block/rsxx/cregs.c unsigned int stream) stream 89 drivers/block/rsxx/cregs.c if (LITTLE_ENDIAN && stream) stream 111 drivers/block/rsxx/cregs.c cmd->buf, cmd->stream); stream 152 drivers/block/rsxx/cregs.c int stream, stream 178 drivers/block/rsxx/cregs.c cmd->stream = stream; stream 282 drivers/block/rsxx/cregs.c st = copy_from_creg_data(card, cnt8, cmd->buf, cmd->stream); stream 376 drivers/block/rsxx/cregs.c int stream, stream 388 drivers/block/rsxx/cregs.c st = creg_queue_cmd(card, op, addr, cnt8, buf, stream, creg_cmd_done_cb, stream 442 drivers/block/rsxx/cregs.c int stream, stream 456 drivers/block/rsxx/cregs.c data, stream, &hw_stat); stream 660 drivers/block/rsxx/cregs.c cmd->stream, &cmd->stat); stream 22 drivers/block/rsxx/rsxx.h __u32 stream; stream 116 drivers/block/zram/zcomp.c return *get_cpu_ptr(comp->stream); stream 121 drivers/block/zram/zcomp.c put_cpu_ptr(comp->stream); stream 163 drivers/block/zram/zcomp.c if (WARN_ON(*per_cpu_ptr(comp->stream, cpu))) stream 171 drivers/block/zram/zcomp.c *per_cpu_ptr(comp->stream, cpu) = zstrm; stream 180 drivers/block/zram/zcomp.c zstrm = *per_cpu_ptr(comp->stream, cpu); stream 183 drivers/block/zram/zcomp.c *per_cpu_ptr(comp->stream, cpu) = NULL; stream 191 drivers/block/zram/zcomp.c comp->stream = alloc_percpu(struct zcomp_strm *); stream 192 drivers/block/zram/zcomp.c if (!comp->stream) stream 201 drivers/block/zram/zcomp.c free_percpu(comp->stream); stream 208 drivers/block/zram/zcomp.c free_percpu(comp->stream); stream 17 drivers/block/zram/zcomp.h struct zcomp_strm * __percpu *stream; stream 169 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (acrtc_state->stream == NULL) { stream 175 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c return dc_stream_get_vblank_counter(acrtc_state->stream); stream 191 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (acrtc_state->stream == NULL) { stream 201 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dc_stream_get_scanoutpos(acrtc_state->stream, stream 310 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c !dc_stream_get_scanoutpos(acrtc_state->stream, &v_blank_start, stream 392 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (acrtc_state->stream && stream 397 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c acrtc_state->stream, stream 402 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c acrtc_state->stream, stream 439 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (acrtc_state->stream && adev->family >= AMDGPU_FAMILY_AI && stream 445 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c acrtc_state->stream, stream 450 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c acrtc_state->stream, stream 1243 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (dm_new_crtc_state->stream) { stream 1244 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c WARN_ON(kref_read(&dm_new_crtc_state->stream->refcount) > 1); stream 1245 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dc_stream_release(dm_new_crtc_state->stream); stream 1246 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dm_new_crtc_state->stream = NULL; stream 3130 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct dc_stream_state *stream) stream 3144 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dst.width = stream->timing.h_addressable; stream 3145 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dst.height = stream->timing.v_addressable; stream 3164 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dst.x = (stream->timing.h_addressable - dst.width) / 2; stream 3165 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dst.y = (stream->timing.v_addressable - dst.height) / 2; stream 3175 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c stream->src = src; stream 3176 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c stream->dst = dst; stream 3322 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct dc_stream_state *stream, stream 3328 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct dc_crtc_timing *timing_out = &stream->timing; stream 3339 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c && stream->signal == SIGNAL_TYPE_HDMI_TYPE_A) stream 3342 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c && stream->signal == SIGNAL_TYPE_HDMI_TYPE_A) stream 3380 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c stream->output_color_space = get_output_color_space(timing_out); stream 3382 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c stream->out_transfer_func->type = TF_TYPE_PREDEFINED; stream 3383 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c stream->out_transfer_func->tf = TRANSFER_FUNCTION_SRGB; stream 3384 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A) { stream 3494 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct dc_stream_state *stream) stream 3496 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (stream->triggered_crtc_reset.enabled) { stream 3497 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c stream->triggered_crtc_reset.event = CRTC_EVENT_VSYNC_RISING; stream 3498 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c stream->triggered_crtc_reset.delay = TRIGGER_DELAY_NEXT_LINE; stream 3554 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct dc_stream_state *stream = NULL; stream 3568 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c return stream; stream 3576 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c return stream; stream 3582 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c stream = dc_create_stream_for_sink(sink); stream 3584 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (stream == NULL) { stream 3589 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c stream->dm_stream_context = aconnector; stream 3629 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c fill_stream_properties_from_drm_display_mode(stream, stream 3632 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c fill_stream_properties_from_drm_display_mode(stream, stream 3636 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c stream->timing.flags.DSC = 0; stream 3649 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c &stream->timing, stream 3650 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c &stream->timing.dsc_cfg)) stream 3651 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c stream->timing.flags.DSC = 1; stream 3655 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c update_stream_scaling_settings(&mode, dm_state, stream); stream 3658 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c &stream->audio_info, stream 3662 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c update_stream_signal(stream, sink); stream 3667 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c return stream; stream 3682 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (cur->stream) stream 3683 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dc_stream_release(cur->stream); stream 3724 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (cur->stream) { stream 3725 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c state->stream = cur->stream; stream 3726 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dc_stream_retain(state->stream); stream 4104 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct dc_stream_state *stream; stream 4127 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c stream = create_stream_for_sink(aconnector, mode, NULL, NULL); stream 4128 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (stream == NULL) { stream 4133 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dc_result = dc_validate_stream(adev->dm.dc, stream); stream 4144 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dc_stream_release(stream); stream 4351 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (!dm_new_crtc_state->stream) stream 4377 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (unlikely(!dm_crtc_state->stream && stream 4378 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c modeset_required(state, NULL, dm_crtc_state->stream))) { stream 4384 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (!dm_crtc_state->stream) stream 4396 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (dc_validate_stream(dc, dm_crtc_state->stream) == DC_OK) stream 5354 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct dc_stream_state *stream) stream 5443 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (crtc_state && crtc_state->stream) { stream 5445 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dc_stream_set_cursor_position(crtc_state->stream, stream 5466 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (crtc_state->stream) { stream 5468 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (!dc_stream_set_cursor_attributes(crtc_state->stream, stream 5472 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (!dc_stream_set_cursor_position(crtc_state->stream, stream 5538 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c new_crtc_state->stream, stream 5580 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct dc_stream_state *new_stream = new_crtc_state->stream; stream 5822 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c acrtc_state->stream, stream 5887 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (acrtc_state->stream) { stream 5890 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c &acrtc_state->stream->vrr_infopacket; stream 5896 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c acrtc_state->stream) { stream 5898 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c bundle->stream_update.src = acrtc_state->stream->src; stream 5899 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c bundle->stream_update.dst = acrtc_state->stream->dst; stream 5908 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c &acrtc_state->stream->gamut_remap_matrix; stream 5910 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c &acrtc_state->stream->csc_color_matrix; stream 5912 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c acrtc_state->stream->out_transfer_func; stream 5915 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c acrtc_state->stream->abm_level = acrtc_state->abm_level; stream 5928 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dm->dc, acrtc_state->stream, stream 5937 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c acrtc_state->stream, stream 6012 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (!new_dm_crtc_state->stream) stream 6015 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c status = dc_stream_get_status(new_dm_crtc_state->stream); stream 6204 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (dm_new_crtc_state->stream) { stream 6206 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dm_new_crtc_state->stream); stream 6213 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (modeset_required(new_crtc_state, dm_new_crtc_state->stream, dm_old_crtc_state->stream)) { stream 6217 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (!dm_new_crtc_state->stream) { stream 6238 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (dm_old_crtc_state->stream) stream 6239 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c remove_stream(adev, acrtc, dm_old_crtc_state->stream); stream 6250 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (dm_old_crtc_state->stream) stream 6251 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c remove_stream(adev, acrtc, dm_old_crtc_state->stream); stream 6267 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (dm_new_crtc_state->stream != NULL) { stream 6269 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dc_stream_get_status(dm_new_crtc_state->stream); stream 6273 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dm_new_crtc_state->stream); stream 6276 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c DC_ERR("got no status for stream %p on acrtc%p\n", dm_new_crtc_state->stream, acrtc); stream 6322 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dm_new_con_state, (struct dc_stream_state *)dm_new_crtc_state->stream); stream 6324 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c stream_update.src = dm_new_crtc_state->stream->src; stream 6325 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c stream_update.dst = dm_new_crtc_state->stream->dst; stream 6329 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dm_new_crtc_state->stream->abm_level = dm_new_crtc_state->abm_level; stream 6339 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c status = dc_stream_get_status(dm_new_crtc_state->stream); stream 6356 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dm_new_crtc_state->stream, stream 6390 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (dm_new_crtc_state->stream) stream 6514 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (!acrtc_state->stream) stream 6522 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (acrtc_state->stream->sink != aconnector->dc_sink) stream 6592 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c new_crtc_state->stream->ignore_msa_timing_param = true; stream 6669 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dm_old_crtc_state->stream); stream 6701 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (dm_new_crtc_state->stream && stream 6702 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dc_is_stream_unchanged(new_stream, dm_old_crtc_state->stream) && stream 6703 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dc_is_stream_scaling_unchanged(new_stream, dm_old_crtc_state->stream)) { stream 6729 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (!dm_old_crtc_state->stream) stream 6743 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dm_old_crtc_state->stream) != DC_OK) { stream 6748 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dc_stream_release(dm_old_crtc_state->stream); stream 6749 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dm_new_crtc_state->stream = NULL; stream 6768 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dm_old_crtc_state->stream)) { stream 6770 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c WARN_ON(dm_new_crtc_state->stream); stream 6776 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dm_new_crtc_state->stream = new_stream; stream 6786 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dm_new_crtc_state->stream) != DC_OK) { stream 6815 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c BUG_ON(dm_new_crtc_state->stream == NULL); stream 6820 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c &new_crtc_state->mode, dm_new_conn_state, dm_new_crtc_state->stream); stream 6972 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (!dm_old_crtc_state->stream) stream 6984 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dm_old_crtc_state->stream, stream 7010 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (!dm_new_crtc_state->stream) stream 7050 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dm_new_crtc_state->stream, stream 7112 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (new_dm_crtc_state->stream != old_dm_crtc_state->stream) { stream 7117 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (!new_dm_crtc_state->stream) stream 7146 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c stream_update.dst = new_dm_crtc_state->stream->dst; stream 7147 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c stream_update.src = new_dm_crtc_state->stream->src; stream 7156 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c &new_dm_crtc_state->stream->gamut_remap_matrix; stream 7158 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c &new_dm_crtc_state->stream->csc_color_matrix; stream 7160 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c new_dm_crtc_state->stream->out_transfer_func; stream 7206 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c new_dm_crtc_state->stream); stream 308 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h struct dc_stream_state *stream; stream 301 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c struct dc_stream_state *stream = crtc->stream; stream 347 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c stream->out_transfer_func->type = TF_TYPE_DISTRIBUTED_POINTS; stream 348 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c stream->out_transfer_func->tf = TRANSFER_FUNCTION_SRGB; stream 350 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c r = __set_legacy_tf(stream->out_transfer_func, regamma_lut, stream 356 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c stream->out_transfer_func->type = TF_TYPE_DISTRIBUTED_POINTS; stream 357 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c stream->out_transfer_func->tf = TRANSFER_FUNCTION_LINEAR; stream 359 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c r = __set_output_tf(stream->out_transfer_func, regamma_lut, stream 368 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c stream->out_transfer_func->type = TF_TYPE_BYPASS; stream 369 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c stream->out_transfer_func->tf = TRANSFER_FUNCTION_LINEAR; stream 392 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c __drm_ctm_to_dc_matrix(ctm, stream->gamut_remap_matrix.matrix); stream 394 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c stream->gamut_remap_matrix.enable_remap = true; stream 395 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c stream->csc_color_matrix.enable_adjustment = false; stream 398 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c stream->gamut_remap_matrix.enable_remap = false; stream 399 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c stream->csc_color_matrix.enable_adjustment = false; stream 105 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c struct dc_stream_state *stream_state = dm_crtc_state->stream; stream 290 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c stream_state = crtc_state->stream; stream 705 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c if (dm_crtc_state->stream == NULL) stream 708 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c switch (dm_crtc_state->stream->timing.display_color_depth) { stream 795 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c dc_stream_send_dp_sdp(acrtc_state->stream, data, write_size); stream 181 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c const struct dc_stream_state *stream, stream 194 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c aconnector = (struct amdgpu_dm_connector *)stream->dm_stream_context; stream 207 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c clock = stream->timing.pix_clk_100hz / 10; stream 209 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c switch (stream->timing.display_color_depth) { stream 285 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c const struct dc_stream_state *stream) stream 291 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c aconnector = (struct amdgpu_dm_connector *)stream->dm_stream_context; stream 311 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c const struct dc_stream_state *stream, stream 318 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c aconnector = (struct amdgpu_dm_connector *)stream->dm_stream_context; stream 542 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c const struct dc_stream_state *stream, stream 548 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c return dm_helpers_dp_write_dpcd(ctx, stream->sink->link, DP_DSC_ENABLE, &enable_dsc, 1); stream 2777 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (!pipe[i].stream || !pipe[i].bottom_pipe) stream 2796 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->h_total[num_displays + 4] = bw_int_to_fixed(pipe[i].stream->timing.h_total); stream 2797 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->v_total[num_displays + 4] = bw_int_to_fixed(pipe[i].stream->timing.v_total); stream 2798 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->pixel_rate[num_displays + 4] = bw_frc_to_fixed(pipe[i].stream->timing.pix_clk_100hz, 10000); stream 2888 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (!pipe[i].stream || pipe[i].bottom_pipe) stream 2894 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->h_total[num_displays + 4] = bw_int_to_fixed(pipe[i].stream->timing.h_total); stream 2895 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->v_total[num_displays + 4] = bw_int_to_fixed(pipe[i].stream->timing.v_total); stream 2896 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c pixel_clock_100hz = pipe[i].stream->timing.pix_clk_100hz; stream 2897 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (pipe[i].stream->timing.timing_3d_format == TIMING_3D_FORMAT_HW_FRAME_PACKING) stream 2948 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c } else if (pipe[i].stream->dst.width != 0 && stream 2949 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c pipe[i].stream->dst.height != 0 && stream 2950 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c pipe[i].stream->src.width != 0 && stream 2951 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c pipe[i].stream->src.height != 0) { stream 2952 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->src_width[num_displays + 4] = bw_int_to_fixed(pipe[i].stream->src.width); stream 2954 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->src_height[num_displays + 4] = bw_int_to_fixed(pipe[i].stream->src.height); stream 2955 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->h_taps[num_displays + 4] = pipe[i].stream->src.width == pipe[i].stream->dst.width ? bw_int_to_fixed(1) : bw_int_to_fixed(2); stream 2956 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->v_taps[num_displays + 4] = pipe[i].stream->src.height == pipe[i].stream->dst.height ? bw_int_to_fixed(1) : bw_int_to_fixed(2); stream 2957 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->h_scale_ratio[num_displays + 4] = bw_frc_to_fixed(pipe[i].stream->src.width, pipe[i].stream->dst.width); stream 2958 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->v_scale_ratio[num_displays + 4] = bw_frc_to_fixed(pipe[i].stream->src.height, pipe[i].stream->dst.height); stream 2962 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->src_width[num_displays + 4] = bw_int_to_fixed(pipe[i].stream->timing.h_addressable); stream 2964 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->src_height[num_displays + 4] = bw_int_to_fixed(pipe[i].stream->timing.v_addressable); stream 2988 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (!pipe[i].stream || pipe[i].top_pipe) stream 2999 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c active_pipes[0]->stream, active_pipes[i]->stream)) { stream 411 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c input->dest.vactive = pipe->stream->timing.v_addressable + pipe->stream->timing.v_border_top stream 412 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c + pipe->stream->timing.v_border_bottom; stream 420 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c input->dest.htotal = pipe->stream->timing.h_total; stream 421 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c input->dest.hblank_start = input->dest.htotal - pipe->stream->timing.h_front_porch; stream 423 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c - pipe->stream->timing.h_addressable stream 424 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c - pipe->stream->timing.h_border_left stream 425 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c - pipe->stream->timing.h_border_right; stream 427 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c input->dest.vtotal = pipe->stream->timing.v_total; stream 428 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c input->dest.vblank_start = input->dest.vtotal - pipe->stream->timing.v_front_porch; stream 430 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c - pipe->stream->timing.v_addressable stream 431 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c - pipe->stream->timing.v_border_bottom stream 432 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c - pipe->stream->timing.v_border_top; stream 433 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c input->dest.pixel_rate_mhz = pipe->stream->timing.pix_clk_100hz/10000.0; stream 868 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c if (!pipe->stream) stream 877 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c v->htotal[input_idx] = pipe->stream->timing.h_total; stream 878 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c v->vtotal[input_idx] = pipe->stream->timing.v_total; stream 879 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c v->vactive[input_idx] = pipe->stream->timing.v_addressable + stream 880 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c pipe->stream->timing.v_border_top + pipe->stream->timing.v_border_bottom; stream 881 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c v->v_sync_plus_back_porch[input_idx] = pipe->stream->timing.v_total stream 883 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c - pipe->stream->timing.v_front_porch; stream 884 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c v->pixel_clock[input_idx] = pipe->stream->timing.pix_clk_100hz/10000.0; stream 885 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c if (pipe->stream->timing.timing_3d_format == TIMING_3D_FORMAT_HW_FRAME_PACKING) stream 892 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c v->viewport_width[input_idx] = pipe->stream->timing.h_addressable; stream 893 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c v->viewport_height[input_idx] = pipe->stream->timing.v_addressable; stream 1002 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c v->output_format[input_idx] = pipe->stream->timing.pixel_encoding == stream 1004 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c v->output[input_idx] = pipe->stream->signal == stream 1008 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c switch (pipe->stream->timing.display_color_depth) { stream 1175 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c if (!pipe->stream) stream 1186 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c pipe->pipe_dlg_param.htotal = pipe->stream->timing.h_total; stream 1187 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c pipe->pipe_dlg_param.vtotal = pipe->stream->timing.v_total; stream 1188 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c vesa_sync_start = pipe->stream->timing.v_addressable + stream 1189 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c pipe->stream->timing.v_border_bottom + stream 1190 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c pipe->stream->timing.v_front_porch; stream 1192 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c asic_blank_end = (pipe->stream->timing.v_total - stream 1194 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c pipe->stream->timing.v_border_top) stream 1195 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c * (pipe->stream->timing.flags.INTERLACE ? 1 : 0); stream 1198 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c (pipe->stream->timing.v_border_top + stream 1199 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c pipe->stream->timing.v_addressable + stream 1200 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c pipe->stream->timing.v_border_bottom) stream 1201 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c * (pipe->stream->timing.flags.INTERLACE ? 1 : 0); stream 1212 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c ((pipe->stream->view_format == stream 1214 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c pipe->stream->view_format == stream 1216 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c (pipe->stream->timing.timing_3d_format == stream 1218 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c pipe->stream->timing.timing_3d_format == stream 1227 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c hsplit_pipe->pipe_dlg_param.htotal = pipe->stream->timing.h_total; stream 1228 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c hsplit_pipe->pipe_dlg_param.vtotal = pipe->stream->timing.v_total; stream 1245 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c hsplit_pipe->stream = NULL; stream 53 drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c const struct dc_stream_state *stream = context->streams[i]; stream 61 drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c if (!stream->dpms_off || stream->signal == SIGNAL_TYPE_VIRTUAL) stream 173 drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c if (pipe_ctx->stream == NULL) stream 186 drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c if (dc_is_dp_signal(pipe_ctx->stream->signal) && stream 98 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c struct dc_stream_state *stream = context->streams[j]; stream 101 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c uint32_t vertical_total_min = stream->timing.v_total; stream 102 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c struct dc_crtc_timing_adjust adjust = stream->adjust; stream 106 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c vertical_blank_in_pixels = stream->timing.h_total * stream 108 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c - stream->timing.v_addressable); stream 110 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c * 10000 / stream->timing.pix_clk_100hz; stream 129 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c const struct dc_stream_state *stream = context->streams[j]; stream 135 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c if (stream == context->res_ctx.pipe_ctx[k].stream) { stream 143 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c if (stream->dpms_off) stream 147 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c cfg->signal = pipe_ctx->stream->signal; stream 149 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c cfg->src_height = stream->src.height; stream 150 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c cfg->src_width = stream->src.width; stream 152 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c stream->link->ddi_channel_mapping.raw; stream 154 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c stream->link->link_enc->transmitter; stream 156 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c stream->link->cur_link_settings.lane_count; stream 158 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c stream->link->cur_link_settings.link_rate; stream 160 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c stream->link->cur_link_settings.link_spread; stream 161 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c cfg->sym_clock = stream->phy_pix_clk; stream 163 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c cfg->v_refresh = stream->timing.pix_clk_100hz * 100; stream 164 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c cfg->v_refresh /= stream->timing.h_total; stream 165 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c cfg->v_refresh = (cfg->v_refresh + stream->timing.v_total / 2) stream 166 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c / stream->timing.v_total; stream 280 drivers/gpu/drm/amd/display/dc/core/dc.c struct dc_stream_state *stream, stream 286 drivers/gpu/drm/amd/display/dc/core/dc.c stream->adjust = *adjust; stream 291 drivers/gpu/drm/amd/display/dc/core/dc.c if (pipe->stream == stream && pipe->stream_res.tg) { stream 292 drivers/gpu/drm/amd/display/dc/core/dc.c pipe->stream->adjust = *adjust; stream 311 drivers/gpu/drm/amd/display/dc/core/dc.c const struct dc_stream_state *stream = streams[0]; stream 320 drivers/gpu/drm/amd/display/dc/core/dc.c if (pipe->stream == stream && pipe->stream_res.stream_enc) { stream 342 drivers/gpu/drm/amd/display/dc/core/dc.c bool dc_stream_configure_crc(struct dc *dc, struct dc_stream_state *stream, stream 352 drivers/gpu/drm/amd/display/dc/core/dc.c if (pipe->stream == stream) stream 362 drivers/gpu/drm/amd/display/dc/core/dc.c param.windowa_x_end = pipe->stream->timing.h_addressable; stream 363 drivers/gpu/drm/amd/display/dc/core/dc.c param.windowa_y_end = pipe->stream->timing.v_addressable; stream 366 drivers/gpu/drm/amd/display/dc/core/dc.c param.windowb_x_end = pipe->stream->timing.h_addressable; stream 367 drivers/gpu/drm/amd/display/dc/core/dc.c param.windowb_y_end = pipe->stream->timing.v_addressable; stream 392 drivers/gpu/drm/amd/display/dc/core/dc.c bool dc_stream_get_crc(struct dc *dc, struct dc_stream_state *stream, stream 401 drivers/gpu/drm/amd/display/dc/core/dc.c if (pipe->stream == stream) stream 416 drivers/gpu/drm/amd/display/dc/core/dc.c void dc_stream_set_dither_option(struct dc_stream_state *stream, stream 420 drivers/gpu/drm/amd/display/dc/core/dc.c struct dc_link *link = stream->link; stream 425 drivers/gpu/drm/amd/display/dc/core/dc.c if (link->dc->current_state->res_ctx.pipe_ctx[i].stream == stream 426 drivers/gpu/drm/amd/display/dc/core/dc.c stream) { stream 437 drivers/gpu/drm/amd/display/dc/core/dc.c stream->dither_option = option; stream 440 drivers/gpu/drm/amd/display/dc/core/dc.c resource_build_bit_depth_reduction_params(stream, ¶ms); stream 441 drivers/gpu/drm/amd/display/dc/core/dc.c stream->bit_depth_params = params; stream 448 drivers/gpu/drm/amd/display/dc/core/dc.c &stream->bit_depth_params); stream 455 drivers/gpu/drm/amd/display/dc/core/dc.c bool dc_stream_set_gamut_remap(struct dc *dc, const struct dc_stream_state *stream) stream 462 drivers/gpu/drm/amd/display/dc/core/dc.c if (dc->current_state->res_ctx.pipe_ctx[i].stream == stream) { stream 472 drivers/gpu/drm/amd/display/dc/core/dc.c bool dc_stream_program_csc_matrix(struct dc *dc, struct dc_stream_state *stream) stream 479 drivers/gpu/drm/amd/display/dc/core/dc.c if (dc->current_state->res_ctx.pipe_ctx[i].stream stream 480 drivers/gpu/drm/amd/display/dc/core/dc.c == stream) { stream 485 drivers/gpu/drm/amd/display/dc/core/dc.c stream->output_color_space, stream 486 drivers/gpu/drm/amd/display/dc/core/dc.c stream->csc_color_matrix.matrix, stream 506 drivers/gpu/drm/amd/display/dc/core/dc.c struct dc_stream_state *stream = streams[i]; stream 509 drivers/gpu/drm/amd/display/dc/core/dc.c if (dc->current_state->res_ctx.pipe_ctx[j].stream stream 510 drivers/gpu/drm/amd/display/dc/core/dc.c == stream) { stream 731 drivers/gpu/drm/amd/display/dc/core/dc.c struct dc_stream_state *stream, stream 736 drivers/gpu/drm/amd/display/dc/core/dc.c for (i = 0; i < stream->num_wb_info; i++) stream 737 drivers/gpu/drm/amd/display/dc/core/dc.c stream->writeback_info[i].wb_enabled = false; stream 756 drivers/gpu/drm/amd/display/dc/core/dc.c dc->current_state->res_ctx.pipe_ctx[i].stream; stream 850 drivers/gpu/drm/amd/display/dc/core/dc.c if (!ctx->res_ctx.pipe_ctx[i].stream || stream 851 drivers/gpu/drm/amd/display/dc/core/dc.c !ctx->res_ctx.pipe_ctx[i].stream->triggered_crtc_reset.enabled) stream 853 drivers/gpu/drm/amd/display/dc/core/dc.c if (ctx->res_ctx.pipe_ctx[i].stream == ctx->res_ctx.pipe_ctx[i].stream->triggered_crtc_reset.event_source) stream 876 drivers/gpu/drm/amd/display/dc/core/dc.c if (!ctx->res_ctx.pipe_ctx[i].stream || ctx->res_ctx.pipe_ctx[i].top_pipe) stream 900 drivers/gpu/drm/amd/display/dc/core/dc.c unsynced_pipes[j]->stream, stream 901 drivers/gpu/drm/amd/display/dc/core/dc.c pipe_set[0]->stream)) { stream 925 drivers/gpu/drm/amd/display/dc/core/dc.c struct dc_stream_status *status = dc_stream_get_status_from_state(ctx, pipe_set[k]->stream); stream 1042 drivers/gpu/drm/amd/display/dc/core/dc.c if (streams[j] && streams[j] == pipe->stream && stream 1129 drivers/gpu/drm/amd/display/dc/core/dc.c context->streams[l] == pipe->stream && stream 1175 drivers/gpu/drm/amd/display/dc/core/dc.c struct dc_stream_state *stream = context->streams[i]; stream 1177 drivers/gpu/drm/amd/display/dc/core/dc.c dc_stream_log(dc, stream); stream 1219 drivers/gpu/drm/amd/display/dc/core/dc.c if (context->res_ctx.pipe_ctx[i].stream == NULL || stream 1666 drivers/gpu/drm/amd/display/dc/core/dc.c struct dc_stream_state *stream) stream 1671 drivers/gpu/drm/amd/display/dc/core/dc.c if (stream == ctx->streams[i]) { stream 1800 drivers/gpu/drm/amd/display/dc/core/dc.c struct dc_stream_state *stream, stream 1803 drivers/gpu/drm/amd/display/dc/core/dc.c if (update == NULL || stream == NULL) stream 1807 drivers/gpu/drm/amd/display/dc/core/dc.c stream->src = update->src; stream 1810 drivers/gpu/drm/amd/display/dc/core/dc.c stream->dst = update->dst; stream 1813 drivers/gpu/drm/amd/display/dc/core/dc.c stream->out_transfer_func != update->out_transfer_func) { stream 1814 drivers/gpu/drm/amd/display/dc/core/dc.c stream->out_transfer_func->sdr_ref_white_level = stream 1816 drivers/gpu/drm/amd/display/dc/core/dc.c stream->out_transfer_func->tf = update->out_transfer_func->tf; stream 1817 drivers/gpu/drm/amd/display/dc/core/dc.c stream->out_transfer_func->type = stream 1819 drivers/gpu/drm/amd/display/dc/core/dc.c memcpy(&stream->out_transfer_func->tf_pts, stream 1825 drivers/gpu/drm/amd/display/dc/core/dc.c stream->hdr_static_metadata = *update->hdr_static_metadata; stream 1828 drivers/gpu/drm/amd/display/dc/core/dc.c stream->abm_level = *update->abm_level; stream 1831 drivers/gpu/drm/amd/display/dc/core/dc.c stream->periodic_interrupt0 = *update->periodic_interrupt0; stream 1834 drivers/gpu/drm/amd/display/dc/core/dc.c stream->periodic_interrupt1 = *update->periodic_interrupt1; stream 1837 drivers/gpu/drm/amd/display/dc/core/dc.c stream->gamut_remap_matrix = *update->gamut_remap; stream 1844 drivers/gpu/drm/amd/display/dc/core/dc.c stream->output_color_space = *update->output_color_space; stream 1847 drivers/gpu/drm/amd/display/dc/core/dc.c stream->csc_color_matrix = *update->output_csc_transform; stream 1850 drivers/gpu/drm/amd/display/dc/core/dc.c stream->vrr_infopacket = *update->vrr_infopacket; stream 1853 drivers/gpu/drm/amd/display/dc/core/dc.c stream->dpms_off = *update->dpms_off; stream 1856 drivers/gpu/drm/amd/display/dc/core/dc.c stream->vsc_infopacket = *update->vsc_infopacket; stream 1859 drivers/gpu/drm/amd/display/dc/core/dc.c stream->vsp_infopacket = *update->vsp_infopacket; stream 1862 drivers/gpu/drm/amd/display/dc/core/dc.c stream->dither_option = *update->dither_option; stream 1868 drivers/gpu/drm/amd/display/dc/core/dc.c stream->num_wb_info = update->wb_update->num_wb_info; stream 1869 drivers/gpu/drm/amd/display/dc/core/dc.c ASSERT(stream->num_wb_info <= MAX_DWB_PIPES); stream 1870 drivers/gpu/drm/amd/display/dc/core/dc.c for (i = 0; i < stream->num_wb_info; i++) stream 1871 drivers/gpu/drm/amd/display/dc/core/dc.c stream->writeback_info[i] = stream 1877 drivers/gpu/drm/amd/display/dc/core/dc.c struct dc_dsc_config old_dsc_cfg = stream->timing.dsc_cfg; stream 1878 drivers/gpu/drm/amd/display/dc/core/dc.c uint32_t old_dsc_enabled = stream->timing.flags.DSC; stream 1882 drivers/gpu/drm/amd/display/dc/core/dc.c stream->timing.dsc_cfg = *update->dsc_config; stream 1883 drivers/gpu/drm/amd/display/dc/core/dc.c stream->timing.flags.DSC = enable_dsc; stream 1886 drivers/gpu/drm/amd/display/dc/core/dc.c stream->timing.dsc_cfg = old_dsc_cfg; stream 1887 drivers/gpu/drm/amd/display/dc/core/dc.c stream->timing.flags.DSC = old_dsc_enabled; stream 1894 drivers/gpu/drm/amd/display/dc/core/dc.c struct dc_stream_state *stream, stream 1905 drivers/gpu/drm/amd/display/dc/core/dc.c if (!pipe_ctx->top_pipe && !pipe_ctx->prev_odm_pipe && pipe_ctx->stream == stream) { stream 1915 drivers/gpu/drm/amd/display/dc/core/dc.c if ((stream_update->hdr_static_metadata && !stream->use_dynamic_meta) || stream 1924 drivers/gpu/drm/amd/display/dc/core/dc.c dc_stream_set_gamut_remap(dc, stream); stream 1927 drivers/gpu/drm/amd/display/dc/core/dc.c dc_stream_program_csc_matrix(dc, stream); stream 1933 drivers/gpu/drm/amd/display/dc/core/dc.c resource_build_bit_depth_reduction_params(pipe_ctx->stream, stream 1934 drivers/gpu/drm/amd/display/dc/core/dc.c &pipe_ctx->stream->bit_depth_params); stream 1936 drivers/gpu/drm/amd/display/dc/core/dc.c &stream->bit_depth_params, stream 1937 drivers/gpu/drm/amd/display/dc/core/dc.c &stream->clamping); stream 1941 drivers/gpu/drm/amd/display/dc/core/dc.c &stream->bit_depth_params, stream 1942 drivers/gpu/drm/amd/display/dc/core/dc.c &stream->clamping); stream 1984 drivers/gpu/drm/amd/display/dc/core/dc.c pipe_ctx->stream_res.abm, stream->abm_level); stream 1987 drivers/gpu/drm/amd/display/dc/core/dc.c pipe_ctx->stream_res.abm, stream->abm_level); stream 1996 drivers/gpu/drm/amd/display/dc/core/dc.c struct dc_stream_state *stream, stream 2011 drivers/gpu/drm/amd/display/dc/core/dc.c if (stream->apply_seamless_boot_optimization) { stream 2012 drivers/gpu/drm/amd/display/dc/core/dc.c stream->apply_seamless_boot_optimization = false; stream 2025 drivers/gpu/drm/amd/display/dc/core/dc.c commit_planes_do_stream_update(dc, stream, stream_update, update_type, context); stream 2032 drivers/gpu/drm/amd/display/dc/core/dc.c dc->hwss.apply_ctx_for_surface(dc, stream, 0, context); stream 2066 drivers/gpu/drm/amd/display/dc/core/dc.c pipe_ctx->stream && stream 2067 drivers/gpu/drm/amd/display/dc/core/dc.c pipe_ctx->stream == stream) { stream 2090 drivers/gpu/drm/amd/display/dc/core/dc.c stream_get_status(context, pipe_ctx->stream); stream 2093 drivers/gpu/drm/amd/display/dc/core/dc.c dc, pipe_ctx->stream, stream_status->plane_count, context); stream 2113 drivers/gpu/drm/amd/display/dc/core/dc.c if (pipe_ctx->stream != stream) stream 2132 drivers/gpu/drm/amd/display/dc/core/dc.c if (pipe_ctx->stream != stream) stream 2159 drivers/gpu/drm/amd/display/dc/core/dc.c !pipe_ctx->stream || stream 2160 drivers/gpu/drm/amd/display/dc/core/dc.c pipe_ctx->stream != stream || stream 2172 drivers/gpu/drm/amd/display/dc/core/dc.c struct dc_stream_state *stream, stream 2182 drivers/gpu/drm/amd/display/dc/core/dc.c stream_status = dc_stream_get_status(stream); stream 2231 drivers/gpu/drm/amd/display/dc/core/dc.c copy_stream_update_to_stream(dc, context, stream, stream_update); stream 2237 drivers/gpu/drm/amd/display/dc/core/dc.c stream, stream 2252 drivers/gpu/drm/amd/display/dc/core/dc.c if (pipe_ctx->plane_state && pipe_ctx->stream == stream) stream 325 drivers/gpu/drm/amd/display/dc/core/dc_debug.c if (pipe_ctx->stream == NULL || pipe_ctx->pipe_idx == underlay_idx) stream 335 drivers/gpu/drm/amd/display/dc/core/dc_debug.c if (pipe_ctx->stream == NULL || pipe_ctx->pipe_idx == underlay_idx) stream 340 drivers/gpu/drm/amd/display/dc/core/dc_debug.c pipe_ctx->stream->timing.h_total, stream 341 drivers/gpu/drm/amd/display/dc/core/dc_debug.c pipe_ctx->stream->timing.v_total, stream 1431 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct dc_stream_state *stream = pipe_ctx->stream; stream 1432 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct dc_link *link = stream->link; stream 1442 drivers/gpu/drm/amd/display/dc/core/dc_link.c (stream->ignore_msa_timing_param) ? 1 : 0; stream 1454 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct dc_stream_state *stream = pipe_ctx->stream; stream 1457 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct dc_link *link = stream->link; stream 1475 drivers/gpu/drm/amd/display/dc/core/dc_link.c decide_link_settings(stream, &link_settings); stream 1477 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (pipe_ctx->stream->signal == SIGNAL_TYPE_EDP) { stream 1484 drivers/gpu/drm/amd/display/dc/core/dc_link.c dp_disable_link_phy(link, pipe_ctx->stream->signal); stream 1499 drivers/gpu/drm/amd/display/dc/core/dc_link.c pipe_ctx->stream->signal, stream 1503 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (stream->sink_patches.dppowerup_delay > 0) { stream 1504 drivers/gpu/drm/amd/display/dc/core/dc_link.c int delay_dp_power_up_in_ms = stream->sink_patches.dppowerup_delay; stream 1559 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct dc_link *link = pipe_ctx->stream->link; stream 1588 drivers/gpu/drm/amd/display/dc/core/dc_link.c pipe_ctx->stream->ctx->dc_bios->integrated_info; stream 1689 drivers/gpu/drm/amd/display/dc/core/dc_link.c cmd.speed = pipe_ctx->stream->ctx->dc->caps.i2c_speed_in_khz; stream 1697 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (dm_helpers_submit_i2c(pipe_ctx->stream->ctx, stream 1698 drivers/gpu/drm/amd/display/dc/core/dc_link.c pipe_ctx->stream->link, &cmd)) stream 1717 drivers/gpu/drm/amd/display/dc/core/dc_link.c DC_LOGGER_INIT(pipe_ctx->stream->ctx->logger); stream 1752 drivers/gpu/drm/amd/display/dc/core/dc_link.c pipe_ctx->stream->link->ddc, stream 1805 drivers/gpu/drm/amd/display/dc/core/dc_link.c pipe_ctx->stream->link->ddc, stream 1878 drivers/gpu/drm/amd/display/dc/core/dc_link.c DC_LOGGER_INIT(pipe_ctx->stream->ctx->logger); stream 2004 drivers/gpu/drm/amd/display/dc/core/dc_link.c DC_LOGGER_INIT(pipe_ctx->stream->ctx->logger); stream 2029 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct dc_stream_state *stream = pipe_ctx->stream; stream 2030 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct dc_link *link = stream->link; stream 2035 drivers/gpu/drm/amd/display/dc/core/dc_link.c bool is_vga_mode = (stream->timing.h_addressable == 640) stream 2036 drivers/gpu/drm/amd/display/dc/core/dc_link.c && (stream->timing.v_addressable == 480); stream 2038 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (stream->phy_pix_clk == 0) stream 2039 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream->phy_pix_clk = stream->timing.pix_clk_100hz / 10; stream 2040 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (stream->phy_pix_clk > 340000) stream 2043 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (dc_is_hdmi_signal(pipe_ctx->stream->signal)) { stream 2044 drivers/gpu/drm/amd/display/dc/core/dc_link.c unsigned short masked_chip_caps = pipe_ctx->stream->link->chip_caps & stream 2063 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (dc_is_hdmi_signal(pipe_ctx->stream->signal)) stream 2065 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream->link->ddc, stream 2066 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream->phy_pix_clk, stream 2067 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream->timing.flags.LTE_340MCSC_SCRAMBLE); stream 2069 drivers/gpu/drm/amd/display/dc/core/dc_link.c memset(&stream->link->cur_link_settings, 0, stream 2072 drivers/gpu/drm/amd/display/dc/core/dc_link.c display_color_depth = stream->timing.display_color_depth; stream 2073 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR422) stream 2080 drivers/gpu/drm/amd/display/dc/core/dc_link.c pipe_ctx->stream->signal, stream 2081 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream->phy_pix_clk); stream 2083 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (dc_is_hdmi_signal(pipe_ctx->stream->signal)) stream 2089 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct dc_stream_state *stream = pipe_ctx->stream; stream 2090 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct dc_link *link = stream->link; stream 2092 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (stream->phy_pix_clk == 0) stream 2093 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream->phy_pix_clk = stream->timing.pix_clk_100hz / 10; stream 2095 drivers/gpu/drm/amd/display/dc/core/dc_link.c memset(&stream->link->cur_link_settings, 0, stream 2101 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream->phy_pix_clk); stream 2111 drivers/gpu/drm/amd/display/dc/core/dc_link.c switch (pipe_ctx->stream->signal) { stream 2140 drivers/gpu/drm/amd/display/dc/core/dc_link.c pipe_ctx->stream->link->link_status.link_active = true; stream 2270 drivers/gpu/drm/amd/display/dc/core/dc_link.c const struct dc_stream_state *stream, stream 2274 drivers/gpu/drm/amd/display/dc/core/dc_link.c uint32_t max_pix_clk = stream->link->dongle_max_pix_clk * 10; stream 2291 drivers/gpu/drm/amd/display/dc/core/dc_link.c switch (stream->signal) { stream 2341 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (core_dc->current_state->res_ctx.pipe_ctx[i].stream) { stream 2343 drivers/gpu/drm/amd/display/dc/core/dc_link.c pipe_ctx[i].stream->link stream 2407 drivers/gpu/drm/amd/display/dc/core/dc_link.c static struct fixed31_32 get_pbn_per_slot(struct dc_stream_state *stream) stream 2410 drivers/gpu/drm/amd/display/dc/core/dc_link.c uint32_t link_rate_in_mbytes_per_sec = dc_link_bandwidth_kbps(stream->link, stream 2411 drivers/gpu/drm/amd/display/dc/core/dc_link.c &stream->link->cur_link_settings); stream 2441 drivers/gpu/drm/amd/display/dc/core/dc_link.c kbps = dc_bandwidth_in_kbps_from_timing(&pipe_ctx->stream->timing); stream 2516 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct dc_stream_state *stream = pipe_ctx->stream; stream 2517 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct dc_link *link = stream->link; stream 2534 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream->ctx, stream 2535 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream, stream 2573 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream->ctx, stream 2574 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream); stream 2577 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream->ctx, stream 2578 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream, stream 2582 drivers/gpu/drm/amd/display/dc/core/dc_link.c pbn_per_slot = get_pbn_per_slot(stream); stream 2596 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct dc_stream_state *stream = pipe_ctx->stream; stream 2597 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct dc_link *link = stream->link; stream 2621 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream->ctx, stream 2622 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream, stream 2660 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream->ctx, stream 2661 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream); stream 2664 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream->ctx, stream 2665 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream, stream 2676 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct dc *core_dc = pipe_ctx->stream->ctx->dc; stream 2677 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct dc_stream_state *stream = pipe_ctx->stream; stream 2679 drivers/gpu/drm/amd/display/dc/core/dc_link.c DC_LOGGER_INIT(pipe_ctx->stream->ctx->logger); stream 2681 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (!dc_is_virtual_signal(pipe_ctx->stream->signal)) { stream 2682 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream->link->link_enc->funcs->setup( stream 2683 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream->link->link_enc, stream 2684 drivers/gpu/drm/amd/display/dc/core/dc_link.c pipe_ctx->stream->signal); stream 2688 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream->timing.timing_3d_format != TIMING_3D_FORMAT_NONE); stream 2691 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (dc_is_dp_signal(pipe_ctx->stream->signal)) stream 2694 drivers/gpu/drm/amd/display/dc/core/dc_link.c &stream->timing, stream 2695 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream->output_color_space, stream 2696 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream->link->dpcd_caps.dprx_feature.bits.SST_SPLIT_SDP_CAP); stream 2698 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (dc_is_hdmi_tmds_signal(pipe_ctx->stream->signal)) stream 2701 drivers/gpu/drm/amd/display/dc/core/dc_link.c &stream->timing, stream 2702 drivers/gpu/drm/amd/display/dc/core/dc_link.c stream->phy_pix_clk, stream 2705 drivers/gpu/drm/amd/display/dc/core/dc_link.c pipe_ctx->stream->link->link_state_valid = true; stream 2707 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (dc_is_dvi_signal(pipe_ctx->stream->signal)) stream 2710 drivers/gpu/drm/amd/display/dc/core/dc_link.c &stream->timing, stream 2711 drivers/gpu/drm/amd/display/dc/core/dc_link.c (pipe_ctx->stream->signal == SIGNAL_TYPE_DVI_DUAL_LINK) ? stream 2714 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (dc_is_lvds_signal(pipe_ctx->stream->signal)) stream 2717 drivers/gpu/drm/amd/display/dc/core/dc_link.c &stream->timing); stream 2721 drivers/gpu/drm/amd/display/dc/core/dc_link.c pipe_ctx->stream->apply_edp_fast_boot_optimization; stream 2723 drivers/gpu/drm/amd/display/dc/core/dc_link.c pipe_ctx->stream->apply_edp_fast_boot_optimization = false; stream 2729 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (pipe_ctx->stream->apply_seamless_boot_optimization) { stream 2730 drivers/gpu/drm/amd/display/dc/core/dc_link.c pipe_ctx->stream->dpms_off = false; stream 2735 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (pipe_ctx->stream->signal == SIGNAL_TYPE_EDP && stream 2737 drivers/gpu/drm/amd/display/dc/core/dc_link.c pipe_ctx->stream->dpms_off = false; stream 2741 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (pipe_ctx->stream->dpms_off) stream 2748 drivers/gpu/drm/amd/display/dc/core/dc_link.c pipe_ctx->stream->link->link_index, stream 2757 drivers/gpu/drm/amd/display/dc/core/dc_link.c pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST) { stream 2772 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (pipe_ctx->stream->timing.flags.DSC) { stream 2773 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (dc_is_dp_signal(pipe_ctx->stream->signal) || stream 2774 drivers/gpu/drm/amd/display/dc/core/dc_link.c dc_is_virtual_signal(pipe_ctx->stream->signal)) stream 2782 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (pipe_ctx->stream->timing.flags.DSC) { stream 2783 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (dc_is_dp_signal(pipe_ctx->stream->signal) || stream 2784 drivers/gpu/drm/amd/display/dc/core/dc_link.c dc_is_virtual_signal(pipe_ctx->stream->signal)) stream 2789 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST) stream 2793 drivers/gpu/drm/amd/display/dc/core/dc_link.c &pipe_ctx->stream->link->cur_link_settings); stream 2795 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (dc_is_dp_signal(pipe_ctx->stream->signal)) stream 2800 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (dc_is_dp_signal(pipe_ctx->stream->signal) || stream 2801 drivers/gpu/drm/amd/display/dc/core/dc_link.c dc_is_virtual_signal(pipe_ctx->stream->signal)) stream 2810 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct dc *core_dc = pipe_ctx->stream->ctx->dc; stream 2811 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct dc_stream_state *stream = pipe_ctx->stream; stream 2812 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct dc_link *link = stream->sink->link; stream 2816 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST) stream 2819 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (dc_is_hdmi_signal(pipe_ctx->stream->signal)) { stream 2845 drivers/gpu/drm/amd/display/dc/core/dc_link.c disable_link(pipe_ctx->stream->link, pipe_ctx->stream->signal); stream 2847 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (pipe_ctx->stream->timing.flags.DSC) { stream 2848 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (dc_is_dp_signal(pipe_ctx->stream->signal)) stream 2856 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct dc *core_dc = pipe_ctx->stream->ctx->dc; stream 2858 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (!dc_is_hdmi_signal(pipe_ctx->stream->signal)) stream 3020 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (pipe->stream && pipe->stream->link) { stream 3021 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (pipe->stream->link == link) { stream 3022 drivers/gpu/drm/amd/display/dc/core/dc_link.c link_stream = pipe->stream; stream 2001 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c void decide_link_settings(struct dc_stream_state *stream, stream 2007 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c req_bw = dc_bandwidth_in_kbps_from_timing(&stream->timing); stream 2009 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c link = stream->link; stream 2025 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c if (stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST) { stream 3055 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c stream->timing.display_color_depth; stream 3059 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c int width = pipe_ctx->stream->timing.h_addressable + stream 3060 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c pipe_ctx->stream->timing.h_border_left + stream 3061 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c pipe_ctx->stream->timing.h_border_right; stream 3062 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c int height = pipe_ctx->stream->timing.v_addressable + stream 3063 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c pipe_ctx->stream->timing.v_border_bottom + stream 3064 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c pipe_ctx->stream->timing.v_border_top; stream 3104 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c pipe_ctx->stream->bit_depth_params = params; stream 3143 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c resource_build_bit_depth_reduction_params(pipe_ctx->stream, ¶ms); stream 3144 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c pipe_ctx->stream->bit_depth_params = params; stream 3204 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c if (pipes[i].stream->link == link && !pipes[i].top_pipe && !pipes[i].prev_odm_pipe) { stream 85 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c if (pipes[i].stream != NULL && stream 86 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c pipes[i].stream->link == link) { stream 91 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c pipes[i].stream->timing.pix_clk_100hz; stream 277 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c if (pipes[i].stream != NULL && stream 279 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c pipes[i].stream->link != NULL && stream 281 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c pipes[i].stream->link == link) { stream 368 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c struct dc *core_dc = pipe_ctx->stream->ctx->dc; stream 369 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c struct dc_stream_state *stream = pipe_ctx->stream; stream 375 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c result = dm_helpers_dp_write_dsc_enable(core_dc->ctx, stream, enable); stream 385 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c struct dc *core_dc = pipe_ctx->stream->ctx->dc; stream 386 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c struct dc_stream_state *stream = pipe_ctx->stream; stream 399 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c dsc_cfg.pic_width = (stream->timing.h_addressable + stream->timing.h_border_left + stream->timing.h_border_right) / opp_cnt; stream 400 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c dsc_cfg.pic_height = stream->timing.v_addressable + stream->timing.v_border_top + stream->timing.v_border_bottom; stream 401 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c dsc_cfg.pixel_encoding = stream->timing.pixel_encoding; stream 402 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c dsc_cfg.color_depth = stream->timing.display_color_depth; stream 403 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c dsc_cfg.dc_dsc_cfg = stream->timing.dsc_cfg; stream 421 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c if (dc_is_dp_signal(stream->signal) && !IS_FPGA_MAXIMUS_DC(core_dc->ctx->dce_environment)) { stream 446 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c if (dc_is_dp_signal(stream->signal) && !IS_FPGA_MAXIMUS_DC(core_dc->ctx->dce_environment)) { stream 467 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c if (!pipe_ctx->stream->timing.flags.DSC) stream 489 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c struct dc *core_dc = pipe_ctx->stream->ctx->dc; stream 490 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c struct dc_stream_state *stream = pipe_ctx->stream; stream 492 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c if (!pipe_ctx->stream->timing.flags.DSC || !dsc) stream 500 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c dsc_cfg.pic_width = stream->timing.h_addressable + stream->timing.h_border_left + stream->timing.h_border_right; stream 501 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c dsc_cfg.pic_height = stream->timing.v_addressable + stream->timing.v_border_top + stream->timing.v_border_bottom; stream 502 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c dsc_cfg.pixel_encoding = stream->timing.pixel_encoding; stream 503 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c dsc_cfg.color_depth = stream->timing.display_color_depth; stream 504 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c dsc_cfg.dc_dsc_cfg = stream->timing.dsc_cfg; stream 508 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c if (dc_is_dp_signal(stream->signal) && !IS_FPGA_MAXIMUS_DC(core_dc->ctx->dce_environment)) { stream 517 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c if (dc_is_dp_signal(stream->signal) && !IS_FPGA_MAXIMUS_DC(core_dc->ctx->dce_environment)) { stream 531 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c if (!pipe_ctx->stream->timing.flags.DSC) stream 434 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (pipe_with_clk_src->stream->signal == SIGNAL_TYPE_VIRTUAL) stream 437 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (dc_is_dp_signal(pipe_with_clk_src->stream->signal) || stream 438 drivers/gpu/drm/amd/display/dc/core/dc_resource.c (dc_is_dp_signal(pipe->stream->signal) && stream 439 drivers/gpu/drm/amd/display/dc/core/dc_resource.c !is_dp_and_hdmi_sharable(pipe_with_clk_src->stream, stream 440 drivers/gpu/drm/amd/display/dc/core/dc_resource.c pipe->stream))) stream 443 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (dc_is_hdmi_signal(pipe_with_clk_src->stream->signal) stream 444 drivers/gpu/drm/amd/display/dc/core/dc_resource.c && dc_is_dual_link_signal(pipe->stream->signal)) stream 447 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (dc_is_hdmi_signal(pipe->stream->signal) stream 448 drivers/gpu/drm/amd/display/dc/core/dc_resource.c && dc_is_dual_link_signal(pipe_with_clk_src->stream->signal)) stream 452 drivers/gpu/drm/amd/display/dc/core/dc_resource.c pipe_with_clk_src->stream, pipe->stream)) stream 550 drivers/gpu/drm/amd/display/dc/core/dc_resource.c const struct dc_stream_state *stream = pipe_ctx->stream; stream 562 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (stream->view_format == VIEW_3D_FORMAT_SIDE_BY_SIDE || stream 563 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream->view_format == VIEW_3D_FORMAT_TOP_AND_BOTTOM) { stream 572 drivers/gpu/drm/amd/display/dc/core/dc_resource.c clip.x = stream->src.x > plane_state->clip_rect.x ? stream 573 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream->src.x : plane_state->clip_rect.x; stream 575 drivers/gpu/drm/amd/display/dc/core/dc_resource.c clip.width = stream->src.x + stream->src.width < stream 577 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream->src.x + stream->src.width - clip.x : stream 580 drivers/gpu/drm/amd/display/dc/core/dc_resource.c clip.y = stream->src.y > plane_state->clip_rect.y ? stream 581 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream->src.y : plane_state->clip_rect.y; stream 583 drivers/gpu/drm/amd/display/dc/core/dc_resource.c clip.height = stream->src.y + stream->src.height < stream 585 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream->src.y + stream->src.height - clip.y : stream 658 drivers/gpu/drm/amd/display/dc/core/dc_resource.c const struct dc_stream_state *stream = pipe_ctx->stream; stream 664 drivers/gpu/drm/amd/display/dc/core/dc_resource.c bool top_bottom_split = stream->view_format == VIEW_3D_FORMAT_TOP_AND_BOTTOM; stream 666 drivers/gpu/drm/amd/display/dc/core/dc_resource.c pipe_ctx->plane_res.scl_data.recout.x = stream->dst.x; stream 667 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (stream->src.x < surf_clip.x) stream 669 drivers/gpu/drm/amd/display/dc/core/dc_resource.c - stream->src.x) * stream->dst.width stream 670 drivers/gpu/drm/amd/display/dc/core/dc_resource.c / stream->src.width; stream 673 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream->dst.width / stream->src.width; stream 675 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream->dst.x + stream->dst.width) stream 677 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream->dst.x + stream->dst.width stream 680 drivers/gpu/drm/amd/display/dc/core/dc_resource.c pipe_ctx->plane_res.scl_data.recout.y = stream->dst.y; stream 681 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (stream->src.y < surf_clip.y) stream 683 drivers/gpu/drm/amd/display/dc/core/dc_resource.c - stream->src.y) * stream->dst.height stream 684 drivers/gpu/drm/amd/display/dc/core/dc_resource.c / stream->src.height; stream 687 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream->dst.height / stream->src.height; stream 689 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream->dst.y + stream->dst.height) stream 691 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream->dst.y + stream->dst.height stream 716 drivers/gpu/drm/amd/display/dc/core/dc_resource.c const struct dc_stream_state *stream = pipe_ctx->stream; stream 718 drivers/gpu/drm/amd/display/dc/core/dc_resource.c const int in_w = stream->src.width; stream 719 drivers/gpu/drm/amd/display/dc/core/dc_resource.c const int in_h = stream->src.height; stream 720 drivers/gpu/drm/amd/display/dc/core/dc_resource.c const int out_w = stream->dst.width; stream 721 drivers/gpu/drm/amd/display/dc/core/dc_resource.c const int out_h = stream->dst.height; stream 735 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (stream->view_format == VIEW_3D_FORMAT_SIDE_BY_SIDE) stream 737 drivers/gpu/drm/amd/display/dc/core/dc_resource.c else if (stream->view_format == VIEW_3D_FORMAT_TOP_AND_BOTTOM) stream 846 drivers/gpu/drm/amd/display/dc/core/dc_resource.c const struct dc_stream_state *stream = pipe_ctx->stream; stream 880 drivers/gpu/drm/amd/display/dc/core/dc_resource.c recout_skip_h = data->recout.x - (stream->dst.x + (plane_state->dst_rect.x - stream->src.x) stream 881 drivers/gpu/drm/amd/display/dc/core/dc_resource.c * stream->dst.width / stream->src.width - stream 883 drivers/gpu/drm/amd/display/dc/core/dc_resource.c * stream->dst.width / stream->src.width); stream 884 drivers/gpu/drm/amd/display/dc/core/dc_resource.c recout_skip_v = data->recout.y - (stream->dst.y + (plane_state->dst_rect.y - stream->src.y) stream 885 drivers/gpu/drm/amd/display/dc/core/dc_resource.c * stream->dst.height / stream->src.height - stream 887 drivers/gpu/drm/amd/display/dc/core/dc_resource.c * stream->dst.height / stream->src.height); stream 965 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_crtc_timing *timing = &pipe_ctx->stream->timing; stream 967 drivers/gpu/drm/amd/display/dc/core/dc_resource.c DC_LOGGER_INIT(pipe_ctx->stream->ctx->logger); stream 1060 drivers/gpu/drm/amd/display/dc/core/dc_resource.c context->res_ctx.pipe_ctx[i].stream != NULL) stream 1106 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (res_ctx->pipe_ctx[preferred_pipe_idx].stream == NULL) { stream 1118 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (res_ctx->pipe_ctx[i].stream == NULL) { stream 1130 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *stream) stream 1135 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (res_ctx->pipe_ctx[i].stream == stream stream 1176 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (res_ctx->pipe_ctx[i].stream == head_pipe->stream && stream 1190 drivers/gpu/drm/amd/display/dc/core/dc_resource.c return pool->funcs->acquire_idle_pipe_for_layer(context, pool, head_pipe->stream); stream 1197 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *stream) stream 1222 drivers/gpu/drm/amd/display/dc/core/dc_resource.c split_pipe->stream = stream; stream 1232 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *stream, stream 1242 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (context->streams[i] == stream) { stream 1258 drivers/gpu/drm/amd/display/dc/core/dc_resource.c head_pipe = resource_get_head_pipe_for_stream(&context->res_ctx, stream); stream 1261 drivers/gpu/drm/amd/display/dc/core/dc_resource.c dm_error("Head pipe not found for stream_state %p !\n", stream); stream 1276 drivers/gpu/drm/amd/display/dc/core/dc_resource.c int pipe_idx = acquire_first_split_pipe(&context->res_ctx, pool, stream); stream 1310 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *stream, stream 1319 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (context->streams[i] == stream) { stream 1382 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *stream, stream 1390 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (context->streams[i] == stream) { stream 1396 drivers/gpu/drm/amd/display/dc/core/dc_resource.c dm_error("Existing stream %p not found!\n", stream); stream 1406 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (!dc_remove_plane_from_context(dc, stream, del_planes[i], context)) stream 1414 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *stream, stream 1422 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (set[i].stream == stream) stream 1426 drivers/gpu/drm/amd/display/dc/core/dc_resource.c dm_error("Stream %p not found in set!\n", stream); stream 1431 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (!dc_add_plane_to_context(dc, stream, set[i].plane_states[j], context)) stream 1439 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *stream, stream 1447 drivers/gpu/drm/amd/display/dc/core/dc_resource.c set.stream = stream; stream 1453 drivers/gpu/drm/amd/display/dc/core/dc_resource.c return add_all_planes_for_stream(dc, stream, &set, 1, context); stream 1540 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *old_stream, struct dc_stream_state *stream) stream 1543 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (!are_stream_backends_same(old_stream, stream)) stream 1546 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (old_stream->ignore_msa_timing_param != stream->ignore_msa_timing_param) stream 1556 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *old_stream, struct dc_stream_state *stream) stream 1558 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (old_stream == stream) stream 1561 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (old_stream == NULL || stream == NULL) stream 1565 drivers/gpu/drm/amd/display/dc/core/dc_resource.c &stream->src, stream 1570 drivers/gpu/drm/amd/display/dc/core/dc_resource.c &stream->dst, stream 1608 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *stream) stream 1613 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (!res_ctx->pipe_ctx[i].stream) { stream 1628 drivers/gpu/drm/amd/display/dc/core/dc_resource.c pipe_ctx->stream = stream; stream 1667 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_state *old_context, struct dc_stream_state *stream) stream 1674 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (are_stream_backends_same(old_stream, stream)) stream 1687 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *stream) stream 1693 drivers/gpu/drm/amd/display/dc/core/dc_resource.c DC_LOG_WARNING("Max streams reached, can't add stream %p !\n", stream); stream 1697 drivers/gpu/drm/amd/display/dc/core/dc_resource.c new_ctx->streams[new_ctx->stream_count] = stream; stream 1698 drivers/gpu/drm/amd/display/dc/core/dc_resource.c dc_stream_retain(stream); stream 1701 drivers/gpu/drm/amd/display/dc/core/dc_resource.c res = dc->res_pool->funcs->add_stream_to_ctx(dc, new_ctx, stream); stream 1703 drivers/gpu/drm/amd/display/dc/core/dc_resource.c DC_LOG_WARNING("Adding stream %p to context failed with err %d!\n", stream, res); stream 1714 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *stream) stream 1718 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct pipe_ctx *del_pipe = resource_get_head_pipe_for_stream(&new_ctx->res_ctx, stream); stream 1722 drivers/gpu/drm/amd/display/dc/core/dc_resource.c DC_ERROR("Pipe not found for stream %p !\n", stream); stream 1748 drivers/gpu/drm/amd/display/dc/core/dc_resource.c dc->res_pool->funcs->remove_stream_from_ctx(dc, new_ctx, stream); stream 1759 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (new_ctx->streams[i] == stream) stream 1762 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (new_ctx->streams[i] != stream) { stream 1763 drivers/gpu/drm/amd/display/dc/core/dc_resource.c DC_ERROR("Context doesn't have stream %p !\n", stream); stream 1837 drivers/gpu/drm/amd/display/dc/core/dc_resource.c static void calculate_phy_pix_clks(struct dc_stream_state *stream) stream 1840 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (dc_is_hdmi_signal(stream->signal)) stream 1841 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream->phy_pix_clk = get_norm_pix_clk( stream 1842 drivers/gpu/drm/amd/display/dc/core/dc_resource.c &stream->timing) / 10; stream 1844 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream->phy_pix_clk = stream 1845 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream->timing.pix_clk_100hz / 10; stream 1847 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (stream->timing.timing_3d_format == TIMING_3D_FORMAT_HW_FRAME_PACKING) stream 1848 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream->phy_pix_clk *= 2; stream 1854 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *stream) stream 1856 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_link *link = stream->link; stream 1883 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (!res_ctx->pipe_ctx[tg_inst].stream) { stream 1898 drivers/gpu/drm/amd/display/dc/core/dc_resource.c pipe_ctx->stream = stream; stream 1908 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *stream) stream 1928 drivers/gpu/drm/amd/display/dc/core/dc_resource.c calculate_phy_pix_clks(stream); stream 1933 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (dc_validate_seamless_boot_timing(dc, stream->sink, &stream->timing)) stream 1934 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream->apply_seamless_boot_optimization = true; stream 1937 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (stream->apply_seamless_boot_optimization) stream 1941 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream); stream 1945 drivers/gpu/drm/amd/display/dc/core/dc_resource.c pipe_idx = acquire_first_free_pipe(&context->res_ctx, pool, stream); stream 1949 drivers/gpu/drm/amd/display/dc/core/dc_resource.c pipe_idx = acquire_first_split_pipe(&context->res_ctx, pool, stream); stream 1959 drivers/gpu/drm/amd/display/dc/core/dc_resource.c &context->res_ctx, pool, stream); stream 1970 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (!stream->converter_disable_audio && stream 1971 drivers/gpu/drm/amd/display/dc/core/dc_resource.c dc_is_audio_capable_signal(pipe_ctx->stream->signal) && stream 1972 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream->audio_info.mode_count && stream->audio_info.flags.all) { stream 1987 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (pipe_ctx->stream && dc_is_embedded_signal(pipe_ctx->stream->signal)) stream 1991 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (context->streams[i] == stream) { stream 2000 drivers/gpu/drm/amd/display/dc/core/dc_resource.c DC_ERROR("Stream %p not found in new ctx!\n", stream); stream 2052 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *stream = new_ctx->streams[i]; stream 2057 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (pipe_ctx->stream != stream) stream 2072 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (dc_is_dp_signal(pipe_ctx->stream->signal) && stream 2073 drivers/gpu/drm/amd/display/dc/core/dc_resource.c !find_pll_sharable_stream(stream, new_ctx)) { stream 2121 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *stream = pipe_ctx->stream; stream 2134 drivers/gpu/drm/amd/display/dc/core/dc_resource.c unsigned int vic = pipe_ctx->stream->timing.vic; stream 2139 drivers/gpu/drm/amd/display/dc/core/dc_resource.c color_space = pipe_ctx->stream->output_color_space; stream 2141 drivers/gpu/drm/amd/display/dc/core/dc_resource.c color_space = (stream->timing.pixel_encoding == PIXEL_ENCODING_RGB) ? stream 2156 drivers/gpu/drm/amd/display/dc/core/dc_resource.c switch (stream->timing.pixel_encoding) { stream 2211 drivers/gpu/drm/amd/display/dc/core/dc_resource.c aspect = stream->timing.aspect_ratio; stream 2237 drivers/gpu/drm/amd/display/dc/core/dc_resource.c support = stream->content_support; stream 2276 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (stream->qs_bit == 1 && stream 2277 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream->qy_bit == 1) { stream 2296 drivers/gpu/drm/amd/display/dc/core/dc_resource.c format = stream->timing.timing_3d_format; stream 2300 drivers/gpu/drm/amd/display/dc/core/dc_resource.c switch (pipe_ctx->stream->timing.hdmi_vic) { stream 2340 drivers/gpu/drm/amd/display/dc/core/dc_resource.c hdmi_info.bits.bar_top = stream->timing.v_border_top; stream 2341 drivers/gpu/drm/amd/display/dc/core/dc_resource.c hdmi_info.bits.bar_bottom = (stream->timing.v_total stream 2342 drivers/gpu/drm/amd/display/dc/core/dc_resource.c - stream->timing.v_border_bottom + 1); stream 2343 drivers/gpu/drm/amd/display/dc/core/dc_resource.c hdmi_info.bits.bar_left = stream->timing.h_border_left; stream 2344 drivers/gpu/drm/amd/display/dc/core/dc_resource.c hdmi_info.bits.bar_right = (stream->timing.h_total stream 2345 drivers/gpu/drm/amd/display/dc/core/dc_resource.c - stream->timing.h_border_right + 1); stream 2378 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *stream) stream 2385 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (!stream->vsp_infopacket.valid) stream 2388 drivers/gpu/drm/amd/display/dc/core/dc_resource.c *info_packet = stream->vsp_infopacket; stream 2393 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *stream) stream 2400 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (!stream->vrr_infopacket.valid) stream 2403 drivers/gpu/drm/amd/display/dc/core/dc_resource.c *info_packet = stream->vrr_infopacket; stream 2408 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *stream) stream 2412 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (!stream->hdr_static_metadata.valid || stream 2413 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream->use_dynamic_meta) stream 2416 drivers/gpu/drm/amd/display/dc/core/dc_resource.c *info_packet = stream->hdr_static_metadata; stream 2421 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *stream) stream 2423 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (!stream->vsc_infopacket.valid) stream 2426 drivers/gpu/drm/amd/display/dc/core/dc_resource.c *info_packet = stream->vsc_infopacket; stream 2508 drivers/gpu/drm/amd/display/dc/core/dc_resource.c signal = pipe_ctx->stream->signal; stream 2514 drivers/gpu/drm/amd/display/dc/core/dc_resource.c set_vendor_info_packet(&info->vendor, pipe_ctx->stream); stream 2516 drivers/gpu/drm/amd/display/dc/core/dc_resource.c set_spd_info_packet(&info->spd, pipe_ctx->stream); stream 2518 drivers/gpu/drm/amd/display/dc/core/dc_resource.c set_hdr_static_info_packet(&info->hdrsmd, pipe_ctx->stream); stream 2521 drivers/gpu/drm/amd/display/dc/core/dc_resource.c set_vsc_info_packet(&info->vsc, pipe_ctx->stream); stream 2523 drivers/gpu/drm/amd/display/dc/core/dc_resource.c set_spd_info_packet(&info->spd, pipe_ctx->stream); stream 2525 drivers/gpu/drm/amd/display/dc/core/dc_resource.c set_hdr_static_info_packet(&info->hdrsmd, pipe_ctx->stream); stream 2534 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_stream_state *stream) stream 2539 drivers/gpu/drm/amd/display/dc/core/dc_resource.c &context->res_ctx, stream); stream 2544 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (dc_is_dp_signal(pipe_ctx->stream->signal) stream 2545 drivers/gpu/drm/amd/display/dc/core/dc_resource.c || pipe_ctx->stream->signal == SIGNAL_TYPE_VIRTUAL) stream 2581 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (!pipe_ctx_old->stream) stream 2584 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (pipe_ctx_old->stream->sink != pipe_ctx->stream->sink) stream 2587 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (pipe_ctx_old->stream->signal != pipe_ctx->stream->signal) stream 2594 drivers/gpu/drm/amd/display/dc/core/dc_resource.c && pipe_ctx_old->stream != pipe_ctx->stream) stream 2600 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (is_timing_changed(pipe_ctx_old->stream, pipe_ctx->stream)) stream 2603 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (is_hdr_static_meta_changed(pipe_ctx_old->stream, pipe_ctx->stream)) stream 2606 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (pipe_ctx_old->stream->dpms_off != pipe_ctx->stream->dpms_off) stream 2609 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (is_vsc_info_packet_changed(pipe_ctx_old->stream, pipe_ctx->stream)) stream 2612 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (false == pipe_ctx_old->stream->link->link_state_valid && stream 2613 drivers/gpu/drm/amd/display/dc/core/dc_resource.c false == pipe_ctx_old->stream->dpms_off) stream 2619 drivers/gpu/drm/amd/display/dc/core/dc_resource.c void resource_build_bit_depth_reduction_params(struct dc_stream_state *stream, stream 2622 drivers/gpu/drm/amd/display/dc/core/dc_resource.c enum dc_dither_option option = stream->dither_option; stream 2624 drivers/gpu/drm/amd/display/dc/core/dc_resource.c stream->timing.pixel_encoding; stream 2629 drivers/gpu/drm/amd/display/dc/core/dc_resource.c switch (stream->timing.display_color_depth) { stream 2745 drivers/gpu/drm/amd/display/dc/core/dc_resource.c enum dc_status dc_validate_stream(struct dc *dc, struct dc_stream_state *stream) stream 2748 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct dc_link *link = stream->link; stream 2752 drivers/gpu/drm/amd/display/dc/core/dc_resource.c calculate_phy_pix_clks(stream); stream 2754 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (!tg->funcs->validate_timing(tg, &stream->timing)) stream 2759 drivers/gpu/drm/amd/display/dc/core/dc_resource.c link->link_enc, stream)) stream 2766 drivers/gpu/drm/amd/display/dc/core/dc_resource.c res = dc_link_validate_mode_timing(stream, stream 2768 drivers/gpu/drm/amd/display/dc/core/dc_resource.c &stream->timing); stream 44 drivers/gpu/drm/amd/display/dc/core/dc_stream.c void update_stream_signal(struct dc_stream_state *stream, struct dc_sink *sink) stream 47 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->signal = stream->link->connector_signal; stream 49 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->signal = sink->sink_signal; stream 51 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (dc_is_dvi_signal(stream->signal)) { stream 52 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (stream->ctx->dc->caps.dual_link_dvi && stream 53 drivers/gpu/drm/amd/display/dc/core/dc_stream.c (stream->timing.pix_clk_100hz / 10) > TMDS_MAX_PIXEL_CLOCK && stream 55 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->signal = SIGNAL_TYPE_DVI_DUAL_LINK; stream 57 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->signal = SIGNAL_TYPE_DVI_SINGLE_LINK; stream 61 drivers/gpu/drm/amd/display/dc/core/dc_stream.c static void construct(struct dc_stream_state *stream, stream 66 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->sink = dc_sink_data; stream 69 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->ctx = dc_sink_data->ctx; stream 70 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->link = dc_sink_data->link; stream 71 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->sink_patches = dc_sink_data->edid_caps.panel_patch; stream 72 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->converter_disable_audio = dc_sink_data->converter_disable_audio; stream 73 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->qs_bit = dc_sink_data->edid_caps.qs_bit; stream 74 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->qy_bit = dc_sink_data->edid_caps.qy_bit; stream 80 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->audio_info.modes[i].channel_count = dc_sink_data->edid_caps.audio_modes[i].channel_count; stream 81 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->audio_info.modes[i].format_code = dc_sink_data->edid_caps.audio_modes[i].format_code; stream 82 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->audio_info.modes[i].sample_rates.all = dc_sink_data->edid_caps.audio_modes[i].sample_rate; stream 83 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->audio_info.modes[i].sample_size = dc_sink_data->edid_caps.audio_modes[i].sample_size; stream 85 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->audio_info.mode_count = dc_sink_data->edid_caps.audio_mode_count; stream 86 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->audio_info.audio_latency = dc_sink_data->edid_caps.audio_latency; stream 87 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->audio_info.video_latency = dc_sink_data->edid_caps.video_latency; stream 89 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->audio_info.display_name, stream 92 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->audio_info.manufacture_id = dc_sink_data->edid_caps.manufacturer_id; stream 93 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->audio_info.product_id = dc_sink_data->edid_caps.product_id; stream 94 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->audio_info.flags.all = dc_sink_data->edid_caps.speaker_flags; stream 99 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->audio_info.port_id[0] = dc_container_id->portId[0]; stream 100 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->audio_info.port_id[1] = dc_container_id->portId[1]; stream 104 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->audio_info.port_id[0] = 0x5558859e; stream 105 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->audio_info.port_id[1] = 0xd989449; stream 109 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->timing.flags.LTE_340MCSC_SCRAMBLE = dc_sink_data->edid_caps.lte_340mcsc_scramble; stream 112 drivers/gpu/drm/amd/display/dc/core/dc_stream.c memset(&stream->timing.dsc_cfg, 0, sizeof(stream->timing.dsc_cfg)); stream 113 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->timing.dsc_cfg.num_slices_h = 0; stream 114 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->timing.dsc_cfg.num_slices_v = 0; stream 115 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->timing.dsc_cfg.bits_per_pixel = 128; stream 116 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->timing.dsc_cfg.block_pred_enable = 1; stream 117 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->timing.dsc_cfg.linebuf_depth = 9; stream 118 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->timing.dsc_cfg.version_minor = 2; stream 119 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->timing.dsc_cfg.ycbcr422_simple = 0; stream 122 drivers/gpu/drm/amd/display/dc/core/dc_stream.c update_stream_signal(stream, dc_sink_data); stream 124 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->out_transfer_func = dc_create_transfer_func(); stream 125 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->out_transfer_func->type = TF_TYPE_BYPASS; stream 126 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->out_transfer_func->ctx = stream->ctx; stream 128 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->stream_id = stream->ctx->dc_stream_id_count; stream 129 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->ctx->dc_stream_id_count++; stream 132 drivers/gpu/drm/amd/display/dc/core/dc_stream.c static void destruct(struct dc_stream_state *stream) stream 134 drivers/gpu/drm/amd/display/dc/core/dc_stream.c dc_sink_release(stream->sink); stream 135 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (stream->out_transfer_func != NULL) { stream 136 drivers/gpu/drm/amd/display/dc/core/dc_stream.c dc_transfer_func_release(stream->out_transfer_func); stream 137 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->out_transfer_func = NULL; stream 141 drivers/gpu/drm/amd/display/dc/core/dc_stream.c void dc_stream_retain(struct dc_stream_state *stream) stream 143 drivers/gpu/drm/amd/display/dc/core/dc_stream.c kref_get(&stream->refcount); stream 148 drivers/gpu/drm/amd/display/dc/core/dc_stream.c struct dc_stream_state *stream = container_of(kref, struct dc_stream_state, refcount); stream 150 drivers/gpu/drm/amd/display/dc/core/dc_stream.c destruct(stream); stream 151 drivers/gpu/drm/amd/display/dc/core/dc_stream.c kfree(stream); stream 154 drivers/gpu/drm/amd/display/dc/core/dc_stream.c void dc_stream_release(struct dc_stream_state *stream) stream 156 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (stream != NULL) { stream 157 drivers/gpu/drm/amd/display/dc/core/dc_stream.c kref_put(&stream->refcount, dc_stream_free); stream 164 drivers/gpu/drm/amd/display/dc/core/dc_stream.c struct dc_stream_state *stream; stream 169 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream = kzalloc(sizeof(struct dc_stream_state), GFP_KERNEL); stream 170 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (stream == NULL) stream 173 drivers/gpu/drm/amd/display/dc/core/dc_stream.c construct(stream, sink); stream 175 drivers/gpu/drm/amd/display/dc/core/dc_stream.c kref_init(&stream->refcount); stream 177 drivers/gpu/drm/amd/display/dc/core/dc_stream.c return stream; stream 180 drivers/gpu/drm/amd/display/dc/core/dc_stream.c struct dc_stream_state *dc_copy_stream(const struct dc_stream_state *stream) stream 184 drivers/gpu/drm/amd/display/dc/core/dc_stream.c new_stream = kmemdup(stream, sizeof(struct dc_stream_state), GFP_KERNEL); stream 212 drivers/gpu/drm/amd/display/dc/core/dc_stream.c struct dc_stream_state *stream) stream 217 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (stream == state->streams[i]) stream 232 drivers/gpu/drm/amd/display/dc/core/dc_stream.c struct dc_stream_state *stream) stream 234 drivers/gpu/drm/amd/display/dc/core/dc_stream.c struct dc *dc = stream->ctx->dc; stream 235 drivers/gpu/drm/amd/display/dc/core/dc_stream.c return dc_stream_get_status_from_state(dc->current_state, stream); stream 243 drivers/gpu/drm/amd/display/dc/core/dc_stream.c struct dc_stream_state *stream = pipe_ctx->stream; stream 246 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (stream->ctx->asic_id.chip_family == FAMILY_RV && stream 247 drivers/gpu/drm/amd/display/dc/core/dc_stream.c ASICREV_IS_RAVEN(stream->ctx->asic_id.hw_internal_rev)) { stream 250 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (!dc_stream_get_crtc_position(dc, &stream, 1, &vpos, &nvpos)) stream 256 drivers/gpu/drm/amd/display/dc/core/dc_stream.c us_per_line = stream->timing.h_total * 10000 / stream->timing.pix_clk_100hz; stream 271 drivers/gpu/drm/amd/display/dc/core/dc_stream.c struct dc_stream_state *stream, stream 279 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (NULL == stream) { stream 293 drivers/gpu/drm/amd/display/dc/core/dc_stream.c core_dc = stream->ctx->dc; stream 295 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->cursor_attributes = *attributes; stream 300 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (pipe_ctx->stream != stream) stream 322 drivers/gpu/drm/amd/display/dc/core/dc_stream.c struct dc_stream_state *stream, stream 330 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (NULL == stream) { stream 340 drivers/gpu/drm/amd/display/dc/core/dc_stream.c core_dc = stream->ctx->dc; stream 342 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->cursor_position = *position; stream 347 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (pipe_ctx->stream != stream || stream 372 drivers/gpu/drm/amd/display/dc/core/dc_stream.c struct dc_stream_state *stream, stream 379 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (stream == NULL) { stream 394 drivers/gpu/drm/amd/display/dc/core/dc_stream.c wb_info->dwb_params.out_transfer_func = stream->out_transfer_func; stream 401 drivers/gpu/drm/amd/display/dc/core/dc_stream.c for (i = 0; i < stream->num_wb_info; i++) { stream 403 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (stream->writeback_info[i].wb_enabled && stream 404 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->writeback_info[i].dwb_pipe_inst == wb_info->dwb_pipe_inst) { stream 405 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->writeback_info[i] = *wb_info; stream 411 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->writeback_info[stream->num_wb_info++] = *wb_info; stream 421 drivers/gpu/drm/amd/display/dc/core/dc_stream.c struct dc_stream_status *stream_status = dc_stream_get_status(stream); stream 437 drivers/gpu/drm/amd/display/dc/core/dc_stream.c struct dc_stream_state *stream, stream 441 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (stream == NULL) { stream 452 drivers/gpu/drm/amd/display/dc/core/dc_stream.c for (i = 0; i < stream->num_wb_info; i++) { stream 454 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (stream->writeback_info[i].wb_enabled && stream 455 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->writeback_info[i].dwb_pipe_inst == dwb_pipe_inst) { stream 456 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->writeback_info[i].wb_enabled = false; stream 461 drivers/gpu/drm/amd/display/dc/core/dc_stream.c for (i = 0, j = 0; i < stream->num_wb_info; i++) { stream 462 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (stream->writeback_info[i].wb_enabled) { stream 465 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->writeback_info[j] = stream->writeback_info[i]; stream 469 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->num_wb_info = j; stream 485 drivers/gpu/drm/amd/display/dc/core/dc_stream.c uint32_t dc_stream_get_vblank_counter(const struct dc_stream_state *stream) stream 488 drivers/gpu/drm/amd/display/dc/core/dc_stream.c struct dc *core_dc = stream->ctx->dc; stream 495 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (res_ctx->pipe_ctx[i].stream != stream) stream 504 drivers/gpu/drm/amd/display/dc/core/dc_stream.c bool dc_stream_send_dp_sdp(const struct dc_stream_state *stream, stream 512 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (stream == NULL) { stream 517 drivers/gpu/drm/amd/display/dc/core/dc_stream.c dc = stream->ctx->dc; stream 523 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (pipe_ctx->stream != stream) stream 539 drivers/gpu/drm/amd/display/dc/core/dc_stream.c bool dc_stream_get_scanoutpos(const struct dc_stream_state *stream, stream 547 drivers/gpu/drm/amd/display/dc/core/dc_stream.c struct dc *core_dc = stream->ctx->dc; stream 554 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (res_ctx->pipe_ctx[i].stream != stream) stream 571 drivers/gpu/drm/amd/display/dc/core/dc_stream.c bool dc_stream_dmdata_status_done(struct dc *dc, struct dc_stream_state *stream) stream 582 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (pipe->stream == stream) stream 594 drivers/gpu/drm/amd/display/dc/core/dc_stream.c struct dc_stream_state *stream, stream 602 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (!dc_is_hdmi_signal(stream->signal) && !dc_is_dp_signal(stream->signal)) stream 611 drivers/gpu/drm/amd/display/dc/core/dc_stream.c if (pipe_ctx->stream == stream) stream 622 drivers/gpu/drm/amd/display/dc/core/dc_stream.c pipe_ctx->stream->dmdata_address = attr->address; stream 627 drivers/gpu/drm/amd/display/dc/core/dc_stream.c pipe_ctx->stream->dmdata_address.quad_part != 0) { stream 635 drivers/gpu/drm/amd/display/dc/core/dc_stream.c void dc_stream_log(const struct dc *dc, const struct dc_stream_state *stream) stream 639 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream, stream 640 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->src.x, stream 641 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->src.y, stream 642 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->src.width, stream 643 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->src.height, stream 644 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->dst.x, stream 645 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->dst.y, stream 646 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->dst.width, stream 647 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->dst.height, stream 648 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->output_color_space); stream 651 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->timing.pix_clk_100hz / 10, stream 652 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->timing.h_total, stream 653 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->timing.v_total, stream 654 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->timing.pixel_encoding, stream 655 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->timing.display_color_depth); stream 658 drivers/gpu/drm/amd/display/dc/core/dc_stream.c stream->link->link_index); stream 864 drivers/gpu/drm/amd/display/dc/dc.h struct dc_stream_state *stream; stream 178 drivers/gpu/drm/amd/display/dc/dc_link.h const struct dc_stream_state *stream, struct psr_config *psr_config, stream 250 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state *old_stream, struct dc_stream_state *stream); stream 252 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state *old_stream, struct dc_stream_state *stream); stream 268 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state *stream, stream 274 drivers/gpu/drm/amd/display/dc/dc_stream.h void dc_stream_log(const struct dc *dc, const struct dc_stream_state *stream); stream 282 drivers/gpu/drm/amd/display/dc/dc_stream.h uint32_t dc_stream_get_vblank_counter(const struct dc_stream_state *stream); stream 287 drivers/gpu/drm/amd/display/dc/dc_stream.h bool dc_stream_send_dp_sdp(const struct dc_stream_state *stream, stream 295 drivers/gpu/drm/amd/display/dc/dc_stream.h bool dc_stream_get_scanoutpos(const struct dc_stream_state *stream, stream 304 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state *stream); stream 309 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state *stream); stream 314 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state *stream, stream 320 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state *stream, stream 326 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state *stream, stream 331 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state *stream, stream 338 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state *stream, stream 341 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state *stream, stream 343 drivers/gpu/drm/amd/display/dc/dc_stream.h bool dc_stream_dmdata_status_done(struct dc *dc, struct dc_stream_state *stream); stream 345 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state *stream, stream 349 drivers/gpu/drm/amd/display/dc/dc_stream.h enum dc_status dc_validate_stream(struct dc *dc, struct dc_stream_state *stream); stream 382 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state *dc_copy_stream(const struct dc_stream_state *stream); stream 384 drivers/gpu/drm/amd/display/dc/dc_stream.h void update_stream_signal(struct dc_stream_state *stream, struct dc_sink *sink); stream 391 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state *stream); stream 400 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state *stream, stream 404 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state *stream, stream 409 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state *stream, stream 413 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state **stream, stream 419 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state *stream, stream 424 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state *stream, stream 430 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state **stream, stream 434 drivers/gpu/drm/amd/display/dc/dc_stream.h void dc_stream_set_dither_option(struct dc_stream_state *stream, stream 438 drivers/gpu/drm/amd/display/dc/dc_stream.h const struct dc_stream_state *stream); stream 441 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state *stream); stream 444 drivers/gpu/drm/amd/display/dc/dc_stream.h struct dc_stream_state **stream, stream 192 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c if (pipe_ctx->stream == NULL) stream 205 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c if (dc_is_dp_signal(pipe_ctx->stream->signal) && stream 501 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c const struct dc_stream_state *stream = context->streams[j]; stream 507 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c if (stream == context->res_ctx.pipe_ctx[k].stream) { stream 515 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c if (stream->dpms_off) stream 519 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c cfg->signal = pipe_ctx->stream->signal; stream 521 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c cfg->src_height = stream->src.height; stream 522 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c cfg->src_width = stream->src.width; stream 524 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c stream->link->ddi_channel_mapping.raw; stream 526 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c stream->link->link_enc->transmitter; stream 528 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c stream->link->cur_link_settings.lane_count; stream 530 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c stream->link->cur_link_settings.link_rate; stream 532 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c stream->link->cur_link_settings.link_spread; stream 533 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c cfg->sym_clock = stream->phy_pix_clk; stream 535 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c cfg->v_refresh = stream->timing.pix_clk_100hz * 100; stream 536 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c cfg->v_refresh /= stream->timing.h_total; stream 537 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c cfg->v_refresh = (cfg->v_refresh + stream->timing.v_total / 2) stream 538 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c / stream->timing.v_total; stream 550 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c struct dc_stream_state *stream = context->streams[j]; stream 554 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c vertical_blank_in_pixels = stream->timing.h_total * stream 555 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c (stream->timing.v_total stream 556 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c - stream->timing.v_addressable); stream 559 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c * 10000 / stream->timing.pix_clk_100hz; stream 784 drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c const struct dc_stream_state *stream) stream 789 drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c switch (stream->signal) { stream 794 drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c stream->link->connector_signal, stream 795 drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c stream->signal, stream 796 drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c &stream->timing); stream 801 drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c &stream->timing, stream 802 drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c stream->phy_pix_clk); stream 807 drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c enc110, &stream->timing); stream 812 drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c (stream->timing. stream 192 drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.h const struct dc_stream_state *stream); stream 751 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c struct dc_stream_state *stream) stream 753 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c struct pipe_ctx *pipe_ctx = resource_get_head_pipe_for_stream(&context->res_ctx, stream); stream 774 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c if (context->res_ctx.pipe_ctx[i].stream) stream 859 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c struct dc_stream_state *stream) stream 863 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c struct dc_link *link = stream->link; stream 52 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.h struct dc_stream_state *stream); stream 600 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c const struct dc_stream_state *stream) stream 607 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (stream->out_transfer_func && stream 608 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c stream->out_transfer_func->type == TF_TYPE_PREDEFINED && stream 609 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c stream->out_transfer_func->tf == TRANSFER_FUNCTION_SRGB) { stream 611 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c } else if (dce110_translate_regamma_to_hw_format(stream->out_transfer_func, stream 629 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c ASSERT(pipe_ctx->stream); stream 634 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c is_hdmi_tmds = dc_is_hdmi_tmds_signal(pipe_ctx->stream->signal); stream 635 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c is_dp = dc_is_dp_signal(pipe_ctx->stream->signal); stream 653 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream->link->cur_link_settings.lane_count; stream 655 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c struct dc_crtc_timing *timing = &pipe_ctx->stream->timing; stream 656 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c struct dc_link *link = pipe_ctx->stream->link; stream 688 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (dc_is_dp_signal(pipe_ctx->stream->signal)) stream 951 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (!pipe_ctx->stream) stream 954 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c core_dc = pipe_ctx->stream->ctx->dc; stream 990 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (!pipe_ctx || !pipe_ctx->stream) stream 993 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c dc = pipe_ctx->stream->ctx->dc; stream 1007 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (dc_is_dp_signal(pipe_ctx->stream->signal)) stream 1028 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c struct dc_stream_state *stream = pipe_ctx->stream; stream 1029 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c struct dc_link *link = stream->link; stream 1030 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c struct dc *dc = pipe_ctx->stream->ctx->dc; stream 1032 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (dc_is_hdmi_tmds_signal(pipe_ctx->stream->signal)) { stream 1039 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (dc_is_dp_signal(pipe_ctx->stream->signal)) stream 1056 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c struct dc_stream_state *stream = pipe_ctx->stream; stream 1057 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c struct dc_link *link = stream->link; stream 1060 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c params.timing = pipe_ctx->stream->timing; stream 1063 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (dc_is_dp_signal(pipe_ctx->stream->signal)) stream 1073 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c struct dc_stream_state *stream = pipe_ctx->stream; stream 1074 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c struct dc_link *link = stream->link; stream 1081 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (dc_is_dp_signal(pipe_ctx->stream->signal)) stream 1117 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c const struct dc_stream_state *stream = pipe_ctx->stream; stream 1120 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c audio_output->signal = pipe_ctx->stream->signal; stream 1125 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c stream->timing.h_total; stream 1132 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c stream->timing.h_addressable stream 1133 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c + stream->timing.h_border_left stream 1134 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c + stream->timing.h_border_right; stream 1137 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c stream->timing.v_addressable stream 1138 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c + stream->timing.v_border_top stream 1139 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c + stream->timing.v_border_bottom; stream 1144 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c stream->timing.flags.INTERLACE; stream 1147 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c (stream->timing.pix_clk_100hz*100)/ stream 1148 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c (stream->timing.h_total*stream->timing.v_total); stream 1151 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c stream->timing.display_color_depth; stream 1160 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (dc_is_hdmi_signal(pipe_ctx->stream->signal) && stream 1162 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c (stream->timing.pix_clk_100hz)) { stream 1172 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT || stream 1173 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST) { stream 1243 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream->output_color_space, stream 1249 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c &pipe_ctx->stream->bit_depth_params); stream 1257 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (pipe_ctx->stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR420) stream 1274 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c struct dc_stream_state *stream = pipe_ctx->stream; stream 1279 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (!pipe_ctx_old->stream) { stream 1283 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c stream->output_color_space, &black_color); stream 1304 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c &stream->timing, stream 1309 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream->signal, stream 1313 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (!pipe_ctx_old->stream) { stream 1329 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c struct dc_stream_state *stream = pipe_ctx->stream; stream 1345 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (dc_is_dp_signal(pipe_ctx->stream->signal)) stream 1349 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c &pipe_ctx->stream->audio_info); stream 1354 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c &pipe_ctx->stream->audio_info, stream 1359 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream->signal, stream 1361 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c &pipe_ctx->stream->audio_info); stream 1366 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (!pipe_ctx->stream->apply_seamless_boot_optimization) stream 1372 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c params.vertical_total_min = stream->adjust.v_total_min; stream 1373 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c params.vertical_total_max = stream->adjust.v_total_max; stream 1379 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (stream->adjust.v_total_min != 0 && stream->adjust.v_total_max != 0) stream 1385 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (!dc_is_virtual_signal(pipe_ctx->stream->signal)) stream 1393 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c stream->timing.display_color_depth, stream 1394 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c stream->signal); stream 1398 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c &stream->bit_depth_params, stream 1399 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c &stream->clamping); stream 1405 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c stream->timing.display_color_depth, stream 1406 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c stream->signal); stream 1410 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c &stream->bit_depth_params, stream 1411 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c &stream->clamping); stream 1416 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (!stream->dpms_off) stream 1421 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream->link->psr_enabled = false; stream 1631 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c const struct dc_stream_state *stream) stream 1639 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c (stream->timing.h_total * 10) / stream 1640 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c stream->timing.pix_clk_100hz + stream 1657 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (pipe_ctx->stream == NULL) stream 1661 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c dc->bw_vbios->blackout_duration, pipe_ctx->stream); stream 1695 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (res_ctx->pipe_ctx[i].stream == NULL || res_ctx->pipe_ctx[i].plane_res.mi == NULL) stream 1776 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c struct dc *dc = pipe_ctx[0]->stream->ctx->dc; stream 1811 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (res_ctx->pipe_ctx[i].stream) { stream 1829 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (!pipe_ctx->stream->link) stream 1833 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (pipe_ctx->stream->link->connector_signal != SIGNAL_TYPE_EDP) stream 1837 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (pipe_ctx->stream->link->psr_enabled) stream 1866 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c params.source_view_width = pipe_ctx->stream->timing.h_addressable; stream 1867 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c params.source_view_height = pipe_ctx->stream->timing.v_addressable; stream 1897 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (!pipe_ctx_old->stream || pipe_ctx_old->top_pipe) stream 1900 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (!pipe_ctx->stream || stream 1907 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (!pipe_ctx->stream || !pipe_ctx->stream->dpms_off) { stream 1943 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx_old->stream = NULL; stream 1976 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (pipe_ctx->stream == NULL) stream 1982 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (pipe_ctx->stream->signal != SIGNAL_TYPE_HDMI_TYPE_A) stream 1992 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream->signal, stream 2004 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (pipe_ctx->stream == NULL) stream 2010 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (!dc_is_dp_signal(pipe_ctx->stream->signal)) stream 2020 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream->signal, stream 2054 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (pipe_ctx->stream == NULL || pipe_ctx->top_pipe) stream 2057 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (pipe_ctx->stream == pipe_ctx_old->stream) { stream 2079 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (pipe_ctx->stream == NULL) stream 2082 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (pipe_ctx->stream == pipe_ctx_old->stream && stream 2083 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream->link->link_state_valid) { stream 2087 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (pipe_ctx_old->stream && !pipe_need_reprogram(pipe_ctx_old, pipe_ctx)) stream 2119 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c default_adjust.out_color_space = pipe_ctx->stream->output_color_space; stream 2125 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream->timing.display_color_depth; stream 2190 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (pipe_ctx->stream->gamut_remap_matrix.enable_remap == true) { stream 2195 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream->gamut_remap_matrix.matrix[i]; stream 2350 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c &grouped_pipes[i]->stream->triggered_crtc_reset); stream 2484 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (pipe_ctx->stream->csc_color_matrix.enable_adjustment stream 2487 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream->output_color_space; stream 2491 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream->csc_color_matrix.matrix[i]; stream 2497 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (pipe_ctx->stream->gamut_remap_matrix.enable_remap == true) { stream 2502 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream->gamut_remap_matrix.matrix[i]; stream 2536 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c dc->hwss.set_output_transfer_func(pipe_ctx, pipe_ctx->stream); stream 2578 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c const struct dc_stream_state *stream, stream 2594 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (stream == pipe_ctx->stream) { stream 2604 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (pipe_ctx->stream != stream) stream 2610 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream->timing.h_total, stream 2611 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream->timing.v_total, stream 2612 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream->timing.pix_clk_100hz / 10, stream 2627 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if ((stream == pipe_ctx->stream) && stream 2643 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (dc->current_state->res_ctx.pipe_ctx[fe_idx].stream) stream 2670 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (pipe_ctx->stream->csc_color_matrix.enable_adjustment == true) { stream 2671 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c enum dc_color_space color_space = pipe_ctx->stream->output_color_space; stream 2674 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c tbl_entry.regval[i] = pipe_ctx->stream->csc_color_matrix.matrix[i]; stream 2685 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c struct dc_cursor_position pos_cpy = pipe_ctx->stream->cursor_position; stream 2689 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c .pixel_clk_khz = pipe_ctx->stream->timing.pix_clk_100hz / 10, stream 2690 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c .ref_clk_khz = pipe_ctx->stream->ctx->dc->res_pool->ref_clocks.xtalin_clock_inKhz, stream 2713 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c struct dc_cursor_attributes *attributes = &pipe_ctx->stream->cursor_attributes; stream 813 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c const struct dc_stream_state *stream = pipe_ctx->stream; stream 819 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c pixel_clk_params->requested_pix_clk_100hz = stream->timing.pix_clk_100hz; stream 820 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c pixel_clk_params->encoder_object_id = stream->link->link_enc->id; stream 821 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c pixel_clk_params->signal_type = pipe_ctx->stream->signal; stream 828 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c stream->timing.display_color_depth; stream 830 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c pixel_clk_params->flags.SUPPORT_YCBCR420 = (stream->timing.pixel_encoding == stream 832 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c pixel_clk_params->pixel_encoding = stream->timing.pixel_encoding; stream 833 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c if (stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR422) { stream 836 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c if (stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR420) { stream 839 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c if (stream->timing.timing_3d_format == TIMING_3D_FORMAT_HW_FRAME_PACKING) stream 851 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c resource_build_bit_depth_reduction_params(pipe_ctx->stream, stream 852 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c &pipe_ctx->stream->bit_depth_params); stream 853 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c pipe_ctx->stream->clamping.pixel_encoding = pipe_ctx->stream->timing.pixel_encoding; stream 870 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c struct dc_stream_state *stream) stream 872 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c struct pipe_ctx *pipe_ctx = resource_get_head_pipe_for_stream(&context->res_ctx, stream); stream 1051 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c struct dc_stream_state *stream) stream 1053 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c struct dc *dc = stream->ctx->dc; stream 1058 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c if (res_ctx->pipe_ctx[underlay_idx].stream) stream 1068 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c pipe_ctx->stream = stream; stream 1070 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c if (!dc->current_state->res_ctx.pipe_ctx[underlay_idx].stream) { stream 1085 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c &stream->timing, stream 1090 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c pipe_ctx->stream->signal, stream 1096 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c &stream->timing); stream 1099 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c stream->timing.h_total, stream 1100 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c stream->timing.v_total, stream 1101 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c stream->timing.pix_clk_100hz / 10, stream 1126 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c struct dc_stream_state *stream) stream 1130 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c struct dc_link *link = stream->link; stream 51 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.h struct dc_stream_state *stream); stream 773 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c const struct dc_stream_state *const stream) stream 775 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c switch (stream->link->link_enc->transmitter) { stream 798 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c struct dc_stream_state *stream) stream 800 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c struct pipe_ctx *pipe_ctx = resource_get_head_pipe_for_stream(&context->res_ctx, stream); stream 887 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c struct dc_stream_state *stream) stream 892 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c &context->res_ctx, stream); stream 897 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c if (dc_is_dp_signal(pipe_ctx->stream->signal) stream 898 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c || dc_is_virtual_signal(pipe_ctx->stream->signal)) stream 904 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c stream); stream 808 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c if (context->res_ctx.pipe_ctx[i].stream) stream 704 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c const struct dc_stream_state *stream, stream 718 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (old_pipe_ctx->stream != stream) stream 736 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c struct dc_stream_state *stream = pipe_ctx->stream; stream 764 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c &stream->timing, stream 769 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c pipe_ctx->stream->signal, stream 780 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c &stream->bit_depth_params, stream 781 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c &stream->clamping); stream 784 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c color_space = stream->output_color_space; stream 796 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c false_optc_underflow_wa(dc, pipe_ctx->stream, pipe_ctx->stream_res.tg); stream 824 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c pipe_ctx->stream = NULL; stream 830 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (!pipe_ctx->stream->dpms_off) stream 870 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c pipe_ctx->stream = NULL; stream 1053 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c pipe_ctx->stream = NULL; stream 1096 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (pipe_ctx->stream != NULL && can_apply_seamless_boot) stream 1118 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (pipe_ctx->stream != NULL && can_apply_seamless_boot) stream 1136 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c pipe_ctx->stream != NULL && stream 1317 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (!pipe_ctx_old->stream) stream 1323 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (!pipe_ctx->stream || stream 1343 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c (pipe_ctx->stream->timing.timing_3d_format == stream 1345 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c pipe_ctx->stream->timing.timing_3d_format == stream 1352 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (pipe_ctx->stream->view_format != VIEW_3D_FORMAT_NONE && stream 1469 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c const struct dc_stream_state *stream) stream 1478 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (stream->out_transfer_func && stream 1479 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c stream->out_transfer_func->type == TF_TYPE_PREDEFINED && stream 1480 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c stream->out_transfer_func->tf == TRANSFER_FUNCTION_SRGB) stream 1487 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c stream->out_transfer_func, stream 1495 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (stream != NULL && stream->ctx != NULL && stream 1496 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c stream->out_transfer_func != NULL) { stream 1497 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c log_tf(stream->ctx, stream 1498 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c stream->out_transfer_func, stream 1609 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c &grouped_pipes[i]->stream->triggered_crtc_reset); stream 1902 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (pipe_ctx->stream->gamut_remap_matrix.enable_remap == true) { stream 1906 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c pipe_ctx->stream->gamut_remap_matrix.matrix[i]; stream 1948 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (pipe_ctx->stream->csc_color_matrix.enable_adjustment == true) { stream 2075 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (top_pipe_ctx->stream->out_transfer_func->tf == TRANSFER_FUNCTION_PQ) { stream 2081 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (top_pipe_ctx->stream->out_transfer_func->tf == TRANSFER_FUNCTION_PQ) { stream 2084 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c } else if (top_pipe_ctx->stream->out_transfer_func->tf == TRANSFER_FUNCTION_GAMMA22) { stream 2201 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c dc, pipe_ctx->stream->output_color_space, stream 2222 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c pipe_ctx->stream->output_color_space) stream 2362 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (pipe_ctx->stream->cursor_attributes.address.quad_part != 0) { stream 2376 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c pipe_ctx->stream->output_color_space, stream 2377 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c pipe_ctx->stream->csc_color_matrix.matrix, stream 2417 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c struct dc_stream_state *stream = pipe_ctx->stream; stream 2420 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c color_space = stream->output_color_space; stream 2428 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR420) stream 2442 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c stream_res->abm->funcs->set_abm_level(stream_res->abm, stream->abm_level); stream 2494 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c dc->hwss.set_output_transfer_func(pipe_ctx, pipe_ctx->stream); stream 2513 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing); stream 2529 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c const struct dc_stream_state *stream) stream 2541 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (pipe_ctx->stream != stream) stream 2552 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c const struct dc_stream_state *stream, stream 2562 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c find_top_pipe_for_stream(dc, context, stream); stream 2630 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if ((stream->num_wb_info > 0) && (dc->hwss.program_all_writeback_pipes_in_tree)) stream 2631 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c dc->hwss.program_all_writeback_pipes_in_tree(dc, stream, context); stream 2637 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (!pipe_ctx->stream || pipe_ctx->stream == stream || stream 2653 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c false_optc_underflow_wa(dc, stream, tg); stream 2808 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c struct dc_stream_state *stream, struct crtc_stereo_flags *flags) stream 2810 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c enum view_3d_format view_format = stream->view_format; stream 2812 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c stream->timing.timing_3d_format; stream 2829 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c stream->link->ddc->dongle_type; stream 2836 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c stream->timing.flags.RIGHT_EYE_3D_POLARITY; stream 2847 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c struct dc_stream_state *stream = pipe_ctx->stream; stream 2849 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c dcn10_config_stereo_parameters(stream, &flags); stream 2851 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (stream->timing.timing_3d_format == TIMING_3D_FORMAT_SIDEBAND_FA) { stream 2861 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c &stream->timing); stream 2865 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c &stream->timing, stream 2956 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c struct dc_cursor_position pos_cpy = pipe_ctx->stream->cursor_position; stream 2960 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c .pixel_clk_khz = pipe_ctx->stream->timing.pix_clk_100hz / 10, stream 2961 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c .ref_clk_khz = pipe_ctx->stream->ctx->dc->res_pool->ref_clocks.dchub_ref_clock_inKhz, stream 3022 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c struct dc_cursor_attributes *attributes = &pipe_ctx->stream->cursor_attributes; stream 3032 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c uint32_t sdr_white_level = pipe_ctx->stream->cursor_attributes.sdr_white_level; stream 3077 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c const struct dc_crtc_timing *dc_crtc_timing = &pipe_ctx->stream->timing; stream 3120 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c !pipe_ctx->stream || !pipe_ctx->plane_state || stream 3136 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c const struct dc_crtc_timing *dc_crtc_timing = &pipe_ctx->stream->timing; stream 3138 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c pipe_ctx->stream->periodic_interrupt0.lines_offset; stream 3169 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c ref_point = pipe_ctx->stream->periodic_interrupt0.ref_point; stream 3171 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c ref_point = pipe_ctx->stream->periodic_interrupt1.ref_point; stream 3206 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c pipe_ctx->stream->periodic_interrupt1.lines_offset); stream 3228 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c struct dc_stream_state *stream = pipe_ctx->stream; stream 3229 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c struct dc_link *link = stream->link; stream 3232 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c params.timing = pipe_ctx->stream->timing; stream 3236 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (dc_is_dp_signal(pipe_ctx->stream->signal)) { stream 3251 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (dc_is_dp_signal(pipe_ctx->stream->signal)) { stream 84 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.h const struct dc_stream_state *stream); stream 780 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c const struct dc_stream_state *stream) stream 785 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c switch (stream->signal) { stream 790 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c stream->link->connector_signal, stream 791 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c stream->signal, stream 792 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c &stream->timing); stream 797 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c &stream->timing, stream 798 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c stream->phy_pix_clk * 10); stream 803 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c enc10, &stream->timing); stream 806 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c is_valid = (stream->timing.pixel_encoding == PIXEL_ENCODING_RGB) ? true : false; stream 434 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.h const struct dc_stream_state *stream); stream 989 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c const struct dc_stream_state *stream = pipe_ctx->stream; stream 990 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c pixel_clk_params->requested_pix_clk_100hz = stream->timing.pix_clk_100hz; stream 991 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c pixel_clk_params->encoder_object_id = stream->link->link_enc->id; stream 992 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c pixel_clk_params->signal_type = pipe_ctx->stream->signal; stream 999 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c stream->timing.display_color_depth; stream 1001 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c pixel_clk_params->pixel_encoding = stream->timing.pixel_encoding; stream 1003 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c if (stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR422) stream 1006 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c if (stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR420) stream 1008 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c if (stream->timing.timing_3d_format == TIMING_3D_FORMAT_HW_FRAME_PACKING) stream 1013 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c static void build_clamping_params(struct dc_stream_state *stream) stream 1015 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c stream->clamping.clamping_level = CLAMPING_FULL_RANGE; stream 1016 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c stream->clamping.c_depth = stream->timing.display_color_depth; stream 1017 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c stream->clamping.pixel_encoding = stream->timing.pixel_encoding; stream 1030 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c pipe_ctx->stream->clamping.pixel_encoding = pipe_ctx->stream->timing.pixel_encoding; stream 1032 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c resource_build_bit_depth_reduction_params(pipe_ctx->stream, stream 1033 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c &pipe_ctx->stream->bit_depth_params); stream 1034 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c build_clamping_params(pipe_ctx->stream); stream 1040 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c struct dc_stream_state *stream) stream 1042 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c struct pipe_ctx *pipe_ctx = resource_get_head_pipe_for_stream(&context->res_ctx, stream); stream 1091 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c struct dc_stream_state *stream) stream 1094 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c struct pipe_ctx *head_pipe = resource_get_head_pipe_for_stream(res_ctx, stream); stream 1105 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c idle_pipe->stream = head_pipe->stream; stream 1218 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c struct dc_stream_state *stream) stream 1222 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c struct dc_link *link = stream->link; stream 48 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.h struct dc_stream_state *stream); stream 501 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c pipe_ctx->stream = NULL; stream 528 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c struct dc_stream_state *stream = pipe_ctx->stream; stream 553 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c &pipe_ctx->stream->timing); stream 570 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c &stream->timing, stream 575 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c pipe_ctx->stream->signal, stream 597 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c params.vertical_total_min = stream->adjust.v_total_min; stream 598 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c params.vertical_total_max = stream->adjust.v_total_max; stream 599 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c params.vertical_total_mid = stream->adjust.v_total_mid; stream 600 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c params.vertical_total_mid_frame_num = stream->adjust.v_total_mid_frame_num; stream 606 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c if (stream->adjust.v_total_min != 0 && stream->adjust.v_total_max != 0) stream 636 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c if (pipe_ctx->stream->csc_color_matrix.enable_adjustment == true) { stream 652 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c const struct dc_stream_state *stream) stream 667 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c && mpc->funcs->set_output_gamma && stream->out_transfer_func) { stream 668 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c if (stream->out_transfer_func->type == TF_TYPE_HWPWL) stream 669 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c params = &stream->out_transfer_func->pwl; stream 670 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c else if (pipe_ctx->stream->out_transfer_func->type == stream 673 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c stream->out_transfer_func, stream 679 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c if (stream->out_transfer_func->type == TF_TYPE_PREDEFINED) stream 841 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c &pipe_ctx->stream->timing); stream 844 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing); stream 854 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c struct dc_stream_state *stream = pipe_ctx->stream; stream 855 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c enum dc_color_space color_space = stream->output_color_space; stream 860 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c int width = stream->timing.h_addressable + stream->timing.h_border_left + stream->timing.h_border_right; stream 861 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c int height = stream->timing.v_addressable + stream->timing.v_border_bottom + stream->timing.v_border_top; stream 884 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c stream->timing.display_color_depth, stream 894 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c stream->timing.display_color_depth, stream 903 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c stream_res->abm->funcs->set_abm_level(stream_res->abm, stream->abm_level); stream 1028 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c dc->hwss.set_output_transfer_func(pipe_ctx, pipe_ctx->stream); stream 1047 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing); stream 1147 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c const struct dc_stream_state *stream, stream 1157 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c find_top_pipe_for_stream(dc, context, stream); stream 1159 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c find_top_pipe_for_stream(dc, dc->current_state, stream); stream 1171 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c if (pipe_ctx->stream == stream && stream 1172 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c pipe_ctx->stream == old_pipe_ctx->stream) stream 1227 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c if ((stream->num_wb_info > 0) && (dc->hwss.program_all_writeback_pipes_in_tree)) stream 1228 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c dc->hwss.program_all_writeback_pipes_in_tree(dc, stream, context); stream 1235 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c if (!pipe_ctx->stream || pipe_ctx->stream == stream || stream 1339 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing); stream 1469 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c dc_is_hdmi_signal(pipe_ctx->stream->signal) ? 32 : 36; stream 1471 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c pipe_ctx->stream->dmdata_address.quad_part; stream 1534 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c (pipe_ctx->stream->timing.timing_3d_format == stream 1536 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c pipe_ctx->stream->timing.timing_3d_format == stream 1544 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c if (pipe_ctx->stream->view_format != VIEW_3D_FORMAT_NONE && stream 1586 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c struct dc_stream_state *stream = pipe_ctx->stream; stream 1587 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c struct dc_link *link = stream->link; stream 1595 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c params.timing = pipe_ctx->stream->timing; stream 1599 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c if (dc_is_dp_signal(pipe_ctx->stream->signal)) { stream 1600 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c if (optc1_is_two_pixels_per_containter(&stream->timing) || params.opp_cnt > 1) stream 1632 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c pipe_ctx->stream = NULL; stream 1638 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c if (!pipe_ctx->stream->dpms_off) stream 1674 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing); stream 1688 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c pipe_ctx->stream = NULL; stream 1705 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c if (!pipe_ctx_old->stream) stream 1711 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c if (!pipe_ctx->stream || stream 1924 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c pipe_ctx->stream->link->cur_link_settings.lane_count; stream 1926 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c struct dc_crtc_timing *timing = &pipe_ctx->stream->timing; stream 1927 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c struct dc_link *link = pipe_ctx->stream->link; stream 1962 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c if (dc_is_dp_signal(pipe_ctx->stream->signal)) stream 1969 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c struct dc_stream_state *stream = pipe_ctx->stream; stream 1973 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c enum dynamic_metadata_mode mode = dc_is_dp_signal(stream->signal) stream 1978 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c if (pipe_ctx->stream->dmdata_address.quad_part != 0) { stream 69 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.h const struct dc_stream_state *stream); stream 1438 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c const struct dc_stream_state *stream = pipe_ctx->stream; stream 1445 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c pixel_clk_params->requested_pix_clk_100hz = stream->timing.pix_clk_100hz; stream 1446 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c pixel_clk_params->encoder_object_id = stream->link->link_enc->id; stream 1447 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c pixel_clk_params->signal_type = pipe_ctx->stream->signal; stream 1454 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c stream->timing.display_color_depth; stream 1456 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c pixel_clk_params->pixel_encoding = stream->timing.pixel_encoding; stream 1458 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR422) stream 1463 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c else if (optc1_is_two_pixels_per_containter(&stream->timing) || opp_cnt == 2) stream 1466 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (stream->timing.timing_3d_format == TIMING_3D_FORMAT_HW_FRAME_PACKING) stream 1471 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c static void build_clamping_params(struct dc_stream_state *stream) stream 1473 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c stream->clamping.clamping_level = CLAMPING_FULL_RANGE; stream 1474 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c stream->clamping.c_depth = stream->timing.display_color_depth; stream 1475 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c stream->clamping.pixel_encoding = stream->timing.pixel_encoding; stream 1488 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c pipe_ctx->stream->clamping.pixel_encoding = pipe_ctx->stream->timing.pixel_encoding; stream 1490 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c resource_build_bit_depth_reduction_params(pipe_ctx->stream, stream 1491 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c &pipe_ctx->stream->bit_depth_params); stream 1492 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c build_clamping_params(pipe_ctx->stream); stream 1497 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c enum dc_status dcn20_build_mapped_resource(const struct dc *dc, struct dc_state *context, struct dc_stream_state *stream) stream 1500 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c struct pipe_ctx *pipe_ctx = resource_get_head_pipe_for_stream(&context->res_ctx, stream); stream 1586 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (pipe_ctx->stream != dc_stream) stream 1612 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (new_ctx->res_ctx.pipe_ctx[i].stream == dc_stream && !new_ctx->res_ctx.pipe_ctx[i].top_pipe) { stream 1789 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (next_odm_pipe->stream->timing.flags.DSC == 1) { stream 1841 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c struct dc_writeback_info *wb_info = &res_ctx->pipe_ctx[i].stream->writeback_info[0]; stream 1843 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (!res_ctx->pipe_ctx[i].stream) stream 1879 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (!res_ctx->pipe_ctx[i].stream) stream 1887 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c res_ctx->pipe_ctx[pipe_cnt].stream, stream 1888 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c res_ctx->pipe_ctx[i].stream)) { stream 1895 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c struct dc_crtc_timing *timing = &res_ctx->pipe_ctx[i].stream->timing; stream 1898 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (!res_ctx->pipe_ctx[i].stream) stream 1906 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c pipes[pipe_cnt].dout.dsc_enable = res_ctx->pipe_ctx[i].stream->timing.flags.DSC; stream 1908 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c pipes[pipe_cnt].dout.dsc_slices = res_ctx->pipe_ctx[i].stream->timing.dsc_cfg.num_slices_h; stream 1910 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (res_ctx->pipe_ctx[i].stream->use_dynamic_meta) { stream 1918 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c dc_is_dp_signal(res_ctx->pipe_ctx[i].stream->signal) ? 36 : 32; stream 1943 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c pipes[pipe_cnt].pipe.dest.vtotal_min = res_ctx->pipe_ctx[i].stream->adjust.v_total_min; stream 1944 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c pipes[pipe_cnt].pipe.dest.vtotal_max = res_ctx->pipe_ctx[i].stream->adjust.v_total_max; stream 1959 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c switch (res_ctx->pipe_ctx[i].stream->signal) { stream 1978 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c switch (res_ctx->pipe_ctx[i].stream->timing.display_color_depth) { stream 2010 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c switch (res_ctx->pipe_ctx[i].stream->timing.pixel_encoding) { stream 2213 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (!context->res_ctx.pipe_ctx[i].stream) stream 2217 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (context->res_ctx.pipe_ctx[i].stream->writeback_info[j].wb_enabled == false) stream 2223 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (context->res_ctx.pipe_ctx[i].stream->writeback_info[j].dwb_params.out_format == dwb_scaler_mode_yuv420) { stream 2224 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (context->res_ctx.pipe_ctx[i].stream->writeback_info[j].dwb_params.output_depth == DWB_OUTPUT_PIXEL_DEPTH_8BPC) stream 2235 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c wb_arb_params->time_per_pixel = 16.0 / context->res_ctx.pipe_ctx[i].stream->phy_pix_clk; /* 4 bit fraction, ms */ stream 2260 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c struct dc_stream_state *stream = pipe_ctx->stream; stream 2269 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (pipe_ctx->top_pipe || pipe_ctx->prev_odm_pipe || !stream || !stream->timing.flags.DSC) stream 2272 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c dsc_cfg.pic_width = (stream->timing.h_addressable + stream->timing.h_border_left stream 2273 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c + stream->timing.h_border_right) / opp_cnt; stream 2274 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c dsc_cfg.pic_height = stream->timing.v_addressable + stream->timing.v_border_top stream 2275 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c + stream->timing.v_border_bottom; stream 2276 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c dsc_cfg.pixel_encoding = stream->timing.pixel_encoding; stream 2277 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c dsc_cfg.color_depth = stream->timing.display_color_depth; stream 2278 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c dsc_cfg.dc_dsc_cfg = stream->timing.dsc_cfg; stream 2308 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (res_ctx->pipe_ctx[preferred_pipe_idx].stream == NULL) { stream 2314 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (res_ctx->pipe_ctx[preferred_pipe_idx].stream == NULL) { stream 2331 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (res_ctx->pipe_ctx[preferred_pipe_idx].stream == NULL) { stream 2352 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (res_ctx->pipe_ctx[preferred_pipe_idx].stream == NULL) { stream 2401 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c odm_pipe->stream = NULL; stream 2431 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c hsplit_pipe->stream = NULL; stream 2490 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (!pipe->stream || pipe->top_pipe) stream 2518 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (!context->res_ctx.pipe_ctx[i].stream) stream 2532 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (!pipe->stream || pipe_split_from[i] >= 0) stream 2552 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c dcn20_build_mapped_resource(dc, context, pipe->stream); stream 2561 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c need_split3d = ((pipe->stream->view_format == stream 2563 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c pipe->stream->view_format == stream 2565 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c (pipe->stream->timing.timing_3d_format == stream 2567 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c pipe->stream->timing.timing_3d_format == stream 2595 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c dcn20_build_mapped_resource(dc, context, pipe->stream); stream 2638 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (!context->res_ctx.pipe_ctx[i].stream) stream 2763 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (!context->res_ctx.pipe_ctx[i].stream) stream 2799 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (!context->res_ctx.pipe_ctx[i].stream) stream 2818 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (!context->res_ctx.pipe_ctx[i].stream) stream 2937 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c struct dc_stream_state *stream) stream 2940 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c struct pipe_ctx *head_pipe = resource_get_head_pipe_for_stream(res_ctx, stream); stream 2949 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c idle_pipe->stream = head_pipe->stream; stream 57 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.h struct dc_stream_state *stream); stream 132 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.h enum dc_status dcn20_build_mapped_resource(const struct dc *dc, struct dc_state *context, struct dc_stream_state *stream); stream 994 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c if (!context->res_ctx.pipe_ctx[i].stream) stream 56 drivers/gpu/drm/amd/display/dc/dm_helpers.h const struct dc_stream_state *stream, stream 79 drivers/gpu/drm/amd/display/dc/dm_helpers.h const struct dc_stream_state *stream); stream 85 drivers/gpu/drm/amd/display/dc/dm_helpers.h const struct dc_stream_state *stream, stream 124 drivers/gpu/drm/amd/display/dc/dm_helpers.h const struct dc_stream_state *stream, stream 70 drivers/gpu/drm/amd/display/dc/inc/core_types.h const struct dc_stream_state *stream, stream 116 drivers/gpu/drm/amd/display/dc/inc/core_types.h struct dc_stream_state *stream); stream 128 drivers/gpu/drm/amd/display/dc/inc/core_types.h struct dc_stream_state *stream); stream 135 drivers/gpu/drm/amd/display/dc/inc/core_types.h struct dc_stream_state *stream); stream 290 drivers/gpu/drm/amd/display/dc/inc/core_types.h struct dc_stream_state *stream; stream 51 drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h struct dc_stream_state *stream, stream 137 drivers/gpu/drm/amd/display/dc/inc/hw/link_encoder.h struct link_encoder *enc, const struct dc_stream_state *stream); stream 103 drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h const struct dc_stream_state *stream, stream 162 drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h const struct dc_stream_state *stream); stream 320 drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h const struct dc_stream_state *stream, stream 92 drivers/gpu/drm/amd/display/dc/inc/resource.h struct dc_stream_state *stream); stream 131 drivers/gpu/drm/amd/display/dc/inc/resource.h struct dc_stream_state *stream); stream 146 drivers/gpu/drm/amd/display/dc/inc/resource.h struct dc_state *old_context, struct dc_stream_state *stream); stream 162 drivers/gpu/drm/amd/display/dc/inc/resource.h struct dc_stream_state *stream); stream 167 drivers/gpu/drm/amd/display/dc/inc/resource.h struct dc_stream_state *stream); stream 173 drivers/gpu/drm/amd/display/dc/inc/resource.h void resource_build_bit_depth_reduction_params(struct dc_stream_state *stream, stream 35 drivers/gpu/drm/amd/display/dc/virtual/virtual_link_encoder.c const struct dc_stream_state *stream) { return true; } stream 109 drivers/gpu/drm/amd/display/modules/freesync/freesync.c const struct dc_stream_state *stream, stream 115 drivers/gpu/drm/amd/display/modules/freesync/freesync.c * 10000) * stream->timing.h_total, stream 116 drivers/gpu/drm/amd/display/modules/freesync/freesync.c stream->timing.pix_clk_100hz)); stream 122 drivers/gpu/drm/amd/display/modules/freesync/freesync.c const struct dc_stream_state *stream, stream 125 drivers/gpu/drm/amd/display/modules/freesync/freesync.c unsigned int v_total = stream->timing.v_total; stream 133 drivers/gpu/drm/amd/display/modules/freesync/freesync.c frame_duration_in_ns) * (stream->timing.pix_clk_100hz / 10)), stream 134 drivers/gpu/drm/amd/display/modules/freesync/freesync.c stream->timing.h_total), 1000000); stream 137 drivers/gpu/drm/amd/display/modules/freesync/freesync.c if (v_total < stream->timing.v_total) { stream 138 drivers/gpu/drm/amd/display/modules/freesync/freesync.c ASSERT(v_total < stream->timing.v_total); stream 139 drivers/gpu/drm/amd/display/modules/freesync/freesync.c v_total = stream->timing.v_total; stream 146 drivers/gpu/drm/amd/display/modules/freesync/freesync.c const struct dc_stream_state *stream, stream 159 drivers/gpu/drm/amd/display/modules/freesync/freesync.c duration_in_us) * (stream->timing.pix_clk_100hz / 10)), stream 160 drivers/gpu/drm/amd/display/modules/freesync/freesync.c stream->timing.h_total), 1000); stream 163 drivers/gpu/drm/amd/display/modules/freesync/freesync.c if (v_total < stream->timing.v_total) { stream 164 drivers/gpu/drm/amd/display/modules/freesync/freesync.c ASSERT(v_total < stream->timing.v_total); stream 165 drivers/gpu/drm/amd/display/modules/freesync/freesync.c v_total = stream->timing.v_total; stream 173 drivers/gpu/drm/amd/display/modules/freesync/freesync.c const struct dc_stream_state *stream, stream 179 drivers/gpu/drm/amd/display/modules/freesync/freesync.c stream, in_out_vrr, stream 234 drivers/gpu/drm/amd/display/modules/freesync/freesync.c current_duration_in_us) * (stream->timing.pix_clk_100hz / 10)), stream 235 drivers/gpu/drm/amd/display/modules/freesync/freesync.c stream->timing.h_total), 1000); stream 242 drivers/gpu/drm/amd/display/modules/freesync/freesync.c const struct dc_stream_state *stream, stream 281 drivers/gpu/drm/amd/display/modules/freesync/freesync.c calc_v_total_from_refresh(stream, stream 284 drivers/gpu/drm/amd/display/modules/freesync/freesync.c calc_v_total_from_refresh(stream, stream 373 drivers/gpu/drm/amd/display/modules/freesync/freesync.c const struct dc_stream_state *stream, stream 418 drivers/gpu/drm/amd/display/modules/freesync/freesync.c stream, in_out_vrr->max_refresh_in_uhz); stream 423 drivers/gpu/drm/amd/display/modules/freesync/freesync.c calc_v_total_from_refresh(stream, stream 426 drivers/gpu/drm/amd/display/modules/freesync/freesync.c calc_v_total_from_refresh(stream, stream 454 drivers/gpu/drm/amd/display/modules/freesync/freesync.c const struct dc_stream_state *stream, stream 458 drivers/gpu/drm/amd/display/modules/freesync/freesync.c *vmin = stream->adjust.v_total_min; stream 459 drivers/gpu/drm/amd/display/modules/freesync/freesync.c *vmax = stream->adjust.v_total_max; stream 465 drivers/gpu/drm/amd/display/modules/freesync/freesync.c struct dc_stream_state *stream, stream 477 drivers/gpu/drm/amd/display/modules/freesync/freesync.c if (dc_stream_get_crtc_position(core_freesync->dc, &stream, 1, stream 701 drivers/gpu/drm/amd/display/modules/freesync/freesync.c const struct dc_stream_state *stream, stream 717 drivers/gpu/drm/amd/display/modules/freesync/freesync.c build_vrr_infopacket_v2(stream->signal, vrr, app_tf, infopacket); stream 722 drivers/gpu/drm/amd/display/modules/freesync/freesync.c build_vrr_infopacket_v1(stream->signal, vrr, infopacket); stream 727 drivers/gpu/drm/amd/display/modules/freesync/freesync.c const struct dc_stream_state *stream, stream 744 drivers/gpu/drm/amd/display/modules/freesync/freesync.c mod_freesync_calc_nominal_field_rate(stream); stream 776 drivers/gpu/drm/amd/display/modules/freesync/freesync.c in_out_vrr->adjust.v_total_min = stream->timing.v_total; stream 777 drivers/gpu/drm/amd/display/modules/freesync/freesync.c in_out_vrr->adjust.v_total_max = stream->timing.v_total; stream 816 drivers/gpu/drm/amd/display/modules/freesync/freesync.c in_out_vrr->adjust.v_total_min = stream->timing.v_total; stream 817 drivers/gpu/drm/amd/display/modules/freesync/freesync.c in_out_vrr->adjust.v_total_max = stream->timing.v_total; stream 819 drivers/gpu/drm/amd/display/modules/freesync/freesync.c in_out_vrr->adjust.v_total_min = stream->timing.v_total; stream 820 drivers/gpu/drm/amd/display/modules/freesync/freesync.c in_out_vrr->adjust.v_total_max = stream->timing.v_total; stream 822 drivers/gpu/drm/amd/display/modules/freesync/freesync.c in_out_vrr->adjust.v_total_min = stream->timing.v_total; stream 823 drivers/gpu/drm/amd/display/modules/freesync/freesync.c in_out_vrr->adjust.v_total_max = stream->timing.v_total; stream 828 drivers/gpu/drm/amd/display/modules/freesync/freesync.c calc_v_total_from_refresh(stream, stream 831 drivers/gpu/drm/amd/display/modules/freesync/freesync.c calc_v_total_from_refresh(stream, stream 845 drivers/gpu/drm/amd/display/modules/freesync/freesync.c calc_v_total_from_refresh(stream, stream 852 drivers/gpu/drm/amd/display/modules/freesync/freesync.c in_out_vrr->adjust.v_total_min = stream->timing.v_total; stream 853 drivers/gpu/drm/amd/display/modules/freesync/freesync.c in_out_vrr->adjust.v_total_max = stream->timing.v_total; stream 859 drivers/gpu/drm/amd/display/modules/freesync/freesync.c const struct dc_stream_state *stream, stream 897 drivers/gpu/drm/amd/display/modules/freesync/freesync.c stream, stream 902 drivers/gpu/drm/amd/display/modules/freesync/freesync.c stream, stream 911 drivers/gpu/drm/amd/display/modules/freesync/freesync.c const struct dc_stream_state *stream, stream 916 drivers/gpu/drm/amd/display/modules/freesync/freesync.c if ((mod_freesync == NULL) || (stream == NULL) || (in_out_vrr == NULL)) stream 939 drivers/gpu/drm/amd/display/modules/freesync/freesync.c calc_v_total_from_duration(stream, stream 952 drivers/gpu/drm/amd/display/modules/freesync/freesync.c calc_v_total_from_refresh(stream, stream 955 drivers/gpu/drm/amd/display/modules/freesync/freesync.c calc_v_total_from_refresh(stream, stream 971 drivers/gpu/drm/amd/display/modules/freesync/freesync.c core_freesync, stream, in_out_vrr); stream 1002 drivers/gpu/drm/amd/display/modules/freesync/freesync.c const struct dc_stream_state *stream) stream 1005 drivers/gpu/drm/amd/display/modules/freesync/freesync.c unsigned int total = stream->timing.h_total * stream->timing.v_total; stream 1008 drivers/gpu/drm/amd/display/modules/freesync/freesync.c nominal_field_rate_in_uhz = stream->timing.pix_clk_100hz / 10; stream 1017 drivers/gpu/drm/amd/display/modules/freesync/freesync.c const struct dc_stream_state *stream, stream 1025 drivers/gpu/drm/amd/display/modules/freesync/freesync.c mod_freesync_calc_nominal_field_rate(stream); stream 126 drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h const struct dc_stream_state *stream, stream 131 drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h struct dc_stream_state *stream, stream 145 drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h const struct dc_stream_state *stream, stream 152 drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h const struct dc_stream_state *stream, stream 158 drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h const struct dc_stream_state *stream, stream 163 drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h const struct dc_stream_state *stream, stream 167 drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h const struct dc_stream_state *stream); stream 170 drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h const struct dc_stream_state *stream, stream 35 drivers/gpu/drm/amd/display/modules/inc/mod_info_packet.h void mod_build_vsc_infopacket(const struct dc_stream_state *stream, stream 117 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c void mod_build_vsc_infopacket(const struct dc_stream_state *stream, stream 126 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c if (stream->timing.timing_3d_format != TIMING_3D_FORMAT_NONE && stream->view_format != VIEW_3D_FORMAT_NONE) { stream 132 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c if (stream->psr_version != 0) stream 136 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c if (stream->link->dpcd_caps.dpcd_rev.raw >= 0x14 && stream 137 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c stream->link->dpcd_caps.dprx_feature.bits.VSC_SDP_COLORIMETRY_SUPPORTED) stream 206 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c switch (stream->timing.timing_3d_format) { stream 299 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c switch (stream->timing.pixel_encoding) { stream 318 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c switch (stream->timing.pixel_encoding) { stream 320 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c if ((stream->output_color_space == COLOR_SPACE_SRGB) || stream 321 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c (stream->output_color_space == COLOR_SPACE_SRGB_LIMITED)) stream 323 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c else if (stream->output_color_space == COLOR_SPACE_ADOBERGB) stream 325 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c else if ((stream->output_color_space == COLOR_SPACE_2020_RGB_FULLRANGE) || stream 326 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c (stream->output_color_space == COLOR_SPACE_2020_RGB_LIMITEDRANGE)) stream 336 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c if (stream->output_color_space == COLOR_SPACE_YCBCR601) stream 338 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c else if (stream->output_color_space == COLOR_SPACE_YCBCR709) stream 340 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c else if (stream->output_color_space == COLOR_SPACE_ADOBERGB) stream 342 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c else if (stream->output_color_space == COLOR_SPACE_2020_YCBCR) stream 354 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c switch (stream->timing.display_color_depth) { stream 380 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c if ((stream->output_color_space == COLOR_SPACE_SRGB_LIMITED) || stream 381 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c (stream->output_color_space == COLOR_SPACE_2020_RGB_LIMITEDRANGE) || stream 147 drivers/gpu/drm/etnaviv/etnaviv_cmd_parser.c bool etnaviv_cmd_validate_one(struct etnaviv_gpu *gpu, u32 *stream, stream 153 drivers/gpu/drm/etnaviv/etnaviv_cmd_parser.c u32 *buf = stream; stream 159 drivers/gpu/drm/etnaviv/etnaviv_cmd_parser.c state.start = stream; stream 81 drivers/gpu/drm/etnaviv/etnaviv_drv.h u32 *stream, unsigned int size, stream 272 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c static int submit_reloc(struct etnaviv_gem_submit *submit, void *stream, stream 277 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c u32 *ptr = stream; stream 440 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c void *stream; stream 481 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c stream = kvmalloc_array(1, args->stream_size, GFP_KERNEL); stream 482 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c if (!bos || !relocs || !pmrs || !stream) { stream 508 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c ret = copy_from_user(stream, u64_to_user_ptr(args->stream), stream 547 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c !etnaviv_cmd_validate_one(gpu, stream, args->stream_size / 4, stream 565 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c ret = submit_reloc(submit, stream, args->stream_size / 4, stream 574 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c memcpy(submit->cmdbuf.vaddr, stream, args->stream_size); stream 617 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c if (stream) stream 618 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c kvfree(stream); stream 1017 drivers/gpu/drm/i915/i915_drv.h void (*enable)(struct i915_perf_stream *stream); stream 1024 drivers/gpu/drm/i915/i915_drv.h void (*disable)(struct i915_perf_stream *stream); stream 1030 drivers/gpu/drm/i915/i915_drv.h void (*poll_wait)(struct i915_perf_stream *stream, stream 1039 drivers/gpu/drm/i915/i915_drv.h int (*wait_unlocked)(struct i915_perf_stream *stream); stream 1059 drivers/gpu/drm/i915/i915_drv.h int (*read)(struct i915_perf_stream *stream, stream 1069 drivers/gpu/drm/i915/i915_drv.h void (*destroy)(struct i915_perf_stream *stream); stream 1240 drivers/gpu/drm/i915/i915_drv.h int (*enable_metric_set)(struct i915_perf_stream *stream); stream 1246 drivers/gpu/drm/i915/i915_drv.h void (*disable_metric_set)(struct i915_perf_stream *stream); stream 1251 drivers/gpu/drm/i915/i915_drv.h void (*oa_enable)(struct i915_perf_stream *stream); stream 1256 drivers/gpu/drm/i915/i915_drv.h void (*oa_disable)(struct i915_perf_stream *stream); stream 1262 drivers/gpu/drm/i915/i915_drv.h int (*read)(struct i915_perf_stream *stream, stream 1274 drivers/gpu/drm/i915/i915_drv.h u32 (*oa_hw_tail_read)(struct i915_perf_stream *stream); stream 418 drivers/gpu/drm/i915/i915_perf.c static u32 gen8_oa_hw_tail_read(struct i915_perf_stream *stream) stream 420 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 425 drivers/gpu/drm/i915/i915_perf.c static u32 gen7_oa_hw_tail_read(struct i915_perf_stream *stream) stream 427 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 457 drivers/gpu/drm/i915/i915_perf.c static bool oa_buffer_check_unlocked(struct i915_perf_stream *stream) stream 459 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 460 drivers/gpu/drm/i915/i915_perf.c int report_size = stream->oa_buffer.format_size; stream 470 drivers/gpu/drm/i915/i915_perf.c spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags); stream 476 drivers/gpu/drm/i915/i915_perf.c head = stream->oa_buffer.head; stream 478 drivers/gpu/drm/i915/i915_perf.c aged_idx = stream->oa_buffer.aged_tail_idx; stream 479 drivers/gpu/drm/i915/i915_perf.c aged_tail = stream->oa_buffer.tails[aged_idx].offset; stream 480 drivers/gpu/drm/i915/i915_perf.c aging_tail = stream->oa_buffer.tails[!aged_idx].offset; stream 482 drivers/gpu/drm/i915/i915_perf.c hw_tail = dev_priv->perf.ops.oa_hw_tail_read(stream); stream 502 drivers/gpu/drm/i915/i915_perf.c ((now - stream->oa_buffer.aging_timestamp) > stream 506 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.aged_tail_idx = aged_idx; stream 511 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.tails[!aged_idx].offset = INVALID_TAIL_PTR; stream 526 drivers/gpu/drm/i915/i915_perf.c struct i915_vma *vma = stream->oa_buffer.vma; stream 535 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.tails[!aged_idx].offset = stream 537 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.aging_timestamp = now; stream 544 drivers/gpu/drm/i915/i915_perf.c spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags); stream 565 drivers/gpu/drm/i915/i915_perf.c static int append_oa_status(struct i915_perf_stream *stream, stream 601 drivers/gpu/drm/i915/i915_perf.c static int append_oa_sample(struct i915_perf_stream *stream, stream 607 drivers/gpu/drm/i915/i915_perf.c int report_size = stream->oa_buffer.format_size; stream 609 drivers/gpu/drm/i915/i915_perf.c u32 sample_flags = stream->sample_flags; stream 613 drivers/gpu/drm/i915/i915_perf.c header.size = stream->sample_size; stream 653 drivers/gpu/drm/i915/i915_perf.c static int gen8_append_oa_reports(struct i915_perf_stream *stream, stream 658 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 659 drivers/gpu/drm/i915/i915_perf.c int report_size = stream->oa_buffer.format_size; stream 660 drivers/gpu/drm/i915/i915_perf.c u8 *oa_buf_base = stream->oa_buffer.vaddr; stream 661 drivers/gpu/drm/i915/i915_perf.c u32 gtt_offset = i915_ggtt_offset(stream->oa_buffer.vma); stream 670 drivers/gpu/drm/i915/i915_perf.c if (WARN_ON(!stream->enabled)) stream 673 drivers/gpu/drm/i915/i915_perf.c spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags); stream 675 drivers/gpu/drm/i915/i915_perf.c head = stream->oa_buffer.head; stream 676 drivers/gpu/drm/i915/i915_perf.c aged_tail_idx = stream->oa_buffer.aged_tail_idx; stream 677 drivers/gpu/drm/i915/i915_perf.c tail = stream->oa_buffer.tails[aged_tail_idx].offset; stream 679 drivers/gpu/drm/i915/i915_perf.c spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags); stream 748 drivers/gpu/drm/i915/i915_perf.c ctx_id = report32[2] & stream->specific_ctx_id_mask; stream 793 drivers/gpu/drm/i915/i915_perf.c stream->specific_ctx_id == ctx_id || stream 794 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.last_ctx_id == stream->specific_ctx_id || stream 802 drivers/gpu/drm/i915/i915_perf.c stream->specific_ctx_id != ctx_id) { stream 806 drivers/gpu/drm/i915/i915_perf.c ret = append_oa_sample(stream, buf, count, offset, stream 811 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.last_ctx_id = ctx_id; stream 825 drivers/gpu/drm/i915/i915_perf.c spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags); stream 834 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.head = head; stream 836 drivers/gpu/drm/i915/i915_perf.c spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags); stream 862 drivers/gpu/drm/i915/i915_perf.c static int gen8_oa_read(struct i915_perf_stream *stream, stream 867 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 871 drivers/gpu/drm/i915/i915_perf.c if (WARN_ON(!stream->oa_buffer.vaddr)) stream 891 drivers/gpu/drm/i915/i915_perf.c ret = append_oa_status(stream, buf, count, offset, stream 897 drivers/gpu/drm/i915/i915_perf.c stream->period_exponent); stream 899 drivers/gpu/drm/i915/i915_perf.c dev_priv->perf.ops.oa_disable(stream); stream 900 drivers/gpu/drm/i915/i915_perf.c dev_priv->perf.ops.oa_enable(stream); stream 910 drivers/gpu/drm/i915/i915_perf.c ret = append_oa_status(stream, buf, count, offset, stream 918 drivers/gpu/drm/i915/i915_perf.c return gen8_append_oa_reports(stream, buf, count, offset); stream 941 drivers/gpu/drm/i915/i915_perf.c static int gen7_append_oa_reports(struct i915_perf_stream *stream, stream 946 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 947 drivers/gpu/drm/i915/i915_perf.c int report_size = stream->oa_buffer.format_size; stream 948 drivers/gpu/drm/i915/i915_perf.c u8 *oa_buf_base = stream->oa_buffer.vaddr; stream 949 drivers/gpu/drm/i915/i915_perf.c u32 gtt_offset = i915_ggtt_offset(stream->oa_buffer.vma); stream 958 drivers/gpu/drm/i915/i915_perf.c if (WARN_ON(!stream->enabled)) stream 961 drivers/gpu/drm/i915/i915_perf.c spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags); stream 963 drivers/gpu/drm/i915/i915_perf.c head = stream->oa_buffer.head; stream 964 drivers/gpu/drm/i915/i915_perf.c aged_tail_idx = stream->oa_buffer.aged_tail_idx; stream 965 drivers/gpu/drm/i915/i915_perf.c tail = stream->oa_buffer.tails[aged_tail_idx].offset; stream 967 drivers/gpu/drm/i915/i915_perf.c spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags); stream 1025 drivers/gpu/drm/i915/i915_perf.c ret = append_oa_sample(stream, buf, count, offset, report); stream 1039 drivers/gpu/drm/i915/i915_perf.c spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags); stream 1049 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.head = head; stream 1051 drivers/gpu/drm/i915/i915_perf.c spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags); stream 1073 drivers/gpu/drm/i915/i915_perf.c static int gen7_oa_read(struct i915_perf_stream *stream, stream 1078 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 1082 drivers/gpu/drm/i915/i915_perf.c if (WARN_ON(!stream->oa_buffer.vaddr)) stream 1115 drivers/gpu/drm/i915/i915_perf.c ret = append_oa_status(stream, buf, count, offset, stream 1121 drivers/gpu/drm/i915/i915_perf.c stream->period_exponent); stream 1123 drivers/gpu/drm/i915/i915_perf.c dev_priv->perf.ops.oa_disable(stream); stream 1124 drivers/gpu/drm/i915/i915_perf.c dev_priv->perf.ops.oa_enable(stream); stream 1130 drivers/gpu/drm/i915/i915_perf.c ret = append_oa_status(stream, buf, count, offset, stream 1138 drivers/gpu/drm/i915/i915_perf.c return gen7_append_oa_reports(stream, buf, count, offset); stream 1155 drivers/gpu/drm/i915/i915_perf.c static int i915_oa_wait_unlocked(struct i915_perf_stream *stream) stream 1158 drivers/gpu/drm/i915/i915_perf.c if (!stream->periodic) stream 1161 drivers/gpu/drm/i915/i915_perf.c return wait_event_interruptible(stream->poll_wq, stream 1162 drivers/gpu/drm/i915/i915_perf.c oa_buffer_check_unlocked(stream)); stream 1175 drivers/gpu/drm/i915/i915_perf.c static void i915_oa_poll_wait(struct i915_perf_stream *stream, stream 1179 drivers/gpu/drm/i915/i915_perf.c poll_wait(file, &stream->poll_wq, wait); stream 1194 drivers/gpu/drm/i915/i915_perf.c static int i915_oa_read(struct i915_perf_stream *stream, stream 1199 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 1201 drivers/gpu/drm/i915/i915_perf.c return dev_priv->perf.ops.read(stream, buf, count, offset); stream 1204 drivers/gpu/drm/i915/i915_perf.c static struct intel_context *oa_pin_context(struct i915_perf_stream *stream) stream 1207 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *i915 = stream->dev_priv; stream 1208 drivers/gpu/drm/i915/i915_perf.c struct i915_gem_context *ctx = stream->ctx; stream 1226 drivers/gpu/drm/i915/i915_perf.c stream->pinned_ctx = ce; stream 1236 drivers/gpu/drm/i915/i915_perf.c return stream->pinned_ctx; stream 1249 drivers/gpu/drm/i915/i915_perf.c static int oa_get_render_ctx_id(struct i915_perf_stream *stream) stream 1251 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *i915 = stream->dev_priv; stream 1254 drivers/gpu/drm/i915/i915_perf.c ce = oa_pin_context(stream); stream 1264 drivers/gpu/drm/i915/i915_perf.c stream->specific_ctx_id = i915_ggtt_offset(ce->state); stream 1265 drivers/gpu/drm/i915/i915_perf.c stream->specific_ctx_id_mask = 0; stream 1283 drivers/gpu/drm/i915/i915_perf.c stream->specific_ctx_id = stream 1290 drivers/gpu/drm/i915/i915_perf.c stream->specific_ctx_id_mask = stream 1293 drivers/gpu/drm/i915/i915_perf.c stream->specific_ctx_id_mask = stream 1295 drivers/gpu/drm/i915/i915_perf.c stream->specific_ctx_id = stream 1297 drivers/gpu/drm/i915/i915_perf.c stream->specific_ctx_id &= stream 1298 drivers/gpu/drm/i915/i915_perf.c stream->specific_ctx_id_mask; stream 1303 drivers/gpu/drm/i915/i915_perf.c stream->specific_ctx_id_mask = stream 1307 drivers/gpu/drm/i915/i915_perf.c stream->specific_ctx_id = upper_32_bits(ce->lrc_desc); stream 1308 drivers/gpu/drm/i915/i915_perf.c stream->specific_ctx_id &= stream 1309 drivers/gpu/drm/i915/i915_perf.c stream->specific_ctx_id_mask; stream 1318 drivers/gpu/drm/i915/i915_perf.c stream->specific_ctx_id, stream 1319 drivers/gpu/drm/i915/i915_perf.c stream->specific_ctx_id_mask); stream 1331 drivers/gpu/drm/i915/i915_perf.c static void oa_put_render_ctx_id(struct i915_perf_stream *stream) stream 1333 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 1336 drivers/gpu/drm/i915/i915_perf.c stream->specific_ctx_id = INVALID_CTX_ID; stream 1337 drivers/gpu/drm/i915/i915_perf.c stream->specific_ctx_id_mask = 0; stream 1339 drivers/gpu/drm/i915/i915_perf.c ce = fetch_and_zero(&stream->pinned_ctx); stream 1348 drivers/gpu/drm/i915/i915_perf.c free_oa_buffer(struct i915_perf_stream *stream) stream 1350 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *i915 = stream->dev_priv; stream 1354 drivers/gpu/drm/i915/i915_perf.c i915_vma_unpin_and_release(&stream->oa_buffer.vma, stream 1359 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.vaddr = NULL; stream 1362 drivers/gpu/drm/i915/i915_perf.c static void i915_oa_stream_destroy(struct i915_perf_stream *stream) stream 1364 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 1366 drivers/gpu/drm/i915/i915_perf.c BUG_ON(stream != dev_priv->perf.exclusive_stream); stream 1374 drivers/gpu/drm/i915/i915_perf.c dev_priv->perf.ops.disable_metric_set(stream); stream 1377 drivers/gpu/drm/i915/i915_perf.c free_oa_buffer(stream); stream 1380 drivers/gpu/drm/i915/i915_perf.c intel_runtime_pm_put(&dev_priv->runtime_pm, stream->wakeref); stream 1382 drivers/gpu/drm/i915/i915_perf.c if (stream->ctx) stream 1383 drivers/gpu/drm/i915/i915_perf.c oa_put_render_ctx_id(stream); stream 1385 drivers/gpu/drm/i915/i915_perf.c put_oa_config(dev_priv, stream->oa_config); stream 1393 drivers/gpu/drm/i915/i915_perf.c static void gen7_init_oa_buffer(struct i915_perf_stream *stream) stream 1395 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 1396 drivers/gpu/drm/i915/i915_perf.c u32 gtt_offset = i915_ggtt_offset(stream->oa_buffer.vma); stream 1399 drivers/gpu/drm/i915/i915_perf.c spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags); stream 1406 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.head = gtt_offset; stream 1413 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.tails[0].offset = INVALID_TAIL_PTR; stream 1414 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.tails[1].offset = INVALID_TAIL_PTR; stream 1416 drivers/gpu/drm/i915/i915_perf.c spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags); stream 1435 drivers/gpu/drm/i915/i915_perf.c memset(stream->oa_buffer.vaddr, 0, OA_BUFFER_SIZE); stream 1440 drivers/gpu/drm/i915/i915_perf.c stream->pollin = false; stream 1443 drivers/gpu/drm/i915/i915_perf.c static void gen8_init_oa_buffer(struct i915_perf_stream *stream) stream 1445 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 1446 drivers/gpu/drm/i915/i915_perf.c u32 gtt_offset = i915_ggtt_offset(stream->oa_buffer.vma); stream 1449 drivers/gpu/drm/i915/i915_perf.c spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags); stream 1453 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.head = gtt_offset; stream 1470 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.tails[0].offset = INVALID_TAIL_PTR; stream 1471 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.tails[1].offset = INVALID_TAIL_PTR; stream 1478 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.last_ctx_id = INVALID_CTX_ID; stream 1480 drivers/gpu/drm/i915/i915_perf.c spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags); stream 1494 drivers/gpu/drm/i915/i915_perf.c memset(stream->oa_buffer.vaddr, 0, OA_BUFFER_SIZE); stream 1500 drivers/gpu/drm/i915/i915_perf.c stream->pollin = false; stream 1503 drivers/gpu/drm/i915/i915_perf.c static int alloc_oa_buffer(struct i915_perf_stream *stream) stream 1506 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 1510 drivers/gpu/drm/i915/i915_perf.c if (WARN_ON(stream->oa_buffer.vma)) stream 1535 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.vma = vma; stream 1537 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.vaddr = stream 1539 drivers/gpu/drm/i915/i915_perf.c if (IS_ERR(stream->oa_buffer.vaddr)) { stream 1540 drivers/gpu/drm/i915/i915_perf.c ret = PTR_ERR(stream->oa_buffer.vaddr); stream 1545 drivers/gpu/drm/i915/i915_perf.c i915_ggtt_offset(stream->oa_buffer.vma), stream 1546 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.vaddr); stream 1556 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.vaddr = NULL; stream 1557 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.vma = NULL; stream 1604 drivers/gpu/drm/i915/i915_perf.c static int hsw_enable_metric_set(struct i915_perf_stream *stream) stream 1606 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 1607 drivers/gpu/drm/i915/i915_perf.c const struct i915_oa_config *oa_config = stream->oa_config; stream 1633 drivers/gpu/drm/i915/i915_perf.c static void hsw_disable_metric_set(struct i915_perf_stream *stream) stream 1635 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 1675 drivers/gpu/drm/i915/i915_perf.c gen8_update_reg_state_unlocked(struct i915_perf_stream *stream, stream 1696 drivers/gpu/drm/i915/i915_perf.c (stream->period_exponent << GEN8_OA_TIMER_PERIOD_SHIFT) | stream 1697 drivers/gpu/drm/i915/i915_perf.c (stream->periodic ? GEN8_OA_TIMER_ENABLE : 0) | stream 1859 drivers/gpu/drm/i915/i915_perf.c static int gen8_configure_all_contexts(struct i915_perf_stream *stream, stream 1862 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *i915 = stream->dev_priv; stream 1874 drivers/gpu/drm/i915/i915_perf.c ((stream->period_exponent << GEN8_OA_TIMER_PERIOD_SHIFT) | stream 1875 drivers/gpu/drm/i915/i915_perf.c (stream->periodic ? GEN8_OA_TIMER_ENABLE : 0) | stream 1945 drivers/gpu/drm/i915/i915_perf.c static int gen8_enable_metric_set(struct i915_perf_stream *stream) stream 1947 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 1948 drivers/gpu/drm/i915/i915_perf.c const struct i915_oa_config *oa_config = stream->oa_config; stream 1985 drivers/gpu/drm/i915/i915_perf.c ret = gen8_configure_all_contexts(stream, oa_config); stream 1998 drivers/gpu/drm/i915/i915_perf.c static void gen8_disable_metric_set(struct i915_perf_stream *stream) stream 2000 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 2003 drivers/gpu/drm/i915/i915_perf.c gen8_configure_all_contexts(stream, NULL); stream 2009 drivers/gpu/drm/i915/i915_perf.c static void gen10_disable_metric_set(struct i915_perf_stream *stream) stream 2011 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 2014 drivers/gpu/drm/i915/i915_perf.c gen8_configure_all_contexts(stream, NULL); stream 2021 drivers/gpu/drm/i915/i915_perf.c static void gen7_oa_enable(struct i915_perf_stream *stream) stream 2023 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 2024 drivers/gpu/drm/i915/i915_perf.c struct i915_gem_context *ctx = stream->ctx; stream 2025 drivers/gpu/drm/i915/i915_perf.c u32 ctx_id = stream->specific_ctx_id; stream 2026 drivers/gpu/drm/i915/i915_perf.c bool periodic = stream->periodic; stream 2027 drivers/gpu/drm/i915/i915_perf.c u32 period_exponent = stream->period_exponent; stream 2028 drivers/gpu/drm/i915/i915_perf.c u32 report_format = stream->oa_buffer.format; stream 2039 drivers/gpu/drm/i915/i915_perf.c gen7_init_oa_buffer(stream); stream 2051 drivers/gpu/drm/i915/i915_perf.c static void gen8_oa_enable(struct i915_perf_stream *stream) stream 2053 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 2054 drivers/gpu/drm/i915/i915_perf.c u32 report_format = stream->oa_buffer.format; stream 2065 drivers/gpu/drm/i915/i915_perf.c gen8_init_oa_buffer(stream); stream 2086 drivers/gpu/drm/i915/i915_perf.c static void i915_oa_stream_enable(struct i915_perf_stream *stream) stream 2088 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 2090 drivers/gpu/drm/i915/i915_perf.c dev_priv->perf.ops.oa_enable(stream); stream 2092 drivers/gpu/drm/i915/i915_perf.c if (stream->periodic) stream 2093 drivers/gpu/drm/i915/i915_perf.c hrtimer_start(&stream->poll_check_timer, stream 2098 drivers/gpu/drm/i915/i915_perf.c static void gen7_oa_disable(struct i915_perf_stream *stream) stream 2100 drivers/gpu/drm/i915/i915_perf.c struct intel_uncore *uncore = &stream->dev_priv->uncore; stream 2109 drivers/gpu/drm/i915/i915_perf.c static void gen8_oa_disable(struct i915_perf_stream *stream) stream 2111 drivers/gpu/drm/i915/i915_perf.c struct intel_uncore *uncore = &stream->dev_priv->uncore; stream 2128 drivers/gpu/drm/i915/i915_perf.c static void i915_oa_stream_disable(struct i915_perf_stream *stream) stream 2130 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 2132 drivers/gpu/drm/i915/i915_perf.c dev_priv->perf.ops.oa_disable(stream); stream 2134 drivers/gpu/drm/i915/i915_perf.c if (stream->periodic) stream 2135 drivers/gpu/drm/i915/i915_perf.c hrtimer_cancel(&stream->poll_check_timer); stream 2165 drivers/gpu/drm/i915/i915_perf.c static int i915_oa_stream_init(struct i915_perf_stream *stream, stream 2169 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 2206 drivers/gpu/drm/i915/i915_perf.c stream->sample_size = sizeof(struct drm_i915_perf_record_header); stream 2210 drivers/gpu/drm/i915/i915_perf.c stream->sample_flags |= SAMPLE_OA_REPORT; stream 2211 drivers/gpu/drm/i915/i915_perf.c stream->sample_size += format_size; stream 2213 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.format_size = format_size; stream 2214 drivers/gpu/drm/i915/i915_perf.c if (WARN_ON(stream->oa_buffer.format_size == 0)) stream 2217 drivers/gpu/drm/i915/i915_perf.c stream->oa_buffer.format = stream 2220 drivers/gpu/drm/i915/i915_perf.c stream->periodic = props->oa_periodic; stream 2221 drivers/gpu/drm/i915/i915_perf.c if (stream->periodic) stream 2222 drivers/gpu/drm/i915/i915_perf.c stream->period_exponent = props->oa_period_exponent; stream 2224 drivers/gpu/drm/i915/i915_perf.c if (stream->ctx) { stream 2225 drivers/gpu/drm/i915/i915_perf.c ret = oa_get_render_ctx_id(stream); stream 2232 drivers/gpu/drm/i915/i915_perf.c ret = get_oa_config(dev_priv, props->metrics_set, &stream->oa_config); stream 2250 drivers/gpu/drm/i915/i915_perf.c stream->wakeref = intel_runtime_pm_get(&dev_priv->runtime_pm); stream 2253 drivers/gpu/drm/i915/i915_perf.c ret = alloc_oa_buffer(stream); stream 2261 drivers/gpu/drm/i915/i915_perf.c stream->ops = &i915_oa_stream_ops; stream 2262 drivers/gpu/drm/i915/i915_perf.c dev_priv->perf.exclusive_stream = stream; stream 2264 drivers/gpu/drm/i915/i915_perf.c ret = dev_priv->perf.ops.enable_metric_set(stream); stream 2272 drivers/gpu/drm/i915/i915_perf.c hrtimer_init(&stream->poll_check_timer, stream 2274 drivers/gpu/drm/i915/i915_perf.c stream->poll_check_timer.function = oa_poll_check_timer_cb; stream 2275 drivers/gpu/drm/i915/i915_perf.c init_waitqueue_head(&stream->poll_wq); stream 2276 drivers/gpu/drm/i915/i915_perf.c spin_lock_init(&stream->oa_buffer.ptr_lock); stream 2282 drivers/gpu/drm/i915/i915_perf.c dev_priv->perf.ops.disable_metric_set(stream); stream 2286 drivers/gpu/drm/i915/i915_perf.c free_oa_buffer(stream); stream 2289 drivers/gpu/drm/i915/i915_perf.c put_oa_config(dev_priv, stream->oa_config); stream 2292 drivers/gpu/drm/i915/i915_perf.c intel_runtime_pm_put(&dev_priv->runtime_pm, stream->wakeref); stream 2295 drivers/gpu/drm/i915/i915_perf.c if (stream->ctx) stream 2296 drivers/gpu/drm/i915/i915_perf.c oa_put_render_ctx_id(stream); stream 2305 drivers/gpu/drm/i915/i915_perf.c struct i915_perf_stream *stream; stream 2310 drivers/gpu/drm/i915/i915_perf.c stream = engine->i915->perf.exclusive_stream; stream 2311 drivers/gpu/drm/i915/i915_perf.c if (stream) stream 2312 drivers/gpu/drm/i915/i915_perf.c gen8_update_reg_state_unlocked(stream, ce, regs, stream->oa_config); stream 2340 drivers/gpu/drm/i915/i915_perf.c static ssize_t i915_perf_read_locked(struct i915_perf_stream *stream, stream 2353 drivers/gpu/drm/i915/i915_perf.c int ret = stream->ops->read(stream, buf, count, &offset); stream 2381 drivers/gpu/drm/i915/i915_perf.c struct i915_perf_stream *stream = file->private_data; stream 2382 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 2389 drivers/gpu/drm/i915/i915_perf.c if (!stream->enabled) stream 2401 drivers/gpu/drm/i915/i915_perf.c ret = stream->ops->wait_unlocked(stream); stream 2406 drivers/gpu/drm/i915/i915_perf.c ret = i915_perf_read_locked(stream, file, stream 2412 drivers/gpu/drm/i915/i915_perf.c ret = i915_perf_read_locked(stream, file, buf, count, ppos); stream 2428 drivers/gpu/drm/i915/i915_perf.c stream->pollin = false; stream 2436 drivers/gpu/drm/i915/i915_perf.c struct i915_perf_stream *stream = stream 2437 drivers/gpu/drm/i915/i915_perf.c container_of(hrtimer, typeof(*stream), poll_check_timer); stream 2439 drivers/gpu/drm/i915/i915_perf.c if (oa_buffer_check_unlocked(stream)) { stream 2440 drivers/gpu/drm/i915/i915_perf.c stream->pollin = true; stream 2441 drivers/gpu/drm/i915/i915_perf.c wake_up(&stream->poll_wq); stream 2466 drivers/gpu/drm/i915/i915_perf.c struct i915_perf_stream *stream, stream 2472 drivers/gpu/drm/i915/i915_perf.c stream->ops->poll_wait(stream, file, wait); stream 2480 drivers/gpu/drm/i915/i915_perf.c if (stream->pollin) stream 2501 drivers/gpu/drm/i915/i915_perf.c struct i915_perf_stream *stream = file->private_data; stream 2502 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 2506 drivers/gpu/drm/i915/i915_perf.c ret = i915_perf_poll_locked(dev_priv, stream, file, wait); stream 2522 drivers/gpu/drm/i915/i915_perf.c static void i915_perf_enable_locked(struct i915_perf_stream *stream) stream 2524 drivers/gpu/drm/i915/i915_perf.c if (stream->enabled) stream 2528 drivers/gpu/drm/i915/i915_perf.c stream->enabled = true; stream 2530 drivers/gpu/drm/i915/i915_perf.c if (stream->ops->enable) stream 2531 drivers/gpu/drm/i915/i915_perf.c stream->ops->enable(stream); stream 2548 drivers/gpu/drm/i915/i915_perf.c static void i915_perf_disable_locked(struct i915_perf_stream *stream) stream 2550 drivers/gpu/drm/i915/i915_perf.c if (!stream->enabled) stream 2554 drivers/gpu/drm/i915/i915_perf.c stream->enabled = false; stream 2556 drivers/gpu/drm/i915/i915_perf.c if (stream->ops->disable) stream 2557 drivers/gpu/drm/i915/i915_perf.c stream->ops->disable(stream); stream 2572 drivers/gpu/drm/i915/i915_perf.c static long i915_perf_ioctl_locked(struct i915_perf_stream *stream, stream 2578 drivers/gpu/drm/i915/i915_perf.c i915_perf_enable_locked(stream); stream 2581 drivers/gpu/drm/i915/i915_perf.c i915_perf_disable_locked(stream); stream 2603 drivers/gpu/drm/i915/i915_perf.c struct i915_perf_stream *stream = file->private_data; stream 2604 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 2608 drivers/gpu/drm/i915/i915_perf.c ret = i915_perf_ioctl_locked(stream, cmd, arg); stream 2624 drivers/gpu/drm/i915/i915_perf.c static void i915_perf_destroy_locked(struct i915_perf_stream *stream) stream 2626 drivers/gpu/drm/i915/i915_perf.c if (stream->enabled) stream 2627 drivers/gpu/drm/i915/i915_perf.c i915_perf_disable_locked(stream); stream 2629 drivers/gpu/drm/i915/i915_perf.c if (stream->ops->destroy) stream 2630 drivers/gpu/drm/i915/i915_perf.c stream->ops->destroy(stream); stream 2632 drivers/gpu/drm/i915/i915_perf.c list_del(&stream->link); stream 2634 drivers/gpu/drm/i915/i915_perf.c if (stream->ctx) stream 2635 drivers/gpu/drm/i915/i915_perf.c i915_gem_context_put(stream->ctx); stream 2637 drivers/gpu/drm/i915/i915_perf.c kfree(stream); stream 2653 drivers/gpu/drm/i915/i915_perf.c struct i915_perf_stream *stream = file->private_data; stream 2654 drivers/gpu/drm/i915/i915_perf.c struct drm_i915_private *dev_priv = stream->dev_priv; stream 2657 drivers/gpu/drm/i915/i915_perf.c i915_perf_destroy_locked(stream); stream 2712 drivers/gpu/drm/i915/i915_perf.c struct i915_perf_stream *stream = NULL; stream 2760 drivers/gpu/drm/i915/i915_perf.c stream = kzalloc(sizeof(*stream), GFP_KERNEL); stream 2761 drivers/gpu/drm/i915/i915_perf.c if (!stream) { stream 2766 drivers/gpu/drm/i915/i915_perf.c stream->dev_priv = dev_priv; stream 2767 drivers/gpu/drm/i915/i915_perf.c stream->ctx = specific_ctx; stream 2769 drivers/gpu/drm/i915/i915_perf.c ret = i915_oa_stream_init(stream, param, props); stream 2777 drivers/gpu/drm/i915/i915_perf.c if (WARN_ON(stream->sample_flags != props->sample_flags)) { stream 2782 drivers/gpu/drm/i915/i915_perf.c list_add(&stream->link, &dev_priv->perf.streams); stream 2789 drivers/gpu/drm/i915/i915_perf.c stream_fd = anon_inode_getfd("[i915_perf]", &fops, stream, f_flags); stream 2796 drivers/gpu/drm/i915/i915_perf.c i915_perf_enable_locked(stream); stream 2806 drivers/gpu/drm/i915/i915_perf.c list_del(&stream->link); stream 2808 drivers/gpu/drm/i915/i915_perf.c if (stream->ops->destroy) stream 2809 drivers/gpu/drm/i915/i915_perf.c stream->ops->destroy(stream); stream 2811 drivers/gpu/drm/i915/i915_perf.c kfree(stream); stream 817 drivers/gpu/drm/vmwgfx/device_include/svga3d_cmd.h uint8 stream; stream 1446 drivers/gpu/drm/vmwgfx/device_include/svga3d_cmd.h uint8 stream; stream 1428 drivers/gpu/drm/vmwgfx/device_include/svga3d_dx.h uint32 stream; stream 53 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c struct vmw_stream stream[VMW_MAX_NUM_STREAMS]; stream 255 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c struct vmw_stream *stream = &overlay->stream[stream_id]; stream 259 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c if (!stream->buf) stream 263 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c if (!stream->paused) { stream 270 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c ret = vmw_overlay_move_buffer(dev_priv, stream->buf, false, stream 279 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c vmw_bo_unreference(&stream->buf); stream 280 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c stream->paused = false; stream 282 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c stream->paused = true; stream 303 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c struct vmw_stream *stream = &overlay->stream[arg->stream_id]; stream 310 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c stream->buf, buf, stream->paused ? "" : "not "); stream 312 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c if (stream->buf != buf) { stream 317 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c } else if (!stream->paused) { stream 323 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c stream->saved = *arg; stream 347 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c if (stream->buf != buf) stream 348 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c stream->buf = vmw_bo_reference(buf); stream 349 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c stream->saved = *arg; stream 351 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c stream->paused = false; stream 374 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c struct vmw_stream *stream = &overlay->stream[i]; stream 375 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c if (!stream->buf) stream 405 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c struct vmw_stream *stream = &overlay->stream[i]; stream 406 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c if (!stream->paused) stream 409 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c ret = vmw_overlay_update_stream(dev_priv, stream->buf, stream 410 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c &stream->saved, false); stream 439 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c if (overlay->stream[i].paused) stream 519 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c if (!overlay->stream[i].claimed) stream 539 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c if (overlay->stream[i].claimed) stream 542 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c overlay->stream[i].claimed = true; stream 563 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c WARN_ON(!overlay->stream[stream_id].claimed); stream 565 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c overlay->stream[stream_id].claimed = false; stream 585 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c overlay->stream[i].buf = NULL; stream 586 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c overlay->stream[i].paused = false; stream 587 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c overlay->stream[i].claimed = false; stream 605 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c if (overlay->stream[i].buf) { stream 59 drivers/gpu/drm/vmwgfx/vmwgfx_va.c struct vmw_stream *stream = vmw_stream(res); stream 62 drivers/gpu/drm/vmwgfx/vmwgfx_va.c ret = vmw_overlay_unref(dev_priv, stream->stream_id); stream 68 drivers/gpu/drm/vmwgfx/vmwgfx_va.c struct vmw_stream *stream = vmw_stream(res); stream 70 drivers/gpu/drm/vmwgfx/vmwgfx_va.c return vmw_overlay_claim(res->dev_priv, &stream->stream_id); stream 156 drivers/gpu/drm/vmwgfx/vmwgfx_va.c struct vmw_stream *stream; stream 163 drivers/gpu/drm/vmwgfx/vmwgfx_va.c stream = vmw_stream(res); stream 164 drivers/gpu/drm/vmwgfx/vmwgfx_va.c *inout_id = stream->stream_id; stream 345 drivers/media/common/saa7146/saa7146_fops.c if (!list_empty(&q->stream)) stream 346 drivers/media/common/saa7146/saa7146_fops.c buf = list_entry(q->stream.next, struct videobuf_buffer, stream); stream 2926 drivers/media/pci/bt8xx/bttv-driver.c if (list_empty(&fh->cap.stream)) stream 2928 drivers/media/pci/bt8xx/bttv-driver.c buf = list_entry(fh->cap.stream.next,struct bttv_buffer,vb.stream); stream 320 drivers/media/pci/cx18/cx18-driver.h struct cx18_stream *stream; stream 122 drivers/media/pci/cx18/cx18-dvb.c static int yuan_mpc718_mt352_reqfw(struct cx18_stream *stream, stream 125 drivers/media/pci/cx18/cx18-dvb.c struct cx18 *cx = stream->cx; stream 154 drivers/media/pci/cx18/cx18-dvb.c struct cx18_stream *stream = dvb->stream; stream 160 drivers/media/pci/cx18/cx18-dvb.c ret = yuan_mpc718_mt352_reqfw(stream, &fw); stream 228 drivers/media/pci/cx18/cx18-dvb.c static int dvb_register(struct cx18_stream *stream); stream 237 drivers/media/pci/cx18/cx18-dvb.c struct cx18_stream *stream = (struct cx18_stream *) demux->priv; stream 242 drivers/media/pci/cx18/cx18-dvb.c if (!stream) stream 245 drivers/media/pci/cx18/cx18-dvb.c cx = stream->cx; stream 284 drivers/media/pci/cx18/cx18-dvb.c mutex_lock(&stream->dvb->feedlock); stream 285 drivers/media/pci/cx18/cx18-dvb.c if (stream->dvb->feeding++ == 0) { stream 288 drivers/media/pci/cx18/cx18-dvb.c set_bit(CX18_F_S_STREAMING, &stream->s_flags); stream 289 drivers/media/pci/cx18/cx18-dvb.c ret = cx18_start_v4l2_encode_stream(stream); stream 292 drivers/media/pci/cx18/cx18-dvb.c stream->dvb->feeding--; stream 293 drivers/media/pci/cx18/cx18-dvb.c if (stream->dvb->feeding == 0) stream 294 drivers/media/pci/cx18/cx18-dvb.c clear_bit(CX18_F_S_STREAMING, &stream->s_flags); stream 299 drivers/media/pci/cx18/cx18-dvb.c mutex_unlock(&stream->dvb->feedlock); stream 308 drivers/media/pci/cx18/cx18-dvb.c struct cx18_stream *stream = (struct cx18_stream *)demux->priv; stream 312 drivers/media/pci/cx18/cx18-dvb.c if (stream) { stream 313 drivers/media/pci/cx18/cx18-dvb.c cx = stream->cx; stream 317 drivers/media/pci/cx18/cx18-dvb.c mutex_lock(&stream->dvb->feedlock); stream 318 drivers/media/pci/cx18/cx18-dvb.c if (--stream->dvb->feeding == 0) { stream 321 drivers/media/pci/cx18/cx18-dvb.c ret = cx18_stop_v4l2_encode_stream(stream, 0); stream 325 drivers/media/pci/cx18/cx18-dvb.c mutex_unlock(&stream->dvb->feedlock); stream 331 drivers/media/pci/cx18/cx18-dvb.c int cx18_dvb_register(struct cx18_stream *stream) stream 333 drivers/media/pci/cx18/cx18-dvb.c struct cx18 *cx = stream->cx; stream 334 drivers/media/pci/cx18/cx18-dvb.c struct cx18_dvb *dvb = stream->dvb; stream 344 drivers/media/pci/cx18/cx18-dvb.c dvb->stream = stream; stream 356 drivers/media/pci/cx18/cx18-dvb.c dvbdemux->priv = (void *)stream; stream 391 drivers/media/pci/cx18/cx18-dvb.c ret = dvb_register(stream); stream 399 drivers/media/pci/cx18/cx18-dvb.c stream->dvb->dvb_adapter.num, stream->name, stream 400 drivers/media/pci/cx18/cx18-dvb.c stream->buffers, stream->buf_size/1024, stream 401 drivers/media/pci/cx18/cx18-dvb.c (stream->buf_size * 100 / 1024) % 100); stream 423 drivers/media/pci/cx18/cx18-dvb.c void cx18_dvb_unregister(struct cx18_stream *stream) stream 425 drivers/media/pci/cx18/cx18-dvb.c struct cx18 *cx = stream->cx; stream 426 drivers/media/pci/cx18/cx18-dvb.c struct cx18_dvb *dvb = stream->dvb; stream 454 drivers/media/pci/cx18/cx18-dvb.c static int dvb_register(struct cx18_stream *stream) stream 456 drivers/media/pci/cx18/cx18-dvb.c struct cx18_dvb *dvb = stream->dvb; stream 457 drivers/media/pci/cx18/cx18-dvb.c struct cx18 *cx = stream->cx; stream 10 drivers/media/pci/cx18/cx18-dvb.h int cx18_dvb_register(struct cx18_stream *stream); stream 11 drivers/media/pci/cx18/cx18-dvb.h void cx18_dvb_unregister(struct cx18_stream *stream); stream 540 drivers/media/pci/ngene/ngene-core.c static int ngene_command_stream_control(struct ngene *dev, u8 stream, stream 544 drivers/media/pci/ngene/ngene-core.c struct ngene_channel *chan = &dev->channel[stream]; stream 546 drivers/media/pci/ngene/ngene-core.c u16 BsUVI = ((stream & 1) ? 0x9400 : 0x9300); stream 547 drivers/media/pci/ngene/ngene-core.c u16 BsSDI = ((stream & 1) ? 0x9600 : 0x9500); stream 548 drivers/media/pci/ngene/ngene-core.c u16 BsSPI = ((stream & 1) ? 0x9800 : 0x9700); stream 554 drivers/media/pci/ngene/ngene-core.c com.cmd.StreamControl.Stream = stream | (control ? 8 : 0); stream 632 drivers/media/pci/ngene/ngene-core.c 4 * dev->card_info->i2s[stream], 4); stream 636 drivers/media/pci/ngene/ngene-core.c if (stream >= STREAM_AUDIOIN1) { stream 657 drivers/media/pci/ngene/ngene-core.c 8 * dev->card_info->tsf[stream], 8); stream 332 drivers/media/platform/cadence/cdns-csi2tx.c unsigned int stream; stream 354 drivers/media/platform/cadence/cdns-csi2tx.c stream = pad_idx - CSI2TX_PAD_SINK_STREAM0; stream 364 drivers/media/platform/cadence/cdns-csi2tx.c csi2tx->base + CSI2TX_DT_CFG_REG(stream)); stream 368 drivers/media/platform/cadence/cdns-csi2tx.c csi2tx->base + CSI2TX_DT_FORMAT_REG(stream)); stream 375 drivers/media/platform/cadence/cdns-csi2tx.c csi2tx->base + CSI2TX_STREAM_IF_CFG_REG(stream)); stream 1419 drivers/media/platform/davinci/vpfe_capture.c if (list_empty(&vpfe_dev->buffer_queue.stream)) { stream 25 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c static int read_byte(struct mtk_jpeg_stream *stream) stream 27 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c if (stream->curr >= stream->size) stream 29 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c return stream->addr[stream->curr++]; stream 32 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c static int read_word_be(struct mtk_jpeg_stream *stream, u32 *word) stream 37 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c byte = read_byte(stream); stream 41 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c byte = read_byte(stream); stream 49 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c static void read_skip(struct mtk_jpeg_stream *stream, long len) stream 54 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c read_byte(stream); stream 61 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c struct mtk_jpeg_stream stream; stream 63 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c stream.addr = src_addr_va; stream 64 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c stream.size = src_size; stream 65 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c stream.curr = 0; stream 71 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c byte = read_byte(&stream); stream 77 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c byte = read_byte(&stream); stream 88 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c if (read_word_be(&stream, &word)) stream 92 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c if (read_byte(&stream) == -1) stream 95 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c if (read_word_be(&stream, &word)) stream 99 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c if (read_word_be(&stream, &word)) stream 103 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c param->comp_num = read_byte(&stream); stream 108 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c param->comp_id[i] = read_byte(&stream); stream 113 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c byte = read_byte(&stream); stream 119 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c param->qtbl_num[i] = read_byte(&stream); stream 132 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c if (read_word_be(&stream, &word)) stream 135 drivers/media/platform/mtk-jpeg/mtk_jpeg_parse.c read_skip(&stream, length); stream 185 drivers/media/platform/s5p-mfc/s5p_mfc_common.h size_t stream; stream 984 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c ctx->src_bufs[i].cookie.stream = stream 2432 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c ctx->dst_bufs[i].cookie.stream = stream 310 drivers/media/platform/sh_veu.c struct sh_veu_file **stream; stream 314 drivers/media/platform/sh_veu.c stream = &veu->capture; stream 317 drivers/media/platform/sh_veu.c stream = &veu->output; stream 323 drivers/media/platform/sh_veu.c if (*stream == veu_file) stream 326 drivers/media/platform/sh_veu.c if (*stream) stream 329 drivers/media/platform/sh_veu.c *stream = veu_file; stream 15 drivers/media/platform/sti/hva/hva-debugfs.c struct hva_streaminfo *stream = &ctx->streaminfo; stream 40 drivers/media/platform/sti/hva/hva-debugfs.c (char *)&stream->streamformat, stream 41 drivers/media/platform/sti/hva/hva-debugfs.c stream->width, stream->height, stream 42 drivers/media/platform/sti/hva/hva-debugfs.c stream->profile, stream->level); stream 62 drivers/media/platform/sti/hva/hva-debugfs.c if (stream->streamformat == V4L2_PIX_FMT_H264) { stream 175 drivers/media/platform/sti/hva/hva-debugfs.c void hva_dbg_perf_end(struct hva_ctx *ctx, struct hva_stream *stream) stream 186 drivers/media/platform/sti/hva/hva-debugfs.c bytesused = vb2_get_plane_payload(&stream->vbuf.vb2_buf, 0); stream 187 drivers/media/platform/sti/hva/hva-debugfs.c div = stream->vbuf.vb2_buf.timestamp; stream 197 drivers/media/platform/sti/hva/hva-debugfs.c stream->vbuf.sequence, stream 588 drivers/media/platform/sti/hva/hva-h264.c struct hva_stream *stream) stream 608 drivers/media/platform/sti/hva/hva-h264.c unsigned int payload = stream->bytesused; stream 773 drivers/media/platform/sti/hva/hva-h264.c td->addr_output_bitstream_end = (u32)stream->paddr + stream->size; stream 775 drivers/media/platform/sti/hva/hva-h264.c td->addr_output_bitstream_start = (u32)stream->paddr; stream 776 drivers/media/platform/sti/hva/hva-h264.c td->bitstream_offset = (((u32)stream->paddr & 0xF) << 3) & stream 816 drivers/media/platform/sti/hva/hva-h264.c stream->vbuf.flags |= V4L2_BUF_FLAG_KEYFRAME; stream 819 drivers/media/platform/sti/hva/hva-h264.c stream->vbuf.flags &= ~V4L2_BUF_FLAG_KEYFRAME; stream 841 drivers/media/platform/sti/hva/hva-h264.c if ((stream->vbuf.flags == V4L2_BUF_FLAG_KEYFRAME) && stream 849 drivers/media/platform/sti/hva/hva-h264.c if (stream->vbuf.flags != V4L2_BUF_FLAG_KEYFRAME) stream 854 drivers/media/platform/sti/hva/hva-h264.c (u8 *)stream->vaddr, stream 868 drivers/media/platform/sti/hva/hva-h264.c stream->bytesused = payload; stream 1006 drivers/media/platform/sti/hva/hva-h264.c struct hva_stream *stream) stream 1013 drivers/media/platform/sti/hva/hva-h264.c ret = hva_h264_prepare_task(pctx, task, frame, stream); stream 1022 drivers/media/platform/sti/hva/hva-h264.c stream->bytesused += hva_h264_get_stream_size(task); stream 1028 drivers/media/platform/sti/hva/hva-h264.c (u8 *)stream->vaddr, stream 1029 drivers/media/platform/sti/hva/hva-h264.c stream->size, stream 1030 drivers/media/platform/sti/hva/hva-h264.c &stream->bytesused); stream 1037 drivers/media/platform/sti/hva/hva-h264.c stream->bytesused = 0; stream 231 drivers/media/platform/sti/hva/hva-v4l2.c struct hva_streaminfo *stream = &ctx->streaminfo; stream 241 drivers/media/platform/sti/hva/hva-v4l2.c (char *)&stream->streamformat, stream 242 drivers/media/platform/sti/hva/hva-v4l2.c stream->width, stream->height, stream 243 drivers/media/platform/sti/hva/hva-v4l2.c stream->profile, stream->level, stream 568 drivers/media/platform/sti/hva/hva-v4l2.c struct hva_stream *stream; stream 580 drivers/media/platform/sti/hva/hva-v4l2.c stream = to_hva_stream(to_vb2_v4l2_buffer(vb2_buf)); stream 581 drivers/media/platform/sti/hva/hva-v4l2.c stream->bytesused = buf->bytesused; stream 811 drivers/media/platform/sti/hva/hva-v4l2.c struct hva_stream *stream; stream 825 drivers/media/platform/sti/hva/hva-v4l2.c stream = to_hva_stream(dst_buf); stream 828 drivers/media/platform/sti/hva/hva-v4l2.c ret = enc->encode(ctx, frame, stream); stream 830 drivers/media/platform/sti/hva/hva-v4l2.c vb2_set_plane_payload(&dst_buf->vb2_buf, 0, stream->bytesused); stream 843 drivers/media/platform/sti/hva/hva-v4l2.c hva_dbg_perf_end(ctx, stream); stream 965 drivers/media/platform/sti/hva/hva-v4l2.c struct hva_stream *stream = to_hva_stream(vbuf); stream 967 drivers/media/platform/sti/hva/hva-v4l2.c if (!stream->prepared) { stream 969 drivers/media/platform/sti/hva/hva-v4l2.c stream->vaddr = vb2_plane_vaddr(&vbuf->vb2_buf, 0); stream 970 drivers/media/platform/sti/hva/hva-v4l2.c stream->paddr = vb2_dma_contig_plane_dma_addr( stream 972 drivers/media/platform/sti/hva/hva-v4l2.c stream->size = vb2_plane_size(&vbuf->vb2_buf, 0); stream 973 drivers/media/platform/sti/hva/hva-v4l2.c stream->prepared = true; stream 978 drivers/media/platform/sti/hva/hva-v4l2.c stream->vaddr, &stream->paddr); stream 397 drivers/media/platform/sti/hva/hva.h struct hva_stream *stream); stream 406 drivers/media/platform/sti/hva/hva.h void hva_dbg_perf_end(struct hva_ctx *ctx, struct hva_stream *stream); stream 38 drivers/media/platform/vimc/vimc-capture.c struct vimc_stream stream; stream 243 drivers/media/platform/vimc/vimc-capture.c ret = media_pipeline_start(entity, &vcap->stream.pipe); stream 249 drivers/media/platform/vimc/vimc-capture.c ret = vimc_streamer_s_stream(&vcap->stream, &vcap->ved, 1); stream 267 drivers/media/platform/vimc/vimc-capture.c vimc_streamer_s_stream(&vcap->stream, &vcap->ved, 0); stream 49 drivers/media/platform/vimc/vimc-streamer.c static void vimc_streamer_pipeline_terminate(struct vimc_stream *stream) stream 54 drivers/media/platform/vimc/vimc-streamer.c while (stream->pipe_size) { stream 55 drivers/media/platform/vimc/vimc-streamer.c stream->pipe_size--; stream 56 drivers/media/platform/vimc/vimc-streamer.c ved = stream->ved_pipeline[stream->pipe_size]; stream 57 drivers/media/platform/vimc/vimc-streamer.c stream->ved_pipeline[stream->pipe_size] = NULL; stream 80 drivers/media/platform/vimc/vimc-streamer.c static int vimc_streamer_pipeline_init(struct vimc_stream *stream, stream 88 drivers/media/platform/vimc/vimc-streamer.c stream->pipe_size = 0; stream 89 drivers/media/platform/vimc/vimc-streamer.c while (stream->pipe_size < VIMC_STREAMER_PIPELINE_MAX_SIZE) { stream 91 drivers/media/platform/vimc/vimc-streamer.c vimc_streamer_pipeline_terminate(stream); stream 94 drivers/media/platform/vimc/vimc-streamer.c stream->ved_pipeline[stream->pipe_size++] = ved; stream 102 drivers/media/platform/vimc/vimc-streamer.c vimc_streamer_pipeline_terminate(stream); stream 124 drivers/media/platform/vimc/vimc-streamer.c vimc_streamer_pipeline_terminate(stream); stream 142 drivers/media/platform/vimc/vimc-streamer.c struct vimc_stream *stream = data; stream 153 drivers/media/platform/vimc/vimc-streamer.c for (i = stream->pipe_size - 1; i >= 0; i--) { stream 154 drivers/media/platform/vimc/vimc-streamer.c frame = stream->ved_pipeline[i]->process_frame( stream 155 drivers/media/platform/vimc/vimc-streamer.c stream->ved_pipeline[i], frame); stream 182 drivers/media/platform/vimc/vimc-streamer.c int vimc_streamer_s_stream(struct vimc_stream *stream, stream 188 drivers/media/platform/vimc/vimc-streamer.c if (!stream || !ved) stream 192 drivers/media/platform/vimc/vimc-streamer.c if (stream->kthread) stream 195 drivers/media/platform/vimc/vimc-streamer.c ret = vimc_streamer_pipeline_init(stream, ved); stream 199 drivers/media/platform/vimc/vimc-streamer.c stream->kthread = kthread_run(vimc_streamer_thread, stream, stream 202 drivers/media/platform/vimc/vimc-streamer.c if (IS_ERR(stream->kthread)) stream 203 drivers/media/platform/vimc/vimc-streamer.c return PTR_ERR(stream->kthread); stream 206 drivers/media/platform/vimc/vimc-streamer.c if (!stream->kthread) stream 209 drivers/media/platform/vimc/vimc-streamer.c ret = kthread_stop(stream->kthread); stream 213 drivers/media/platform/vimc/vimc-streamer.c stream->kthread = NULL; stream 215 drivers/media/platform/vimc/vimc-streamer.c vimc_streamer_pipeline_terminate(stream); stream 40 drivers/media/platform/vimc/vimc-streamer.h int vimc_streamer_s_stream(struct vimc_stream *stream, stream 66 drivers/media/usb/as102/as102_drv.h void *stream; stream 238 drivers/media/usb/as102/as102_usb_drv.c dev->stream, stream 246 drivers/media/usb/as102/as102_usb_drv.c dev->stream = usb_alloc_coherent(dev->bus_adap.usb_dev, stream 250 drivers/media/usb/as102/as102_usb_drv.c if (!dev->stream) { stream 256 drivers/media/usb/as102/as102_usb_drv.c memset(dev->stream, 0, MAX_STREAM_URB * AS102_USB_BUF_SIZE); stream 268 drivers/media/usb/as102/as102_usb_drv.c urb->transfer_buffer = dev->stream + (i * AS102_USB_BUF_SIZE); stream 538 drivers/media/usb/dvb-usb-v2/af9015.c struct usb_data_stream_properties *stream) stream 546 drivers/media/usb/dvb-usb-v2/af9015.c stream->u.bulk.buffersize = 5 * 188; stream 1442 drivers/media/usb/dvb-usb-v2/af9015.c .stream = DVB_USB_STREAM_BULK(0x84, 6, 87 * 188), stream 1450 drivers/media/usb/dvb-usb-v2/af9015.c .stream = DVB_USB_STREAM_BULK(0x85, 6, 87 * 188), stream 1900 drivers/media/usb/dvb-usb-v2/af9035.c struct usb_data_stream_properties *stream) stream 1908 drivers/media/usb/dvb-usb-v2/af9035.c stream->u.bulk.buffersize = 5 * 188; stream 1999 drivers/media/usb/dvb-usb-v2/af9035.c .stream = DVB_USB_STREAM_BULK(0x84, 6, 87 * 188), stream 2008 drivers/media/usb/dvb-usb-v2/af9035.c .stream = DVB_USB_STREAM_BULK(0x85, 6, 87 * 188), stream 2037 drivers/media/usb/dvb-usb-v2/af9035.c .stream = DVB_USB_STREAM_BULK(0x84, 4, 816 * 188), stream 2039 drivers/media/usb/dvb-usb-v2/af9035.c .stream = DVB_USB_STREAM_BULK(0x85, 4, 816 * 188), stream 1399 drivers/media/usb/dvb-usb-v2/anysee.c .stream = DVB_USB_STREAM_BULK(0x82, 8, 16 * 512), stream 171 drivers/media/usb/dvb-usb-v2/au6610.c .stream = DVB_USB_STREAM_ISOC(0x82, 5, 40, 942, 1), stream 902 drivers/media/usb/dvb-usb-v2/az6007.c { .stream = DVB_USB_STREAM_BULK(0x02, 10, 4096), } stream 925 drivers/media/usb/dvb-usb-v2/az6007.c { .stream = DVB_USB_STREAM_BULK(0x02, 10, 4096), } stream 239 drivers/media/usb/dvb-usb-v2/ce6230.c .stream = { stream 179 drivers/media/usb/dvb-usb-v2/dvb_usb.h struct usb_data_stream_properties stream; stream 319 drivers/media/usb/dvb-usb-v2/dvb_usb.h struct usb_data_stream stream; stream 15 drivers/media/usb/dvb-usb-v2/dvb_usb_common.h extern int usb_urb_initv2(struct usb_data_stream *stream, stream 17 drivers/media/usb/dvb-usb-v2/dvb_usb_common.h extern int usb_urb_exitv2(struct usb_data_stream *stream); stream 18 drivers/media/usb/dvb-usb-v2/dvb_usb_common.h extern int usb_urb_submitv2(struct usb_data_stream *stream, stream 20 drivers/media/usb/dvb-usb-v2/dvb_usb_common.h extern int usb_urb_killv2(struct usb_data_stream *stream); stream 199 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c static void dvb_usb_data_complete(struct usb_data_stream *stream, u8 *buf, stream 202 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c struct dvb_usb_adapter *adap = stream->user_priv; stream 206 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c static void dvb_usb_data_complete_204(struct usb_data_stream *stream, u8 *buf, stream 209 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c struct dvb_usb_adapter *adap = stream->user_priv; stream 213 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c static void dvb_usb_data_complete_raw(struct usb_data_stream *stream, u8 *buf, stream 216 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c struct dvb_usb_adapter *adap = stream->user_priv; stream 225 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c adap->stream.udev = adap_to_d(adap)->udev; stream 226 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c adap->stream.user_priv = adap; stream 227 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c adap->stream.complete = dvb_usb_data_complete; stream 229 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c return usb_urb_initv2(&adap->stream, &adap->props->stream); stream 237 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c return usb_urb_exitv2(&adap->stream); stream 267 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c memcpy(&stream_props, &adap->props->stream, stream 276 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c stream_props = adap->props->stream; stream 281 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c adap->stream.complete = dvb_usb_data_complete_204; stream 284 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c adap->stream.complete = dvb_usb_data_complete_raw; stream 288 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c adap->stream.complete = dvb_usb_data_complete; stream 293 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c usb_urb_submitv2(&adap->stream, &stream_props); stream 374 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c usb_urb_killv2(&adap->stream); stream 1052 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c usb_urb_killv2(&d->adapter[i].stream); stream 1076 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c usb_urb_submitv2(&d->adapter[i].stream, NULL); stream 645 drivers/media/usb/dvb-usb-v2/dvbsky.c .stream = DVB_USB_STREAM_BULK(0x82, 8, 4096), stream 672 drivers/media/usb/dvb-usb-v2/dvbsky.c .stream = DVB_USB_STREAM_BULK(0x82, 8, 4096), stream 699 drivers/media/usb/dvb-usb-v2/dvbsky.c .stream = DVB_USB_STREAM_BULK(0x82, 8, 4096), stream 726 drivers/media/usb/dvb-usb-v2/dvbsky.c .stream = DVB_USB_STREAM_BULK(0x82, 8, 4096), stream 752 drivers/media/usb/dvb-usb-v2/dvbsky.c .stream = DVB_USB_STREAM_BULK(0x82, 8, 4096), stream 330 drivers/media/usb/dvb-usb-v2/ec168.c .stream = DVB_USB_STREAM_BULK(0x82, 6, 32 * 512), stream 160 drivers/media/usb/dvb-usb-v2/gl861.c .stream = DVB_USB_STREAM_BULK(0x81, 7, 512), stream 624 drivers/media/usb/dvb-usb-v2/gl861.c .stream = DVB_USB_STREAM_BULK(0x01, 8, 16384), stream 757 drivers/media/usb/dvb-usb-v2/lmedm04.c static int lme2510_kill_urb(struct usb_data_stream *stream) stream 761 drivers/media/usb/dvb-usb-v2/lmedm04.c for (i = 0; i < stream->urbs_submitted; i++) { stream 764 drivers/media/usb/dvb-usb-v2/lmedm04.c usb_kill_urb(stream->urb_list[i]); stream 766 drivers/media/usb/dvb-usb-v2/lmedm04.c stream->urbs_submitted = 0; stream 1171 drivers/media/usb/dvb-usb-v2/lmedm04.c struct usb_data_stream_properties *stream) stream 1189 drivers/media/usb/dvb-usb-v2/lmedm04.c stream->endpoint = 0x8; stream 1207 drivers/media/usb/dvb-usb-v2/lmedm04.c lme2510_kill_urb(&adap->stream); stream 1248 drivers/media/usb/dvb-usb-v2/lmedm04.c .stream = stream 1036 drivers/media/usb/dvb-usb-v2/mxl111sf.c static void mxl111sf_stream_config_bulk(struct usb_data_stream_properties *stream, u8 endpoint) stream 1039 drivers/media/usb/dvb-usb-v2/mxl111sf.c stream->type = USB_BULK; stream 1040 drivers/media/usb/dvb-usb-v2/mxl111sf.c stream->count = 5; stream 1041 drivers/media/usb/dvb-usb-v2/mxl111sf.c stream->endpoint = endpoint; stream 1042 drivers/media/usb/dvb-usb-v2/mxl111sf.c stream->u.bulk.buffersize = 8192; stream 1045 drivers/media/usb/dvb-usb-v2/mxl111sf.c static void mxl111sf_stream_config_isoc(struct usb_data_stream_properties *stream, stream 1050 drivers/media/usb/dvb-usb-v2/mxl111sf.c stream->type = USB_ISOC; stream 1051 drivers/media/usb/dvb-usb-v2/mxl111sf.c stream->count = 5; stream 1052 drivers/media/usb/dvb-usb-v2/mxl111sf.c stream->endpoint = endpoint; stream 1053 drivers/media/usb/dvb-usb-v2/mxl111sf.c stream->u.isoc.framesperurb = framesperurb; stream 1054 drivers/media/usb/dvb-usb-v2/mxl111sf.c stream->u.isoc.framesize = framesize; stream 1055 drivers/media/usb/dvb-usb-v2/mxl111sf.c stream->u.isoc.interval = 1; stream 1065 drivers/media/usb/dvb-usb-v2/mxl111sf.c u8 *ts_type, struct usb_data_stream_properties *stream) stream 1071 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_isoc(stream, 4, 96, 564); stream 1073 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_bulk(stream, 4); stream 1096 drivers/media/usb/dvb-usb-v2/mxl111sf.c .stream = DVB_USB_STREAM_ISOC(6, 5, 24, 3072, 1), stream 1106 drivers/media/usb/dvb-usb-v2/mxl111sf.c u8 *ts_type, struct usb_data_stream_properties *stream) stream 1112 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_isoc(stream, 6, 24, 3072); stream 1114 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_bulk(stream, 6); stream 1137 drivers/media/usb/dvb-usb-v2/mxl111sf.c .stream = DVB_USB_STREAM_ISOC(6, 5, 24, 3072, 1), stream 1147 drivers/media/usb/dvb-usb-v2/mxl111sf.c u8 *ts_type, struct usb_data_stream_properties *stream) stream 1153 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_isoc(stream, 5, 96, 200); stream 1155 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_bulk(stream, 5); stream 1178 drivers/media/usb/dvb-usb-v2/mxl111sf.c .stream = DVB_USB_STREAM_ISOC(6, 5, 24, 3072, 1), stream 1188 drivers/media/usb/dvb-usb-v2/mxl111sf.c u8 *ts_type, struct usb_data_stream_properties *stream) stream 1195 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_isoc(stream, 6, 24, 3072); stream 1197 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_bulk(stream, 6); stream 1201 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_isoc(stream, 4, 96, 564); stream 1203 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_bulk(stream, 4); stream 1207 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_isoc(stream, 5, 96, 200); stream 1209 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_bulk(stream, 5); stream 1246 drivers/media/usb/dvb-usb-v2/mxl111sf.c .stream = DVB_USB_STREAM_ISOC(6, 5, 24, 3072, 1), stream 1258 drivers/media/usb/dvb-usb-v2/mxl111sf.c u8 *ts_type, struct usb_data_stream_properties *stream) stream 1265 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_isoc(stream, 6, 24, 3072); stream 1267 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_bulk(stream, 6); stream 1271 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_isoc(stream, 4, 96, 564); stream 1273 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_bulk(stream, 4); stream 1277 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_isoc(stream, 5, 96, 200); stream 1279 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_bulk(stream, 5); stream 1283 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_isoc(stream, 6, 24, 3072); stream 1285 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_bulk(stream, 6); stream 1324 drivers/media/usb/dvb-usb-v2/mxl111sf.c .stream = DVB_USB_STREAM_ISOC(6, 5, 24, 3072, 1), stream 1336 drivers/media/usb/dvb-usb-v2/mxl111sf.c u8 *ts_type, struct usb_data_stream_properties *stream) stream 1343 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_isoc(stream, 4, 96, 564); stream 1345 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_bulk(stream, 4); stream 1349 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_isoc(stream, 5, 96, 200); stream 1351 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_bulk(stream, 5); stream 1355 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_isoc(stream, 6, 24, 3072); stream 1357 drivers/media/usb/dvb-usb-v2/mxl111sf.c mxl111sf_stream_config_bulk(stream, 6); stream 1394 drivers/media/usb/dvb-usb-v2/mxl111sf.c .stream = DVB_USB_STREAM_ISOC(6, 5, 24, 3072, 1), stream 1884 drivers/media/usb/dvb-usb-v2/rtl28xxu.c .stream = DVB_USB_STREAM_BULK(0x81, 6, 8 * 512), stream 16 drivers/media/usb/dvb-usb-v2/usb_urb.c int usb_urb_reconfig(struct usb_data_stream *stream, stream 21 drivers/media/usb/dvb-usb-v2/usb_urb.c struct usb_data_stream *stream = urb->context; stream 26 drivers/media/usb/dvb-usb-v2/usb_urb.c dev_dbg_ratelimited(&stream->udev->dev, stream 42 drivers/media/usb/dvb-usb-v2/usb_urb.c dev_dbg_ratelimited(&stream->udev->dev, stream 53 drivers/media/usb/dvb-usb-v2/usb_urb.c dev_dbg(&stream->udev->dev, stream 58 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->complete(stream, stream 68 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->complete(stream, b, urb->actual_length); stream 71 drivers/media/usb/dvb-usb-v2/usb_urb.c dev_err(&stream->udev->dev, stream 79 drivers/media/usb/dvb-usb-v2/usb_urb.c int usb_urb_killv2(struct usb_data_stream *stream) stream 82 drivers/media/usb/dvb-usb-v2/usb_urb.c for (i = 0; i < stream->urbs_submitted; i++) { stream 83 drivers/media/usb/dvb-usb-v2/usb_urb.c dev_dbg(&stream->udev->dev, "%s: kill urb=%d\n", __func__, i); stream 85 drivers/media/usb/dvb-usb-v2/usb_urb.c usb_kill_urb(stream->urb_list[i]); stream 87 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->urbs_submitted = 0; stream 91 drivers/media/usb/dvb-usb-v2/usb_urb.c int usb_urb_submitv2(struct usb_data_stream *stream, stream 97 drivers/media/usb/dvb-usb-v2/usb_urb.c ret = usb_urb_reconfig(stream, props); stream 102 drivers/media/usb/dvb-usb-v2/usb_urb.c for (i = 0; i < stream->urbs_initialized; i++) { stream 103 drivers/media/usb/dvb-usb-v2/usb_urb.c dev_dbg(&stream->udev->dev, "%s: submit urb=%d\n", __func__, i); stream 104 drivers/media/usb/dvb-usb-v2/usb_urb.c ret = usb_submit_urb(stream->urb_list[i], GFP_ATOMIC); stream 106 drivers/media/usb/dvb-usb-v2/usb_urb.c dev_err(&stream->udev->dev, stream 109 drivers/media/usb/dvb-usb-v2/usb_urb.c usb_urb_killv2(stream); stream 112 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->urbs_submitted++; stream 117 drivers/media/usb/dvb-usb-v2/usb_urb.c static int usb_urb_free_urbs(struct usb_data_stream *stream) stream 121 drivers/media/usb/dvb-usb-v2/usb_urb.c usb_urb_killv2(stream); stream 123 drivers/media/usb/dvb-usb-v2/usb_urb.c for (i = stream->urbs_initialized - 1; i >= 0; i--) { stream 124 drivers/media/usb/dvb-usb-v2/usb_urb.c if (stream->urb_list[i]) { stream 125 drivers/media/usb/dvb-usb-v2/usb_urb.c dev_dbg(&stream->udev->dev, "%s: free urb=%d\n", stream 128 drivers/media/usb/dvb-usb-v2/usb_urb.c usb_free_urb(stream->urb_list[i]); stream 131 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->urbs_initialized = 0; stream 136 drivers/media/usb/dvb-usb-v2/usb_urb.c static int usb_urb_alloc_bulk_urbs(struct usb_data_stream *stream) stream 141 drivers/media/usb/dvb-usb-v2/usb_urb.c for (i = 0; i < stream->props.count; i++) { stream 142 drivers/media/usb/dvb-usb-v2/usb_urb.c dev_dbg(&stream->udev->dev, "%s: alloc urb=%d\n", __func__, i); stream 143 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->urb_list[i] = usb_alloc_urb(0, GFP_ATOMIC); stream 144 drivers/media/usb/dvb-usb-v2/usb_urb.c if (!stream->urb_list[i]) { stream 145 drivers/media/usb/dvb-usb-v2/usb_urb.c dev_dbg(&stream->udev->dev, "%s: failed\n", __func__); stream 147 drivers/media/usb/dvb-usb-v2/usb_urb.c usb_free_urb(stream->urb_list[j]); stream 150 drivers/media/usb/dvb-usb-v2/usb_urb.c usb_fill_bulk_urb(stream->urb_list[i], stream 151 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->udev, stream 152 drivers/media/usb/dvb-usb-v2/usb_urb.c usb_rcvbulkpipe(stream->udev, stream 153 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->props.endpoint), stream 154 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->buf_list[i], stream 155 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->props.u.bulk.buffersize, stream 156 drivers/media/usb/dvb-usb-v2/usb_urb.c usb_urb_complete, stream); stream 158 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->urbs_initialized++; stream 163 drivers/media/usb/dvb-usb-v2/usb_urb.c static int usb_urb_alloc_isoc_urbs(struct usb_data_stream *stream) stream 168 drivers/media/usb/dvb-usb-v2/usb_urb.c for (i = 0; i < stream->props.count; i++) { stream 171 drivers/media/usb/dvb-usb-v2/usb_urb.c dev_dbg(&stream->udev->dev, "%s: alloc urb=%d\n", __func__, i); stream 172 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->urb_list[i] = usb_alloc_urb( stream 173 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->props.u.isoc.framesperurb, GFP_ATOMIC); stream 174 drivers/media/usb/dvb-usb-v2/usb_urb.c if (!stream->urb_list[i]) { stream 175 drivers/media/usb/dvb-usb-v2/usb_urb.c dev_dbg(&stream->udev->dev, "%s: failed\n", __func__); stream 177 drivers/media/usb/dvb-usb-v2/usb_urb.c usb_free_urb(stream->urb_list[j]); stream 181 drivers/media/usb/dvb-usb-v2/usb_urb.c urb = stream->urb_list[i]; stream 183 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->dev = stream->udev; stream 184 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->context = stream; stream 186 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->pipe = usb_rcvisocpipe(stream->udev, stream 187 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->props.endpoint); stream 189 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->interval = stream->props.u.isoc.interval; stream 190 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->number_of_packets = stream->props.u.isoc.framesperurb; stream 191 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->transfer_buffer_length = stream->props.u.isoc.framesize * stream 192 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->props.u.isoc.framesperurb; stream 193 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->transfer_buffer = stream->buf_list[i]; stream 195 drivers/media/usb/dvb-usb-v2/usb_urb.c for (j = 0; j < stream->props.u.isoc.framesperurb; j++) { stream 198 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->props.u.isoc.framesize; stream 199 drivers/media/usb/dvb-usb-v2/usb_urb.c frame_offset += stream->props.u.isoc.framesize; stream 202 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->urbs_initialized++; stream 207 drivers/media/usb/dvb-usb-v2/usb_urb.c static int usb_free_stream_buffers(struct usb_data_stream *stream) stream 209 drivers/media/usb/dvb-usb-v2/usb_urb.c if (stream->state & USB_STATE_URB_BUF) { stream 210 drivers/media/usb/dvb-usb-v2/usb_urb.c while (stream->buf_num) { stream 211 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->buf_num--; stream 212 drivers/media/usb/dvb-usb-v2/usb_urb.c kfree(stream->buf_list[stream->buf_num]); stream 216 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->state &= ~USB_STATE_URB_BUF; stream 221 drivers/media/usb/dvb-usb-v2/usb_urb.c static int usb_alloc_stream_buffers(struct usb_data_stream *stream, int num, stream 224 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->buf_num = 0; stream 225 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->buf_size = size; stream 227 drivers/media/usb/dvb-usb-v2/usb_urb.c dev_dbg(&stream->udev->dev, stream 231 drivers/media/usb/dvb-usb-v2/usb_urb.c for (stream->buf_num = 0; stream->buf_num < num; stream->buf_num++) { stream 232 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->buf_list[stream->buf_num] = kzalloc(size, GFP_ATOMIC); stream 233 drivers/media/usb/dvb-usb-v2/usb_urb.c if (!stream->buf_list[stream->buf_num]) { stream 234 drivers/media/usb/dvb-usb-v2/usb_urb.c dev_dbg(&stream->udev->dev, "%s: alloc buf=%d failed\n", stream 235 drivers/media/usb/dvb-usb-v2/usb_urb.c __func__, stream->buf_num); stream 236 drivers/media/usb/dvb-usb-v2/usb_urb.c usb_free_stream_buffers(stream); stream 240 drivers/media/usb/dvb-usb-v2/usb_urb.c dev_dbg(&stream->udev->dev, "%s: alloc buf=%d %p (dma %llu)\n", stream 241 drivers/media/usb/dvb-usb-v2/usb_urb.c __func__, stream->buf_num, stream 242 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->buf_list[stream->buf_num], stream 243 drivers/media/usb/dvb-usb-v2/usb_urb.c (long long)stream->dma_addr[stream->buf_num]); stream 244 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->state |= USB_STATE_URB_BUF; stream 250 drivers/media/usb/dvb-usb-v2/usb_urb.c int usb_urb_reconfig(struct usb_data_stream *stream, stream 260 drivers/media/usb/dvb-usb-v2/usb_urb.c buf_size = stream->props.u.bulk.buffersize; stream 264 drivers/media/usb/dvb-usb-v2/usb_urb.c dev_err(&stream->udev->dev, "%s: invalid endpoint type=%d\n", stream 269 drivers/media/usb/dvb-usb-v2/usb_urb.c if (stream->buf_num < props->count || stream->buf_size < buf_size) { stream 270 drivers/media/usb/dvb-usb-v2/usb_urb.c dev_err(&stream->udev->dev, stream 277 drivers/media/usb/dvb-usb-v2/usb_urb.c if (stream->props.type == props->type && stream 278 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->props.count == props->count && stream 279 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->props.endpoint == props->endpoint) { stream 282 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->props.u.bulk.buffersize) stream 286 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->props.u.isoc.framesperurb && stream 288 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->props.u.isoc.framesize && stream 290 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->props.u.isoc.interval) stream 294 drivers/media/usb/dvb-usb-v2/usb_urb.c dev_dbg(&stream->udev->dev, "%s: re-alloc urbs\n", __func__); stream 296 drivers/media/usb/dvb-usb-v2/usb_urb.c usb_urb_free_urbs(stream); stream 297 drivers/media/usb/dvb-usb-v2/usb_urb.c memcpy(&stream->props, props, sizeof(*props)); stream 299 drivers/media/usb/dvb-usb-v2/usb_urb.c return usb_urb_alloc_bulk_urbs(stream); stream 301 drivers/media/usb/dvb-usb-v2/usb_urb.c return usb_urb_alloc_isoc_urbs(stream); stream 306 drivers/media/usb/dvb-usb-v2/usb_urb.c int usb_urb_initv2(struct usb_data_stream *stream, stream 311 drivers/media/usb/dvb-usb-v2/usb_urb.c if (!stream || !props) stream 314 drivers/media/usb/dvb-usb-v2/usb_urb.c memcpy(&stream->props, props, sizeof(*props)); stream 316 drivers/media/usb/dvb-usb-v2/usb_urb.c if (!stream->complete) { stream 317 drivers/media/usb/dvb-usb-v2/usb_urb.c dev_err(&stream->udev->dev, stream 323 drivers/media/usb/dvb-usb-v2/usb_urb.c switch (stream->props.type) { stream 325 drivers/media/usb/dvb-usb-v2/usb_urb.c ret = usb_alloc_stream_buffers(stream, stream->props.count, stream 326 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->props.u.bulk.buffersize); stream 330 drivers/media/usb/dvb-usb-v2/usb_urb.c return usb_urb_alloc_bulk_urbs(stream); stream 332 drivers/media/usb/dvb-usb-v2/usb_urb.c ret = usb_alloc_stream_buffers(stream, stream->props.count, stream 333 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->props.u.isoc.framesize * stream 334 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->props.u.isoc.framesperurb); stream 338 drivers/media/usb/dvb-usb-v2/usb_urb.c return usb_urb_alloc_isoc_urbs(stream); stream 340 drivers/media/usb/dvb-usb-v2/usb_urb.c dev_err(&stream->udev->dev, stream 347 drivers/media/usb/dvb-usb-v2/usb_urb.c int usb_urb_exitv2(struct usb_data_stream *stream) stream 349 drivers/media/usb/dvb-usb-v2/usb_urb.c usb_urb_free_urbs(stream); stream 350 drivers/media/usb/dvb-usb-v2/usb_urb.c usb_free_stream_buffers(stream); stream 261 drivers/media/usb/dvb-usb-v2/zd1301.c .stream = DVB_USB_STREAM_BULK(0x81, 6, 21 * 188), stream 101 drivers/media/usb/dvb-usb/a800.c .stream = { stream 1039 drivers/media/usb/dvb-usb/af9005.c .stream = { stream 1113 drivers/media/usb/dvb-usb/az6027.c .stream = { stream 217 drivers/media/usb/dvb-usb/cinergyT2-core.c .stream = { stream 483 drivers/media/usb/dvb-usb/cxusb.c struct usb_data_stream_properties *p = &d->props.adapter[0].fe[0].stream; stream 1272 drivers/media/usb/dvb-usb/cxusb.c d->props.adapter[0].fe[0].stream.endpoint)); stream 1333 drivers/media/usb/dvb-usb/cxusb.c d->props.adapter[0].fe[0].stream.endpoint)); stream 1784 drivers/media/usb/dvb-usb/cxusb.c .stream = { stream 1836 drivers/media/usb/dvb-usb/cxusb.c .stream = { stream 1895 drivers/media/usb/dvb-usb/cxusb.c .stream = { stream 1963 drivers/media/usb/dvb-usb/cxusb.c .stream = { stream 2022 drivers/media/usb/dvb-usb/cxusb.c .stream = { stream 2074 drivers/media/usb/dvb-usb/cxusb.c .stream = { stream 2128 drivers/media/usb/dvb-usb/cxusb.c .stream = { stream 2185 drivers/media/usb/dvb-usb/cxusb.c .stream = { stream 2239 drivers/media/usb/dvb-usb/cxusb.c .stream = { stream 2285 drivers/media/usb/dvb-usb/cxusb.c .stream = { stream 2339 drivers/media/usb/dvb-usb/cxusb.c .stream = { stream 2394 drivers/media/usb/dvb-usb/cxusb.c .stream = { stream 566 drivers/media/usb/dvb-usb/dib0700_core.c dib0700_devices[i].adapter[adap_num].fe[0].stream.u.bulk.buffersize = 188*nb_packet_buffer_size; stream 570 drivers/media/usb/dvb-usb/dib0700_core.c dib0700_devices[i].adapter[adap_num].fe[0].stream.u.bulk.buffersize = ((188*nb_packet_buffer_size+188/2)/512)*512; stream 571 drivers/media/usb/dvb-usb/dib0700_core.c if (dib0700_devices[i].adapter[adap_num].fe[0].stream.u.bulk.buffersize < 512) stream 572 drivers/media/usb/dvb-usb/dib0700_core.c dib0700_devices[i].adapter[adap_num].fe[0].stream.u.bulk.buffersize = 512; stream 614 drivers/media/usb/dvb-usb/dib0700_core.c if ((adap->fe_adap[0].stream.props.endpoint != 2) stream 615 drivers/media/usb/dvb-usb/dib0700_core.c && (adap->fe_adap[0].stream.props.endpoint != 3)) { stream 616 drivers/media/usb/dvb-usb/dib0700_core.c deb_info("the endpoint number (%i) is not correct, use the adapter id instead", adap->fe_adap[0].stream.props.endpoint); stream 623 drivers/media/usb/dvb-usb/dib0700_core.c st->channel_state |= 1 << (adap->fe_adap[0].stream.props.endpoint-2); stream 625 drivers/media/usb/dvb-usb/dib0700_core.c st->channel_state |= 1 << (3-adap->fe_adap[0].stream.props.endpoint); stream 3931 drivers/media/usb/dvb-usb/dib0700_devices.c .stream = { \ stream 198 drivers/media/usb/dvb-usb/dibusb-mb.c .stream = { stream 288 drivers/media/usb/dvb-usb/dibusb-mb.c .stream = { stream 357 drivers/media/usb/dvb-usb/dibusb-mb.c .stream = { stream 419 drivers/media/usb/dvb-usb/dibusb-mb.c .stream = { stream 68 drivers/media/usb/dvb-usb/dibusb-mc.c .stream = { stream 314 drivers/media/usb/dvb-usb/digitv.c .stream = { stream 194 drivers/media/usb/dvb-usb/dtt200u.c .stream = { stream 246 drivers/media/usb/dvb-usb/dtt200u.c .stream = { stream 298 drivers/media/usb/dvb-usb/dtt200u.c .stream = { stream 350 drivers/media/usb/dvb-usb/dtt200u.c .stream = { stream 181 drivers/media/usb/dvb-usb/dtv5100.c .stream = { stream 33 drivers/media/usb/dvb-usb/dvb-usb-common.h extern int usb_urb_init(struct usb_data_stream *stream, struct usb_data_stream_properties *props); stream 34 drivers/media/usb/dvb-usb/dvb-usb-common.h extern int usb_urb_exit(struct usb_data_stream *stream); stream 35 drivers/media/usb/dvb-usb/dvb-usb-common.h extern int usb_urb_submit(struct usb_data_stream *stream); stream 36 drivers/media/usb/dvb-usb/dvb-usb-common.h extern int usb_urb_kill(struct usb_data_stream *stream); stream 32 drivers/media/usb/dvb-usb/dvb-usb-dvb.c usb_urb_kill(&adap->fe_adap[adap->active_fe].stream); stream 81 drivers/media/usb/dvb-usb/dvb-usb-dvb.c usb_urb_submit(&adap->fe_adap[adap->active_fe].stream); stream 70 drivers/media/usb/dvb-usb/dvb-usb-urb.c static void dvb_usb_data_complete(struct usb_data_stream *stream, u8 *buffer, size_t length) stream 72 drivers/media/usb/dvb-usb/dvb-usb-urb.c struct dvb_usb_adapter *adap = stream->user_priv; stream 77 drivers/media/usb/dvb-usb/dvb-usb-urb.c static void dvb_usb_data_complete_204(struct usb_data_stream *stream, u8 *buffer, size_t length) stream 79 drivers/media/usb/dvb-usb/dvb-usb-urb.c struct dvb_usb_adapter *adap = stream->user_priv; stream 84 drivers/media/usb/dvb-usb/dvb-usb-urb.c static void dvb_usb_data_complete_raw(struct usb_data_stream *stream, stream 87 drivers/media/usb/dvb-usb/dvb-usb-urb.c struct dvb_usb_adapter *adap = stream->user_priv; stream 97 drivers/media/usb/dvb-usb/dvb-usb-urb.c adap->fe_adap[i].stream.udev = adap->dev->udev; stream 99 drivers/media/usb/dvb-usb/dvb-usb-urb.c adap->fe_adap[i].stream.complete = stream 103 drivers/media/usb/dvb-usb/dvb-usb-urb.c adap->fe_adap[i].stream.complete = stream 106 drivers/media/usb/dvb-usb/dvb-usb-urb.c adap->fe_adap[i].stream.complete = dvb_usb_data_complete; stream 107 drivers/media/usb/dvb-usb/dvb-usb-urb.c adap->fe_adap[i].stream.user_priv = adap; stream 108 drivers/media/usb/dvb-usb/dvb-usb-urb.c ret = usb_urb_init(&adap->fe_adap[i].stream, stream 109 drivers/media/usb/dvb-usb/dvb-usb-urb.c &adap->props.fe[i].stream); stream 120 drivers/media/usb/dvb-usb/dvb-usb-urb.c usb_urb_exit(&adap->fe_adap[i].stream); stream 159 drivers/media/usb/dvb-usb/dvb-usb.h struct usb_data_stream_properties stream; stream 376 drivers/media/usb/dvb-usb/dvb-usb.h struct usb_data_stream stream; stream 1925 drivers/media/usb/dvb-usb/dw2102.c .stream = { stream 1980 drivers/media/usb/dvb-usb/dw2102.c .stream = { stream 2032 drivers/media/usb/dvb-usb/dw2102.c .stream = { stream 2079 drivers/media/usb/dvb-usb/dw2102.c .stream = { stream 2170 drivers/media/usb/dvb-usb/dw2102.c .stream = { stream 2239 drivers/media/usb/dvb-usb/dw2102.c .stream = { stream 2288 drivers/media/usb/dvb-usb/dw2102.c .stream = { stream 338 drivers/media/usb/dvb-usb/gp8psk.c .stream = { stream 98 drivers/media/usb/dvb-usb/m920x.c epi = d->adapter[i].props.fe[0].stream.endpoint - 0x81; stream 340 drivers/media/usb/dvb-usb/m920x.c int ep = adap->props.fe[0].stream.endpoint; stream 938 drivers/media/usb/dvb-usb/m920x.c .stream = { stream 986 drivers/media/usb/dvb-usb/m920x.c .stream = { stream 1049 drivers/media/usb/dvb-usb/m920x.c .stream = { stream 1073 drivers/media/usb/dvb-usb/m920x.c .stream = { stream 1115 drivers/media/usb/dvb-usb/m920x.c .stream = { stream 1169 drivers/media/usb/dvb-usb/m920x.c .stream = { stream 1226 drivers/media/usb/dvb-usb/m920x.c .stream = { stream 189 drivers/media/usb/dvb-usb/nova-t-usb2.c .stream = { stream 527 drivers/media/usb/dvb-usb/opera1.c .stream = { stream 970 drivers/media/usb/dvb-usb/pctv452e.c .stream = { stream 1023 drivers/media/usb/dvb-usb/pctv452e.c .stream = { stream 721 drivers/media/usb/dvb-usb/technisat-usb2.c .stream = { stream 664 drivers/media/usb/dvb-usb/ttusb2.c .stream = { stream 719 drivers/media/usb/dvb-usb/ttusb2.c .stream = { stream 780 drivers/media/usb/dvb-usb/ttusb2.c .stream = { stream 799 drivers/media/usb/dvb-usb/ttusb2.c .stream = { stream 107 drivers/media/usb/dvb-usb/umt-010.c .stream = { stream 17 drivers/media/usb/dvb-usb/usb-urb.c struct usb_data_stream *stream = urb->context; stream 48 drivers/media/usb/dvb-usb/usb-urb.c stream->complete(stream, b + urb->iso_frame_desc[i].offset, urb->iso_frame_desc[i].actual_length); stream 57 drivers/media/usb/dvb-usb/usb-urb.c stream->complete(stream, b, urb->actual_length); stream 66 drivers/media/usb/dvb-usb/usb-urb.c int usb_urb_kill(struct usb_data_stream *stream) stream 69 drivers/media/usb/dvb-usb/usb-urb.c for (i = 0; i < stream->urbs_submitted; i++) { stream 73 drivers/media/usb/dvb-usb/usb-urb.c usb_kill_urb(stream->urb_list[i]); stream 75 drivers/media/usb/dvb-usb/usb-urb.c stream->urbs_submitted = 0; stream 79 drivers/media/usb/dvb-usb/usb-urb.c int usb_urb_submit(struct usb_data_stream *stream) stream 82 drivers/media/usb/dvb-usb/usb-urb.c for (i = 0; i < stream->urbs_initialized; i++) { stream 84 drivers/media/usb/dvb-usb/usb-urb.c if ((ret = usb_submit_urb(stream->urb_list[i],GFP_ATOMIC))) { stream 86 drivers/media/usb/dvb-usb/usb-urb.c usb_urb_kill(stream); stream 89 drivers/media/usb/dvb-usb/usb-urb.c stream->urbs_submitted++; stream 94 drivers/media/usb/dvb-usb/usb-urb.c static int usb_free_stream_buffers(struct usb_data_stream *stream) stream 96 drivers/media/usb/dvb-usb/usb-urb.c if (stream->state & USB_STATE_URB_BUF) { stream 97 drivers/media/usb/dvb-usb/usb-urb.c while (stream->buf_num) { stream 98 drivers/media/usb/dvb-usb/usb-urb.c stream->buf_num--; stream 99 drivers/media/usb/dvb-usb/usb-urb.c deb_mem("freeing buffer %d\n",stream->buf_num); stream 100 drivers/media/usb/dvb-usb/usb-urb.c usb_free_coherent(stream->udev, stream->buf_size, stream 101 drivers/media/usb/dvb-usb/usb-urb.c stream->buf_list[stream->buf_num], stream 102 drivers/media/usb/dvb-usb/usb-urb.c stream->dma_addr[stream->buf_num]); stream 106 drivers/media/usb/dvb-usb/usb-urb.c stream->state &= ~USB_STATE_URB_BUF; stream 111 drivers/media/usb/dvb-usb/usb-urb.c static int usb_allocate_stream_buffers(struct usb_data_stream *stream, int num, unsigned long size) stream 113 drivers/media/usb/dvb-usb/usb-urb.c stream->buf_num = 0; stream 114 drivers/media/usb/dvb-usb/usb-urb.c stream->buf_size = size; stream 118 drivers/media/usb/dvb-usb/usb-urb.c for (stream->buf_num = 0; stream->buf_num < num; stream->buf_num++) { stream 119 drivers/media/usb/dvb-usb/usb-urb.c deb_mem("allocating buffer %d\n",stream->buf_num); stream 120 drivers/media/usb/dvb-usb/usb-urb.c if (( stream->buf_list[stream->buf_num] = stream 121 drivers/media/usb/dvb-usb/usb-urb.c usb_alloc_coherent(stream->udev, size, GFP_KERNEL, stream 122 drivers/media/usb/dvb-usb/usb-urb.c &stream->dma_addr[stream->buf_num]) ) == NULL) { stream 124 drivers/media/usb/dvb-usb/usb-urb.c usb_free_stream_buffers(stream); stream 128 drivers/media/usb/dvb-usb/usb-urb.c stream->buf_num, stream 129 drivers/media/usb/dvb-usb/usb-urb.c stream->buf_list[stream->buf_num], (long long)stream->dma_addr[stream->buf_num]); stream 130 drivers/media/usb/dvb-usb/usb-urb.c memset(stream->buf_list[stream->buf_num],0,size); stream 131 drivers/media/usb/dvb-usb/usb-urb.c stream->state |= USB_STATE_URB_BUF; stream 138 drivers/media/usb/dvb-usb/usb-urb.c static int usb_bulk_urb_init(struct usb_data_stream *stream) stream 142 drivers/media/usb/dvb-usb/usb-urb.c if ((i = usb_allocate_stream_buffers(stream,stream->props.count, stream 143 drivers/media/usb/dvb-usb/usb-urb.c stream->props.u.bulk.buffersize)) < 0) stream 147 drivers/media/usb/dvb-usb/usb-urb.c for (i = 0; i < stream->props.count; i++) { stream 148 drivers/media/usb/dvb-usb/usb-urb.c stream->urb_list[i] = usb_alloc_urb(0, GFP_KERNEL); stream 149 drivers/media/usb/dvb-usb/usb-urb.c if (!stream->urb_list[i]) { stream 152 drivers/media/usb/dvb-usb/usb-urb.c usb_free_urb(stream->urb_list[j]); stream 155 drivers/media/usb/dvb-usb/usb-urb.c usb_fill_bulk_urb( stream->urb_list[i], stream->udev, stream 156 drivers/media/usb/dvb-usb/usb-urb.c usb_rcvbulkpipe(stream->udev,stream->props.endpoint), stream 157 drivers/media/usb/dvb-usb/usb-urb.c stream->buf_list[i], stream 158 drivers/media/usb/dvb-usb/usb-urb.c stream->props.u.bulk.buffersize, stream 159 drivers/media/usb/dvb-usb/usb-urb.c usb_urb_complete, stream); stream 161 drivers/media/usb/dvb-usb/usb-urb.c stream->urb_list[i]->transfer_flags = URB_NO_TRANSFER_DMA_MAP; stream 162 drivers/media/usb/dvb-usb/usb-urb.c stream->urb_list[i]->transfer_dma = stream->dma_addr[i]; stream 163 drivers/media/usb/dvb-usb/usb-urb.c stream->urbs_initialized++; stream 168 drivers/media/usb/dvb-usb/usb-urb.c static int usb_isoc_urb_init(struct usb_data_stream *stream) stream 172 drivers/media/usb/dvb-usb/usb-urb.c if ((i = usb_allocate_stream_buffers(stream,stream->props.count, stream 173 drivers/media/usb/dvb-usb/usb-urb.c stream->props.u.isoc.framesize*stream->props.u.isoc.framesperurb)) < 0) stream 177 drivers/media/usb/dvb-usb/usb-urb.c for (i = 0; i < stream->props.count; i++) { stream 181 drivers/media/usb/dvb-usb/usb-urb.c stream->urb_list[i] = usb_alloc_urb(stream->props.u.isoc.framesperurb, GFP_KERNEL); stream 182 drivers/media/usb/dvb-usb/usb-urb.c if (!stream->urb_list[i]) { stream 185 drivers/media/usb/dvb-usb/usb-urb.c usb_free_urb(stream->urb_list[j]); stream 189 drivers/media/usb/dvb-usb/usb-urb.c urb = stream->urb_list[i]; stream 191 drivers/media/usb/dvb-usb/usb-urb.c urb->dev = stream->udev; stream 192 drivers/media/usb/dvb-usb/usb-urb.c urb->context = stream; stream 194 drivers/media/usb/dvb-usb/usb-urb.c urb->pipe = usb_rcvisocpipe(stream->udev,stream->props.endpoint); stream 196 drivers/media/usb/dvb-usb/usb-urb.c urb->interval = stream->props.u.isoc.interval; stream 197 drivers/media/usb/dvb-usb/usb-urb.c urb->number_of_packets = stream->props.u.isoc.framesperurb; stream 198 drivers/media/usb/dvb-usb/usb-urb.c urb->transfer_buffer_length = stream->buf_size; stream 199 drivers/media/usb/dvb-usb/usb-urb.c urb->transfer_buffer = stream->buf_list[i]; stream 200 drivers/media/usb/dvb-usb/usb-urb.c urb->transfer_dma = stream->dma_addr[i]; stream 202 drivers/media/usb/dvb-usb/usb-urb.c for (j = 0; j < stream->props.u.isoc.framesperurb; j++) { stream 204 drivers/media/usb/dvb-usb/usb-urb.c urb->iso_frame_desc[j].length = stream->props.u.isoc.framesize; stream 205 drivers/media/usb/dvb-usb/usb-urb.c frame_offset += stream->props.u.isoc.framesize; stream 208 drivers/media/usb/dvb-usb/usb-urb.c stream->urbs_initialized++; stream 213 drivers/media/usb/dvb-usb/usb-urb.c int usb_urb_init(struct usb_data_stream *stream, struct usb_data_stream_properties *props) stream 215 drivers/media/usb/dvb-usb/usb-urb.c if (stream == NULL || props == NULL) stream 218 drivers/media/usb/dvb-usb/usb-urb.c memcpy(&stream->props, props, sizeof(*props)); stream 220 drivers/media/usb/dvb-usb/usb-urb.c usb_clear_halt(stream->udev,usb_rcvbulkpipe(stream->udev,stream->props.endpoint)); stream 222 drivers/media/usb/dvb-usb/usb-urb.c if (stream->complete == NULL) { stream 227 drivers/media/usb/dvb-usb/usb-urb.c switch (stream->props.type) { stream 229 drivers/media/usb/dvb-usb/usb-urb.c return usb_bulk_urb_init(stream); stream 231 drivers/media/usb/dvb-usb/usb-urb.c return usb_isoc_urb_init(stream); stream 238 drivers/media/usb/dvb-usb/usb-urb.c int usb_urb_exit(struct usb_data_stream *stream) stream 242 drivers/media/usb/dvb-usb/usb-urb.c usb_urb_kill(stream); stream 244 drivers/media/usb/dvb-usb/usb-urb.c for (i = 0; i < stream->urbs_initialized; i++) { stream 245 drivers/media/usb/dvb-usb/usb-urb.c if (stream->urb_list[i] != NULL) { stream 248 drivers/media/usb/dvb-usb/usb-urb.c usb_free_urb(stream->urb_list[i]); stream 251 drivers/media/usb/dvb-usb/usb-urb.c stream->urbs_initialized = 0; stream 253 drivers/media/usb/dvb-usb/usb-urb.c usb_free_stream_buffers(stream); stream 392 drivers/media/usb/dvb-usb/vp702x.c .stream = { stream 196 drivers/media/usb/dvb-usb/vp7045.c .stream = { stream 90 drivers/media/usb/gspca/t613.c const u8 stream[4]; stream 155 drivers/media/usb/gspca/t613.c .stream = stream 177 drivers/media/usb/gspca/t613.c .stream = stream 199 drivers/media/usb/gspca/t613.c .stream = stream 216 drivers/media/usb/gspca/t613.c .stream = {0x0b, 0x04, 0x0a, 0x28}, stream 655 drivers/media/usb/gspca/t613.c reg_w_buf(gspca_dev, sensor->stream, sizeof sensor->stream); stream 792 drivers/media/usb/gspca/t613.c reg_w_buf(gspca_dev, sensor->stream, sizeof sensor->stream); stream 793 drivers/media/usb/gspca/t613.c reg_w_buf(gspca_dev, sensor->stream, sizeof sensor->stream); stream 805 drivers/media/usb/gspca/t613.c reg_w_buf(gspca_dev, sensor_data[sd->sensor].stream, stream 806 drivers/media/usb/gspca/t613.c sizeof sensor_data[sd->sensor].stream); stream 807 drivers/media/usb/gspca/t613.c reg_w_buf(gspca_dev, sensor_data[sd->sensor].stream, stream 808 drivers/media/usb/gspca/t613.c sizeof sensor_data[sd->sensor].stream); stream 112 drivers/media/usb/pvrusb2/pvrusb2-context.c mp->video_stream.stream = stream 294 drivers/media/usb/pvrusb2/pvrusb2-context.c if (!cp->stream) return; stream 295 drivers/media/usb/pvrusb2/pvrusb2-context.c pvr2_stream_kill(cp->stream->stream); stream 296 drivers/media/usb/pvrusb2/pvrusb2-context.c cp->stream->user = NULL; stream 297 drivers/media/usb/pvrusb2/pvrusb2-context.c cp->stream = NULL; stream 379 drivers/media/usb/pvrusb2/pvrusb2-context.c if (sp == cp->stream) break; stream 387 drivers/media/usb/pvrusb2/pvrusb2-context.c cp->stream = sp; stream 405 drivers/media/usb/pvrusb2/pvrusb2-context.c pvr2_ioread_setup(cp,sp->stream); stream 23 drivers/media/usb/pvrusb2/pvrusb2-context.h struct pvr2_stream *stream; stream 49 drivers/media/usb/pvrusb2/pvrusb2-context.h struct pvr2_context_stream *stream; stream 26 drivers/media/usb/pvrusb2/pvrusb2-dvb.c struct pvr2_stream *stream; stream 31 drivers/media/usb/pvrusb2/pvrusb2-dvb.c stream = adap->channel.stream->stream; stream 39 drivers/media/usb/pvrusb2/pvrusb2-dvb.c bp = pvr2_stream_get_ready_buffer(stream); stream 67 drivers/media/usb/pvrusb2/pvrusb2-dvb.c (pvr2_stream_get_ready_count(stream) > 0) || stream 99 drivers/media/usb/pvrusb2/pvrusb2-dvb.c struct pvr2_stream *stream; stream 106 drivers/media/usb/pvrusb2/pvrusb2-dvb.c if (adap->channel.stream) { stream 107 drivers/media/usb/pvrusb2/pvrusb2-dvb.c stream = adap->channel.stream->stream; stream 109 drivers/media/usb/pvrusb2/pvrusb2-dvb.c stream = NULL; stream 111 drivers/media/usb/pvrusb2/pvrusb2-dvb.c if (stream) { stream 113 drivers/media/usb/pvrusb2/pvrusb2-dvb.c pvr2_stream_set_callback(stream, NULL, NULL); stream 114 drivers/media/usb/pvrusb2/pvrusb2-dvb.c pvr2_stream_kill(stream); stream 115 drivers/media/usb/pvrusb2/pvrusb2-dvb.c pvr2_stream_set_buffer_count(stream, 0); stream 135 drivers/media/usb/pvrusb2/pvrusb2-dvb.c struct pvr2_stream *stream = NULL; stream 143 drivers/media/usb/pvrusb2/pvrusb2-dvb.c stream = adap->channel.stream->stream; stream 151 drivers/media/usb/pvrusb2/pvrusb2-dvb.c pvr2_stream_set_callback(pvr->video_stream.stream, stream 154 drivers/media/usb/pvrusb2/pvrusb2-dvb.c ret = pvr2_stream_set_buffer_count(stream, PVR2_DVB_BUFFER_COUNT); stream 158 drivers/media/usb/pvrusb2/pvrusb2-dvb.c bp = pvr2_stream_get_buffer(stream, idx); stream 167 drivers/media/usb/pvrusb2/pvrusb2-dvb.c while ((bp = pvr2_stream_get_idle_buffer(stream)) != NULL) { stream 82 drivers/media/usb/pvrusb2/pvrusb2-io.c struct pvr2_stream *stream; stream 109 drivers/media/usb/pvrusb2/pvrusb2-io.c (bp ? bp->stream : NULL), stream 120 drivers/media/usb/pvrusb2/pvrusb2-io.c struct pvr2_stream *sp = bp->stream; stream 154 drivers/media/usb/pvrusb2/pvrusb2-io.c sp = bp->stream; stream 171 drivers/media/usb/pvrusb2/pvrusb2-io.c sp = bp->stream; stream 197 drivers/media/usb/pvrusb2/pvrusb2-io.c sp = bp->stream; stream 221 drivers/media/usb/pvrusb2/pvrusb2-io.c sp = bp->stream; stream 256 drivers/media/usb/pvrusb2/pvrusb2-io.c bp->stream = sp; stream 275 drivers/media/usb/pvrusb2/pvrusb2-io.c bp->stream = NULL; stream 421 drivers/media/usb/pvrusb2/pvrusb2-io.c sp = bp->stream; stream 599 drivers/media/usb/pvrusb2/pvrusb2-io.c sp = bp->stream; stream 636 drivers/media/usb/pvrusb2/pvrusb2-io.c sp = bp->stream; stream 644 drivers/media/usb/pvrusb2/pvrusb2-io.c bp->stream->i_bcount -= bp->max_count; stream 646 drivers/media/usb/pvrusb2/pvrusb2-io.c bp->stream->i_bcount += bp->max_count; stream 651 drivers/media/usb/pvrusb2/pvrusb2-io.c bp->stream->i_bcount, bp->stream->i_count); stream 20 drivers/media/usb/pvrusb2/pvrusb2-ioread.c struct pvr2_stream *stream; stream 43 drivers/media/usb/pvrusb2/pvrusb2-ioread.c cp->stream = NULL; stream 131 drivers/media/usb/pvrusb2/pvrusb2-ioread.c pvr2_stream_kill(cp->stream); stream 151 drivers/media/usb/pvrusb2/pvrusb2-ioread.c if (!(cp->stream)) return 0; stream 154 drivers/media/usb/pvrusb2/pvrusb2-ioread.c while ((bp = pvr2_stream_get_idle_buffer(cp->stream)) != NULL) { stream 183 drivers/media/usb/pvrusb2/pvrusb2-ioread.c return cp->stream; stream 194 drivers/media/usb/pvrusb2/pvrusb2-ioread.c if (cp->stream) { stream 199 drivers/media/usb/pvrusb2/pvrusb2-ioread.c pvr2_stream_kill(cp->stream); stream 200 drivers/media/usb/pvrusb2/pvrusb2-ioread.c if (pvr2_stream_get_buffer_count(cp->stream)) { stream 201 drivers/media/usb/pvrusb2/pvrusb2-ioread.c pvr2_stream_set_buffer_count(cp->stream,0); stream 203 drivers/media/usb/pvrusb2/pvrusb2-ioread.c cp->stream = NULL; stream 221 drivers/media/usb/pvrusb2/pvrusb2-ioread.c cp->stream = sp; stream 268 drivers/media/usb/pvrusb2/pvrusb2-ioread.c cp->c_buf = pvr2_stream_get_ready_buffer(cp->stream); stream 367 drivers/media/usb/pvrusb2/pvrusb2-ioread.c if (!pvr2_stream_get_ready_count(cp->stream)) { stream 372 drivers/media/usb/pvrusb2/pvrusb2-ioread.c if (pvr2_stream_get_ready_count(cp->stream) < BUFFER_COUNT/2) { stream 31 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct pvr2_context_stream *stream; stream 474 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c if (!fh->pdi->stream) { stream 491 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c if (!fh->pdi->stream) { stream 848 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c dip->stream = NULL; stream 1052 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c if (!fh->pdi->stream) { stream 1061 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c fh->pdi->stream)) != 0) { stream 1066 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c fh->rhp = pvr2_channel_create_mpeg_stream(fh->pdi->stream); stream 1073 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c sp = fh->pdi->stream->stream; stream 1200 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c dip->stream = &vp->channel.mc_head->video_stream; stream 1205 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c if (!dip->stream) { stream 1218 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c dip->stream = &vp->channel.mc_head->video_stream; stream 460 drivers/media/usb/pwc/pwc-dec23.c pdec->reservoir |= (*(pdec->stream)++) << (pdec->nbits_in_reservoir); \ stream 600 drivers/media/usb/pwc/pwc-dec23.c pdec->stream = rawyuv + 1; /* The first byte of the stream is skipped */ stream 30 drivers/media/usb/pwc/pwc-dec23.h const unsigned char *stream; stream 1433 drivers/media/usb/tm6000/tm6000-video.c if (list_empty(&fh->vb_vidq.stream)) stream 1435 drivers/media/usb/tm6000/tm6000-video.c buf = list_entry(fh->vb_vidq.stream.next, struct tm6000_buffer, vb.stream); stream 29 drivers/media/usb/uvc/uvc_debugfs.c struct uvc_streaming *stream = inode->i_private; stream 36 drivers/media/usb/uvc/uvc_debugfs.c buf->count = uvc_video_stats_dump(stream, buf->data, sizeof(buf->data)); stream 73 drivers/media/usb/uvc/uvc_debugfs.c void uvc_debugfs_init_stream(struct uvc_streaming *stream) stream 75 drivers/media/usb/uvc/uvc_debugfs.c struct usb_device *udev = stream->dev->udev; stream 83 drivers/media/usb/uvc/uvc_debugfs.c udev->devnum, stream->intfnum); stream 92 drivers/media/usb/uvc/uvc_debugfs.c stream->debugfs_dir = dent; stream 94 drivers/media/usb/uvc/uvc_debugfs.c dent = debugfs_create_file("stats", 0444, stream->debugfs_dir, stream 95 drivers/media/usb/uvc/uvc_debugfs.c stream, &uvc_debugfs_stats_fops); stream 98 drivers/media/usb/uvc/uvc_debugfs.c uvc_debugfs_cleanup_stream(stream); stream 103 drivers/media/usb/uvc/uvc_debugfs.c void uvc_debugfs_cleanup_stream(struct uvc_streaming *stream) stream 105 drivers/media/usb/uvc/uvc_debugfs.c debugfs_remove_recursive(stream->debugfs_dir); stream 106 drivers/media/usb/uvc/uvc_debugfs.c stream->debugfs_dir = NULL; stream 383 drivers/media/usb/uvc/uvc_driver.c struct uvc_streaming *stream; stream 385 drivers/media/usb/uvc/uvc_driver.c list_for_each_entry(stream, &dev->streams, list) { stream 386 drivers/media/usb/uvc/uvc_driver.c if (stream->header.bTerminalLink == id) stream 387 drivers/media/usb/uvc/uvc_driver.c return stream; stream 397 drivers/media/usb/uvc/uvc_driver.c static void uvc_stream_delete(struct uvc_streaming *stream) stream 399 drivers/media/usb/uvc/uvc_driver.c if (stream->async_wq) stream 400 drivers/media/usb/uvc/uvc_driver.c destroy_workqueue(stream->async_wq); stream 402 drivers/media/usb/uvc/uvc_driver.c mutex_destroy(&stream->mutex); stream 404 drivers/media/usb/uvc/uvc_driver.c usb_put_intf(stream->intf); stream 406 drivers/media/usb/uvc/uvc_driver.c kfree(stream->format); stream 407 drivers/media/usb/uvc/uvc_driver.c kfree(stream->header.bmaControls); stream 408 drivers/media/usb/uvc/uvc_driver.c kfree(stream); stream 414 drivers/media/usb/uvc/uvc_driver.c struct uvc_streaming *stream; stream 416 drivers/media/usb/uvc/uvc_driver.c stream = kzalloc(sizeof(*stream), GFP_KERNEL); stream 417 drivers/media/usb/uvc/uvc_driver.c if (stream == NULL) stream 420 drivers/media/usb/uvc/uvc_driver.c mutex_init(&stream->mutex); stream 422 drivers/media/usb/uvc/uvc_driver.c stream->dev = dev; stream 423 drivers/media/usb/uvc/uvc_driver.c stream->intf = usb_get_intf(intf); stream 424 drivers/media/usb/uvc/uvc_driver.c stream->intfnum = intf->cur_altsetting->desc.bInterfaceNumber; stream 427 drivers/media/usb/uvc/uvc_driver.c stream->async_wq = alloc_workqueue("uvcvideo", WQ_UNBOUND | WQ_HIGHPRI, stream 429 drivers/media/usb/uvc/uvc_driver.c if (!stream->async_wq) { stream 430 drivers/media/usb/uvc/uvc_driver.c uvc_stream_delete(stream); stream 434 drivers/media/usb/uvc/uvc_driver.c return stream; stream 1931 drivers/media/usb/uvc/uvc_driver.c struct uvc_streaming *stream = video_get_drvdata(vdev); stream 1932 drivers/media/usb/uvc/uvc_driver.c struct uvc_device *dev = stream->dev; stream 1942 drivers/media/usb/uvc/uvc_driver.c struct uvc_streaming *stream; stream 1944 drivers/media/usb/uvc/uvc_driver.c list_for_each_entry(stream, &dev->streams, list) { stream 1945 drivers/media/usb/uvc/uvc_driver.c if (!video_is_registered(&stream->vdev)) stream 1948 drivers/media/usb/uvc/uvc_driver.c video_unregister_device(&stream->vdev); stream 1949 drivers/media/usb/uvc/uvc_driver.c video_unregister_device(&stream->meta.vdev); stream 1951 drivers/media/usb/uvc/uvc_driver.c uvc_debugfs_cleanup_stream(stream); stream 1965 drivers/media/usb/uvc/uvc_driver.c struct uvc_streaming *stream, stream 1990 drivers/media/usb/uvc/uvc_driver.c vdev->prio = &stream->chain->prio; stream 2015 drivers/media/usb/uvc/uvc_driver.c video_set_drvdata(vdev, stream); stream 2029 drivers/media/usb/uvc/uvc_driver.c struct uvc_streaming *stream) stream 2034 drivers/media/usb/uvc/uvc_driver.c ret = uvc_video_init(stream); stream 2041 drivers/media/usb/uvc/uvc_driver.c if (stream->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) stream 2042 drivers/media/usb/uvc/uvc_driver.c stream->chain->caps |= V4L2_CAP_VIDEO_CAPTURE stream 2045 drivers/media/usb/uvc/uvc_driver.c stream->chain->caps |= V4L2_CAP_VIDEO_OUTPUT; stream 2047 drivers/media/usb/uvc/uvc_driver.c uvc_debugfs_init_stream(stream); stream 2050 drivers/media/usb/uvc/uvc_driver.c return uvc_register_video_device(dev, stream, &stream->vdev, stream 2051 drivers/media/usb/uvc/uvc_driver.c &stream->queue, stream->type, stream 2061 drivers/media/usb/uvc/uvc_driver.c struct uvc_streaming *stream; stream 2069 drivers/media/usb/uvc/uvc_driver.c stream = uvc_stream_by_id(dev, term->id); stream 2070 drivers/media/usb/uvc/uvc_driver.c if (stream == NULL) { stream 2076 drivers/media/usb/uvc/uvc_driver.c stream->chain = chain; stream 2077 drivers/media/usb/uvc/uvc_driver.c ret = uvc_register_video(dev, stream); stream 2084 drivers/media/usb/uvc/uvc_driver.c uvc_meta_register(stream); stream 2086 drivers/media/usb/uvc/uvc_driver.c term->vdev = &stream->vdev; stream 2277 drivers/media/usb/uvc/uvc_driver.c struct uvc_streaming *stream; stream 2292 drivers/media/usb/uvc/uvc_driver.c list_for_each_entry(stream, &dev->streams, list) { stream 2293 drivers/media/usb/uvc/uvc_driver.c if (stream->intf == intf) stream 2294 drivers/media/usb/uvc/uvc_driver.c return uvc_video_suspend(stream); stream 2305 drivers/media/usb/uvc/uvc_driver.c struct uvc_streaming *stream; stream 2327 drivers/media/usb/uvc/uvc_driver.c list_for_each_entry(stream, &dev->streams, list) { stream 2328 drivers/media/usb/uvc/uvc_driver.c if (stream->intf == intf) { stream 2329 drivers/media/usb/uvc/uvc_driver.c ret = uvc_video_resume(stream, reset); stream 2331 drivers/media/usb/uvc/uvc_driver.c uvc_queue_streamoff(&stream->queue, stream 2332 drivers/media/usb/uvc/uvc_driver.c stream->queue.queue.type); stream 101 drivers/media/usb/uvc/uvc_isight.c struct uvc_streaming *stream = uvc_urb->stream; stream 120 drivers/media/usb/uvc/uvc_isight.c ret = isight_decode(&stream->queue, buf, stream 130 drivers/media/usb/uvc/uvc_isight.c buf = uvc_queue_next_buffer(&stream->queue, stream 29 drivers/media/usb/uvc/uvc_metadata.c struct uvc_streaming *stream = video_get_drvdata(vfh->vdev); stream 30 drivers/media/usb/uvc/uvc_metadata.c struct uvc_video_chain *chain = stream->chain; stream 34 drivers/media/usb/uvc/uvc_metadata.c usb_make_path(stream->dev->udev, cap->bus_info, sizeof(cap->bus_info)); stream 45 drivers/media/usb/uvc/uvc_metadata.c struct uvc_streaming *stream = video_get_drvdata(vfh->vdev); stream 53 drivers/media/usb/uvc/uvc_metadata.c fmt->dataformat = stream->meta.format; stream 63 drivers/media/usb/uvc/uvc_metadata.c struct uvc_streaming *stream = video_get_drvdata(vfh->vdev); stream 64 drivers/media/usb/uvc/uvc_metadata.c struct uvc_device *dev = stream->dev; stream 84 drivers/media/usb/uvc/uvc_metadata.c struct uvc_streaming *stream = video_get_drvdata(vfh->vdev); stream 97 drivers/media/usb/uvc/uvc_metadata.c mutex_lock(&stream->mutex); stream 99 drivers/media/usb/uvc/uvc_metadata.c if (uvc_queue_allocated(&stream->queue)) stream 102 drivers/media/usb/uvc/uvc_metadata.c stream->meta.format = fmt->dataformat; stream 104 drivers/media/usb/uvc/uvc_metadata.c mutex_unlock(&stream->mutex); stream 113 drivers/media/usb/uvc/uvc_metadata.c struct uvc_streaming *stream = video_get_drvdata(vfh->vdev); stream 114 drivers/media/usb/uvc/uvc_metadata.c struct uvc_device *dev = stream->dev; stream 159 drivers/media/usb/uvc/uvc_metadata.c int uvc_meta_register(struct uvc_streaming *stream) stream 161 drivers/media/usb/uvc/uvc_metadata.c struct uvc_device *dev = stream->dev; stream 162 drivers/media/usb/uvc/uvc_metadata.c struct video_device *vdev = &stream->meta.vdev; stream 163 drivers/media/usb/uvc/uvc_metadata.c struct uvc_video_queue *queue = &stream->meta.queue; stream 165 drivers/media/usb/uvc/uvc_metadata.c stream->meta.format = V4L2_META_FMT_UVC; stream 173 drivers/media/usb/uvc/uvc_metadata.c return uvc_register_video_device(dev, stream, vdev, queue, stream 77 drivers/media/usb/uvc/uvc_queue.c struct uvc_streaming *stream; stream 86 drivers/media/usb/uvc/uvc_queue.c stream = uvc_queue_to_stream(queue); stream 87 drivers/media/usb/uvc/uvc_queue.c size = stream->ctrl.dwMaxVideoFrameSize; stream 157 drivers/media/usb/uvc/uvc_queue.c struct uvc_streaming *stream = uvc_queue_to_stream(queue); stream 161 drivers/media/usb/uvc/uvc_queue.c uvc_video_clock_update(stream, vbuf, buf); stream 167 drivers/media/usb/uvc/uvc_queue.c struct uvc_streaming *stream = uvc_queue_to_stream(queue); stream 174 drivers/media/usb/uvc/uvc_queue.c ret = uvc_video_start_streaming(stream); stream 150 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_v4l2_try_format(struct uvc_streaming *stream, stream 163 drivers/media/usb/uvc/uvc_v4l2.c if (fmt->type != stream->type) stream 175 drivers/media/usb/uvc/uvc_v4l2.c for (i = 0; i < stream->nformats; ++i) { stream 176 drivers/media/usb/uvc/uvc_v4l2.c format = &stream->format[i]; stream 181 drivers/media/usb/uvc/uvc_v4l2.c if (i == stream->nformats) { stream 182 drivers/media/usb/uvc/uvc_v4l2.c format = stream->def_format; stream 239 drivers/media/usb/uvc/uvc_v4l2.c mutex_lock(&stream->mutex); stream 240 drivers/media/usb/uvc/uvc_v4l2.c if (stream->dev->quirks & UVC_QUIRK_PROBE_EXTRAFIELDS) stream 242 drivers/media/usb/uvc/uvc_v4l2.c stream->ctrl.dwMaxVideoFrameSize; stream 245 drivers/media/usb/uvc/uvc_v4l2.c ret = uvc_probe_video(stream, probe); stream 246 drivers/media/usb/uvc/uvc_v4l2.c mutex_unlock(&stream->mutex); stream 266 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_v4l2_get_format(struct uvc_streaming *stream, stream 273 drivers/media/usb/uvc/uvc_v4l2.c if (fmt->type != stream->type) stream 276 drivers/media/usb/uvc/uvc_v4l2.c mutex_lock(&stream->mutex); stream 277 drivers/media/usb/uvc/uvc_v4l2.c format = stream->cur_format; stream 278 drivers/media/usb/uvc/uvc_v4l2.c frame = stream->cur_frame; stream 290 drivers/media/usb/uvc/uvc_v4l2.c fmt->fmt.pix.sizeimage = stream->ctrl.dwMaxVideoFrameSize; stream 294 drivers/media/usb/uvc/uvc_v4l2.c mutex_unlock(&stream->mutex); stream 298 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_v4l2_set_format(struct uvc_streaming *stream, stream 306 drivers/media/usb/uvc/uvc_v4l2.c if (fmt->type != stream->type) stream 309 drivers/media/usb/uvc/uvc_v4l2.c ret = uvc_v4l2_try_format(stream, fmt, &probe, &format, &frame); stream 313 drivers/media/usb/uvc/uvc_v4l2.c mutex_lock(&stream->mutex); stream 315 drivers/media/usb/uvc/uvc_v4l2.c if (uvc_queue_allocated(&stream->queue)) { stream 320 drivers/media/usb/uvc/uvc_v4l2.c stream->ctrl = probe; stream 321 drivers/media/usb/uvc/uvc_v4l2.c stream->cur_format = format; stream 322 drivers/media/usb/uvc/uvc_v4l2.c stream->cur_frame = frame; stream 325 drivers/media/usb/uvc/uvc_v4l2.c mutex_unlock(&stream->mutex); stream 329 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_v4l2_get_streamparm(struct uvc_streaming *stream, stream 334 drivers/media/usb/uvc/uvc_v4l2.c if (parm->type != stream->type) stream 337 drivers/media/usb/uvc/uvc_v4l2.c mutex_lock(&stream->mutex); stream 338 drivers/media/usb/uvc/uvc_v4l2.c numerator = stream->ctrl.dwFrameInterval; stream 339 drivers/media/usb/uvc/uvc_v4l2.c mutex_unlock(&stream->mutex); stream 345 drivers/media/usb/uvc/uvc_v4l2.c parm->type = stream->type; stream 347 drivers/media/usb/uvc/uvc_v4l2.c if (stream->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) { stream 364 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_v4l2_set_streamparm(struct uvc_streaming *stream, stream 375 drivers/media/usb/uvc/uvc_v4l2.c if (parm->type != stream->type) stream 388 drivers/media/usb/uvc/uvc_v4l2.c mutex_lock(&stream->mutex); stream 390 drivers/media/usb/uvc/uvc_v4l2.c if (uvc_queue_streaming(&stream->queue)) { stream 391 drivers/media/usb/uvc/uvc_v4l2.c mutex_unlock(&stream->mutex); stream 395 drivers/media/usb/uvc/uvc_v4l2.c format = stream->cur_format; stream 396 drivers/media/usb/uvc/uvc_v4l2.c frame = stream->cur_frame; stream 397 drivers/media/usb/uvc/uvc_v4l2.c probe = stream->ctrl; stream 405 drivers/media/usb/uvc/uvc_v4l2.c if (&format->frame[i] == stream->cur_frame) stream 408 drivers/media/usb/uvc/uvc_v4l2.c if (format->frame[i].wWidth != stream->cur_frame->wWidth || stream 409 drivers/media/usb/uvc/uvc_v4l2.c format->frame[i].wHeight != stream->cur_frame->wHeight) stream 424 drivers/media/usb/uvc/uvc_v4l2.c ret = uvc_probe_video(stream, &probe); stream 426 drivers/media/usb/uvc/uvc_v4l2.c mutex_unlock(&stream->mutex); stream 430 drivers/media/usb/uvc/uvc_v4l2.c stream->ctrl = probe; stream 431 drivers/media/usb/uvc/uvc_v4l2.c stream->cur_frame = frame; stream 432 drivers/media/usb/uvc/uvc_v4l2.c mutex_unlock(&stream->mutex); stream 482 drivers/media/usb/uvc/uvc_v4l2.c if (atomic_inc_return(&handle->stream->active) != 1) { stream 483 drivers/media/usb/uvc/uvc_v4l2.c atomic_dec(&handle->stream->active); stream 494 drivers/media/usb/uvc/uvc_v4l2.c atomic_dec(&handle->stream->active); stream 510 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream; stream 515 drivers/media/usb/uvc/uvc_v4l2.c stream = video_drvdata(file); stream 517 drivers/media/usb/uvc/uvc_v4l2.c ret = usb_autopm_get_interface(stream->dev->intf); stream 524 drivers/media/usb/uvc/uvc_v4l2.c usb_autopm_put_interface(stream->dev->intf); stream 528 drivers/media/usb/uvc/uvc_v4l2.c mutex_lock(&stream->dev->lock); stream 529 drivers/media/usb/uvc/uvc_v4l2.c if (stream->dev->users == 0) { stream 530 drivers/media/usb/uvc/uvc_v4l2.c ret = uvc_status_start(stream->dev, GFP_KERNEL); stream 532 drivers/media/usb/uvc/uvc_v4l2.c mutex_unlock(&stream->dev->lock); stream 533 drivers/media/usb/uvc/uvc_v4l2.c usb_autopm_put_interface(stream->dev->intf); stream 539 drivers/media/usb/uvc/uvc_v4l2.c stream->dev->users++; stream 540 drivers/media/usb/uvc/uvc_v4l2.c mutex_unlock(&stream->dev->lock); stream 542 drivers/media/usb/uvc/uvc_v4l2.c v4l2_fh_init(&handle->vfh, &stream->vdev); stream 544 drivers/media/usb/uvc/uvc_v4l2.c handle->chain = stream->chain; stream 545 drivers/media/usb/uvc/uvc_v4l2.c handle->stream = stream; stream 555 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 561 drivers/media/usb/uvc/uvc_v4l2.c uvc_queue_release(&stream->queue); stream 570 drivers/media/usb/uvc/uvc_v4l2.c mutex_lock(&stream->dev->lock); stream 571 drivers/media/usb/uvc/uvc_v4l2.c if (--stream->dev->users == 0) stream 572 drivers/media/usb/uvc/uvc_v4l2.c uvc_status_stop(stream->dev); stream 573 drivers/media/usb/uvc/uvc_v4l2.c mutex_unlock(&stream->dev->lock); stream 575 drivers/media/usb/uvc/uvc_v4l2.c usb_autopm_put_interface(stream->dev->intf); stream 585 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 589 drivers/media/usb/uvc/uvc_v4l2.c usb_make_path(stream->dev->udev, cap->bus_info, sizeof(cap->bus_info)); stream 596 drivers/media/usb/uvc/uvc_v4l2.c static int uvc_ioctl_enum_fmt(struct uvc_streaming *stream, stream 603 drivers/media/usb/uvc/uvc_v4l2.c if (fmt->type != stream->type || fmt->index >= stream->nformats) stream 610 drivers/media/usb/uvc/uvc_v4l2.c format = &stream->format[fmt->index]; stream 624 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 626 drivers/media/usb/uvc/uvc_v4l2.c return uvc_ioctl_enum_fmt(stream, fmt); stream 633 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 635 drivers/media/usb/uvc/uvc_v4l2.c return uvc_ioctl_enum_fmt(stream, fmt); stream 642 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 644 drivers/media/usb/uvc/uvc_v4l2.c return uvc_v4l2_get_format(stream, fmt); stream 651 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 653 drivers/media/usb/uvc/uvc_v4l2.c return uvc_v4l2_get_format(stream, fmt); stream 660 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 667 drivers/media/usb/uvc/uvc_v4l2.c return uvc_v4l2_set_format(stream, fmt); stream 674 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 681 drivers/media/usb/uvc/uvc_v4l2.c return uvc_v4l2_set_format(stream, fmt); stream 688 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 691 drivers/media/usb/uvc/uvc_v4l2.c return uvc_v4l2_try_format(stream, fmt, &probe, NULL, NULL); stream 698 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 701 drivers/media/usb/uvc/uvc_v4l2.c return uvc_v4l2_try_format(stream, fmt, &probe, NULL, NULL); stream 708 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 715 drivers/media/usb/uvc/uvc_v4l2.c mutex_lock(&stream->mutex); stream 716 drivers/media/usb/uvc/uvc_v4l2.c ret = uvc_request_buffers(&stream->queue, rb); stream 717 drivers/media/usb/uvc/uvc_v4l2.c mutex_unlock(&stream->mutex); stream 731 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 736 drivers/media/usb/uvc/uvc_v4l2.c return uvc_query_buffer(&stream->queue, buf); stream 742 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 747 drivers/media/usb/uvc/uvc_v4l2.c return uvc_queue_buffer(&stream->queue, stream 748 drivers/media/usb/uvc/uvc_v4l2.c stream->vdev.v4l2_dev->mdev, buf); stream 755 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 760 drivers/media/usb/uvc/uvc_v4l2.c return uvc_export_buffer(&stream->queue, exp); stream 766 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 771 drivers/media/usb/uvc/uvc_v4l2.c return uvc_dequeue_buffer(&stream->queue, buf, stream 779 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 786 drivers/media/usb/uvc/uvc_v4l2.c return uvc_create_buffers(&stream->queue, cb); stream 793 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 799 drivers/media/usb/uvc/uvc_v4l2.c mutex_lock(&stream->mutex); stream 800 drivers/media/usb/uvc/uvc_v4l2.c ret = uvc_queue_streamon(&stream->queue, type); stream 801 drivers/media/usb/uvc/uvc_v4l2.c mutex_unlock(&stream->mutex); stream 810 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 815 drivers/media/usb/uvc/uvc_v4l2.c mutex_lock(&stream->mutex); stream 816 drivers/media/usb/uvc/uvc_v4l2.c uvc_queue_streamoff(&stream->queue, type); stream 817 drivers/media/usb/uvc/uvc_v4l2.c mutex_unlock(&stream->mutex); stream 1111 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 1113 drivers/media/usb/uvc/uvc_v4l2.c if (sel->type != stream->type) stream 1119 drivers/media/usb/uvc/uvc_v4l2.c if (stream->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) stream 1124 drivers/media/usb/uvc/uvc_v4l2.c if (stream->type != V4L2_BUF_TYPE_VIDEO_OUTPUT) stream 1133 drivers/media/usb/uvc/uvc_v4l2.c mutex_lock(&stream->mutex); stream 1134 drivers/media/usb/uvc/uvc_v4l2.c sel->r.width = stream->cur_frame->wWidth; stream 1135 drivers/media/usb/uvc/uvc_v4l2.c sel->r.height = stream->cur_frame->wHeight; stream 1136 drivers/media/usb/uvc/uvc_v4l2.c mutex_unlock(&stream->mutex); stream 1145 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 1147 drivers/media/usb/uvc/uvc_v4l2.c return uvc_v4l2_get_streamparm(stream, parm); stream 1154 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 1161 drivers/media/usb/uvc/uvc_v4l2.c return uvc_v4l2_set_streamparm(stream, parm); stream 1168 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 1175 drivers/media/usb/uvc/uvc_v4l2.c for (i = 0; i < stream->nformats; i++) { stream 1176 drivers/media/usb/uvc/uvc_v4l2.c if (stream->format[i].fcc == fsize->pixel_format) { stream 1177 drivers/media/usb/uvc/uvc_v4l2.c format = &stream->format[i]; stream 1208 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 1216 drivers/media/usb/uvc/uvc_v4l2.c for (i = 0; i < stream->nformats; i++) { stream 1217 drivers/media/usb/uvc/uvc_v4l2.c if (stream->format[i].fcc == fival->pixel_format) { stream 1218 drivers/media/usb/uvc/uvc_v4l2.c format = &stream->format[i]; stream 1437 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 1441 drivers/media/usb/uvc/uvc_v4l2.c return uvc_queue_mmap(&stream->queue, vma); stream 1447 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 1451 drivers/media/usb/uvc/uvc_v4l2.c return uvc_queue_poll(&stream->queue, file, wait); stream 1460 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_streaming *stream = handle->stream; stream 1464 drivers/media/usb/uvc/uvc_v4l2.c return uvc_queue_get_unmapped_area(&stream->queue, pgoff); stream 124 drivers/media/usb/uvc/uvc_video.c static void uvc_fixup_video_ctrl(struct uvc_streaming *stream, stream 131 drivers/media/usb/uvc/uvc_video.c for (i = 0; i < stream->nformats; ++i) { stream 132 drivers/media/usb/uvc/uvc_video.c if (stream->format[i].index == ctrl->bFormatIndex) { stream 133 drivers/media/usb/uvc/uvc_video.c format = &stream->format[i]; stream 153 drivers/media/usb/uvc/uvc_video.c stream->dev->uvc_version < 0x0110)) stream 166 drivers/media/usb/uvc/uvc_video.c stream->dev->quirks & UVC_QUIRK_FIX_BANDWIDTH && stream 167 drivers/media/usb/uvc/uvc_video.c stream->intf->num_altsetting > 1) { stream 184 drivers/media/usb/uvc/uvc_video.c if (stream->dev->udev->speed == USB_SPEED_HIGH) stream 201 drivers/media/usb/uvc/uvc_video.c static size_t uvc_video_ctrl_size(struct uvc_streaming *stream) stream 207 drivers/media/usb/uvc/uvc_video.c if (stream->dev->uvc_version < 0x0110) stream 209 drivers/media/usb/uvc/uvc_video.c else if (stream->dev->uvc_version < 0x0150) stream 215 drivers/media/usb/uvc/uvc_video.c static int uvc_get_video_ctrl(struct uvc_streaming *stream, stream 218 drivers/media/usb/uvc/uvc_video.c u16 size = uvc_video_ctrl_size(stream); stream 222 drivers/media/usb/uvc/uvc_video.c if ((stream->dev->quirks & UVC_QUIRK_PROBE_DEF) && stream 230 drivers/media/usb/uvc/uvc_video.c ret = __uvc_query_ctrl(stream->dev, query, 0, stream->intfnum, stream 239 drivers/media/usb/uvc/uvc_video.c uvc_warn_once(stream->dev, UVC_WARN_MINMAX, "UVC non " stream 251 drivers/media/usb/uvc/uvc_video.c uvc_warn_once(stream->dev, UVC_WARN_PROBE_DEF, "UVC non " stream 283 drivers/media/usb/uvc/uvc_video.c ctrl->dwClockFrequency = stream->dev->clock_frequency; stream 294 drivers/media/usb/uvc/uvc_video.c uvc_fixup_video_ctrl(stream, ctrl); stream 302 drivers/media/usb/uvc/uvc_video.c static int uvc_set_video_ctrl(struct uvc_streaming *stream, stream 305 drivers/media/usb/uvc/uvc_video.c u16 size = uvc_video_ctrl_size(stream); stream 333 drivers/media/usb/uvc/uvc_video.c ret = __uvc_query_ctrl(stream->dev, UVC_SET_CUR, 0, stream->intfnum, stream 347 drivers/media/usb/uvc/uvc_video.c int uvc_probe_video(struct uvc_streaming *stream, stream 362 drivers/media/usb/uvc/uvc_video.c ret = uvc_set_video_ctrl(stream, probe, 1); stream 367 drivers/media/usb/uvc/uvc_video.c if (!(stream->dev->quirks & UVC_QUIRK_PROBE_MINMAX)) { stream 368 drivers/media/usb/uvc/uvc_video.c ret = uvc_get_video_ctrl(stream, &probe_min, 1, UVC_GET_MIN); stream 371 drivers/media/usb/uvc/uvc_video.c ret = uvc_get_video_ctrl(stream, &probe_max, 1, UVC_GET_MAX); stream 379 drivers/media/usb/uvc/uvc_video.c ret = uvc_set_video_ctrl(stream, probe, 1); stream 382 drivers/media/usb/uvc/uvc_video.c ret = uvc_get_video_ctrl(stream, probe, 1, UVC_GET_CUR); stream 386 drivers/media/usb/uvc/uvc_video.c if (stream->intf->num_altsetting == 1) stream 390 drivers/media/usb/uvc/uvc_video.c if (bandwidth <= stream->maxpsize) stream 393 drivers/media/usb/uvc/uvc_video.c if (stream->dev->quirks & UVC_QUIRK_PROBE_MINMAX) { stream 409 drivers/media/usb/uvc/uvc_video.c static int uvc_commit_video(struct uvc_streaming *stream, stream 412 drivers/media/usb/uvc/uvc_video.c return uvc_set_video_ctrl(stream, probe, 0); stream 428 drivers/media/usb/uvc/uvc_video.c uvc_video_clock_decode(struct uvc_streaming *stream, struct uvc_buffer *buf, stream 480 drivers/media/usb/uvc/uvc_video.c if (dev_sof == stream->clock.last_sof) stream 483 drivers/media/usb/uvc/uvc_video.c stream->clock.last_sof = dev_sof; stream 485 drivers/media/usb/uvc/uvc_video.c host_sof = usb_get_current_frame_number(stream->dev->udev); stream 507 drivers/media/usb/uvc/uvc_video.c if (stream->clock.sof_offset == (u16)-1) { stream 510 drivers/media/usb/uvc/uvc_video.c stream->clock.sof_offset = delta_sof; stream 512 drivers/media/usb/uvc/uvc_video.c stream->clock.sof_offset = 0; stream 515 drivers/media/usb/uvc/uvc_video.c dev_sof = (dev_sof + stream->clock.sof_offset) & 2047; stream 517 drivers/media/usb/uvc/uvc_video.c spin_lock_irqsave(&stream->clock.lock, flags); stream 519 drivers/media/usb/uvc/uvc_video.c sample = &stream->clock.samples[stream->clock.head]; stream 526 drivers/media/usb/uvc/uvc_video.c stream->clock.head = (stream->clock.head + 1) % stream->clock.size; stream 528 drivers/media/usb/uvc/uvc_video.c if (stream->clock.count < stream->clock.size) stream 529 drivers/media/usb/uvc/uvc_video.c stream->clock.count++; stream 531 drivers/media/usb/uvc/uvc_video.c spin_unlock_irqrestore(&stream->clock.lock, flags); stream 534 drivers/media/usb/uvc/uvc_video.c static void uvc_video_clock_reset(struct uvc_streaming *stream) stream 536 drivers/media/usb/uvc/uvc_video.c struct uvc_clock *clock = &stream->clock; stream 544 drivers/media/usb/uvc/uvc_video.c static int uvc_video_clock_init(struct uvc_streaming *stream) stream 546 drivers/media/usb/uvc/uvc_video.c struct uvc_clock *clock = &stream->clock; stream 556 drivers/media/usb/uvc/uvc_video.c uvc_video_clock_reset(stream); stream 561 drivers/media/usb/uvc/uvc_video.c static void uvc_video_clock_cleanup(struct uvc_streaming *stream) stream 563 drivers/media/usb/uvc/uvc_video.c kfree(stream->clock.samples); stream 564 drivers/media/usb/uvc/uvc_video.c stream->clock.samples = NULL; stream 655 drivers/media/usb/uvc/uvc_video.c void uvc_video_clock_update(struct uvc_streaming *stream, stream 659 drivers/media/usb/uvc/uvc_video.c struct uvc_clock *clock = &stream->clock; stream 710 drivers/media/usb/uvc/uvc_video.c stream->dev->name, buf->pts, stream 745 drivers/media/usb/uvc/uvc_video.c stream->dev->name, stream 762 drivers/media/usb/uvc/uvc_video.c static void uvc_video_stats_decode(struct uvc_streaming *stream, stream 772 drivers/media/usb/uvc/uvc_video.c if (stream->stats.stream.nb_frames == 0 && stream 773 drivers/media/usb/uvc/uvc_video.c stream->stats.frame.nb_packets == 0) stream 774 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.start_ts = ktime_get(); stream 797 drivers/media/usb/uvc/uvc_video.c stream->stats.frame.nb_invalid++; stream 811 drivers/media/usb/uvc/uvc_video.c if (has_pts && stream->stats.frame.nb_pts) { stream 812 drivers/media/usb/uvc/uvc_video.c if (stream->stats.frame.pts != pts) { stream 813 drivers/media/usb/uvc/uvc_video.c stream->stats.frame.nb_pts_diffs++; stream 814 drivers/media/usb/uvc/uvc_video.c stream->stats.frame.last_pts_diff = stream 815 drivers/media/usb/uvc/uvc_video.c stream->stats.frame.nb_packets; stream 820 drivers/media/usb/uvc/uvc_video.c stream->stats.frame.nb_pts++; stream 821 drivers/media/usb/uvc/uvc_video.c stream->stats.frame.pts = pts; stream 827 drivers/media/usb/uvc/uvc_video.c if (stream->stats.frame.size == 0) { stream 829 drivers/media/usb/uvc/uvc_video.c stream->stats.frame.has_initial_pts = has_pts; stream 831 drivers/media/usb/uvc/uvc_video.c stream->stats.frame.has_early_pts = true; stream 835 drivers/media/usb/uvc/uvc_video.c if (has_scr && stream->stats.frame.nb_scr) { stream 836 drivers/media/usb/uvc/uvc_video.c if (stream->stats.frame.scr_stc != scr_stc) stream 837 drivers/media/usb/uvc/uvc_video.c stream->stats.frame.nb_scr_diffs++; stream 842 drivers/media/usb/uvc/uvc_video.c if (stream->stats.stream.nb_frames > 0 || stream 843 drivers/media/usb/uvc/uvc_video.c stream->stats.frame.nb_scr > 0) stream 844 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.scr_sof_count += stream 845 drivers/media/usb/uvc/uvc_video.c (scr_sof - stream->stats.stream.scr_sof) % 2048; stream 846 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.scr_sof = scr_sof; stream 848 drivers/media/usb/uvc/uvc_video.c stream->stats.frame.nb_scr++; stream 849 drivers/media/usb/uvc/uvc_video.c stream->stats.frame.scr_stc = scr_stc; stream 850 drivers/media/usb/uvc/uvc_video.c stream->stats.frame.scr_sof = scr_sof; stream 852 drivers/media/usb/uvc/uvc_video.c if (scr_sof < stream->stats.stream.min_sof) stream 853 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.min_sof = scr_sof; stream 854 drivers/media/usb/uvc/uvc_video.c if (scr_sof > stream->stats.stream.max_sof) stream 855 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.max_sof = scr_sof; stream 859 drivers/media/usb/uvc/uvc_video.c if (stream->stats.frame.size == 0 && len > header_size) stream 860 drivers/media/usb/uvc/uvc_video.c stream->stats.frame.first_data = stream->stats.frame.nb_packets; stream 863 drivers/media/usb/uvc/uvc_video.c stream->stats.frame.size += len - header_size; stream 866 drivers/media/usb/uvc/uvc_video.c stream->stats.frame.nb_packets++; stream 868 drivers/media/usb/uvc/uvc_video.c stream->stats.frame.nb_empty++; stream 871 drivers/media/usb/uvc/uvc_video.c stream->stats.frame.nb_errors++; stream 874 drivers/media/usb/uvc/uvc_video.c static void uvc_video_stats_update(struct uvc_streaming *stream) stream 876 drivers/media/usb/uvc/uvc_video.c struct uvc_stats_frame *frame = &stream->stats.frame; stream 881 drivers/media/usb/uvc/uvc_video.c stream->sequence, frame->first_data, stream 889 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.nb_frames++; stream 890 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.nb_packets += stream->stats.frame.nb_packets; stream 891 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.nb_empty += stream->stats.frame.nb_empty; stream 892 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.nb_errors += stream->stats.frame.nb_errors; stream 893 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.nb_invalid += stream->stats.frame.nb_invalid; stream 896 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.nb_pts_early++; stream 898 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.nb_pts_initial++; stream 900 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.nb_pts_constant++; stream 902 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.nb_scr_count_ok++; stream 904 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.nb_scr_diffs_ok++; stream 906 drivers/media/usb/uvc/uvc_video.c memset(&stream->stats.frame, 0, sizeof(stream->stats.frame)); stream 909 drivers/media/usb/uvc/uvc_video.c size_t uvc_video_stats_dump(struct uvc_streaming *stream, char *buf, stream 919 drivers/media/usb/uvc/uvc_video.c duration = ktime_ms_delta(stream->stats.stream.stop_ts, stream 920 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.start_ts); stream 922 drivers/media/usb/uvc/uvc_video.c scr_sof_freq = stream->stats.stream.scr_sof_count * 1000 stream 930 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.nb_frames, stream 931 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.nb_packets, stream 932 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.nb_empty, stream 933 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.nb_errors, stream 934 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.nb_invalid); stream 937 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.nb_pts_early, stream 938 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.nb_pts_initial, stream 939 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.nb_pts_constant); stream 942 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.nb_scr_count_ok, stream 943 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.nb_scr_diffs_ok); stream 946 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.min_sof, stream 947 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.max_sof, stream 953 drivers/media/usb/uvc/uvc_video.c static void uvc_video_stats_start(struct uvc_streaming *stream) stream 955 drivers/media/usb/uvc/uvc_video.c memset(&stream->stats, 0, sizeof(stream->stats)); stream 956 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.min_sof = 2048; stream 959 drivers/media/usb/uvc/uvc_video.c static void uvc_video_stats_stop(struct uvc_streaming *stream) stream 961 drivers/media/usb/uvc/uvc_video.c stream->stats.stream.stop_ts = ktime_get(); stream 1003 drivers/media/usb/uvc/uvc_video.c static int uvc_video_decode_start(struct uvc_streaming *stream, stream 1014 drivers/media/usb/uvc/uvc_video.c stream->stats.frame.nb_invalid++; stream 1023 drivers/media/usb/uvc/uvc_video.c if (stream->last_fid != fid) { stream 1024 drivers/media/usb/uvc/uvc_video.c stream->sequence++; stream 1025 drivers/media/usb/uvc/uvc_video.c if (stream->sequence) stream 1026 drivers/media/usb/uvc/uvc_video.c uvc_video_stats_update(stream); stream 1029 drivers/media/usb/uvc/uvc_video.c uvc_video_clock_decode(stream, buf, data, len); stream 1030 drivers/media/usb/uvc/uvc_video.c uvc_video_stats_decode(stream, data, len); stream 1036 drivers/media/usb/uvc/uvc_video.c stream->last_fid = fid; stream 1056 drivers/media/usb/uvc/uvc_video.c if (fid == stream->last_fid) { stream 1059 drivers/media/usb/uvc/uvc_video.c if ((stream->dev->quirks & UVC_QUIRK_STREAM_NO_FID) && stream 1061 drivers/media/usb/uvc/uvc_video.c stream->last_fid ^= UVC_STREAM_FID; stream 1066 drivers/media/usb/uvc/uvc_video.c buf->buf.sequence = stream->sequence; stream 1088 drivers/media/usb/uvc/uvc_video.c if (fid != stream->last_fid && buf->bytesused != 0) { stream 1095 drivers/media/usb/uvc/uvc_video.c stream->last_fid = fid; stream 1159 drivers/media/usb/uvc/uvc_video.c static void uvc_video_decode_end(struct uvc_streaming *stream, stream 1168 drivers/media/usb/uvc/uvc_video.c if (stream->dev->quirks & UVC_QUIRK_STREAM_NO_FID) stream 1169 drivers/media/usb/uvc/uvc_video.c stream->last_fid ^= UVC_STREAM_FID; stream 1184 drivers/media/usb/uvc/uvc_video.c static int uvc_video_encode_header(struct uvc_streaming *stream, stream 1189 drivers/media/usb/uvc/uvc_video.c | (stream->last_fid & UVC_STREAM_FID); stream 1193 drivers/media/usb/uvc/uvc_video.c static int uvc_video_encode_data(struct uvc_streaming *stream, stream 1196 drivers/media/usb/uvc/uvc_video.c struct uvc_video_queue *queue = &stream->queue; stream 1203 drivers/media/usb/uvc/uvc_video.c nbytes = min(stream->bulk.max_payload_size - stream->bulk.payload_size, stream 1227 drivers/media/usb/uvc/uvc_video.c static void uvc_video_decode_meta(struct uvc_streaming *stream, stream 1261 drivers/media/usb/uvc/uvc_video.c if (stream->meta.format == V4L2_META_FMT_UVC) stream 1265 drivers/media/usb/uvc/uvc_video.c !memcmp(scr, stream->clock.last_scr, 6))) stream 1271 drivers/media/usb/uvc/uvc_video.c sof = usb_get_current_frame_number(stream->dev->udev); stream 1277 drivers/media/usb/uvc/uvc_video.c memcpy(stream->clock.last_scr, scr, 6); stream 1298 drivers/media/usb/uvc/uvc_video.c static void uvc_video_validate_buffer(const struct uvc_streaming *stream, stream 1301 drivers/media/usb/uvc/uvc_video.c if (stream->ctrl.dwMaxVideoFrameSize != buf->bytesused && stream 1302 drivers/media/usb/uvc/uvc_video.c !(stream->cur_format->flags & UVC_FMT_FLAG_COMPRESSED)) stream 1310 drivers/media/usb/uvc/uvc_video.c static void uvc_video_next_buffers(struct uvc_streaming *stream, stream 1313 drivers/media/usb/uvc/uvc_video.c uvc_video_validate_buffer(stream, *video_buf); stream 1326 drivers/media/usb/uvc/uvc_video.c *meta_buf = uvc_queue_next_buffer(&stream->meta.queue, stream 1329 drivers/media/usb/uvc/uvc_video.c *video_buf = uvc_queue_next_buffer(&stream->queue, *video_buf); stream 1336 drivers/media/usb/uvc/uvc_video.c struct uvc_streaming *stream = uvc_urb->stream; stream 1353 drivers/media/usb/uvc/uvc_video.c ret = uvc_video_decode_start(stream, buf, mem, stream 1356 drivers/media/usb/uvc/uvc_video.c uvc_video_next_buffers(stream, &buf, &meta_buf); stream 1362 drivers/media/usb/uvc/uvc_video.c uvc_video_decode_meta(stream, meta_buf, mem, ret); stream 1369 drivers/media/usb/uvc/uvc_video.c uvc_video_decode_end(stream, buf, mem, stream 1373 drivers/media/usb/uvc/uvc_video.c uvc_video_next_buffers(stream, &buf, &meta_buf); stream 1381 drivers/media/usb/uvc/uvc_video.c struct uvc_streaming *stream = uvc_urb->stream; stream 1389 drivers/media/usb/uvc/uvc_video.c if (urb->actual_length == 0 && stream->bulk.header_size == 0) stream 1394 drivers/media/usb/uvc/uvc_video.c stream->bulk.payload_size += len; stream 1399 drivers/media/usb/uvc/uvc_video.c if (stream->bulk.header_size == 0 && !stream->bulk.skip_payload) { stream 1401 drivers/media/usb/uvc/uvc_video.c ret = uvc_video_decode_start(stream, buf, mem, len); stream 1403 drivers/media/usb/uvc/uvc_video.c uvc_video_next_buffers(stream, &buf, &meta_buf); stream 1408 drivers/media/usb/uvc/uvc_video.c stream->bulk.skip_payload = 1; stream 1410 drivers/media/usb/uvc/uvc_video.c memcpy(stream->bulk.header, mem, ret); stream 1411 drivers/media/usb/uvc/uvc_video.c stream->bulk.header_size = ret; stream 1413 drivers/media/usb/uvc/uvc_video.c uvc_video_decode_meta(stream, meta_buf, mem, ret); stream 1426 drivers/media/usb/uvc/uvc_video.c if (!stream->bulk.skip_payload && buf != NULL) stream 1433 drivers/media/usb/uvc/uvc_video.c stream->bulk.payload_size >= stream->bulk.max_payload_size) { stream 1434 drivers/media/usb/uvc/uvc_video.c if (!stream->bulk.skip_payload && buf != NULL) { stream 1435 drivers/media/usb/uvc/uvc_video.c uvc_video_decode_end(stream, buf, stream->bulk.header, stream 1436 drivers/media/usb/uvc/uvc_video.c stream->bulk.payload_size); stream 1438 drivers/media/usb/uvc/uvc_video.c uvc_video_next_buffers(stream, &buf, &meta_buf); stream 1441 drivers/media/usb/uvc/uvc_video.c stream->bulk.header_size = 0; stream 1442 drivers/media/usb/uvc/uvc_video.c stream->bulk.skip_payload = 0; stream 1443 drivers/media/usb/uvc/uvc_video.c stream->bulk.payload_size = 0; stream 1451 drivers/media/usb/uvc/uvc_video.c struct uvc_streaming *stream = uvc_urb->stream; stream 1454 drivers/media/usb/uvc/uvc_video.c int len = stream->urb_size, ret; stream 1462 drivers/media/usb/uvc/uvc_video.c if (stream->bulk.header_size == 0) { stream 1463 drivers/media/usb/uvc/uvc_video.c ret = uvc_video_encode_header(stream, buf, mem, len); stream 1464 drivers/media/usb/uvc/uvc_video.c stream->bulk.header_size = ret; stream 1465 drivers/media/usb/uvc/uvc_video.c stream->bulk.payload_size += ret; stream 1471 drivers/media/usb/uvc/uvc_video.c ret = uvc_video_encode_data(stream, buf, mem, len); stream 1473 drivers/media/usb/uvc/uvc_video.c stream->bulk.payload_size += ret; stream 1476 drivers/media/usb/uvc/uvc_video.c if (buf->bytesused == stream->queue.buf_used || stream 1477 drivers/media/usb/uvc/uvc_video.c stream->bulk.payload_size == stream->bulk.max_payload_size) { stream 1478 drivers/media/usb/uvc/uvc_video.c if (buf->bytesused == stream->queue.buf_used) { stream 1479 drivers/media/usb/uvc/uvc_video.c stream->queue.buf_used = 0; stream 1481 drivers/media/usb/uvc/uvc_video.c buf->buf.sequence = ++stream->sequence; stream 1482 drivers/media/usb/uvc/uvc_video.c uvc_queue_next_buffer(&stream->queue, buf); stream 1483 drivers/media/usb/uvc/uvc_video.c stream->last_fid ^= UVC_STREAM_FID; stream 1486 drivers/media/usb/uvc/uvc_video.c stream->bulk.header_size = 0; stream 1487 drivers/media/usb/uvc/uvc_video.c stream->bulk.payload_size = 0; stream 1490 drivers/media/usb/uvc/uvc_video.c urb->transfer_buffer_length = stream->urb_size - len; stream 1496 drivers/media/usb/uvc/uvc_video.c struct uvc_streaming *stream = uvc_urb->stream; stream 1497 drivers/media/usb/uvc/uvc_video.c struct uvc_video_queue *queue = &stream->queue; stream 1498 drivers/media/usb/uvc/uvc_video.c struct uvc_video_queue *qmeta = &stream->meta.queue; stream 1499 drivers/media/usb/uvc/uvc_video.c struct vb2_queue *vb2_qmeta = stream->meta.vdev.queue; stream 1514 drivers/media/usb/uvc/uvc_video.c if (stream->frozen) stream 1542 drivers/media/usb/uvc/uvc_video.c stream->decode(uvc_urb, buf, buf_meta); stream 1554 drivers/media/usb/uvc/uvc_video.c queue_work(stream->async_wq, &uvc_urb->work); stream 1560 drivers/media/usb/uvc/uvc_video.c static void uvc_free_urb_buffers(struct uvc_streaming *stream) stream 1564 drivers/media/usb/uvc/uvc_video.c for_each_uvc_urb(uvc_urb, stream) { stream 1569 drivers/media/usb/uvc/uvc_video.c usb_free_coherent(stream->dev->udev, stream->urb_size, stream 1577 drivers/media/usb/uvc/uvc_video.c stream->urb_size = 0; stream 1591 drivers/media/usb/uvc/uvc_video.c static int uvc_alloc_urb_buffers(struct uvc_streaming *stream, stream 1598 drivers/media/usb/uvc/uvc_video.c if (stream->urb_size) stream 1599 drivers/media/usb/uvc/uvc_video.c return stream->urb_size / psize; stream 1611 drivers/media/usb/uvc/uvc_video.c struct uvc_urb *uvc_urb = &stream->uvc_urb[i]; stream 1613 drivers/media/usb/uvc/uvc_video.c stream->urb_size = psize * npackets; stream 1616 drivers/media/usb/uvc/uvc_video.c stream->dev->udev, stream->urb_size, stream 1620 drivers/media/usb/uvc/uvc_video.c kmalloc(stream->urb_size, gfp_flags | __GFP_NOWARN); stream 1623 drivers/media/usb/uvc/uvc_video.c uvc_free_urb_buffers(stream); stream 1627 drivers/media/usb/uvc/uvc_video.c uvc_urb->stream = stream; stream 1646 drivers/media/usb/uvc/uvc_video.c static void uvc_video_stop_transfer(struct uvc_streaming *stream, stream 1651 drivers/media/usb/uvc/uvc_video.c uvc_video_stats_stop(stream); stream 1658 drivers/media/usb/uvc/uvc_video.c for_each_uvc_urb(uvc_urb, stream) stream 1661 drivers/media/usb/uvc/uvc_video.c flush_workqueue(stream->async_wq); stream 1663 drivers/media/usb/uvc/uvc_video.c for_each_uvc_urb(uvc_urb, stream) { stream 1669 drivers/media/usb/uvc/uvc_video.c uvc_free_urb_buffers(stream); stream 1702 drivers/media/usb/uvc/uvc_video.c static int uvc_init_video_isoc(struct uvc_streaming *stream, stream 1711 drivers/media/usb/uvc/uvc_video.c psize = uvc_endpoint_max_bpi(stream->dev->udev, ep); stream 1712 drivers/media/usb/uvc/uvc_video.c size = stream->ctrl.dwMaxVideoFrameSize; stream 1714 drivers/media/usb/uvc/uvc_video.c npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags); stream 1720 drivers/media/usb/uvc/uvc_video.c for_each_uvc_urb(uvc_urb, stream) { stream 1723 drivers/media/usb/uvc/uvc_video.c uvc_video_stop_transfer(stream, 1); stream 1727 drivers/media/usb/uvc/uvc_video.c urb->dev = stream->dev->udev; stream 1729 drivers/media/usb/uvc/uvc_video.c urb->pipe = usb_rcvisocpipe(stream->dev->udev, stream 1758 drivers/media/usb/uvc/uvc_video.c static int uvc_init_video_bulk(struct uvc_streaming *stream, stream 1768 drivers/media/usb/uvc/uvc_video.c size = stream->ctrl.dwMaxPayloadTransferSize; stream 1769 drivers/media/usb/uvc/uvc_video.c stream->bulk.max_payload_size = size; stream 1771 drivers/media/usb/uvc/uvc_video.c npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags); stream 1778 drivers/media/usb/uvc/uvc_video.c pipe = usb_rcvbulkpipe(stream->dev->udev, stream 1781 drivers/media/usb/uvc/uvc_video.c pipe = usb_sndbulkpipe(stream->dev->udev, stream 1784 drivers/media/usb/uvc/uvc_video.c if (stream->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) stream 1787 drivers/media/usb/uvc/uvc_video.c for_each_uvc_urb(uvc_urb, stream) { stream 1790 drivers/media/usb/uvc/uvc_video.c uvc_video_stop_transfer(stream, 1); stream 1794 drivers/media/usb/uvc/uvc_video.c usb_fill_bulk_urb(urb, stream->dev->udev, pipe, uvc_urb->buffer, stream 1810 drivers/media/usb/uvc/uvc_video.c static int uvc_video_start_transfer(struct uvc_streaming *stream, stream 1813 drivers/media/usb/uvc/uvc_video.c struct usb_interface *intf = stream->intf; stream 1819 drivers/media/usb/uvc/uvc_video.c stream->sequence = -1; stream 1820 drivers/media/usb/uvc/uvc_video.c stream->last_fid = -1; stream 1821 drivers/media/usb/uvc/uvc_video.c stream->bulk.header_size = 0; stream 1822 drivers/media/usb/uvc/uvc_video.c stream->bulk.skip_payload = 0; stream 1823 drivers/media/usb/uvc/uvc_video.c stream->bulk.payload_size = 0; stream 1825 drivers/media/usb/uvc/uvc_video.c uvc_video_stats_start(stream); stream 1832 drivers/media/usb/uvc/uvc_video.c int intfnum = stream->intfnum; stream 1835 drivers/media/usb/uvc/uvc_video.c bandwidth = stream->ctrl.dwMaxPayloadTransferSize; stream 1852 drivers/media/usb/uvc/uvc_video.c stream->header.bEndpointAddress); stream 1857 drivers/media/usb/uvc/uvc_video.c psize = uvc_endpoint_max_bpi(stream->dev->udev, ep); stream 1874 drivers/media/usb/uvc/uvc_video.c ret = usb_set_interface(stream->dev->udev, intfnum, altsetting); stream 1878 drivers/media/usb/uvc/uvc_video.c ret = uvc_init_video_isoc(stream, best_ep, gfp_flags); stream 1882 drivers/media/usb/uvc/uvc_video.c stream->header.bEndpointAddress); stream 1886 drivers/media/usb/uvc/uvc_video.c ret = uvc_init_video_bulk(stream, ep, gfp_flags); stream 1893 drivers/media/usb/uvc/uvc_video.c for_each_uvc_urb(uvc_urb, stream) { stream 1898 drivers/media/usb/uvc/uvc_video.c uvc_video_stop_transfer(stream, 1); stream 1906 drivers/media/usb/uvc/uvc_video.c if (stream->dev->quirks & UVC_QUIRK_RESTORE_CTRLS_ON_INIT) stream 1907 drivers/media/usb/uvc/uvc_video.c uvc_ctrl_restore_values(stream->dev); stream 1923 drivers/media/usb/uvc/uvc_video.c int uvc_video_suspend(struct uvc_streaming *stream) stream 1925 drivers/media/usb/uvc/uvc_video.c if (!uvc_queue_streaming(&stream->queue)) stream 1928 drivers/media/usb/uvc/uvc_video.c stream->frozen = 1; stream 1929 drivers/media/usb/uvc/uvc_video.c uvc_video_stop_transfer(stream, 0); stream 1930 drivers/media/usb/uvc/uvc_video.c usb_set_interface(stream->dev->udev, stream->intfnum, 0); stream 1942 drivers/media/usb/uvc/uvc_video.c int uvc_video_resume(struct uvc_streaming *stream, int reset) stream 1952 drivers/media/usb/uvc/uvc_video.c usb_set_interface(stream->dev->udev, stream->intfnum, 0); stream 1954 drivers/media/usb/uvc/uvc_video.c stream->frozen = 0; stream 1956 drivers/media/usb/uvc/uvc_video.c uvc_video_clock_reset(stream); stream 1958 drivers/media/usb/uvc/uvc_video.c if (!uvc_queue_streaming(&stream->queue)) stream 1961 drivers/media/usb/uvc/uvc_video.c ret = uvc_commit_video(stream, &stream->ctrl); stream 1965 drivers/media/usb/uvc/uvc_video.c return uvc_video_start_transfer(stream, GFP_NOIO); stream 1982 drivers/media/usb/uvc/uvc_video.c int uvc_video_init(struct uvc_streaming *stream) stream 1984 drivers/media/usb/uvc/uvc_video.c struct uvc_streaming_control *probe = &stream->ctrl; stream 1991 drivers/media/usb/uvc/uvc_video.c if (stream->nformats == 0) { stream 1996 drivers/media/usb/uvc/uvc_video.c atomic_set(&stream->active, 0); stream 2003 drivers/media/usb/uvc/uvc_video.c usb_set_interface(stream->dev->udev, stream->intfnum, 0); stream 2010 drivers/media/usb/uvc/uvc_video.c if (uvc_get_video_ctrl(stream, probe, 1, UVC_GET_DEF) == 0) stream 2011 drivers/media/usb/uvc/uvc_video.c uvc_set_video_ctrl(stream, probe, 1); stream 2018 drivers/media/usb/uvc/uvc_video.c ret = uvc_get_video_ctrl(stream, probe, 1, UVC_GET_CUR); stream 2025 drivers/media/usb/uvc/uvc_video.c for (i = stream->nformats; i > 0; --i) { stream 2026 drivers/media/usb/uvc/uvc_video.c format = &stream->format[i-1]; stream 2051 drivers/media/usb/uvc/uvc_video.c stream->def_format = format; stream 2052 drivers/media/usb/uvc/uvc_video.c stream->cur_format = format; stream 2053 drivers/media/usb/uvc/uvc_video.c stream->cur_frame = frame; stream 2056 drivers/media/usb/uvc/uvc_video.c if (stream->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) { stream 2057 drivers/media/usb/uvc/uvc_video.c if (stream->dev->quirks & UVC_QUIRK_BUILTIN_ISIGHT) stream 2058 drivers/media/usb/uvc/uvc_video.c stream->decode = uvc_video_decode_isight; stream 2059 drivers/media/usb/uvc/uvc_video.c else if (stream->intf->num_altsetting > 1) stream 2060 drivers/media/usb/uvc/uvc_video.c stream->decode = uvc_video_decode_isoc; stream 2062 drivers/media/usb/uvc/uvc_video.c stream->decode = uvc_video_decode_bulk; stream 2064 drivers/media/usb/uvc/uvc_video.c if (stream->intf->num_altsetting == 1) stream 2065 drivers/media/usb/uvc/uvc_video.c stream->decode = uvc_video_encode_bulk; stream 2074 drivers/media/usb/uvc/uvc_video.c for_each_uvc_urb(uvc_urb, stream) stream 2080 drivers/media/usb/uvc/uvc_video.c int uvc_video_start_streaming(struct uvc_streaming *stream) stream 2084 drivers/media/usb/uvc/uvc_video.c ret = uvc_video_clock_init(stream); stream 2089 drivers/media/usb/uvc/uvc_video.c ret = uvc_commit_video(stream, &stream->ctrl); stream 2093 drivers/media/usb/uvc/uvc_video.c ret = uvc_video_start_transfer(stream, GFP_KERNEL); stream 2100 drivers/media/usb/uvc/uvc_video.c usb_set_interface(stream->dev->udev, stream->intfnum, 0); stream 2102 drivers/media/usb/uvc/uvc_video.c uvc_video_clock_cleanup(stream); stream 2107 drivers/media/usb/uvc/uvc_video.c void uvc_video_stop_streaming(struct uvc_streaming *stream) stream 2109 drivers/media/usb/uvc/uvc_video.c uvc_video_stop_transfer(stream, 1); stream 2111 drivers/media/usb/uvc/uvc_video.c if (stream->intf->num_altsetting > 1) { stream 2112 drivers/media/usb/uvc/uvc_video.c usb_set_interface(stream->dev->udev, stream->intfnum, 0); stream 2119 drivers/media/usb/uvc/uvc_video.c unsigned int epnum = stream->header.bEndpointAddress stream 2121 drivers/media/usb/uvc/uvc_video.c unsigned int dir = stream->header.bEndpointAddress stream 2125 drivers/media/usb/uvc/uvc_video.c pipe = usb_sndbulkpipe(stream->dev->udev, epnum) | dir; stream 2126 drivers/media/usb/uvc/uvc_video.c usb_clear_halt(stream->dev->udev, pipe); stream 2129 drivers/media/usb/uvc/uvc_video.c uvc_video_clock_cleanup(stream); stream 525 drivers/media/usb/uvc/uvcvideo.h struct uvc_streaming *stream; stream 594 drivers/media/usb/uvc/uvcvideo.h struct uvc_stats_stream stream; stream 626 drivers/media/usb/uvc/uvcvideo.h return uvc_urb - &uvc_urb->stream->uvc_urb[0]; stream 687 drivers/media/usb/uvc/uvcvideo.h struct uvc_streaming *stream; stream 793 drivers/media/usb/uvc/uvcvideo.h int uvc_video_init(struct uvc_streaming *stream); stream 794 drivers/media/usb/uvc/uvcvideo.h int uvc_video_suspend(struct uvc_streaming *stream); stream 795 drivers/media/usb/uvc/uvcvideo.h int uvc_video_resume(struct uvc_streaming *stream, int reset); stream 796 drivers/media/usb/uvc/uvcvideo.h int uvc_video_start_streaming(struct uvc_streaming *stream); stream 797 drivers/media/usb/uvc/uvcvideo.h void uvc_video_stop_streaming(struct uvc_streaming *stream); stream 798 drivers/media/usb/uvc/uvcvideo.h int uvc_probe_video(struct uvc_streaming *stream, stream 802 drivers/media/usb/uvc/uvcvideo.h void uvc_video_clock_update(struct uvc_streaming *stream, stream 805 drivers/media/usb/uvc/uvcvideo.h int uvc_meta_register(struct uvc_streaming *stream); stream 808 drivers/media/usb/uvc/uvcvideo.h struct uvc_streaming *stream, stream 874 drivers/media/usb/uvc/uvcvideo.h void uvc_debugfs_init_stream(struct uvc_streaming *stream); stream 875 drivers/media/usb/uvc/uvcvideo.h void uvc_debugfs_cleanup_stream(struct uvc_streaming *stream); stream 877 drivers/media/usb/uvc/uvcvideo.h size_t uvc_video_stats_dump(struct uvc_streaming *stream, char *buf, stream 179 drivers/media/v4l2-core/videobuf-core.c INIT_LIST_HEAD(&q->stream); stream 290 drivers/media/v4l2-core/videobuf-core.c INIT_LIST_HEAD(&q->stream); stream 464 drivers/media/v4l2-core/videobuf-core.c if (!list_empty(&q->stream)) { stream 610 drivers/media/v4l2-core/videobuf-core.c list_add_tail(&buf->stream, &q->stream); stream 642 drivers/media/v4l2-core/videobuf-core.c if (list_empty(&q->stream)) { stream 657 drivers/media/v4l2-core/videobuf-core.c !list_empty(&q->stream) || !q->streaming); stream 684 drivers/media/v4l2-core/videobuf-core.c buf = list_entry(q->stream.next, struct videobuf_buffer, stream); stream 725 drivers/media/v4l2-core/videobuf-core.c list_del(&buf->stream); stream 749 drivers/media/v4l2-core/videobuf-core.c list_for_each_entry(buf, &q->stream, stream) stream 985 drivers/media/v4l2-core/videobuf-core.c list_add_tail(&q->bufs[i]->stream, &q->stream); stream 1001 drivers/media/v4l2-core/videobuf-core.c INIT_LIST_HEAD(&q->stream); stream 1069 drivers/media/v4l2-core/videobuf-core.c q->read_buf = list_entry(q->stream.next, stream 1071 drivers/media/v4l2-core/videobuf-core.c stream); stream 1072 drivers/media/v4l2-core/videobuf-core.c list_del(&q->read_buf->stream); stream 1101 drivers/media/v4l2-core/videobuf-core.c list_add_tail(&q->read_buf->stream, stream 1102 drivers/media/v4l2-core/videobuf-core.c &q->stream); stream 1128 drivers/media/v4l2-core/videobuf-core.c if (!list_empty(&q->stream)) stream 1129 drivers/media/v4l2-core/videobuf-core.c buf = list_entry(q->stream.next, stream 1130 drivers/media/v4l2-core/videobuf-core.c struct videobuf_buffer, stream); stream 1137 drivers/media/v4l2-core/videobuf-core.c q->read_buf = list_entry(q->stream.next, stream 1139 drivers/media/v4l2-core/videobuf-core.c stream); stream 1140 drivers/media/v4l2-core/videobuf-core.c list_del(&q->read_buf->stream); stream 472 drivers/net/can/softing/softing_main.c static const uint8_t stream[] = { stream 474 drivers/net/can/softing/softing_main.c unsigned char back[sizeof(stream)]; stream 489 drivers/net/can/softing/softing_main.c for (j = 0; (j + sizeof(stream)) < card->dpram_size; stream 490 drivers/net/can/softing/softing_main.c j += sizeof(stream)) { stream 492 drivers/net/can/softing/softing_main.c memcpy_toio(&card->dpram[j], stream, sizeof(stream)); stream 495 drivers/net/can/softing/softing_main.c memcpy_fromio(back, &card->dpram[j], sizeof(stream)); stream 497 drivers/net/can/softing/softing_main.c if (!memcmp(back, stream, sizeof(stream))) stream 680 drivers/net/ethernet/qlogic/qed/qed.h struct z_stream_s *stream; stream 991 drivers/net/ethernet/qlogic/qed/qed_main.c p_hwfn->stream->next_in = input_buf; stream 992 drivers/net/ethernet/qlogic/qed/qed_main.c p_hwfn->stream->avail_in = input_len; stream 993 drivers/net/ethernet/qlogic/qed/qed_main.c p_hwfn->stream->next_out = unzip_buf; stream 994 drivers/net/ethernet/qlogic/qed/qed_main.c p_hwfn->stream->avail_out = max_size; stream 996 drivers/net/ethernet/qlogic/qed/qed_main.c rc = zlib_inflateInit2(p_hwfn->stream, MAX_WBITS); stream 1004 drivers/net/ethernet/qlogic/qed/qed_main.c rc = zlib_inflate(p_hwfn->stream, Z_FINISH); stream 1005 drivers/net/ethernet/qlogic/qed/qed_main.c zlib_inflateEnd(p_hwfn->stream); stream 1009 drivers/net/ethernet/qlogic/qed/qed_main.c p_hwfn->stream->msg, rc); stream 1013 drivers/net/ethernet/qlogic/qed/qed_main.c return p_hwfn->stream->total_out / 4; stream 1024 drivers/net/ethernet/qlogic/qed/qed_main.c p_hwfn->stream = kzalloc(sizeof(*p_hwfn->stream), GFP_KERNEL); stream 1025 drivers/net/ethernet/qlogic/qed/qed_main.c if (!p_hwfn->stream) stream 1031 drivers/net/ethernet/qlogic/qed/qed_main.c p_hwfn->stream->workspace = workspace; stream 1044 drivers/net/ethernet/qlogic/qed/qed_main.c if (!p_hwfn->stream) stream 1047 drivers/net/ethernet/qlogic/qed/qed_main.c vfree(p_hwfn->stream->workspace); stream 1048 drivers/net/ethernet/qlogic/qed/qed_main.c kfree(p_hwfn->stream); stream 1787 drivers/net/wireless/marvell/mwl8k.c struct mwl8k_ampdu_stream *stream; stream 1792 drivers/net/wireless/marvell/mwl8k.c stream = &priv->ampdu[i]; stream 1793 drivers/net/wireless/marvell/mwl8k.c if (stream->state == AMPDU_NO_STREAM) { stream 1794 drivers/net/wireless/marvell/mwl8k.c stream->sta = sta; stream 1795 drivers/net/wireless/marvell/mwl8k.c stream->state = AMPDU_STREAM_NEW; stream 1796 drivers/net/wireless/marvell/mwl8k.c stream->tid = tid; stream 1797 drivers/net/wireless/marvell/mwl8k.c stream->idx = i; stream 1800 drivers/net/wireless/marvell/mwl8k.c return stream; stream 1807 drivers/net/wireless/marvell/mwl8k.c mwl8k_start_stream(struct ieee80211_hw *hw, struct mwl8k_ampdu_stream *stream) stream 1812 drivers/net/wireless/marvell/mwl8k.c if (stream->state != AMPDU_STREAM_NEW) stream 1814 drivers/net/wireless/marvell/mwl8k.c ret = ieee80211_start_tx_ba_session(stream->sta, stream->tid, 0); stream 1817 drivers/net/wireless/marvell/mwl8k.c "%d\n", stream->sta->addr, stream->tid, ret); stream 1820 drivers/net/wireless/marvell/mwl8k.c stream->sta->addr, stream->tid); stream 1825 drivers/net/wireless/marvell/mwl8k.c mwl8k_remove_stream(struct ieee80211_hw *hw, struct mwl8k_ampdu_stream *stream) stream 1827 drivers/net/wireless/marvell/mwl8k.c wiphy_debug(hw->wiphy, "Remove stream for %pM %d\n", stream->sta->addr, stream 1828 drivers/net/wireless/marvell/mwl8k.c stream->tid); stream 1829 drivers/net/wireless/marvell/mwl8k.c memset(stream, 0, sizeof(*stream)); stream 1839 drivers/net/wireless/marvell/mwl8k.c struct mwl8k_ampdu_stream *stream; stream 1840 drivers/net/wireless/marvell/mwl8k.c stream = &priv->ampdu[i]; stream 1841 drivers/net/wireless/marvell/mwl8k.c if (stream->state == AMPDU_NO_STREAM) stream 1843 drivers/net/wireless/marvell/mwl8k.c if (!memcmp(stream->sta->addr, addr, ETH_ALEN) && stream 1844 drivers/net/wireless/marvell/mwl8k.c stream->tid == tid) stream 1845 drivers/net/wireless/marvell/mwl8k.c return stream; stream 1910 drivers/net/wireless/marvell/mwl8k.c struct mwl8k_ampdu_stream *stream = NULL; stream 1988 drivers/net/wireless/marvell/mwl8k.c stream = mwl8k_lookup_stream(hw, sta->addr, tid); stream 1989 drivers/net/wireless/marvell/mwl8k.c if (stream != NULL) { stream 1990 drivers/net/wireless/marvell/mwl8k.c if (stream->state == AMPDU_STREAM_ACTIVE) { stream 1992 drivers/net/wireless/marvell/mwl8k.c txpriority = (BA_QUEUE + stream->idx) % stream 1994 drivers/net/wireless/marvell/mwl8k.c if (stream->idx <= 1) stream 1995 drivers/net/wireless/marvell/mwl8k.c index = stream->idx + stream 1998 drivers/net/wireless/marvell/mwl8k.c } else if (stream->state == AMPDU_STREAM_NEW) { stream 2033 drivers/net/wireless/marvell/mwl8k.c stream = mwl8k_add_stream(hw, sta, tid); stream 2034 drivers/net/wireless/marvell/mwl8k.c if (stream != NULL) stream 2052 drivers/net/wireless/marvell/mwl8k.c mwl8k_remove_stream(hw, stream); stream 2075 drivers/net/wireless/marvell/mwl8k.c mwl8k_remove_stream(hw, stream); stream 2125 drivers/net/wireless/marvell/mwl8k.c if (mwl8k_start_stream(hw, stream)) stream 2126 drivers/net/wireless/marvell/mwl8k.c mwl8k_remove_stream(hw, stream); stream 3967 drivers/net/wireless/marvell/mwl8k.c mwl8k_check_ba(struct ieee80211_hw *hw, struct mwl8k_ampdu_stream *stream, stream 3982 drivers/net/wireless/marvell/mwl8k.c cmd->create_params.queue_id = stream->idx; stream 3983 drivers/net/wireless/marvell/mwl8k.c memcpy(&cmd->create_params.peer_mac_addr[0], stream->sta->addr, stream 3985 drivers/net/wireless/marvell/mwl8k.c cmd->create_params.tid = stream->tid; stream 3999 drivers/net/wireless/marvell/mwl8k.c mwl8k_create_ba(struct ieee80211_hw *hw, struct mwl8k_ampdu_stream *stream, stream 4017 drivers/net/wireless/marvell/mwl8k.c cmd->create_params.queue_id = stream->idx; stream 4019 drivers/net/wireless/marvell/mwl8k.c memcpy(cmd->create_params.peer_mac_addr, stream->sta->addr, ETH_ALEN); stream 4020 drivers/net/wireless/marvell/mwl8k.c cmd->create_params.tid = stream->tid; stream 4025 drivers/net/wireless/marvell/mwl8k.c (stream->sta->ht_cap.ampdu_factor & stream 4027 drivers/net/wireless/marvell/mwl8k.c ((stream->sta->ht_cap.ampdu_density << 2) & stream 4037 drivers/net/wireless/marvell/mwl8k.c stream->sta->addr, stream->tid); stream 5446 drivers/net/wireless/marvell/mwl8k.c struct mwl8k_ampdu_stream *stream; stream 5454 drivers/net/wireless/marvell/mwl8k.c stream = mwl8k_lookup_stream(hw, addr, tid); stream 5471 drivers/net/wireless/marvell/mwl8k.c if (stream == NULL) { stream 5479 drivers/net/wireless/marvell/mwl8k.c stream = mwl8k_add_stream(hw, sta, tid); stream 5481 drivers/net/wireless/marvell/mwl8k.c if (stream == NULL) { stream 5486 drivers/net/wireless/marvell/mwl8k.c stream->state = AMPDU_STREAM_IN_PROGRESS; stream 5495 drivers/net/wireless/marvell/mwl8k.c mwl8k_remove_stream(hw, stream); stream 5500 drivers/net/wireless/marvell/mwl8k.c rc = mwl8k_check_ba(hw, stream, vif); stream 5519 drivers/net/wireless/marvell/mwl8k.c mwl8k_remove_stream(hw, stream); stream 5528 drivers/net/wireless/marvell/mwl8k.c if (stream) { stream 5529 drivers/net/wireless/marvell/mwl8k.c if (stream->state == AMPDU_STREAM_ACTIVE) { stream 5530 drivers/net/wireless/marvell/mwl8k.c idx = stream->idx; stream 5535 drivers/net/wireless/marvell/mwl8k.c mwl8k_remove_stream(hw, stream); stream 5540 drivers/net/wireless/marvell/mwl8k.c BUG_ON(stream == NULL); stream 5541 drivers/net/wireless/marvell/mwl8k.c BUG_ON(stream->state != AMPDU_STREAM_IN_PROGRESS); stream 5543 drivers/net/wireless/marvell/mwl8k.c rc = mwl8k_create_ba(hw, stream, buf_size, vif); stream 5546 drivers/net/wireless/marvell/mwl8k.c stream->state = AMPDU_STREAM_ACTIVE; stream 5548 drivers/net/wireless/marvell/mwl8k.c idx = stream->idx; stream 5555 drivers/net/wireless/marvell/mwl8k.c mwl8k_remove_stream(hw, stream); stream 338 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c int stream; stream 340 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c for (stream = 0; stream < 2; stream++) { stream 341 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c if (pstats->rx_mimo_sig_qual[stream] != -1) { stream 342 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c if (rtlpriv->stats.rx_evm_percentage[stream] == 0) { stream 343 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c rtlpriv->stats.rx_evm_percentage[stream] = stream 344 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c pstats->rx_mimo_sig_qual[stream]; stream 346 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c rtlpriv->stats.rx_evm_percentage[stream] = stream 347 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c ((rtlpriv->stats.rx_evm_percentage[stream] stream 349 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c (pstats->rx_mimo_sig_qual[stream] * 1)) / stream 3092 drivers/scsi/gdth.c stack.b[j++] = *(u32*)&dvr->eu.stream[(int)f[i]]; stream 3095 drivers/scsi/gdth.c stack.b[j++] = *(u16*)&dvr->eu.stream[(int)f[i]]; stream 3098 drivers/scsi/gdth.c stack.b[j++] = *(u8*)&dvr->eu.stream[(int)f[i]]; stream 136 drivers/scsi/gdth_ioctl.h char stream[16]; stream 123 drivers/slimbus/stream.c static int slim_connect_port_channel(struct slim_stream_runtime *stream, stream 126 drivers/slimbus/stream.c struct slim_device *sdev = stream->dev; stream 130 drivers/slimbus/stream.c DEFINE_SLIM_LDEST_TXN(txn, mc, 6, stream->dev->laddr, &msg); stream 143 drivers/slimbus/stream.c static int slim_disconnect_port(struct slim_stream_runtime *stream, stream 146 drivers/slimbus/stream.c struct slim_device *sdev = stream->dev; stream 150 drivers/slimbus/stream.c DEFINE_SLIM_LDEST_TXN(txn, mc, 5, stream->dev->laddr, &msg); stream 159 drivers/slimbus/stream.c static int slim_deactivate_remove_channel(struct slim_stream_runtime *stream, stream 162 drivers/slimbus/stream.c struct slim_device *sdev = stream->dev; stream 166 drivers/slimbus/stream.c DEFINE_SLIM_LDEST_TXN(txn, mc, 5, stream->dev->laddr, &msg); stream 263 drivers/slimbus/stream.c static int slim_define_channel_content(struct slim_stream_runtime *stream, stream 266 drivers/slimbus/stream.c struct slim_device *sdev = stream->dev; stream 270 drivers/slimbus/stream.c DEFINE_SLIM_LDEST_TXN(txn, mc, 8, stream->dev->laddr, &msg); stream 276 drivers/slimbus/stream.c if (stream->prot != SLIM_PROTO_ISO) stream 280 drivers/slimbus/stream.c wbuf[3] = stream->bps/SLIM_SLOT_LEN_BITS; stream 298 drivers/slimbus/stream.c static int slim_define_channel(struct slim_stream_runtime *stream, stream 301 drivers/slimbus/stream.c struct slim_device *sdev = stream->dev; stream 305 drivers/slimbus/stream.c DEFINE_SLIM_LDEST_TXN(txn, mc, 8, stream->dev->laddr, &msg); stream 307 drivers/slimbus/stream.c port->ch.seg_dist = slim_get_segdist_code(stream->ratem); stream 311 drivers/slimbus/stream.c wbuf[2] = (stream->prot << 4) | ((port->ch.seg_dist & 0xF00) >> 8); stream 312 drivers/slimbus/stream.c if (stream->prot == SLIM_PROTO_ISO) stream 313 drivers/slimbus/stream.c wbuf[3] = stream->bps/SLIM_SLOT_LEN_BITS; stream 315 drivers/slimbus/stream.c wbuf[3] = stream->bps/SLIM_SLOT_LEN_BITS + 1; stream 322 drivers/slimbus/stream.c static int slim_activate_channel(struct slim_stream_runtime *stream, stream 325 drivers/slimbus/stream.c struct slim_device *sdev = stream->dev; stream 329 drivers/slimbus/stream.c DEFINE_SLIM_LDEST_TXN(txn, mc, 5, stream->dev->laddr, &msg); stream 350 drivers/slimbus/stream.c int slim_stream_enable(struct slim_stream_runtime *stream) stream 354 drivers/slimbus/stream.c struct slim_controller *ctrl = stream->dev->ctrl; stream 358 drivers/slimbus/stream.c ret = ctrl->enable_stream(stream); stream 362 drivers/slimbus/stream.c for (i = 0; i < stream->num_ports; i++) stream 363 drivers/slimbus/stream.c stream->ports[i].ch.state = SLIM_CH_STATE_ACTIVE; stream 373 drivers/slimbus/stream.c for (i = 0; i < stream->num_ports; i++) { stream 374 drivers/slimbus/stream.c struct slim_port *port = &stream->ports[i]; stream 376 drivers/slimbus/stream.c slim_define_channel(stream, port); stream 377 drivers/slimbus/stream.c slim_define_channel_content(stream, port); stream 380 drivers/slimbus/stream.c for (i = 0; i < stream->num_ports; i++) { stream 381 drivers/slimbus/stream.c struct slim_port *port = &stream->ports[i]; stream 383 drivers/slimbus/stream.c slim_activate_channel(stream, port); stream 403 drivers/slimbus/stream.c int slim_stream_disable(struct slim_stream_runtime *stream) stream 407 drivers/slimbus/stream.c struct slim_controller *ctrl = stream->dev->ctrl; stream 411 drivers/slimbus/stream.c ctrl->disable_stream(stream); stream 417 drivers/slimbus/stream.c for (i = 0; i < stream->num_ports; i++) stream 418 drivers/slimbus/stream.c slim_deactivate_remove_channel(stream, &stream->ports[i]); stream 437 drivers/slimbus/stream.c int slim_stream_unprepare(struct slim_stream_runtime *stream) stream 441 drivers/slimbus/stream.c for (i = 0; i < stream->num_ports; i++) stream 442 drivers/slimbus/stream.c slim_disconnect_port(stream, &stream->ports[i]); stream 444 drivers/slimbus/stream.c kfree(stream->ports); stream 445 drivers/slimbus/stream.c stream->ports = NULL; stream 446 drivers/slimbus/stream.c stream->num_ports = 0; stream 464 drivers/slimbus/stream.c int slim_stream_free(struct slim_stream_runtime *stream) stream 466 drivers/slimbus/stream.c struct slim_device *sdev = stream->dev; stream 469 drivers/slimbus/stream.c list_del(&stream->node); stream 472 drivers/slimbus/stream.c kfree(stream->name); stream 473 drivers/slimbus/stream.c kfree(stream); stream 129 drivers/soundwire/bus.h struct sdw_stream_runtime *stream; stream 809 drivers/soundwire/cadence_master.c struct sdw_cdns_pdi **stream, stream 827 drivers/soundwire/cadence_master.c *stream = pdi; stream 840 drivers/soundwire/cadence_master.c struct sdw_cdns_streams *stream; stream 851 drivers/soundwire/cadence_master.c stream = &cdns->pcm; stream 854 drivers/soundwire/cadence_master.c if (stream->num_bd < CDNS_PCM_PDI_OFFSET) stream 856 drivers/soundwire/cadence_master.c stream->num_bd -= CDNS_PCM_PDI_OFFSET; stream 859 drivers/soundwire/cadence_master.c ret = cdns_allocate_pdi(cdns, &stream->bd, stream 860 drivers/soundwire/cadence_master.c stream->num_bd, offset); stream 864 drivers/soundwire/cadence_master.c offset += stream->num_bd; stream 866 drivers/soundwire/cadence_master.c ret = cdns_allocate_pdi(cdns, &stream->in, stream 867 drivers/soundwire/cadence_master.c stream->num_in, offset); stream 871 drivers/soundwire/cadence_master.c offset += stream->num_in; stream 873 drivers/soundwire/cadence_master.c ret = cdns_allocate_pdi(cdns, &stream->out, stream 874 drivers/soundwire/cadence_master.c stream->num_out, offset); stream 879 drivers/soundwire/cadence_master.c stream->num_pdi = stream->num_bd + stream->num_in + stream->num_out; stream 880 drivers/soundwire/cadence_master.c cdns->num_ports = stream->num_pdi; stream 883 drivers/soundwire/cadence_master.c stream = &cdns->pdm; stream 885 drivers/soundwire/cadence_master.c ret = cdns_allocate_pdi(cdns, &stream->bd, stream 886 drivers/soundwire/cadence_master.c stream->num_bd, offset); stream 890 drivers/soundwire/cadence_master.c offset += stream->num_bd; stream 892 drivers/soundwire/cadence_master.c ret = cdns_allocate_pdi(cdns, &stream->in, stream 893 drivers/soundwire/cadence_master.c stream->num_in, offset); stream 897 drivers/soundwire/cadence_master.c offset += stream->num_in; stream 899 drivers/soundwire/cadence_master.c ret = cdns_allocate_pdi(cdns, &stream->out, stream 900 drivers/soundwire/cadence_master.c stream->num_out, offset); stream 905 drivers/soundwire/cadence_master.c stream->num_pdi = stream->num_bd + stream->num_in + stream->num_out; stream 906 drivers/soundwire/cadence_master.c cdns->num_ports += stream->num_pdi; stream 1153 drivers/soundwire/cadence_master.c void *stream, bool pcm, int direction) stream 1170 drivers/soundwire/cadence_master.c dma->stream = stream; stream 1277 drivers/soundwire/cadence_master.c struct sdw_cdns_streams *stream, stream 1283 drivers/soundwire/cadence_master.c pdis = cdns_get_num_pdi(cdns, stream->in, stream->num_in, ch); stream 1285 drivers/soundwire/cadence_master.c pdis = cdns_get_num_pdi(cdns, stream->out, stream->num_out, ch); stream 1289 drivers/soundwire/cadence_master.c pdis = cdns_get_num_pdi(cdns, stream->bd, stream->num_bd, ch); stream 1305 drivers/soundwire/cadence_master.c struct sdw_cdns_streams *stream, stream 1311 drivers/soundwire/cadence_master.c pdi = cdns_find_pdi(cdns, stream->num_in, stream->in); stream 1313 drivers/soundwire/cadence_master.c pdi = cdns_find_pdi(cdns, stream->num_out, stream->out); stream 1317 drivers/soundwire/cadence_master.c pdi = cdns_find_pdi(cdns, stream->num_bd, stream->bd); stream 106 drivers/soundwire/cadence_master.h struct sdw_stream_runtime *stream; stream 171 drivers/soundwire/cadence_master.h struct sdw_cdns_streams *stream, stream 174 drivers/soundwire/cadence_master.h struct sdw_cdns_streams *stream, stream 180 drivers/soundwire/cadence_master.h void *stream, int direction); stream 182 drivers/soundwire/cadence_master.h void *stream, int direction); stream 200 drivers/soundwire/cadence_master.h void *stream, bool pcm, int direction); stream 452 drivers/soundwire/intel.c struct sdw_cdns_streams *stream, bool pcm) stream 454 drivers/soundwire/intel.c intel_pdi_get_ch_update(sdw, stream->bd, stream->num_bd, stream 455 drivers/soundwire/intel.c &stream->num_ch_bd, pcm); stream 457 drivers/soundwire/intel.c intel_pdi_get_ch_update(sdw, stream->in, stream->num_in, stream 458 drivers/soundwire/intel.c &stream->num_ch_in, pcm); stream 460 drivers/soundwire/intel.c intel_pdi_get_ch_update(sdw, stream->out, stream->num_out, stream 461 drivers/soundwire/intel.c &stream->num_ch_out, pcm); stream 689 drivers/soundwire/intel.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 752 drivers/soundwire/intel.c pconfig, dma->nr_ports, dma->stream); stream 780 drivers/soundwire/intel.c ret = sdw_stream_remove_master(&cdns->bus, dma->stream); stream 783 drivers/soundwire/intel.c dma->stream->name, ret); stream 804 drivers/soundwire/intel.c void *stream, int direction) stream 806 drivers/soundwire/intel.c return cdns_set_sdw_stream(dai, stream, true, direction); stream 810 drivers/soundwire/intel.c void *stream, int direction) stream 812 drivers/soundwire/intel.c return cdns_set_sdw_stream(dai, stream, false, direction); stream 895 drivers/soundwire/intel.c struct sdw_cdns_streams *stream; stream 907 drivers/soundwire/intel.c stream = &cdns->pcm; stream 910 drivers/soundwire/intel.c off, stream->num_ch_in, true); stream 916 drivers/soundwire/intel.c off, stream->num_ch_out, true); stream 922 drivers/soundwire/intel.c off, stream->num_ch_bd, true); stream 927 drivers/soundwire/intel.c stream = &cdns->pdm; stream 930 drivers/soundwire/intel.c off, stream->num_ch_in, false); stream 936 drivers/soundwire/intel.c off, stream->num_ch_out, false); stream 942 drivers/soundwire/intel.c off, stream->num_ch_bd, false); stream 627 drivers/soundwire/stream.c if (m_rt->stream->state != SDW_STREAM_ENABLED) stream 742 drivers/soundwire/stream.c static int do_bank_switch(struct sdw_stream_runtime *stream) stream 750 drivers/soundwire/stream.c list_for_each_entry(m_rt, &stream->master_list, stream_node) { stream 775 drivers/soundwire/stream.c ret = sdw_bank_switch(bus, stream->m_rt_count); stream 788 drivers/soundwire/stream.c list_for_each_entry(m_rt, &stream->master_list, stream_node) { stream 801 drivers/soundwire/stream.c } else if (bus->multi_link && stream->m_rt_count > 1) { stream 826 drivers/soundwire/stream.c list_for_each_entry(m_rt, &stream->master_list, stream_node) { stream 836 drivers/soundwire/stream.c list_for_each_entry(m_rt, &stream->master_list, stream_node) { stream 853 drivers/soundwire/stream.c void sdw_release_stream(struct sdw_stream_runtime *stream) stream 855 drivers/soundwire/stream.c kfree(stream); stream 870 drivers/soundwire/stream.c struct sdw_stream_runtime *stream; stream 872 drivers/soundwire/stream.c stream = kzalloc(sizeof(*stream), GFP_KERNEL); stream 873 drivers/soundwire/stream.c if (!stream) stream 876 drivers/soundwire/stream.c stream->name = stream_name; stream 877 drivers/soundwire/stream.c INIT_LIST_HEAD(&stream->master_list); stream 878 drivers/soundwire/stream.c stream->state = SDW_STREAM_ALLOCATED; stream 879 drivers/soundwire/stream.c stream->m_rt_count = 0; stream 881 drivers/soundwire/stream.c return stream; stream 887 drivers/soundwire/stream.c struct sdw_stream_runtime *stream) stream 892 drivers/soundwire/stream.c list_for_each_entry(m_rt, &stream->master_list, stream_node) { stream 912 drivers/soundwire/stream.c struct sdw_stream_runtime *stream) stream 920 drivers/soundwire/stream.c m_rt = sdw_find_master_rt(bus, stream); stream 931 drivers/soundwire/stream.c list_add_tail(&m_rt->stream_node, &stream->master_list); stream 938 drivers/soundwire/stream.c m_rt->stream = stream; stream 956 drivers/soundwire/stream.c struct sdw_stream_runtime *stream) stream 985 drivers/soundwire/stream.c struct sdw_stream_runtime *stream) stream 991 drivers/soundwire/stream.c list_for_each_entry(m_rt, &stream->master_list, stream_node) { stream 1014 drivers/soundwire/stream.c struct sdw_stream_runtime *stream) stream 1019 drivers/soundwire/stream.c list_for_each_entry(m_rt, &stream->master_list, stream_node) { stream 1044 drivers/soundwire/stream.c struct sdw_stream_runtime *stream) stream 1049 drivers/soundwire/stream.c sdw_slave_port_release(s_rt->slave->bus, s_rt->slave, stream); stream 1050 drivers/soundwire/stream.c sdw_release_slave_stream(s_rt->slave, stream); stream 1067 drivers/soundwire/stream.c struct sdw_stream_runtime *stream) stream 1074 drivers/soundwire/stream.c &stream->master_list, stream_node) { stream 1079 drivers/soundwire/stream.c sdw_release_master_stream(m_rt, stream); stream 1080 drivers/soundwire/stream.c stream->m_rt_count--; stream 1083 drivers/soundwire/stream.c if (list_empty(&stream->master_list)) stream 1084 drivers/soundwire/stream.c stream->state = SDW_STREAM_RELEASED; stream 1101 drivers/soundwire/stream.c struct sdw_stream_runtime *stream) stream 1105 drivers/soundwire/stream.c sdw_slave_port_release(slave->bus, slave, stream); stream 1106 drivers/soundwire/stream.c sdw_release_slave_stream(slave, stream); stream 1125 drivers/soundwire/stream.c struct sdw_stream_runtime *stream, stream 1137 drivers/soundwire/stream.c if (stream->params.rate && stream 1138 drivers/soundwire/stream.c stream->params.rate != stream_config->frame_rate) { stream 1139 drivers/soundwire/stream.c dev_err(dev, "rate not matching, stream:%s\n", stream->name); stream 1143 drivers/soundwire/stream.c if (stream->params.bps && stream 1144 drivers/soundwire/stream.c stream->params.bps != stream_config->bps) { stream 1145 drivers/soundwire/stream.c dev_err(dev, "bps not matching, stream:%s\n", stream->name); stream 1149 drivers/soundwire/stream.c stream->type = stream_config->type; stream 1150 drivers/soundwire/stream.c stream->params.rate = stream_config->frame_rate; stream 1151 drivers/soundwire/stream.c stream->params.bps = stream_config->bps; stream 1155 drivers/soundwire/stream.c stream->params.ch_count += stream_config->ch_count; stream 1262 drivers/soundwire/stream.c struct sdw_stream_runtime *stream) stream 1274 drivers/soundwire/stream.c if (!bus->multi_link && stream->m_rt_count > 0) { stream 1281 drivers/soundwire/stream.c m_rt = sdw_alloc_master_rt(bus, stream_config, stream); stream 1285 drivers/soundwire/stream.c stream->name); stream 1290 drivers/soundwire/stream.c ret = sdw_config_stream(bus->dev, stream, stream_config, false); stream 1298 drivers/soundwire/stream.c stream->m_rt_count++; stream 1303 drivers/soundwire/stream.c sdw_release_master_stream(m_rt, stream); stream 1327 drivers/soundwire/stream.c struct sdw_stream_runtime *stream) stream 1339 drivers/soundwire/stream.c m_rt = sdw_alloc_master_rt(slave->bus, stream_config, stream); stream 1343 drivers/soundwire/stream.c stream->name); stream 1348 drivers/soundwire/stream.c s_rt = sdw_alloc_slave_rt(slave, stream_config, stream); stream 1352 drivers/soundwire/stream.c stream->name); stream 1357 drivers/soundwire/stream.c ret = sdw_config_stream(&slave->dev, stream, stream_config, true); stream 1373 drivers/soundwire/stream.c stream->state = SDW_STREAM_CONFIGURED; stream 1381 drivers/soundwire/stream.c sdw_release_master_stream(m_rt, stream); stream 1429 drivers/soundwire/stream.c static void sdw_acquire_bus_lock(struct sdw_stream_runtime *stream) stream 1435 drivers/soundwire/stream.c list_for_each_entry(m_rt, &stream->master_list, stream_node) { stream 1451 drivers/soundwire/stream.c static void sdw_release_bus_lock(struct sdw_stream_runtime *stream) stream 1457 drivers/soundwire/stream.c list_for_each_entry_reverse(m_rt, &stream->master_list, stream_node) { stream 1463 drivers/soundwire/stream.c static int _sdw_prepare_stream(struct sdw_stream_runtime *stream) stream 1472 drivers/soundwire/stream.c list_for_each_entry(m_rt, &stream->master_list, stream_node) { stream 1478 drivers/soundwire/stream.c if ((prop->max_clk_freq % stream->params.rate) != 0) { stream 1485 drivers/soundwire/stream.c bus->params.bandwidth += m_rt->stream->params.rate * stream 1486 drivers/soundwire/stream.c m_rt->ch_count * m_rt->stream->params.bps; stream 1511 drivers/soundwire/stream.c ret = do_bank_switch(stream); stream 1517 drivers/soundwire/stream.c list_for_each_entry(m_rt, &stream->master_list, stream_node) { stream 1529 drivers/soundwire/stream.c stream->state = SDW_STREAM_PREPARED; stream 1545 drivers/soundwire/stream.c int sdw_prepare_stream(struct sdw_stream_runtime *stream) stream 1549 drivers/soundwire/stream.c if (!stream) { stream 1554 drivers/soundwire/stream.c sdw_acquire_bus_lock(stream); stream 1556 drivers/soundwire/stream.c ret = _sdw_prepare_stream(stream); stream 1558 drivers/soundwire/stream.c pr_err("Prepare for stream:%s failed: %d\n", stream->name, ret); stream 1560 drivers/soundwire/stream.c sdw_release_bus_lock(stream); stream 1565 drivers/soundwire/stream.c static int _sdw_enable_stream(struct sdw_stream_runtime *stream) stream 1572 drivers/soundwire/stream.c list_for_each_entry(m_rt, &stream->master_list, stream_node) { stream 1596 drivers/soundwire/stream.c ret = do_bank_switch(stream); stream 1602 drivers/soundwire/stream.c stream->state = SDW_STREAM_ENABLED; stream 1613 drivers/soundwire/stream.c int sdw_enable_stream(struct sdw_stream_runtime *stream) stream 1617 drivers/soundwire/stream.c if (!stream) { stream 1622 drivers/soundwire/stream.c sdw_acquire_bus_lock(stream); stream 1624 drivers/soundwire/stream.c ret = _sdw_enable_stream(stream); stream 1626 drivers/soundwire/stream.c pr_err("Enable for stream:%s failed: %d\n", stream->name, ret); stream 1628 drivers/soundwire/stream.c sdw_release_bus_lock(stream); stream 1633 drivers/soundwire/stream.c static int _sdw_disable_stream(struct sdw_stream_runtime *stream) stream 1638 drivers/soundwire/stream.c list_for_each_entry(m_rt, &stream->master_list, stream_node) { stream 1648 drivers/soundwire/stream.c stream->state = SDW_STREAM_DISABLED; stream 1650 drivers/soundwire/stream.c list_for_each_entry(m_rt, &stream->master_list, stream_node) { stream 1661 drivers/soundwire/stream.c ret = do_bank_switch(stream); stream 1668 drivers/soundwire/stream.c list_for_each_entry(m_rt, &stream->master_list, stream_node) { stream 1689 drivers/soundwire/stream.c int sdw_disable_stream(struct sdw_stream_runtime *stream) stream 1693 drivers/soundwire/stream.c if (!stream) { stream 1698 drivers/soundwire/stream.c sdw_acquire_bus_lock(stream); stream 1700 drivers/soundwire/stream.c ret = _sdw_disable_stream(stream); stream 1702 drivers/soundwire/stream.c pr_err("Disable for stream:%s failed: %d\n", stream->name, ret); stream 1704 drivers/soundwire/stream.c sdw_release_bus_lock(stream); stream 1709 drivers/soundwire/stream.c static int _sdw_deprepare_stream(struct sdw_stream_runtime *stream) stream 1715 drivers/soundwire/stream.c list_for_each_entry(m_rt, &stream->master_list, stream_node) { stream 1726 drivers/soundwire/stream.c bus->params.bandwidth -= m_rt->stream->params.rate * stream 1727 drivers/soundwire/stream.c m_rt->ch_count * m_rt->stream->params.bps; stream 1737 drivers/soundwire/stream.c stream->state = SDW_STREAM_DEPREPARED; stream 1738 drivers/soundwire/stream.c return do_bank_switch(stream); stream 1748 drivers/soundwire/stream.c int sdw_deprepare_stream(struct sdw_stream_runtime *stream) stream 1752 drivers/soundwire/stream.c if (!stream) { stream 1757 drivers/soundwire/stream.c sdw_acquire_bus_lock(stream); stream 1758 drivers/soundwire/stream.c ret = _sdw_deprepare_stream(stream); stream 1762 drivers/soundwire/stream.c sdw_release_bus_lock(stream); stream 33 drivers/staging/greybus/audio_codec.c find_dai_stream_params(struct gbaudio_codec_info *codec, int id, int stream) stream 39 drivers/staging/greybus/audio_codec.c return &dai->params[stream]; stream 373 drivers/staging/greybus/audio_codec.c params = find_dai_stream_params(codec, dai->id, substream->stream); stream 398 drivers/staging/greybus/audio_codec.c params = find_dai_stream_params(codec, dai->id, substream->stream); stream 471 drivers/staging/greybus/audio_codec.c params = find_dai_stream_params(codec, dai->id, substream->stream); stream 498 drivers/staging/greybus/audio_codec.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 543 drivers/staging/greybus/audio_codec.c params = find_dai_stream_params(codec, dai->id, substream->stream); stream 557 drivers/staging/greybus/audio_codec.c switch (substream->stream) { stream 581 drivers/staging/greybus/audio_codec.c static int gbcodec_mute_stream(struct snd_soc_dai *dai, int mute, int stream) stream 591 drivers/staging/greybus/audio_codec.c stream ? "CAPTURE" : "PLAYBACK"); stream 595 drivers/staging/greybus/audio_codec.c params = find_dai_stream_params(codec, dai->id, stream); stream 634 drivers/staging/greybus/audio_codec.c if (!mute && !stream) {/* start playback */ stream 641 drivers/staging/greybus/audio_codec.c } else if (!mute && stream) {/* start capture */ stream 648 drivers/staging/greybus/audio_codec.c } else if (mute && !stream) {/* stop playback */ stream 654 drivers/staging/greybus/audio_codec.c } else if (mute && stream) {/* stop capture */ stream 668 drivers/staging/greybus/audio_codec.c stream ? "Capture" : "Playback", ret); stream 742 drivers/staging/greybus/camera.c payload->request_id, payload->frame_number, payload->stream); stream 945 drivers/staging/greybus/camera.c struct gb_camera_stream_config *stream = &streams[i]; stream 953 drivers/staging/greybus/camera.c ret = kstrtouint(token, 10, &stream->width); stream 962 drivers/staging/greybus/camera.c ret = kstrtouint(token, 10, &stream->height); stream 971 drivers/staging/greybus/camera.c ret = kstrtouint(token, 16, &stream->format); stream 984 drivers/staging/greybus/camera.c struct gb_camera_stream_config *stream = &streams[i]; stream 988 drivers/staging/greybus/camera.c stream->width, stream->height, stream 989 drivers/staging/greybus/camera.c stream->format, stream->vc, stream 990 drivers/staging/greybus/camera.c stream->dt[0], stream->dt[1], stream 991 drivers/staging/greybus/camera.c stream->max_size); stream 204 drivers/staging/uwb/drp-ie.c uwb_ie_drp_set_stream_index(drp_ie, rsv->stream); stream 141 drivers/staging/uwb/rsv.c int stream; stream 154 drivers/staging/uwb/rsv.c stream = find_first_zero_bit(streams_bm, UWB_NUM_STREAMS); stream 155 drivers/staging/uwb/rsv.c if (stream >= UWB_NUM_STREAMS) { stream 160 drivers/staging/uwb/rsv.c rsv->stream = stream; stream 161 drivers/staging/uwb/rsv.c set_bit(stream, streams_bm); stream 163 drivers/staging/uwb/rsv.c dev_dbg(dev, "get stream %d\n", rsv->stream); stream 185 drivers/staging/uwb/rsv.c clear_bit(rsv->stream, streams_bm); stream 187 drivers/staging/uwb/rsv.c dev_dbg(dev, "put stream %d\n", rsv->stream); stream 712 drivers/staging/uwb/rsv.c int stream; stream 714 drivers/staging/uwb/rsv.c stream = uwb_ie_drp_stream_index(drp_ie); stream 716 drivers/staging/uwb/rsv.c if (rsv->stream != stream) stream 721 drivers/staging/uwb/rsv.c return rsv->stream == stream; stream 751 drivers/staging/uwb/rsv.c rsv->stream = uwb_ie_drp_stream_index(drp_ie); stream 220 drivers/staging/uwb/uwb-debug.c rsv->stream, uwb_rsv_type_str(rsv->type)); stream 244 drivers/staging/uwb/uwb.h u8 stream; stream 1020 drivers/staging/wusbcore/devconnect.c hi->attributes = cpu_to_le16((wusbhc->rsv->stream << 3) | WUIE_HI_CAP_ALL); stream 20 drivers/staging/wusbcore/reservation.c static int wusbhc_bwa_set(struct wusbhc *wusbhc, u8 stream, stream 25 drivers/staging/wusbcore/reservation.c return wusbhc->bwa_set(wusbhc, stream, mas); stream 48 drivers/staging/wusbcore/reservation.c wusbhc_bwa_set(wusbhc, rsv->stream, &mas); stream 468 drivers/usb/gadget/function/f_tcm.c static void uasp_cleanup_one_stream(struct f_uas *fu, struct uas_stream *stream) stream 471 drivers/usb/gadget/function/f_tcm.c if (!stream->req_in) stream 474 drivers/usb/gadget/function/f_tcm.c usb_ep_free_request(fu->ep_in, stream->req_in); stream 475 drivers/usb/gadget/function/f_tcm.c usb_ep_free_request(fu->ep_out, stream->req_out); stream 476 drivers/usb/gadget/function/f_tcm.c usb_ep_free_request(fu->ep_status, stream->req_status); stream 478 drivers/usb/gadget/function/f_tcm.c stream->req_in = NULL; stream 479 drivers/usb/gadget/function/f_tcm.c stream->req_out = NULL; stream 480 drivers/usb/gadget/function/f_tcm.c stream->req_status = NULL; stream 504 drivers/usb/gadget/function/f_tcm.c uasp_cleanup_one_stream(fu, &fu->stream[i]); stream 515 drivers/usb/gadget/function/f_tcm.c struct uas_stream *stream = cmd->stream; stream 527 drivers/usb/gadget/function/f_tcm.c stream->req_in->buf = cmd->data_buf; stream 529 drivers/usb/gadget/function/f_tcm.c stream->req_in->buf = NULL; stream 530 drivers/usb/gadget/function/f_tcm.c stream->req_in->num_sgs = se_cmd->t_data_nents; stream 531 drivers/usb/gadget/function/f_tcm.c stream->req_in->sg = se_cmd->t_data_sg; stream 534 drivers/usb/gadget/function/f_tcm.c stream->req_in->complete = uasp_status_data_cmpl; stream 535 drivers/usb/gadget/function/f_tcm.c stream->req_in->length = se_cmd->data_length; stream 536 drivers/usb/gadget/function/f_tcm.c stream->req_in->context = cmd; stream 546 drivers/usb/gadget/function/f_tcm.c struct uas_stream *stream = cmd->stream; stream 557 drivers/usb/gadget/function/f_tcm.c stream->req_status->context = cmd; stream 558 drivers/usb/gadget/function/f_tcm.c stream->req_status->length = se_cmd->scsi_sense_length + 16; stream 559 drivers/usb/gadget/function/f_tcm.c stream->req_status->buf = iu; stream 560 drivers/usb/gadget/function/f_tcm.c stream->req_status->complete = uasp_status_data_cmpl; stream 566 drivers/usb/gadget/function/f_tcm.c struct uas_stream *stream = cmd->stream; stream 578 drivers/usb/gadget/function/f_tcm.c ret = usb_ep_queue(fu->ep_in, stream->req_in, GFP_ATOMIC); stream 584 drivers/usb/gadget/function/f_tcm.c ret = usbg_prepare_w_request(cmd, stream->req_out); stream 587 drivers/usb/gadget/function/f_tcm.c ret = usb_ep_queue(fu->ep_out, stream->req_out, GFP_ATOMIC); stream 594 drivers/usb/gadget/function/f_tcm.c ret = usb_ep_queue(fu->ep_status, stream->req_status, stream 617 drivers/usb/gadget/function/f_tcm.c struct uas_stream *stream = cmd->stream; stream 621 drivers/usb/gadget/function/f_tcm.c stream->req_status->complete = uasp_status_data_cmpl; stream 622 drivers/usb/gadget/function/f_tcm.c stream->req_status->context = cmd; stream 625 drivers/usb/gadget/function/f_tcm.c return usb_ep_queue(fu->ep_status, stream->req_status, GFP_ATOMIC); stream 631 drivers/usb/gadget/function/f_tcm.c struct uas_stream *stream = cmd->stream; stream 643 drivers/usb/gadget/function/f_tcm.c ret = usb_ep_queue(fu->ep_in, stream->req_in, GFP_ATOMIC); stream 655 drivers/usb/gadget/function/f_tcm.c stream->req_status->complete = uasp_status_data_cmpl; stream 656 drivers/usb/gadget/function/f_tcm.c stream->req_status->context = cmd; stream 659 drivers/usb/gadget/function/f_tcm.c stream->req_status->buf = iu; stream 660 drivers/usb/gadget/function/f_tcm.c stream->req_status->length = sizeof(struct iu); stream 662 drivers/usb/gadget/function/f_tcm.c ret = usb_ep_queue(fu->ep_status, stream->req_status, stream 675 drivers/usb/gadget/function/f_tcm.c struct uas_stream *stream = cmd->stream; stream 686 drivers/usb/gadget/function/f_tcm.c ret = usbg_prepare_w_request(cmd, stream->req_out); stream 689 drivers/usb/gadget/function/f_tcm.c ret = usb_ep_queue(fu->ep_out, stream->req_out, GFP_ATOMIC); stream 698 drivers/usb/gadget/function/f_tcm.c stream->req_status->complete = uasp_status_data_cmpl; stream 699 drivers/usb/gadget/function/f_tcm.c stream->req_status->context = cmd; stream 702 drivers/usb/gadget/function/f_tcm.c stream->req_status->buf = iu; stream 703 drivers/usb/gadget/function/f_tcm.c stream->req_status->length = sizeof(struct iu); stream 705 drivers/usb/gadget/function/f_tcm.c ret = usb_ep_queue(fu->ep_status, stream->req_status, stream 739 drivers/usb/gadget/function/f_tcm.c static int uasp_alloc_stream_res(struct f_uas *fu, struct uas_stream *stream) stream 741 drivers/usb/gadget/function/f_tcm.c stream->req_in = usb_ep_alloc_request(fu->ep_in, GFP_KERNEL); stream 742 drivers/usb/gadget/function/f_tcm.c if (!stream->req_in) stream 745 drivers/usb/gadget/function/f_tcm.c stream->req_out = usb_ep_alloc_request(fu->ep_out, GFP_KERNEL); stream 746 drivers/usb/gadget/function/f_tcm.c if (!stream->req_out) stream 749 drivers/usb/gadget/function/f_tcm.c stream->req_status = usb_ep_alloc_request(fu->ep_status, GFP_KERNEL); stream 750 drivers/usb/gadget/function/f_tcm.c if (!stream->req_status) stream 755 drivers/usb/gadget/function/f_tcm.c usb_ep_free_request(fu->ep_status, stream->req_status); stream 756 drivers/usb/gadget/function/f_tcm.c stream->req_status = NULL; stream 758 drivers/usb/gadget/function/f_tcm.c usb_ep_free_request(fu->ep_out, stream->req_out); stream 759 drivers/usb/gadget/function/f_tcm.c stream->req_out = NULL; stream 791 drivers/usb/gadget/function/f_tcm.c struct uas_stream *s = &fu->stream[i]; stream 811 drivers/usb/gadget/function/f_tcm.c ret = uasp_alloc_stream_res(fu, &fu->stream[i]); stream 833 drivers/usb/gadget/function/f_tcm.c uasp_cleanup_one_stream(fu, &fu->stream[i - 1]); stream 1129 drivers/usb/gadget/function/f_tcm.c cmd->stream = &fu->stream[0]; stream 1131 drivers/usb/gadget/function/f_tcm.c cmd->stream = &fu->stream[cmd->tag - 1]; stream 1133 drivers/usb/gadget/function/f_tcm.c cmd->stream = &fu->stream[0]; stream 83 drivers/usb/gadget/function/tcm.h struct uas_stream *stream; stream 127 drivers/usb/gadget/function/tcm.h struct uas_stream stream[UASP_SS_EP_COMP_NUM_STREAMS]; stream 119 drivers/usb/gadget/function/u_audio.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 150 drivers/usb/gadget/function/u_audio.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 197 drivers/usb/gadget/function/u_audio.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 223 drivers/usb/gadget/function/u_audio.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && !prm->ss) stream 234 drivers/usb/gadget/function/u_audio.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 276 drivers/usb/gadget/function/u_audio.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 717 drivers/usb/host/ehci-dbg.c p.sitd->stream->ps.period, stream 963 drivers/usb/host/ehci-hcd.c struct ehci_iso_stream *stream = ep->hcpriv; stream 965 drivers/usb/host/ehci-hcd.c if (!list_empty(&stream->td_list)) stream 969 drivers/usb/host/ehci-hcd.c reserve_release_iso_bandwidth(ehci, stream, -1); stream 970 drivers/usb/host/ehci-hcd.c kfree(stream); stream 1017 drivers/usb/host/ehci-sched.c struct ehci_iso_stream *stream; stream 1019 drivers/usb/host/ehci-sched.c stream = kzalloc(sizeof(*stream), mem_flags); stream 1020 drivers/usb/host/ehci-sched.c if (likely(stream != NULL)) { stream 1021 drivers/usb/host/ehci-sched.c INIT_LIST_HEAD(&stream->td_list); stream 1022 drivers/usb/host/ehci-sched.c INIT_LIST_HEAD(&stream->free_list); stream 1023 drivers/usb/host/ehci-sched.c stream->next_uframe = NO_FRAME; stream 1024 drivers/usb/host/ehci-sched.c stream->ps.phase = NO_FRAME; stream 1026 drivers/usb/host/ehci-sched.c return stream; stream 1032 drivers/usb/host/ehci-sched.c struct ehci_iso_stream *stream, stream 1057 drivers/usb/host/ehci-sched.c stream->highspeed = 1; stream 1062 drivers/usb/host/ehci-sched.c stream->buf0 = cpu_to_hc32(ehci, (epnum << 8) | dev->devnum); stream 1063 drivers/usb/host/ehci-sched.c stream->buf1 = cpu_to_hc32(ehci, buf1); stream 1064 drivers/usb/host/ehci-sched.c stream->buf2 = cpu_to_hc32(ehci, multi); stream 1069 drivers/usb/host/ehci-sched.c stream->ps.usecs = HS_USECS_ISO(maxp); stream 1076 drivers/usb/host/ehci-sched.c stream->ps.bw_uperiod = min_t(unsigned, tmp, urb->interval); stream 1078 drivers/usb/host/ehci-sched.c stream->uperiod = urb->interval; stream 1079 drivers/usb/host/ehci-sched.c stream->ps.period = urb->interval >> 3; stream 1080 drivers/usb/host/ehci-sched.c stream->bandwidth = stream->ps.usecs * 8 / stream 1081 drivers/usb/host/ehci-sched.c stream->ps.bw_uperiod; stream 1095 drivers/usb/host/ehci-sched.c stream->ps.usecs = HS_USECS_ISO(maxp); stream 1097 drivers/usb/host/ehci-sched.c stream->ps.tt_usecs = NS_TO_US(think_time + usb_calc_bus_time( stream 1104 drivers/usb/host/ehci-sched.c stream->ps.c_usecs = stream->ps.usecs; stream 1105 drivers/usb/host/ehci-sched.c stream->ps.usecs = HS_USECS_ISO(1); stream 1106 drivers/usb/host/ehci-sched.c stream->ps.cs_mask = 1; stream 1110 drivers/usb/host/ehci-sched.c stream->ps.cs_mask |= tmp << (8 + 2); stream 1112 drivers/usb/host/ehci-sched.c stream->ps.cs_mask = smask_out[hs_transfers - 1]; stream 1119 drivers/usb/host/ehci-sched.c stream->ps.bw_period = min_t(unsigned, tmp, urb->interval); stream 1120 drivers/usb/host/ehci-sched.c stream->ps.bw_uperiod = stream->ps.bw_period << 3; stream 1122 drivers/usb/host/ehci-sched.c stream->ps.period = urb->interval; stream 1123 drivers/usb/host/ehci-sched.c stream->uperiod = urb->interval << 3; stream 1124 drivers/usb/host/ehci-sched.c stream->bandwidth = (stream->ps.usecs + stream->ps.c_usecs) / stream 1125 drivers/usb/host/ehci-sched.c stream->ps.bw_period; stream 1128 drivers/usb/host/ehci-sched.c stream->address = cpu_to_hc32(ehci, addr); stream 1131 drivers/usb/host/ehci-sched.c stream->ps.udev = dev; stream 1132 drivers/usb/host/ehci-sched.c stream->ps.ep = urb->ep; stream 1134 drivers/usb/host/ehci-sched.c stream->bEndpointAddress = is_input | epnum; stream 1135 drivers/usb/host/ehci-sched.c stream->maxp = maxp; stream 1142 drivers/usb/host/ehci-sched.c struct ehci_iso_stream *stream; stream 1153 drivers/usb/host/ehci-sched.c stream = ep->hcpriv; stream 1155 drivers/usb/host/ehci-sched.c if (unlikely(stream == NULL)) { stream 1156 drivers/usb/host/ehci-sched.c stream = iso_stream_alloc(GFP_ATOMIC); stream 1157 drivers/usb/host/ehci-sched.c if (likely(stream != NULL)) { stream 1158 drivers/usb/host/ehci-sched.c ep->hcpriv = stream; stream 1159 drivers/usb/host/ehci-sched.c iso_stream_init(ehci, stream, urb); stream 1163 drivers/usb/host/ehci-sched.c } else if (unlikely(stream->hw != NULL)) { stream 1167 drivers/usb/host/ehci-sched.c stream = NULL; stream 1171 drivers/usb/host/ehci-sched.c return stream; stream 1196 drivers/usb/host/ehci-sched.c struct ehci_iso_stream *stream, stream 1204 drivers/usb/host/ehci-sched.c iso_sched->span = urb->number_of_packets * stream->uperiod; stream 1236 drivers/usb/host/ehci-sched.c struct ehci_iso_stream *stream, stream 1243 drivers/usb/host/ehci-sched.c list_splice(&iso_sched->td_list, &stream->free_list); stream 1249 drivers/usb/host/ehci-sched.c struct ehci_iso_stream *stream, stream 1266 drivers/usb/host/ehci-sched.c itd_sched_init(ehci, sched, stream, urb); stream 1281 drivers/usb/host/ehci-sched.c if (likely(!list_empty(&stream->free_list))) { stream 1282 drivers/usb/host/ehci-sched.c itd = list_first_entry(&stream->free_list, stream 1295 drivers/usb/host/ehci-sched.c iso_sched_free(stream, sched); stream 1317 drivers/usb/host/ehci-sched.c struct ehci_iso_stream *stream, int sign) stream 1322 drivers/usb/host/ehci-sched.c int usecs = stream->ps.usecs; stream 1323 drivers/usb/host/ehci-sched.c int c_usecs = stream->ps.c_usecs; stream 1324 drivers/usb/host/ehci-sched.c int tt_usecs = stream->ps.tt_usecs; stream 1327 drivers/usb/host/ehci-sched.c if (stream->ps.phase == NO_FRAME) /* Bandwidth wasn't reserved */ stream 1329 drivers/usb/host/ehci-sched.c uframe = stream->ps.bw_phase << 3; stream 1331 drivers/usb/host/ehci-sched.c bandwidth_dbg(ehci, sign, "iso", &stream->ps); stream 1339 drivers/usb/host/ehci-sched.c if (!stream->splits) { /* High speed */ stream 1340 drivers/usb/host/ehci-sched.c for (i = uframe + stream->ps.phase_uf; i < EHCI_BANDWIDTH_SIZE; stream 1341 drivers/usb/host/ehci-sched.c i += stream->ps.bw_uperiod) stream 1345 drivers/usb/host/ehci-sched.c s_mask = stream->ps.cs_mask; stream 1350 drivers/usb/host/ehci-sched.c i += stream->ps.bw_uperiod) { stream 1351 drivers/usb/host/ehci-sched.c for ((j = stream->ps.phase_uf, m = 1 << j); j < 8; stream 1360 drivers/usb/host/ehci-sched.c tt = find_tt(stream->ps.udev); stream 1362 drivers/usb/host/ehci-sched.c list_add_tail(&stream->ps.ps_list, &tt->ps_list); stream 1364 drivers/usb/host/ehci-sched.c list_del(&stream->ps.ps_list); stream 1367 drivers/usb/host/ehci-sched.c i += stream->ps.bw_period) stream 1375 drivers/usb/host/ehci-sched.c struct ehci_iso_stream *stream, stream 1382 drivers/usb/host/ehci-sched.c usecs = ehci->uframe_periodic_max - stream->ps.usecs; stream 1384 drivers/usb/host/ehci-sched.c for (uframe &= stream->ps.bw_uperiod - 1; uframe < EHCI_BANDWIDTH_SIZE; stream 1385 drivers/usb/host/ehci-sched.c uframe += stream->ps.bw_uperiod) { stream 1395 drivers/usb/host/ehci-sched.c struct ehci_iso_stream *stream, stream 1404 drivers/usb/host/ehci-sched.c mask = stream->ps.cs_mask << (uframe & 7); stream 1407 drivers/usb/host/ehci-sched.c if (((stream->ps.cs_mask & 0xff) << (uframe & 7)) >= (1 << 7)) stream 1415 drivers/usb/host/ehci-sched.c uframe &= stream->ps.bw_uperiod - 1; stream 1423 drivers/usb/host/ehci-sched.c if (!tt_available(ehci, &stream->ps, tt, frame, uf)) stream 1429 drivers/usb/host/ehci-sched.c if (!tt_no_collision(ehci, stream->ps.bw_period, stream 1430 drivers/usb/host/ehci-sched.c stream->ps.udev, frame, mask)) stream 1440 drivers/usb/host/ehci-sched.c max_used = ehci->uframe_periodic_max - stream->ps.usecs; stream 1441 drivers/usb/host/ehci-sched.c for (tmp = stream->ps.cs_mask & 0xff; tmp; tmp >>= 1, uf++) { stream 1447 drivers/usb/host/ehci-sched.c if (stream->ps.c_usecs) { stream 1449 drivers/usb/host/ehci-sched.c stream->ps.c_usecs; stream 1453 drivers/usb/host/ehci-sched.c if ((stream->ps.cs_mask & tmp) == 0) stream 1460 drivers/usb/host/ehci-sched.c uframe += stream->ps.bw_uperiod; stream 1463 drivers/usb/host/ehci-sched.c stream->ps.cs_mask <<= uframe & 7; stream 1464 drivers/usb/host/ehci-sched.c stream->splits = cpu_to_hc32(ehci, stream->ps.cs_mask); stream 1483 drivers/usb/host/ehci-sched.c struct ehci_iso_stream *stream stream 1491 drivers/usb/host/ehci-sched.c bool empty = list_empty(&stream->td_list); stream 1494 drivers/usb/host/ehci-sched.c period = stream->uperiod; stream 1496 drivers/usb/host/ehci-sched.c if (!stream->highspeed) stream 1504 drivers/usb/host/ehci-sched.c if (stream->ps.phase == NO_FRAME) { stream 1506 drivers/usb/host/ehci-sched.c struct ehci_tt *tt = find_tt(stream->ps.udev); stream 1526 drivers/usb/host/ehci-sched.c if (stream->highspeed) { stream 1527 drivers/usb/host/ehci-sched.c if (itd_slot_ok(ehci, stream, start)) stream 1532 drivers/usb/host/ehci-sched.c if (sitd_slot_ok(ehci, stream, start, stream 1544 drivers/usb/host/ehci-sched.c stream->ps.phase = (start >> 3) & stream 1545 drivers/usb/host/ehci-sched.c (stream->ps.period - 1); stream 1546 drivers/usb/host/ehci-sched.c stream->ps.bw_phase = stream->ps.phase & stream 1547 drivers/usb/host/ehci-sched.c (stream->ps.bw_period - 1); stream 1548 drivers/usb/host/ehci-sched.c stream->ps.phase_uf = start & 7; stream 1549 drivers/usb/host/ehci-sched.c reserve_release_iso_bandwidth(ehci, stream, 1); stream 1554 drivers/usb/host/ehci-sched.c start = (stream->ps.phase << 3) + stream->ps.phase_uf; stream 1557 drivers/usb/host/ehci-sched.c stream->next_uframe = start; stream 1579 drivers/usb/host/ehci-sched.c start = (stream->next_uframe - base) & (mod - 1); stream 1595 drivers/usb/host/ehci-sched.c urb, stream->next_uframe, base, period, mod); stream 1634 drivers/usb/host/ehci-sched.c iso_sched_free(stream, sched); stream 1657 drivers/usb/host/ehci-sched.c stream->next_uframe = (start + skip) & (mod - 1); stream 1661 drivers/usb/host/ehci-sched.c if (!stream->highspeed) stream 1666 drivers/usb/host/ehci-sched.c iso_sched_free(stream, sched); stream 1674 drivers/usb/host/ehci-sched.c itd_init(struct ehci_hcd *ehci, struct ehci_iso_stream *stream, stream 1681 drivers/usb/host/ehci-sched.c itd->hw_bufp[0] = stream->buf0; stream 1682 drivers/usb/host/ehci-sched.c itd->hw_bufp[1] = stream->buf1; stream 1683 drivers/usb/host/ehci-sched.c itd->hw_bufp[2] = stream->buf2; stream 1754 drivers/usb/host/ehci-sched.c struct ehci_iso_stream *stream stream 1762 drivers/usb/host/ehci-sched.c next_uframe = stream->next_uframe & (mod - 1); stream 1764 drivers/usb/host/ehci-sched.c if (unlikely(list_empty(&stream->td_list))) stream 1766 drivers/usb/host/ehci-sched.c += stream->bandwidth; stream 1786 drivers/usb/host/ehci-sched.c list_move_tail(&itd->itd_list, &stream->td_list); stream 1787 drivers/usb/host/ehci-sched.c itd->stream = stream; stream 1789 drivers/usb/host/ehci-sched.c itd_init(ehci, stream, itd); stream 1797 drivers/usb/host/ehci-sched.c next_uframe += stream->uperiod; stream 1808 drivers/usb/host/ehci-sched.c stream->next_uframe = next_uframe; stream 1811 drivers/usb/host/ehci-sched.c iso_sched_free(stream, iso_sched); stream 1812 drivers/usb/host/ehci-sched.c urb->hcpriv = stream; stream 1837 drivers/usb/host/ehci-sched.c struct ehci_iso_stream *stream = itd->stream; stream 1901 drivers/usb/host/ehci-sched.c if (unlikely(list_is_singular(&stream->td_list))) stream 1903 drivers/usb/host/ehci-sched.c -= stream->bandwidth; stream 1909 drivers/usb/host/ehci-sched.c list_move_tail(&itd->itd_list, &stream->free_list); stream 1912 drivers/usb/host/ehci-sched.c if (list_empty(&stream->td_list)) { stream 1913 drivers/usb/host/ehci-sched.c list_splice_tail_init(&stream->free_list, stream 1928 drivers/usb/host/ehci-sched.c struct ehci_iso_stream *stream; stream 1931 drivers/usb/host/ehci-sched.c stream = iso_stream_find(ehci, urb); stream 1932 drivers/usb/host/ehci-sched.c if (unlikely(stream == NULL)) { stream 1936 drivers/usb/host/ehci-sched.c if (unlikely(urb->interval != stream->uperiod)) { stream 1938 drivers/usb/host/ehci-sched.c stream->uperiod, urb->interval); stream 1950 drivers/usb/host/ehci-sched.c stream); stream 1954 drivers/usb/host/ehci-sched.c status = itd_urb_transaction(stream, ehci, urb, mem_flags); stream 1969 drivers/usb/host/ehci-sched.c status = iso_stream_schedule(ehci, urb, stream); stream 1971 drivers/usb/host/ehci-sched.c itd_link_urb(ehci, urb, ehci->periodic_size << 3, stream); stream 1995 drivers/usb/host/ehci-sched.c struct ehci_iso_stream *stream, stream 2003 drivers/usb/host/ehci-sched.c iso_sched->span = urb->number_of_packets * stream->ps.period; stream 2031 drivers/usb/host/ehci-sched.c if (stream->bEndpointAddress & USB_DIR_IN) stream 2042 drivers/usb/host/ehci-sched.c struct ehci_iso_stream *stream, stream 2058 drivers/usb/host/ehci-sched.c sitd_sched_init(ehci, iso_sched, stream, urb); stream 2073 drivers/usb/host/ehci-sched.c if (likely(!list_empty(&stream->free_list))) { stream 2074 drivers/usb/host/ehci-sched.c sitd = list_first_entry(&stream->free_list, stream 2087 drivers/usb/host/ehci-sched.c iso_sched_free(stream, iso_sched); stream 2112 drivers/usb/host/ehci-sched.c struct ehci_iso_stream *stream, stream 2122 drivers/usb/host/ehci-sched.c sitd->hw_fullspeed_ep = stream->address; stream 2123 drivers/usb/host/ehci-sched.c sitd->hw_uframe = stream->splits; stream 2155 drivers/usb/host/ehci-sched.c struct ehci_iso_stream *stream stream 2163 drivers/usb/host/ehci-sched.c next_uframe = stream->next_uframe; stream 2165 drivers/usb/host/ehci-sched.c if (list_empty(&stream->td_list)) stream 2168 drivers/usb/host/ehci-sched.c += stream->bandwidth; stream 2189 drivers/usb/host/ehci-sched.c list_move_tail(&sitd->sitd_list, &stream->td_list); stream 2190 drivers/usb/host/ehci-sched.c sitd->stream = stream; stream 2193 drivers/usb/host/ehci-sched.c sitd_patch(ehci, stream, sitd, sched, packet); stream 2197 drivers/usb/host/ehci-sched.c next_uframe += stream->uperiod; stream 2199 drivers/usb/host/ehci-sched.c stream->next_uframe = next_uframe & (mod - 1); stream 2202 drivers/usb/host/ehci-sched.c iso_sched_free(stream, sched); stream 2203 drivers/usb/host/ehci-sched.c urb->hcpriv = stream; stream 2230 drivers/usb/host/ehci-sched.c struct ehci_iso_stream *stream = sitd->stream; stream 2281 drivers/usb/host/ehci-sched.c if (list_is_singular(&stream->td_list)) stream 2283 drivers/usb/host/ehci-sched.c -= stream->bandwidth; stream 2289 drivers/usb/host/ehci-sched.c list_move_tail(&sitd->sitd_list, &stream->free_list); stream 2292 drivers/usb/host/ehci-sched.c if (list_empty(&stream->td_list)) { stream 2293 drivers/usb/host/ehci-sched.c list_splice_tail_init(&stream->free_list, stream 2307 drivers/usb/host/ehci-sched.c struct ehci_iso_stream *stream; stream 2310 drivers/usb/host/ehci-sched.c stream = iso_stream_find(ehci, urb); stream 2311 drivers/usb/host/ehci-sched.c if (stream == NULL) { stream 2315 drivers/usb/host/ehci-sched.c if (urb->interval != stream->ps.period) { stream 2317 drivers/usb/host/ehci-sched.c stream->ps.period, urb->interval); stream 2331 drivers/usb/host/ehci-sched.c status = sitd_urb_transaction(stream, ehci, urb, mem_flags); stream 2346 drivers/usb/host/ehci-sched.c status = iso_stream_schedule(ehci, urb, stream); stream 2348 drivers/usb/host/ehci-sched.c sitd_link_urb(ehci, urb, ehci->periodic_size << 3, stream); stream 529 drivers/usb/host/ehci.h struct ehci_iso_stream *stream; /* endpoint's queue */ stream 575 drivers/usb/host/ehci.h struct ehci_iso_stream *stream; /* endpoint's queue */ stream 3373 drivers/usb/host/fotg210-hcd.c usecs += q->itd->stream->usecs; stream 3911 drivers/usb/host/fotg210-hcd.c struct fotg210_iso_stream *stream; stream 3913 drivers/usb/host/fotg210-hcd.c stream = kzalloc(sizeof(*stream), mem_flags); stream 3914 drivers/usb/host/fotg210-hcd.c if (likely(stream != NULL)) { stream 3915 drivers/usb/host/fotg210-hcd.c INIT_LIST_HEAD(&stream->td_list); stream 3916 drivers/usb/host/fotg210-hcd.c INIT_LIST_HEAD(&stream->free_list); stream 3917 drivers/usb/host/fotg210-hcd.c stream->next_uframe = -1; stream 3919 drivers/usb/host/fotg210-hcd.c return stream; stream 3923 drivers/usb/host/fotg210-hcd.c struct fotg210_iso_stream *stream, struct usb_device *dev, stream 3949 drivers/usb/host/fotg210-hcd.c stream->buf0 = cpu_to_hc32(fotg210, (epnum << 8) | dev->devnum); stream 3950 drivers/usb/host/fotg210-hcd.c stream->buf1 = cpu_to_hc32(fotg210, buf1); stream 3951 drivers/usb/host/fotg210-hcd.c stream->buf2 = cpu_to_hc32(fotg210, multi); stream 3958 drivers/usb/host/fotg210-hcd.c stream->usecs = NS_TO_US(usb_calc_bus_time(dev->speed, stream 3960 drivers/usb/host/fotg210-hcd.c stream->usecs /= 8; stream 3962 drivers/usb/host/fotg210-hcd.c stream->highspeed = 1; stream 3963 drivers/usb/host/fotg210-hcd.c stream->usecs = HS_USECS_ISO(maxp); stream 3965 drivers/usb/host/fotg210-hcd.c bandwidth = stream->usecs * 8; stream 3968 drivers/usb/host/fotg210-hcd.c stream->bandwidth = bandwidth; stream 3969 drivers/usb/host/fotg210-hcd.c stream->udev = dev; stream 3970 drivers/usb/host/fotg210-hcd.c stream->bEndpointAddress = is_input | epnum; stream 3971 drivers/usb/host/fotg210-hcd.c stream->interval = interval; stream 3972 drivers/usb/host/fotg210-hcd.c stream->maxp = maxp; stream 3979 drivers/usb/host/fotg210-hcd.c struct fotg210_iso_stream *stream; stream 3990 drivers/usb/host/fotg210-hcd.c stream = ep->hcpriv; stream 3992 drivers/usb/host/fotg210-hcd.c if (unlikely(stream == NULL)) { stream 3993 drivers/usb/host/fotg210-hcd.c stream = iso_stream_alloc(GFP_ATOMIC); stream 3994 drivers/usb/host/fotg210-hcd.c if (likely(stream != NULL)) { stream 3995 drivers/usb/host/fotg210-hcd.c ep->hcpriv = stream; stream 3996 drivers/usb/host/fotg210-hcd.c stream->ep = ep; stream 3997 drivers/usb/host/fotg210-hcd.c iso_stream_init(fotg210, stream, urb->dev, urb->pipe, stream 4002 drivers/usb/host/fotg210-hcd.c } else if (unlikely(stream->hw != NULL)) { stream 4006 drivers/usb/host/fotg210-hcd.c stream = NULL; stream 4010 drivers/usb/host/fotg210-hcd.c return stream; stream 4031 drivers/usb/host/fotg210-hcd.c struct fotg210_iso_stream *stream, struct urb *urb) stream 4037 drivers/usb/host/fotg210-hcd.c iso_sched->span = urb->number_of_packets * stream->interval; stream 4067 drivers/usb/host/fotg210-hcd.c static void iso_sched_free(struct fotg210_iso_stream *stream, stream 4073 drivers/usb/host/fotg210-hcd.c list_splice(&iso_sched->td_list, &stream->free_list); stream 4077 drivers/usb/host/fotg210-hcd.c static int itd_urb_transaction(struct fotg210_iso_stream *stream, stream 4091 drivers/usb/host/fotg210-hcd.c itd_sched_init(fotg210, sched, stream, urb); stream 4106 drivers/usb/host/fotg210-hcd.c if (likely(!list_empty(&stream->free_list))) { stream 4107 drivers/usb/host/fotg210-hcd.c itd = list_first_entry(&stream->free_list, stream 4120 drivers/usb/host/fotg210-hcd.c iso_sched_free(stream, sched); stream 4166 drivers/usb/host/fotg210-hcd.c struct fotg210_iso_stream *stream) stream 4189 drivers/usb/host/fotg210-hcd.c if (likely(!list_empty(&stream->td_list))) { stream 4197 drivers/usb/host/fotg210-hcd.c if (!stream->highspeed && fotg210->fs_i_thresh) stream 4206 drivers/usb/host/fotg210-hcd.c excess = (stream->next_uframe - period - next) & (mod - 1); stream 4245 drivers/usb/host/fotg210-hcd.c stream->usecs, period)) stream 4268 drivers/usb/host/fotg210-hcd.c stream->next_uframe = start & (mod - 1); stream 4271 drivers/usb/host/fotg210-hcd.c urb->start_frame = stream->next_uframe; stream 4272 drivers/usb/host/fotg210-hcd.c if (!stream->highspeed) stream 4281 drivers/usb/host/fotg210-hcd.c iso_sched_free(stream, sched); stream 4287 drivers/usb/host/fotg210-hcd.c struct fotg210_iso_stream *stream, struct fotg210_itd *itd) stream 4293 drivers/usb/host/fotg210-hcd.c itd->hw_bufp[0] = stream->buf0; stream 4294 drivers/usb/host/fotg210-hcd.c itd->hw_bufp[1] = stream->buf1; stream 4295 drivers/usb/host/fotg210-hcd.c itd->hw_bufp[2] = stream->buf2; stream 4356 drivers/usb/host/fotg210-hcd.c unsigned mod, struct fotg210_iso_stream *stream) stream 4363 drivers/usb/host/fotg210-hcd.c next_uframe = stream->next_uframe & (mod - 1); stream 4365 drivers/usb/host/fotg210-hcd.c if (unlikely(list_empty(&stream->td_list))) { stream 4367 drivers/usb/host/fotg210-hcd.c += stream->bandwidth; stream 4370 drivers/usb/host/fotg210-hcd.c urb->dev->devpath, stream->bEndpointAddress & 0x0f, stream 4371 drivers/usb/host/fotg210-hcd.c (stream->bEndpointAddress & USB_DIR_IN) ? "in" : "out", stream 4385 drivers/usb/host/fotg210-hcd.c list_move_tail(&itd->itd_list, &stream->td_list); stream 4386 drivers/usb/host/fotg210-hcd.c itd->stream = stream; stream 4388 drivers/usb/host/fotg210-hcd.c itd_init(fotg210, stream, itd); stream 4396 drivers/usb/host/fotg210-hcd.c next_uframe += stream->interval; stream 4408 drivers/usb/host/fotg210-hcd.c stream->next_uframe = next_uframe; stream 4411 drivers/usb/host/fotg210-hcd.c iso_sched_free(stream, iso_sched); stream 4438 drivers/usb/host/fotg210-hcd.c struct fotg210_iso_stream *stream = itd->stream; stream 4498 drivers/usb/host/fotg210-hcd.c if (unlikely(list_is_singular(&stream->td_list))) { stream 4500 drivers/usb/host/fotg210-hcd.c -= stream->bandwidth; stream 4503 drivers/usb/host/fotg210-hcd.c dev->devpath, stream->bEndpointAddress & 0x0f, stream 4504 drivers/usb/host/fotg210-hcd.c (stream->bEndpointAddress & USB_DIR_IN) ? "in" : "out"); stream 4511 drivers/usb/host/fotg210-hcd.c list_move_tail(&itd->itd_list, &stream->free_list); stream 4514 drivers/usb/host/fotg210-hcd.c if (list_empty(&stream->td_list)) { stream 4515 drivers/usb/host/fotg210-hcd.c list_splice_tail_init(&stream->free_list, stream 4528 drivers/usb/host/fotg210-hcd.c struct fotg210_iso_stream *stream; stream 4531 drivers/usb/host/fotg210-hcd.c stream = iso_stream_find(fotg210, urb); stream 4532 drivers/usb/host/fotg210-hcd.c if (unlikely(stream == NULL)) { stream 4536 drivers/usb/host/fotg210-hcd.c if (unlikely(urb->interval != stream->interval && stream 4540 drivers/usb/host/fotg210-hcd.c stream->interval, urb->interval); stream 4552 drivers/usb/host/fotg210-hcd.c stream); stream 4556 drivers/usb/host/fotg210-hcd.c status = itd_urb_transaction(stream, fotg210, urb, mem_flags); stream 4571 drivers/usb/host/fotg210-hcd.c status = iso_stream_schedule(fotg210, urb, stream); stream 4573 drivers/usb/host/fotg210-hcd.c itd_link_urb(fotg210, urb, fotg210->periodic_size << 3, stream); stream 5391 drivers/usb/host/fotg210-hcd.c struct fotg210_iso_stream *stream = ep->hcpriv; stream 5393 drivers/usb/host/fotg210-hcd.c if (!list_empty(&stream->td_list)) stream 5397 drivers/usb/host/fotg210-hcd.c kfree(stream); stream 564 drivers/usb/host/fotg210.h struct fotg210_iso_stream *stream; /* endpoint's queue */ stream 263 drivers/usb/host/xhci-trace.h __field(unsigned int, stream) stream 278 drivers/usb/host/xhci-trace.h __entry->stream = urb->stream_id; stream 299 drivers/usb/host/xhci-trace.h __entry->num_sgs, __entry->stream, __entry->flags stream 549 drivers/usb/host/xhci.h #define DB_VALUE(ep, stream) ((((ep) + 1) & 0xff) | ((stream) << 16)) stream 379 fs/btrfs/zstd.c ZSTD_CStream *stream; stream 397 fs/btrfs/zstd.c stream = ZSTD_initCStream(params, len, workspace->mem, stream 399 fs/btrfs/zstd.c if (!stream) { stream 426 fs/btrfs/zstd.c ret2 = ZSTD_compressStream(stream, &workspace->out_buf, stream 495 fs/btrfs/zstd.c ret2 = ZSTD_endStream(stream, &workspace->out_buf); stream 558 fs/btrfs/zstd.c ZSTD_DStream *stream; stream 565 fs/btrfs/zstd.c stream = ZSTD_initDStream( stream 567 fs/btrfs/zstd.c if (!stream) { stream 584 fs/btrfs/zstd.c ret2 = ZSTD_decompressStream(stream, &workspace->out_buf, stream 635 fs/btrfs/zstd.c ZSTD_DStream *stream; stream 642 fs/btrfs/zstd.c stream = ZSTD_initDStream( stream 644 fs/btrfs/zstd.c if (!stream) { stream 673 fs/btrfs/zstd.c ret2 = ZSTD_decompressStream(stream, &workspace->out_buf, stream 27 fs/cramfs/uncompress.c static z_stream stream; stream 35 fs/cramfs/uncompress.c stream.next_in = src; stream 36 fs/cramfs/uncompress.c stream.avail_in = srclen; stream 38 fs/cramfs/uncompress.c stream.next_out = dst; stream 39 fs/cramfs/uncompress.c stream.avail_out = dstlen; stream 41 fs/cramfs/uncompress.c err = zlib_inflateReset(&stream); stream 44 fs/cramfs/uncompress.c zlib_inflateEnd(&stream); stream 45 fs/cramfs/uncompress.c zlib_inflateInit(&stream); stream 48 fs/cramfs/uncompress.c err = zlib_inflate(&stream, Z_FINISH); stream 51 fs/cramfs/uncompress.c return stream.total_out; stream 62 fs/cramfs/uncompress.c stream.workspace = vmalloc(zlib_inflate_workspacesize()); stream 63 fs/cramfs/uncompress.c if (!stream.workspace) { stream 67 fs/cramfs/uncompress.c stream.next_in = NULL; stream 68 fs/cramfs/uncompress.c stream.avail_in = 0; stream 69 fs/cramfs/uncompress.c zlib_inflateInit(&stream); stream 77 fs/cramfs/uncompress.c zlib_inflateEnd(&stream); stream 78 fs/cramfs/uncompress.c vfree(stream.workspace); stream 70 fs/hostfs/hostfs.h extern void seek_dir(void *stream, unsigned long long pos); stream 71 fs/hostfs/hostfs.h extern char *read_dir(void *stream, unsigned long long *pos_out, stream 74 fs/hostfs/hostfs.h extern void close_file(void *stream); stream 76 fs/hostfs/hostfs.h extern void close_dir(void *stream); stream 100 fs/hostfs/hostfs_user.c void seek_dir(void *stream, unsigned long long pos) stream 102 fs/hostfs/hostfs_user.c DIR *dir = stream; stream 107 fs/hostfs/hostfs_user.c char *read_dir(void *stream, unsigned long long *pos_out, stream 111 fs/hostfs/hostfs_user.c DIR *dir = stream; stream 174 fs/hostfs/hostfs_user.c void close_file(void *stream) stream 176 fs/hostfs/hostfs_user.c close(*((int *) stream)); stream 179 fs/hostfs/hostfs_user.c void close_dir(void *stream) stream 181 fs/hostfs/hostfs_user.c closedir(stream); stream 50 fs/isofs/compress.c z_stream stream = { .total_out = 0, stream 105 fs/isofs/compress.c stream.workspace = zisofs_zlib_workspace; stream 108 fs/isofs/compress.c zerr = zlib_inflateInit(&stream); stream 121 fs/isofs/compress.c if (!stream.avail_out) { stream 123 fs/isofs/compress.c stream.next_out = page_address(pages[curpage]) stream 125 fs/isofs/compress.c stream.avail_out = PAGE_SIZE - poffset; stream 128 fs/isofs/compress.c stream.next_out = (void *)&zisofs_sink_page; stream 129 fs/isofs/compress.c stream.avail_out = PAGE_SIZE; stream 132 fs/isofs/compress.c if (!stream.avail_in) { stream 138 fs/isofs/compress.c stream.next_in = bhs[curbh]->b_data + stream 140 fs/isofs/compress.c stream.avail_in = min_t(unsigned, bufsize - stream 143 fs/isofs/compress.c block_size -= stream.avail_in; stream 147 fs/isofs/compress.c while (stream.avail_out && stream.avail_in) { stream 148 fs/isofs/compress.c zerr = zlib_inflate(&stream, Z_SYNC_FLUSH); stream 149 fs/isofs/compress.c if (zerr == Z_BUF_ERROR && stream.avail_in == 0) stream 165 fs/isofs/compress.c curbh, stream.avail_in, stream 166 fs/isofs/compress.c stream.avail_out); stream 173 fs/isofs/compress.c if (!stream.avail_out) { stream 181 fs/isofs/compress.c if (!stream.avail_in) stream 185 fs/isofs/compress.c zlib_inflateEnd(&stream); stream 194 fs/isofs/compress.c return stream.total_out; stream 538 fs/nfs/dir.c struct xdr_stream stream; stream 552 fs/nfs/dir.c xdr_init_decode_pages(&stream, &buf, xdr_pages, buflen); stream 553 fs/nfs/dir.c xdr_set_scratch_buffer(&stream, page_address(scratch), PAGE_SIZE); stream 556 fs/nfs/dir.c status = xdr_decode(desc, entry, &stream); stream 654 fs/nfs/filelayout/filelayout.c struct xdr_stream stream; stream 667 fs/nfs/filelayout/filelayout.c xdr_init_decode_pages(&stream, &buf, lgr->layoutp->pages, lgr->layoutp->len); stream 668 fs/nfs/filelayout/filelayout.c xdr_set_scratch_buffer(&stream, page_address(scratch), PAGE_SIZE); stream 672 fs/nfs/filelayout/filelayout.c p = xdr_inline_decode(&stream, NFS4_DEVICEID4_SIZE + 20); stream 716 fs/nfs/filelayout/filelayout.c p = xdr_inline_decode(&stream, 4); stream 726 fs/nfs/filelayout/filelayout.c p = xdr_inline_decode(&stream, fl->fh_array[i]->size); stream 73 fs/nfs/filelayout/filelayoutdev.c struct xdr_stream stream; stream 84 fs/nfs/filelayout/filelayoutdev.c xdr_init_decode_pages(&stream, &buf, pdev->pages, pdev->pglen); stream 85 fs/nfs/filelayout/filelayoutdev.c xdr_set_scratch_buffer(&stream, page_address(scratch), PAGE_SIZE); stream 88 fs/nfs/filelayout/filelayoutdev.c p = xdr_inline_decode(&stream, 4); stream 106 fs/nfs/filelayout/filelayoutdev.c p = xdr_inline_decode(&stream, cnt << 2); stream 119 fs/nfs/filelayout/filelayoutdev.c p = xdr_inline_decode(&stream, 4); stream 157 fs/nfs/filelayout/filelayoutdev.c p = xdr_inline_decode(&stream, 4); stream 164 fs/nfs/filelayout/filelayoutdev.c &stream, gfp_flags); stream 370 fs/nfs/flexfilelayout/flexfilelayout.c struct xdr_stream stream; stream 383 fs/nfs/flexfilelayout/flexfilelayout.c xdr_init_decode_pages(&stream, &buf, lgr->layoutp->pages, stream 385 fs/nfs/flexfilelayout/flexfilelayout.c xdr_set_scratch_buffer(&stream, page_address(scratch), PAGE_SIZE); stream 389 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_inline_decode(&stream, 8 + 4); stream 424 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_inline_decode(&stream, 4); stream 442 fs/nfs/flexfilelayout/flexfilelayout.c rc = decode_deviceid(&stream, &fls->mirror_array[i]->devid); stream 448 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_inline_decode(&stream, 4); stream 454 fs/nfs/flexfilelayout/flexfilelayout.c rc = decode_pnfs_stateid(&stream, &fls->mirror_array[i]->stateid); stream 460 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_inline_decode(&stream, 4); stream 474 fs/nfs/flexfilelayout/flexfilelayout.c rc = decode_nfs_fh(&stream, stream 483 fs/nfs/flexfilelayout/flexfilelayout.c rc = decode_name(&stream, &id); stream 490 fs/nfs/flexfilelayout/flexfilelayout.c rc = decode_name(&stream, &id); stream 535 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_inline_decode(&stream, 4); stream 540 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_inline_decode(&stream, 4); stream 45 fs/nfs/flexfilelayout/flexfilelayoutdev.c struct xdr_stream stream; stream 71 fs/nfs/flexfilelayout/flexfilelayoutdev.c xdr_init_decode_pages(&stream, &buf, pdev->pages, pdev->pglen); stream 72 fs/nfs/flexfilelayout/flexfilelayoutdev.c xdr_set_scratch_buffer(&stream, page_address(scratch), PAGE_SIZE); stream 75 fs/nfs/flexfilelayout/flexfilelayoutdev.c p = xdr_inline_decode(&stream, 4); stream 84 fs/nfs/flexfilelayout/flexfilelayoutdev.c &stream, gfp_flags); stream 96 fs/nfs/flexfilelayout/flexfilelayoutdev.c p = xdr_inline_decode(&stream, 4); stream 111 fs/nfs/flexfilelayout/flexfilelayoutdev.c p = xdr_inline_decode(&stream, 20); stream 157 fs/squashfs/block.c if (!msblk->stream) stream 132 fs/squashfs/decompressor.c void *stream, *comp_opts = get_comp_opts(sb, flags); stream 137 fs/squashfs/decompressor.c stream = squashfs_decompressor_create(msblk, comp_opts); stream 138 fs/squashfs/decompressor.c if (IS_ERR(stream)) stream 141 fs/squashfs/decompressor.c return stream; stream 48 fs/squashfs/decompressor_multi.c void *stream; stream 54 fs/squashfs/decompressor_multi.c struct squashfs_stream *stream) stream 56 fs/squashfs/decompressor_multi.c mutex_lock(&stream->mutex); stream 57 fs/squashfs/decompressor_multi.c list_add(&decomp_strm->list, &stream->strm_list); stream 58 fs/squashfs/decompressor_multi.c mutex_unlock(&stream->mutex); stream 59 fs/squashfs/decompressor_multi.c wake_up(&stream->wait); stream 65 fs/squashfs/decompressor_multi.c struct squashfs_stream *stream; stream 69 fs/squashfs/decompressor_multi.c stream = kzalloc(sizeof(*stream), GFP_KERNEL); stream 70 fs/squashfs/decompressor_multi.c if (!stream) stream 73 fs/squashfs/decompressor_multi.c stream->comp_opts = comp_opts; stream 74 fs/squashfs/decompressor_multi.c mutex_init(&stream->mutex); stream 75 fs/squashfs/decompressor_multi.c INIT_LIST_HEAD(&stream->strm_list); stream 76 fs/squashfs/decompressor_multi.c init_waitqueue_head(&stream->wait); stream 88 fs/squashfs/decompressor_multi.c decomp_strm->stream = msblk->decompressor->init(msblk, stream 89 fs/squashfs/decompressor_multi.c stream->comp_opts); stream 90 fs/squashfs/decompressor_multi.c if (IS_ERR(decomp_strm->stream)) { stream 91 fs/squashfs/decompressor_multi.c err = PTR_ERR(decomp_strm->stream); stream 95 fs/squashfs/decompressor_multi.c list_add(&decomp_strm->list, &stream->strm_list); stream 96 fs/squashfs/decompressor_multi.c stream->avail_decomp = 1; stream 97 fs/squashfs/decompressor_multi.c return stream; stream 101 fs/squashfs/decompressor_multi.c kfree(stream); stream 108 fs/squashfs/decompressor_multi.c struct squashfs_stream *stream = msblk->stream; stream 109 fs/squashfs/decompressor_multi.c if (stream) { stream 112 fs/squashfs/decompressor_multi.c while (!list_empty(&stream->strm_list)) { stream 113 fs/squashfs/decompressor_multi.c decomp_strm = list_entry(stream->strm_list.prev, stream 116 fs/squashfs/decompressor_multi.c msblk->decompressor->free(decomp_strm->stream); stream 118 fs/squashfs/decompressor_multi.c stream->avail_decomp--; stream 120 fs/squashfs/decompressor_multi.c WARN_ON(stream->avail_decomp); stream 121 fs/squashfs/decompressor_multi.c kfree(stream->comp_opts); stream 122 fs/squashfs/decompressor_multi.c kfree(stream); stream 128 fs/squashfs/decompressor_multi.c struct squashfs_stream *stream) stream 133 fs/squashfs/decompressor_multi.c mutex_lock(&stream->mutex); stream 136 fs/squashfs/decompressor_multi.c if (!list_empty(&stream->strm_list)) { stream 137 fs/squashfs/decompressor_multi.c decomp_strm = list_entry(stream->strm_list.prev, stream 140 fs/squashfs/decompressor_multi.c mutex_unlock(&stream->mutex); stream 148 fs/squashfs/decompressor_multi.c if (stream->avail_decomp >= MAX_DECOMPRESSOR) stream 156 fs/squashfs/decompressor_multi.c decomp_strm->stream = msblk->decompressor->init(msblk, stream 157 fs/squashfs/decompressor_multi.c stream->comp_opts); stream 158 fs/squashfs/decompressor_multi.c if (IS_ERR(decomp_strm->stream)) { stream 163 fs/squashfs/decompressor_multi.c stream->avail_decomp++; stream 164 fs/squashfs/decompressor_multi.c WARN_ON(stream->avail_decomp > MAX_DECOMPRESSOR); stream 166 fs/squashfs/decompressor_multi.c mutex_unlock(&stream->mutex); stream 174 fs/squashfs/decompressor_multi.c mutex_unlock(&stream->mutex); stream 175 fs/squashfs/decompressor_multi.c wait_event(stream->wait, stream 176 fs/squashfs/decompressor_multi.c !list_empty(&stream->strm_list)); stream 187 fs/squashfs/decompressor_multi.c struct squashfs_stream *stream = msblk->stream; stream 188 fs/squashfs/decompressor_multi.c struct decomp_stream *decomp_stream = get_decomp_stream(msblk, stream); stream 189 fs/squashfs/decompressor_multi.c res = msblk->decompressor->decompress(msblk, decomp_stream->stream, stream 191 fs/squashfs/decompressor_multi.c put_decomp_stream(decomp_stream, stream); stream 23 fs/squashfs/decompressor_multi_percpu.c void *stream; stream 29 fs/squashfs/decompressor_multi_percpu.c struct squashfs_stream *stream; stream 38 fs/squashfs/decompressor_multi_percpu.c stream = per_cpu_ptr(percpu, cpu); stream 39 fs/squashfs/decompressor_multi_percpu.c stream->stream = msblk->decompressor->init(msblk, comp_opts); stream 40 fs/squashfs/decompressor_multi_percpu.c if (IS_ERR(stream->stream)) { stream 41 fs/squashfs/decompressor_multi_percpu.c err = PTR_ERR(stream->stream); stream 51 fs/squashfs/decompressor_multi_percpu.c stream = per_cpu_ptr(percpu, cpu); stream 52 fs/squashfs/decompressor_multi_percpu.c if (!IS_ERR_OR_NULL(stream->stream)) stream 53 fs/squashfs/decompressor_multi_percpu.c msblk->decompressor->free(stream->stream); stream 62 fs/squashfs/decompressor_multi_percpu.c (struct squashfs_stream __percpu *) msblk->stream; stream 63 fs/squashfs/decompressor_multi_percpu.c struct squashfs_stream *stream; stream 66 fs/squashfs/decompressor_multi_percpu.c if (msblk->stream) { stream 68 fs/squashfs/decompressor_multi_percpu.c stream = per_cpu_ptr(percpu, cpu); stream 69 fs/squashfs/decompressor_multi_percpu.c msblk->decompressor->free(stream->stream); stream 79 fs/squashfs/decompressor_multi_percpu.c (struct squashfs_stream __percpu *) msblk->stream; stream 80 fs/squashfs/decompressor_multi_percpu.c struct squashfs_stream *stream = get_cpu_ptr(percpu); stream 81 fs/squashfs/decompressor_multi_percpu.c int res = msblk->decompressor->decompress(msblk, stream->stream, bh, b, stream 83 fs/squashfs/decompressor_multi_percpu.c put_cpu_ptr(stream); stream 23 fs/squashfs/decompressor_single.c void *stream; stream 30 fs/squashfs/decompressor_single.c struct squashfs_stream *stream; stream 33 fs/squashfs/decompressor_single.c stream = kmalloc(sizeof(*stream), GFP_KERNEL); stream 34 fs/squashfs/decompressor_single.c if (stream == NULL) stream 37 fs/squashfs/decompressor_single.c stream->stream = msblk->decompressor->init(msblk, comp_opts); stream 38 fs/squashfs/decompressor_single.c if (IS_ERR(stream->stream)) { stream 39 fs/squashfs/decompressor_single.c err = PTR_ERR(stream->stream); stream 44 fs/squashfs/decompressor_single.c mutex_init(&stream->mutex); stream 45 fs/squashfs/decompressor_single.c return stream; stream 48 fs/squashfs/decompressor_single.c kfree(stream); stream 54 fs/squashfs/decompressor_single.c struct squashfs_stream *stream = msblk->stream; stream 56 fs/squashfs/decompressor_single.c if (stream) { stream 57 fs/squashfs/decompressor_single.c msblk->decompressor->free(stream->stream); stream 58 fs/squashfs/decompressor_single.c kfree(stream); stream 66 fs/squashfs/decompressor_single.c struct squashfs_stream *stream = msblk->stream; stream 68 fs/squashfs/decompressor_single.c mutex_lock(&stream->mutex); stream 69 fs/squashfs/decompressor_single.c res = msblk->decompressor->decompress(msblk, stream->stream, bh, b, stream 71 fs/squashfs/decompressor_single.c mutex_unlock(&stream->mutex); stream 55 fs/squashfs/lz4_wrapper.c struct squashfs_lz4 *stream; stream 57 fs/squashfs/lz4_wrapper.c stream = kzalloc(sizeof(*stream), GFP_KERNEL); stream 58 fs/squashfs/lz4_wrapper.c if (stream == NULL) stream 60 fs/squashfs/lz4_wrapper.c stream->input = vmalloc(block_size); stream 61 fs/squashfs/lz4_wrapper.c if (stream->input == NULL) stream 63 fs/squashfs/lz4_wrapper.c stream->output = vmalloc(block_size); stream 64 fs/squashfs/lz4_wrapper.c if (stream->output == NULL) stream 67 fs/squashfs/lz4_wrapper.c return stream; stream 70 fs/squashfs/lz4_wrapper.c vfree(stream->input); stream 72 fs/squashfs/lz4_wrapper.c kfree(stream); stream 81 fs/squashfs/lz4_wrapper.c struct squashfs_lz4 *stream = strm; stream 83 fs/squashfs/lz4_wrapper.c if (stream) { stream 84 fs/squashfs/lz4_wrapper.c vfree(stream->input); stream 85 fs/squashfs/lz4_wrapper.c vfree(stream->output); stream 87 fs/squashfs/lz4_wrapper.c kfree(stream); stream 95 fs/squashfs/lz4_wrapper.c struct squashfs_lz4 *stream = strm; stream 96 fs/squashfs/lz4_wrapper.c void *buff = stream->input, *data; stream 108 fs/squashfs/lz4_wrapper.c res = LZ4_decompress_safe(stream->input, stream->output, stream 116 fs/squashfs/lz4_wrapper.c buff = stream->output; stream 32 fs/squashfs/lzo_wrapper.c struct squashfs_lzo *stream = kzalloc(sizeof(*stream), GFP_KERNEL); stream 33 fs/squashfs/lzo_wrapper.c if (stream == NULL) stream 35 fs/squashfs/lzo_wrapper.c stream->input = vmalloc(block_size); stream 36 fs/squashfs/lzo_wrapper.c if (stream->input == NULL) stream 38 fs/squashfs/lzo_wrapper.c stream->output = vmalloc(block_size); stream 39 fs/squashfs/lzo_wrapper.c if (stream->output == NULL) stream 42 fs/squashfs/lzo_wrapper.c return stream; stream 45 fs/squashfs/lzo_wrapper.c vfree(stream->input); stream 48 fs/squashfs/lzo_wrapper.c kfree(stream); stream 55 fs/squashfs/lzo_wrapper.c struct squashfs_lzo *stream = strm; stream 57 fs/squashfs/lzo_wrapper.c if (stream) { stream 58 fs/squashfs/lzo_wrapper.c vfree(stream->input); stream 59 fs/squashfs/lzo_wrapper.c vfree(stream->output); stream 61 fs/squashfs/lzo_wrapper.c kfree(stream); stream 69 fs/squashfs/lzo_wrapper.c struct squashfs_lzo *stream = strm; stream 70 fs/squashfs/lzo_wrapper.c void *buff = stream->input, *data; stream 83 fs/squashfs/lzo_wrapper.c res = lzo1x_decompress_safe(stream->input, (size_t)length, stream 84 fs/squashfs/lzo_wrapper.c stream->output, &out_len); stream 90 fs/squashfs/lzo_wrapper.c buff = stream->output; stream 56 fs/squashfs/squashfs_fs_sb.h struct squashfs_stream *stream; stream 209 fs/squashfs/super.c msblk->stream = squashfs_decompressor_setup(sb, flags); stream 210 fs/squashfs/super.c if (IS_ERR(msblk->stream)) { stream 211 fs/squashfs/super.c err = PTR_ERR(msblk->stream); stream 212 fs/squashfs/super.c msblk->stream = NULL; stream 84 fs/squashfs/xz_wrapper.c struct squashfs_xz *stream; stream 87 fs/squashfs/xz_wrapper.c stream = kmalloc(sizeof(*stream), GFP_KERNEL); stream 88 fs/squashfs/xz_wrapper.c if (stream == NULL) { stream 93 fs/squashfs/xz_wrapper.c stream->state = xz_dec_init(XZ_PREALLOC, comp_opts->dict_size); stream 94 fs/squashfs/xz_wrapper.c if (stream->state == NULL) { stream 95 fs/squashfs/xz_wrapper.c kfree(stream); stream 100 fs/squashfs/xz_wrapper.c return stream; stream 110 fs/squashfs/xz_wrapper.c struct squashfs_xz *stream = strm; stream 112 fs/squashfs/xz_wrapper.c if (stream) { stream 113 fs/squashfs/xz_wrapper.c xz_dec_end(stream->state); stream 114 fs/squashfs/xz_wrapper.c kfree(stream); stream 125 fs/squashfs/xz_wrapper.c struct squashfs_xz *stream = strm; stream 127 fs/squashfs/xz_wrapper.c xz_dec_reset(stream->state); stream 128 fs/squashfs/xz_wrapper.c stream->buf.in_pos = 0; stream 129 fs/squashfs/xz_wrapper.c stream->buf.in_size = 0; stream 130 fs/squashfs/xz_wrapper.c stream->buf.out_pos = 0; stream 131 fs/squashfs/xz_wrapper.c stream->buf.out_size = PAGE_SIZE; stream 132 fs/squashfs/xz_wrapper.c stream->buf.out = squashfs_first_page(output); stream 135 fs/squashfs/xz_wrapper.c if (stream->buf.in_pos == stream->buf.in_size && k < b) { stream 138 fs/squashfs/xz_wrapper.c stream->buf.in = bh[k]->b_data + offset; stream 139 fs/squashfs/xz_wrapper.c stream->buf.in_size = avail; stream 140 fs/squashfs/xz_wrapper.c stream->buf.in_pos = 0; stream 144 fs/squashfs/xz_wrapper.c if (stream->buf.out_pos == stream->buf.out_size) { stream 145 fs/squashfs/xz_wrapper.c stream->buf.out = squashfs_next_page(output); stream 146 fs/squashfs/xz_wrapper.c if (stream->buf.out != NULL) { stream 147 fs/squashfs/xz_wrapper.c stream->buf.out_pos = 0; stream 152 fs/squashfs/xz_wrapper.c xz_err = xz_dec_run(stream->state, &stream->buf); stream 154 fs/squashfs/xz_wrapper.c if (stream->buf.in_pos == stream->buf.in_size && k < b) stream 163 fs/squashfs/xz_wrapper.c return total + stream->buf.out_pos; stream 26 fs/squashfs/zlib_wrapper.c z_stream *stream = kmalloc(sizeof(z_stream), GFP_KERNEL); stream 27 fs/squashfs/zlib_wrapper.c if (stream == NULL) stream 29 fs/squashfs/zlib_wrapper.c stream->workspace = vmalloc(zlib_inflate_workspacesize()); stream 30 fs/squashfs/zlib_wrapper.c if (stream->workspace == NULL) stream 33 fs/squashfs/zlib_wrapper.c return stream; stream 37 fs/squashfs/zlib_wrapper.c kfree(stream); stream 44 fs/squashfs/zlib_wrapper.c z_stream *stream = strm; stream 46 fs/squashfs/zlib_wrapper.c if (stream) stream 47 fs/squashfs/zlib_wrapper.c vfree(stream->workspace); stream 48 fs/squashfs/zlib_wrapper.c kfree(stream); stream 57 fs/squashfs/zlib_wrapper.c z_stream *stream = strm; stream 59 fs/squashfs/zlib_wrapper.c stream->avail_out = PAGE_SIZE; stream 60 fs/squashfs/zlib_wrapper.c stream->next_out = squashfs_first_page(output); stream 61 fs/squashfs/zlib_wrapper.c stream->avail_in = 0; stream 64 fs/squashfs/zlib_wrapper.c if (stream->avail_in == 0 && k < b) { stream 67 fs/squashfs/zlib_wrapper.c stream->next_in = bh[k]->b_data + offset; stream 68 fs/squashfs/zlib_wrapper.c stream->avail_in = avail; stream 72 fs/squashfs/zlib_wrapper.c if (stream->avail_out == 0) { stream 73 fs/squashfs/zlib_wrapper.c stream->next_out = squashfs_next_page(output); stream 74 fs/squashfs/zlib_wrapper.c if (stream->next_out != NULL) stream 75 fs/squashfs/zlib_wrapper.c stream->avail_out = PAGE_SIZE; stream 79 fs/squashfs/zlib_wrapper.c zlib_err = zlib_inflateInit(stream); stream 87 fs/squashfs/zlib_wrapper.c zlib_err = zlib_inflate(stream, Z_SYNC_FLUSH); stream 89 fs/squashfs/zlib_wrapper.c if (stream->avail_in == 0 && k < b) stream 98 fs/squashfs/zlib_wrapper.c zlib_err = zlib_inflateEnd(stream); stream 105 fs/squashfs/zlib_wrapper.c return stream->total_out; stream 66 fs/squashfs/zstd_wrapper.c ZSTD_DStream *stream; stream 73 fs/squashfs/zstd_wrapper.c stream = ZSTD_initDStream(wksp->window_size, wksp->mem, wksp->mem_size); stream 75 fs/squashfs/zstd_wrapper.c if (!stream) { stream 108 fs/squashfs/zstd_wrapper.c zstd_err = ZSTD_decompressStream(stream, &out_buf, &in_buf); stream 37 include/crypto/chacha.h void chacha_block(u32 *state, u8 *stream, int nrounds); stream 38 include/crypto/chacha.h static inline void chacha20_block(u32 *state, u8 *stream) stream 40 include/crypto/chacha.h chacha_block(state, stream, 20); stream 1617 include/linux/greybus/greybus_protocols.h __u8 stream; stream 221 include/linux/sctp.h __be16 stream; stream 234 include/linux/sctp.h __be16 stream; stream 591 include/linux/sctp.h __be16 stream; stream 606 include/linux/sctp.h __be16 stream; stream 205 include/linux/slimbus.h int slim_stream_prepare(struct slim_stream_runtime *stream, stream 207 include/linux/slimbus.h int slim_stream_enable(struct slim_stream_runtime *stream); stream 208 include/linux/slimbus.h int slim_stream_disable(struct slim_stream_runtime *stream); stream 209 include/linux/slimbus.h int slim_stream_unprepare(struct slim_stream_runtime *stream); stream 210 include/linux/slimbus.h int slim_stream_free(struct slim_stream_runtime *stream); stream 856 include/linux/soundwire/sdw.h void sdw_release_stream(struct sdw_stream_runtime *stream); stream 861 include/linux/soundwire/sdw.h struct sdw_stream_runtime *stream); stream 866 include/linux/soundwire/sdw.h struct sdw_stream_runtime *stream); stream 868 include/linux/soundwire/sdw.h struct sdw_stream_runtime *stream); stream 870 include/linux/soundwire/sdw.h struct sdw_stream_runtime *stream); stream 871 include/linux/soundwire/sdw.h int sdw_prepare_stream(struct sdw_stream_runtime *stream); stream 872 include/linux/soundwire/sdw.h int sdw_enable_stream(struct sdw_stream_runtime *stream); stream 873 include/linux/soundwire/sdw.h int sdw_disable_stream(struct sdw_stream_runtime *stream); stream 874 include/linux/soundwire/sdw.h int sdw_deprepare_stream(struct sdw_stream_runtime *stream); stream 74 include/media/videobuf-core.h struct list_head stream; /* QBUF/DQBUF list */ stream 152 include/media/videobuf-core.h struct list_head stream; stream 509 include/net/iw_handler.h char *iwe_stream_add_event(struct iw_request_info *info, char *stream, stream 513 include/net/iw_handler.h iwe_stream_add_event_check(struct iw_request_info *info, char *stream, stream 516 include/net/iw_handler.h char *res = iwe_stream_add_event(info, stream, ends, iwe, event_len); stream 518 include/net/iw_handler.h if (res == stream) stream 528 include/net/iw_handler.h char *iwe_stream_add_point(struct iw_request_info *info, char *stream, stream 532 include/net/iw_handler.h iwe_stream_add_point_check(struct iw_request_info *info, char *stream, stream 535 include/net/iw_handler.h char *res = iwe_stream_add_point(info, stream, ends, iwe, extra); stream 537 include/net/iw_handler.h if (res == stream) stream 44 include/net/sctp/stream_interleave.h void sctp_stream_interleave_init(struct sctp_stream *stream); stream 21 include/net/sctp/stream_sched.h int (*set)(struct sctp_stream *stream, __u16 sid, __u16 value, stream 23 include/net/sctp/stream_sched.h int (*get)(struct sctp_stream *stream, __u16 sid, __u16 *value); stream 26 include/net/sctp/stream_sched.h int (*init)(struct sctp_stream *stream); stream 28 include/net/sctp/stream_sched.h int (*init_sid)(struct sctp_stream *stream, __u16 sid, gfp_t gfp); stream 30 include/net/sctp/stream_sched.h void (*free)(struct sctp_stream *stream); stream 54 include/net/sctp/stream_sched.h int sctp_sched_init_sid(struct sctp_stream *stream, __u16 sid, gfp_t gfp); stream 55 include/net/sctp/stream_sched.h struct sctp_sched_ops *sctp_sched_ops_from_stream(struct sctp_stream *stream); stream 383 include/net/sctp/structs.h int sctp_stream_init(struct sctp_stream *stream, __u16 outcnt, __u16 incnt, stream 385 include/net/sctp/structs.h int sctp_stream_init_ext(struct sctp_stream *stream, __u16 sid); stream 386 include/net/sctp/structs.h void sctp_stream_free(struct sctp_stream *stream); stream 387 include/net/sctp/structs.h void sctp_stream_clear(struct sctp_stream *stream); stream 388 include/net/sctp/structs.h void sctp_stream_update(struct sctp_stream *stream, struct sctp_stream *new); stream 391 include/net/sctp/structs.h #define sctp_ssn_peek(stream, type, sid) \ stream 392 include/net/sctp/structs.h (sctp_stream_##type((stream), (sid))->ssn) stream 395 include/net/sctp/structs.h #define sctp_ssn_next(stream, type, sid) \ stream 396 include/net/sctp/structs.h (sctp_stream_##type((stream), (sid))->ssn++) stream 399 include/net/sctp/structs.h #define sctp_ssn_skip(stream, type, sid, ssn) \ stream 400 include/net/sctp/structs.h (sctp_stream_##type((stream), (sid))->ssn = ssn + 1) stream 403 include/net/sctp/structs.h #define sctp_mid_peek(stream, type, sid) \ stream 404 include/net/sctp/structs.h (sctp_stream_##type((stream), (sid))->mid) stream 407 include/net/sctp/structs.h #define sctp_mid_next(stream, type, sid) \ stream 408 include/net/sctp/structs.h (sctp_stream_##type((stream), (sid))->mid++) stream 411 include/net/sctp/structs.h #define sctp_mid_skip(stream, type, sid, mid) \ stream 412 include/net/sctp/structs.h (sctp_stream_##type((stream), (sid))->mid = mid + 1) stream 415 include/net/sctp/structs.h #define sctp_mid_uo_peek(stream, type, sid) \ stream 416 include/net/sctp/structs.h (sctp_stream_##type((stream), (sid))->mid_uo) stream 419 include/net/sctp/structs.h #define sctp_mid_uo_next(stream, type, sid) \ stream 420 include/net/sctp/structs.h (sctp_stream_##type((stream), (sid))->mid_uo++) stream 682 include/net/sctp/structs.h return ntohs(ch->subh.data_hdr->stream); stream 1467 include/net/sctp/structs.h struct sctp_stream *stream, stream 1470 include/net/sctp/structs.h return genradix_ptr(&stream->out, sid); stream 1474 include/net/sctp/structs.h struct sctp_stream *stream, stream 1477 include/net/sctp/structs.h return genradix_ptr(&stream->in, sid); stream 1486 include/net/sctp/structs.h static inline __u16 sctp_datachk_len(const struct sctp_stream *stream) stream 1488 include/net/sctp/structs.h return stream->si->data_chunk_len; stream 1491 include/net/sctp/structs.h static inline __u16 sctp_datahdr_len(const struct sctp_stream *stream) stream 1493 include/net/sctp/structs.h return stream->si->data_chunk_len - sizeof(struct sctp_chunkhdr); stream 1496 include/net/sctp/structs.h static inline __u16 sctp_ftsnchk_len(const struct sctp_stream *stream) stream 1498 include/net/sctp/structs.h return stream->si->ftsn_chunk_len; stream 1501 include/net/sctp/structs.h static inline __u16 sctp_ftsnhdr_len(const struct sctp_stream *stream) stream 1503 include/net/sctp/structs.h return stream->si->ftsn_chunk_len - sizeof(struct sctp_chunkhdr); stream 1928 include/net/sctp/structs.h struct sctp_stream stream; stream 52 include/net/sctp/ulpevent.h __u16 stream; stream 384 include/sound/ac97_codec.h unsigned int stream: 1, /* stream type: 1 = capture */ stream 100 include/sound/compress_driver.h int (*open)(struct snd_compr_stream *stream); stream 101 include/sound/compress_driver.h int (*free)(struct snd_compr_stream *stream); stream 102 include/sound/compress_driver.h int (*set_params)(struct snd_compr_stream *stream, stream 104 include/sound/compress_driver.h int (*get_params)(struct snd_compr_stream *stream, stream 106 include/sound/compress_driver.h int (*set_metadata)(struct snd_compr_stream *stream, stream 108 include/sound/compress_driver.h int (*get_metadata)(struct snd_compr_stream *stream, stream 110 include/sound/compress_driver.h int (*trigger)(struct snd_compr_stream *stream, int cmd); stream 111 include/sound/compress_driver.h int (*pointer)(struct snd_compr_stream *stream, stream 113 include/sound/compress_driver.h int (*copy)(struct snd_compr_stream *stream, char __user *buf, stream 115 include/sound/compress_driver.h int (*mmap)(struct snd_compr_stream *stream, stream 117 include/sound/compress_driver.h int (*ack)(struct snd_compr_stream *stream, size_t bytes); stream 118 include/sound/compress_driver.h int (*get_caps) (struct snd_compr_stream *stream, stream 120 include/sound/compress_driver.h int (*get_codec_caps) (struct snd_compr_stream *stream, stream 166 include/sound/compress_driver.h static inline void snd_compr_fragment_elapsed(struct snd_compr_stream *stream) stream 168 include/sound/compress_driver.h wake_up(&stream->runtime->sleep); stream 171 include/sound/compress_driver.h static inline void snd_compr_drain_notify(struct snd_compr_stream *stream) stream 173 include/sound/compress_driver.h if (snd_BUG_ON(!stream)) stream 176 include/sound/compress_driver.h stream->runtime->state = SNDRV_PCM_STATE_SETUP; stream 178 include/sound/compress_driver.h wake_up(&stream->runtime->sleep); stream 198 include/sound/compress_driver.h int snd_compr_stop_error(struct snd_compr_stream *stream, stream 22 include/sound/dmaengine_pcm.h if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 164 include/sound/hda_codec.h struct hda_pcm_stream stream[2]; stream 429 include/sound/hda_codec.h unsigned int stream, stream 311 include/sound/hda_register.h snd_hdac_stream_get_pos_lpib(struct hdac_stream *stream) stream 313 include/sound/hda_register.h return snd_hdac_stream_readl(stream, SD_LPIB); stream 317 include/sound/hda_register.h snd_hdac_stream_get_pos_posbuf(struct hdac_stream *stream) stream 319 include/sound/hda_register.h return le32_to_cpu(*stream->posbuf); stream 81 include/sound/hdaudio_ext.h struct hdac_ext_stream *stream, int idx, stream 96 include/sound/hdaudio_ext.h struct hdac_ext_stream *stream, u32 value); stream 98 include/sound/hdaudio_ext.h struct hdac_ext_stream *stream); stream 102 include/sound/hdaudio_ext.h struct hdac_ext_stream *stream, u32 value); stream 103 include/sound/hdaudio_ext.h int snd_hdac_ext_stream_set_lpib(struct hdac_ext_stream *stream, u32 value); stream 108 include/sound/hdaudio_ext.h int snd_hdac_ext_link_stream_setup(struct hdac_ext_stream *stream, int fmt); stream 127 include/sound/hdaudio_ext.h int stream); stream 129 include/sound/hdaudio_ext.h int stream); stream 444 include/sound/pcm.h int stream; /* stream (direction) */ stream 484 include/sound/pcm.h int stream; /* stream (direction) */ stream 538 include/sound/pcm.h int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count); stream 572 include/sound/pcm.h int snd_pcm_open_substream(struct snd_pcm *pcm, int stream, struct file *file, stream 575 include/sound/pcm.h int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream, struct file *file, stream 653 include/sound/pcm.h substream->stream == SNDRV_PCM_STREAM_PLAYBACK)); stream 1351 include/sound/pcm.h if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1369 include/sound/pcm.h int stream; /* PLAYBACK or CAPTURE */ stream 1386 include/sound/pcm.h for (s = info->pcm->streams[info->stream].substream; s; s = s->next) stream 1402 include/sound/pcm.h int snd_pcm_add_chmap_ctls(struct snd_pcm *pcm, int stream, stream 24 include/sound/pxa2xx-lib.h extern int pxa2xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream); stream 79 include/sound/rawmidi.h int stream; /* direction */ stream 143 include/sound/rawmidi.h void snd_rawmidi_set_ops(struct snd_rawmidi *rmidi, int stream, stream 171 include/sound/soc-dai.h bool snd_soc_dai_stream_valid(struct snd_soc_dai *dai, int stream); stream 204 include/sound/soc-dai.h void *stream, int direction); stream 210 include/sound/soc-dai.h int (*mute_stream)(struct snd_soc_dai *dai, int mute, int stream); stream 359 include/sound/soc-dai.h return (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) ? stream 367 include/sound/soc-dai.h if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 404 include/sound/soc-dai.h void *stream, int direction) stream 407 include/sound/soc-dai.h return dai->driver->ops->set_sdw_stream(dai, stream, direction); stream 435 include/sound/soc-dapm.h void snd_soc_dapm_stream_event(struct snd_soc_pcm_runtime *rtd, int stream, stream 480 include/sound/soc-dapm.h int snd_soc_dapm_dai_get_connected_widgets(struct snd_soc_dai *dai, int stream, stream 106 include/sound/soc-dpcm.h #define for_each_dpcm_fe(be, stream, dpcm) \ stream 107 include/sound/soc-dpcm.h list_for_each_entry(dpcm, &(be)->dpcm[stream].fe_clients, list_fe) stream 109 include/sound/soc-dpcm.h #define for_each_dpcm_be(fe, stream, dpcm) \ stream 110 include/sound/soc-dpcm.h list_for_each_entry(dpcm, &(fe)->dpcm[stream].be_clients, list_be) stream 111 include/sound/soc-dpcm.h #define for_each_dpcm_be_safe(fe, stream, dpcm, _dpcm) \ stream 112 include/sound/soc-dpcm.h list_for_each_entry_safe(dpcm, _dpcm, &(fe)->dpcm[stream].be_clients, list_be) stream 113 include/sound/soc-dpcm.h #define for_each_dpcm_be_rollback(fe, stream, dpcm) \ stream 114 include/sound/soc-dpcm.h list_for_each_entry_continue_reverse(dpcm, &(fe)->dpcm[stream].be_clients, list_be) stream 118 include/sound/soc-dpcm.h struct snd_soc_pcm_runtime *be, int stream); stream 122 include/sound/soc-dpcm.h struct snd_soc_pcm_runtime *be, int stream); stream 125 include/sound/soc-dpcm.h int snd_soc_dpcm_fe_can_update(struct snd_soc_pcm_runtime *fe, int stream); stream 129 include/sound/soc-dpcm.h struct snd_soc_pcm_runtime *be, int stream); stream 133 include/sound/soc-dpcm.h snd_soc_dpcm_get_substream(struct snd_soc_pcm_runtime *be, int stream); stream 137 include/sound/soc-dpcm.h snd_soc_dpcm_be_get_state(struct snd_soc_pcm_runtime *be, int stream); stream 140 include/sound/soc-dpcm.h void snd_soc_dpcm_be_set_state(struct snd_soc_pcm_runtime *be, int stream, stream 156 include/sound/soc-dpcm.h int stream, struct snd_soc_dapm_widget_list **list_); stream 158 include/sound/soc-dpcm.h int stream, struct snd_soc_dapm_widget_list **list, int new); stream 159 include/sound/soc-dpcm.h int dpcm_be_dai_startup(struct snd_soc_pcm_runtime *fe, int stream); stream 160 include/sound/soc-dpcm.h int dpcm_be_dai_shutdown(struct snd_soc_pcm_runtime *fe, int stream); stream 161 include/sound/soc-dpcm.h void dpcm_be_disconnect(struct snd_soc_pcm_runtime *fe, int stream); stream 162 include/sound/soc-dpcm.h void dpcm_clear_pending_state(struct snd_soc_pcm_runtime *fe, int stream); stream 163 include/sound/soc-dpcm.h int dpcm_be_dai_hw_free(struct snd_soc_pcm_runtime *fe, int stream); stream 165 include/sound/soc-dpcm.h int dpcm_be_dai_trigger(struct snd_soc_pcm_runtime *fe, int stream, int cmd); stream 166 include/sound/soc-dpcm.h int dpcm_be_dai_prepare(struct snd_soc_pcm_runtime *fe, int stream); stream 462 include/sound/soc.h const char *dai_link, int stream); stream 467 include/sound/soc.h void snd_soc_runtime_activate(struct snd_soc_pcm_runtime *rtd, int stream); stream 468 include/sound/soc.h void snd_soc_runtime_deactivate(struct snd_soc_pcm_runtime *rtd, int stream); stream 192 include/trace/events/asoc.h TP_PROTO(int paths, int stream), stream 194 include/trace/events/asoc.h TP_ARGS(paths, stream), stream 198 include/trace/events/asoc.h __field( int, stream ) stream 203 include/trace/events/asoc.h __entry->stream = stream; stream 207 include/trace/events/asoc.h __entry->stream ? "capture" : "playback", __entry->paths) stream 155 include/trace/events/hswadsp.h TP_PROTO(struct sst_hsw_stream *stream), stream 157 include/trace/events/hswadsp.h TP_ARGS(stream), stream 169 include/trace/events/hswadsp.h __entry->id = stream->host_id; stream 170 include/trace/events/hswadsp.h __entry->pt_addr = stream->request.ringinfo.ring_pt_address; stream 171 include/trace/events/hswadsp.h __entry->num_pages = stream->request.ringinfo.num_pages; stream 172 include/trace/events/hswadsp.h __entry->ring_size = stream->request.ringinfo.ring_size; stream 173 include/trace/events/hswadsp.h __entry->ring_offset = stream->request.ringinfo.ring_offset; stream 174 include/trace/events/hswadsp.h __entry->first_pfn = stream->request.ringinfo.ring_first_pfn; stream 185 include/trace/events/hswadsp.h TP_PROTO(struct sst_hsw_stream *stream), stream 187 include/trace/events/hswadsp.h TP_ARGS(stream), stream 200 include/trace/events/hswadsp.h __entry->id = stream->host_id; stream 201 include/trace/events/hswadsp.h __entry->stream_id = stream->reply.stream_hw_id; stream 202 include/trace/events/hswadsp.h __entry->mixer_id = stream->reply.mixer_hw_id; stream 203 include/trace/events/hswadsp.h __entry->peak0 = stream->reply.peak_meter_register_address[0]; stream 204 include/trace/events/hswadsp.h __entry->peak1 = stream->reply.peak_meter_register_address[1]; stream 205 include/trace/events/hswadsp.h __entry->vol0 = stream->reply.volume_register_address[0]; stream 206 include/trace/events/hswadsp.h __entry->vol1 = stream->reply.volume_register_address[1]; stream 245 include/trace/events/hswadsp.h TP_PROTO(struct sst_hsw_stream *stream, stream 248 include/trace/events/hswadsp.h TP_ARGS(stream, req), stream 262 include/trace/events/hswadsp.h __entry->id = stream->host_id; stream 281 include/trace/events/hswadsp.h TP_PROTO(struct sst_hsw_stream *stream, stream 284 include/trace/events/hswadsp.h TP_ARGS(stream, req), stream 294 include/trace/events/hswadsp.h __entry->id = stream->host_id; stream 307 include/trace/events/hswadsp.h TP_PROTO(struct sst_hsw_stream *stream, stream 310 include/trace/events/hswadsp.h TP_ARGS(stream, req), stream 318 include/trace/events/hswadsp.h __entry->id = stream->host_id; stream 328 include/trace/events/hswadsp.h TP_PROTO(struct sst_hsw_stream *stream, stream 331 include/trace/events/hswadsp.h TP_ARGS(stream, req), stream 342 include/trace/events/hswadsp.h __entry->id = stream->host_id; stream 203 include/uapi/drm/etnaviv_drm.h __u64 stream; /* in, ptr to cmdstream */ stream 520 include/uapi/sound/asoc.h struct snd_soc_tplg_stream stream[SND_SOC_TPLG_STREAM_CONFIG_MAX]; /* for DAI link */ stream 544 include/uapi/sound/asoc.h struct snd_soc_tplg_stream stream[SND_SOC_TPLG_STREAM_CONFIG_MAX]; /* supported configs playback and captrure */ stream 620 include/uapi/sound/asoc.h struct snd_soc_tplg_stream stream[SND_SOC_TPLG_STREAM_CONFIG_MAX]; /* for DAI link */ stream 629 include/uapi/sound/asoc.h struct snd_soc_tplg_stream stream[SND_SOC_TPLG_STREAM_CONFIG_MAX]; /* supported configs playback and captrure */ stream 333 include/uapi/sound/asound.h int stream; /* RO/WR (control): stream direction */ stream 632 include/uapi/sound/asound.h int stream; /* WR: stream */ stream 644 include/uapi/sound/asound.h int stream; stream 652 include/uapi/sound/asound.h int stream; stream 75 lib/chacha.c void chacha_block(u32 *state, u8 *stream, int nrounds) stream 85 lib/chacha.c put_unaligned_le32(x[i] + state[i], &stream[i * sizeof(u32)]); stream 530 lib/zstd/huf_compress.c #define HUF_FLUSHBITS_1(stream) \ stream 531 lib/zstd/huf_compress.c if (sizeof((stream)->bitContainer) * 8 < HUF_TABLELOG_MAX * 2 + 7) \ stream 532 lib/zstd/huf_compress.c HUF_FLUSHBITS(stream) stream 534 lib/zstd/huf_compress.c #define HUF_FLUSHBITS_2(stream) \ stream 535 lib/zstd/huf_compress.c if (sizeof((stream)->bitContainer) * 8 < HUF_TABLELOG_MAX * 4 + 7) \ stream 536 lib/zstd/huf_compress.c HUF_FLUSHBITS(stream) stream 227 net/sctp/associola.c if (sctp_stream_init(&asoc->stream, asoc->c.sinit_num_ostreams, stream 275 net/sctp/associola.c sctp_stream_free(&asoc->stream); stream 348 net/sctp/associola.c sctp_stream_free(&asoc->stream); stream 848 net/sctp/associola.c asoc->stream.si->enqueue_event(&asoc->ulpq, event); stream 1142 net/sctp/associola.c sctp_stream_clear(&asoc->stream); stream 1169 net/sctp/associola.c sctp_stream_update(&asoc->stream, &new->stream); stream 1399 net/sctp/associola.c sctp_datachk_len(&asoc->stream)); stream 1405 net/sctp/associola.c sctp_datachk_len(&asoc->stream)); stream 1003 net/sctp/auth.c asoc->stream.si->enqueue_event(&asoc->ulpq, ev); stream 110 net/sctp/chunk.c asoc->stream.si->enqueue_event(&asoc->ulpq, ev); stream 179 net/sctp/chunk.c sctp_datachk_len(&asoc->stream)); stream 264 net/sctp/chunk.c chunk = asoc->stream.si->make_datafrag(asoc, sinfo, len, frag, stream 317 net/sctp/chunk.c SCTP_SO(&chunk->asoc->stream, stream 332 net/sctp/chunk.c SCTP_SO(&chunk->asoc->stream, stream 719 net/sctp/output.c packet->overhead - sctp_datachk_len(&chunk->asoc->stream) - 4) stream 754 net/sctp/output.c asoc->stream.si->assign_number(chunk); stream 62 net/sctp/outqueue.c __u16 stream; stream 67 net/sctp/outqueue.c stream = sctp_chunk_stream_no(ch); stream 68 net/sctp/outqueue.c oute = SCTP_SO(&q->asoc->stream, stream)->ext; stream 83 net/sctp/outqueue.c __u16 stream; stream 88 net/sctp/outqueue.c stream = sctp_chunk_stream_no(ch); stream 89 net/sctp/outqueue.c oute = SCTP_SO(&q->asoc->stream, stream)->ext; stream 360 net/sctp/outqueue.c streamout = SCTP_SO(&asoc->stream, chk->sinfo.sinfo_stream); stream 387 net/sctp/outqueue.c q->sched->unsched_all(&asoc->stream); stream 400 net/sctp/outqueue.c if (chk->sinfo.sinfo_stream < asoc->stream.outcnt) { stream 402 net/sctp/outqueue.c SCTP_SO(&asoc->stream, chk->sinfo.sinfo_stream); stream 413 net/sctp/outqueue.c q->sched->sched_all(&asoc->stream); stream 573 net/sctp/outqueue.c q->asoc->stream.si->generate_ftsn(q, q->asoc->ctsn_ack_point); stream 1065 net/sctp/outqueue.c __u32 sid = ntohs(chunk->subh.data_hdr->stream); stream 1066 net/sctp/outqueue.c __u8 stream_state = SCTP_SO(&ctx->asoc->stream, sid)->state; stream 1365 net/sctp/outqueue.c asoc->stream.si->generate_ftsn(q, sack_ctsn); stream 1774 net/sctp/outqueue.c int nskips, __be16 stream) stream 1779 net/sctp/outqueue.c if (skiplist[i].stream == stream) stream 1849 net/sctp/outqueue.c chunk->subh.data_hdr->stream); stream 1850 net/sctp/outqueue.c ftsn_skip_arr[skip_pos].stream = stream 1851 net/sctp/outqueue.c chunk->subh.data_hdr->stream; stream 270 net/sctp/proc.c assoc->hbinterval, assoc->stream.incnt, stream 271 net/sctp/proc.c assoc->stream.outcnt, assoc->max_retrans, stream 91 net/sctp/sm_make_chunk.c asoc->stream.si->enqueue_event(&asoc->ulpq, ev); stream 734 net/sctp/sm_make_chunk.c dp.stream = htons(sinfo->sinfo_stream); stream 1536 net/sctp/sm_make_chunk.c struct sctp_stream *stream; stream 1545 net/sctp/sm_make_chunk.c sid = ntohs(chunk->subh.data_hdr->stream); stream 1546 net/sctp/sm_make_chunk.c stream = &chunk->asoc->stream; stream 1557 net/sctp/sm_make_chunk.c ssn = sctp_ssn_next(stream, out, sid); stream 1559 net/sctp/sm_make_chunk.c ssn = sctp_ssn_peek(stream, out, sid); stream 2446 net/sctp/sm_make_chunk.c if (sctp_stream_init(&asoc->stream, asoc->c.sinit_num_ostreams, stream 3540 net/sctp/sm_make_chunk.c skip.stream = skiplist[i].stream; stream 620 net/sctp/sm_sideeffect.c asoc->stream.si->abort_pd(&asoc->ulpq, GFP_ATOMIC); stream 965 net/sctp/sm_sideeffect.c asoc->stream.si->enqueue_event(&asoc->ulpq, ev); stream 1039 net/sctp/sm_sideeffect.c asoc->stream.si->enqueue_event(&asoc->ulpq, ev); stream 1049 net/sctp/sm_sideeffect.c asoc->stream.si->enqueue_event(&asoc->ulpq, ev); stream 1061 net/sctp/sm_sideeffect.c asoc->stream.si->enqueue_event(&asoc->ulpq, ev); stream 1333 net/sctp/sm_sideeffect.c asoc->stream.si->report_ftsn(&asoc->ulpq, cmd->obj.u32); stream 1337 net/sctp/sm_sideeffect.c asoc->stream.si->handle_ftsn(&asoc->ulpq, stream 1447 net/sctp/sm_sideeffect.c asoc->stream.si->ulpevent_data(&asoc->ulpq, stream 1457 net/sctp/sm_sideeffect.c asoc->stream.si->enqueue_event(&asoc->ulpq, stream 1703 net/sctp/sm_sideeffect.c asoc->stream.si->start_pd(&asoc->ulpq, GFP_ATOMIC); stream 1707 net/sctp/sm_sideeffect.c asoc->stream.si->renege_events(&asoc->ulpq, stream 3090 net/sctp/sm_statefuns.c if (!sctp_chunk_length_valid(chunk, sctp_datachk_len(&asoc->stream))) stream 3111 net/sctp/sm_statefuns.c sctp_datahdr_len(&asoc->stream)); stream 3210 net/sctp/sm_statefuns.c if (!sctp_chunk_length_valid(chunk, sctp_datachk_len(&asoc->stream))) stream 3227 net/sctp/sm_statefuns.c sctp_datahdr_len(&asoc->stream)); stream 4070 net/sctp/sm_statefuns.c if (!sctp_chunk_length_valid(chunk, sctp_ftsnchk_len(&asoc->stream))) stream 4089 net/sctp/sm_statefuns.c if (!asoc->stream.si->validate_ftsn(chunk)) stream 4093 net/sctp/sm_statefuns.c if (len > sctp_ftsnhdr_len(&asoc->stream)) stream 4137 net/sctp/sm_statefuns.c if (!sctp_chunk_length_valid(chunk, sctp_ftsnchk_len(&asoc->stream))) stream 4156 net/sctp/sm_statefuns.c if (!asoc->stream.si->validate_ftsn(chunk)) stream 4160 net/sctp/sm_statefuns.c if (len > sctp_ftsnhdr_len(&asoc->stream)) stream 6341 net/sctp/sm_statefuns.c skb_pull(chunk->skb, sctp_datahdr_len(&asoc->stream)); stream 6389 net/sctp/sm_statefuns.c datalen -= sctp_datachk_len(&asoc->stream); stream 6496 net/sctp/sm_statefuns.c if (ntohs(data_hdr->stream) >= asoc->stream.incnt) { stream 6501 net/sctp/sm_statefuns.c &data_hdr->stream, stream 6502 net/sctp/sm_statefuns.c sizeof(data_hdr->stream), stream 6517 net/sctp/sm_statefuns.c if (!asoc->stream.si->validate_data(chunk)) stream 1107 net/sctp/socket.c err = sctp_stream_init(&asoc->stream, outcnt, 0, GFP_KERNEL); stream 1806 net/sctp/socket.c if (sinfo->sinfo_stream >= asoc->stream.outcnt) { stream 1811 net/sctp/socket.c if (unlikely(!SCTP_SO(&asoc->stream, sinfo->sinfo_stream)->ext)) { stream 1812 net/sctp/socket.c err = sctp_stream_init_ext(&asoc->stream, sinfo->sinfo_stream); stream 2259 net/sctp/socket.c asoc->stream.si->enqueue_event(&asoc->ulpq, event); stream 3315 net/sctp/socket.c __u16 datasize = asoc ? sctp_datachk_len(&asoc->stream) : stream 4448 net/sctp/socket.c asoc->stream.si->enqueue_event(&asoc->ulpq, event); stream 5238 net/sctp/socket.c info->sctpi_instrms = asoc->stream.incnt; stream 5239 net/sctp/socket.c info->sctpi_outstrms = asoc->stream.outcnt; stream 5474 net/sctp/socket.c status.sstat_instrms = asoc->stream.incnt; stream 5475 net/sctp/socket.c status.sstat_outstrms = asoc->stream.outcnt; stream 7509 net/sctp/socket.c if (!asoc || params.sprstat_sid >= asoc->stream.outcnt) stream 7512 net/sctp/socket.c streamoute = SCTP_SO(&asoc->stream, params.sprstat_sid)->ext; stream 9008 net/sctp/socket.c asoc->stream.si->enqueue_event(&asoc->ulpq, ev); stream 29 net/sctp/stream.c static void sctp_stream_outq_migrate(struct sctp_stream *stream, stream 37 net/sctp/stream.c asoc = container_of(stream, struct sctp_association, stream); stream 67 net/sctp/stream.c SCTP_SO(new, i)->ext = SCTP_SO(stream, i)->ext; stream 68 net/sctp/stream.c SCTP_SO(stream, i)->ext = NULL; stream 72 net/sctp/stream.c for (i = outcnt; i < stream->outcnt; i++) { stream 73 net/sctp/stream.c kfree(SCTP_SO(stream, i)->ext); stream 74 net/sctp/stream.c SCTP_SO(stream, i)->ext = NULL; stream 78 net/sctp/stream.c static int sctp_stream_alloc_out(struct sctp_stream *stream, __u16 outcnt, stream 83 net/sctp/stream.c if (outcnt <= stream->outcnt) stream 86 net/sctp/stream.c ret = genradix_prealloc(&stream->out, outcnt, gfp); stream 90 net/sctp/stream.c stream->outcnt = outcnt; stream 94 net/sctp/stream.c static int sctp_stream_alloc_in(struct sctp_stream *stream, __u16 incnt, stream 99 net/sctp/stream.c if (incnt <= stream->incnt) stream 102 net/sctp/stream.c ret = genradix_prealloc(&stream->in, incnt, gfp); stream 106 net/sctp/stream.c stream->incnt = incnt; stream 110 net/sctp/stream.c int sctp_stream_init(struct sctp_stream *stream, __u16 outcnt, __u16 incnt, stream 113 net/sctp/stream.c struct sctp_sched_ops *sched = sctp_sched_ops_from_stream(stream); stream 121 net/sctp/stream.c if (outcnt == stream->outcnt) stream 125 net/sctp/stream.c sched->unsched_all(stream); stream 126 net/sctp/stream.c sctp_stream_outq_migrate(stream, NULL, outcnt); stream 127 net/sctp/stream.c sched->sched_all(stream); stream 129 net/sctp/stream.c ret = sctp_stream_alloc_out(stream, outcnt, gfp); stream 133 net/sctp/stream.c for (i = 0; i < stream->outcnt; i++) stream 134 net/sctp/stream.c SCTP_SO(stream, i)->state = SCTP_STREAM_OPEN; stream 137 net/sctp/stream.c sctp_stream_interleave_init(stream); stream 141 net/sctp/stream.c ret = sctp_stream_alloc_in(stream, incnt, gfp); stream 148 net/sctp/stream.c sched->free(stream); stream 149 net/sctp/stream.c genradix_free(&stream->in); stream 151 net/sctp/stream.c genradix_free(&stream->out); stream 152 net/sctp/stream.c stream->outcnt = 0; stream 157 net/sctp/stream.c int sctp_stream_init_ext(struct sctp_stream *stream, __u16 sid) stream 165 net/sctp/stream.c SCTP_SO(stream, sid)->ext = soute; stream 167 net/sctp/stream.c ret = sctp_sched_init_sid(stream, sid, GFP_KERNEL); stream 169 net/sctp/stream.c kfree(SCTP_SO(stream, sid)->ext); stream 170 net/sctp/stream.c SCTP_SO(stream, sid)->ext = NULL; stream 176 net/sctp/stream.c void sctp_stream_free(struct sctp_stream *stream) stream 178 net/sctp/stream.c struct sctp_sched_ops *sched = sctp_sched_ops_from_stream(stream); stream 181 net/sctp/stream.c sched->free(stream); stream 182 net/sctp/stream.c for (i = 0; i < stream->outcnt; i++) stream 183 net/sctp/stream.c kfree(SCTP_SO(stream, i)->ext); stream 184 net/sctp/stream.c genradix_free(&stream->out); stream 185 net/sctp/stream.c genradix_free(&stream->in); stream 188 net/sctp/stream.c void sctp_stream_clear(struct sctp_stream *stream) stream 192 net/sctp/stream.c for (i = 0; i < stream->outcnt; i++) { stream 193 net/sctp/stream.c SCTP_SO(stream, i)->mid = 0; stream 194 net/sctp/stream.c SCTP_SO(stream, i)->mid_uo = 0; stream 197 net/sctp/stream.c for (i = 0; i < stream->incnt; i++) stream 198 net/sctp/stream.c SCTP_SI(stream, i)->mid = 0; stream 201 net/sctp/stream.c void sctp_stream_update(struct sctp_stream *stream, struct sctp_stream *new) stream 203 net/sctp/stream.c struct sctp_sched_ops *sched = sctp_sched_ops_from_stream(stream); stream 205 net/sctp/stream.c sched->unsched_all(stream); stream 206 net/sctp/stream.c sctp_stream_outq_migrate(stream, new, new->outcnt); stream 207 net/sctp/stream.c sctp_stream_free(stream); stream 209 net/sctp/stream.c stream->out = new->out; stream 210 net/sctp/stream.c stream->in = new->in; stream 211 net/sctp/stream.c stream->outcnt = new->outcnt; stream 212 net/sctp/stream.c stream->incnt = new->incnt; stream 214 net/sctp/stream.c sched->sched_all(stream); stream 235 net/sctp/stream.c static bool sctp_stream_outq_is_empty(struct sctp_stream *stream, stream 241 net/sctp/stream.c asoc = container_of(stream, struct sctp_association, stream); stream 251 net/sctp/stream.c if (SCTP_SO(stream, sid)->ext && stream 252 net/sctp/stream.c !list_empty(&SCTP_SO(stream, sid)->ext->outq)) stream 262 net/sctp/stream.c struct sctp_stream *stream = &asoc->stream; stream 292 net/sctp/stream.c if (str_list[i] >= stream->outcnt) stream 301 net/sctp/stream.c if (str_list[i] >= stream->incnt) stream 322 net/sctp/stream.c if (out && !sctp_stream_outq_is_empty(stream, str_nums, nstr_list)) { stream 340 net/sctp/stream.c SCTP_SO(stream, str_list[i])->state = stream 343 net/sctp/stream.c for (i = 0; i < stream->outcnt; i++) stream 344 net/sctp/stream.c SCTP_SO(stream, i)->state = SCTP_STREAM_CLOSED; stream 359 net/sctp/stream.c SCTP_SO(stream, str_list[i])->state = stream 362 net/sctp/stream.c for (i = 0; i < stream->outcnt; i++) stream 363 net/sctp/stream.c SCTP_SO(stream, i)->state = SCTP_STREAM_OPEN; stream 376 net/sctp/stream.c struct sctp_stream *stream = &asoc->stream; stream 396 net/sctp/stream.c for (i = 0; i < stream->outcnt; i++) stream 397 net/sctp/stream.c SCTP_SO(stream, i)->state = SCTP_STREAM_CLOSED; stream 407 net/sctp/stream.c for (i = 0; i < stream->outcnt; i++) stream 408 net/sctp/stream.c SCTP_SO(stream, i)->state = SCTP_STREAM_OPEN; stream 421 net/sctp/stream.c struct sctp_stream *stream = &asoc->stream; stream 440 net/sctp/stream.c outcnt = stream->outcnt + out; stream 441 net/sctp/stream.c incnt = stream->incnt + in; stream 449 net/sctp/stream.c retval = sctp_stream_alloc_out(stream, outcnt, GFP_KERNEL); stream 516 net/sctp/stream.c struct sctp_stream *stream = &asoc->stream; stream 551 net/sctp/stream.c if (ntohs(str_p[i]) >= stream->incnt) { stream 583 net/sctp/stream.c SCTP_SI(stream, ntohs(str_p[i]))->mid = 0; stream 585 net/sctp/stream.c for (i = 0; i < stream->incnt; i++) stream 586 net/sctp/stream.c SCTP_SI(stream, i)->mid = 0; stream 605 net/sctp/stream.c struct sctp_stream *stream = &asoc->stream; stream 637 net/sctp/stream.c if (ntohs(str_p[i]) >= stream->outcnt) { stream 643 net/sctp/stream.c if (!sctp_stream_outq_is_empty(stream, nums, str_p)) { stream 655 net/sctp/stream.c SCTP_SO(stream, ntohs(str_p[i]))->state = stream 658 net/sctp/stream.c for (i = 0; i < stream->outcnt; i++) stream 659 net/sctp/stream.c SCTP_SO(stream, i)->state = SCTP_STREAM_CLOSED; stream 683 net/sctp/stream.c struct sctp_stream *stream = &asoc->stream; stream 725 net/sctp/stream.c asoc->stream.si->report_ftsn(&asoc->ulpq, max_tsn_seen); stream 754 net/sctp/stream.c for (i = 0; i < stream->outcnt; i++) { stream 755 net/sctp/stream.c SCTP_SO(stream, i)->mid = 0; stream 756 net/sctp/stream.c SCTP_SO(stream, i)->mid_uo = 0; stream 758 net/sctp/stream.c for (i = 0; i < stream->incnt; i++) stream 759 net/sctp/stream.c SCTP_SI(stream, i)->mid = 0; stream 779 net/sctp/stream.c struct sctp_stream *stream = &asoc->stream; stream 800 net/sctp/stream.c incnt = stream->incnt + in; stream 804 net/sctp/stream.c if (sctp_stream_alloc_in(stream, incnt, GFP_ATOMIC)) stream 830 net/sctp/stream.c stream->incnt = incnt; stream 849 net/sctp/stream.c struct sctp_stream *stream = &asoc->stream; stream 879 net/sctp/stream.c outcnt = stream->outcnt + out; stream 883 net/sctp/stream.c ret = sctp_stream_alloc_out(stream, outcnt, GFP_ATOMIC); stream 895 net/sctp/stream.c stream->outcnt = outcnt; stream 913 net/sctp/stream.c struct sctp_stream *stream = &asoc->stream; stream 948 net/sctp/stream.c sout = SCTP_SO(stream, ntohs(str_p[i])); stream 953 net/sctp/stream.c for (i = 0; i < stream->outcnt; i++) { stream 954 net/sctp/stream.c sout = SCTP_SO(stream, i); stream 963 net/sctp/stream.c for (i = 0; i < stream->outcnt; i++) stream 964 net/sctp/stream.c SCTP_SO(stream, i)->state = SCTP_STREAM_OPEN; stream 1002 net/sctp/stream.c asoc->stream.si->report_ftsn(&asoc->ulpq, mtsn); stream 1020 net/sctp/stream.c for (i = 0; i < stream->outcnt; i++) { stream 1021 net/sctp/stream.c SCTP_SO(stream, i)->mid = 0; stream 1022 net/sctp/stream.c SCTP_SO(stream, i)->mid_uo = 0; stream 1024 net/sctp/stream.c for (i = 0; i < stream->incnt; i++) stream 1025 net/sctp/stream.c SCTP_SI(stream, i)->mid = 0; stream 1028 net/sctp/stream.c for (i = 0; i < stream->outcnt; i++) stream 1029 net/sctp/stream.c SCTP_SO(stream, i)->state = SCTP_STREAM_OPEN; stream 1039 net/sctp/stream.c number = stream->outcnt - nums; stream 1042 net/sctp/stream.c for (i = number; i < stream->outcnt; i++) stream 1043 net/sctp/stream.c SCTP_SO(stream, i)->state = SCTP_STREAM_OPEN; stream 1045 net/sctp/stream.c stream->outcnt = number; stream 33 net/sctp/stream_interleave.c dp.stream = htons(sinfo->sinfo_stream); stream 50 net/sctp/stream_interleave.c struct sctp_stream *stream; stream 59 net/sctp/stream_interleave.c stream = &chunk->asoc->stream; stream 76 net/sctp/stream_interleave.c sctp_mid_uo_next(stream, out, sid) : stream 77 net/sctp/stream_interleave.c sctp_mid_uo_peek(stream, out, sid); stream 80 net/sctp/stream_interleave.c sctp_mid_next(stream, out, sid) : stream 81 net/sctp/stream_interleave.c sctp_mid_peek(stream, out, sid); stream 89 net/sctp/stream_interleave.c struct sctp_stream *stream; stream 98 net/sctp/stream_interleave.c stream = &chunk->asoc->stream; stream 102 net/sctp/stream_interleave.c return !SSN_lt(ssn, sctp_ssn_peek(stream, in, sid)); stream 107 net/sctp/stream_interleave.c struct sctp_stream *stream; stream 117 net/sctp/stream_interleave.c stream = &chunk->asoc->stream; stream 121 net/sctp/stream_interleave.c return !MID_lt(mid, sctp_mid_peek(stream, in, sid)); stream 138 net/sctp/stream_interleave.c if (event->stream == cevent->stream && stream 147 net/sctp/stream_interleave.c if ((event->stream == cevent->stream && stream 149 net/sctp/stream_interleave.c event->stream > cevent->stream) { stream 158 net/sctp/stream_interleave.c if (event->stream < cevent->stream || stream 159 net/sctp/stream_interleave.c (event->stream == cevent->stream && stream 164 net/sctp/stream_interleave.c if (event->stream == cevent->stream && stream 192 net/sctp/stream_interleave.c sin = sctp_stream_in(&ulpq->asoc->stream, event->stream); stream 197 net/sctp/stream_interleave.c if (cevent->stream < event->stream) stream 200 net/sctp/stream_interleave.c if (cevent->stream > event->stream || stream 273 net/sctp/stream_interleave.c sin = sctp_stream_in(&ulpq->asoc->stream, event->stream); stream 278 net/sctp/stream_interleave.c if (cevent->stream < event->stream) stream 280 net/sctp/stream_interleave.c if (cevent->stream > event->stream) stream 363 net/sctp/stream_interleave.c sin = sctp_stream_in(&ulpq->asoc->stream, event->stream); stream 387 net/sctp/stream_interleave.c if (event->stream == cevent->stream && stream 393 net/sctp/stream_interleave.c if (event->stream > cevent->stream) { stream 402 net/sctp/stream_interleave.c if (cevent->stream > event->stream) { stream 406 net/sctp/stream_interleave.c if (cevent->stream == event->stream && stream 423 net/sctp/stream_interleave.c struct sctp_stream *stream; stream 425 net/sctp/stream_interleave.c __u16 sid = event->stream; stream 427 net/sctp/stream_interleave.c stream = &ulpq->asoc->stream; stream 433 net/sctp/stream_interleave.c if (cevent->stream > sid) stream 436 net/sctp/stream_interleave.c if (cevent->stream < sid) stream 439 net/sctp/stream_interleave.c if (cevent->mid != sctp_mid_peek(stream, in, sid)) stream 442 net/sctp/stream_interleave.c sctp_mid_next(stream, in, sid); stream 453 net/sctp/stream_interleave.c struct sctp_stream *stream; stream 456 net/sctp/stream_interleave.c stream = &ulpq->asoc->stream; stream 457 net/sctp/stream_interleave.c sid = event->stream; stream 459 net/sctp/stream_interleave.c if (event->mid != sctp_mid_peek(stream, in, sid)) { stream 464 net/sctp/stream_interleave.c sctp_mid_next(stream, in, sid); stream 531 net/sctp/stream_interleave.c if (event->stream == cevent->stream && stream 540 net/sctp/stream_interleave.c if ((event->stream == cevent->stream && stream 542 net/sctp/stream_interleave.c event->stream > cevent->stream) { stream 550 net/sctp/stream_interleave.c if (event->stream < cevent->stream || stream 551 net/sctp/stream_interleave.c (event->stream == cevent->stream && stream 555 net/sctp/stream_interleave.c if (event->stream == cevent->stream && stream 578 net/sctp/stream_interleave.c sin = sctp_stream_in(&ulpq->asoc->stream, event->stream); stream 583 net/sctp/stream_interleave.c if (cevent->stream < event->stream) stream 585 net/sctp/stream_interleave.c if (cevent->stream > event->stream) stream 662 net/sctp/stream_interleave.c sin = sctp_stream_in(&ulpq->asoc->stream, event->stream); stream 667 net/sctp/stream_interleave.c if (cevent->stream < event->stream) stream 669 net/sctp/stream_interleave.c if (cevent->stream > event->stream) stream 753 net/sctp/stream_interleave.c sin = sctp_stream_in(&ulpq->asoc->stream, event->stream); stream 777 net/sctp/stream_interleave.c csin = sctp_stream_in(&ulpq->asoc->stream, cevent->stream); stream 789 net/sctp/stream_interleave.c sid = cevent->stream; stream 795 net/sctp/stream_interleave.c if (cevent->stream == sid && stream 883 net/sctp/stream_interleave.c csin = sctp_stream_in(&ulpq->asoc->stream, cevent->stream); stream 896 net/sctp/stream_interleave.c sid = cevent->stream; stream 902 net/sctp/stream_interleave.c if (cevent->stream == sid && stream 1015 net/sctp/stream_interleave.c struct sctp_stream *stream = &ulpq->asoc->stream; stream 1026 net/sctp/stream_interleave.c csid = cevent->stream; stream 1035 net/sctp/stream_interleave.c if (!MID_lt(cmid, sctp_mid_peek(stream, in, csid))) stream 1047 net/sctp/stream_interleave.c csid = cevent->stream; stream 1050 net/sctp/stream_interleave.c if (csid == sid && cmid == sctp_mid_peek(stream, in, csid)) { stream 1051 net/sctp/stream_interleave.c sctp_mid_next(stream, in, csid); stream 1066 net/sctp/stream_interleave.c struct sctp_stream *stream = &ulpq->asoc->stream; stream 1069 net/sctp/stream_interleave.c for (sid = 0; sid < stream->incnt; sid++) { stream 1070 net/sctp/stream_interleave.c struct sctp_stream_in *sin = SCTP_SI(stream, sid); stream 1085 net/sctp/stream_interleave.c sctp_mid_skip(stream, in, sid, mid); stream 1096 net/sctp/stream_interleave.c int nskips, __be16 stream, __u8 flags) stream 1101 net/sctp/stream_interleave.c if (skiplist[i].stream == stream && stream 1133 net/sctp/stream_interleave.c __be16 sid = chunk->subh.idata_hdr->stream; stream 1143 net/sctp/stream_interleave.c ftsn_skip_arr[skip_pos].stream = sid; stream 1182 net/sctp/stream_interleave.c incnt = chunk->asoc->stream.incnt; stream 1184 net/sctp/stream_interleave.c if (ntohs(skip->stream) >= incnt) stream 1198 net/sctp/stream_interleave.c incnt = chunk->asoc->stream.incnt; stream 1200 net/sctp/stream_interleave.c if (ntohs(skip->stream) >= incnt) stream 1258 net/sctp/stream_interleave.c sctp_ulpq_skip(ulpq, ntohs(skip->stream), ntohs(skip->ssn)); stream 1264 net/sctp/stream_interleave.c struct sctp_stream_in *sin = sctp_stream_in(&ulpq->asoc->stream, sid); stream 1265 net/sctp/stream_interleave.c struct sctp_stream *stream = &ulpq->asoc->stream; stream 1276 net/sctp/stream_interleave.c if (MID_lt(mid, sctp_mid_peek(stream, in, sid))) stream 1284 net/sctp/stream_interleave.c sctp_mid_skip(stream, in, sid, mid); stream 1295 net/sctp/stream_interleave.c sctp_intl_skip(ulpq, ntohs(skip->stream), stream 1356 net/sctp/stream_interleave.c void sctp_stream_interleave_init(struct sctp_stream *stream) stream 1360 net/sctp/stream_interleave.c asoc = container_of(stream, struct sctp_association, stream); stream 1361 net/sctp/stream_interleave.c stream->si = asoc->peer.intl_capable ? &sctp_stream_interleave_1 stream 25 net/sctp/stream_sched.c static int sctp_sched_fcfs_set(struct sctp_stream *stream, __u16 sid, stream 31 net/sctp/stream_sched.c static int sctp_sched_fcfs_get(struct sctp_stream *stream, __u16 sid, stream 38 net/sctp/stream_sched.c static int sctp_sched_fcfs_init(struct sctp_stream *stream) stream 43 net/sctp/stream_sched.c static int sctp_sched_fcfs_init_sid(struct sctp_stream *stream, __u16 sid, stream 49 net/sctp/stream_sched.c static void sctp_sched_fcfs_free(struct sctp_stream *stream) stream 60 net/sctp/stream_sched.c struct sctp_stream *stream = &q->asoc->stream; stream 67 net/sctp/stream_sched.c if (stream->out_curr) { stream 68 net/sctp/stream_sched.c ch = list_entry(stream->out_curr->ext->outq.next, stream 86 net/sctp/stream_sched.c static void sctp_sched_fcfs_sched_all(struct sctp_stream *stream) stream 90 net/sctp/stream_sched.c static void sctp_sched_fcfs_unsched_all(struct sctp_stream *stream) stream 145 net/sctp/stream_sched.c old->free(&asoc->stream); stream 148 net/sctp/stream_sched.c for (i = 0; i < asoc->stream.outcnt; i++) { stream 149 net/sctp/stream_sched.c void *p = SCTP_SO(&asoc->stream, i)->ext; stream 161 net/sctp/stream_sched.c n->init(&asoc->stream); stream 162 net/sctp/stream_sched.c for (i = 0; i < asoc->stream.outcnt; i++) { stream 163 net/sctp/stream_sched.c if (!SCTP_SO(&asoc->stream, i)->ext) stream 166 net/sctp/stream_sched.c ret = n->init_sid(&asoc->stream, i, GFP_KERNEL); stream 182 net/sctp/stream_sched.c n->free(&asoc->stream); stream 202 net/sctp/stream_sched.c if (sid >= asoc->stream.outcnt) stream 205 net/sctp/stream_sched.c if (!SCTP_SO(&asoc->stream, sid)->ext) { stream 208 net/sctp/stream_sched.c ret = sctp_stream_init_ext(&asoc->stream, sid); stream 213 net/sctp/stream_sched.c return asoc->outqueue.sched->set(&asoc->stream, sid, value, gfp); stream 219 net/sctp/stream_sched.c if (sid >= asoc->stream.outcnt) stream 222 net/sctp/stream_sched.c if (!SCTP_SO(&asoc->stream, sid)->ext) stream 225 net/sctp/stream_sched.c return asoc->outqueue.sched->get(&asoc->stream, sid, value); stream 240 net/sctp/stream_sched.c sout = SCTP_SO(&q->asoc->stream, sid); stream 241 net/sctp/stream_sched.c q->asoc->stream.out_curr = sout; stream 245 net/sctp/stream_sched.c q->asoc->stream.out_curr = NULL; stream 257 net/sctp/stream_sched.c int sctp_sched_init_sid(struct sctp_stream *stream, __u16 sid, gfp_t gfp) stream 259 net/sctp/stream_sched.c struct sctp_sched_ops *sched = sctp_sched_ops_from_stream(stream); stream 260 net/sctp/stream_sched.c struct sctp_stream_out_ext *ext = SCTP_SO(stream, sid)->ext; stream 263 net/sctp/stream_sched.c return sched->init_sid(stream, sid, gfp); stream 266 net/sctp/stream_sched.c struct sctp_sched_ops *sctp_sched_ops_from_stream(struct sctp_stream *stream) stream 270 net/sctp/stream_sched.c asoc = container_of(stream, struct sctp_association, stream); stream 26 net/sctp/stream_sched_prio.c static void sctp_sched_prio_unsched_all(struct sctp_stream *stream); stream 29 net/sctp/stream_sched_prio.c struct sctp_stream *stream, int prio, gfp_t gfp) stream 46 net/sctp/stream_sched_prio.c struct sctp_stream *stream, int prio, gfp_t gfp) stream 54 net/sctp/stream_sched_prio.c list_for_each_entry(p, &stream->prio_list, prio_sched) { stream 62 net/sctp/stream_sched_prio.c for (i = 0; i < stream->outcnt; i++) { stream 63 net/sctp/stream_sched_prio.c if (!SCTP_SO(stream, i)->ext) stream 66 net/sctp/stream_sched_prio.c p = SCTP_SO(stream, i)->ext->prio_head; stream 77 net/sctp/stream_sched_prio.c return sctp_sched_prio_new_head(stream, prio, gfp); stream 117 net/sctp/stream_sched_prio.c static void sctp_sched_prio_sched(struct sctp_stream *stream, stream 140 net/sctp/stream_sched_prio.c list_for_each_entry(prio, &stream->prio_list, prio_sched) { stream 147 net/sctp/stream_sched_prio.c list_add_tail(&prio_head->prio_sched, &stream->prio_list); stream 150 net/sctp/stream_sched_prio.c static int sctp_sched_prio_set(struct sctp_stream *stream, __u16 sid, stream 153 net/sctp/stream_sched_prio.c struct sctp_stream_out *sout = SCTP_SO(stream, sid); stream 159 net/sctp/stream_sched_prio.c prio_head = sctp_sched_prio_get_head(stream, prio, gfp); stream 167 net/sctp/stream_sched_prio.c sctp_sched_prio_sched(stream, soute); stream 173 net/sctp/stream_sched_prio.c for (i = 0; i < stream->outcnt; i++) { stream 174 net/sctp/stream_sched_prio.c soute = SCTP_SO(stream, i)->ext; stream 186 net/sctp/stream_sched_prio.c static int sctp_sched_prio_get(struct sctp_stream *stream, __u16 sid, stream 189 net/sctp/stream_sched_prio.c *value = SCTP_SO(stream, sid)->ext->prio_head->prio; stream 193 net/sctp/stream_sched_prio.c static int sctp_sched_prio_init(struct sctp_stream *stream) stream 195 net/sctp/stream_sched_prio.c INIT_LIST_HEAD(&stream->prio_list); stream 200 net/sctp/stream_sched_prio.c static int sctp_sched_prio_init_sid(struct sctp_stream *stream, __u16 sid, stream 203 net/sctp/stream_sched_prio.c INIT_LIST_HEAD(&SCTP_SO(stream, sid)->ext->prio_list); stream 204 net/sctp/stream_sched_prio.c return sctp_sched_prio_set(stream, sid, 0, gfp); stream 207 net/sctp/stream_sched_prio.c static void sctp_sched_prio_free(struct sctp_stream *stream) stream 219 net/sctp/stream_sched_prio.c sctp_sched_prio_unsched_all(stream); stream 220 net/sctp/stream_sched_prio.c for (i = 0; i < stream->outcnt; i++) { stream 221 net/sctp/stream_sched_prio.c if (!SCTP_SO(stream, i)->ext) stream 223 net/sctp/stream_sched_prio.c prio = SCTP_SO(stream, i)->ext->prio_head; stream 236 net/sctp/stream_sched_prio.c struct sctp_stream *stream; stream 242 net/sctp/stream_sched_prio.c stream = &q->asoc->stream; stream 243 net/sctp/stream_sched_prio.c sctp_sched_prio_sched(stream, SCTP_SO(stream, sid)->ext); stream 248 net/sctp/stream_sched_prio.c struct sctp_stream *stream = &q->asoc->stream; stream 260 net/sctp/stream_sched_prio.c if (stream->out_curr) { stream 261 net/sctp/stream_sched_prio.c soute = stream->out_curr->ext; stream 263 net/sctp/stream_sched_prio.c prio = list_entry(stream->prio_list.next, stream 285 net/sctp/stream_sched_prio.c soute = SCTP_SO(&q->asoc->stream, sid)->ext; stream 294 net/sctp/stream_sched_prio.c static void sctp_sched_prio_sched_all(struct sctp_stream *stream) stream 300 net/sctp/stream_sched_prio.c asoc = container_of(stream, struct sctp_association, stream); stream 305 net/sctp/stream_sched_prio.c sout = SCTP_SO(stream, sid); stream 307 net/sctp/stream_sched_prio.c sctp_sched_prio_sched(stream, sout->ext); stream 311 net/sctp/stream_sched_prio.c static void sctp_sched_prio_unsched_all(struct sctp_stream *stream) stream 316 net/sctp/stream_sched_prio.c list_for_each_entry_safe(p, tmp, &stream->prio_list, prio_sched) stream 25 net/sctp/stream_sched_rr.c static void sctp_sched_rr_unsched_all(struct sctp_stream *stream); stream 27 net/sctp/stream_sched_rr.c static void sctp_sched_rr_next_stream(struct sctp_stream *stream) stream 31 net/sctp/stream_sched_rr.c pos = stream->rr_next->rr_list.next; stream 32 net/sctp/stream_sched_rr.c if (pos == &stream->rr_list) stream 34 net/sctp/stream_sched_rr.c stream->rr_next = list_entry(pos, struct sctp_stream_out_ext, rr_list); stream 37 net/sctp/stream_sched_rr.c static void sctp_sched_rr_unsched(struct sctp_stream *stream, stream 40 net/sctp/stream_sched_rr.c if (stream->rr_next == soute) stream 42 net/sctp/stream_sched_rr.c sctp_sched_rr_next_stream(stream); stream 47 net/sctp/stream_sched_rr.c if (list_empty(&stream->rr_list)) stream 48 net/sctp/stream_sched_rr.c stream->rr_next = NULL; stream 51 net/sctp/stream_sched_rr.c static void sctp_sched_rr_sched(struct sctp_stream *stream, stream 59 net/sctp/stream_sched_rr.c list_add_tail(&soute->rr_list, &stream->rr_list); stream 61 net/sctp/stream_sched_rr.c if (!stream->rr_next) stream 62 net/sctp/stream_sched_rr.c stream->rr_next = soute; stream 65 net/sctp/stream_sched_rr.c static int sctp_sched_rr_set(struct sctp_stream *stream, __u16 sid, stream 71 net/sctp/stream_sched_rr.c static int sctp_sched_rr_get(struct sctp_stream *stream, __u16 sid, stream 77 net/sctp/stream_sched_rr.c static int sctp_sched_rr_init(struct sctp_stream *stream) stream 79 net/sctp/stream_sched_rr.c INIT_LIST_HEAD(&stream->rr_list); stream 80 net/sctp/stream_sched_rr.c stream->rr_next = NULL; stream 85 net/sctp/stream_sched_rr.c static int sctp_sched_rr_init_sid(struct sctp_stream *stream, __u16 sid, stream 88 net/sctp/stream_sched_rr.c INIT_LIST_HEAD(&SCTP_SO(stream, sid)->ext->rr_list); stream 93 net/sctp/stream_sched_rr.c static void sctp_sched_rr_free(struct sctp_stream *stream) stream 95 net/sctp/stream_sched_rr.c sctp_sched_rr_unsched_all(stream); stream 101 net/sctp/stream_sched_rr.c struct sctp_stream *stream; stream 107 net/sctp/stream_sched_rr.c stream = &q->asoc->stream; stream 108 net/sctp/stream_sched_rr.c sctp_sched_rr_sched(stream, SCTP_SO(stream, sid)->ext); stream 113 net/sctp/stream_sched_rr.c struct sctp_stream *stream = &q->asoc->stream; stream 122 net/sctp/stream_sched_rr.c if (stream->out_curr) stream 123 net/sctp/stream_sched_rr.c soute = stream->out_curr->ext; stream 125 net/sctp/stream_sched_rr.c soute = stream->rr_next; stream 142 net/sctp/stream_sched_rr.c soute = SCTP_SO(&q->asoc->stream, sid)->ext; stream 144 net/sctp/stream_sched_rr.c sctp_sched_rr_next_stream(&q->asoc->stream); stream 147 net/sctp/stream_sched_rr.c sctp_sched_rr_unsched(&q->asoc->stream, soute); stream 150 net/sctp/stream_sched_rr.c static void sctp_sched_rr_sched_all(struct sctp_stream *stream) stream 156 net/sctp/stream_sched_rr.c asoc = container_of(stream, struct sctp_association, stream); stream 161 net/sctp/stream_sched_rr.c soute = SCTP_SO(stream, sid)->ext; stream 163 net/sctp/stream_sched_rr.c sctp_sched_rr_sched(stream, soute); stream 167 net/sctp/stream_sched_rr.c static void sctp_sched_rr_unsched_all(struct sctp_stream *stream) stream 171 net/sctp/stream_sched_rr.c list_for_each_entry_safe(soute, tmp, &stream->rr_list, rr_list) stream 172 net/sctp/stream_sched_rr.c sctp_sched_rr_unsched(stream, soute); stream 431 net/sctp/ulpevent.c skb_pull(skb, sctp_datachk_len(&asoc->stream)); stream 432 net/sctp/ulpevent.c len -= sctp_datachk_len(&asoc->stream); stream 689 net/sctp/ulpevent.c event->stream = ntohs(chunk->subh.data_hdr->stream); stream 938 net/sctp/ulpevent.c sinfo.sinfo_stream = event->stream; stream 966 net/sctp/ulpevent.c rinfo.rcv_sid = event->stream; stream 989 net/sctp/ulpevent.c nxtinfo.nxt_sid = event->stream; stream 752 net/sctp/ulpqueue.c struct sctp_stream *stream; stream 755 net/sctp/ulpqueue.c sid = event->stream; stream 756 net/sctp/ulpqueue.c stream = &ulpq->asoc->stream; stream 763 net/sctp/ulpqueue.c csid = cevent->stream; stream 774 net/sctp/ulpqueue.c if (cssn != sctp_ssn_peek(stream, in, sid)) stream 778 net/sctp/ulpqueue.c sctp_ssn_next(stream, in, sid); stream 802 net/sctp/ulpqueue.c sid = event->stream; stream 806 net/sctp/ulpqueue.c csid = cevent->stream; stream 823 net/sctp/ulpqueue.c csid = cevent->stream; stream 841 net/sctp/ulpqueue.c struct sctp_stream *stream; stream 848 net/sctp/ulpqueue.c sid = event->stream; stream 850 net/sctp/ulpqueue.c stream = &ulpq->asoc->stream; stream 853 net/sctp/ulpqueue.c if (ssn != sctp_ssn_peek(stream, in, sid)) { stream 862 net/sctp/ulpqueue.c sctp_ssn_next(stream, in, sid); stream 880 net/sctp/ulpqueue.c struct sctp_stream *stream; stream 885 net/sctp/ulpqueue.c stream = &ulpq->asoc->stream; stream 892 net/sctp/ulpqueue.c csid = cevent->stream; stream 904 net/sctp/ulpqueue.c if (!SSN_lt(cssn, sctp_ssn_peek(stream, in, csid))) stream 921 net/sctp/ulpqueue.c csid = cevent->stream; stream 924 net/sctp/ulpqueue.c if (csid == sid && cssn == sctp_ssn_peek(stream, in, csid)) { stream 925 net/sctp/ulpqueue.c sctp_ssn_next(stream, in, csid); stream 947 net/sctp/ulpqueue.c struct sctp_stream *stream; stream 950 net/sctp/ulpqueue.c stream = &ulpq->asoc->stream; stream 953 net/sctp/ulpqueue.c if (SSN_lt(ssn, sctp_ssn_peek(stream, in, sid))) stream 957 net/sctp/ulpqueue.c sctp_ssn_skip(stream, in, sid, ssn); stream 1123 net/wireless/wext-core.c char *iwe_stream_add_event(struct iw_request_info *info, char *stream, stream 1131 net/wireless/wext-core.c if (likely((stream + event_len) < ends)) { stream 1134 net/wireless/wext-core.c memcpy(stream, (char *) iwe, IW_EV_LCP_PK_LEN); stream 1135 net/wireless/wext-core.c memcpy(stream + lcp_len, &iwe->u, stream 1137 net/wireless/wext-core.c stream += event_len; stream 1140 net/wireless/wext-core.c return stream; stream 1144 net/wireless/wext-core.c char *iwe_stream_add_point(struct iw_request_info *info, char *stream, stream 1152 net/wireless/wext-core.c if (likely((stream + event_len) < ends)) { stream 1154 net/wireless/wext-core.c memcpy(stream, (char *) iwe, IW_EV_LCP_PK_LEN); stream 1155 net/wireless/wext-core.c memcpy(stream + lcp_len, stream 1159 net/wireless/wext-core.c memcpy(stream + point_len, extra, iwe->u.data.length); stream 1160 net/wireless/wext-core.c stream += event_len; stream 1163 net/wireless/wext-core.c return stream; stream 316 scripts/kconfig/confdata.c static ssize_t compat_getline(char **lineptr, size_t *n, FILE *stream) stream 322 scripts/kconfig/confdata.c int c = getc(stream); stream 406 sound/arm/aaci.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 418 sound/arm/aaci.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 806 sound/arm/aaci.c .stream = 1, stream 816 sound/arm/aaci.c .stream = 1, stream 77 sound/arm/pxa2xx-ac97.c i = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? stream 106 sound/arm/pxa2xx-ac97.c int reg = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? stream 189 sound/arm/pxa2xx-ac97.c int stream, ret; stream 201 sound/arm/pxa2xx-ac97.c stream = SNDRV_PCM_STREAM_PLAYBACK; stream 202 sound/arm/pxa2xx-ac97.c snd_pcm_set_ops(pcm, stream, &pxa2xx_ac97_pcm_ops); stream 203 sound/arm/pxa2xx-ac97.c ret = pxa2xx_pcm_preallocate_dma_buffer(pcm, stream); stream 207 sound/arm/pxa2xx-ac97.c stream = SNDRV_PCM_STREAM_CAPTURE; stream 208 sound/arm/pxa2xx-ac97.c snd_pcm_set_ops(pcm, stream, &pxa2xx_ac97_pcm_ops); stream 209 sound/arm/pxa2xx-ac97.c ret = pxa2xx_pcm_preallocate_dma_buffer(pcm, stream); stream 143 sound/arm/pxa2xx-pcm-lib.c int pxa2xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) stream 145 sound/arm/pxa2xx-pcm-lib.c struct snd_pcm_substream *substream = pcm->streams[stream].substream; stream 163 sound/arm/pxa2xx-pcm-lib.c int stream; stream 165 sound/arm/pxa2xx-pcm-lib.c for (stream = 0; stream < 2; stream++) { stream 166 sound/arm/pxa2xx-pcm-lib.c substream = pcm->streams[stream].substream; stream 567 sound/atmel/ac97c.c .stream = 1, stream 576 sound/atmel/ac97c.c .stream = 1, stream 54 sound/core/compress_offload.c struct snd_compr_stream stream; stream 116 sound/core/compress_offload.c INIT_DELAYED_WORK(&data->stream.error_work, error_delayed_work); stream 118 sound/core/compress_offload.c data->stream.ops = compr->ops; stream 119 sound/core/compress_offload.c data->stream.direction = dirn; stream 120 sound/core/compress_offload.c data->stream.private_data = compr->private_data; stream 121 sound/core/compress_offload.c data->stream.device = compr; stream 130 sound/core/compress_offload.c data->stream.runtime = runtime; stream 133 sound/core/compress_offload.c ret = compr->ops->open(&data->stream); stream 146 sound/core/compress_offload.c struct snd_compr_runtime *runtime = data->stream.runtime; stream 148 sound/core/compress_offload.c cancel_delayed_work_sync(&data->stream.error_work); stream 154 sound/core/compress_offload.c data->stream.ops->trigger(&data->stream, SNDRV_PCM_TRIGGER_STOP); stream 160 sound/core/compress_offload.c data->stream.ops->free(&data->stream); stream 161 sound/core/compress_offload.c if (!data->stream.runtime->dma_buffer_p) stream 162 sound/core/compress_offload.c kfree(data->stream.runtime->buffer); stream 163 sound/core/compress_offload.c kfree(data->stream.runtime); stream 168 sound/core/compress_offload.c static int snd_compr_update_tstamp(struct snd_compr_stream *stream, stream 171 sound/core/compress_offload.c if (!stream->ops->pointer) stream 173 sound/core/compress_offload.c stream->ops->pointer(stream, tstamp); stream 176 sound/core/compress_offload.c if (stream->direction == SND_COMPRESS_PLAYBACK) stream 177 sound/core/compress_offload.c stream->runtime->total_bytes_transferred = tstamp->copied_total; stream 179 sound/core/compress_offload.c stream->runtime->total_bytes_available = tstamp->copied_total; stream 183 sound/core/compress_offload.c static size_t snd_compr_calc_avail(struct snd_compr_stream *stream, stream 187 sound/core/compress_offload.c snd_compr_update_tstamp(stream, &avail->tstamp); stream 190 sound/core/compress_offload.c if (stream->runtime->total_bytes_available == 0 && stream 191 sound/core/compress_offload.c stream->runtime->state == SNDRV_PCM_STATE_SETUP && stream 192 sound/core/compress_offload.c stream->direction == SND_COMPRESS_PLAYBACK) { stream 194 sound/core/compress_offload.c return stream->runtime->buffer_size; stream 197 sound/core/compress_offload.c stream->runtime->total_bytes_available, stream 198 sound/core/compress_offload.c stream->runtime->total_bytes_transferred); stream 199 sound/core/compress_offload.c if (stream->runtime->total_bytes_available == stream 200 sound/core/compress_offload.c stream->runtime->total_bytes_transferred) { stream 201 sound/core/compress_offload.c if (stream->direction == SND_COMPRESS_PLAYBACK) { stream 203 sound/core/compress_offload.c return stream->runtime->buffer_size; stream 210 sound/core/compress_offload.c avail->avail = stream->runtime->total_bytes_available - stream 211 sound/core/compress_offload.c stream->runtime->total_bytes_transferred; stream 212 sound/core/compress_offload.c if (stream->direction == SND_COMPRESS_PLAYBACK) stream 213 sound/core/compress_offload.c avail->avail = stream->runtime->buffer_size - avail->avail; stream 219 sound/core/compress_offload.c static inline size_t snd_compr_get_avail(struct snd_compr_stream *stream) stream 223 sound/core/compress_offload.c return snd_compr_calc_avail(stream, &avail); stream 227 sound/core/compress_offload.c snd_compr_ioctl_avail(struct snd_compr_stream *stream, unsigned long arg) stream 232 sound/core/compress_offload.c avail = snd_compr_calc_avail(stream, &ioctl_avail); stream 235 sound/core/compress_offload.c switch (stream->runtime->state) { stream 250 sound/core/compress_offload.c static int snd_compr_write_data(struct snd_compr_stream *stream, stream 255 sound/core/compress_offload.c struct snd_compr_runtime *runtime = stream->runtime; stream 276 sound/core/compress_offload.c if (stream->ops->ack) stream 277 sound/core/compress_offload.c stream->ops->ack(stream, count); stream 285 sound/core/compress_offload.c struct snd_compr_stream *stream; stream 292 sound/core/compress_offload.c stream = &data->stream; stream 293 sound/core/compress_offload.c mutex_lock(&stream->device->lock); stream 295 sound/core/compress_offload.c switch (stream->runtime->state) { stream 301 sound/core/compress_offload.c mutex_unlock(&stream->device->lock); stream 305 sound/core/compress_offload.c avail = snd_compr_get_avail(stream); stream 311 sound/core/compress_offload.c if (stream->ops->copy) { stream 313 sound/core/compress_offload.c retval = stream->ops->copy(stream, cbuf, avail); stream 315 sound/core/compress_offload.c retval = snd_compr_write_data(stream, buf, avail); stream 318 sound/core/compress_offload.c stream->runtime->total_bytes_available += retval; stream 322 sound/core/compress_offload.c if (stream->runtime->state == SNDRV_PCM_STATE_SETUP) { stream 323 sound/core/compress_offload.c stream->runtime->state = SNDRV_PCM_STATE_PREPARED; stream 327 sound/core/compress_offload.c mutex_unlock(&stream->device->lock); stream 336 sound/core/compress_offload.c struct snd_compr_stream *stream; stream 343 sound/core/compress_offload.c stream = &data->stream; stream 344 sound/core/compress_offload.c mutex_lock(&stream->device->lock); stream 350 sound/core/compress_offload.c switch (stream->runtime->state) { stream 362 sound/core/compress_offload.c avail = snd_compr_get_avail(stream); stream 368 sound/core/compress_offload.c if (stream->ops->copy) { stream 369 sound/core/compress_offload.c retval = stream->ops->copy(stream, buf, avail); stream 375 sound/core/compress_offload.c stream->runtime->total_bytes_transferred += retval; stream 378 sound/core/compress_offload.c mutex_unlock(&stream->device->lock); stream 387 sound/core/compress_offload.c static __poll_t snd_compr_get_poll(struct snd_compr_stream *stream) stream 389 sound/core/compress_offload.c if (stream->direction == SND_COMPRESS_PLAYBACK) stream 398 sound/core/compress_offload.c struct snd_compr_stream *stream; stream 405 sound/core/compress_offload.c stream = &data->stream; stream 407 sound/core/compress_offload.c mutex_lock(&stream->device->lock); stream 409 sound/core/compress_offload.c switch (stream->runtime->state) { stream 412 sound/core/compress_offload.c retval = snd_compr_get_poll(stream) | EPOLLERR; stream 418 sound/core/compress_offload.c poll_wait(f, &stream->runtime->sleep, wait); stream 420 sound/core/compress_offload.c avail = snd_compr_get_avail(stream); stream 423 sound/core/compress_offload.c switch (stream->runtime->state) { stream 428 sound/core/compress_offload.c retval = snd_compr_get_poll(stream); stream 429 sound/core/compress_offload.c stream->runtime->state = SNDRV_PCM_STATE_SETUP; stream 434 sound/core/compress_offload.c if (avail >= stream->runtime->fragment_size) stream 435 sound/core/compress_offload.c retval = snd_compr_get_poll(stream); stream 438 sound/core/compress_offload.c retval = snd_compr_get_poll(stream) | EPOLLERR; stream 442 sound/core/compress_offload.c mutex_unlock(&stream->device->lock); stream 447 sound/core/compress_offload.c snd_compr_get_caps(struct snd_compr_stream *stream, unsigned long arg) stream 452 sound/core/compress_offload.c if (!stream->ops->get_caps) stream 456 sound/core/compress_offload.c retval = stream->ops->get_caps(stream, &caps); stream 467 sound/core/compress_offload.c snd_compr_get_codec_caps(struct snd_compr_stream *stream, unsigned long arg) stream 472 sound/core/compress_offload.c if (!stream->ops->get_codec_caps) stream 479 sound/core/compress_offload.c retval = stream->ops->get_codec_caps(stream, caps); stream 492 sound/core/compress_offload.c static int snd_compr_allocate_buffer(struct snd_compr_stream *stream, stream 499 sound/core/compress_offload.c if (stream->ops->copy) { stream 505 sound/core/compress_offload.c if (stream->runtime->dma_buffer_p) { stream 507 sound/core/compress_offload.c if (buffer_size > stream->runtime->dma_buffer_p->bytes) stream 508 sound/core/compress_offload.c dev_err(&stream->device->dev, stream 511 sound/core/compress_offload.c buffer = stream->runtime->dma_buffer_p->area; stream 520 sound/core/compress_offload.c stream->runtime->fragment_size = params->buffer.fragment_size; stream 521 sound/core/compress_offload.c stream->runtime->fragments = params->buffer.fragments; stream 522 sound/core/compress_offload.c stream->runtime->buffer = buffer; stream 523 sound/core/compress_offload.c stream->runtime->buffer_size = buffer_size; stream 546 sound/core/compress_offload.c snd_compr_set_params(struct snd_compr_stream *stream, unsigned long arg) stream 551 sound/core/compress_offload.c if (stream->runtime->state == SNDRV_PCM_STATE_OPEN) { stream 564 sound/core/compress_offload.c retval = snd_compr_allocate_buffer(stream, params); stream 570 sound/core/compress_offload.c retval = stream->ops->set_params(stream, params); stream 574 sound/core/compress_offload.c stream->metadata_set = false; stream 575 sound/core/compress_offload.c stream->next_track = false; stream 577 sound/core/compress_offload.c stream->runtime->state = SNDRV_PCM_STATE_SETUP; stream 587 sound/core/compress_offload.c snd_compr_get_params(struct snd_compr_stream *stream, unsigned long arg) stream 592 sound/core/compress_offload.c if (!stream->ops->get_params) stream 598 sound/core/compress_offload.c retval = stream->ops->get_params(stream, params); stream 610 sound/core/compress_offload.c snd_compr_get_metadata(struct snd_compr_stream *stream, unsigned long arg) stream 615 sound/core/compress_offload.c if (!stream->ops->get_metadata) stream 621 sound/core/compress_offload.c retval = stream->ops->get_metadata(stream, &metadata); stream 632 sound/core/compress_offload.c snd_compr_set_metadata(struct snd_compr_stream *stream, unsigned long arg) stream 637 sound/core/compress_offload.c if (!stream->ops->set_metadata) stream 646 sound/core/compress_offload.c retval = stream->ops->set_metadata(stream, &metadata); stream 647 sound/core/compress_offload.c stream->metadata_set = true; stream 653 sound/core/compress_offload.c snd_compr_tstamp(struct snd_compr_stream *stream, unsigned long arg) stream 658 sound/core/compress_offload.c ret = snd_compr_update_tstamp(stream, &tstamp); stream 665 sound/core/compress_offload.c static int snd_compr_pause(struct snd_compr_stream *stream) stream 669 sound/core/compress_offload.c if (stream->runtime->state != SNDRV_PCM_STATE_RUNNING) stream 671 sound/core/compress_offload.c retval = stream->ops->trigger(stream, SNDRV_PCM_TRIGGER_PAUSE_PUSH); stream 673 sound/core/compress_offload.c stream->runtime->state = SNDRV_PCM_STATE_PAUSED; stream 677 sound/core/compress_offload.c static int snd_compr_resume(struct snd_compr_stream *stream) stream 681 sound/core/compress_offload.c if (stream->runtime->state != SNDRV_PCM_STATE_PAUSED) stream 683 sound/core/compress_offload.c retval = stream->ops->trigger(stream, SNDRV_PCM_TRIGGER_PAUSE_RELEASE); stream 685 sound/core/compress_offload.c stream->runtime->state = SNDRV_PCM_STATE_RUNNING; stream 689 sound/core/compress_offload.c static int snd_compr_start(struct snd_compr_stream *stream) stream 693 sound/core/compress_offload.c switch (stream->runtime->state) { stream 695 sound/core/compress_offload.c if (stream->direction != SND_COMPRESS_CAPTURE) stream 704 sound/core/compress_offload.c retval = stream->ops->trigger(stream, SNDRV_PCM_TRIGGER_START); stream 706 sound/core/compress_offload.c stream->runtime->state = SNDRV_PCM_STATE_RUNNING; stream 710 sound/core/compress_offload.c static int snd_compr_stop(struct snd_compr_stream *stream) stream 714 sound/core/compress_offload.c switch (stream->runtime->state) { stream 723 sound/core/compress_offload.c retval = stream->ops->trigger(stream, SNDRV_PCM_TRIGGER_STOP); stream 725 sound/core/compress_offload.c snd_compr_drain_notify(stream); stream 726 sound/core/compress_offload.c stream->runtime->total_bytes_available = 0; stream 727 sound/core/compress_offload.c stream->runtime->total_bytes_transferred = 0; stream 734 sound/core/compress_offload.c struct snd_compr_stream *stream; stream 736 sound/core/compress_offload.c stream = container_of(work, struct snd_compr_stream, error_work.work); stream 738 sound/core/compress_offload.c mutex_lock(&stream->device->lock); stream 740 sound/core/compress_offload.c stream->ops->trigger(stream, SNDRV_PCM_TRIGGER_STOP); stream 741 sound/core/compress_offload.c wake_up(&stream->runtime->sleep); stream 743 sound/core/compress_offload.c mutex_unlock(&stream->device->lock); stream 755 sound/core/compress_offload.c int snd_compr_stop_error(struct snd_compr_stream *stream, stream 758 sound/core/compress_offload.c if (stream->runtime->state == state) stream 761 sound/core/compress_offload.c stream->runtime->state = state; stream 765 sound/core/compress_offload.c queue_delayed_work(system_power_efficient_wq, &stream->error_work, 0); stream 771 sound/core/compress_offload.c static int snd_compress_wait_for_drain(struct snd_compr_stream *stream) stream 783 sound/core/compress_offload.c stream->runtime->state = SNDRV_PCM_STATE_DRAINING; stream 784 sound/core/compress_offload.c mutex_unlock(&stream->device->lock); stream 792 sound/core/compress_offload.c ret = wait_event_interruptible(stream->runtime->sleep, stream 793 sound/core/compress_offload.c (stream->runtime->state != SNDRV_PCM_STATE_DRAINING)); stream 800 sound/core/compress_offload.c wake_up(&stream->runtime->sleep); stream 801 sound/core/compress_offload.c mutex_lock(&stream->device->lock); stream 806 sound/core/compress_offload.c static int snd_compr_drain(struct snd_compr_stream *stream) stream 810 sound/core/compress_offload.c switch (stream->runtime->state) { stream 822 sound/core/compress_offload.c retval = stream->ops->trigger(stream, SND_COMPR_TRIGGER_DRAIN); stream 825 sound/core/compress_offload.c wake_up(&stream->runtime->sleep); stream 829 sound/core/compress_offload.c return snd_compress_wait_for_drain(stream); stream 832 sound/core/compress_offload.c static int snd_compr_next_track(struct snd_compr_stream *stream) stream 837 sound/core/compress_offload.c if (stream->runtime->state != SNDRV_PCM_STATE_RUNNING) stream 841 sound/core/compress_offload.c if (stream->direction == SND_COMPRESS_CAPTURE) stream 847 sound/core/compress_offload.c if (stream->metadata_set == false) stream 850 sound/core/compress_offload.c retval = stream->ops->trigger(stream, SND_COMPR_TRIGGER_NEXT_TRACK); stream 853 sound/core/compress_offload.c stream->metadata_set = false; stream 854 sound/core/compress_offload.c stream->next_track = true; stream 858 sound/core/compress_offload.c static int snd_compr_partial_drain(struct snd_compr_stream *stream) stream 862 sound/core/compress_offload.c switch (stream->runtime->state) { stream 875 sound/core/compress_offload.c if (stream->direction == SND_COMPRESS_CAPTURE) stream 879 sound/core/compress_offload.c if (stream->next_track == false) stream 882 sound/core/compress_offload.c retval = stream->ops->trigger(stream, SND_COMPR_TRIGGER_PARTIAL_DRAIN); stream 885 sound/core/compress_offload.c wake_up(&stream->runtime->sleep); stream 889 sound/core/compress_offload.c stream->next_track = false; stream 890 sound/core/compress_offload.c return snd_compress_wait_for_drain(stream); stream 896 sound/core/compress_offload.c struct snd_compr_stream *stream; stream 902 sound/core/compress_offload.c stream = &data->stream; stream 904 sound/core/compress_offload.c mutex_lock(&stream->device->lock); stream 911 sound/core/compress_offload.c retval = snd_compr_get_caps(stream, arg); stream 915 sound/core/compress_offload.c retval = snd_compr_get_codec_caps(stream, arg); stream 919 sound/core/compress_offload.c retval = snd_compr_set_params(stream, arg); stream 922 sound/core/compress_offload.c retval = snd_compr_get_params(stream, arg); stream 925 sound/core/compress_offload.c retval = snd_compr_set_metadata(stream, arg); stream 928 sound/core/compress_offload.c retval = snd_compr_get_metadata(stream, arg); stream 931 sound/core/compress_offload.c retval = snd_compr_tstamp(stream, arg); stream 934 sound/core/compress_offload.c retval = snd_compr_ioctl_avail(stream, arg); stream 937 sound/core/compress_offload.c retval = snd_compr_pause(stream); stream 940 sound/core/compress_offload.c retval = snd_compr_resume(stream); stream 943 sound/core/compress_offload.c retval = snd_compr_start(stream); stream 946 sound/core/compress_offload.c retval = snd_compr_stop(stream); stream 949 sound/core/compress_offload.c retval = snd_compr_drain(stream); stream 952 sound/core/compress_offload.c retval = snd_compr_partial_drain(stream); stream 955 sound/core/compress_offload.c retval = snd_compr_next_track(stream); stream 959 sound/core/compress_offload.c mutex_unlock(&stream->device->lock); stream 971 sound/core/oss/pcm_oss.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 990 sound/core/oss/pcm_oss.c substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 996 sound/core/oss/pcm_oss.c sw_params->avail_min = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? stream 1989 sound/core/oss/pcm_oss.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 2146 sound/core/oss/pcm_oss.c static int snd_pcm_oss_get_ptr(struct snd_pcm_oss_file *pcm_oss_file, int stream, struct count_info __user * _info) stream 2157 sound/core/oss/pcm_oss.c substream = pcm_oss_file->streams[stream]; stream 2169 sound/core/oss/pcm_oss.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 2193 sound/core/oss/pcm_oss.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 2198 sound/core/oss/pcm_oss.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 2215 sound/core/oss/pcm_oss.c static int snd_pcm_oss_get_space(struct snd_pcm_oss_file *pcm_oss_file, int stream, struct audio_buf_info __user *_info) stream 2226 sound/core/oss/pcm_oss.c substream = pcm_oss_file->streams[stream]; stream 2238 sound/core/oss/pcm_oss.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 2246 sound/core/oss/pcm_oss.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 2276 sound/core/oss/pcm_oss.c static int snd_pcm_oss_get_mapbuf(struct snd_pcm_oss_file *pcm_oss_file, int stream, struct buffmem_desc __user * _info) stream 2293 sound/core/oss/pcm_oss.c static void snd_pcm_oss_look_for_setup(struct snd_pcm *pcm, int stream, stream 2299 sound/core/oss/pcm_oss.c mutex_lock(&pcm->streams[stream].oss.setup_mutex); stream 2301 sound/core/oss/pcm_oss.c for (setup = pcm->streams[stream].oss.setup_list; setup; stream 2310 sound/core/oss/pcm_oss.c mutex_unlock(&pcm->streams[stream].oss.setup_mutex); stream 3025 sound/core/oss/pcm_oss.c int stream; stream 3026 sound/core/oss/pcm_oss.c for (stream = 0; stream < 2; ++stream) { stream 3028 sound/core/oss/pcm_oss.c struct snd_pcm_str *pstr = &pcm->streams[stream]; stream 3048 sound/core/oss/pcm_oss.c int stream; stream 3049 sound/core/oss/pcm_oss.c for (stream = 0; stream < 2; ++stream) { stream 3050 sound/core/oss/pcm_oss.c struct snd_pcm_str *pstr = &pcm->streams[stream]; stream 57 sound/core/oss/pcm_plugin.c if (plugin->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 165 sound/core/oss/pcm_plugin.c plugin->stream = snd_pcm_plug_stream(plug); stream 173 sound/core/oss/pcm_plugin.c if (plugin->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 204 sound/core/oss/pcm_plugin.c int stream; stream 210 sound/core/oss/pcm_plugin.c stream = snd_pcm_plug_stream(plug); stream 211 sound/core/oss/pcm_plugin.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 222 sound/core/oss/pcm_plugin.c } else if (stream == SNDRV_PCM_STREAM_CAPTURE) { stream 244 sound/core/oss/pcm_plugin.c int stream; stream 251 sound/core/oss/pcm_plugin.c stream = snd_pcm_plug_stream(plug); stream 252 sound/core/oss/pcm_plugin.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 266 sound/core/oss/pcm_plugin.c } else if (stream == SNDRV_PCM_STREAM_CAPTURE) { stream 401 sound/core/oss/pcm_plugin.c int stream = snd_pcm_plug_stream(plug); stream 405 sound/core/oss/pcm_plugin.c switch (stream) { stream 586 sound/core/oss/pcm_plugin.c int stream = snd_pcm_plug_stream(plug); stream 590 sound/core/oss/pcm_plugin.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 608 sound/core/oss/pcm_plugin.c v->wanted = (stream == SNDRV_PCM_STREAM_CAPTURE); stream 12 sound/core/oss/pcm_plugin.h #define snd_pcm_plug_stream(plug) ((plug)->stream) stream 41 sound/core/oss/pcm_plugin.h int stream; stream 105 sound/core/pcm.c int stream; stream 114 sound/core/pcm.c if (get_user(stream, &info->stream)) stream 116 sound/core/pcm.c if (stream < 0 || stream > 1) stream 118 sound/core/pcm.c stream = array_index_nospec(stream, 2); stream 127 sound/core/pcm.c pstr = &pcm->streams[stream]; stream 273 sound/core/pcm.c static const char *snd_pcm_stream_name(int stream) stream 275 sound/core/pcm.c return snd_pcm_stream_names[stream]; stream 352 sound/core/pcm.c snd_iprintf(buffer, "stream: %s\n", snd_pcm_stream_name(info->stream)); stream 510 sound/core/pcm.c pstr->stream == SNDRV_PCM_STREAM_PLAYBACK ? 'p' : 'c'); stream 636 sound/core/pcm.c int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count) stream 639 sound/core/pcm.c struct snd_pcm_str *pstr = &pcm->streams[stream]; stream 645 sound/core/pcm.c pstr->stream = stream; stream 655 sound/core/pcm.c stream == SNDRV_PCM_STREAM_PLAYBACK ? 'p' : 'c'); stream 672 sound/core/pcm.c substream->stream = stream; stream 879 sound/core/pcm.c int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream, stream 892 sound/core/pcm.c if (snd_BUG_ON(stream != SNDRV_PCM_STREAM_PLAYBACK && stream 893 sound/core/pcm.c stream != SNDRV_PCM_STREAM_CAPTURE)) stream 896 sound/core/pcm.c pstr = &pcm->streams[stream]; stream 904 sound/core/pcm.c int opposite = !stream; stream 358 sound/core/pcm_compat.c if (substream->stream != dir) stream 404 sound/core/pcm_compat.c if (substream->stream != dir) stream 73 sound/core/pcm_dmaengine.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 109 sound/core/pcm_dmaengine.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 118 sound/core/pcm_lib.c substream->stream ? 'c' : 'p', stream 225 sound/core/pcm_lib.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 365 sound/core/pcm_lib.c substream->stream, (long)pos, stream 419 sound/core/pcm_lib.c substream->stream, (long)delta, stream 431 sound/core/pcm_lib.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && stream 474 sound/core/pcm_lib.c struct snd_pcm_str *stream = &pcm->streams[direction]; stream 477 sound/core/pcm_lib.c for (substream = stream->substream; substream != NULL; substream = substream->next) stream 1819 sound/core/pcm_lib.c int is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 1949 sound/core/pcm_lib.c if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK) stream 2124 sound/core/pcm_lib.c is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 2400 sound/core/pcm_lib.c info->pcm->streams[info->stream].chmap_kctl = NULL; stream 2416 sound/core/pcm_lib.c int snd_pcm_add_chmap_ctls(struct snd_pcm *pcm, int stream, stream 2434 sound/core/pcm_lib.c if (WARN_ON(pcm->streams[stream].chmap_kctl)) stream 2440 sound/core/pcm_lib.c info->stream = stream; stream 2443 sound/core/pcm_lib.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 2448 sound/core/pcm_lib.c knew.count = pcm->streams[stream].substream_count; stream 2459 sound/core/pcm_lib.c pcm->streams[stream].chmap_kctl = info->kctl; stream 41 sound/core/pcm_local.h if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 50 sound/core/pcm_local.h if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 54 sound/core/pcm_memory.c substream->stream ? 'c' : 'p', substream->number, stream 90 sound/core/pcm_memory.c int stream; stream 92 sound/core/pcm_memory.c for (stream = 0; stream < 2; stream++) stream 93 sound/core/pcm_memory.c for (substream = pcm->streams[stream].substream; substream; substream = substream->next) stream 246 sound/core/pcm_memory.c int stream; stream 248 sound/core/pcm_memory.c for (stream = 0; stream < 2; stream++) stream 249 sound/core/pcm_memory.c for (substream = pcm->streams[stream].substream; substream; substream = substream->next) stream 67 sound/core/pcm_native.c static int snd_pcm_open(struct file *file, struct snd_pcm *pcm, int stream); stream 198 sound/core/pcm_native.c info->stream = substream->stream; stream 836 sound/core/pcm_native.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && stream 863 sound/core/pcm_native.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1216 sound/core/pcm_native.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && stream 1245 sound/core/pcm_native.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && stream 1517 sound/core/pcm_native.c int stream, err = 0; stream 1522 sound/core/pcm_native.c for (stream = 0; stream < 2; stream++) { stream 1523 sound/core/pcm_native.c for (substream = pcm->streams[stream].substream; stream 1564 sound/core/pcm_native.c substream->stream != SNDRV_PCM_STREAM_PLAYBACK)) stream 1666 sound/core/pcm_native.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && stream 1773 sound/core/pcm_native.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 1878 sound/core/pcm_native.c if (s->stream != SNDRV_PCM_STREAM_PLAYBACK) stream 2460 sound/core/pcm_native.c int snd_pcm_open_substream(struct snd_pcm *pcm, int stream, stream 2467 sound/core/pcm_native.c err = snd_pcm_attach_substream(pcm, stream, file, &substream); stream 2503 sound/core/pcm_native.c int stream) stream 2509 sound/core/pcm_native.c err = snd_pcm_open_substream(pcm, stream, file, &substream); stream 2554 sound/core/pcm_native.c static int snd_pcm_open(struct file *file, struct snd_pcm *pcm, int stream) stream 2574 sound/core/pcm_native.c err = snd_pcm_open_file(file, pcm, stream); stream 2639 sound/core/pcm_native.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 2834 sound/core/pcm_native.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 2862 sound/core/pcm_native.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 3037 sound/core/pcm_native.c if (substream->stream != SNDRV_PCM_STREAM_CAPTURE) stream 3192 sound/core/pcm_native.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 3213 sound/core/pcm_native.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 3477 sound/core/pcm_native.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 46 sound/core/pcm_param_trace.h __entry->direction = substream->stream; stream 96 sound/core/pcm_param_trace.h __entry->direction = substream->stream; stream 107 sound/core/pcm_timer.c tid.subdevice = (substream->number << 1) | (substream->stream & 1); stream 111 sound/core/pcm_timer.c substream->stream == SNDRV_PCM_STREAM_CAPTURE ? stream 19 sound/core/pcm_trace.h __field( unsigned int, stream ) stream 31 sound/core/pcm_trace.h __entry->stream = (substream)->stream; stream 40 sound/core/pcm_trace.h __entry->stream == SNDRV_PCM_STREAM_PLAYBACK ? "p" : "c", stream 57 sound/core/pcm_trace.h __field( unsigned int, stream ) stream 67 sound/core/pcm_trace.h __entry->stream = (substream)->stream; stream 75 sound/core/pcm_trace.h __entry->stream == SNDRV_PCM_STREAM_PLAYBACK ? "p" : "c", stream 90 sound/core/pcm_trace.h __field( unsigned int, stream ) stream 97 sound/core/pcm_trace.h __entry->stream = (substream)->stream; stream 102 sound/core/pcm_trace.h __entry->stream == SNDRV_PCM_STREAM_PLAYBACK ? "p" : "c", stream 113 sound/core/pcm_trace.h __field( unsigned int, stream ) stream 124 sound/core/pcm_trace.h __entry->stream = (substream)->stream; stream 127 sound/core/pcm_trace.h __entry->avail = (substream)->stream ? snd_pcm_capture_avail(substream->runtime) : snd_pcm_playback_avail(substream->runtime); stream 134 sound/core/pcm_trace.h __entry->stream ? "c" : "p", stream 125 sound/core/rawmidi.c if (substream->stream == SNDRV_RAWMIDI_STREAM_INPUT) stream 235 sound/core/rawmidi.c int stream, int mode, stream 239 sound/core/rawmidi.c struct snd_rawmidi_str *s = &rmidi->streams[stream]; stream 245 sound/core/rawmidi.c if (!(rmidi->info_flags & info_flags[stream])) stream 252 sound/core/rawmidi.c if (stream == SNDRV_RAWMIDI_STREAM_INPUT || stream 286 sound/core/rawmidi.c rmidi->streams[substream->stream].substream_opened++; stream 477 sound/core/rawmidi.c if (substream->stream == SNDRV_RAWMIDI_STREAM_INPUT) stream 499 sound/core/rawmidi.c rmidi->streams[substream->stream].substream_opened--; stream 564 sound/core/rawmidi.c info->stream = substream->stream; stream 599 sound/core/rawmidi.c if (info->stream < 0 || info->stream > 1) stream 601 sound/core/rawmidi.c info->stream = array_index_nospec(info->stream, 2); stream 602 sound/core/rawmidi.c pstr = &rmidi->streams[info->stream]; stream 633 sound/core/rawmidi.c if (get_user(info.stream, &_info->stream)) stream 701 sound/core/rawmidi.c status->stream = SNDRV_RAWMIDI_STREAM_OUTPUT; stream 714 sound/core/rawmidi.c status->stream = SNDRV_RAWMIDI_STREAM_INPUT; stream 736 sound/core/rawmidi.c int stream; stream 739 sound/core/rawmidi.c if (get_user(stream, &info->stream)) stream 741 sound/core/rawmidi.c switch (stream) { stream 756 sound/core/rawmidi.c switch (params.stream) { stream 776 sound/core/rawmidi.c switch (status.stream) { stream 1527 sound/core/rawmidi.c struct snd_rawmidi_str *stream, stream 1538 sound/core/rawmidi.c substream->stream = direction; stream 1541 sound/core/rawmidi.c substream->pstr = stream; stream 1542 sound/core/rawmidi.c list_add_tail(&substream->list, &stream->substreams); stream 1543 sound/core/rawmidi.c stream->substream_count++; stream 1626 sound/core/rawmidi.c static void snd_rawmidi_free_substreams(struct snd_rawmidi_str *stream) stream 1630 sound/core/rawmidi.c while (!list_empty(&stream->substreams)) { stream 1631 sound/core/rawmidi.c substream = list_entry(stream->substreams.next, struct snd_rawmidi_substream, list); stream 1809 sound/core/rawmidi.c void snd_rawmidi_set_ops(struct snd_rawmidi *rmidi, int stream, stream 1814 sound/core/rawmidi.c list_for_each_entry(substream, &rmidi->streams[stream].substreams, list) stream 12 sound/core/rawmidi_compat.c s32 stream; stream 25 sound/core/rawmidi_compat.c if (get_user(params.stream, &src->stream) || stream 31 sound/core/rawmidi_compat.c switch (params.stream) { stream 45 sound/core/rawmidi_compat.c s32 stream; stream 58 sound/core/rawmidi_compat.c if (get_user(status.stream, &src->stream)) stream 61 sound/core/rawmidi_compat.c switch (status.stream) { stream 89 sound/core/rawmidi_compat.c s32 stream; stream 105 sound/core/rawmidi_compat.c if (get_user(status.stream, &src->stream)) stream 108 sound/core/rawmidi_compat.c switch (status.stream) { stream 279 sound/core/seq/seq_midi.c info->stream = SNDRV_RAWMIDI_STREAM_OUTPUT; stream 283 sound/core/seq/seq_midi.c info->stream = SNDRV_RAWMIDI_STREAM_INPUT; stream 338 sound/core/seq/seq_midi.c info->stream = SNDRV_RAWMIDI_STREAM_OUTPUT; stream 340 sound/core/seq/seq_midi.c info->stream = SNDRV_RAWMIDI_STREAM_INPUT; stream 140 sound/drivers/aloop.c if (dpcm->substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 190 sound/drivers/aloop.c static int loopback_check_format(struct loopback_cable *cable, int stream) stream 198 sound/drivers/aloop.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 211 sound/drivers/aloop.c if (stream == SNDRV_PCM_STREAM_CAPTURE) { stream 252 sound/drivers/aloop.c int err, stream = 1 << substream->stream; stream 256 sound/drivers/aloop.c err = loopback_check_format(cable, substream->stream); stream 263 sound/drivers/aloop.c cable->running |= stream; stream 264 sound/drivers/aloop.c cable->pause &= ~stream; stream 267 sound/drivers/aloop.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 272 sound/drivers/aloop.c cable->running &= ~stream; stream 273 sound/drivers/aloop.c cable->pause &= ~stream; stream 276 sound/drivers/aloop.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 282 sound/drivers/aloop.c cable->pause |= stream; stream 285 sound/drivers/aloop.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 292 sound/drivers/aloop.c cable->pause &= ~stream; stream 295 sound/drivers/aloop.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 334 sound/drivers/aloop.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 348 sound/drivers/aloop.c if (!(cable->valid & ~(1 << substream->stream)) || stream 350 sound/drivers/aloop.c substream->stream == SNDRV_PCM_STREAM_PLAYBACK)) stream 352 sound/drivers/aloop.c cable->valid |= 1 << substream->stream; stream 519 sound/drivers/aloop.c if (loopback_pos_update(dpcm->cable) & (1 << dpcm->substream->stream)) { stream 590 sound/drivers/aloop.c cable->valid &= ~(1 << substream->stream); stream 598 sound/drivers/aloop.c return substream->stream; stream 600 sound/drivers/aloop.c return !substream->stream; stream 659 sound/drivers/aloop.c if (cable->streams[!substream->stream]) { stream 662 sound/drivers/aloop.c cable->streams[substream->stream] = NULL; stream 735 sound/drivers/aloop.c cable->streams[substream->stream] = dpcm; stream 574 sound/drivers/dummy.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 652 sound/drivers/dummy.c return virt_to_page(dummy_page[substream->stream]); /* the same page */ stream 849 sound/drivers/serial-u16550.c static void snd_uart16550_substreams(struct snd_rawmidi_str *stream) stream 853 sound/drivers/serial-u16550.c list_for_each_entry(substream, &stream->substreams, list) { stream 77 sound/firewire/amdtp-stream-trace.h #define TRACE_INCLUDE_FILE amdtp-stream-trace stream 103 sound/firewire/bebob/bebob_pcm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 431 sound/firewire/bebob/bebob_stream.c start_stream(struct snd_bebob *bebob, struct amdtp_stream *stream) stream 436 sound/firewire/bebob/bebob_stream.c if (stream == &bebob->rx_stream) stream 443 sound/firewire/bebob/bebob_stream.c err = map_data_channels(bebob, stream); stream 449 sound/firewire/bebob/bebob_stream.c err = amdtp_domain_add_stream(&bebob->domain, stream, stream 455 sound/firewire/bebob/bebob_stream.c static int init_stream(struct snd_bebob *bebob, struct amdtp_stream *stream) stream 462 sound/firewire/bebob/bebob_stream.c if (stream == &bebob->tx_stream) { stream 476 sound/firewire/bebob/bebob_stream.c err = amdtp_am824_init(stream, bebob->unit, dir_stream, CIP_BLOCKING); stream 482 sound/firewire/bebob/bebob_stream.c if (stream == &bebob->tx_stream) { stream 501 sound/firewire/bebob/bebob_stream.c static void destroy_stream(struct snd_bebob *bebob, struct amdtp_stream *stream) stream 503 sound/firewire/bebob/bebob_stream.c amdtp_stream_destroy(stream); stream 505 sound/firewire/bebob/bebob_stream.c if (stream == &bebob->tx_stream) stream 534 sound/firewire/bebob/bebob_stream.c static int keep_resources(struct snd_bebob *bebob, struct amdtp_stream *stream, stream 541 sound/firewire/bebob/bebob_stream.c if (stream == &bebob->tx_stream) { stream 549 sound/firewire/bebob/bebob_stream.c err = amdtp_am824_set_parameters(stream, rate, formation->pcm, stream 554 sound/firewire/bebob/bebob_stream.c return cmp_connection_reserve(conn, amdtp_stream_get_max_payload(stream)); stream 29 sound/firewire/dice/dice-pcm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 67 sound/firewire/dice/dice-pcm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 132 sound/firewire/dice/dice-pcm.c struct amdtp_stream *stream; stream 135 sound/firewire/dice/dice-pcm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 138 sound/firewire/dice/dice-pcm.c stream = &dice->tx_stream[index]; stream 142 sound/firewire/dice/dice-pcm.c stream = &dice->rx_stream[index]; stream 161 sound/firewire/dice/dice-pcm.c return amdtp_am824_add_pcm_hw_constraints(stream, runtime); stream 276 sound/firewire/dice/dice-pcm.c struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device]; stream 283 sound/firewire/dice/dice-pcm.c amdtp_stream_pcm_prepare(stream); stream 290 sound/firewire/dice/dice-pcm.c struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device]; stream 297 sound/firewire/dice/dice-pcm.c amdtp_stream_pcm_prepare(stream); stream 305 sound/firewire/dice/dice-pcm.c struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device]; stream 309 sound/firewire/dice/dice-pcm.c amdtp_stream_pcm_trigger(stream, substream); stream 312 sound/firewire/dice/dice-pcm.c amdtp_stream_pcm_trigger(stream, NULL); stream 323 sound/firewire/dice/dice-pcm.c struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device]; stream 327 sound/firewire/dice/dice-pcm.c amdtp_stream_pcm_trigger(stream, substream); stream 330 sound/firewire/dice/dice-pcm.c amdtp_stream_pcm_trigger(stream, NULL); stream 342 sound/firewire/dice/dice-pcm.c struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device]; stream 344 sound/firewire/dice/dice-pcm.c return amdtp_stream_pcm_pointer(stream); stream 349 sound/firewire/dice/dice-pcm.c struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device]; stream 351 sound/firewire/dice/dice-pcm.c return amdtp_stream_pcm_pointer(stream); stream 357 sound/firewire/dice/dice-pcm.c struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device]; stream 359 sound/firewire/dice/dice-pcm.c return amdtp_stream_pcm_ack(stream); stream 365 sound/firewire/dice/dice-pcm.c struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device]; stream 367 sound/firewire/dice/dice-pcm.c return amdtp_stream_pcm_ack(stream); stream 115 sound/firewire/dice/dice-proc.c unsigned int quadlets, stream, i; stream 173 sound/firewire/dice/dice-proc.c for (stream = 0; stream < tx_rx_header.number; ++stream) { stream 175 sound/firewire/dice/dice-proc.c stream * tx_rx_header.size, stream 178 sound/firewire/dice/dice-proc.c snd_iprintf(buffer, "tx %u:\n", stream); stream 199 sound/firewire/dice/dice-proc.c for (stream = 0; stream < tx_rx_header.number; ++stream) { stream 201 sound/firewire/dice/dice-proc.c stream * tx_rx_header.size, stream 204 sound/firewire/dice/dice-proc.c snd_iprintf(buffer, "rx %u:\n", stream); stream 168 sound/firewire/dice/dice-stream.c static int keep_resources(struct snd_dice *dice, struct amdtp_stream *stream, stream 190 sound/firewire/dice/dice-stream.c err = amdtp_am824_set_parameters(stream, rate, pcm_chs, midi_ports, stream 199 sound/firewire/dice/dice-stream.c amdtp_am824_set_pcm_position(stream, i, i * 2); stream 200 sound/firewire/dice/dice-stream.c amdtp_am824_set_pcm_position(stream, i + pcm_chs, stream 206 sound/firewire/dice/dice-stream.c amdtp_stream_get_max_payload(stream), stream 224 sound/firewire/dice/dice-stream.c struct amdtp_stream *stream; stream 232 sound/firewire/dice/dice-stream.c stream = &dice->tx_stream[i]; stream 241 sound/firewire/dice/dice-stream.c stream = &dice->rx_stream[i]; stream 263 sound/firewire/dice/dice-stream.c err = keep_resources(dice, stream, resources, rate, pcm_chs, stream 343 sound/firewire/dice/dice-stream.c struct amdtp_stream *stream; stream 348 sound/firewire/dice/dice-stream.c stream = dice->tx_stream + i; stream 351 sound/firewire/dice/dice-stream.c stream = dice->rx_stream + i; stream 377 sound/firewire/dice/dice-stream.c err = amdtp_domain_add_stream(&dice->domain, stream, stream 504 sound/firewire/dice/dice-stream.c struct amdtp_stream *stream; stream 509 sound/firewire/dice/dice-stream.c stream = &dice->tx_stream[index]; stream 512 sound/firewire/dice/dice-stream.c stream = &dice->rx_stream[index]; stream 521 sound/firewire/dice/dice-stream.c err = amdtp_am824_init(stream, dice->unit, dir, CIP_BLOCKING); stream 523 sound/firewire/dice/dice-stream.c amdtp_stream_destroy(stream); stream 538 sound/firewire/dice/dice-stream.c struct amdtp_stream *stream; stream 542 sound/firewire/dice/dice-stream.c stream = &dice->tx_stream[index]; stream 545 sound/firewire/dice/dice-stream.c stream = &dice->rx_stream[index]; stream 549 sound/firewire/dice/dice-stream.c amdtp_stream_destroy(stream); stream 66 sound/firewire/digi00x/digi00x-pcm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 188 sound/firewire/digi00x/digi00x-stream.c static int keep_resources(struct snd_dg00x *dg00x, struct amdtp_stream *stream, stream 203 sound/firewire/digi00x/digi00x-stream.c if (stream == &dg00x->tx_stream) stream 208 sound/firewire/digi00x/digi00x-stream.c err = amdtp_dot_set_parameters(stream, rate, stream 214 sound/firewire/digi00x/digi00x-stream.c amdtp_stream_get_max_payload(stream), stream 76 sound/firewire/fireface/ff-midi.c static void set_midi_substream_names(struct snd_rawmidi_str *stream, stream 81 sound/firewire/fireface/ff-midi.c list_for_each_entry(substream, &stream->substreams, list) { stream 100 sound/firewire/fireface/ff-midi.c struct snd_rawmidi_str *stream; stream 116 sound/firewire/fireface/ff-midi.c stream = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT]; stream 117 sound/firewire/fireface/ff-midi.c set_midi_substream_names(stream, ff->card->shortname); stream 122 sound/firewire/fireface/ff-midi.c stream = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT]; stream 123 sound/firewire/fireface/ff-midi.c set_midi_substream_names(stream, ff->card->shortname); stream 112 sound/firewire/fireface/ff-pcm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 140 sound/firewire/fireworks/fireworks_pcm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 11 sound/firewire/fireworks/fireworks_stream.c static int init_stream(struct snd_efw *efw, struct amdtp_stream *stream) stream 18 sound/firewire/fireworks/fireworks_stream.c if (stream == &efw->tx_stream) { stream 32 sound/firewire/fireworks/fireworks_stream.c err = amdtp_am824_init(stream, efw->unit, s_dir, CIP_BLOCKING); stream 34 sound/firewire/fireworks/fireworks_stream.c amdtp_stream_destroy(stream); stream 39 sound/firewire/fireworks/fireworks_stream.c if (stream == &efw->tx_stream) { stream 64 sound/firewire/fireworks/fireworks_stream.c static int start_stream(struct snd_efw *efw, struct amdtp_stream *stream, stream 70 sound/firewire/fireworks/fireworks_stream.c if (stream == &efw->tx_stream) stream 81 sound/firewire/fireworks/fireworks_stream.c err = amdtp_domain_add_stream(&efw->domain, stream, stream 93 sound/firewire/fireworks/fireworks_stream.c static void destroy_stream(struct snd_efw *efw, struct amdtp_stream *stream) stream 95 sound/firewire/fireworks/fireworks_stream.c amdtp_stream_destroy(stream); stream 97 sound/firewire/fireworks/fireworks_stream.c if (stream == &efw->tx_stream) stream 158 sound/firewire/fireworks/fireworks_stream.c static int keep_resources(struct snd_efw *efw, struct amdtp_stream *stream, stream 166 sound/firewire/fireworks/fireworks_stream.c if (stream == &efw->tx_stream) { stream 176 sound/firewire/fireworks/fireworks_stream.c err = amdtp_am824_set_parameters(stream, rate, pcm_channels, stream 181 sound/firewire/fireworks/fireworks_stream.c return cmp_connection_reserve(conn, amdtp_stream_get_max_payload(stream)); stream 103 sound/firewire/motu/motu-pcm.c struct amdtp_stream *stream; stream 107 sound/firewire/motu/motu-pcm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 109 sound/firewire/motu/motu-pcm.c stream = &motu->tx_stream; stream 113 sound/firewire/motu/motu-pcm.c stream = &motu->rx_stream; stream 130 sound/firewire/motu/motu-pcm.c return amdtp_motu_add_pcm_hw_constraints(stream, runtime); stream 29 sound/firewire/motu/motu-stream.c struct amdtp_stream *stream) stream 36 sound/firewire/motu/motu-stream.c if (stream == &motu->rx_stream) { stream 52 sound/firewire/motu/motu-stream.c err = amdtp_motu_set_parameters(stream, rate, midi_ports, stream 58 sound/firewire/motu/motu-stream.c amdtp_stream_get_max_payload(stream), stream 114 sound/firewire/oxfw/oxfw-pcm.c struct amdtp_stream *stream; stream 117 sound/firewire/oxfw/oxfw-pcm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 119 sound/firewire/oxfw/oxfw-pcm.c stream = &oxfw->tx_stream; stream 123 sound/firewire/oxfw/oxfw-pcm.c stream = &oxfw->rx_stream; stream 141 sound/firewire/oxfw/oxfw-pcm.c err = amdtp_am824_add_pcm_hw_constraints(stream, runtime); stream 153 sound/firewire/oxfw/oxfw-pcm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 44 sound/firewire/oxfw/oxfw-scs1x.c static void midi_input_escaped_byte(struct snd_rawmidi_substream *stream, stream 51 sound/firewire/oxfw/oxfw-scs1x.c snd_rawmidi_receive(stream, nibbles, 2); stream 55 sound/firewire/oxfw/oxfw-scs1x.c struct snd_rawmidi_substream *stream, u8 byte) stream 60 sound/firewire/oxfw/oxfw-scs1x.c midi_input_escaped_byte(stream, byte); stream 63 sound/firewire/oxfw/oxfw-scs1x.c snd_rawmidi_receive(stream, &eox, sizeof(eox)); stream 65 sound/firewire/oxfw/oxfw-scs1x.c snd_rawmidi_receive(stream, sysex_escape_prefix, stream 67 sound/firewire/oxfw/oxfw-scs1x.c midi_input_escaped_byte(stream, 0x00); stream 68 sound/firewire/oxfw/oxfw-scs1x.c midi_input_escaped_byte(stream, 0xf9); stream 71 sound/firewire/oxfw/oxfw-scs1x.c snd_rawmidi_receive(stream, &byte, 1); stream 76 sound/firewire/oxfw/oxfw-scs1x.c struct snd_rawmidi_substream *stream, stream 84 sound/firewire/oxfw/oxfw-scs1x.c midi_input_byte(scs, stream, data[i]); stream 86 sound/firewire/oxfw/oxfw-scs1x.c snd_rawmidi_receive(stream, sysex_escape_prefix, stream 89 sound/firewire/oxfw/oxfw-scs1x.c midi_input_escaped_byte(stream, data[i]); stream 90 sound/firewire/oxfw/oxfw-scs1x.c snd_rawmidi_receive(stream, &eox, sizeof(eox)); stream 100 sound/firewire/oxfw/oxfw-scs1x.c struct snd_rawmidi_substream *stream; stream 114 sound/firewire/oxfw/oxfw-scs1x.c stream = READ_ONCE(scs->input); stream 115 sound/firewire/oxfw/oxfw-scs1x.c if (stream) stream 116 sound/firewire/oxfw/oxfw-scs1x.c midi_input_packet(scs, stream, data, length); stream 177 sound/firewire/oxfw/oxfw-scs1x.c struct snd_rawmidi_substream *stream; stream 185 sound/firewire/oxfw/oxfw-scs1x.c stream = READ_ONCE(scs->output); stream 186 sound/firewire/oxfw/oxfw-scs1x.c if (!stream || scs->error) { stream 197 sound/firewire/oxfw/oxfw-scs1x.c if (snd_rawmidi_transmit(stream, &byte, 1) != 1) { stream 277 sound/firewire/oxfw/oxfw-scs1x.c static int midi_capture_open(struct snd_rawmidi_substream *stream) stream 282 sound/firewire/oxfw/oxfw-scs1x.c static int midi_capture_close(struct snd_rawmidi_substream *stream) stream 287 sound/firewire/oxfw/oxfw-scs1x.c static void midi_capture_trigger(struct snd_rawmidi_substream *stream, int up) stream 289 sound/firewire/oxfw/oxfw-scs1x.c struct fw_scs1x *scs = stream->rmidi->private_data; stream 293 sound/firewire/oxfw/oxfw-scs1x.c WRITE_ONCE(scs->input, stream); stream 299 sound/firewire/oxfw/oxfw-scs1x.c static int midi_playback_open(struct snd_rawmidi_substream *stream) stream 304 sound/firewire/oxfw/oxfw-scs1x.c static int midi_playback_close(struct snd_rawmidi_substream *stream) stream 309 sound/firewire/oxfw/oxfw-scs1x.c static void midi_playback_trigger(struct snd_rawmidi_substream *stream, int up) stream 311 sound/firewire/oxfw/oxfw-scs1x.c struct fw_scs1x *scs = stream->rmidi->private_data; stream 321 sound/firewire/oxfw/oxfw-scs1x.c WRITE_ONCE(scs->output, stream); stream 327 sound/firewire/oxfw/oxfw-scs1x.c static void midi_playback_drain(struct snd_rawmidi_substream *stream) stream 329 sound/firewire/oxfw/oxfw-scs1x.c struct fw_scs1x *scs = stream->rmidi->private_data; stream 103 sound/firewire/oxfw/oxfw-stream.c static int start_stream(struct snd_oxfw *oxfw, struct amdtp_stream *stream) stream 108 sound/firewire/oxfw/oxfw-stream.c if (stream == &oxfw->rx_stream) stream 117 sound/firewire/oxfw/oxfw-stream.c err = amdtp_domain_add_stream(&oxfw->domain, stream, stream 128 sound/firewire/oxfw/oxfw-stream.c struct amdtp_stream *stream) stream 134 sound/firewire/oxfw/oxfw-stream.c if (stream == &oxfw->tx_stream) stream 140 sound/firewire/oxfw/oxfw-stream.c if ((err >= 0) && used && !amdtp_stream_running(stream)) { stream 151 sound/firewire/oxfw/oxfw-stream.c static int init_stream(struct snd_oxfw *oxfw, struct amdtp_stream *stream) stream 158 sound/firewire/oxfw/oxfw-stream.c if (stream == &oxfw->tx_stream) { stream 172 sound/firewire/oxfw/oxfw-stream.c err = amdtp_am824_init(stream, oxfw->unit, s_dir, CIP_NONBLOCKING); stream 184 sound/firewire/oxfw/oxfw-stream.c if (stream == &oxfw->tx_stream) { stream 193 sound/firewire/oxfw/oxfw-stream.c static int keep_resources(struct snd_oxfw *oxfw, struct amdtp_stream *stream) stream 202 sound/firewire/oxfw/oxfw-stream.c if (stream == &oxfw->rx_stream) { stream 237 sound/firewire/oxfw/oxfw-stream.c err = amdtp_am824_set_parameters(stream, formation.rate, formation.pcm, stream 242 sound/firewire/oxfw/oxfw-stream.c return cmp_connection_reserve(conn, amdtp_stream_get_max_payload(stream)); stream 246 sound/firewire/oxfw/oxfw-stream.c struct amdtp_stream *stream, stream 264 sound/firewire/oxfw/oxfw-stream.c if (stream == &oxfw->tx_stream) stream 290 sound/firewire/oxfw/oxfw-stream.c err = set_stream_format(oxfw, stream, rate, pcm_channels); stream 393 sound/firewire/oxfw/oxfw-stream.c static void destroy_stream(struct snd_oxfw *oxfw, struct amdtp_stream *stream) stream 397 sound/firewire/oxfw/oxfw-stream.c if (stream == &oxfw->tx_stream) stream 402 sound/firewire/oxfw/oxfw-stream.c amdtp_stream_destroy(stream); stream 105 sound/firewire/oxfw/oxfw.h struct amdtp_stream *stream, stream 86 sound/firewire/tascam/tascam-midi.c struct snd_rawmidi_str *stream; stream 104 sound/firewire/tascam/tascam-midi.c stream = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT]; stream 107 sound/firewire/tascam/tascam-midi.c list_for_each_entry(subs, &stream->substreams, list) { stream 120 sound/firewire/tascam/tascam-midi.c stream = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT]; stream 123 sound/firewire/tascam/tascam-midi.c list_for_each_entry(subs, &stream->substreams, list) { stream 15 sound/firewire/tascam/tascam-pcm.c struct amdtp_stream *stream; stream 18 sound/firewire/tascam/tascam-pcm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 20 sound/firewire/tascam/tascam-pcm.c stream = &tscm->tx_stream; stream 24 sound/firewire/tascam/tascam-pcm.c stream = &tscm->rx_stream; stream 40 sound/firewire/tascam/tascam-pcm.c return amdtp_tscm_add_pcm_hw_constraints(stream, runtime); stream 282 sound/firewire/tascam/tascam-stream.c struct amdtp_stream *stream) stream 287 sound/firewire/tascam/tascam-stream.c if (stream == &tscm->tx_stream) stream 292 sound/firewire/tascam/tascam-stream.c err = amdtp_tscm_set_parameters(stream, rate); stream 297 sound/firewire/tascam/tascam-stream.c amdtp_stream_get_max_payload(stream), stream 30 sound/hda/ext/hdac_ext_stream.c struct hdac_ext_stream *stream, stream 34 sound/hda/ext/hdac_ext_stream.c stream->pphc_addr = bus->ppcap + AZX_PPHC_BASE + stream 37 sound/hda/ext/hdac_ext_stream.c stream->pplc_addr = bus->ppcap + AZX_PPLC_BASE + stream 43 sound/hda/ext/hdac_ext_stream.c stream->spib_addr = bus->spbcap + AZX_SPB_BASE + stream 47 sound/hda/ext/hdac_ext_stream.c stream->fifo_addr = bus->spbcap + AZX_SPB_BASE + stream 53 sound/hda/ext/hdac_ext_stream.c stream->dpibr_addr = bus->drsmcap + AZX_DRSM_BASE + stream 56 sound/hda/ext/hdac_ext_stream.c stream->decoupled = false; stream 57 sound/hda/ext/hdac_ext_stream.c snd_hdac_stream_init(bus, &stream->hstream, idx, direction, tag); stream 76 sound/hda/ext/hdac_ext_stream.c struct hdac_ext_stream *stream = stream 77 sound/hda/ext/hdac_ext_stream.c kzalloc(sizeof(*stream), GFP_KERNEL); stream 78 sound/hda/ext/hdac_ext_stream.c if (!stream) stream 81 sound/hda/ext/hdac_ext_stream.c snd_hdac_ext_stream_init(bus, stream, idx, dir, tag); stream 98 sound/hda/ext/hdac_ext_stream.c struct hdac_ext_stream *stream; stream 101 sound/hda/ext/hdac_ext_stream.c stream = stream_to_hdac_ext_stream(s); stream 102 sound/hda/ext/hdac_ext_stream.c snd_hdac_ext_stream_decouple(bus, stream, false); stream 104 sound/hda/ext/hdac_ext_stream.c kfree(stream); stream 116 sound/hda/ext/hdac_ext_stream.c struct hdac_ext_stream *stream, bool decouple) stream 118 sound/hda/ext/hdac_ext_stream.c struct hdac_stream *hstream = &stream->hstream; stream 130 sound/hda/ext/hdac_ext_stream.c stream->decoupled = decouple; stream 139 sound/hda/ext/hdac_ext_stream.c void snd_hdac_ext_link_stream_start(struct hdac_ext_stream *stream) stream 141 sound/hda/ext/hdac_ext_stream.c snd_hdac_updatel(stream->pplc_addr, AZX_REG_PPLCCTL, stream 150 sound/hda/ext/hdac_ext_stream.c void snd_hdac_ext_link_stream_clear(struct hdac_ext_stream *stream) stream 152 sound/hda/ext/hdac_ext_stream.c snd_hdac_updatel(stream->pplc_addr, AZX_REG_PPLCCTL, AZX_PPLCCTL_RUN, 0); stream 160 sound/hda/ext/hdac_ext_stream.c void snd_hdac_ext_link_stream_reset(struct hdac_ext_stream *stream) stream 165 sound/hda/ext/hdac_ext_stream.c snd_hdac_ext_link_stream_clear(stream); stream 167 sound/hda/ext/hdac_ext_stream.c snd_hdac_updatel(stream->pplc_addr, AZX_REG_PPLCCTL, stream 172 sound/hda/ext/hdac_ext_stream.c val = readl(stream->pplc_addr + AZX_REG_PPLCCTL) & stream 179 sound/hda/ext/hdac_ext_stream.c writel(val, stream->pplc_addr + AZX_REG_PPLCCTL); stream 185 sound/hda/ext/hdac_ext_stream.c val = readl(stream->pplc_addr + AZX_REG_PPLCCTL) & AZX_PPLCCTL_STRST; stream 199 sound/hda/ext/hdac_ext_stream.c int snd_hdac_ext_link_stream_setup(struct hdac_ext_stream *stream, int fmt) stream 201 sound/hda/ext/hdac_ext_stream.c struct hdac_stream *hstream = &stream->hstream; stream 205 sound/hda/ext/hdac_ext_stream.c snd_hdac_ext_link_stream_clear(stream); stream 207 sound/hda/ext/hdac_ext_stream.c val = readl(stream->pplc_addr + AZX_REG_PPLCCTL); stream 210 sound/hda/ext/hdac_ext_stream.c writel(val, stream->pplc_addr + AZX_REG_PPLCCTL); stream 213 sound/hda/ext/hdac_ext_stream.c writew(fmt, stream->pplc_addr + AZX_REG_PPLCFMT); stream 225 sound/hda/ext/hdac_ext_stream.c int stream) stream 227 sound/hda/ext/hdac_ext_stream.c snd_hdac_updatew(link->ml_addr, AZX_REG_ML_LOSIDV, (1 << stream), 1 << stream); stream 237 sound/hda/ext/hdac_ext_stream.c int stream) stream 239 sound/hda/ext/hdac_ext_stream.c snd_hdac_updatew(link->ml_addr, AZX_REG_ML_LOSIDV, (1 << stream), 0); stream 248 sound/hda/ext/hdac_ext_stream.c struct hdac_stream *stream = NULL; stream 255 sound/hda/ext/hdac_ext_stream.c list_for_each_entry(stream, &bus->stream_list, list) { stream 256 sound/hda/ext/hdac_ext_stream.c struct hdac_ext_stream *hstream = container_of(stream, stream 259 sound/hda/ext/hdac_ext_stream.c if (stream->direction != substream->stream) stream 288 sound/hda/ext/hdac_ext_stream.c struct hdac_stream *stream = NULL; stream 295 sound/hda/ext/hdac_ext_stream.c list_for_each_entry(stream, &bus->stream_list, list) { stream 296 sound/hda/ext/hdac_ext_stream.c struct hdac_ext_stream *hstream = container_of(stream, stream 299 sound/hda/ext/hdac_ext_stream.c if (stream->direction != substream->stream) stream 302 sound/hda/ext/hdac_ext_stream.c if (!stream->opened) { stream 342 sound/hda/ext/hdac_ext_stream.c struct hdac_stream *stream = NULL; stream 346 sound/hda/ext/hdac_ext_stream.c stream = snd_hdac_stream_assign(bus, substream); stream 347 sound/hda/ext/hdac_ext_stream.c if (stream) stream 348 sound/hda/ext/hdac_ext_stream.c hstream = container_of(stream, stream 371 sound/hda/ext/hdac_ext_stream.c void snd_hdac_ext_stream_release(struct hdac_ext_stream *stream, int type) stream 373 sound/hda/ext/hdac_ext_stream.c struct hdac_bus *bus = stream->hstream.bus; stream 377 sound/hda/ext/hdac_ext_stream.c snd_hdac_stream_release(&stream->hstream); stream 381 sound/hda/ext/hdac_ext_stream.c if (stream->decoupled && !stream->link_locked) stream 382 sound/hda/ext/hdac_ext_stream.c snd_hdac_ext_stream_decouple(bus, stream, false); stream 383 sound/hda/ext/hdac_ext_stream.c snd_hdac_stream_release(&stream->hstream); stream 387 sound/hda/ext/hdac_ext_stream.c if (stream->decoupled && !stream->hstream.opened) stream 388 sound/hda/ext/hdac_ext_stream.c snd_hdac_ext_stream_decouple(bus, stream, false); stream 390 sound/hda/ext/hdac_ext_stream.c stream->link_locked = 0; stream 391 sound/hda/ext/hdac_ext_stream.c stream->link_substream = NULL; stream 434 sound/hda/ext/hdac_ext_stream.c struct hdac_ext_stream *stream, u32 value) stream 442 sound/hda/ext/hdac_ext_stream.c writel(value, stream->spib_addr); stream 456 sound/hda/ext/hdac_ext_stream.c struct hdac_ext_stream *stream) stream 464 sound/hda/ext/hdac_ext_stream.c return readl(stream->fifo_addr); stream 475 sound/hda/ext/hdac_ext_stream.c struct hdac_stream *stream; stream 478 sound/hda/ext/hdac_ext_stream.c list_for_each_entry(stream, &bus->stream_list, list) stream 479 sound/hda/ext/hdac_ext_stream.c snd_hdac_stream_stop(stream); stream 517 sound/hda/ext/hdac_ext_stream.c struct hdac_ext_stream *stream, u32 value) stream 525 sound/hda/ext/hdac_ext_stream.c writel(value, stream->dpibr_addr); stream 537 sound/hda/ext/hdac_ext_stream.c int snd_hdac_ext_stream_set_lpib(struct hdac_ext_stream *stream, u32 value) stream 539 sound/hda/ext/hdac_ext_stream.c snd_hdac_stream_writel(&stream->hstream, SD_LPIB, value); stream 928 sound/hda/hdac_device.c unsigned int val = 0, rate, stream; stream 944 sound/hda/hdac_device.c stream = query_stream_param(codec, nid); stream 945 sound/hda/hdac_device.c if (!stream) stream 948 sound/hda/hdac_device.c if (stream & AC_SUPFMT_PCM) { stream 290 sound/hda/hdac_stream.c (substream->stream + 1); stream 293 sound/hda/hdac_stream.c if (azx_dev->direction != substream->stream) stream 488 sound/isa/sb/sb8_main.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 516 sound/isa/sb/sb8_main.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 546 sound/isa/sb/sb8_main.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 451 sound/mips/sgio2audio.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 613 sound/mips/sgio2audio.c switch (substream->stream) { stream 153 sound/pci/ac97/ac97_pcm.c if (pcm->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 473 sound/pci/ac97/ac97_pcm.c rpcm->stream = pcm->stream; stream 484 sound/pci/ac97/ac97_pcm.c if (pcm->spdif && pcm->stream == 0) stream 487 sound/pci/ac97/ac97_pcm.c tmp = avail_slots[pcm->stream][j]; stream 492 sound/pci/ac97/ac97_pcm.c if (rpcm->stream == rpcms[k].stream) stream 502 sound/pci/ac97/ac97_pcm.c rpcm->r[0].rate_table[j] = rate_table[pcm->stream][j]; stream 508 sound/pci/ac97/ac97_pcm.c avail_slots[pcm->stream][j] &= ~tmp; stream 515 sound/pci/ac97/ac97_pcm.c if (pcm->stream == SNDRV_PCM_STREAM_PLAYBACK && stream 517 sound/pci/ac97/ac97_pcm.c rate_table[pcm->stream][0] == 0) { stream 526 sound/pci/ac97/ac97_pcm.c avail_slots[pcm->stream][0] &= ~tmp; stream 580 sound/pci/ac97/ac97_pcm.c if (bus->used_slots[pcm->stream][cidx] & (1 << i)) { stream 586 sound/pci/ac97/ac97_pcm.c bus->used_slots[pcm->stream][cidx] |= (1 << i); stream 673 sound/pci/ac97/ac97_pcm.c bus->used_slots[pcm->stream][cidx] &= ~(1 << i); stream 463 sound/pci/asihpi/asihpi.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 603 sound/pci/asihpi/asihpi.c if (substream->stream != s->stream) stream 607 sound/pci/asihpi/asihpi.c if (s->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 640 sound/pci/asihpi/asihpi.c if ((substream->stream == SNDRV_PCM_STREAM_CAPTURE) || stream 652 sound/pci/asihpi/asihpi.c if (substream->stream != s->stream) stream 668 sound/pci/asihpi/asihpi.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 767 sound/pci/asihpi/asihpi.c if (substream->stream != s->stream) stream 781 sound/pci/asihpi/asihpi.c if (s->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 855 sound/pci/asihpi/asihpi.c if (substream->stream != s->stream) stream 864 sound/pci/asihpi/asihpi.c (s->stream == SNDRV_PCM_STREAM_CAPTURE))) stream 880 sound/pci/asihpi/asihpi.c if (s->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 1746 sound/pci/asihpi/hpi6000.c hm.obj_index = phm->u.d.u.stream.stream_index; stream 1747 sound/pci/asihpi/hpi6000.c hm.object = phm->u.d.u.stream.object_type; stream 724 sound/pci/asihpi/hpi_internal.h struct hpi_streamid stream; stream 791 sound/pci/asihpi/hpifunc.c &hm.u.d.u.stream.stream_index)) stream 798 sound/pci/asihpi/hpifunc.c hm.u.d.u.stream.object_type = c_obj_type; stream 1147 sound/pci/asihpi/hpifunc.c &hm.u.d.u.stream.stream_index)) stream 1155 sound/pci/asihpi/hpifunc.c hm.u.d.u.stream.object_type = c_obj_type; stream 1195 sound/pci/atiixp.c .stream = 1, stream 2112 sound/pci/au88x0/au88x0_core.c stream_t *stream; stream 2129 sound/pci/au88x0/au88x0_core.c stream = &vortex->dma_adb[dma]; stream 2130 sound/pci/au88x0/au88x0_core.c stream->dma = dma; stream 2131 sound/pci/au88x0/au88x0_core.c stream->dir = dir; stream 2132 sound/pci/au88x0/au88x0_core.c stream->type = type; stream 2141 sound/pci/au88x0/au88x0_core.c if (stream->type != VORTEX_PCM_SPDIF) { stream 2144 sound/pci/au88x0/au88x0_core.c stream->resources, en, stream 2146 sound/pci/au88x0/au88x0_core.c memset(stream->resources, 0, stream 2147 sound/pci/au88x0/au88x0_core.c sizeof(stream->resources)); stream 2150 sound/pci/au88x0/au88x0_core.c if (stream->type != VORTEX_PCM_A3D) { stream 2152 sound/pci/au88x0/au88x0_core.c stream->resources, stream 2155 sound/pci/au88x0/au88x0_core.c memset(stream->resources, stream 2157 sound/pci/au88x0/au88x0_core.c sizeof(stream->resources)); stream 2164 sound/pci/au88x0/au88x0_core.c if (stream->type == VORTEX_PCM_A3D) { stream 2167 sound/pci/au88x0/au88x0_core.c stream->resources, en, stream 2169 sound/pci/au88x0/au88x0_core.c memset(stream->resources, 0, stream 2170 sound/pci/au88x0/au88x0_core.c sizeof(stream->resources)); stream 2180 sound/pci/au88x0/au88x0_core.c if ((stream->type == VORTEX_PCM_SPDIF) && (en)) { stream 2191 sound/pci/au88x0/au88x0_core.c if (stream->type == VORTEX_PCM_ADB) { stream 2213 sound/pci/au88x0/au88x0_core.c if (stream->type == VORTEX_PCM_A3D) { stream 2223 sound/pci/au88x0/au88x0_core.c if (stream->type == VORTEX_PCM_SPDIF) stream 2225 sound/pci/au88x0/au88x0_core.c ADB_DMA(stream->dma), stream 2229 sound/pci/au88x0/au88x0_core.c if (stream->type != VORTEX_PCM_SPDIF && stream->type != VORTEX_PCM_A3D) { stream 2246 sound/pci/au88x0/au88x0_core.c if (stream->type == VORTEX_PCM_ADB && en) { stream 2257 sound/pci/au88x0/au88x0_core.c if (nr_ch == 1 && stream->type == VORTEX_PCM_SPDIF) stream 2259 sound/pci/au88x0/au88x0_core.c ADB_DMA(stream->dma), stream 2263 sound/pci/au88x0/au88x0_core.c if ((stream->type == VORTEX_PCM_SPDIF) && (!en)) { stream 2283 sound/pci/au88x0/au88x0_core.c stream->resources, en, stream 2286 sound/pci/au88x0/au88x0_core.c memset(stream->resources, 0, stream 2287 sound/pci/au88x0/au88x0_core.c sizeof(stream->resources)); stream 2292 sound/pci/au88x0/au88x0_core.c stream->resources, en, stream 2294 sound/pci/au88x0/au88x0_core.c memset(stream->resources, 0, stream 2295 sound/pci/au88x0/au88x0_core.c sizeof(stream->resources)); stream 2349 sound/pci/au88x0/au88x0_core.c stream_t *stream = &(vortex->dma_adb[adbdma]); stream 2360 sound/pci/au88x0/au88x0_core.c if (stream->resources[VORTEX_RESOURCE_SRC] & (1 << i)) stream 170 sound/pci/au88x0/au88x0_pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && stream 194 sound/pci/au88x0/au88x0_pcm.c stream_t *stream = (stream_t *) substream->runtime->private_data; stream 197 sound/pci/au88x0/au88x0_pcm.c if (stream != NULL) { stream 198 sound/pci/au88x0/au88x0_pcm.c stream->substream = NULL; stream 199 sound/pci/au88x0/au88x0_pcm.c stream->nr_ch = 0; stream 211 sound/pci/au88x0/au88x0_pcm.c stream_t *stream = (stream_t *) (substream->runtime->private_data); stream 230 sound/pci/au88x0/au88x0_pcm.c if (stream != NULL) stream 231 sound/pci/au88x0/au88x0_pcm.c vortex_adb_allocroute(chip, stream->dma, stream 232 sound/pci/au88x0/au88x0_pcm.c stream->nr_ch, stream->dir, stream 233 sound/pci/au88x0/au88x0_pcm.c stream->type, stream 239 sound/pci/au88x0/au88x0_pcm.c substream->stream, type, stream 245 sound/pci/au88x0/au88x0_pcm.c stream = substream->runtime->private_data = &chip->dma_adb[dma]; stream 246 sound/pci/au88x0/au88x0_pcm.c stream->substream = substream; stream 263 sound/pci/au88x0/au88x0_pcm.c stream = substream->runtime->private_data = stream 265 sound/pci/au88x0/au88x0_pcm.c stream->dma = substream->number; stream 266 sound/pci/au88x0/au88x0_pcm.c stream->substream = substream; stream 280 sound/pci/au88x0/au88x0_pcm.c stream_t *stream = (stream_t *) (substream->runtime->private_data); stream 285 sound/pci/au88x0/au88x0_pcm.c if (stream != NULL) { stream 292 sound/pci/au88x0/au88x0_pcm.c vortex_adb_allocroute(chip, stream->dma, stream 293 sound/pci/au88x0/au88x0_pcm.c stream->nr_ch, stream->dir, stream 294 sound/pci/au88x0/au88x0_pcm.c stream->type, stream 300 sound/pci/au88x0/au88x0_pcm.c if (stream != NULL) stream 301 sound/pci/au88x0/au88x0_pcm.c vortex_wt_allocroute(chip, stream->dma, 0); stream 315 sound/pci/au88x0/au88x0_pcm.c stream_t *stream = (stream_t *) substream->runtime->private_data; stream 316 sound/pci/au88x0/au88x0_pcm.c int dma = stream->dma, fmt, dir; stream 319 sound/pci/au88x0/au88x0_pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 347 sound/pci/au88x0/au88x0_pcm.c stream_t *stream = (stream_t *) substream->runtime->private_data; stream 348 sound/pci/au88x0/au88x0_pcm.c int dma = stream->dma; stream 355 sound/pci/au88x0/au88x0_pcm.c stream->fifo_enabled = 1; stream 370 sound/pci/au88x0/au88x0_pcm.c stream->fifo_enabled = 0; stream 410 sound/pci/au88x0/au88x0_pcm.c stream_t *stream = (stream_t *) substream->runtime->private_data; stream 411 sound/pci/au88x0/au88x0_pcm.c int dma = stream->dma; stream 970 sound/pci/ca0106/ca0106_main.c s->stream != SNDRV_PCM_STREAM_PLAYBACK) stream 875 sound/pci/echoaudio/echoaudio.c int stream; stream 877 sound/pci/echoaudio/echoaudio.c for (stream = 0; stream < 2; stream++) stream 878 sound/pci/echoaudio/echoaudio.c for (ss = pcm->streams[stream].substream; ss; ss = ss->next) stream 467 sound/pci/emu10k1/p16v.c s->stream != SNDRV_PCM_STREAM_PLAYBACK) stream 3023 sound/pci/hda/hda_codec.c struct hda_pcm_stream *hinfo = &pcm->stream[str]; stream 3155 sound/pci/hda/hda_codec.c unsigned int stream, stream 3162 sound/pci/hda/hda_codec.c ret = hinfo->ops.prepare(hinfo, codec, stream, format, stream 3265 sound/pci/hda/hda_codec.c int stream; stream 3267 sound/pci/hda/hda_codec.c for (stream = 0; stream < 2; stream++) { stream 3268 sound/pci/hda/hda_codec.c struct hda_pcm_stream *info = &cpcm->stream[stream]; stream 3301 sound/pci/hda/hda_codec.c if (!cpcm->stream[0].substreams && !cpcm->stream[1].substreams) stream 59 sound/pci/hda/hda_controller.c return &apcm->info->stream[substream->stream]; stream 76 sound/pci/hda/hda_controller.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 298 sound/pci/hda/hda_controller.c int stream = substream->stream; stream 301 sound/pci/hda/hda_controller.c if (chip->get_position[stream]) stream 302 sound/pci/hda/hda_controller.c pos = chip->get_position[stream](chip, azx_dev); stream 313 sound/pci/hda/hda_controller.c if (chip->get_delay[stream]) stream 314 sound/pci/hda/hda_controller.c delay += chip->get_delay[stream](chip, azx_dev, pos); stream 385 sound/pci/hda/hda_controller.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 666 sound/pci/hda/hda_controller.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 739 sound/pci/hda/hda_controller.c cpcm->stream[SNDRV_PCM_STREAM_PLAYBACK].substreams, stream 740 sound/pci/hda/hda_controller.c cpcm->stream[SNDRV_PCM_STREAM_CAPTURE].substreams, stream 761 sound/pci/hda/hda_controller.c if (cpcm->stream[s].substreams) stream 5734 sound/pci/hda/hda_generic.c setup_pcm_stream(&info->stream[SNDRV_PCM_STREAM_PLAYBACK], stream 5738 sound/pci/hda/hda_generic.c info->stream[SNDRV_PCM_STREAM_PLAYBACK].channels_max = stream 5742 sound/pci/hda/hda_generic.c info->stream[SNDRV_PCM_STREAM_PLAYBACK].chmap = stream 5746 sound/pci/hda/hda_generic.c setup_pcm_stream(&info->stream[SNDRV_PCM_STREAM_CAPTURE], stream 5770 sound/pci/hda/hda_generic.c setup_pcm_stream(&info->stream[SNDRV_PCM_STREAM_PLAYBACK], stream 5775 sound/pci/hda/hda_generic.c setup_pcm_stream(&info->stream[SNDRV_PCM_STREAM_CAPTURE], stream 5800 sound/pci/hda/hda_generic.c setup_pcm_stream(&info->stream[SNDRV_PCM_STREAM_PLAYBACK], stream 5805 sound/pci/hda/hda_generic.c setup_pcm_stream(&info->stream[SNDRV_PCM_STREAM_PLAYBACK], stream 5808 sound/pci/hda/hda_generic.c setup_pcm_stream(&info->stream[SNDRV_PCM_STREAM_CAPTURE], stream 5812 sound/pci/hda/hda_generic.c info->stream[SNDRV_PCM_STREAM_CAPTURE].substreams = stream 5815 sound/pci/hda/hda_generic.c setup_pcm_stream(&info->stream[SNDRV_PCM_STREAM_CAPTURE], stream 616 sound/pci/hda/hda_intel.c int stream = substream->stream; stream 620 sound/pci/hda/hda_intel.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 637 sound/pci/hda/hda_intel.c chip->get_delay[stream] = NULL; stream 678 sound/pci/hda/hda_intel.c int stream = substream->stream; stream 686 sound/pci/hda/hda_intel.c if (chip->get_position[stream]) stream 687 sound/pci/hda/hda_intel.c pos = chip->get_position[stream](chip, azx_dev); stream 693 sound/pci/hda/hda_intel.c chip->get_position[stream] = azx_get_pos_lpib; stream 698 sound/pci/hda/hda_intel.c chip->get_delay[stream] = NULL; stream 700 sound/pci/hda/hda_intel.c chip->get_position[stream] = azx_get_pos_posbuf; stream 702 sound/pci/hda/hda_intel.c chip->get_delay[stream] = azx_get_delay_from_lpib; stream 807 sound/pci/hda/hda_intel.c if (azx_dev->core.substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 876 sound/pci/hda/hda_intel.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 907 sound/pci/hda/hda_intel.c if (azx_dev->core.substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 82 sound/pci/hda/hda_proc.c if (cpcm->stream[type].nid != nid || cpcm->pcm == NULL) stream 203 sound/pci/hda/hda_proc.c unsigned int stream = param_read(codec, nid, AC_PAR_STREAM); stream 204 sound/pci/hda/hda_proc.c if (pcm == -1 || stream == -1) { stream 210 sound/pci/hda/hda_proc.c print_pcm_formats(buffer, stream); stream 1210 sound/pci/hda/patch_ca0132.c hda_nid_t nid, unsigned char stream, stream 1215 sound/pci/hda/patch_ca0132.c converter_stream_channel = (stream << 4) | (channel & 0x0f); stream 6280 sound/pci/hda/patch_ca0132.c &pcm->stream[SNDRV_PCM_STREAM_PLAYBACK]; stream 6607 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_PLAYBACK].chmap stream 6610 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_PLAYBACK] = ca0132_pcm_analog_playback; stream 6611 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = spec->dacs[0]; stream 6612 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_PLAYBACK].channels_max = stream 6614 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE] = ca0132_pcm_analog_capture; stream 6615 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE].substreams = 1; stream 6616 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adcs[0]; stream 6623 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE] = stream 6625 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE].substreams = 1; stream 6626 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adcs[1]; stream 6632 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE] = ca0132_pcm_analog_capture; stream 6633 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE].substreams = 1; stream 6634 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adcs[2]; stream 6644 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_PLAYBACK] = stream 6646 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = spec->dig_out; stream 6649 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE] = stream 6651 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->dig_in; stream 6665 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE] = ca0132_pcm_analog_capture; stream 6666 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE].substreams = 1; stream 6667 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adcs[0]; stream 6678 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_PLAYBACK] = stream 6680 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = spec->dig_out; stream 6683 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE] = stream 6685 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->dig_in; stream 275 sound/pci/hda/patch_hdmi.c if (get_pcm_rec(spec, pcm_idx)->stream == hinfo) stream 292 sound/pci/hda/patch_hdmi.c per_pin->pcm->pcm->stream == hinfo) stream 1407 sound/pci/hda/patch_hdmi.c hinfo = pcm->stream; stream 2112 sound/pci/hda/patch_hdmi.c pstr = &info->stream[SNDRV_PCM_STREAM_PLAYBACK]; stream 2947 sound/pci/hda/patch_hdmi.c pstr = &info->stream[SNDRV_PCM_STREAM_PLAYBACK]; stream 3630 sound/pci/hda/patch_hdmi.c struct hda_pcm_stream *stream; stream 3646 sound/pci/hda/patch_hdmi.c stream = &pcm->stream[SNDRV_PCM_STREAM_PLAYBACK]; stream 3647 sound/pci/hda/patch_hdmi.c stream->ops.prepare = tegra_hdmi_pcm_prepare; stream 3648 sound/pci/hda/patch_hdmi.c stream->ops.cleanup = tegra_hdmi_pcm_cleanup; stream 8709 sound/pci/hda/patch_realtek.c spec->gen.pcm_rec[0]->stream[0].chmap = asus_pcm_2_1_chmaps; stream 145 sound/pci/hda/patch_si3054.c val &= 0xff << (8 * (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)); stream 146 sound/pci/hda/patch_si3054.c val |= ((stream_tag & 0xf) << 4) << (8 * (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)); stream 192 sound/pci/hda/patch_si3054.c info->stream[SNDRV_PCM_STREAM_PLAYBACK] = si3054_pcm; stream 193 sound/pci/hda/patch_si3054.c info->stream[SNDRV_PCM_STREAM_CAPTURE] = si3054_pcm; stream 194 sound/pci/hda/patch_si3054.c info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = codec->core.mfg; stream 195 sound/pci/hda/patch_si3054.c info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = codec->core.mfg; stream 580 sound/pci/hda/patch_via.c if (!info->stream[SNDRV_PCM_STREAM_PLAYBACK].substreams || stream 583 sound/pci/hda/patch_via.c info->stream[SNDRV_PCM_STREAM_PLAYBACK].formats = stream 940 sound/pci/ice1712/ice1712.c if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK) stream 250 sound/pci/ice1712/ice1724.c get_rawmidi_substream(struct snd_ice1712 *ice, unsigned int stream) stream 252 sound/pci/ice1712/ice1724.c return list_first_entry(&ice->rmidi[0]->streams[stream].substreams, stream 173 sound/pci/ice1712/juli.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK || stream 858 sound/pci/intel8x0.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 1693 sound/pci/intel8x0.c .stream = 1, stream 1703 sound/pci/intel8x0.c .stream = 1, stream 1722 sound/pci/intel8x0.c .stream = 1, stream 1732 sound/pci/intel8x0.c .stream = 1, stream 1506 sound/pci/korg1212/korg1212.c if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 24 sound/pci/lola/lola_pcm.c return &chip->pcm[substream->stream]; stream 103 sound/pci/lx6464es/lx6464es.c int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); stream 129 sound/pci/lx6464es/lx6464es.c int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); stream 160 sound/pci/lx6464es/lx6464es.c int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); stream 191 sound/pci/lx6464es/lx6464es.c int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); stream 273 sound/pci/lx6464es/lx6464es.c int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); stream 292 sound/pci/lx6464es/lx6464es.c const int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); stream 356 sound/pci/lx6464es/lx6464es.c chip->capture_stream.stream = substream; stream 358 sound/pci/lx6464es/lx6464es.c chip->playback_stream.stream = substream; stream 380 sound/pci/lx6464es/lx6464es.c int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); stream 406 sound/pci/lx6464es/lx6464es.c chip->capture_stream.stream = NULL; stream 408 sound/pci/lx6464es/lx6464es.c chip->playback_stream.stream = NULL; stream 417 sound/pci/lx6464es/lx6464es.c struct snd_pcm_substream *substream = lx_stream->stream; stream 527 sound/pci/lx6464es/lx6464es.c const int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); stream 528 sound/pci/lx6464es/lx6464es.c struct lx_stream *stream = is_capture ? &chip->capture_stream : stream 533 sound/pci/lx6464es/lx6464es.c return lx_pcm_trigger_dispatch(chip, stream, cmd); stream 43 sound/pci/lx6464es/lx6464es.h struct snd_pcm_substream *stream; stream 1019 sound/pci/lx6464es/lx_core.c struct snd_pcm_substream *substream = lx_stream->stream; stream 1133 sound/pci/lx6464es/lx_core.c snd_pcm_period_elapsed(lx_stream->stream); stream 1145 sound/pci/lx6464es/lx_core.c snd_pcm_period_elapsed(lx_stream->stream); stream 1052 sound/pci/maestro3.c switch (subs->stream) { stream 1081 sound/pci/maestro3.c switch (subs->stream) { stream 1140 sound/pci/maestro3.c if (subs->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 1430 sound/pci/maestro3.c if (subs->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1738 sound/pci/maestro3.c if (subs->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 381 sound/pci/mixart/mixart.c static int mixart_set_stream_state(struct mixart_stream *stream, int start) stream 387 sound/pci/mixart/mixart.c if(!stream->substream) stream 392 sound/pci/mixart/mixart.c stream_state_req.stream_info.stream_desc.uid_pipe = stream->pipe->group_uid; stream 393 sound/pci/mixart/mixart.c stream_state_req.stream_info.stream_desc.stream_idx = stream->substream->number; stream 395 sound/pci/mixart/mixart.c if (stream->substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 404 sound/pci/mixart/mixart.c stream->abs_period_elapsed = 0; /* reset stream pos */ stream 405 sound/pci/mixart/mixart.c stream->buf_periods = 0; stream 406 sound/pci/mixart/mixart.c stream->buf_period_frag = 0; stream 408 sound/pci/mixart/mixart.c chip = snd_pcm_substream_chip(stream->substream); stream 419 sound/pci/mixart/mixart.c struct mixart_stream *stream = subs->runtime->private_data; stream 427 sound/pci/mixart/mixart.c if( mixart_set_stream_state(stream, 1) ) stream 430 sound/pci/mixart/mixart.c stream->status = MIXART_STREAM_STATUS_RUNNING; stream 436 sound/pci/mixart/mixart.c if( mixart_set_stream_state(stream, 0) ) stream 439 sound/pci/mixart/mixart.c stream->status = MIXART_STREAM_STATUS_OPEN; stream 447 sound/pci/mixart/mixart.c stream->status = MIXART_STREAM_STATUS_PAUSE; stream 452 sound/pci/mixart/mixart.c stream->status = MIXART_STREAM_STATUS_RUNNING; stream 481 sound/pci/mixart/mixart.c struct mixart_stream *stream = subs->runtime->private_data; stream 495 sound/pci/mixart/mixart.c if(stream->pipe->references == 1) { stream 496 sound/pci/mixart/mixart.c if( mixart_set_clock(chip->mgr, stream->pipe, subs->runtime->rate) ) stream 504 sound/pci/mixart/mixart.c static int mixart_set_format(struct mixart_stream *stream, snd_pcm_format_t format) stream 512 sound/pci/mixart/mixart.c chip = snd_pcm_substream_chip(stream->substream); stream 517 sound/pci/mixart/mixart.c stream_param.number_of_channel = stream->channels; stream 560 sound/pci/mixart/mixart.c stream_param.sample_type, stream_param.sample_size, stream_param.sampling_freq, stream->channels); stream 569 sound/pci/mixart/mixart.c stream_param.stream_desc[0].uid_pipe = stream->pipe->group_uid; stream 570 sound/pci/mixart/mixart.c stream_param.stream_desc[0].stream_idx = stream->substream->number; stream 596 sound/pci/mixart/mixart.c struct mixart_stream *stream = subs->runtime->private_data; stream 610 sound/pci/mixart/mixart.c if( stream->pcm_number <= MIXART_PCM_DIGITAL ) { stream 611 sound/pci/mixart/mixart.c int is_aes = stream->pcm_number > MIXART_PCM_ANALOG; stream 612 sound/pci/mixart/mixart.c if( subs->stream == SNDRV_PCM_STREAM_PLAYBACK ) stream 618 sound/pci/mixart/mixart.c stream->channels = channels; stream 621 sound/pci/mixart/mixart.c err = mixart_set_format(stream, format); stream 632 sound/pci/mixart/mixart.c int i = (chip->chip_idx * MIXART_MAX_STREAM_PER_CARD) + (stream->pcm_number * (MIXART_PLAYBACK_STREAMS+MIXART_CAPTURE_STREAMS)) + subs->number; stream 633 sound/pci/mixart/mixart.c if( subs->stream == SNDRV_PCM_STREAM_CAPTURE ) { stream 715 sound/pci/mixart/mixart.c struct mixart_stream *stream; stream 735 sound/pci/mixart/mixart.c stream = &(chip->playback_stream[pcm_number][subs->number]); stream 737 sound/pci/mixart/mixart.c if (stream->status != MIXART_STREAM_STATUS_FREE){ stream 763 sound/pci/mixart/mixart.c stream->pipe = pipe; stream 764 sound/pci/mixart/mixart.c stream->pcm_number = pcm_number; stream 765 sound/pci/mixart/mixart.c stream->status = MIXART_STREAM_STATUS_OPEN; stream 766 sound/pci/mixart/mixart.c stream->substream = subs; stream 767 sound/pci/mixart/mixart.c stream->channels = 0; /* not configured yet */ stream 769 sound/pci/mixart/mixart.c runtime->private_data = stream; stream 794 sound/pci/mixart/mixart.c struct mixart_stream *stream; stream 816 sound/pci/mixart/mixart.c stream = &(chip->capture_stream[pcm_number]); stream 818 sound/pci/mixart/mixart.c if (stream->status != MIXART_STREAM_STATUS_FREE){ stream 844 sound/pci/mixart/mixart.c stream->pipe = pipe; stream 845 sound/pci/mixart/mixart.c stream->pcm_number = pcm_number; stream 846 sound/pci/mixart/mixart.c stream->status = MIXART_STREAM_STATUS_OPEN; stream 847 sound/pci/mixart/mixart.c stream->substream = subs; stream 848 sound/pci/mixart/mixart.c stream->channels = 0; /* not configured yet */ stream 850 sound/pci/mixart/mixart.c runtime->private_data = stream; stream 874 sound/pci/mixart/mixart.c struct mixart_stream *stream = subs->runtime->private_data; stream 879 sound/pci/mixart/mixart.c chip->chip_idx, stream->pcm_number, subs->number); stream 887 sound/pci/mixart/mixart.c if (snd_mixart_kill_ref_pipe(mgr, stream->pipe, 0 ) < 0) { stream 891 sound/pci/mixart/mixart.c chip->chip_idx, stream->pcm_number); stream 894 sound/pci/mixart/mixart.c stream->pipe = NULL; stream 895 sound/pci/mixart/mixart.c stream->status = MIXART_STREAM_STATUS_FREE; stream 896 sound/pci/mixart/mixart.c stream->substream = NULL; stream 906 sound/pci/mixart/mixart.c struct mixart_stream *stream = runtime->private_data; stream 908 sound/pci/mixart/mixart.c return (snd_pcm_uframes_t)((stream->buf_periods * runtime->period_size) + stream->buf_period_frag); stream 939 sound/pci/mixart/mixart.c int stream; stream 941 sound/pci/mixart/mixart.c for (stream = 0; stream < 2; stream++) { stream 943 sound/pci/mixart/mixart.c for (subs = pcm->streams[stream].substream; subs; subs = subs->next, idx++) stream 946 sound/pci/mixart/mixart.c subs->stream << 8 | (subs->number + 1) | stream 457 sound/pci/mixart/mixart_core.c struct mixart_stream *stream; stream 467 sound/pci/mixart/mixart_core.c stream = &chip->capture_stream[pcm_number]; stream 469 sound/pci/mixart/mixart_core.c stream = &chip->playback_stream[pcm_number][sub_number]; stream 471 sound/pci/mixart/mixart_core.c if (stream->substream && (stream->status == MIXART_STREAM_STATUS_RUNNING)) { stream 472 sound/pci/mixart/mixart_core.c struct snd_pcm_runtime *runtime = stream->substream->runtime; stream 478 sound/pci/mixart/mixart_core.c u64 new_elapse_pos = stream->abs_period_elapsed + runtime->period_size; stream 485 sound/pci/mixart/mixart_core.c stream->buf_periods++; stream 486 sound/pci/mixart/mixart_core.c if (stream->buf_periods >= runtime->periods) stream 487 sound/pci/mixart/mixart_core.c stream->buf_periods = 0; stream 489 sound/pci/mixart/mixart_core.c stream->abs_period_elapsed = new_elapse_pos; stream 492 sound/pci/mixart/mixart_core.c stream->buf_period_frag = (u32)( sample_count - stream->abs_period_elapsed ); stream 496 sound/pci/mixart/mixart_core.c snd_pcm_period_elapsed(stream->substream); stream 173 sound/pci/mixart/mixart_core.h struct mixart_stream_desc stream[32]; stream 330 sound/pci/nm256/nm256.c snd_nm256_load_one_coefficient(struct nm256 *chip, int stream, u32 port, int which) stream 332 sound/pci/nm256/nm256.c u32 coeff_buf = chip->coeff_buf[stream]; stream 339 sound/pci/nm256/nm256.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 345 sound/pci/nm256/nm256.c snd_nm256_load_coefficient(struct nm256 *chip, int stream, int number) stream 348 sound/pci/nm256/nm256.c u32 poffset = (stream == SNDRV_PCM_STREAM_CAPTURE ? stream 352 sound/pci/nm256/nm256.c addr += (stream == SNDRV_PCM_STREAM_CAPTURE ? stream 363 sound/pci/nm256/nm256.c if (stream == SNDRV_PCM_STREAM_CAPTURE) stream 367 sound/pci/nm256/nm256.c snd_nm256_load_one_coefficient(chip, stream, addr, number); stream 379 sound/pci/nm256/nm256.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 434 sound/pci/nm256/nm256.c switch (substream->stream) { stream 492 sound/pci/pcxhr/pcxhr.c struct pcxhr_stream *stream) stream 498 sound/pci/pcxhr/pcxhr.c if (stream->status == PCXHR_STREAM_STATUS_SCHEDULE_RUN) stream 501 sound/pci/pcxhr/pcxhr.c if (stream->status != PCXHR_STREAM_STATUS_SCHEDULE_STOP) { stream 508 sound/pci/pcxhr/pcxhr.c if (!stream->substream) stream 511 sound/pci/pcxhr/pcxhr.c stream->timer_abs_periods = 0; stream 512 sound/pci/pcxhr/pcxhr.c stream->timer_period_frag = 0; /* reset theoretical stream pos */ stream 513 sound/pci/pcxhr/pcxhr.c stream->timer_buf_periods = 0; stream 514 sound/pci/pcxhr/pcxhr.c stream->timer_is_synced = 0; stream 517 sound/pci/pcxhr/pcxhr.c stream->pipe->is_capture ? 1 : 1<<stream->substream->number; stream 520 sound/pci/pcxhr/pcxhr.c pcxhr_set_pipe_cmd_params(&rmh, stream->pipe->is_capture, stream 521 sound/pci/pcxhr/pcxhr.c stream->pipe->first_audio, 0, stream_mask); stream 523 sound/pci/pcxhr/pcxhr.c chip = snd_pcm_substream_chip(stream->substream); stream 529 sound/pci/pcxhr/pcxhr.c stream->status = stream 543 sound/pci/pcxhr/pcxhr.c static int pcxhr_set_format(struct pcxhr_stream *stream) stream 550 sound/pci/pcxhr/pcxhr.c chip = snd_pcm_substream_chip(stream->substream); stream 551 sound/pci/pcxhr/pcxhr.c switch (stream->format) { stream 585 sound/pci/pcxhr/pcxhr.c if (stream->channels == 1) stream 588 sound/pci/pcxhr/pcxhr.c is_capture = stream->pipe->is_capture; stream 589 sound/pci/pcxhr/pcxhr.c stream_num = is_capture ? 0 : stream->substream->number; stream 593 sound/pci/pcxhr/pcxhr.c pcxhr_set_pipe_cmd_params(&rmh, is_capture, stream->pipe->first_audio, stream 607 sound/pci/pcxhr/pcxhr.c rmh.cmd[1] = stream->channels; stream 610 sound/pci/pcxhr/pcxhr.c rmh.cmd[2] = (stream->channels == 1) ? 0x01 : 0x03; stream 623 sound/pci/pcxhr/pcxhr.c static int pcxhr_update_r_buffer(struct pcxhr_stream *stream) stream 627 sound/pci/pcxhr/pcxhr.c struct snd_pcm_substream *subs = stream->substream; stream 630 sound/pci/pcxhr/pcxhr.c is_capture = (subs->stream == SNDRV_PCM_STREAM_CAPTURE); stream 640 sound/pci/pcxhr/pcxhr.c pcxhr_set_pipe_cmd_params(&rmh, is_capture, stream->pipe->first_audio, stream 663 sound/pci/pcxhr/pcxhr.c static int pcxhr_pipe_sample_count(struct pcxhr_stream *stream, stream 668 sound/pci/pcxhr/pcxhr.c pcxhr_t *chip = snd_pcm_substream_chip(stream->substream); stream 670 sound/pci/pcxhr/pcxhr.c pcxhr_set_pipe_cmd_params(&rmh, stream->pipe->is_capture, 0, 0, stream 671 sound/pci/pcxhr/pcxhr.c 1<<stream->pipe->first_audio); stream 682 sound/pci/pcxhr/pcxhr.c static inline int pcxhr_stream_scheduled_get_pipe(struct pcxhr_stream *stream, stream 685 sound/pci/pcxhr/pcxhr.c if (stream->status == PCXHR_STREAM_STATUS_SCHEDULE_RUN) { stream 686 sound/pci/pcxhr/pcxhr.c *pipe = stream->pipe; stream 745 sound/pci/pcxhr/pcxhr.c struct pcxhr_stream *stream; stream 748 sound/pci/pcxhr/pcxhr.c stream = &chip->capture_stream[j]; stream 749 sound/pci/pcxhr/pcxhr.c if (pcxhr_stream_scheduled_get_pipe(stream, &pipe)) { stream 750 sound/pci/pcxhr/pcxhr.c err = pcxhr_set_format(stream); stream 751 sound/pci/pcxhr/pcxhr.c err = pcxhr_update_r_buffer(stream); stream 755 sound/pci/pcxhr/pcxhr.c stream = &chip->playback_stream[j]; stream 756 sound/pci/pcxhr/pcxhr.c if (pcxhr_stream_scheduled_get_pipe(stream, &pipe)) { stream 757 sound/pci/pcxhr/pcxhr.c err = pcxhr_set_format(stream); stream 758 sound/pci/pcxhr/pcxhr.c err = pcxhr_update_r_buffer(stream); stream 764 sound/pci/pcxhr/pcxhr.c struct pcxhr_stream *stream; stream 767 sound/pci/pcxhr/pcxhr.c stream = &chip->capture_stream[j]; stream 768 sound/pci/pcxhr/pcxhr.c if (pcxhr_stream_scheduled_get_pipe(stream, &pipe)) stream 769 sound/pci/pcxhr/pcxhr.c err = pcxhr_set_stream_state(chip, stream); stream 772 sound/pci/pcxhr/pcxhr.c stream = &chip->playback_stream[j]; stream 773 sound/pci/pcxhr/pcxhr.c if (pcxhr_stream_scheduled_get_pipe(stream, &pipe)) stream 774 sound/pci/pcxhr/pcxhr.c err = pcxhr_set_stream_state(chip, stream); stream 793 sound/pci/pcxhr/pcxhr.c struct pcxhr_stream *stream; stream 796 sound/pci/pcxhr/pcxhr.c stream = &chip->capture_stream[j]; stream 797 sound/pci/pcxhr/pcxhr.c if(stream->status == PCXHR_STREAM_STATUS_STARTED) stream 798 sound/pci/pcxhr/pcxhr.c stream->status = PCXHR_STREAM_STATUS_RUNNING; stream 801 sound/pci/pcxhr/pcxhr.c stream = &chip->playback_stream[j]; stream 802 sound/pci/pcxhr/pcxhr.c if (stream->status == PCXHR_STREAM_STATUS_STARTED) { stream 804 sound/pci/pcxhr/pcxhr.c stream->timer_period_frag += mgr->granularity; stream 805 sound/pci/pcxhr/pcxhr.c stream->status = PCXHR_STREAM_STATUS_RUNNING; stream 827 sound/pci/pcxhr/pcxhr.c struct pcxhr_stream *stream; stream 838 sound/pci/pcxhr/pcxhr.c stream = s->runtime->private_data; stream 839 sound/pci/pcxhr/pcxhr.c stream->status = stream 845 sound/pci/pcxhr/pcxhr.c stream = subs->runtime->private_data; stream 847 sound/pci/pcxhr/pcxhr.c stream->pipe->is_capture ? 'C' : 'P', stream 848 sound/pci/pcxhr/pcxhr.c stream->pipe->first_audio); stream 849 sound/pci/pcxhr/pcxhr.c if (pcxhr_set_format(stream)) stream 851 sound/pci/pcxhr/pcxhr.c if (pcxhr_update_r_buffer(stream)) stream 854 sound/pci/pcxhr/pcxhr.c stream->status = PCXHR_STREAM_STATUS_SCHEDULE_RUN; stream 855 sound/pci/pcxhr/pcxhr.c if (pcxhr_set_stream_state(chip, stream)) stream 857 sound/pci/pcxhr/pcxhr.c stream->status = PCXHR_STREAM_STATUS_RUNNING; stream 863 sound/pci/pcxhr/pcxhr.c stream = s->runtime->private_data; stream 864 sound/pci/pcxhr/pcxhr.c stream->status = PCXHR_STREAM_STATUS_SCHEDULE_STOP; stream 865 sound/pci/pcxhr/pcxhr.c if (pcxhr_set_stream_state(chip, stream)) stream 942 sound/pci/pcxhr/pcxhr.c struct pcxhr_stream *stream = subs->runtime->private_data; stream 955 sound/pci/pcxhr/pcxhr.c stream->channels = channels; stream 956 sound/pci/pcxhr/pcxhr.c stream->format = format; stream 1008 sound/pci/pcxhr/pcxhr.c struct pcxhr_stream *stream; stream 1016 sound/pci/pcxhr/pcxhr.c if( subs->stream == SNDRV_PCM_STREAM_PLAYBACK ) { stream 1019 sound/pci/pcxhr/pcxhr.c stream = &chip->playback_stream[subs->number]; stream 1027 sound/pci/pcxhr/pcxhr.c stream = &chip->capture_stream[subs->number]; stream 1029 sound/pci/pcxhr/pcxhr.c if (stream->status != PCXHR_STREAM_STATUS_FREE){ stream 1069 sound/pci/pcxhr/pcxhr.c stream->status = PCXHR_STREAM_STATUS_OPEN; stream 1070 sound/pci/pcxhr/pcxhr.c stream->substream = subs; stream 1071 sound/pci/pcxhr/pcxhr.c stream->channels = 0; /* not configured yet */ stream 1073 sound/pci/pcxhr/pcxhr.c runtime->private_data = stream; stream 1093 sound/pci/pcxhr/pcxhr.c struct pcxhr_stream *stream = subs->runtime->private_data; stream 1106 sound/pci/pcxhr/pcxhr.c stream->status = PCXHR_STREAM_STATUS_FREE; stream 1107 sound/pci/pcxhr/pcxhr.c stream->substream = NULL; stream 1121 sound/pci/pcxhr/pcxhr.c struct pcxhr_stream *stream = runtime->private_data; stream 1126 sound/pci/pcxhr/pcxhr.c timer_period_frag = stream->timer_period_frag; stream 1127 sound/pci/pcxhr/pcxhr.c timer_buf_periods = stream->timer_buf_periods; stream 1116 sound/pci/pcxhr/pcxhr_core.c struct pcxhr_stream *stream) stream 1122 sound/pci/pcxhr/pcxhr_core.c stream_mask = stream->pipe->is_capture ? 1 : 1<<stream->substream->number; stream 1126 sound/pci/pcxhr/pcxhr_core.c pcxhr_set_pipe_cmd_params(&rmh, stream->pipe->is_capture, stream 1127 sound/pci/pcxhr/pcxhr_core.c stream->pipe->first_audio, 0, stream_mask); stream 1139 sound/pci/pcxhr/pcxhr_core.c stream->pipe->is_capture ? 'C' : 'P', stream 1140 sound/pci/pcxhr/pcxhr_core.c stream->substream->number, stream 1142 sound/pci/pcxhr/pcxhr_core.c stream->timer_abs_periods + stream->timer_period_frag + stream 1148 sound/pci/pcxhr/pcxhr_core.c struct pcxhr_stream *stream, stream 1151 sound/pci/pcxhr/pcxhr_core.c if (stream->substream && stream 1152 sound/pci/pcxhr/pcxhr_core.c (stream->status == PCXHR_STREAM_STATUS_RUNNING)) { stream 1156 sound/pci/pcxhr/pcxhr_core.c struct snd_pcm_runtime *runtime = stream->substream->runtime; stream 1159 sound/pci/pcxhr/pcxhr_core.c stream->timer_is_synced = 0; stream 1164 sound/pci/pcxhr/pcxhr_core.c if (!stream->timer_is_synced) { stream 1165 sound/pci/pcxhr/pcxhr_core.c if ((stream->timer_abs_periods != 0) || stream 1166 sound/pci/pcxhr/pcxhr_core.c ((stream->timer_period_frag + samples_to_add) >= stream 1169 sound/pci/pcxhr/pcxhr_core.c pcxhr_stream_read_position(mgr, stream); stream 1177 sound/pci/pcxhr/pcxhr_core.c stream->timer_is_synced = 1; stream 1185 sound/pci/pcxhr/pcxhr_core.c new_sample_count = stream->timer_abs_periods + stream 1186 sound/pci/pcxhr/pcxhr_core.c stream->timer_period_frag + samples_to_add; stream 1189 sound/pci/pcxhr/pcxhr_core.c u_int64_t new_elapse_pos = stream->timer_abs_periods + stream 1194 sound/pci/pcxhr/pcxhr_core.c stream->timer_buf_periods++; stream 1195 sound/pci/pcxhr/pcxhr_core.c if (stream->timer_buf_periods >= runtime->periods) stream 1196 sound/pci/pcxhr/pcxhr_core.c stream->timer_buf_periods = 0; stream 1197 sound/pci/pcxhr/pcxhr_core.c stream->timer_abs_periods = new_elapse_pos; stream 1199 sound/pci/pcxhr/pcxhr_core.c if (new_sample_count >= stream->timer_abs_periods) { stream 1200 sound/pci/pcxhr/pcxhr_core.c stream->timer_period_frag = stream 1202 sound/pci/pcxhr/pcxhr_core.c stream->timer_abs_periods); stream 1211 sound/pci/pcxhr/pcxhr_core.c snd_pcm_period_elapsed(stream->substream); stream 1078 sound/pci/rme32.c rme32->running |= (1 << s->stream); stream 1091 sound/pci/rme32.c rme32->running &= ~(1 << s->stream); stream 3878 sound/pci/rme9652/hdsp.c int stream, stream 3890 sound/pci/rme9652/hdsp.c if (stream == SNDRV_PCM_STREAM_CAPTURE) stream 3906 sound/pci/rme9652/hdsp.c channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); stream 3921 sound/pci/rme9652/hdsp.c channel_buf = hdsp_channel_buffer_location(hdsp, substream->pstr->stream, channel); stream 3938 sound/pci/rme9652/hdsp.c channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); stream 3953 sound/pci/rme9652/hdsp.c channel_buf = hdsp_channel_buffer_location(hdsp, substream->pstr->stream, channel); stream 3967 sound/pci/rme9652/hdsp.c channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); stream 3979 sound/pci/rme9652/hdsp.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 4016 sound/pci/rme9652/hdsp.c if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 4125 sound/pci/rme9652/hdsp.c running |= 1 << substream->stream; stream 4128 sound/pci/rme9652/hdsp.c running &= ~(1 << substream->stream); stream 4135 sound/pci/rme9652/hdsp.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 4146 sound/pci/rme9652/hdsp.c running |= 1 << s->stream; stream 4148 sound/pci/rme9652/hdsp.c running &= ~(1 << s->stream); stream 4154 sound/pci/rme9652/hdsp.c substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 4158 sound/pci/rme9652/hdsp.c substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 4162 sound/pci/rme9652/hdsp.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 5473 sound/pci/rme9652/hdspm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 5507 sound/pci/rme9652/hdspm.c if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 5578 sound/pci/rme9652/hdspm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 5666 sound/pci/rme9652/hdspm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 5692 sound/pci/rme9652/hdspm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 5765 sound/pci/rme9652/hdspm.c running |= 1 << substream->stream; stream 5768 sound/pci/rme9652/hdspm.c running &= ~(1 << substream->stream); stream 5775 sound/pci/rme9652/hdspm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 5786 sound/pci/rme9652/hdspm.c running |= 1 << s->stream; stream 5788 sound/pci/rme9652/hdspm.c running &= ~(1 << s->stream); stream 5794 sound/pci/rme9652/hdspm.c && substream->stream == stream 5799 sound/pci/rme9652/hdspm.c substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 5803 sound/pci/rme9652/hdspm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 6056 sound/pci/rme9652/hdspm.c bool playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 6131 sound/pci/rme9652/hdspm.c bool playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 1849 sound/pci/rme9652/rme9652.c int stream, stream 1862 sound/pci/rme9652/rme9652.c if (stream == SNDRV_PCM_STREAM_CAPTURE) { stream 1882 sound/pci/rme9652/rme9652.c substream->pstr->stream, stream 1899 sound/pci/rme9652/rme9652.c substream->pstr->stream, stream 1918 sound/pci/rme9652/rme9652.c substream->pstr->stream, stream 1935 sound/pci/rme9652/rme9652.c substream->pstr->stream, stream 1951 sound/pci/rme9652/rme9652.c substream->pstr->stream, stream 1964 sound/pci/rme9652/rme9652.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1995 sound/pci/rme9652/rme9652.c if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 2105 sound/pci/rme9652/rme9652.c running |= 1 << substream->stream; stream 2108 sound/pci/rme9652/rme9652.c running &= ~(1 << substream->stream); stream 2115 sound/pci/rme9652/rme9652.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 2126 sound/pci/rme9652/rme9652.c running |= 1 << s->stream; stream 2128 sound/pci/rme9652/rme9652.c running &= ~(1 << s->stream); stream 2134 sound/pci/rme9652/rme9652.c substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 2138 sound/pci/rme9652/rme9652.c substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 2142 sound/pci/rme9652/rme9652.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 1245 sound/pci/via82xx.c unsigned int stream; stream 1251 sound/pci/via82xx.c stream = viadev->reg_offset / 0x10; stream 1252 sound/pci/via82xx.c if (chip->dxs_controls[stream]) { stream 1253 sound/pci/via82xx.c chip->playback_volume[stream][0] = stream 1255 sound/pci/via82xx.c chip->playback_volume[stream][1] = stream 1257 sound/pci/via82xx.c chip->dxs_controls[stream]->vd[0].access &= stream 1261 sound/pci/via82xx.c &chip->dxs_controls[stream]->id); stream 1343 sound/pci/via82xx.c unsigned int stream; stream 1345 sound/pci/via82xx.c stream = viadev->reg_offset / 0x10; stream 1346 sound/pci/via82xx.c if (chip->dxs_controls[stream]) { stream 1347 sound/pci/via82xx.c chip->dxs_controls[stream]->vd[0].access |= stream 1350 sound/pci/via82xx.c &chip->dxs_controls[stream]->id); stream 104 sound/ppc/pmac.c static inline int another_stream(int stream) stream 106 sound/ppc/pmac.c return (stream == SNDRV_PCM_STREAM_PLAYBACK) ? stream 131 sound/ppc/pmac.c static struct pmac_stream *snd_pmac_get_stream(struct snd_pmac *chip, int stream) stream 133 sound/ppc/pmac.c switch (stream) { stream 213 sound/ppc/pmac.c astr = snd_pmac_get_stream(chip, another_stream(rec->stream)); stream 272 sound/ppc/pmac.c command = (subs->stream == SNDRV_PCM_STREAM_PLAYBACK ? stream 608 sound/ppc/pmac.c snd_pmac_hw_rule_rate, chip, rec->stream, -1); stream 610 sound/ppc/pmac.c snd_pmac_hw_rule_format, chip, rec->stream, -1); stream 627 sound/ppc/pmac.c astr = snd_pmac_get_stream(chip, another_stream(rec->stream)); stream 1184 sound/ppc/pmac.c chip->playback.stream = SNDRV_PCM_STREAM_PLAYBACK; stream 1185 sound/ppc/pmac.c chip->capture.stream = SNDRV_PCM_STREAM_CAPTURE; stream 53 sound/ppc/pmac.h int stream; /* PLAYBACK/CAPTURE */ stream 63 sound/soc/adi/axi-i2s.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 113 sound/soc/adi/axi-i2s.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 776 sound/soc/amd/acp-pcm-dma.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 815 sound/soc/amd/acp-pcm-dma.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 859 sound/soc/amd/acp-pcm-dma.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 869 sound/soc/amd/acp-pcm-dma.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 892 sound/soc/amd/acp-pcm-dma.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 988 sound/soc/amd/acp-pcm-dma.c rtd->direction = substream->stream; stream 1028 sound/soc/amd/acp-pcm-dma.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 1103 sound/soc/amd/acp-pcm-dma.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 1171 sound/soc/amd/acp-pcm-dma.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 293 sound/soc/amd/raven/acp3x-pcm-dma.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 309 sound/soc/amd/raven/acp3x-pcm-dma.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 357 sound/soc/amd/raven/acp3x-pcm-dma.c config_acp3x_dma(rtd, substream->stream); stream 375 sound/soc/amd/raven/acp3x-pcm-dma.c bytescount = acp_get_byte_count(rtd, substream->stream); stream 411 sound/soc/amd/raven/acp3x-pcm-dma.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 519 sound/soc/amd/raven/acp3x-pcm-dma.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 540 sound/soc/amd/raven/acp3x-pcm-dma.c rtd->bytescount = acp_get_byte_count(rtd, substream->stream); stream 541 sound/soc/amd/raven/acp3x-pcm-dma.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 559 sound/soc/amd/raven/acp3x-pcm-dma.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 271 sound/soc/atmel/atmel-i2s.c bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 323 sound/soc/atmel/atmel-i2s.c bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 469 sound/soc/atmel/atmel-i2s.c bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 64 sound/soc/atmel/atmel-pcm-dma.c substream->stream == SNDRV_PCM_STREAM_PLAYBACK stream 38 sound/soc/atmel/atmel-pcm-pdc.c int stream) stream 40 sound/soc/atmel/atmel-pcm-pdc.c struct snd_pcm_substream *substream = pcm->streams[stream].substream; stream 100 sound/soc/atmel/atmel-pcm-pdc.c int stream; stream 102 sound/soc/atmel/atmel-pcm-pdc.c for (stream = 0; stream < 2; stream++) { stream 103 sound/soc/atmel/atmel-pcm-pdc.c substream = pcm->streams[stream].substream; stream 161 sound/soc/atmel/atmel-pcm-pdc.c substream->stream == SNDRV_PCM_STREAM_PLAYBACK stream 290 sound/soc/atmel/atmel_ssc_dai.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 337 sound/soc/atmel/atmel_ssc_dai.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 476 sound/soc/atmel/atmel_ssc_dai.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 717 sound/soc/atmel/atmel_ssc_dai.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 741 sound/soc/atmel/atmel_ssc_dai.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 498 sound/soc/atmel/mchp-i2s-mcc.c bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 691 sound/soc/atmel/mchp-i2s-mcc.c bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 738 sound/soc/atmel/mchp-i2s-mcc.c bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 190 sound/soc/au1x/dbdma2.c return &pcd[ss->stream]; stream 204 sound/soc/au1x/dbdma2.c stype = substream->stream; stream 247 sound/soc/au1x/dbdma2.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 287 sound/soc/au1x/dbdma2.c int stype = substream->stream, *dmaids; stream 42 sound/soc/au1x/dma.c struct audio_stream stream[2]; /* playback & capture */ stream 45 sound/soc/au1x/dma.c static void au1000_release_dma_link(struct audio_stream *stream) stream 50 sound/soc/au1x/dma.c stream->period_size = 0; stream 51 sound/soc/au1x/dma.c stream->periods = 0; stream 52 sound/soc/au1x/dma.c pointer = stream->buffer; stream 59 sound/soc/au1x/dma.c } while (pointer != stream->buffer); stream 60 sound/soc/au1x/dma.c stream->buffer = NULL; stream 63 sound/soc/au1x/dma.c static int au1000_setup_dma_link(struct audio_stream *stream, stream 67 sound/soc/au1x/dma.c struct snd_pcm_substream *substream = stream->substream; stream 75 sound/soc/au1x/dma.c if (stream->period_size == period_bytes && stream 76 sound/soc/au1x/dma.c stream->periods == periods) stream 79 sound/soc/au1x/dma.c au1000_release_dma_link(stream); stream 81 sound/soc/au1x/dma.c stream->period_size = period_bytes; stream 82 sound/soc/au1x/dma.c stream->periods = periods; stream 84 sound/soc/au1x/dma.c stream->buffer = kmalloc(sizeof(struct pcm_period), GFP_KERNEL); stream 85 sound/soc/au1x/dma.c if (!stream->buffer) stream 87 sound/soc/au1x/dma.c pointer = stream->buffer; stream 95 sound/soc/au1x/dma.c au1000_release_dma_link(stream); stream 101 sound/soc/au1x/dma.c pointer->next = stream->buffer; stream 105 sound/soc/au1x/dma.c static void au1000_dma_stop(struct audio_stream *stream) stream 107 sound/soc/au1x/dma.c if (stream->buffer) stream 108 sound/soc/au1x/dma.c disable_dma(stream->dma); stream 111 sound/soc/au1x/dma.c static void au1000_dma_start(struct audio_stream *stream) stream 113 sound/soc/au1x/dma.c if (!stream->buffer) stream 116 sound/soc/au1x/dma.c init_dma(stream->dma); stream 117 sound/soc/au1x/dma.c if (get_dma_active_buffer(stream->dma) == 0) { stream 118 sound/soc/au1x/dma.c clear_dma_done0(stream->dma); stream 119 sound/soc/au1x/dma.c set_dma_addr0(stream->dma, stream->buffer->start); stream 120 sound/soc/au1x/dma.c set_dma_count0(stream->dma, stream->period_size >> 1); stream 121 sound/soc/au1x/dma.c set_dma_addr1(stream->dma, stream->buffer->next->start); stream 122 sound/soc/au1x/dma.c set_dma_count1(stream->dma, stream->period_size >> 1); stream 124 sound/soc/au1x/dma.c clear_dma_done1(stream->dma); stream 125 sound/soc/au1x/dma.c set_dma_addr1(stream->dma, stream->buffer->start); stream 126 sound/soc/au1x/dma.c set_dma_count1(stream->dma, stream->period_size >> 1); stream 127 sound/soc/au1x/dma.c set_dma_addr0(stream->dma, stream->buffer->next->start); stream 128 sound/soc/au1x/dma.c set_dma_count0(stream->dma, stream->period_size >> 1); stream 130 sound/soc/au1x/dma.c enable_dma_buffers(stream->dma); stream 131 sound/soc/au1x/dma.c start_dma(stream->dma); stream 136 sound/soc/au1x/dma.c struct audio_stream *stream = (struct audio_stream *)ptr; stream 137 sound/soc/au1x/dma.c struct snd_pcm_substream *substream = stream->substream; stream 139 sound/soc/au1x/dma.c switch (get_dma_buffer_done(stream->dma)) { stream 141 sound/soc/au1x/dma.c stream->buffer = stream->buffer->next; stream 142 sound/soc/au1x/dma.c clear_dma_done0(stream->dma); stream 143 sound/soc/au1x/dma.c set_dma_addr0(stream->dma, stream->buffer->next->start); stream 144 sound/soc/au1x/dma.c set_dma_count0(stream->dma, stream->period_size >> 1); stream 145 sound/soc/au1x/dma.c enable_dma_buffer0(stream->dma); stream 148 sound/soc/au1x/dma.c stream->buffer = stream->buffer->next; stream 149 sound/soc/au1x/dma.c clear_dma_done1(stream->dma); stream 150 sound/soc/au1x/dma.c set_dma_addr1(stream->dma, stream->buffer->next->start); stream 151 sound/soc/au1x/dma.c set_dma_count1(stream->dma, stream->period_size >> 1); stream 152 sound/soc/au1x/dma.c enable_dma_buffer1(stream->dma); stream 155 sound/soc/au1x/dma.c pr_debug("DMA %d missed interrupt.\n", stream->dma); stream 156 sound/soc/au1x/dma.c au1000_dma_stop(stream); stream 157 sound/soc/au1x/dma.c au1000_dma_start(stream); stream 160 sound/soc/au1x/dma.c pr_debug("DMA %d empty irq.\n", stream->dma); stream 187 sound/soc/au1x/dma.c return &(ctx->stream[ss->stream]); stream 194 sound/soc/au1x/dma.c int *dmaids, s = substream->stream; stream 203 sound/soc/au1x/dma.c ctx->stream[s].dma = request_au1000_dma(dmaids[s], name, stream 205 sound/soc/au1x/dma.c &ctx->stream[s]); stream 206 sound/soc/au1x/dma.c set_dma_mode(ctx->stream[s].dma, stream 207 sound/soc/au1x/dma.c get_dma_mode(ctx->stream[s].dma) & ~DMA_NC); stream 209 sound/soc/au1x/dma.c ctx->stream[s].substream = substream; stream 210 sound/soc/au1x/dma.c ctx->stream[s].buffer = NULL; stream 219 sound/soc/au1x/dma.c int stype = substream->stream; stream 221 sound/soc/au1x/dma.c ctx->stream[stype].substream = NULL; stream 222 sound/soc/au1x/dma.c free_au1000_dma(ctx->stream[stype].dma); stream 230 sound/soc/au1x/dma.c struct audio_stream *stream = ss_to_as(substream); stream 237 sound/soc/au1x/dma.c err = au1000_setup_dma_link(stream, stream 248 sound/soc/au1x/dma.c struct audio_stream *stream = ss_to_as(substream); stream 249 sound/soc/au1x/dma.c au1000_release_dma_link(stream); stream 255 sound/soc/au1x/dma.c struct audio_stream *stream = ss_to_as(substream); stream 260 sound/soc/au1x/dma.c au1000_dma_start(stream); stream 263 sound/soc/au1x/dma.c au1000_dma_stop(stream); stream 274 sound/soc/au1x/dma.c struct audio_stream *stream = ss_to_as(ss); stream 277 sound/soc/au1x/dma.c location = get_dma_residue(stream->dma); stream 278 sound/soc/au1x/dma.c location = stream->buffer->relative_end - location; stream 213 sound/soc/au1x/psc-ac97.c int chans, t, stype = substream->stream; stream 292 sound/soc/au1x/psc-ac97.c int ret, stype = substream->stream; stream 240 sound/soc/au1x/psc-i2s.c int ret, stype = substream->stream; stream 631 sound/soc/bcm/bcm2835-i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK stream 634 sound/soc/bcm/bcm2835-i2s.c else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE stream 647 sound/soc/bcm/bcm2835-i2s.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 672 sound/soc/bcm/bcm2835-i2s.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 265 sound/soc/bcm/cygnus-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 312 sound/soc/bcm/cygnus-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 330 sound/soc/bcm/cygnus-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 367 sound/soc/bcm/cygnus-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 416 sound/soc/bcm/cygnus-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 608 sound/soc/bcm/cygnus-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 625 sound/soc/bcm/cygnus-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 689 sound/soc/bcm/cygnus-pcm.c is_play = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? 1 : 0; stream 710 sound/soc/bcm/cygnus-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 726 sound/soc/bcm/cygnus-pcm.c static int cygnus_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) stream 728 sound/soc/bcm/cygnus-pcm.c struct snd_pcm_substream *substream = pcm->streams[stream].substream; stream 655 sound/soc/bcm/cygnus-ssp.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 749 sound/soc/bcm/cygnus-ssp.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 767 sound/soc/bcm/cygnus-ssp.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 783 sound/soc/bcm/cygnus-ssp.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 945 sound/soc/bcm/cygnus-ssp.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 956 sound/soc/bcm/cygnus-ssp.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 260 sound/soc/cirrus/ep93xx-ac97.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 284 sound/soc/cirrus/ep93xx-ac97.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 107 sound/soc/cirrus/ep93xx-i2s.c static void ep93xx_i2s_enable(struct ep93xx_i2s_info *info, int stream) stream 123 sound/soc/cirrus/ep93xx-i2s.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 131 sound/soc/cirrus/ep93xx-i2s.c stream == SNDRV_PCM_STREAM_PLAYBACK) stream 137 sound/soc/cirrus/ep93xx-i2s.c static void ep93xx_i2s_disable(struct ep93xx_i2s_info *info, int stream) stream 143 sound/soc/cirrus/ep93xx-i2s.c stream == SNDRV_PCM_STREAM_PLAYBACK) stream 147 sound/soc/cirrus/ep93xx-i2s.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 216 sound/soc/cirrus/ep93xx-i2s.c ep93xx_i2s_disable(info, substream->stream); stream 320 sound/soc/cirrus/ep93xx-i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 351 sound/soc/cirrus/ep93xx-i2s.c ep93xx_i2s_enable(info, substream->stream); stream 38 sound/soc/codecs/ac97.c int reg = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? stream 471 sound/soc/codecs/adau1701.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 194 sound/soc/codecs/adau17x1.c unsigned int stream = e->shift_l; stream 204 sound/soc/codecs/adau17x1.c adau->dsp_bypass[stream] = false; stream 207 sound/soc/codecs/adau17x1.c val = (adau->tdm_slot[stream] * 2) + 1; stream 208 sound/soc/codecs/adau17x1.c adau->dsp_bypass[stream] = true; stream 212 sound/soc/codecs/adau17x1.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 237 sound/soc/codecs/adau17x1.c unsigned int stream = e->shift_l; stream 241 sound/soc/codecs/adau17x1.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 603 sound/soc/codecs/adau1977.c static int adau1977_mute(struct snd_soc_dai *dai, int mute, int stream) stream 523 sound/soc/codecs/adav80x.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 372 sound/soc/codecs/ak4613.c int is_play = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 533 sound/soc/codecs/ak4613.c if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK) stream 347 sound/soc/codecs/ak4641.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 280 sound/soc/codecs/ak4642.c int is_play = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 323 sound/soc/codecs/ak4642.c int is_play = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 1253 sound/soc/codecs/cpcap.c int direction = substream->stream; stream 518 sound/soc/codecs/cs35l35.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 895 sound/soc/codecs/cs35l36.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 411 sound/soc/codecs/cs4265.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE && stream 358 sound/soc/codecs/cs4271.c if ((substream->stream == SNDRV_PCM_STREAM_PLAYBACK && stream 360 sound/soc/codecs/cs4271.c (substream->stream == SNDRV_PCM_STREAM_CAPTURE && stream 407 sound/soc/codecs/cs4271.c static int cs4271_mute_stream(struct snd_soc_dai *dai, int mute, int stream) stream 415 sound/soc/codecs/cs4271.c if (stream != SNDRV_PCM_STREAM_PLAYBACK) stream 266 sound/soc/codecs/cs42xx8.c bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 354 sound/soc/codecs/cs42xx8.c bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 1226 sound/soc/codecs/cs47l15.c static int cs47l15_open(struct snd_compr_stream *stream) stream 1228 sound/soc/codecs/cs47l15.c struct snd_soc_pcm_runtime *rtd = stream->private_data; stream 1245 sound/soc/codecs/cs47l15.c return wm_adsp_compr_open(&priv->adsp[n_adsp], stream); stream 1071 sound/soc/codecs/cs47l24.c static int cs47l24_open(struct snd_compr_stream *stream) stream 1073 sound/soc/codecs/cs47l24.c struct snd_soc_pcm_runtime *rtd = stream->private_data; stream 1090 sound/soc/codecs/cs47l24.c return wm_adsp_compr_open(&priv->core.adsp[n_adsp], stream); stream 1502 sound/soc/codecs/cs47l35.c static int cs47l35_open(struct snd_compr_stream *stream) stream 1504 sound/soc/codecs/cs47l35.c struct snd_soc_pcm_runtime *rtd = stream->private_data; stream 1523 sound/soc/codecs/cs47l35.c return wm_adsp_compr_open(&priv->adsp[n_adsp], stream); stream 2441 sound/soc/codecs/cs47l85.c static int cs47l85_open(struct snd_compr_stream *stream) stream 2443 sound/soc/codecs/cs47l85.c struct snd_soc_pcm_runtime *rtd = stream->private_data; stream 2462 sound/soc/codecs/cs47l85.c return wm_adsp_compr_open(&priv->adsp[n_adsp], stream); stream 2352 sound/soc/codecs/cs47l90.c static int cs47l90_open(struct snd_compr_stream *stream) stream 2354 sound/soc/codecs/cs47l90.c struct snd_soc_pcm_runtime *rtd = stream->private_data; stream 2373 sound/soc/codecs/cs47l90.c return wm_adsp_compr_open(&priv->adsp[n_adsp], stream); stream 1782 sound/soc/codecs/cs47l92.c static int cs47l92_open(struct snd_compr_stream *stream) stream 1784 sound/soc/codecs/cs47l92.c struct snd_soc_pcm_runtime *rtd = stream->private_data; stream 1801 sound/soc/codecs/cs47l92.c return wm_adsp_compr_open(&priv->adsp[n_adsp], stream); stream 837 sound/soc/codecs/cs53l30.c static int cs53l30_mute_stream(struct snd_soc_dai *dai, int mute, int stream) stream 484 sound/soc/codecs/es8328.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 536 sound/soc/codecs/es8328.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 155 sound/soc/codecs/hdac_hda.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 175 sound/soc/codecs/hdac_hda.c hda_pvt->pcm[dai->id].format_val[substream->stream] = format_val; stream 192 sound/soc/codecs/hdac_hda.c hda_stream = &pcm->stream[substream->stream]; stream 207 sound/soc/codecs/hdac_hda.c unsigned int stream; stream 216 sound/soc/codecs/hdac_hda.c hda_stream = &pcm->stream[substream->stream]; stream 218 sound/soc/codecs/hdac_hda.c stream = hda_pvt->pcm[dai->id].stream_tag[substream->stream]; stream 219 sound/soc/codecs/hdac_hda.c format_val = hda_pvt->pcm[dai->id].format_val[substream->stream]; stream 222 sound/soc/codecs/hdac_hda.c stream, format_val, substream); stream 245 sound/soc/codecs/hdac_hda.c hda_stream = &pcm->stream[substream->stream]; stream 267 sound/soc/codecs/hdac_hda.c hda_stream = &pcm->stream[substream->stream]; stream 685 sound/soc/codecs/hdac_hdmi.c void *priv, const char *wname, const char *stream, stream 695 sound/soc/codecs/hdac_hdmi.c w->sname = stream; stream 406 sound/soc/codecs/jz4725b.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 141 sound/soc/codecs/mc13783.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 380 sound/soc/codecs/ml26124.c switch (priv->substream->stream) { stream 892 sound/soc/codecs/msm8916-wcd-digital.c switch (substream->stream) { stream 271 sound/soc/codecs/mt6351.c __func__, substream->stream, rate); stream 273 sound/soc/codecs/mt6351.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 275 sound/soc/codecs/mt6351.c else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 2213 sound/soc/codecs/mt6358.c substream->stream, stream 2217 sound/soc/codecs/mt6358.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 2219 sound/soc/codecs/mt6358.c else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 1040 sound/soc/codecs/nau8824.c int stream, int rate, int osr) stream 1044 sound/soc/codecs/nau8824.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 1078 sound/soc/codecs/nau8824.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 1082 sound/soc/codecs/nau8824.c if (nau8824_clock_check(nau8824, substream->stream, stream 1092 sound/soc/codecs/nau8824.c if (nau8824_clock_check(nau8824, substream->stream, stream 1219 sound/soc/codecs/nau8825.c int stream, int rate, int osr) stream 1223 sound/soc/codecs/nau8825.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 1257 sound/soc/codecs/nau8825.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 1260 sound/soc/codecs/nau8825.c if (nau8825_clock_check(nau8825, substream->stream, stream 1271 sound/soc/codecs/nau8825.c if (nau8825_clock_check(nau8825, substream->stream, stream 1064 sound/soc/codecs/sgtl5000.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 337 sound/soc/codecs/sirf-audio-codec.c int playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 235 sound/soc/codecs/sta529.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 174 sound/soc/codecs/stac9766.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 184 sound/soc/codecs/sti-sas.c static int stih407_sas_dac_mute(struct snd_soc_dai *dai, int mute, int stream) stream 451 sound/soc/codecs/tas5086.c static int tas5086_mute_stream(struct snd_soc_dai *dai, int mute, int stream) stream 345 sound/soc/codecs/tlv320aic23.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 401 sound/soc/codecs/tlv320aic23.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1175 sound/soc/codecs/tscs42xx.c static int tscs42xx_mute_stream(struct snd_soc_dai *dai, int mute, int stream) stream 1181 sound/soc/codecs/tscs42xx.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1186 sound/soc/codecs/tscs42xx.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 3236 sound/soc/codecs/tscs454.c substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 3256 sound/soc/codecs/tscs454.c substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 1686 sound/soc/codecs/twl4030.c twl4030_tdm_enable(component, substream->stream, 0); stream 1706 sound/soc/codecs/twl4030.c twl4030_tdm_enable(component, substream->stream, 1); stream 1960 sound/soc/codecs/twl4030.c twl4030_voice_enable(component, substream->stream, 0); stream 1972 sound/soc/codecs/twl4030.c twl4030_voice_enable(component, substream->stream, 1); stream 183 sound/soc/codecs/uda1334.c static int uda1334_mute_stream(struct snd_soc_dai *dai, int mute, int stream) stream 559 sound/soc/codecs/uda1380.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 580 sound/soc/codecs/uda1380.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1875 sound/soc/codecs/wcd9335.c switch (substream->stream) { stream 1942 sound/soc/codecs/wcd9335.c substream->stream); stream 1947 sound/soc/codecs/wcd9335.c wcd9335_slim_set_hw_params(wcd, &wcd->dai[dai->id], substream->stream); stream 301 sound/soc/codecs/wl1273.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 307 sound/soc/codecs/wl1273.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 352 sound/soc/codecs/wl1273.c substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 358 sound/soc/codecs/wl1273.c substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 1757 sound/soc/codecs/wm2200.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK || stream 1766 sound/soc/codecs/wm2200.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1478 sound/soc/codecs/wm5100.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK || stream 1487 sound/soc/codecs/wm5100.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1912 sound/soc/codecs/wm5102.c static int wm5102_open(struct snd_compr_stream *stream) stream 1914 sound/soc/codecs/wm5102.c struct snd_soc_pcm_runtime *rtd = stream->private_data; stream 1918 sound/soc/codecs/wm5102.c return wm_adsp_compr_open(&priv->core.adsp[0], stream); stream 2240 sound/soc/codecs/wm5110.c static int wm5110_open(struct snd_compr_stream *stream) stream 2242 sound/soc/codecs/wm5110.c struct snd_soc_pcm_runtime *rtd = stream->private_data; stream 2259 sound/soc/codecs/wm5110.c return wm_adsp_compr_open(&priv->core.adsp[n_adsp], stream); stream 933 sound/soc/codecs/wm8350.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 150 sound/soc/codecs/wm8524.c static int wm8524_mute_stream(struct snd_soc_dai *dai, int mute, int stream) stream 579 sound/soc/codecs/wm8580.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 436 sound/soc/codecs/wm8770.c switch (substream->stream) { stream 658 sound/soc/codecs/wm8900.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 402 sound/soc/codecs/wm8940.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE stream 816 sound/soc/codecs/wm8960.c bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 874 sound/soc/codecs/wm8960.c bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 534 sound/soc/codecs/wm8961.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && target < 64) { stream 539 sound/soc/codecs/wm8961.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE && target < 256) { stream 2798 sound/soc/codecs/wm8994.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK || stream 2811 sound/soc/codecs/wm8994.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK || stream 2933 sound/soc/codecs/wm8994.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 1566 sound/soc/codecs/wm8995.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK /* || stream 1578 sound/soc/codecs/wm8995.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK /* || stream 1743 sound/soc/codecs/wm8996.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK || stream 1754 sound/soc/codecs/wm8996.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK || stream 239 sound/soc/codecs/wm9705.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 532 sound/soc/codecs/wm9712.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 549 sound/soc/codecs/wm9712.c if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK) stream 1035 sound/soc/codecs/wm9713.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1052 sound/soc/codecs/wm9713.c if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK) stream 457 sound/soc/codecs/wm_adsp.c struct snd_compr_stream *stream; stream 3368 sound/soc/codecs/wm_adsp.c if (compr->stream) stream 3369 sound/soc/codecs/wm_adsp.c snd_compr_fragment_elapsed(compr->stream); stream 3377 sound/soc/codecs/wm_adsp.c int wm_adsp_compr_open(struct wm_adsp *dsp, struct snd_compr_stream *stream) stream 3380 sound/soc/codecs/wm_adsp.c struct snd_soc_pcm_runtime *rtd = stream->private_data; stream 3392 sound/soc/codecs/wm_adsp.c if (wm_adsp_fw[dsp->fw].compr_direction != stream->direction) { stream 3415 sound/soc/codecs/wm_adsp.c compr->stream = stream; stream 3420 sound/soc/codecs/wm_adsp.c stream->runtime->private_data = compr; stream 3429 sound/soc/codecs/wm_adsp.c int wm_adsp_compr_free(struct snd_compr_stream *stream) stream 3431 sound/soc/codecs/wm_adsp.c struct wm_adsp_compr *compr = stream->runtime->private_data; stream 3448 sound/soc/codecs/wm_adsp.c static int wm_adsp_compr_check_params(struct snd_compr_stream *stream, stream 3451 sound/soc/codecs/wm_adsp.c struct wm_adsp_compr *compr = stream->runtime->private_data; stream 3476 sound/soc/codecs/wm_adsp.c if (stream->direction == SND_COMPRESS_PLAYBACK) { stream 3503 sound/soc/codecs/wm_adsp.c int wm_adsp_compr_set_params(struct snd_compr_stream *stream, stream 3506 sound/soc/codecs/wm_adsp.c struct wm_adsp_compr *compr = stream->runtime->private_data; stream 3510 sound/soc/codecs/wm_adsp.c ret = wm_adsp_compr_check_params(stream, params); stream 3530 sound/soc/codecs/wm_adsp.c int wm_adsp_compr_get_caps(struct snd_compr_stream *stream, stream 3533 sound/soc/codecs/wm_adsp.c struct wm_adsp_compr *compr = stream->runtime->private_data; stream 3896 sound/soc/codecs/wm_adsp.c int wm_adsp_compr_trigger(struct snd_compr_stream *stream, int cmd) stream 3898 sound/soc/codecs/wm_adsp.c struct wm_adsp_compr *compr = stream->runtime->private_data; stream 4035 sound/soc/codecs/wm_adsp.c if (compr && compr->stream) stream 4036 sound/soc/codecs/wm_adsp.c snd_compr_fragment_elapsed(compr->stream); stream 4059 sound/soc/codecs/wm_adsp.c int wm_adsp_compr_pointer(struct snd_compr_stream *stream, stream 4062 sound/soc/codecs/wm_adsp.c struct wm_adsp_compr *compr = stream->runtime->private_data; stream 4074 sound/soc/codecs/wm_adsp.c snd_compr_stop_error(stream, SNDRV_PCM_STATE_XRUN); stream 4094 sound/soc/codecs/wm_adsp.c snd_compr_stop_error(stream, stream 4184 sound/soc/codecs/wm_adsp.c snd_compr_stop_error(compr->stream, SNDRV_PCM_STATE_XRUN); stream 4217 sound/soc/codecs/wm_adsp.c int wm_adsp_compr_copy(struct snd_compr_stream *stream, char __user *buf, stream 4220 sound/soc/codecs/wm_adsp.c struct wm_adsp_compr *compr = stream->runtime->private_data; stream 4226 sound/soc/codecs/wm_adsp.c if (stream->direction == SND_COMPRESS_CAPTURE) stream 4244 sound/soc/codecs/wm_adsp.c if (compr->stream) stream 4245 sound/soc/codecs/wm_adsp.c snd_compr_fragment_elapsed(compr->stream); stream 192 sound/soc/codecs/wm_adsp.h int wm_adsp_compr_open(struct wm_adsp *dsp, struct snd_compr_stream *stream); stream 193 sound/soc/codecs/wm_adsp.h int wm_adsp_compr_free(struct snd_compr_stream *stream); stream 194 sound/soc/codecs/wm_adsp.h int wm_adsp_compr_set_params(struct snd_compr_stream *stream, stream 196 sound/soc/codecs/wm_adsp.h int wm_adsp_compr_get_caps(struct snd_compr_stream *stream, stream 198 sound/soc/codecs/wm_adsp.h int wm_adsp_compr_trigger(struct snd_compr_stream *stream, int cmd); stream 200 sound/soc/codecs/wm_adsp.h int wm_adsp_compr_pointer(struct snd_compr_stream *stream, stream 202 sound/soc/codecs/wm_adsp.h int wm_adsp_compr_copy(struct snd_compr_stream *stream, stream 39 sound/soc/dwc/dwc-i2s.c static inline void i2s_disable_channels(struct dw_i2s_dev *dev, u32 stream) stream 43 sound/soc/dwc/dwc-i2s.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 52 sound/soc/dwc/dwc-i2s.c static inline void i2s_clear_irqs(struct dw_i2s_dev *dev, u32 stream) stream 56 sound/soc/dwc/dwc-i2s.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 65 sound/soc/dwc/dwc-i2s.c static inline void i2s_disable_irqs(struct dw_i2s_dev *dev, u32 stream, stream 70 sound/soc/dwc/dwc-i2s.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 83 sound/soc/dwc/dwc-i2s.c static inline void i2s_enable_irqs(struct dw_i2s_dev *dev, u32 stream, stream 88 sound/soc/dwc/dwc-i2s.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 158 sound/soc/dwc/dwc-i2s.c i2s_enable_irqs(dev, substream->stream, config->chan_nr); stream 160 sound/soc/dwc/dwc-i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 172 sound/soc/dwc/dwc-i2s.c i2s_clear_irqs(dev, substream->stream); stream 173 sound/soc/dwc/dwc-i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 178 sound/soc/dwc/dwc-i2s.c i2s_disable_irqs(dev, substream->stream, 8); stream 193 sound/soc/dwc/dwc-i2s.c (substream->stream == SNDRV_PCM_STREAM_CAPTURE)) stream 197 sound/soc/dwc/dwc-i2s.c (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)) stream 200 sound/soc/dwc/dwc-i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 202 sound/soc/dwc/dwc-i2s.c else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 210 sound/soc/dwc/dwc-i2s.c static void dw_i2s_config(struct dw_i2s_dev *dev, int stream) stream 216 sound/soc/dwc/dwc-i2s.c i2s_disable_channels(dev, stream); stream 219 sound/soc/dwc/dwc-i2s.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 280 sound/soc/dwc/dwc-i2s.c dw_i2s_config(dev, substream->stream); stream 319 sound/soc/dwc/dwc-i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 210 sound/soc/dwc/dwc-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 221 sound/soc/dwc/dwc-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 240 sound/soc/dwc/dwc-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 143 sound/soc/fsl/fsl-asoc-card.c bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 531 sound/soc/fsl/fsl_asrc.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 59 sound/soc/fsl/fsl_asrc_dma.c u8 dir = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? OUT : IN; stream 134 sound/soc/fsl/fsl_asrc_dma.c bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 144 sound/soc/fsl/fsl_asrc_dma.c int stream = substream->stream; stream 154 sound/soc/fsl/fsl_asrc_dma.c for_each_dpcm_be(rtd, stream, dpcm) { stream 162 sound/soc/fsl/fsl_asrc_dma.c substream_be = snd_soc_dpcm_get_substream(be, stream); stream 292 sound/soc/fsl/fsl_audmix.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 169 sound/soc/fsl/fsl_dma.c if (dma_private->substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 412 sound/soc/fsl/fsl_dma.c channel = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0 : 1; stream 425 sound/soc/fsl/fsl_dma.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 504 sound/soc/fsl/fsl_dma.c mr |= (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? stream 665 sound/soc/fsl/fsl_dma.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 716 sound/soc/fsl/fsl_dma.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 509 sound/soc/fsl/fsl_esai.c bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 730 sound/soc/fsl/fsl_esai.c bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 421 sound/soc/fsl/fsl_sai.c bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 448 sound/soc/fsl/fsl_sai.c if (!(sai->mclk_streams & BIT(substream->stream))) { stream 453 sound/soc/fsl/fsl_sai.c sai->mclk_streams |= BIT(substream->stream); stream 514 sound/soc/fsl/fsl_sai.c bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 517 sound/soc/fsl/fsl_sai.c sai->mclk_streams & BIT(substream->stream)) { stream 519 sound/soc/fsl/fsl_sai.c sai->mclk_streams &= ~BIT(substream->stream); stream 532 sound/soc/fsl/fsl_sai.c bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 624 sound/soc/fsl/fsl_sai.c bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 652 sound/soc/fsl/fsl_sai.c bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 494 sound/soc/fsl/fsl_spdif.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 541 sound/soc/fsl/fsl_spdif.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 578 sound/soc/fsl/fsl_spdif.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 602 sound/soc/fsl/fsl_spdif.c bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 676 sound/soc/fsl/fsl_ssi.c bool tx2, tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 711 sound/soc/fsl/fsl_ssi.c baudclk_is_used = ssi->baudclk_streams & ~(BIT(substream->stream)); stream 794 sound/soc/fsl/fsl_ssi.c bool tx2, tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 808 sound/soc/fsl/fsl_ssi.c if (!(ssi->baudclk_streams & BIT(substream->stream))) { stream 813 sound/soc/fsl/fsl_ssi.c ssi->baudclk_streams |= BIT(substream->stream); stream 860 sound/soc/fsl/fsl_ssi.c ssi->baudclk_streams & BIT(substream->stream)) { stream 862 sound/soc/fsl/fsl_ssi.c ssi->baudclk_streams &= ~BIT(substream->stream); stream 1063 sound/soc/fsl/fsl_ssi.c bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 78 sound/soc/fsl/imx-audmix.c bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 117 sound/soc/fsl/imx-audmix.c bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 56 sound/soc/fsl/imx-pcm-fiq.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 95 sound/soc/fsl/imx-pcm-fiq.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 116 sound/soc/fsl/imx-pcm-fiq.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 128 sound/soc/fsl/imx-pcm-fiq.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 236 sound/soc/fsl/imx-pcm-fiq.c static int imx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) stream 238 sound/soc/fsl/imx-pcm-fiq.c struct snd_pcm_substream *substream = pcm->streams[stream].substream; stream 316 sound/soc/fsl/imx-pcm-fiq.c int stream; stream 318 sound/soc/fsl/imx-pcm-fiq.c for (stream = 0; stream < 2; stream++) { stream 319 sound/soc/fsl/imx-pcm-fiq.c substream = pcm->streams[stream].substream; stream 240 sound/soc/fsl/imx-ssi.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 278 sound/soc/fsl/imx-ssi.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 294 sound/soc/fsl/imx-ssi.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 307 sound/soc/fsl/imx-ssi.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 96 sound/soc/fsl/mpc5200_dma.c snd_pcm_period_elapsed(s->stream); stream 127 sound/soc/fsl/mpc5200_dma.c substream->pstr->stream, runtime->frame_bits, stream 142 sound/soc/fsl/mpc5200_dma.c if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) stream 160 sound/soc/fsl/mpc5200_dma.c substream->pstr->stream, s->period_count); stream 165 sound/soc/fsl/mpc5200_dma.c if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) stream 175 sound/soc/fsl/mpc5200_dma.c substream->pstr->stream, cmd); stream 223 sound/soc/fsl/mpc5200_dma.c if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) stream 237 sound/soc/fsl/mpc5200_dma.c s->stream = substream; stream 249 sound/soc/fsl/mpc5200_dma.c if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) stream 261 sound/soc/fsl/mpc5200_dma.c s->stream = NULL; stream 273 sound/soc/fsl/mpc5200_dma.c if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) stream 349 sound/soc/fsl/mpc5200_dma.c int stream; stream 353 sound/soc/fsl/mpc5200_dma.c for (stream = 0; stream < 2; stream++) { stream 354 sound/soc/fsl/mpc5200_dma.c substream = pcm->streams[stream].substream; stream 28 sound/soc/fsl/mpc5200_dma.h struct snd_pcm_substream *stream; stream 80 sound/soc/fsl/mpc5200_dma.h if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) stream 155 sound/soc/fsl/mpc5200_psc_ac97.c if (substream->pstr->stream != SNDRV_PCM_STREAM_CAPTURE) stream 185 sound/soc/fsl/mpc5200_psc_ac97.c substream->pstr->stream); stream 194 sound/soc/fsl/mpc5200_psc_ac97.c substream->pstr->stream); stream 423 sound/soc/hisilicon/hi6210-i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 480 sound/soc/hisilicon/hi6210-i2s.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 487 sound/soc/hisilicon/hi6210-i2s.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 1306 sound/soc/intel/atom/sst-atom-controls.c int sst_send_pipe_gains(struct snd_soc_dai *dai, int stream, int mute) stream 1312 sound/soc/intel/atom/sst-atom-controls.c dev_dbg(dai->dev, "enter, dai-name=%s dir=%d\n", dai->name, stream); stream 1314 sound/soc/intel/atom/sst-atom-controls.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 47 sound/soc/intel/atom/sst-mfld-platform-compress.c struct sst_runtime_stream *stream; stream 49 sound/soc/intel/atom/sst-mfld-platform-compress.c stream = kzalloc(sizeof(*stream), GFP_KERNEL); stream 50 sound/soc/intel/atom/sst-mfld-platform-compress.c if (!stream) stream 53 sound/soc/intel/atom/sst-mfld-platform-compress.c spin_lock_init(&stream->status_lock); stream 61 sound/soc/intel/atom/sst-mfld-platform-compress.c stream->compr_ops = sst->compr_ops; stream 62 sound/soc/intel/atom/sst-mfld-platform-compress.c stream->id = 0; stream 67 sound/soc/intel/atom/sst-mfld-platform-compress.c sst_set_stream_status(stream, SST_PLATFORM_INIT); stream 68 sound/soc/intel/atom/sst-mfld-platform-compress.c runtime->private_data = stream; stream 71 sound/soc/intel/atom/sst-mfld-platform-compress.c kfree(stream); stream 77 sound/soc/intel/atom/sst-mfld-platform-compress.c struct sst_runtime_stream *stream; stream 80 sound/soc/intel/atom/sst-mfld-platform-compress.c stream = cstream->runtime->private_data; stream 85 sound/soc/intel/atom/sst-mfld-platform-compress.c str_id = stream->id; stream 87 sound/soc/intel/atom/sst-mfld-platform-compress.c ret_val = stream->compr_ops->close(sst->dev, str_id); stream 89 sound/soc/intel/atom/sst-mfld-platform-compress.c kfree(stream); stream 97 sound/soc/intel/atom/sst-mfld-platform-compress.c struct sst_runtime_stream *stream; stream 105 sound/soc/intel/atom/sst-mfld-platform-compress.c stream = cstream->runtime->private_data; stream 159 sound/soc/intel/atom/sst-mfld-platform-compress.c retval = stream->compr_ops->open(sst->dev, &str_params, &cb); stream 165 sound/soc/intel/atom/sst-mfld-platform-compress.c stream->id = retval; stream 171 sound/soc/intel/atom/sst-mfld-platform-compress.c struct sst_runtime_stream *stream = cstream->runtime->private_data; stream 175 sound/soc/intel/atom/sst-mfld-platform-compress.c if (stream->compr_ops->stream_start) stream 176 sound/soc/intel/atom/sst-mfld-platform-compress.c return stream->compr_ops->stream_start(sst->dev, stream->id); stream 179 sound/soc/intel/atom/sst-mfld-platform-compress.c if (stream->compr_ops->stream_drop) stream 180 sound/soc/intel/atom/sst-mfld-platform-compress.c return stream->compr_ops->stream_drop(sst->dev, stream->id); stream 183 sound/soc/intel/atom/sst-mfld-platform-compress.c if (stream->compr_ops->stream_drain) stream 184 sound/soc/intel/atom/sst-mfld-platform-compress.c return stream->compr_ops->stream_drain(sst->dev, stream->id); stream 187 sound/soc/intel/atom/sst-mfld-platform-compress.c if (stream->compr_ops->stream_partial_drain) stream 188 sound/soc/intel/atom/sst-mfld-platform-compress.c return stream->compr_ops->stream_partial_drain(sst->dev, stream->id); stream 191 sound/soc/intel/atom/sst-mfld-platform-compress.c if (stream->compr_ops->stream_pause) stream 192 sound/soc/intel/atom/sst-mfld-platform-compress.c return stream->compr_ops->stream_pause(sst->dev, stream->id); stream 195 sound/soc/intel/atom/sst-mfld-platform-compress.c if (stream->compr_ops->stream_pause_release) stream 196 sound/soc/intel/atom/sst-mfld-platform-compress.c return stream->compr_ops->stream_pause_release(sst->dev, stream->id); stream 205 sound/soc/intel/atom/sst-mfld-platform-compress.c struct sst_runtime_stream *stream; stream 207 sound/soc/intel/atom/sst-mfld-platform-compress.c stream = cstream->runtime->private_data; stream 208 sound/soc/intel/atom/sst-mfld-platform-compress.c stream->compr_ops->tstamp(sst->dev, stream->id, tstamp); stream 218 sound/soc/intel/atom/sst-mfld-platform-compress.c struct sst_runtime_stream *stream; stream 220 sound/soc/intel/atom/sst-mfld-platform-compress.c stream = cstream->runtime->private_data; stream 221 sound/soc/intel/atom/sst-mfld-platform-compress.c stream->compr_ops->ack(sst->dev, stream->id, (unsigned long)bytes); stream 222 sound/soc/intel/atom/sst-mfld-platform-compress.c stream->bytes_written += bytes; stream 230 sound/soc/intel/atom/sst-mfld-platform-compress.c struct sst_runtime_stream *stream = stream 233 sound/soc/intel/atom/sst-mfld-platform-compress.c return stream->compr_ops->get_caps(caps); stream 239 sound/soc/intel/atom/sst-mfld-platform-compress.c struct sst_runtime_stream *stream = stream 242 sound/soc/intel/atom/sst-mfld-platform-compress.c return stream->compr_ops->get_codec_caps(codec); stream 248 sound/soc/intel/atom/sst-mfld-platform-compress.c struct sst_runtime_stream *stream = stream 251 sound/soc/intel/atom/sst-mfld-platform-compress.c return stream->compr_ops->set_metadata(sst->dev, stream->id, metadata); stream 96 sound/soc/intel/atom/sst-mfld-platform-pcm.c static int sst_media_digital_mute(struct snd_soc_dai *dai, int mute, int stream) stream 99 sound/soc/intel/atom/sst-mfld-platform-pcm.c return sst_send_pipe_gains(dai, stream, mute); stream 103 sound/soc/intel/atom/sst-mfld-platform-pcm.c void sst_set_stream_status(struct sst_runtime_stream *stream, stream 107 sound/soc/intel/atom/sst-mfld-platform-pcm.c spin_lock_irqsave(&stream->status_lock, flags); stream 108 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream->stream_status = state; stream 109 sound/soc/intel/atom/sst-mfld-platform-pcm.c spin_unlock_irqrestore(&stream->status_lock, flags); stream 112 sound/soc/intel/atom/sst-mfld-platform-pcm.c static inline int sst_get_stream_status(struct sst_runtime_stream *stream) stream 117 sound/soc/intel/atom/sst-mfld-platform-pcm.c spin_lock_irqsave(&stream->status_lock, flags); stream 118 sound/soc/intel/atom/sst-mfld-platform-pcm.c state = stream->stream_status; stream 119 sound/soc/intel/atom/sst-mfld-platform-pcm.c spin_unlock_irqrestore(&stream->status_lock, flags); stream 195 sound/soc/intel/atom/sst-mfld-platform-pcm.c pstream->number, pstream->stream, stream 204 sound/soc/intel/atom/sst-mfld-platform-pcm.c str_params->ops = (u8)pstream->stream; stream 225 sound/soc/intel/atom/sst-mfld-platform-pcm.c struct sst_runtime_stream *stream = stream 246 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream->stream_info.str_id = str_params.stream_id; stream 248 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = stream->ops->open(sst->dev, &str_params); stream 259 sound/soc/intel/atom/sst-mfld-platform-pcm.c struct sst_runtime_stream *stream; stream 264 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream = substream->runtime->private_data; stream 265 sound/soc/intel/atom/sst-mfld-platform-pcm.c if (!stream) stream 267 sound/soc/intel/atom/sst-mfld-platform-pcm.c status = sst_get_stream_status(stream); stream 275 sound/soc/intel/atom/sst-mfld-platform-pcm.c struct sst_runtime_stream *stream = stream 281 sound/soc/intel/atom/sst-mfld-platform-pcm.c sst_set_stream_status(stream, SST_PLATFORM_INIT); stream 282 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream->stream_info.period_elapsed = sst_period_elapsed; stream 283 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream->stream_info.arg = substream; stream 284 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream->stream_info.buffer_ptr = 0; stream 285 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream->stream_info.sfreq = substream->runtime->rate; stream 286 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = stream->ops->stream_init(sst->dev, &stream->stream_info); stream 293 sound/soc/intel/atom/sst-mfld-platform-pcm.c static int power_up_sst(struct sst_runtime_stream *stream) stream 295 sound/soc/intel/atom/sst-mfld-platform-pcm.c return stream->ops->power(sst->dev, true); stream 298 sound/soc/intel/atom/sst-mfld-platform-pcm.c static void power_down_sst(struct sst_runtime_stream *stream) stream 300 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream->ops->power(sst->dev, false); stream 308 sound/soc/intel/atom/sst-mfld-platform-pcm.c struct sst_runtime_stream *stream; stream 310 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream = kzalloc(sizeof(*stream), GFP_KERNEL); stream 311 sound/soc/intel/atom/sst-mfld-platform-pcm.c if (!stream) stream 313 sound/soc/intel/atom/sst-mfld-platform-pcm.c spin_lock_init(&stream->status_lock); stream 323 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream->ops = sst->ops; stream 326 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream->stream_info.str_id = 0; stream 328 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream->stream_info.arg = substream; stream 330 sound/soc/intel/atom/sst-mfld-platform-pcm.c runtime->private_data = stream; stream 332 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = power_up_sst(stream); stream 343 sound/soc/intel/atom/sst-mfld-platform-pcm.c kfree(stream); stream 351 sound/soc/intel/atom/sst-mfld-platform-pcm.c struct sst_runtime_stream *stream; stream 354 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream = substream->runtime->private_data; stream 355 sound/soc/intel/atom/sst-mfld-platform-pcm.c power_down_sst(stream); stream 357 sound/soc/intel/atom/sst-mfld-platform-pcm.c str_id = stream->stream_info.str_id; stream 359 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream->ops->close(sst->dev, str_id); stream 361 sound/soc/intel/atom/sst-mfld-platform-pcm.c kfree(stream); stream 367 sound/soc/intel/atom/sst-mfld-platform-pcm.c struct sst_runtime_stream *stream; stream 370 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream = substream->runtime->private_data; stream 371 sound/soc/intel/atom/sst-mfld-platform-pcm.c str_id = stream->stream_info.str_id; stream 372 sound/soc/intel/atom/sst-mfld-platform-pcm.c if (stream->stream_info.str_id) { stream 373 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = stream->ops->stream_drop(sst->dev, str_id); stream 381 sound/soc/intel/atom/sst-mfld-platform-pcm.c "%d", stream->stream_info.str_id); stream 605 sound/soc/intel/atom/sst-mfld-platform-pcm.c struct sst_runtime_stream *stream; stream 612 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream = substream->runtime->private_data; stream 613 sound/soc/intel/atom/sst-mfld-platform-pcm.c str_id = stream->stream_info.str_id; stream 618 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream->stream_info.arg = substream; stream 619 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = stream->ops->stream_start(sst->dev, str_id); stream 624 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = stream->ops->stream_drop(sst->dev, str_id); stream 630 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = stream->ops->stream_pause(sst->dev, str_id); stream 636 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = stream->ops->stream_pause_release(sst->dev, str_id); stream 643 sound/soc/intel/atom/sst-mfld-platform-pcm.c sst_set_stream_status(stream, status); stream 652 sound/soc/intel/atom/sst-mfld-platform-pcm.c struct sst_runtime_stream *stream; stream 657 sound/soc/intel/atom/sst-mfld-platform-pcm.c stream = substream->runtime->private_data; stream 658 sound/soc/intel/atom/sst-mfld-platform-pcm.c status = sst_get_stream_status(stream); stream 661 sound/soc/intel/atom/sst-mfld-platform-pcm.c str_info = &stream->stream_info; stream 662 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = stream->ops->stream_read_tstamp(sst->dev, str_info); stream 153 sound/soc/intel/atom/sst-mfld-platform.h int sst_send_pipe_gains(struct snd_soc_dai *dai, int stream, int mute); stream 157 sound/soc/intel/atom/sst-mfld-platform.h void sst_set_stream_status(struct sst_runtime_stream *stream, int state); stream 302 sound/soc/intel/atom/sst/sst.c struct stream_info *stream = &ctx->streams[i]; stream 304 sound/soc/intel/atom/sst/sst.c memset(stream, 0, sizeof(*stream)); stream 305 sound/soc/intel/atom/sst/sst.c stream->pipe_id = PIPE_RSVD; stream 306 sound/soc/intel/atom/sst/sst.c mutex_init(&stream->lock); stream 438 sound/soc/intel/atom/sst/sst.c struct stream_info *stream = &ctx->streams[i]; stream 440 sound/soc/intel/atom/sst/sst.c if (stream->status == STREAM_RUNNING) { stream 446 sound/soc/intel/atom/sst/sst.c stream->resume_status = stream->status; stream 447 sound/soc/intel/atom/sst/sst.c stream->resume_prev = stream->prev; stream 448 sound/soc/intel/atom/sst/sst.c if (stream->status != STREAM_UN_INIT) stream 554 sound/soc/intel/atom/sst/sst.c struct stream_info *stream = &ctx->streams[i]; stream 556 sound/soc/intel/atom/sst/sst.c if (stream->resume_status != STREAM_UN_INIT) { stream 558 sound/soc/intel/atom/sst/sst.c i, stream->resume_status, stream 559 sound/soc/intel/atom/sst/sst.c stream->resume_prev); stream 561 sound/soc/intel/atom/sst/sst.c stream->status = stream->resume_status; stream 562 sound/soc/intel/atom/sst/sst.c stream->prev = stream->resume_prev; stream 466 sound/soc/intel/atom/sst/sst.h void sst_clean_stream(struct stream_info *stream); stream 45 sound/soc/intel/atom/sst/sst_drv_interface.c struct stream_info *stream; stream 48 sound/soc/intel/atom/sst/sst_drv_interface.c stream = get_stream_info(ctx, str_id); stream 49 sound/soc/intel/atom/sst/sst_drv_interface.c if (stream) { stream 196 sound/soc/intel/atom/sst/sst_drv_interface.c struct stream_info *stream; stream 208 sound/soc/intel/atom/sst/sst_drv_interface.c stream = &ctx->streams[str_id]; stream 209 sound/soc/intel/atom/sst/sst_drv_interface.c stream->compr_cb = cb->compr_cb; stream 210 sound/soc/intel/atom/sst/sst_drv_interface.c stream->compr_cb_param = cb->param; stream 211 sound/soc/intel/atom/sst/sst_drv_interface.c stream->drain_notify = cb->drain_notify; stream 212 sound/soc/intel/atom/sst/sst_drv_interface.c stream->drain_cb_param = cb->drain_cb_param; stream 224 sound/soc/intel/atom/sst/sst_drv_interface.c struct stream_info *stream; stream 227 sound/soc/intel/atom/sst/sst_drv_interface.c stream = get_stream_info(ctx, str_id); stream 228 sound/soc/intel/atom/sst/sst_drv_interface.c if (!stream) { stream 234 sound/soc/intel/atom/sst/sst_drv_interface.c stream->compr_cb_param = NULL; stream 235 sound/soc/intel/atom/sst/sst_drv_interface.c stream->compr_cb = NULL; stream 247 sound/soc/intel/atom/sst/sst_drv_interface.c struct stream_info *stream; stream 253 sound/soc/intel/atom/sst/sst_drv_interface.c stream = get_stream_info(ctx, str_id); stream 254 sound/soc/intel/atom/sst/sst_drv_interface.c if (!stream) stream 258 sound/soc/intel/atom/sst/sst_drv_interface.c stream->cumm_bytes += bytes; stream 259 sound/soc/intel/atom/sst/sst_drv_interface.c dev_dbg(dev, "bytes copied %d inc by %ld\n", stream->cumm_bytes, bytes); stream 266 sound/soc/intel/atom/sst/sst_drv_interface.c fw_tstamp.bytes_copied = stream->cumm_bytes; stream 351 sound/soc/intel/atom/sst/sst_drv_interface.c struct stream_info *stream; stream 360 sound/soc/intel/atom/sst/sst_drv_interface.c stream = get_stream_info(ctx, str_id); stream 361 sound/soc/intel/atom/sst/sst_drv_interface.c if (!stream) stream 368 sound/soc/intel/atom/sst/sst_drv_interface.c (u64)stream->num_ch * SST_GET_BYTES_PER_SAMPLE(24)); stream 441 sound/soc/intel/atom/sst/sst_drv_interface.c struct stream_info *stream; stream 445 sound/soc/intel/atom/sst/sst_drv_interface.c stream = &ctx->streams[str_id]; stream 446 sound/soc/intel/atom/sst/sst_drv_interface.c if (stream->compr_cb) stream 447 sound/soc/intel/atom/sst/sst_drv_interface.c stream->compr_cb(stream->compr_cb_param); stream 460 sound/soc/intel/atom/sst/sst_drv_interface.c struct stream_info *stream; stream 464 sound/soc/intel/atom/sst/sst_drv_interface.c stream = get_stream_info(ctx, str_id); stream 465 sound/soc/intel/atom/sst/sst_drv_interface.c if (!stream) { stream 471 sound/soc/intel/atom/sst/sst_drv_interface.c stream->pcm_substream = NULL; stream 472 sound/soc/intel/atom/sst/sst_drv_interface.c stream->status = STREAM_UN_INIT; stream 473 sound/soc/intel/atom/sst/sst_drv_interface.c stream->period_elapsed = NULL; stream 496 sound/soc/intel/atom/sst/sst_drv_interface.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 519 sound/soc/intel/atom/sst/sst_drv_interface.c struct stream_info *stream; stream 527 sound/soc/intel/atom/sst/sst_drv_interface.c stream = get_stream_info(ctx, str_id); stream 528 sound/soc/intel/atom/sst/sst_drv_interface.c if (!stream) stream 531 sound/soc/intel/atom/sst/sst_drv_interface.c if (!stream->pcm_substream) stream 533 sound/soc/intel/atom/sst/sst_drv_interface.c substream = stream->pcm_substream; stream 608 sound/soc/intel/atom/sst/sst_drv_interface.c struct stream_info *stream; stream 616 sound/soc/intel/atom/sst/sst_drv_interface.c stream = get_stream_info(ctx, str_id); stream 617 sound/soc/intel/atom/sst/sst_drv_interface.c if (!stream) stream 621 sound/soc/intel/atom/sst/sst_drv_interface.c stream->pcm_substream = str_info->arg; stream 622 sound/soc/intel/atom/sst/sst_drv_interface.c stream->period_elapsed = str_info->period_elapsed; stream 623 sound/soc/intel/atom/sst/sst_drv_interface.c stream->sfreq = str_info->sfreq; stream 624 sound/soc/intel/atom/sst/sst_drv_interface.c stream->prev = stream->status; stream 625 sound/soc/intel/atom/sst/sst_drv_interface.c stream->status = STREAM_INIT; stream 628 sound/soc/intel/atom/sst/sst_drv_interface.c stream->pcm_substream, stream->period_elapsed, stream 629 sound/soc/intel/atom/sst/sst_drv_interface.c stream->sfreq, stream->status); stream 256 sound/soc/intel/atom/sst/sst_ipc.c struct stream_info *stream; stream 272 sound/soc/intel/atom/sst/sst_ipc.c stream = &sst_drv_ctx->streams[str_id]; stream 274 sound/soc/intel/atom/sst/sst_ipc.c if (stream->status == STREAM_INIT) stream 276 sound/soc/intel/atom/sst/sst_ipc.c if (stream->period_elapsed) stream 277 sound/soc/intel/atom/sst/sst_ipc.c stream->period_elapsed(stream->pcm_substream); stream 278 sound/soc/intel/atom/sst/sst_ipc.c if (stream->compr_cb) stream 279 sound/soc/intel/atom/sst/sst_ipc.c stream->compr_cb(stream->compr_cb_param); stream 287 sound/soc/intel/atom/sst/sst_ipc.c stream = &sst_drv_ctx->streams[str_id]; stream 288 sound/soc/intel/atom/sst/sst_ipc.c if (stream->drain_notify) stream 289 sound/soc/intel/atom/sst/sst_ipc.c stream->drain_notify(stream->drain_cb_param); stream 212 sound/soc/intel/atom/sst/sst_pvt.c void sst_clean_stream(struct stream_info *stream) stream 214 sound/soc/intel/atom/sst/sst_pvt.c stream->status = STREAM_UN_INIT; stream 215 sound/soc/intel/atom/sst/sst_pvt.c stream->prev = STREAM_UN_INIT; stream 216 sound/soc/intel/atom/sst/sst_pvt.c mutex_lock(&stream->lock); stream 217 sound/soc/intel/atom/sst/sst_pvt.c stream->cumm_bytes = 0; stream 218 sound/soc/intel/atom/sst/sst_pvt.c mutex_unlock(&stream->lock); stream 155 sound/soc/intel/baytrail/sst-baytrail-ipc.c u32 (*notify_position)(struct sst_byt_stream *stream, void *data); stream 201 sound/soc/intel/baytrail/sst-baytrail-ipc.c struct sst_byt_stream *stream; stream 203 sound/soc/intel/baytrail/sst-baytrail-ipc.c list_for_each_entry(stream, &byt->stream_list, node) { stream 204 sound/soc/intel/baytrail/sst-baytrail-ipc.c if (stream->str_id == stream_id) stream 205 sound/soc/intel/baytrail/sst-baytrail-ipc.c return stream; stream 213 sound/soc/intel/baytrail/sst-baytrail-ipc.c struct sst_byt_stream *stream; stream 218 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream = sst_byt_get_stream(byt, stream_id); stream 219 sound/soc/intel/baytrail/sst-baytrail-ipc.c if (stream == NULL) stream 226 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->running = false; stream 230 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->running = true; stream 271 sound/soc/intel/baytrail/sst-baytrail-ipc.c struct sst_byt_stream *stream; stream 281 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream = sst_byt_get_stream(byt, stream_id); stream 282 sound/soc/intel/baytrail/sst-baytrail-ipc.c if (stream && stream->running && stream->notify_position) { stream 284 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->notify_position(stream, stream->pdata); stream 339 sound/soc/intel/baytrail/sst-baytrail-ipc.c u32 (*notify_position)(struct sst_byt_stream *stream, void *data), stream 342 sound/soc/intel/baytrail/sst-baytrail-ipc.c struct sst_byt_stream *stream; stream 346 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream = kzalloc(sizeof(*stream), GFP_KERNEL); stream 347 sound/soc/intel/baytrail/sst-baytrail-ipc.c if (stream == NULL) stream 351 sound/soc/intel/baytrail/sst-baytrail-ipc.c list_add(&stream->node, &byt->stream_list); stream 352 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->notify_position = notify_position; stream 353 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->pdata = data; stream 354 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->byt = byt; stream 355 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->str_id = id; stream 358 sound/soc/intel/baytrail/sst-baytrail-ipc.c return stream; stream 361 sound/soc/intel/baytrail/sst-baytrail-ipc.c int sst_byt_stream_set_bits(struct sst_byt *byt, struct sst_byt_stream *stream, stream 364 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->request.pcm_params.pcm_wd_sz = bits; stream 369 sound/soc/intel/baytrail/sst-baytrail-ipc.c struct sst_byt_stream *stream, u8 channels) stream 371 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->request.pcm_params.num_chan = channels; stream 375 sound/soc/intel/baytrail/sst-baytrail-ipc.c int sst_byt_stream_set_rate(struct sst_byt *byt, struct sst_byt_stream *stream, stream 378 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->request.pcm_params.sfreq = rate; stream 383 sound/soc/intel/baytrail/sst-baytrail-ipc.c int sst_byt_stream_type(struct sst_byt *byt, struct sst_byt_stream *stream, stream 386 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->request.str_type.codec_type = codec_type; stream 387 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->request.str_type.str_type = stream_type; stream 388 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->request.str_type.operation = operation; stream 389 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->request.str_type.time_slots = 0xc; stream 394 sound/soc/intel/baytrail/sst-baytrail-ipc.c int sst_byt_stream_buffer(struct sst_byt *byt, struct sst_byt_stream *stream, stream 397 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->request.frame_info.num_entries = 1; stream 398 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->request.frame_info.ring_buf_info[0].addr = buffer_addr; stream 399 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->request.frame_info.ring_buf_info[0].size = buffer_size; stream 401 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->request.frame_info.frag_size = stream 402 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->request.pcm_params.sfreq * stream 403 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->request.pcm_params.num_chan * stream 404 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->request.pcm_params.pcm_wd_sz / 8 * stream 409 sound/soc/intel/baytrail/sst-baytrail-ipc.c int sst_byt_stream_commit(struct sst_byt *byt, struct sst_byt_stream *stream) stream 415 sound/soc/intel/baytrail/sst-baytrail-ipc.c sizeof(stream->request) + sizeof(u32), stream 416 sound/soc/intel/baytrail/sst-baytrail-ipc.c true, stream->str_id); stream 417 sound/soc/intel/baytrail/sst-baytrail-ipc.c request.data = &stream->request; stream 418 sound/soc/intel/baytrail/sst-baytrail-ipc.c request.size = sizeof(stream->request); stream 419 sound/soc/intel/baytrail/sst-baytrail-ipc.c reply.data = &stream->reply; stream 420 sound/soc/intel/baytrail/sst-baytrail-ipc.c reply.size = sizeof(stream->reply); stream 428 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->commited = true; stream 433 sound/soc/intel/baytrail/sst-baytrail-ipc.c int sst_byt_stream_free(struct sst_byt *byt, struct sst_byt_stream *stream) stream 440 sound/soc/intel/baytrail/sst-baytrail-ipc.c if (!stream->commited) stream 444 sound/soc/intel/baytrail/sst-baytrail-ipc.c 0, false, stream->str_id); stream 448 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->str_id); stream 452 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->commited = false; stream 455 sound/soc/intel/baytrail/sst-baytrail-ipc.c list_del(&stream->node); stream 456 sound/soc/intel/baytrail/sst-baytrail-ipc.c kfree(stream); stream 475 sound/soc/intel/baytrail/sst-baytrail-ipc.c int sst_byt_stream_start(struct sst_byt *byt, struct sst_byt_stream *stream, stream 485 sound/soc/intel/baytrail/sst-baytrail-ipc.c true, stream->str_id); stream 492 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->str_id); stream 497 sound/soc/intel/baytrail/sst-baytrail-ipc.c int sst_byt_stream_stop(struct sst_byt *byt, struct sst_byt_stream *stream) stream 502 sound/soc/intel/baytrail/sst-baytrail-ipc.c if (!stream->commited) stream 506 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->str_id, 0); stream 509 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->str_id); stream 513 sound/soc/intel/baytrail/sst-baytrail-ipc.c int sst_byt_stream_pause(struct sst_byt *byt, struct sst_byt_stream *stream) stream 518 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->str_id, 0); stream 521 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->str_id); stream 526 sound/soc/intel/baytrail/sst-baytrail-ipc.c int sst_byt_stream_resume(struct sst_byt *byt, struct sst_byt_stream *stream) stream 531 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->str_id, 0); stream 534 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->str_id); stream 540 sound/soc/intel/baytrail/sst-baytrail-ipc.c struct sst_byt_stream *stream, int buffer_size) stream 544 sound/soc/intel/baytrail/sst-baytrail-ipc.c u8 str_id = stream->str_id; stream 29 sound/soc/intel/baytrail/sst-baytrail-ipc.h uint32_t (*get_write_position)(struct sst_byt_stream *stream, stream 34 sound/soc/intel/baytrail/sst-baytrail-ipc.h int sst_byt_stream_set_bits(struct sst_byt *byt, struct sst_byt_stream *stream, stream 37 sound/soc/intel/baytrail/sst-baytrail-ipc.h struct sst_byt_stream *stream, u8 channels); stream 38 sound/soc/intel/baytrail/sst-baytrail-ipc.h int sst_byt_stream_set_rate(struct sst_byt *byt, struct sst_byt_stream *stream, stream 40 sound/soc/intel/baytrail/sst-baytrail-ipc.h int sst_byt_stream_type(struct sst_byt *byt, struct sst_byt_stream *stream, stream 42 sound/soc/intel/baytrail/sst-baytrail-ipc.h int sst_byt_stream_buffer(struct sst_byt *byt, struct sst_byt_stream *stream, stream 44 sound/soc/intel/baytrail/sst-baytrail-ipc.h int sst_byt_stream_commit(struct sst_byt *byt, struct sst_byt_stream *stream); stream 45 sound/soc/intel/baytrail/sst-baytrail-ipc.h int sst_byt_stream_free(struct sst_byt *byt, struct sst_byt_stream *stream); stream 48 sound/soc/intel/baytrail/sst-baytrail-ipc.h int sst_byt_stream_start(struct sst_byt *byt, struct sst_byt_stream *stream, stream 50 sound/soc/intel/baytrail/sst-baytrail-ipc.h int sst_byt_stream_stop(struct sst_byt *byt, struct sst_byt_stream *stream); stream 51 sound/soc/intel/baytrail/sst-baytrail-ipc.h int sst_byt_stream_pause(struct sst_byt *byt, struct sst_byt_stream *stream); stream 52 sound/soc/intel/baytrail/sst-baytrail-ipc.h int sst_byt_stream_resume(struct sst_byt *byt, struct sst_byt_stream *stream); stream 55 sound/soc/intel/baytrail/sst-baytrail-ipc.h struct sst_byt_stream *stream, int buffer_size); stream 38 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_stream *stream; stream 67 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; stream 71 sound/soc/intel/baytrail/sst-baytrail-pcm.c int ret, playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 75 sound/soc/intel/baytrail/sst-baytrail-pcm.c ret = sst_byt_stream_type(byt, pcm_data->stream, stream 83 sound/soc/intel/baytrail/sst-baytrail-pcm.c ret = sst_byt_stream_set_rate(byt, pcm_data->stream, rate); stream 90 sound/soc/intel/baytrail/sst-baytrail-pcm.c ret = sst_byt_stream_set_bits(byt, pcm_data->stream, bits); stream 98 sound/soc/intel/baytrail/sst-baytrail-pcm.c ret = sst_byt_stream_set_channels(byt, pcm_data->stream, channels); stream 107 sound/soc/intel/baytrail/sst-baytrail-pcm.c ret = sst_byt_stream_buffer(byt, pcm_data->stream, stream 115 sound/soc/intel/baytrail/sst-baytrail-pcm.c ret = sst_byt_stream_commit(byt, pcm_data->stream); stream 139 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; stream 144 sound/soc/intel/baytrail/sst-baytrail-pcm.c ret = sst_byt_stream_commit(byt, pcm_data->stream); stream 150 sound/soc/intel/baytrail/sst-baytrail-pcm.c sst_byt_stream_start(byt, pcm_data->stream, pcm_data->hw_ptr); stream 172 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; stream 180 sound/soc/intel/baytrail/sst-baytrail-pcm.c sst_byt_stream_start(byt, pcm_data->stream, 0); stream 186 sound/soc/intel/baytrail/sst-baytrail-pcm.c sst_byt_stream_resume(byt, pcm_data->stream); stream 189 sound/soc/intel/baytrail/sst-baytrail-pcm.c sst_byt_stream_resume(byt, pcm_data->stream); stream 192 sound/soc/intel/baytrail/sst-baytrail-pcm.c sst_byt_stream_stop(byt, pcm_data->stream); stream 198 sound/soc/intel/baytrail/sst-baytrail-pcm.c sst_byt_stream_pause(byt, pcm_data->stream); stream 207 sound/soc/intel/baytrail/sst-baytrail-pcm.c static u32 byt_notify_pointer(struct sst_byt_stream *stream, void *data) stream 218 sound/soc/intel/baytrail/sst-baytrail-pcm.c hw_pos = sst_byt_get_dsp_position(byt, pcm_data->stream, stream 237 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; stream 249 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; stream 260 sound/soc/intel/baytrail/sst-baytrail-pcm.c pcm_data->stream = sst_byt_stream_new(byt, substream->stream + 1, stream 262 sound/soc/intel/baytrail/sst-baytrail-pcm.c if (pcm_data->stream == NULL) { stream 277 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; stream 285 sound/soc/intel/baytrail/sst-baytrail-pcm.c ret = sst_byt_stream_free(byt, pcm_data->stream); stream 290 sound/soc/intel/baytrail/sst-baytrail-pcm.c pcm_data->stream = NULL; stream 237 sound/soc/intel/haswell/sst-haswell-ipc.c u32 (*notify_position)(struct sst_hsw_stream *stream, void *data); stream 414 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_stream *stream; stream 416 sound/soc/intel/haswell/sst-haswell-ipc.c list_for_each_entry(stream, &hsw->stream_list, node) { stream 417 sound/soc/intel/haswell/sst-haswell-ipc.c if (stream->reply.stream_hw_id == stream_id) stream 418 sound/soc/intel/haswell/sst-haswell-ipc.c return stream; stream 468 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_stream *stream = container_of(work, stream 470 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_ipc_stream_glitch_position *glitch = &stream->glitch; stream 471 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_ipc_stream_get_position *pos = &stream->rpos; stream 472 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw *hsw = stream->hsw; stream 475 sound/soc/intel/haswell/sst-haswell-ipc.c reason = msg_get_notify_reason(stream->header); stream 480 sound/soc/intel/haswell/sst-haswell-ipc.c stream->reply.stream_hw_id); stream 490 sound/soc/intel/haswell/sst-haswell-ipc.c stream->reply.stream_hw_id); stream 493 sound/soc/intel/haswell/sst-haswell-ipc.c if (stream->notify_position) stream 494 sound/soc/intel/haswell/sst-haswell-ipc.c stream->notify_position(stream, stream->pdata); stream 499 sound/soc/intel/haswell/sst-haswell-ipc.c stream->header); stream 513 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_stream *stream; stream 518 sound/soc/intel/haswell/sst-haswell-ipc.c stream = get_stream_by_id(hsw, stream_id); stream 519 sound/soc/intel/haswell/sst-haswell-ipc.c if (stream == NULL) stream 527 sound/soc/intel/haswell/sst-haswell-ipc.c trace_ipc_notification("stream reset", stream->reply.stream_hw_id); stream 530 sound/soc/intel/haswell/sst-haswell-ipc.c stream->running = false; stream 532 sound/soc/intel/haswell/sst-haswell-ipc.c stream->reply.stream_hw_id); stream 535 sound/soc/intel/haswell/sst-haswell-ipc.c stream->running = true; stream 537 sound/soc/intel/haswell/sst-haswell-ipc.c stream->reply.stream_hw_id); stream 657 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_stream *stream; stream 663 sound/soc/intel/haswell/sst-haswell-ipc.c stream = get_stream_by_id(hsw, stream_id); stream 664 sound/soc/intel/haswell/sst-haswell-ipc.c if (stream == NULL) stream 667 sound/soc/intel/haswell/sst-haswell-ipc.c stream->header = header; stream 675 sound/soc/intel/haswell/sst-haswell-ipc.c schedule_work(&stream->notify_work); stream 689 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_log_stream *stream = &hsw->log_stream; stream 698 sound/soc/intel/haswell/sst-haswell-ipc.c mutex_lock(&stream->rw_mutex); stream 699 sound/soc/intel/haswell/sst-haswell-ipc.c stream->last_pos = stream->curr_pos; stream 701 sound/soc/intel/haswell/sst-haswell-ipc.c hsw->dsp, &stream->curr_pos, sizeof(stream->curr_pos)); stream 702 sound/soc/intel/haswell/sst-haswell-ipc.c mutex_unlock(&stream->rw_mutex); stream 704 sound/soc/intel/haswell/sst-haswell-ipc.c schedule_work(&stream->notify_work); stream 828 sound/soc/intel/haswell/sst-haswell-ipc.c int sst_hsw_stream_get_volume(struct sst_hsw *hsw, struct sst_hsw_stream *stream, stream 835 sound/soc/intel/haswell/sst-haswell-ipc.c stream->reply.volume_register_address[channel], stream 843 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_stream *stream, u32 stage_id, u32 channel, u32 volume) stream 849 sound/soc/intel/haswell/sst-haswell-ipc.c trace_ipc_request("set stream volume", stream->reply.stream_hw_id); stream 856 sound/soc/intel/haswell/sst-haswell-ipc.c request.header |= (stream->reply.stream_hw_id << IPC_STR_ID_SHIFT); stream 860 sound/soc/intel/haswell/sst-haswell-ipc.c req = &stream->vol_req; stream 963 sound/soc/intel/haswell/sst-haswell-ipc.c u32 (*notify_position)(struct sst_hsw_stream *stream, void *data), stream 966 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_stream *stream; stream 970 sound/soc/intel/haswell/sst-haswell-ipc.c stream = kzalloc(sizeof(*stream), GFP_KERNEL); stream 971 sound/soc/intel/haswell/sst-haswell-ipc.c if (stream == NULL) stream 975 sound/soc/intel/haswell/sst-haswell-ipc.c stream->reply.stream_hw_id = INVALID_STREAM_HW_ID; stream 976 sound/soc/intel/haswell/sst-haswell-ipc.c list_add(&stream->node, &hsw->stream_list); stream 977 sound/soc/intel/haswell/sst-haswell-ipc.c stream->notify_position = notify_position; stream 978 sound/soc/intel/haswell/sst-haswell-ipc.c stream->pdata = data; stream 979 sound/soc/intel/haswell/sst-haswell-ipc.c stream->hsw = hsw; stream 980 sound/soc/intel/haswell/sst-haswell-ipc.c stream->host_id = id; stream 983 sound/soc/intel/haswell/sst-haswell-ipc.c INIT_WORK(&stream->notify_work, hsw_notification_work); stream 986 sound/soc/intel/haswell/sst-haswell-ipc.c return stream; stream 989 sound/soc/intel/haswell/sst-haswell-ipc.c int sst_hsw_stream_free(struct sst_hsw *hsw, struct sst_hsw_stream *stream) stream 996 sound/soc/intel/haswell/sst-haswell-ipc.c if (!stream) { stream 1002 sound/soc/intel/haswell/sst-haswell-ipc.c if (!stream->commited) stream 1005 sound/soc/intel/haswell/sst-haswell-ipc.c trace_ipc_request("stream free", stream->host_id); stream 1007 sound/soc/intel/haswell/sst-haswell-ipc.c stream->free_req.stream_id = stream->reply.stream_hw_id; stream 1009 sound/soc/intel/haswell/sst-haswell-ipc.c request.data = &stream->free_req; stream 1010 sound/soc/intel/haswell/sst-haswell-ipc.c request.size = sizeof(stream->free_req); stream 1015 sound/soc/intel/haswell/sst-haswell-ipc.c stream->free_req.stream_id); stream 1019 sound/soc/intel/haswell/sst-haswell-ipc.c trace_hsw_stream_free_req(stream, &stream->free_req); stream 1022 sound/soc/intel/haswell/sst-haswell-ipc.c cancel_work_sync(&stream->notify_work); stream 1024 sound/soc/intel/haswell/sst-haswell-ipc.c list_del(&stream->node); stream 1025 sound/soc/intel/haswell/sst-haswell-ipc.c kfree(stream); stream 1032 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_stream *stream, enum sst_hsw_bitdepth bits) stream 1034 sound/soc/intel/haswell/sst-haswell-ipc.c if (stream->commited) { stream 1039 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.format.bitdepth = bits; stream 1044 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_stream *stream, int channels) stream 1046 sound/soc/intel/haswell/sst-haswell-ipc.c if (stream->commited) { stream 1051 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.format.ch_num = channels; stream 1056 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_stream *stream, int rate) stream 1058 sound/soc/intel/haswell/sst-haswell-ipc.c if (stream->commited) { stream 1063 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.format.frequency = rate; stream 1068 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_stream *stream, u32 map, stream 1071 sound/soc/intel/haswell/sst-haswell-ipc.c if (stream->commited) { stream 1076 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.format.map = map; stream 1077 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.format.config = config; stream 1082 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_stream *stream, enum sst_hsw_interleaving style) stream 1084 sound/soc/intel/haswell/sst-haswell-ipc.c if (stream->commited) { stream 1089 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.format.style = style; stream 1094 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_stream *stream, u32 bits) stream 1096 sound/soc/intel/haswell/sst-haswell-ipc.c if (stream->commited) { stream 1101 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.format.valid_bit = bits; stream 1106 sound/soc/intel/haswell/sst-haswell-ipc.c int sst_hsw_stream_format(struct sst_hsw *hsw, struct sst_hsw_stream *stream, stream 1111 sound/soc/intel/haswell/sst-haswell-ipc.c if (stream->commited) { stream 1116 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.path_id = path_id; stream 1117 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.stream_type = stream_type; stream 1118 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.format_id = format_id; stream 1120 sound/soc/intel/haswell/sst-haswell-ipc.c trace_hsw_stream_alloc_request(stream, &stream->request); stream 1125 sound/soc/intel/haswell/sst-haswell-ipc.c int sst_hsw_stream_buffer(struct sst_hsw *hsw, struct sst_hsw_stream *stream, stream 1129 sound/soc/intel/haswell/sst-haswell-ipc.c if (stream->commited) { stream 1134 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.ringinfo.ring_pt_address = ring_pt_address; stream 1135 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.ringinfo.num_pages = num_pages; stream 1136 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.ringinfo.ring_size = ring_size; stream 1137 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.ringinfo.ring_offset = ring_offset; stream 1138 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.ringinfo.ring_first_pfn = ring_first_pfn; stream 1140 sound/soc/intel/haswell/sst-haswell-ipc.c trace_hsw_stream_buffer(stream); stream 1146 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_stream *stream, struct sst_module_runtime *runtime) stream 1148 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_module_map *map = &stream->request.map; stream 1152 sound/soc/intel/haswell/sst-haswell-ipc.c if (stream->commited) { stream 1162 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.persistent_mem.offset = stream 1164 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.persistent_mem.size = module->persistent_size; stream 1166 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.scratch_mem.offset = stream 1168 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.scratch_mem.size = dsp->scratch_size; stream 1173 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.persistent_mem.offset, stream 1174 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.persistent_mem.size); stream 1176 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.scratch_mem.offset, stream 1177 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.scratch_mem.size); stream 1182 sound/soc/intel/haswell/sst-haswell-ipc.c int sst_hsw_stream_commit(struct sst_hsw *hsw, struct sst_hsw_stream *stream) stream 1187 sound/soc/intel/haswell/sst-haswell-ipc.c if (!stream) { stream 1192 sound/soc/intel/haswell/sst-haswell-ipc.c if (stream->commited) { stream 1197 sound/soc/intel/haswell/sst-haswell-ipc.c trace_ipc_request("stream alloc", stream->host_id); stream 1200 sound/soc/intel/haswell/sst-haswell-ipc.c request.data = &stream->request; stream 1201 sound/soc/intel/haswell/sst-haswell-ipc.c request.size = sizeof(stream->request); stream 1202 sound/soc/intel/haswell/sst-haswell-ipc.c reply.data = &stream->reply; stream 1203 sound/soc/intel/haswell/sst-haswell-ipc.c reply.size = sizeof(stream->reply); stream 1211 sound/soc/intel/haswell/sst-haswell-ipc.c stream->commited = true; stream 1212 sound/soc/intel/haswell/sst-haswell-ipc.c trace_hsw_stream_alloc_reply(stream); stream 1218 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_stream *stream) stream 1220 sound/soc/intel/haswell/sst-haswell-ipc.c return stream->old_position; stream 1224 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_stream *stream, snd_pcm_uframes_t val) stream 1226 sound/soc/intel/haswell/sst-haswell-ipc.c stream->old_position = val; stream 1230 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_stream *stream) stream 1232 sound/soc/intel/haswell/sst-haswell-ipc.c return stream->play_silence; stream 1236 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_stream *stream, bool val) stream 1238 sound/soc/intel/haswell/sst-haswell-ipc.c stream->play_silence = val; stream 1281 sound/soc/intel/haswell/sst-haswell-ipc.c int sst_hsw_stream_pause(struct sst_hsw *hsw, struct sst_hsw_stream *stream, stream 1286 sound/soc/intel/haswell/sst-haswell-ipc.c if (!stream) { stream 1291 sound/soc/intel/haswell/sst-haswell-ipc.c trace_ipc_request("stream pause", stream->reply.stream_hw_id); stream 1294 sound/soc/intel/haswell/sst-haswell-ipc.c stream->reply.stream_hw_id, wait); stream 1297 sound/soc/intel/haswell/sst-haswell-ipc.c stream->reply.stream_hw_id); stream 1302 sound/soc/intel/haswell/sst-haswell-ipc.c int sst_hsw_stream_resume(struct sst_hsw *hsw, struct sst_hsw_stream *stream, stream 1307 sound/soc/intel/haswell/sst-haswell-ipc.c if (!stream) { stream 1312 sound/soc/intel/haswell/sst-haswell-ipc.c trace_ipc_request("stream resume", stream->reply.stream_hw_id); stream 1315 sound/soc/intel/haswell/sst-haswell-ipc.c stream->reply.stream_hw_id, wait); stream 1318 sound/soc/intel/haswell/sst-haswell-ipc.c stream->reply.stream_hw_id); stream 1323 sound/soc/intel/haswell/sst-haswell-ipc.c int sst_hsw_stream_reset(struct sst_hsw *hsw, struct sst_hsw_stream *stream) stream 1327 sound/soc/intel/haswell/sst-haswell-ipc.c if (!stream) { stream 1333 sound/soc/intel/haswell/sst-haswell-ipc.c if (!stream->commited) stream 1337 sound/soc/intel/haswell/sst-haswell-ipc.c while (stream->running && --tries) stream 1341 sound/soc/intel/haswell/sst-haswell-ipc.c stream->reply.stream_hw_id); stream 1345 sound/soc/intel/haswell/sst-haswell-ipc.c trace_ipc_request("stream reset", stream->reply.stream_hw_id); stream 1348 sound/soc/intel/haswell/sst-haswell-ipc.c stream->reply.stream_hw_id, 1); stream 1351 sound/soc/intel/haswell/sst-haswell-ipc.c stream->reply.stream_hw_id); stream 1357 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_stream *stream) stream 1362 sound/soc/intel/haswell/sst-haswell-ipc.c stream->reply.read_position_register_address, sizeof(rpos)); stream 1369 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw_stream *stream) stream 1374 sound/soc/intel/haswell/sst-haswell-ipc.c stream->reply.presentation_position_register_address, stream 405 sound/soc/intel/haswell/sst-haswell-ipc.h struct sst_hsw_stream *stream, u32 stage_id, u32 channel, u32 volume); stream 407 sound/soc/intel/haswell/sst-haswell-ipc.h struct sst_hsw_stream *stream, u32 stage_id, u32 channel, u32 *volume); stream 417 sound/soc/intel/haswell/sst-haswell-ipc.h u32 (*get_write_position)(struct sst_hsw_stream *stream, void *data), stream 420 sound/soc/intel/haswell/sst-haswell-ipc.h int sst_hsw_stream_free(struct sst_hsw *hsw, struct sst_hsw_stream *stream); stream 423 sound/soc/intel/haswell/sst-haswell-ipc.h int sst_hsw_stream_format(struct sst_hsw *hsw, struct sst_hsw_stream *stream, stream 428 sound/soc/intel/haswell/sst-haswell-ipc.h int sst_hsw_stream_buffer(struct sst_hsw *hsw, struct sst_hsw_stream *stream, stream 432 sound/soc/intel/haswell/sst-haswell-ipc.h int sst_hsw_stream_commit(struct sst_hsw *hsw, struct sst_hsw_stream *stream); stream 434 sound/soc/intel/haswell/sst-haswell-ipc.h int sst_hsw_stream_set_valid(struct sst_hsw *hsw, struct sst_hsw_stream *stream, stream 436 sound/soc/intel/haswell/sst-haswell-ipc.h int sst_hsw_stream_set_rate(struct sst_hsw *hsw, struct sst_hsw_stream *stream, stream 438 sound/soc/intel/haswell/sst-haswell-ipc.h int sst_hsw_stream_set_bits(struct sst_hsw *hsw, struct sst_hsw_stream *stream, stream 441 sound/soc/intel/haswell/sst-haswell-ipc.h struct sst_hsw_stream *stream, int channels); stream 443 sound/soc/intel/haswell/sst-haswell-ipc.h struct sst_hsw_stream *stream, u32 map, stream 445 sound/soc/intel/haswell/sst-haswell-ipc.h int sst_hsw_stream_set_style(struct sst_hsw *hsw, struct sst_hsw_stream *stream, stream 448 sound/soc/intel/haswell/sst-haswell-ipc.h struct sst_hsw_stream *stream, struct sst_module_runtime *runtime); stream 450 sound/soc/intel/haswell/sst-haswell-ipc.h struct sst_hsw_stream *stream, u32 offset, u32 size); stream 452 sound/soc/intel/haswell/sst-haswell-ipc.h struct sst_hsw_stream *stream, u32 offset, u32 size); stream 454 sound/soc/intel/haswell/sst-haswell-ipc.h struct sst_hsw_stream *stream); stream 456 sound/soc/intel/haswell/sst-haswell-ipc.h struct sst_hsw_stream *stream, snd_pcm_uframes_t val); stream 458 sound/soc/intel/haswell/sst-haswell-ipc.h struct sst_hsw_stream *stream); stream 460 sound/soc/intel/haswell/sst-haswell-ipc.h struct sst_hsw_stream *stream, bool val); stream 464 sound/soc/intel/haswell/sst-haswell-ipc.h int sst_hsw_stream_pause(struct sst_hsw *hsw, struct sst_hsw_stream *stream, stream 466 sound/soc/intel/haswell/sst-haswell-ipc.h int sst_hsw_stream_resume(struct sst_hsw *hsw, struct sst_hsw_stream *stream, stream 468 sound/soc/intel/haswell/sst-haswell-ipc.h int sst_hsw_stream_reset(struct sst_hsw *hsw, struct sst_hsw_stream *stream); stream 472 sound/soc/intel/haswell/sst-haswell-ipc.h struct sst_hsw_stream *stream, u32 *position); stream 474 sound/soc/intel/haswell/sst-haswell-ipc.h struct sst_hsw_stream *stream, u32 *position); stream 476 sound/soc/intel/haswell/sst-haswell-ipc.h struct sst_hsw_stream *stream); stream 478 sound/soc/intel/haswell/sst-haswell-ipc.h struct sst_hsw_stream *stream); stream 98 sound/soc/intel/haswell/sst-haswell-pcm.c int stream; stream 105 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw_stream *stream; stream 150 sound/soc/intel/haswell/sst-haswell-pcm.c static u32 hsw_notify_pointer(struct sst_hsw_stream *stream, void *data); stream 183 sound/soc/intel/haswell/sst-haswell-pcm.c int dai, stream; stream 186 sound/soc/intel/haswell/sst-haswell-pcm.c stream = mod_map[mc->reg].stream; stream 187 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][stream]; stream 192 sound/soc/intel/haswell/sst-haswell-pcm.c if (!pcm_data->stream) { stream 207 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_stream_set_volume(hsw, pcm_data->stream, 0, SST_HSW_CHANNELS_ALL, volume); stream 210 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_stream_set_volume(hsw, pcm_data->stream, 0, 0, volume); stream 212 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_stream_set_volume(hsw, pcm_data->stream, 0, 1, volume); stream 232 sound/soc/intel/haswell/sst-haswell-pcm.c int dai, stream; stream 235 sound/soc/intel/haswell/sst-haswell-pcm.c stream = mod_map[mc->reg].stream; stream 236 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][stream]; stream 241 sound/soc/intel/haswell/sst-haswell-pcm.c if (!pcm_data->stream) { stream 252 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_stream_get_volume(hsw, pcm_data->stream, 0, 0, &volume); stream 254 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_stream_get_volume(hsw, pcm_data->stream, 0, 1, &volume); stream 435 sound/soc/intel/haswell/sst-haswell-pcm.c int i, pages, stream = substream->stream; stream 449 sound/soc/intel/haswell/sst-haswell-pcm.c pg_table = (u32 *)(pdata->dmab[pcm][stream].area + idx); stream 480 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][substream->stream]; stream 484 sound/soc/intel/haswell/sst-haswell-pcm.c ret = sst_hsw_stream_reset(hsw, pcm_data->stream); stream 489 sound/soc/intel/haswell/sst-haswell-pcm.c ret = sst_hsw_stream_free(hsw, pcm_data->stream); stream 497 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data->stream = sst_hsw_stream_new(hsw, rtd->cpu_dai->id, stream 499 sound/soc/intel/haswell/sst-haswell-pcm.c if (pcm_data->stream == NULL) { stream 506 sound/soc/intel/haswell/sst-haswell-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 514 sound/soc/intel/haswell/sst-haswell-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 540 sound/soc/intel/haswell/sst-haswell-pcm.c ret = sst_hsw_stream_format(hsw, pcm_data->stream, stream 548 sound/soc/intel/haswell/sst-haswell-pcm.c ret = sst_hsw_stream_set_rate(hsw, pcm_data->stream, rate); stream 557 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_stream_set_valid(hsw, pcm_data->stream, 16); stream 561 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_stream_set_valid(hsw, pcm_data->stream, 24); stream 565 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_stream_set_valid(hsw, pcm_data->stream, 8); stream 569 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_stream_set_valid(hsw, pcm_data->stream, 32); stream 577 sound/soc/intel/haswell/sst-haswell-pcm.c ret = sst_hsw_stream_set_bits(hsw, pcm_data->stream, bits); stream 585 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_stream_set_map_config(hsw, pcm_data->stream, stream 588 sound/soc/intel/haswell/sst-haswell-pcm.c ret = sst_hsw_stream_set_channels(hsw, pcm_data->stream, channels); stream 609 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_stream_set_style(hsw, pcm_data->stream, stream 617 sound/soc/intel/haswell/sst-haswell-pcm.c ret = sst_hsw_stream_buffer(hsw, pcm_data->stream, stream 618 sound/soc/intel/haswell/sst-haswell-pcm.c pdata->dmab[rtd->cpu_dai->id][substream->stream].addr, stream 634 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_stream_set_module_info(hsw, pcm_data->stream, stream 637 sound/soc/intel/haswell/sst-haswell-pcm.c ret = sst_hsw_stream_commit(hsw, pcm_data->stream); stream 645 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_stream_set_volume(hsw, pcm_data->stream, 0, stream 647 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_stream_set_volume(hsw, pcm_data->stream, 0, stream 652 sound/soc/intel/haswell/sst-haswell-pcm.c ret = sst_hsw_stream_pause(hsw, pcm_data->stream, 1); stream 678 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][substream->stream]; stream 679 sound/soc/intel/haswell/sst-haswell-pcm.c sst_stream = pcm_data->stream; stream 686 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_stream_resume(hsw, pcm_data->stream, 0); stream 692 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_stream_pause(hsw, pcm_data->stream, 0); stream 696 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_stream_set_old_position(hsw, pcm_data->stream, pos); stream 706 sound/soc/intel/haswell/sst-haswell-pcm.c static u32 hsw_notify_pointer(struct sst_hsw_stream *stream, void *data) stream 717 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_get_dsp_position(hsw, pcm_data->stream)); stream 733 sound/soc/intel/haswell/sst-haswell-pcm.c || (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 734 sound/soc/intel/haswell/sst-haswell-pcm.c || !sst_hsw_stream_get_silence_start(hsw, stream)) { stream 739 sound/soc/intel/haswell/sst-haswell-pcm.c old_position = sst_hsw_stream_get_old_position(hsw, stream); stream 766 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_stream_set_old_position(hsw, stream, position); stream 787 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][substream->stream]; stream 788 sound/soc/intel/haswell/sst-haswell-pcm.c position = sst_hsw_get_dsp_position(hsw, pcm_data->stream); stream 791 sound/soc/intel/haswell/sst-haswell-pcm.c ppos = sst_hsw_get_dsp_presentation_position(hsw, pcm_data->stream); stream 808 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][substream->stream]; stream 817 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data->stream = sst_hsw_stream_new(hsw, rtd->cpu_dai->id, stream 819 sound/soc/intel/haswell/sst-haswell-pcm.c if (pcm_data->stream == NULL) { stream 841 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][substream->stream]; stream 844 sound/soc/intel/haswell/sst-haswell-pcm.c ret = sst_hsw_stream_reset(hsw, pcm_data->stream); stream 850 sound/soc/intel/haswell/sst-haswell-pcm.c ret = sst_hsw_stream_free(hsw, pcm_data->stream); stream 856 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data->stream = NULL; stream 883 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[mod_map[i].dai_id][mod_map[i].stream]; stream 906 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[mod_map[i].dai_id][mod_map[i].stream]; stream 920 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[mod_map[i].dai_id][mod_map[i].stream]; stream 1293 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[mod_map[i].dai_id][mod_map[i].stream]; stream 1327 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[mod_map[i].dai_id][mod_map[i].stream]; stream 1340 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[mod_map[i].dai_id][mod_map[i].stream]; stream 128 sound/soc/intel/skylake/skl-debug.c mconfig->pipe->p_params->stream); stream 54 sound/soc/intel/skylake/skl-messages.c struct hdac_stream *stream = snd_hdac_get_stream(bus, stream 58 sound/soc/intel/skylake/skl-messages.c if (!stream) stream 61 sound/soc/intel/skylake/skl-messages.c estream = stream_to_hdac_ext_stream(stream); stream 63 sound/soc/intel/skylake/skl-messages.c snd_hdac_ext_stream_spbcap_enable(bus, enable, stream->index); stream 76 sound/soc/intel/skylake/skl-messages.c struct hdac_stream *stream; stream 84 sound/soc/intel/skylake/skl-messages.c substream.stream = SNDRV_PCM_STREAM_PLAYBACK; stream 91 sound/soc/intel/skylake/skl-messages.c stream = hdac_stream(estream); stream 94 sound/soc/intel/skylake/skl-messages.c ret = snd_hdac_dsp_prepare(stream, format, size, dmab); stream 98 sound/soc/intel/skylake/skl-messages.c skl_dsp_setup_spib(dev, size, stream->stream_tag, true); stream 100 sound/soc/intel/skylake/skl-messages.c return stream->stream_tag; stream 106 sound/soc/intel/skylake/skl-messages.c struct hdac_stream *stream; stream 111 sound/soc/intel/skylake/skl-messages.c stream = snd_hdac_get_stream(bus, stream 113 sound/soc/intel/skylake/skl-messages.c if (!stream) stream 116 sound/soc/intel/skylake/skl-messages.c snd_hdac_dsp_trigger(stream, start); stream 125 sound/soc/intel/skylake/skl-messages.c struct hdac_stream *stream; stream 131 sound/soc/intel/skylake/skl-messages.c stream = snd_hdac_get_stream(bus, stream 133 sound/soc/intel/skylake/skl-messages.c if (!stream) stream 136 sound/soc/intel/skylake/skl-messages.c estream = stream_to_hdac_ext_stream(stream); stream 140 sound/soc/intel/skylake/skl-messages.c snd_hdac_dsp_cleanup(stream, dmab); stream 64 sound/soc/intel/skylake/skl-pcm.c struct hdac_ext_stream *stream = get_hdac_ext_stream(substream); stream 65 sound/soc/intel/skylake/skl-pcm.c struct hdac_stream *hstream = hdac_stream(stream); stream 74 sound/soc/intel/skylake/skl-pcm.c struct hdac_ext_stream *stream = get_hdac_ext_stream(substream); stream 76 sound/soc/intel/skylake/skl-pcm.c hdac_stream(stream)->bufsize = 0; stream 77 sound/soc/intel/skylake/skl-pcm.c hdac_stream(stream)->period_bytes = 0; stream 78 sound/soc/intel/skylake/skl-pcm.c hdac_stream(stream)->format_val = 0; stream 121 sound/soc/intel/skylake/skl-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 138 sound/soc/intel/skylake/skl-pcm.c struct hdac_ext_stream *stream; stream 141 sound/soc/intel/skylake/skl-pcm.c hstream = snd_hdac_get_stream(bus, params->stream, stream 146 sound/soc/intel/skylake/skl-pcm.c stream = stream_to_hdac_ext_stream(hstream); stream 147 sound/soc/intel/skylake/skl-pcm.c snd_hdac_ext_stream_decouple(bus, stream, true); stream 155 sound/soc/intel/skylake/skl-pcm.c snd_hdac_stream_reset(hdac_stream(stream)); stream 156 sound/soc/intel/skylake/skl-pcm.c err = snd_hdac_stream_set_params(hdac_stream(stream), format_val); stream 165 sound/soc/intel/skylake/skl-pcm.c snd_hdac_ext_stream_decouple(bus, stream, false); stream 166 sound/soc/intel/skylake/skl-pcm.c err = snd_hdac_stream_setup(hdac_stream(stream)); stream 167 sound/soc/intel/skylake/skl-pcm.c snd_hdac_ext_stream_decouple(bus, stream, true); stream 169 sound/soc/intel/skylake/skl-pcm.c err = snd_hdac_stream_setup(hdac_stream(stream)); stream 175 sound/soc/intel/skylake/skl-pcm.c hdac_stream(stream)->prepared = 1; stream 185 sound/soc/intel/skylake/skl-pcm.c struct hdac_ext_stream *stream; stream 189 sound/soc/intel/skylake/skl-pcm.c hstream = snd_hdac_get_stream(bus, params->stream, stream 194 sound/soc/intel/skylake/skl-pcm.c stream = stream_to_hdac_ext_stream(hstream); stream 195 sound/soc/intel/skylake/skl-pcm.c snd_hdac_ext_stream_decouple(bus, stream, true); stream 202 sound/soc/intel/skylake/skl-pcm.c snd_hdac_ext_link_stream_reset(stream); stream 204 sound/soc/intel/skylake/skl-pcm.c snd_hdac_ext_link_stream_setup(stream, format_val); stream 207 sound/soc/intel/skylake/skl-pcm.c if (stream->hstream.direction == SNDRV_PCM_STREAM_PLAYBACK) { stream 215 sound/soc/intel/skylake/skl-pcm.c stream->link_prepared = 1; stream 224 sound/soc/intel/skylake/skl-pcm.c struct hdac_ext_stream *stream; stream 232 sound/soc/intel/skylake/skl-pcm.c stream = snd_hdac_ext_stream_assign(bus, substream, stream 234 sound/soc/intel/skylake/skl-pcm.c if (stream == NULL) stream 243 sound/soc/intel/skylake/skl-pcm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 248 sound/soc/intel/skylake/skl-pcm.c runtime->private_data = stream; stream 254 sound/soc/intel/skylake/skl-pcm.c dma_params->stream_tag = hdac_stream(stream)->stream_tag; stream 262 sound/soc/intel/skylake/skl-pcm.c mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream); stream 280 sound/soc/intel/skylake/skl-pcm.c mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream); stream 310 sound/soc/intel/skylake/skl-pcm.c struct hdac_ext_stream *stream = get_hdac_ext_stream(substream); stream 325 sound/soc/intel/skylake/skl-pcm.c dma_id = hdac_stream(stream)->stream_tag - 1; stream 332 sound/soc/intel/skylake/skl-pcm.c p_params.stream = substream->stream; stream 334 sound/soc/intel/skylake/skl-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 340 sound/soc/intel/skylake/skl-pcm.c m_cfg = skl_tplg_fe_get_cpr_module(dai, p_params.stream); stream 350 sound/soc/intel/skylake/skl-pcm.c struct hdac_ext_stream *stream = get_hdac_ext_stream(substream); stream 358 sound/soc/intel/skylake/skl-pcm.c snd_hdac_ext_stream_release(stream, skl_get_host_stream_type(bus)); stream 378 sound/soc/intel/skylake/skl-pcm.c mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream); stream 389 sound/soc/intel/skylake/skl-pcm.c struct hdac_ext_stream *stream = get_hdac_ext_stream(substream); stream 396 sound/soc/intel/skylake/skl-pcm.c mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream); stream 405 sound/soc/intel/skylake/skl-pcm.c snd_hdac_stream_cleanup(hdac_stream(stream)); stream 406 sound/soc/intel/skylake/skl-pcm.c hdac_stream(stream)->prepared = 0; stream 420 sound/soc/intel/skylake/skl-pcm.c p_params.stream = substream->stream; stream 429 sound/soc/intel/skylake/skl-pcm.c struct hdac_ext_stream *stream; stream 434 sound/soc/intel/skylake/skl-pcm.c stream = get_hdac_ext_stream(substream); stream 435 sound/soc/intel/skylake/skl-pcm.c hstr = hdac_stream(stream); stream 460 sound/soc/intel/skylake/skl-pcm.c snd_hdac_stream_start(hdac_stream(stream), true); stream 463 sound/soc/intel/skylake/skl-pcm.c snd_hdac_stream_stop(hdac_stream(stream)); stream 477 sound/soc/intel/skylake/skl-pcm.c struct hdac_ext_stream *stream = get_hdac_ext_stream(substream); stream 481 sound/soc/intel/skylake/skl-pcm.c mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream); stream 485 sound/soc/intel/skylake/skl-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 499 sound/soc/intel/skylake/skl-pcm.c hdac_stream(stream)->index); stream 500 sound/soc/intel/skylake/skl-pcm.c snd_hdac_ext_stream_set_dpibr(bus, stream, stream 501 sound/soc/intel/skylake/skl-pcm.c stream->lpib); stream 502 sound/soc/intel/skylake/skl-pcm.c snd_hdac_ext_stream_set_lpib(stream, stream->lpib); stream 535 sound/soc/intel/skylake/skl-pcm.c stream->dpib = readl(bus->remap_addr + stream 538 sound/soc/intel/skylake/skl-pcm.c hdac_stream(stream)->index)); stream 540 sound/soc/intel/skylake/skl-pcm.c stream->lpib = snd_hdac_stream_get_pos_lpib( stream 541 sound/soc/intel/skylake/skl-pcm.c hdac_stream(stream)); stream 542 sound/soc/intel/skylake/skl-pcm.c snd_hdac_ext_stream_decouple(bus, stream, false); stream 580 sound/soc/intel/skylake/skl-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 588 sound/soc/intel/skylake/skl-pcm.c p_params.stream = substream->stream; stream 593 sound/soc/intel/skylake/skl-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 608 sound/soc/intel/skylake/skl-pcm.c mconfig = skl_tplg_be_get_cpr_module(dai, substream->stream); stream 622 sound/soc/intel/skylake/skl-pcm.c struct hdac_ext_stream *stream = get_hdac_ext_stream(substream); stream 637 sound/soc/intel/skylake/skl-pcm.c snd_hdac_ext_stream_decouple(bus, stream, false); stream 664 sound/soc/intel/skylake/skl-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 1101 sound/soc/intel/skylake/skl-pcm.c struct hdac_ext_stream *stream; stream 1108 sound/soc/intel/skylake/skl-pcm.c stream = get_hdac_ext_stream(substream); stream 1109 sound/soc/intel/skylake/skl-pcm.c hstr = hdac_stream(stream); stream 1136 sound/soc/intel/skylake/skl-pcm.c stream = get_hdac_ext_stream(s); stream 1137 sound/soc/intel/skylake/skl-pcm.c sbits |= 1 << hdac_stream(stream)->index; stream 1149 sound/soc/intel/skylake/skl-pcm.c stream = get_hdac_ext_stream(s); stream 1151 sound/soc/intel/skylake/skl-pcm.c snd_hdac_stream_start(hdac_stream(stream), true); stream 1153 sound/soc/intel/skylake/skl-pcm.c snd_hdac_stream_stop(hdac_stream(stream)); stream 1209 sound/soc/intel/skylake/skl-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 1242 sound/soc/intel/skylake/skl-pcm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 200 sound/soc/intel/skylake/skl-topology.c if (params->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 1519 sound/soc/intel/skylake/skl-topology.c pipe->p_params->stream = params->stream; stream 1549 sound/soc/intel/skylake/skl-topology.c if (params->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1579 sound/soc/intel/skylake/skl-topology.c if (params->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 1598 sound/soc/intel/skylake/skl-topology.c skl_tplg_fe_get_cpr_module(struct snd_soc_dai *dai, int stream) stream 1603 sound/soc/intel/skylake/skl-topology.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 1679 sound/soc/intel/skylake/skl-topology.c skl_tplg_be_get_cpr_module(struct snd_soc_dai *dai, int stream) stream 1684 sound/soc/intel/skylake/skl-topology.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 1747 sound/soc/intel/skylake/skl-topology.c params->s_freq, params->stream, stream 1755 sound/soc/intel/skylake/skl-topology.c params->stream); stream 1825 sound/soc/intel/skylake/skl-topology.c if (params->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 273 sound/soc/intel/skylake/skl-topology.h int stream; stream 453 sound/soc/intel/skylake/skl-topology.h struct skl_pipe_params *params, int stream); stream 459 sound/soc/intel/skylake/skl-topology.h struct snd_soc_dai *dai, int stream); stream 492 sound/soc/intel/skylake/skl-topology.h int stream); stream 1112 sound/soc/intel/skylake/skl.c struct hdac_ext_stream *stream; stream 1125 sound/soc/intel/skylake/skl.c stream = stream_to_hdac_ext_stream(s); stream 1126 sound/soc/intel/skylake/skl.c snd_hdac_ext_stream_decouple(bus, stream, false); stream 171 sound/soc/jz4740/jz4740-i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 273 sound/soc/jz4740/jz4740-i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 146 sound/soc/kirkwood/kirkwood-dma.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 170 sound/soc/kirkwood/kirkwood-dma.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 211 sound/soc/kirkwood/kirkwood-dma.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 231 sound/soc/kirkwood/kirkwood-dma.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 252 sound/soc/kirkwood/kirkwood-dma.c int stream) stream 254 sound/soc/kirkwood/kirkwood-dma.c struct snd_pcm_substream *substream = pcm->streams[stream].substream; stream 301 sound/soc/kirkwood/kirkwood-dma.c int stream; stream 303 sound/soc/kirkwood/kirkwood-dma.c for (stream = 0; stream < 2; stream++) { stream 304 sound/soc/kirkwood/kirkwood-dma.c substream = pcm->streams[stream].substream; stream 142 sound/soc/kirkwood/kirkwood-i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 198 sound/soc/kirkwood/kirkwood-i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 385 sound/soc/kirkwood/kirkwood-i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 62 sound/soc/mediatek/common/mtk-afe-fe-dai.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 84 sound/soc/mediatek/common/mtk-btcvsd.c int stream; stream 211 sound/soc/mediatek/common/mtk-btcvsd.c bt_stream->stream, state, stream 241 sound/soc/mediatek/common/mtk-btcvsd.c bt->tx->stream = SNDRV_PCM_STREAM_PLAYBACK; stream 254 sound/soc/mediatek/common/mtk-btcvsd.c bt->rx->stream = SNDRV_PCM_STREAM_CAPTURE; stream 650 sound/soc/mediatek/common/mtk-btcvsd.c if (bt_stream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 665 sound/soc/mediatek/common/mtk-btcvsd.c __func__, bt_stream->stream, stream 677 sound/soc/mediatek/common/mtk-btcvsd.c bt_stream->stream, max_timeout_trial); stream 686 sound/soc/mediatek/common/mtk-btcvsd.c bt_stream->stream, max_timeout_trial); stream 860 sound/soc/mediatek/common/mtk-btcvsd.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 887 sound/soc/mediatek/common/mtk-btcvsd.c __func__, substream->stream, substream); stream 891 sound/soc/mediatek/common/mtk-btcvsd.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 910 sound/soc/mediatek/common/mtk-btcvsd.c dev_dbg(bt->dev, "%s(), stream %d\n", __func__, substream->stream); stream 925 sound/soc/mediatek/common/mtk-btcvsd.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && stream 944 sound/soc/mediatek/common/mtk-btcvsd.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 958 sound/soc/mediatek/common/mtk-btcvsd.c dev_dbg(bt->dev, "%s(), stream %d\n", __func__, substream->stream); stream 971 sound/soc/mediatek/common/mtk-btcvsd.c int stream = substream->stream; stream 975 sound/soc/mediatek/common/mtk-btcvsd.c __func__, substream->stream, cmd); stream 980 sound/soc/mediatek/common/mtk-btcvsd.c hw_packet_ptr = stream == SNDRV_PCM_STREAM_PLAYBACK ? stream 1011 sound/soc/mediatek/common/mtk-btcvsd.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 1020 sound/soc/mediatek/common/mtk-btcvsd.c hw_packet_ptr = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? stream 1056 sound/soc/mediatek/common/mtk-btcvsd.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 157 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c if (i2s_path->occupied[substream->stream]) stream 158 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c i2s_path->occupied[substream->stream] = 0; stream 162 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c mt2701_afe_i2s_path_disable(afe, i2s_path, substream->stream); stream 165 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 166 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c mt2701_afe_i2s_path_disable(afe, i2s_path, !substream->stream); stream 245 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c if (i2s_path->occupied[substream->stream]) stream 252 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c i2s_path->occupied[substream->stream] = 1; stream 255 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 256 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c mt2701_i2s_path_enable(afe, i2s_path, !substream->stream, stream 259 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c mt2701_i2s_path_enable(afe, i2s_path, substream->stream, stream 298 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c afe_priv->mrg_enable[substream->stream] = 1; stream 352 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c if (!afe_priv->mrg_enable[!substream->stream]) { stream 362 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c afe_priv->mrg_enable[substream->stream] = 0; stream 370 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c int stream_dir = substream->stream; stream 389 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c int stream_dir = substream->stream; stream 238 sound/soc/mediatek/mt6797/mt6797-dai-adda.c __func__, dai->id, substream->stream, rate); stream 240 sound/soc/mediatek/mt6797/mt6797-dai-adda.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 193 sound/soc/mediatek/mt6797/mt6797-dai-pcm.c substream->stream, stream 360 sound/soc/mediatek/mt8183/mt8183-dai-adda.c __func__, dai->id, substream->stream, rate); stream 362 sound/soc/mediatek/mt8183/mt8183-dai-adda.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 193 sound/soc/mediatek/mt8183/mt8183-dai-pcm.c substream->stream, stream 17 sound/soc/meson/axg-tdm-formatter.c struct axg_tdm_stream *stream; stream 72 sound/soc/meson/axg-tdm-formatter.c struct axg_tdm_stream *ts = formatter->stream; stream 110 sound/soc/meson/axg-tdm-formatter.c formatter->stream); stream 146 sound/soc/meson/axg-tdm-formatter.c struct axg_tdm_stream *ts = formatter->stream; stream 168 sound/soc/meson/axg-tdm-formatter.c struct axg_tdm_stream *ts = formatter->stream; stream 206 sound/soc/meson/axg-tdm-formatter.c formatter->stream = ts; stream 222 sound/soc/meson/axg-tdm-formatter.c formatter->stream = NULL; stream 490 sound/soc/mxs/mxs-saif.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 561 sound/soc/mxs/mxs-saif.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 106 sound/soc/pxa/mmp-pcm.c r = platform_get_resource(pdev, IORESOURCE_DMA, substream->stream); stream 111 sound/soc/pxa/mmp-pcm.c &mmp_pcm_hardware[substream->stream]); stream 146 sound/soc/pxa/mmp-pcm.c int stream; stream 153 sound/soc/pxa/mmp-pcm.c for (stream = 0; stream < 2; stream++) { stream 154 sound/soc/pxa/mmp-pcm.c size_t size = mmp_pcm_hardware[stream].buffer_bytes_max; stream 156 sound/soc/pxa/mmp-pcm.c substream = pcm->streams[stream].substream; stream 170 sound/soc/pxa/mmp-pcm.c int stream) stream 173 sound/soc/pxa/mmp-pcm.c size_t size = mmp_pcm_hardware[stream].buffer_bytes_max; stream 195 sound/soc/pxa/mmp-pcm.c int ret = 0, stream; stream 197 sound/soc/pxa/mmp-pcm.c for (stream = 0; stream < 2; stream++) { stream 198 sound/soc/pxa/mmp-pcm.c substream = pcm->streams[stream].substream; stream 200 sound/soc/pxa/mmp-pcm.c ret = mmp_pcm_preallocate_dma_buffer(substream, stream); stream 260 sound/soc/pxa/mmp-sspa.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 291 sound/soc/pxa/mmp-sspa.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 299 sound/soc/pxa/mmp-sspa.c dma_params = &sspa_priv->dma_params[substream->stream]; stream 300 sound/soc/pxa/mmp-sspa.c dma_params->addr = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? stream 327 sound/soc/pxa/mmp-sspa.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 338 sound/soc/pxa/mmp-sspa.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 108 sound/soc/pxa/pxa-ssp.c dma->chan_name = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? stream 572 sound/soc/pxa/pxa-ssp.c substream->stream == SNDRV_PCM_STREAM_PLAYBACK, dma_data); stream 710 sound/soc/pxa/pxa-ssp.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 101 sound/soc/pxa/pxa2xx-ac97.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 116 sound/soc/pxa/pxa2xx-ac97.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 129 sound/soc/pxa/pxa2xx-ac97.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 168 sound/soc/pxa/pxa2xx-i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 184 sound/soc/pxa/pxa2xx-i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 223 sound/soc/pxa/pxa2xx-i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 245 sound/soc/pxa/pxa2xx-i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 49 sound/soc/qcom/apq8096.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 102 sound/soc/qcom/lpass-cpu.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 199 sound/soc/qcom/lpass-cpu.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 227 sound/soc/qcom/lpass-cpu.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 246 sound/soc/qcom/lpass-cpu.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 61 sound/soc/qcom/lpass-platform.c int ret, dma_ch, dir = substream->stream; stream 137 sound/soc/qcom/lpass-platform.c int ch, dir = substream->stream; stream 230 sound/soc/qcom/lpass-platform.c reg = LPAIF_DMACTL_REG(v, pcm_data->dma_ch, substream->stream); stream 248 sound/soc/qcom/lpass-platform.c int ret, ch, dir = substream->stream; stream 300 sound/soc/qcom/lpass-platform.c int ret, ch, dir = substream->stream; stream 375 sound/soc/qcom/lpass-platform.c int ret, ch, dir = substream->stream; stream 181 sound/soc/qcom/qdsp6/q6asm-dai.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 234 sound/soc/qcom/qdsp6/q6asm-dai.c q6asm_unmap_memory_regions(substream->stream, stream 237 sound/soc/qcom/qdsp6/q6asm-dai.c substream->stream); stream 240 sound/soc/qcom/qdsp6/q6asm-dai.c ret = q6asm_map_memory_regions(substream->stream, prtd->audio_client, stream 251 sound/soc/qcom/qdsp6/q6asm-dai.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 254 sound/soc/qcom/qdsp6/q6asm-dai.c } else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 268 sound/soc/qcom/qdsp6/q6asm-dai.c prtd->session_id, substream->stream); stream 274 sound/soc/qcom/qdsp6/q6asm-dai.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 279 sound/soc/qcom/qdsp6/q6asm-dai.c } else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 360 sound/soc/qcom/qdsp6/q6asm-dai.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 362 sound/soc/qcom/qdsp6/q6asm-dai.c else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 376 sound/soc/qcom/qdsp6/q6asm-dai.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 427 sound/soc/qcom/qdsp6/q6asm-dai.c q6asm_unmap_memory_regions(substream->stream, stream 433 sound/soc/qcom/qdsp6/q6asm-dai.c substream->stream); stream 547 sound/soc/qcom/qdsp6/q6asm-dai.c static int q6asm_dai_compr_open(struct snd_compr_stream *stream) stream 549 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_soc_pcm_runtime *rtd = stream->private_data; stream 551 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_compr_runtime *runtime = stream->runtime; stream 569 sound/soc/qcom/qdsp6/q6asm-dai.c prtd->cstream = stream; stream 593 sound/soc/qcom/qdsp6/q6asm-dai.c snd_compr_set_runtime_buffer(stream, &prtd->dma_buffer); stream 607 sound/soc/qcom/qdsp6/q6asm-dai.c static int q6asm_dai_compr_free(struct snd_compr_stream *stream) stream 609 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_compr_runtime *runtime = stream->runtime; stream 611 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_soc_pcm_runtime *rtd = stream->private_data; stream 618 sound/soc/qcom/qdsp6/q6asm-dai.c q6asm_unmap_memory_regions(stream->direction, stream 623 sound/soc/qcom/qdsp6/q6asm-dai.c q6routing_stream_close(rtd->dai_link->id, stream->direction); stream 629 sound/soc/qcom/qdsp6/q6asm-dai.c static int q6asm_dai_compr_set_params(struct snd_compr_stream *stream, stream 632 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_compr_runtime *runtime = stream->runtime; stream 634 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_soc_pcm_runtime *rtd = stream->private_data; stream 636 sound/soc/qcom/qdsp6/q6asm-dai.c int dir = stream->direction; stream 690 sound/soc/qcom/qdsp6/q6asm-dai.c static int q6asm_dai_compr_trigger(struct snd_compr_stream *stream, int cmd) stream 692 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_compr_runtime *runtime = stream->runtime; stream 718 sound/soc/qcom/qdsp6/q6asm-dai.c static int q6asm_dai_compr_pointer(struct snd_compr_stream *stream, stream 721 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_compr_runtime *runtime = stream->runtime; stream 735 sound/soc/qcom/qdsp6/q6asm-dai.c static int q6asm_dai_compr_ack(struct snd_compr_stream *stream, stream 738 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_compr_runtime *runtime = stream->runtime; stream 749 sound/soc/qcom/qdsp6/q6asm-dai.c static int q6asm_dai_compr_mmap(struct snd_compr_stream *stream, stream 752 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_compr_runtime *runtime = stream->runtime; stream 754 sound/soc/qcom/qdsp6/q6asm-dai.c struct snd_soc_pcm_runtime *rtd = stream->private_data; stream 763 sound/soc/qcom/qdsp6/q6asm-dai.c static int q6asm_dai_compr_get_caps(struct snd_compr_stream *stream, stream 777 sound/soc/qcom/qdsp6/q6asm-dai.c static int q6asm_dai_compr_get_codec_caps(struct snd_compr_stream *stream, stream 952 sound/soc/qcom/qdsp6/q6routing.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 58 sound/soc/qcom/sdm845.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 337 sound/soc/rockchip/rockchip_i2s.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 395 sound/soc/rockchip/rockchip_i2s.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 403 sound/soc/rockchip/rockchip_i2s.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 157 sound/soc/rockchip/rockchip_pdm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 293 sound/soc/rockchip/rockchip_pdm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 299 sound/soc/rockchip/rockchip_pdm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 741 sound/soc/samsung/i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 747 sound/soc/samsung/i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 933 sound/soc/samsung/i2s.c int capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); stream 1016 sound/soc/samsung/i2s.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 353 sound/soc/samsung/idma.c static int preallocate_idma_buffer(struct snd_pcm *pcm, int stream) stream 355 sound/soc/samsung/idma.c struct snd_pcm_substream *substream = pcm->streams[stream].substream; stream 226 sound/soc/samsung/pcm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 239 sound/soc/samsung/pcm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 304 sound/soc/samsung/s3c-i2s-v2.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 384 sound/soc/samsung/s3c-i2s-v2.c int capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); stream 533 sound/soc/samsung/s3c-i2s-v2.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 250 sound/soc/samsung/s3c24xx-i2s.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 259 sound/soc/samsung/s3c24xx-i2s.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 184 sound/soc/samsung/spdif.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 122 sound/soc/sh/dma-sh7760.c int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; stream 155 sound/soc/sh/dma-sh7760.c int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; stream 176 sound/soc/sh/dma-sh7760.c int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; stream 208 sound/soc/sh/dma-sh7760.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 251 sound/soc/sh/dma-sh7760.c int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; stream 278 sound/soc/sh/dma-sh7760.c int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; stream 404 sound/soc/sh/fsi.c return substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 240 sound/soc/sh/hac.c int d = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0 : 1; stream 711 sound/soc/sh/rcar/core.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1012 sound/soc/sh/rcar/core.c int is_play = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 1202 sound/soc/sh/rcar/core.c int stream) stream 1216 sound/soc/sh/rcar/core.c for (substream = rtd->pcm->streams[stream].substream; stream 1418 sound/soc/sh/rcar/core.c int stream = substream->stream; stream 1420 sound/soc/sh/rcar/core.c for_each_dpcm_be(fe, stream, dpcm) { stream 524 sound/soc/sh/siu_dai.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 553 sound/soc/sh/siu_dai.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 216 sound/soc/sh/siu_pcm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 307 sound/soc/sh/siu_pcm.c if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 346 sound/soc/sh/siu_pcm.c if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 379 sound/soc/sh/siu_pcm.c if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 401 sound/soc/sh/siu_pcm.c if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 450 sound/soc/sh/siu_pcm.c if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 461 sound/soc/sh/siu_pcm.c if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 490 sound/soc/sh/siu_pcm.c if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 138 sound/soc/sh/ssi.c recv = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? 0 : 1; stream 218 sound/soc/sirf/sirf-usp.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 247 sound/soc/sirf/sirf-usp.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 255 sound/soc/sirf/sirf-usp.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 134 sound/soc/soc-compress.c int stream; stream 138 sound/soc/soc-compress.c stream = SNDRV_PCM_STREAM_PLAYBACK; stream 140 sound/soc/soc-compress.c stream = SNDRV_PCM_STREAM_CAPTURE; stream 143 sound/soc/soc-compress.c fe->dpcm[stream].runtime = fe_substream->runtime; stream 145 sound/soc/soc-compress.c ret = dpcm_path_get(fe, stream, &list); stream 150 sound/soc/soc-compress.c fe->dai_link->name, stream ? "capture" : "playback"); stream 152 sound/soc/soc-compress.c dpcm_process_paths(fe, stream, &list, 1); stream 153 sound/soc/soc-compress.c fe->dpcm[stream].runtime = fe_substream->runtime; stream 155 sound/soc/soc-compress.c fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; stream 157 sound/soc/soc-compress.c ret = dpcm_be_dai_startup(fe, stream); stream 160 sound/soc/soc-compress.c for_each_dpcm_be(fe, stream, dpcm) stream 163 sound/soc/soc-compress.c dpcm_be_disconnect(fe, stream); stream 164 sound/soc/soc-compress.c fe->dpcm[stream].runtime = NULL; stream 191 sound/soc/soc-compress.c dpcm_clear_pending_state(fe, stream); stream 194 sound/soc/soc-compress.c fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; stream 195 sound/soc/soc-compress.c fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; stream 197 sound/soc/soc-compress.c snd_soc_runtime_activate(fe, stream); stream 211 sound/soc/soc-compress.c fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; stream 250 sound/soc/soc-compress.c int stream; stream 255 sound/soc/soc-compress.c stream = SNDRV_PCM_STREAM_PLAYBACK; stream 257 sound/soc/soc-compress.c stream = SNDRV_PCM_STREAM_CAPTURE; stream 259 sound/soc/soc-compress.c snd_soc_runtime_deactivate(rtd, stream); stream 304 sound/soc/soc-compress.c int stream, ret; stream 309 sound/soc/soc-compress.c stream = SNDRV_PCM_STREAM_PLAYBACK; stream 311 sound/soc/soc-compress.c stream = SNDRV_PCM_STREAM_CAPTURE; stream 313 sound/soc/soc-compress.c snd_soc_runtime_deactivate(fe, stream); stream 315 sound/soc/soc-compress.c fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; stream 317 sound/soc/soc-compress.c ret = dpcm_be_dai_hw_free(fe, stream); stream 321 sound/soc/soc-compress.c ret = dpcm_be_dai_shutdown(fe, stream); stream 324 sound/soc/soc-compress.c for_each_dpcm_be(fe, stream, dpcm) stream 327 sound/soc/soc-compress.c dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_STOP); stream 329 sound/soc/soc-compress.c fe->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; stream 330 sound/soc/soc-compress.c fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; stream 332 sound/soc/soc-compress.c dpcm_be_disconnect(fe, stream); stream 334 sound/soc/soc-compress.c fe->dpcm[stream].runtime = NULL; stream 405 sound/soc/soc-compress.c int ret, stream; stream 412 sound/soc/soc-compress.c stream = SNDRV_PCM_STREAM_PLAYBACK; stream 414 sound/soc/soc-compress.c stream = SNDRV_PCM_STREAM_CAPTURE; stream 428 sound/soc/soc-compress.c fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; stream 430 sound/soc/soc-compress.c ret = dpcm_be_dai_trigger(fe, stream, cmd); stream 436 sound/soc/soc-compress.c fe->dpcm[stream].state = SND_SOC_DPCM_STATE_START; stream 440 sound/soc/soc-compress.c fe->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; stream 443 sound/soc/soc-compress.c fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; stream 448 sound/soc/soc-compress.c fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; stream 535 sound/soc/soc-compress.c int ret, stream; stream 538 sound/soc/soc-compress.c stream = SNDRV_PCM_STREAM_PLAYBACK; stream 540 sound/soc/soc-compress.c stream = SNDRV_PCM_STREAM_CAPTURE; stream 549 sound/soc/soc-compress.c memset(&fe->dpcm[fe_substream->stream].hw_params, 0, stream 552 sound/soc/soc-compress.c fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; stream 554 sound/soc/soc-compress.c ret = dpcm_be_dai_hw_params(fe, stream); stream 558 sound/soc/soc-compress.c ret = dpcm_be_dai_prepare(fe, stream); stream 578 sound/soc/soc-compress.c dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_START); stream 579 sound/soc/soc-compress.c fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE; stream 582 sound/soc/soc-compress.c fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; stream 342 sound/soc/soc-core.c const char *dai_link, int stream) stream 349 sound/soc/soc-core.c return rtd->pcm->streams[stream].substream; stream 2811 sound/soc/soc-core.c static void convert_endianness_formats(struct snd_soc_pcm_stream *stream) stream 2816 sound/soc/soc-core.c if (stream->formats & endianness_format_map[i]) stream 2817 sound/soc/soc-core.c stream->formats |= endianness_format_map[i]; stream 398 sound/soc/soc-dai.c struct snd_soc_pcm_stream *stream; stream 401 sound/soc/soc-dai.c stream = &dai->driver->playback; stream 403 sound/soc/soc-dai.c stream = &dai->driver->capture; stream 406 sound/soc/soc-dai.c return stream->channels_min; stream 1295 sound/soc/soc-dapm.c int snd_soc_dapm_dai_get_connected_widgets(struct snd_soc_dai *dai, int stream, stream 1308 sound/soc/soc-dapm.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 1327 sound/soc/soc-dapm.c trace_snd_soc_dapm_connected(paths, stream); stream 2641 sound/soc/soc-dapm.c int dir = substream->stream; stream 3822 sound/soc/soc-dapm.c substream->stream = SNDRV_PCM_STREAM_CAPTURE; stream 3835 sound/soc/soc-dapm.c substream->stream = SNDRV_PCM_STREAM_PLAYBACK; stream 3883 sound/soc/soc-dapm.c substream->stream = SNDRV_PCM_STREAM_CAPTURE; stream 3894 sound/soc/soc-dapm.c substream->stream = SNDRV_PCM_STREAM_PLAYBACK; stream 3921 sound/soc/soc-dapm.c int ret = 0, saved_stream = substream->stream; stream 3960 sound/soc/soc-dapm.c substream->stream = SNDRV_PCM_STREAM_CAPTURE; stream 3966 sound/soc/soc-dapm.c substream->stream = SNDRV_PCM_STREAM_PLAYBACK; stream 3972 sound/soc/soc-dapm.c substream->stream = SNDRV_PCM_STREAM_CAPTURE; stream 3979 sound/soc/soc-dapm.c substream->stream = SNDRV_PCM_STREAM_PLAYBACK; stream 3998 sound/soc/soc-dapm.c substream->stream = saved_stream; stream 4376 sound/soc/soc-dapm.c static void soc_dapm_dai_stream_event(struct snd_soc_dai *dai, int stream, stream 4382 sound/soc/soc-dapm.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 4433 sound/soc/soc-dapm.c static void soc_dapm_stream_event(struct snd_soc_pcm_runtime *rtd, int stream, stream 4439 sound/soc/soc-dapm.c soc_dapm_dai_stream_event(rtd->cpu_dai, stream, event); stream 4441 sound/soc/soc-dapm.c soc_dapm_dai_stream_event(codec_dai, stream, event); stream 4457 sound/soc/soc-dapm.c void snd_soc_dapm_stream_event(struct snd_soc_pcm_runtime *rtd, int stream, stream 4463 sound/soc/soc-dapm.c soc_dapm_stream_event(rtd, stream, event); stream 39 sound/soc/soc-generic-dmaengine-pcm.c if (!pcm->chan[substream->stream]) stream 42 sound/soc/soc-generic-dmaengine-pcm.c return pcm->chan[substream->stream]->device->dev; stream 119 sound/soc/soc-generic-dmaengine-pcm.c struct dma_chan *chan = pcm->chan[substream->stream]; stream 155 sound/soc/soc-generic-dmaengine-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 208 sound/soc/soc-generic-dmaengine-pcm.c struct dma_chan *chan = pcm->chan[substream->stream]; stream 346 sound/soc/soc-generic-dmaengine-pcm.c bool is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 41 sound/soc/soc-pcm.c void snd_soc_runtime_activate(struct snd_soc_pcm_runtime *rtd, int stream) stream 49 sound/soc/soc-pcm.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 77 sound/soc/soc-pcm.c void snd_soc_runtime_deactivate(struct snd_soc_pcm_runtime *rtd, int stream) stream 85 sound/soc/soc-pcm.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 330 sound/soc/soc-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 370 sound/soc/soc-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 388 sound/soc/soc-pcm.c substream->stream)) stream 392 sound/soc/soc-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 532 sound/soc/soc-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 605 sound/soc/soc-pcm.c snd_soc_runtime_activate(rtd, substream->stream); stream 699 sound/soc/soc-pcm.c snd_soc_runtime_deactivate(rtd, substream->stream); stream 710 sound/soc/soc-pcm.c snd_soc_dai_digital_mute(cpu_dai, 1, substream->stream); stream 722 sound/soc/soc-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 814 sound/soc/soc-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && stream 820 sound/soc/soc-pcm.c snd_soc_dapm_stream_event(rtd, substream->stream, stream 825 sound/soc/soc-pcm.c substream->stream); stream 826 sound/soc/soc-pcm.c snd_soc_dai_digital_mute(cpu_dai, 0, substream->stream); stream 911 sound/soc/soc-pcm.c if (!snd_soc_dai_stream_valid(codec_dai, substream->stream)) stream 918 sound/soc/soc-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && stream 923 sound/soc/soc-pcm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE && stream 981 sound/soc/soc-pcm.c if (!snd_soc_dai_stream_valid(codec_dai, substream->stream)) stream 1003 sound/soc/soc-pcm.c bool playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 1028 sound/soc/soc-pcm.c substream->stream); stream 1040 sound/soc/soc-pcm.c if (!snd_soc_dai_stream_valid(codec_dai, substream->stream)) stream 1147 sound/soc/soc-pcm.c struct snd_soc_pcm_runtime *be, int stream) stream 1156 sound/soc/soc-pcm.c for_each_dpcm_be(fe, stream, dpcm) { stream 1167 sound/soc/soc-pcm.c be->dpcm[stream].runtime = fe->dpcm[stream].runtime; stream 1170 sound/soc/soc-pcm.c list_add(&dpcm->list_be, &fe->dpcm[stream].be_clients); stream 1171 sound/soc/soc-pcm.c list_add(&dpcm->list_fe, &be->dpcm[stream].fe_clients); stream 1175 sound/soc/soc-pcm.c stream ? "capture" : "playback", fe->dai_link->name, stream 1176 sound/soc/soc-pcm.c stream ? "<-" : "->", be->dai_link->name); stream 1180 sound/soc/soc-pcm.c stream ? "capture" : "playback"); stream 1194 sound/soc/soc-pcm.c struct snd_soc_pcm_runtime *be, int stream) stream 1200 sound/soc/soc-pcm.c if (!be->dpcm[stream].users) stream 1203 sound/soc/soc-pcm.c be_substream = snd_soc_dpcm_get_substream(be, stream); stream 1205 sound/soc/soc-pcm.c for_each_dpcm_fe(be, stream, dpcm) { stream 1210 sound/soc/soc-pcm.c stream ? "capture" : "playback", stream 1212 sound/soc/soc-pcm.c stream ? "<-" : "->", dpcm->be->dai_link->name); stream 1214 sound/soc/soc-pcm.c fe_substream = snd_soc_dpcm_get_substream(dpcm->fe, stream); stream 1221 sound/soc/soc-pcm.c void dpcm_be_disconnect(struct snd_soc_pcm_runtime *fe, int stream) stream 1226 sound/soc/soc-pcm.c for_each_dpcm_be_safe(fe, stream, dpcm, d) { stream 1228 sound/soc/soc-pcm.c stream ? "capture" : "playback", stream 1235 sound/soc/soc-pcm.c stream ? "capture" : "playback", fe->dai_link->name, stream 1236 sound/soc/soc-pcm.c stream ? "<-" : "->", dpcm->be->dai_link->name); stream 1239 sound/soc/soc-pcm.c dpcm_be_reparent(fe, dpcm->be, stream); stream 1254 sound/soc/soc-pcm.c struct snd_soc_dapm_widget *widget, int stream) stream 1262 sound/soc/soc-pcm.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 1303 sound/soc/soc-pcm.c stream ? "capture" : "playback", widget->name); stream 1308 sound/soc/soc-pcm.c dai_get_widget(struct snd_soc_dai *dai, int stream) stream 1310 sound/soc/soc-pcm.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1369 sound/soc/soc-pcm.c int stream, struct snd_soc_dapm_widget_list **list) stream 1375 sound/soc/soc-pcm.c paths = snd_soc_dapm_dai_get_connected_widgets(cpu_dai, stream, list, stream 1379 sound/soc/soc-pcm.c stream ? "capture" : "playback"); stream 1384 sound/soc/soc-pcm.c static int dpcm_prune_paths(struct snd_soc_pcm_runtime *fe, int stream, stream 1395 sound/soc/soc-pcm.c for_each_dpcm_be(fe, stream, dpcm) { stream 1399 sound/soc/soc-pcm.c widget = dai_get_widget(dpcm->be->cpu_dai, stream); stream 1408 sound/soc/soc-pcm.c widget = dai_get_widget(dai, stream); stream 1418 sound/soc/soc-pcm.c stream ? "capture" : "playback", stream 1421 sound/soc/soc-pcm.c dpcm->be->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_BE; stream 1429 sound/soc/soc-pcm.c static int dpcm_add_paths(struct snd_soc_pcm_runtime *fe, int stream, stream 1442 sound/soc/soc-pcm.c if (stream != SNDRV_PCM_STREAM_PLAYBACK) stream 1446 sound/soc/soc-pcm.c if (stream != SNDRV_PCM_STREAM_CAPTURE) stream 1454 sound/soc/soc-pcm.c be = dpcm_get_be(card, list->widgets[i], stream); stream 1466 sound/soc/soc-pcm.c if (!fe->dpcm[stream].runtime && !fe->fe_compr) stream 1470 sound/soc/soc-pcm.c err = dpcm_be_connect(fe, be, stream); stream 1479 sound/soc/soc-pcm.c be->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_BE; stream 1492 sound/soc/soc-pcm.c int stream, struct snd_soc_dapm_widget_list **list, int new) stream 1495 sound/soc/soc-pcm.c return dpcm_add_paths(fe, stream, list); stream 1497 sound/soc/soc-pcm.c return dpcm_prune_paths(fe, stream, list); stream 1500 sound/soc/soc-pcm.c void dpcm_clear_pending_state(struct snd_soc_pcm_runtime *fe, int stream) stream 1506 sound/soc/soc-pcm.c for_each_dpcm_be(fe, stream, dpcm) stream 1507 sound/soc/soc-pcm.c dpcm->be->dpcm[stream].runtime_update = stream 1513 sound/soc/soc-pcm.c int stream) stream 1518 sound/soc/soc-pcm.c for_each_dpcm_be(fe, stream, dpcm) { stream 1522 sound/soc/soc-pcm.c snd_soc_dpcm_get_substream(be, stream); stream 1524 sound/soc/soc-pcm.c if (be->dpcm[stream].users == 0) stream 1526 sound/soc/soc-pcm.c stream ? "capture" : "playback", stream 1527 sound/soc/soc-pcm.c be->dpcm[stream].state); stream 1529 sound/soc/soc-pcm.c if (--be->dpcm[stream].users != 0) stream 1532 sound/soc/soc-pcm.c if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) stream 1537 sound/soc/soc-pcm.c be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; stream 1541 sound/soc/soc-pcm.c int dpcm_be_dai_startup(struct snd_soc_pcm_runtime *fe, int stream) stream 1547 sound/soc/soc-pcm.c for_each_dpcm_be(fe, stream, dpcm) { stream 1551 sound/soc/soc-pcm.c snd_soc_dpcm_get_substream(be, stream); stream 1555 sound/soc/soc-pcm.c stream ? "capture" : "playback"); stream 1560 sound/soc/soc-pcm.c if (!snd_soc_dpcm_be_can_update(fe, be, stream)) stream 1564 sound/soc/soc-pcm.c if (be->dpcm[stream].users == DPCM_MAX_BE_USERS) stream 1566 sound/soc/soc-pcm.c stream ? "capture" : "playback", stream 1567 sound/soc/soc-pcm.c be->dpcm[stream].state); stream 1569 sound/soc/soc-pcm.c if (be->dpcm[stream].users++ != 0) stream 1572 sound/soc/soc-pcm.c if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_NEW) && stream 1573 sound/soc/soc-pcm.c (be->dpcm[stream].state != SND_SOC_DPCM_STATE_CLOSE)) stream 1577 sound/soc/soc-pcm.c stream ? "capture" : "playback", be->dai_link->name); stream 1579 sound/soc/soc-pcm.c be_substream->runtime = be->dpcm[stream].runtime; stream 1583 sound/soc/soc-pcm.c be->dpcm[stream].users--; stream 1584 sound/soc/soc-pcm.c if (be->dpcm[stream].users < 0) stream 1586 sound/soc/soc-pcm.c stream ? "capture" : "playback", stream 1587 sound/soc/soc-pcm.c be->dpcm[stream].state); stream 1589 sound/soc/soc-pcm.c be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; stream 1593 sound/soc/soc-pcm.c be->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; stream 1601 sound/soc/soc-pcm.c for_each_dpcm_be_rollback(fe, stream, dpcm) { stream 1604 sound/soc/soc-pcm.c snd_soc_dpcm_get_substream(be, stream); stream 1606 sound/soc/soc-pcm.c if (!snd_soc_dpcm_be_can_update(fe, be, stream)) stream 1609 sound/soc/soc-pcm.c if (be->dpcm[stream].users == 0) stream 1611 sound/soc/soc-pcm.c stream ? "capture" : "playback", stream 1612 sound/soc/soc-pcm.c be->dpcm[stream].state); stream 1614 sound/soc/soc-pcm.c if (--be->dpcm[stream].users != 0) stream 1617 sound/soc/soc-pcm.c if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) stream 1622 sound/soc/soc-pcm.c be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; stream 1629 sound/soc/soc-pcm.c struct snd_soc_pcm_stream *stream) stream 1631 sound/soc/soc-pcm.c runtime->hw.rate_min = stream->rate_min; stream 1632 sound/soc/soc-pcm.c runtime->hw.rate_max = min_not_zero(stream->rate_max, UINT_MAX); stream 1633 sound/soc/soc-pcm.c runtime->hw.channels_min = stream->channels_min; stream 1634 sound/soc/soc-pcm.c runtime->hw.channels_max = stream->channels_max; stream 1636 sound/soc/soc-pcm.c runtime->hw.formats &= stream->formats; stream 1638 sound/soc/soc-pcm.c runtime->hw.formats = stream->formats; stream 1639 sound/soc/soc-pcm.c runtime->hw.rates = stream->rates; stream 1648 sound/soc/soc-pcm.c int stream = substream->stream; stream 1658 sound/soc/soc-pcm.c for_each_dpcm_be(fe, stream, dpcm) { stream 1669 sound/soc/soc-pcm.c if (!snd_soc_dai_stream_valid(dai, stream)) stream 1673 sound/soc/soc-pcm.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1689 sound/soc/soc-pcm.c int stream = substream->stream; stream 1699 sound/soc/soc-pcm.c for_each_dpcm_be(fe, stream, dpcm) { stream 1706 sound/soc/soc-pcm.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1721 sound/soc/soc-pcm.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1741 sound/soc/soc-pcm.c int stream = substream->stream; stream 1751 sound/soc/soc-pcm.c for_each_dpcm_be(fe, stream, dpcm) { stream 1760 sound/soc/soc-pcm.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1774 sound/soc/soc-pcm.c if (!snd_soc_dai_stream_valid(dai, stream)) stream 1778 sound/soc/soc-pcm.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1799 sound/soc/soc-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1819 sound/soc/soc-pcm.c int stream, enum snd_soc_dpcm_update state) stream 1822 sound/soc/soc-pcm.c snd_soc_dpcm_get_substream(fe, stream); stream 1825 sound/soc/soc-pcm.c if (state == SND_SOC_DPCM_UPDATE_NO && fe->dpcm[stream].trigger_pending) { stream 1827 sound/soc/soc-pcm.c fe->dpcm[stream].trigger_pending - 1); stream 1828 sound/soc/soc-pcm.c fe->dpcm[stream].trigger_pending = 0; stream 1830 sound/soc/soc-pcm.c fe->dpcm[stream].runtime_update = state; stream 1835 sound/soc/soc-pcm.c int stream) stream 1854 sound/soc/soc-pcm.c for_each_dpcm_be(fe, stream, dpcm) { stream 1857 sound/soc/soc-pcm.c snd_soc_dpcm_get_substream(be, stream); stream 1898 sound/soc/soc-pcm.c int stream = fe_substream->stream, ret = 0; stream 1900 sound/soc/soc-pcm.c dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_FE); stream 1902 sound/soc/soc-pcm.c ret = dpcm_be_dai_startup(fe, fe_substream->stream); stream 1917 sound/soc/soc-pcm.c fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; stream 1922 sound/soc/soc-pcm.c ret = dpcm_apply_symmetry(fe_substream, stream); stream 1929 sound/soc/soc-pcm.c dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_NO); stream 1933 sound/soc/soc-pcm.c dpcm_be_dai_startup_unwind(fe, fe_substream->stream); stream 1935 sound/soc/soc-pcm.c dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_NO); stream 1939 sound/soc/soc-pcm.c int dpcm_be_dai_shutdown(struct snd_soc_pcm_runtime *fe, int stream) stream 1944 sound/soc/soc-pcm.c for_each_dpcm_be(fe, stream, dpcm) { stream 1948 sound/soc/soc-pcm.c snd_soc_dpcm_get_substream(be, stream); stream 1951 sound/soc/soc-pcm.c if (!snd_soc_dpcm_be_can_update(fe, be, stream)) stream 1954 sound/soc/soc-pcm.c if (be->dpcm[stream].users == 0) stream 1956 sound/soc/soc-pcm.c stream ? "capture" : "playback", stream 1957 sound/soc/soc-pcm.c be->dpcm[stream].state); stream 1959 sound/soc/soc-pcm.c if (--be->dpcm[stream].users != 0) stream 1962 sound/soc/soc-pcm.c if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && stream 1963 sound/soc/soc-pcm.c (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN)) { stream 1965 sound/soc/soc-pcm.c be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; stream 1974 sound/soc/soc-pcm.c be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; stream 1982 sound/soc/soc-pcm.c int stream = substream->stream; stream 1984 sound/soc/soc-pcm.c dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_FE); stream 1987 sound/soc/soc-pcm.c dpcm_be_dai_shutdown(fe, substream->stream); stream 1995 sound/soc/soc-pcm.c dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_STOP); stream 1997 sound/soc/soc-pcm.c fe->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; stream 1998 sound/soc/soc-pcm.c dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_NO); stream 2002 sound/soc/soc-pcm.c int dpcm_be_dai_hw_free(struct snd_soc_pcm_runtime *fe, int stream) stream 2008 sound/soc/soc-pcm.c for_each_dpcm_be(fe, stream, dpcm) { stream 2012 sound/soc/soc-pcm.c snd_soc_dpcm_get_substream(be, stream); stream 2015 sound/soc/soc-pcm.c if (!snd_soc_dpcm_be_can_update(fe, be, stream)) stream 2019 sound/soc/soc-pcm.c if (!snd_soc_dpcm_can_be_free_stop(fe, be, stream)) stream 2023 sound/soc/soc-pcm.c if (be->dpcm[stream].users > 1) stream 2026 sound/soc/soc-pcm.c if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && stream 2027 sound/soc/soc-pcm.c (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) && stream 2028 sound/soc/soc-pcm.c (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && stream 2029 sound/soc/soc-pcm.c (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED) && stream 2030 sound/soc/soc-pcm.c (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && stream 2031 sound/soc/soc-pcm.c (be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND)) stream 2039 sound/soc/soc-pcm.c be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; stream 2048 sound/soc/soc-pcm.c int err, stream = substream->stream; stream 2051 sound/soc/soc-pcm.c dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_FE); stream 2063 sound/soc/soc-pcm.c err = dpcm_be_dai_hw_free(fe, stream); stream 2065 sound/soc/soc-pcm.c fe->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; stream 2066 sound/soc/soc-pcm.c dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_NO); stream 2072 sound/soc/soc-pcm.c int dpcm_be_dai_hw_params(struct snd_soc_pcm_runtime *fe, int stream) stream 2077 sound/soc/soc-pcm.c for_each_dpcm_be(fe, stream, dpcm) { stream 2081 sound/soc/soc-pcm.c snd_soc_dpcm_get_substream(be, stream); stream 2084 sound/soc/soc-pcm.c if (!snd_soc_dpcm_be_can_update(fe, be, stream)) stream 2088 sound/soc/soc-pcm.c memcpy(&dpcm->hw_params, &fe->dpcm[stream].hw_params, stream 2104 sound/soc/soc-pcm.c memcpy(&be->dpcm[stream].hw_params, &dpcm->hw_params, stream 2108 sound/soc/soc-pcm.c if (!snd_soc_dpcm_can_be_params(fe, be, stream)) stream 2111 sound/soc/soc-pcm.c if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) && stream 2112 sound/soc/soc-pcm.c (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && stream 2113 sound/soc/soc-pcm.c (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE)) stream 2126 sound/soc/soc-pcm.c be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_PARAMS; stream 2132 sound/soc/soc-pcm.c for_each_dpcm_be_rollback(fe, stream, dpcm) { stream 2135 sound/soc/soc-pcm.c snd_soc_dpcm_get_substream(be, stream); stream 2137 sound/soc/soc-pcm.c if (!snd_soc_dpcm_be_can_update(fe, be, stream)) stream 2141 sound/soc/soc-pcm.c if (!snd_soc_dpcm_can_be_free_stop(fe, be, stream)) stream 2144 sound/soc/soc-pcm.c if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) && stream 2145 sound/soc/soc-pcm.c (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && stream 2146 sound/soc/soc-pcm.c (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && stream 2147 sound/soc/soc-pcm.c (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP)) stream 2160 sound/soc/soc-pcm.c int ret, stream = substream->stream; stream 2163 sound/soc/soc-pcm.c dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_FE); stream 2165 sound/soc/soc-pcm.c memcpy(&fe->dpcm[substream->stream].hw_params, params, stream 2167 sound/soc/soc-pcm.c ret = dpcm_be_dai_hw_params(fe, substream->stream); stream 2181 sound/soc/soc-pcm.c dpcm_be_dai_hw_free(fe, stream); stream 2183 sound/soc/soc-pcm.c fe->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_PARAMS; stream 2186 sound/soc/soc-pcm.c dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_NO); stream 2206 sound/soc/soc-pcm.c int dpcm_be_dai_trigger(struct snd_soc_pcm_runtime *fe, int stream, stream 2212 sound/soc/soc-pcm.c for_each_dpcm_be(fe, stream, dpcm) { stream 2216 sound/soc/soc-pcm.c snd_soc_dpcm_get_substream(be, stream); stream 2219 sound/soc/soc-pcm.c if (!snd_soc_dpcm_be_can_update(fe, be, stream)) stream 2224 sound/soc/soc-pcm.c if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) && stream 2225 sound/soc/soc-pcm.c (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && stream 2226 sound/soc/soc-pcm.c (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) stream 2233 sound/soc/soc-pcm.c be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; stream 2236 sound/soc/soc-pcm.c if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND)) stream 2243 sound/soc/soc-pcm.c be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; stream 2246 sound/soc/soc-pcm.c if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) stream 2253 sound/soc/soc-pcm.c be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; stream 2256 sound/soc/soc-pcm.c if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) && stream 2257 sound/soc/soc-pcm.c (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) stream 2260 sound/soc/soc-pcm.c if (!snd_soc_dpcm_can_be_free_stop(fe, be, stream)) stream 2267 sound/soc/soc-pcm.c be->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; stream 2270 sound/soc/soc-pcm.c if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) stream 2273 sound/soc/soc-pcm.c if (!snd_soc_dpcm_can_be_free_stop(fe, be, stream)) stream 2280 sound/soc/soc-pcm.c be->dpcm[stream].state = SND_SOC_DPCM_STATE_SUSPEND; stream 2283 sound/soc/soc-pcm.c if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) stream 2286 sound/soc/soc-pcm.c if (!snd_soc_dpcm_can_be_free_stop(fe, be, stream)) stream 2293 sound/soc/soc-pcm.c be->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; stream 2317 sound/soc/soc-pcm.c ret = dpcm_be_dai_trigger(fe, substream->stream, cmd); stream 2322 sound/soc/soc-pcm.c ret = dpcm_be_dai_trigger(fe, substream->stream, cmd); stream 2337 sound/soc/soc-pcm.c int stream = substream->stream; stream 2339 sound/soc/soc-pcm.c enum snd_soc_dpcm_trigger trigger = fe->dai_link->trigger[stream]; stream 2341 sound/soc/soc-pcm.c fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; stream 2403 sound/soc/soc-pcm.c fe->dpcm[stream].state = SND_SOC_DPCM_STATE_START; stream 2407 sound/soc/soc-pcm.c fe->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; stream 2410 sound/soc/soc-pcm.c fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; stream 2415 sound/soc/soc-pcm.c fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; stream 2422 sound/soc/soc-pcm.c int stream = substream->stream; stream 2427 sound/soc/soc-pcm.c if (fe->dpcm[stream].runtime_update != SND_SOC_DPCM_UPDATE_NO) { stream 2428 sound/soc/soc-pcm.c fe->dpcm[stream].trigger_pending = cmd + 1; stream 2436 sound/soc/soc-pcm.c int dpcm_be_dai_prepare(struct snd_soc_pcm_runtime *fe, int stream) stream 2441 sound/soc/soc-pcm.c for_each_dpcm_be(fe, stream, dpcm) { stream 2445 sound/soc/soc-pcm.c snd_soc_dpcm_get_substream(be, stream); stream 2448 sound/soc/soc-pcm.c if (!snd_soc_dpcm_be_can_update(fe, be, stream)) stream 2451 sound/soc/soc-pcm.c if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && stream 2452 sound/soc/soc-pcm.c (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && stream 2453 sound/soc/soc-pcm.c (be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND) && stream 2454 sound/soc/soc-pcm.c (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) stream 2467 sound/soc/soc-pcm.c be->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE; stream 2475 sound/soc/soc-pcm.c int stream = substream->stream, ret = 0; stream 2481 sound/soc/soc-pcm.c dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_FE); stream 2484 sound/soc/soc-pcm.c if (list_empty(&fe->dpcm[stream].be_clients)) { stream 2491 sound/soc/soc-pcm.c ret = dpcm_be_dai_prepare(fe, substream->stream); stream 2504 sound/soc/soc-pcm.c dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_START); stream 2505 sound/soc/soc-pcm.c fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE; stream 2508 sound/soc/soc-pcm.c dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_NO); stream 2514 sound/soc/soc-pcm.c static int dpcm_run_update_shutdown(struct snd_soc_pcm_runtime *fe, int stream) stream 2517 sound/soc/soc-pcm.c snd_soc_dpcm_get_substream(fe, stream); stream 2518 sound/soc/soc-pcm.c enum snd_soc_dpcm_trigger trigger = fe->dai_link->trigger[stream]; stream 2522 sound/soc/soc-pcm.c stream ? "capture" : "playback", fe->dai_link->name); stream 2536 sound/soc/soc-pcm.c err = dpcm_be_dai_trigger(fe, stream, SNDRV_PCM_TRIGGER_STOP); stream 2541 sound/soc/soc-pcm.c err = dpcm_be_dai_hw_free(fe, stream); stream 2545 sound/soc/soc-pcm.c err = dpcm_be_dai_shutdown(fe, stream); stream 2550 sound/soc/soc-pcm.c dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_NOP); stream 2555 sound/soc/soc-pcm.c static int dpcm_run_update_startup(struct snd_soc_pcm_runtime *fe, int stream) stream 2558 sound/soc/soc-pcm.c snd_soc_dpcm_get_substream(fe, stream); stream 2560 sound/soc/soc-pcm.c enum snd_soc_dpcm_trigger trigger = fe->dai_link->trigger[stream]; stream 2565 sound/soc/soc-pcm.c stream ? "capture" : "playback", fe->dai_link->name); stream 2568 sound/soc/soc-pcm.c if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_FREE || stream 2569 sound/soc/soc-pcm.c fe->dpcm[stream].state == SND_SOC_DPCM_STATE_CLOSE) stream 2573 sound/soc/soc-pcm.c ret = dpcm_be_dai_startup(fe, stream); stream 2578 sound/soc/soc-pcm.c if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_OPEN) stream 2581 sound/soc/soc-pcm.c ret = dpcm_be_dai_hw_params(fe, stream); stream 2586 sound/soc/soc-pcm.c if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_PARAMS) stream 2590 sound/soc/soc-pcm.c ret = dpcm_be_dai_prepare(fe, stream); stream 2595 sound/soc/soc-pcm.c dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_NOP); stream 2598 sound/soc/soc-pcm.c if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_PREPARE || stream 2599 sound/soc/soc-pcm.c fe->dpcm[stream].state == SND_SOC_DPCM_STATE_STOP) stream 2616 sound/soc/soc-pcm.c ret = dpcm_be_dai_trigger(fe, stream, stream 2627 sound/soc/soc-pcm.c dpcm_be_dai_hw_free(fe, stream); stream 2629 sound/soc/soc-pcm.c dpcm_be_dai_shutdown(fe, stream); stream 2633 sound/soc/soc-pcm.c for_each_dpcm_be(fe, stream, dpcm) { stream 2635 sound/soc/soc-pcm.c if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) stream 2643 sound/soc/soc-pcm.c static int dpcm_run_new_update(struct snd_soc_pcm_runtime *fe, int stream) stream 2647 sound/soc/soc-pcm.c dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_BE); stream 2648 sound/soc/soc-pcm.c ret = dpcm_run_update_startup(fe, stream); stream 2651 sound/soc/soc-pcm.c dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_NO); stream 2656 sound/soc/soc-pcm.c static int dpcm_run_old_update(struct snd_soc_pcm_runtime *fe, int stream) stream 2660 sound/soc/soc-pcm.c dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_BE); stream 2661 sound/soc/soc-pcm.c ret = dpcm_run_update_shutdown(fe, stream); stream 2664 sound/soc/soc-pcm.c dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_NO); stream 2810 sound/soc/soc-pcm.c int stream = fe_substream->stream; stream 2813 sound/soc/soc-pcm.c fe->dpcm[stream].runtime = fe_substream->runtime; stream 2815 sound/soc/soc-pcm.c ret = dpcm_path_get(fe, stream, &list); stream 2821 sound/soc/soc-pcm.c fe->dai_link->name, stream ? "capture" : "playback"); stream 2825 sound/soc/soc-pcm.c dpcm_process_paths(fe, stream, &list, 1); stream 2830 sound/soc/soc-pcm.c for_each_dpcm_be(fe, stream, dpcm) stream 2833 sound/soc/soc-pcm.c dpcm_be_disconnect(fe, stream); stream 2834 sound/soc/soc-pcm.c fe->dpcm[stream].runtime = NULL; stream 2837 sound/soc/soc-pcm.c dpcm_clear_pending_state(fe, stream); stream 2847 sound/soc/soc-pcm.c int stream = fe_substream->stream, ret; stream 2853 sound/soc/soc-pcm.c for_each_dpcm_be(fe, stream, dpcm) stream 2856 sound/soc/soc-pcm.c dpcm_be_disconnect(fe, stream); stream 2858 sound/soc/soc-pcm.c fe->dpcm[stream].runtime = NULL; stream 3025 sound/soc/soc-pcm.c int snd_soc_dpcm_fe_can_update(struct snd_soc_pcm_runtime *fe, int stream) stream 3027 sound/soc/soc-pcm.c if (fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) stream 3035 sound/soc/soc-pcm.c struct snd_soc_pcm_runtime *be, int stream) stream 3037 sound/soc/soc-pcm.c if ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) || stream 3038 sound/soc/soc-pcm.c ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_BE) && stream 3039 sound/soc/soc-pcm.c be->dpcm[stream].runtime_update)) stream 3047 sound/soc/soc-pcm.c snd_soc_dpcm_get_substream(struct snd_soc_pcm_runtime *be, int stream) stream 3049 sound/soc/soc-pcm.c return be->pcm->streams[stream].substream; stream 3055 sound/soc/soc-pcm.c snd_soc_dpcm_be_get_state(struct snd_soc_pcm_runtime *be, int stream) stream 3057 sound/soc/soc-pcm.c return be->dpcm[stream].state; stream 3063 sound/soc/soc-pcm.c int stream, enum snd_soc_dpcm_state state) stream 3065 sound/soc/soc-pcm.c be->dpcm[stream].state = state; stream 3074 sound/soc/soc-pcm.c struct snd_soc_pcm_runtime *be, int stream) stream 3082 sound/soc/soc-pcm.c for_each_dpcm_fe(be, stream, dpcm) { stream 3087 sound/soc/soc-pcm.c state = dpcm->fe->dpcm[stream].state; stream 3107 sound/soc/soc-pcm.c struct snd_soc_pcm_runtime *be, int stream) stream 3115 sound/soc/soc-pcm.c for_each_dpcm_fe(be, stream, dpcm) { stream 3120 sound/soc/soc-pcm.c state = dpcm->fe->dpcm[stream].state; stream 3166 sound/soc/soc-pcm.c int stream, char *buf, size_t size) stream 3168 sound/soc/soc-pcm.c struct snd_pcm_hw_params *params = &fe->dpcm[stream].hw_params; stream 3176 sound/soc/soc-pcm.c stream ? "Capture" : "Playback"); stream 3179 sound/soc/soc-pcm.c dpcm_state_string(fe->dpcm[stream].state)); stream 3181 sound/soc/soc-pcm.c if ((fe->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) && stream 3182 sound/soc/soc-pcm.c (fe->dpcm[stream].state <= SND_SOC_DPCM_STATE_STOP)) stream 3193 sound/soc/soc-pcm.c if (list_empty(&fe->dpcm[stream].be_clients)) { stream 3200 sound/soc/soc-pcm.c for_each_dpcm_be(fe, stream, dpcm) { stream 3209 sound/soc/soc-pcm.c dpcm_state_string(be->dpcm[stream].state)); stream 3211 sound/soc/soc-pcm.c if ((be->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) && stream 3212 sound/soc/soc-pcm.c (be->dpcm[stream].state <= SND_SOC_DPCM_STATE_STOP)) stream 1788 sound/soc/soc-topology.c static void set_stream_info(struct snd_soc_pcm_stream *stream, stream 1791 sound/soc/soc-topology.c stream->stream_name = kstrdup(caps->name, GFP_KERNEL); stream 1792 sound/soc/soc-topology.c stream->channels_min = le32_to_cpu(caps->channels_min); stream 1793 sound/soc/soc-topology.c stream->channels_max = le32_to_cpu(caps->channels_max); stream 1794 sound/soc/soc-topology.c stream->rates = le32_to_cpu(caps->rates); stream 1795 sound/soc/soc-topology.c stream->rate_min = le32_to_cpu(caps->rate_min); stream 1796 sound/soc/soc-topology.c stream->rate_max = le32_to_cpu(caps->rate_max); stream 1797 sound/soc/soc-topology.c stream->formats = le64_to_cpu(caps->formats); stream 1798 sound/soc/soc-topology.c stream->sig_bits = le32_to_cpu(caps->sig_bits); stream 1823 sound/soc/soc-topology.c struct snd_soc_pcm_stream *stream; stream 1836 sound/soc/soc-topology.c stream = &dai_drv->playback; stream 1838 sound/soc/soc-topology.c set_stream_info(stream, caps); stream 1842 sound/soc/soc-topology.c stream = &dai_drv->capture; stream 1844 sound/soc/soc-topology.c set_stream_info(stream, caps); stream 2039 sound/soc/soc-topology.c memcpy(&dest->stream[i], &src_v4->stream[i], stream 2226 sound/soc/soc-topology.c memcpy(&dest->stream[i], &src_v4->stream[i], stream 2377 sound/soc/soc-topology.c struct snd_soc_pcm_stream *stream; stream 2402 sound/soc/soc-topology.c stream = &dai_drv->playback; stream 2404 sound/soc/soc-topology.c set_stream_info(stream, caps); stream 2408 sound/soc/soc-topology.c stream = &dai_drv->capture; stream 2410 sound/soc/soc-topology.c set_stream_info(stream, caps); stream 58 sound/soc/sof/core.c if (spcm->stream[SNDRV_PCM_STREAM_PLAYBACK].comp_id == comp_id) { stream 62 sound/soc/sof/core.c if (spcm->stream[SNDRV_PCM_STREAM_CAPTURE].comp_id == comp_id) { stream 166 sound/soc/sof/intel/hda-ctrl.c struct hdac_stream *stream; stream 212 sound/soc/sof/intel/hda-ctrl.c list_for_each_entry(stream, &bus->stream_list, list) { stream 213 sound/soc/sof/intel/hda-ctrl.c sd_offset = SOF_STREAM_SD_OFFSET(stream); stream 266 sound/soc/sof/intel/hda-ctrl.c struct hdac_stream *stream; stream 273 sound/soc/sof/intel/hda-ctrl.c list_for_each_entry(stream, &bus->stream_list, list) { stream 274 sound/soc/sof/intel/hda-ctrl.c sd_offset = SOF_STREAM_SD_OFFSET(stream); stream 292 sound/soc/sof/intel/hda-ctrl.c list_for_each_entry(stream, &bus->stream_list, list) { stream 293 sound/soc/sof/intel/hda-ctrl.c sd_offset = SOF_STREAM_SD_OFFSET(stream); stream 27 sound/soc/sof/intel/hda-dai.c int stream; stream 61 sound/soc/sof/intel/hda-dai.c struct hdac_stream *stream = NULL; stream 63 sound/soc/sof/intel/hda-dai.c int stream_dir = substream->stream; stream 70 sound/soc/sof/intel/hda-dai.c list_for_each_entry(stream, &bus->stream_list, list) { stream 72 sound/soc/sof/intel/hda-dai.c stream_to_hdac_ext_stream(stream); stream 73 sound/soc/sof/intel/hda-dai.c if (stream->direction != substream->stream) stream 80 sound/soc/sof/intel/hda-dai.c if (stream->opened) { stream 86 sound/soc/sof/intel/hda-dai.c stream->stream_tag)) { stream 119 sound/soc/sof/intel/hda-dai.c static int hda_link_dma_params(struct hdac_ext_stream *stream, stream 122 sound/soc/sof/intel/hda-dai.c struct hdac_stream *hstream = &stream->hstream; stream 128 sound/soc/sof/intel/hda-dai.c snd_hdac_ext_stream_decouple(bus, stream, true); stream 129 sound/soc/sof/intel/hda-dai.c snd_hdac_ext_link_stream_reset(stream); stream 138 sound/soc/sof/intel/hda-dai.c snd_hdac_ext_link_stream_setup(stream, format_val); stream 140 sound/soc/sof/intel/hda-dai.c if (stream->hstream.direction == SNDRV_PCM_STREAM_PLAYBACK) { stream 148 sound/soc/sof/intel/hda-dai.c stream->link_prepared = 1; stream 229 sound/soc/sof/intel/hda-dai.c substream->stream); stream 238 sound/soc/sof/intel/hda-dai.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 246 sound/soc/sof/intel/hda-dai.c p_params.stream = substream->stream; stream 251 sound/soc/sof/intel/hda-dai.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 267 sound/soc/sof/intel/hda-dai.c int stream = substream->stream; stream 272 sound/soc/sof/intel/hda-dai.c dev_dbg(sdev->dev, "hda: prepare stream dir %d\n", substream->stream); stream 274 sound/soc/sof/intel/hda-dai.c return hda_link_hw_params(substream, &rtd->dpcm[stream].hw_params, stream 324 sound/soc/sof/intel/hda-dai.c DMA_CHAN_INVALID, substream->stream); stream 328 sound/soc/sof/intel/hda-dai.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 372 sound/soc/sof/intel/hda-dai.c substream->stream); stream 380 sound/soc/sof/intel/hda-dai.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 431 sound/soc/sof/intel/hda-dsp.c struct hdac_ext_stream *stream; stream 439 sound/soc/sof/intel/hda-dsp.c stream = stream_to_hdac_ext_stream(s); stream 447 sound/soc/sof/intel/hda-dsp.c if (stream->link_substream) { stream 448 sound/soc/sof/intel/hda-dsp.c rtd = snd_pcm_substream_chip(stream->link_substream); stream 454 sound/soc/sof/intel/hda-dsp.c stream->link_prepared = 0; stream 456 sound/soc/sof/intel/hda-dsp.c if (hdac_stream(stream)->direction == stream 460 sound/soc/sof/intel/hda-dsp.c stream_tag = hdac_stream(stream)->stream_tag; stream 295 sound/soc/sof/intel/hda-ipc.c sof_mailbox_read(sdev, hda_stream->stream.posn_offset, stream 317 sound/soc/sof/intel/hda-ipc.c hda_stream->stream.posn_offset = sdev->stream_box.offset + posn_offset; stream 320 sound/soc/sof/intel/hda-ipc.c substream->stream, hda_stream->stream.posn_offset); stream 163 sound/soc/sof/intel/hda-loader.c struct hdac_ext_stream *stream, int cmd) stream 165 sound/soc/sof/intel/hda-loader.c struct hdac_stream *hstream = &stream->hstream; stream 188 sound/soc/sof/intel/hda-loader.c return hda_dsp_stream_trigger(sdev, stream, cmd); stream 210 sound/soc/sof/intel/hda-loader.c struct hdac_ext_stream *stream) stream 212 sound/soc/sof/intel/hda-loader.c struct hdac_stream *hstream = &stream->hstream; stream 216 sound/soc/sof/intel/hda-loader.c ret = hda_dsp_stream_spib_config(sdev, stream, HDA_DSP_SPIB_DISABLE, 0); stream 238 sound/soc/sof/intel/hda-loader.c static int cl_copy_fw(struct snd_sof_dev *sdev, struct hdac_ext_stream *stream) stream 243 sound/soc/sof/intel/hda-loader.c ret = cl_trigger(sdev, stream, SNDRV_PCM_TRIGGER_START); stream 256 sound/soc/sof/intel/hda-loader.c ret = cl_trigger(sdev, stream, SNDRV_PCM_TRIGGER_STOP); stream 270 sound/soc/sof/intel/hda-loader.c struct hdac_ext_stream *stream; stream 293 sound/soc/sof/intel/hda-loader.c stream = get_stream_with_tag(sdev, tag); stream 294 sound/soc/sof/intel/hda-loader.c if (!stream) { stream 333 sound/soc/sof/intel/hda-loader.c ret = cl_copy_fw(sdev, stream); stream 344 sound/soc/sof/intel/hda-loader.c ret1 = cl_cleanup(sdev, &sdev->dmab, stream); stream 89 sound/soc/sof/intel/hda-pcm.c struct hdac_ext_stream *stream = stream_to_hdac_ext_stream(hstream); stream 110 sound/soc/sof/intel/hda-pcm.c ret = hda_dsp_stream_hw_params(sdev, stream, dmab, params); stream 117 sound/soc/sof/intel/hda-pcm.c hda_dsp_stream_spib_config(sdev, stream, HDA_DSP_SPIB_DISABLE, 0); stream 132 sound/soc/sof/intel/hda-pcm.c struct hdac_ext_stream *stream = stream_to_hdac_ext_stream(hstream); stream 134 sound/soc/sof/intel/hda-pcm.c return hda_dsp_stream_trigger(sdev, stream, cmd); stream 155 sound/soc/sof/intel/hda-pcm.c pos = spcm->stream[substream->stream].posn.host_posn; stream 167 sound/soc/sof/intel/hda-pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 200 sound/soc/sof/intel/hda-pcm.c hstream->index, substream->stream, pos); stream 208 sound/soc/sof/intel/hda-pcm.c int direction = substream->stream; stream 226 sound/soc/sof/intel/hda-pcm.c int direction = substream->stream; stream 30 sound/soc/sof/intel/hda-stream.c struct hdac_stream *stream, stream 41 sound/soc/sof/intel/hda-stream.c if (stream->frags >= HDA_DSP_MAX_BDL_ENTRIES) { stream 64 sound/soc/sof/intel/hda-stream.c stream->frags++; stream 68 sound/soc/sof/intel/hda-stream.c stream->frags, chunk); stream 81 sound/soc/sof/intel/hda-stream.c struct hdac_stream *stream) stream 88 sound/soc/sof/intel/hda-stream.c period_bytes = stream->period_bytes; stream 91 sound/soc/sof/intel/hda-stream.c period_bytes = stream->bufsize; stream 93 sound/soc/sof/intel/hda-stream.c periods = stream->bufsize / period_bytes; stream 97 sound/soc/sof/intel/hda-stream.c remain = stream->bufsize % period_bytes; stream 102 sound/soc/sof/intel/hda-stream.c bdl = (struct sof_intel_dsp_bdl *)stream->bdl.area; stream 104 sound/soc/sof/intel/hda-stream.c stream->frags = 0; stream 111 sound/soc/sof/intel/hda-stream.c !stream->no_period_wakeup : 0; stream 117 sound/soc/sof/intel/hda-stream.c stream, &bdl, offset, stream 121 sound/soc/sof/intel/hda-stream.c stream, &bdl, offset, stream 129 sound/soc/sof/intel/hda-stream.c struct hdac_ext_stream *stream, stream 132 sound/soc/sof/intel/hda-stream.c struct hdac_stream *hstream = &stream->hstream; stream 148 sound/soc/sof/intel/hda-stream.c sof_io_write(sdev, stream->spib_addr, size); stream 159 sound/soc/sof/intel/hda-stream.c struct hdac_ext_stream *stream = NULL; stream 167 sound/soc/sof/intel/hda-stream.c stream = stream_to_hdac_ext_stream(s); stream 168 sound/soc/sof/intel/hda-stream.c hda_stream = container_of(stream, stream 183 sound/soc/sof/intel/hda-stream.c if (!stream) stream 194 sound/soc/sof/intel/hda-stream.c if (stream && direction == SNDRV_PCM_STREAM_CAPTURE) stream 199 sound/soc/sof/intel/hda-stream.c return stream; stream 247 sound/soc/sof/intel/hda-stream.c struct hdac_ext_stream *stream, int cmd) stream 249 sound/soc/sof/intel/hda-stream.c struct hdac_stream *hstream = &stream->hstream; stream 321 sound/soc/sof/intel/hda-stream.c struct hdac_ext_stream *stream, stream 326 sound/soc/sof/intel/hda-stream.c struct hdac_stream *hstream = &stream->hstream; stream 333 sound/soc/sof/intel/hda-stream.c if (!stream) { stream 519 sound/soc/sof/intel/hda-stream.c struct hdac_stream *stream = substream->runtime->private_data; stream 520 sound/soc/sof/intel/hda-stream.c struct hdac_ext_stream *link_dev = container_of(stream, stream 524 sound/soc/sof/intel/hda-stream.c u32 mask = 0x1 << stream->index; stream 631 sound/soc/sof/intel/hda-stream.c struct hdac_ext_stream *stream; stream 695 sound/soc/sof/intel/hda-stream.c stream = &hda_stream->hda_stream; stream 697 sound/soc/sof/intel/hda-stream.c stream->pphc_addr = sdev->bar[HDA_DSP_PP_BAR] + stream 700 sound/soc/sof/intel/hda-stream.c stream->pplc_addr = sdev->bar[HDA_DSP_PP_BAR] + stream 706 sound/soc/sof/intel/hda-stream.c stream->spib_addr = sdev->bar[HDA_DSP_SPIB_BAR] + stream 710 sound/soc/sof/intel/hda-stream.c stream->fifo_addr = sdev->bar[HDA_DSP_SPIB_BAR] + stream 715 sound/soc/sof/intel/hda-stream.c hstream = &stream->hstream; stream 750 sound/soc/sof/intel/hda-stream.c stream = &hda_stream->hda_stream; stream 753 sound/soc/sof/intel/hda-stream.c stream->pphc_addr = sdev->bar[HDA_DSP_PP_BAR] + stream 756 sound/soc/sof/intel/hda-stream.c stream->pplc_addr = sdev->bar[HDA_DSP_PP_BAR] + stream 762 sound/soc/sof/intel/hda-stream.c stream->spib_addr = sdev->bar[HDA_DSP_SPIB_BAR] + stream 766 sound/soc/sof/intel/hda-stream.c stream->fifo_addr = sdev->bar[HDA_DSP_SPIB_BAR] + stream 771 sound/soc/sof/intel/hda-stream.c hstream = &stream->hstream; stream 806 sound/soc/sof/intel/hda-stream.c struct hdac_ext_stream *stream; stream 826 sound/soc/sof/intel/hda-stream.c stream = stream_to_hdac_ext_stream(s); stream 827 sound/soc/sof/intel/hda-stream.c hda_stream = container_of(stream, struct sof_intel_hda_stream, stream 25 sound/soc/sof/intel/hda-trace.c struct hdac_ext_stream *stream = hda->dtrace_stream; stream 26 sound/soc/sof/intel/hda-trace.c struct hdac_stream *hstream = &stream->hstream; stream 33 sound/soc/sof/intel/hda-trace.c ret = hda_dsp_stream_hw_params(sdev, stream, dmab, NULL); stream 423 sound/soc/sof/intel/hda.h struct sof_intel_stream stream; stream 494 sound/soc/sof/intel/hda.h struct hdac_ext_stream *stream, stream 498 sound/soc/sof/intel/hda.h struct hdac_ext_stream *stream, int cmd); stream 503 sound/soc/sof/intel/hda.h struct hdac_stream *stream); stream 509 sound/soc/sof/intel/hda.h struct hdac_ext_stream *stream, stream 35 sound/soc/sof/intel/intel-ipc.c struct intel_stream *stream = substream->runtime->private_data; stream 38 sound/soc/sof/intel/intel-ipc.c if (stream) stream 39 sound/soc/sof/intel/intel-ipc.c sof_mailbox_read(sdev, stream->posn_offset, p, sz); stream 48 sound/soc/sof/intel/intel-ipc.c struct intel_stream *stream = substream->runtime->private_data; stream 56 sound/soc/sof/intel/intel-ipc.c stream->posn_offset = sdev->stream_box.offset + posn_offset; stream 59 sound/soc/sof/intel/intel-ipc.c substream->stream, stream->posn_offset); stream 68 sound/soc/sof/intel/intel-ipc.c struct intel_stream *stream = kmalloc(sizeof(*stream), GFP_KERNEL); stream 70 sound/soc/sof/intel/intel-ipc.c if (!stream) stream 74 sound/soc/sof/intel/intel-ipc.c substream->runtime->private_data = stream; stream 83 sound/soc/sof/intel/intel-ipc.c struct intel_stream *stream = substream->runtime->private_data; stream 86 sound/soc/sof/intel/intel-ipc.c kfree(stream); stream 410 sound/soc/sof/ipc.c struct snd_sof_pcm_stream *stream; stream 423 sound/soc/sof/ipc.c stream = &spcm->stream[direction]; stream 424 sound/soc/sof/ipc.c snd_sof_ipc_msg_data(sdev, stream->substream, &posn, sizeof(posn)); stream 429 sound/soc/sof/ipc.c memcpy(&stream->posn, &posn, sizeof(posn)); stream 432 sound/soc/sof/ipc.c if (!stream->substream->runtime->no_period_wakeup) stream 433 sound/soc/sof/ipc.c snd_sof_pcm_period_elapsed(stream->substream); stream 439 sound/soc/sof/ipc.c struct snd_sof_pcm_stream *stream; stream 451 sound/soc/sof/ipc.c stream = &spcm->stream[direction]; stream 452 sound/soc/sof/ipc.c snd_sof_ipc_msg_data(sdev, stream->substream, &posn, sizeof(posn)); stream 459 sound/soc/sof/ipc.c memcpy(&stream->posn, &posn, sizeof(posn)); stream 460 sound/soc/sof/ipc.c snd_pcm_stop_xrun(stream->substream); stream 490 sound/soc/sof/ipc.c struct sof_ipc_stream stream; stream 494 sound/soc/sof/ipc.c stream.hdr.size = sizeof(stream); stream 495 sound/soc/sof/ipc.c stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_POSITION; stream 496 sound/soc/sof/ipc.c stream.comp_id = spcm->stream[direction].comp_id; stream 500 sound/soc/sof/ipc.c stream.hdr.cmd, &stream, sizeof(stream), posn, stream 504 sound/soc/sof/ipc.c stream.comp_id); stream 31 sound/soc/sof/pcm.c int stream = substream->stream; stream 38 sound/soc/sof/pcm.c spcm->stream[stream].page_table.area, size); stream 93 sound/soc/sof/pcm.c schedule_work(&spcm->stream[substream->stream].period_elapsed_work); stream 120 sound/soc/sof/pcm.c spcm->pcm.pcm_id, substream->stream); stream 150 sound/soc/sof/pcm.c pcm.comp_id = spcm->stream[substream->stream].comp_id; stream 153 sound/soc/sof/pcm.c spcm->stream[substream->stream].page_table.addr; stream 155 sound/soc/sof/pcm.c pcm.params.direction = substream->stream; stream 211 sound/soc/sof/pcm.c spcm->prepared[substream->stream] = true; stream 214 sound/soc/sof/pcm.c memcpy(&spcm->params[substream->stream], params, sizeof(*params)); stream 223 sound/soc/sof/pcm.c struct sof_ipc_stream stream; stream 227 sound/soc/sof/pcm.c stream.hdr.size = sizeof(stream); stream 228 sound/soc/sof/pcm.c stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_FREE; stream 229 sound/soc/sof/pcm.c stream.comp_id = spcm->stream[substream->stream].comp_id; stream 232 sound/soc/sof/pcm.c ret = sof_ipc_tx_message(sdev->ipc, stream.hdr.cmd, &stream, stream 233 sound/soc/sof/pcm.c sizeof(stream), &reply, sizeof(reply)); stream 235 sound/soc/sof/pcm.c spcm->prepared[substream->stream] = false; stream 258 sound/soc/sof/pcm.c substream->stream); stream 260 sound/soc/sof/pcm.c if (spcm->prepared[substream->stream]) { stream 268 sound/soc/sof/pcm.c cancel_work_sync(&spcm->stream[substream->stream].period_elapsed_work); stream 296 sound/soc/sof/pcm.c if (spcm->prepared[substream->stream]) stream 300 sound/soc/sof/pcm.c substream->stream); stream 303 sound/soc/sof/pcm.c ret = sof_pcm_hw_params(substream, &spcm->params[substream->stream]); stream 323 sound/soc/sof/pcm.c struct sof_ipc_stream stream; stream 338 sound/soc/sof/pcm.c spcm->pcm.pcm_id, substream->stream, cmd); stream 340 sound/soc/sof/pcm.c stream.hdr.size = sizeof(stream); stream 341 sound/soc/sof/pcm.c stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG; stream 342 sound/soc/sof/pcm.c stream.comp_id = spcm->stream[substream->stream].comp_id; stream 346 sound/soc/sof/pcm.c stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_PAUSE; stream 350 sound/soc/sof/pcm.c stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_RELEASE; stream 363 sound/soc/sof/pcm.c stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_START; stream 367 sound/soc/sof/pcm.c stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_STOP; stream 384 sound/soc/sof/pcm.c ret = sof_ipc_tx_message(sdev->ipc, stream.hdr.cmd, &stream, stream 385 sound/soc/sof/pcm.c sizeof(stream), &reply, sizeof(reply)); stream 421 sound/soc/sof/pcm.c spcm->stream[substream->stream].posn.host_posn); stream 423 sound/soc/sof/pcm.c spcm->stream[substream->stream].posn.dai_posn); stream 426 sound/soc/sof/pcm.c spcm->pcm.pcm_id, substream->stream, host, dai); stream 451 sound/soc/sof/pcm.c substream->stream); stream 453 sound/soc/sof/pcm.c INIT_WORK(&spcm->stream[substream->stream].period_elapsed_work, stream 456 sound/soc/sof/pcm.c caps = &spcm->pcm.caps[substream->stream]; stream 496 sound/soc/sof/pcm.c spcm->stream[substream->stream].posn.host_posn = 0; stream 497 sound/soc/sof/pcm.c spcm->stream[substream->stream].posn.dai_posn = 0; stream 498 sound/soc/sof/pcm.c spcm->stream[substream->stream].substream = substream; stream 499 sound/soc/sof/pcm.c spcm->prepared[substream->stream] = false; stream 526 sound/soc/sof/pcm.c substream->stream); stream 566 sound/soc/sof/pcm.c int stream = SNDRV_PCM_STREAM_PLAYBACK; stream 582 sound/soc/sof/pcm.c caps = &spcm->pcm.caps[stream]; stream 588 sound/soc/sof/pcm.c snd_pcm_lib_preallocate_pages(pcm->streams[stream].substream, stream 593 sound/soc/sof/pcm.c stream = SNDRV_PCM_STREAM_CAPTURE; stream 599 sound/soc/sof/pcm.c caps = &spcm->pcm.caps[stream]; stream 605 sound/soc/sof/pcm.c snd_pcm_lib_preallocate_pages(pcm->streams[stream].substream, stream 230 sound/soc/sof/pm.c substream = spcm->stream[dir].substream; stream 302 sound/soc/sof/sof-priv.h struct snd_sof_pcm_stream stream[2]; stream 115 sound/soc/sof/topology.c struct sof_ipc_stream stream; stream 120 sound/soc/sof/topology.c stream.hdr.size = sizeof(stream); stream 121 sound/soc/sof/topology.c stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | cmd; stream 122 sound/soc/sof/topology.c stream.comp_id = swidget->comp_id; stream 125 sound/soc/sof/topology.c ret = sof_ipc_tx_message(sdev->ipc, stream.hdr.cmd, &stream, stream 126 sound/soc/sof/topology.c sizeof(stream), &reply, sizeof(reply)); stream 1295 sound/soc/sof/topology.c spcm->stream[dir].comp_id = host_widget->comp_id; stream 2276 sound/soc/sof/topology.c int stream = SNDRV_PCM_STREAM_PLAYBACK; stream 2288 sound/soc/sof/topology.c spcm->stream[SNDRV_PCM_STREAM_PLAYBACK].comp_id = COMP_ID_UNASSIGNED; stream 2289 sound/soc/sof/topology.c spcm->stream[SNDRV_PCM_STREAM_CAPTURE].comp_id = COMP_ID_UNASSIGNED; stream 2302 sound/soc/sof/topology.c caps = &spcm->pcm.caps[stream]; stream 2306 sound/soc/sof/topology.c PAGE_SIZE, &spcm->stream[stream].page_table); stream 2315 sound/soc/sof/topology.c ret = spcm_bind(sdev, spcm, stream); stream 2323 sound/soc/sof/topology.c stream = SNDRV_PCM_STREAM_CAPTURE; stream 2329 sound/soc/sof/topology.c caps = &spcm->pcm.caps[stream]; stream 2333 sound/soc/sof/topology.c PAGE_SIZE, &spcm->stream[stream].page_table); stream 2341 sound/soc/sof/topology.c ret = spcm_bind(sdev, spcm, stream); stream 2345 sound/soc/sof/topology.c snd_dma_free_pages(&spcm->stream[stream].page_table); stream 2353 sound/soc/sof/topology.c snd_dma_free_pages(&spcm->stream[SNDRV_PCM_STREAM_PLAYBACK].page_table); stream 2365 sound/soc/sof/topology.c snd_dma_free_pages(&spcm->stream[SNDRV_PCM_STREAM_PLAYBACK].page_table); stream 2368 sound/soc/sof/topology.c snd_dma_free_pages(&spcm->stream[SNDRV_PCM_STREAM_CAPTURE].page_table); stream 71 sound/soc/spear/spdif_in.c if (substream->stream != SNDRV_PCM_STREAM_CAPTURE) stream 101 sound/soc/spear/spdif_in.c if (substream->stream != SNDRV_PCM_STREAM_CAPTURE) stream 117 sound/soc/spear/spdif_in.c if (substream->stream != SNDRV_PCM_STREAM_CAPTURE) stream 66 sound/soc/spear/spdif_out.c if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK) stream 84 sound/soc/spear/spdif_out.c if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK) stream 112 sound/soc/spear/spdif_out.c if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK) stream 158 sound/soc/spear/spdif_out.c if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK) stream 106 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_stream *stream = runtime->private_data; stream 108 sound/soc/sprd/sprd-pcm-compress.c memset(stream->info_area, 0, sizeof(struct sprd_compr_playinfo)); stream 117 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_stream *stream = runtime->private_data; stream 118 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_dma *dma = &stream->dma[1]; stream 121 sound/soc/sprd/sprd-pcm-compress.c stream->copied_total += dma->trans_len; stream 122 sound/soc/sprd/sprd-pcm-compress.c if (stream->copied_total > stream->received_total) stream 123 sound/soc/sprd/sprd-pcm-compress.c stream->copied_total = stream->received_total; stream 133 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_stream *stream = runtime->private_data; stream 140 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_dma *dma = &stream->dma[channel]; stream 174 sound/soc/sprd/sprd-pcm-compress.c src_addr = stream->iram_buffer.addr; stream 186 sound/soc/sprd/sprd-pcm-compress.c src_addr = stream->compr_buffer.addr; stream 187 sound/soc/sprd/sprd-pcm-compress.c dst_addr = stream->iram_buffer.addr; stream 268 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_stream *stream = runtime->private_data; stream 296 sound/soc/sprd/sprd-pcm-compress.c compr_params.channels = stream->num_channels; stream 297 sound/soc/sprd/sprd-pcm-compress.c compr_params.info_phys = stream->info_phys; stream 298 sound/soc/sprd/sprd-pcm-compress.c compr_params.info_size = stream->info_size; stream 302 sound/soc/sprd/sprd-pcm-compress.c ret = stream->compr_ops->set_params(cstream->direction, &compr_params); stream 311 sound/soc/sprd/sprd-pcm-compress.c dma_release_channel(stream->dma[0].chan); stream 313 sound/soc/sprd/sprd-pcm-compress.c dma_release_channel(stream->dma[1].chan); stream 325 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_stream *stream; stream 333 sound/soc/sprd/sprd-pcm-compress.c stream = devm_kzalloc(dev, sizeof(*stream), GFP_KERNEL); stream 334 sound/soc/sprd/sprd-pcm-compress.c if (!stream) stream 337 sound/soc/sprd/sprd-pcm-compress.c stream->cstream = cstream; stream 338 sound/soc/sprd/sprd-pcm-compress.c stream->num_channels = 2; stream 339 sound/soc/sprd/sprd-pcm-compress.c stream->compr_ops = data->ops; stream 346 sound/soc/sprd/sprd-pcm-compress.c SPRD_COMPR_IRAM_SIZE, &stream->iram_buffer); stream 351 sound/soc/sprd/sprd-pcm-compress.c stream->dma[0].virt = stream->iram_buffer.area + SPRD_COMPR_IRAM_SIZE; stream 352 sound/soc/sprd/sprd-pcm-compress.c stream->dma[0].phys = stream->iram_buffer.addr + SPRD_COMPR_IRAM_SIZE; stream 355 sound/soc/sprd/sprd-pcm-compress.c stream->info_phys = stream->iram_buffer.addr + SPRD_COMPR_IRAM_SIZE + stream 357 sound/soc/sprd/sprd-pcm-compress.c stream->info_area = stream->iram_buffer.area + SPRD_COMPR_IRAM_SIZE + stream 359 sound/soc/sprd/sprd-pcm-compress.c stream->info_size = SPRD_COMPR_IRAM_INFO_SIZE; stream 366 sound/soc/sprd/sprd-pcm-compress.c SPRD_COMPR_AREA_SIZE, &stream->compr_buffer); stream 371 sound/soc/sprd/sprd-pcm-compress.c stream->dma[1].virt = stream->compr_buffer.area + SPRD_COMPR_AREA_SIZE; stream 372 sound/soc/sprd/sprd-pcm-compress.c stream->dma[1].phys = stream->compr_buffer.addr + SPRD_COMPR_AREA_SIZE; stream 376 sound/soc/sprd/sprd-pcm-compress.c ret = stream->compr_ops->open(stream_id, &cb); stream 382 sound/soc/sprd/sprd-pcm-compress.c runtime->private_data = stream; stream 386 sound/soc/sprd/sprd-pcm-compress.c snd_dma_free_pages(&stream->compr_buffer); stream 388 sound/soc/sprd/sprd-pcm-compress.c snd_dma_free_pages(&stream->iram_buffer); stream 390 sound/soc/sprd/sprd-pcm-compress.c devm_kfree(dev, stream); stream 398 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_stream *stream = runtime->private_data; stream 405 sound/soc/sprd/sprd-pcm-compress.c for (i = 0; i < stream->num_channels; i++) { stream 406 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_dma *dma = &stream->dma[i]; stream 414 sound/soc/sprd/sprd-pcm-compress.c snd_dma_free_pages(&stream->compr_buffer); stream 415 sound/soc/sprd/sprd-pcm-compress.c snd_dma_free_pages(&stream->iram_buffer); stream 417 sound/soc/sprd/sprd-pcm-compress.c stream->compr_ops->close(stream_id); stream 419 sound/soc/sprd/sprd-pcm-compress.c devm_kfree(dev, stream); stream 427 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_stream *stream = runtime->private_data; stream 432 sound/soc/sprd/sprd-pcm-compress.c int channels = stream->num_channels, ret = 0, i; stream 443 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_dma *dma = &stream->dma[i]; stream 458 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_dma *dma = &stream->dma[i]; stream 464 sound/soc/sprd/sprd-pcm-compress.c ret = stream->compr_ops->start(stream_id); stream 469 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_dma *dma = &stream->dma[i]; stream 475 sound/soc/sprd/sprd-pcm-compress.c stream->copied_total = 0; stream 476 sound/soc/sprd/sprd-pcm-compress.c stream->stage1_pointer = 0; stream 477 sound/soc/sprd/sprd-pcm-compress.c stream->received_total = 0; stream 478 sound/soc/sprd/sprd-pcm-compress.c stream->received_stage0 = 0; stream 479 sound/soc/sprd/sprd-pcm-compress.c stream->received_stage1 = 0; stream 481 sound/soc/sprd/sprd-pcm-compress.c ret = stream->compr_ops->stop(stream_id); stream 487 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_dma *dma = &stream->dma[i]; stream 493 sound/soc/sprd/sprd-pcm-compress.c ret = stream->compr_ops->pause(stream_id); stream 499 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_dma *dma = &stream->dma[i]; stream 505 sound/soc/sprd/sprd-pcm-compress.c ret = stream->compr_ops->pause_release(stream_id); stream 510 sound/soc/sprd/sprd-pcm-compress.c ret = stream->compr_ops->drain(stream->received_total); stream 525 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_stream *stream = runtime->private_data; stream 527 sound/soc/sprd/sprd-pcm-compress.c (struct sprd_compr_playinfo *)stream->info_area; stream 529 sound/soc/sprd/sprd-pcm-compress.c tstamp->copied_total = stream->copied_total; stream 539 sound/soc/sprd/sprd-pcm-compress.c struct sprd_compr_stream *stream = runtime->private_data; stream 549 sound/soc/sprd/sprd-pcm-compress.c if (stream->received_stage0 < runtime->fragment_size) { stream 550 sound/soc/sprd/sprd-pcm-compress.c avail_bytes = runtime->fragment_size - stream->received_stage0; stream 551 sound/soc/sprd/sprd-pcm-compress.c dst = stream->iram_buffer.area + stream->received_stage0; stream 561 sound/soc/sprd/sprd-pcm-compress.c stream->received_stage0 += data_count; stream 562 sound/soc/sprd/sprd-pcm-compress.c stream->copied_total += data_count; stream 575 sound/soc/sprd/sprd-pcm-compress.c stream->received_stage0 += avail_bytes; stream 576 sound/soc/sprd/sprd-pcm-compress.c stream->copied_total += avail_bytes; stream 585 sound/soc/sprd/sprd-pcm-compress.c dst = stream->compr_buffer.area + stream->stage1_pointer; stream 586 sound/soc/sprd/sprd-pcm-compress.c if (data_count < stream->compr_buffer.bytes - stream->stage1_pointer) { stream 590 sound/soc/sprd/sprd-pcm-compress.c stream->stage1_pointer += data_count; stream 592 sound/soc/sprd/sprd-pcm-compress.c avail_bytes = stream->compr_buffer.bytes - stream->stage1_pointer; stream 597 sound/soc/sprd/sprd-pcm-compress.c if (copy_from_user(stream->compr_buffer.area, buf + avail_bytes, stream 601 sound/soc/sprd/sprd-pcm-compress.c stream->stage1_pointer = data_count - avail_bytes; stream 604 sound/soc/sprd/sprd-pcm-compress.c stream->received_stage1 += data_count; stream 608 sound/soc/sprd/sprd-pcm-compress.c stream->received_total += count; stream 205 sound/soc/sprd/sprd-pcm-dma.c int is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; stream 26 sound/soc/sti/sti_uniperif.c unsigned int stream; stream 34 sound/soc/sti/sti_uniperif.c .stream = SNDRV_PCM_STREAM_PLAYBACK, stream 42 sound/soc/sti/sti_uniperif.c .stream = SNDRV_PCM_STREAM_PLAYBACK, stream 50 sound/soc/sti/sti_uniperif.c .stream = SNDRV_PCM_STREAM_PLAYBACK, stream 58 sound/soc/sti/sti_uniperif.c .stream = SNDRV_PCM_STREAM_PLAYBACK, stream 66 sound/soc/sti/sti_uniperif.c .stream = SNDRV_PCM_STREAM_CAPTURE, stream 74 sound/soc/sti/sti_uniperif.c .stream = SNDRV_PCM_STREAM_CAPTURE, stream 339 sound/soc/sti/sti_uniperif.c if (priv->dai_data.stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 360 sound/soc/sti/sti_uniperif.c if (priv->dai_data.stream == SNDRV_PCM_STREAM_PLAYBACK) stream 387 sound/soc/sti/sti_uniperif.c struct snd_soc_pcm_stream *stream; stream 443 sound/soc/sti/sti_uniperif.c dai_data->stream = dev_data->stream; stream 445 sound/soc/sti/sti_uniperif.c if (priv->dai_data.stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 447 sound/soc/sti/sti_uniperif.c stream = &dai->playback; stream 450 sound/soc/sti/sti_uniperif.c stream = &dai->capture; stream 457 sound/soc/sti/sti_uniperif.c stream->stream_name = dai->name; stream 458 sound/soc/sti/sti_uniperif.c stream->channels_min = uni->hw->channels_min; stream 459 sound/soc/sti/sti_uniperif.c stream->channels_max = uni->hw->channels_max; stream 460 sound/soc/sti/sti_uniperif.c stream->rates = uni->hw->rates; stream 461 sound/soc/sti/sti_uniperif.c stream->formats = uni->hw->formats; stream 1340 sound/soc/sti/uniperif.h int stream; stream 597 sound/soc/stm/stm32_i2s.c bool playback_flg = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 767 sound/soc/stm/stm32_i2s.c static void stm32_i2s_dai_init(struct snd_soc_pcm_stream *stream, stream 770 sound/soc/stm/stm32_i2s.c stream->stream_name = stream_name; stream 771 sound/soc/stm/stm32_i2s.c stream->channels_min = 1; stream 772 sound/soc/stm/stm32_i2s.c stream->channels_max = 2; stream 773 sound/soc/stm/stm32_i2s.c stream->rates = SNDRV_PCM_RATE_8000_192000; stream 774 sound/soc/stm/stm32_i2s.c stream->formats = SNDRV_PCM_FMTBIT_S16_LE | stream 296 sound/soc/sunxi/sun4i-codec.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 305 sound/soc/sunxi/sun4i-codec.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 399 sound/soc/sunxi/sun4i-codec.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 593 sound/soc/sunxi/sun4i-codec.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 794 sound/soc/sunxi/sun4i-i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 803 sound/soc/sunxi/sun4i-i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 249 sound/soc/sunxi/sun4i-spdif.c if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK) stream 365 sound/soc/sunxi/sun4i-spdif.c if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK) stream 186 sound/soc/tegra/tegra20_ac97.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 194 sound/soc/tegra/tegra20_ac97.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 210 sound/soc/tegra/tegra20_i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 218 sound/soc/tegra/tegra20_i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 181 sound/soc/tegra/tegra30_i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 237 sound/soc/tegra/tegra30_i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 245 sound/soc/tegra/tegra30_i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 190 sound/soc/ti/davinci-i2s.c int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 390 sound/soc/ti/davinci-i2s.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 514 sound/soc/ti/davinci-i2s.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 529 sound/soc/ti/davinci-i2s.c int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 573 sound/soc/ti/davinci-i2s.c int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 596 sound/soc/ti/davinci-i2s.c int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 284 sound/soc/ti/davinci-mcasp.c static void davinci_mcasp_start(struct davinci_mcasp *mcasp, int stream) stream 288 sound/soc/ti/davinci-mcasp.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 349 sound/soc/ti/davinci-mcasp.c static void davinci_mcasp_stop(struct davinci_mcasp *mcasp, int stream) stream 353 sound/soc/ti/davinci-mcasp.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 684 sound/soc/ti/davinci-mcasp.c static int davinci_mcasp_ch_constraint(struct davinci_mcasp *mcasp, int stream, stream 687 sound/soc/ti/davinci-mcasp.c struct snd_pcm_hw_constraint_list *cl = &mcasp->chconstr[stream]; stream 692 sound/soc/ti/davinci-mcasp.c if (mcasp->tdm_mask[stream]) stream 693 sound/soc/ti/davinci-mcasp.c slots = hweight32(mcasp->tdm_mask[stream]); stream 812 sound/soc/ti/davinci-mcasp.c static int mcasp_common_hw_param(struct davinci_mcasp *mcasp, int stream, stream 815 sound/soc/ti/davinci-mcasp.c struct snd_dmaengine_dai_dma_data *dma_data = &mcasp->dma_data[stream]; stream 828 sound/soc/ti/davinci-mcasp.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 868 sound/soc/ti/davinci-mcasp.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 931 sound/soc/ti/davinci-mcasp.c mcasp->active_serializers[stream] = active_serializers; stream 936 sound/soc/ti/davinci-mcasp.c static int mcasp_i2s_hw_param(struct davinci_mcasp *mcasp, int stream, stream 953 sound/soc/ti/davinci-mcasp.c if (mcasp->tdm_mask[stream]) { stream 954 sound/soc/ti/davinci-mcasp.c active_slots = hweight32(mcasp->tdm_mask[stream]); stream 960 sound/soc/ti/davinci-mcasp.c if ((1 << i) & mcasp->tdm_mask[stream]) { stream 982 sound/soc/ti/davinci-mcasp.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 987 sound/soc/ti/davinci-mcasp.c } else if (stream == SNDRV_PCM_STREAM_CAPTURE) { stream 1149 sound/soc/ti/davinci-mcasp.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1223 sound/soc/ti/davinci-mcasp.c ret = mcasp_common_hw_param(mcasp, substream->stream, stream 1231 sound/soc/ti/davinci-mcasp.c ret = mcasp_i2s_hw_param(mcasp, substream->stream, stream 1258 sound/soc/ti/davinci-mcasp.c davinci_mcasp_start(mcasp, substream->stream); stream 1263 sound/soc/ti/davinci-mcasp.c davinci_mcasp_stop(mcasp, substream->stream); stream 1436 sound/soc/ti/davinci-mcasp.c &mcasp->ruledata[substream->stream]; stream 1442 sound/soc/ti/davinci-mcasp.c if (mcasp->substreams[substream->stream]) stream 1445 sound/soc/ti/davinci-mcasp.c mcasp->substreams[substream->stream] = substream; stream 1447 sound/soc/ti/davinci-mcasp.c if (mcasp->tdm_mask[substream->stream]) stream 1448 sound/soc/ti/davinci-mcasp.c tdm_slots = hweight32(mcasp->tdm_mask[substream->stream]); stream 1457 sound/soc/ti/davinci-mcasp.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 1492 sound/soc/ti/davinci-mcasp.c &mcasp->chconstr[substream->stream]); stream 1552 sound/soc/ti/davinci-mcasp.c mcasp->substreams[substream->stream] = NULL; stream 1553 sound/soc/ti/davinci-mcasp.c mcasp->active_serializers[substream->stream] = 0; stream 53 sound/soc/ti/davinci-vcif.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 71 sound/soc/ti/davinci-vcif.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 218 sound/soc/ti/omap-mcbsp.c unsigned int stream) stream 222 sound/soc/ti/omap-mcbsp.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 417 sound/soc/ti/omap-mcbsp.c static void omap_mcbsp_start(struct omap_mcbsp *mcbsp, int stream) stream 419 sound/soc/ti/omap-mcbsp.c int tx = (stream == SNDRV_PCM_STREAM_PLAYBACK); stream 476 sound/soc/ti/omap-mcbsp.c static void omap_mcbsp_stop(struct omap_mcbsp *mcbsp, int stream) stream 478 sound/soc/ti/omap-mcbsp.c int tx = (stream == SNDRV_PCM_STREAM_PLAYBACK); stream 760 sound/soc/ti/omap-mcbsp.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 815 sound/soc/ti/omap-mcbsp.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 834 sound/soc/ti/omap-mcbsp.c int tx = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 857 sound/soc/ti/omap-mcbsp.c int tx = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 884 sound/soc/ti/omap-mcbsp.c omap_mcbsp_start(mcbsp, substream->stream); stream 890 sound/soc/ti/omap-mcbsp.c omap_mcbsp_stop(mcbsp, substream->stream); stream 914 sound/soc/ti/omap-mcbsp.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 962 sound/soc/ti/omap-mcbsp.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 991 sound/soc/ti/omap-mcbsp.c mcbsp->latency[substream->stream] = latency; stream 268 sound/soc/ti/omap-mcpdm.c int tx = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 299 sound/soc/ti/omap-mcpdm.c int stream = substream->stream; stream 308 sound/soc/ti/omap-mcpdm.c if (stream == SNDRV_PCM_STREAM_CAPTURE) stream 314 sound/soc/ti/omap-mcpdm.c if (stream == SNDRV_PCM_STREAM_CAPTURE) stream 335 sound/soc/ti/omap-mcpdm.c threshold = mcpdm->config[stream].threshold; stream 337 sound/soc/ti/omap-mcpdm.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 341 sound/soc/ti/omap-mcpdm.c if (!mcpdm->config[!stream].link_mask) stream 342 sound/soc/ti/omap-mcpdm.c mcpdm->config[!stream].link_mask = 0x3; stream 349 sound/soc/ti/omap-mcpdm.c if (!mcpdm->config[!stream].link_mask) stream 350 sound/soc/ti/omap-mcpdm.c mcpdm->config[!stream].link_mask = (0x3 << 3); stream 360 sound/soc/ti/omap-mcpdm.c mcpdm->latency[stream] = latency * USEC_PER_SEC / params_rate(params); stream 362 sound/soc/ti/omap-mcpdm.c if (!mcpdm->latency[stream]) stream 363 sound/soc/ti/omap-mcpdm.c mcpdm->latency[stream] = 10; stream 366 sound/soc/ti/omap-mcpdm.c if (mcpdm->config[stream].link_mask && stream 367 sound/soc/ti/omap-mcpdm.c mcpdm->config[stream].link_mask != link_mask) stream 370 sound/soc/ti/omap-mcpdm.c mcpdm->config[stream].link_mask = link_mask; stream 380 sound/soc/ti/omap-mcpdm.c int tx = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 72 sound/soc/txx9/txx9aclc.c substream->stream); stream 132 sound/soc/txx9/txx9aclc.c dmadata->substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? stream 153 sound/soc/txx9/txx9aclc.c u32 ctlbit = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? stream 213 sound/soc/txx9/txx9aclc.c u32 ctlbit = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? stream 249 sound/soc/txx9/txx9aclc.c struct txx9aclc_dmadata *dmadata = &dev->dmadata[substream->stream]; stream 300 sound/soc/txx9/txx9aclc.c dev->dmadata[0].stream = SNDRV_PCM_STREAM_PLAYBACK; stream 301 sound/soc/txx9/txx9aclc.c dev->dmadata[1].stream = SNDRV_PCM_STREAM_CAPTURE; stream 353 sound/soc/txx9/txx9aclc.c if (dmadata->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 368 sound/soc/txx9/txx9aclc.c dmadata->stream == SNDRV_PCM_STREAM_PLAYBACK ? stream 48 sound/soc/txx9/txx9aclc.h int stream; /* SNDRV_PCM_STREAM_PLAYBACK or SNDRV_PCM_STREAM_CAPTURE */ stream 404 sound/soc/uniphier/aio-compress.c static int uniphier_aio_compr_get_codec_caps(struct snd_compr_stream *stream, stream 258 sound/soc/uniphier/aio-cpu.c struct uniphier_aio_sub *sub = &aio->sub[substream->stream]; stream 276 sound/soc/uniphier/aio-cpu.c struct uniphier_aio_sub *sub = &aio->sub[substream->stream]; stream 286 sound/soc/uniphier/aio-cpu.c struct uniphier_aio_sub *sub = &aio->sub[substream->stream]; stream 324 sound/soc/uniphier/aio-cpu.c struct uniphier_aio_sub *sub = &aio->sub[substream->stream]; stream 335 sound/soc/uniphier/aio-cpu.c struct uniphier_aio_sub *sub = &aio->sub[substream->stream]; stream 128 sound/soc/uniphier/aio-dma.c struct uniphier_aio_sub *sub = &aio->sub[substream->stream]; stream 154 sound/soc/uniphier/aio-dma.c struct uniphier_aio_sub *sub = &aio->sub[substream->stream]; stream 189 sound/soc/uniphier/aio-dma.c struct uniphier_aio_sub *sub = &aio->sub[substream->stream]; stream 208 sound/soc/ux500/mop500_ab8500.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 296 sound/soc/ux500/mop500_ab8500.c is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 318 sound/soc/ux500/ux500_msp_dai.c msp_config->direction = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? stream 429 sound/soc/ux500/ux500_msp_dai.c bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); stream 517 sound/soc/ux500/ux500_msp_dai.c mask = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? stream 653 sound/soc/ux500/ux500_msp_dai.c ret = ux500_msp_i2s_trigger(drvdata->msp, cmd, substream->stream); stream 73 sound/soc/ux500/ux500_pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 115 sound/soc/ux500/ux500_pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 266 sound/soc/xilinx/xlnx_formatter_pcm.c static void xlnx_formatter_disable_irqs(void __iomem *mmio_base, int stream) stream 272 sound/soc/xilinx/xlnx_formatter_pcm.c if (stream == SNDRV_PCM_STREAM_CAPTURE) stream 328 sound/soc/xilinx/xlnx_formatter_pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && stream 331 sound/soc/xilinx/xlnx_formatter_pcm.c else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE && stream 339 sound/soc/xilinx/xlnx_formatter_pcm.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 367 sound/soc/xilinx/xlnx_formatter_pcm.c substream->stream, stream_data->interleaved, stream 404 sound/soc/xilinx/xlnx_formatter_pcm.c xlnx_formatter_disable_irqs(stream_data->mmio, substream->stream); stream 443 sound/soc/xilinx/xlnx_formatter_pcm.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE && stream 87 sound/soc/xilinx/xlnx_spdif.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 182 sound/soc/xilinx/xlnx_spdif.c if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) stream 288 sound/soc/zte/zx-i2s.c int capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); stream 233 sound/soc/zte/zx-tdm.c int capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); stream 567 sound/sparc/dbri.c (substream->stream == \ stream 122 sound/usb/6fire/pcm.c if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 124 sound/usb/6fire/pcm.c else if (alsa_sub->stream == SNDRV_PCM_STREAM_CAPTURE) stream 398 sound/usb/6fire/pcm.c if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 403 sound/usb/6fire/pcm.c } else if (alsa_sub->stream == SNDRV_PCM_STREAM_CAPTURE) { stream 30 sound/usb/caiaq/audio.c #define MAKE_CHECKBYTE(cdev,stream,i) \ stream 31 sound/usb/caiaq/audio.c (stream << 1) | (~(i / (cdev->n_streams * BYTES_PER_SAMPLE_USB)) & 1) stream 56 sound/usb/caiaq/audio.c if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 71 sound/usb/caiaq/audio.c if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 202 sound/usb/caiaq/audio.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 315 sound/usb/caiaq/audio.c if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 343 sound/usb/caiaq/audio.c int stream, pb, *cnt; stream 346 sound/usb/caiaq/audio.c for (stream = 0; stream < cdev->n_streams; stream++) { stream 347 sound/usb/caiaq/audio.c sub = subs[stream]; stream 352 sound/usb/caiaq/audio.c cnt = (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) ? stream 353 sound/usb/caiaq/audio.c &cdev->period_out_count[stream] : stream 354 sound/usb/caiaq/audio.c &cdev->period_in_count[stream]; stream 369 sound/usb/caiaq/audio.c int stream, i; stream 375 sound/usb/caiaq/audio.c for (stream = 0; stream < cdev->n_streams; stream++, i++) { stream 376 sound/usb/caiaq/audio.c sub = cdev->sub_capture[stream]; stream 381 sound/usb/caiaq/audio.c audio_buf[cdev->audio_in_buf_pos[stream]++] stream 383 sound/usb/caiaq/audio.c cdev->period_in_count[stream]++; stream 384 sound/usb/caiaq/audio.c if (cdev->audio_in_buf_pos[stream] == sz) stream 385 sound/usb/caiaq/audio.c cdev->audio_in_buf_pos[stream] = 0; stream 398 sound/usb/caiaq/audio.c int stream, i; stream 402 sound/usb/caiaq/audio.c for (stream = 0; stream 403 sound/usb/caiaq/audio.c stream < cdev->n_streams; stream 404 sound/usb/caiaq/audio.c stream++, i++) { stream 408 sound/usb/caiaq/audio.c check_byte = MAKE_CHECKBYTE(cdev, stream, i); stream 419 sound/usb/caiaq/audio.c for (stream = 0; stream < cdev->n_streams; stream++, i++) { stream 420 sound/usb/caiaq/audio.c sub = cdev->sub_capture[stream]; stream 428 sound/usb/caiaq/audio.c audio_buf[cdev->audio_in_buf_pos[stream]++] = stream 430 sound/usb/caiaq/audio.c cdev->period_in_count[stream]++; stream 431 sound/usb/caiaq/audio.c if (cdev->audio_in_buf_pos[stream] == sz) stream 432 sound/usb/caiaq/audio.c cdev->audio_in_buf_pos[stream] = 0; stream 444 sound/usb/caiaq/audio.c int stream, i; stream 451 sound/usb/caiaq/audio.c for (stream = 0; stream < cdev->n_streams; stream++) { stream 452 sound/usb/caiaq/audio.c struct snd_pcm_substream *sub = cdev->sub_capture[stream]; stream 466 sound/usb/caiaq/audio.c audio_buf[cdev->audio_in_buf_pos[stream]++] = usb_buf[i+n]; stream 468 sound/usb/caiaq/audio.c if (cdev->audio_in_buf_pos[stream] == sz) stream 469 sound/usb/caiaq/audio.c cdev->audio_in_buf_pos[stream] = 0; stream 472 sound/usb/caiaq/audio.c cdev->period_in_count[stream] += BYTES_PER_SAMPLE; stream 477 sound/usb/caiaq/audio.c if (usb_buf[i] != ((stream << 1) | c) && stream 481 sound/usb/caiaq/audio.c ((stream << 1) | c), usb_buf[i], c, stream, i); stream 532 sound/usb/caiaq/audio.c int stream, i; stream 535 sound/usb/caiaq/audio.c for (stream = 0; stream < cdev->n_streams; stream++, i++) { stream 536 sound/usb/caiaq/audio.c sub = cdev->sub_playback[stream]; stream 542 sound/usb/caiaq/audio.c audio_buf[cdev->audio_out_buf_pos[stream]]; stream 543 sound/usb/caiaq/audio.c cdev->period_out_count[stream]++; stream 544 sound/usb/caiaq/audio.c cdev->audio_out_buf_pos[stream]++; stream 545 sound/usb/caiaq/audio.c if (cdev->audio_out_buf_pos[stream] == sz) stream 546 sound/usb/caiaq/audio.c cdev->audio_out_buf_pos[stream] = 0; stream 555 sound/usb/caiaq/audio.c for (stream = 0; stream < cdev->n_streams; stream++, i++) stream 556 sound/usb/caiaq/audio.c usb_buf[i] = MAKE_CHECKBYTE(cdev, stream, i); stream 565 sound/usb/caiaq/audio.c int stream, i; stream 568 sound/usb/caiaq/audio.c for (stream = 0; stream < cdev->n_streams; stream++) { stream 569 sound/usb/caiaq/audio.c struct snd_pcm_substream *sub = cdev->sub_playback[stream]; stream 582 sound/usb/caiaq/audio.c usb_buf[i+n] = audio_buf[cdev->audio_out_buf_pos[stream]++]; stream 584 sound/usb/caiaq/audio.c if (cdev->audio_out_buf_pos[stream] == sz) stream 585 sound/usb/caiaq/audio.c cdev->audio_out_buf_pos[stream] = 0; stream 592 sound/usb/caiaq/audio.c cdev->period_out_count[stream] += BYTES_PER_SAMPLE; stream 597 sound/usb/caiaq/audio.c usb_buf[i++] = (stream << 1) | c; stream 115 sound/usb/card.h struct snd_usb_stream *stream; stream 607 sound/usb/format.c int stream) stream 649 sound/usb/format.c int stream) stream 8 sound/usb/format.h int stream); stream 13 sound/usb/format.h int stream); stream 177 sound/usb/hiface/pcm.c if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 364 sound/usb/hiface/pcm.c if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 243 sound/usb/line6/pcm.c if (s->stream == SNDRV_PCM_STREAM_CAPTURE && stream 251 sound/usb/line6/pcm.c err = line6_stream_start(line6pcm, s->stream, stream 259 sound/usb/line6/pcm.c if (s->stream == SNDRV_PCM_STREAM_CAPTURE && stream 265 sound/usb/line6/pcm.c line6_stream_stop(line6pcm, s->stream, stream 270 sound/usb/line6/pcm.c if (s->stream != SNDRV_PCM_STREAM_PLAYBACK) stream 276 sound/usb/line6/pcm.c if (s->stream != SNDRV_PCM_STREAM_PLAYBACK) stream 293 sound/usb/line6/pcm.c struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream); stream 354 sound/usb/line6/pcm.c struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream); stream 357 sound/usb/line6/pcm.c ret = line6_buffer_acquire(line6pcm, pstr, substream->stream, stream 379 sound/usb/line6/pcm.c struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream); stream 598 sound/usb/line6/pcm.c struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream); stream 37 sound/usb/line6/pcm.h #define get_substream(line6pcm, stream) \ stream 38 sound/usb/line6/pcm.h (line6pcm->pcm->streams[stream].substream) stream 34 sound/usb/media.c int stream) stream 38 sound/usb/media.c struct device *pcm_dev = &pcm->streams[stream].dev; stream 44 sound/usb/media.c mdev = subs->stream->chip->media_dev; stream 57 sound/usb/media.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) { stream 313 sound/usb/media.c struct snd_usb_stream *stream; stream 316 sound/usb/media.c list_for_each_entry(stream, &chip->pcm_list, list) { stream 317 sound/usb/media.c snd_media_stream_delete(&stream->substream[0]); stream 318 sound/usb/media.c snd_media_stream_delete(&stream->substream[1]); stream 57 sound/usb/media.h int stream); stream 67 sound/usb/media.h struct snd_pcm *pcm, int stream) stream 1539 sound/usb/midi.c int stream, stream 1544 sound/usb/midi.c list_for_each_entry(substream, &umidi->rmidi->streams[stream].substreams, stream 1759 sound/usb/midi.c int stream, int number, stream 1766 sound/usb/midi.c snd_usbmidi_find_substream(umidi, stream, number); stream 1768 sound/usb/midi.c dev_err(&umidi->dev->dev, "substream %d:%d not found\n", stream, stream 211 sound/usb/misc/ua101.c static bool copy_playback_data(struct ua101_stream *stream, struct urb *urb, stream 218 sound/usb/misc/ua101.c runtime = stream->substream->runtime; stream 219 sound/usb/misc/ua101.c frame_bytes = stream->frame_bytes; stream 220 sound/usb/misc/ua101.c source = runtime->dma_area + stream->buffer_pos * frame_bytes; stream 221 sound/usb/misc/ua101.c if (stream->buffer_pos + frames <= runtime->buffer_size) { stream 225 sound/usb/misc/ua101.c frames1 = runtime->buffer_size - stream->buffer_pos; stream 231 sound/usb/misc/ua101.c stream->buffer_pos += frames; stream 232 sound/usb/misc/ua101.c if (stream->buffer_pos >= runtime->buffer_size) stream 233 sound/usb/misc/ua101.c stream->buffer_pos -= runtime->buffer_size; stream 234 sound/usb/misc/ua101.c stream->period_pos += frames; stream 235 sound/usb/misc/ua101.c if (stream->period_pos >= runtime->period_size) { stream 236 sound/usb/misc/ua101.c stream->period_pos -= runtime->period_size; stream 315 sound/usb/misc/ua101.c static bool copy_capture_data(struct ua101_stream *stream, struct urb *urb, stream 322 sound/usb/misc/ua101.c runtime = stream->substream->runtime; stream 323 sound/usb/misc/ua101.c frame_bytes = stream->frame_bytes; stream 324 sound/usb/misc/ua101.c dest = runtime->dma_area + stream->buffer_pos * frame_bytes; stream 325 sound/usb/misc/ua101.c if (stream->buffer_pos + frames <= runtime->buffer_size) { stream 329 sound/usb/misc/ua101.c frames1 = runtime->buffer_size - stream->buffer_pos; stream 336 sound/usb/misc/ua101.c stream->buffer_pos += frames; stream 337 sound/usb/misc/ua101.c if (stream->buffer_pos >= runtime->buffer_size) stream 338 sound/usb/misc/ua101.c stream->buffer_pos -= runtime->buffer_size; stream 339 sound/usb/misc/ua101.c stream->period_pos += frames; stream 340 sound/usb/misc/ua101.c if (stream->period_pos >= runtime->period_size) { stream 341 sound/usb/misc/ua101.c stream->period_pos -= runtime->period_size; stream 350 sound/usb/misc/ua101.c struct ua101_stream *stream = &ua->capture; stream 364 sound/usb/misc/ua101.c stream->frame_bytes; stream 371 sound/usb/misc/ua101.c do_period_elapsed = copy_capture_data(stream, urb, frames); stream 410 sound/usb/misc/ua101.c snd_pcm_period_elapsed(stream->substream); stream 432 sound/usb/misc/ua101.c static int submit_stream_urbs(struct ua101 *ua, struct ua101_stream *stream) stream 436 sound/usb/misc/ua101.c for (i = 0; i < stream->queue_length; ++i) { stream 437 sound/usb/misc/ua101.c int err = usb_submit_urb(&stream->urbs[i]->urb, GFP_KERNEL); stream 447 sound/usb/misc/ua101.c static void kill_stream_urbs(struct ua101_stream *stream) stream 451 sound/usb/misc/ua101.c for (i = 0; i < stream->queue_length; ++i) stream 452 sound/usb/misc/ua101.c if (stream->urbs[i]) stream 453 sound/usb/misc/ua101.c usb_kill_urb(&stream->urbs[i]->urb); stream 858 sound/usb/misc/ua101.c struct ua101_stream *stream) stream 864 sound/usb/misc/ua101.c pos = stream->buffer_pos; stream 1040 sound/usb/misc/ua101.c static int alloc_stream_buffers(struct ua101 *ua, struct ua101_stream *stream) stream 1045 sound/usb/misc/ua101.c stream->queue_length = queue_length; stream 1046 sound/usb/misc/ua101.c stream->queue_length = max(stream->queue_length, stream 1048 sound/usb/misc/ua101.c stream->queue_length = min(stream->queue_length, stream 1057 sound/usb/misc/ua101.c remaining_packets = stream->queue_length; stream 1058 sound/usb/misc/ua101.c packets_per_page = PAGE_SIZE / stream->max_packet_bytes; stream 1059 sound/usb/misc/ua101.c for (i = 0; i < ARRAY_SIZE(stream->buffers); ++i) { stream 1061 sound/usb/misc/ua101.c size = packets * stream->max_packet_bytes; stream 1062 sound/usb/misc/ua101.c stream->buffers[i].addr = stream 1064 sound/usb/misc/ua101.c &stream->buffers[i].dma); stream 1065 sound/usb/misc/ua101.c if (!stream->buffers[i].addr) stream 1067 sound/usb/misc/ua101.c stream->buffers[i].size = size; stream 1079 sound/usb/misc/ua101.c static void free_stream_buffers(struct ua101 *ua, struct ua101_stream *stream) stream 1083 sound/usb/misc/ua101.c for (i = 0; i < ARRAY_SIZE(stream->buffers); ++i) stream 1085 sound/usb/misc/ua101.c stream->buffers[i].size, stream 1086 sound/usb/misc/ua101.c stream->buffers[i].addr, stream 1087 sound/usb/misc/ua101.c stream->buffers[i].dma); stream 1090 sound/usb/misc/ua101.c static int alloc_stream_urbs(struct ua101 *ua, struct ua101_stream *stream, stream 1093 sound/usb/misc/ua101.c unsigned max_packet_size = stream->max_packet_bytes; stream 1097 sound/usb/misc/ua101.c for (b = 0; b < ARRAY_SIZE(stream->buffers); ++b) { stream 1098 sound/usb/misc/ua101.c unsigned int size = stream->buffers[b].size; stream 1099 sound/usb/misc/ua101.c u8 *addr = stream->buffers[b].addr; stream 1100 sound/usb/misc/ua101.c dma_addr_t dma = stream->buffers[b].dma; stream 1103 sound/usb/misc/ua101.c if (u >= stream->queue_length) stream 1110 sound/usb/misc/ua101.c urb->urb.pipe = stream->usb_pipe; stream 1121 sound/usb/misc/ua101.c stream->urbs[u++] = urb; stream 1127 sound/usb/misc/ua101.c if (u == stream->queue_length) stream 1134 sound/usb/misc/ua101.c static void free_stream_urbs(struct ua101_stream *stream) stream 1138 sound/usb/misc/ua101.c for (i = 0; i < stream->queue_length; ++i) { stream 1139 sound/usb/misc/ua101.c kfree(stream->urbs[i]); stream 1140 sound/usb/misc/ua101.c stream->urbs[i] = NULL; stream 71 sound/usb/pcm.c if (atomic_read(&subs->stream->chip->shutdown)) stream 323 sound/usb/pcm.c switch (subs->stream->chip->usb_id) { stream 364 sound/usb/pcm.c USB_ID_VENDOR(subs->stream->chip->usb_id) == 0x0582 /* Roland */ && stream 383 sound/usb/pcm.c subs->sync_endpoint = snd_usb_add_endpoint(subs->stream->chip, stream 482 sound/usb/pcm.c subs->sync_endpoint = snd_usb_add_endpoint(subs->stream->chip, stream 522 sound/usb/pcm.c if (!subs->stream->chip->keep_iface) { stream 558 sound/usb/pcm.c subs->data_endpoint = snd_usb_add_endpoint(subs->stream->chip, stream 569 sound/usb/pcm.c err = snd_usb_init_pitch(subs->stream->chip, fmt->iface, alts, fmt); stream 641 sound/usb/pcm.c &subs->stream->substream[subs->direction ^ 1]; stream 644 sound/usb/pcm.c !subs->stream) stream 733 sound/usb/pcm.c ret = snd_usb_power_domain_set(subs->stream->chip, subs->str_pd, state); stream 820 sound/usb/pcm.c ret = snd_usb_lock_shutdown(subs->stream->chip); stream 837 sound/usb/pcm.c snd_usb_unlock_shutdown(subs->stream->chip); stream 860 sound/usb/pcm.c if (!snd_usb_lock_shutdown(subs->stream->chip)) { stream 864 sound/usb/pcm.c snd_usb_unlock_shutdown(subs->stream->chip); stream 891 sound/usb/pcm.c ret = snd_usb_lock_shutdown(subs->stream->chip); stream 914 sound/usb/pcm.c ret = snd_usb_init_sample_rate(subs->stream->chip, stream 947 sound/usb/pcm.c snd_usb_unlock_shutdown(subs->stream->chip); stream 1320 sound/usb/pcm.c return snd_usb_autoresume(subs->stream->chip); stream 1325 sound/usb/pcm.c int direction = substream->stream; stream 1347 sound/usb/pcm.c snd_usb_autosuspend(subs->stream->chip); stream 1354 sound/usb/pcm.c int direction = substream->stream; stream 1364 sound/usb/pcm.c !snd_usb_lock_shutdown(subs->stream->chip)) { stream 1368 sound/usb/pcm.c snd_usb_unlock_shutdown(subs->stream->chip); stream 1374 sound/usb/pcm.c snd_usb_autosuspend(subs->stream->chip); stream 1746 sound/usb/pcm.c if (subs->stream->chip->setup_fmt_after_resume_quirk) { stream 1785 sound/usb/pcm.c if (subs->stream->chip->setup_fmt_after_resume_quirk) { stream 1844 sound/usb/pcm.c void snd_usb_set_pcm_ops(struct snd_pcm *pcm, int stream) stream 1849 sound/usb/pcm.c ops = stream == SNDRV_PCM_STREAM_PLAYBACK ? stream 1852 sound/usb/pcm.c ops = stream == SNDRV_PCM_STREAM_PLAYBACK ? stream 1854 sound/usb/pcm.c snd_pcm_set_ops(pcm, stream, ops); stream 1859 sound/usb/pcm.c struct snd_pcm *pcm = subs->stream->pcm; stream 8 sound/usb/pcm.h void snd_usb_set_pcm_ops(struct snd_pcm *pcm, int stream); stream 139 sound/usb/proc.c struct snd_usb_stream *stream = entry->private_data; stream 141 sound/usb/proc.c snd_iprintf(buffer, "%s : %s\n", stream->chip->card->longname, stream->pcm->name); stream 143 sound/usb/proc.c if (stream->substream[SNDRV_PCM_STREAM_PLAYBACK].num_formats) { stream 145 sound/usb/proc.c proc_dump_substream_status(&stream->substream[SNDRV_PCM_STREAM_PLAYBACK], buffer); stream 146 sound/usb/proc.c proc_dump_substream_formats(&stream->substream[SNDRV_PCM_STREAM_PLAYBACK], buffer); stream 148 sound/usb/proc.c if (stream->substream[SNDRV_PCM_STREAM_CAPTURE].num_formats) { stream 150 sound/usb/proc.c proc_dump_substream_status(&stream->substream[SNDRV_PCM_STREAM_CAPTURE], buffer); stream 151 sound/usb/proc.c proc_dump_substream_formats(&stream->substream[SNDRV_PCM_STREAM_CAPTURE], buffer); stream 155 sound/usb/proc.c void snd_usb_proc_pcm_format_add(struct snd_usb_stream *stream) stream 158 sound/usb/proc.c struct snd_card *card = stream->chip->card; stream 160 sound/usb/proc.c sprintf(name, "stream%d", stream->pcm_index); stream 161 sound/usb/proc.c snd_card_ro_proc_new(card, name, stream, proc_pcm_format_read); stream 6 sound/usb/proc.h void snd_usb_proc_pcm_format_add(struct snd_usb_stream *stream); stream 134 sound/usb/quirks.c int stream, err; stream 156 sound/usb/quirks.c stream = (fp->endpoint & USB_DIR_IN) stream 158 sound/usb/quirks.c err = snd_usb_add_audio_stream(chip, stream, fp); stream 420 sound/usb/quirks.c int stream, err; stream 485 sound/usb/quirks.c stream = (fp->endpoint & USB_DIR_IN) stream 487 sound/usb/quirks.c err = snd_usb_add_audio_stream(chip, stream, fp); stream 1389 sound/usb/quirks.c if (subs->stream->substream[SNDRV_PCM_STREAM_CAPTURE].interface != -1) stream 1413 sound/usb/quirks.c snd_emuusb_set_samplerate(subs->stream->chip, emu_samplerate_id); stream 1420 sound/usb/quirks.c switch (subs->stream->chip->usb_id) { stream 1482 sound/usb/quirks.c if (is_itf_usb_dsd_dac(subs->stream->chip->usb_id)) { stream 1729 sound/usb/quirks.c int stream) stream 1753 sound/usb/quirks.c if (stream == SNDRV_PCM_STREAM_PLAYBACK) stream 52 sound/usb/quirks.h int stream); stream 59 sound/usb/stream.c static void snd_usb_audio_stream_free(struct snd_usb_stream *stream) stream 61 sound/usb/stream.c free_substream(&stream->substream[0]); stream 62 sound/usb/stream.c free_substream(&stream->substream[1]); stream 63 sound/usb/stream.c list_del(&stream->list); stream 64 sound/usb/stream.c kfree(stream); stream 69 sound/usb/stream.c struct snd_usb_stream *stream = pcm->private_data; stream 70 sound/usb/stream.c if (stream) { stream 71 sound/usb/stream.c stream->pcm = NULL; stream 72 sound/usb/stream.c snd_usb_audio_stream_free(stream); stream 81 sound/usb/stream.c int stream, stream 85 sound/usb/stream.c struct snd_usb_substream *subs = &as->substream[stream]; stream 90 sound/usb/stream.c subs->stream = as; stream 91 sound/usb/stream.c subs->direction = stream; stream 98 sound/usb/stream.c snd_usb_set_pcm_ops(as->pcm, stream); stream 111 sound/usb/stream.c snd_usb_power_domain_set(subs->stream->chip, pd, stream 209 sound/usb/stream.c static int add_chmap(struct snd_pcm *pcm, int stream, stream 224 sound/usb/stream.c err = snd_pcm_add_chmap_ctls(pcm, stream, NULL, 0, 0, &chmap); stream 477 sound/usb/stream.c int stream, stream 490 sound/usb/stream.c subs = &as->substream[stream]; stream 502 sound/usb/stream.c subs = &as->substream[stream]; stream 505 sound/usb/stream.c err = snd_pcm_new_stream(as->pcm, stream, 1); stream 508 sound/usb/stream.c snd_usb_init_substream(as, stream, fp, pd); stream 509 sound/usb/stream.c return add_chmap(as->pcm, stream, subs); stream 520 sound/usb/stream.c stream == SNDRV_PCM_STREAM_PLAYBACK ? 1 : 0, stream 521 sound/usb/stream.c stream == SNDRV_PCM_STREAM_PLAYBACK ? 0 : 1, stream 536 sound/usb/stream.c snd_usb_init_substream(as, stream, fp, pd); stream 551 sound/usb/stream.c return add_chmap(pcm, stream, &as->substream[stream]); stream 555 sound/usb/stream.c int stream, stream 558 sound/usb/stream.c return __snd_usb_add_audio_stream(chip, stream, fp, NULL); stream 562 sound/usb/stream.c int stream, stream 566 sound/usb/stream.c return __snd_usb_add_audio_stream(chip, stream, fp, pd); stream 704 sound/usb/stream.c int altno, int stream, int bm_quirk) stream 835 sound/usb/stream.c snd_usb_audioformat_attributes_quirk(chip, fp, stream); stream 839 sound/usb/stream.c fmt, stream) < 0) { stream 858 sound/usb/stream.c int altno, int stream) stream 1054 sound/usb/stream.c pd->pd_id = (stream == SNDRV_PCM_STREAM_PLAYBACK) ? stream 1068 sound/usb/stream.c if (snd_usb_parse_audio_format_v3(chip, fp, as, stream) < 0) { stream 1089 sound/usb/stream.c int i, altno, err, stream; stream 1125 sound/usb/stream.c stream = (get_endpoint(alts, 0)->bEndpointAddress & USB_DIR_IN) ? stream 1170 sound/usb/stream.c stream, bm_quirk); stream 1175 sound/usb/stream.c iface_no, i, altno, stream); stream 1196 sound/usb/stream.c err = snd_usb_add_audio_stream_v3(chip, stream, fp, pd); stream 1198 sound/usb/stream.c err = snd_usb_add_audio_stream(chip, stream, fp); stream 9 sound/usb/stream.h int stream, stream 792 sound/usb/usx2y/usbusx2yaudio.c if (SNDRV_PCM_STREAM_PLAYBACK == substream->stream) { stream 876 sound/usb/usx2y/usbusx2yaudio.c snd_pcm_substream_chip(substream))[substream->stream]; stream 352 sound/usb/usx2y/usx2yhwdeppcm.c if (SNDRV_PCM_STREAM_PLAYBACK == substream->stream) { stream 394 sound/usb/usx2y/usx2yhwdeppcm.c stream = subs->pcm_substream->stream; stream 397 sound/usb/usx2y/usx2yhwdeppcm.c if (SNDRV_PCM_STREAM_CAPTURE == stream) { stream 402 sound/usb/usx2y/usx2yhwdeppcm.c for (p = 0; 3 >= (stream + p); p += 2) { stream 403 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_usX2Y_substream *subs = usX2Y->subs[stream + p]; stream 420 sound/usb/usx2y/usx2yhwdeppcm.c for (p = 0; 3 >= (stream + p); p += 2) { stream 421 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_usX2Y_substream *subs = usX2Y->subs[stream + p]; stream 555 sound/usb/usx2y/usx2yhwdeppcm.c snd_pcm_substream_chip(substream))[substream->stream]; stream 561 sound/usb/usx2y/usx2yhwdeppcm.c runtime->hw = SNDRV_PCM_STREAM_PLAYBACK == substream->stream ? snd_usX2Y_2c : stream 217 sound/xen/xen_snd_front_alsa.c static void stream_clear(struct xen_snd_front_pcm_stream_info *stream) stream 219 sound/xen/xen_snd_front_alsa.c stream->is_open = false; stream 220 sound/xen/xen_snd_front_alsa.c stream->be_cur_frame = 0; stream 221 sound/xen/xen_snd_front_alsa.c stream->out_frames = 0; stream 222 sound/xen/xen_snd_front_alsa.c atomic_set(&stream->hw_ptr, 0); stream 223 sound/xen/xen_snd_front_alsa.c xen_snd_front_evtchnl_pair_clear(stream->evt_pair); stream 224 sound/xen/xen_snd_front_alsa.c memset(&stream->shbuf, 0, sizeof(stream->shbuf)); stream 225 sound/xen/xen_snd_front_alsa.c stream->buffer = NULL; stream 226 sound/xen/xen_snd_front_alsa.c stream->buffer_sz = 0; stream 227 sound/xen/xen_snd_front_alsa.c stream->pages = NULL; stream 228 sound/xen/xen_snd_front_alsa.c stream->num_pages = 0; stream 231 sound/xen/xen_snd_front_alsa.c static void stream_free(struct xen_snd_front_pcm_stream_info *stream) stream 233 sound/xen/xen_snd_front_alsa.c xen_front_pgdir_shbuf_unmap(&stream->shbuf); stream 234 sound/xen/xen_snd_front_alsa.c xen_front_pgdir_shbuf_free(&stream->shbuf); stream 235 sound/xen/xen_snd_front_alsa.c if (stream->buffer) stream 236 sound/xen/xen_snd_front_alsa.c free_pages_exact(stream->buffer, stream->buffer_sz); stream 237 sound/xen/xen_snd_front_alsa.c kfree(stream->pages); stream 238 sound/xen/xen_snd_front_alsa.c stream_clear(stream); stream 246 sound/xen/xen_snd_front_alsa.c struct xen_snd_front_pcm_stream_info *stream; stream 248 sound/xen/xen_snd_front_alsa.c if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) stream 249 sound/xen/xen_snd_front_alsa.c stream = &pcm_instance->streams_pb[substream->number]; stream 251 sound/xen/xen_snd_front_alsa.c stream = &pcm_instance->streams_cap[substream->number]; stream 253 sound/xen/xen_snd_front_alsa.c return stream; stream 259 sound/xen/xen_snd_front_alsa.c struct xen_snd_front_pcm_stream_info *stream = rule->private; stream 260 sound/xen/xen_snd_front_alsa.c struct device *dev = &stream->front_info->xb_dev->dev; stream 297 sound/xen/xen_snd_front_alsa.c ret = xen_snd_front_stream_query_hw_param(&stream->evt_pair->req, stream 357 sound/xen/xen_snd_front_alsa.c struct xen_snd_front_pcm_stream_info *stream = stream_get(substream); stream 368 sound/xen/xen_snd_front_alsa.c runtime->hw = stream->pcm_hw; stream 378 sound/xen/xen_snd_front_alsa.c stream->evt_pair = &front_info->evt_pairs[stream->index]; stream 380 sound/xen/xen_snd_front_alsa.c stream->front_info = front_info; stream 382 sound/xen/xen_snd_front_alsa.c stream->evt_pair->evt.u.evt.substream = substream; stream 384 sound/xen/xen_snd_front_alsa.c stream_clear(stream); stream 386 sound/xen/xen_snd_front_alsa.c xen_snd_front_evtchnl_pair_set_connected(stream->evt_pair, true); stream 389 sound/xen/xen_snd_front_alsa.c alsa_hw_rule, stream, stream 397 sound/xen/xen_snd_front_alsa.c alsa_hw_rule, stream, stream 405 sound/xen/xen_snd_front_alsa.c alsa_hw_rule, stream, stream 413 sound/xen/xen_snd_front_alsa.c alsa_hw_rule, stream, stream 421 sound/xen/xen_snd_front_alsa.c alsa_hw_rule, stream, stream 433 sound/xen/xen_snd_front_alsa.c struct xen_snd_front_pcm_stream_info *stream = stream_get(substream); stream 435 sound/xen/xen_snd_front_alsa.c xen_snd_front_evtchnl_pair_set_connected(stream->evt_pair, false); stream 439 sound/xen/xen_snd_front_alsa.c static int shbuf_setup_backstore(struct xen_snd_front_pcm_stream_info *stream, stream 444 sound/xen/xen_snd_front_alsa.c stream->buffer = alloc_pages_exact(buffer_sz, GFP_KERNEL); stream 445 sound/xen/xen_snd_front_alsa.c if (!stream->buffer) stream 448 sound/xen/xen_snd_front_alsa.c stream->buffer_sz = buffer_sz; stream 449 sound/xen/xen_snd_front_alsa.c stream->num_pages = DIV_ROUND_UP(stream->buffer_sz, PAGE_SIZE); stream 450 sound/xen/xen_snd_front_alsa.c stream->pages = kcalloc(stream->num_pages, sizeof(struct page *), stream 452 sound/xen/xen_snd_front_alsa.c if (!stream->pages) stream 455 sound/xen/xen_snd_front_alsa.c for (i = 0; i < stream->num_pages; i++) stream 456 sound/xen/xen_snd_front_alsa.c stream->pages[i] = virt_to_page(stream->buffer + i * PAGE_SIZE); stream 464 sound/xen/xen_snd_front_alsa.c struct xen_snd_front_pcm_stream_info *stream = stream_get(substream); stream 465 sound/xen/xen_snd_front_alsa.c struct xen_snd_front_info *front_info = stream->front_info; stream 473 sound/xen/xen_snd_front_alsa.c stream_free(stream); stream 474 sound/xen/xen_snd_front_alsa.c ret = shbuf_setup_backstore(stream, params_buffer_bytes(params)); stream 480 sound/xen/xen_snd_front_alsa.c buf_cfg.pgdir = &stream->shbuf; stream 481 sound/xen/xen_snd_front_alsa.c buf_cfg.num_pages = stream->num_pages; stream 482 sound/xen/xen_snd_front_alsa.c buf_cfg.pages = stream->pages; stream 488 sound/xen/xen_snd_front_alsa.c ret = xen_front_pgdir_shbuf_map(&stream->shbuf); stream 495 sound/xen/xen_snd_front_alsa.c stream_free(stream); stream 498 sound/xen/xen_snd_front_alsa.c stream->index); stream 504 sound/xen/xen_snd_front_alsa.c struct xen_snd_front_pcm_stream_info *stream = stream_get(substream); stream 507 sound/xen/xen_snd_front_alsa.c ret = xen_snd_front_stream_close(&stream->evt_pair->req); stream 508 sound/xen/xen_snd_front_alsa.c stream_free(stream); stream 514 sound/xen/xen_snd_front_alsa.c struct xen_snd_front_pcm_stream_info *stream = stream_get(substream); stream 516 sound/xen/xen_snd_front_alsa.c if (!stream->is_open) { stream 523 sound/xen/xen_snd_front_alsa.c dev_err(&stream->front_info->xb_dev->dev, stream 530 sound/xen/xen_snd_front_alsa.c ret = xen_snd_front_stream_prepare(&stream->evt_pair->req, stream 531 sound/xen/xen_snd_front_alsa.c &stream->shbuf, stream 540 sound/xen/xen_snd_front_alsa.c stream->is_open = true; stream 548 sound/xen/xen_snd_front_alsa.c struct xen_snd_front_pcm_stream_info *stream = stream_get(substream); stream 572 sound/xen/xen_snd_front_alsa.c return xen_snd_front_stream_trigger(&stream->evt_pair->req, type); stream 579 sound/xen/xen_snd_front_alsa.c struct xen_snd_front_pcm_stream_info *stream = stream_get(substream); stream 584 sound/xen/xen_snd_front_alsa.c delta = cur_frame - stream->be_cur_frame; stream 585 sound/xen/xen_snd_front_alsa.c stream->be_cur_frame = cur_frame; stream 587 sound/xen/xen_snd_front_alsa.c new_hw_ptr = (snd_pcm_uframes_t)atomic_read(&stream->hw_ptr); stream 589 sound/xen/xen_snd_front_alsa.c atomic_set(&stream->hw_ptr, (int)new_hw_ptr); stream 591 sound/xen/xen_snd_front_alsa.c stream->out_frames += delta; stream 592 sound/xen/xen_snd_front_alsa.c if (stream->out_frames > substream->runtime->period_size) { stream 593 sound/xen/xen_snd_front_alsa.c stream->out_frames %= substream->runtime->period_size; stream 600 sound/xen/xen_snd_front_alsa.c struct xen_snd_front_pcm_stream_info *stream = stream_get(substream); stream 602 sound/xen/xen_snd_front_alsa.c return (snd_pcm_uframes_t)atomic_read(&stream->hw_ptr); stream 609 sound/xen/xen_snd_front_alsa.c struct xen_snd_front_pcm_stream_info *stream = stream_get(substream); stream 611 sound/xen/xen_snd_front_alsa.c if (unlikely(pos + count > stream->buffer_sz)) stream 614 sound/xen/xen_snd_front_alsa.c if (copy_from_user(stream->buffer + pos, src, count)) stream 617 sound/xen/xen_snd_front_alsa.c return xen_snd_front_stream_write(&stream->evt_pair->req, pos, count); stream 624 sound/xen/xen_snd_front_alsa.c struct xen_snd_front_pcm_stream_info *stream = stream_get(substream); stream 626 sound/xen/xen_snd_front_alsa.c if (unlikely(pos + count > stream->buffer_sz)) stream 629 sound/xen/xen_snd_front_alsa.c memcpy(stream->buffer + pos, src, count); stream 631 sound/xen/xen_snd_front_alsa.c return xen_snd_front_stream_write(&stream->evt_pair->req, pos, count); stream 638 sound/xen/xen_snd_front_alsa.c struct xen_snd_front_pcm_stream_info *stream = stream_get(substream); stream 641 sound/xen/xen_snd_front_alsa.c if (unlikely(pos + count > stream->buffer_sz)) stream 644 sound/xen/xen_snd_front_alsa.c ret = xen_snd_front_stream_read(&stream->evt_pair->req, pos, count); stream 648 sound/xen/xen_snd_front_alsa.c return copy_to_user(dst, stream->buffer + pos, count) ? stream 656 sound/xen/xen_snd_front_alsa.c struct xen_snd_front_pcm_stream_info *stream = stream_get(substream); stream 659 sound/xen/xen_snd_front_alsa.c if (unlikely(pos + count > stream->buffer_sz)) stream 662 sound/xen/xen_snd_front_alsa.c ret = xen_snd_front_stream_read(&stream->evt_pair->req, pos, count); stream 666 sound/xen/xen_snd_front_alsa.c memcpy(dst, stream->buffer + pos, count); stream 675 sound/xen/xen_snd_front_alsa.c struct xen_snd_front_pcm_stream_info *stream = stream_get(substream); stream 677 sound/xen/xen_snd_front_alsa.c if (unlikely(pos + count > stream->buffer_sz)) stream 680 sound/xen/xen_snd_front_alsa.c memset(stream->buffer + pos, 0, count); stream 682 sound/xen/xen_snd_front_alsa.c return xen_snd_front_stream_write(&stream->evt_pair->req, pos, count); stream 338 sound/xen/xen_snd_front_cfg.c struct xen_front_cfg_stream *stream; stream 357 sound/xen/xen_snd_front_cfg.c stream = &pcm_instance->streams_pb[(*cur_pb)++]; stream 360 sound/xen/xen_snd_front_cfg.c stream = &pcm_instance->streams_cap[(*cur_cap)++]; stream 367 sound/xen/xen_snd_front_cfg.c stream->index = (*stream_cnt)++; stream 368 sound/xen/xen_snd_front_cfg.c stream->xenstore_path = stream_path; stream 374 sound/xen/xen_snd_front_cfg.c cfg_read_pcm_hw(stream->xenstore_path, stream 375 sound/xen/xen_snd_front_cfg.c &pcm_instance->pcm_hw, &stream->pcm_hw); stream 333 tools/include/uapi/sound/asound.h int stream; /* RO/WR (control): stream direction */ stream 632 tools/include/uapi/sound/asound.h int stream; /* WR: stream */ stream 644 tools/include/uapi/sound/asound.h int stream; stream 652 tools/include/uapi/sound/asound.h int stream; stream 50 tools/perf/util/data-convert-bt.c struct bt_ctf_stream *stream; stream 58 tools/perf/util/data-convert-bt.c struct ctf_stream **stream; stream 668 tools/perf/util/data-convert-bt.c err = bt_ctf_stream_flush(cs->stream); stream 686 tools/perf/util/data-convert-bt.c struct bt_ctf_stream *stream = NULL; stream 695 tools/perf/util/data-convert-bt.c stream = bt_ctf_writer_create_stream(cw->writer, cw->stream_class); stream 696 tools/perf/util/data-convert-bt.c if (!stream) { stream 701 tools/perf/util/data-convert-bt.c pkt_ctx = bt_ctf_stream_get_packet_context(stream); stream 723 tools/perf/util/data-convert-bt.c cs->stream = stream; stream 729 tools/perf/util/data-convert-bt.c if (stream) stream 730 tools/perf/util/data-convert-bt.c bt_ctf_stream_put(stream); stream 739 tools/perf/util/data-convert-bt.c bt_ctf_stream_put(cs->stream); stream 746 tools/perf/util/data-convert-bt.c struct ctf_stream *cs = cw->stream[cpu]; stream 750 tools/perf/util/data-convert-bt.c cw->stream[cpu] = cs; stream 850 tools/perf/util/data-convert-bt.c bt_ctf_stream_append_event(cs->stream, event); stream 893 tools/perf/util/data-convert-bt.c bt_ctf_stream_append_event(cs->stream, event); \ stream 1329 tools/perf/util/data-convert-bt.c struct ctf_stream **stream; stream 1339 tools/perf/util/data-convert-bt.c stream = zalloc(sizeof(*stream) * ncpus); stream 1340 tools/perf/util/data-convert-bt.c if (!stream) { stream 1345 tools/perf/util/data-convert-bt.c cw->stream = stream; stream 1355 tools/perf/util/data-convert-bt.c ctf_stream__delete(cw->stream[cpu]); stream 1357 tools/perf/util/data-convert-bt.c zfree(&cw->stream); stream 1561 tools/perf/util/data-convert-bt.c ret = ctf_stream__flush(cw->stream[cpu]); stream 86 tools/testing/selftests/kvm/include/kvm_util.h void vm_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent); stream 87 tools/testing/selftests/kvm/include/kvm_util.h void vcpu_dump(FILE *stream, struct kvm_vm *vm, uint32_t vcpuid, stream 65 tools/testing/selftests/kvm/include/sparsebit.h void sparsebit_dump(FILE *stream, struct sparsebit *sbit, stream 187 tools/testing/selftests/kvm/lib/aarch64/processor.c static void pte_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent, uint64_t page, int level) stream 201 tools/testing/selftests/kvm/lib/aarch64/processor.c pte_dump(stream, vm, indent + 1, pte_addr(vm, *ptep), level + 1); stream 206 tools/testing/selftests/kvm/lib/aarch64/processor.c void virt_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent) stream 219 tools/testing/selftests/kvm/lib/aarch64/processor.c pte_dump(stream, vm, indent + 1, pte_addr(vm, *ptep), level); stream 305 tools/testing/selftests/kvm/lib/aarch64/processor.c void vcpu_dump(FILE *stream, struct kvm_vm *vm, uint32_t vcpuid, uint8_t indent) stream 312 tools/testing/selftests/kvm/lib/aarch64/processor.c fprintf(stream, "%*spstate: 0x%.16lx pc: 0x%.16lx\n", stream 1448 tools/testing/selftests/kvm/lib/kvm_util.c void vm_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent) stream 1453 tools/testing/selftests/kvm/lib/kvm_util.c fprintf(stream, "%*smode: 0x%x\n", indent, "", vm->mode); stream 1454 tools/testing/selftests/kvm/lib/kvm_util.c fprintf(stream, "%*sfd: %i\n", indent, "", vm->fd); stream 1455 tools/testing/selftests/kvm/lib/kvm_util.c fprintf(stream, "%*spage_size: 0x%x\n", indent, "", vm->page_size); stream 1456 tools/testing/selftests/kvm/lib/kvm_util.c fprintf(stream, "%*sMem Regions:\n", indent, ""); stream 1459 tools/testing/selftests/kvm/lib/kvm_util.c fprintf(stream, "%*sguest_phys: 0x%lx size: 0x%lx " stream 1464 tools/testing/selftests/kvm/lib/kvm_util.c fprintf(stream, "%*sunused_phy_pages: ", indent + 2, ""); stream 1465 tools/testing/selftests/kvm/lib/kvm_util.c sparsebit_dump(stream, region->unused_phy_pages, 0); stream 1467 tools/testing/selftests/kvm/lib/kvm_util.c fprintf(stream, "%*sMapped Virtual Pages:\n", indent, ""); stream 1468 tools/testing/selftests/kvm/lib/kvm_util.c sparsebit_dump(stream, vm->vpages_mapped, indent + 2); stream 1469 tools/testing/selftests/kvm/lib/kvm_util.c fprintf(stream, "%*spgd_created: %u\n", indent, "", stream 1472 tools/testing/selftests/kvm/lib/kvm_util.c fprintf(stream, "%*sVirtual Translation Tables:\n", stream 1474 tools/testing/selftests/kvm/lib/kvm_util.c virt_dump(stream, vm, indent + 4); stream 1476 tools/testing/selftests/kvm/lib/kvm_util.c fprintf(stream, "%*sVCPUs:\n", indent, ""); stream 1478 tools/testing/selftests/kvm/lib/kvm_util.c vcpu_dump(stream, vm, vcpu->id, indent + 2); stream 67 tools/testing/selftests/kvm/lib/kvm_util_internal.h void virt_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent); stream 68 tools/testing/selftests/kvm/lib/kvm_util_internal.h void regs_dump(FILE *stream, struct kvm_regs *regs, uint8_t indent); stream 69 tools/testing/selftests/kvm/lib/kvm_util_internal.h void sregs_dump(FILE *stream, struct kvm_sregs *sregs, uint8_t indent); stream 155 tools/testing/selftests/kvm/lib/s390x/processor.c static void virt_dump_ptes(FILE *stream, struct kvm_vm *vm, uint8_t indent, stream 164 tools/testing/selftests/kvm/lib/s390x/processor.c fprintf(stream, "%*spte @ 0x%lx: 0x%016lx\n", stream 169 tools/testing/selftests/kvm/lib/s390x/processor.c static void virt_dump_region(FILE *stream, struct kvm_vm *vm, uint8_t indent, stream 178 tools/testing/selftests/kvm/lib/s390x/processor.c fprintf(stream, "%*srt%lde @ 0x%lx: 0x%016lx\n", stream 182 tools/testing/selftests/kvm/lib/s390x/processor.c virt_dump_region(stream, vm, indent + 2, stream 185 tools/testing/selftests/kvm/lib/s390x/processor.c virt_dump_ptes(stream, vm, indent + 2, stream 191 tools/testing/selftests/kvm/lib/s390x/processor.c void virt_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent) stream 196 tools/testing/selftests/kvm/lib/s390x/processor.c virt_dump_region(stream, vm, indent, vm->pgd); stream 272 tools/testing/selftests/kvm/lib/s390x/processor.c void vcpu_dump(FILE *stream, struct kvm_vm *vm, uint32_t vcpuid, uint8_t indent) stream 276 tools/testing/selftests/kvm/lib/s390x/processor.c fprintf(stream, "%*spstate: psw: 0x%.16llx:0x%.16llx\n", stream 872 tools/testing/selftests/kvm/lib/sparsebit.c static void dump_nodes(FILE *stream, struct node *nodep, stream 886 tools/testing/selftests/kvm/lib/sparsebit.c fprintf(stream, "%*s---- %s nodep: %p\n", indent, "", node_type, nodep); stream 887 tools/testing/selftests/kvm/lib/sparsebit.c fprintf(stream, "%*s parent: %p left: %p right: %p\n", indent, "", stream 889 tools/testing/selftests/kvm/lib/sparsebit.c fprintf(stream, "%*s idx: 0x%lx mask: 0x%x num_after: 0x%lx\n", stream 894 tools/testing/selftests/kvm/lib/sparsebit.c dump_nodes(stream, nodep->left, indent + 2); stream 898 tools/testing/selftests/kvm/lib/sparsebit.c dump_nodes(stream, nodep->right, indent + 2); stream 925 tools/testing/selftests/kvm/lib/sparsebit.c static void sparsebit_dump_internal(FILE *stream, struct sparsebit *s, stream 929 tools/testing/selftests/kvm/lib/sparsebit.c fprintf(stream, "%*sroot: %p\n", indent, "", s->root); stream 930 tools/testing/selftests/kvm/lib/sparsebit.c fprintf(stream, "%*snum_set: 0x%lx\n", indent, "", s->num_set); stream 933 tools/testing/selftests/kvm/lib/sparsebit.c dump_nodes(stream, s->root, indent); stream 1549 tools/testing/selftests/kvm/lib/sparsebit.c static size_t display_range(FILE *stream, sparsebit_idx_t low, stream 1565 tools/testing/selftests/kvm/lib/sparsebit.c if (!stream) stream 1568 tools/testing/selftests/kvm/lib/sparsebit.c sz = fprintf(stream, fmt_str, low, high); stream 1587 tools/testing/selftests/kvm/lib/sparsebit.c void sparsebit_dump(FILE *stream, struct sparsebit *s, stream 1598 tools/testing/selftests/kvm/lib/sparsebit.c fprintf(stream, "%*s", indent, ""); stream 1633 tools/testing/selftests/kvm/lib/sparsebit.c fputs("\n", stream); stream 1634 tools/testing/selftests/kvm/lib/sparsebit.c fprintf(stream, "%*s", indent, ""); stream 1639 tools/testing/selftests/kvm/lib/sparsebit.c sz = display_range(stream, low, high, stream 1667 tools/testing/selftests/kvm/lib/sparsebit.c fputs("\n", stream); stream 1668 tools/testing/selftests/kvm/lib/sparsebit.c fprintf(stream, "%*s", indent, ""); stream 1673 tools/testing/selftests/kvm/lib/sparsebit.c sz = display_range(stream, low, high, stream 1678 tools/testing/selftests/kvm/lib/sparsebit.c fputs("\n", stream); stream 94 tools/testing/selftests/kvm/lib/x86_64/processor.c void regs_dump(FILE *stream, struct kvm_regs *regs, stream 97 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*srax: 0x%.16llx rbx: 0x%.16llx " stream 101 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*srsi: 0x%.16llx rdi: 0x%.16llx " stream 105 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*sr8: 0x%.16llx r9: 0x%.16llx " stream 109 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*sr12: 0x%.16llx r13: 0x%.16llx " stream 113 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*srip: 0x%.16llx rfl: 0x%.16llx\n", stream 132 tools/testing/selftests/kvm/lib/x86_64/processor.c static void segment_dump(FILE *stream, struct kvm_segment *segment, stream 135 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*sbase: 0x%.16llx limit: 0x%.8x " stream 139 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*spresent: 0x%.2x dpl: 0x%.2x " stream 143 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*sg: 0x%.2x avl: 0x%.2x " stream 163 tools/testing/selftests/kvm/lib/x86_64/processor.c static void dtable_dump(FILE *stream, struct kvm_dtable *dtable, stream 166 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*sbase: 0x%.16llx limit: 0x%.4x " stream 186 tools/testing/selftests/kvm/lib/x86_64/processor.c void sregs_dump(FILE *stream, struct kvm_sregs *sregs, stream 191 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*scs:\n", indent, ""); stream 192 tools/testing/selftests/kvm/lib/x86_64/processor.c segment_dump(stream, &sregs->cs, indent + 2); stream 193 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*sds:\n", indent, ""); stream 194 tools/testing/selftests/kvm/lib/x86_64/processor.c segment_dump(stream, &sregs->ds, indent + 2); stream 195 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*ses:\n", indent, ""); stream 196 tools/testing/selftests/kvm/lib/x86_64/processor.c segment_dump(stream, &sregs->es, indent + 2); stream 197 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*sfs:\n", indent, ""); stream 198 tools/testing/selftests/kvm/lib/x86_64/processor.c segment_dump(stream, &sregs->fs, indent + 2); stream 199 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*sgs:\n", indent, ""); stream 200 tools/testing/selftests/kvm/lib/x86_64/processor.c segment_dump(stream, &sregs->gs, indent + 2); stream 201 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*sss:\n", indent, ""); stream 202 tools/testing/selftests/kvm/lib/x86_64/processor.c segment_dump(stream, &sregs->ss, indent + 2); stream 203 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*str:\n", indent, ""); stream 204 tools/testing/selftests/kvm/lib/x86_64/processor.c segment_dump(stream, &sregs->tr, indent + 2); stream 205 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*sldt:\n", indent, ""); stream 206 tools/testing/selftests/kvm/lib/x86_64/processor.c segment_dump(stream, &sregs->ldt, indent + 2); stream 208 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*sgdt:\n", indent, ""); stream 209 tools/testing/selftests/kvm/lib/x86_64/processor.c dtable_dump(stream, &sregs->gdt, indent + 2); stream 210 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*sidt:\n", indent, ""); stream 211 tools/testing/selftests/kvm/lib/x86_64/processor.c dtable_dump(stream, &sregs->idt, indent + 2); stream 213 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*scr0: 0x%.16llx cr2: 0x%.16llx " stream 217 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*scr8: 0x%.16llx efer: 0x%.16llx " stream 222 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*sinterrupt_bitmap:\n", indent, ""); stream 224 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*s%.16llx\n", indent + 2, "", stream 343 tools/testing/selftests/kvm/lib/x86_64/processor.c void virt_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent) stream 353 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*s " stream 355 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*s index hvaddr gpaddr " stream 364 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*spml4e 0x%-3zx %p 0x%-12lx 0x%-10lx %u " stream 377 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*spdpe 0x%-3zx %p 0x%-12lx 0x%-10lx " stream 391 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*spde 0x%-3zx %p " stream 404 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*spte 0x%-3zx %p " stream 972 tools/testing/selftests/kvm/lib/x86_64/processor.c void vcpu_dump(FILE *stream, struct kvm_vm *vm, uint32_t vcpuid, uint8_t indent) stream 977 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*scpuid: %u\n", indent, "", vcpuid); stream 979 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*sregs:\n", indent + 2, ""); stream 981 tools/testing/selftests/kvm/lib/x86_64/processor.c regs_dump(stream, ®s, indent + 4); stream 983 tools/testing/selftests/kvm/lib/x86_64/processor.c fprintf(stream, "%*ssregs:\n", indent + 2, ""); stream 985 tools/testing/selftests/kvm/lib/x86_64/processor.c sregs_dump(stream, &sregs, indent + 4); stream 61 tools/testing/selftests/mqueue/mq_open_tests.c static inline void __set(FILE *stream, int value, char *err_msg); stream 63 tools/testing/selftests/mqueue/mq_open_tests.c static inline int get(FILE *stream); stream 64 tools/testing/selftests/mqueue/mq_open_tests.c static inline void set(FILE *stream, int value); stream 71 tools/testing/selftests/mqueue/mq_open_tests.c static inline void __set(FILE *stream, int value, char *err_msg) stream 73 tools/testing/selftests/mqueue/mq_open_tests.c rewind(stream); stream 74 tools/testing/selftests/mqueue/mq_open_tests.c if (fprintf(stream, "%d", value) < 0) stream 118 tools/testing/selftests/mqueue/mq_open_tests.c static inline int get(FILE *stream) stream 121 tools/testing/selftests/mqueue/mq_open_tests.c rewind(stream); stream 122 tools/testing/selftests/mqueue/mq_open_tests.c if (fscanf(stream, "%d", &value) != 1) stream 127 tools/testing/selftests/mqueue/mq_open_tests.c static inline void set(FILE *stream, int value) stream 131 tools/testing/selftests/mqueue/mq_open_tests.c rewind(stream); stream 132 tools/testing/selftests/mqueue/mq_open_tests.c if (fprintf(stream, "%d", value) < 0) stream 135 tools/testing/selftests/mqueue/mq_open_tests.c new_value = get(stream); stream 153 tools/testing/selftests/mqueue/mq_perf_tests.c static inline void __set(FILE *stream, int value, char *err_msg); stream 157 tools/testing/selftests/mqueue/mq_perf_tests.c static inline int get(FILE *stream); stream 158 tools/testing/selftests/mqueue/mq_perf_tests.c static inline void set(FILE *stream, int value); stream 159 tools/testing/selftests/mqueue/mq_perf_tests.c static inline int try_set(FILE *stream, int value); stream 165 tools/testing/selftests/mqueue/mq_perf_tests.c static inline void __set(FILE *stream, int value, char *err_msg) stream 167 tools/testing/selftests/mqueue/mq_perf_tests.c rewind(stream); stream 168 tools/testing/selftests/mqueue/mq_perf_tests.c if (fprintf(stream, "%d", value) < 0) stream 235 tools/testing/selftests/mqueue/mq_perf_tests.c static inline int get(FILE *stream) stream 238 tools/testing/selftests/mqueue/mq_perf_tests.c rewind(stream); stream 239 tools/testing/selftests/mqueue/mq_perf_tests.c if (fscanf(stream, "%d", &value) != 1) stream 244 tools/testing/selftests/mqueue/mq_perf_tests.c static inline void set(FILE *stream, int value) stream 248 tools/testing/selftests/mqueue/mq_perf_tests.c rewind(stream); stream 249 tools/testing/selftests/mqueue/mq_perf_tests.c if (fprintf(stream, "%d", value) < 0) stream 251 tools/testing/selftests/mqueue/mq_perf_tests.c new_value = get(stream); stream 257 tools/testing/selftests/mqueue/mq_perf_tests.c static inline int try_set(FILE *stream, int value) stream 261 tools/testing/selftests/mqueue/mq_perf_tests.c rewind(stream); stream 262 tools/testing/selftests/mqueue/mq_perf_tests.c fprintf(stream, "%d", value); stream 263 tools/testing/selftests/mqueue/mq_perf_tests.c new_value = get(stream);